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

 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 bI,YMI,HaI,Vv,fa,gbL,sM,vg,Pg,Bg,ftg,NBu,na,ceK,UrM,R6,mrv,hqu,xra,Vr,Q6G,vbe,ZaB,MLK,eqt,Ik,lC,v9,Z5,Rqb,no,drq,eK,Ot,SK,LGt,zj,Ko,ata,KGa,iaB,uC,CIg,bQ,yee,HI,Aea,fg,$rq,TBI,bou,OX,w9v,VKB,HoG,gda,f5I,pg,Jet,BI,uuK,YtB,mQG,I5b,kjq,zt,l5L,h8q,xQM,qtK,QkK,vdK,BUB,Gt,e8M,Oo6,R86,Stq,a5B,JO,wX,r_v,A_B,f3,CCq,Gjt,$QI,E3,jku,N_,skM,XD,Iw,kM,cD,hc,u$B,TUL,J_b,Qt,YXq,bgr,wIt,Hgg,VXb,M_,gsG,fAa,q_,Esg,cOM,Rw,XIg,IAu,L3,qXG,DFI,s7B,Q7b,vsv,eRg,Btr,zw,K3,Ogb,RRB,dFv,aAM,iga,Tte,b3q,fgg,N1,EMq,U_I,mm,Ig,
kH,q1,su,er,Ou,tz,lgK,zz,x_6,Qwr,jr,Gz,PjL,Jz,uH,b7,wC,BXa,nMM,MQM,eYr,pDv,O3q,tQe,RYM,d_q,Lvq,Ex,fh,S3t,agb,rcb,WvB,zYe,KvI,Im,Acg,kF,l7,hp,xF,Pt,ycb,Zl,jwv,Yuu,nh,buv,wNb,VrG,eC,HuK,gHa,ph,Ox,EHu,Rm,XNe,D1a,dC,oHg,m1L,IDu,kze,lDI,h4v,am,x1L,quv,rC,sgM,Qgr,z1,Wt,i7,Ap,vHK,Zua,PHv,Ch,nHI,Mrr,e4M,$F,G1,T1,Jp,u7,YQ,ba,pNa,OuB,tr6,R4r,d1b,FmG,Lmq,SuI,aDL,rzM,z4M,VB,WmG,Kmt,fl,iuK,Ey,cL,AzG,$16,jgu,Gzu,Jz6,uku,YxB,HhM,gFt,flv,NCa,EFK,cpa,U66,oFg,DK,Ilv,k1e,llB,hye,x6M,qxu,Qmq,d6B,FSb,LSt,alI,rpa,sy,zyt,
QB,C7q,ypK,$6u,jmu,G1G,TCB,JpL,u3I,nl,blg,ih6,wLL,Vqq,Hl6,gQM,fKr,NFL,EQq,cPK,UDb,mDu,DDg,k2M,oQb,IKb,xDg,qyv,szG,lKB,vQ6,hHG,Zle,WL,BFa,Kl,AP,nQM,eHu,pLv,RHe,ile,FEg,dDK,SyB,rPu,LEB,$Dt,CaL,jzg,G2t,TFB,JPq,uEM,bCr,Y2G,wEq,VhL,HCb,gGB,Nlu,cyg,Ufg,XEK,mfG,DfG,ZCM,JP,Blt,Mh6,edG,pE6,OCq,thq,dfb,Ftu,LtM,gl,fC,S2K,KtI,U2,Xh,yyI,$fe,HQM,pha,kG,ta6,R7L,SNI,F4K,L4g,Q9,asg,rlb,W4L,K4e,iQb,Alg,CNI,yle,$Gt,Zw,Gla,Jl6,T2B,Yzr,Rs,Sh,wfb,V4r,H7v,g2v,fZK,NxI,cqI,XfG,U$L,Jy,Yw,bN,P1I,Z7L,Hh,n2M,M4G,g2,pf6,eUL,rqg,
zUu,WzK,i76,$$b,GOK,Txa,Jqg,uPB,bHe,V3v,HHK,ch,Eua,XQI,Dnq,mnu,oub,Ije,Unu,NaK,fju,XI,gu6,krg,hBG,QVu,qJb,I2,PcB,Bar,nut,M3I,eBa,xw,pQv,t36,OHM,RBK,F$I,Qz,iHe,Ccu,$nK,Grt,Zs,J6B,MG,ON,pQ,wOg,TaI,VIv,d2,NGM,r2,UzI,mzK,I9b,kDr,l9r,Wh,hnL,xzB,qKM,Qqq,vrG,PSb,Zbu,nr6,iN,MII,ene,CQ,ja,tIa,Rne,dze,Tl,SK6,a9B,zna,f7,yEb,$zb,jqg,GDK,TGu,XP,mz,oI,VkM,II,HBM,gPI,fFr,Nht,XyL,mYM,oPv,DYB,l1,IFM,xYK,hq,hGM,qPr,kMq,sYL,q$,vPv,PFu,ZBv,Bhu,Mkq,nPL,eGI,tkt,pya,dYq,zGg,Kpe,iBG,CFg,jYt,$Yv,yhe,GMa,JhB,YZt,utb,w6a,VMI,
HS6,gDI,RI,EDv,NSq,cQu,Uce,FP,L7,X6q,mcB,Ikb,hmG,qZa,xcK,wa,sde,oDK,MMB,emG,p6q,EJ,OSM,Rmv,LHB,rQL,akB,iSe,AQe,Cpq,yQt,jdI,YDg,GCb,JQt,uyr,bMB,w1G,HMa,VSu,fmI,gLg,qn,NOb,cwg,U4I,oL6,Mn,e3,Imr,kGu,pH,qDG,da,FO,LH,Pou,S3,nLe,zr,MSq,egt,p1r,OMv,ic,tSb,d4u,FK6,SDG,rw6,KKa,AwL,bS,Coe,ywG,$4r,j3B,GGI,TOM,Jwr,uAa,HO,w0K,V1L,Hze,g7I,feK,N56,E76,c16,U8g,X0a,D8b,m8a,o7u,D9,B5G,n7G,mq,oq,Iq,M1K,ewa,p0K,Oze,t1L,Rwr,d8e,r1B,zwq,Wxu,KxL,izG,xr,sK,Qn,vO,Mz,eI,pb,Cnr,tE,$8I,Rq,jP6,Gug,dG,T5v,J1g,ux6,Etv,UV6,I7b,
xVe,hMr,cru,qfG,vt6,Sfv,eMB,KR6,O8q,WRI,i8L,zD,C3B,Kb,$Vq,j8b,Tbr,JrM,uZK,bXa,Cb,VyL,HXb,gyt,f86,Nru,Eyb,cLr,wH6,DCu,mCr,oyu,$r,qCB,sAt,xCI,vyq,PWt,Bru,nyM,ZXu,dC6,LDg,a8b,z3a,Hy,yLt,CWe,JLM,Y6b,bVr,wXq,Vma,HVI,gZB,IY,oZu,kdL,DlL,XXu,ITa,N_u,hSt,eSv,soK,Qoq,vZq,rUI,W_6,aTb,$lv,S6L,fTa,yUK,q6I,Mm6,zSb,lTv,cUK,EZv,Ul6,mlr,L_r,OP,cAL,XPe,DZ6,mZK,oOI,vOb,eQv,pPv,Wy,tza,FQK,rAK,aRG,WQt,KQb,AAG,yAt,C8K,$Zq,uF,jRg,GTG,JAM,TIu,YD,H_L,V9e,wbG,E_L,g_u,cjI,Nne,URg,wS,Xbu,Ip6,mRB,o_u,lpb,qv6,fS,v_t,sLK,PAq,M9K,
eEr,t9u,dRv,UZ,Xy,apI,rjv,Dk,mH,zEK,od,Id,WBv,kD,KBq,lp,i_K,Ajq,xD,CAK,yjv,$Re,jLv,G9M,Jjb,Tnr,YHr,VPL,wvu,Hsu,ghg,ul6,fEG,cdI,Ehq,bsa,Uor,Xvq,P6,Dob,ohK,mo6,IEq,kIa,hoK,lEK,xoG,B6,s1B,Q1M,qHt,PXM,BK6,nhL,Ose,doK,rdB,isg,nS,ydK,$oa,Mc,j1e,tQ,Rd,bxG,pS,LS,wTI,VVu,gEM,fHK,EEg,UyK,XTb,Dye,myq,kL6,sn6,xy6,IHe,Qnu,vEu,zC,q1L,PJq,ip,Zxv,Bva,nEM,MVu,tVq,eXg,OxK,L2q,S1q,K2L,W2M,CJe,J9K,uBe,bke,VZe,Hk6,fz6,Npv,Eig,Uqe,XKb,Dq6,IzK,xqe,qd6,kiM,QML,Pfb,viB,sMb,ZkK,nia,MZt,esv,pKB,OkL,VG,H1,N4,c1,dqa,FwL,SdB,
zst,UD,XA,Wwt,Dm,AJe,Cft,yJG,o3,JJt,wZ6,HEv,gvM,fXb,NML,Ev6,XZI,kL,DXb,IXt,lo,kZv,xX6,q0K,syB,h0g,nvb,pZM,Mu6,OEB,dXq,L3I,aX6,K3L,W3g,yZu,QG,$Xt,jyK,v1,GZI,P1,TM6,JZB,uTe,bjB,YIt,wYg,VxK,Hje,gSM,DhI,oSu,keI,IfL,cnb,Nma,hPv,qIM,Zju,Bmv,ePr,FUv,SIg,M4,afa,zPL,WUg,ij6,$hu,TmB,YVG,b1K,wVg,VOB,E5L,H16,Dkg,mku,Iqv,OD,lqa,hLg,xka,qVg,s_b,Q_t,v5r,Z1v,BPG,FA,n5v,MOr,pVq,SS,eLu,tOg,LVu,zG,SVt,aqb,rSu,KVv,i1e,zLg,Czg,Ghr,TPL,JSB,jS,u6G,VBv,HPK,uo,Nyt,gpM,f1G,cuI,X2B,Dve,kVu,xvL,hkb,l1b,qTG,QBB,vpv,MBM,PYL,eka,
OPb,p2v,STB,zkL,Ke6,AuG,jBe,wxg,H96,gWa,ctg,Xxa,d5,A1,l4v,s5L,qgM,vWt,PxG,Bfb,Z9G,nWb,Mfr,Cz,kxu,hAr,Q5B,xbv,W0,O9v,tfr,RAG,dbG,F0q,L0e,Sgb,a4v,H$,rtL,gb,zAb,W0t,K0B,i9I,Ef,Atq,$bg,GSM,Tf6,HyL,fWq,NAb,E8K,UwK,Xqb,l3,mwB,o8I,IWt,kPB,lWa,hiB,qGL,QOI,P6G,ZyG,Oyg,eia,twq,Fkv,Lk6,P$,SGt,aWB,roB,xML,s$b,q_b,v$u,ZiI,MV,n$q,Mc6,BLg,ezM,pUv,tce,dMa,RzM,Fyu,OiI,Lye,S_g,ayg,rxb,zze,Wyv,KyB,iiI,AxL,$MK,yxu,j$I,TLM,GQK,el,JxK,bLG,fdK,uLb,NYb,EUG,cIv,UmI,hxM,qwa,sUG,vUt,PGI,zx,M7a,t7G,dmu,W$,adt,Swu,rIt,Ar,zxG,
WsG,KsK,AIq,CGK,yIB,$mt,Gkr,TYe,Nwv,VFG,gVu,c4L,EVK,UPg,XBM,mPb,ICu,lCL,xPb,eJu,tFI,dPI,FoI,LoG,SLv,aCv,zJK,Wou,A4I,Cyg,y4b,$PB,jCu,GF6,Twr,J4B,bZM,gca,HH,gr,fX,NC,fca,UC,Ecq,lcB,vcG,sjG,rWG,zhe,Wgb,Uxv,kWt,mxv,iZI,AWu,C4M,xxv,$xu,GWK,JWr,bnb,wzB,PH,nX,MC,c0K,EXu,mSr,oXu,vXv,Znr,nX6,Moq,Ona,RKM,tog,Lut,aiq,C$M,inM,zKK,A0v,Wug,y0u,T9M,iW,fLq,ViK,EIM,cBr,XwL,DTb,CX,mT6,k8r,h9b,xTB,sHu,qUI,jy,nIL,br,e9a,pw6,VC,OUu,tiG,R9a,dTI,FAM,LAg,SU6,aLG,rBB,z9u,WAK,KAr,iUa,ABK,Cht,HX,yBv,$TK,jHe,G8u,T0L,JBa,uXK,
Yee,b$6,wRq,Vgr,H$u,fV,fae,E1v,U7G,m76,ksr,laG,h1I,qer,Qxq,v1G,P5I,oo,e16,n1g,pRa,O$r,tgu,Fng,Lnr,aaI,z1a,BX,Kna,PX,Ama,C5B,nV,ymr,$7r,jxG,GsL,em,YBr,w7B,NiG,fub,cHv,UsG,LV,X7G,Dsv,ogb,k6M,lut,xsu,qBe,Iu6,sfb,BiB,p7b,Oer,Sm,ttM,R6I,auL,dsv,LLb,SBb,AHG,z6M,CZu,$s6,G6b,Tib,JHB,uHq,Y7r,bcG,V5u,Hca,gkq,fSt,NzB,cf6,XlM,okb,hWK,sXM,vkM,Bze,AU,nkB,M5r,eWM,plr,OcK,RWB,dHv,FNI,LN6,S7v,aSq,rfI,zWt,WNL,KNa,icB,CPM,AfG,jX6,TzB,$Z,JfK,b4a,Ybb,Gd,H4a,gJt,f2v,c8G,Xdb,UEM,EJq,oJL,mEM,xEM,I2g,wI,l2v,BTa,Qib,vJ6,PgI,
Z4I,nJe,elv,MRa,Vd,HP,LJq,O46,FJM,dEb,tRK,Rle,r8a,WJG,i4L,KJI,$Ea,y8M,TTB,J8v,Y5g,bD6,uJB,wmB,HDu,Vda,fbM,cRK,DR,UNu,Xma,oxu,xNa,ZDq,oR,nxr,ODI,FCr,dNu,tdv,R$6,xO,rRe,LCM,S5b,z$G,KCt,WCt,CvI,yRt,jWG,GHa,T1g,JRt,uqa,bRM,wpt,tA,HRB,dI,gab,c2L,Uuu,aR,Xpu,mu6,QaI,i8,lvM,sae,hCI,xur,BVL,nav,ZRI,M0t,eCL,RCL,ppG,duI,FXb,CA,SjL,avg,r2I,LXB,jz,zCM,yd,A2B,J2M,uVB,YrB,bYB,w3r,Vja,Nq6,g0u,fYu,HYI,c7B,DLK,IYe,kNv,huM,sQq,xLa,qrM,QQe,PwI,ZY6,BqB,n0I,Mjg,eub,OYv,V_,tjL,F7r,dLe,SrG,L7e,aYI,r7u,zuI,Hb,K7r,Y46,J7r,
Vp6,HJg,UiM,XGL,DiI,mit,o3K,IMb,hrb,xiq,q4B,sTK,Pk6,ZJr,BNK,n3b,Mp6,ert,pGt,OJb,tpK,Rre,Fhr,Lha,S46,zru,Khb,yvG,CkI,Avv,iJ6,TN6,jTG,uNK,bG6,weL,VNg,Pb,HGa,g9e,f$B,UIg,NDG,Xev,E9K,DIt,MR,mIK,o9v,I$M,ciL,kXg,sJu,v9b,QJM,Ov,PBG,ZGg,BDv,n9M,MNr,ecv,OGI,tNv,Rce,dII,S8r,LbM,KbM,FbK,RL,iGv,a$r,Wbq,yia,jJg,Yiv,Jig,uvq,TDt,GXL,z9,bvv,VeM,Hvt,gRK,fxu,No6,DKv,cMt,ERG,UKI,vRM,spL,XjI,qiI,pjg,Ovv,teg,RFq,dKK,Ff6,LfI,rMt,WfG,ivt,CeL,yMG,$Kb,JMb,Toe,uFb,bw6,No,HwK,gng,fIa,NZe,cv,UH,U0g,m0q,x06,vnq,PmL,ZwK,BZu,nnt,
MEM,p4e,tEI,OwB,Reu,FTa,LTK,SFt,aIg,raL,zeI,I1,WTu,jce,Gc6,Cmr,Aab,$0K,yav,H0e,b0I,hd,gfg,fVq,N4u,EfM,c$a,UJr,Xuv,DJM,mJK,IVM,lVM,xJK,sDe,vfa,nfI,MTI,eTu,tTM,O0e,puv,RTu,dJL,LYb,SAt,aVq,r$I,Pv,WYu,KYI,i0K,CEq,A$r,y$v,jDb,J$L,unL,YlM,bqL,woB,Hqu,gNB,V$v,XoK,D2g,oNr,m2r,IhG,hpG,x2M,qlu,s4a,vNa,Q4B,ZqG,OqI,por,RpL,d2u,FWg,zpe,WWB,KWL,iqa,yNL,$2e,TJK,u8K,JNI,Y9G,iX,b2e,wMG,V_b,H2B,EA6,N$M,ckv,UBK,DBr,mBK,k$K,hja,xBu,q9t,sbB,QbM,vAv,PKb,Z2M,B$I,nAI,ejM,M_M,pMI,O2a,t_u,RjL,dBu,FFr,LFr,aQG,rkv,S9K,TI,KFB,
i2u,Akq,CKL,ykB,jbb,Jk6,u7a,YEv,bFv,wc6,VDq,g6L,fBL,E6e,UWu,DWK,koB,o6M,mWv,IBr,lBB,qEI,hbv,xWr,Qru,ZFa,B3I,n6u,ebB,pcB,OF6,RbI,FlI,tDq,Llb,SEM,aBG,rgL,zbB,Wla,iFL,Kle,Ag6,CUb,ygM,$Wt,T3u,JgM,uUr,Yo6,b5a,wrG,V6B,fNb,NH6,H5I,gmb,Xr6,Djb,U1,lNI,h_I,qob,vme,QFM,PTI,Z56,on,kE,nmu,M6L,xE,qy,t66,e_M,prL,FMM,aNg,z_a,WMg,KMM,i5u,AKB,yK6,$jg,jFq,G7L,THt,JKv,u0a,vT,YpM,bfI,ZH,w_q,VUG,HfI,gYg,fOb,Ncq,My,eV,EYt,cGq,px,Ugb,X_G,Dg6,mgu,IOM,kRG,hvB,vYv,Qer,set,Psq,ZfM,Ofa,MUr,eva,nY6,p_B,t9,dgM,F8L,L8b,Spv,aOt,
zvb,AGu,K8M,Rn,W8B,GR6,JGI,uwq,Ynq,bWg,wSL,HWa,geu,fnv,Nu6,cbg,Uev,XSu,meL,oea,kqq,lna,QSI,P0a,ver,Buv,OWa,tbg,R2M,deI,L9I,an,zL,rv,Snv,anr,rbr,z2q,K9B,iWG,AbG,C0I,$eL,Gqq,Tut,JbI,WT,uYI,brq,wse,gzq,fPq,Kx,iJ,cTb,Neb,UAu,mAG,Xsr,ozq,Cx,k0v,lP6,qmv,Q9K,ym,P9L,ZrG,BeG,nzK,MJr,eNa,psB,tJG,L6q,Smq,zNK,aPe,rTv,W6a,C9I,K6u,ATg,yTb,$Aa,j96,JTI,uog,Y$6,bIL,wCe,ETv,Nja,oTv,l0u,wp,h5v,nGG,xtq,q$b,QN6,Pu6,ZIg,t8u,R5v,Nq,dtt,FPg,LPg,a0M,r5I,WP6,iIa,z5b,KPM,CuM,A5I,Gbe,$tq,Tj6,J5K,upb,Yhr,bmu,VYI,wka,NsK,U3a,
Equ,XkK,D3t,m3M,X5,oqt,I_M,mw,l_g,k3B,hOa,x3K,s0B,Q0G,Pqu,Zmu,Bsa,nqq,MYq,Omb,d3v,ShL,L5G,a_v,rsM,K5L,urv,ysI,bO6,wnb,HOB,gou,cVB,DOr,ooI,I6g,kyL,hZB,xOe,qYG,slb,QlM,vov,PDr,B8r,eZa,pnI,OOa,tve,Faq,dOv,rVM,zZv,WaM,yVa,$Og,jla,Gya,JVM,tJ,YOI,Lk,wAr,HNg,g4v,Ud6,DdG,kJr,hte,xdu,shg,QhM,v4I,ZNL,n4a,M2G,ONL,Rtu,L1K,F1M,ddG,Kk,arI,SOb,rCG,ztI,W1e,K1L,iNI,ACL,CRe,$db,jhq,GJr,Tdv,JCu,ujI,YW6,bKg,wJI,HKe,gjt,m9I,ojM,IJL,kEe,lJb,qWL,Ti,BkM,njt,Mnu,eDK,pJK,uf,Yv,uO,bL,V0,aJM,Kjr,AYI,iKL,HZ,Clt,yYt,i3g;
_.Yb=function(Y,b){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Yb);else{var w=Error().stack;w&&(this.stack=w)}Y&&(this.message=String(Y));b!==void 0&&(this.cause=b)};
bI=function(){throw Error("B");};
YMI=function(Y,b){b=String.fromCharCode.apply(null,b);return Y==null?b:Y+b};
HaI=function(Y){var b=!1;b=b===void 0?!1:b;if(baG){if(b&&(wgq?!Y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(Y)))throw Error("C");Y=(VLq||(VLq=new TextEncoder)).encode(Y)}else{for(var w=0,V=new Uint8Array(3*Y.length),H=0;H<Y.length;H++){var f=Y.charCodeAt(H);if(f<128)V[w++]=f;else{if(f<2048)V[w++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&H<Y.length){var E=Y.charCodeAt(++H);if(E>=56320&&E<=57343){f=(f-55296)*1024+E-56320+65536;V[w++]=f>>18|
240;V[w++]=f>>12&63|128;V[w++]=f>>6&63|128;V[w++]=f&63|128;continue}else H--}if(b)throw Error("C");f=65533}V[w++]=f>>12|224;V[w++]=f>>6&63|128}V[w++]=f&63|128}}Y=w===V.length?V:V.subarray(0,w)}return Y};
Vv=function(Y){_.wB.setTimeout(function(){throw Y;},0)};
_.Hg=function(Y,b){return Y.lastIndexOf(b,0)==0};
fa=function(Y,b){var w=Y.length-b.length;return w>=0&&Y.indexOf(b,w)==w};
_.EM=function(Y){return/^[\s\xa0]*$/.test(Y)};
_.UM=function(Y,b){return Y.indexOf(b)!=-1};
_.Xu=function(Y,b){return _.UM(Y.toLowerCase(),b.toLowerCase())};
_.I6=function(Y,b){var w=0;Y=Dt(String(Y)).split(".");b=Dt(String(b)).split(".");for(var V=Math.max(Y.length,b.length),H=0;w==0&&H<V;H++){var f=Y[H]||"",E=b[H]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];E=/(\d*)(\D*)(.*)/.exec(E)||["","","",""];if(f[0].length==0&&E[0].length==0)break;w=gbL(f[1].length==0?0:parseInt(f[1],10),E[1].length==0?0:parseInt(E[1],10))||gbL(f[2].length==0,E[2].length==0)||gbL(f[2],E[2]);f=f[3];E=E[3]}while(w==0)}return w};
gbL=function(Y,b){return Y<b?-1:Y>b?1:0};
_.kb=function(){var Y=_.wB.navigator;return Y&&(Y=Y.userAgent)?Y:""};
sM=function(Y){if(!he||!xb)return!1;for(var b=0;b<xb.brands.length;b++){var w=xb.brands[b].brand;if(w&&_.UM(w,Y))return!0}return!1};
vg=function(Y){return _.UM(_.kb(),Y)};
Pg=function(){return he?!!xb&&xb.brands.length>0:!1};
Bg=function(){return Pg()?!1:vg("Opera")};
ftg=function(){return Pg()?!1:vg("Trident")||vg("MSIE")};
NBu=function(){return Pg()?sM("Microsoft Edge"):vg("Edg/")};
na=function(){return vg("Firefox")||vg("FxiOS")};
_.te=function(){return vg("Safari")&&!(_.pa()||(Pg()?0:vg("Coast"))||Bg()||(Pg()?0:vg("Edge"))||NBu()||(Pg()?sM("Opera"):vg("OPR"))||na()||vg("Silk")||vg("Android"))};
_.pa=function(){return Pg()?sM("Chromium"):(vg("Chrome")||vg("CriOS"))&&!(Pg()?0:vg("Edge"))||vg("Silk")};
_.Ebb=function(){return vg("Android")&&!(_.pa()||na()||Bg()||vg("Silk"))};
ceK=function(Y){var b={};Y.forEach(function(w){b[w[0]]=w[1]});
return function(w){return b[w.find(function(V){return V in b})]||""}};
UrM=function(Y){var b=_.kb();if(Y==="Internet Explorer"){if(ftg())if((Y=/rv: *([\d\.]*)/.exec(b))&&Y[1])b=Y[1];else{Y="";var w=/MSIE +([\d\.]+)/.exec(b);if(w&&w[1])if(b=/Trident\/(\d.\d)/.exec(b),w[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":Y="8.0";break;case "5.0":Y="9.0";break;case "6.0":Y="10.0";break;case "7.0":Y="11.0"}else Y="7.0";else Y=w[1];b=Y}else b="";return b}var V=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");w=[];for(var H;H=V.exec(b);)w.push([H[1],H[2],H[3]||void 0]);
b=ceK(w);switch(Y){case "Opera":if(Bg())return b(["Version","Opera"]);if(Pg()?sM("Opera"):vg("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Pg()?0:vg("Edge"))return b(["Edge"]);if(NBu())return b(["Edg"]);break;case "Chromium":if(_.pa())return b(["Chrome","CriOS","HeadlessChrome"])}return Y==="Firefox"&&na()||Y==="Safari"&&_.te()||Y==="Android Browser"&&_.Ebb()||Y==="Silk"&&vg("Silk")?(b=w[2])&&b[1]||"":""};
_.Xgu=function(Y){if(Pg()&&Y!=="Silk"){var b=xb.brands.find(function(w){return w.brand===Y});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=UrM(Y);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
R6=function(){return he?!!xb&&!!xb.platform:!1};
_.Drg=function(){return R6()?xb.platform==="Android":vg("Android")};
mrv=function(){return vg("iPhone")&&!vg("iPod")&&!vg("iPad")};
_.dB=function(){return mrv()||vg("iPad")||vg("iPod")};
_.obI=function(){return R6()?xb.platform==="macOS":vg("Macintosh")};
_.Itr=function(){return R6()?xb.platform==="Windows":vg("Windows")};
_.kKI=function(){return R6()?xb.platform==="Chrome OS":vg("CrOS")};
_.Fu=function(Y){return Y[Y.length-1]};
_.SL=function(Y,b,w){b=_.ltK(Y,b,w);return b<0?null:typeof Y==="string"?Y.charAt(b):Y[b]};
_.ltK=function(Y,b,w){for(var V=Y.length,H=typeof Y==="string"?Y.split(""):Y,f=0;f<V;f++)if(f in H&&b.call(w,H[f],f,Y))return f;return-1};
hqu=function(Y){for(var b=_.a6,w=typeof Y==="string"?Y.split(""):Y,V=Y.length-1;V>=0;V--)if(V in w&&b.call(void 0,w[V],V,Y))return V;return-1};
_.Ka=function(Y,b){return _.zK(Y,b)>=0};
_.Ca=function(Y,b){_.Ka(Y,b)||Y.push(b)};
_.$b=function(Y,b){b=_.zK(Y,b);var w;(w=b>=0)&&_.yv(Y,b);return w};
_.yv=function(Y,b){Array.prototype.splice.call(Y,b,1)};
_.jL=function(Y){var b=Y.length;if(b>0){for(var w=Array(b),V=0;V<b;V++)w[V]=Y[V];return w}return[]};
_.Je=function(Y,b){for(var w=1;w<arguments.length;w++){var V=arguments[w];if(_.TK(V)){var H=Y.length||0,f=V.length||0;Y.length=H+f;for(var E=0;E<f;E++)Y[H+E]=V[E]}else Y.push(V)}};
_.qMq=function(Y,b,w,V){Array.prototype.splice.apply(Y,xra(arguments,1))};
xra=function(Y,b,w){return arguments.length<=2?Array.prototype.slice.call(Y,b):Array.prototype.slice.call(Y,b,w)};
Vr=function(Y,b){b=b||Y;for(var w=0,V=0,H={};V<Y.length;){var f=Y[V++],E=_.bC(f)?"o"+_.wU(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(H,E)||(H[E]=!0,b[w++]=f)}b.length=w};
_.s6b=function(Y,b,w){w=w||_.H9;for(var V=0,H=Y.length,f;V<H;){var E=V+(H-V>>>1);var U=w(b,Y[E]);U>0?V=E+1:(H=E,f=!U)}return f?V:-V-1};
_.NQ=function(Y,b,w){if(!_.TK(Y)||!_.TK(b)||Y.length!=b.length)return!1;var V=Y.length;w=w||Q6G;for(var H=0;H<V;H++)if(!w(Y[H],b[H]))return!1;return!0};
_.H9=function(Y,b){return Y>b?1:Y<b?-1:0};
Q6G=function(Y,b){return Y===b};
vbe=function(Y,b,w){b=Array.prototype.splice.call(Y,b,1);Array.prototype.splice.call(Y,w,0,b[0])};
ZaB=function(Y){return PI6[Y]||""};
MLK=function(Y){if(!BBa)return _.c9(Y);Y=nbI.test(Y)?Y.replace(nbI,ZaB):Y;Y=atob(Y);for(var b=new Uint8Array(Y.length),w=0;w<Y.length;w++)b[w]=Y.charCodeAt(w);return b};
eqt=function(Y,b){Y.__closure__error__context__984382||(Y.__closure__error__context__984382={});Y.__closure__error__context__984382.severity=b};
_.mI=function(Y){Y=Error(Y);eqt(Y,"warning");return Y};
Ik=function(Y,b){if(Y!=null){var w;var V=(w=pg6)!=null?w:pg6={};w=V[Y]||0;w>=b||(V[Y]=w+1,Y=Error(),eqt(Y,"incident"),Vv(Y))}};
lC=function(Y,b,w){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(w===void 0?0:w)&&Symbol.for&&Y?Symbol.for(Y):Y!=null?Symbol(Y):Symbol():b};
v9=function(Y,b){st||_.Qr in Y||Oaa(Y,tLI);Y[_.Qr]|=b};
Z5=function(Y,b){st||_.Qr in Y||Oaa(Y,tLI);Y[_.Qr]=b};
Rqb=function(Y){if(4&Y)return 512&Y?512:1024&Y?1024:0};
no=function(Y){v9(Y,34);return Y};
drq=function(Y){v9(Y,32);return Y};
eK=function(){return typeof BigInt==="function"};
Ot=function(Y,b){return b===void 0?Y.copyOnWrite!==po&&!!(2&(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Qr]|0)):!!(2&b)&&Y.copyOnWrite!==po};
_.Lo=function(Y,b){if(Y!=null)if(typeof Y==="string")Y=Y?new Rk(Y,dU):_.F$();else if(Y.constructor!==Rk)if(FGI&&Y!=null&&Y instanceof Uint8Array)Y=Y.length?new Rk(new Uint8Array(Y),dU):_.F$();else{if(!b)throw Error();Y=void 0}return Y};
SK=function(Y,b){if(typeof b!=="number"||b<0||b>=Y.length)throw Error();};
LGt=function(Y,b,w){var V=b&128?0:-1,H=Y.length,f;if(f=!!H)f=Y[H-1],f=f!=null&&typeof f==="object"&&f.constructor===Object;var E=H+(f?-1:0);for(b=b&128?1:0;b<E;b++)w(b-V,Y[b]);if(f){Y=Y[H-1];for(var U in Y)!isNaN(U)&&w(+U,Y[U])}};
zj=function(Y){return Y&128?ak:void 0};
Ko=function(Y){Y.isGuard_doNotManuallySetPrettyPlease=!0;return Y};
ata=function(){var Y=SMG;return Ko(function(b){for(var w in Y)if(b===Y[w]&&!/^[0-9]+$/.test(w))return!0;return!1})};
_.Co=function(Y){var b=Y;if(reG(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(zqM(b)&&!Number.isSafeInteger(b))throw Error(String(b));return A_?BigInt(Y):Y=WGe(Y)?Y?"1":"0":reG(Y)?Y.trim()||"0":String(Y)};
KGa=function(Y,b){if(Y.length>b.length)return!1;if(Y.length<b.length||Y===b)return!0;for(var w=0;w<Y.length;w++){var V=Y[w],H=b[w];if(V>H)return!1;if(V<H)return!0}};
iaB=function(Y){var b=Y>>>0;jK=b;Gj=(Y-b)/4294967296>>>0};
uC=function(Y){if(Y<0){iaB(-Y);var b=_.N(Aea(jK,Gj));Y=b.next().value;b=b.next().value;jK=Y>>>0;Gj=b>>>0}else iaB(Y)};
CIg=function(Y,b){var w=b*4294967296+(Y>>>0);return Number.isSafeInteger(w)?w:_.Ys(Y,b)};
bQ=function(Y,b){var w=b&2147483648;w&&(Y=~Y+1>>>0,b=~b>>>0,Y==0&&(b=b+1>>>0));Y=CIg(Y,b);return typeof Y==="number"?w?-Y:Y:w?"-"+Y:Y};
_.Ys=function(Y,b){b>>>=0;Y>>>=0;if(b<=2097151)var w=""+(4294967296*b+Y);else eK()?w=""+(BigInt(b)<<BigInt(32)|BigInt(Y)):(w=(Y>>>24|b<<8)&16777215,b=b>>16&65535,Y=(Y&16777215)+w*6777216+b*6710656,w+=b*8147497,b*=2,Y>=1E7&&(w+=Y/1E7>>>0,Y%=1E7),w>=1E7&&(b+=w/1E7>>>0,w%=1E7),w=b+yee(w)+yee(Y));return w};
yee=function(Y){Y=String(Y);return"0000000".slice(Y.length)+Y};
_.VN=function(Y,b){b&2147483648?eK()?Y=""+(BigInt(b|0)<<BigInt(32)|BigInt(Y>>>0)):(b=_.N(Aea(Y,b)),Y=b.next().value,b=b.next().value,Y="-"+_.Ys(Y,b)):Y=_.Ys(Y,b);return Y};
HI=function(Y){if(Y.length<16)uC(Number(Y));else if(eK())Y=BigInt(Y),jK=Number(Y&BigInt(4294967295))>>>0,Gj=Number(Y>>BigInt(32)&BigInt(4294967295));else{var b=+(Y[0]==="-");Gj=jK=0;for(var w=Y.length,V=b,H=(w-b)%6+b;H<=w;V=H,H+=6)V=Number(Y.slice(V,H)),Gj*=1E6,jK=jK*1E6+V,jK>=4294967296&&(Gj+=Math.trunc(jK/4294967296),Gj>>>=0,jK>>>=0);b&&(b=_.N(Aea(jK,Gj)),Y=b.next().value,b=b.next().value,jK=Y,Gj=b)}};
Aea=function(Y,b){b=~b;Y?Y=~Y+1:b+=1;return[Y,b]};
fg=function(Y){return Array.prototype.slice.call(Y)};
_.cI=function(Y,b){throw Error(b===void 0?"unexpected value "+Y+"!":b);};
_.UX=function(Y){if(Y!=null&&typeof Y!=="number")throw Error("I`"+typeof Y+"`"+Y);return Y};
_.Xb=function(Y){if(Y==null||typeof Y==="number")return Y;if(Y==="NaN"||Y==="Infinity"||Y==="-Infinity")return Number(Y)};
$rq=function(Y){if(Y!=null&&typeof Y!=="boolean")throw Error("J`"+_.I7(Y)+"`"+Y);return Y};
_.j6I=function(Y){if(Y==null||typeof Y==="boolean")return Y;if(typeof Y==="number")return!!Y};
_.hO=function(Y){switch(typeof Y){case "bigint":return!0;case "number":return ks(Y);case "string":return GKa.test(Y);default:return!1}};
_.sX=function(Y){if(!ks(Y))throw _.mI("enum");return Y|0};
_.QN=function(Y){return Y==null?Y:ks(Y)?Y|0:void 0};
TBI=function(Y){if(typeof Y!=="number")throw _.mI("int32");if(!ks(Y))throw _.mI("int32");return Y|0};
_.vI=function(Y){return Y==null?Y:TBI(Y)};
_.PI=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return ks(Y)?Y|0:void 0};
_.ZA=function(Y){if(Y==null)return Y;if(typeof Y==="string"&&Y)Y=+Y;else if(typeof Y!=="number")return;return ks(Y)?Y>>>0:void 0};
bou=function(Y){var b=0;b=b===void 0?0:b;if(!_.hO(Y))throw _.mI("int64");var w=typeof Y;switch(b){case 512:switch(w){case "string":return BI(Y);case "bigint":return String(eX(64,Y));default:return Jet(Y)}case 1024:switch(w){case "string":return uuK(Y);case "bigint":return _.Co(eX(64,Y));default:return YtB(Y)}case 0:switch(w){case "string":return BI(Y);case "bigint":return _.Co(eX(64,Y));default:return pg(Y)}default:return _.cI(b,"Unknown format requested type for int64")}};
OX=function(Y){return Y==null?Y:bou(Y)};
w9v=function(Y){if(Y[0]==="-")return!1;var b=Y.length;return b<20?!0:b===20&&Number(Y.substring(0,6))<184467};
VKB=function(Y){var b=Y.length;return Y[0]==="-"?b<20?!0:b===20&&Number(Y.substring(0,7))>-922337:b<19?!0:b===19&&Number(Y.substring(0,6))<922337};
HoG=function(Y){if(Y<0){uC(Y);var b=_.Ys(jK,Gj);Y=Number(b);return R7(Y)?Y:b}b=String(Y);if(w9v(b))return b;uC(Y);return CIg(jK,Gj)};
gda=function(Y){if(VKB(Y))return Y;HI(Y);return _.VN(jK,Gj)};
f5I=function(Y){if(w9v(Y))return Y;HI(Y);return _.Ys(jK,Gj)};
pg=function(Y){Y=dt(Y);R7(Y)||(uC(Y),Y=bQ(jK,Gj));return Y};
_.NUL=function(Y){Y=dt(Y);return Y>=0&&R7(Y)?Y:HoG(Y)};
Jet=function(Y){Y=dt(Y);if(R7(Y))Y=String(Y);else{var b=String(Y);VKB(b)?Y=b:(uC(Y),Y=_.VN(jK,Gj))}return Y};
_.Ede=function(Y){Y=dt(Y);if(Y>=0&&R7(Y))Y=String(Y);else{var b=String(Y);w9v(b)?Y=b:(uC(Y),Y=_.Ys(jK,Gj))}return Y};
BI=function(Y){var b=dt(Number(Y));if(R7(b))return String(b);b=Y.indexOf(".");b!==-1&&(Y=Y.substring(0,b));return gda(Y)};
uuK=function(Y){var b=dt(Number(Y));if(R7(b))return _.Co(b);b=Y.indexOf(".");b!==-1&&(Y=Y.substring(0,b));return eK()?_.Co(eX(64,BigInt(Y))):_.Co(gda(Y))};
YtB=function(Y){return R7(Y)?_.Co(pg(Y)):_.Co(Jet(Y))};
_.c_g=function(Y){return R7(Y)?_.Co(_.NUL(Y)):_.Co(_.Ede(Y))};
_.UQr=function(Y){var b=dt(Number(Y));if(R7(b)&&b>=0)return String(b);b=Y.indexOf(".");b!==-1&&(Y=Y.substring(0,b));return f5I(Y)};
_.X9L=function(Y){var b=dt(Number(Y));if(R7(b)&&b>=0)return _.Co(b);b=Y.indexOf(".");b!==-1&&(Y=Y.substring(0,b));return eK()?_.Co((0,_.Fb)(64,BigInt(Y))):_.Co(f5I(Y))};
_.DQq=function(Y){if(Y==null)return Y;if(typeof Y==="bigint")return Lg(Y)?Y=Number(Y):(Y=eX(64,Y),Y=Lg(Y)?Number(Y):String(Y)),Y;if(_.hO(Y))return typeof Y==="number"?pg(Y):BI(Y)};
mQG=function(Y,b){b=b===void 0?!1:b;var w=typeof Y;if(Y==null)return Y;if(w==="bigint")return String(eX(64,Y));if(_.hO(Y))return w==="string"?BI(Y):b?Jet(Y):pg(Y)};
_.odg=function(Y){var b=typeof Y;if(Y==null)return Y;if(b==="bigint")return _.Co(eX(64,Y));if(_.hO(Y))return b==="string"?uuK(Y):YtB(Y)};
I5b=function(Y){if(Y==null)return Y;var b=typeof Y;if(b==="bigint")return String(eX(64,Y));if(_.hO(Y)){if(b==="string")return BI(Y);if(b==="number")return pg(Y)}};
kjq=function(Y){if(Y==null)return Y;var b=typeof Y;if(b==="bigint")return String((0,_.Fb)(64,Y));if(_.hO(Y)){if(b==="string")return _.UQr(Y);if(b==="number")return _.NUL(Y)}};
_.SX=function(Y){if(typeof Y!=="string")throw Error();return Y};
zt=function(Y){if(Y!=null&&typeof Y!=="string")throw Error();return Y};
_.WI=function(Y){return Y==null||typeof Y==="string"?Y:void 0};
l5L=function(Y,b,w,V){if(Y!=null&&Y[Kg]===iQ)return Y;if(!Array.isArray(Y))return w?V&2?((Y=b[AO])||(Y=new b,no(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Y=b[AO]=Y),b=Y):b=new b:b=void 0,b;w=Y[_.Qr]|0;V=w|V&32|V&2;V!==w&&Z5(Y,V);return new b(Y)};
h8q=function(Y,b,w){Y=b?TBI(Y):_.PI(Y);return Y==null?w?0:void 0:Y|0};
xQM=function(Y){return Y};
qtK=function(Y){return Y};
QkK=function(Y,b,w,V,H,f){Y=l5L(Y,V,w,f);H&&(Y=skM(Y));return Y};
vdK=function(Y){return[Y,this.get(Y)]};
BUB=function(){return PCb||(PCb=new Cg(no([]),void 0,void 0,void 0,Zou))};
Gt=function(Y){var b=yN(jX);return b?Y[b]:void 0};
e8M=function(Y,b){var w=w===void 0?!1:w;if(yN(ndq)&&yN(jX)&&void 0===ndq){var V=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=V[jX];if(!H)return;if(H=H.reviveUnknownFields)try{H(V,b,MKv);return}catch(f){Vv(f)}}w&&(Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(w=yN(jX))&&w in Y&&(Y=Y[w])&&delete Y[b])};
Oo6=function(Y,b){var w=yN(jX),V;st&&w&&((V=Y[w])==null?void 0:V[b])!=null&&Ik(p9I,3)};
R86=function(Y,b){b<100||Ik(tKq,1)};
Stq=function(Y,b,w,V){var H=V!==void 0;V=!!V;var f=yN(jX),E;!H&&st&&f&&(E=Y[f])&&Tt(E,R86);f=[];var U=Y.length;E=4294967295;var X=!1,I=!!(b&64),k=I?b&128?0:-1:void 0;if(!(b&1)){var l=U&&Y[U-1];l!=null&&typeof l==="object"&&l.constructor===Object?(U--,E=U):l=void 0;if(I&&!(b&128)&&!H){X=!0;var x;E=((x=dQg)!=null?x:xQM)(E-k,k,Y,l)+k}}b=void 0;for(x=0;x<U;x++){var Q=Y[x];if(Q!=null&&(Q=w(Q,V))!=null)if(I&&x>=E){var Z=x-k,e=void 0;((e=b)!=null?e:b={})[Z]=Q}else f[x]=Q}if(l)for(var O in l)U=l[O],U!=null&&
(U=w(U,V))!=null&&(x=+O,Q=void 0,I&&!Number.isNaN(x)&&(Q=x+k)<E?f[Q]=U:(x=void 0,((x=b)!=null?x:b={})[O]=U));b&&(X?f.push(b):f[E]=b);H&&yN(jX)&&(Y=Gt(Y))&&Y instanceof FIt&&(f[jX]=LI6(Y));return f};
a5B=function(Y){Y[0]=JO(Y[0]);Y[1]=JO(Y[1]);return Y};
JO=function(Y){switch(typeof Y){case "number":return Number.isFinite(Y)?Y:""+Y;case "bigint":return Lg(Y)?Number(Y):""+Y;case "boolean":return Y?1:0;case "object":if(Array.isArray(Y)){var b=Y[_.Qr]|0;return Y.length===0&&b&1?void 0:Stq(Y,b,JO)}if(Y!=null&&Y[Kg]===iQ)return r_v(Y);if(Y instanceof Rk){b=Y.JSC$6856_value_;if(b==null)Y="";else if(typeof b==="string")Y=b;else{if(BBa){for(var w="",V=0,H=b.length-10240;V<H;)w+=String.fromCharCode.apply(null,b.subarray(V,V+=10240));w+=String.fromCharCode.apply(null,
V?b.subarray(V):b);b=btoa(w)}else b=_.YM(b);Y=Y.JSC$6856_value_=b}return Y}if(Y instanceof Cg)return Y=Y.size!==0?Array.from(bj.prototype.entries.call(Y),a5B):void 0,Y;return}return Y};
wX=function(Y,b){if(b){dQg=b==null||b===xQM||b[z8b]!==WIq?xQM:b;try{return r_v(Y)}finally{dQg=void 0}}return r_v(Y)};
r_v=function(Y){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Stq(Y,Y[_.Qr]|0,JO)};
A_B=function(Y){switch(typeof Y){case "boolean":return KIt||(KIt=[0,void 0,!0]);case "number":return Y>0?void 0:Y===0?ioq||(ioq=[0,void 0]):[-Y,void 0];case "string":return[0,Y];case "object":return Y}};
f3=function(Y,b,w){return Y=_.gX(Y,b[0],b[1],w?1:2)};
_.gX=function(Y,b,w,V){V=V===void 0?0:V;if(Y==null){var H=32;w?(Y=[w],H|=128):Y=[];b&&(H=H&-8380417|(b&1023)<<13)}else{if(!Array.isArray(Y))throw Error("L");H=Y[_.Qr]|0;2048&H&&!(2&H)&&CCq();if(H&256)throw Error("N");if(H&64)return V!==0||H&2048||Z5(Y,H|2048),Y;if(w&&(H|=128,w!==Y[0]))throw Error("O");a:{w=Y;H|=64;var f=w.length;if(f){var E=f-1,U=w[E];if(U!=null&&typeof U==="object"&&U.constructor===Object){b=H&128?0:-1;E-=b;if(E>=1024)throw Error("Q");for(var X in U)f=+X,f<E&&(w[f+b]=U[X],delete U[X]);
H=H&-8380417|(E&1023)<<13;break a}}if(b){X=Math.max(b,f-(H&128?0:-1));if(X>1024)throw Error("R");H=H&-8380417|(X&1023)<<13}}}H|=64;V===0&&(H|=2048);Z5(Y,H);return Y};
CCq=function(){Ik(y_B,5)};
Gjt=function(Y,b){if(typeof Y!=="object")return Y;if(Array.isArray(Y)){var w=Y[_.Qr]|0;return Y.length===0&&w&1?void 0:$QI(Y,w,b)}if(Y!=null&&Y[Kg]===iQ)return jku(Y);if(Y instanceof Cg){b=Y.arrayState;if(b&2)return Y;if(!Y.size)return;w=no(Array.from(bj.prototype.entries.call(Y)));if(Y.valueCtor)for(Y=0;Y<w.length;Y++){var V=w[Y],H=V[1];H==null||typeof H!=="object"?H=void 0:H!=null&&H[Kg]===iQ?H=jku(H):Array.isArray(H)?H=$QI(H,H[_.Qr]|0,!!(b&32)):H=void 0;V[1]=H}return w}if(Y instanceof Rk)return Y};
$QI=function(Y,b,w){if(b&2)return Y;!w||4096&b||16&b?Y=N_(Y,b,!1,w&&!(b&16)):(v9(Y,34),b&4&&Object.freeze(Y));return Y};
E3=function(Y,b,w){Y=new Y.constructor(b);w&&(Y.copyOnWrite=po);Y.noLegacyNull=po;return Y};
jku=function(Y){var b=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=b[_.Qr]|0;return Ot(Y,w)?Y:cD(Y,b,w)?E3(Y,b):N_(b,w)};
N_=function(Y,b,w,V){V!=null||(V=!!(34&b));Y=Stq(Y,b,Gjt,V);V=32;w&&(V|=2);b=b&8380609|V;Z5(Y,b);return Y};
skM=function(Y){var b=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=b[_.Qr]|0;return Ot(Y,w)?cD(Y,b,w)?E3(Y,b,!0):new Y.constructor(N_(b,w,!1)):Y};
XD=function(Y){if(Y.copyOnWrite!==po)return!1;var b=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=N_(b,b[_.Qr]|0);v9(b,2048);Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;Y.copyOnWrite=void 0;Y.noLegacyNull=void 0;return!0};
Iw=function(Y){if(!XD(Y)&&Ot(Y,Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Qr]|0))throw Error();};
kM=function(Y,b){b===void 0&&(b=Y[_.Qr]|0);b&32&&!(b&4096)&&Z5(Y,b|4096)};
cD=function(Y,b,w){return w&2?!0:w&32&&!(w&4096)?(Z5(b,w|2),Y.copyOnWrite=po,!0):!1};
hc=function(Y,b,w,V,H){var f=w+(H?0:-1),E=Y.length-1;if(E>=1+(H?0:-1)&&f>=E){var U=Y[E];if(U!=null&&typeof U==="object"&&U.constructor===Object)return U[w]=V,b}if(f<=E)return Y[f]=V,b;if(V!==void 0){var X;E=((X=b)!=null?X:b=Y[_.Qr]|0)>>13&1023||536870912;w>=E?V!=null&&(f={},Y[E+(H?0:-1)]=(f[w]=V,f)):Y[f]=V}return b};
_.s3=function(Y,b,w,V,H){var f=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=f[_.Qr]|0;V=Ot(Y,E)?1:V;H=!!H||V===3;V===2&&XD(Y)&&(f=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=f[_.Qr]|0);Y=TUL(f,b);var U=Y===xM?7:Y[_.Qr]|0,X=J_b(U,E);var I=4&X?!1:!0;if(I){4&X&&(Y=fg(Y),U=0,X=q_(X,E),E=hc(f,E,b,Y));for(var k=0,l=0;k<Y.length;k++){var x=w(Y[k]);x!=null&&(Y[l++]=x)}l<k&&(Y.length=l);w=(X|4)&-513;X=w&=-1025;X&=-4097}X!==U&&(Z5(Y,X),2&X&&Object.freeze(Y));return Y=u$B(Y,X,f,
E,b,V,I,H)};
u$B=function(Y,b,w,V,H,f,E,U){var X=b;f===1||(f!==4?0:2&b||!(16&b)&&32&V)?Qt(b)||(b|=!Y.length||E&&!(4096&b)||32&V&&!(4096&b||16&b)?2:256,b!==X&&Z5(Y,b),Object.freeze(Y)):(f===2&&Qt(b)&&(Y=fg(Y),X=0,b=q_(b,V),V=hc(w,V,H,Y)),Qt(b)||(U||(b|=16),b!==X&&Z5(Y,b)));2&b||!(4096&b||16&b)||kM(w,V);return Y};
TUL=function(Y,b,w){Y=vD(Y,b,w);return Array.isArray(Y)?Y:xM};
J_b=function(Y,b){2&b&&(Y|=2);return Y|1};
Qt=function(Y){return!!(2&Y)&&!!(4&Y)||!!(256&Y)};
YXq=function(Y){return _.Lo(Y,!0)};
bgr=function(Y,b){var w=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=w[_.Qr]|0;a:{var H=V;V=Ot(Y,V);!V&&XD(Y)&&(w=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=w[_.Qr]|0);var f=vD(w,b);Y=!1;if(f==null){if(V){b=BUB();break a}f=[]}else if(f.constructor===Cg)if(f.arrayState&2&&!V)f=Array.from(bj.prototype.entries.call(f));else{b=f;break a}else Array.isArray(f)?Y=!!((f[_.Qr]|0)&2):f=[];if(V){if(!f.length){b=BUB();break a}Y||(Y=!0,no(f))}else if(Y){Y=!1;V=f;V=fg(V);for(f=0;f<
V.length;f++){var E=V[f]=fg(V[f]);Array.isArray(E[1])&&(E[1]=no(E[1]))}f=V}!Y&&H&32&&drq(f);V=new Cg(f,void 0,h8q,h8q);H=hc(w,H,b,V);Y||kM(w,H);b=V}return b};
_.PD=function(Y,b,w,V){Iw(Y);var H=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.Qr]|0;if(w==null)return hc(H,f,b),Y;var E=w===xM?7:w[_.Qr]|0,U=E,X=Qt(E),I=X||Object.isFrozen(w);X||(E=0);I||(w=fg(w),U=0,E=q_(E,f),I=!1);E|=5;var k;X=(k=Rqb(E))!=null?k:0;for(k=0;k<w.length;k++){var l=w[k],x=V(l,X);Object.is(l,x)||(I&&(w=fg(w),U=0,E=q_(E,f),I=!1),w[k]=x)}E!==U&&(I&&(w=fg(w),E=q_(E,f)),Z5(w,E));hc(H,f,b,w);return Y};
_.Zg=function(Y,b,w,V,H){Iw(Y);var f=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hc(f,f[_.Qr]|0,b,(V==="0"?Number(w)===0:w===V)?void 0:w,H);return Y};
_.BD=function(Y,b,w){if(b&2)throw Error();var V=zj(b),H=TUL(Y,w,V),f=H===xM?7:H[_.Qr]|0,E=J_b(f,b);if(2&E||Qt(E)||16&E)H=fg(H),f=0,E=q_(E,b),hc(Y,b,w,H,V);E&=-13;E!==f&&Z5(H,E);return H};
wIt=function(Y){if(st){var b;return(b=Y[n3])!=null?b:Y[n3]=new Map}if(n3 in Y)return Y[n3];b=new Map;Object.defineProperty(Y,n3,{value:b});return b};
Hgg=function(Y,b,w,V,H){var f=wIt(Y),E=VXb(f,Y,b,w,H);E!==V&&(E&&(b=hc(Y,b,E,void 0,H)),f.set(w,V));return b};
VXb=function(Y,b,w,V,H){var f=Y.get(V);if(f!=null)return f;for(var E=f=0;E<V.length;E++){var U=V[E];vD(b,U,H)!=null&&(f!==0&&(w=hc(b,w,f,void 0,H)),f=U)}Y.set(V,f);return f};
M_=function(Y,b,w,V,H){var f=!1;V=vD(Y,V,H,function(E){var U=l5L(E,w,!1,b);f=U!==E&&U!=null;return U});
if(V!=null)return f&&!Ot(V)&&kM(Y,b),V};
gsG=function(Y,b,w,V,H,f,E,U){var X=Ot(Y,w);f=X?1:f;E=!!E||f===3;X=U&&!X;(f===2||X)&&XD(Y)&&(b=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=b[_.Qr]|0);Y=TUL(b,H);var I=Y===xM?7:Y[_.Qr]|0,k=J_b(I,w);if(U=!(4&k)){var l=Y,x=w,Q=!!(2&k);Q&&(x|=2);for(var Z=!Q,e=!0,O=0,L=0;O<l.length;O++){var r=l5L(l[O],V,!1,x);if(r instanceof V){if(!Q){var C=Ot(r);Z&&(Z=!C);e&&(e=C)}l[L++]=r}}L<O&&(l.length=L);k|=4;k=e?k&-4097:k|4096;k=Z?k|8:k&-9}k!==I&&(Z5(Y,k),2&k&&Object.freeze(Y));if(X&&!(8&k||!Y.length&&
(f===1||(f!==4?0:2&k||!(16&k)&&32&w)))){Qt(k)&&(Y=fg(Y),k=q_(k,w),w=hc(b,w,H,Y));V=Y;X=k;for(I=0;I<V.length;I++)l=V[I],k=skM(l),l!==k&&(V[I]=k);X|=8;k=X=V.length?X|4096:X&-4097;Z5(Y,k)}return Y=u$B(Y,k,b,w,H,f,U,E)};
fAa=function(Y){Y==null&&(Y=void 0);return Y};
q_=function(Y,b){return Y=(2&b?Y|2:Y&-3)&-273};
_.Ntq=function(Y,b,w,V,H){Iw(Y);b=_.s3(Y,b,H,2,!0);var f;H=(f=Rqb(b===xM?7:b[_.Qr]|0))!=null?f:0;b.push(w(V,H));return Y};
Esg=function(Y,b,w,V,H,f,E){Iw(Y);var U=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Y=gsG(Y,U,U[_.Qr]|0,w,b,2,!0);if(f&&E)H!=null||(H=Y.length-1),SK(Y,H),Y.splice(H,f),Y.length||(Y[_.Qr]&=-4097);else{if(f){if(typeof H!=="number"||H<0||H>Y.length)throw Error();}else V=V!=null?V:new w;H!=void 0?Y.splice(H,f,V):Y.push(V);H=w=Y===xM?7:Y[_.Qr]|0;(V=Ot(V))?(w&=-9,Y.length===1&&(w&=-4097)):w|=4096;w!==H&&Z5(Y,w);V||kM(U)}};
cOM=function(Y,b){if(typeof Y==="string")return new O3(MLK(Y),b);if(Array.isArray(Y))return new O3(new Uint8Array(Y),b);if(Y.constructor===Uint8Array)return new O3(Y,!1);if(Y.constructor===ArrayBuffer)return Y=new Uint8Array(Y),new O3(Y,!1);if(Y.constructor===Rk)return b=tc(Y)||new Uint8Array(0),new O3(b,!0,Y);if(Y instanceof Uint8Array)return Y=Y.constructor===Uint8Array?Y:new Uint8Array(Y.buffer,Y.byteOffset,Y.byteLength),new O3(Y,!1);throw Error();};
Rw=function(){var Y=function(){throw Error();};
Object.setPrototypeOf(Y,Y.prototype);return Y};
XIg=function(Y,b){var w=w===void 0?UFu:w;return new dX(Y,b,w)};
IAu=function(Y,b,w,V,H){b=DFI(b,V);b!=null&&(w=_.mFB(Y,w),H(b,Y),_.ose(Y,w))};
L3=function(Y,b,w,V){var H=V[Y];if(H)return H;H={};H.binaryFields=V;H.messageMetadata=A_B(V[0]);var f=V[1],E=1;f&&f.constructor===Object&&(H.extensions=f,f=V[++E],typeof f==="function"&&(H.isMessageSet=!0,ktL!=null||(ktL=f),lAa!=null||(lAa=V[E+1]),f=V[E+=2]));for(var U={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var X=0;X<f.length;X++)U[f[X]]=f;f=V[++E]}for(X=1;f!==void 0;){typeof f==="number"&&(X+=f,f=V[++E]);var I=void 0;if(f instanceof dX)var k=f;else k=hRv,E--;f=void 0;
if((f=k)==null?0:f.$$isMsg){f=V[++E];I=V;var l=E;typeof f==="function"&&(f=f(),I[l]=f);I=f}f=V[++E];l=X+1;typeof f==="number"&&f<0&&(l-=f,f=V[++E]);for(;X<l;X++){var x=U[X];I?w(H,X,k,I,x):b(H,X,k,x)}}return V[Y]=H};
qXG=function(Y){return Array.isArray(Y)?Y[0]instanceof dX?Y:[xFI,Y]:[Y,void 0]};
DFI=function(Y,b){if(Y instanceof _.SQ)return Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(Y))return f3(Y,b,!1)};
s7B=function(Y,b,w,V){var H=w.$$binaryReaderFn;Y[b]=V?function(f,E,U){return H(f,E,U,V)}:H};
Q7b=function(Y,b,w,V,H){var f=w.$$binaryReaderFn,E,U;Y[b]=function(X,I,k){return f(X,I,k,U||(U=L3(aw,s7B,Q7b,V).messageMetadata),E||(E=vsv(V)),H)}};
vsv=function(Y){var b=Y[PQB];if(b!=null)return b;var w=L3(aw,s7B,Q7b,Y);b=w.isMessageSet?function(V,H){return ktL(V,H,w)}:function(V,H){for(;Zgq(H)&&H.nextWireType_!=4;){var f=H.nextField_,E=w[f];
if(E==null){var U=w.extensions;U&&(U=U[f])&&(U=Btr(U),U!=null&&(E=w[f]=U))}if(E==null||!E(H,V,f)){U=H;E=U.fieldCursor_;rX(U);if(U.discardUnknownFields)var X=void 0;else{var I=U.decoder_.cursor_-E;U.decoder_.cursor_=E;X=nsK(U.decoder_,I)}I=U=E=void 0;var k=V;X&&((E=(U=(I=k[jX])!=null?I:k[jX]=new FIt)[f])!=null?E:U[f]=[]).push(X)}}if(V=Gt(V))V.reviveUnknownFields=w.binaryFields[MXG];return!0};
Y[PQB]=b;Y[MXG]=eRg.bind(Y);return b};
eRg=function(Y,b,w,V){var H=this[aw],f=this[PQB],E=f3(void 0,H.messageMetadata,!1),U=Gt(Y);if(U){var X=!1,I=H.extensions;if(I){H=function(Z,e,O){if(O.length!==0)if(I[e])for(Z=_.N(O),e=Z.next();!e.done;e=Z.next()){e=pIb(e.value);try{X=!0,f(E,e)}finally{e.free()}}else V==null||V(Y,e,O)};
if(b==null)Tt(U,H);else if(U!=null){var k=U[b];k&&H(U,b,k)}if(X){var l=Y[_.Qr]|0;if(l&2&&l&2048&&(w==null||!w.reviveIntoImmutable))throw Error();var x=zj(l),Q=function(Z,e){if(vD(Y,Z,x)!=null)switch(w==null?void 0:w.resolutionBehavior){case 1:return;default:throw Error();}e!=null&&(l=hc(Y,l,Z,e,x));delete U[Z]};
b==null?LGt(E,E[_.Qr]|0,function(Z,e){Q(Z,e)}):Q(b,vD(E,b,x))}}}};
Btr=function(Y){Y=qXG(Y);var b=Y[0].$$binaryReaderFn;if(Y=Y[1]){var w=vsv(Y),V=L3(aw,s7B,Q7b,Y).messageMetadata;return function(H,f,E){return b(H,f,E,V,w)}}return b};
zw=function(Y,b,w){Y[b]=w.$$binaryWriterFn};
K3=function(Y,b,w,V){var H,f,E=w.$$binaryWriterFn;Y[b]=function(U,X,I){return E(U,X,I,f||(f=L3(WD,zw,K3,V).messageMetadata),H||(H=Ogb(V)))}};
Ogb=function(Y){var b=Y[tXL];if(!b){var w=L3(WD,zw,K3,Y);b=function(V,H){return RRB(V,H,w)};
Y[tXL]=b}return b};
RRB=function(Y,b,w){LGt(Y,Y[_.Qr]|0,function(V,H){if(H!=null){var f=dFv(w,V);f?f(b,H,V):V<500||Ik(Fdg,3)}});
(Y=Gt(Y))&&Tt(Y,function(V,H,f){ij(b,b.encoder_.end());for(V=0;V<f.length;V++)ij(b,tc(f[V])||new Uint8Array(0))})};
dFv=function(Y,b){var w=Y[b];if(w)return w;if(w=Y.extensions)if(w=w[b]){w=qXG(w);var V=w[0].$$binaryWriterFn;if(w=w[1]){var H=Ogb(w),f=L3(WD,zw,K3,w).messageMetadata;w=Y.isMessageSet?lAa(f,H):function(E,U,X){return V(E,U,X,f,H)}}else w=V;
return Y[b]=w}};
_.LdI=function(Y,b,w){if(Array.isArray(b)){var V=b[_.Qr]|0;if(V&4)return b;for(var H=0,f=0;H<b.length;H++){var E=Y(b[H]);E!=null&&(b[f++]=E)}f<H&&(b.length=f);w&&(Z5(b,(V|5)&-1537),V&2&&Object.freeze(b));return b}};
_.Ac=function(Y,b,w){return new dX(Y,b,w)};
_.SXM=function(Y,b,w){return new dX(Y,b,w)};
_.C3=function(Y,b,w){hc(Y,Y[_.Qr]|0,b,w,zj(Y[_.Qr]|0))};
aAM=function(Y,b,w){b=_.Xb(b);b!=null&&(_.jQ(Y,w,1),Y=Y.encoder_,w=Gw||(Gw=new DataView(new ArrayBuffer(8))),w.setFloat64(0,+b,!0),jK=w.getUint32(0,!0),Gj=w.getUint32(4,!0),_.Tw(Y,jK),_.Tw(Y,Gj))};
_.Jc=function(Y,b,w){b=I5b(b);if(b!=null){switch(typeof b){case "string":rOu(b)}if(b!=null)switch(_.jQ(Y,w,0),typeof b){case "number":Y=Y.encoder_;uC(b);zRb(Y,jK,Gj);break;case "bigint":w=BigInt.asUintN(64,b);w=new Wde(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));zRb(Y.encoder_,w.JSC$6900_lo,w.JSC$6900_hi);break;default:w=rOu(b),zRb(Y.encoder_,w.JSC$6900_lo,w.JSC$6900_hi)}}};
iga=function(Y,b,w){b=_.PI(b);b!=null&&b!=null&&(_.jQ(Y,w,0),_.Kdb(Y.encoder_,b))};
_.yOg=function(Y,b,w){AOq(Y,w,kjq(b))};
_.$Fb=function(Y,b,w){b=_.j6I(b);b!=null&&(_.jQ(Y,w,0),Y.encoder_.JSC$6902_buffer_.push(b?1:0))};
_.Gtr=function(Y,b,w){b=_.WI(b);b!=null&&j7v(Y,w,HaI(b))};
Tte=function(Y,b,w,V,H){b=DFI(b,V);b!=null&&(w=_.mFB(Y,w),H(b,Y),_.ose(Y,w))};
_.JOM=function(Y,b,w){b=b==null||typeof b=="string"||b instanceof Rk?b:void 0;b!=null&&j7v(Y,w,cOM(b,!0).buffer)};
_.ube=function(Y,b,w){b=_.PI(b);b!=null&&(b=parseInt(b,10),_.jQ(Y,w,0),_.Kdb(Y.encoder_,b))};
_.uj=function(Y,b){return function(w,V){var H={treatNewDataAsImmutable:!0};V&&Object.assign(H,V);w=pIb(w,void 0,void 0,H);try{var f=new Y,E=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;vsv(b)(E,w);var U=f}finally{w.free()}return U}};
_.YH=function(Y){return function(b){return Y36(b,Y)}};
b3q=function(Y){return function(){return Y36(this,Y)}};
_.bH=function(Y){return Ko(function(b){return b instanceof Y&&!Ot(b)})};
_.wE=function(Y){return function(b){return wDr(Y,b)}};
fgg=function(Y,b){return VQg({child:Y,origin:b||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:H36,getPayloadCase:function(w){return w.getPayloadCase()},
createInitMessage:function(w){var V=new V$,H=new gMI;w=_.HN(H,1,w);return _.gE(V,5,fu,w)}})};
N1=function(Y){return{valueOf:Y}.valueOf()};
EMq=function(){var Y=null;if(!NXu)return Y;try{var b=function(w){return w};
Y=NXu.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(w){}return Y};
U_I=function(){ccg===void 0&&(ccg=EMq());return ccg};
_.Uu=function(Y){var b=U_I();Y=b?b.createScriptURL(Y):Y;return new cN(Y)};
_.Xk=function(Y){if(Y instanceof cN)return Y.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
_.DD=function(Y){return Object.isFrozen(Y)&&Object.isFrozen(Y.raw)};
mm=function(Y){return Y.toString().indexOf("`")===-1};
Ig=function(Y){return new _.og(XDr,Y)};
kH=function(Y){return Y instanceof _.og};
_.lH=function(Y){if(kH(Y))return Y.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
q1=function(Y){return new D_M(function(b){return b.substr(0,Y.length+1).toLowerCase()===Y+":"})};
su=function(Y,b){b=b===void 0?m_e:b;if(kH(Y))return Y;for(var w=0;w<b.length;++w){var V=b[w];if(V instanceof D_M&&V.isValid(Y))return Ig(Y)}};
_.PN=function(Y,b){b=b===void 0?m_e:b;return su(Y,b)||vN};
_.ZD=function(Y){var b=window;if(typeof MediaSource!=="undefined"&&Y instanceof MediaSource||typeof b.ManagedMediaSource!=="undefined"&&Y instanceof b.ManagedMediaSource)return Ig(URL.createObjectURL(Y));b=Y.type;b.toLowerCase()==="application/octet-stream"?b=!0:(b=b.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),b=(b==null?void 0:b.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])));if(!b)throw Error("da");return Ig(URL.createObjectURL(Y))};
_.nu=function(Y){for(var b=_.BN.apply(1,arguments),w=[Y[0]],V=0;V<b.length;V++)w.push(String(b[V])),w.push(Y[V+1]);return Ig(w.join(""))};
_.Igt=function(Y){if(!oMu){a:{var b=document.createElement("a");try{b.href=Y}catch(w){Y=void 0;break a}Y=b.protocol;Y=Y===":"||Y===""?"https:":Y}return Y}try{b=new URL(Y)}catch(w){return"https:"}return b.protocol};
_.M1=function(Y){Y instanceof _.og?Y=_.lH(Y):Y=kwM.test(Y)?Y:void 0;return Y};
er=function(Y,b){b=_.M1(b);b!==void 0&&(Y.href=b)};
Ou=function(Y){var b=U_I();Y=b?b.createHTML(Y):Y;return new pu(Y)};
tz=function(Y){if(Y instanceof pu)return Y.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.Rg=function(Y,b){Y.src=_.Xk(b).toString()};
lgK=function(Y,b){Y.setAttribute("sandbox","");for(var w=0;w<b.length;w++)Y.sandbox.supports&&!Y.sandbox.supports(b[w])||Y.sandbox.add(b[w])};
_.hYg=function(Y,b,w){Y.removeAttribute("srcdoc");switch(b){case 0:if(w instanceof cN)throw new dE("TrustedResourceUrl",0);lgK(Y,[]);b=_.M1(w);b!==void 0&&(Y.src=b);break;case 1:if(!(w instanceof cN))throw new dE(typeof w,1);lgK(Y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Rg(Y,w);break;case 2:if(w instanceof cN)throw new dE("TrustedResourceUrl",2);lgK(Y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
b=_.M1(w);b!==void 0&&(Y.src=b);break;default:_.cI(b)}};
_.Fk=function(Y,b,w,V){b=_.M1(b);return b!==void 0?Y.open(b,w,V):null};
_.Lu=function(Y){Y=Y===void 0?document:Y;var b,w;Y=(w=(b=Y).querySelector)==null?void 0:w.call(b,"script[nonce]");return Y==null?"":Y.nonce||Y.getAttribute("nonce")||""};
_.rE=function(Y){var b=U_I();Y=b?b.createScript(Y):Y;return new _.ag(Y)};
zz=function(Y){if(Y instanceof _.ag)return Y.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
x_6=function(Y){var b=_.Lu(Y.ownerDocument);b&&Y.setAttribute("nonce",b)};
_.WN=function(Y,b){Y.textContent=zz(b);x_6(Y)};
_.Ku=function(Y,b){Y.src=_.Xk(b);x_6(Y)};
_.iH=function(Y,b){if(Y.nodeType===1&&/^(script|style)$/i.test(Y.tagName))throw Error("da");Y.innerHTML=tz(b)};
_.Az=function(Y,b,w,V){if(Y.length===0)throw Error("da");Y=Y.map(function(f){if(f instanceof q3g)f=f.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return f});
var H=w.toLowerCase();if(Y.every(function(f){return H.indexOf(f)!==0}))throw Error("fa`"+w);
b.setAttribute(w,V)};
_.Cu=function(Y,b,w){if(b instanceof cN)Y.href=_.Xk(b).toString(),Y.rel=w;else{if(swr.indexOf(w)===-1)throw Error("ga`"+w);b=_.M1(b);b!==void 0&&(Y.href=b,Y.rel=w)}};
Qwr=function(Y){return"function"==typeof _.y$&&Y instanceof _.y$};
_.vMG=function(Y){if(Qwr(Y))return Y.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.$H=function(Y,b){b=_.M1(b);b!==void 0&&(Y.href=b)};
jr=function(Y,b){Y&&(b=Y.indexOf(b),0<=b&&Y.splice(b,1))};
Gz=function(Y){return typeof Y==="function"};
PjL=function(Y){return Y instanceof Tz||Y&&"closed"in Y&&Gz(Y.remove)&&Gz(Y.add)&&Gz(Y.unsubscribe)};
Jz=function(){};
uH=function(Y){Z3e(function(){throw Y;})};
b7=function(Y){return Y};
wC=function(){return BXa(_.BN.apply(0,arguments))};
BXa=function(Y){return Y.length===0?b7:Y.length===1?Y[0]:function(b){return Y.reduce(function(w,V){return V(w)},b)}};
nMM=function(Y){var b;return(b=Y!=null?Y:void 0)!=null?b:Promise};
MQM=function(Y,b){return new Ve(function(w){var V=0;return b.schedule(function(){V===Y.length?w.complete():(w.next(Y[V++]),w.closed||this.schedule())})})};
eYr=function(Y,b){if(!Y)throw Error("ha");return new Ve(function(w){var V=new Tz;V.add(b.schedule(function(){var H=Y[Symbol.asyncIterator]();V.add(b.schedule(function(){var f=this;H.next().then(function(E){E.done?w.complete():(w.next(E.value),f.schedule())})}))}));
return V})};
pDv=function(Y,b,w){b=b.schedule(function(){try{w.call(this)}catch(V){Y.error(V)}},0);
Y.add(b)};
O3q=function(Y,b){return new Ve(function(w){var V;w.add(b.schedule(function(){V=Y[Ht]();pDv(w,b,function(){var H=V.next(),f=H.value;H.done?w.complete():(w.next(f),this.schedule())})}));
return function(){var H;return Gz((H=V)==null?void 0:H.return)&&V.return()}})};
tQe=function(Y,b){return new Ve(function(w){var V=new Tz;V.add(b.schedule(function(){var H=Y[gC]();V.add(H.subscribe({next:function(f){V.add(b.schedule(function(){return w.next(f)}))},
error:function(f){V.add(b.schedule(function(){return w.error(f)}))},
complete:function(){V.add(b.schedule(function(){return w.complete()}))}}))}));
return V})};
RYM=function(Y,b){return new Ve(function(w){return b.schedule(function(){return Y.then(function(V){w.add(b.schedule(function(){w.next(V);w.add(b.schedule(function(){return w.complete()}))}))},function(V){w.add(b.schedule(function(){return w.error(V)}))})})})};
d_q=function(Y){return new TypeError("ia`"+(Y!==null&&typeof Y==="object"?"an invalid object":"'"+Y+"'"))};
Lvq=function(Y,b){if(Y!=null){if(Gz(Y[gC]))return tQe(Y,b);if(FvI(Y))return MQM(Y,b);if(Gz(Y==null?void 0:Y.then))return RYM(Y,b);if(Symbol.asyncIterator&&Gz(Y==null?void 0:Y[Symbol.asyncIterator]))return eYr(Y,b);if(Gz(Y==null?void 0:Y[Ht]))return O3q(Y,b)}throw d_q(Y);};
Ex=function(Y,b){return b?Lvq(Y,b):fh(Y)};
fh=function(Y){if(Y instanceof Ve)return Y;if(Y!=null){if(Gz(Y[gC]))return S3t(Y);if(FvI(Y))return agb(Y);if(Gz(Y==null?void 0:Y.then))return rcb(Y);if(Symbol.asyncIterator&&Gz(Y==null?void 0:Y[Symbol.asyncIterator]))return zYe(Y);if(Gz(Y==null?void 0:Y[Ht]))return WvB(Y)}throw d_q(Y);};
S3t=function(Y){return new Ve(function(b){var w=Y[gC]();if(Gz(w.subscribe))return w.subscribe(b);throw new TypeError("ja");})};
agb=function(Y){return new Ve(function(b){for(var w=0;w<Y.length&&!b.closed;w++)b.next(Y[w]);b.complete()})};
rcb=function(Y){return new Ve(function(b){Y.then(function(w){b.closed||(b.next(w),b.complete())},function(w){return b.error(w)}).then(null,uH)})};
WvB=function(Y){return new Ve(function(b){for(var w=Y[Ht]();!b.closed;){var V=w.next(),H=V.value;V.done?b.complete():b.next(H)}return function(){return Gz(w==null?void 0:w.return)&&w.return()}})};
zYe=function(Y){return new Ve(function(b){KvI(Y,b).catch(function(w){return b.error(w)})})};
KvI=function(Y,b){var w,V,H,f,E,U;return _.c(function(X){switch(X.nextAddress){case 1:_.ct(X,2,3);var I=Y[Symbol.asyncIterator];f=I!==void 0?I.call(Y):new i3g(_.N(Y));case 5:return _.D(X,f.next(),8);case 8:V=X.yieldResult;if(V.done){X.jumpTo(3);break}E=V.value;b.next(E);X.jumpTo(5);break;case 3:_.Ux(X);_.X3(X,9);if(!V||V.done||!(H=f.return)){X.jumpTo(9);break}return _.D(X,H.call(f),9);case 9:_.Ux(X,0,0,1);if(w)throw w.error;_.Dl(X,10,1);break;case 10:_.Dl(X,4);break;case 2:U=_.mS(X);w={error:U};X.jumpTo(3);
break;case 4:b.complete(),_.om(X)}})};
Im=function(Y,b){return b?MQM(Y,b):agb(Y)};
Acg=function(Y){return Gz(Y[Y.length-1])?Y.pop():void 0};
kF=function(Y){var b=Y[Y.length-1];return b&&Gz(b.schedule)?Y.pop():void 0};
l7=function(){var Y=_.BN.apply(0,arguments),b=kF(Y);return b?MQM(Y,b):Im(Y)};
hp=function(Y){var b=Gz(Y)?Y:function(){return Y};
return new Ve(function(w){return w.error(b())})};
xF=function(Y){return function(b){if(Gz(b==null?void 0:b.lift))return b.lift(function(w){try{return Y(w,this)}catch(V){this.error(V)}});
throw new TypeError("ka");}};
Pt=function(){return xF(function(Y,b){var w=null;Y._refCount++;var V=new vt(b,void 0,void 0,void 0,function(){if(!Y||Y._refCount<=0||0<--Y._refCount)w=null;else{var H=Y._connection,f=w;w=null;!H||f&&H!==f||H.unsubscribe();b.unsubscribe()}});
Y.subscribe(V);V.closed||(w=Y.connect())})};
ycb=function(){var Y=Cjb;var b=b===void 0?0:b;return xF(function(w,V){V.add(Y.schedule(function(){return w.subscribe(V)},b))})};
Zl=function(Y){return xF(function(b,w){var V=0;b.subscribe(new vt(w,function(H){w.next(Y.call(void 0,H,V++))}))})};
jwv=function(Y){return Zl(function(b){return $_q(b)?Y.apply(null,_.Bt(b)):Y(b)})};
Yuu=function(Y){if(Y.length===1){var b=Y[0];if(GwL(b))return{args:b,keys:null};if(b&&typeof b==="object"&&TXq(b)===JcK)return Y=uDI(b),{args:Y.map(function(w){return b[w]}),
keys:Y}}return{args:Y,keys:null}};
nh=function(){var Y=_.BN.apply(0,arguments),b=kF(Y),w=Acg(Y);Y=Yuu(Y);var V=Y.args,H=Y.keys;if(V.length===0)return Ex([],b);b=new Ve(buv(V,b,H?function(f){for(var E={},U=0;U<f.length;U++)E[H[U]]=f[U];return E}:b7));
return w?b.pipe(jwv(w)):b};
buv=function(Y,b,w){w=w===void 0?b7:w;return function(V){wNb(b,function(){for(var H=Y.length,f=Array(H),E=H,U=Y.map(function(){return!1}),X=!0,I={i$jscomp$216:0};I.i$jscomp$216<H;I={i$jscomp$216:I.i$jscomp$216},I.i$jscomp$216++)wNb(b,function(k){return function(){Ex(Y[k.i$jscomp$216],b).subscribe(new M6(V,function(l){f[k.i$jscomp$216]=l;
X&&(U[k.i$jscomp$216]=!0,X=!U.every(b7));X||V.next(w(f.slice()))},function(){return--E===0}))}}(I),V)},V)}};
wNb=function(Y,b,w){Y?w.add(Y.schedule(b)):b()};
VrG=function(Y,b,w,V){var H=[],f=0,E=0,U=!1,X=function(I){f++;fh(w(I,E++)).subscribe(new vt(b,function(k){b.next(k)},void 0,function(){f--;
for(var k={};H.length&&f<V;k={bufferedValue:void 0})k.bufferedValue=H.shift(),X(k.bufferedValue);!U||H.length||f||b.complete()}))};
Y.subscribe(new vt(b,function(I){return f<V?X(I):H.push(I)},void 0,function(){U=!0;
!U||H.length||f||b.complete()}));
return function(){H=null}};
eC=function(Y,b){var w=w===void 0?Infinity:w;if(Gz(b))return eC(function(V,H){return Zl(function(f,E){return b(V,f,H,E)})(fh(Y(V,H)))},w);
typeof b==="number"&&(w=b);return xF(function(V,H){return VrG(V,H,Y,w)})};
HuK=function(Y){Y=Y===void 0?Infinity:Y;return eC(b7,Y)};
gHa=function(){var Y=_.BN.apply(0,arguments);return HuK(1)(Im(Y,kF(Y)))};
ph=function(Y){return new Ve(function(b){fh(Y()).subscribe(b)})};
Ox=function(Y,b,w){if(Gz(w)){var V=w;w=void 0}if(V)return Ox(Y,b,w).pipe(jwv(V));V=_.N(Gz(Y.addEventListener)&&Gz(Y.removeEventListener)?fDM.map(function(E){return function(U){return Y[E](b,U,w)}}):Gz(Y.addListener)&&Gz(Y.removeListener)?NEB.map(EHu(Y,b)):Gz(Y.on)&&Gz(Y.off)?czI.map(EHu(Y,b)):[]);
var H=V.next().value,f=V.next().value;return!H&&FvI(Y)?eC(function(E){return Ox(E,b,w)})(Im(Y)):new Ve(function(E){if(!H)throw new TypeError("la");
var U=function(){var X=_.BN.apply(0,arguments);return E.next(1<X.length?X:X[0])};
H(U);return function(){return f(U)}})};
EHu=function(Y,b){return function(w){return function(V){return Y[w](b,V)}}};
Rm=function(){var Y=_.BN.apply(0,arguments),b=kF(Y);var w=typeof Y[Y.length-1]==="number"?Y.pop():Infinity;return Y.length?Y.length===1?fh(Y[0]):HuK(w)(Im(Y,b)):tp};
XNe=function(Y){return Y.length===1&&U1r(Y[0])?Y[0]:Y};
D1a=function(){var Y=XNe(_.BN.apply(0,arguments));return xF(function(b,w){var V=[b].concat(_.Bt(Y)),H=function(){if(!w.closed)if(V.length>0){try{var f=fh(V.shift())}catch(U){H();return}var E=new vt(w,void 0,Jz,Jz);w.add(f.subscribe(E));E.add(H)}else w.complete()};
H()})};
dC=function(Y){return xF(function(b,w){var V=0;b.subscribe(new vt(w,function(H){return Y.call(void 0,H,V++)&&w.next(H)}))})};
oHg=function(){var Y=_.BN.apply(0,arguments);Y=XNe(Y);return Y.length===1?fh(Y[0]):new Ve(m1L(Y))};
m1L=function(Y){return function(b){for(var w=[],V={i$jscomp$219:0};w&&!b.closed&&V.i$jscomp$219<Y.length;V={i$jscomp$219:V.i$jscomp$219},V.i$jscomp$219++)w.push(fh(Y[V.i$jscomp$219]).subscribe(new vt(b,function(H){return function(f){if(w){for(var E=0;E<w.length;E++)E!==H.i$jscomp$219&&w[E].unsubscribe();w=null}b.next(f)}}(V))))}};
IDu=function(){var Y=_.BN.apply(0,arguments),b=Acg(Y),w=XNe(Y);return w.length?new Ve(function(V){var H=w.map(function(){return[]}),f=w.map(function(){return!1});
V.add(function(){H=f=null});
for(var E={sourceIndex$jscomp$1:0};!V.closed&&E.sourceIndex$jscomp$1<w.length;E={sourceIndex$jscomp$1:E.sourceIndex$jscomp$1},E.sourceIndex$jscomp$1++)fh(w[E.sourceIndex$jscomp$1]).subscribe(new vt(V,function(U){return function(X){H[U.sourceIndex$jscomp$1].push(X);H.every(function(I){return I.length})&&(X=H.map(function(I){return I.shift()}),V.next(b?b.apply(null,_.Bt(X)):X),H.some(function(I,k){return!I.length&&f[k]})&&V.complete())}}(E),void 0,function(U){return function(){f[U.sourceIndex$jscomp$1]=
!0;
!H[U.sourceIndex$jscomp$1].length&&V.complete()}}(E)));
return function(){H=f=null}}):tp};
kze=function(Y){var b,w,V;return!!Y&&typeof Y.active==="boolean"&&typeof((b=Y.clock)==null?void 0:b.now)==="function"&&((w=Y.clock)==null?void 0:w.timeline)!==void 0&&!((V=Y.lastMeasurement)==null||!V.timestamp)&&typeof Y.equivalentTo==="function"&&typeof Y.extrapolateToNow==="function"&&typeof Y.extrapolateToTime==="function"&&typeof Y.map==="function"&&typeof Y.joinWith==="function"};
lDI=function(Y){function b(w){return typeof w==="boolean"||typeof w==="string"||typeof w==="number"||w===void 0||w===null}
return b(Y)?!0:Array.isArray(Y)?Y.every(b):typeof Y==="object"?Object.keys(Y).every(function(w){return typeof w==="string"})&&Object.values(Y).every(function(w){return Array.isArray(w)?w.every(b):b(w)}):!1};
h4v=function(Y){if(lDI(Y))return Y;if(kze(Y))return{lastMeasurement:{value:h4v(Y.lastMeasurement.value),timestamp:F3(Y.lastMeasurement.timestamp,new SC(0,Y.lastMeasurement.timestamp.timeline))},active:Y.active};try{return JSON.parse(JSON.stringify(Y))}catch(b){}return String(Y)};
am=function(Y,b){return function(w){return new Ve(function(V){return w.subscribe(function(H){Y.timeExecution(b,function(){V.next(H)})()},function(H){Y.timeExecution(b,function(){V.error(H)})()},function(){Y.timeExecution(b,function(){V.complete()})()})})}};
x1L=function(Y,b){var w=!1;return new Ve(function(V){var H=Y.setTimeout(function(){w=!0;V.next(!0);V.complete()},b);
return function(){w||Y.clearTimeout(H)}})};
quv=function(Y){Y=Y.global;if(Y.fetchLater)return Y.fetchLater.bind(Y)};
rC=function(Y){return xF(function(b,w){var V=null,H=!1,f;V=b.subscribe(new vt(w,void 0,function(E){f=fh(Y(E,rC(Y)(b)));V?(V.unsubscribe(),V=null,f.subscribe(w)):H=!0}));
H&&(V.unsubscribe(),V=null,f.subscribe(w))})};
sgM=function(Y,b,w){return function(V,H){var f=w,E=b,U=0;V.subscribe(new vt(H,function(X){var I=U++;E=f?Y(E,X,I):(f=!0,X);H.next(E)},void 0,void 0))}};
Qgr=function(Y){Y=Y===void 0?null:Y;return xF(function(b,w){var V=!1;b.subscribe(new vt(w,function(H){V=!0;w.next(H)},void 0,function(){V||w.next(Y);
w.complete()}))})};
z1=function(){return xF(function(Y,b){Y.subscribe(new vt(b,Jz))})};
Wt=function(Y){return xF(function(b,w){b.subscribe(new vt(w,function(){return w.next(Y)}))})};
i7=function(Y){return Y<=0?function(){return tp}:xF(function(b,w){var V=0;
b.subscribe(new vt(w,function(H){++V<=Y&&(w.next(H),Y<=V&&w.complete())}))})};
Ap=function(Y){var b=b===void 0?b7:b;var w;Y=(w=Y)!=null?w:vHK;return xF(function(V,H){var f,E=!0;V.subscribe(new vt(H,function(U){var X=b(U);if(E||!Y(f,X))E=!1,f=X,H.next(U)}))})};
vHK=function(Y,b){return Y===b};
Zua=function(Y){Y=Y===void 0?PHv:Y;return xF(function(b,w){var V=!1;b.subscribe(new vt(w,function(H){V=!0;w.next(H)},void 0,function(){return V?w.complete():w.error(Y())}))})};
PHv=function(){return new BEK};
Ch=function(){var Y=_.BN.apply(0,arguments);return function(b){return gHa(b,l7.apply(null,_.Bt(Y)))}};
nHI=function(Y){return xF(function(b,w){var V=0;b.subscribe(new vt(w,function(H){Y.call(void 0,H,V++,b)||(w.next(!1),w.complete())},void 0,function(){w.next(!0);
w.complete()}))})};
Mrr=function(){return xF(function(Y,b){var w=[];Y.subscribe(new vt(b,function(V){w.push(V);1<w.length&&w.shift()},void 0,function(){for(var V=_.N(w),H=V.next();!H.done;H=V.next())b.next(H.value);
b.complete()},function(){w=null}))})};
e4M=function(Y,b){var w=arguments.length>=2;return function(V){return V.pipe(Y?dC(function(H,f){return Y(H,f,V)}):b7,Mrr(),w?Qgr(b):Zua(function(){return new BEK}))}};
$F=function(Y){var b=Gz(Y)?Y:function(){return Y};
return Gz()?xF(function(w,V){var H=b();(void 0)(H).subscribe(V).add(w.subscribe(H))}):function(w){var V=new ye(w,b);
Gz(w==null?void 0:w.lift)&&(V.lift=w.lift);V.source=w;V.subjectFactory=b;return V}};
G1=function(Y){var b=new jC(Y,void 0,void 0);return function(w){return $F(function(){return b})(w)}};
T1=function(Y,b){return xF(sgM(Y,b,arguments.length>=2))};
Jp=function(){var Y=_.BN.apply(0,arguments),b=kF(Y);return xF(function(w,V){(b?gHa(Y,w,b):gHa(Y,w)).subscribe(V)})};
u7=function(Y){return xF(function(b,w){var V=null,H=0,f=!1;b.subscribe(new vt(w,function(E){var U;(U=V)==null||U.unsubscribe();U=H++;fh(Y(E,U)).subscribe(V=new vt(w,function(X){return w.next(X)},void 0,function(){V=null;
f&&!V&&w.complete()}))},void 0,function(){(f=!0,!V)&&w.complete()}))})};
YQ=function(Y,b){b=b===void 0?!1:b;return xF(function(w,V){var H=0;w.subscribe(new vt(V,function(f){var E=Y(f,H++);(E||b)&&V.next(f);!E&&V.complete()}))})};
ba=function(Y,b,w){var V=Gz(Y)||b||w?{next:Y,error:b,complete:w}:Y;return V?xF(function(H,f){H.subscribe(new vt(f,function(E){var U;(U=V.next)==null||U.call(V,E);f.next(E)},function(E){var U;
(U=V.error)==null||U.call(V,E);f.error(E)},function(){var E;
(E=V.complete)==null||E.call(V);f.complete()}))}):b7};
pNa=function(){var Y=_.BN.apply(0,arguments),b=Acg(Y);return xF(function(w,V){for(var H=Y.length,f=Array(H),E=Y.map(function(){return!1}),U=!1,X={i$jscomp$229:0};X.i$jscomp$229<H;X={i$jscomp$229:X.i$jscomp$229},X.i$jscomp$229++)fh(Y[X.i$jscomp$229]).subscribe(new vt(V,function(I){return function(k){f[I.i$jscomp$229]=k;
U||E[I.i$jscomp$229]||(E[I.i$jscomp$229]=!0,(U=E.every(b7))&&(E=null))}}(X),void 0,Jz));
w.subscribe(new vt(V,function(I){U&&(I=[I].concat(_.Bt(f)),V.next(b?b.apply(null,_.Bt(I)):I))}))})};
OuB=function(Y){var b=[],w=0,V;for(V in Y)b[w++]=V;return b};
tr6=function(Y,b){for(var w in Y)if(Y[w]==b)return!0;return!1};
R4r=function(Y,b,w){for(var V in Y)if(b.call(w,Y[V],V,Y))return V};
d1b=function(Y){if(!Y||typeof Y!=="object")return Y;if(typeof Y.clone==="function")return Y.clone();if(typeof Map!=="undefined"&&Y instanceof Map)return new Map(Y);if(typeof Set!=="undefined"&&Y instanceof Set)return new Set(Y);if(Y instanceof Date)return new Date(Y.getTime());var b=Array.isArray(Y)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(Y)||Y instanceof DataView?{}:new Y.constructor(Y.length),w;for(w in Y)b[w]=d1b(Y[w]);return b};
FmG=function(Y){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return FmG.apply(null,arguments[0]);if(b%2)throw Error("pa");for(var w={},V=0;V<b;V+=2)w[arguments[V]]=arguments[V+1];return w};
Lmq=function(Y){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return Lmq.apply(null,arguments[0]);for(var w={},V=0;V<b;V++)w[arguments[V]]=!0;return w};
_.wF=function(Y){return new q3g(Y[0].toLowerCase())};
SuI=function(Y){try{return new URL(Y,window.document.baseURI)}catch(b){return new URL("about:invalid")}};
aDL=function(Y,b){var w=b.createRange();w.selectNode(b.body);Y=Ou(Y);return w.createContextualFragment(tz(Y))};
rzM=function(Y){Y=Y.nodeName;return typeof Y==="string"?Y:"FORM"};
z4M=function(Y){Y=Y.nodeType;return Y===1||typeof Y!=="number"};
VB=function(Y,b,w){Y.setAttribute(b,w)};
WmG=function(Y){return Y.parts.map(function(b){var w=b.descriptor;return""+b.url+(w?" "+w:"")}).join(" , ")};
_.HL=function(Y){var b=_.BN.apply(1,arguments);if(b.length===0)return _.Uu(Y[0]);for(var w=Y[0],V=0;V<b.length;V++)w+=encodeURIComponent(b[V])+Y[V+1];return _.Uu(w)};
_.gF=function(Y,b){Y=_.Xk(Y).toString();var w=Y.split(/[?#]/),V=/[?]/.test(Y)?"?"+w[1]:"";return Kmt(w[0],V,/[#]/.test(Y)?"#"+(V?w[2]:w[1]):"",b)};
Kmt=function(Y,b,w,V){function H(E,U){E!=null&&(Array.isArray(E)?E.forEach(function(X){return H(X,U)}):(b+=f+encodeURIComponent(U)+"="+encodeURIComponent(E),f="&"))}
var f=b.length?"&":"?";V.constructor===Object&&(V=Object.entries(V));Array.isArray(V)?V.forEach(function(E){return H(E[1],E[0])}):V.forEach(H);
return _.Uu(Y+b+w)};
fl=function(Y,b,w,V){this.top=Y;this.right=b;this.bottom=w;this.left=V};
iuK=function(Y){Y=Y.global;if(Y.PendingGetBeacon)return Y.PendingGetBeacon};
Ey=function(Y){return function(b){return b.pipe(AzG(Y,$F(new ND)))}};
cL=function(Y){return function(b){return b.pipe(AzG(Y,G1(1)))}};
AzG=function(Y,b){function w(V){return new Ve(function(H){return V.subscribe(function(f){Uy(Y,function(){return void H.next(f)},3)},function(f){Uy(Y,function(){return void H.error(f)},3)},function(){Uy(Y,function(){return void H.complete()},3)})})}
return wC(w,ycb(),b,Pt(),w)};
$16=function(Y){var b=CHu(Y);return b===null?new XE(null):b.pipe(Zl(function(w){w=w.serialize();if(yzK)w=_.wB.btoa(w);else{for(var V=[],H=0,f=0;f<w.length;f++){var E=w.charCodeAt(f);E>255&&(V[H++]=E&255,E>>=8);V[H++]=E}w=_.YM(V)}return w}),i7(1),cL(Y.queue))};
jgu=function(Y){var b=b===void 0?{}:b;if(typeof Event==="function")return new Event(Y,b);if(typeof document!=="undefined"){var w=document.createEvent("CustomEvent");w.initCustomEvent(Y,b.bubbles||!1,b.cancelable||!1,b.detail);return w}throw Error();};
Gzu=function(Y){return typeof Y==="string"?document.getElementById(Y):Y};
Jz6=function(Y){var b=!1;b=b===void 0?!1:b;if(Y.tagName==="IMG"){if(Y.complete&&(!Y.naturalWidth||!Y.naturalHeight))return!0;var w;if(b&&((w=Y.style)==null?void 0:w.display)==="none")return!0}var V,H;return TEb.test((V=Y.getAttribute("width"))!=null?V:"")&&TEb.test((H=Y.getAttribute("height"))!=null?H:"")};
uku=function(Y,b){if(Y.tagName==="IMG")return Y.naturalWidth&&Y.naturalHeight?!0:!1;try{if(Y.readyState)var w=Y.readyState;else{var V,H;w=(V=Y.contentWindow)==null?void 0:(H=V.document)==null?void 0:H.readyState}return w==="complete"}catch(f){return b===void 0?!1:b}};
YxB=function(Y){Y||(Y=function(b,w,V){b.addEventListener(w,V)});
return Y};
HhM=function(Y,b){var w=bht();w=w===void 0?new wtK:w;if(Y=Gzu(Y)){var V=YxB(V);for(var H=!1,f=function(O){H||(H=!0,b(O))},E,U=2,X=0;X<VCb.length;++X)if(VCb[X]===Y.tagName){U=3;
E=[Y];break}E||(E=Y.querySelectorAll(VCb.join(",")));var I=0,k=0,l=!0,x=Y=!1;X={};for(var Q=0;Q<E.length;X={isImg:void 0},Q++){var Z=E[Q];if(!Jz6(Z))if(X.isImg=Z.tagName==="IMG",uku(Z,w.crossDomainLoadedDefault))Y=!0,X.isImg&&(l=!0);else{I++;var e=function(O){return function(L){I--;!I&&l&&f(U);O.isImg&&(L=L&&L.type==="error",k--,L||(l=!0),!k&&x&&l&&f(U))}}(X);
V(Z,"load",e);X.isImg&&(k++,V(Z,"error",e))}}k===0&&(l=!0);E=null;E=_.wB.document.readyState==="complete";if(I===0&&!Y&&E)U=5;else if(I||!Y){V(_.wB,"load",function(){!w.pendingImagesBlockLoad||!k&&l?f(4):x=!0});
return}f(U)}};
gFt=function(Y,b,w){if(Y)for(var V=0;Y!=null&&V<500&&!w(Y);++V)Y=b(Y)};
flv=function(Y,b){gFt(Y,function(w){try{return w===w.parent?null:w.parent}catch(V){}return null},b)};
NCa=function(Y,b){if(Y.tagName=="IFRAME")b(Y);else{Y=Y.querySelectorAll("IFRAME");for(var w=0;w<Y.length&&!b(Y[w]);++w);}};
EFK=function(Y){return(Y=Y.ownerDocument)&&(Y.parentWindow||Y.defaultView)||null};
cpa=function(Y,b,w){try{var V=JSON.parse(w.data)}catch(E){}if(typeof V==="object"&&V&&V.type==="creativeLoad"){var H=EFK(Y);if(w.source&&H){var f;flv(w.source,function(E){try{if(E.parent===H)return f=E,!0}catch(U){}});
f&&NCa(Y,function(E){if(E.contentWindow===f)return b(V),!0})}}};
U66=function(Y){return typeof Y==="string"?document.getElementById(Y):Y};
oFg=function(){var Y={};return Y[0]=_.HL(XtL,"current"),Y[1]=_.HL(D6I),Y[2]=_.HL(m6M),Y};
DK=function(Y,b){return Y.left===b.left&&Y.top===b.top&&Y.width===b.width&&Y.height===b.height};
Ilv=function(Y,b){return{left:Math.max(Y.left,b.left),top:Math.max(Y.top,b.top),width:Math.max(0,Math.min(Y.left+Y.width,b.left+b.width)-Math.max(Y.left,b.left)),height:Math.max(0,Math.min(Y.top+Y.height,b.top+b.height)-Math.max(Y.top,b.top))}};
k1e=function(Y,b){return{left:Math.round(Y.left+b.x),top:Math.round(Y.top+b.y),width:Y.width,height:Y.height}};
llB=function(Y,b,w){if(Y&&b!==null&&b!=b.top){if(!b.top)return new _.mE(-12245933,-12245933);b=b.top}try{return(w===void 0?0:w)?(new _.mE(b.innerWidth,b.innerHeight)).round():_.Iz(b).round()}catch(V){return new _.mE(-12245933,-12245933)}};
hye=function(Y,b,w){try{if(Y){if(!b.top)return new fl(-12245933,-12245933,-12245933,-12245933);b=b.top}var V=llB(Y,b,w),H=V.height,f=V.width;if(f===-12245933)return new fl(f,f,f,f);var E=kQ(la(b.document)),U=E.x,X=E.y;return new fl(X,U+f,X+H,U)}catch(I){return new fl(-12245933,-12245933,-12245933,-12245933)}};
x6M=function(Y){var b;return(b=Y.google_tag_data)!=null?b:Y.google_tag_data={}};
qxu=function(Y){var b,w;return typeof((b=Y.navigator)==null?void 0:(w=b.userAgentData)==null?void 0:w.getHighEntropyValues)==="function"};
Qmq=function(Y){if(!qxu(Y))return null;var b=x6M(Y);if(b.uach_promise)return b.uach_promise;Y=Y.navigator.userAgentData.getHighEntropyValues(smI).then(function(w){b.uach!=null||(b.uach=w);return w});
return b.uach_promise=Y};
d6B=function(Y){var b;return vFq(P7M(Zha(BCt(nFG(MCK(eyv(ptb(OhB(new tCu,Y.architecture||""),Y.bitness||""),Y.mobile||!1),Y.model||""),Y.platform||""),Y.platformVersion||""),Y.uaFullVersion||""),((b=Y.fullVersionList)==null?void 0:b.map(function(w){var V=new Rye;V=_.hP(V,1,w.brand);return _.hP(V,2,w.version)}))||[]),Y.wow64||!1)};
FSb=function(Y){var b,w;return(w=(b=Qmq(Y))==null?void 0:b.then(function(V){return d6B(V)}))!=null?w:null};
LSt=function(Y,b){return new Ve(function(w){var V=!1,H=Array(b.length);H.fill(void 0);var f=new Set,E=new Set,U=function(l,x){Y.running?(H[x]=l,f.add(x),V||(V=!0,Uy(Y,function(){V=!1;w.next(_.jL(H))},1))):w.error(new xQ(x))},X=function(l,x){E.add(x);
f.add(x);Uy(Y,function(){w.error(l)},1)},I=function(l){E.add(l);
Uy(Y,function(){E.size===b.length&&w.complete()},1)},k=b.map(function(l,x){return l.subscribe(function(Q){return void U(Q,x)},function(Q){return void X(Q,x)},function(){return void I(x)})});
return function(){k.forEach(function(l){return void l.unsubscribe()})}})};
alI=function(Y,b,w){function V(){if(b.debugChannel){var O=b.debugChannel,L=O.next;var r={creativeId:b.debugNames.getName(w),requiredSignals:H,signals:Object.assign({},f),hasPrematurelyCompleted:E,errorMessage:U,erroredSignalKey:X};r={specMajor:2,specMinor:0,specPatch:0,timestamp:F3(b.timeProvider.now(),new SC(0,b.timeProvider.timeline)),instanceId:b.debugNames.getName(b.symbol),creativeState:r};L.call(O,r)}}
for(var H=Object.keys(Y),f={},E=!1,U=null,X=null,I={},k=new Set,l=[],x=[],Q=_.N(H),Z=Q.next(),e={};!Z.done;e={key$jscomp$375:void 0},Z=Q.next())e.key$jscomp$375=Z.value,Z=Y[e.key$jscomp$375],Z instanceof XE?(I[e.key$jscomp$375]=Z.value,k.add(e.key$jscomp$375),b.debugChannel&&(f[String(e.key$jscomp$375)]=h4v(Z.value))):(Z=Z.pipe(Ap(function(O,L){return kze(O)||kze(L)?!1:O===L}),Zl(function(O){return function(L){b.debugChannel&&(f[String(O.key$jscomp$375)]=h4v(L),V());
var r={};return r[O.key$jscomp$375]=L,r}}(e)),rC(function(O){return function(L){if(L instanceof xQ)throw new Sxr(String(O.key$jscomp$375));
throw L;}}(e)),ba(function(O){return function(){k.add(O.key$jscomp$375)}}(e),function(O){return function(L){X=String(O.key$jscomp$375);
U=String(L);V()}}(e),function(O){return function(){k.has(O.key$jscomp$375)||(E=!0,V())}}(e))),x.push(e.key$jscomp$375),l.push(Z));
(Y=Object.keys(f).length>0)&&V();Q=LSt(b.queue,l).pipe(rC(function(O){if(O instanceof xQ)throw new qD(String(x[O.inputObservableIndex]));throw O;}),Zl(function(O){return Object.freeze(Object.assign.apply(Object,[{},
I].concat(_.Bt(O))))}));
return(l=l.length>0)&&Y?Rm(l7(Object.freeze(I)),Q):l?Q:l7(Object.freeze(I))};
rpa=function(Y,b,w,V,H){return Y.performanceMonitor.timeExecution.bind(Y.performanceMonitor)(733,function(){var f={};try{return b.pipe(rC(function(E){V(Object.assign({},f,{error:E}));return tp}),eC(function(E){try{var U=w(Y,E)}catch(I){return V(Object.assign({},f,{error:I instanceof Error?I:String(I)})),tp}var X={};
return alI(U,Y,E.symbol).pipe(ba(function(I){X=I}),G1(1),Pt()).pipe(H,rC(function(I){V(Object.assign({},X,{error:I}));
return tp}),Ch(void 0),Zl(function(){return!0}))})).pipe(T1(function(E){return E+1},0),rC(function(E){V(Object.assign({},f,{error:E}));
return tp}))}catch(E){return V(Object.assign({},f,{error:E})),tp}})()};
sy=function(Y){var b=new Map;if(typeof Y!=="object"||Y===null)return b;Object.values(Y).forEach(function(w){w&&typeof w.extrapolateToNow==="function"&&(b.has(w.clock.timeline)||b.set(w.clock.timeline,w.clock.now()))});
return b};
zyt=function(Y,b){return typeof Y==="string"?encodeURIComponent(Y):typeof Y==="number"?String(Y):Array.isArray(Y)?Y.map(function(w){return zyt(w,b)}).join(","):Y instanceof SC?Y.toString():Y&&typeof Y.extrapolateToNow==="function"?zyt(Y.extrapolateUsingTimestampMap(b).value,b):Y===!0?"1":Y===!1?"0":Y===void 0||Y===null?null:Y instanceof WS6?KSt(Y):[Y.top,
Y.left,Y.top+Y.height,Y.left+Y.width].join()};
QB=function(Y,b){Y=Object.entries(Y).map(function(w){var V=_.N(w);w=V.next().value;V=V.next().value;V=zyt(V,b);return V===null?"":w+"="+V}).filter(function(w){return w!==""});
return Y.length?Y.join("&"):""};
C7q=function(Y,b){var w=ih6,V=Apv;b=b===void 0?.01:b;return function(H){b>0&&Math.random()<=b&&(Y.global.HTMLFencedFrameElement&&Y.global.fence&&typeof Y.global.fence.reportEvent==="function"&&Y.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),H=Object.assign({},H,{errorMessage:H.error instanceof Error&&H.error.message?H.error.message:String(H.error),errorStack:H.error instanceof Error&&H.error.stack?String(H.error.stack):null,errorName:H.error instanceof
Error&&H.error.name?String(H.error.name):null,errorContext:String(Y.performanceMonitor.timedFunctionContext),errorEscapedQueryId:H.escapedQueryId}),w(Object.assign({},H,{payloadMapper:function(){return function(f){try{return V(Object.assign({},f))}catch(E){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),sy(H)).forEach(function(f){Y.beaconFactory.makeBeacon(f).sendNow()}))}};
ypK=function(){var Y=_.BN.apply(0,arguments);return function(b){var w=b.pipe(G1(1),Pt());b=Y.map(function(V){return w.pipe(V,Ch(!0))});
return nh(b).pipe(i7(1),z1())}};
$6u=function(){var Y=_.BN.apply(0,arguments);return function(b){var w=b.pipe(G1(1),Pt());b=Y.map(function(V){return w.pipe(V,Ch(!0))});
return Rm.apply(null,_.Bt(b)).pipe(i7(1),z1())}};
jmu=function(Y,b){return function(w){var V=w.pipe(G1(1),Pt());w=V.pipe(Y,Ch(!0));V=V.pipe(wC(b,G1(),Pt()),Ch(!0));w=nh([w,V]);return oHg(w,V).pipe(i7(1),z1())}};
G1G=function(Y,b,w){w(!0)};
TCB=function(Y,b){return wC(u7(function(w){var V=Y(w),H=b(w),f={};return V&&H&&f?new Ve(function(E){H(V,f,function(U){E.next(Object.assign({},w,{canEmit:U}));E.complete()});
return function(){}}):vL}),dC(function(w){return w.canEmit}))};
JpL=function(Y){var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(w){return w.pipe(u7(function(V){return new Ve(function(H){function f(){U.disconnect();X.unsubscribe()}
var E=Y.MutationObserver;if(E&&V.ref!==void 0){var U=new E(function(I){H.next(I)});
U.observe(V.ref,b);var X=V.JSC$7397_released.subscribe(f);return f}})}))}};
u3I=function(Y){if(Y.measurementDeferralState===3)return null;if(Y.timeOnScreenReason!==void 0){var b=Y.creativeFound===!1?"n":null;if(b!==null)return b}return Y.geometricMeasurementErrors instanceof PL?"msf":Y.contextValidationErrors instanceof ZK?"c":Y.contextVisibilityKnown===!1?"pv":Y.geometricMeasurementErrors||Y.contextValidationErrors?"x":null};
nl=function(Y,b){return Y.replace(Yyr,function(w,V){try{var H=_.BL.get(b,V);if(H==null||H.toString()==null)return w;H=H.toString();if(H==""||!_.EM(H==null?"":String(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(f){}return w})};
blg=function(Y,b){var w=Object.assign({},Y),V=Y.userAgentClientHints;w=(delete w.userAgentClientHints,w);w=Y.payloadMapper(w);var H=QB(w,b);return _.MD(Y.urlPrefixes,function(f){var E="";typeof V==="string"&&(E="&"+QB({uach:V},b));var U={};return nl(f,(U.VIEWABILITY=H,U))+E})};
ih6=function(Y,b){var w=Y.payloadMapper(Y),V=QB(w,b);return V?_.MD(Y.urlPrefixes,function(H){H=H.indexOf("?")>=0?H:H+"?";H="?&".indexOf(H.slice(-1))>=0?H:H+"&";return H+V}):Y.urlPrefixes};
wLL=function(){return wC(dC(function(Y){return Y!==void 0}),Zl(function(Y){return Y}))};
Vqq=function(Y){return wC(Zl(function(){return!0}),Jp(!1),cL(Y))};
Hl6=function(Y){return Y.length<=0?tp:nh(Y.map(function(b){var w=0;return b.pipe(Zl(function(V){return{index:w++,value:V}}))})).pipe(dC(function(b){return b.every(function(w){return w.index===b[0].index})}),Zl(function(b){return b.map(function(w){return w.value})}))};
gQM=function(Y,b){Y.currentState&&(Y.previousState=Y.currentState);Y.currentState=b;Y.previousState&&Y.previousState.value?(b=Math.max(0,F3(b.timestamp,Y.previousState.timestamp)),Y.totalTime+=b,Y.consecutiveTime+=b):Y.consecutiveTime=0;return Y};
fKr=function(){return wC(T1(gQM,{totalTime:0,consecutiveTime:0}),Zl(function(Y){return Y.totalTime}))};
NFL=function(){return wC(T1(gQM,{totalTime:0,consecutiveTime:0}),Zl(function(Y){return Y.consecutiveTime}))};
EQq=function(Y,b){return function(w){return Hl6(b.map(function(V){return w.pipe(Y(V))}))}};
cPK=function(){var Y;return wC(ba(function(b){return void(Y=b.timestamp)}),NFL(),Zl(function(b){return{timestamp:Y,
value:Math.round(b)}}))};
UDb=function(Y,b){return DK(Y.topWindowViewportExternalGeometry,b.topWindowViewportExternalGeometry)&&DK(Y.elementGeometry,b.elementGeometry)&&DK(Y.exposedViewportLocalGeometry,b.exposedViewportLocalGeometry)&&DK(Y.intersectionGeometry,b.intersectionGeometry)&&Y.elementGeometrySourceName===b.elementGeometrySourceName&&Y.measurementRequests===b.measurementRequests&&Y.viewportGeometrySourceName===b.viewportGeometrySourceName&&Y.viewportLocalAppOffset.x===b.viewportLocalAppOffset.x&&Y.viewportLocalAppOffset.y===
b.viewportLocalAppOffset.y};
mDu=function(Y,b){return function(w){return function(V){var H=V.pipe($F(new ND),Pt());V=w.element.pipe(Ap());H=H.pipe(Zl(function(f){return f.value}));
return nh([V,H,b]).pipe(Zl(function(f){var E=_.N(f);f=E.next().value;var U=E.next().value;E=E.next().value;if(f.ref===void 0)var X={top:0,left:0,width:0,height:0};else{X=f.ref.getBoundingClientRect();var I=f.ref,k=Y.global,l=new _.eq(0,0),x=pl(_.Oy(I));if(tP(x,"parent")){do{if(x==k)var Q=_.Rz(I);else Q=XLG(I),Q=new _.eq(Q.left,Q.top);l.x+=Q.x;l.y+=Q.y}while(x&&x!=k&&x!=x.parent&&(I=x.frameElement)&&(x=x.parent))}X={top:l.y,left:l.x,width:X.width,height:X.height}}X=k1e(X,U.viewportLocalAppOffset);
k=Ilv(X,U.exposedViewportLocalGeometry);l=Y.timeProvider.now();x=Object;I=x.assign;if(E!==2||Y.inCrossDomainIframe||k.width<=0||k.height<=0)var Z=!1;else try{var e=Y.document.elementFromPoint(k.left+k.width/2,k.top+k.height/2);Z=e?!DDg(e,f):!1}catch(O){Z=!1}return{timestamp:l,value:I.call(x,{},U,{elementGeometrySourceName:"geo",intersectionGeometry:Z?dF.intersectionGeometry:k,elementGeometry:X})}}),Ey(Y.queue))}}};
DDg=function(Y,b,w){w=w===void 0?0:w;return Y.ref===void 0||b.ref===void 0?!1:Y.ref===b.ref||_.FE(b.ref,function(V){return V===Y.ref})?!0:b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView===b.ref.ownerDocument.defaultView.top?!1:w<10&&b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView.frameElement?DDg(Y,new Ll(b.ref.ownerDocument.defaultView.frameElement),w+1):!0};
k2M=function(Y){return function(b){return b.pipe(Y.ResizeObserver?oQb(Y):IKb(Y),G1(1),Pt())}};
oQb=function(Y){return function(b){return b.pipe(u7(function(w){var V=Y.ResizeObserver;if(!V||w.ref===void 0)return l7(dF.elementGeometry);var H=(new Ve(function(f){function E(){w.ref!==void 0&&U.unobserve(w.ref);U.disconnect();X.unsubscribe()}
if(w.ref===void 0)return f.complete(),function(){};
var U=new V(function(I){I.forEach(function(k){f.next(k)})});
U.observe(w.ref);var X=w.JSC$7397_released.subscribe(E);return E})).pipe(am(Y.performanceMonitor,736),Zl(function(f){return f.contentRect}));
return Rm(l7(w.ref.getBoundingClientRect()),H)}),Ap(DK))}};
IKb=function(Y){return function(b){var w=b.pipe(JpL(Y)),V=Y.onResize;w=Rm(b.pipe(Zl(function(){return jgu("resize")})),w,V);
return nh(b,w).pipe(am(Y.performanceMonitor,737),Zl(function(H){H=_.N(H).next().value;return H.ref===void 0?void 0:H.ref.getBoundingClientRect()}),wLL(),Ap(DK))}};
xDg=function(Y,b){var w=lKB(Y,b).pipe(G1(1),Pt());return function(V){return function(H){H=H.pipe(u7(function(f){return f.element}),Ap());
return nh([w,H]).pipe(u7(function(f){var E=_.N(f);f=E.next().value;E=E.next().value;return hHG(Y,f.intersectionObserver,k2M(Y),f.observations,V,f.flushRecords,E)}),Ey(Y.queue))}}};
qyv=function(Y){return Zl(function(b){return b.value.viewportGeometrySourceName!=="nio"?b:Object.assign({},b,{value:Object.assign({},b.value,{exposedViewportLocalGeometry:Sq(Y,!0),topWindowViewportExternalGeometry:Sq(Y,!0)})})})};
szG=function(Y,b){return l7(b).pipe(Y,Zl(function(){return b}))};
lKB=function(Y,b){return Y.timeProvider.timeline!==Qzt?hp(new PL(2)):Y.MutationObserver?typeof IntersectionObserver==="undefined"?hp(new PL(0)):(new Ve(function(w){var V=new ND,H=new az(V.next.bind(V),{threshold:[].concat(_.Bt(b))});w.next({observations:V.pipe(am(Y.performanceMonitor,735)),intersectionObserver:H,flushRecords:function(f){f=H.takeRecords(f);f.length>0&&V.next(f)}})})).pipe(i7(1),G1(1),Pt()):hp(new PL(1))};
vQ6=function(Y){return Lvq(Y.sort(function(b,w){return b.time-w.time}),Cjb)};
hHG=function(Y,b,w,V,H,f,E){return new Ve(function(U){function X(){Z||(Z=!0,E.ref!==void 0&&b.unobserve(H,E.ref),k.unsubscribe(),Q.unsubscribe(),x.unsubscribe(),e.unsubscribe())}
if(E.ref!==void 0){PaI(b,H);b.observe(H,E.ref);var I=new rF({timestamp:Y.timeProvider.now(),value:Object.assign({},dF,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),k=V.pipe(eC(function(O){return vQ6(O)}),dC(function(O){return O.target===E.ref}),Zl(function(O){return{timestamp:new SC(O.time,Qzt),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:O.rootBounds||z2,topWindowViewportExternalGeometry:O.rootBounds||Sq(Y,!0),measurementRequests:l,elementGeometrySourceName:"nio",intersectionGeometry:O.intersectionRect,elementGeometry:O.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:O.isIntersecting,isV2Visible:O.isVisible}}}),$F(I),Pt()).subscribe(U),l=new ND,x=l.subscribe(function(){f(H);
U.next({timestamp:Y.timeProvider.now(),value:I.value.value});E.ref!==void 0&&(b.unobserve(H,E.ref),b.observe(H,E.ref))}),Q=szG(w,E).subscribe(function(){l.next()}),Z=!1,e=E.JSC$7397_released.subscribe(function(){return X()});
return X}})};
Zle=function(Y,b){var w=Y.getOnBackgrounded().pipe(Zl(function(){return"b"}));
return oHg(b,w).pipe(i7(1),cL(Y.queue))};
WL=function(Y){return function(b){var w;return b.pipe(ba(function(V){return void(w=V.timestamp)}),Zl(function(V){return V.value}),Y,Zl(function(V){return{timestamp:w,
value:V}}))}};
BFa=function(Y){return Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.elementGeometry.width*Y.elementGeometry.height)};
Kl=function(Y,b,w){w=w===void 0?function(V,H){return V===H}:w;
return Y.timestamp.equals(b.timestamp)&&w(Y.value,b.value)};
AP=function(Y,b){return b.pipe(Zl(function(w){return new ia(Y.timeProvider,{timestamp:Y.timeProvider.now(),value:w})}))};
nQM=function(Y){return function(b){return b.pipe(pNa(Y),Zl(function(w){var V=_.N(w);w=V.next().value;V=V.next().value;var H=w.value;return{timestamp:w.timestamp,value:H>=1?!0:H<=0?!1:H>=V}}))}};
eHu=function(){return wC(dC(function(Y,b){return b>0}),Mqq,Jp(-1),Ap())};
pLv=function(Y,b,w){return Y?nh([b,w]).pipe(dC(function(V){var H=_.N(V);V=H.next().value;H=H.next().value;return V.timestamp.equals(H.timestamp)}),Zl(function(V){var H=_.N(V);
V=H.next().value;H=H.next().value;return V.value>H.value?V:H})):b};
RHe=function(Y){return function(b){var w=b.pipe(Olq),V=b.pipe(tqa);return Y instanceof Ve?Y.pipe(u7(function(H){return pLv(H,w,V)})):pLv(Y.value,w,V)}};
ile=function(Y,b,w,V){var H=V.geometryIsOccluded,f=V.exposureThreshold,E=V.wasLargeAdAtRender,U=V.allowLargeAdThreshold,X=V.largeAdExposureThreshold,I=V.mayUseViewportShareExposure,k=V.hasMeasurementStarted;V=V.useIntersectionObserverV2;b=dDK(Y,w,b);w=FEg(Y,w);V=LEB(b,V);var l=SyB(Y,H,I,b),x=l.pipe(Zl(function(y){return y.value}),Ap(),cL(Y),T1(function(y,G){return Math.max(y,G)},0)),Q=l.pipe(Zl(function(y){return y.value}),eHu(),cL(Y)),Z=b.pipe(aKL,Zl(function(y){return y.value}),i7(2),Ap(),cL(Y));
E=rPu(Y,b,E,U);var e=E.pipe(Jp(!1),Ap(),Zl(function(y){return y?X:f}));
U=l.pipe(nQM(e),Ap(),cL(Y));var O=nh([U,b]).pipe(dC(function(y){var G=_.N(y);y=G.next().value;G=G.next().value;return y.timestamp.equals(G.timestamp)}),Zl(function(y){var G=_.N(y);
y=G.next().value;G=G.next().value;return{visible:y.value,geometry:G.value.elementGeometry}}),T1(function(y,G){return!G.visible&&y.visible?y:G},{visible:!1,
geometry:z2}),Zl(function(y){return y.geometry}),Jp(z2),cL(Y),Ap(DK));
I=I instanceof Ve?I.pipe(Ap(),Wt()):vL;e=nh([I,e]).pipe(Wt());var L=b.pipe(dC(function(y){return y.value.viewportGeometrySourceName!=="ns"&&y.value.elementGeometrySourceName!=="ns"}),T1(function(y){return y+1},0),Jp(0),cL(Y)),r=w.pipe(Wt(!0),Jp(!1),cL(Y));
r=nh([k,r]).pipe(Zl(function(y){var G=_.N(y);y=G.next().value;G=G.next().value;return y&&!G}),cL(Y));
var C=b.pipe(zHe,Ap()),W=C.pipe(Zl(function(y){return y.value}),T1(function(y,G){return Math.max(y,G)},0),Ap(),cL(Y));
Y=C.pipe(Zl(function(y){return y.value}),eHu(),cL(Y));
return{shouldResetExposureSignals:I,shouldResetViewabilitySignals:e,geometrySignals:{readyGeometryWithDefault:b,measurementStrategy:b.pipe(WEr),creativePosition:O.pipe(Ap(DK)),visible:U.pipe(Ap(Kl)),timestampedExposure:l.pipe(Ap(Kl)),maximumExposure:x,minimumExposure:Q,browserSize:b.pipe(KEu,Ap(_.NQ)),timestampedScreenShare:C,maxScreenShare:W,minScreenShare:Y,geometricMeasurementErrors:w,measurementRequests:b.pipe(Zl(function(y){return y.value.measurementRequests})),
isLargeAd:E,geometryIsOccluded:H,hasMeasurementStarted:k,geometryMeasurable:r,validMeasurementCount:L,loadTimeExposure:Z,v2VisibilityBitVector:V}}};
FEg=function(Y,b){return b.pipe(dC(function(){return!1}),Zl(function(w){return w}),rC(function(w){return Cl(new XE(w),Y)}))};
dDK=function(Y,b,w){return b.pipe(D1a(vL),cL(Y)).pipe(Ap(function(V,H){return Kl(V,H,UDb)}),Jp({timestamp:w.now(),
value:dF}),cL(Y))};
SyB=function(Y,b,w,V){w=V.pipe(RHe(w),WL(Zl(function(H){return Math.round(H*100)/100})),cL(Y));
return b instanceof XE?w:nh([w,b]).pipe(Zl(function(H){var f=_.N(H);H=f.next().value;f=f.next().value;return{timestamp:f.timestamp.maximum(H.timestamp),value:f.value?0:H.value}}),Ap(Kl),cL(Y))};
rPu=function(Y,b,w,V){b=[b.pipe(Zl(function(H){return H.value.elementGeometry.width*H.value.elementGeometry.height>=242500}))];
w instanceof Ve&&b.push(w.pipe(Zl(function(H){return!!H})));
w=nh(b);return V?w.pipe(Zl(function(H){return H.some(function(f){return f})}),Jp(!1),Ap(),cL(Y)):Cl(new XE(!1),Y)};
LEB=function(Y,b){Y=nh([Y,b]).pipe(Zl(function(H){var f=_.N(H);H=f.next().value;if(f.next().value&&H.value.isIntersecting)return H.value.isV2Visible}),Ap());
var w=Y.pipe(Zl(function(H){return H===void 0?!0:H}),T1(function(H,f){return H||!f},!1)),V=Y.pipe(T1(function(H,f){return f===void 0?H:f?!1:H!=null?H:!0},void 0),Zl(function(H){return!!H}));
return nh([b,IDu(Y,w,V)]).pipe(Zl(function(H){var f=_.N(H);H=f.next().value;var E=_.N(f.next().value);f=E.next().value;var U=E.next().value;E=E.next().value;var X=0;if(!H)return 0;if(f===void 0)return 16;f&&(X|=1);f||(X|=2);U&&(X|=4);E&&(X|=8);return X}))};
$Dt=function(Y,b,w,V,H){var f=yB.timeThresholdMs;var E=E===void 0?new APb(b,V):E;return(new Ve(function(U){var X=w.pipe(Jp(void 0),u7(function(){return CaL(H)})).pipe(Zl(function(I){var k=I.value;
I=I.timestamp;var l=k.visible;k=k.consecutiveViewTime;var x=k>=f;x||!l?$Q(E):(I=Math.max(0,F3(b.now(),I)),yPv(E,Math.max(0,f-k-I)));return x}),T1(function(I,k){return k||I},!1),Ap()).subscribe(U);
return function(){E.dispose();X.unsubscribe()}})).pipe(YQ(function(U){return!U},!0),cL(Y))};
CaL=function(Y){return Hl6([Y,Y.pipe(cPK())]).pipe(Zl(function(b){var w=_.N(b);b=w.next().value;w=w.next().value;return{timestamp:b.timestamp,value:{visible:b.value,consecutiveViewTime:w.value}}}),Ap(function(b,w){return Kl(b,w,function(V,H){return V.consecutiveViewTime===H.consecutiveViewTime&&V.visible===H.visible})}))};
jzg=function(){return wC(NFL(),T1(function(Y,b){return Math.max(Y,b)},0),Zl(function(Y){return Math.round(Y)}))};
G2t=function(Y){return wC(nQM(l7(Y)),jzg())};
TFB=function(Y,b){return b instanceof Ve?b.pipe(u7(function(w){return(w=w?15:null)?hp(new PL(w)):Y})):(b=b.value?15:null)?hp(new PL(b)):Y};
JPq=function(Y){var b=new PL(13);if(Y.length<1)return{chain:tp,capturedErrors:tp};var w=new ND,V=Y[0];return{chain:Y.slice(1).reduce(function(H,f){return H.pipe(rC(function(E){w.next(E);return f}))},V).pipe(rC(function(H){w.next(H);
return hp(b)}),$F(new ND),Pt()),
capturedErrors:w}};
uEM=function(Y,b){var w=Y.pipe($F(new ND),Pt());return u7(function(V){return w.pipe(b(V))})};
bCr=function(Y,b){if(Y.inCrossDomainIframe)return hp(new PL(6));var w=new ND;return Rm(l7({}),b,w).pipe(Zl(function(){return{timestamp:Y.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Y2G(Y),topWindowViewportExternalGeometry:Sq(Y,!0),measurementRequests:w,viewportLocalAppOffset:{x:0,y:0}}}}),Ey(Y.queue))};
Y2G=function(Y){var b=Sq(Y,!1);if(!Y.inIframe||!jq(Y.global.parent)||Y.global.parent===Y.global)return b;var w=new G2(Y.global.parent,Y.debugChannel);w.beaconFactory=Y.beaconFactory;w=Y2G(w);Y=Y.global.frameElement.getBoundingClientRect();return Ilv(k1e(Ilv(w,Y),{x:b.left-Y.left,y:b.top-Y.top}),b)};
wEq=function(Y){if(Y.prerendering)return 3;var b;return(b={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[Y.visibilityState||Y.webkitVisibilityState||Y.mozVisibilityState||""])!=null?b:0};
VhL=function(Y){return Y.document.JSC$7408_onVisibilityChange.pipe(Zl(function(b){return b==="visible"}),Ap(),cL(Y.queue))};
HCb=function(Y,b,w){var V;return b.pipe(Ap(),u7(function(H){return w.pipe(Zl(function(){if(!V){V=!0;try{H.next()}finally{V=!1}}return!0}))}),Jp(!1),cL(Y.queue))};
gGB=function(Y){return wC(WL(Zl(function(b){return b>=1?!0:b<=0?!1:b>=Y})),fKr(),Zl(function(b){return Math.round(b)}))};
Nlu=function(Y,b,w,V,H){var f=fwv;if(f.length>1)for(var E=0;E<f.length-1;E++)if(f[E]<f[E+1])throw Error();E=H.pipe(Jp(void 0),u7(function(){return w.pipe(cPK())}),Ap(),cL(Y));
H=H.pipe(Jp(void 0),u7(function(){return w.pipe(jzg())}),Ap(),cL(Y));
return{totalMeasurementTime:V.pipe(Jp(void 0),u7(function(){return b.pipe(Zl(function(U){return{timestamp:U.timestamp,value:!0}}),fKr())}),Ap(),cL(Y)),
totalUnviewedTime:V.pipe(Jp(void 0),u7(function(){return b.pipe(Zl(function(U){return{timestamp:U.timestamp,value:U.value===0}}),fKr())}),Ap(),cL(Y)),
maxTimeOnScreen:V.pipe(Jp(void 0),u7(function(){return b.pipe(EQq(G2t,f))}),Ap(_.NQ),cL(Y)),
timeOnScreen:V.pipe(Jp(void 0),u7(function(){return b.pipe(EQq(gGB,f),Zl(function(U){return U.map(function(X,I){return I>0?X-U[I-1]:X})}))}),Ap(_.NQ),cL(Y)),
maxConsecutiveViewTime:H,consecutiveViewTime:E.pipe(Ap(Kl),cL(Y))}};
cyg=function(Y){var b=!0;b=b===void 0?!1:b;return wC(u7(function(w){return EG6(Y.document,w,b)}),cL(Y.queue))};
Ufg=function(Y,b,w){var V=w.pipe(Zl(function(H){return{value:H,timestamp:Y.timeProvider.now()}}),Ap(Kl));
return b instanceof Ve?b.pipe(Ap(),u7(function(H){return H?Cl(new XE({value:!1,timestamp:Y.timeProvider.now()}),Y.queue):V})):b.value===!1?V:new XE(!1)};
XEK=function(Y,b,w,V,H,f,E){var U=yB;b=b instanceof Ve?b.pipe(Jp(!1),Ap()):b;var X=!Y.isMobile();w=Ufg(Y,w,V);Y=E.measurableCreative.pipe(Vqq(Y.queue));return Object.assign({},U,{geometryIsOccluded:w,wasLargeAdAtRender:H,allowLargeAdThreshold:X,mayUseViewportShareExposure:b,hasMeasurementStarted:Y,useIntersectionObserverV2:f})};
mfG=function(Y,b,w,V,H,f){var E=1;f=f===void 0?!0:f;E=E===void 0?.01:E;var U=U===void 0?Y.timeProvider.intervalObservable(100).pipe(cL(Y.queue)):U;return Y.performanceMonitor.timeExecution(916,function(){return DfG(Y,b.pipe(Ey(Y.queue)),w.pipe(Ey(Y.queue)),V,H,f,E,U)})()};
DfG=function(Y,b,w,V,H,f,E,U){var X=VhL(Y).pipe(Zl(function(k){return!k})),I=new oGM(Y,[new IwI(Y,fwv),
new k_e(Y,U)]);U=ypK(lwg,hdt);return rpa(Y,b,function(k,l){var x=Cl(new XE(l.element),k.queue).pipe(cyg(k),cL(k.queue)),Q={loadedElement:x,shouldMeasure:x.pipe(Wt(!0)),measurableCreative:x.pipe(Zl(function(y){var G=G===void 0?Symbol():G;return Object.freeze({symbol:G,element:Cl(new XE(y),k.queue)})})),
creativeSearchResult:Cl(new XE("mue"),k.queue)},Z=new XE(!1),e=new XE(!1),O=new XE(17),L=new XE(!1),r=new XE(!1),C=Cl(T2,k.queue);Z=I.buildGeometrySource(Q,{inApp:Z,useV2:!1,requestSource:Cl(O,k.queue)}).geometrySource;Q=XEK(k,L,e,X,r,C,Q);e=ile(k.queue,k.timeProvider,Z,Q);Q=e.geometrySignals;L=e.shouldResetViewabilitySignals;e=Nlu(k.queue,Q.timestampedExposure,Q.visible,e.shouldResetExposureSignals,L);L=$Dt(k.queue,k.timeProvider,L,Q.measurementRequests,Q.visible);r=w.pipe(dC(function(y){return y===
l.element.ref}),Zl(function(){return"ur"}));
C=x1L(k.timeProvider,H).pipe(Wt("t"));r=Zle(k,Rm(r,C));C=HCb(k,Q.measurementRequests,r.pipe(dC(function(y){return y!==null})));
Z=r.pipe(dC(function(y){return y!==null}),Zl(function(){return wEq(k.global.document)===1}));
var W=xfG(k.document);return Object.assign({},{beaconFactory:new XE(k.beaconFactory),context:new XE(k),inferredPingId:new XE("lidar2"),timeOnScreenPingId:new XE("lidartos"),binaryContext:new XE(17),binaryVersion:new XE(V),requestSource:O,contextValidationErrors:new XE(k.validate()?null:new ZK),contextVisibilityKnown:new XE(W),payloadMapper:new XE(Apv),endOfSessionReason:r,timeOnScreenReason:r,requestMeasurementOnEndOfSession:C,hasImpressionFired:q26,crossDomainIframeState:new XE(k.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:T2,inFetchLaterBeaconExperiment:T2,isTurtlex:T2,turtlexReportEventData:new XE(""),reportFencedFrameEvent:vL,isViewableAttributionEnabled:T2,inViewableAttributionExperiment:new XE(0),fetchBeaconFactory:vL,supportsPendingBeacon:T2,supportsFetchLater:T2,emit:new XE(G1G),beginToRenderEvent:new XE(Symbol()),activeViewUnmeasurableEvent:new XE(Symbol()),activeViewViewableEvent:new XE(Symbol()),creativeFound:q26,immediateUrlPrefixes:new XE(l.immediateUrls),timeOnScreenUrlPrefixes:new XE(l.timeOnScreenUrls),
cpmavUrls:vL,viewableRelayUrls:vL,measurementDeferralState:new XE(2),urlSerializer:new XE(blg),viewUrlSerializer:new XE(ss6),isCreativeLoaded:x.pipe(Vqq(k.queue)),pageVisible:X.pipe(Zl(function(y){return!y})),
eosPageVisible:Z,timestampedExposureHistory:Q.timestampedExposure.pipe(T1(function(y,G){y.push(G);return y},[]))},Q,{viewable:AP(k,L),
maxTimeOnScreen:AP(k,e.maxTimeOnScreen),timeOnScreen:AP(k,e.timeOnScreen),maxConsecutiveViewTime:AP(k,e.maxConsecutiveViewTime),consecutiveViewTime:e.consecutiveViewTime.pipe(Zl(function(y){return new ia(k.timeProvider,y)})),
totalMeasurementTime:AP(k,e.totalMeasurementTime),totalUnviewedTime:AP(k,e.totalUnviewedTime),userAgentClientHints:$16(k),clientOrderPingCounter:new XE(new WS6)})},C7q(Y,E),$6u(f?jmu(U,QsG):jmu(U,vGL),POa))};
ZCM=function(Y){var b=_.BN.apply(1,arguments).filter(Boolean).join("&");if(!b)return Y;var w=Y.match(/[?&]adurl=/);return w?Y.slice(0,w.index+1)+b+"&"+Y.slice(w.index+1):Y+(Y.indexOf("?")<0?"?":"&")+b};
JP=function(Y,b){return b?"&"+Y+"="+encodeURIComponent(b):""};
Blt=function(){try{var Y,b;return!!((Y=window)==null?0:(b=Y.top)==null?0:b.location.href)&&!1}catch(w){return!0}};
_.ua=function(Y){Y&&typeof Y.dispose=="function"&&Y.dispose()};
_.YG=function(Y){for(var b=0,w=arguments.length;b<w;++b){var V=arguments[b];_.TK(V)?_.YG.apply(null,V):_.ua(V)}};
Mh6=function(){var Y=nGG();Y=Y===void 0?"bevasrsg":Y;return new Promise(function(b){var w=window===window.top?window:Blt()?window:window.top,V=w[Y],H;((H=V)==null?0:H.bevasrs)?b(new bO(V.bevasrs)):(V||(V={},V=(V.nqfbel=[],V),w[Y]=V),V.nqfbel.push(function(f){b(new bO(f))}))})};
edG=function(Y){var b={c:Y.sR,e:Y.f3T,mc:Y.niH,me:Y.vi4};Y.m7&&(b.co={c:Y.m7.zQR,a:Y.m7.vQR,s:Y.m7.bCh});return b};
pE6=function(Y){var b,w,V={sR:Y.c,f3T:Y.e,niH:(b=Y.mc)!=null?b:!1,vi4:(w=Y.me)!=null?w:!1};Y.co&&(V.m7={zQR:Y.co.c,vQR:Y.co.a,bCh:Y.co.s});return V};
OCq=function(Y){return function(){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y(),2);b=w.yieldResult;return w.return({f:function(){return b.q17()},
c:function(V){return b.lTO(V)},
m:function(V){return b.wd(pE6(V))},
mws:function(V){return b.b8(pE6(V))}})})}};
thq=function(Y,b){var w=nGG();w=w===void 0?"bevasrsg":w;b={s:function(f){var E;return Y.snapshot(Object.assign({},f.c&&{sR:f.c},f.s&&{zGs:f.s},{ktE:(E=f.p)!=null?E:!0}))},
e:function(f){var E;return void((E=Y.qwi)==null?void 0:E.call(Y,f))},
c:function(f,E){return Y.ooZ(f,E)},
p:Y.uds,l:function(){return Y.eIi()},
wpc:b?OCq(b):void 0};var V=window===window.top?window:Blt()?window:window.top,H=V[w];if(H){H.bevasrs=b;if(H.nqfbel!==void 0)for(w=_.N(H.nqfbel),V=w.next();!V.done;V=w.next())V=V.value,V(b);H.nqfbel=void 0}else H={},H=(H.bevasrs=b,H.nqfbel=void 0,H),V[w]=H};
dfb=function(Y){var b=b===void 0?49:b;var w=[];_.wl(Y,RdK,6,_.V9()).forEach(function(V){_.HE(V,2)<=b&&w.push(_.HE(V,1))});
return w};
Ftu=function(Y){var b=b===void 0?49:b;var w=[];_.wl(Y,RdK,6,_.V9()).forEach(function(V){_.HE(V,2)>b&&w.push(_.HE(V,1))});
return w};
LtM=function(Y){Y.then(function(){},function(){})};
gl=function(Y){return{fieldType:1,fieldName:Y}};
fC=function(Y){return{fieldType:2,fieldName:Y}};
_.Nf=function(Y){return{fieldType:3,fieldName:Y}};
S2K=function(){function Y(){H[0]=1732584193;H[1]=4023233417;H[2]=2562383102;H[3]=271733878;H[4]=3285377520;k=I=0}
function b(l){for(var x=E,Q=0;Q<64;Q+=4)x[Q/4]=l[Q]<<24|l[Q+1]<<16|l[Q+2]<<8|l[Q+3];for(Q=16;Q<80;Q++)l=x[Q-3]^x[Q-8]^x[Q-14]^x[Q-16],x[Q]=(l<<1|l>>>31)&4294967295;l=H[0];var Z=H[1],e=H[2],O=H[3],L=H[4];for(Q=0;Q<80;Q++){if(Q<40)if(Q<20){var r=O^Z&(e^O);var C=1518500249}else r=Z^e^O,C=1859775393;else Q<60?(r=Z&e|O&(Z|e),C=2400959708):(r=Z^e^O,C=3395469782);r=((l<<5|l>>>27)&4294967295)+r+L+C+x[Q]&4294967295;L=O;O=e;e=(Z<<30|Z>>>2)&4294967295;Z=l;l=r}H[0]=H[0]+l&4294967295;H[1]=H[1]+Z&4294967295;H[2]=
H[2]+e&4294967295;H[3]=H[3]+O&4294967295;H[4]=H[4]+L&4294967295}
function w(l,x){if(typeof l==="string"){l=unescape(encodeURIComponent(l));for(var Q=[],Z=0,e=l.length;Z<e;++Z)Q.push(l.charCodeAt(Z));l=Q}x||(x=l.length);Q=0;if(I==0)for(;Q+64<x;)b(l.slice(Q,Q+64)),Q+=64,k+=64;for(;Q<x;)if(f[I++]=l[Q++],k++,I==64)for(I=0,b(f);Q+64<x;)b(l.slice(Q,Q+64)),Q+=64,k+=64}
function V(){var l=[],x=k*8;I<56?w(U,56-I):w(U,64-(I-56));for(var Q=63;Q>=56;Q--)f[Q]=x&255,x>>>=8;b(f);for(Q=x=0;Q<5;Q++)for(var Z=24;Z>=0;Z-=8)l[x++]=H[Q]>>Z&255;return l}
for(var H=[],f=[],E=[],U=[128],X=1;X<64;++X)U[X]=0;var I,k;Y();return{reset:Y,update:w,digest:V,digestString:function(){for(var l=V(),x="",Q=0;Q<l.length;Q++)x+="0123456789ABCDEF".charAt(Math.floor(l[Q]/16))+"0123456789ABCDEF".charAt(l[Q]%16);return x}}};
KtI=function(Y,b){b=b===void 0?awG:b;if(!ry6){var w;Y=(w=Y.navigator)==null?void 0:w.userAgentData;if(!Y||typeof Y.getHighEntropyValues!=="function"||Y.brands&&typeof Y.brands.map!=="function")return Promise.reject(Error("za"));zdL((Y.brands||[]).map(function(H){var f=new WtB;f=_.hP(f,1,H.brand);return _.hP(f,2,H.version)}));
typeof Y.mobile==="boolean"&&_.E2(cE,2,Y.mobile);ry6=Y.getHighEntropyValues(b)}var V=new Set(b);return ry6.then(function(H){var f=cE.clone();V.has("platform")&&_.hP(f,3,H.platform);V.has("platformVersion")&&_.hP(f,4,H.platformVersion);V.has("architecture")&&_.hP(f,5,H.architecture);V.has("model")&&_.hP(f,6,H.model);V.has("uaFullVersion")&&_.hP(f,7,H.uaFullVersion);return f.serialize()}).catch(function(){return cE.serialize()})};
U2=function(Y,b,w,V){this.initialValue_=Y;this.maxValue_=b;this.currBaseValue_=this.currValue_=Y;this.randomFactor_=w||0;this.backoffFactor_=V||2};
Xh=function(Y){this.src=Y;this.listeners={};this.typeCount_=0};
yyI=function(){for(var Y;Y=iCB.remove();){try{Y.fn.call(Y.scope)}catch(b){Vv(b)}Ayg.put(Y)}COv=!1};
_.Dw=function(Y){switch(Y){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
$fe=function(Y){switch(Y){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
_.jsg=function(){};
HQM=function(Y){return{oSZ:new G_B(Y),errorCount:new Tle(Y),eventCount:new Jyr(Y),i9p:new uhu(Y),j0l:new YNg(Y),nJm:new bQr(Y),kZj:new whL(Y),gJU:new VaI(Y)}};
pha=function(Y,b,w,V){Y=gwL(fsM(N2G(new _.mt(1828,"0"),Y),new EwK));b.length&&clv(Y,UG6(new XhG,b));V!==void 0&&(Y.destinationUrl=V);var H=new DGG(1828,"","",!1,"",Y.build());_.os(H,Y);var f=new Is({flush:function(E){try{H.flush(E)}catch(U){w(U)}}});
f.addOnDisposeCallback(function(){setTimeout(function(){try{f.snapshotAndFlush()}finally{H.dispose()}})});
f.invocationLimit=1E5;f.flushInterval=3E4;f.JSC$7824_flushTimer.setInterval(3E4);return f};
kG=function(){var Y,b,w;return(w=(Y=globalThis.performance)==null?void 0:(b=Y.now)==null?void 0:b.call(Y))!=null?w:Date.now()};
ta6=function(Y,b,w){if(Y.disable)return new OQ6;b=b?dfb(b):[];if(w)return w.uMs(b),w.share();Y={wC:Y.wC,kRR:Y.b9l,uQL:Y.eij,destinationUrl:Y.destinationUrl,osY:Y.osY,vo:Y.vo};w=b;w=w===void 0?[]:w;return new lO(Y,w)};
R7L=function(Y){if(!Y)return null;Y=_.hy(Y,2);return Y===null||Y===void 0?null:Ou(Y)};
_.dGa=function(Y){if(!Y)return null;Y=_.hy(Y,4);return Y===null||Y===void 0?null:_.Uu(Y)};
SNI=function(Y,b){return b?F4K(b):Y?L4g(Y):Promise.resolve()};
F4K=function(Y){return new Promise(function(b,w){var V=_.xG("SCRIPT"),H=_.dGa(Y);_.Ku(V,H);V.onload=function(){_.qf(V);b()};
V.onerror=function(){_.qf(V);w(Error("Ka"))};
(s2("HEAD")[0]||document.documentElement).appendChild(V)})};
L4g=function(Y){return new Promise(function(b){var w=_.xG("SCRIPT");if(Y){var V=_.hy(Y,6);V=V===null||V===void 0?null:_.rE(V)}else V=null;_.WN(w,V);(s2("HEAD")[0]||document.documentElement).appendChild(w);_.qf(w);b()})};
Q9=function(Y,b,w){var V,H=new Promise(function(f){V=setTimeout(f,b)});
return Promise.race([Y.finally(function(){return void clearTimeout(V)}),
H.then(w)])};
asg=function(Y,b){try{return globalThis.sessionStorage.setItem(Y,b),!0}catch(w){return!1}};
rlb=function(Y,b,w,V){b=b===void 0?0:b;w=w===void 0?Y.length:w;var H=0;for(V&&(H=rlb(V));b<w;b++)V=typeof Y==="string"?Y.charCodeAt(b):Y[b],H=z7L(31,H)+V|0;return H};
W4L=function(Y,b){return[rlb(Y,0,Y.length>>1,b),rlb(Y,Y.length>>1)]};
K4e=function(Y){var b=_.N(W4L(Y,vE));Y=b.next().value;b=b.next().value;return Y.toString(16)+b.toString(16)};
iQb=function(Y,b){var w=W4L(b);Y=new Uint32Array(Y.buffer);b=Y[0];var V=_.N(w);w=V.next().value;V=V.next().value;for(var H=1;H<Y.length;H+=2){for(var f=b,E=H,U=w,X=V,I=0;I<22;I++)E=E>>>8|E<<24,E+=f|0,E^=U+38293,f=f<<3|f>>>29,f^=E,X=X>>>8|X<<24,X+=U|0,X^=I+38293,U=U<<3|U>>>29,U^=X;f=[f,E];Y[H]^=f[0];H+1<Y.length&&(Y[H+1]^=f[1])}};
Alg=function(Y,b,w,V,H){var f=(4-(vE.length+w.length)%4)%4,E=new Uint8Array(4+f+vE.length+4+w.length),U=new DataView(E.buffer),X=0;U.setUint32(X,Math.random()*4294967295);X=X+4+f;E.set(vE,X);X+=vE.length;U.setUint32(X,H);E.set(w,X+4);iQb(E,V);return Y.insert(b,function(I){return void globalThis.sessionStorage.removeItem(I)})?asg(b,_.YM(E))?"s":"t":"i"};
CNI=function(Y,b){var w=globalThis.sessionStorage.getItem(Y);if(!w)return["m"];try{var V=_.c9(w);iQb(V,b)}catch(H){return globalThis.sessionStorage.removeItem(Y),["c"]}for(b=4;b<7&&V[b]===0;)b++;for(w=0;w<vE.length;w++)if(V[b++]!==vE[w])return globalThis.sessionStorage.removeItem(Y),["d"];w=(new DataView(V.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=w?(globalThis.sessionStorage.removeItem(Y),["e"]):["a",new Uint8Array(V.buffer,b+4)]};
yle=function(Y){return globalThis.TextEncoder?(new TextEncoder).encode(Y):_.PE(Y)};
$Gt=function(Y){var b=Y,w;return function(){if(b){var V=b;b=void 0;w=V.apply(this,arguments)}return w}};
Zw=function(Y){return Ko(function(b){if(b instanceof Y)return!0;var w,V,H=b==null?void 0:(w=b.ownerDocument)==null?void 0:(V=w.defaultView)==null?void 0:V[Y.name];return j2g(H)&&b instanceof H})};
_.Mf=function(Y,b,w){_.BE.call(this);this.JSC$8037_listener_=Y;this.JSC$8037_interval_=b||0;this.handler_=w;this.callback_=(0,_.nC)(this.JSC$8039_doAction_,this)};
_.eh=function(Y){Y=Gla(Y);return _.Uu(Y)};
Gla=function(Y){return Y===null?"null":Y===void 0?"undefined":Y};
Jl6=function(Y){if(Y&&Y.focus)if(Y!==document.activeElement)Y.focus();else return T2B(function(){return _.c(function(b){document.activeElement&&document.activeElement.blur();return b.return(T2B(function(){Y.focus()}))})})};
_.uIu=function(Y){var b=b===void 0?5:b;setTimeout(function(){var w;return _.c(function(V){V.nextAddress==1&&(w=document.activeElement);if(V.nextAddress!=5)return(document.activeElement===w||document.activeElement===document.body)&&b>=0&&Y?_.D(V,Jl6(Y),5):V.jumpTo(0);if(document.activeElement===Y)return V.return();Y=Y.parentElement;--b;return V.jumpTo(2)})},15)};
T2B=function(Y){return new Promise(function(b){requestAnimationFrame(function(){b(Y())})})};
Yzr=function(Y){if(_.pC)Y(_.pC);else{var b;((b=O2)!=null?b:O2=[]).push(Y)}};
Rs=function(){!_.pC&&_.ty&&_.b7r(_.ty());return _.pC};
_.b7r=function(Y){_.pC=Y;var b;(b=O2)==null||b.forEach(Yzr);O2=void 0};
_.Fh=function(Y){_.pC&&_.pC.beforeLoadModuleCode(Y)};
_.LC=function(){_.pC&&_.pC.JSC$8994_setLoaded()};
Sh=function(Y){return Lg(Y)?Number(Y):String(Y)};
wfb=function(Y){this.action=Y;this.wfv=!1};
V4r=function(Y,b){wfb.call(this,"set-drive-options");this.appId=Y;this.appOrigin=b};
H7v=function(Y){wfb.call(this,"visibility");this.visible=Y};
g2v=function(Y,b,w){as.call(this,Y,b,w)};
fZK=function(Y){WE.call(this,Y)};
NxI=function(Y){Y=Y&&Y.getWindow()||window;return Y.gadgets&&Y.gadgets.rpc};
cqI=function(Y,b){var w=b&&b.getWindow()||window;if(NxI(b))Y();else if(E2L)E2L.push(Y);else var V=E2L=[Y],H=w.setInterval(function(){if(NxI(b)){w.clearInterval(H);for(var f=0;f<V.length;f++)V[f]();E2L=null}},100)};
XfG=function(Y,b){var w=new KC(Y);_.os(b,w);var V={passive:!1};b.listen(w,"mousewheel",function(H){return void U$L(Y,H)},V).listen(Y,"scroll",function(H){return void U$L(Y,H)},V)};
U$L=function(Y,b){var w;a:{for(w=b.target;w;){if(w.nodeType==1){var V=_.iO(w,"overflowY");if(V=="auto"||V=="scroll")break a}w=w.parentNode}w=null}if(!w||!_.Ay(Y,w)||w.scrollHeight==w.clientHeight||b.deltaY>0&&Math.abs(w.scrollTop-(w.scrollHeight-w.clientHeight))<=1||b.deltaY<0&&w.scrollTop==0)b.preventDefault(),b.stopPropagation()};
Jy=function(Y,b,w,V,H,f,E,U,X){U=U===void 0?!1:U;X=X===void 0?!1:X;as.call(this,void 0,void 0,void 0);as.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,w);_.CC(Y,"protocol");this.iframeManager_=new D$B;this.targetId_=y9();this.rpcToken_=y9();Y=_.$G(Y);_.jh(Y,"hostId");w=_.jh(Y,"parent");this.useGapi_=!X&&!0||(w==null?void 0:w.includes("onepick.corp.google.com"));U&&_.G_(Y,"fv2","true");this.setUrl(Y.toString());this.preferredDialogWidth_=V;this.preferredDialogHeight_=H;V!==void 0||
H!==void 0?V=!0:(V=_.jh(_.$G(Y.toString()),"hostId"),m$G||(m$G=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),V=!m$G.has(V));this.autoSizeDialog_=V;this.JSC$8227_gadgetsDomHelper_=E||this.JSC$8178_dom_;b&&(E=this.JSC$8227_gadgetsDomHelper_,b=_.jh(_.$G(this.JSC$8229_url_),"grugl")=="true"?o2v:IZK,NxI(E)||(E=E||la(document),V=E.createElement("SCRIPT"),_.Ku(V,b),V.type="text/javascript",E.JSC$7363_document_.body.appendChild(V)));
Y=Y.toString();b=null;E=Y.indexOf("/picker?");E>-1?b=Y.substring(0,E+8-1):fa(Y,"/picker")&&(b=Y);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(Y=this.buttons_,Y.JSC$8212_element_=this.buttonEl_,Y.render()):_.iH(this.buttonEl_,kOr),_.T_(this.buttonEl_,!!this.buttons_))};
_.qzu=function(Y){var b=b===void 0?lZe:b;var w=_.wU(Y),V=function(f){f=_.N(f);f.next();f=uO(f);return b(w,f)},H=function(f){var E=_.N(f);
f=E.next().value;E=uO(E);return Y.apply(f,E)};
return function(){var f=_.BN.apply(0,arguments),E=this||_.wB,U=hUr.get(E);U||(U={},hUr.set(E,U));return x$g(U,[this].concat(_.Bt(f)),H,V)}};
Yw=function(Y){var b={};Y=Y.replace(/\r/g,"").split("\n");for(var w=0;w<Y.length;w++){var V=Y[w],H=V.indexOf(":");H<0||(b[V.substring(0,H)]=V.substring(H+2,V.length))}return b};
bN=function(Y,b,w){w=w===void 0?function(){}:w;
return Y?b():w()};
_.QIG=function(Y){var b;return((b=sIq.documentOverride)!=null?b:Y).__wizdispatcher};
_.Vz=function(Y){var b=w2;w2=Y;return b};
P1I=function(Y){return Y===v26||(Y==null?void 0:Y.name)==="\u0275NotFound"};
Z7L=function(Y,b){var w;if((w=Y)==null?0:w.isDisposed)throw Error("ob`"+String(Y.debugName));for(;Y!==void 0;){w=Y;if(w.retrieve)return w.retrieve(b,{optional:!0});Y=Y.parent}return v26};
Hh=function(Y){return{"\u0275prov":{providedIn:"root",token:Symbol(Y),factory:void 0,value:void 0}}};
_.BxL=function(Y){var b=w2;if(!b){switch(Y===void 0?3:Y){case 0:Y=Error("nb");break;case 1:Y=Error("pb");break;case 2:Y=Error("qb");break;default:Y=Error("rb")}throw Y;}return b};
n2M=function(Y){var b=_.Vz(Y);Y={};return Y[Symbol.dispose]=function(){_.Vz(b)},Y};
M4G=function(Y,b){Y.disposables||(Y.disposables=[]);Y.disposables.push(b)};
g2=function(Y){var b=w2;b&&!b.isDisposed&&(M4G(b,Y),Y.parent=b)};
pf6=function(Y){if(Y.disposables){for(var b=_.N(Y.disposables),w=b.next();!w.done;w=b.next())w=w.value,typeof w==="function"?w():eUL(w);Y.disposables.length=0}};
eUL=function(Y){if(!Y.isDisposed){Y.isDisposed=!0;var b;(b=Y[Symbol.dispose])==null||b.call(Y);delete Y.parent;pf6(Y)}};
rqg=function(Y){var b={retrieve:function(w){switch(w.\u0275prov.token){case O7t.\u0275prov.token:var V=Y.asyncDeps;break;case t4q.\u0275prov.token:V=Y.rootElement;break;case RUe.\u0275prov.token:V=Y.modelRootElement;break;case d$G.\u0275prov.token:V=Y.appContext;break;case FzB.\u0275prov.token:V=Y.rendererData;break;case Lzr.\u0275prov.token:V=Y.injectingConstructor;break;case Szq.\u0275prov.token:V=Y.dispatcher}if(V)w=V;else a:{for(V=b.parent;V;){var H=V;if(H.retrieve){w=H.retrieve(w);break a}V=
V.parent}V=w.\u0275prov.token;H=aZI[V];H!==void 0?w=H:(H=w.\u0275prov.providedIn,w.\u0275prov.factory?(w=w.\u0275prov.factory(),V&&H==="root"&&(aZI[V]=w)):w=v26)}return w}};
g2(b);return b};
zUu=function(){var Y=_.BxL(1),b=Z7L(Y,d$G);P1I(b)&&(Y=Z7L(Y,Szq),P1I(Y)||Y.getOptionalAppContext())};
WzK=function(Y){if(typeof document!=="undefined"&&document&&document.getElementById&&(Y=document.getElementById(Y))){var b=Y.tagName.toUpperCase();if(b=="SCRIPT"||b=="LINK")return Y}return null};
i76=function(Y,b){if((Y=Y===void 0?"":Y)&&b)throw Error("xb");var w="";var V=_.wB._F_jsUrl;(Y=b||WzK(Y))&&(w=Y.src?Y.src:Y.getAttribute("href"));if(V&&w){if(V!=w)throw Error("yb`"+V+"`"+w);w=V}else w=V||w;if(!Kz6(w))throw Error("zb");return w};
$$b=function(){if(!Aqt){Aqt=!0;try{var Y=i76(_.wB._F_jsUrl?"":"base-js")}catch(V){return}var b=C1g(yqt(Y)),w=Object.keys(b);w.length!==0&&Yzr(function(V){for(var H=_.N(w),f=H.next();!f.done;f=H.next()){f=f.value;for(var E=_.N(Object.keys(b[f])),U=E.next();!U.done;U=E.next())V.addExtraEdge(f,U.value)}})}};
GOK=function(){var Y=Object.assign({},jIv);Object.getOwnPropertyNames(jIv).forEach(function(b){_.fQ[b]!==void 0&&(Y[b]=_.fQ[b])});
return Y};
Txa=function(Y,b){if(_.fQ.enablePerformanceTiming){var w,V;(V=(w=performance).mark)==null||V.call(w,Y+"Start__"+b)}};
Jqg=function(Y,b){if(_.fQ.enablePerformanceTiming){var w,V;(V=(w=performance).measure)==null||V.call(w,Y+"__"+b,Y+"Start__"+b)}};
uPB=function(Y,b,w){var V;return Y&&b?Y+"__"+b:(V=Y!=null?Y:b)!=null?V:w};
bHe=function(Y,b){var w=Object.create(YJK);w.debugName=b;!w2||g2(w);b=_.Vz(w);try{Y(w)}finally{_.Vz(b)}return function(){return void eUL(w)}};
V3v=function(Y){return NG(Y)&&wQB in Y};
HHK=function(Y,b){return Object.is(Y,b)};
ch=function(Y){var b=EN;EN=Y;return b};
Eua=function(Y){if(UN)throw Error("da");if(EN!==null){var b=EN.nextProducerIndex++;gu6(EN);b<EN.producerNode.length&&EN.producerNode[b]!==Y&&XI(EN)&&fju(EN.producerNode[b],EN.producerIndexOfThis[b]);EN.producerNode[b]!==Y&&(EN.producerNode[b]=Y,EN.producerIndexOfThis[b]=XI(EN)?NaK(Y,EN,b):0);EN.producerLastReadVersion[b]=Y.version}};
XQI=function(Y){if(!XI(Y)||Y.dirty)if(Y.dirty||Y.lastCleanEpoch!==c6g)(Y.producerMustRecompute(Y)||Unu(Y))&&Y.producerRecomputeValue(Y),Y.dirty=!1,Y.lastCleanEpoch=c6g};
Dnq=function(Y){if(Y.liveConsumerNode!==void 0){var b=UN;UN=!0;try{for(var w=_.N(Y.liveConsumerNode),V=w.next();!V.done;V=w.next()){var H=V.value;H.dirty||(Y=void 0,H.dirty=!0,Dnq(H),(Y=H.consumerMarkedDirty)==null||Y.call(H,H))}}finally{UN=b}}};
mnu=function(){var Y;return((Y=EN)==null?void 0:Y.consumerAllowSignalWrites)!==!1};
oub=function(Y){Y&&(Y.nextProducerIndex=0);return ch(Y)};
Ije=function(Y,b){ch(b);if(Y&&Y.producerNode!==void 0&&Y.producerIndexOfThis!==void 0&&Y.producerLastReadVersion!==void 0){if(XI(Y))for(b=Y.nextProducerIndex;b<Y.producerNode.length;b++)fju(Y.producerNode[b],Y.producerIndexOfThis[b]);for(;Y.producerNode.length>Y.nextProducerIndex;)Y.producerNode.pop(),Y.producerLastReadVersion.pop(),Y.producerIndexOfThis.pop()}};
Unu=function(Y){gu6(Y);for(var b=0;b<Y.producerNode.length;b++){var w=Y.producerNode[b],V=Y.producerLastReadVersion[b];if(V!==w.version)return!0;XQI(w);if(V!==w.version)return!0}return!1};
NaK=function(Y,b,w){krg(Y);if(Y.liveConsumerNode.length===0&&Y.producerNode!==void 0)for(var V=0;V<Y.producerNode.length;V++)Y.producerIndexOfThis[V]=NaK(Y.producerNode[V],Y,V);Y.liveConsumerIndexOfThis.push(w);return Y.liveConsumerNode.push(b)-1};
fju=function(Y,b){krg(Y);if(Y.liveConsumerNode.length===1&&Y.producerNode!==void 0)for(var w=0;w<Y.producerNode.length;w++)fju(Y.producerNode[w],Y.producerIndexOfThis[w]);w=Y.liveConsumerNode.length-1;Y.liveConsumerNode[b]=Y.liveConsumerNode[w];Y.liveConsumerIndexOfThis[b]=Y.liveConsumerIndexOfThis[w];Y.liveConsumerNode.length--;Y.liveConsumerIndexOfThis.length--;b<Y.liveConsumerNode.length&&(w=Y.liveConsumerIndexOfThis[b],Y=Y.liveConsumerNode[b],gu6(Y),Y.producerIndexOfThis[w]=b)};
XI=function(Y){var b,w;return Y.consumerIsAlwaysLive||((w=Y==null?void 0:(b=Y.liveConsumerNode)==null?void 0:b.length)!=null?w:0)>0};
gu6=function(Y){Y.producerNode!=null||(Y.producerNode=[]);Y.producerIndexOfThis!=null||(Y.producerIndexOfThis=[]);Y.producerLastReadVersion!=null||(Y.producerLastReadVersion=[])};
krg=function(Y){Y.liveConsumerNode!=null||(Y.liveConsumerNode=[]);Y.liveConsumerIndexOfThis!=null||(Y.liveConsumerIndexOfThis=[])};
hBG=function(Y){var b=Object.create(lju);b.computation=Y;Y=function(){XQI(b);Eua(b);if(b.value===Ds)throw b.error;return b.value};
Y[o2]=b;return Y};
QVu=function(Y,b){var w=Object.create(xnv);w.value=Y;b!==void 0&&(w.equal=b);Y=function(){Eua(w);return w.value};
Y[o2]=w;return[Y,function(V){return qJb(w,V)},
function(V){mnu()||sVg(w);qJb(w,V(w.value))}]};
qJb=function(Y,b){mnu()||sVg(Y);if(!Y.equal(Y.value,b)){Y.value=b;Y.version++;c6g++;Dnq(Y);var w;(w=vuq)==null||w(Y)}};
I2=function(Y){var b=ch(null);try{return Y()}finally{ch(b)}};
_.kw=function(Y,b,w){w=w===void 0?"":w;Y=QVu(Y,b==null?void 0:b.equals);var V=Y[0],H=V[o2];H.debugName=uPB(b==null?void 0:b.debugName,w,"[signal]");if(!_.fQ.enablePerformanceTiming)return Y;var f=Y[1],E=Y[2];return[V,function(U){PcB(function(){return void f(U)},H)},
function(U){PcB(function(){return void E(U)},H)}]};
PcB=function(Y,b){Txa("signalSet",b.debugName);try{Y()}finally{Jqg("signalSet",b.debugName)}};
Bar=function(Y,b){var w=_.N(_.kw(Y,void 0,"cPpJzc"));Y=w.next().value;w=w.next().value;Y[ZHK]=w;Y[lN]=b;return Y};
nut=function(Y){return!!Y&&typeof Y==="object"&&Object.getPrototypeOf(Y)===Object.prototype};
M3I=function(Y){return typeof Y==="function"&&ZHK in Y&&typeof Y[ZHK]==="function"};
eBa=function(Y,b){Object.defineProperty(Y,lN,{get:function(){return b}})};
xw=function(Y,b){if(hl(Y)){var w=Y.map(function(f){return xw(f,b)});
eBa(w,b);return w}if(nut(Y)){w={};Y=_.N(Object.entries(Y));for(var V=Y.next();!V.done;V=Y.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;w[V]=xw(H,b)}eBa(w,b);return w}return Bar(Y,b)};
pQv=function(Y){if(hl(Y))return Y.map(function(H){return pQv(H)});
if(nut(Y)){var b={};Y=_.N(Object.entries(Y));for(var w=Y.next();!w.done;w=Y.next()){var V=_.N(w.value);w=V.next().value;V=V.next().value;b[w]=pQv(V)}return b}return M3I(Y)?Y():Y};
t36=function(){var Y={height:0,width:0};if(!nut(Y))throw Error("Lb");var b=Symbol("Mb");return[xw(Y,b),function(w,V){if(w[lN]===b)if(typeof V==="function"){var H=[].concat(_.Bt(pQv(w)));V=V(H)||H;OHM(w,[].concat(_.Bt(V)))}else OHM(w,V);else throw Error("Nb");}]};
OHM=function(Y,b){if(M3I(Y))Y[ZHK](b);else if(hl(Y)&&hl(b))b=xw(b,Y[lN]),Y.length=0,Y.push.apply(Y,_.Bt(b));else if((nut(Y)||hl(Y))&&(hl(b)||typeof b==="object"&&b!==null)){b=_.N(Object.entries(b));for(var w=b.next();!w.done;w=b.next()){var V=_.N(w.value);w=V.next().value;V=V.next().value;var H=Y,f=H[w];Object.hasOwn(Y,w)?OHM(f,V):H[w]=xw(V,Y[lN])}}else throw Error("Ob");};
RBK=function(Y){return Object.create(Object.assign({},qG,Y))};
F$I=function(){var Y;return(Y=dnG)!=null?Y:dnG=RBK({consumerAllowSignalWrites:!0})};
_.sN=function(Y,b,w){w=w===void 0?"":w;Y=hBG(Y);var V=Y[o2];V.debugName=uPB(b==null?void 0:b.debugName,w,"[computed]");(b==null?void 0:b.equals)!=null&&(V.equal=b.equals);return Y};
Qz=function(Y){var b=ch(L$b);try{Y()}finally{ch(b)}};
iHe=function(Y){if(!Y.isDisposed)switch(Y.effectType){case SJg:ajq.schedule(Y);break;case r6M:zBa.schedule(Y);break;case W$v:K$v.schedule(Y);break;default:_.cI(Y.effectType)}};
Ccu=function(Y){A6v.push(Y);return function(){var b=A6v.indexOf(Y);b!==-1&&A6v.splice(b,1)}};
$nK=function(){if(vh>0)_.fQ.flushRenderEffectsDuringRender&&ajq.flush();else for(var Y=_.N(y6g),b=Y.next();!b.done;b=Y.next())b.value.flush()};
Grt=function(Y){Ph=!0;try{for(var b=_.N(Y),w=b.next();!w.done;w=b.next()){for(var V=w.value,H=[V],f=V;f.parent!==void 0;)f=f.parent,jVt(f)&&Y.has(f)&&H.push(f);for(;H.length>0;){var E=H.pop();Y.delete(E);E.run()}}}finally{Ph=!1}};
Zs=function(Y){vh--;if(Y){Y=_.N(y6g);for(var b=Y.next();!b.done;b=Y.next())b.value.clear()}else vh>0||Ph&&!_.fQ.flushRenderEffectsDuringRender||$nK()};
J6B=function(Y,b,w){var V=TaI(Y);Bh={name:w?V+" ("+w+")":V,isReactive:Y.componentType!==nQ,parent:Bh};Y=b();Bh=Bh.parent;return Y};
MG=function(){var Y=Bh;return Y?Y.isReactive:!1};
ON=function(Y,b){var w=Bh;b&&(Bh=b);try{return Y()}catch(f){Y=f;pQ(Y,Bh);if(Y!==uOb){YKv=Bh;b=[];for(var V=w2;V;){var H=void 0;b.push((H=V.debugName)!=null?H:"[context]");H=void 0;V=(H=V.parent)!=null?H:null}bbg=b.reverse()}uOb=Y;throw Y;}finally{Bh=w}};
pQ=function(Y,b){try{var w=wOg(b);if(w&&!Y.componentStack&&(Y.componentStack=w,_.fQ.enableComponentStacksInErrorMessages)){var V=Y.message+"\n\nComponent stack: "+w;Y.stack&&(Y.stack=Y.stack.replace(Y.message,V));Y.message=V}}catch(H){}};
wOg=function(Y){if(NG(Y)&&Y.name!==void 0&&Y.isReactive!==void 0&&Y.parent!==void 0||Y===null){for(var b=0,w="";b<20&&Y;)w+=Y.name+" > ",Y=Y.parent,b++;Y=w.slice(0,-3)}else if(_.fQ.enableContextBasedComponentStacks){a:{for(Y=Y===void 0?w2:Y;Y;){if(V3v(Y))break a;b=void 0;Y=(b=Y.parent)!=null?b:null}Y=null}Y=Y.getComponentStack().slice(0,20).join(" > ")}else Y="";return Y};
TaI=function(Y){return Y.debugName||Y.name||"[component]"};
VIv=function(Y,b,w){b=Object.create(b);b.effectFn=Y;w&&(b.debugName=w);g2(b);b.componentStack=Bh;return b};
_.tl=function(Y,b){Y=VIv(Y,HbG,b);iHe(Y)};
_.R2=function(Y){var b=w2;if(b){var w=Bh;M4G(b,function(){var V=ch(F$I());try{ON(function(){return void Y()},w)}catch(H){throw _.fQ.enableContextBasedComponentStacks&&pQ(H),H;
}finally{ch(V)}})}};
d2=function(Y,b){var w={};(b===void 0||b)&&g2(w);b=_.Vz(w);try{Y(w)}finally{_.Vz(b)}return function(){return void eUL(w)}};
_.Sa=function(Y){return typeof Y==="function"?Y():(Y==null?0:Y[gr6])?Y.get():Y};
_.a2=function(Y,b){Y=VIv(Y,f9e,b);iHe(Y)};
NGM=function(Y){if(w2)throw Error("sb");d2(Y,!1)};
r2=function(Y,b){Y=_.Vz(Y);try{return I2(b)}finally{_.Vz(Y)}};
_.zl=function(Y,b){var w=wOg(YKv),V,H;var f=(H=(V=bbg)==null?void 0:V.slice())!=null?H:[];b={componentStack:w,contextTrace:f,errorSeverity:3,featureFlags:GOK(),tagName:b};return[Y,b]};
UzI=function(Y,b,w){if(Object.hasOwnProperty.call(Ere,Y)&&(Y=Ere[Y],Object.hasOwnProperty.call(Y,b)&&(Y=Y[b],Y instanceof Array))){for(var V=null,H=!1,f=0,E=Y.length;f<E;++f){var U=Y[f],X=U.contingentAttribute;if(!X)return U.contract;V===null&&(V={});X=Object.hasOwnProperty.call(V,X)?V[X]:V[X]=w(X);if(X===U.requiredValue)return U.contract;X==null&&(H=!0)}if(H)return null}b=cEB[b];return typeof b==="number"?b:null};
mzK=function(Y,b,w){var V=null;(Y=XOK[Y])&&(V=Y[b]);return typeof V!=="number"&&((Y=XOK["*"])&&(V=Y[b]),typeof V!=="number")?!1:!0===Dzt[V][String(w).toLowerCase()]};
I9b=function(Y,b){b=UzI(Y.toLowerCase(),b,function(){var V;(V=_.fQ.handleError)==null||V.call.apply(V,[_.fQ].concat(_.Bt(_.zl(Error("Sb"),Y.toLowerCase()))))});
if(b===null)return null;var w;return(w=orB[b])!=null?w:null};
kDr=function(Y,b,w){if(w===null||w===void 0)return w;Y=I9b(Y,b);return Y===null?w:Y(b,w)};
l9r=function(){};
Wh=function(Y,b){for(;Y.length>b;)Y.pop()};
hnL=function(Y){Y=Array(Y);Wh(Y,0);return Y};
xzB=function(Y,b,w){if(w==null)Y.removeAttribute(b);else{var V;(V=b.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":b.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?Y.setAttributeNS(V,b,w):Y.setAttribute(b,w)}};
qKM=function(Y,b,w){Y[b]=w};
Qqq=function(Y,b,w){Y=Y.style;if(typeof w==="string")Y.cssText=w;else{Y.cssText="";for(var V in w)if(sqL.call(w,V)){b=Y;var H=V,f=w[V];H.indexOf("-")>=0?b.setProperty(H,f):b[H]=f}}};
vrG=function(Y,b,w){var V=typeof w;V==="object"||V==="function"?Y[b]=w:xzB(Y,b,w)};
PSb=function(){var Y=new l9r;Y[KQ.default]=vrG;Y.style=Qqq;return Y};
Zbu=function(Y,b,w,V){(V[b]||V[KQ.default])(Y,b,w)};
nr6=function(Y,b,w){b=new BGq(b,w);return Y.__incrementalDOMData=b};
iN=function(Y,b){if(Y.__incrementalDOMData)return Y.__incrementalDOMData;var w=Y.nodeType===1?Y.localName:Y.nodeName,V=Y.nodeType===1?Y.getAttribute("key"):null;b=nr6(Y,w,Y.nodeType===1?V||b:null);if(Y.nodeType===1&&(Y=Y.attributes,w=Y.length)){V=b._attrsArr||(b._attrsArr=hnL(w*2));for(var H=0,f=0;H<w;H+=1,f+=2){var E=Y[H],U=E.value;V[f]=E.name;V[f+1]=U}}return b};
MII=function(Y,b,w,V,H){return b==w&&V==H};
ene=function(Y){for(var b=Al,w=CQ();w!==Y;){var V=w.nextSibling;b.removeChild(w);yz.deleted.push(w);w=V}};
CQ=function(){return $w?$w.nextSibling:Al.firstChild};
ja=function(){$w=CQ()};
tIa=function(Y,b,w){ja();var V;a:{if(V=$w){do{var H=V,f=Y,E=b,U=iN(H,E);if(pOr(H,f,U.nameOrCtor,E,U.key))break a}while(b&&(V=V.nextSibling))}V=null}V||(Y==="#text"?(w=Gl.createTextNode(""),nr6(w,"#text",null),Y=w):(V=Gl,H=Al,typeof Y==="function"?V=new Y:V=(H=Y==="svg"?"http://www.w3.org/2000/svg":Y==="math"?"http://www.w3.org/1998/Math/MathML":H==null||iN(H).nameOrCtor==="foreignObject"?null:H.namespaceURI)?V.createElementNS(H,Y):V.createElement(Y),nr6(V,Y,b),Y=V,w&&Y.setAttribute("nonce",w)),yz.created.push(Y),
V=Y);w=V;if(w!==$w){if(Obt.indexOf(w)>=0)for(Y=Al,b=w.nextSibling,V=$w;V!==null&&V!==w;)H=V.nextSibling,Y.insertBefore(V,b),V=H;else Al.insertBefore(w,$w);$w=w}};
Rne=function(Y,b,w){tIa(Y,b,w);Al=$w;$w=null;return Al};
dze=function(){ene(null);$w=Al;Al=Al.parentNode};
Tl=function(){$w=Al.lastChild};
SK6=function(Y,b){b=b===void 0?{}:b;var w=b.matches===void 0?MII:b.matches;return function(V,H,f){var E=yz,U=Gl,X=Obt,I=Jl,k=b1,l=$w,x=Al,Q=pOr;Gl=V.ownerDocument;yz=new Fqq(V);pOr=w;Jl=[];b1=[];$w=null;var Z=Al=V.parentNode,e,O=Lq6.call(V);if((e=O.nodeType===11||O.nodeType===9?O.activeElement:null)&&V.contains(e)){for(O=[];e!==Z;)O.push(e),e=e.parentNode||(Z?e.host:null);Z=O}else Z=[];Obt=Z;try{return Y(V,H,f)}finally{V=yz,wx&&V.deleted.length>0&&wx(V.deleted),Gl=U,yz=E,pOr=Q,Jl=I,b1=k,$w=l,Al=x,
Obt=X}}};
a9B=function(Y,b,w,V){Hf.push(Zbu);Hf.push(Y);Hf.push(b);Hf.push(w);Hf.push(V)};
zna=function(Y,b,w){var V=b1;b=b._attrsArr||(b._attrsArr=hnL(V.length));for(var H=!b.length||!1,f=0;f<V.length;f+=2){var E=V[f];if(H)b[f]=E;else if(b[f]!==E)break;var U=V[f+1];if(H||b[f+1]!==U)b[f+1]=U,a9B(Y,E,U,w)}if(f<V.length||f<b.length){for(f=H=f;f<b.length;f+=2)gx[b[f]]=b[f+1];for(f=H;f<V.length;f+=2)H=V[f],E=V[f+1],gx[H]!==E&&a9B(Y,H,E,w),b[f]=H,b[f+1]=E,delete gx[H];Wh(b,V.length);for(var X in gx)a9B(Y,X,void 0,w),delete gx[X]}Y=rEG;rEG=w=Hf.length;for(X=Y;X<w;X+=5)(0,Hf[X])(Hf[X+1],Hf[X+
2],Hf[X+3],Hf[X+4]);rEG=Y;Wh(Hf,Y);Wh(V,0)};
f7=function(Y){tIa("#text",null);var b=$w;var w=iN(b);if(w.text!==Y){w=w.text=Y;for(var V=1;V<arguments.length;V+=1)w=(0,arguments[V])(w);b.data!==w&&(b.data=w)}};
yEb=function(Y,b,w){if(w===!1&&WqI.has(b))xzB(Y,b,null);else if(b!=="idomKey"&&b!=="skip"&&b!=="skipchildren"&&b!=="children"&&b!=="el")if(b.startsWith("on"))if(b[2]===":")if(w===void 0||w===null){var V;(V=_.fQ.handleError)==null||V.call.apply(V,[_.fQ].concat(_.Bt(_.zl(Error("Wb`"+b),Y.tagName))));Y[b]=void 0}else{var H=b.slice(3);V=MG();if(H==="jsaction"){w=_.N(Array.isArray(w)?w:[w]);for(var f=w.next();!f.done;f=w.next()){f=f.value;if(typeof f!=="object"||f===null||typeof f.selfReg!=="function")throw Error("Zb`"+
b);f.selfReg(0,Y,V?_.R2:function(){})}}else{if(typeof w!=="object"||w===null)throw Error("Xb`"+b+"`"+typeof w);
if(typeof w.getFn!=="function")throw Error("Yb`"+b+"`"+Object.keys(w));if(w.selfReg)w.selfReg(0,Y,H,V?_.R2:function(){});
else if(V&&Y["on"+H]===void 0){var E=w.getFn(0);Y.addEventListener(H,E);_.R2(function(){return void Y.removeEventListener(H,E)})}else if(V||!KqB.includes(H))Y["on"+H]=w.getFn(0)}}else ibL(Y,b,w);
else{if(b.startsWith("data-")&&typeof w==="string")try{w=AEr(w)}catch(U){w="zSoyz"}typeof w!=="function"||Y._disposeEffects!=null?(_.fQ.enableAttributeSanitization&&(w=kDr(Y.tagName,b,w)),b==="style"?("function"==typeof _.N$&&w instanceof _.N$&&(w=w.toString()),CSv(Y,b,w)):b.startsWith("prop:")?(b=b.slice(5),Y[b]=w):ibL(Y,b,w)):(Y._signalProps||(Y._signalProps=[]),Y._signalValues||(Y._signalValues=[]),Y._signalProps.push(b))}};
$zb=function(Y,b,w){w=(w===void 0?{}:w).isReactive;if(b==null?0:b.el){var V=b.el;if(typeof V==="function")V(Y);else{var H;(H=V.onRender)==null||H.call(V,Y);Y._disposeRef||(Y._disposeRef=function(){var f;(f=V.onUnmount)==null||f.call(V);delete Y._disposeRef},w&&_.R2(function(){var f;
return void((f=Y._disposeRef)==null?void 0:f.call(Y))}))}}};
jqg=function(Y){return NG(Y)&&Ez in Y};
GDK=function(Y){return jqg(Y)?Y[Ez].flattened:Y};
TGu=function(Y,b){var w=_.BN.apply(2,arguments),V;b=(V=b)!=null?V:{};V={};return V.type=Y,V.props=b,V.children=w,V[cf]=!0,V};
_.Uz=function(Y){return Y.children};
XP=function(Y){var b=JEK!==TGu;JEK=Y?u4K:TGu;return b};
_.DZ=function(Y){return _.bC(Y)?"nodeType"in Y:!1};
mz=function(){return document.createTextNode("")};
oI=function(Y){Y=document.createTextNode(String(Y));Y._isSignalTextNode=!0;return Y};
VkM=function(Y){var b=document.createElement("div");if(YPq(Y)&&R7L(Y))_.iH(b,R7L(Y));else if(Y instanceof pu)_.iH(b,Y);else if(bBI(Y)){if(Y.contentKind!==wyu)throw Error("Vb");Y=Ou(Y.toString());_.iH(b,Y)}Y=_.N(b.childNodes);for(var w=Y.next();!w.done;w=Y.next())w.value._isSafeOrSanitizedHtmlNode=!0;return b};
II=function(Y){Y=typeof Y;return Y==="string"||Y==="number"||Y==="boolean"};
HBM=function(Y){return Y instanceof cN||kH(Y)||"function"==typeof _.y$&&Y instanceof _.y$||"function"==typeof _.N$&&Y instanceof _.N$};
gPI=function(Y,b){var w=Y.parentElement;if(!w)return b;w.replaceChild(b,Y);return b};
fFr=function(Y,b){var w=Y[0].parentElement;if(w)if(Y[0].previousSibling||Y[Y.length-1].nextSibling){w.insertBefore(b,Y[0]);for(var V=Y.length-1;V>=0;V--)w.removeChild(Y[V])}else w.textContent="",w.appendChild(b);return b};
Nht=function(Y,b){if(Y[0].parentElement)for(var w=Y[0].parentElement,V=b.length,H=Y.length,f=V,E=0,U=0,X=Y[H-1].nextSibling,I=null;E<H||U<f;)if(Y[E]===b[U])E++,U++;else{for(;Y[H-1]===b[f-1];)H--,f--;if(H===E)for(var k=f<V?U?b[U-1].nextSibling:b[f-U]:X;U<f;){var l=b[U++];w.insertBefore(l,k)}else if(f===U)for(;E<H;)k=Y[E],I&&I.has(k)||w.removeChild(k),E++;else if(Y[E]===b[f-1]&&b[U]===Y[H-1])k=Y[--H].nextSibling,w.insertBefore(b[U++],Y[E++].nextSibling),w.insertBefore(b[--f],k),Y[H]=b[f];else{if(!I)for(I=
new Map,k=U;k<f;)I.set(b[k],k++);k=I.get(Y[E]);if(k==null)w.removeChild(Y[E]),E++;else if(U<k&&k<f){l=E;for(var x=1,Q=void 0;++l<H&&l<f&&(Q=I.get(Y[l]))!=null&&Q===k+x;)x++;if(x>k-U)for(l=Y[E];U<k;)w.insertBefore(b[U++],l);else w.replaceChild(b[U++],Y[E++])}else E++}}return b};
XyL=function(Y,b){var w;b!=null?w=b:w=_.QIG(document).getAppContext();w.get(EP6).JSC$25551_getEventTarget().dispatchEvent(new che(UYu,Y,wyu))};
mYM=function(Y){if(Array.isArray(Y)){if(Y.length>1)throw Error("hc`"+Y.length+"`"+Y.map(DYB).join(", "));Y=Y[0]}if(Y==null)return null;if(!(Y instanceof _.ag)){var b,w;if((b=window)==null?0:(w=b.trustedTypes)==null?0:w.isScript(Y))throw Error("gc");if(String(Y).trim().length===0)return null;throw Error("ic`"+DYB(Y));}return Y};
oPv=function(Y){if(Array.isArray(Y)){if(Y.length>1)throw Error("jc`"+Y.length+"`"+Y.map(DYB).join(", "));Y=Y[0]}if(Y==null)return null;if(!Qwr(Y)){if(String(Y).trim().length===0)return null;throw Error("kc`"+DYB(Y));}return Y};
DYB=function(Y){return"("+typeof Y+") "+(Y!=null&&typeof Y==="object"?Y.constructor.name:typeof Y)+" "+Y};
l1=function(Y,b){function w(){H=!1;b.isControlFlowComponent&&vh++;var f=V[0],E=V[Ez].flattened,U=XP(!0);try{var X=Y(),I=IFM(f,X,V);Array.isArray(I)||(V[Ez].flattened=[I]);var k=V[Ez].flattened;if(E&&(!Array.isArray(E)||E.length!==0)){var l=Array.isArray(E)?E[0]:E,x=l[k2],Q=l._disposeEffects;l._disposeEffects=void 0;l=Array.isArray(k)?k[0]:k;l[k2]=x;l[k2]&&(l[k2].numNodes=l===k?1:k.length);l._disposeEffects=Q}V[0]=I;b.isControlFlowComponent&&Zs(!1)}catch(Z){throw b.isControlFlowComponent&&Zs(!0),Z;
}finally{XP(U)}}
b=b===void 0?{}:b;var V=kMq(),H=!0;_.fQ.legacyTriggerSoyRendererEvents&&zUu();_.a2(function(){(lFv==null?0:lFv.logger)&&!H?(lFv.logger.logGraft(V[Ez].flattened[0].parentElement,w),lFv.logger.resetBuilder()):w()},b.debugName);
return V};
IFM=function(Y,b,w){for(;typeof b==="function";)b=b();if(b!=null&&b[cf]){var V,H,f;(f=_.fQ.handleError)==null||f.call.apply(f,[_.fQ].concat(_.Bt(_.zl(Error("lc`"+((V=b.type)==null?void 0:V.TAG_NAME)),(H=b.type)==null?void 0:H.TAG_NAME))))}if(Y==null)return b==null?mz():II(b)?oI(b):HBM(b)?oI(b.toString()):_.DZ(b)?b:b.length===0?mz():hGM(b,w);if(_.DZ(Y)){if(b==null)return gPI(Y,mz());if(II(b))return xYK(Y,b);if(HBM(b))return xYK(Y,b.toString());if(_.DZ(b))return gPI(Y,b);if(b.length===0)return gPI(Y,
mz());b=hGM(b,w);Nht([Y],w[Ez].flattened);return b}Y=hq(Y);if(b==null)return fFr(Y,mz());if(II(b))return fFr(Y,oI(b));if(HBM(b))return fFr(Y,oI(b.toString()));if(_.DZ(b))return Nht(Y,[b])[0];if(b.length===0)return fFr(Y,mz());b=hGM(b,w);Nht(Y,w[Ez].flattened);return b};
xYK=function(Y,b){Y.nodeType===Node.TEXT_NODE?Y.textContent!==String(b)&&(Y.textContent=String(b)):Y=gPI(Y,oI(b));return Y};
hq=function(Y,b,w){return qPr(Y,b!=null?b:[],w===void 0?!1:w)};
hGM=function(Y,b){var w=hq(Y,void 0,!0);if(w.length===0)return mz();b[Ez].flattened=w;return Y};
qPr=function(Y,b,w,V,H){b=b===void 0?[]:b;w=w===void 0?!1:w;H=H===void 0?-1:H;if(Y==null)return b;if(Y instanceof x2)return Y=Y.render(),qPr(Y,b,w,V,H);if(_.DZ(b)&&b.nodeType===Node.ELEMENT_NODE)switch(b.tagName){case "SCRIPT":w=mYM(Y);w!==null&&_.WN(b,w);return;case "STYLE":w=oPv(Y);w!==null&&(b.textContent=_.vMG(w));return}II(Y)&&(Y=oI(Y),V&&w&&(V[H]=Y));if(bBI(Y)||Y instanceof pu||YPq(Y)){w=VkM(Y);w=Array.from(w.childNodes);w=_.N(w);for(Y=w.next();!Y.done;Y=w.next())sYL(b,Y.value);return b}HBM(Y)&&
(Y=oI(Y.toString()),V&&w&&(V[H]=Y));if(_.DZ(Y))return sYL(b,Y);if(Array.isArray(Y)){for(var f=0;f<Y.length;f++)qPr(Y[f],b,w,Y,f);return b}if(typeof Y==="function"){Y=l1(Y,{debugName:"qmF2ne"})[0];if(Array.isArray(Y)){w=_.N(Y);for(Y=w.next();!Y.done;Y=w.next())sYL(b,Y.value);return b}V&&w&&(V[H]=Y);return sYL(b,Y)}if(Y!=null&&Y[cf]){V=XP(!0);H=JEK;try{f=H.apply(null,[Y.type,Y.props].concat(_.Bt(Y.children)))}finally{XP(V)}return qPr(f,b,w)}var E;(E=_.fQ.handleError)==null||E.call.apply(E,[_.fQ].concat(_.Bt(_.zl(Error("mc")))));
return b};
kMq=function(Y){var b={};b=Object.assign([],(b[Ez]={flattened:[]},b));if(!Y)return b;b[0]=hGM(Y,b);return b};
sYL=function(Y,b){Array.isArray(Y)?Y.push(b):Y.appendChild(b);return Y};
q$=function(Y){if(!_.fQ.enableLazyTsx)return Y;if(Array.isArray(Y)){for(var b=0;b<Y.length;b++)Y[b]=q$(Y[b]);return Y}return Y instanceof x2?(Y=Y.render(),q$(Y)):Y};
vPv=function(Y,b){var w,V,H=TaI(Y),f=function(Q){V=Q;Q=XP(!0);var Z=ch(sz);Txa("render",H);try{w=q$(Y(b))}finally{Jqg("render",H),ch(Z),XP(Q)}};
f=_.fQ.enableContextPerComponent?bHe(f,H):d2(f,_.fQ.alwaysTrackContexts||!!w2);V3v(V);if(!b.renderedFromIdom){var E=_.Vz(V);try{return QYq(Y,b,w),w}finally{_.Vz(E)}}!jqg(w)&&Array.isArray(w)&&(w=kMq(w));var U=GDK(w);E=Array.isArray(U)?U[0]:U;var X=!1;if(E){var I,k=(I=b==null?void 0:b.idomKey)!=null?I:Y;I=U!==E;E._disposeEffects=f;var l=E[k2]||{},x=jqg(w)?w:l.sourceDynamicRange;Object.assign(l,{key:k,numNodes:I?U.length:1,context:V,higherOrder:!!E[k2],sourceDynamicRange:x});E[k2]=l}else X=!0;(function(){var Q=
_.Vz(V);try{QYq(Y,b,U)}finally{_.Vz(Q)}})();
X&&f();return w};
PFu=function(Y){var b={},w;for(w in Y)b={prev$jscomp$23:void 0,next$jscomp$32:void 0},b.prev$jscomp$23=QW[w],b.next$jscomp$32=Y[w],QW[w]=function(V){return function(){var H=_.BN.apply(0,arguments);V.prev$jscomp$23.apply(null,_.Bt(H));V.next$jscomp$32.apply(null,_.Bt(H))}}(b)};
ZBv=function(){if(MG())throw Error("nc");return vf};
Bhu=function(Y,b){if(!Y.__unmounted&&b){Y.__unmounted=!0;try{Y.didUnmount()}catch(H){var w,V;(V=_.fQ.handleError)==null||V.call.apply(V,[_.fQ].concat(_.Bt(_.zl(H,(w=Y.JSC$8251___type)==null?void 0:w.TAG_NAME))))}QW.didUnmount(Y);Y.el=null;b.__instance&&delete b.__instance}};
Mkq=function(Y,b,w){Y._signalProps!=null&&Y._disposeEffects==null&&((w===void 0?0:w)?Y._disposeEffects=d2(function(){return void nPL(Y,b)},_.fQ.alwaysTrackContexts||!!w2):nPL(Y,b))};
nPL=function(Y,b){_.a2(function(){for(var w=Y._signalProps,V=Y._signalValues,H=0;H<w.length;H++){var f=w[H],E=b[f]();V[H]!==E&&(V[H]=E,yEb(Y,f,E))}},"e3YVbb")};
eGI=function(Y,b,w){var V,H=[];Y._disposeEffects=d2(function(){_.a2(function(){var f=w();if(f===null||f===void 0)f="";if(II(f)||f===null)V!=null||(V=document.createTextNode("")),V.parentNode!==Y&&(V._isSignalTextNode=!0,Y.insertBefore(V,b)),V.textContent=String(f);else if(bBI(f)||f instanceof pu||YPq(f)){for(var E=H.length>0?H[H.length-1].nextSibling:b,U=_.N(H),X=U.next();!X.done;X=U.next())Y.removeChild(X.value);f=VkM(f);H=Array.from(f.childNodes);f=_.N(H);for(U=f.next();!U.done;U=f.next())Y.insertBefore(U.value,
E)}else throw X=(U=(E=Bh)==null?void 0:E.name)!=null?U:"unknown",Error("cc`"+X+"`"+typeof f);},"VvDgC")},_.fQ.alwaysTrackContexts||!!w2)};
tkt=function(Y,b){var w=_.BN.apply(2,arguments);b!=null||(b={});return!_.fQ.enableLazyTsx||Bh!=null&&!MG()?pya(Y,b,w):new OBq(Y,b,w)};
pya=function(Y,b,w){if(Y===_.Uz)return w;if(typeof Y==="function")return Bh&&!MG()&&(b.renderedFromIdom=!0),J6B(Y,function(){var f=RGL(Y,b,w);if(f)return f;w.length>0&&(b.children=w.length===1?w[0]:w);if(Y.componentType===nQ){var E;bHe(function(){var U=b;if(Y.componentType!==nQ)E=!1;else{U||(U={});var X=new Pf(U,Y),I=ch(sz);try{var k=X.render(U)}finally{ch(I)}k instanceof HTMLElement?(k.__instance=X,X.el=k,X.JSC$8251___type=Y,Y.TAG_NAME=k.tagName.toLowerCase(),QW.didPatch(X),E=k):E=k}},Y.name);
if(E)return E}return vPv(Y,b)},b.debugInstance);
var V=dYq(Y,b),H;for(H in b)yEb(V,H,b[H]);Mkq(V,b);hq(w,V);$zb(V,b,{isReactive:!0});Fpu(V,b);return V};
dYq=function(Y,b){Y=(Lpv.has(Y.toLowerCase())?0:SPq.has(Y.startsWith("svg:")?Y.replace("svg:",""):Y))?document.createElementNS("http://www.w3.org/2000/svg",Y.startsWith("svg:")?Y.replace("svg:",""):Y):aFK(Y,b)||document.createElement(Y);Y[rhq]=!0;return Y};
zGg=function(Y){if(Y){var b;(b=Y._disposeRef)==null||b.call(Y);var w;(w=Y._disposeEffects)==null||w.call(Y);Y.__instance&&Y.__instance instanceof ZZ&&(b=Y.__instance,Bhu(b,Y),b instanceof Pf&&b.disposeEffects());for(b=0;b<Y.childNodes.length;b++)zGg(Y.childNodes[b])}};
Kpe=function(Y){WpI.push(Y)===1&&requestAnimationFrame(function(){setTimeout(function(){var b=[].concat(_.Bt(WpI));WpI=[];b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;try{for(var V=0;V<w.length;V++)zGg(w[V])}catch(H){V=w=void 0,(V=(w=_.fQ).handleError)==null||V.call.apply(V,[w].concat(_.Bt(_.zl(H))))}}})})};
_.m=function(Y,b){return JEK.apply(null,[Y,b].concat(_.Bt(_.BN.apply(2,arguments))))};
iBG=function(Y,b){b=b===void 0?new Map:b;Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,!b.has(w)){var V=void 0,H=(V=w.producerNode)!=null?V:[];b.set(w,H);iBG(H,b)}return b};
_.h=function(Y){var b=Y.cond;if(b===void 0)return Y.else&&Y.else();var w=_.sN(function(){return!!b()},void 0,"JHVi8"),V=function(){var H=b();
if(!H){var f;(f=_.fQ.handleError)==null||f.call.apply(f,[_.fQ].concat(_.Bt(_.zl(Ahv.nonNullableCondIsNull()))))}return H};
return l1(function(){var H=w(),f;d2(function(){var E=ch(sz);try{f=q$(H?Y.then(V):Y.else&&Y.else())}finally{ch(E)}},!0);
return f},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
CFg=function(Y){return _.h(Y)};
_.Bf=function(Y){return Y.keyBy==="INDEX"?yhe(Y):$Yv(Y)};
jYt=function(Y){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){var w=void 0;(w=b.value)==null||w()}};
$Yv=function(Y){var b=Y.keyBy===void 0||Y.keyBy==="REFERENCE",w=b?function(k){return k}:Y.keyBy,V=[],H=[],f=[],E=[],U=[],X=[],I=!0;
_.R2(function(){jYt(E)});
return l1(function(){var k=Y.each(),l=k.length;if(l===0){if(V.length===0&&!I)return f;jYt(E);V=k;H=[];for(k=0;k<V.length;k++)H.push(w(V[k]));f=[];E=[];U=[];X=[];Y.fallback&&(E[0]=GMa(function(){f[0]=q$(Y.fallback())}));
I=!1;return f}for(var x=new The,Q=V.length-1;Q>=0;Q--)x.push(H[Q],Q);Q=Array(l);for(var Z=Array(l),e=Array(l),O=Array(l),L=Array(b?0:l),r={i$jscomp$443:0};r.i$jscomp$443<l;r={i$jscomp$443:r.i$jscomp$443,item$jscomp$103:void 0,key$jscomp$524:void 0},r.i$jscomp$443++){r.item$jscomp$103=k[r.i$jscomp$443];r.key$jscomp$524=w(r.item$jscomp$103);var C=x.pop(r.key$jscomp$524);C!=null?(e[r.i$jscomp$443]=f[C],Z[r.i$jscomp$443]=H[C],Q[r.i$jscomp$443]=E[C],O[r.i$jscomp$443]=U[C],b||(L[r.i$jscomp$443]=X[C]),Qz(function(W){return function(){O[W.i$jscomp$443](W.i$jscomp$443);
if(!b)L[W.i$jscomp$443](W.item$jscomp$103)}}(r)),delete E[C]):Q[r.i$jscomp$443]=GMa(function(W){return function(){var y=_.N(_.kw(W.i$jscomp$443,void 0,"Fqk1zd")),G=y.next().value;
y=y.next().value;O[W.i$jscomp$443]=y;Z[W.i$jscomp$443]=W.key$jscomp$524;if(b)e[W.i$jscomp$443]=q$(Y.children(W.item$jscomp$103,G));else{var Nr=_.N(_.kw(W.item$jscomp$103,void 0,"GBj5de"));y=Nr.next().value;Nr=Nr.next().value;L[W.i$jscomp$443]=Nr;e[W.i$jscomp$443]=q$(Y.children(y,G))}}}(r))}jYt(E);
V=k;H=Z;f=e;E=Q;U=O;X=L;I=!1;return e},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
yhe=function(Y){var b=[],w=[],V=[],H=[],f=!1;_.R2(function(){for(var E=_.N(H),U=E.next();!U.done;U=E.next())U=U.value,U()});
return l1(function(){var E=Y.each();f&&E.length>0&&(H.pop()(),b.pop(),f=!1);for(var U=Array(E.length),X={i$jscomp$444:0};X.i$jscomp$444<E.length;X={i$jscomp$444:X.i$jscomp$444},X.i$jscomp$444++)if(X.i$jscomp$444<b.length)b[X.i$jscomp$444]!==E[X.i$jscomp$444]&&(Qz(function(k){return function(){return void w[k.i$jscomp$444](E[k.i$jscomp$444])}}(X)),b[X.i$jscomp$444]=E[X.i$jscomp$444]),U[X.i$jscomp$444]=V[X.i$jscomp$444];
else{var I=GMa(function(k){return function(){b[k.i$jscomp$444]=E[k.i$jscomp$444];var l=_.N(_.kw(E[k.i$jscomp$444],void 0,"kGMqJe")),x=l.next().value;l=l.next().value;w[k.i$jscomp$444]=l;U[k.i$jscomp$444]=q$(Y.children(x,k.i$jscomp$444))}}(X));
H[X.i$jscomp$444]=I}for(;b.length>E.length;)b.pop(),H.pop()(),w.pop();E.length===0&&!f&&Y.fallback&&(X=GMa(function(){U[0]=q$(Y.fallback())}),H[0]=X,f=!0);
return V=U},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
GMa=function(Y){var b=w2;return d2(function(w){var V=ch(sz);try{w.parent=b,Y(w)}finally{ch(V)}},!1)};
_.n7=function(Y){return Y};
_.M$=function(Y){return{isDefault:!0,children:Y.children}};
_.e4=function(Y){var b=JhB(Y),w=_.sN(function(){return utb(b)},void 0,"F1PF4");
return l1(function(){var V=w(),H;d2(function(){var f=ch(sz);try{H=q$(V())}finally{ch(f)}});
return H},{debugName:Y.debugInstance,
isControlFlowComponent:!0})};
JhB=function(Y){Y=Y.children;return Array.isArray(Y)?Y:[Y]};
YZt=function(Y){var b=Y.props;Y=Y.getChildren()[0];return b.when?{when:b.when,children:Y}:{isDefault:!0,children:Y}};
utb=function(Y){var b=function(){return null};
Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,w!=null&&w[cf]&&(w=w.type===_.M$?{isDefault:!0,children:w.children[0]}:{when:w.props.when,children:w.children[0]}),w instanceof x2&&(w=YZt(w)),w.isDefault)b=w.children;else if(w.when())return w.children;return b};
w6a=function(Y){var b=null,w,V={get value(){var f,E;(E=(f=H).validateGetValue)==null||E.call(f);return H.__value},set value(f){H.__hasBeenSet=!0;H.__value=f}},H=(V.__value=null,V.__hasBeenSet=!1,V.__hasErrored=!1,V.onRender=function(f){if(w&&f!==w){w._disposeRef=void 0;var E;(E=b)==null||E()}w=f;b=Y(f)||null},V.onUnmount=function(){var f;
(f=b)==null||f();b=null},V[bSG]=!0,V);
return H};
VMI=function(Y){var b=ZBv();if(b==null)throw _.p7.PRIMITIVE_INVALID_HOOK_CALL();var w=b.hookCounter++;b.hooks||(b.hooks=[]);var V=b.hooks;V[w]||(V[w]={key:Y,host:b});if(Y!==V[w].key){if(b.JSC$8251___type){var H;Y=(H=b.JSC$8251___type)==null?void 0:H.name}else Y=b instanceof Pf?TaI(b.functionComponent):"<"+b.el.tagName.toLowerCase()+">";throw _.p7.OUT_OF_ORDER_HOOK_CALL(Y);}return V[w]};
HS6=function(Y,b){return!Y||Y.length!==(b==null?void 0:b.length)||Y.some(function(w,V){return w!==b[V]})};
gDI=function(Y,b){var w=VMI("onChange"),V=ZBv();HS6(w.deps,b)&&(w.deps=b,w.pendingEffect=Y,V.__syncEffects||(V.__syncEffects=[]),V.__syncEffects.push(w))};
_.Oz=function(Y,b){var w=w===void 0?{}:w;var V=w.appContext;w=_.fQ.legacyTriggerSoyRendererEvents;var H=ON(function(){var f=ch(sz);try{return d2(function(){var E=_.QIG(_.Oy(Y)),U;var X=rqg({rootElement:{value:Y},appContext:V||(E==null?void 0:(U=E.getOptionalAppContext)==null?void 0:U.call(E)),dispatcher:E});E=_.Vz(X);X=XP(!0);vh++;try{hq(b(),Y),Zs(!1)}catch(I){throw Zs(!0),I;}finally{XP(X),_.Vz(E)}},!1)}catch(E){throw _.fQ.enableContextBasedComponentStacks&&pQ(E),E;
}finally{ch(f)}});
Y[fkM]=!0;w&&XyL(Y,V);return function(){Y.textContent="";H();Y[fkM]=!1}};
_.tq=function(Y){if(jVt(EN)){var b;(b=_.fQ.handleError)==null||b.call.apply(b,[_.fQ].concat(_.Bt(_.zl(Error("bc")))))}var w=w2,V=Bh;Promise.resolve().then(function(){if(w&&!w.isDisposed){var H=_.Vz(w);try{ON(function(){return void Y()},V)}catch(f){throw _.fQ.enableContextBasedComponentStacks&&pQ(f),f;
}finally{_.Vz(H)}}})};
RI=function(Y,b){gDI(function(){return I2(Y)},b)};
_.dx=function(Y){MG()?_.tq(function(){I2(Y)}):gDI(function(){return I2(Y)},[])};
EDv=function(Y){var b=[].concat(_.Bt(Y));Y.length=0;Y=_.N(b);for(b=Y.next();!b.done;b=Y.next()){b=b.value;NSq(b);var w=b.pendingEffect;b.pendingEffect=null;if(w=w==null?void 0:w())b.pendingCleanup=w}};
NSq=function(Y){var b=Y.pendingCleanup;Y.pendingCleanup=null;b==null||b()};
cQu=function(Y,b){if(MG())return Y();var w=VMI("useMemoInternal");HS6(w.deps,b)&&(w.deps=b,w.value=Y());return w.value};
Uce=function(Y,b){return cQu(Y,b)};
FP=function(Y){return cQu(Y,[])};
L7=function(Y){return FP(function(){return{value:Y}})};
_.S4=function(Y,b){if(!Y)return null;Y=Object.keys(Y);Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next()){w=w.value;var V=w.toLowerCase();if(V.indexOf(b,V.length-b.length)>-1)return w}return null};
_.rx=function(){var Y=arguments,b=_.aI;Y.length>1?b[Y[0]]=Y[1]:Y.length===1&&Object.assign(b,Y[0])};
_.zO=function(Y,b){return Y in _.aI?_.aI[Y]:b};
_.Wf=function(Y,b){return!!_.zO(Y,b)};
X6q=function(Y){var b=_.aI.EXPERIMENT_FLAGS;return b?b[Y]:void 0};
mcB=function(Y){Dct.forEach(function(b){return b(Y)})};
_.i1=function(Y){return Y&&window.yterr?function(){try{return Y.apply(this,arguments)}catch(b){_.K7(b)}}:Y};
_.K7=function(Y){var b=_.Aq("yt.logging.errors.log");b?b(Y,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=_.zO("ERRORS",[]),b.push([Y,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.rx("ERRORS",b));mcB(Y)};
_.C7=function(Y,b,w,V,H){var f=_.Aq("yt.logging.errors.log");f?f(Y,"WARNING",b,w,V,void 0,H):(f=_.zO("ERRORS",[]),f.push([Y,"WARNING",b,w,V,void 0,H]),_.rx("ERRORS",f))};
Ikb=function(Y,b){b=Y.split(b);for(var w={},V=0,H=b.length;V<H;V++){var f=b[V].split("=");if(f.length===1&&f[0]||f.length===2)try{var E=oDK(f[0]||""),U=oDK(f[1]||"");if(E in w){var X=w[E];Array.isArray(X)?_.Je(X,U):w[E]=[X,U]}else w[E]=U}catch(x){var I=x,k=f[0],l=String(Ikb);I.args=[{key:k,value:f[1],query:Y,method:kCI===l?"unchanged":l}];lkb.hasOwnProperty(k)||_.C7(I)}}return w};
hmG=function(Y){var b=[];_.BL.forEach(Y,function(w,V){var H=_.yW(V);_.$2(Array.isArray(w)?w:[w],function(f){f==""?b.push(H):b.push(H+"="+_.yW(f))})});
return b.join("&")};
_.j4=function(Y){Y.charAt(0)==="?"&&(Y=Y.substring(1));return Ikb(Y,"&")};
_.GO=function(Y){return Y.indexOf("?")!==-1?(Y=(Y||"").split("#")[0],Y=Y.split("?",2),_.j4(Y.length>1?Y[1]:Y[0])):{}};
_.TO=function(Y,b){return xcK(Y,b||{},!0)};
qZa=function(Y,b){return xcK(Y,b||{},!1)};
xcK=function(Y,b,w){var V=Y.split("#",2);Y=V[0];V=V.length>1?"#"+V[1]:"";var H=Y.split("?",2);Y=H[0];H=_.j4(H[1]||"");for(var f in b)if(w||!_.BL.containsKey(H,f))H[f]=b[f];return _.Jq(Y,H)+V};
wa=function(Y){if(!b)var b=window.location.href;var w=_.u1(Y)[1]||null,V=_.Yu(Y);return w&&V?bc(Y,b):V?_.Yu(b)===V&&(Number(_.u1(b)[4]||null)||null)===(Number(_.u1(Y)[4]||null)||null):!0};
_.QdG=function(Y){Y=sde(Y);return Y===null?!1:Y[0]==="com"&&Y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
sde=function(Y){Y=_.Yu(Y);return Y!==null?Y.split(".").reverse():null};
oDK=function(Y){return Y&&Y.match(vDt)?Y:Vh(Y)};
_.HQ=function(Y){return new Ppt(Y)};
_.fH=function(){ZSK||(ZSK=new BSt);return ZSK};
MMB=function(Y){var b=_.Nn,w,V;_.c(function(H){w=_.fH();return(V=w.resolve(_.HQ(b)))?(Y(V),H.return(Promise.resolve(V))):H.return(w.resolve(new nDv(b)).then(function(f){Y(f);return f}))})};
_.q=function(Y){Y=EJ(Y);return typeof Y==="string"&&Y==="false"?!1:!!Y};
_.cQ=function(Y,b){Y=EJ(Y);return Y===void 0&&b!==void 0?b:Number(Y||0)};
emG=function(Y){Y=EJ(Y);return Array.isArray(Y)?_.MD(Y,function(b){return Number(b||0)}):[Number(Y||0)]};
_.UJ=function(Y){Y=EJ(Y);return Y!==void 0?String(Y):""};
_.XO=function(Y){Y=EJ(Y);return Array.isArray(Y)?_.MD(Y,function(b){return String(b||"")}):[String(Y||"")]};
p6q=function(){return _.zO("EXPERIMENTS_TOKEN","")};
EJ=function(Y){return _.zO("EXPERIMENT_FLAGS",{})[Y]};
OSM=function(){for(var Y=[],b=_.zO("EXPERIMENTS_FORCED_FLAGS",{}),w=_.N(Object.keys(b)),V=w.next();!V.done;V=w.next())V=V.value,Y.push({key:V,value:String(b[V])});w=_.zO("EXPERIMENT_FLAGS",{});V=_.N(Object.keys(w));for(var H=V.next();!H.done;H=V.next())H=H.value,H.startsWith("force_")&&b[H]===void 0&&Y.push({key:H,value:String(w[H])});return Y};
Rmv=function(){if(!tMu)return null;var Y=tMu();return"open"in Y?Y:null};
_.dca=function(Y){switch(_.Dj(Y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Dj=function(Y){return Y&&"status"in Y?Y.status:-1};
_.m$=function(Y,b){typeof Y==="function"&&(Y=_.i1(Y));return window.setTimeout(Y,b)};
_.oV=function(Y,b){typeof Y==="function"&&(Y=_.i1(Y));return window.setInterval(Y,b)};
_.IV=function(Y){window.clearTimeout(Y)};
LHB=function(Y){Y=_.GO(Y);for(var b=_.N(FHM),w=b.next();!w.done;w=b.next())if(Y[w.value]!==void 0)return!0;return!1};
rQL=function(Y,b,w,V,H,f,E,U){w=w===void 0?"GET":w;V=V===void 0?"":V;U=U===void 0?!1:U;var X=Rmv();if(!X)return null;var I=function(){(X&&"readyState"in X?X.readyState:0)===4&&b&&_.i1(b)(X)};
"onloadend"in X?X.addEventListener("loadend",I,!1):X.onreadystatechange=I;_.q("debug_forward_web_query_parameters")&&(Y=SZM(Y,window.location.search));X.open(w,Y,!0);f&&(X.responseType=f);E&&(X.withCredentials=!0);w=w==="POST"&&(window.FormData===void 0||!(V instanceof FormData));if(H=akB(Y,H))for(var k in H)X.setRequestHeader(k,H[k]),"content-type"===k.toLowerCase()&&(w=!1);w&&X.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(U&&"setAttributionReporting"in XMLHttpRequest.prototype){Y=
{eventSourceEligible:!0,triggerEligible:!1};try{X.setAttributionReporting(Y)}catch(l){_.C7(l)}}X.send(V);return X};
akB=function(Y,b){b=b===void 0?{}:b;var w=wa(Y),V=_.zO("INNERTUBE_CLIENT_NAME"),H=_.q("web_ajax_ignore_global_headers_if_set"),f;for(f in zmB){var E=_.zO(zmB[f]),U=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||E||(E=_.zO("VISITOR_DATA"));var X;if(!(X=!E)){if(!(X=w||(_.Yu(Y)?!1:!0))){X=Y;var I;if(I=_.q("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(V==="TVHTML5"||V==="TVHTML5_UNPLUGGED"||V==="TVHTML5_SIMPLY"))I=sde(X),I=I===null?!1:I[1]==="google"?
!0:I[2]==="google"?I[0]==="au"&&I[1]==="com"?!0:I[0]==="uk"&&I[1]==="co"?!0:!1:!1;I&&(X=_.ku(X)||"",X=X.split("/"),X="/"+(X.length>1?X[1]:""),I=X==="/pagead");X=I?!0:!1}X=!X}X||H&&b[f]!==void 0||V==="TVHTML5_UNPLUGGED"&&U||(b[f]=E)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(w||!_.Yu(Y))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(w||!_.Yu(Y)){try{var k=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}k&&(b["X-YouTube-Time-Zone"]=
k)}document.location.hostname.endsWith("youtubeeducation.com")||!w&&_.Yu(Y)||(b["X-YouTube-Ad-Signals"]=hmG(WHG()));return b};
_.KHG=function(Y,b){var w=_.Yu(Y);_.q("debug_handle_relative_url_for_query_forward_killswitch")||!w&&wa(Y)&&(w=document.location.hostname);var V=_.ku(Y);V=(w=w&&(w.endsWith("youtube.com")||w.endsWith("youtube-nocookie.com")))&&V&&V.startsWith("/api/");if(!w||V)return Y;var H=_.j4(b),f={};_.$2(FHM,function(E){H[E]&&(f[E]=H[E])});
return qZa(Y,f)};
iSe=function(Y,b){b.method="POST";b.postParams||(b.postParams={});return _.lc(Y,b)};
AQe=function(Y,b){var w=_.zO("XSRF_FIELD_NAME"),V;b.headers&&(V=b.headers["Content-Type"]);return!b.excludeXsrf&&(!_.Yu(Y)||b.withCredentials||_.Yu(Y)===document.location.hostname)&&b.method==="POST"&&(!V||V==="application/x-www-form-urlencoded")&&!(b.postParams&&b.postParams[w])};
_.lc=function(Y,b){var w=b.format||"JSON";Y=Cpq(Y,b);var V=yQt(Y,b),H=!1,f=$cI(Y,function(X){if(!H){H=!0;U&&_.IV(U);var I=_.dca(X),k=null,l=400<=X.status&&X.status<500,x=500<=X.status&&X.status<600;if(I||l||x)k=jdI(Y,w,X,b.convertToSafeHtml);I&&(I=GCb(w,X,k));k=k||{};l=b.context||_.wB;I?b.onSuccess&&b.onSuccess.call(l,X,k):b.onError&&b.onError.call(l,X,k);b.onFinish&&b.onFinish.call(l,X,k)}},b.method,V,b.headers,b.responseType,b.withCredentials);
V=b.timeout||0;if(b.onTimeout&&V>0){var E=b.onTimeout;var U=_.m$(function(){H||(H=!0,f.abort(),_.IV(U),E.call(b.context||_.wB,f))},V)}return f};
Cpq=function(Y,b){b.includeDomain&&(Y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Y);var w=_.zO("XSRF_FIELD_NAME");if(b=b.urlParams)b[w]&&delete b[w],Y=_.TO(Y,b);return Y};
yQt=function(Y,b){var w=_.zO("XSRF_FIELD_NAME"),V=_.zO("XSRF_TOKEN"),H=b.postBody||"",f=b.postParams;AQe(Y,b)&&(f||(f={}),f[w]=V);(_.q("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof H==="string"&&(H=_.j4(H),_.BL.extend(H,f),H=b.postBodyFormat&&b.postBodyFormat==="JSON"?JSON.stringify(H):_.h6(H));f=H||f&&!_.BL.isEmpty(f);!TSM&&f&&b.method!=="POST"&&(TSM=!0,_.K7(Error("Hc")));return H};
jdI=function(Y,b,w,V){var H=null;switch(b){case "JSON":try{var f=w.responseText}catch(E){throw V=Error("Ic"),V.params=Y,_.C7(V),E;}Y=w.getResponseHeader("Content-Type")||"";f&&Y.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),H=JSON.parse(f));break;case "XML":if(Y=(Y=w.responseXML)?JQt(Y):null)H={},_.$2(Y.getElementsByTagName("*"),function(E){H[E.tagName]=uyr(E)})}V&&YDg(H);
return H};
YDg=function(Y){if(_.bC(Y))for(var b in Y)b==="html_content"||fa(b,"_html")?Y[b]=Ou(Y[b]):YDg(Y[b])};
GCb=function(Y,b,w){if(b&&b.status===204)return!0;switch(Y){case "JSON":return!!w;case "XML":return Number(w&&w.return_code)===0;case "RAW":return!0;default:return!!w}};
JQt=function(Y){return Y?(Y=("responseXML"in Y?Y.responseXML:Y).getElementsByTagName("root"))&&Y.length>0?Y[0]:null:null};
uyr=function(Y){var b="";_.$2(Y.childNodes,function(w){b+=w.nodeValue});
return b};
bMB=function(Y){if(Y.name==="JavaException")return!0;Y=Y.stack;return Y.includes("chrome://")||Y.includes("-extension://")||Y.includes("webkit-masked-url://")};
w1G=function(Y){if(!Y.stack)return!0;var b=!Y.stack.includes("\n");return b&&Y.stack.includes("ErrorType: ")||b&&Y.stack.includes("Anonymous function (Unknown script")||Y.stack.toLowerCase()==="not available"||Y.fileName==="user-script"||Y.fileName.startsWith("user-script:")?!0:!1};
_.xu=function(Y){_.BE.call(this);this.JSC$8485_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!Y};
HMa=function(Y,b){var w=Y.length,V=0,H=function(){return Y.charCodeAt(V++)};
do{var f=VSu(H);if(f===Infinity)break;var E=f>>3;switch(f&7){case 0:f=VSu(H);if(E===b)return f;break;case 1:if(E===b)return;V+=8;break;case 2:f=VSu(H);if(E===b)return Y.substr(V,f);V+=f;break;case 5:if(E===b)return;V+=4;break;default:return}}while(V<w)};
VSu=function(Y){var b=Y(),w=b&127;if(b<128)return w;b=Y();w|=(b&127)<<7;if(b<128)return w;b=Y();w|=(b&127)<<14;if(b<128)return w;b=Y();return b<128?w|(b&127)<<21:Infinity};
fmI=function(Y,b,w,V){if(Y)if(Array.isArray(Y)){var H=V;for(V=0;V<Y.length&&!(Y[V]&&(H+=gLg(V,Y[V],b,w),H>500));V++);V=H}else if(typeof Y==="object")for(H in Y){if(Y[H]){var f=H;var E=Y[H],U=b,X=w;f=typeof E!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(E=HMa(atob(E.replace(/-/g,"+").replace(/_/g,"/")),2))?gLg(f+".ve",E,U,X):0;V+=f;V+=gLg(H,Y[H],b,w);if(V>500)break}}else w[b]=qn(Y),V+=w[b].length;else w[b]=qn(Y),V+=w[b].length;return V};
gLg=function(Y,b,w,V){w+="."+Y;Y=qn(b);V[w]=Y;return w.length+Y.length};
qn=function(Y){try{return(typeof Y==="string"?Y:String(JSON.stringify(Y))).substr(0,500)}catch(b){return"unable to serialize "+typeof Y+" ("+b.message+")"}};
NOb=function(Y){switch(Y){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
_.Qh=function(Y,b,w,V,H){_.sJ.set(Y,b,{maxAge:w,path:"/",domain:V===void 0?"youtube.com":V,secure:H===void 0?!1:H})};
_.ELu=function(Y,b,w){_.sJ.remove(Y,b===void 0?"/":b,w===void 0?"youtube.com":w)};
_.vQ=function(){if(_.q("embeds_web_enable_cookie_detection_fix")){if(!_.wB.navigator.cookieEnabled)return!1}else if(!_.sJ.isEnabled())return!1;if(!_.sJ.isEmpty())return!0;_.q("embeds_web_enable_cookie_detection_fix")?_.sJ.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.sJ.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.sJ.get("TESTCOOKIESENABLED")!=="1")return!1;_.sJ.remove("TESTCOOKIESENABLED");return!0};
cwg=function(){var Y=_.wB.navigator;return Y?Y.connection:void 0};
U4I=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Y){}};
_.D4e=function(){var Y=cwg();if(Y){var b=X1r[Y.type||"unknown"]||"CONN_UNKNOWN";Y=X1r[Y.effectiveType||"unknown"]||"CONN_UNKNOWN";b==="CONN_CELLULAR_UNKNOWN"&&Y!=="CONN_UNKNOWN"&&(b=Y);if(b!=="CONN_UNKNOWN")return b;if(Y!=="CONN_UNKNOWN")return Y}};
oL6=function(){var Y=cwg();if(Y!=null&&Y.effectiveType)return m4g.hasOwnProperty(Y.effectiveType)?m4g[Y.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Zj=function(){try{return _.PQ(),!0}catch(Y){return!1}};
_.PQ=function(Y){if(_.zO("DATASYNC_ID")!==void 0)return _.zO("DATASYNC_ID");throw new _.BQ("Datasync ID not set",Y===void 0?"unknown":Y);};
_.nH=function(Y){this.mechanism=Y};
Mn=function(Y){this.mechanism=Y};
e3=function(Y){this.storage_=Y;this.cachedIsStorageAvailable_=null};
Imr=function(){var Y=null;try{Y=_.wB.localStorage||null}catch(b){}e3.call(this,Y)};
kGu=function(){var Y=null;try{Y=_.wB.sessionStorage||null}catch(b){}e3.call(this,Y)};
pH=function(Y,b){this.mechanism_=Y;this.JSC$8587_prefix_=b+"::"};
_.lmL=function(Y){var b=new Imr;return b.isAvailable()?Y?new pH(b,Y):b:null};
_.hgG=function(Y){var b=new kGu;return b.isAvailable()?Y?new pH(b,Y):b:null};
qDG=function(){var Y;return(Y=x4v())==null?void 0:Y.get("LAST_RESULT_ENTRY_KEY",!0)};
_.RV=function(Y){s3a||(_.OJ?_.OJ.logError(Y):(_.t6.push({type:"ERROR",payload:Y}),_.t6.length>10&&_.t6.shift()))};
da=function(Y,b){s3a||(_.OJ?_.OJ.logEvent(Y,b):(_.t6.push({type:"EVENT",eventType:Y,payload:b}),_.t6.length>10&&_.t6.shift()))};
FO=function(Y){if(Y.indexOf(":")>=0)throw Error("Pc");};
LH=function(Y){return Y.substr(0,Y.indexOf(":"))||Y};
Pou=function(){return(Q3t||vLG)&&S3("applewebkit")&&!S3("version")&&(!S3("safari")||S3("gsa/"))};
S3=function(Y){var b=_.kb();return b?b.toLowerCase().indexOf(Y)>=0:!1};
nLe=function(Y,b,w,V){b=LH(b);var H=Y instanceof Error?Y:Error("Qc`"+Y);if(H instanceof aV)return H;Y={objectStoreNames:w,dbName:b,dbVersion:V};if(H.name==="QuotaExceededError")return new aV("QUOTA_EXCEEDED",Y);if(_.ra&&H.name==="UnknownError")return new aV("QUOTA_MAYBE_EXCEEDED",Y);if(H instanceof ZMv)return new aV("MISSING_INDEX",Object.assign({},Y,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&BOB.some(function(f){return H.message.includes(f)}))return new aV("EXECUTE_TRANSACTION_ON_CLOSED_DB",
Y);
if(H.name==="AbortError")return new aV("UNKNOWN_ABORT",Y,H.message);H.args=[Object.assign({},Y,{name:"IdbError",originalName:H.name})];H.level="WARNING";return H};
zr=function(Y,b,w){var V=qDG();return new aV("IDB_NOT_SUPPORTED",{context:{caller:Y,publicName:b,version:w,hasSucceededOnce:V==null?void 0:V.hasSucceededOnce}})};
MSq=function(Y){if(!Y)throw Error();throw Y;};
egt=function(Y){return Y};
p1r=function(Y,b,w){var V=function(){try{Y.removeEventListener("success",H),Y.removeEventListener("error",f)}catch(E){}},H=function(){b(Y.result);
V()},f=function(){w(Y.error);
V()};
Y.addEventListener("success",H);Y.addEventListener("error",f)};
OMv=function(Y){return new Promise(function(b,w){p1r(Y,b,w)})};
ic=function(Y){return new WQ(new KH(function(b,w){p1r(Y,b,w)}))};
tSb=function(Y,b){return new WQ(new KH(function(w,V){var H=function(){var f=Y?b(Y):null;f?f.then(function(E){Y=E;H()},V):w()};
H()}))};
d4u=function(Y,b,w){return new Promise(function(V,H){var f=b!==void 0?self.indexedDB.open(Y,b):self.indexedDB.open(Y);var E=w.blocked,U=w.blocking,X=w.terminated,I=w.upgrade,k=w.closed,l,x=function(){l||(l=new CH(f.result,{closed:k}));return l};
f.addEventListener("upgradeneeded",function(Q){try{if(Q.newVersion===null)throw Error("Vc");if(f.transaction===null)throw Error("Wc");Q.dataLoss&&Q.dataLoss!=="none"&&da("IDB_DATA_CORRUPTED",{reason:Q.dataLossMessage||"unknown reason",dbName:LH(Y)});var Z=x(),e=new RgL(f.transaction);I&&I(Z,function(O){return Q.oldVersion<O&&Q.newVersion>=O},e);
e.done.catch(function(O){H(O)})}catch(O){H(O)}});
f.addEventListener("success",function(){var Q=f.result;U&&Q.addEventListener("versionchange",function(){U(x())});
Q.addEventListener("close",function(){da("IDB_UNEXPECTEDLY_CLOSED",{dbName:LH(Y),dbVersion:Q.version});X&&X()});
V(x())});
f.addEventListener("error",function(){H(f.error)});
E&&f.addEventListener("blocked",function(){E()})})};
FK6=function(Y,b,w){w=w===void 0?{}:w;return d4u(Y,b,w)};
_.j3=function(Y,b){b=b===void 0?{}:b;var w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return _.ct(E,2),w=self.indexedDB.deleteDatabase(Y),V=b,(H=V.blocked)&&w.addEventListener("blocked",function(){H()}),_.D(E,OMv(w),4);
if(E.nextAddress!=2)return _.$u(E,0);f=_.mS(E);throw nLe(f,Y,"",-1);})};
SDG=function(Y,b){var w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,_.Gr(LKL,b),2);w=V.yieldResult;return V.return(_.Tr(w,["databases"],{enableRetries:!0,mode:"readwrite"},function(H){var f=H.objectStore("databases");return f.get(Y.actualName).then(function(E){if(E?Y.actualName!==E.actualName||Y.publicName!==E.publicName||Y.userIdentifier!==E.userIdentifier:1)return f.put(Y).then(function(){})})}))})};
_.J6=function(Y,b){var w;return _.c(function(V){if(V.nextAddress==1)return Y?_.D(V,_.Gr(LKL,b),2):V.return();w=V.yieldResult;return V.return(w.delete("databases",Y))})};
_.amB=function(Y,b){var w,V;return _.c(function(H){return H.nextAddress==1?(w=[],_.D(H,_.Gr(LKL,b),2)):H.nextAddress!=3?(V=H.yieldResult,_.D(H,_.Tr(V,["databases"],{enableRetries:!0,mode:"readonly"},function(f){w.length=0;return uc(f.objectStore("databases"),{},function(E){Y(E.getValue())&&w.push(E.getValue());return E.continue()})}),3)):H.return(w)})};
rw6=function(Y,b){return _.amB(function(w){return w.publicName===Y&&w.userIdentifier!==void 0},b)};
KKa=function(){var Y,b,w,V;return _.c(function(H){switch(H.nextAddress){case 1:Y=qDG();if((b=Y)==null?0:b.hasSucceededOnce)return H.return(!0);var f;if(f=zgb)f=/WebKit\/([0-9]+)/.exec(_.kb()),f=!!(f&&parseInt(f[1],10)>=600);f&&(f=/WebKit\/([0-9]+)/.exec(_.kb()),f=!(f&&parseInt(f[1],10)>=602));if(f||Yr)return H.return(!1);try{if(w=self,!(w.indexedDB&&w.IDBIndex&&w.IDBKeyRange&&w.IDBObjectStore))return H.return(!1)}catch(E){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);
_.ct(H,2);V={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.D(H,SDG(V,WKM),4);case 4:return _.D(H,_.J6("yt-idb-test-do-not-use",WKM),5);case 5:return H.return(!0);case 2:return _.mS(H),H.return(!1)}})};
AwL=function(){if(iMI!==void 0)return iMI;s3a=!0;return iMI=KKa().then(function(Y){s3a=!1;var b;if((b=x4v())!=null&&b.expiringStorage_){var w;b={hasSucceededOnce:((w=qDG())==null?void 0:w.hasSucceededOnce)||Y};var V;(V=x4v())==null||V.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return Y})};
bS=function(){return _.Aq("ytglobal.idbToken_")||void 0};
_.Vn=function(){var Y=bS();return Y?Promise.resolve(Y):AwL().then(function(b){(b=b?WKM:void 0)&&_.wG("ytglobal.idbToken_",b);return b})};
Coe=function(Y){if(!_.Zj())throw Y=new aV("AUTH_INVALID",{dbName:Y}),_.RV(Y),Y;var b=_.PQ();return{actualName:Y+":"+b,publicName:Y,userIdentifier:b}};
ywG=function(Y,b,w,V){var H,f,E,U,X,I;return _.c(function(k){switch(k.nextAddress){case 1:return f=(H=Error().stack)!=null?H:"",_.D(k,_.Vn(),2);case 2:E=k.yieldResult;if(!E)throw U=zr("openDbImpl",Y,b),_.q("ytidb_async_stack_killswitch")||(U.stack=U.stack+"\n"+f.substring(f.indexOf("\n")+1)),_.RV(U),U;FO(Y);X=w?{actualName:Y,publicName:Y,userIdentifier:void 0}:Coe(Y);_.ct(k,3);return _.D(k,SDG(X,E),5);case 5:return _.D(k,FK6(X.actualName,b,V),6);case 6:return k.return(k.yieldResult);case 3:return I=
_.mS(k),_.ct(k,7),_.D(k,_.J6(X.actualName,E),9);case 9:_.$u(k,8);break;case 7:_.mS(k);case 8:throw I;}})};
$4r=function(Y,b,w){w=w===void 0?{}:w;return ywG(Y,b,!1,w)};
j3B=function(Y,b,w){w=w===void 0?{}:w;return ywG(Y,b,!0,w)};
GGI=function(Y,b){b=b===void 0?{}:b;var w,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,_.Vn(),2);if(H.nextAddress!=3){w=H.yieldResult;if(!w)return H.return();FO(Y);V=Coe(Y);return _.D(H,_.j3(V.actualName,b),3)}return _.D(H,_.J6(V.actualName,w),0)})};
TOM=function(Y,b,w){Y=Y.map(function(V){return _.c(function(H){return H.nextAddress==1?_.D(H,_.j3(V.actualName,b),2):_.D(H,_.J6(V.actualName,w),0)})});
return Promise.all(Y).then(function(){})};
Jwr=function(Y){var b=b===void 0?{}:b;var w,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,_.Vn(),2);if(H.nextAddress!=3){w=H.yieldResult;if(!w)return H.return();FO(Y);return _.D(H,rw6(Y,w),3)}V=H.yieldResult;return _.D(H,TOM(V,b,w),0)})};
uAa=function(Y,b){b=b===void 0?{}:b;var w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,_.Vn(),2);if(V.nextAddress!=3){w=V.yieldResult;if(!w)return V.return();FO(Y);return _.D(V,_.j3(Y,b),3)}return _.D(V,_.J6(Y,w),0)})};
HO=function(Y,b){return YaL(Y,b)};
w0K=function(Y){return _.Gr(bza(),Y)};
V1L=function(Y,b,w,V){var H,f,E;return _.c(function(U){switch(U.nextAddress){case 1:return H={config:Y,hashData:b,timestamp:V!==void 0?V:(0,_.gG)()},_.D(U,w0K(w),2);case 2:return f=U.yieldResult,_.D(U,f.clear("hotConfigStore"),3);case 3:return _.D(U,f.put("hotConfigStore",H),4);case 4:return E=U.yieldResult,U.return(E)}})};
Hze=function(Y,b,w,V,H){var f,E,U;return _.c(function(X){switch(X.nextAddress){case 1:return f={config:Y,hashData:b,configData:w,timestamp:H!==void 0?H:(0,_.gG)()},_.D(X,w0K(V),2);case 2:return E=X.yieldResult,_.D(X,E.clear("coldConfigStore"),3);case 3:return _.D(X,E.put("coldConfigStore",f),4);case 4:return U=X.yieldResult,X.return(U)}})};
g7I=function(Y){var b,w;return _.c(function(V){return V.nextAddress==1?_.D(V,w0K(Y),2):V.nextAddress!=3?(b=V.yieldResult,w=void 0,_.D(V,_.Tr(b,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(H){return _.fb(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){w=f.getValue()})}),3)):V.return(w)})};
feK=function(Y){var b,w;return _.c(function(V){return V.nextAddress==1?_.D(V,w0K(Y),2):V.nextAddress!=3?(b=V.yieldResult,w=void 0,_.D(V,_.Tr(b,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(H){return _.fb(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){w=f.getValue()})}),3)):V.return(w)})};
N56=function(){return _.c(function(Y){return _.D(Y,Jwr("ytGcfConfig"),0)})};
E76=function(){return"INNERTUBE_API_KEY"in _.aI&&"INNERTUBE_API_VERSION"in _.aI};
_.Nz=function(){return{innertubeApiKey:_.zO("INNERTUBE_API_KEY"),innertubeApiVersion:_.zO("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.zO("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.zO("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.zO("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.zO("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.zO("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.zO("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.zO("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Wf("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Wf("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.zO("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.IeM=function(Y){var b={client:{hl:Y.innertubeContextHostLanguage,gl:Y.innertubeContextGeoLocation,clientName:Y.innertubeContextClientName,clientVersion:Y.innertubeContextClientVersion,configInfo:Y.innertubeContextClientConfigInfo}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var w=_.wB.devicePixelRatio;w&&w!=1&&(b.client.screenDensityFloat=String(w));w=p6q();w!==""&&(b.client.experimentsToken=w);w=OSM();w.length>0&&(b.request={internalExperimentFlags:w});c16(Y,void 0,b);
U8g(void 0,b);X0a(void 0,b);D8b(Y,void 0,b);m8a(void 0,b);_.q("start_client_gcf")&&o7u(void 0,b);_.zO("DELEGATED_SESSION_ID")&&!_.q("pageid_as_header_web")&&(b.user={onBehalfOfUser:_.zO("DELEGATED_SESSION_ID")});!_.q("fill_delegate_context_in_gel_killswitch")&&(Y=_.zO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:Y}));Y=_.zO("INNERTUBE_CONTEXT");var V;if(_.q("enable_persistent_device_token")&&(Y==null?0:(V=Y.client)==null?0:V.rolloutToken)){var H;
b.client.rolloutToken=Y==null?void 0:(H=Y.client)==null?void 0:H.rolloutToken}V=Object;H=V.assign;Y=b.client;w={};for(var f=_.N(Object.entries(_.j4(_.zO("DEVICE","")))),E=f.next();!E.done;E=f.next()){var U=_.N(E.value);E=U.next().value;U=U.next().value;E==="cbrand"?w.deviceMake=U:E==="cmodel"?w.deviceModel=U:E==="cbr"?w.browserName=U:E==="cbrver"?w.browserVersion=U:E==="cos"?w.osName=U:E==="cosver"?w.osVersion=U:E==="cplatform"&&(w.platform=U)}b.client=H.call(V,Y,w);return b};
c16=function(Y,b,w){Y=Y.innertubeContextClientName;if(Y==="WEB"||Y==="MWEB"||Y===1||Y===2)if(b){w=_.EK(b,kuI,96)||new kuI;var V=leG();V=Object.keys(hwM).indexOf(V);V=V===-1?null:V;V!==null&&_.cO(w,3,V);_.HN(b,96,w)}else w&&(w.client.mainAppWebInfo=(V=w.client.mainAppWebInfo)!=null?V:{},w.client.mainAppWebInfo.webDisplayMode=leG())};
U8g=function(Y,b){var w=_.Aq("yt.embedded_player.embed_url");w&&(Y?(b=_.EK(Y,x8v,7)||new x8v,_.hP(b,4,w),_.HN(Y,7,b)):b&&(b.thirdParty={embedUrl:w}))};
X0a=function(Y,b){var w;if(_.q("web_log_memory_total_kbytes")&&((w=_.wB.navigator)==null?0:w.deviceMemory)){var V;w=(V=_.wB.navigator)==null?void 0:V.deviceMemory;Y?_.UK(Y,95,OX(w*1E6)):b&&(b.client.memoryTotalKbytes=""+w*1E6)}};
D8b=function(Y,b,w){if(Y.appInstallData)if(b){var V;w=(V=_.EK(b,X4,62))!=null?V:new X4;_.hP(w,6,Y.appInstallData);_.HN(b,62,w)}else w&&(w.client.configInfo=w.client.configInfo||{},w.client.configInfo.appInstallData=Y.appInstallData)};
m8a=function(Y,b){var w=_.D4e();w&&(Y?_.cO(Y,61,qaL[w]):b&&(b.client.connectionType=w));_.q("web_log_effective_connection_type")&&(w=oL6())&&(Y?_.cO(Y,94,sPb[w]):b&&(b.client.effectiveConnectionType=w))};
_.Pnt=function(Y,b,w){w=w===void 0?{}:w;var V={};_.zO("EOM_VISITOR_DATA")?V={"X-Goog-EOM-Visitor-Id":_.zO("EOM_VISITOR_DATA")}:V={"X-Goog-Visitor-Id":w.visitorData||_.zO("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return V;b=w.authorization||_.zO("AUTHORIZATION");b||(Y?b="Bearer "+_.Aq("gapi.auth.getToken")().access_token:(QPG.instance||(QPG.instance=new QPG),Y=v7L(),_.q("pageid_as_header_web")||delete Y["X-Goog-PageId"],V=Object.assign({},V,Y)));b&&(V.Authorization=b);return V};
o7u=function(Y,b){var w=Zzr();if(w){var V=w.coldConfigData,H=w.coldHashData;w=w.hotHashData;if(Y){var f;b=(f=_.EK(Y,X4,62))!=null?f:new X4;V=_.hP(b,1,V);_.hP(V,3,H).setHotHashData(w);_.HN(Y,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},V&&(b.client.configInfo.coldConfigData=V),H&&(b.client.configInfo.coldHashData=H),w&&(b.client.configInfo.hotHashData=w))}};
D9=function(Y){for(var b=Y.length;--b>=0;)Y[b]=0};
B5G=function(Y,b,w,V,H){this.static_tree=Y;this.extra_bits=b;this.extra_base=w;this.elems=V;this.max_length=H;this.has_stree=Y&&Y.length};
n7G=function(Y,b){this.dyn_tree=Y;this.max_code=0;this.stat_desc=b};
mq=function(Y,b){Y.pending_buf[Y.pending++]=b&255;Y.pending_buf[Y.pending++]=b>>>8&255};
oq=function(Y,b,w){Y.bi_valid>16-w?(Y.bi_buf|=b<<Y.bi_valid&65535,mq(Y,Y.bi_buf),Y.bi_buf=b>>16-Y.bi_valid,Y.bi_valid+=w-16):(Y.bi_buf|=b<<Y.bi_valid&65535,Y.bi_valid+=w)};
Iq=function(Y,b,w){oq(Y,w[b*2],w[b*2+1])};
M1K=function(Y,b){var w=0;do w|=Y&1,Y>>>=1,w<<=1;while(--b>0);return w>>>1};
ewa=function(Y,b,w){var V=Array(16),H=0,f;for(f=1;f<=15;f++)V[f]=H=H+w[f-1]<<1;for(w=0;w<=b;w++)H=Y[w*2+1],H!==0&&(Y[w*2]=M1K(V[H]++,H))};
p0K=function(Y){var b;for(b=0;b<286;b++)Y.dyn_ltree[b*2]=0;for(b=0;b<30;b++)Y.dyn_dtree[b*2]=0;for(b=0;b<19;b++)Y.bl_tree[b*2]=0;Y.dyn_ltree[512]=1;Y.opt_len=Y.static_len=0;Y.last_lit=Y.matches=0};
Oze=function(Y){Y.bi_valid>8?mq(Y,Y.bi_buf):Y.bi_valid>0&&(Y.pending_buf[Y.pending++]=Y.bi_buf);Y.bi_buf=0;Y.bi_valid=0};
t1L=function(Y,b,w){Oze(Y);mq(Y,w);mq(Y,~w);kr.arraySet(Y.pending_buf,Y.window,b,w,Y.pending);Y.pending+=w};
Rwr=function(Y,b,w,V){var H=b*2,f=w*2;return Y[H]<Y[f]||Y[H]===Y[f]&&V[b]<=V[w]};
d8e=function(Y,b,w){for(var V=Y.heap[w],H=w<<1;H<=Y.heap_len;){H<Y.heap_len&&Rwr(b,Y.heap[H+1],Y.heap[H],Y.depth)&&H++;if(Rwr(b,V,Y.heap[H],Y.depth))break;Y.heap[w]=Y.heap[H];w=H;H<<=1}Y.heap[w]=V};
r1B=function(Y,b,w){var V=0;if(Y.last_lit!==0){do{var H=Y.pending_buf[Y.d_buf+V*2]<<8|Y.pending_buf[Y.d_buf+V*2+1];var f=Y.pending_buf[Y.l_buf+V];V++;if(H===0)Iq(Y,f,b);else{var E=lS[f];Iq(Y,E+256+1,b);var U=Fxt[E];U!==0&&(f-=Lxr[E],oq(Y,f,U));H--;E=H<256?hE[H]:hE[256+(H>>>7)];Iq(Y,E,w);U=Saq[E];U!==0&&(H-=aeu[E],oq(Y,H,U))}}while(V<Y.last_lit)}Iq(Y,256,b)};
zwq=function(Y,b){var w=b.dyn_tree,V=b.stat_desc.static_tree,H=b.stat_desc.has_stree,f=b.stat_desc.elems,E,U=-1;Y.heap_len=0;Y.heap_max=573;for(E=0;E<f;E++)w[E*2]!==0?(Y.heap[++Y.heap_len]=U=E,Y.depth[E]=0):w[E*2+1]=0;for(;Y.heap_len<2;){var X=Y.heap[++Y.heap_len]=U<2?++U:0;w[X*2]=1;Y.depth[X]=0;Y.opt_len--;H&&(Y.static_len-=V[X*2+1])}b.max_code=U;for(E=Y.heap_len>>1;E>=1;E--)d8e(Y,w,E);X=f;do E=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],d8e(Y,w,1),V=Y.heap[1],Y.heap[--Y.heap_max]=E,Y.heap[--Y.heap_max]=
V,w[X*2]=w[E*2]+w[V*2],Y.depth[X]=(Y.depth[E]>=Y.depth[V]?Y.depth[E]:Y.depth[V])+1,w[E*2+1]=w[V*2+1]=X,Y.heap[1]=X++,d8e(Y,w,1);while(Y.heap_len>=2);Y.heap[--Y.heap_max]=Y.heap[1];E=b.dyn_tree;X=b.max_code;V=b.stat_desc.static_tree;H=b.stat_desc.has_stree;f=b.stat_desc.extra_bits;var I=b.stat_desc.extra_base,k=b.stat_desc.max_length,l,x=0;for(l=0;l<=15;l++)Y.bl_count[l]=0;E[Y.heap[Y.heap_max]*2+1]=0;for(b=Y.heap_max+1;b<573;b++){var Q=Y.heap[b];l=E[E[Q*2+1]*2+1]+1;l>k&&(l=k,x++);E[Q*2+1]=l;if(!(Q>
X)){Y.bl_count[l]++;var Z=0;Q>=I&&(Z=f[Q-I]);var e=E[Q*2];Y.opt_len+=e*(l+Z);H&&(Y.static_len+=e*(V[Q*2+1]+Z))}}if(x!==0){do{for(l=k-1;Y.bl_count[l]===0;)l--;Y.bl_count[l]--;Y.bl_count[l+1]+=2;Y.bl_count[k]--;x-=2}while(x>0);for(l=k;l!==0;l--)for(Q=Y.bl_count[l];Q!==0;)V=Y.heap[--b],V>X||(E[V*2+1]!==l&&(Y.opt_len+=(l-E[V*2+1])*E[V*2],E[V*2+1]=l),Q--)}ewa(w,U,Y.bl_count)};
Wxu=function(Y,b,w){var V,H=-1,f=b[1],E=0,U=7,X=4;f===0&&(U=138,X=3);b[(w+1)*2+1]=65535;for(V=0;V<=w;V++){var I=f;f=b[(V+1)*2+1];++E<U&&I===f||(E<X?Y.bl_tree[I*2]+=E:I!==0?(I!==H&&Y.bl_tree[I*2]++,Y.bl_tree[32]++):E<=10?Y.bl_tree[34]++:Y.bl_tree[36]++,E=0,H=I,f===0?(U=138,X=3):I===f?(U=6,X=3):(U=7,X=4))}};
KxL=function(Y,b,w){var V,H=-1,f=b[1],E=0,U=7,X=4;f===0&&(U=138,X=3);for(V=0;V<=w;V++){var I=f;f=b[(V+1)*2+1];if(!(++E<U&&I===f)){if(E<X){do Iq(Y,I,Y.bl_tree);while(--E!==0)}else I!==0?(I!==H&&(Iq(Y,I,Y.bl_tree),E--),Iq(Y,16,Y.bl_tree),oq(Y,E-3,2)):E<=10?(Iq(Y,17,Y.bl_tree),oq(Y,E-3,3)):(Iq(Y,18,Y.bl_tree),oq(Y,E-11,7));E=0;H=I;f===0?(U=138,X=3):I===f?(U=6,X=3):(U=7,X=4)}}};
izG=function(Y){var b=4093624447,w;for(w=0;w<=31;w++,b>>>=1)if(b&1&&Y.dyn_ltree[w*2]!==0)return 0;if(Y.dyn_ltree[18]!==0||Y.dyn_ltree[20]!==0||Y.dyn_ltree[26]!==0)return 1;for(w=32;w<256;w++)if(Y.dyn_ltree[w*2]!==0)return 1;return 0};
xr=function(Y,b,w){Y.pending_buf[Y.d_buf+Y.last_lit*2]=b>>>8&255;Y.pending_buf[Y.d_buf+Y.last_lit*2+1]=b&255;Y.pending_buf[Y.l_buf+Y.last_lit]=w&255;Y.last_lit++;b===0?Y.dyn_ltree[w*2]++:(Y.matches++,b--,Y.dyn_ltree[(lS[w]+256+1)*2]++,Y.dyn_dtree[(b<256?hE[b]:hE[256+(b>>>7)])*2]++);return Y.last_lit===Y.lit_bufsize-1};
sK=function(Y,b){Y.msg=qz[b];return b};
Qn=function(Y){for(var b=Y.length;--b>=0;)Y[b]=0};
vO=function(Y){var b=Y.state,w=b.pending;w>Y.avail_out&&(w=Y.avail_out);w!==0&&(kr.arraySet(Y.output,b.pending_buf,b.pending_out,w,Y.next_out),Y.next_out+=w,b.pending_out+=w,Y.total_out+=w,Y.avail_out-=w,b.pending-=w,b.pending===0&&(b.pending_out=0))};
Mz=function(Y,b){var w=Y.block_start>=0?Y.block_start:-1,V=Y.strstart-Y.block_start,H=0;if(Y.level>0){Y.strm.data_type===2&&(Y.strm.data_type=izG(Y));zwq(Y,Y.l_desc);zwq(Y,Y.d_desc);Wxu(Y,Y.dyn_ltree,Y.l_desc.max_code);Wxu(Y,Y.dyn_dtree,Y.d_desc.max_code);zwq(Y,Y.bl_desc);for(H=18;H>=3&&Y.bl_tree[A1t[H]*2+1]===0;H--);Y.opt_len+=3*(H+1)+5+5+4;var f=Y.opt_len+3+7>>>3;var E=Y.static_len+3+7>>>3;E<=f&&(f=E)}else f=E=V+5;if(V+4<=f&&w!==-1)oq(Y,b?1:0,3),t1L(Y,w,V);else if(Y.strategy===4||E===f)oq(Y,2+(b?
1:0),3),r1B(Y,PO,Z9);else{oq(Y,4+(b?1:0),3);w=Y.l_desc.max_code+1;V=Y.d_desc.max_code+1;H+=1;oq(Y,w-257,5);oq(Y,V-1,5);oq(Y,H-4,4);for(f=0;f<H;f++)oq(Y,Y.bl_tree[A1t[f]*2+1],3);KxL(Y,Y.dyn_ltree,w-1);KxL(Y,Y.dyn_dtree,V-1);r1B(Y,Y.dyn_ltree,Y.dyn_dtree)}p0K(Y);b&&Oze(Y);Y.block_start=Y.strstart;vO(Y.strm)};
eI=function(Y,b){Y.pending_buf[Y.pending++]=b};
pb=function(Y,b){Y.pending_buf[Y.pending++]=b>>>8&255;Y.pending_buf[Y.pending++]=b&255};
Cnr=function(Y,b){var w=Y.max_chain_length,V=Y.strstart,H=Y.prev_length,f=Y.nice_match,E=Y.strstart>Y.w_size-262?Y.strstart-(Y.w_size-262):0,U=Y.window,X=Y.w_mask,I=Y.prev,k=Y.strstart+258,l=U[V+H-1],x=U[V+H];Y.prev_length>=Y.good_match&&(w>>=2);f>Y.lookahead&&(f=Y.lookahead);do{var Q=b;if(U[Q+H]===x&&U[Q+H-1]===l&&U[Q]===U[V]&&U[++Q]===U[V+1]){V+=2;for(Q++;U[++V]===U[++Q]&&U[++V]===U[++Q]&&U[++V]===U[++Q]&&U[++V]===U[++Q]&&U[++V]===U[++Q]&&U[++V]===U[++Q]&&U[++V]===U[++Q]&&U[++V]===U[++Q]&&V<k;);
Q=258-(k-V);V=k-258;if(Q>H){Y.match_start=b;H=Q;if(Q>=f)break;l=U[V+H-1];x=U[V+H]}}}while((b=I[b&X])>E&&--w!==0);return H<=Y.lookahead?H:Y.lookahead};
tE=function(Y){var b=Y.w_size,w;do{var V=Y.window_size-Y.lookahead-Y.strstart;if(Y.strstart>=b+(b-262)){kr.arraySet(Y.window,Y.window,b,b,0);Y.match_start-=b;Y.strstart-=b;Y.block_start-=b;var H=w=Y.hash_size;do{var f=Y.head[--H];Y.head[H]=f>=b?f-b:0}while(--w);H=w=b;do f=Y.prev[--H],Y.prev[H]=f>=b?f-b:0;while(--w);V+=b}if(Y.strm.avail_in===0)break;H=Y.strm;w=Y.window;f=Y.strstart+Y.lookahead;var E=H.avail_in;E>V&&(E=V);E===0?w=0:(H.avail_in-=E,kr.arraySet(w,H.input,H.next_in,E,f),H.state.wrap===
1?H.adler=y1u(H.adler,w,E,f):H.state.wrap===2&&(H.adler=OK(H.adler,w,E,f)),H.next_in+=E,H.total_in+=E,w=E);Y.lookahead+=w;if(Y.lookahead+Y.insert>=3)for(V=Y.strstart-Y.insert,Y.ins_h=Y.window[V],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[V+1])&Y.hash_mask;Y.insert&&!(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[V+3-1])&Y.hash_mask,Y.prev[V&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=V,V++,Y.insert--,Y.lookahead+Y.insert<3););}while(Y.lookahead<262&&Y.strm.avail_in!==0)};
$8I=function(Y,b){for(var w;;){if(Y.lookahead<262){tE(Y);if(Y.lookahead<262&&b===0)return 1;if(Y.lookahead===0)break}w=0;Y.lookahead>=3&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,w=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);w!==0&&Y.strstart-w<=Y.w_size-262&&(Y.match_length=Cnr(Y,w));if(Y.match_length>=3)if(w=xr(Y,Y.strstart-Y.match_start,Y.match_length-3),Y.lookahead-=Y.match_length,Y.match_length<=Y.max_lazy_match&&Y.lookahead>=3){Y.match_length--;
do Y.strstart++,Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart;while(--Y.match_length!==0);Y.strstart++}else Y.strstart+=Y.match_length,Y.match_length=0,Y.ins_h=Y.window[Y.strstart],Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+1])&Y.hash_mask;else w=xr(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++;if(w&&(Mz(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=Y.strstart<2?Y.strstart:2;return b===4?(Mz(Y,
!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(Mz(Y,!1),Y.strm.avail_out===0)?1:2};
Rq=function(Y,b){for(var w,V;;){if(Y.lookahead<262){tE(Y);if(Y.lookahead<262&&b===0)return 1;if(Y.lookahead===0)break}w=0;Y.lookahead>=3&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,w=Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);Y.prev_length=Y.match_length;Y.prev_match=Y.match_start;Y.match_length=2;w!==0&&Y.prev_length<Y.max_lazy_match&&Y.strstart-w<=Y.w_size-262&&(Y.match_length=Cnr(Y,w),Y.match_length<=5&&(Y.strategy===1||Y.match_length===3&&
Y.strstart-Y.match_start>4096)&&(Y.match_length=2));if(Y.prev_length>=3&&Y.match_length<=Y.prev_length){V=Y.strstart+Y.lookahead-3;w=xr(Y,Y.strstart-1-Y.prev_match,Y.prev_length-3);Y.lookahead-=Y.prev_length-1;Y.prev_length-=2;do++Y.strstart<=V&&(Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[Y.strstart+3-1])&Y.hash_mask,Y.prev[Y.strstart&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=Y.strstart);while(--Y.prev_length!==0);Y.match_available=0;Y.match_length=2;Y.strstart++;if(w&&(Mz(Y,!1),Y.strm.avail_out===0))return 1}else if(Y.match_available){if((w=
xr(Y,0,Y.window[Y.strstart-1]))&&Mz(Y,!1),Y.strstart++,Y.lookahead--,Y.strm.avail_out===0)return 1}else Y.match_available=1,Y.strstart++,Y.lookahead--}Y.match_available&&(xr(Y,0,Y.window[Y.strstart-1]),Y.match_available=0);Y.insert=Y.strstart<2?Y.strstart:2;return b===4?(Mz(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(Mz(Y,!1),Y.strm.avail_out===0)?1:2};
jP6=function(Y,b){for(var w,V,H,f=Y.window;;){if(Y.lookahead<=258){tE(Y);if(Y.lookahead<=258&&b===0)return 1;if(Y.lookahead===0)break}Y.match_length=0;if(Y.lookahead>=3&&Y.strstart>0&&(V=Y.strstart-1,w=f[V],w===f[++V]&&w===f[++V]&&w===f[++V])){for(H=Y.strstart+258;w===f[++V]&&w===f[++V]&&w===f[++V]&&w===f[++V]&&w===f[++V]&&w===f[++V]&&w===f[++V]&&w===f[++V]&&V<H;);Y.match_length=258-(H-V);Y.match_length>Y.lookahead&&(Y.match_length=Y.lookahead)}Y.match_length>=3?(w=xr(Y,1,Y.match_length-3),Y.lookahead-=
Y.match_length,Y.strstart+=Y.match_length,Y.match_length=0):(w=xr(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++);if(w&&(Mz(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;return b===4?(Mz(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(Mz(Y,!1),Y.strm.avail_out===0)?1:2};
Gug=function(Y,b){for(var w;;){if(Y.lookahead===0&&(tE(Y),Y.lookahead===0)){if(b===0)return 1;break}Y.match_length=0;w=xr(Y,0,Y.window[Y.strstart]);Y.lookahead--;Y.strstart++;if(w&&(Mz(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;return b===4?(Mz(Y,!0),Y.strm.avail_out===0?3:4):Y.last_lit&&(Mz(Y,!1),Y.strm.avail_out===0)?1:2};
dG=function(Y,b,w,V,H){this.good_length=Y;this.max_lazy=b;this.nice_length=w;this.max_chain=V;this.func=H};
T5v=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 kr.Buf16(1146);this.dyn_dtree=new kr.Buf16(122);this.bl_tree=new kr.Buf16(78);Qn(this.dyn_ltree);Qn(this.dyn_dtree);Qn(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new kr.Buf16(16);this.heap=new kr.Buf16(573);Qn(this.heap);this.heap_max=this.heap_len=0;this.depth=new kr.Buf16(573);Qn(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};
J1g=function(Y,b){if(!Y||!Y.state||b>5||b<0)return Y?sK(Y,-2):-2;var w=Y.state;if(!Y.output||!Y.input&&Y.avail_in!==0||w.status===666&&b!==4)return sK(Y,Y.avail_out===0?-5:-2);w.strm=Y;var V=w.last_flush;w.last_flush=b;if(w.status===42)if(w.wrap===2)Y.adler=0,eI(w,31),eI(w,139),eI(w,8),w.gzhead?(eI(w,(w.gzhead.text?1:0)+(w.gzhead.hcrc?2:0)+(w.gzhead.extra?4:0)+(w.gzhead.name?8:0)+(w.gzhead.comment?16:0)),eI(w,w.gzhead.time&255),eI(w,w.gzhead.time>>8&255),eI(w,w.gzhead.time>>16&255),eI(w,w.gzhead.time>>
24&255),eI(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),eI(w,w.gzhead.os&255),w.gzhead.extra&&w.gzhead.extra.length&&(eI(w,w.gzhead.extra.length&255),eI(w,w.gzhead.extra.length>>8&255)),w.gzhead.hcrc&&(Y.adler=OK(Y.adler,w.pending_buf,w.pending,0)),w.gzindex=0,w.status=69):(eI(w,0),eI(w,0),eI(w,0),eI(w,0),eI(w,0),eI(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),eI(w,3),w.status=113);else{var H=8+(w.w_bits-8<<4)<<8;H|=(w.strategy>=2||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6;w.strstart!==0&&(H|=
32);w.status=113;pb(w,H+(31-H%31));w.strstart!==0&&(pb(w,Y.adler>>>16),pb(w,Y.adler&65535));Y.adler=1}if(w.status===69)if(w.gzhead.extra){for(H=w.pending;w.gzindex<(w.gzhead.extra.length&65535)&&(w.pending!==w.pending_buf_size||(w.gzhead.hcrc&&w.pending>H&&(Y.adler=OK(Y.adler,w.pending_buf,w.pending-H,H)),vO(Y),H=w.pending,w.pending!==w.pending_buf_size));)eI(w,w.gzhead.extra[w.gzindex]&255),w.gzindex++;w.gzhead.hcrc&&w.pending>H&&(Y.adler=OK(Y.adler,w.pending_buf,w.pending-H,H));w.gzindex===w.gzhead.extra.length&&
(w.gzindex=0,w.status=73)}else w.status=73;if(w.status===73)if(w.gzhead.name){H=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>H&&(Y.adler=OK(Y.adler,w.pending_buf,w.pending-H,H)),vO(Y),H=w.pending,w.pending===w.pending_buf_size)){var f=1;break}f=w.gzindex<w.gzhead.name.length?w.gzhead.name.charCodeAt(w.gzindex++)&255:0;eI(w,f)}while(f!==0);w.gzhead.hcrc&&w.pending>H&&(Y.adler=OK(Y.adler,w.pending_buf,w.pending-H,H));f===0&&(w.gzindex=0,w.status=91)}else w.status=91;if(w.status===
91)if(w.gzhead.comment){H=w.pending;do{if(w.pending===w.pending_buf_size&&(w.gzhead.hcrc&&w.pending>H&&(Y.adler=OK(Y.adler,w.pending_buf,w.pending-H,H)),vO(Y),H=w.pending,w.pending===w.pending_buf_size)){f=1;break}f=w.gzindex<w.gzhead.comment.length?w.gzhead.comment.charCodeAt(w.gzindex++)&255:0;eI(w,f)}while(f!==0);w.gzhead.hcrc&&w.pending>H&&(Y.adler=OK(Y.adler,w.pending_buf,w.pending-H,H));f===0&&(w.status=103)}else w.status=103;w.status===103&&(w.gzhead.hcrc?(w.pending+2>w.pending_buf_size&&vO(Y),
w.pending+2<=w.pending_buf_size&&(eI(w,Y.adler&255),eI(w,Y.adler>>8&255),Y.adler=0,w.status=113)):w.status=113);if(w.pending!==0){if(vO(Y),Y.avail_out===0)return w.last_flush=-1,0}else if(Y.avail_in===0&&(b<<1)-(b>4?9:0)<=(V<<1)-(V>4?9:0)&&b!==4)return sK(Y,-5);if(w.status===666&&Y.avail_in!==0)return sK(Y,-5);if(Y.avail_in!==0||w.lookahead!==0||b!==0&&w.status!==666){V=w.strategy===2?Gug(w,b):w.strategy===3?jP6(w,b):F4[w.level].func(w,b);if(V===3||V===4)w.status=666;if(V===1||V===3)return Y.avail_out===
0&&(w.last_flush=-1),0;if(V===2&&(b===1?(oq(w,2,3),Iq(w,256,PO),w.bi_valid===16?(mq(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):w.bi_valid>=8&&(w.pending_buf[w.pending++]=w.bi_buf&255,w.bi_buf>>=8,w.bi_valid-=8)):b!==5&&(oq(w,0,3),t1L(w,0,0),b===3&&(Qn(w.head),w.lookahead===0&&(w.strstart=0,w.block_start=0,w.insert=0))),vO(Y),Y.avail_out===0))return w.last_flush=-1,0}if(b!==4)return 0;if(w.wrap<=0)return 1;w.wrap===2?(eI(w,Y.adler&255),eI(w,Y.adler>>8&255),eI(w,Y.adler>>16&255),eI(w,Y.adler>>24&255),eI(w,
Y.total_in&255),eI(w,Y.total_in>>8&255),eI(w,Y.total_in>>16&255),eI(w,Y.total_in>>24&255)):(pb(w,Y.adler>>>16),pb(w,Y.adler&65535));vO(Y);w.wrap>0&&(w.wrap=-w.wrap);return w.pending!==0?0:1};
ux6=function(Y){if(!(this instanceof ux6))return new ux6(Y);Y=this.options=kr.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},Y||{});Y.raw&&Y.windowBits>0?Y.windowBits=-Y.windowBits:Y.gzip&&Y.windowBits>0&&Y.windowBits<16&&(Y.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Yfe;this.strm.avail_out=0;var b=this.strm;var w=Y.level,V=Y.method,H=Y.windowBits,f=Y.memLevel,E=Y.strategy;if(b){var U=1;w===-1&&(w=6);H<0?(U=0,H=-H):H>15&&
(U=2,H-=16);if(f<1||f>9||V!==8||H<8||H>15||w<0||w>9||E<0||E>4)b=sK(b,-2);else{H===8&&(H=9);var X=new T5v;b.state=X;X.strm=b;X.wrap=U;X.gzhead=null;X.w_bits=H;X.w_size=1<<X.w_bits;X.w_mask=X.w_size-1;X.hash_bits=f+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 kr.Buf8(X.w_size*2);X.head=new kr.Buf16(X.hash_size);X.prev=new kr.Buf16(X.w_size);X.lit_bufsize=1<<f+6;X.pending_buf_size=X.lit_bufsize*4;X.pending_buf=new kr.Buf8(X.pending_buf_size);
X.d_buf=X.lit_bufsize;X.l_buf=3*X.lit_bufsize;X.level=w;X.strategy=E;X.method=V;if(b&&b.state){b.total_in=b.total_out=0;b.data_type=2;w=b.state;w.pending=0;w.pending_out=0;w.wrap<0&&(w.wrap=-w.wrap);w.status=w.wrap?42:113;b.adler=w.wrap===2?0:1;w.last_flush=0;if(!b8K){V=Array(16);for(f=E=0;f<28;f++)for(Lxr[f]=E,H=0;H<1<<Fxt[f];H++)lS[E++]=f;lS[E-1]=f;for(f=E=0;f<16;f++)for(aeu[f]=E,H=0;H<1<<Saq[f];H++)hE[E++]=f;for(E>>=7;f<30;f++)for(aeu[f]=E<<7,H=0;H<1<<Saq[f]-7;H++)hE[256+E++]=f;for(H=0;H<=15;H++)V[H]=
0;for(H=0;H<=143;)PO[H*2+1]=8,H++,V[8]++;for(;H<=255;)PO[H*2+1]=9,H++,V[9]++;for(;H<=279;)PO[H*2+1]=7,H++,V[7]++;for(;H<=287;)PO[H*2+1]=8,H++,V[8]++;ewa(PO,287,V);for(H=0;H<30;H++)Z9[H*2+1]=5,Z9[H*2]=M1K(H,5);w$K=new B5G(PO,Fxt,257,286,15);VlL=new B5G(Z9,Saq,0,30,15);H8B=new B5G([],gtv,0,19,7);b8K=!0}w.l_desc=new n7G(w.dyn_ltree,w$K);w.d_desc=new n7G(w.dyn_dtree,VlL);w.bl_desc=new n7G(w.bl_tree,H8B);w.bi_buf=0;w.bi_valid=0;p0K(w);w=0}else w=sK(b,-2);w===0&&(b=b.state,b.window_size=2*b.w_size,Qn(b.head),
b.max_lazy_match=F4[b.level].max_lazy,b.good_match=F4[b.level].good_length,b.nice_match=F4[b.level].nice_length,b.max_chain_length=F4[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=2,b.match_available=0,b.ins_h=0);b=w}}else b=-2;if(b!==0)throw Error(qz[b]);Y.header&&(b=this.strm)&&b.state&&b.state.wrap===2&&(b.state.gzhead=Y.header);if(Y.dictionary){var I;typeof Y.dictionary==="string"?I=f7I(Y.dictionary):NbK.call(Y.dictionary)==="[object ArrayBuffer]"?
I=new Uint8Array(Y.dictionary):I=Y.dictionary;Y=this.strm;f=I;E=f.length;if(Y&&Y.state)if(I=Y.state,b=I.wrap,b===2||b===1&&I.status!==42||I.lookahead)b=-2;else{b===1&&(Y.adler=y1u(Y.adler,f,E,0));I.wrap=0;E>=I.w_size&&(b===0&&(Qn(I.head),I.strstart=0,I.block_start=0,I.insert=0),w=new kr.Buf8(I.w_size),kr.arraySet(w,f,E-I.w_size,I.w_size,0),f=w,E=I.w_size);w=Y.avail_in;V=Y.next_in;H=Y.input;Y.avail_in=E;Y.next_in=0;Y.input=f;for(tE(I);I.lookahead>=3;){f=I.strstart;E=I.lookahead-2;do I.ins_h=(I.ins_h<<
I.hash_shift^I.window[f+3-1])&I.hash_mask,I.prev[f&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=f,f++;while(--E);I.strstart=f;I.lookahead=2;tE(I)}I.strstart+=I.lookahead;I.block_start=I.strstart;I.insert=I.lookahead;I.lookahead=0;I.match_length=I.prev_length=2;I.match_available=0;Y.next_in=V;Y.input=H;Y.avail_in=w;I.wrap=b;b=0}else b=-2;if(b!==0)throw Error(qz[b]);this._dict_set=!0}};
Etv=function(Y,b){b=b||{};b.gzip=!0;b=new ux6(b);b.push(Y,!0);if(b.err)throw b.msg||qz[b.err];return b.result};
UV6=function(Y,b){var w=cru();w&&w.publish.call(w,Y.toString(),Y,b)};
I7b=function(Y,b,w){var V=cru();if(!V)return 0;var H=V.subscribe(Y.toString(),function(f,E){var U=_.Aq("ytPubsub2Pubsub2SkipSubKey");U&&U==H||(U=function(){if(X$b[H])try{if(E&&Y instanceof DVr&&Y!=f)try{var X=Y.dataClass,I=E;if(!I.args||!I.version)throw Error("Yc");try{if(!X.version_){var k=new X;X.version_=k.version}var l=X.version_}catch(x){}if(!l||I.version!=l)throw Error("Zc");try{E=Reflect.construct(X,_.jL(I.args))}catch(x){throw x.message="yt.pubsub2.Data.deserialize(): "+x.message,x;}}catch(x){throw x.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+Y.toString()+": "+x.message,x;}b.call(w||window,E)}catch(x){_.K7(x)}},mVG[Y.toString()]?_.Aq("yt.scheduler.instance")?_.Lb.addLowPriorityJob(U):_.m$(U,0):U())});
X$b[H]=!0;ota[Y.toString()]||(ota[Y.toString()]=[]);ota[Y.toString()].push(H);return H};
xVe=function(){var Y=kxu,b=I7b(l7B,function(w){Y.apply(void 0,arguments);hMr(b)});
return b};
hMr=function(Y){var b=cru();b&&(typeof Y==="number"&&(Y=[Y]),_.$2(Y,function(w){b.unsubscribeByKey(w);delete X$b[w]}))};
cru=function(){return _.Aq("ytPubsub2Pubsub2Instance")};
qfG=function(Y,b,w){w=w===void 0?{sampleRate:.1}:w;Math.random()<Math.min(.02,w.sampleRate/100)&&UV6("meta_logging_csi_event",{timerName:Y,timelineData:b})};
_.s8B=function(Y){return Y?(Y=Y.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.rE(Y):null:null};
_.SI=function(Y){return Y?(Y=Y.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Uu(Y):null:null};
vt6=function(){Q8I||(Q8I=_.SI(_.zO("WORKER_SERIALIZATION_URL")));return Q8I||void 0};
_.Z8t=function(){var Y=vt6();P3t||Y===void 0||(P3t=new Worker(_.Xk(Y),void 0));return P3t};
_.Bbu=function(){return typeof Worker==="function"&&vt6()?!0:!1};
_.p$L=function(){if(_.Bbu()&&!ntb){var Y=function(w){w=w.data;if(w.op==="gzippedGelBatch"){var V=Mlu.get(w.key);V&&(eMB(w.gzippedBatch,V.latencyPayload,V.url,V.options,V.sendFn),Mlu.delete(w.key))}},b=_.Z8t();
b&&(b.addEventListener("message",Y),b.onerror=function(){Mlu.clear()},ntb=!0)}};
Sfv=function(Y,b,w,V,H){H=H===void 0?!1:H;var f={startTime:(0,_.gG)(),ticks:{},infos:{}};if(aq)try{var E=O8q(b);if(E!=null&&(E>tlt||E<RMK))V(Y,w);else{if(_.q("gzip_gel_with_worker")&&(_.q("initial_gzip_use_main_thread")&&!dVG||!_.q("initial_gzip_use_main_thread"))){ntb||_.p$L();var U=_.Z8t();if(U&&!H){Mlu.set(FRr,{latencyPayload:f,url:Y,options:w,sendFn:V});U.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:FRr});FRr++;return}}var X=Etv(LRb(b));eMB(X,f,Y,w,V)}}catch(I){_.C7(I),V(Y,w)}else V(Y,
w)};
eMB=function(Y,b,w,V,H){dVG=!1;var f=(0,_.gG)();b.ticks.gelc=f;rG++;_.q("disable_compression_due_to_performance_degredation")&&f-b.startTime>=a7a&&(rrg++,_.q("abandon_compression_after_N_slow_zips")?rG===_.cQ("compression_disable_point")&&rrg>zMb&&(aq=!1):aq=!1);WRI(b);V.headers||(V.headers={});V.headers["Content-Encoding"]="gzip";V.postBody=Y;V.postParams=void 0;H(w,V)};
KR6=function(Y){var b=b===void 0?!1:b;var w=w===void 0?!1:w;var V=(0,_.gG)(),H={startTime:V,ticks:{},infos:{}},f=b?_.Aq("yt.logging.gzipForFetch",!1):!0;if(aq&&f){if(!Y.body)return Y;try{var E=w?Y.body:typeof Y.body==="string"?Y.body:JSON.stringify(Y.body);f=E;if(!w&&typeof E==="string"){var U=O8q(E);if(U!=null&&(U>tlt||U<RMK))return Y;w=b?{level:1}:void 0;f=Etv(LRb(E),w);var X=(0,_.gG)();H.ticks.gelc=X;if(b){rG++;if((_.q("disable_compression_due_to_performance_degredation")||_.q("disable_compression_due_to_performance_degradation_lr"))&&
X-V>=a7a)if(rrg++,_.q("abandon_compression_after_N_slow_zips")||_.q("abandon_compression_after_N_slow_zips_lr")){b=rrg/rG;var I=zMb/_.cQ("compression_disable_point");rG>0&&rG%_.cQ("compression_disable_point")===0&&b>=I&&(aq=!1)}else aq=!1;WRI(H)}}Y.headers=Object.assign({},{"Content-Encoding":"gzip"},Y.headers||{});Y.body=f;return Y}catch(k){return _.C7(k),Y}}else return Y};
O8q=function(Y){try{return(new Blob(Y.split(""))).size}catch(b){return _.C7(b),null}};
WRI=function(Y){_.q("gel_compression_csi_killswitch")||!_.q("log_gel_compression_latency")&&!_.q("log_gel_compression_latency_lr")||qfG("gel_compression",Y,{sampleRate:.1})};
i8L=function(){this.blockSize=-1};
zD=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var Y=1;Y<this.blockSize;++Y)this.pad_[Y]=0;this.total_=this.inbuf_=0;this.reset()};
C3B=function(Y){Y=Object.assign({},Y);delete Y.Authorization;var b=_.ArK();if(b){var w=new zD;w.update(_.zO("INNERTUBE_API_KEY"));w.update(b);Y.hash=_.YM(w.digest(),3)}return Y};
Kb=function(){yru||(yru=new _.WO("yt.innertube"));return yru};
$Vq=function(Y,b,w,V){if(V)return null;V=Kb().get("nextId",!0)||1;var H=Kb().get("requests",!0)||{};H[V]={method:Y,request:b,authState:C3B(w),requestTime:Math.round((0,_.gG)())};Kb().set("nextId",V+1,86400,!0);Kb().set("requests",H,86400,!0);return V};
j8b=function(Y){var b=Kb().get("requests",!0)||{};delete b[Y];Kb().set("requests",b,86400,!0)};
Tbr=function(Y){var b=Kb().get("requests",!0);if(b){for(var w in b){var V=b[w];if(!(Math.round((0,_.gG)())-V.requestTime<6E4)){var H=V.authState,f=C3B(_.Pnt(!1));_.BL.equals(H,f)&&(H=V.request,"requestTimeMs"in H&&(H.requestTimeMs=Math.round((0,_.gG)())),Gxa(Y,V.method,H,{}));delete b[w]}}Kb().set("requests",b,86400,!0)}};
JrM=function(Y){var b;return(Y=Y==null?void 0:(b=Y.error)==null?void 0:b.code)&&Y>=400&&Y<=599?!1:!0};
uZK=function(Y){var b;Y=Y==null?void 0:(b=Y.error)==null?void 0:b.code;return!(Y!==400&&Y!==415)};
bXa=function(){if(YCM)return YCM();var Y={};YCM=HO("LogsDatabaseV2",{objectStores:(Y.LogsRequestsStore={addedAtVersion:2},Y),shared:!1,upgrade:function(b,w,V){w(2)&&iS(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});w(3);w(5)&&(V=V.objectStore("LogsRequestsStore"),V.JSC$8646_wrapped.indexNames.contains("newRequest")&&V.JSC$8646_wrapped.deleteIndex("newRequest"),AE(V,"newRequestV2",["status","interface","timestamp"]));w(7)&&b.JSC$8631_wrapped.objectStoreNames.contains("sapisid")&&b.JSC$8631_wrapped.deleteObjectStore("sapisid");
w(9)&&b.JSC$8631_wrapped.objectStoreNames.contains("SWHealthLog")&&b.JSC$8631_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return YCM()};
Cb=function(Y){return _.Gr(bXa(),Y)};
VyL=function(Y,b){var w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return w={startTime:(0,_.gG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.D(E,Cb(b),2);if(E.nextAddress!=3)return V=E.yieldResult,H=Object.assign({},Y,{options:JSON.parse(JSON.stringify(Y.options)),interface:_.zO("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.D(E,V.put("LogsRequestsStore",H),3);f=E.yieldResult;w.ticks.tc=(0,_.gG)();wH6(w);return E.return(f)})};
HXb=function(Y,b){var w,V,H,f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1)return w={startTime:(0,_.gG)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.D(k,Cb(b),2);if(k.nextAddress!=3)return V=k.yieldResult,H=_.zO("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[Y,H,0],E=[Y,H,(0,_.gG)()],U=IDBKeyRange.bound(f,E),X="prev",_.q("use_fifo_for_networkless")&&(X="next"),I=void 0,_.D(k,_.Tr(V,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(l){return _.fb(l.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:U,direction:X},function(x){x.getValue()&&(I=x.getValue(),Y==="NEW"&&(I.status="QUEUED",x.update(I)))})}),3);
w.ticks.tc=(0,_.gG)();wH6(w);return k.return(I)})};
gyt=function(Y,b){var w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Cb(b),2);w=V.yieldResult;return V.return(_.Tr(w,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){var f=H.objectStore("LogsRequestsStore");return f.get(Y).then(function(E){if(E)return E.status="QUEUED",f.put(E).then(function(){return E})})}))})};
f86=function(Y,b,w,V){w=w===void 0?!0:w;var H;return _.c(function(f){if(f.nextAddress==1)return _.D(f,Cb(b),2);H=f.yieldResult;return f.return(_.Tr(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(E){var U=E.objectStore("LogsRequestsStore");return U.get(Y).then(function(X){return X?(X.status="NEW",w&&(X.sendCount+=1),V!==void 0&&(X.options.compress=V),U.put(X).then(function(){return X})):WQ.resolve(void 0)})}))})};
Nru=function(Y,b){var w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Cb(b),2);w=V.yieldResult;return V.return(w.delete("LogsRequestsStore",Y))})};
Eyb=function(Y){var b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Cb(Y),2);b=V.yieldResult;w=(0,_.gG)()-2592E6;return _.D(V,_.Tr(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(H){return uc(H.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=w)return f.delete().then(function(){return f.continue()})})}),0)})};
cLr=function(){_.c(function(Y){return _.D(Y,Jwr("LogsDatabaseV2"),0)})};
wH6=function(Y){_.q("nwl_csi_killswitch")||qfG("networkless_performance",Y,{sampleRate:1})};
_.XHM=function(Y){return _.Gr(UCa(),Y)};
DCu=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,_.XHM(Y),2);b=V.yieldResult;w=(0,_.gG)()-2592E6;return _.D(V,_.Tr(b,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(H){return uc(H.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=w)return f.delete().then(function(){return f.continue()})})}),0)})};
mCr=function(Y){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,_.XHM(Y),2);b=w.yieldResult;return _.D(w,b.clear("SWHealthLog"),0)})};
_.yn=function(Y,b,w,V,H,f,E){H=H===void 0?"":H;f=f===void 0?!1:f;E=E===void 0?!1:E;if(Y)if(w&&!S3("cobalt"))_.C7(new _.BQ("Legacy referrer-scrubbed ping detected")),Y&&oyu(Y,void 0,{scrubReferrer:!0});else if(H)rQL(Y,b,"POST",H,V);else if(_.zO("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||V||E)rQL(Y,b,"GET","",V,void 0,f,E);else{b:{try{c:{var U=new I8v({url:Y});if(U.urlParamValues_.dsh==="1")var X=null;else{var I=U.urlParamValues_.ae;if(I==="1"){var k=U.urlParamValues_.adurl;if(k)try{X={version:3,directUrl:decodeURIComponent(k),
asyncUrl:ZCM(U.JSC$7513_url_,"act=1","ri=1",kgK(U))};break c}catch(Z){}}X=I==="2"?{version:4,directUrl:ZCM(U.JSC$7513_url_,"dct=1","suid="+U.suid_,""),asyncUrl:ZCM(U.JSC$7513_url_,"act=1","ri=1","suid="+U.suid_)}:null}}if(X){var l=_.ku(Y);var x=!(!l||!l.endsWith("/aclk")||_.CC(Y,"ri")!=="1");break b}}catch(Z){}x=!1}if(x){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Y,"")){var Q=!0;break b}}catch(Z){}Q=!1}Q?(b&&b(),w=!0):w=!1}else w=!1;w||oyu(Y,b)}};
oyu=function(Y,b,w){w=w===void 0?{}:w;var V=new Image,H=""+l8a++;h3v[H]=V;V.onload=V.onerror=function(){b&&h3v[H]&&b();delete h3v[H]};
w.scrubReferrer&&(V.referrerPolicy="no-referrer");V.src=Y};
$r=function(Y,b){xCI(Y,b==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
qCB=function(Y){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?Y+"&nis=6":Y+"&nis=5"};
sAt=function(Y){if(!Y)return!1;try{var b;if(((b=_.j4(Y))==null?void 0:b.asm)==="4")return!0}catch(w){_.K7(w)}return!1};
xCI=function(Y,b){b?(Y=qCB(Y),_.yn(Y,void 0,void 0,void 0,"",!0,!0)):_.yn(Y)};
vyq=function(){QAL||(QAL=new _.WO("yt.offline"));return QAL};
PWt=function(Y){if(_.q("offline_error_handling")){var b=vyq().get("errors",!0)||{};b[Y.message]={name:Y.name,stack:Y.stack};Y.level&&(b[Y.message].level=Y.level);vyq().set("errors",b,2592E3,!0)}};
Bru=function(Y,b,w,V){V=V===void 0?!1:V;b=_.q("web_fp_via_jspb")?Object.assign({},b):b;_.q("use_cfr_monitor")&&ZXu(Y,b);if(_.q("use_request_time_ms_header"))b.headers&&wa(Y)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gG)())));else{var H;if((H=b.postParams)==null?0:H.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,_.gG)())}w&&Object.keys(b).length===0?_.yn(Y):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Sfv(Y,b.postBody,
b,_.lc,V)):Sfv(Y,JSON.stringify(b.postParams),b,iSe,V):_.lc(Y,b)};
nyM=function(Y,b){_.q("use_event_time_ms_header")&&wa(Y)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.gG)())));return b};
_.e3B=function(){MyI||(MyI=new _.jI({logOfflineErrors:!0,enablePolling:!0}));return MyI};
ZXu=function(Y,b){var w=b.onError?b.onError:function(){};
b.onError=function(H,f){GD().requestComplete(Y,!1);w(H,f)};
var V=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(H,f){GD().requestComplete(Y,!0);V(H,f)}};
_.pHB=function(){return _.Yu(document.location.toString())!=="www.youtube-nocookie.com"};
_.R3K=function(){return _.Aq("ytNetworklessLoggingInitializationOptions")?_.OXb.isNwlInitialized:_.tyb};
dC6=function(Y,b){if(_.q("polymer_on_demand_shady_dom")){var w;var V=(w=Y.__shady_native_firstElementChild)!=null?w:Y.firstElementChild}else V=Y.firstElementChild;for(;V;){if(Y=b(V)?V:dC6(V,b))return Y;V=V.nextElementSibling}return null};
LDg=function(){var Y=document;if("visibilityState"in Y)return Y.visibilityState;var b=FDK+"VisibilityState";if(b in Y)return Y[b]};
_.SCL=function(Y,b){var w;TD(Y,function(V){w=b[V];return!!w});
return w};
_.uS=function(Y){var b=a8b(Y);b?b.focus(void 0):_.JE(Y)};
a8b=function(Y){return(Y=dC6(Y,function(b){return _.YP(b)?rLM(b)&&!!b.offsetParent:!1}))?Y:null};
_.JE=function(Y,b){Y.hasAttribute("tabindex")||Y.setAttribute("tabindex","-1");Y.focus(b)};
z3a=function(Y,b,w,V){V=V===void 0?{}:V;Y.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return _.BL.findKey(bF,function(H){var f=typeof H[4]==="boolean"&&H[4]==!!V,E=_.bC(H[4])&&_.bC(V)&&_.BL.equals(H[4],V);return!!H.length&&H[0]==Y&&H[1]==b&&H[2]==w&&(f||E)})};
_.Vu=function(Y,b,w,V){V=V===void 0?{}:V;if(!Y||!Y.addEventListener&&!Y.attachEvent)return"";var H=z3a(Y,b,w,V);if(H)return H;H=++WD6.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!Y.addEventListener||"onmouseenter"in document);var E=f?function(U){U=new wh(U);if(!_.FE(U.relatedTarget,function(X){return X==Y},!0))return U.currentTarget=Y,U.type=b,w.call(Y,U)}:function(U){U=new wh(U);
U.currentTarget=Y;return w.call(Y,U)};
E=_.i1(E);Y.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),KDt()||typeof V==="boolean"?Y.addEventListener(b,E,V):Y.addEventListener(b,E,!!V.capture)):Y.attachEvent("on"+b,E);bF[H]=[Y,b,w,E,V];return H};
_.AL6=function(Y,b,w){var V=V===void 0?{}:V;var H=_.Vu(Y,b,function(){_.iXG(H);w.apply(Y,arguments)},V)};
_.iXG=function(Y){Y&&(typeof Y=="string"&&(Y=[Y]),_.$2(Y,function(b){if(b in bF){var w=bF[b],V=w[0],H=w[1],f=w[3];w=w[4];V.removeEventListener?KDt()||typeof w==="boolean"?V.removeEventListener(H,f,w):V.removeEventListener(H,f,!!w.capture):V.detachEvent&&V.detachEvent("on"+H,f);delete bF[b]}}))};
Hy=function(Y){this.callback_=Y;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(Y=0;Y<4;Y++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Vu(window,"mousemove",(0,_.nC)(this.onMouseMove_,this));this.timerId_=_.oV((0,_.nC)(this.checkPosition_,this),25)};
yLt=function(){var Y={};var b=Y.preferMobileEvents===void 0?!1:Y.preferMobileEvents;Y=Y.enableScrollEventListener===void 0?!0:Y.enableScrollEventListener;if(_.Aq("_lact",window)==null){var w=parseInt(_.zO("LACT"),10);w=isFinite(w)?Date.now()-Math.max(w,0):-1;_.wG("_lact",w,window);_.wG("_fact",w,window);w==-1&&_.gh();_.Vu(document,"keydown",_.gh);_.Vu(document,"keyup",_.gh);_.Vu(document,"mousedown",_.gh);_.Vu(document,"mouseup",_.gh);b?_.Vu(window,"touchmove",function(){CWe("touchmove",200)},{passive:!0}):
(_.Vu(window,"resize",function(){CWe("resize",200)}),Y&&_.Vu(window,"scroll",function(){CWe("scroll",200)}));
new Hy(function(){CWe("mouse",100)});
_.Vu(document,"touchstart",_.gh,{passive:!0});_.Vu(document,"touchend",_.gh,{passive:!0})}};
CWe=function(Y,b){$Ce[Y]||($Ce[Y]=!0,_.Lb.addLowPriorityJob(function(){_.gh();$Ce[Y]=!1},b))};
_.gh=function(){_.Aq("_lact",window)==null&&yLt();var Y=Date.now();_.wG("_lact",Y,window);_.Aq("_fact",window)==-1&&_.wG("_fact",Y,window);(Y=_.Aq("ytglobal.ytUtilActivityCallback_"))&&Y()};
_.fB=function(){var Y=_.Aq("_lact",window);return Y==null?-1:Math.max(Date.now()-Y,0)};
_.UP=function(Y,b,w){var V=_.NY();if(V&&b){var H=V.subscribe(Y,function(){var f=arguments,E=function(){EP[H]&&b.apply&&typeof b.apply=="function"&&b.apply(w||window,f)};
try{_.jAG[Y]?E():_.m$(E,0)}catch(U){_.K7(U)}},w);
EP[H]=!0;cy[Y]||(cy[Y]=[]);cy[Y].push(H);return H}return 0};
_.Ggq=function(Y){var b=_.NY();b&&(typeof Y==="number"?Y=[Y]:typeof Y==="string"&&(Y=[parseInt(Y,10)]),_.$2(Y,function(w){b.unsubscribeByKey(w);delete EP[w]}))};
_.TrM=function(Y,b){var w=_.NY();w&&w.publish.apply(w,arguments)};
_.u2g=function(Y){var b=_.NY();if(b)if(b.clear(Y),Y)JLM(Y);else for(var w in cy)JLM(w)};
_.NY=function(){return _.wB.ytPubsubPubsubInstance};
JLM=function(Y){cy[Y]&&(Y=cy[Y],_.$2(Y,function(b){EP[b]&&delete EP[b]}),Y.length=0)};
Y6b=function(){var Y,b;return"h5vcc"in Xt&&((Y=Xt.h5vcc.traceEvent)==null?0:Y.traceBegin)&&((b=Xt.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Xt&&Xt.performance.mark&&Xt.performance.measure?2:0};
bVr=function(Y){var b=Y6b();switch(b){case 1:Xt.h5vcc.traceEvent.traceBegin("YTLR",Y);break;case 2:Xt.performance.mark(Y+"-start");break;case 0:break;default:_.cI(b,"unknown trace type")}};
wXq=function(Y){var b=Y6b();switch(b){case 1:Xt.h5vcc.traceEvent.traceEnd("YTLR",Y);break;case 2:b=Y+"-start";var w=Y+"-end";Xt.performance.mark(w);Xt.performance.measure(Y,b,w);break;case 0:break;default:_.cI(b,"unknown trace type")}};
Vma=function(Y){var b,w;(w=(b=window).onerror)==null||w.call(b,Y.message,"",0,0,Y)};
HVI=function(Y){if(_.q("web_lifecycle_error_handling_killswitch"))return Y();try{return Y()}catch(b){Vma(b)}};
gZB=function(Y){return[Y.auth===void 0?"undefined":Y.auth,Y.isJspb===void 0?"undefined":Y.isJspb,Y.cttAuthInfo===void 0?"undefined":Y.cttAuthInfo,Y.tier===void 0?"undefined":Y.tier].join("/")};
_.v=function(Y,b){if(Y)return Y[b.name]};
IY=function(){var Y=_.Aq("yt.logging.ims");Y||(Y=new DF,_.wG("yt.logging.ims",Y));return Y};
oZu=function(Y,b){if(Y.endpoint==="log_event"){fTa(Y);var w=N_u(Y),V=EZv(Y.payload)||"",H=cUK(V),f=200;if(H){if(H.enabled===!1&&!_.q("web_payload_policy_disabled_killswitch"))return;f=Ul6(H.tier);if(f===400){XXu(Y,b);return}}kP[w]=!0;w={cttAuthInfo:w,isJspb:!1,tier:f};IY().storePayload(w,Y.payload);DlL(b,!1,w,mlr(V))}};
kdL=function(Y,b,w){if(b.endpoint==="log_event"){fTa(void 0,b);var V=N_u(b,!0),H=cUK(Y),f=200;if(H){if(H.enabled===!1&&!_.q("web_payload_policy_disabled_killswitch"))return;f=Ul6(H.tier);if(f===400){ITa(Y,b,w);return}}kP[V]=!0;V={cttAuthInfo:V,isJspb:!0,tier:f};IY().storePayload(V,wX(b.payload));DlL(w,!0,V,mlr(Y))}};
DlL=function(Y,b,w,V){b=b===void 0?!1:b;V=V===void 0?!1:V;Y&&(lF=new Y);Y=_.cQ("tvhtml5_logging_max_batch_ads_fork")||_.cQ("tvhtml5_logging_max_batch")||_.cQ("web_logging_max_batch")||100;var H=(0,_.gG)(),f=lTv(b,w.tier),E=f.lastDebounceQueueFromLogTimeMs;V&&(f.useVideoStatsEndPoint=!0);V=0;w&&(V=IY().getSequenceCount(w));var U=function(){hSt({writeThenSend:!0},b,w.tier)};
V>=1E3?U():V>=Y?xlq||(xlq=q6I(function(){U();xlq=void 0},0)):H-E>=10&&(soK(b,w.tier),f.lastDebounceQueueFromLogTimeMs=H)};
XXu=function(Y,b){if(Y.endpoint==="log_event"){_.q("more_accurate_gel_parser")&&IY().storePayload({isJspb:!1},Y.payload);fTa(Y);var w=N_u(Y),V=new Map;V.set(w,[Y.payload]);var H=EZv(Y.payload)||"";b&&(lF=new b);return new _.hh(function(f,E){lF&&lF.isReady()?Qoq(V,lF,f,E,{bypassNetworkless:!0},!0,mlr(H)):f()})}};
ITa=function(Y,b,w){if(b.endpoint==="log_event"){fTa(void 0,b);var V=N_u(b,!0),H=new Map;H.set(V,[wX(b.payload)]);w&&(lF=new w);return new _.hh(function(f){lF&&lF.isReady()?vZq(H,lF,f,{bypassNetworkless:!0},!0,mlr(Y)):f()})}};
N_u=function(Y,b){var w="";if(Y.dangerousLogToVisitorSession)w="visitorOnlyApprovedKey";else if(Y.cttAuthInfo){if(b===void 0?0:b){b=Y.cttAuthInfo.token;w=Y.cttAuthInfo;var V=new Pre;w.videoId?V.setVideoId(w.videoId):w.playlistId&&xP(V,2,ZVe,zt(w.playlistId));B_6[b]=V}else b=Y.cttAuthInfo,w={},b.videoId?w.videoId=b.videoId:b.playlistId&&(w.playlistId=b.playlistId),nZu[Y.cttAuthInfo.token]=w;w=Y.cttAuthInfo.token}return w};
hSt=function(Y,b,w){Y=Y===void 0?{}:Y;b=b===void 0?!1:b;new _.hh(function(V,H){var f=lTv(b,w),E=f.useVideoStatsEndPoint;f.useVideoStatsEndPoint=!1;Mm6(f.queueTimer);Mm6(f.queueMaxTimer);f.queueMaxTimer=0;lF&&lF.isReady()?w===void 0&&_.q("enable_web_tiered_gel")?eSv(V,H,Y,b,300,E):eSv(V,H,Y,b,w,E):(soK(b,w),V())})};
eSv=function(Y,b,w,V,H,f){var E=lF;w=w===void 0?{}:w;V=V===void 0?!1:V;H=H===void 0?200:H;f=f===void 0?!1:f;var U=new Map,X=new Map,I={isJspb:V,cttAuthInfo:void 0,tier:H},k={isJspb:V,cttAuthInfo:void 0};if(V){b=_.N(Object.keys(kP));for(H=b.next();!H.done;H=b.next())H=H.value,X=_.q("enable_web_tiered_gel")?IY().smartExtractMatchingEntries({keys:[I,k],sizeLimit:1E3}):IY().extractMatchingEntries({isJspb:!0,cttAuthInfo:H}),X.length>0&&U.set(H,X),(_.q("web_fp_via_jspb_and_json")&&w.writeThenSend||!_.q("web_fp_via_jspb_and_json"))&&
delete kP[H];vZq(U,E,Y,w,!1,f)}else{U=_.N(Object.keys(kP));for(I=U.next();!I.done;I=U.next())I=I.value,k=_.q("enable_web_tiered_gel")?IY().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:I,tier:H},{isJspb:!1,cttAuthInfo:I}],sizeLimit:1E3}):IY().extractMatchingEntries({isJspb:!1,cttAuthInfo:I}),k.length>0&&X.set(I,k),(_.q("web_fp_via_jspb_and_json")&&w.writeThenSend||!_.q("web_fp_via_jspb_and_json"))&&delete kP[I];Qoq(X,E,Y,b,w,!1,f)}};
soK=function(Y,b){Y=Y===void 0?!1:Y;b=b===void 0?200:b;var w=function(){hSt({writeThenSend:!0},Y,b)},V=lTv(Y,b),H=V===pXB||V===OVI?5E3:tmq;
_.q("web_gel_timeout_cap")&&!V.queueMaxTimer&&(H=q6I(function(){w()},H),V.queueMaxTimer=H);
Mm6(V.queueTimer);H=_.zO("LOGGING_BATCH_TIMEOUT",_.cQ("web_gel_debounce_ms",1E4));_.q("shorten_initial_gel_batch_timeout")&&RS6&&(H=dlg);H=q6I(function(){_.cQ("gel_min_batch_size")>0?IY().getSequenceCount({cttAuthInfo:void 0,isJspb:Y,tier:b})>=F_L&&w():w()},H);
V.queueTimer=H};
Qoq=function(Y,b,w,V,H,f,E){H=H===void 0?{}:H;var U=Math.round((0,_.gG)()),X=Y.size,I=L_r(E);Y=_.N(Y);var k=Y.next();for(E={};!k.done;E={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},k=Y.next()){var l=_.N(k.value);k=l.next().value;l=l.next().value;E.batchRequest=_.BL.unsafeClone({context:_.IeM(b.config_||_.Nz())});if(!_.TK(l)&&!_.q("throw_err_when_logevent_malformed_killswitch")){V();break}E.batchRequest.events=l;
(l=nZu[k])&&S6L(E.batchRequest,k,l);delete nZu[k];E.dangerousLogToVisitorSession=k==="visitorOnlyApprovedKey";aTb(E.batchRequest,U,E.dangerousLogToVisitorSession);rUI(H);E.onSuccess$jscomp$3=function(x){_.q("start_client_gcf")&&_.Lb.addLowPriorityJob(function(){return _.c(function(Q){return _.D(Q,zSb(x),0)})});
X--;X||w()};
E.networkFailures=0;E.onError$jscomp$5=function(x){return function(){x.networkFailures++;if(H.bypassNetworkless&&x.networkFailures===1)try{Gxa(b,I,x.batchRequest,W_6({writeThenSend:!0},x.dangerousLogToVisitorSession,x.onSuccess$jscomp$3,x.onError$jscomp$5,f)),RS6=!1}catch(Q){_.K7(Q),V()}X--;X||w()}}(E);
try{Gxa(b,I,E.batchRequest,W_6(H,E.dangerousLogToVisitorSession,E.onSuccess$jscomp$3,E.onError$jscomp$5,f)),RS6=!1}catch(x){_.K7(x),V()}}};
vZq=function(Y,b,w,V,H,f){V=V===void 0?{}:V;var E=Math.round((0,_.gG)()),U={value:Y.size},X=new Map([].concat(_.Bt(Y)));X=_.N(X);for(var I=X.next();!I.done;I=X.next()){var k=_.N(I.value).next().value,l=Y.get(k);I=new K_b;var x=b.config_||_.Nz(),Q=new qY,Z=new iVb;_.hP(Z,1,x.innertubeContextHostLanguage);_.hP(Z,2,x.innertubeContextGeoLocation);_.cO(Z,16,x.innertubeContextClientNameFieldNumber);_.hP(Z,17,x.innertubeContextClientVersion);if(x.innertubeContextClientConfigInfo){var e=x.innertubeContextClientConfigInfo,
O=new X4;e.coldConfigData&&_.hP(O,1,e.coldConfigData);e.appInstallData&&_.hP(O,6,e.appInstallData);e.coldHashData&&_.hP(O,3,e.coldHashData);e.hotHashData&&O.setHotHashData(e.hotHashData);_.HN(Z,62,O)}(e=_.wB.devicePixelRatio)&&e!=1&&_.UK(Z,65,_.UX(e));e=p6q();e!==""&&_.hP(Z,54,e);e=OSM();if(e.length>0){O=new AUb;for(var L=0;L<e.length;L++){var r=new sP;r.setKey(e[L].key);xP(r,2,CrK,zt(e[L].value));Qu(O,15,sP,r)}_.HN(Q,5,O)}c16(x,Z);U8g(Q);X0a(Z);D8b(x,Z);m8a(Z);_.q("start_client_gcf")&&o7u(Z);_.zO("DELEGATED_SESSION_ID")&&
!_.q("pageid_as_header_web")&&(x=new vy,_.hP(x,3,_.zO("DELEGATED_SESSION_ID")));!_.q("fill_delegate_context_in_gel_killswitch")&&(e=_.zO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(O=_.EK(Q,vy,3)||new vy,x=Q,e=_.hP(O,18,e),_.HN(x,3,e));x=Z;e=_.N(Object.entries(_.j4(_.zO("DEVICE",""))));for(O=e.next();!O.done;O=e.next())L=_.N(O.value),O=L.next().value,L=L.next().value,O==="cbrand"?_.hP(x,12,L):O==="cmodel"?_.hP(x,13,L):O==="cbr"?_.hP(x,87,L):O==="cbrver"?_.hP(x,88,L):O==="cos"?_.hP(x,18,
L):O==="cosver"?_.hP(x,19,L):O==="cplatform"&&_.cO(x,42,NOb(L));Q.setClient(Z);_.HN(I,1,Q);if(Z=B_6[k])a:{if(_.hy(Z,Py(Z,ZVe,1)))Q=1;else if(Z.getPlaylistId())Q=2;else break a;_.HN(I,4,Z);Z=I.getContext()||new qY;x=_.EK(Z,vy,3)||new vy;e=new ZF;e.setToken(k);_.cO(e,1,Q);Qu(x,12,ZF,e);_.HN(Z,3,x)}delete B_6[k];k=k==="visitorOnlyApprovedKey";yUK()||_.By(I,2,E);!k&&(Q=_.zO("EVENT_ID"))&&(Z=$lv(),x=new joe,_.hP(x,1,Q),_.By(x,2,Z),_.HN(I,5,x));rUI(V);if(_.q("jspb_serialize_with_worker")&&(Q=_.Z8t())&&
V.writeThenSend){_.Gdg.set(T_6,{client:b,resolve:w,networklessOptions:V,isIsolated:H,useVSSEndpoint:f,dangerousLogToVisitorSession:k,requestsOutstanding:U});Q.postMessage({op:"gelBatchToSerialize",batchRequest:wX(I),clientEvents:l,key:T_6});T_6++;break}if(l){Q=[];for(Z=0;Z<l.length;Z++)try{Q.push(new nB(l[Z]))}catch(C){_.K7(new _.BQ("Transport failed to deserialize "+String(l[Z])))}l=Q}else l=[];l=_.N(l);for(Q=l.next();!Q.done;Q=l.next())Qu(I,3,nB,Q.value);l={startTime:(0,_.gG)(),ticks:{},infos:{}};
I=I.serialize();l.ticks.geljspc=(0,_.gG)();_.q("log_jspb_serialize_latency")&&qfG("gel_jspb_serialize",l,{sampleRate:.1});_.JUq(I,b,w,V,H,f,k,U)}};
_.JUq=function(Y,b,w,V,H,f,E,U){V=V===void 0?{}:V;U=U===void 0?{value:0}:U;f=L_r(f);V=W_6(V,E,function(X){_.q("start_client_gcf")&&_.Lb.addLowPriorityJob(function(){return _.c(function(I){return _.D(I,zSb(X),0)})});
U.value--;U.value||w()},function(){U.value--;
U.value||w()},H);
V.headers["Content-Type"]="application/json+protobuf";V.postBodyFormat="JSPB";V.postBody=Y;Gxa(b,f,"",V);RS6=!1};
rUI=function(Y){_.q("always_send_and_write")&&(Y.writeThenSend=!1)};
W_6=function(Y,b,w,V,H){Y={retry:!0,onSuccess:w,onError:V,networklessOptions:Y,dangerousLogToVisitorSession:b,bypassMonitoring:!!H,headers:{},postBodyFormat:"",postBody:"",compress:_.q("compress_gel")||_.q("compress_gel_lr")};yUK()&&(Y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.gG)())));return Y};
aTb=function(Y,b,w){yUK()||(Y.requestTimeMs=String(b));_.q("unsplit_gel_payloads_in_logs")&&(Y.unsplitGelPayloadsInLogs=!0);!w&&(b=_.zO("EVENT_ID"))&&(w=$lv(),Y.serializedClientEventId={serializedEventId:b,clientCounter:String(w)})};
$lv=function(){var Y=_.zO("BATCH_CLIENT_COUNTER")||0;Y||(Y=Math.floor(Math.random()*65535/2));Y++;Y>65535&&(Y=1);_.rx("BATCH_CLIENT_COUNTER",Y);return Y};
S6L=function(Y,b,w){if(w.videoId)var V="VIDEO";else if(w.playlistId)V="PLAYLIST";else return;Y.credentialTransferTokenTargetId=w;Y.context=Y.context||{};Y.context.user=Y.context.user||{};Y.context.user.credentialTransferTokens=[{token:b,scope:V}]};
fTa=function(Y,b){var w=_.UJ("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Aq("yt.logging.transport.enableScrapingForTest"))if(w)uMg=[],_.wG("yt.logging.transport.enableScrapingForTest",!0),_.wG("yt.logging.transport.scrapedPayloadsForTesting",uMg),_.wG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.wG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.wG("yt.logging.transport.scrapeClientEvent",!0);else return;w=_.Aq("yt.logging.transport.scrapedPayloadsForTesting");var V=_.Aq("yt.logging.transport.payloadToScrape");b&&(b=_.Aq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b.payload)())&&w.push(b);b=_.Aq("yt.logging.transport.scrapeClientEvent");if(V&&V.length>=1)for(var H=0;H<V.length;H++)if(Y&&Y.payload[V[H]])if(b)w.push(Y.payload);else{var f=void 0;w.push(((f=Y)==null?void 0:f.payload)[V[H]])}_.wG("yt.logging.transport.scrapedPayloadsForTesting",
w)};
yUK=function(){return _.q("use_request_time_ms_header")||_.q("lr_use_request_time_ms_header")};
q6I=function(Y,b){return _.q("transport_use_scheduler")===!1?_.m$(Y,b):_.q("logging_avoid_blocking_during_navigation")||_.q("lr_logging_avoid_blocking_during_navigation")?_.MY(_.Lb,function(){if(_.YQv().currentState==="none")Y();else{var w={};_.YQv().install((w.none={callback:Y},w))}},b):_.MY(_.Lb,Y,b)};
Mm6=function(Y){_.q("transport_use_scheduler")?_.Lb.cancelJob(Y):_.IV(Y)};
zSb=function(Y){var b,w,V,H,f,E,U,X,I,k;return _.c(function(l){return l.nextAddress==1?(V=(b=Y)==null?void 0:(w=b.responseContext)==null?void 0:w.globalConfigGroup,H=_.v(V,bA6),E=(f=V)==null?void 0:f.hotHashData,U=_.v(V,wPt),I=(X=V)==null?void 0:X.coldHashData,(k=_.fH().resolve(_.HQ(ek)))?E?H?_.D(l,VzG(k,E,H),2):_.D(l,VzG(k,E),2):l.jumpTo(2):l.return()):I?U?_.D(l,HAa(k,I,U),0):_.D(l,HAa(k,I),0):l.jumpTo(0)})};
lTv=function(Y,b){b=b===void 0?200:b;return Y?b===300?pXB:gO6:b===300?OVI:fRb};
cUK=function(Y){if(_.q("enable_web_tiered_gel")){Y=NIv[Y||""];var b,w,V,H=_.fH().resolve(_.HQ(ek))==null?void 0:(b=EOu())==null?void 0:(w=b.loggingHotConfig)==null?void 0:(V=w.eventLoggingConfig)==null?void 0:V.payloadPolicies;if(H)for(b=0;b<H.length;b++)if(H[b].payloadNumber===Y)return H[b]}};
EZv=function(Y){Y=Object.keys(Y);Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())if(b=b.value,NIv[b])return b};
Ul6=function(Y){switch(Y){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
mlr=function(Y){return Y==="gelDebuggingEvent"};
L_r=function(Y){return(Y===void 0?0:Y)&&_.q("vss_through_gel_video_stats")?"video_stats":"log_event"};
OP=function(Y,b,w,V){V=V===void 0?{}:V;var H={},f=Math.round(V.timestamp||(0,_.gG)());H.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;H[Y]=b;Y=_.fB();H.context={lastActivityMs:String(V.timestamp||!isFinite(Y)?-1:Y)};V.sequenceGroup&&!_.q("web_gel_sequence_info_killswitch")&&(Y=H.context,b=V.sequenceGroup,b={index:cAL(b),groupKey:b},Y.sequence=b,V.endOfSequence&&delete pB[V.sequenceGroup]);(V.sendIsolatedPayload?XXu:oZu)({endpoint:"log_event",payload:H,cttAuthInfo:V.cttAuthInfo,dangerousLogToVisitorSession:V.dangerousLogToVisitorSession},
w)};
cAL=function(Y){pB[Y]=Y in pB?pB[Y]+1:0;return pB[Y]};
_.RY=function(Y,b,w){w=w===void 0?{}:w;var V=th;_.Wf("ytLoggingEventsDefaultDisabled",!1)&&th===th&&(V=null);OP(Y,b,V,w)};
_.dh=function(){if(_.q("web_fp_via_jspb")){var Y=!0;Y=Y===void 0?!1:Y;var b=UZ6;UZ6=[];if(b){b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,Y?OP(w.payloadName,w.payload,th,w.options):_.RY(w.payloadName,w.payload,w.options)}hSt(void 0,!0);if(!_.q("web_fp_via_jspb_and_json"))return}hSt(void 0,!1)};
XPe=function(Y,b){var w;if((w=b)==null?0:w.componentStack)return b;if(Y=Y.componentStack)b||(b={}),b.componentStack=Y;return b};
DZ6=function(){_.$2(_.zO("ERRORS")||[],function(Y){_.Ft.apply(null,Y)});
_.rx("ERRORS",[])};
_.LB=function(Y){_.Ft(Y)};
_.Sk=function(Y){_.Ft(Y,"WARNING")};
mZK=function(Y){Y instanceof Error?_.Ft(Y):(Y=_.bC(Y)?JSON.stringify(Y):String(Y),Y=new _.BQ(Y),Y.name="RejectedPromiseError",_.Sk(Y))};
oOI=function(Y,b,w,V,H,f){b=b===void 0?"Unknown file":b;w=w===void 0?0:w;var E=!1,U=X6q("log_window_onerror_fraction");if(U&&Math.random()<U)E=!0;else{U=document.getElementsByTagName("script");for(var X=0,I=U.length;X<I;X++)if(U[X].src.indexOf("/debug-")>0){E=!0;break}}E&&(E=!1,H?E=!0:(typeof Y==="string"?U=Y:ErrorEvent&&Y instanceof ErrorEvent?(E=!0,U=Y.message,b=Y.filename,w=Y.lineno,V=Y.colno):(U="Unknown error",b="Unknown file",w=0),H=new _.BQ(U),H.name="UnhandledWindowError",H.message=U,H.fileName=
b,H.lineNumber=w,isNaN(V)?delete H.columnNumber:H.columnNumber=V),_.q("wiz_enable_component_stack_propagation_killswitch")||(f=XPe(H,f)),f&&_.aY(H,f),E?_.Ft(H):_.Sk(H))};
_.Ft=function(Y,b,w,V,H,f,E,U){f=f===void 0?{}:f;f.name=w||_.zO("INNERTUBE_CONTEXT_CLIENT_NAME",1);f.version=V||_.zO("INNERTUBE_CONTEXT_CLIENT_VERSION");w=f;b=b===void 0?"ERROR":b;E=E===void 0?!1:E;b=b===void 0?"ERROR":b;E=E===void 0?!1:E;if(Y&&(Y.hasOwnProperty("level")&&Y.level&&(b=Y.level),_.q("console_log_js_exceptions")&&(V=[],V.push("Name: "+Y.name),V.push("Message: "+Y.message),Y.hasOwnProperty("params")&&V.push("Error Params: "+JSON.stringify(Y.params)),Y.hasOwnProperty("args")&&V.push("Error args: "+
JSON.stringify(Y.args)),V.push("File name: "+Y.fileName),V.push("Stacktrace: "+Y.stack),V=V.join("\n"),window.console.log(V,Y)),!(IRt>=5))){V=[];H=_.N(kTK);for(f=H.next();!f.done;f=H.next()){f=f.value;try{f()&&V.push(f())}catch(O){}}V=[].concat(_.Bt(lR6),_.Bt(V));var X=hQI(Y);H=X.message||"Unknown Error";f=X.name||"UnknownError";var I=X.stack||Y.stacktrace||"Not available";if(I.startsWith(f+": "+H)){var k=I.split("\n");k.shift();I=k.join("\n")}k=X.lineNumber||"Not available";X=X.fileName||"Not available";
var l=0;if(Y.hasOwnProperty("args")&&Y.args&&Y.args.length)for(var x=0;x<Y.args.length&&!(l=fmI(Y.args[x],"params."+x,w,l),l>=500);x++);else if(Y.hasOwnProperty("params")&&Y.params){var Q=Y.params;if(typeof Y.params==="object")for(x in Q){if(Q[x]){var Z="params."+x,e=qn(Q[x]);w[Z]=e;l+=Z.length+e.length;if(l>500)break}}else w.params=qn(Q)}if(V.length)for(x=0;x<V.length&&!(l=fmI(V[x],"params.context."+x,w,l),l>=500);x++);navigator.vendor&&!w.hasOwnProperty("vendor")&&(w["device.vendor"]=navigator.vendor);
x={message:H,name:f,lineNumber:k,fileName:X,stack:I,params:w,sampleWeight:1};w=Number(Y.columnNumber);isNaN(w)||(x.lineNumber=x.lineNumber+":"+w);if(Y.level==="IGNORED")Y=0;else a:{Y=xZv();w=_.N(Y.messageWeights);for(V=w.next();!V.done;V=w.next())if(V=V.value,x.message&&x.message.match(V.messageRegExp)){Y=V.weight;break a}Y=_.N(Y.callbackWeights);for(w=Y.next();!w.done;w=Y.next())if(w=w.value,w.callback(x)){Y=w.weight;break a}Y=1}x.sampleWeight=Y;Y=_.N(qQv);for(w=Y.next();!w.done;w=Y.next())if(w=
w.value,w.patternsForType[x.name])for(H=_.N(w.patternsForType[x.name]),V=H.next();!V.done;V=H.next())if(f=V.value,V=x.message.match(f.regexp)){x.params["params.error.original"]=V[0];H=f.groups;f={};for(k=0;k<H.length;k++)f[H[k]]=V[k+1],x.params["params.error."+H[k]]=V[k+1];x.message=w.messageFn(f);break}x.params||(x.params={});Y=xZv();x.params["params.errorServiceSignature"]="msg="+Y.messageWeights.length+"&cb="+Y.callbackWeights.length;x.params["params.serviceWorker"]="false";_.wB.document&&_.wB.document.querySelectorAll&&
(x.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new rh(sRL,"sample")).constructor!==rh&&(x.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(x);if(x.sampleWeight!==0&&!QRq.has(x.message)){if(E&&_.q("web_enable_error_204"))vOb(b===void 0?"ERROR":b,x);else{b=b===void 0?"ERROR":b;b==="ERROR"?(P8M.publish("handleError",x),_.q("record_app_crashed_web")&&ZAu===0&&x.sampleWeight===1&&(ZAu++,E={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.q("report_client_error_with_app_crash_ks")||(E.systemHealth={crashData:{clientError:{logMessage:{message:x.message}}}}),_.RY("appCrashed",E)),BIv++):b==="WARNING"&&P8M.publish("handleWarning",x);if(_.q("kevlar_gel_error_routing")){E=b;U=U===void 0?{}:U;b:{Y=_.N(nOq);for(w=Y.next();!w.done;w=Y.next())if(S3(w.value.toLowerCase())){Y=!0;break b}Y=!1}if(Y)U=void 0;else{w={stackTrace:x.stack};x.fileName&&(w.filename=x.fileName);Y=x.lineNumber&&x.lineNumber.split?x.lineNumber.split(":"):[];Y.length!==
0&&(Y.length!==1||isNaN(Number(Y[0]))?Y.length!==2||isNaN(Number(Y[0]))||isNaN(Number(Y[1]))||(w.lineNumber=Number(Y[0]),w.columnNumber=Number(Y[1])):w.lineNumber=Number(Y[0]));Y={level:"ERROR_LEVEL_UNKNOWN",message:x.message,errorClassName:x.name,sampleWeight:x.sampleWeight};E==="ERROR"?Y.level="ERROR_LEVEL_ERROR":E==="WARNING"&&(Y.level="ERROR_LEVEL_WARNNING");w={isObfuscated:!0,browserStackInfo:w};U.pageUrl=window.location.href;U.kvPairs=[];_.zO("FEXP_EXPERIMENTS")&&(U.experimentIds=_.zO("FEXP_EXPERIMENTS"));
V=_.zO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!X6q("web_disable_gel_stp_ecatcher_killswitch")&&V)for(H=_.N(Object.keys(V)),f=H.next();!f.done;f=H.next())f=f.value,U.kvPairs.push({key:f,value:String(V[f])});if(V=x.params)for(H=_.N(Object.keys(V)),f=H.next();!f.done;f=H.next())f=f.value,U.kvPairs.push({key:"client."+f,value:String(V[f])});V=_.zO("SERVER_NAME");H=_.zO("SERVER_VERSION");V&&H&&(U.kvPairs.push({key:"server.name",value:V}),U.kvPairs.push({key:"server.version",value:H}));U={errorMetadata:U,
stackTrace:w,logMessage:Y}}U&&(_.RY("clientError",U),(E==="ERROR"||_.q("errors_flush_gel_always_killswitch"))&&_.dh())}_.q("suppress_error_204_logging")||vOb(b,x)}try{QRq.add(x.message)}catch(O){}IRt++}}};
vOb=function(Y,b){var w=b.params||{};Y={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:Y,"client.name":w.name},postParams:{url:_.zO("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};w.version&&(Y["client.version"]=w.version);if(Y.postParams){b.stack&&(Y.postParams.stack=b.stack);b=_.N(Object.keys(w));for(var V=b.next();!V.done;V=b.next())V=V.value,Y.postParams["client."+V]=w[V];if(w=_.zO("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
_.N(Object.keys(w)),V=b.next();!V.done;V=b.next())V=V.value,Y.postParams[V]=w[V];(w=_.zO("LAVA_VERSION"))&&(Y.postParams["lava.version"]=w);w=_.zO("SERVER_NAME");b=_.zO("SERVER_VERSION");w&&b&&(Y.postParams["server.name"]=w,Y.postParams["server.version"]=b)}_.lc(_.zO("ECATCHER_REPORT_HOST","")+"/error_204",Y)};
_.Mze=function(Y,b){b=b===void 0?"ERROR":b;var w=w===void 0?{}:w;var V=_.Aq("ytbin.polymer.shared.lib.tampering.info");V&&(V=V())&&(w["params.tamperingInfo"]=V.sort().join(","));_.Ft(Y,b,void 0,void 0,!0,w)};
_.aY=function(Y){var b=_.BN.apply(1,arguments);Y.args||(Y.args=[]);Array.isArray(Y.args)&&Y.args.push.apply(Y.args,_.Bt(b))};
eQv=function(Y){Y.level="IGNORED"};
pPv=function(Y,b){lR6.push(Y);b();lR6.pop()};
Wy=function(Y,b){for(var w in b)b.hasOwnProperty(w)&&(Y=_.zM(Y,w,b[w]));return Y};
_.OAv=function(Y,b,w){w=w===void 0?!1:w;if(!Y)return null;if(Y.adInfoDialogEndpoint||Y.backstageImageUploadEndpoint||Y.confirmDialogEndpoint||Y.clientActionEndpoint||Y.createBackstagePostDialogEndpoint||Y.createCommentReplyDialogEndpoint||Y.flowEndpoint||Y.guideBuilderEndpoint||Y.liveChatDialogEndpoint||Y.modalEndpoint||Y.openPopupAction||Y.shareEndpoint||Y.shareEntityEndpoint||Y.showLiveChatItemEndpoint||Y.subscriptionManagerEndpoint||Y.unlimitedCreateFamilyEndpoint||Y.unlimitedFamilyFlowEndpoint||
Y.updateCommentDialogEndpoint||Y.updateCommentReplyDialogEndpoint||Y.userFeedbackEndpoint||Y.videoEditorEndpoint||Y.ypcCancelSurveyEndpoint)return b=_.cQ("polymer_report_client_url_requested_rate"),!w&&Math.random()<b&&_.Sk(new _.BQ("urlForEndpoint used on client endpoint",Y)),null;var V=_.cQ("polymer_report_missing_web_navigation_endpoint_rate");if(Y.liveChatEndpoint||Y.liveChatReplayEndpoint)V=0;if(!Y.commandMetadata&&!Y.clickTrackingParams&&Math.random()<V){var H={},f;for(f in Y)H[f]="1";_.Sk(new _.BQ("Missing navigation data",
H))}H="";if(Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url)H=Y.commandMetadata.webCommandMetadata.url;else if(Y.searchEndpoint)Math.random()<V&&_.Sk(new _.BQ("Should not manually handle search",Y)),H="/results?search_query="+encodeURIComponent(Y.searchEndpoint.query).replace(/%20/g,"+"),Y.searchEndpoint.params&&(H+="&sp="+Y.searchEndpoint.params);else if(Y.watchEndpoint)Math.random()<V&&_.Sk(new _.BQ("Should not manually handle watch",Y)),H="/watch?v="+
Y.watchEndpoint.videoId,Y.watchEndpoint.playlistId&&(H+="&list="+Y.watchEndpoint.playlistId),Y.watchEndpoint.index&&(H+="&index="+Y.watchEndpoint.index),Y.watchEndpoint.startTimeSeconds&&(H+="&t="+Y.watchEndpoint.startTimeSeconds);else if(Y.browseEndpoint)V=Y.browseEndpoint.browseId,(f=Y.browseEndpoint.canonicalBaseUrl)?H=f:V&&(H=V.substr(0,2),H=H==="FE"?V==="FEwhat_to_watch"?"/":V==="FEmy_videos"?"/my_videos":"/feed/"+V.substr(2):H==="VL"?"/playlist?list="+V.substr(2):"/channel/"+V),H&&Y.browseEndpoint.query&&
(H=Wy(H+"/search",{query:Y.browseEndpoint.query})),H&&Y.browseEndpoint.params&&(H=Wy(H,{params:Y.browseEndpoint.params}));else{if(Y.urlEndpoint)return Y.urlEndpoint.url;Y.signInEndpoint?(H="https://accounts.google.com/ServiceLogin",V={},_.BL.extend(V,b||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),b=V):Y.uploadEndpoint?H="//www.youtube.com/upload":Y.liveChatEndpoint?(H=Y.liveChatEndpoint,V=_.BL.clone(H),_.bC(H.continuation)&&(f=Object.keys(H.continuation)[0],
V.continuation=H.continuation[f].continuation),H=Wy("/youtubei/v1/live_chat/get_live_chat",V)):Y.liveChatReplayEndpoint?(H=_.BL.clone(Y.liveChatReplayEndpoint),H.currentPlayerState&&(_.BL.extend(H,H.currentPlayerState),delete H.currentPlayerState),H=Wy("/youtubei/v1/live_chat/get_live_chat_replay",H)):Y.liveChatItemContextMenuEndpoint?H=Wy("/youtubei/v1/live_chat/get_item_context_menu",Y.liveChatItemContextMenuEndpoint):Y.liveChatPurchaseMessageEndpoint?H=Wy("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
Y.liveChatPurchaseMessageEndpoint):Y.openSuperStickerBuyFlowCommand?H=Wy("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",Y.openSuperStickerBuyFlowCommand):Y.videoEditEndpoint?H=Wy("/edit",{video_id:Y.videoEditEndpoint.videoId}):Y.liveDashboardEndpoint?H=Y.liveDashboardEndpoint.videoId?Wy("/live_dashboard",{v:Y.liveDashboardEndpoint.videoId}):"/live_dashboard":Y.signalNavigationEndpoint&&Y.signalNavigationEndpoint.signal&&Y.signalNavigationEndpoint.signal==="WEBCAM"?H="/webcam":Y.getPdgBuyFlowCommand&&
(H=Wy(Y.getPdgBuyFlowCommand.buyflowApiPath,{params:Y.getPdgBuyFlowCommand.params}))}return H||w?Wy(H,b||{}):(_.Sk(new _.BQ("Error: Can't construct url for endpoint","keys:"+Object.keys(Y).sort().join(","),Y)),null)};
tza=function(Y){if(Y){if(Y.browseEndpoint)return!!Y.browseEndpoint.nofollow;if(Y.watchEndpoint)return!!Y.watchEndpoint.nofollow;if(Y.urlEndpoint)return!!Y.urlEndpoint.nofollow}return!1};
_.dZt=function(Y,b){var w=b+Y,V=RQL.get(w);if(V)return V;Y=b+"-"+Y.replace(/([A-Z])/g,"-$1").toLowerCase();RQL.set(w,Y);return Y};
FQK=function(Y){var b=_.S4(Y,"action")||_.S4(Y,"command")||_.S4(Y,"endpoint");if(!b)return null;b=_.dZt(b,"yt");_.v(Y,_.KB)&&(b+="-"+_.v(Y,_.KB).signal.toLowerCase().replace(/_/g,"-"));return b};
rAK=function(Y){try{var b=Object.keys(Y)}catch(H){return[]}for(var w=0;w<b.length;w++){var V=b[w];if(LQb.test(V)||SQq.test(V))return aRG(Y[V])}return[]};
aRG=function(Y){return Y.command?[Y.command]:Y.onExecutionAction?[Y.onExecutionAction]:Y.onResponseReceivedCommand?[Y.onResponseReceivedCommand]:Y.updateFlowCommand?[Y.updateFlowCommand]:Y.clientActions?Y.clientActions:Y.action?[Y.action]:Y.actions||Y.commands||Y.onResponseReceivedActions||Y.onResponseReceivedCommands||Y.onResponseReceivedEndpoints||[]};
WQt=function(Y,b){b=b===void 0?!1:b;var w=_.fH().resolve(_.HQ(iF));w||(w=new zQG,_.fH().addProvider({provide:iF,useValue:w}));return w&&Y&&!_.BL.isEmpty(Y)?w.getUrl(Y,b):""};
KQb=function(Y,b,w){w=w===void 0?"":w;if(b){Y.data=b;var V=WQt(b);V?(er(Y,V),tza(b)||!wa(V)?Y.rel="nofollow":Y.removeAttribute("rel"),_.v(b,_.Ah)&&_.v(b,_.Ah).target==="TARGET_NEW_WINDOW"?Y.target="_blank":w?Y.target=w:Y.removeAttribute("target")):(Y.removeAttribute("href"),Y.removeAttribute("rel"),Y.removeAttribute("target"))}};
_.jk=function(Y,b){var w=w2;if(MG())iAM(Y,function(){var f=_.BN.apply(0,arguments);r2(w,function(){b.apply(null,_.Bt(f))})});
else{var V=_.CB.getInstance(),H=L7(b);gDI(function(){H.value=b});
_.dx(function(){var f={},E=_.yu(V,(f[Y]=function(){var U=_.BN.apply(0,arguments);r2(w,function(){H.value.apply(H,_.Bt(U))})},f));
return function(){var U={};_.$P(V,(U[Y]="",U),E)}})}};
_.GM=function(Y,b){return AAG(Y,!1,b)};
_.TM=function(Y,b){return AAG(Y,!0,b)};
AAG=function(Y,b,w){return MG()?C8K(Y,b,w):yAt(Y,b,w)};
yAt=function(Y,b,w){return FP(function(){return C8K(Y,b,w)})};
C8K=function(Y,b,w){var V=w6a(function(H){V.__value&&V.__value===H||(V.__count=V.__count?V.__count+1:1);V.value=H;var f=function(){var E=ch(null);try{return w==null?void 0:w(H)}finally{ch(E)}}();
return function(){f==null||f();V.value=null}});
Y!==_.Jh&&(V.__expectedTagName=Y);V.__optional=b;V.isIdom=!MG();return V};
$Zq=function(Y){var b=w2,w=Bh;return{getFn:function(){return function(V){b.isDisposed||ON(function(){return I2(function(){return Y(V)})},w)!==!0&&V.stopPropagation()}}}};
uF=function(Y){if(typeof Y.children==="function")return Y.children(),null;Y=_.N(Y.children);for(var b=Y.next();!b.done;b=Y.next())b=b.value,b();return null};
jRg=function(Y){var b;return((b=Y.prototype)==null?void 0:b.render)===void 0};
GTG=function(Y){Y=Y.items.map(Y.children);return Y.length>0&&typeof Y[0]==="string"?Y.join(""):Y};
JAM=function(Y,b,w){w=w===void 0?!1:w;ON(function(){return TIu(Y,b,w)})};
TIu=function(Y,b,w){var V=null;vh++;w=(w===void 0?0:w)?udg:Yva;try{V=w(Y,function(){YD(b)}),Zs(!1)}catch(H){throw Zs(!0),H;
}return V===null?Y:V};
YD=function(Y){if(Y!==void 0&&Y!==null)if(Y instanceof x2)for(var b=Al;CQ()!=null&&rhq in CQ()&&b.contains(CQ());)ja();else if(Array.isArray(Y))for(b=_.N(Y),Y=b.next();!Y.done;Y=b.next())YD(Y.value);else if(Y instanceof cN||"function"==typeof _.y$&&Y instanceof _.y$||"function"==typeof _.N$&&Y instanceof _.N$)f7(Y.toString());else if(_.DZ(Y)){if(CQ()!==Y){var w,V;b=(V=(w=Bh)==null?void 0:w.name)!=null?V:"unknown";throw Error("fc`"+Y.tagName+"`"+b);}ja()}else if(bBI(Y)||Y instanceof pu||YPq(Y))for(b=
VkM(Y),b=Array.from(b.childNodes),b=_.N(b),Y=b.next();!Y.done;Y=b.next())Al.appendChild(Y.value),ja();else if(kH(Y)&&(Y=Y.toString()),w=typeof Y,w==="boolean"||w==="number"||w==="string")f7(Y);else if(typeof Y==="function"){b=Al;var H=CQ();H&&(H._isSignalTextNode||H._isSafeOrSanitizedHtmlNode)||eGI(b,H,Y);ja()}else if(Y.type===GTG)YD(Y.type(Object.assign({},Y.props,{children:Y.children[0]})));else{QW.beforeVisit(Y);if(typeof Y.type==="string"){a:{Y.__open||Rne(Y.type,Y.props.idomKey);H=Al;for(b in Y.props)if(Y.props[b]!==
b_6){var f=Y.props[b];w=b1;w.push(b);w.push(f)}b=_.fQ.attributes;b=b===void 0?bp:b;f=Al;w=iN(f);zna(f,w,b);Mkq(H,Y.props,!0);if((Y.props.skip||Y.props.skipchildren)&&Al.hasChildNodes())Tl();else{if(Y.type==="style"&&oPv(Y.children)===null){Tl();b=void 0;break a}YD(Y.children)}dze();Y.__open&&(Y.__open=!1);$zb(H,Y.props);b=H}return b}if(Y.type===_.Uz)YD(Y.children);else if(!wbG(Y)){b=Y;try{V9e(b)}catch(E){Y=E,(f=_.fQ.handleError)==null||f.call.apply(f,[_.fQ].concat(_.Bt(_.zl(Y,(H=b.type)==null?void 0:
H.TAG_NAME))))}b.__open&&(dze(),b.__open=!1)}}};
H_L=function(Y,b){var w;jRg(Y)?w=new Pf(b,Y):w=new Y(b);w.JSC$8251___type=Y;w.__updateContext={nextState:w.state,isForced:!1};return w};
V9e=function(Y){var b=Y.type,w=b.TAG_NAME;if(b===uF)Y.props.children=Y.children,b(Y.props);else{Y.children.length>0&&(Y.props.children=Y.children);var V;(V=Y.props).idomKey||(V.idomKey=b);if(w){var H=Rne(w,Y.props.idomKey);Y.__open=!0;var f=H.__instance}f||(f=H_L(b,Y.props),f.props=null,H&&(H.__instance=f,f.el=H));var E;w=((E=f.__updateContext)!=null?E:{nextState:f.state,isForced:!1}).nextState;f.__updateContext=void 0;b.getDerivedStateFromProps&&(w=b.getDerivedStateFromProps(Y.props,w));f.props=
Y.props;f.state=w;E=function(){var U=f;QW.beforeRender(U);var X=U.render(U.props);QW.afterRender(U,X);X?(U.props.idomKey&&(X.props.idomKey=U.props.idomKey),U=X):U=void 0;if(X=U)if(X.__open=Y.__open,U=YD(X),Y.__open=X.__open,!b.TAG_NAME)if(U)b.TAG_NAME=U.tagName.toLowerCase(),U.__instance=f,f.el=U;else{var I;if((I=f.hooks)==null?0:I.length){var k;(k=_.fQ.handleError)==null||k.call.apply(k,[_.fQ].concat(_.Bt(_.zl(Error("ld")))))}}f.didPatch();QW.didPatch(f)};
(w=f.functionComponent)?J6B(w,E,f.props.debugInstance):E()}};
wbG=function(Y){var b=Y.type;if(!jRg(b)||b===uF||b.componentType===nQ)return!1;Y.props.children=Y.children.length>1?Y.children:Y.children[0];var w,V=(w=Y.props.idomKey)!=null?w:Y.type,H;if(CQ()&&((H=CQ()[k2])==null?void 0:H.key)===V){var f=CQ(),E=f[k2];if(!E)throw Error("ec`"+f.tagName);var U;(U=E.updateSignalsFromIdomProps)==null||U.call(E,Y.props);g_u(E);return!0}if(fpe.has(b.name))throw U=b.name,b=(E=(f=Bh)==null?void 0:f.name)!=null?E:"unknown",Error("dc`"+U+"`"+b);RGL(Y.type,Y.props,Y.children);
Y.props.renderedFromIdom=!0;(U=J6B(Y.type,function(){return vPv(Y.type,Y.props)},Y.props.debugInstance))&&Nne(U);
return!0};
E_L=function(Y){for(var b=0;b<hq(Y).length;b++)ja()};
g_u=function(Y){var b=cjI();if(b)E_L(b);else for(var w=0;w<Y.numNodes;w++)(b=cjI())?E_L(b):ja()};
cjI=function(){var Y;return(Y=CQ()[k2])==null?void 0:Y.sourceDynamicRange};
Nne=function(Y){Y=GDK(Y);Y=Array.isArray(Y)?Y:[Y];Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())Al.insertBefore(b.value,CQ()),ja()};
URg=function(Y){var b=ZBv(),w=FP(function(){return{value:typeof Y==="function"?Y():Y}});
return[w.value,function(V){if(vf!==null){var H;(H=_.fQ.handleError)==null||H.call.apply(H,[_.fQ].concat(_.Bt(_.zl(Error("md")))))}w.value=typeof V==="function"?V(w.value):V;b.__updateContext={nextState:b.state,isForced:!0};V=_.Vz(b.effectContext);H=XP(!1);try{if(b.el){var f,E={},U=(E.props=b.props,E.type=b.JSC$8251___type,E.children=(f=b.props.children)!=null?f:[],E[cf]=!0,E);try{JAM(b.el,U,!0)}catch(k){var X,I;(I=_.fQ.handleError)==null||I.call.apply(I,[_.fQ].concat(_.Bt(_.zl(k,(X=b.JSC$8251___type)==
null?void 0:X.TAG_NAME))))}}}finally{XP(H),_.Vz(V)}}]};
wS=function(Y,b){var w=w2,V=function(H){r2(w,function(){b(H)})};
window.addEventListener(Y,V,void 0);_.R2(function(){window.removeEventListener(Y,V,void 0)})};
_.H6=function(Y,b){var w=w2;_.dx(function(){var V,H=(V=b.observer)!=null?V:_.fH().resolve(Vc);if(V=Y.value){var f=Xbu(V),E=[];b.showOption&&E.push(H.observe(V,function(){r2(w,function(){b.visibilityCallback(!0)})},b.showOption));
b.hideOption&&E.push(H.observe(V,function(){r2(w,function(){b.visibilityCallback(!1)})},b.hideOption));
b.prescanOption&&b.prescanCallback&&E.push(H.observe(V,function(){r2(w,function(){b.prescanCallback()})},b.prescanOption));
var U;f.visibilityMonitorKeys=((U=f.visibilityMonitorKeys)!=null?U:[]).concat(E)}})};
Xbu=function(Y){var b;return(b=Y.polymerController)!=null?b:Y};
_.gS=function(Y){Y.componentType=nQ};
Ip6=function(Y,b){var w=DRg;return _.m(_.Uz,null,bN(_.fQ.enableLazyTsx,function(){return _.m(mRB,{id:w,value:Y,children:b})},function(){var V=o_u(w,Y);
g2(V);V=_.Vz(V);try{return b()}finally{_.Vz(V)}}))};
mRB=function(Y){var b=Y.children;Y=o_u(Y.id,Y.value);g2(Y);Y=_.Vz(Y);try{return _.m(_.Uz,null,q$(b()))}finally{_.Vz(Y)}};
o_u=function(Y,b){return Object.assign(Object.create(k9e),{id:Y,contextValue:b})};
lpb=function(Y){var b,w=w2;_.a2(function(){var V=_.Vz(w),H=XP(!b);try{if(b)JAM(b,Y.children(),!0);else if(b=q$(Y.children()),!(b instanceof Element))throw Error("nd");}finally{XP(H),_.Vz(V)}});
return b};
_.hEG=function(Y,b){var w;b=d2(function(){var V=XP(!0);try{w=hq(Y())}finally{XP(V)}},b===void 0?!1:b);
return[w,b]};
qv6=function(Y){Y=Y.buf.charCodeAt(Y.pos++);return xRG[Y]};
fS=function(Y){var b=0,w=0;do{var V=qv6(Y);b|=(V&31)<<w;w+=5}while(V&32);return b<0?b+4294967296:b};
v_t=function(Y,b,w){sLK(Y,b);Y[b][QLe].unshift(w)};
sLK=function(Y,b){if(!Y[b]||!Y[b][QLe]){var w=Y[b],V=w?[w]:[];Y[b]=function(){for(var H=_.N(V),f=H.next();!f.done;f=H.next())f.value.apply(this,arguments)};
Y[b][QLe]=V}};
PAq=function(Y){if(!Y)return[];var b=[];Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=w.value,Array.isArray(w)?b.push.apply(b,_.Bt(PAq(w))):b.push(w);return b};
_.EZ=function(Y,b){if(Y&&Z_6.test(Y)||Y==="//")return Y;if(Bnb===void 0){Bnb=!1;try{var w=new URL("b","http://a");w.pathname="c%20d";Bnb=w.href==="http://a/c%20d"}catch(V){}}b||(b=document.baseURI||window.location.href);if(Bnb)try{return(new URL(Y,b)).href}catch(V){return Y}Nc||(Nc=document.implementation.createHTMLDocument("temp"),Nc.base=Nc.createElement("base"),Nc.head.appendChild(Nc.base),Nc.anchor=Nc.createElement("a"),Nc.body.appendChild(Nc.anchor));Nc.base.href=b;Nc.anchor.href=Y;return Nc.anchor.href||
Y};
M9K=function(Y,b){return Y.replace(n_v,function(w,V,H,f){return V+"'"+_.EZ(H.replace(/["']/g,""),b)+"'"+f})};
eEr=function(Y){return Y.substring(0,Y.lastIndexOf("/")+1)};
t9u=function(){pbq=!1;for(var Y=c6.length,b=0;b<Y;b++){var w=c6[b];if(w)try{w()}catch(V){setTimeout(function(){throw V;})}}c6.splice(0,Y);
O_B+=Y};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(Y){console.log("["+Y.is+"]: registered")};
dRv=function(Y){REe.push(Y)};
UZ=function(Y){return FBL[Y]||(FBL[Y]=Y.indexOf("-")<0?Y:Y.replace(LBL,function(b){return b[1].toUpperCase()}))};
Xy=function(Y){return FBL[Y]||(FBL[Y]=Y.replace(Svg,"-$1").toLowerCase())};
apI=function(Y,b){var w=b.parentInfo&&apI(Y,b.parentInfo);if(w)for(Y=w.firstChild,w=0;Y;Y=Y.nextSibling){if(b.parentIndex===w++)return Y}else return Y};
rjv=function(Y,b){Y=Y._methodHost||Y;return function(w){if(Y[b])Y[b](w,w.detail);else console.warn("listener method `"+b+"` not defined")}};
Dk=function(Y){return Y.indexOf(".")>=0};
mH=function(Y){var b=Y.indexOf(".");return b===-1?Y:Y.slice(0,b)};
zEK=function(Y,b){return Y.indexOf(b+".")===0};
od=function(Y,b){return b.indexOf(Y+".")===0};
Id=function(Y,b,w){return b+w.slice(Y.length)};
WBv=function(Y,b){return Y===b||zEK(Y,b)||od(Y,b)};
kD=function(Y){if(Array.isArray(Y)){for(var b=[],w=0;w<Y.length;w++)for(var V=Y[w].toString().split("."),H=0;H<V.length;H++)b.push(V[H]);return b.join(".")}return Y};
KBq=function(Y){return Array.isArray(Y)?kD(Y).split("."):Y.toString().split(".")};
lp=function(Y,b,w){b=KBq(b);for(var V=0;V<b.length;V++){if(!Y)return;Y=Y[b[V]]}w&&(w.path=b.join("."));return Y};
i_K=function(Y,b,w){var V=KBq(b),H=V[V.length-1];if(V.length>1){for(b=0;b<V.length-1;b++)if(Y=Y[V[b]],!Y)return;Y[H]=w}else Y[b]=w;return V.join(".")};
Ajq=function(Y,b,w){var V=Y[b];if(!V)V=Y[b]={};else if(!Y.hasOwnProperty(b)&&(V=Y[b]=Object.create(Y[b]),w))for(var H in V)for(Y=V[H],b=V[H]=Array(Y.length),w=0;w<Y.length;w++)b[w]=Y[w];return V};
xD=function(Y,b,w,V,H,f){if(b){var E=!1,U=hQ++,X;for(X in w){var I=H?mH(X):X;if(I=b[I])for(var k=0,l=I.length,x=void 0;k<l&&(x=I[k]);k++)x.info&&x.info.lastRun===U||H&&!CAK(X,x.trigger)||(x.info&&(x.info.lastRun=U),x.fn(Y,X,w,V,x.info,H,f),E=!0)}return E}return!1};
CAK=function(Y,b){if(b){var w=b.name;return w==Y||!(!b.structured||!zEK(w,Y))||!(!b.wildcard||!od(w,Y))}return!0};
yjv=function(Y,b,w,V,H){b=typeof H.method==="string"?Y[H.method]:H.method;w=H.property;b?b.call(Y,Y.__data[w],V[w]):H.dynamicFn||console.warn("observer method `"+H.method+"` not defined")};
$Re=function(Y,b,w,V){w={value:w,queueProperty:!0};V&&(w.path=V);(0,_.qc)(Y).dispatchEvent(new CustomEvent(b,{detail:w}))};
jLv=function(Y,b,w,V,H,f){f=(V=(f?mH(b):b)!=b?b:null)?lp(Y,V):Y.__data[b];V&&f===void 0&&(f=w[b]);$Re(Y,H.eventName,f,V)};
G9M=function(Y,b,w,V,H){w=Y.__data[b];sZ&&(w=sZ(w,H.attrName,"attribute",Y));Y._propertyToAttribute(b,H.attrName,w)};
Jjb=function(Y){var b=Y.constructor.__orderedComputedDeps;if(!b){b=new Map;for(var w=Y.__computeEffects,V=Tnr(Y),H=V.counts,f=V.ready,E=V.total;V=f.shift();)b.set(V,b.size),(V=w[V])&&V.forEach(function(U){U=U.info.methodInfo;--E;--H[U]===0&&f.push(U)});
E!==0&&console.warn("Computed graph for "+Y.localName+" incomplete; circular?");Y.constructor.__orderedComputedDeps=b}return b};
Tnr=function(Y){var b=Y.__computeInfo,w={};Y=Y.__computeEffects;var V=[],H=0,f;for(f in b){var E=b[f];H+=w[f]=E.args.filter(function(X){return!X.literal}).length+(E.dynamicFn?1:0)}for(var U in Y)b[U]||V.push(U);
return{counts:w,ready:V,total:H}};
YHr=function(Y,b,w,V,H){b=ul6(Y,b,w,V,H);if(b===Qc)return!1;H=H.methodInfo;if(Y.__dataHasAccessor&&Y.__dataHasAccessor[H])return Y._setPendingProperty(H,b,!0);Y[H]=b;return!1};
VPL=function(Y,b,w,V,H,f,E){w.bindings=w.bindings||[];V={kind:V,target:H,parts:f,literal:E,isCompound:f.length!==1};w.bindings.push(V);V.target&&V.kind!="attribute"&&V.kind!="text"&&!V.isCompound&&V.parts[0].mode==="{"&&(w=V.parts[0],f=w.negate,V.listenerEvent=w.event||Xy(H)+"-changed",V.listenerNegate=f);H=b.nodeInfoList.length;for(w=0;w<V.parts.length;w++){var U=V.parts[w];U.compoundIndex=w;f=Y;E=b;var X=V,I=U,k=H;if(!I.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(U=I.dependencies,X={index:k,binding:X,part:I,evaluator:f},I=0;I<U.length;I++)k=U[I],typeof k=="string"&&(k=bsa(k),k.wildcard=!0),f._addTemplatePropertyEffect(E,k.rootProperty,{fn:wvu,info:X,trigger:k})}};
wvu=function(Y,b,w,V,H,f,E){E=E[H.index];var U=H.binding,X=H.part;f&&X.source&&b.length>X.source.length&&U.kind=="property"&&!U.isCompound&&E.__isPropertyEffectsClient&&E.__dataHasAccessor&&E.__dataHasAccessor[U.target]?(w=w[b],b=Id(X.source,U.target,b),E._setPendingPropertyOrPath(b,w,!1,!0)&&Y._enqueueClient(E)):(b=H.evaluator._evaluateBinding(Y,X,b,w,V,f),b!==Qc&&(U.isCompound&&(w=E.__dataCompoundStorage[U.target],w[X.compoundIndex]=b,b=w.join("")),U.kind==="attribute"||U.target!=="textContent"&&
(U.target!=="value"||E.localName!=="input"&&E.localName!=="textarea")||(b=b==void 0?"":b),X=b,sZ&&(X=sZ(X,U.target,U.kind,E)),U.kind=="attribute"?Y._valueToNodeAttribute(E,X,U.target):(U=U.target,E.__isPropertyEffectsClient&&E.__dataHasAccessor&&E.__dataHasAccessor[U]?E.__readOnly&&E.__readOnly[U]||E._setPendingProperty(U,X)&&Y._enqueueClient(E):Y._setUnmanagedPropertyToNode(E,U,X))))};
Hsu=function(Y,b,w){if(w.listenerEvent){var V=w.parts[0];Y.addEventListener(w.listenerEvent,function(H){var f=w.target,E=V.source,U=V.negate,X=H.detail,I=X&&X.path;I?(E=Id(f,E,I),H=X&&X.value):H=H.currentTarget[f];b.__readOnly&&b.__readOnly[E]||!b._setPendingPropertyOrPath(E,U?!H:H,!0,!!I)||X&&X.queueProperty||b._invalidateProperties()})}};
ghg=function(Y,b,w,V,H,f){f=b.static||f&&(typeof f!=="object"||f[b.methodName]);H={methodName:b.methodName,args:b.args,methodInfo:H,dynamicFn:f};for(var E=0,U=void 0;E<b.args.length&&(U=b.args[E]);E++)U.literal||Y._addPropertyEffect(U.rootProperty,w,{fn:V,info:H,trigger:U});f&&Y._addPropertyEffect(b.methodName,w,{fn:V,info:H});return H};
ul6=function(Y,b,w,V,H){V=Y._methodHost||Y;var f=V[H.methodName];if(f)return Y=Y._marshalArgs(H.args,b,w),Y===Qc?Qc:f.apply(V,Y);H.dynamicFn||console.warn("method `"+H.methodName+"` not defined")};
fEG=function(Y){for(var b="",w=0;w<Y.length;w++)b+=Y[w].literal||"";return b};
cdI=function(Y){if(Y=Y.match(/([^\s]+?)\(([\s\S]*)\)/)){var b={methodName:Y[1],static:!0,args:NKI};return Y[2].trim()?Ehq(Y[2].replace(/\\,/g,"&comma;").split(","),b):b}return null};
Ehq=function(Y,b){b.args=Y.map(function(w){w=bsa(w);w.literal||(b.static=!1);return w},this);
return b};
bsa=function(Y){Y=Y.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var b={name:Y,value:"",literal:!1},w=Y[0];w==="-"&&(w=Y[1]);w>="0"&&w<="9"&&(w="#");switch(w){case "'":case '"':b.value=Y.slice(1,-1);b.literal=!0;break;case "#":b.value=Number(Y),b.literal=!0}b.literal||(b.rootProperty=mH(Y),b.structured=Dk(Y),b.structured&&(b.wildcard=Y.slice(-2)==".*",b.wildcard&&(b.name=Y.slice(0,-2))));return b};
Uor=function(Y,b,w){Y=lp(Y,w);Y===void 0&&(Y=b[w]);return Y};
Xvq=function(Y,b,w,V){V={indexSplices:V};v6&&!Y._overrideLegacyUndefined&&(b.splices=V);Y.notifyPath(w+".splices",V);Y.notifyPath(w+".length",b.length);v6&&!Y._overrideLegacyUndefined&&(V.indexSplices=[])};
P6=function(Y,b,w,V,H,f){Xvq(Y,b,w,[{index:V,addedCount:H,removed:f,object:b,type:"splice"}])};
Dob=function(Y){Y=M9K((Y.body?Y.body:Y).textContent,Y.baseURI);var b=document.createElement("style");b.textContent=Y;return b};
ohK=function(Y){Y=Y.trim().split(/\s+/);for(var b=[],w=0;w<Y.length;w++)b.push.apply(b,_.Bt(mo6(Y[w])));return b};
mo6=function(Y){var b=Zk.import(Y);if(!b)return console.warn("Could not find style data in module named",Y),[];if(b._styles===void 0){Y=[];Y.push.apply(Y,_.Bt(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b)));var w=b.querySelector("template");w&&Y.push.apply(Y,_.Bt(IEq(w,b.assetpath)));b._styles=Y}return b._styles};
IEq=function(Y,b){if(!Y._styles){for(var w=[],V=Y.content.querySelectorAll("style"),H=0;H<V.length;H++){var f=V[H],E=f.getAttribute("include");E&&w.push.apply(w,_.Bt(ohK(E).filter(function(U,X,I){return I.indexOf(U)===X})));
b&&(f.textContent=M9K(f.textContent,b));w.push(f)}Y._styles=w}return Y._styles};
kIa=function(Y){return(Y=Zk.import(Y))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(Y){var b=[];Y=Y.querySelectorAll("link[rel=import][type~=css]");for(var w=0;w<Y.length;w++){var V=Y[w];if(V.import){var H=V.import;if((V=V.hasAttribute("shady-unscoped"))&&!H._unscopedStyle){var f=Dob(H);f.setAttribute("shady-unscoped","");H._unscopedStyle=f}else H._style||(H._style=Dob(H));b.push(V?H._unscopedStyle:H._style)}}return b};
hoK=function(Y){Y=Y.trim().split(/\s+/);for(var b="",w=0;w<Y.length;w++)b+=lEK(Y[w]);return b};
lEK=function(Y){var b=Zk.import(Y);if(b&&b._cssText===void 0){var w=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b),V=b.querySelector("template");V&&(w+=xoG(V,b.assetpath));b._cssText=w||null}b||console.warn("Could not find style data in module named",Y);return b&&b._cssText||""};
xoG=function(Y,b){var w="";Y=IEq(Y,b);for(b=0;b<Y.length;b++){var V=Y[b];V.parentNode&&V.parentNode.removeChild(V);w+=V.textContent}return w};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(Y){var b="";Y=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y);for(var w=0;w<Y.length;w++)b+=Y[w].textContent;return b};
B6=function(Y,b){return{index:Y,removed:[],addedCount:b}};
s1B=function(Y,b,w,V){var H=0,f=0,E=0,U=0,X=Math.min(b-H,V-f);if(H==0&&f==0)a:{for(E=0;E<X;E++)if(Y[E]!==w[E])break a;E=X}if(b==Y.length&&V==w.length){U=Y.length;for(var I=w.length,k=0;k<X-E&&qHt(Y[--U],w[--I]);)k++;U=k}H+=E;f+=E;b-=U;V-=U;if(b-H==0&&V-f==0)return[];if(H==b){for(b=B6(H,0);f<V;)b.removed.push(w[f++]);return[b]}if(f==V)return[B6(H,b-H)];X=H;E=f;V=V-E+1;U=b-X+1;b=Array(V);for(I=0;I<V;I++)b[I]=Array(U),b[I][0]=I;for(I=0;I<U;I++)b[0][I]=I;for(I=1;I<V;I++)for(k=1;k<U;k++)if(Y[X+k-1]===
w[E+I-1])b[I][k]=b[I-1][k-1];else{var l=b[I-1][k]+1,x=b[I][k-1]+1;b[I][k]=l<x?l:x}X=b.length-1;E=b[0].length-1;V=b[X][E];for(Y=[];X>0||E>0;)X==0?(Y.push(2),E--):E==0?(Y.push(3),X--):(U=b[X-1][E-1],I=b[X-1][E],k=b[X][E-1],l=I<k?I<U?I:U:k<U?k:U,l==U?(U==V?Y.push(0):(Y.push(1),V=U),X--,E--):l==I?(Y.push(3),X--,V=I):(Y.push(2),E--,V=k));Y.reverse();b=void 0;X=[];for(E=0;E<Y.length;E++)switch(Y[E]){case 0:b&&(X.push(b),b=void 0);H++;f++;break;case 1:b||(b=B6(H,0));b.addedCount++;H++;b.removed.push(w[f]);
f++;break;case 2:b||(b=B6(H,0));b.addedCount++;H++;break;case 3:b||(b=B6(H,0)),b.removed.push(w[f]),f++}b&&X.push(b);return X};
Q1M=function(Y,b){return s1B(Y,Y.length,b,b.length)};
qHt=function(Y,b){return Y===b};
PXM=function(Y){if(Y instanceof vhK)return Y.value;throw Error("Ed`"+Y);};
BK6=function(Y,b){for(var w in b)w===null?Y.style.removeProperty(w):Y.style.setProperty(w,b[w])};
nhL=function(Y,b){return(Y=window.getComputedStyle(Y).getPropertyValue(b))?Y.trim():""};
Ose=function(Y){requestAnimationFrame(function(){MPM?MPM(Y):(eot||(eot=new Promise(function(b){pvr=b}),document.readyState==="complete"?pvr():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&pvr()})),eot.then(function(){Y&&Y()}))})};
doK=function(Y){tPL=Y&&Y.shimcssproperties?!1:RoG||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
rdB=function(Y){if(!(FZt.indexOf(Y)>-1)&&Y!=="touchend"&&LZK&&SHr&&aEM)return{passive:!0}};
isg=function(Y){for(var b=zoL?["click"]:FZt,w=0,V;w<b.length;w++)V=b[w],Y?(WZq.length=0,document.addEventListener(V,KZM,!0)):document.removeEventListener(V,KZM,!0)};
nS=function(Y){var b=Y.type;return FZt.indexOf(b)>-1?b==="mousemove"?(b=Y.buttons===void 0?1:Y.buttons,Y instanceof window.MouseEvent&&!AdL&&(b=CXu[Y.which]||0),!!(b&1)):(Y.button===void 0?0:Y.button)===0:!1};
ydK=function(Y){if(Y.type==="click"){if(Y.detail===0)return!0;var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);if(!b.nodeType||b.nodeType!==Node.ELEMENT_NODE)return!0;b=b.getBoundingClientRect();var w=Y.pageX;Y=Y.pageY;return!(w>=b.left&&w<=b.right&&Y>=b.top&&Y<=b.bottom)}return!1};
$oa=function(Y,b,w){Y.movefn=b;Y.upfn=w;document.addEventListener("mousemove",b);document.addEventListener("mouseup",w)};
Mc=function(Y){document.removeEventListener("mousemove",Y.movefn);document.removeEventListener("mouseup",Y.upfn);Y.movefn=null;Y.upfn=null};
j1e=function(Y,b){for(var w=document.elementFromPoint(Y,b),V=w;V&&V.shadowRoot&&!window.ShadyDOM;){var H=V;V=V.shadowRoot.elementFromPoint(Y,b);if(H===V)break;V&&(w=V)}return w};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var b=GI6(Y);return b.length>0?b[0]:Y.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var b=Y.type,w=Y.currentTarget.__polymerGestures;if(w&&(w=w[b])){if(!Y.__polymerGesturesHandled&&(Y.__polymerGesturesHandled={},b.slice(0,5)==="touch")){var V=Y.changedTouches[0];b==="touchstart"&&Y.touches.length===1&&(TKM=V.identifier);if(TKM!==V.identifier)return;LZK||(b==="touchstart"||b==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)}V=
Y.__polymerGesturesHandled;if(!V.skip){for(var H=0,f;H<eM.length;H++)f=eM[H],w[f.name]&&!V[f.name]&&f.flow&&f.flow.start.indexOf(Y.type)>-1&&f.reset&&f.reset();for(H=0;H<eM.length;H++)f=eM[H],w[f.name]&&!V[f.name]&&(V[f.name]=!0,f[b](Y))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){var b=Y.changedTouches[0],w=Y.type;if(w==="touchstart")JdK=b.clientX,uzI=b.clientY,Y1L=!1;else if(w==="touchmove"&&!Y1L){Y1L=!0;w="auto";for(var V=GI6(Y),H=0,f;H<V.length;H++)if(f=V[H],f.__polymerGesturesTouchAction){w=f.__polymerGesturesTouchAction;break}V=!1;H=Math.abs(JdK-b.clientX);b=Math.abs(uzI-b.clientY);Y.cancelable&&(w==="none"?V=!0:w==="pan-x"?V=b>H:w==="pan-y"&&(V=H>b));V?Y.preventDefault():
pS("track")}};
tQ=function(Y,b,w){return OZ[b]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,b,w),!0):!1};
Rd=function(Y,b,w){return OZ[b]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y,b,w),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,b,w){var V=OZ[b],H=V.deps,f=V.name,E=Y.__polymerGestures;E||(Y.__polymerGestures=E={});for(var U=0,X,I;U<H.length;U++)X=H[U],zoL&&FZt.indexOf(X)>-1&&X!=="click"||((I=E[X])||(E[X]=I={_count:0}),I._count===0&&Y.addEventListener(X,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,rdB(X)),I[f]=(I[f]||0)+1,I._count=(I._count||0)+1);Y.addEventListener(b,w);V.touchAction&&_.dS(Y,V.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,b,w){var V=OZ[b],H=V.deps;V=V.name;var f=Y.__polymerGestures;if(f)for(var E=0,U,X;E<H.length;E++)U=H[E],(X=f[U])&&X[V]&&(X[V]=(X[V]||1)-1,X._count=(X._count||1)-1,X._count===0&&Y.removeEventListener(U,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,rdB(U)));Y.removeEventListener(b,w)};
bxG=function(Y){eM.push(Y);for(var b=0;b<Y.emits.length;b++)OZ[Y.emits[b]]=Y};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y){for(var b=0,w;b<eM.length;b++){w=eM[b];for(var V=0,H;V<w.emits.length;V++)if(H=w.emits[V],H===Y)return w}return null};
_.dS=function(Y,b){LZK&&Y instanceof HTMLElement&&Fy.run(function(){Y.style.touchAction=b});
Y.__polymerGesturesTouchAction=b};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(Y,b,w){b=new Event(b,{bubbles:!0,cancelable:!0,composed:!0});b.detail=w;(0,_.qc)(Y).dispatchEvent(b);b.defaultPrevented&&(Y=w.preventer||w.sourceEvent)&&Y.preventDefault&&Y.preventDefault()};
pS=function(Y){Y=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y.info&&(Y.info.prevent=!0)};
LS=function(Y,b,w,V){b&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,Y,{x:w.clientX,y:w.clientY,sourceEvent:w,preventer:V,prevent:function(H){return pS(H)}})};
wTI=function(Y,b,w){if(Y.prevent)return!1;if(Y.started)return!0;w=Math.abs(Y.y-w);return Math.abs(Y.x-b)>=5||w>=5};
VVu=function(Y,b,w){if(b){var V=Y.moves[Y.moves.length-2],H=Y.moves[Y.moves.length-1],f=H.x-Y.x,E=H.y-Y.y,U=0;if(V){var X=H.x-V.x;U=H.y-V.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"track",{state:Y.state,x:w.clientX,y:w.clientY,dx:f,dy:E,ddx:X,ddy:U,sourceEvent:w,hover:function(){return j1e(w.clientX,w.clientY)}})}};
gEM=function(Y,b,w){var V=Math.abs(b.clientX-Y.x),H=Math.abs(b.clientY-Y.y),f=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(w||b);!f||HxB[f.localName]&&f.hasAttribute("disabled")||!(isNaN(V)||isNaN(H)||V<=25&&H<=25||ydK(b))||Y.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(f,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:w})};
fHK=function(Y,b,w,V,H){var f;H&&(f=typeof w==="object"&&w!==null)&&(V=Y.__dataTemp[b]);V=V!==w&&(V===V||w===w);f&&V&&(Y.__dataTemp[b]=w);return V};
EEg=function(){if(SM&&!ad){if(!Nvt){Nvt=!0;var Y=document.createElement("style");Y.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(Y)}return!0}return!1};
UyK=function(){return c9q};
XTb=function(Y,b){c9q=Y;Object.setPrototypeOf(Y,b.prototype);new b;c9q=null};
Dye=function(Y,b){for(var w=0;w<b.length;w++){var V=b[w];if(!!Y!=!!V.__hideTemplateChildren__)if(V.nodeType===Node.TEXT_NODE)Y?(V.__polymerTextContent__=V.textContent,V.textContent=""):V.textContent=V.__polymerTextContent__;else if(V.localName==="slot")if(Y)V.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.qc)((0,_.qc)(V).parentNode).replaceChild(V.__polymerReplaced__,V);else{var H=V.__polymerReplaced__;H&&(0,_.qc)((0,_.qc)(H).parentNode).replaceChild(V,H)}else V.style&&(Y?(V.__polymerDisplay__=
V.style.display,V.style.display="none"):V.style.display=V.__polymerDisplay__);V.__hideTemplateChildren__=Y;V._showHideChildren&&V._showHideChildren(Y)}};
myq=function(Y){return(Y=Y.__dataHost)&&Y._methodHost||Y};
kL6=function(Y,b,w){var V=w.mutableData?oEe:rS;zC.mixin&&(V=zC.mixin(V));var H=function(){return V.apply(this,arguments)||this};
_.P(H,V);H.prototype.__templatizeOptions=w;H.prototype._bindTemplate(Y);IHe(H,Y,b,w);return H};
sn6=function(Y,b,w,V){var H=w.forwardHostProp;if(H&&b.hasHostProps){var f=Y.localName=="template",E=b.templatizeTemplateClass;if(!E){if(f){var U=w.mutableData?lHu:hXM;E=function(){return U.apply(this,arguments)||this};
_.P(E,U);E=b.templatizeTemplateClass=E}else{var X=Y.constructor;E=function(){return X.apply(this,arguments)||this};
_.P(E,X);E=b.templatizeTemplateClass=E}var I=b.hostProps,k;for(k in I)E.prototype._addPropertyEffect("_host_"+k,E.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:xy6(H)}),E.prototype._createNotifyingProperty("_host_"+k);W6&&V&&q1L(b,w,V)}Y.__dataProto&&Object.assign(Y.__data,Y.__dataProto);if(f)XTb(Y,E),Y.__dataTemp={},Y.__dataPending=null,Y.__dataOld=null,Y._enableProperties();else{Object.setPrototypeOf(Y,E.prototype);b=b.hostProps;for(var l in b)l="_host_"+l,l in Y&&(b=Y[l],delete Y[l],Y.__data[l]=
b)}}};
xy6=function(Y){return function(b,w,V){Y.call(b.__templatizeOwner,w.substring(6),V[w])}};
IHe=function(Y,b,w,V){var H=w.hostProps||{},f;for(f in V.instanceProps){delete H[f];var E=V.notifyInstanceProp;E&&Y.prototype._addPropertyEffect(f,Y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Qnu(E)})}if(V.forwardHostProp&&b.__dataHost)for(var U in H)w.hasHostProps||(w.hasHostProps=!0),Y.prototype._addPropertyEffect(U,Y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:vEu()})};
Qnu=function(Y){return function(b,w,V){Y.call(b.__templatizeOwner,b,w,V[w])}};
vEu=function(){return function(Y,b,w){Y.__dataHost._setPendingPropertyOrPath("_host_"+b,w[b],!0,!0)}};
zC=function(Y,b,w){if(KS&&!myq(Y))throw Error("Kd");w=w||{};if(Y.__templatizeOwner)throw Error("Ld");Y.__templatizeOwner=b;var V=(b?b.constructor:rS)._parseTemplate(Y),H=V.templatizeInstanceClass;H||(H=kL6(Y,V,w),V.templatizeInstanceClass=H);var f=myq(Y);sn6(Y,V,w,f);w=function(){return H.apply(this,arguments)||this};
_.P(w,H);w.prototype._methodHost=f;w.prototype.__dataHost=Y;w.prototype.__templatizeOwner=b;w.prototype.__hostProps=V.hostProps;return w};
q1L=function(Y,b,w){w=w.constructor._properties;Y=Y.propertyEffects;b=b.instanceProps;for(var V in Y)if(!(w[V]||b&&b[V]))for(var H=Y[V],f=0;f<H.length;f++){var E=H[f].info.part;if(!E.signature||!E.signature.static){console.warn("Property '"+V+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
PJq=function(Y,b){for(var w;b;)if(w=b.__dataHost?b:b.__templatizeInstance)if(w.__dataHost!=Y)b=w.__dataHost;else return w;else b=(0,_.qc)(b).parentNode;return null};
ip=function(Y){return Y.localName==="slot"};
Zxv=function(){for(var Y=AQ.prototype,b="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),w={},V=0;V<b.length;w={method$jscomp$30:void 0},V++)w.method$jscomp$30=b[V],Y[w.method$jscomp$30]=function(H){return function(){return this.node[H.method$jscomp$30].apply(this.node,arguments)}}(w)};
Bva=function(Y,b){for(var w={},V=0;V<b.length;w={name$jscomp$380:void 0},V++)w.name$jscomp$380=b[V],Object.defineProperty(Y,w.name$jscomp$380,{get:function(H){return function(){return this.node[H.name$jscomp$380]}}(w),
configurable:!0})};
nEM=function(){for(var Y=AQ.prototype,b=["textContent","innerHTML","className"],w={},V=0;V<b.length;w={name$jscomp$381:void 0},V++)w.name$jscomp$381=b[V],Object.defineProperty(Y,w.name$jscomp$381,{get:function(H){return function(){return this.node[H.name$jscomp$381]}}(w),
set:function(H){return function(f){this.node[H.name$jscomp$381]=f}}(w),
configurable:!0})};
MVu=function(){yc=document.documentElement.getAttribute("dir");yc=document.documentElement.getAttribute("dir");for(var Y=0;Y<$D.length;Y++){var b=$D[Y];b.__autoDirOptOut||b.setAttribute("dir",yc)}};
tVq=function(){jM=!0;requestAnimationFrame(function(){jM=!1;eXg(pTu);setTimeout(function(){for(var Y=0,b=GC.length;Y<b;Y++)OxK(GC.shift())})})};
eXg=function(Y){for(;Y.length;)OxK(Y.shift())};
OxK=function(Y){var b=Y[0],w=Y[1];Y=Y[2];try{w.apply(b,Y)}catch(V){setTimeout(function(){throw V;})}};
_.RXB=function(Y,b,w){jM||tVq();pTu.push([Y,b,w])};
_.TC=function(Y,b,w){jM||tVq();GC.push([Y,b,w])};
L2q=function(Y,b){b=b===void 0?!1:b;if(!dyr||!F2g||!dyr.handlesDynamicScoping)return null;var w=F2g.ScopingShim;if(!w)return null;var V=w.scopeForNode(Y),H=(0,_.qc)(Y).getRootNode(),f=function(E){if((0,_.qc)(E).getRootNode()===H){var U=Array.from(dyr.nativeMethods.querySelectorAll.call(E,"*"));U.push(E);for(E=0;E<U.length;E++){var X=U[E];if((0,_.qc)(X).getRootNode()===H){var I=w.currentScopeForNode(X);I!==V&&(I!==""&&w.unscopeNode(X,I),w.scopeNode(X,V))}}}};
f(Y);return b?(b=new MutationObserver(function(E){for(var U=0;U<E.length;U++)for(var X=E[U],I=0;I<X.addedNodes.length;I++){var k=X.addedNodes[I];k.nodeType===Node.ELEMENT_NODE&&f(k)}}),b.observe(Y,{childList:!0,
subtree:!0}),b):null};
S1q=function(){document.body.removeAttribute("unresolved")};
K2L=function(Y){var b=Y=Y.replace(aHL,"").replace(r9G,""),w=new zXu;w.start=0;w.end=b.length;for(var V=w,H=0,f=b.length;H<f;H++)if(b[H]==="{"){V.rules||(V.rules=[]);var E=V,U=E.rules[E.rules.length-1]||null;V=new zXu;V.start=H+1;V.parent=E;V.previous=U;E.rules.push(V)}else b[H]==="}"&&(V.end=H+1,V=V.parent||w);return W2M(w,Y)};
W2M=function(Y,b){var w=b.substring(Y.start,Y.end-1);Y.parsedCssText=Y.cssText=w.trim();Y.parent&&(w=b.substring(Y.previous?Y.previous.end:Y.parent.start,Y.start-1),w=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(w),w=w.replace(ixB," "),w=w.substring(w.lastIndexOf(";")+1),w=Y.parsedSelector=Y.selector=w.trim(),Y.atRule=w.indexOf("@")===0,Y.atRule?w.indexOf("@media")===0?Y.type=4:w.match(A9G)&&(Y.type=7,Y.keyframesName=Y.selector.split(ixB).pop()):w.indexOf("--")===
0?Y.type=1E3:Y.type=1);if(w=Y.rules)for(var V=0,H=w.length,f=void 0;V<H&&(f=w[V]);V++)W2M(f,b);return Y};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(Y){return Y.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var b=arguments[1],w=6-b.length;w--;)b="0"+b;return"\\"+b})};
CJe=function(Y,b,w){w=w===void 0?"":w;var V="";if(Y.cssText||Y.rules){var H=Y.rules;if(H&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(H))for(var f=0,E=H.length,U=void 0;f<E&&(U=H[f]);f++)V=CJe(U,b,V);else b?b=Y.cssText:(b=Y.cssText,b=b.replace(y9a,"").replace($yG,""),b=b.replace(jnB,"").replace(GLa,"")),(V=b.trim())&&(V="  "+V+"\n")}V&&(Y.selector&&(w+=Y.selector+" {\n"),w+=V,Y.selector&&(w+="}\n\n"));return w};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(Y){Y=Y[0];return!!Y&&!!Y.selector&&Y.selector.indexOf("--")===0};
J9K=function(Y){if(Y=TvI[Y])Y._applyShimCurrentVersion=Y._applyShimCurrentVersion||0,Y._applyShimValidatingVersion=Y._applyShimValidatingVersion||0,Y._applyShimNextVersion=(Y._applyShimNextVersion||0)+1};
uBe=function(Y){return Y._applyShimCurrentVersion===Y._applyShimNextVersion};
bke=function(Y){Y._applyShimValidatingVersion=Y._applyShimNextVersion;Y._validating||(Y._validating=!0,YdM.then(function(){Y._applyShimCurrentVersion=Y._applyShimNextVersion;Y._validating=!1}))};
VZe=function(Y){if(!Y)return"";typeof Y==="string"&&(Y=K2L(Y));return CJe(Y,wKv)};
Hk6=function(Y){!Y.__cssRules&&Y.textContent&&(Y.__cssRules=K2L(Y.textContent));return Y.__cssRules||null};
fz6=function(Y,b,w,V){if(Y){var H=!1,f=Y.type;if(V&&f===4){var E=Y.selector.match(gia);E&&(window.matchMedia(E[1]).matches||(H=!0))}f===1?b(Y):w&&f===7?w(Y):f===1E3&&(H=!0);if((Y=Y.rules)&&!H)for(H=0,f=Y.length,E=void 0;H<f&&(E=Y[H]);H++)fz6(E,b,w,V)}};
Npv=function(Y,b){var w=Y.indexOf("var(");if(w===-1)return b(Y,"","","");a:{var V=0;var H=w+3;for(var f=Y.length;H<f;H++)if(Y[H]==="(")V++;else if(Y[H]===")"&&--V===0)break a;H=-1}V=Y.substring(w+4,H);w=Y.substring(0,w);Y=Npv(Y.substring(H+1),b);f=V.indexOf(",");if(f===-1)return b(w,V.trim(),"",Y);H=V.substring(0,f).trim();V=V.substring(f+1).trim();return b(w,H,V,Y)};
Eig=function(Y){if(JQ!==void 0)return JQ;if(Y.__cssBuild===void 0){var b=Y.getAttribute("css-build");if(b)Y.__cssBuild=b;else{a:{b=Y.localName==="template"?Y.content.firstChild:Y.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),b[0]==="css-build")){b=b[1];break a}b=""}if(b!==""){var w=Y.localName==="template"?Y.content.firstChild:Y.firstChild;w.parentNode.removeChild(w)}Y.__cssBuild=b}}return Y.__cssBuild||""};
Uqe=function(Y,b,w,V){for(var H=b._noAccessors,f=Object.getOwnPropertyNames(b),E=0;E<f.length;E++){var U=f[E];if(!(U in V))if(H)Y[U]=b[U];else{var X=Object.getOwnPropertyDescriptor(b,U);X&&(X.configurable=!0,Object.defineProperty(Y,U,X))}}for(var I in cJg)b[I]&&(w[I]=w[I]||[],w[I].push(b[I]))};
XKb=function(Y,b,w){b=b||[];for(var V=Y.length-1;V>=0;V--){var H=Y[V];H?Array.isArray(H)?XKb(H,b):b.indexOf(H)<0&&(!w||w.indexOf(H)<0)&&b.unshift(H):console.warn("behavior is null, check for missing or 404 import")}return b};
Dq6=function(Y,b){for(var w in b){var V=Y[w],H=b[w];Y[w]=!("value"in H)&&V&&"value"in V?Object.assign({value:V.value},H):H}};
IzK=function(Y,b,w){var V={},H=function(){return b.apply(this,arguments)||this};
_.P(H,b);H._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(E)for(var X=0,I;X<E.length;X++)I=E[X],I.properties&&this.createProperties(I.properties),I.observers&&this.createObservers(I.observers,I.properties);Y.properties&&this.createProperties(Y.properties);Y.observers&&this.createObservers(Y.observers,Y.properties);this._prepareTemplate()}else b._finalizeClass.call(this)};
H.prototype.created=function(){b.prototype.created.call(this);var X=V.created;if(X)for(var I=0;I<X.length;I++)X[I].call(this)};
H.prototype._registered=function(){var X=H.prototype;if(!X.hasOwnProperty("__hasRegisterFinished")){X.__hasRegisterFinished=!0;b.prototype._registered.call(this);SM&&U(X);X=Object.getPrototypeOf(this);var I=V.beforeRegister;if(I)for(var k=0;k<I.length;k++)I[k].call(X);if(I=V.registered)for(k=0;k<I.length;k++)I[k].call(X)}};
H.prototype._applyListeners=function(){b.prototype._applyListeners.call(this);var X=V.listeners;if(X)for(var I=0;I<X.length;I++){var k=X[I];if(k)for(var l in k)this._addMethodEventListenerToNode(this,l,k[l])}};
H.prototype._ensureAttributes=function(){var X=V.hostAttributes;if(X)for(var I=X.length-1;I>=0;I--){var k=X[I],l;for(l in k)this._ensureAttribute(l,k[l])}b.prototype._ensureAttributes.call(this)};
H.prototype.ready=function(){b.prototype.ready.call(this);var X=V.ready;if(X)for(var I=0;I<X.length;I++)X[I].call(this)};
H.prototype.attached=function(){b.prototype.attached.call(this);var X=V.attached;if(X)for(var I=0;I<X.length;I++)X[I].call(this)};
H.prototype.detached=function(){b.prototype.detached.call(this);var X=V.detached;if(X)for(var I=0;I<X.length;I++)X[I].call(this)};
H.prototype.attributeChanged=function(X,I,k){b.prototype.attributeChanged.call(this);var l=V.attributeChanged;if(l)for(var x=0;x<l.length;x++)l[x].call(this,X,I,k)};
_.up.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){var X={};if(E)for(var I=0;I<E.length;I++)Dq6(X,E[I].properties);Dq6(X,Y.properties);return X}},
observers:{configurable:!0,enumerable:!0,get:function(){var X=[];if(E)for(var I=0,k;I<E.length;I++)k=E[I],k.observers&&(X=X.concat(k.observers));Y.observers&&(X=X.concat(Y.observers));return X}}});
if(w){Array.isArray(w)||(w=[w]);var f=b.prototype.behaviors;var E=XKb(w,null,f);H.prototype.behaviors=f?f.concat(w):E}var U=function(X){if(E)for(var I=E,k=0;k<I.length;k++)Uqe(X,I[k],V,mqb);Uqe(X,Y,V,oiI)};
SM||U(H.prototype);H.generatedFrom=Y;return H};
xqe=function(Y){var b=typeof Y!=="string"?Y:{is:Y,notifyObserversOnUndefined:!0};b.fastInit===void 0&&(b.fastInit=!0);return function(w){if(!b.disableInheritanceCheck&&Object.getPrototypeOf(w.prototype).constructor!==_.YL)throw Error("Pd");var V=w.prototype;V.is=b.is;v_t(V,"created",function(){this.hostElement=this;this.polymerController=this});
kiM(V,w,b.fastInit);b.notifyObserversOnUndefined&&(V._overrideLegacyUndefined=!0);if(lzK)for(var H=_.N(Object.getOwnPropertyNames(V)),f=H.next();!f.done;f=H.next()){f=f.value;var E=Object.getOwnPropertyDescriptor(V,f);E.enumerable===!1&&(E.enumerable=!0,Object.defineProperty(V,f,E))}if("template"in w)var U=function(){return w.template};
else b.template!==void 0&&(U=b.template);if(U!==void 0){var X;Object.defineProperty(V,"_template",{get:function(){X===void 0&&(X=U());return X},
set:function(I){X=I},
configurable:!0,enumerable:!0})}Polymer(V);w[hsM]=V}};
qd6=function(Y){Y=Y===void 0?{}:Y;Y.fastInit===void 0&&(Y.fastInit=!0);return function(b){if(!Y.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==bo)throw Error("Qd");kiM(b.prototype,b,Y.fastInit)}};
kiM=function(Y,b,w){w=w===void 0?!1:w;sMb(b);w?v_t(Y,"created",function(){this.disableEnforceFastDefaultValuesCheck||QML(b,this)}):v_t(Y,"ready",function(){for(var V={},H=_.N(PAq(this.behaviors)),f=H.next();!f.done;f=H.next())f=f.value,f.properties&&Object.assign(V,viB(this,f.properties));
Object.assign(V,viB(this,this.properties));QML(b,this);H=_.N(Object.keys(V));for(f=H.next();!f.done;f=H.next())f=f.value,this[f]=V[f]})};
QML=function(Y,b){if(lzK){Y=new Y;for(var w=_.N(Object.getOwnPropertyNames(Y)),V=w.next();!V.done;V=w.next())V=V.value,b[V]=Y[V];for(w=b;w&&w!==Object.prototype;w=Object.getPrototypeOf(w)){V=_.N(Object.getOwnPropertyNames(w));for(var H=V.next();!H.done;H=V.next())H=H.value,Y.hasOwnProperty(H)||Object.defineProperty(Y,H,Pfb(b,H))}}else Y.apply(b)};
Pfb=function(Y,b){return{get:function(){var w=Y[b];return w instanceof Function?w.bind(Y):w},
set:function(w){Y[b]=w}}};
viB=function(Y,b){if(!b)return{};for(var w={},V=_.N(Object.keys(b)),H=V.next();!H.done;H=V.next())if(H=H.value,!b[H].readOnly){var f=Y[H];f!==void 0&&(w[H]=f)}return w};
sMb=function(Y){var b=new Y;Y=Y.prototype.properties||{};for(var w=_.N(Object.keys(Y)),V=w.next();!V.done;V=w.next())if(V=V.value,b.hasOwnProperty(V)){var H=Y[V];typeof H==="function"&&(Y[V]=H={type:H});b[V]!=null&&H.type===Object&&(H.type=ZkK(b[V].constructor))}};
ZkK=function(Y){for(var b=_.N(Bpa),w=b.next();!w.done;w=b.next())if(w=w.value,Y===w)return w;return Object};
nia=function(Y){return function(b,w){b.behaviors=b.behaviors||[];b.behaviors.push(Y||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",b,w).prototype:void 0));Object.defineProperty(b,w,{get:function(){return this},
enumerable:!0,configurable:!0})}};
MZt=function(Y){Y=Y===void 0?{}:Y;return function(b,w){b.properties=b.properties||{};Y.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Y.type=ZkK(Reflect.getMetadata("design:type",b,w)):Y.type=String);var V=Y,H=b.properties[w];b.properties[w]=H?Object.assign({},H,V):V}};
esv=function(Y){return function(b,w){b.listeners=b.listeners||{};b.listeners[Y]=w}};
pKB=function(){var Y=_.BN.apply(0,arguments);if(Y.length===0)throw Error("Rd");return function(b,w){b.observers=b.observers||[];b.observers.push(w+"("+Y.join(",")+")")}};
OkL=function(){var Y=_.BN.apply(0,arguments);return function(b,w,V){var H=Object.getOwnPropertyDescriptor(b,w).get,f="__compute__"+w;Object.defineProperty(b,f,{value:H,enumerable:!0});b.properties=b.properties||{};H=b.properties[w];H||(H={},b.properties[w]=H);H.computed=f+"("+Y.join(",")+")";V.get=void 0}};
_.wO=function(Y,b,w){_.BE.call(this);this.JSC$9260_id_=null;this.usingListeners_=!1;this.JSC$9260_listener_=Y;this.handler_=w;this.JSC$9260_win_=b||window;this.callback_=(0,_.nC)(this.JSC$9262_doAction_,this)};
VG=function(Y){this.range_=Y};
H1=function(Y){this.range_=Y};
N4=function(Y,b,w){_.BE.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=Y;this.scrollTimer_=new _.gO(50);this.JSC$9339_eventHandler_=new _.fM(this);this.scrollDelta_=new _.eq;this.containerIsActuallyContent_=Y.tagName==="BODY"||Y.tagName==="HTML";this.containerBounds_=tZq(Y);this.containerIsActuallyContent_&&(Y=_.Iz(),this.containerBounds_.height=Y.height,this.containerBounds_.width=Y.width);this.margin_=b||0;if(b){if(b=this.containerBounds_.clone(),Y=this.margin_){var V=
Math.min(Y,b.height*.25);b.top+=V;b.height-=2*V;Y=Math.min(Y,b.width*.25);b.left+=Y;b.width-=2*Y}}else b=this.containerBounds_;this.scrollBounds_=b;w||this.JSC$9339_eventHandler_.listen(_.Oy(this.containerNode_),"mousemove",this.JSC$9341_onMouseMove);this.JSC$9339_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9341_onTick_)};
_.ED=function(Y){this.mechanism=Y};
c1=function(Y,b){this.JSC$9437_key_=Y;this.JSC$9437_value_=b};
dqa=function(Y){if(Y>=55296&&Y<=57343||Y>1114111)return"\ufffd";Y in RsI&&(Y=RsI[Y]);var b="";Y>65535&&(Y-=65536,b+=String.fromCharCode(Y>>>10&1023|55296),Y=56320|Y&1023);return b+=String.fromCharCode(Y)};
FwL=function(Y,b){return Y<b?1:-1};
SdB=function(){return function(Y){return Y.charAt(1)==="#"?Y.charAt(2)==="X"||Y.charAt(2)==="x"?dqa(parseInt(Y.substr(3),16)):dqa(parseInt(Y.substr(2),10)):Lwg[Y.slice(1,-1)]}};
zst=function(Y){return Y.slice(1,Y.length-1).trim().replace(az6,function(b){return rJK[b]||" "})};
UD=function(Y){return Y===32||Y===9};
XA=function(Y,b){return b<Y.length?Y.charCodeAt(b):-1};
Wwt=function(Y){for(;Y;){if(Y._lastLineBlank)return!0;var b=Y.type;if(b==="list"||b==="item")Y=Y._lastChild;else break}return!1};
Dm=function(Y){if(KwM.test(Y)){var b=1,w=0,V=0;for(Y[w]=="|"&&w++;w<Y.length;){switch(Y[w]){case "|":V=1;break;case " ":break;case "\t":break;default:V&&(V=0,b++)}w++}return ikg.test(Y)?-b:b}return 0};
AJe=function(Y){return Y=="table"||Y=="row"||Y=="cell"};
Cft=function(){return new mK("document",[[1,1],[0,0]])};
yJG=function(){};
o3=function(){var Y={safe:!1};Y=Y||{};Y.softbreak=Y.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=Y};
JJt=function(Y,b){var w="";if(Y)if(Y=Y.toLowerCase(),Y===" "||$qL.test(Y))w="space";else if(jMu.test(Y))w="esc";else if(Y.length==1){if(!b||Giq.test(Y))w=Y}else w=TpK.test(Y)?Y.replace("arrow",""):Y=="multiply"?"*":Y;return w};
wZ6=function(Y,b){var w=Y.hasModifiers;if(b.key)w=JJt(b.key,w);else if(b.detail&&b.detail.key)w=JJt(b.detail.key,w);else{w=b.keyIdentifier;var V="";w&&(w in u5a?V=u5a[w]:Y0L.test(w)?(w=parseInt(w.replace("U+","0x"),16),V=String.fromCharCode(w).toLowerCase()):V=w.toLowerCase());(w=V)||(w=b.keyCode,V="",Number(w)&&(w>=65&&w<=90?V=String.fromCharCode(32+w):w>=112&&w<=123?V="f"+(w-112+1):w>=48&&w<=57?V=String(w-48):w>=96&&w<=105?V=String(w-96):V=bEt[w]),w=V);w=w||""}return w===Y.key&&(!Y.hasModifiers||
!!b.shiftKey===!!Y.shiftKey&&!!b.ctrlKey===!!Y.ctrlKey&&!!b.altKey===!!Y.altKey&&!!b.metaKey===!!Y.metaKey)};
HEv=function(Y){return Y.length===1?{combo:Y,key:Y,event:"keydown"}:Y.split("+").reduce(function(b,w){var V=w.split(":");w=V[0];V=V[1];w in VuK?(b[VuK[w]]=!0,b.hasModifiers=!0):(b.key=w,b.event=V||"keydown");return b},{combo:Y.split(":").shift()})};
gvM=function(Y){return Y.trim().split(" ").map(function(b){return HEv(b)})};
fXb=function(Y,b){if(Y&&Y.fn){var w=Y.fn;Y.fn=function(){try{w.apply(this,arguments)}catch(V){if(V instanceof I3)console.warn("Argument '"+V.arg+"'"+(b?" for method '"+b+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw V;}}}return Y};
NML=function(){var Y=_.BN.apply(0,arguments);return Y.length===0?function(b){return b}:Y.length===1?Y[0]:Y.reduce(function(b,w){return function(){return b(w.apply(null,_.Bt(_.BN.apply(0,arguments))))}})};
Ev6=function(){var Y=_.BN.apply(0,arguments);return function(b){return function(w,V){w=b(w,V);var H=function(){throw Error("Be");},f={getState:w.getState,
dispatch:function(E){return H.apply(null,[E].concat(_.Bt(_.BN.apply(1,arguments))))}};
V=Y.map(function(E){return E(f)});
H=NML.apply(null,_.Bt(V))(w.dispatch);return Object.assign({},w,{dispatch:H})}}};
XZI=function(Y){Object.keys(Y).forEach(function(b){var w=Y[b];if(typeof w(void 0,{type:cZG})==="undefined")throw Error("Ce`"+b);if(typeof w(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+UXg()})==="undefined")throw Error("De`"+b+"`"+cZG);})};
kL=function(Y){for(var b=Object.keys(Y),w={},V=0;V<b.length;V++){var H=b[V];typeof Y[H]==="function"&&(w[H]=Y[H])}var f=Object.keys(w);try{XZI(w)}catch(U){var E=U}return function(U,X){U=U===void 0?{}:U;if(E)throw E;for(var I=!1,k={},l=0;l<f.length;l++){var x=f[l],Q=U[x],Z=(0,w[x])(Q,X);if(typeof Z==="undefined")throw U=X&&X.type,Error("Ee`"+(U?'"'+String(U)+'"':"(unknown type)")+"`"+x);k[x]=Z;I=I||Z!==Q}return(I=I||f.length!==Object.keys(U).length)?k:U}};
DXb=function(Y,b,w){function V(){if(k)throw Error("Fe");return U}
function H(Q){if(typeof Q!=="function")throw Error("Ge`"+typeof Q);if(k)throw Error("He");var Z=!0;I===X&&(I=X.slice());I.push(Q);return function(){if(Z){if(k)throw Error("Ie");Z=!1;I===X&&(I=X.slice());var e=I.indexOf(Q);I.splice(e,1);X=null}}}
function f(Q){if(typeof Q!=="object"||Q===null)var Z=!1;else{for(Z=Q;Object.getPrototypeOf(Z)!==null;)Z=Object.getPrototypeOf(Z);Z=Object.getPrototypeOf(Q)===Z}if(!Z)throw Error("Je`"+typeof Q);if(typeof Q.type==="undefined")throw Error("Ke");if(k)throw Error("Le");try{k=!0,U=E(U,Q)}finally{k=!1}Z=X=I;for(var e=0;e<Z.length;e++)(0,Z[e])();return Q}
if(typeof b==="function"&&typeof w==="function"||typeof w==="function"&&typeof arguments[3]==="function")throw Error("Me");typeof b==="function"&&typeof w==="undefined"&&(w=b,b=void 0);if(typeof w!=="undefined"){if(typeof w!=="function")throw Error("Ne`"+typeof w);return w(DXb)(Y,b)}if(typeof Y!=="function")throw Error("Oe`"+typeof Y);var E=Y,U=b,X=[],I=X,k=!1;f({type:cZG});var l={},x=(l.dispatch=f,l.subscribe=H,l.getState=V,l.replaceReducer=function(Q){if(typeof Q!=="function")throw Error("Pe`"+
typeof Q);E=Q;f({type:mXK});return x},l[ova]=function(){var Q={};
return Q.subscribe=function(Z){function e(){Z.next&&Z.next(V())}
if(typeof Z!=="object"||Z===null)throw new TypeError("Qe`"+typeof Z);e();return{unsubscribe:H(e)}},Q[ova]=function(){return this},Q},l);
return x};
IXt=function(Y){function b(){H&&(H=!1,Y());f&&V()}
function w(){requestAnimationFrame(b)}
function V(){var U=Date.now();if(H){if(U-E<2)return;f=!0}else H=!0,f=!1,setTimeout(w,20);E=U}
var H=!1,f=!1,E=0;return V};
lo=function(Y){return typeof Y==="number"?Y:parseFloat(Y)||0};
kZv=function(Y){return _.BN.apply(1,arguments).reduce(function(b,w){return b+lo(Y["border-"+w+"-width"])},0)};
_.B=function(Y,b){b=tz(Ou(b));Y.innerHTML=b};
xX6=function(Y){var b=lXB;b||(b=h0g(),b=lXB=_.BL.transpose(b));b=b[Y];return typeof b==="string"?b:_.hw(Y)};
q0K=function(Y){Y=String(Y).toLowerCase();var b=h0g()[Y];return typeof b==="string"?b:_.xL(Y)};
syB=function(Y){Y=Y.toLowerCase();Y=h0g()[Y];return typeof Y==="string"?Y:null};
h0g=function(){if(!QyL){for(var Y=Object.assign({},vve),b=_.N(PLB),w=b.next();!w.done;w=b.next())w=w.value,Y[w.toLowerCase()]=w;QyL=Y}return QyL};
nvb=function(Y,b){var w=window.customElements;return w&&w.get(Y)||ZEt[Y]===!0?2:b.name==="HTMLUnknownElement"?1:b.name==="HTMLElement"&&BMg.test(Y)?3:0};
pZM=function(Y,b){switch(b){case "innerHTML":return Mu6(Y)===1?2:null;case "textContent":return Y=Mu6(Y),Y===1||Y===6?1:null;default:var w,V;return(V=(w=e06[Y.localName])==null?void 0:w[b])!=null?V:null}};
Mu6=function(Y){var b=Y.localName,w=nvb(b,Y.constructor);switch(w){case 0:case 1:return OEB(b,Y);case 3:case 2:return 1;default:_.cI(w,"got an unknown element classification")}};
OEB=function(Y,b){var w=Object.hasOwnProperty.call(tut,Y)?tut[Y]:null;return w!==null?w:Object.hasOwnProperty.call(R0r,Y)&&b instanceof SVGElement?R0r[Y]:null};
dXq=function(Y,b){return b};
L3I=function(Y){return(Y=Y.split(F3K,2))?{url:Y[0],metadata:Y[1]}:null};
aX6=function(Y){var b=String(Y.url).replace(S0M,encodeURIComponent);if(Y=Y.metadata){S0M.lastIndex=0;if(S0M.test(Y))return null;b+=" "+Y}return b};
K3L=function(Y){function b(I){var k=I.localName;if(!I.getAttribute("is")&&nvb(k,I.constructor)===2){var l;return(l=X)!=null?l:X=document.createElement("polyresinuncustomized")}(I=U[k])||(I=U[k]=document.createElement(k));return I}
var w=Y.reportHandler||void 0,V=Y.safeTypesBridge||rZu,H=/^$/;if(Y=Y.allowedIdentifierPrefixes){Y=_.N(Y);for(var f=Y.next();!f.done;f=Y.next())H=new RegExp(H.source+"|^"+_.z0r(f.value))}w&&w(!1,"initResin",null);var E=W3g(H,V,w),U={},X=null;return function(I,k,l){var x=I.nodeType;if(x!==Node.ELEMENT_NODE){if(x===Node.TEXT_NODE){k=I.parentElement;l=!k;if(k&&k.nodeType===Node.ELEMENT_NODE){x=k.localName;var Q=nvb(x,k.constructor);switch(Q){case 0:case 1:k=OEB(x,k);l=k===1||k===6;break;case 3:case 2:l=
!0;break;default:_.cI(Q,"got an unknown element classification")}}if(l)return function(L){return""+V(L,"STRING",L)}}return function(L){if(!L&&L!==document.all)return L;
w&&w(!0,"Failed to sanitize "+(I.parentElement&&I.parentElement.nodeName)+" #text node to value "+L,I.parentElement);return q4}}var Z=I.localName;
x=b(I);var e=null;switch(l){case "attribute":if(q0K(k)in x)break;return function(L){return L};
case "property":if(k in x){e=pZM(x,k);break}if((Q=syB(k))&&Q in x)break;return function(L){return L};
default:_.cI(l,"got an unknown resin type, expected either 'property' or 'attribute'")}var O=l==="attribute"?k.toLowerCase():xX6(k);e||(e=UzI(Z,O,function(L){var r=I.getAttribute(L);return!r||/[\[\{]/.test(L)?null:r}));
return function(L){var r=sD,C=null;if(!L&&L!==document.all)return L;if(e!=null){var W=E[e],y=W.safeType;C=W.safeReplacement;y&&(r=V(L,y,sD));r===sD&&(W.filterString?(r=String(V(L,"STRING",L)),r=W.filterString(Z,O,r)):W.filterRaw&&(r=W.filterRaw(Z,O,L,I)),r===C&&(r=sD))}r===sD&&(r=C||q4,w&&w(!0,"Failed to sanitize attribute of <"+Z+">: <"+Z+" "+O+'="'+L+'">',I));return r}}};
W3g=function(Y,b,w){return[,{filterRaw:function(V,H,f){return f},
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:iE6,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:iE6,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:q4,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:AZg,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(V,H,f){f=
String(f).toLowerCase();return mzK(V,H,f)?f:q4},
safeReplacement:q4,safeType:void 0},,{filterRaw:void 0,filterString:function(V,H,f){return Y.test(f)?f:q4},
safeReplacement:q4,safeType:"CONSTANT"},{filterRaw:function(V,H,f,E){if(typeof f==="string")var U=(U=f.match(CLr))?U.map(L3I).filter(Boolean):[];else if(Array.isArray(f))U=f;else return iE6;var X=U;U=[];var I=[],k={};if(Array.isArray(X))for(var l=0,x=X.length;l<x;++l){var Q=X[l],Z=Q&&Q.url;if(Z){var e=b(Z,"URL",k);if(e){var O=e!==k;(O?U:I).push({url:O?e:Z,metadata:Q.metadata})}}}else I.push(X);X=I.length?JSON.stringify(I):null;I=sD;if(U.length){if(!Array.isArray(U))throw Error();I=U.map(aX6).filter(Boolean).join(" , ")||
sD}X&&w&&w(!0,"Failed to sanitize attribute value of <"+V+">: <"+V+" "+H+'="'+f+'">: '+X,E);return I===sD?iE6:I},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
yZu=function(Y){var b=K3L(Y);return function(w,V,H,f){return f||f===document.all?b(w,V,H)(f):f}};
QG=function(Y,b){function w(){function H(U,X,I){for(X=Reflect.getMetadata("parameters",U)||[];X.length<=I;)X.push(null);X[I]=X[I]||[];X[I].push(E);Reflect.defineMetadata(X,U);return U}
var f=_.BN.apply(0,arguments);if(this instanceof w)return V.apply(this,f),this;var E=new (Function.prototype.bind.apply(w,[null].concat(_.Bt(f))));H.annotation=E;return H}
var V=$Xt(b);w.prototype.toString=function(){return"@"+Y};
return w.annotationCls=w};
$Xt=function(Y){return function(){var b=_.BN.apply(0,arguments),w=this;Y.forEach(function(V,H){H=b[H];if(Array.isArray(V))w[V[0]]=H&&H!==void 0?H:V[1];else for(var f in V)w[f]=H&&H[f]!==void 0?H[f]:V[f]})}};
jyK=function(Y){return Y!==void 0&&Y!==null};
v1=function(Y){if(typeof Y==="string")return Y;if(Y===void 0||Y===null)return""+Y;if(Y.overriddenName)return Y.overriddenName;if(Y.name)return Y.name;Y=Y.toString();var b=Y.indexOf("\n");return b===-1?Y:Y.substring(0,b)};
GZI=function(Y){Y.__forward_ref__=GZI;Y.toString=function(){return v1(this())};
return Y};
P1=function(Y){return typeof Y==="function"&&Y.hasOwnProperty("__forward_ref__")&&Y.__forward_ref__===GZI?Y():Y};
TM6=function(Y){return Y?Y.map(function(b){return new (Function.prototype.bind.apply(b.type.annotationCls,[null].concat(_.Bt(b.args?b.args:[]))))}):[]};
JZB=function(Y){for(var b=[],w=0;w<Y.length;++w){if(b.indexOf(Y[w])>-1){b.push(Y[w]);break}b.push(Y[w])}return b};
uTe=function(Y){return Y.length>1?" ("+JZB(Y.slice().reverse()).map(function(b){return v1(b.token)}).join(" -> ")+")":""};
bjB=function(Y,b,w,V){if(V){var H=Error("Xe``"+(V instanceof Error?V.message:V));H.ngOriginalError=V}else H=Error();H.addKey=YIt;H.keys=[b];H.injectors=[Y];H.constructResolvingMessage=w;H.message=H.constructResolvingMessage();H.ngOriginalError=V;return H};
YIt=function(Y,b){this.injectors.push(Y);this.keys.push(b);this.message=this.constructResolvingMessage()};
wYg=function(Y,b){return bjB(Y,b,function(){return"No provider for "+v1(this.keys[0].token)+"!"+uTe(this.keys)})};
VxK=function(Y,b){return bjB(Y,b,function(){return"Cannot instantiate cyclic dependency!"+uTe(this.keys)})};
Hje=function(Y,b,w){return bjB(Y,w,function(){var V=v1(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+V+"!"+uTe(this.keys)+"."},b)};
gSM=function(Y,b){for(var w=[],V=0,H=b.length;V<H;V++){var f=b[V];f&&f.length!=0?w.push(f.map(v1).join(" ")):w.push("?")}return Error("af`"+v1(Y)+"`"+w.join(", ")+"`"+v1(Y))};
DhI=function(Y){var b=void 0,w=void 0;if(Y&&Y.useClass!==void 0){b=Y.useClass;var V=P1(Y.useClass);var H=ffL.factory(V);V=Nma(V)}else Y&&Y.useExisting!==void 0?(H=function(f){return f},V=[ESv(Zm.get(P1(Y.useExisting)))]):Y&&Y.useFactory!==void 0?(H=Y.useFactory,V=cnb(Y.useFactory,Y.deps)):(w=Y.useValue,H=function(){return Y.useValue},V=Uhv);
return new XYu(H,V,b,w)};
oSu=function(Y){return new mhM(Zm.get(P1(Y.provide)),[DhI(Y)],Y.multi)};
keI=function(Y){Y=IfL(Y,[]).map(oSu);for(var b=new Map,w=0;w<Y.length;w++){var V=Y[w],H=b.get(V.key.id);if(H){if(V.multiProvider!==H.multiProvider)throw Error("cf`"+H+"`"+V);if(V.multiProvider)for(var f=0;f<V.resolvedFactories.length;f++)H.resolvedFactories.push(V.resolvedFactories[f]);else b.set(V.key.id,V)}else H=void 0,V.multiProvider?H=new mhM(V.key,V.resolvedFactories.slice(),V.multiProvider):H=V,b.set(V.key.id,H)}return Array.from(b.values())};
IfL=function(Y,b){Y.forEach(function(w){if(w instanceof lfb)b.push({provide:w,useClass:w});else if(w&&typeof w=="object"&&w.provide!==void 0)b.push(w);else if(w instanceof Array)IfL(w,b);else throw Error("$e`"+w);});
return b};
cnb=function(Y,b){if(b){var w=b.map(function(V){return[V]});
return b.map(function(V){return hPv(Y,V,w)})}return Nma(Y)};
Nma=function(Y){var b=ffL.parameters(Y);if(!b)return[];if(b.some(function(w){return w==null}))throw gSM(Y,b);
return b.map(function(w){return hPv(Y,w,b)})};
hPv=function(Y,b,w){var V=null,H=!1;if(!Array.isArray(b))return b instanceof xhK?qIM(b.token,H,null):qIM(b,H,null);for(var f=null,E=0;E<b.length;++E){var U=b[E];if(U instanceof lfb)V=U;else if(U instanceof xhK)V=U.token;else if(U instanceof svb)H=!0;else if(U instanceof Qve||U instanceof vSa)f=U}V=P1(V);if(V!=null)return qIM(V,H,f);throw gSM(Y,w);};
qIM=function(Y,b,w){return new PVM(Zm.get(P1(Y)),b,w)};
Zju=function(Y,b){for(var w=Array(Y.providers.length),V=0;V<Y.providers.length;++V){var H=V;if(V<0||V>=Y.providers.length)throw Error("bf`"+V);w[H]=b(Y.providers[V])}return w};
Bmv=function(Y){return typeof Y==="function"&&ffL.parameters(Y).every(function(b){return!!b})};
ePr=function(Y){var b=nSB;MxG.get(Y)||MxG.set(Y,new b);return MxG.get(Y)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(Y)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(Y)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y,b){var w,V;if(Y.contains(b))return!0;Y=_.B1(Y).querySelectorAll("content,slot");for(w=0;w<Y.length;++w){var H=_.B1(Y[w]).getDistributedNodes();for(V=0;V<H.length;++V)if(H[V].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(H[V],b))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){Y.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y)&&Y.preventDefault();Y.targetTouches&&(Y=Y.targetTouches[0],pYg=Y.pageX,Oje=Y.pageY)};
_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager||_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.bind(void 0);
for(var Y=0,b=nM.length;Y<b;Y++)document.addEventListener(nM[Y],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._unlockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(){for(var Y=0,b=nM.length;Y<b;Y++)document.removeEventListener(nM[Y],_._boundScrollHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager,{capture:!0,passive:!1})};
_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){var b=_.B1(Y).rootTarget;Y.type!=="touchmove"&&txv!==b&&(txv=b,RPe=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.B1(Y).path));if(!RPe.length)return!0;if(Y.type==="touchstart")return!1;Y=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(Y);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(RPe,Y.deltaX,Y.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){for(var b=[],w=Y.indexOf(dhg),V=0;V<=w;V++)if(Y[V].nodeType===Node.ELEMENT_NODE){var H=Y[V],f=H.style;f.overflow!=="scroll"&&f.overflow!=="auto"&&(f=window.getComputedStyle(H));f.overflow!=="scroll"&&f.overflow!=="auto"||b.push(H)}return b};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y,b,w){if(b||w)for(var V=Math.abs(w)>=Math.abs(b),H=0;H<Y.length;H++){var f=Y[H];if(V?w<0?f.scrollTop>0:f.scrollTop<f.scrollHeight-f.clientHeight:b<0?f.scrollLeft>0:f.scrollLeft<f.scrollWidth-f.clientWidth)return f}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(Y){var b={deltaX:Y.deltaX,deltaY:Y.deltaY};"deltaX"in Y||("wheelDeltaX"in Y&&"wheelDeltaY"in Y?(b.deltaX=-Y.wheelDeltaX,b.deltaY=-Y.wheelDeltaY):"wheelDelta"in Y?(b.deltaX=0,b.deltaY=-Y.wheelDelta):"axis"in Y?(b.deltaX=Y.axis===1?Y.detail:0,b.deltaY=Y.axis===2?Y.detail:0):Y.targetTouches&&(Y=Y.targetTouches[0],b.deltaX=pYg-Y.pageX,b.deltaY=Oje-Y.pageY));return b};
FUv=function(Y){this.element=Y;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
SIg=function(Y){this.element=Y;this.color=window.getComputedStyle(Y).color;this.wave=document.createElement("div");this.waveContainer=document.createElement("div");this.wave.style.backgroundColor=this.color;this.wave.classList.add("wave");this.waveContainer.classList.add("wave-container");_.B1(this.waveContainer).appendChild(this.wave);LUB(this)};
M4=function(Y,b){for(var w in Y)if(w.toLowerCase()===b.toLowerCase())return Y[w]};
afa=function(Y,b){for(var w in Y)if(w.toLowerCase()===b.toLowerCase()){delete Y[w];break}};
zPL=function(Y){Y=_.BL.clone(Y);for(var b=0;b<rnM.length;++b){var w=rnM[b],V=M4(Y,w);V&&(Y["X-Goog-Upload-Header-"+w]=V,afa(Y,w))}return Y};
WUg=function(Y){Y=_.BL.clone(Y);afa(Y,"X-Goog-Upload-Status")};
ij6=function(Y){return KU6.some(function(b){return b.test(Y)})};
$hu=function(Y,b){var w;var V=(w=Y.formContent)==null?void 0:w.locale;w=V==null?void 0:V.split("-")[0];V=V&&Anv.includes(V)?V:w&&Anv.includes(w)?w:void 0;V=(V!=null?V:"en").replaceAll("-","_").toLowerCase();var H;Y=((H=Y.initializationData)==null?0:H.useNightlyRelease)?"nightly":"live";var f;return(b==null?0:(f=b.getEnableAlohaBinarySplit)==null?0:f.call(b))?_.HL(CVg,Y):_.HL(ynB,Y,V)};
TmB=function(Y,b,w,V){if(jvq&&Geb===b)return jvq;Geb=b;var H=$hu(Y,V);return jvq=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,E){var U=_.xG("SCRIPT");_.Ku(U,H);U.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):E(Error("ff"))};
U.onerror=function(){E(Error("gf`"+H.toString()))};
w.body.appendChild(U)})};
YVG=function(Y,b,w,V){if(JnG&&u1B===b)return JnG;u1B=b;var H=$hu(Y,V);return JnG=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,E){var U=_.xG("SCRIPT");_.Ku(U,H);U.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):E(Error("ff"))};
U.onerror=function(){E(Error("gf`"+H.toString()))};
w.body.appendChild(U)})};
b1K=function(Y,b,w,V,H){H=H===void 0?!0:H;var f,E,U,X,I;return _.c(function(k){switch(k.nextAddress){case 1:return f=Date.now(),_.D(k,TmB(Y,w,V,b),2);case 2:E=k.yieldResult;if(!(H||((X=Y.initializationData)==null?0:X.useNightlyRelease)||((I=Y.initializationData)==null?0:I.isLocalServer))){U=E.initializeFeedbackClient(Y,f,b);k.jumpTo(3);break}return _.D(k,E.initializeFeedbackClientAsync(Y,f,b),4);case 4:U=k.yieldResult;case 3:return U.initiateAloha(),k.return(U)}})};
wVg=function(Y,b,w,V){var H,f,E;return _.c(function(U){if(U.nextAddress==1)return H=Date.now(),_.D(U,YVG(Y,w,V.document,b),2);if(U.nextAddress!=3)return f=U.yieldResult,_.D(U,f.initializeFeedbackClientAsync(Y,H,b,V),3);E=U.yieldResult;E.initiateAloha();return U.return(E)})};
VOB=function(Y,b,w){var V=!0;V=V===void 0?!0:V;var H,f,E,U,X,I,k,l,x,Q;return _.c(function(Z){H=w||_.wB;if((f=b)==null?0:(U=(E=f).getEnableAlohaBinarySplit)==null?0:U.call(E)){X=H;if(X.isFormOpened)throw I=Error("hf"),I.name="DuplicateFormError",I;X.isFormOpened=!0;Y.callbacks=Y.callbacks||{};k=Y.callbacks.onClose||function(){};
Y.callbacks.onClose=function(e){X.isFormOpened=!1;k(e)};
try{return Z.return(wVg(Y,b,X,H))}catch(e){throw X.isFormOpened=!1,e;}}else{l=H;if(l.isFormOpened)throw x=Error("hf"),x.name="DuplicateFormError",x;l.isFormOpened=!0;Y.callbacks=Y.callbacks||{};Q=Y.callbacks.onClose||function(){};
Y.callbacks.onClose=function(e){l.isFormOpened=!1;Q(e)};
try{return Z.return(b1K(Y,b,l,H.document,V))}catch(e){throw l.isFormOpened=!1,e;}}_.om(Z)})};
E5L=function(Y,b){return _.c(function(w){return w.return(new Promise(function(V){var H=H16(b!=null?b:"")+"/aloha_form_properties?productId="+Y;g5u(H,function(f){f=f.target;var E=null;try{var U=JSON,X=U.stringify;if(f.JSC$7833_xhr_){var I=f.JSC$7833_xhr_.responseText;I.indexOf(")]}'\n")==0&&(I=I.substring(5));var k=(0,_.eS)(I)}else k=void 0;E=wDr(fqM,X.call(U,k))}catch(l){X=new fqM,k=NPb(),k=_.pM(k,13,!1),k=_.pM(k,14,!0),k=_.pM(k,15,!0),k=_.pM(k,20,!1),E=_.HN(X,1,k)}V(E)},"GET","",{},2E3,!0)}))})};
H16=function(Y){return ij6(Y)?Y:"https://www.google.com/tools/feedback"};
Dkg=function(Y){Y=Y.match(new RegExp(cSb,"gi"))||[];Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;a:{var w=_.N(UkB);for(var V=w.next();!V.done;V=w.next())if(V.value.test(b)){w=!1;break a}w=!0}if(!w)a:{w=_.N(XVt);for(V=w.next();!V.done;V=w.next())if(V.value.test(b)){w=!0;break a}w=!1}if(w)return!0}return!1};
mku=function(Y){switch(Y){case "canary":return"CLIENT_CANARY_STATE_CANARY";case "control":return"CLIENT_CANARY_STATE_CONTROL";case "none":return"CLIENT_CANARY_STATE_NONE";default:return"CLIENT_CANARY_STATE_UNKNOWN"}};
Iqv=function(Y){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(Y),w=new Uint8Array(Y);window.crypto.getRandomValues(w);for(var V=0;V<b.length;V++)b[V]=w[V];return b}catch(f){}b=Array(Y);for(w=0;w<Y;w++){V=Date.now();for(var H=0;H<V%23;H++)b[w]=Math.random();b[w]=Math.floor(Math.random()*256)}if(o5M)for(w=1,V=0;V<o5M.length;V++)b[w%Y]^=b[(w-1)%Y]/4^o5M.charCodeAt(V),w++;return b};
OD=function(Y){Y=Iqv(Y);for(var b=[],w=0;w<Y.length;w++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Y[w]&63));return b.join("")};
lqa=function(Y){Y&&_.RY("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:khG,clientScreenNonce:Y})};
hLg=function(Y){return _.zO("client-screen-nonce-store",{})[Y===void 0?0:Y]};
xka=function(Y,b){b=b===void 0?0:b;var w=_.zO("client-screen-nonce-store");w||(w={},_.rx("client-screen-nonce-store",w));w[b]=Y};
qVg=function(Y){Y=Y===void 0?0:Y;return Y===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+Y};
s_b=function(Y){return _.zO(qVg(Y===void 0?0:Y))};
_.R3=function(Y){return(Y=s_b(Y===void 0?0:Y))?new _.tw({veType:Y,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Q_t=function(){var Y=_.zO("csn-to-ctt-auth-info");Y||(Y={},_.rx("csn-to-ctt-auth-info",Y));return Y};
v5r=function(){return Object.values(_.zO("client-screen-nonce-store",{})).filter(function(Y){return Y!==void 0})};
_.dO=function(Y){Y=hLg(Y===void 0?0:Y);if(!Y&&!_.Wf("USE_CSN_FALLBACK",!0))return null;Y||(Y="UNDEFINED_CSN");return Y?Y:null};
Z1v=function(Y){for(var b=_.N(Object.values(PzG)),w=b.next();!w.done;w=b.next())if(_.dO(w.value)===Y)return!0;return!1};
BPG=function(Y,b,w){var V=Q_t();(w=_.dO(w))&&delete V[w];b&&(V[Y]=b)};
FA=function(Y){return Q_t()[Y]};
_.LM=function(Y,b,w,V){w=w===void 0?0:w;if(Y!==hLg(w)||b!==_.zO(qVg(w)))if(BPG(Y,V,w),xka(Y,w),_.rx(qVg(w),b),b=function(){setTimeout(function(){lqa(Y)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(H){b()}else b()};
n5v=function(Y,b){b=b===void 0?"":b;var w=[],V;for(V in Y)if(Y.hasOwnProperty(V)){var H=b!==""?b+"."+V:V;typeof Y[V]==="object"?w.push.apply(w,_.Bt(n5v(Y[V],H))):w.push([H,Y[V]])}w.sort();return w};
_.a3=function(Y){var b=_.BN.apply(1,arguments);if(!SS(Y)||b.some(function(V){return!SS(V)}))throw Error("jf");
b=_.N(b);for(var w=b.next();!w.done;w=b.next())MOr(Y,w.value)};
MOr=function(Y,b){for(var w in b)if(SS(b[w])){if(w in Y&&!SS(Y[w]))throw Error("kf");w in Y||(Y[w]={});MOr(Y[w],b[w])}else if(eLu(b[w])){if(w in Y&&!eLu(Y[w]))throw Error("lf");w in Y||(Y[w]=[]);pVq(Y[w],b[w])}else Y[w]=b[w];return Y};
pVq=function(Y,b){b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,SS(w)?Y.push(MOr({},w)):eLu(w)?Y.push(pVq([],w)):Y.push(w);return Y};
SS=function(Y){return typeof Y==="object"&&!Array.isArray(Y)};
eLu=function(Y){return typeof Y==="object"&&Array.isArray(Y)};
tOg=function(Y){for(var b=_.N(Object.entries(O1e)),w=b.next();!w.done;w=b.next())if(w=_.N(w.value),w.next(),w=w.next().value,w==="SLI_STATUS_"+Y)return w;return"SLI_STATUS_UNKNOWN"};
_.rO=function(Y,b,w,V){return RLa(Y,b,function(){return new _.dka(Y,b,w,V)})};
_.FVL=function(){return _.rO("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
LVu=function(){return _.rO("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
zG=function(){return _.rO("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
SVt=function(){return _.rO("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
aqb=function(){return _.rO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
rSu=function(){return _.rO("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
KVv=function(Y){Y&&(Y.dataset?Y.dataset[zLg()]="true":_.Az([_.wF(WVB)],Y,"data-loaded","true".toString()))};
i1e=function(Y){return Y?Y.dataset?Y.dataset[zLg()]:Y.getAttribute("data-loaded"):null};
zLg=function(){return ASI.loaded||(ASI.loaded="loaded".replace(/\-([a-z])/g,function(Y,b){return b.toUpperCase()}))};
_.io=function(Y,b,w){Czg(Y,b,w===void 0?null:w)};
_.$kK=function(Y,b){Y&&b&&(Y=""+_.wU(b),(Y=ySu[Y])&&_.Ggq(Y))};
Czg=function(Y,b,w){w=w===void 0?null:w;var V=_.j_L(Y),H=document.getElementById(V),f=H&&i1e(H),E=H&&!f;f?b&&b():(b&&(f=_.UP(V,b),b=""+_.wU(b),ySu[b]=f),E||(H=Ghr(Y,V,function(){i1e(H)||(KVv(H),_.TrM(V),_.m$(function(){_.u2g(V)},0))},w)))};
Ghr=function(Y,b,w,V){V=V===void 0?null:V;var H=_.xG("SCRIPT");H.id=b;H.onload=function(){w&&setTimeout(w,0)};
H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}};
V&&H.setAttribute("nonce",V);_.Ku(H,_.eh(Y));Y=document.getElementsByTagName("head")[0]||document.body;Y.insertBefore(H,Y.firstChild);return H};
_.j_L=function(Y){var b=document.createElement("a");er(b,Y);return"js-"+Aw(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
TPL=function(Y){var b=_.zO("INNERTUBE_HOST_OVERRIDE");b&&(Y=String(b)+String(_.CM(Y)));return Y};
JSB=function(Y){var b={};_.q("json_condensed_response")&&(b.prettyPrint="false");return Y=qZa(Y,b)};
_.yG=function(Y){return wa(Y)?"same-origin":"include"};
_.$L=function(Y){return wa(Y)?"same-origin":"cors"};
jS=function(Y,b,w){w=w===void 0?{}:w;Y={method:b===void 0?"POST":b,mode:_.$L(Y),credentials:_.yG(Y)};b={};for(var V=_.N(Object.keys(w)),H=V.next();!H.done;H=V.next())H=H.value,w[H]&&(b[H]=w[H]);Object.keys(b).length>0&&(Y.headers=b);return Y};
_.GG=function(Y,b){b=b===void 0?{}:b;return"service:"+Y+"/"+Object.keys(b).sort().map(function(w){return w+":"+b[w]}).join("/")};
u6G=function(Y){var b,w,V,H;Y=(b=_.v(Y,_.TG))==null?void 0:(w=b.watchEndpointSupportedOnesieConfig)==null?void 0:(V=w.html5PlaybackOnesieConfig)==null?void 0:(H=V.commonConfig)==null?void 0:H.url;if(!Y)return[];b=new _.Jw(Y);return b.JSC$8068_domain_?["https://"+b.JSC$8068_domain_+"/generate_204"]:[]};
_.w2b=function(){return YTL()||Pou()||bPG&&S3("version/")?!0:_.zO("EOM_VISITOR_DATA")?!1:!0};
VBv=function(Y){var b=Y.docid||Y.video_id||Y.videoId||Y.id;if(b)return b;b=Y.raw_player_response;b||(Y=Y.player_response)&&(b=JSON.parse(Y));return b&&b.videoDetails&&b.videoDetails.videoId||null};
HPK=function(Y){return Y.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
uo=function(Y){return!isNaN(Number(Y))&&!_.EM(Y)};
_.VX=function(Y,b,w,V){V=V===void 0?!0:V;var H=_.zO("VALID_SESSION_TEMPDATA_DOMAINS",[]),f=_.Yu(window.location.href);f&&H.push(f);f=_.Yu(Y);if(_.Ka(H,f)||!f&&_.Hg(Y,"/"))if(H=document.createElement("a"),er(H,Y),Y=H.href)if(Y=_.CM(Y),Y=_.w5(Y))V&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:_.dO()},b)),w?(w=parseInt(w,10),isFinite(w)&&w>0&&gpM(Y,b,w)):gpM(Y,b)};
Nyt=function(Y){var b=_.zO("VALID_SESSION_TEMPDATA_DOMAINS",[]),w=_.Yu(window.location.href);w&&b.push(w);w=_.Yu(Y);if(!(_.Ka(b,w)||!w&&_.Hg(Y,"/")))return null;Y=_.CM(Y);(Y=_.w5(Y))?(Y=f1G(Y),Y=(Y=_.sJ.get(Y,void 0)||null)?_.j4(Y):{}):Y=null;return Y};
gpM=function(Y,b,w){Y=f1G(Y);b=b?_.h6(b):"";w=w||5;_.w2b()&&_.Qh(Y,b,w)};
f1G=function(Y){for(var b=_.N(Epq),w=b.next();!w.done;w=b.next())Y=_.H0(Y,w.value);return"ST-"+Aw(Y).toString(36)};
cuI=function(Y,b){Y.commandMetadata&&_.v(Y.commandMetadata,_.g5)&&_.v(Y.commandMetadata,_.g5).url&&(Y=_.GO(_.v(Y.commandMetadata,_.g5).url).adurl)&&_.QdG(Y)&&_.VX(_.CM(Y),{encoded_ad_playback_context:b})};
_.Uvb=function(Y){if(Y.requestFullscreen)Y=Y.requestFullscreen(void 0);else if(Y.webkitRequestFullscreen)Y=Y.webkitRequestFullscreen();else if(Y.mozRequestFullScreen)Y=Y.mozRequestFullScreen();else if(Y.msRequestFullscreen)Y=Y.msRequestFullscreen();else if(Y.webkitEnterFullscreen)Y=Y.webkitEnterFullscreen();else return Promise.reject(Error("uf"));return Y instanceof Promise?Y:Promise.resolve()};
_.N8=function(Y){var b;_.SCL(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.fz()==Y&&(b=document):b=Y;if(b&&(Y=_.SCL(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))){Y.call(b)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.fz=function(){var Y=Y===void 0?!1:Y;var b=_.SCL(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Y)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
_.Ea=function(Y,b){b=b===void 0?!0:b;Y.addEventListener("wheel",X2B);Y.overscrollConfig={cooldown:b}};
_.c0=function(Y){Y.overscrollConfig=void 0;Y.removeEventListener("wheel",X2B)};
X2B=function(Y){var b=Y.deltaY,w=Y.target,V=null;if(window.Polymer&&window.Polymer.Element){if(w=Y.path||Y.composedPath&&Y.composedPath()){w=_.N(w);for(var H=w.next();!H.done&&(H=H.value,!Dve(H,b));H=w.next())if(H.overscrollConfig){V=H;break}}}else for(;w&&!Dve(w,b);){if(w.overscrollConfig){V=w;break}w=w.parentElement}V&&(b=V.overscrollConfig,b.cooldown?(V=Y.deltaY,w=b.lastDeltaY||0,b.lastDeltaY=V,H=b.lastStopped||0,w&&H&&w>0==V>0?Math.abs(w)>=Math.abs(V)?(V=H+1200,w=!1):(V=H+600,w=!0):(V=Date.now()+
600,w=!0),V>Date.now()&&(Y.preventDefault(),w&&(b.lastStopped=Date.now()))):Y.preventDefault())};
Dve=function(Y,b){return b<0&&Y.scrollTop>0||b>0&&Y.scrollTop<Y.scrollHeight-Y.clientHeight-1?(Y=getComputedStyle(Y).overflowY,Y=="auto"||Y=="scroll"):!1};
_.Ua=function(Y,b,w,V){V||(V={bubbles:!0,cancelable:!1,composed:!0});w!==null&&w!==void 0&&(V.detail=w);var H=new CustomEvent(b,V);_.q("untrack_fire_custom_event_killswitch")?Y.dispatchEvent(H):I2(function(){return void Y.dispatchEvent(H)});
return H};
_.Xx=function(Y,b,w,V){b=new mvv(b,!(V===void 0||!V),w);_.Ua(Y,"yt-action",b);return b.returnValue};
_.De=function(Y,b,w){return _.Xx(Y,b,w,!0)};
_.mx=function(Y,b,w){return _.Xx(Y,b,w)[0]};
_.IP=function(Y,b,w,V){b&&b.length&&b.forEach(function(H){var f=FQK(H);f&&(_.q("handle_service_request_actions")&&H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.sendPost?_.oP(w?w:Y,[H]):_.De(Y,f,[H,w,V]))})};
_.oP=function(Y,b){var w=[Y];b&&w.push.apply(w,b);b=_.Xx(Y,"yt-service-request",w);return b.length>0&&(b=b[0],_.Ua(Y,"yt-service-request-sent",b),b&&b.ajaxPromise)?(b.ajaxPromise.then(function(V){_.Ua(Y,"yt-service-request-completed",V)},function(V){_.Ua(Y,"yt-service-request-error",{error:V,
params:w})},Y),b.ajaxPromise):_.k7()};
_.h1=function(Y,b){if(_.q("handle_service_request_actions"))_.IP(b,Y,b);else{Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next()){w=w.value;var V=void 0;((V=_.v(w,_.ln))==null?0:V.commands)?_.h1(_.v(w,_.ln).commands,b):(V=void 0,((V=_.v(w,_.x7))==null?0:V.actions)?_.h1(_.v(w,_.x7).actions,b):(V=void 0,((V=_.v(w.commandMetadata,_.g5))==null?0:V.sendPost)?_.oP(b,[w]):_.IP(b,[w],b)))}}};
_.I1e=function(Y,b,w){b=b===void 0?{}:b;typeof b==="function"&&(b={callback:b});w||b._c&&b._c.jsl&&b._c.jsl.h||_.BL.extend(b,{_c:{jsl:{h:_.zO("GAPI_HINT_PARAMS")}}});(b.gapiHintOverride||_.zO("GAPI_HINT_OVERRIDE"))&&(w=_.GO(document.location.href).gapi_jsh)&&_.BL.extend(b,{_c:{jsl:{h:w}}});opL(Y,b)};
_.sa=function(Y,b,w){b=b===void 0?{}:b;Y=(Y=Y in q8?q8[Y]:w)||"";w={};for(var V in b){w={key$jscomp$789:w.key$jscomp$789};w.key$jscomp$789=V;var H=function(f){return function(){return String(b[f.key$jscomp$789])}}(w);
Y=Y.replace(new RegExp("\\$\\{"+w.key$jscomp$789+"\\}","gi"),H);Y=Y.replace(new RegExp("\\$"+w.key$jscomp$789,"gi"),H)}return Y};
_.QX=function(Y,b){return kVu(Y in q8?q8[Y]:{},b)};
kVu=function(Y,b){var w=_.zO("I18N_PLURAL_RULES");w||(w=function(V){return V==1?"one":"other"});
return(Y=Y["case"+b]||Y[w(b)])?Y.replace("#",b.toString()):b+""};
xvL=function(Y){var b=l1b(Y),w=document.getElementById(b),V=w&&i1e(w);V||w&&!V||(w=hkb(Y,b,function(){if(!i1e(w)){KVv(w);_.TrM(b);var H=_.v0(_.u2g,b);_.m$(H,0)}}))};
hkb=function(Y,b,w){var V=document.createElement("link");V.id=b;V.onload=function(){w&&setTimeout(w,0)};
Y=_.eh(Y);_.Cu(V,Y,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(V);return V};
l1b=function(Y){var b=_.xG("A");er(b,Ig(Y));return"css-"+Aw(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.sBI=function(Y){var b=qTG();Y!==b&&(b=_.P0(),!_.q("web_autonav_allow_off_by_default")&&Y||_.Ze(0,141,!0),_.Ze(0,140,!Y),b.save())};
qTG=function(){var Y=_.P0();return _.q("web_autonav_allow_off_by_default")&&!Y.getFlag(141)&&_.zO("AUTONAV_OFF_BY_DEFAULT")?!1:!Y.getFlag(140)};
QBB=function(Y,b){var w,V;Y=((w=Y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(V=w.videoAuthorizationToken)==null?void 0:V.credentialTransferTokens)||[];for(w=0;w<Y.length;++w)if(Y[w].scope===b)return Y[w].token||void 0};
vpv=function(Y){for(var b=0,w=0;w<Y.length;w++)b=b*31+Y.charCodeAt(w),w<Y.length-1&&(b%=0x800000000000);return b%1E5};
_.B0=function(Y){return _.Aq("ytcsi."+(Y||"")+"data_")||PYL(Y)};
_.ZPv=function(Y){Y=_.B0(Y);Y.metadata||(Y.metadata={});return Y.metadata};
_.Bye=function(Y){Y=_.B0(Y);Y.tick||(Y.tick={});return Y.tick};
_.nz=function(Y){Y=_.B0(Y);if(Y.gel){var b=Y.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else Y.gel={gelTicks:{},gelInfos:{}};return Y.gel};
_.npb=function(Y){Y=_.nz(Y);Y.gelInfos||(Y.gelInfos={});return Y.gelInfos};
MBM=function(Y){var b=_.B0(Y).nonce;b||(b=OD(16),_.B0(Y).nonce=b);return b};
PYL=function(Y){var b={tick:{},info:{}};_.wG("ytcsi."+(Y||"")+"data_",b);return b};
eka=function(){var Y=_.Aq("ytcsi.debug");Y||(Y=[],_.wG("ytcsi.debug",Y),_.wG("ytcsi.reference",{}));return Y};
_.M8=function(Y){Y=Y||"";var b=p2v();if(b[Y])return b[Y];var w=eka(),V={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};w.push(V);return b[Y]=V};
OPb=function(Y){Y=Y||"";var b=p2v();b[Y]&&delete b[Y];var w=eka(),V={timerName:Y,info:{},tick:{},span:{},jspbInfo:[]};w.push(V);b[Y]=V};
p2v=function(){var Y=_.Aq("ytcsi.reference");if(Y)return Y;eka();return _.Aq("ytcsi.reference")};
_.Rkg=function(Y){return tBB[Y]||"LATENCY_ACTION_UNKNOWN"};
STB=function(Y,b,w){w=w===void 0?{}:w;var V=!1;_.Wf("ytLoggingEventsDefaultDisabled",!1)&&(V=!0);V=V?null:th;w=w===void 0?{}:w;var H=Math.round(w.timestamp||(0,_.gG)());_.By(b,1,H<Number.MAX_SAFE_INTEGER?H:0);H=new dvr;if(w.lact)_.By(H,1,isFinite(w.lact)?w.lact:-1);else if(w.timestamp)_.By(H,1,-1);else{var f=_.fB();_.By(H,1,isFinite(f)?f:-1)}if(w.sequenceGroup&&!_.q("web_gel_sequence_info_killswitch")){f=w.sequenceGroup;var E=cAL(f),U=new FeI;_.By(U,2,E);_.hP(U,1,f);_.HN(H,3,U);w.endOfSequence&&delete LeL[w.sequenceGroup]}_.HN(b,
33,H);(w.sendIsolatedPayload?ITa:kdL)(Y,{endpoint:"log_event",payload:b,cttAuthInfo:w.cttAuthInfo,dangerousLogToVisitorSession:w.dangerousLogToVisitorSession},V)};
_.pz=function(){return(_.q("csi_use_time_origin")||_.q("csi_use_time_origin_tvhtml5"))&&_.e1.timeOrigin?Math.floor(_.e1.timeOrigin):_.e1.timing.navigationStart};
_.a1L=function(Y,b){_.Oa("_start",Y,b)};
_.t1=function(Y,b){if(!_.q("web_csi_action_sampling_enabled")||!_.B0(b).actionDisabled){var w=_.M8(b||"");_.a3(w.info,Y);Y.loadType&&(w=Y.loadType,_.ZPv(b).loadType=w);_.a3(_.npb(b),Y);w=MBM(b);b=_.B0(b).cttAuthInfo;rur().info(Y,w,b)}};
zkL=function(){var Y,b,w,V;return((V=_.fH().resolve(_.HQ(ek))==null?void 0:(Y=EOu())==null?void 0:(b=Y.loggingHotConfig)==null?void 0:(w=b.csiConfig)==null?void 0:w.debugTicks)!=null?V:[]).map(function(H){return Object.values(H)[0]})};
_.Oa=function(Y,b,w){if(!_.q("web_csi_action_sampling_enabled")||!_.B0(w).actionDisabled){var V=MBM(w),H;if(H=_.q("web_csi_debug_sample_enabled")&&V){(_.fH().resolve(_.HQ(ek))==null?0:EOu())&&!Wet&&(Wet=!0,_.Oa("gcfl",(0,_.gG)(),w));var f,E,U;H=(_.fH().resolve(_.HQ(ek))==null?void 0:(f=EOu())==null?void 0:(E=f.loggingHotConfig)==null?void 0:(U=E.csiConfig)==null?void 0:U.debugSampleWeight)||0;if(f=H!==0)b:{f=zkL();if(f.length>0)for(E=0;E<f.length;E++)if(Y===f[E]){f=!0;break b}f=!1}f?(H=vpv(V)%H!==
0,_.B0(w).debugTicksExcludedLogged||(f={},f.debugTicksExcluded=H,_.t1(f,w)),_.B0(w).debugTicksExcludedLogged=!0):H=!1}if(!H){Y[0]!=="_"&&Ke6(Y,w,b);H=_.M8(w||"");H.tick[Y]=b||(0,_.gG)();if(H.callback&&H.callback[Y])for(H=_.N(H.callback[Y]),f=H.next();!f.done;f=H.next())f=f.value,f();H=_.nz(w);H.gelTicks&&(H.gelTicks[Y]=!0);f=_.Bye(w);H=b||(0,_.gG)();_.q("log_repeated_ytcsi_ticks")?Y in f||(f[Y]=H):f[Y]=H;f=_.B0(w).cttAuthInfo;Y==="_start"?rur().baseline(V,b,f):rur().tick(Y,V,b,f);_.iPG(w);return H}}};
Ke6=function(Y,b,w){if(_.e1.mark)if(Y.startsWith("mark_")||(Y="mark_"+Y),b&&(Y+=" ("+b+")"),w===void 0||_.q("web_csi_disable_alt_time_performance_mark"))_.e1.mark(Y);else{w=_.q("csi_use_performance_navigation_timing")?w-_.e1.timeOrigin:w-(_.e1.timeOrigin||_.e1.timing.navigationStart);try{_.e1.mark(Y,{startTime:w})}catch(V){}}};
AuG=function(){var Y,b=(Y=_.e1.getEntriesByType)==null?void 0:Y.call(_.e1,"mark");b&&b.forEach(function(w){if(w.name.startsWith("mark_")){var V;(V=_.e1.clearMarks)==null||V.call(_.e1,w.name)}})};
_.CYe=function(){switch(LDg()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.yue=function(Y){var b={},w=function(f,E,U){E=E.match("_rid")?E.split("_rid")[0]:E;typeof U==="number"&&(U=JSON.stringify(U));f.requestIds?f.requestIds.push({endpoint:E,id:U}):f.requestIds=[{endpoint:E,id:U}]};
Y=_.N(Object.entries(Y));for(var V=Y.next();!V.done;V=Y.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;switch(V){case "GetBrowse_rid":w(b,V,H);break;case "GetGuide_rid":w(b,V,H);break;case "GetHome_rid":w(b,V,H);break;case "GetPlayer_rid":w(b,V,H);break;case "GetSearch_rid":w(b,V,H);break;case "GetSettings_rid":w(b,V,H);break;case "GetTrending_rid":w(b,V,H);break;case "GetWatchNext_rid":w(b,V,H);break;case "yt_red":b.isRedSubscriber=!!H;break;case "yt_ad":b.isMonetized=!!H}}return b};
jBe=function(Y,b,w,V,H,f){if(!_.q("web_csi_action_sampling_enabled")||!_.B0(f).actionDisabled){var E=_.nz(f);if(E.gelSpans)E.gelSpans[Y]=!0;else{var U={};E.gelSpans=(U[Y]=!0,U)}$vt++;Y={spanName:Y,spanLengthUsec:String(Math.round(b*1E3)),spanNonce:$vt};V&&(Y.spanInfo=V);H&&(Y.parentSpanNonce=H);w&&(Y.spanStartTimeUsec=String(Math.round(w*1E3)));_.M8(f||"").span[String(Y.spanName)]=Y;w=_.nz(f);w.gelSpans||(w.gelSpans={});_.a3(w.gelSpans,Y);w=MBM(f);f=_.B0(f).cttAuthInfo;rur().span(Y,w,f);return Y.spanNonce}};
_.GVr=function(Y){var b=_.RP("aft",Y);if(b)return b;b=_.zO((Y||"")+"TIMING_AFT_KEYS",["ol"]);for(var w=b.length,V=0;V<w;V++){var H=_.RP(b[V],Y);if(H)return H}return NaN};
_.TyM=function(Y,b){_.wG("ytglobal.timing"+(b||"")+"ready_",Y)};
_.RP=function(Y,b){if(Y=_.Bye(b)[Y])return typeof Y==="number"?Y:Y[Y.length-1]};
_.iPG=function(Y){var b=_.RP("_start",Y),w=_.GVr(Y),V=!JuI;b&&w&&V&&(UV6(uaL,new Ygv(Math.round(w-b),Y)),JuI=!0)};
wxg=function(Y){PYL(Y);b9b();AuG();Y||(_.zO("TIMING_ACTION")&&_.rx("PREVIOUS_ACTION",_.zO("TIMING_ACTION")),_.rx("TIMING_ACTION",""))};
_.Vfe=function(Y){Y=Y===void 0?{}:Y;_.i1(function(){d5();OPb();wxg();_.TyM(!1);Y.cttAuthInfo&&(_.B0().cttAuthInfo=Y.cttAuthInfo);_.rx("TIMING_AFT_KEYS",[]);Y.isHot?_.Fx({loadType:"hot"}):_.Fx({loadType:"warm"});_.rx("TIMING_ACTION","");delete _.zO("TIMING_INFO",{}).yt_lt;_.i1(_.a1L)(Y.startTime,void 0)})()};
_.Lz=function(Y,b,w,V){b=b===void 0?{}:b;_.i1(function(){var H=w?w:Y;H96(H);var f=b.sampleRate;if(!_.q("web_csi_action_sampling_enabled")||f===void 0||f<=1)f=!1;else{var E=MBM(H);f=vpv(E)%f!==0}f&&(_.B0(H).actionDisabled=!0);_.M8(H||"").info.actionType=Y;b.cttAuthInfo&&(_.B0(H).cttAuthInfo=b.cttAuthInfo);_.rx(H+"TIMING_ACTION",Y);_.i1(_.a1L)(b.startTime,H);f={actionType:V||_.Rkg(Y)};b.logPreviousAction&&(f.previousAction=_.Rkg(_.zO("TIMING_ACTION")));(E=_.dO())&&E!=="UNDEFINED_CSN"&&(f.clientScreenNonce=
E);_.Fx(f,H);_.TyM(!0,H)})()};
H96=function(Y){_.i1(function(){d5(Y);OPb(Y);wxg(Y)})()};
gWa=function(){_.i1(function(){var Y=[],b;for(b in _.Aq("ytcsi.".slice(0,-1)))b.endsWith("data_")&&Y.push(b.slice(0,-5));Y=_.N(Y);for(b=Y.next();!b.done;b=Y.next())H96(b.value);d5()})()};
_.Nfe=function(Y){return _.i1(function(){return _.f4b("_start",Y)})()};
_.Fx=function(Y,b,w){_.i1(_.t1)(Y,b,w===void 0?!1:w)};
_.S1=function(Y,b,w){return _.i1(_.Oa)(Y,b,w)};
_.f4b=function(Y,b){return _.i1(function(){var w=_.Bye(b);return Y in w})()};
ctg=function(Y){if(!_.q("universal_csi_network_ticks"))return"";Y=_.ku(Y)||"";for(var b=Object.keys(EWg),w=0;w<b.length;w++){var V=b[w];if(Y.includes(V))return V}return""};
Xxa=function(Y){if(!_.q("universal_csi_network_ticks"))return function(){};
var b=EWg[Y];return b?(_.aP(b),function(){var w=_.q("universal_csi_network_ticks")?(w=UbG[Y])?_.aP(w):!1:!1;return w}):function(){}};
_.aP=function(Y,b,w){return _.i1(function(){if(_.f4b(Y,w))return!1;_.S1(Y,b,w);return!0})()};
_.r5=function(Y,b,w){_.i1(function(){if(!_.Nfe(w)||_.f4b(Y,w))return!1;_.S1(Y,b,w);return!0})()};
_.zu=function(Y){return _.i1(_.RP)(Y,void 0)};
d5=function(Y){_.Nfe(Y)&&_.S1("aa",void 0,Y)};
_.kSv=function(Y,b,w,V,H,f,E,U,X){var I=Dbv();U=new _.tw({veType:b,youtubeData:f,jspbYoutubeData:U});f=W0({},I);H&&(f.cttAuthInfo=H);H={csn:I,pageVe:U.getAsJson()};_.q("expectation_logging")&&X&&X.screenCreatedLoggingExpectations&&(H.screenCreatedLoggingExpectations=X.screenCreatedLoggingExpectations);w&&w.visualElement?(H.implicitGesture={parentCsn:w.clientScreenNonce,gesturedVe:w.visualElement.getAsJson()},E&&(H.implicitGesture.gestureType=E)):w&&_.Sk(new _.BQ("newScreen() parent element does not have a VE - rootVe",
b));V&&(H.cloneCsn=V);Y?OP("screenCreated",H,Y,f):_.RY("screenCreated",H,f);UV6(l7B,new mbq(I));Kz.clear();oWb.clear();I4G.clear();return I};
A1=function(Y,b,w,V,H){l4v(Y,b,w,[V],H===void 0?!1:H)};
l4v=function(Y,b,w,V,H){H=H===void 0?!1:H;for(var f=W0({cttAuthInfo:FA(b)||void 0},b),E=_.N(V),U=E.next();!U.done;U=E.next()){U=U.value;var X=U.getAsJson();(_.BL.isEmpty(X)||!X.trackingParams&&!X.veType)&&_.Sk(Error("vf"));if(_.q("no_client_ve_attach_unless_shown")){var I=hAr(U,b);if(X.veType&&!oWb.has(I)&&!I4G.has(I)&&!H){if(!_.q("il_attach_cache_limit")||Kz.size<1E3){Kz.set(I,[Y,b,w,U]);return}_.q("il_attach_cache_limit")&&Kz.size>1E3&&_.Sk(new _.BQ("IL Attach cache exceeded limit"))}U=hAr(w,b);
Kz.has(U)?xbv(w,b):I4G.set(U,!0)}}V=V.filter(function(k){k.csn!==b?(k.csn=b,k=!0):k=!1;return k});
w={csn:b,parentVe:w.getAsJson(),childVes:_.MD(V,function(k){return k.getAsJson()})};
b==="UNDEFINED_CSN"?Cz("visualElementAttached",f,w):Y?OP("visualElementAttached",w,Y,f):_.RY("visualElementAttached",w,f)};
s5L=function(Y,b,w,V,H){qgM(Y,b,w,H)};
qgM=function(Y,b,w,V){Q5B(w,b);var H=W0({cttAuthInfo:FA(b)||void 0},b);w={csn:b,ve:w.getAsJson(),eventType:1};V&&(w.clientData=V);b==="UNDEFINED_CSN"?Cz("visualElementShown",H,w):Y?OP("visualElementShown",w,Y,H):_.RY("visualElementShown",w,H)};
vWt=function(Y,b,w,V){Q5B(w,b);var H=W0({cttAuthInfo:FA(b)||void 0},b);w={csn:b,ve:w.getAsJson(),eventType:4};V&&(w.clientData=V);b==="UNDEFINED_CSN"?Cz("visualElementShown",H,w):Y?OP("visualElementShown",w,Y,H):_.RY("visualElementShown",w,H)};
PxG=function(Y,b,w,V,H){var f=(V=V===void 0?!1:V)?16:8;V=W0({cttAuthInfo:FA(b)||void 0,endOfSequence:V},b);w={csn:b,ve:w.getAsJson(),eventType:f};H&&(w.clientData=H);b==="UNDEFINED_CSN"?Cz("visualElementHidden",V,w):Y?OP("visualElementHidden",w,Y,V):_.RY("visualElementHidden",w,V)};
Bfb=function(Y,b,w,V,H){Z9G(Y,b,w,void 0,V,H)};
Z9G=function(Y,b,w,V,H){Q5B(w,b);V=V||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=W0({cttAuthInfo:FA(b)||void 0},b);w={csn:b,ve:w.getAsJson(),gestureType:V};H&&(w.clientData=H);b==="UNDEFINED_CSN"?Cz("visualElementGestured",f,w):Y?OP("visualElementGestured",w,Y,f):_.RY("visualElementGestured",w,f)};
nWb=function(Y,b,w,V){var H=W0({cttAuthInfo:FA(b)||void 0},b);w={csn:b,ve:w.getAsJson(),clientData:V};b==="UNDEFINED_CSN"?Cz("visualElementStateChanged",H,w):Y?OP("visualElementStateChanged",w,Y,H):_.RY("visualElementStateChanged",w,H)};
Mfr=function(){var Y=Iqv(16);for(var b=[],w=0;w<Y.length;w++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Y[w]&63));return b.join("")};
Cz=function(Y,b,w){eAg.push({payloadName:Y,payload:w,jspbPayload:void 0,options:b});pxr||(pxr=xVe())};
kxu=function(Y){if(eAg){for(var b=_.N(eAg),w=b.next();!w.done;w=b.next())w=w.value,w.payload&&(w.payload.csn=Y.csn,_.RY(w.payloadName,w.payload,w.options));eAg.length=0}pxr=0};
hAr=function(Y,b){return""+Y.getAsJson().veType+Y.getAsJson().veCounter+b};
Q5B=function(Y,b){if(_.q("no_client_ve_attach_unless_shown")){var w=hAr(Y,b);oWb.set(w,!0);xbv(Y,b)}};
xbv=function(Y,b){Y=hAr(Y,b);Kz.has(Y)&&(b=Kz.get(Y)||[],A1(b[0],b[1],b[2],b[3],!0),Kz.delete(Y))};
W0=function(Y,b){_.q("log_sequence_info_on_gel_web")&&(Y.sequenceGroup=b);return Y};
_.yX=function(Y,b,w){_.i1(A1)(void 0,Y,b,w)};
_.$7=function(Y,b,w){_.i1(l4v)(void 0,Y,b,w)};
_.j1=function(Y,b){_.i1(s5L)(void 0,Y,b,void 0,void 0,void 0)};
_.Gu=function(Y,b,w){_.i1(function(){_.$2(b,function(V){vWt(void 0,Y,V,w)})})()};
_.Tu=function(Y,b,w,V){_.i1(function(){_.$2(b,function(H){PxG(void 0,Y,H,w,V)})})()};
_.J1=function(Y,b,w){_.i1(Bfb)(void 0,Y,b,w,void 0)};
_.un=function(Y,b,w,V){_.i1(Z9G)(void 0,Y,b,w,V,void 0)};
_.b3=function(Y,b,w){_.i1(nWb)(void 0,Y,b,w,void 0)};
O9v=function(Y,b){wb.set(Y,b)};
tfr=function(Y){return VK?VK.enabledSpans?!!VK.enabledSpans[Y]:!0:!1};
RAG=function(Y){if(!VK)throw Error("yf");VK.processors.push(Y)};
dbG=function(Y,b){if(Y){b=b===void 0?1:b;if(Y&&(Y.endTime=performance.now(),b&&(Y.status=b),b=VK)){b=_.N(b.processors);for(var w=b.next();!w.done;w=b.next()){var V=void 0,H=void 0;(H=(V=w.value).onSpanEnd)==null||H.call(V,Y)}}if(b=VK){if(Y!==b.activeSpan)throw Error("zf");var f;b.activeSpan=(f=b.activeSpan)==null?void 0:f.parent}}};
F0q=function(Y,b,w){var V;if((V=VK)&&tfr(Y)){var H=V.nextSpanId++,f=V.activeSpan;Y={id:H,parent:f,name:Y,attributes:b,traceId:f?f.traceId:H,sessionId:V.sessionId,startTime:performance.now(),status:0};if(V.activeSpan){var E;(E=V.activeSpan).children||(E.children=[]);V.activeSpan.children.push(Y)}V=_.N(V.processors);for(E=V.next();!E.done;E=V.next())H=b=void 0,(H=(b=E.value).onSpanStart)==null||H.call(b,Y);V=Y}else V=void 0;Y=VK;V=V&&Y?Y.activeSpan=V:void 0;if(!V)return w();try{var U=w(V);dbG(V);return U}catch(X){throw dbG(V,
2),X;}};
L0e=function(Y,b){var w=Object.keys(Y);Y=new _.BQ("[Command Handler] "+b,{filteredCommandNames:w,originalCommand:Y});_.Ft(Y)};
Sgb=function(Y,b){L0e(Y,b+" was called but not set")};
a4v=function(Y){return function(){return new Y}};
H$=function(Y){return function(){return _.fH().resolve(Y)}};
rtL=function(Y,b){var w=_.v(Y,_.KB);if(w&&(w=b[w.signal]))return w();Y=_.N(Object.keys(Y));for(w=Y.next();!w.done;w=Y.next())if(w=w.value,b[w]&&(w=b[w]))return w()};
gb=function(Y,b,w,V){return{browseEndpoint:{browseId:Y},commandMetadata:{webCommandMetadata:{url:b,rootVe:w,webPageType:V===void 0?"WEB_PAGE_TYPE_BROWSE":V}}}};
zAb=function(Y,b,w){var V=b=b===void 0?0:b;w=w===void 0?0:w;var H=w-V;return _.f8(Y,"PPSV",void 0,void 0,(H>600?0:H<60||w<=0||V/w>.9)?0:b)};
_.f8=function(Y,b,w,V,H){var f="/watch?v="+Y;Y={videoId:Y};b&&(Y.playlistId=b,f+="&list="+b);V&&(f+="&pp="+V);H&&(Y.startTimeSeconds=H,f+="&t="+H+"s");b={watchEndpoint:Y,commandMetadata:{webCommandMetadata:{url:f,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};w&&(b.clickTrackingParams=w);V&&(_.v(b,_.TG).playerParams=V);return b};
W0t=function(Y){return{browseEndpoint:{browseId:"VL"+Y},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+Y,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
K0B=function(Y){if(Y){var b;if(Y){var w=(b=_.v(Y.commandMetadata,_.g5))==null?void 0:b.url;b=!(!w||w==="/service_ajax")}else b=!1;if(b)return Y;var V;if(Y=(V=_.v(Y,_.ln))==null?void 0:V.commands)for(V=_.N(Y),Y=V.next();!Y.done;Y=V.next())if(Y=K0B(Y.value))return Y}};
_.NV=function(Y){return{runs:[{text:Y}]}};
i9I=function(Y,b){return Y&&b?{runs:[{text:Y,navigationEndpoint:b}]}:void 0};
Ef=function(Y){return Y?_.NV(Y):void 0};
_.c$=function(Y){return Y?{simpleText:Y}:void 0};
_.Uf=function(Y){var b=Y.type;Y=Y.payload;b={type:b};Y!==void 0&&(b.payload=Y);return b};
Atq=function(Y,b,w){for(var V=Object.assign({},Y),H=_.N(Object.keys(b)),f=H.next();!f.done;f=H.next()){f=f.value;var E=Y[f],U=b[f];if(U===void 0)delete V[f];else if(E===void 0)V[f]=U;else if(Array.isArray(U)&&Array.isArray(E))V[f]=w?[].concat(_.Bt(E),_.Bt(U)):U;else if(!Array.isArray(U)&&_.bC(U)&&!Array.isArray(E)&&_.bC(E))V[f]=Atq(E,U,w);else if(typeof U===typeof E)V[f]=U;else return b=new _.BQ("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,originalValue:E,updateValue:U}),
_.Ft(b),Y}return V};
$bg=function(Y){if(!Y.length)return"";try{if(Cxq)return Cxq.decode(Y);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(Y)}catch(E){}for(var b=0,w=[],V=Y.length;b<V;){for(var H=0;H<1024&&b<V;){var f=Y[b++];if(f<128)ytu[H++]=f;else{if(f<224)f=(f&31)<<6|Y[b++]&63;else if(f<240)f=(f&15)<<12|(Y[b++]&63)<<6|Y[b++]&63;else{if(H+1===1024){--b;break}f=(f&7)<<18|(Y[b++]&63)<<12|(Y[b++]&63)<<6|Y[b++]&63;f-=65536;ytu[H++]=55296|f>>10;f=56320|f&1023}ytu[H++]=f}}f=String.fromCharCode.apply(String,
ytu);H<1024&&(f=f.substring(0,H));w.push(f)}return w.join("")};
GSM=function(Y,b){var w;if((w=j5r)==null?0:w.encodeInto)return b=j5r.encodeInto(Y,b),b.read<Y.length?Y.length*4:b.written;for(var V=w=0;V<Y.length;V++){var H=Y.charCodeAt(V);H<128?b[w++]=H:(H<2048?b[w++]=H>>6|192:((H&64512)===55296&&V+1<Y.length&&(Y.charCodeAt(V+1)&64512)===56320?(H=65536+((H&1023)<<10)+(Y.charCodeAt(++V)&1023),b[w++]=H>>18|240,b[w++]=H>>12&63|128):b[w++]=H>>12|224,b[w++]=H>>6&63|128),b[w++]=H&63|128)}return w};
Tf6=function(Y,b){Y=new Uint8Array(Y);b&&Y.set(b);return Y};
_.D7=function(Y){Y=new Jtv(new u_a([_.c9(decodeURIComponent(Y))]));if(YGb(Y,2)){var b=XZ(Y);var w=Y.pos;var V=Y.arrayView;w=w===void 0?0:w;var H=b===void 0?-1:b;w=w===void 0?0:w;H=H===void 0?-1:H;if(V.totalLength&&H){H<0&&(H=V.totalLength-w);V.focus(w);if(!(w-V.arrayPos+H<=V.arrays[V.arrayIdx].length)){var f=V.arrayIdx,E=V.arrayPos;V.focus(w+H-1);E=new Uint8Array(V.arrayPos+V.arrays[V.arrayIdx].length-E);for(var U=0,X=f;X<=V.arrayIdx;X++)E.set(V.arrays[X],U),U+=V.arrays[X].length;V.arrays.splice(f,
V.arrayIdx-f+1,E);V.arrayIdx=0;V.arrayPos=0;V.focus(w)}f=V.arrays[V.arrayIdx];V=new DataView(f.buffer,f.byteOffset+w-V.arrayPos,H)}else V=new DataView(new ArrayBuffer(0));V=new Uint8Array(V.buffer,V.byteOffset,V.byteLength);Y.pos+=b;b=V}else b=void 0;b=b?$bg(b):void 0;Y=YGb(Y,4)?XZ(Y):void 0;V=byg[Y];if(typeof V==="undefined")throw Y=new _.BQ("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:Y}),_.Ft(Y),Y;return{entityTypeFieldNumber:Y,entityType:V,entityId:b}};
_.I8=function(Y,b,w){w=w===void 0?0:w;var V=new wqI;if(j5r)Y=j5r.encode(Y);else{var H=new Uint8Array(Math.ceil(Y.length*1.2)),f=GSM(Y,H);H.length<f&&(H=new Uint8Array(f),f=GSM(Y,H));H.length>f&&(H=H.subarray(0,f));Y=H}Y!==void 0&&(mR(V,18),H=Y.length,mR(V,H),o8(V,H),V.buf.set(Y,V.pos),V.pos+=H);Y=Vwq[b];if(typeof Y==="undefined")throw w=new _.BQ("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),_.Ft(w),w;Y!==void 0&&(mR(V,32),mR(V,Y));mR(V,40);mR(V,1);b=new Uint8Array(V.buf.buffer,
V.buf.byteOffset,V.pos);return encodeURIComponent(_.YM(b,w))};
HyL=function(Y){Y=Y.key||Y.id;if(!Y)throw Error("Af");return Y};
fWq=function(Y,b){Y=Y===void 0?{}:Y;return g8L(Y,b)};
NAb=function(Y,b,w,V){if(V===void 0)return V=Object.assign({},Y[b]||{}),w=(delete V[w],V),V={},Object.assign({},Y,(V[b]=w,V));var H={},f={};return Object.assign({},Y,(f[b]=Object.assign({},Y[b],(H[w]=V,H)),f))};
E8K=function(Y,b,w,V,H){var f=Y[b];if(f==null||!f[w])return Y;V=Atq(f[w],V,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};f={};return Object.assign({},Y,(f[b]=Object.assign({},Y[b],(H[w]=V,H)),f))};
_.kt=function(Y,b,w){return Y[b]?Y[b][w]||null:null};
UwK=function(){if(cog)return cog();var Y={};cog=HO("PersistentEntityStoreDb",{objectStores:(Y.EntityStore={addedAtVersion:1},Y.EntityAssociationStore={addedAtVersion:2},Y),shared:!1,upgrade:function(b,w){w(1)&&AE(iS(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");w(2)&&(b=iS(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),AE(b,"byParentEntityKey","parentEntityKey"),AE(b,"byChildEntityKey","childEntityKey"))},
version:3});return cog()};
Xqb=function(Y){return _.Gr(UwK(),Y)};
l3=function(Y){return window.Int32Array?new Int32Array(Y):Array(Y)};
mwB=function(Y){return _.Gr(DwL(),Y)};
o8I=function(Y){return new hr("WRONG_DATA_TYPE",{encoderVersion:Y})};
IWt=function(Y){return Y instanceof Error?new hr("UNKNOWN_ENCODE_ERROR",{originalMessage:Y.message}):new hr("UNKNOWN_ENCODE_ERROR")};
kPB=function(Y){return Y instanceof Error?new hr("UNKNOWN_DECODE_ERROR",{originalMessage:Y.message}):new hr("UNKNOWN_DECODE_ERROR")};
lWa=function(Y,b){Y=Y instanceof hr?Y:b(Y);_.Ft(Y);throw Y;};
hiB=function(Y){Y=(new TextEncoder).encode(Y).subarray(0,16);var b=new Uint8Array(16);b.set(Y);return b};
qGL=function(Y){var b=xwb[Y];if(b)return b;_.Sk(new _.BQ("Entity model not found.",{entityType:Y}))};
_.xt=function(){sOq||(sOq=QOI());return sOq};
QOI=function(){var Y,b,w;return _.c(function(V){if(V.nextAddress==1)return _.ct(V,2),_.D(V,_.Vn(),4);if(V.nextAddress!=2){Y=V.yieldResult;if(!Y||!_.Zj()||typeof _.wB.BroadcastChannel==="undefined")return V.return();b=new v8g;return V.return(new qV(Y,b))}w=_.mS(V);w instanceof Error&&_.Ft(w);return V.return()})};
_.sf=function(Y,b){var w;return _.c(function(V){if(V.nextAddress==1){w=Y.mutations;if(!w||w.length<=0)return V.return();b&&b.dispatch(_.Uf({type:"ENTITY_LOADED",payload:w}));return _.D(V,P6G(w),2)}w.length=0;_.om(V)})};
P6G=function(Y){var b;return _.c(function(w){return w.nextAddress==1?_.D(w,_.xt(),2):(b=w.yieldResult)?_.D(w,_.QK(b,"readwrite",function(V){for(var H={},f=_.N(Y),E=f.next(),U={};!E.done;U={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},E=f.next())U.mutation$jscomp$4=E.value,U.mutation$jscomp$4.entityKey&&ZyG(U.mutation$jscomp$4)&&(U.mutationEntityType$jscomp$3=(0,_.BL.getAnyKey)(U.mutation$jscomp$4.payload),E=void 0,U.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(E=function(X){return function(){return _.BAL(V,
X.mutation$jscomp$4.payload[X.mutationEntityType$jscomp$3],X.mutationEntityType$jscomp$3)}}(U)),U.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(E=function(X){return function(){return n8b(V,X.mutation$jscomp$4.entityKey)}}(U)),U.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(E=function(X){return function(){return Mwu(V,X.mutation$jscomp$4.entityKey,X.mutation$jscomp$4.payload[X.mutationEntityType$jscomp$3],X.mutationEntityType$jscomp$3)}}(U)),E&&(H[U.mutation$jscomp$4.entityKey]=
H[U.mutation$jscomp$4.entityKey]?H[U.mutation$jscomp$4.entityKey].then(E):E()));
return WQ.all(Object.values(H))}),0):w.return()})};
ZyG=function(Y){var b;Y=(b=Y.options)==null?void 0:b.persistenceOption;return Y==="ENTITY_PERSISTENCE_OPTION_PERSIST"||Y==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Oyg=function(Y,b){var w,V;_.c(function(H){if(H.nextAddress==1)return _.D(H,_.xt(),2);if(H.nextAddress!=3)return(w=H.yieldResult)?_.D(H,_.QK(w,"readonly",function(f){var E={},U=Object.keys(b).map(function(X){var I=b[X]?[].concat(_.Bt(b[X])):[];return eia(f,X,I,E)});
return WQ.all(U).then(function(){return E})}),3):H.return();
V=H.yieldResult;Object.keys(V).length>0&&Y.dispatch(pqa(V));_.om(H)})};
eia=function(Y,b,w,V){return v$(Y,b,w).then(function(H){V[b]=twq(w,H)})};
twq=function(Y,b){if(b.length!==Y.length)throw Error("Df");return b.reduce(function(w,V,H){w[Y[H]]=V;return w},{})};
Fkv=function(Y){var b=Y.filter(function(H){var f;return(H==null?void 0:(f=H.transferEntity)==null?void 0:f.transferState)==="TRANSFER_STATE_COMPLETE"}).length,w=Y.filter(function(H){var f;
return(H==null?void 0:(f=H.transferEntity)==null?void 0:f.transferState)==="TRANSFER_STATE_FAILED"}).length,V=Y.filter(function(H){var f;
return(H==null?void 0:(f=H.transferEntity)==null?void 0:f.transferState)&&RiL.includes(H.transferEntity.transferState)});
if(!(b||V!=null&&V.length))return 0;b=_.dwa(V)+b;Y=Y.length-w;return Y===0?0:Math.round(b*100/Y)/100};
_.dwa=function(Y){var b=[];b=b.concat.apply(b,_.Bt(Y.filter(function(f){return f.streamEntity}).map(function(f){var E=Object.assign({},f.streamEntity),U,X=(U=f.transferEntity)==null?void 0:U.transferState;
E.streamsProgress=E.streamsProgress||[];E.streamsProgress=E.streamsProgress.map(function(I){var k=Object.assign({},I);k.numBytesDownloaded=X==="TRANSFER_STATE_COMPLETE"?I.numTotalBytes:I.numBytesDownloaded;return k});
return E}).map(function(f){return f.streamsProgress})));
var w=Y=0;b=_.N(b);for(var V=b.next();!V.done;V=b.next()){var H=V.value;V=Number(H.numBytesDownloaded);H=Number(H.numTotalBytes);w+=isNaN(V)?0:V;Y+=isNaN(H)?0:H}return Y===0?0:Math.round(w*100/Y)/100};
Lk6=function(Y){if(!Y||!Y.expirationTimestamp||!Y.action)return!1;var b=(0,_.gG)()/1E3;return Number(Y.expirationTimestamp)>=b};
P$=function(Y){return Y&&Y.expirationTimestamp&&Y.action?Lk6(Y)&&Y.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Z7=function(Y){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(Y||"TRANSFER_STATE_UNKNOWN")};
SGt=function(Y){var b=new wqI;if(Y!==void 0){var w=Math.ceil(Math.log2(Y.length*4+2)/7);w=w===void 0?2:w;mR(b,10);b.submessagePosStack.push(b.pos);b.submessagePosStack.push(w);b.pos+=w;o8(b,Y.length*1.2);w=GSM(Y,b.buf.subarray(b.pos));b.pos+w>b.buf.length&&(o8(b,w),w=GSM(Y,b.buf.subarray(b.pos)));b.pos+=w;Y=b.submessagePosStack.pop();w=b.submessagePosStack.pop();for(var V=b.pos-w-Y;Y--;){var H=Y?128:0;b.view.setUint8(w++,V&127|H);V>>=7}}b=new Uint8Array(b.buf.buffer,b.buf.byteOffset,b.pos);return(new TextDecoder("utf-8")).decode(b)};
_.B$=function(Y){var b=0;Y=_.N(Y);for(var w=Y.next(),V={};!w.done;V={transferState$jscomp$3:void 0},w=Y.next()){var H=w.value,f=void 0;w=(f=H.streamEntity)!=null?f:{};f=void 0;V.transferState$jscomp$3=(f=H.transferEntity)==null?void 0:f.transferState;f=H=void 0;((H=w)==null?0:(f=H.streamsProgress)==null?0:f.length)&&w.streamsProgress.forEach(function(E){return function(U){U=Number(E.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?U.numTotalBytes:U.numBytesDownloaded);isFinite(U)&&(b+=U)}}(V))}return b};
aWB=function(Y){return Y.some(function(b){var w;if(!(b==null?0:(w=b.transferEntity)==null?0:w.transferState)){var V;return!(b==null?0:(V=b.policyEntity)==null?0:V.action)||b.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return RiL.includes(b.transferEntity.transferState)})};
roB=function(Y,b){if(!b)return!1;if(_.q("of_pb_en_po_ks"))return!0;var w;Y=(w=_.kt(Y,"offlineVideoPolicy",_.I8(b,"offlineVideoPolicy")))!=null?w:void 0;return!!Y&&P$(Y)};
_.hzv=function(Y){var b=["TRANSFER_STATE_COMPLETE"];b=b===void 0?zi6:b;return Y.filter(function(w){var V,H;return b.includes((H=(V=w.transferEntity)==null?void 0:V.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN")})};
xML=function(Y,b){if(b){var w,V=(w=_.kt(Y,"playbackData",_.I8(b,"playbackData")))!=null?w:null,H;w=(H=_.kt(Y,"transfer",_.I8(b,"transfer")))!=null?H:null;var f;H=(f=_.kt(Y,"offlineVideoStreams",_.I8(b,"offlineVideoStreams")))!=null?f:null;var E;Y=(E=_.kt(Y,"offlineVideoPolicy",_.I8(b,"offlineVideoPolicy")))!=null?E:null;if(V||w||H||Y)return{playbackDataEntity:V,transferEntity:w,streamEntity:H,policyEntity:Y}}};
_.n8=function(Y){var b=Y.playbackData;if(!b)return[];var w=[];b=_.N(Object.keys(b));for(var V=b.next();!V.done;V=b.next()){var H=V.value;if(!q_b(Y,_.D7(H).entityId)&&(V=xML(Y,_.D7(H).entityId))){var f=void 0,E=void 0;H=(E=Number((f=_.kt(Y,"playbackData",H))==null?void 0:f.streamDownloadTimestampSeconds))!=null?E:(0,_.gG)();w.push({entity:V,streamDownloadTimestamp:H})}}return w.sort(function(U,X){var I=U.streamDownloadTimestamp,k=X.streamDownloadTimestamp;return k===I?U.entity.streamEntity&&!X.entity.streamEntity?
1:-1:k-I}).map(function(U){return U.entity})};
s$b=function(Y){return _.hzv(_.n8(Y))};
_.Q$b=function(Y){return _.n8(Y).filter(function(b){var w;if(((w=b.policyEntity)==null?0:w.action)&&b.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var V;if((V=b.transferEntity)==null?0:V.transferState){var H;return RiL.includes((H=b.transferEntity)==null?void 0:H.transferState)}return!0})};
q_b=function(Y,b){var w;return((w=_.kt(Y,"downloadStatusEntity",_.I8(b,"downloadStatusEntity")))==null?void 0:w.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
v$u=function(Y){var b;if(Y==null?0:(b=Y.playbackDataEntity)==null?0:b.key)return _.D7(Y.playbackDataEntity.key).entityId;var w;if(Y==null?0:(w=Y.transferEntity)==null?0:w.key)return _.D7(Y.transferEntity.key).entityId;var V;if(Y==null?0:(V=Y.streamEntity)==null?0:V.key)return _.D7(Y.streamEntity.key).entityId;var H;if(Y==null?0:(H=Y.policyEntity)==null?0:H.key)return _.D7(Y.policyEntity.key).entityId};
ZiI=function(Y){var b=new Set,w;Y=(w=Y.mainDownloadsListEntity)==null?void 0:w[PMv];var V;if(!(Y==null?0:(V=Y.downloads)==null?0:V.length))return b;var H;Y==null||(H=Y.downloads)==null||H.forEach(function(f){(f==null?0:f.videoItem)&&b.add(f.videoItem)});
return b};
MV=function(Y,b){if(b){var w=_.kt(Y,"mainVideoEntity",_.I8(b,"mainVideoEntity")),V=_.kt(Y,"downloadStatusEntity",_.I8(b,"downloadStatusEntity")),H=_.kt(Y,"ytMainChannelEntity",_.I8(b,"ytMainChannelEntity")),f={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};Y=xML(Y,b);V=(V==null?void 0:V.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.q("woffle_render_failed_download_state_ks")&&(V==null?void 0:V.downloadState)==="DOWNLOAD_STATE_FAILED";!Y&&V&&(Y=f);if(Y&&w&&
H)return Object.assign({},{videoEntity:w,channelEntity:H},Y)}};
n$q=function(Y,b){return BLg(Y,b)==="TRANSFER_STATE_COMPLETE"&&roB(Y,b)};
Mc6=function(Y,b){if(!b)return!1;var w;Y=(w=_.kt(Y,"playbackData",_.I8(b,"playbackData")))!=null?w:void 0;return!!Y&&!!Y.playerResponseJson};
BLg=function(Y,b){if(!b)return"TRANSFER_STATE_UNKNOWN";var w=_.kt(Y,"transfer",_.I8(b,"transfer"));if(w){var V;return(V=w.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN"}w=_.kt(Y,"offlineOrchestrationActionWrapperEntity",_.I8(b,"offlineOrchestrationActionWrapperEntity"));Y=_.kt(Y,"mainVideoEntity",_.I8(b,"mainVideoEntity"));return w||Y?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
ezM=function(Y,b){if(!b)return"TRANSFER_STATE_UNKNOWN";if(Y=_.kt(Y,"transfer",_.I8(b,"transfer"))){var w;return(w=Y.transferState)!=null?w:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
pUv=function(Y,b){return b&&(Y=_.kt(Y,"videoPlaybackPositionEntity",_.I8(b,"videoPlaybackPositionEntity")),Y==null?0:Y.lastPlaybackPositionSeconds)?Number(Y.lastPlaybackPositionSeconds):0};
tce=function(Y,b){return OiI(Y).some(function(w){var V;return(w==null?void 0:(V=w.mainPlaylistEntity)==null?void 0:V.playlistId)===b})};
dMa=function(Y,b,w){var V=RzM(Y,b);if(!V.length)return[];b=[];V=_.N(V);for(var H=V.next();!H.done;H=V.next()){H=H.value;var f=MV(Y,H);w&&BLg(Y,H)!=="TRANSFER_STATE_COMPLETE"||f&&b.push(f)}return b};
RzM=function(Y,b){if(!b)return[];var w=_.I8(b,"mainPlaylistEntity"),V;b=(V=Y.mainPlaylistEntity)==null?void 0:V[w];V=[];if(b==null||!b.videos)return V;b=_.N(b.videos);for(w=b.next();!w.done;w=b.next()){w=w.value;var H=void 0,f=void 0,E=void 0,U=(H=Y)==null?void 0:(f=H.mainPlaylistVideoEntity)==null?void 0:(E=f[w])==null?void 0:E.video;U&&(w=_.D7(U).entityId)&&V.push(w)}return V};
Fyu=function(Y,b){if(b){var w=_.kt(Y,"mainPlaylistEntity",_.I8(b,"mainPlaylistEntity")),V=_.kt(Y,"mainPlaylistDownloadStateEntity",_.I8(b,"mainPlaylistDownloadStateEntity"));Y=_.kt(Y,"ytMainChannelEntity",_.I8(b,"ytMainChannelEntity"));if(V&&w)return Object.assign({},{mainPlaylistEntity:w,mainPlaylistDownloadStateEntity:V},!!Y&&{channelEntity:Y})}};
OiI=function(Y){return Lye(Y).sort(function(b,w){return w.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedPlaylistEntities})};
Lye=function(Y){var b=Y.mainPlaylistDownloadStateEntity,w=[];if(!b)return w;for(var V=_.N(Object.keys(b)),H=V.next();!H.done;H=V.next()){var f=H.value;H=Fyu(Y,_.D7(f).entityId);var E=void 0;f=Number((E=b[f])==null?void 0:E.addedTimestampMillis);E=isNaN(f)?(0,_.gG)():f;H!==void 0&&w.push({downloadedPlaylistEntities:H,addedTimestampMillis:E})}return w};
S_g=function(Y){var b,w=(b=Y.mainPlaylistVideoEntity)!=null?b:{};return new Set(OiI(Y).reduce(function(V,H){V=V===void 0?[]:V;var f,E;H==null||(f=H.mainPlaylistEntity)==null||(E=f.videos)==null||E.forEach(function(U){var X;(U=(X=w[U])==null?void 0:X.video)&&V.push(U)});
return V},[]))};
ayg=function(Y){return"downloadedMusicPlaylistEntities"in Y};
rxb=function(Y){return"mainPlaylistEntity"in Y&&"mainPlaylistDownloadStateEntity"in Y};
zze=function(Y){return"videoEntity"in Y&&"channelEntity"in Y};
Wyv=function(Y){var b=Y.musicPlaylistDownloadMetadataEntity,w=[];if(!b)return w;for(var V=_.N(Object.keys(b)),H=V.next();!H.done;H=V.next()){H=H.value;a:{var f=Y,E=_.D7(H).entityId;if(E){var U=_.kt(f,"musicPlaylist",_.I8(E,"musicPlaylist"));f=_.kt(f,"musicPlaylistDownloadMetadataEntity",_.I8(E,"musicPlaylistDownloadMetadataEntity"));if(U&&f){U={musicPlaylistEntity:U,musicPlaylistDownloadStateEntity:f};break a}}U=void 0}f=void 0;H=Number((f=b[H])==null?void 0:f.addedTimestampMillis);H=isNaN(H)?(0,_.gG)():
H;U!==void 0&&w.push({downloadedMusicPlaylistEntities:U,addedTimestampMillis:H})}return w};
KyB=function(Y){var b=new Set;Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,"musicPlaylistEntity"in w&&"musicPlaylistDownloadStateEntity"in w){w=_.N(w.musicPlaylistEntity.tracks);for(var V=w.next();!V.done;V=w.next())b.add(V.value)}return b};
iiI=function(Y,b){if(b){var w=_.kt(Y,"musicTrack",_.I8(b,"musicTrack")),V=_.kt(Y,"musicArtist",_.I8(b,"musicArtist"))||{};if((Y=xML(Y,b))&&w&&V)return Object.assign({},{musicTrackEntity:w,musicArtistEntity:V},Y)}};
AxL=function(Y){var b=Y.musicTrackDownloadMetadataEntity,w=[];if(!b)return[];b=_.N(Object.keys(b));for(var V=b.next();!V.done;V=b.next()){var H=V.value;V=iiI(Y,_.D7(H).entityId);var f=void 0;H=Number((f=_.kt(Y,"musicTrackDownloadMetadataEntity",H))==null?void 0:f.addedTimestampMillis);f=isNaN(H)?(0,_.gG)():H;V!==void 0&&w.push({downloadedMusicEntities:V,addedTimestampMillis:f})}return w};
$MK=function(Y,b){if(!b)return[];if(Object.values(CMI).includes(b))return yxu(Y,b);b=_.I8(b,"musicPlaylist");var w;Y=(w=Y.musicPlaylist)==null?void 0:w[b];w=[];if(Y==null||!Y.tracks)return w;Y=_.N(Y.tracks);for(b=Y.next();!b.done;b=Y.next())(b=_.D7(b.value).entityId)&&w.push(b);return w};
yxu=function(Y,b){var w=new Set,V=Wyv(Y).map(function(f){return f.downloadedMusicPlaylistEntities});
V=KyB(V);V=_.N(V);for(var H=V.next();!H.done;H=V.next())(H=_.D7(H.value).entityId)&&w.add(H);return j$I(Y).downloadedMusicEntities.filter(function(f){var E;if((E=f.musicTrackEntity)!=null&&E.videoId){f=f.musicTrackEntity;if(E=b==="PPOM"?!0:!w.has(f.videoId))b:switch(f=f.musicVideoType,b){case "PPSE":E=f==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:E=f!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}f=E}else f=!1;return f}).map(function(f){var E;
return(E=f.musicTrackEntity)==null?void 0:E.videoId})};
j$I=function(Y){var b=AxL(Y).sort(function(w,V){return V.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return"downloadedMusicEntities"in w?w.downloadedMusicEntities:ayg(w)?w.downloadedMusicPlaylistEntities:{}});
Y=Wyv(Y).sort(function(w,V){return V.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return"downloadedMusicEntities"in w?w.downloadedMusicEntities:ayg(w)?w.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:b,downloadedMusicPlaylistEntities:Y}};
TLM=function(Y,b){b=_.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?$MK(Y,b):RzM(Y,b);if(!b.length)return"TRANSFER_STATE_UNKNOWN";b=b.map(function(w){return ezM(Y,w)});
return GQK(b)};
GQK=function(Y){var b=new Set(Y);if(b.has("TRANSFER_STATE_FAILED")&&b.size===1)return"TRANSFER_STATE_FAILED";b.delete("TRANSFER_STATE_FAILED");if(b.has("TRANSFER_STATE_UNKNOWN")&&b.size===1)return"TRANSFER_STATE_PRE_TRANSFER";b.delete("TRANSFER_STATE_UNKNOWN");if(b.has("TRANSFER_STATE_PRE_TRANSFER")&&b.size===1||b.size===0)return"TRANSFER_STATE_PRE_TRANSFER";Y=b.has("TRANSFER_STATE_TRANSFERRING");b=b.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return Y||b?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
el=function(Y){var b=Y.mainVideoDownloadStateEntity,w=[];if(!b)return[];b=_.N(Object.keys(b));for(var V=b.next();!V.done;V=b.next()){var H=V.value;if(!q_b(Y,_.D7(H).entityId)){V=MV(Y,_.D7(H).entityId);var f=void 0,E=void 0;H=(E=Number((f=_.kt(Y,"mainVideoDownloadStateEntity",H))==null?void 0:f.addedTimestampMillis))!=null?E:(0,_.gG)();V!==void 0&&w.push({downloadedVideoEntities:V,addedTimestampMillis:H})}}return w};
JxK=function(Y){return el(Y).sort(function(b,w){return w.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities})};
_.Ywr=function(Y){var b=S_g(Y),w=_.p8(Y),V=ZiI(Y),H=el(Y).filter(function(E){var U,X;if((E==null?void 0:(U=E.downloadedVideoEntities)==null?void 0:(X=U.transferEntity)==null?void 0:X.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var I,k;E=E==null?void 0:(I=E.downloadedVideoEntities)==null?void 0:(k=I.videoEntity)==null?void 0:k.key;return _.q("kevlar_use_library_entity")?E&&(V.has(E)||w[E]):E&&!b.has(E)}),f=Lye(Y).filter(function(E){return TLM(Y,E.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Bt(H),_.Bt(f)).sort(function(E,U){return U.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return uLb(E)})};
bLG=function(Y,b){if(b&&roB(Y,b)){var w,V,H=(V=(w=_.kt(Y,"playbackData",_.I8(b,"playbackData")))!=null?w:void 0)==null?void 0:V.playerResponseJson;if(H){try{var f=JSON.parse(H);var E=_.kt(Y,"transfer",_.I8(b,"transfer")),U=pUv(Y,b);U&&(f=Object.assign({},f,{playerConfig:Object.assign({},f.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+U*1E3}}})}));f.cotn=E==null?void 0:E.cotn}catch(X){}return f}}};
_.HLM=function(Y){var b,w,V;Y=(V=(w=((b=Y.downloadsPageViewConfigurationEntity)!=null?b:{})[waG])==null?void 0:w.smartDownloadsOptInBannerVisibility)!=null?V:{};var H;return(H=_.v(Y,V7G))!=null?H:{}};
_.p8=function(Y){var b,w,V;Y=(V=(w=((b=Y.mainDownloadsListEntity)!=null?b:{})[_.gUB])==null?void 0:w.downloads)!=null?V:[];b={};w=_.N(Y);for(V=w.next();!V.done;V=w.next())Y=void 0,b[(Y=V.value.videoItem)!=null?Y:""]=!0;return b};
fdK=function(Y){var b=_.p8(Y);if(Object.keys(b).length===0)return!1;var w=Y.mainVideoEntity;if(!w)return!0;w=_.N(Object.keys(w));for(var V=w.next();!V.done;V=w.next()){V=V.value;var H=_.D7(V).entityId;if(b[V]&&!q_b(Y,H))return!1}return!0};
_.Of=function(Y){var b=_.p8(Y);return el(Y).sort(function(w,V){return w.addedTimestampMillis-V.addedTimestampMillis}).map(function(w){return w.downloadedVideoEntities}).filter(function(w){var V;
return(w=w==null?void 0:(V=w.videoEntity)==null?void 0:V.key)&&!!b[w]})};
uLb=function(Y){return"downloadedVideoEntities"in Y?Y.downloadedVideoEntities:"downloadedPlaylistEntities"in Y?Y.downloadedPlaylistEntities:{}};
NYb=function(Y){var b=_.p8(Y),w=S_g(Y),V=el(Y).filter(function(H){var f,E;return(H=H==null?void 0:(f=H.downloadedVideoEntities)==null?void 0:(E=f.videoEntity)==null?void 0:E.key)&&!b[H]&&!w.has(H)});
Y=Lye(Y);return[].concat(_.Bt(V),_.Bt(Y)).sort(function(H,f){return f.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return uLb(H)})};
_.tr=function(Y){if(!_.q("kevlar_use_library_entity"))return NYb(Y);var b=el(Y).filter(function(V){var H,f;if(H=V=V==null?void 0:(H=V.downloadedVideoEntities)==null?void 0:(f=H.videoEntity)==null?void 0:f.key){var E,U,X;H=((U=(E=Y.mainDownloadsListEntity)==null?void 0:E[PMv])==null?0:(X=U.downloads)==null?0:X.length)?ZiI(Y).has(V):!1}return H}),w=Lye(Y);
return[].concat(_.Bt(b),_.Bt(w)).sort(function(V,H){return H.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return uLb(V)})};
EUG=function(Y){var b=_.p8(Y),w=S_g(Y);return JxK(Y).filter(function(V){var H;return(V=V==null?void 0:(H=V.videoEntity)==null?void 0:H.key)&&!b[V]&&!w.has(V)})};
cIv=function(Y){if(!_.q("kevlar_use_library_entity"))return EUG(Y);var b=_.p8(Y),w=ZiI(Y);return JxK(Y).filter(function(V){var H;return(V=V==null?void 0:(H=V.videoEntity)==null?void 0:H.key)&&!b[V]&&w.has(V)})};
UmI=function(Y,b){b=_.I8(b,"settingEntity");var w,V,H;return!!((H=(V=((w=Y.settingEntity)!=null?w:{})[b])==null?void 0:V.settingOptionValue)!=null?H:{}).boolValue};
_.R8=function(Y){var b=_.Of(Y);if(aWB(b))return 0;var w=[];b=_.N(b);for(var V=b.next();!V.done;V=b.next()){V=V.value;var H=void 0,f=void 0;if((H=V)==null?0:(f=H.videoEntity)==null?0:f.key)H=_.D7(V.videoEntity.key).entityId,V=Y,H=_.I8(H,"mainVideoDownloadStateEntity"),V=_.kt(V,"mainVideoDownloadStateEntity",H),(V=Number(V==null?void 0:V.addedTimestampMillis))&&w.push(V)}return Math.max.apply(Math,_.Bt(w))};
_.db=function(Y){return Y.ui.richGridMiniMode};
_.FZ=function(Y){return Y.ui.richGridItemsPerRow};
_.XaG=function(Y){return Y.ui.richGridSlimItemsPerRow};
_.Dm6=function(Y){return Y.ui.guideIsExpanded};
_.L8=function(Y){return Y.ui.miniplayerIsActive};
_.mmL=function(Y){return Y.ui.singleOptionSurveyIsActive};
_.Sl=function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.oUv=function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.Idb=function(Y){return Y.ui.inlinePreviewIsActive};
_.kkM=function(Y){return Y.ui.inlinePreviewIsEnabled};
_.ldK=function(Y){return Y.ui.miniplayerPlaybackState};
hxM=function(Y){return Y.ui.isOnline};
_.xmb=function(Y){return Y.ui.frostedGlassMode};
_.a8=function(Y,b){return BLg(Y.entities,b)};
_.rb=function(Y,b){return TLM(Y.entities,b)};
qwa=function(Y,b){var w;if(b){var V;Y=(V=_.kt(Y.entities,"offlineVideoPolicy",_.I8(b,"offlineVideoPolicy")))==null?void 0:V.action}else Y=void 0;return(w=Y)!=null?w:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
sUG=function(Y,b){var w;b?(Y=_.kt(Y.entities,"offlineVideoPolicy",_.I8(b,"offlineVideoPolicy")),Y=Number(Y==null?void 0:Y.expirationTimestamp)):Y=void 0;return(w=Y)!=null?w:0};
_.QUg=function(Y){return _.n8(Y.entities).length};
vUt=function(Y,b){return MV(Y.entities,b)};
PGI=function(Y,b){return Fyu(Y.entities,b)};
zx=function(Y,b){return(Y=MV(Y.entities,b))?_.dwa([Y]):0};
_.ZLB=function(Y,b){var w=_.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(w){var V=Y.entities;var H=$MK(V,b);if(H.length){var f=[];H=_.N(H);for(var E=H.next();!E.done;E=H.next())(E=iiI(V,E.value))&&f.push(E);V=f}else V=[]}else V=dMa(Y.entities,b);var U;if(w){var X=Y.entities;b?(b=_.I8(b,"musicPlaylist"),X=(U=X.musicPlaylist)==null?void 0:U[b],U=X!=null&&X.tracks?X.tracks.length:0):U=0}else U=Y.entities,b?(b=_.I8(b,"mainPlaylistEntity"),U=(X=U.mainPlaylistEntity)==null?void 0:X[b],U=U!=null&&U.videos?
U.videos.length:0):U=0;return V.length!==U?0:V?Fkv(V):0};
_.BYr=function(Y){return Y.download.isLeaderTab};
_.nUM=function(Y,b,w){if(!b&&w){var V=Y.entities;if(w){var H=SGt(w),f,E;b=(E=(f=_.kt(V,"offlineabilityEntity",_.I8(H,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?E:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else f=Y.entities,b?(E=SGt(b),b=(H=(V=_.kt(f,"offlineabilityEntity",_.I8(E,"offlineabilityEntity")))==null?void 0:V.addToOfflineButtonState)!=null?H:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return b};
M7a=function(Y,b){Y=Y.entities;if(b){b=SGt(b);var w,V;b=(V=(w=_.kt(Y,"offlineabilityEntity",_.I8(b,"offlineabilityEntity")))==null?void 0:w.addToOfflineButtonState)!=null?V:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else b="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return b};
_.exI=function(Y){var b=Y.entities;Y=hxM(Y);var w=UmI(b,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.q("kevlar_modern_downloads_page")&&w)var V=!1;else{var H,f;b=(f=(H=((V=b.downloadsPageViewConfigurationEntity)!=null?V:{})[waG])==null?void 0:H.smartDownloadsOptInBannerVisibility)!=null?f:{};V=Y?!!b.visibleWithConnection:!!b.visibleWithoutConnection}return V};
_.paq=function(Y){return UmI(Y.entities,"SMART_DOWNLOADS_ENABLED")};
_.OLa=function(Y){return fdK(Y.entities)};
t7G=function(Y){return _.Of(Y.entities).every(function(b){var w;return(b==null?void 0:(w=b.transferEntity)==null?void 0:w.transferState)&&!RiL.includes(b.transferEntity.transferState)})};
_.Rxv=function(Y,b){return q_b(Y.entities,b)};
dmu=function(Y,b){if(b){var w,V;Y=(V=(w=_.kt(Y.entities,"downloadStatusEntity",_.I8(b,"downloadStatusEntity")))==null?void 0:w.downloadState)!=null?V:"DOWNLOAD_STATE_UNKNOWN"}else Y="DOWNLOAD_STATE_UNKNOWN";return Y};
W$=function(Y,b){return pUv(Y.entities,b)};
adt=function(Y){Y=_.Fsu(Y);var b=Y.hours===void 0?0:Y.hours,w=Y.minutes===void 0?0:Y.minutes,V=Y.seconds===void 0?0:Y.seconds,H=b>0;Y=[];H&&(b=_.Lsu(b),Y.push(b));b=H;b=b===void 0?!1:b;w=(["af","be","lt"].includes(_.K8)||b)&&w<10?Swu().format(w):(new Intl.NumberFormat("en-u-nu-latn")).format(w);Y.push(w);w=Swu().format(V);Y.push(w);w=":";"da fi id si sr sr-Latn".split(" ").includes(_.K8)&&(w=".");return Y.join(w)};
_.Fsu=function(Y){var b=Y.hours||0,w=Y.minutes||0,V=Y.seconds||0;b=V+w*60+b*3600+(Y.days||0)*86400+(Y.weeks||0)*604800+(Y.months||0)*2629800+(Y.years||0)*31557600;if(b<=0)return{hours:0,minutes:0,seconds:0};Y=b;b=Math.floor(Y/3600);Y%=3600;w=Math.floor(Y/60);V=Math.floor(Y%60);return{hours:b,minutes:w,seconds:V}};
_.Lsu=function(Y){Y=(new Intl.NumberFormat("en-u-nu-latn")).format(Y);var b=["fr"],w="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(_.K8)?Y.replace(",","\u00a0"):b.includes(_.K8)?Y.replace(",","\u202f"):w.includes(_.K8)?Y.replace(",","."):Y};
Swu=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
rIt=function(Y){try{return(new _.i3(5)).format(Y)}catch(b){}};
Ar=function(Y){return{thumbnailOverlayDownloadingRenderer:{state:Y}}};
zxG=function(Y){if(Y=rIt(Y))return{thumbnailOverlaySidePanelRenderer:{text:_.NV(Y),icon:{iconType:"PLAYLISTS"}}}};
WsG=function(){var Y=_.sa("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.NV(Y),icon:{iconType:"PLAY_ALL"}}}};
KsK=function(Y){Y=_.C8(Y,2);return _.K8!=="ru"&&_.K8!=="es_419"&&_.K8!=="es-419"&&_.K8!=="es"&&_.K8!=="es_US"&&_.K8!=="es-US"&&_.K8!=="fr"&&_.K8!=="pl"&&_.K8!=="it"&&_.K8!=="nl"&&_.K8!=="uk"&&_.K8!=="fr_CA"&&_.K8!=="fr-CA"||Y===""?Y:Y[0].toLocaleUpperCase()+Y.substring(1)};
AIq=function(Y){return function(b){var w=Y(),V=_.C8(b,w.dateFormat);b=_.C8(b,w.timeFormat);var H=iLI.DATETIMEFORMATS[w.joinerStyle];H=H.replace(/'(?!')/g,"");H=H.replace("{0}",b);H=H.replace("{1}",V);return w.capitalize(H)}};
CGK=function(Y){return Y?typeof Y.seconds==="string"&&(Y.nanos===void 0||typeof Y.nanos==="number"):!1};
yIB=function(Y){return new Date(Number(Y.seconds)*1E3+(Y.nanos||0)*1E-6)};
_.C8=function(Y,b){if(typeof Y.getTime==="function")Y={date:Y};else if(CGK(Y))Y={date:yIB(Y)};else if(typeof CGK(Y.timestamp)&&typeof Y.i18nInternalSecondsEastOfUtc==="number")Y={date:yIB(Y.timestamp),timeZone:yK(-Y.i18nInternalSecondsEastOfUtc/60)};else throw Error("Ef`"+JSON.stringify(Y));var w=Y;Y=w.date;w=w.timeZone;b=$mt(b).format(Y,w);_.K8==="zh-TW"&&(Y=w?Number($mt("H").format(Y,w)):Y.getHours(),b=Y<5?b.replace("\u4e0a\u5348","\u51cc\u6668"):Y<8?b.replace("\u4e0a\u5348","\u65e9\u4e0a"):Y<12?
b.replace("\u4e0a\u5348","\u4e0a\u5348"):Y<13?b.replace("\u4e0b\u5348","\u4e2d\u5348"):Y<19?b.replace("\u4e0b\u5348","\u4e0b\u5348"):b.replace("\u4e0b\u5348","\u665a\u4e0a"));return b};
$mt=function(Y){if(jUL.has(Y))return jUL.get(Y);var b=Gkr(Y);b=TYe(b);JIK!==!0&&(JIK=!0);uKe=!0;uKe=!1;b=new $t(b,iLI);jUL.set(Y,b);return b};
Gkr=function(Y){return(new $t(Y,iLI)).patternParts_.map(function(b){return b.type===0?"'"+b.text+"'":b.text}).join("")};
TYe=function(Y){return _.K8==="en"||_.K8==="es_US"||_.K8==="es-US"?Y:Y.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(b,w,V){return"H".repeat(w.length)+V})};
Nwv=function(Y,b){YLv||(_.jl=_.bpq,YLv=new wBI);var w=YLv;a:if(Y=VFG(Y),b=VFG(b||new Date),Y>b)w=Y.getTime()-b.getTime()>6048E5?_.C8(Y,1):Hpe(Y);else{for(var V=0;gVu(Y,12*(V+1))<b;)++V;if(V>0)w=w.format(-V,0);else{for(V=0;gVu(Y,V+1)<b;)++V;if(V>0)w=w.format(-V,2);else{Y=b.getTime()-Y.getTime();b=_.N(fCM);for(V=b.next();!V.done;V=b.next()){V=V.value;var H=V.unit,f=Math.floor(Y/V.unitDuration);if(f>=(V.threshold===void 0?1:V.threshold)){w=w.format(-f,H);break a}}w=w.format(-0,7)}}}return w};
VFG=function(Y){if(typeof Y.getTime==="function")return Y;if(CGK(Y))return yIB(Y);throw Error("Ff`"+JSON.stringify(Y));};
gVu=function(Y,b){for(var w=0,V;;++w)if(V=new Date(Y.getFullYear(),Y.getMonth()+b,Y.getDate()-w,Y.getHours(),Y.getMinutes(),Y.getSeconds()),V.getMonth()===(Y.getMonth()+b)%12)return V};
_.Gx=function(Y){return{runs:[{text:Y}]}};
_.Tx=function(Y){if(Y&&Y.simpleText)return Y.simpleText;var b="";if(Y&&Y.runs)for(var w=0;w<Y.runs.length;w++)Y.runs[w].text&&(b+=Y.runs[w].text);return b};
c4L=function(Y,b,w,V){return Y.videoEntity&&!Y.policyEntity&&w!=="DOWNLOAD_STATE_FAILED"?[Ar("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:P$(Y.policyEntity)&&b!=="TRANSFER_STATE_FAILED"&&b!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?b==="TRANSFER_STATE_PAUSED_BY_USER"?[Ar("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Z7(b)?[Ar("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Y.videoEntity.lengthSeconds?EVK(Y.videoEntity.lengthSeconds,V):[]:
[Ar("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
EVK=function(Y,b){var w=[{thumbnailOverlayTimeStatusRenderer:{text:_.NV(adt({seconds:Y})),style:"DEFAULT"}}];b&&(Y=b<=0||Y<=0?0:b>=Y?100:Math.ceil(b*100/Y),Y>0&&w.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:Y}}));return w};
UPg=function(Y,b,w,V,H){if(b==="TRANSFER_STATE_UNKNOWN"||!Y)return{};if(_.Z7(b)||b==="TRANSFER_STATE_PRE_TRANSFER")var f=[Ar("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var E,U;if(b==="TRANSFER_STATE_COMPLETE"&&((E=Y.mainPlaylistEntity)==null?0:(U=E.videos)==null?0:U.length)){if(_.q("web_modern_collections_v2")){var X;var I=(f=Y.mainPlaylistEntity)==null?void 0:(X=f.videos)==null?void 0:X.length;f=(f=rIt(I))?{thumbnailOverlayBottomPanelRenderer:{text:_.NV(f),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var k;f=zxG((I=Y.mainPlaylistEntity)==null?void 0:(k=I.videos)==null?void 0:k.length)}var l;f=[WsG(),Object.assign({},(l=f)!=null?l:{})]}else f=[]}l=f;a:if(b==="TRANSFER_STATE_PRE_TRANSFER")w=Ef(_.sa("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE")w=Ef(_.sa("WAITING_TO_DOWNLOAD"));else if(_.Z7(b))w=Math.floor(w*100).toString(),w=Ef(_.sa("DOWNLOADING_PERCENT",{percent:w},"Downloading... "+w+"%"));else{if(V&&(_.q("playlist_is_offline_selector_killswitch")&&
(H=_.fH().resolve(_.jI).isNetworkAvailable()),H)){w=i9I(_.sa("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),W0t(V));break a}w=void 0}b=b==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.sa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},l.length?{thumbnailOverlays:l}:{},w?{viewPlaylistText:w}:{viewPlaylistText:_.Gx("")},b.length?{badges:b}:{})};
XBM=function(Y,b,w,V,H,f){if(b==="TRANSFER_STATE_UNKNOWN"||!Y)return{};if(V==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var E=c4L(Y,b,V);if(Y.videoEntity&&!Y.policyEntity&&V!=="DOWNLOAD_STATE_FAILED"){var U=_.sa("WAITING_TO_DOWNLOAD");if(U)return{shortViewCountText:_.Gx(U),publishedTimeText:void 0,thumbnailOverlays:E}}if(!P$(Y.policyEntity)){f=Y.policyEntity&&!Lk6(Y.policyEntity)?_.sa("DOWNLOAD_EXPIRED",{},"Download expired"):
_.sa("TRANSFER_FAILED",{},"Download failed");var X;if((X=Y.policyEntity)==null?0:X.shortMessageForDisabledAction)f=Y.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Ef(f),publishedTimeText:void 0,thumbnailOverlays:E}}if(b==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Gx(_.sa("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:E};if(b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Gx(_.sa("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:E};if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(X=_.sa("WAITING_TO_DOWNLOAD"),V==="DOWNLOAD_STATE_PAUSED"&&(X=_.sa("DOWNLOAD_PAUSED",{},"Download paused")),X))return{shortViewCountText:_.Gx(X),publishedTimeText:void 0,thumbnailOverlays:E};if(_.Z7(b))return Y=Math.floor(w*100).toString(),{shortViewCountText:_.Gx(_.sa("DOWNLOADING_PERCENT",{percent:Y},"Downloading... "+Y+"%")),publishedTimeText:void 0,thumbnailOverlays:E};b=void 0;Y.videoEntity.publishedTimestampMillis&&
(b=new Date,H&&(b=new Date(H)),b=Ef(Nwv(new Date(Number(Y.videoEntity.publishedTimestampMillis)),b)));H=[];_.q("kevlar_woffle_badge_killswitch")||(H=[{metadataBadgeRenderer:{label:_.sa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var I;Y=Ef((I=Y.videoEntity.localizedStrings)==null?void 0:I.viewCount);return Object.assign({},f?{shortViewCountText:void 0}:{shortViewCountText:Y},f?{}:{publishedTimeText:b},{badges:H,thumbnailOverlays:E})};
mPb=function(Y,b){Y=Y===void 0?DPt:Y;switch(b.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:b.payload.playlistId,inviteLinkURL:b.payload.inviteLinkUrl};default:return Y}};
ICu=function(Y,b){Y=Y===void 0?oVb:Y;switch(b.type){case "SET_CURRENT_FORM_ID":return b=b.payload.formId,Y.currentFormId===b?Y:{currentFormId:b,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var w=b.payload;b=w.groupId;w=w.command;if(Y.currentFormId){var V=Object.assign({},Y.commandsMap);V[b]=w;Y=Object.assign({},Y,{commandsMap:V})}return Y;case "RESET_COMMAND_MAP":return Object.assign({},Y,{commandsMap:{}});default:return Y}};
lCL=function(Y,b){Y=Y===void 0?kFM:Y;switch(b.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},Y,{guideIsExpanded:b.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},Y,{scrollAtTop:b.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},Y,{guideIsVisibleButNotPersistent:b.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},Y,{miniplayerIsActive:b.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},Y,{singleOptionSurveyIsActive:b.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},Y,{slimlineSurveyRatingSelectedIndex:b.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},Y,{richGridMiniMode:b.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},Y,{richGridItemsPerRow:b.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},Y,{richGridSlimItemsPerRow:b.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},Y,{richGridContainerWidth:b.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},Y,{richGridStyle:b.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},Y,{currentPageType:b.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},Y,{inlinePreviewIsActive:b.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},Y,{inlinePreviewIsEnabled:b.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},Y,{darkModeIsEnabled:b.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
Y,{miniplayerPlaybackState:b.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},Y,{tabGesturesIsActive:b.payload});case "SET_ONLINE_STATUS":return Object.assign({},Y,{isOnline:b.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},Y,{chipBarIsSticky:b.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},Y,{frostedGlassMode:b.payload});default:return Y}};
xPb=function(Y,b){Y=Y===void 0?hJa:Y;switch(b.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},Y,{transcription:b.payload});case "SET_OVERLAY_STATE":return Object.assign({},Y,{overlay:b.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return Y}};
eJu=function(){return kL(Object.assign({},{continuation:qLM,entities:fWq,download:sCu,reportChannelAbuse:QCr,share:vVb,talkToRecs:Py6,ui:lCL,voiceSearch:xPb,watch:Zpa,ypc:Bw6,shorts:nVB,radioButtonGroup:ICu,collabInviteLink:mPb},MFI))};
tFI=function(){return _.q("web_player_entities_middleware")?new Jr(eJu(),[pBI,Opr]):new Jr(eJu(),[pBI])};
_.u3=function(){RJ6||(RJ6=tFI());return RJ6};
dPI=function(Y,b,w){if(Y.length)return{titleText:_.NV(b!=null?b:_.sa("DOWNLOADS",void 0,"Downloads")),contents:Y.map(function(V){var H=V.videoEntity;V={videoId:H.videoId,title:Ef(H.title),shortBylineText:Ef(V.channelEntity.title),thumbnail:H.thumbnail};var f=H.videoId?W$(_.u3().getState(),H.videoId):0;H.videoId&&w?V.navigationEndpoint=_.f8(H.videoId,w,void 0,void 0,f):H.videoId&&(V.navigationEndpoint=zAb(H.videoId,f,H.lengthSeconds));H.lengthSeconds&&(V.thumbnailOverlays=EVK(H.lengthSeconds,f));return{playlistPanelVideoRenderer:V}}),
totalVideos:Y.length}};
FoI=function(Y){return(Y=(0,_.BL.getValueByKeys)(Y,"playlistId"))?{playlistId:Y}:null};
LoG=function(){return{}};
SLv=function(Y,b){return new _.hh(function(w,V){Y.then(function(H){if(H){if(H=b(H))return w(H);V()}},V)})};
aCv=function(Y){var b,w,V,H=(b=Y.contents)==null?void 0:(w=b.twoColumnWatchNextResults)==null?void 0:(V=w.autoplay)==null?void 0:V.autoplay,f,E,U;b=(f=Y.contents)==null?void 0:(E=f.twoColumnWatchNextResults)==null?void 0:(U=E.playlist)==null?void 0:U.playlist;return H&&b&&b.playlistId?{rawResponse:Y,autoplayRenderer:H,playlistPanelRenderer:b,playlistId:b.playlistId}:null};
zJK=function(Y){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(Y.length===1)return Y[0];var w=r4b[b];if(w){w=new RegExp(w);for(var V=_.N(Y),H=V.next();!H.done;H=V.next())if(H=H.value,w.exec(H))return H}var f=[];Object.entries(r4b).forEach(function(E){var U=_.N(E);E=U.next().value;U=U.next().value;b!==E&&f.push(U)});
w=new RegExp(f.join("|"));Y.sort(function(E,U){return E.length-U.length});
V=_.N(Y);for(H=V.next();!H.done;H=V.next())if(H=H.value,!w.exec(H))return H;return Y[0]};
_.Yy=function(Y){return"/youtubei/v1/"+zJK(Y)};
_.bW=function(Y){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:Y}}}}};
_.wr=function(Y){return _.bW(_.Gx(Y))};
Wou=function(Y,b){var w={mode:"NORMAL"};Y&&(w.autoplayVideo=Y.navigationEndpoint,w.nextButtonVideo=Y.navigationEndpoint);b&&(w.previousButtonVideo=b.navigationEndpoint);return w};
A4I=function(Y,b,w){if(!w||!w.sets)return{sets:[Wou(Y,b)]};var V=w.sets.find(function(E){return E.mode==="NORMAL"}),H=(0,_.BL.unsafeClone)(w);
if(!V)return H.sets.push(Wou(Y,b)),H;if(!Y)return w;V=_.BL.getValueByKeys.apply(null,[V].concat(_.Bt(KoL)));var f=_.BL.getValueByKeys.apply(null,[Y].concat(_.Bt(ipB)));if(V===f)return w;H.sets=H.sets.filter(function(E){return E.mode!=="NORMAL"});
H.sets.push(Wou(Y,b));return H};
Cyg=function(Y){return!!Y.playlistPanelVideoRenderer&&!Y.playlistPanelVideoRenderer.unplayableText};
y4b=function(Y){return!!Y.playlistPanelVideoRenderer&&!!Y.playlistPanelVideoRenderer.title};
$PB=function(Y,b){if(b.contents&&!(Y>=b.contents.length)&&(Y=b.contents.slice(Y).find(Cyg)))return Y.playlistPanelVideoRenderer};
jCu=function(Y,b){if(b.contents)return(b=b.contents.find(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId===Y}))?b.playlistPanelVideoRenderer:void 0};
GF6=function(Y,b){return b.contents?b.contents.findIndex(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId===Y}):-1};
Twr=function(Y,b){return b.contents?b.contents.findIndex(function(w){return!!w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.playlistSetVideoId===Y}):-1};
J4B=function(Y,b){Y.contents&&b!==-1&&Y.contents.splice(b,1).length===1&&Y.totalVideos!==void 0&&(--Y.totalVideos,delete Y.videoCountText)};
_.u9L=function(Y){var b=[];if(!Y||!Y.contents)return b;Y=_.N(Y.contents);for(var w=Y.next();!w.done;w=Y.next())w=w.value,w.playlistPanelVideoRenderer&&w.playlistPanelVideoRenderer.videoId&&b.push(w.playlistPanelVideoRenderer.videoId);return b};
_.Yqv=function(Y){if(Y&&Y.contents)return(Y=Y.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&!!b.playlistPanelVideoRenderer.selected})||Y.contents[Y.currentIndex])?Y.playlistPanelVideoRenderer:void 0};
bZM=function(Y,b,w,V,H,f,E){H=H===void 0?!1:H;f=f===void 0?!1:f;E=E===void 0?!1:E;if(Y.contents&&Y.contents.length!==0){V&&(Y.contents=Y.contents.filter(V));V=Y.contents.length;for(var U=0;U<V;U++){var X=Y.contents[U].playlistPanelVideoRenderer;X&&(U===b?(f&&delete X.menu,X.indexText=_.Gx("\u25b6")):H||Y.isInfinite||X.indexText===void 0?delete X.indexText:X.indexText=_.Gx((U+1+w).toString()))}Y.currentIndex=b+w;E&&(delete Y.videoCountText,Y.totalVideos=V)}};
_.VU=function(Y){Y=w5G(Y);if(Y){var b=Y.length;var w=-91%b;w<0&&(w=b+w);Y=Y.slice(b-w)+Y.slice(0,b-w)}else Y="";w="";for(b=0;b<Y.length&&Y[b]!==VHI;b++)w+=Y[b];return w};
_.HZu=function(Y,b){var w=document.body;b=b===void 0?function(U){return U}:b;
var V,H=null;Y=_.N(Y);for(V=Y.next();!V.done;V=Y.next()){var f=V.value;V=void 0;var E=(V=f[2])!=null?V:"div";V=document.createElement(E);H||(H=V);E=f[0];f=f[1];E&&(V.id=b(E));if(f)for(f=_.N(f),E=f.next();!E.done;E=f.next())V.classList.add(b(E.value));w.appendChild(V);w=V}return[H,w]};
gca=function(Y,b){for(var w="",V=0;V<b;V++)w+=Y.charAt(Math.floor(Math.random()*Y.length));return w};
HH=function(Y){return gca("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",Y)};
gr=function(Y){return gca("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",Y)};
fX=function(Y){return gca("0123456789",Y)};
NC=function(){var Y=performance.now(),b=new Date;var w="2."+b.getFullYear()+String(b.getMonth()+1).padStart(2,"0")+String(b.getDate()).padStart(2,"0");for(var V,H=Math.floor(Math.random()*11)+15,f=[],E=0;E<H;E++)f.push(Math.floor(Math.random()*26476865)+24547720);V=f.join(",");var U=HH(10),X=HH(100),I=HH(102),k=HH(106),l=HH(108),x=HH(11),Q=HH(1140),Z=HH(123),e=HH(14),O=HH(16),L=HH(1900),r=HH(23),C=HH(26),W=HH(34),y=HH(397),G=HH(44),Nr=HH(5),o6=HH(72),lI=HH(74),Zt=HH(75),eL=HH(88),OM=HH(91),iI="rr2---sn-q4fl6nde rr2---sn-q4flrnss rr4---sn-q4fl6nd6 rr5---sn-q4fzen7s rr2---sn-q4flrner rr3---sn-q4fzen7y rr2---sn-4g5e6nsk rr3---sn-q4fl6nz7 rr1---sn-q4fl6nde rr2---sn-hgn7ynek rr2---sn-q4flrnez rr2---sn-4g5lznez rr4---sn-q4fl6nsd rr3---sn-hgn7yn7l rr4---sn-5hne6n6e rr1---sn-aigzrnz7 rr4---sn-q4fl6ndl rr3---sn-hgn7rn7r rr2---sn-q4flrnsd rr2---sn-aigl6nze".split(" ");
var rB=iI[Math.floor(Math.random()*iI.length)];var Tj=(new Date("2010-01-01")).getTime();var J_=(new Date(Tj+Math.random()*((new Date).getTime()-Tj))).toISOString().split("T")[0];for(var B9,ok=[],Ut=0;Ut<4;Ut++)ok.push(Math.floor(Math.random()*100));B9=ok.join(".");var wt=Number(fX(5)),X$=Number(fX(6)),Dg=Number(fX(7)),eQ=Number(fX(9)),cg=fX(1),qQ=fX(10),t_=fX(16),$s=fX(19),P9=fX(2),$d=fX(20),Kh=fX(21),yr=fX(3),gU=fX(4),rU=fX(5),xs=fX(6),xd=fX(7),MQ=fX(8),DA=fX(9);var Eu=gca("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var EX=[gr(5),gr(5),gr(5)].join("%2C"),q6=[fX(3),fX(5),fX(5)].join("%2C"),W1=gr(0),W9=gr(1),tO=gr(10),uQ=gr(108),Vt=gr(11),dl=gr(12),Lh=gr(13),ea=gr(14),uN=gr(15),hz=gr(16),KM=gr(17),Qv=gr(18),La=gr(19),Wg=gr(2),D5=gr(20),NF=gr(22),p3=gr(23),md=gr(24),h_=gr(266),kd=gr(3),qF=gr(30),mv=gr(34),fo=gr(35),xH=gr(36),Y2=gr(4),FD=gr(40),sx=gr(43),A6=gr(47),eZ=gr(5),Ae=gr(6),gt=gr(7),a7=gr(75),rt=gr(8),YF=gr(80),Qe=gr(9),ow="https://www."+gr(12)+".com",pk={},Od={},Fs={},CQ6={},L$={},us={},Ye={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:V}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:w},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+gr(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:w},{key:"client.name",value:"WEB"},{key:"client.fexp",value:V}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Kh+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+gr(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:FD,ypcGetOfflineUpsellEndpoint:{params:YF}},trackingParams:fo+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&cnr="+P9+"&ratebypass=yes&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&c=WEB&txp="+xd+"&n="+O+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:X$,width:640,height:360,lastModified:t_,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:xd,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+q6+"&mn="+
EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&cnr="+P9+"&ratebypass=yes&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&c=WEB&txp="+xd+"&n="+O+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+uQ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:X$,width:1280,
height:720,lastModified:t_,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:xd,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+q6+"&mn="+EX+"&ms="+
EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+DA+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&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="+l,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Dg,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:DA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Dg,approxDurationMs:xd},{itag:248,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+q6+"&mn="+EX+"&ms="+EX+"&mv="+
W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fwebm&ns="+md+"&gir="+kd+"&clen="+DA+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:Dg,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:DA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Dg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:399,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+DA+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&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="+l,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Dg,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:DA,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Dg,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:136,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+DA+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Dg,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:DA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:X$,approxDurationMs:xd},{itag:247,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+q6+"&mn="+
EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fwebm&ns="+md+"&gir="+kd+"&clen="+DA+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:Dg,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:DA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:398,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+DA+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Dg,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:DA,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:135,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:X$,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:X$,approxDurationMs:xd},{itag:244,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+q6+"&mn="+
EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fwebm&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+uQ+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:X$,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:397,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&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="+l,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:X$,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:134,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:X$,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:X$,highReplication:!0,approxDurationMs:xd},{itag:243,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fwebm&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:X$,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:396,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:X$,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:133,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:X$,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:X$,approxDurationMs:xd},{itag:242,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+q6+"&mn="+
EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fwebm&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:X$,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:395,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:X$,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:X$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:160,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:X$,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:wt,approxDurationMs:xd},{itag:278,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+q6+"&mn="+
EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fwebm&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+l+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'video/webm; codecs="vp9"',bitrate:X$,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:wt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:394,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&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="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=video%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&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="+l,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:wt,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:wt,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:xd},{itag:140,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=audio%2Fmp4&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:X$,
initRange:{start:"0",end:"631"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:X$,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:xd,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+
P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=audio%2Fwebm&ns="+md+"&gir="+kd+"&clen="+xd+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:wt,initRange:{start:"0",end:"265"},indexRange:{start:yr,
end:gU},lastModified:t_,contentLength:xd,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:wt,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:xd,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=audio%2Fwebm&ns="+
md+"&gir="+kd+"&clen="+xd+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+xd+"&n="+hz+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+l,mimeType:'audio/webm; codecs="opus"',bitrate:wt,initRange:{start:"0",end:"265"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:xd,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:wt,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:xd,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+rB+".googlevideo.com/videoplayback?expire="+qQ+"&ei="+r+"&ip="+B9+"&id=o-AF"+sx+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+q6+"&mn="+EX+"&ms="+EX+"&mv="+W9+"&mvi="+cg+"&pl="+P9+"&initcwndbps="+xd+"&siu="+cg+"&spc="+G+"&vprv="+cg+"&svpuc="+cg+"&mime=audio%2Fwebm&ns="+md+"&gir="+kd+"&clen="+MQ+"&dur="+MQ+"&lmt="+t_+"&mt="+qQ+"&fvip=3&keepalive="+kd+"&c=WEB&txp="+
xd+"&n="+hz+"&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="+l,mimeType:'audio/webm; codecs="opus"',bitrate:X$,initRange:{start:"0",end:"265"},indexRange:{start:yr,end:gU},lastModified:t_,contentLength:MQ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:X$,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:xd,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="+DA+"&docid="+x+"&ei="+r+"&feature="+U+"&fexp="+W1+"&ns="+Wg+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+W9+"&el="+tO+"&len="+gU+"&of="+NF+
"&uga="+P9+"&vm="+h_},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+DA+"&docid="+x+"&ei="+r+"&feature="+U+"&fexp="+W1+"&ns="+Wg+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+W9+"&el="+tO+"&len="+gU+"&of="+NF+"&uga="+P9+"&vm="+h_},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+DA+"&docid="+x+"&ei="+r+"&feature="+U+"&fexp="+W1+"&ns="+Wg+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
W9+"&el="+tO+"&len="+gU+"&of="+NF+"&uga="+P9+"&vm="+h_},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+r+"&m="+eL+"&oid="+NF+"&plid="+O+"&pltype="+gt+"&ptchn="+NF+"&ptk="+e+"&video_id="+x},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+DA+"&docid="+x+"&ei="+r+"&event="+ea+"&feature="+U+"&fexp="+W1+"&ns="+Wg+"&plid="+O+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+W9},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+x+"&ei="+r+"&feature="+
U+"&len="+gU+"&ns="+Wg+"&plid="+O+"&ver="+cg,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+x+"&caps="+kd+"&opi="+DA+"&xoaf="+cg+"&hl="+Wg+"&ip="+B9+"&ipbits="+cg+"&expire="+qQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+B9+"&key="+kd+"&lang="+Nr,name:{simpleText:uN},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+x+"&caps="+kd+"&opi="+DA+"&xoaf="+cg+"&hl="+Wg+"&ip="+B9+"&ipbits="+cg+"&expire="+qQ+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+B9+"&key="+kd+"&kind="+kd+"&lang="+Wg,name:{simpleText:ea},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:Vt,title:tO,lengthSeconds:"1155",keywords:[dl,ea,hz,Vt],
channelId:md,isOwnerViewing:!1,shortDescription:Lh,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+mv,width:168,height:94},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+mv,width:196,height:110},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+W,width:246,height:138},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+W,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
x+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:xd,author:Lh,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:xd,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+NF+"/featured_channel.jpg?v="+rt,width:40,height:40}]},trackingParams:fo+"=",navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"/channel/"+md,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:md}},channelName:Lh,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:gt}]},subscribed:!1,enabled:!0,type:"FREE",channelId:md,showPreferences:!1,subscribedButtonText:{runs:[{text:tO}]},unsubscribedButtonText:{runs:[{text:D5}]},trackingParams:fo+"=",unsubscribeButtonText:{runs:[{text:gt}]},serviceEndpoints:[{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[md],params:rt}},{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:FD,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:fo+"=",dialogMessages:[{runs:[{text:rt},{text:La},{text:uN}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:KM}]},serviceEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[md],params:rt}},accessibility:{label:D5},trackingParams:fo+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:rt}]},accessibility:{label:hz},trackingParams:fo+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:uN}},unsubscribeAccessibility:{accessibilityData:{label:Vt}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:MQ},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[md],params:rt}},unsubscribeCommand:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[md],params:rt}},addToWatchLaterCommand:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Vt,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Vt}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+x+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+xH+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
x+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Vt,width:1280,height:720},title:{simpleText:ea},description:{simpleText:gt},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Lh,externalChannelId:md,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:xd,category:"Travel & Events",publishDate:J_,ownerChannelName:Lh,uploadDate:J_}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:rt},trackingParams:fo+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:FD,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:fo+"="}}],headerText:{simpleText:Qe},icon:{infoCardIconRenderer:{trackingParams:fo+"="}},closeButton:{infoCardIconRenderer:{trackingParams:fo+"="}},trackingParams:fo+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:fo+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Vt+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Eu,interpreterSafeUrl:(pk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+qF+".js",pk),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:ea},{text:Qe,bold:!0}]},endpoint:{clickTrackingParams:FD,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:fo+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:eZ}]},actionButton:{buttonRenderer:{text:{runs:[{text:gt}]},navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+x,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
x,target:"TARGET_NEW_WINDOW"}},trackingParams:fo+"="}},trackingParams:fo+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+o6+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+o6+"=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:xd,endMs:xd,title:{accessibility:{accessibilityData:{label:eZ}},simpleText:tO},metadata:{simpleText:Vt},callToAction:{simpleText:Qv},dismiss:{simpleText:dl},endpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"/channel/"+md,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:md}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:dl}]},subscribed:!1,enabled:!0,type:"FREE",channelId:md,showPreferences:!1,
subscribedButtonText:{runs:[{text:hz}]},unsubscribedButtonText:{runs:[{text:rt}]},trackingParams:fo+"=",unsubscribeButtonText:{runs:[{text:hz}]},serviceEndpoints:[{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[md],params:rt}},{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:FD,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:fo+
"=",dialogMessages:[{runs:[{text:KM},{text:tO},{text:Qv}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:D5}]},serviceEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[md],params:rt}},accessibility:{label:Lh},trackingParams:fo+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Vt}]},
accessibility:{label:tO},trackingParams:fo+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:D5}},unsubscribeAccessibility:{accessibilityData:{label:uN}}}},trackingParams:fo+"=",isSubscribe:!0,id:$d}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+W,width:168,height:94},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+mv,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+W,width:246,height:138},{url:"https://i.ytimg.com/vi/"+x+"/hqdefault.jpg?sqp=-oaymwE"+xH+"G&rs="+W,width:336,height:188},{url:"https://i.ytimg.com/vi/"+x+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:xd,endMs:xd,title:{accessibility:{accessibilityData:{label:uN}},simpleText:dl},metadata:{simpleText:rt},endpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Vt,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Vt,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+rB+".googlevideo.com/videoplayback?source=youtube&oeis="+cg+"&c=WEB&oad="+gU+"&ovd="+gU+"&oaad="+rU+"&oavd="+rU+"&ocs="+yr+"&oewis="+cg+"&oputc="+cg+"&ofpcc="+cg+"&siu="+cg+"&msp="+cg+"&odepv="+cg+
"&id=o-AF"+sx+"&ip="+B9+"&initcwndbps="+xd+"&mt="+qQ+"&oweuc="+W1}}}}},trackingParams:fo+"=",id:$d,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Y2}},simpleText:eZ},style:"DEFAULT"}}]}}],startMs:xd,trackingParams:fo+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:cg,offsetEndMilliseconds:rU},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";ord="+qQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+yr+";dc_sk="+cg+";dc_ctype="+P9+";dc_ref=http://www.youtube.com/video/"+Vt+";dc_pubid="+cg+";dc_btype=23?gclid="+OM+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+cg+"&ns="+cg+"&event="+cg+"&device="+cg+"&content_v="+x+"&el="+tO+"&ei="+r+"&devicever="+w+"&bti="+xd+"&format="+xs+"&break_type="+cg+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+cg+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+B9+"&slot_pos="+cg+"&slot_len="+cg+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+q6+"&ad_len="+rU+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Vt+"&aqi="+r+"&ad_rmp="+cg+"&sli="+cg}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+
";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&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"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&ctype="+yr+"&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"+
Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_engaged_view&ctype="+yr+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+";dc_rui="+cg+";dc_exteid="+$s+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+p3+"&ad_cpn=[AD_CPN]&id="+Ae+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ae+"&dc_pubid="+cg+"&dc_exteid="+$d+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+p3+"&ad_cpn=[AD_CPN]&id="+Ae+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+cg},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ae+"&avm="+cg+"&dc_pubid="+cg+"&dc_exteid="+
$d+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&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="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
I+"&sig="+p3+"&ad_cpn=[AD_CPN]&id="+Ae+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+cg},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ae+"&dc_pubid="+cg+"&dc_exteid="+$d+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:FD,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+
yr+"&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/"+x+"/mqdefault.jpg",width:320,height:180}]},trackingParams:fo+"="},trackingParams:fo+
"=",templatedCountdown:{templatedAdText:{text:D5,isTemplated:!0,trackingParams:fo+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Ae,isTemplated:!1,trackingParams:fo+"="},trackingParams:fo+"="}},trackingParams:fo+"=",skipOffsetMilliseconds:5E3}},trackingParams:fo+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Qv},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fo+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Vt,isTemplated:!1,trackingParams:fo+"="},trackingParams:fo+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ea,isTemplated:!0,trackingParams:fo+"="}},trackingParams:fo+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:FD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Od.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Wg+"&origin=www.youtube.com&ata_theme="+Y2,Od),trackingParams:fo+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:fo+"="}},hoverText:{runs:[{text:hz}]},trackingParams:fo+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A6+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fo+"="},headline:{text:dl,isTemplated:!1,trackingParams:fo+"="},description:{text:hz,
trackingParams:fo+"="},actionButton:{buttonRenderer:{text:{simpleText:ea},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fo+"="}},startMs:cg,trackingParams:fo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Y2},elementId:Lh}},elementId:Y2,trackingParams:fo+"=",legacyInfoCardVastExtension:dl,sodarExtensionData:{siub:dl,bgub:Ae,scs:hz,bgp:uN},externalVideoId:Vt,adLayoutLoggingData:{serializedAdServingDataEntry:D5},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A6+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fo+"="},
headline:{text:Vt,isTemplated:!1,trackingParams:fo+"="},description:{text:gt,isTemplated:!1,trackingParams:fo+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:KM},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+";dc_rui="+cg+";dc_exteid="+
$d+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+
cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:fo+"="}},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+DA+";dc_trk_cid="+
DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+
Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fo+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:fo+"="},abandonCommands:{commands:[{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&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="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+
cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:FD,commandExecutorCommand:{commands:[{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:KM,isTemplated:!1,trackingParams:fo+
"="},trackingParams:fo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ea},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xd+";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="+DA+";dc_trk_cid="+DA+";ord="+qQ+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+yr+";dc_sk="+cg+";dc_ctype="+P9+";dc_ref=http://www.youtube.com/video/"+Vt+";dc_pubid="+cg+";dc_btype=23?gclid="+OM+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+cg+"&ns="+cg+"&event="+cg+"&device="+cg+"&content_v="+x+"&el="+tO+"&ei="+r+"&devicever="+w+"&bti="+xd+"&format="+xs+"&break_type="+cg+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+cg+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+B9+"&slot_pos="+cg+"&slot_len="+cg+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
q6+"&ad_len="+rU+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Vt+"&aqi="+r+"&ad_rmp="+cg+"&sli="+cg}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+
C+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&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"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&ctype="+yr+"&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"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_engaged_view&ctype="+yr+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+p3+"&ad_cpn=[AD_CPN]&id="+
Ae+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ae+"&dc_pubid="+cg+"&dc_exteid="+$d+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+
"&sig="+p3+"&ad_cpn=[AD_CPN]&id="+Ae+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+cg},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ae+"&avm="+cg+"&dc_pubid="+cg+"&dc_exteid="+$d+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&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="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+p3+"&ad_cpn=[AD_CPN]&id="+Ae+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+cg},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Ae+"&dc_pubid="+cg+"&dc_exteid="+$d+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+xs+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+
yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&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/"+x+"/mqdefault.jpg",width:320,height:180}]},trackingParams:fo+"="},trackingParams:fo+"=",templatedCountdown:{templatedAdText:{text:gt,isTemplated:!0,trackingParams:fo+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:hz,isTemplated:!1,trackingParams:fo+"="},trackingParams:fo+"="}},
trackingParams:fo+"=",skipOffsetMilliseconds:5E3}},trackingParams:fo+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:D5},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ea,isTemplated:!1,trackingParams:fo+"="},trackingParams:fo+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:dl,
isTemplated:!0,trackingParams:fo+"="}},trackingParams:fo+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:FD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Fs.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Wg+"&origin=www.youtube.com&ata_theme="+Y2,Fs),trackingParams:fo+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:fo+"="}},hoverText:{runs:[{text:rt}]},trackingParams:fo+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lI+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fo+"="},headline:{text:gt,isTemplated:!1,trackingParams:fo+"="},description:{text:Vt,trackingParams:fo+"="},actionButton:{buttonRenderer:{text:{simpleText:D5},navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fo+"="}},startMs:cg,trackingParams:fo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:uN},elementId:KM}},elementId:hz,trackingParams:fo+"=",legacyInfoCardVastExtension:Lh,sodarExtensionData:{siub:D5,bgub:rt,scs:ea,bgp:rt},externalVideoId:Vt,adLayoutLoggingData:{serializedAdServingDataEntry:ea},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lI+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:fo+"="},headline:{text:Vt,
isTemplated:!1,trackingParams:fo+"="},description:{text:La,isTemplated:!1,trackingParams:fo+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:D5},navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:fo+"="}},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+
cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:fo+"="},abandonCommands:{commands:[{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&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="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+P9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:FD,commandExecutorCommand:{commands:[{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:D5,isTemplated:!1,trackingParams:fo+"="},trackingParams:fo+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ae},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+cg+";dc_exteid="+$d+";met="+cg+";ecn"+cg+"="+cg+";etm1="+cg+";eid1="+
xd+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:hz}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qv}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:rU,offsetEndMilliseconds:xs},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+P9+"&token=ALHj"+y+"&index="+cg+"&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="+w+"&m_pos_ms="+rU}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Qe}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:xs,offsetEndMilliseconds:xs},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+yr+"&token=ALHj"+y+"&index="+cg+"&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="+
w+"&m_pos_ms="+xs}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:xs,offsetEndMilliseconds:xs},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+yr+"&token=ALHj"+y+"&index="+cg+"&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="+
w+"&m_pos_ms="+xs}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Y2}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:xs,offsetEndMilliseconds:xs},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+yr+"&token=ALHj"+y+"&index="+cg+"&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="+
w+"&m_pos_ms="+xs}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Lh}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:xs,offsetEndMilliseconds:P9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+yr+"&token=ALHj"+y+"&index="+cg+"&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="+
w+"&m_pos_ms="+xs}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:P9,offsetEndMilliseconds:P9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+P9+"&token=ALHj"+y+"&index="+cg+"&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="+
w+"&m_pos_ms="+P9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gt}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Qv,isTemplated:!1,trackingParams:fo+"="},description:{text:hz,isTemplated:!1,trackingParams:fo+"="},actionButton:{buttonRenderer:{text:{simpleText:KM},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A6+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:fo+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Zt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fo+"="},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+
";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:FD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(CQ6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Wg+"&origin=www.youtube.com&ata_theme="+Y2,CQ6),trackingParams:fo+"="}},popupType:"DIALOG"}},trackingParams:fo+"="}},hoverText:{runs:[{text:Lh}]},trackingParams:fo+"="}},adVideoId:Vt,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:gt},associatedCompositePlayerBytesLayoutId:hz}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:dl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Qv,isTemplated:!1,trackingParams:fo+"="},description:{text:rt,isTemplated:!1,trackingParams:fo+"="},actionButton:{buttonRenderer:{text:{simpleText:Lh},navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+
Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fo+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+lI+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:fo+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+a7+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fo+"="},navigationEndpoint:{clickTrackingParams:FD,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+
cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:FD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(L$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Wg+"&origin=www.youtube.com&ata_theme="+Y2,L$),trackingParams:fo+"="}},popupType:"DIALOG"}},trackingParams:fo+"="}},
hoverText:{runs:[{text:La}]},trackingParams:fo+"="}},adVideoId:Vt,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+Vt+"&cid="+C+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:hz},associatedCompositePlayerBytesLayoutId:hz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:uN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:La,
isTemplated:!1,trackingParams:fo+"="},description:{text:Qe,isTemplated:!1,trackingParams:fo+"="},actionButton:{buttonRenderer:{text:{simpleText:D5},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+
P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+
W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:fo+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A6+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:fo+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Zt+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:fo+
"="},navigationEndpoint:{clickTrackingParams:FD,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+DA+";dc_trk_cid="+DA+";dc_dbm_token="+l+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+cg+";ord="+DA+";dc_rui="+cg+";dc_exteid="+$d+";dc_av="+cg+";dc_sk="+cg+";dc_ctype="+P9+";dc_pubid="+cg+";dc_btype=3?gclid="+OM+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+Q+"____________"+Z+"AxAA&ase=2&num="+cg+"&cid="+C+"&ad_cpn=%5BAD_CPN%5D&sig="+W+"&adurl="+ow+"&label=video_click_to_advertiser_site&ctype="+yr+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:fo+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:FD,openPopupAction:{popup:{aboutThisAdRenderer:{url:(us.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+L+"&hl="+Wg+"&origin=www.youtube.com&ata_theme="+Y2,us),trackingParams:fo+"="}},popupType:"DIALOG"}},trackingParams:fo+
"="}},hoverText:{runs:[{text:Qe}]},trackingParams:fo+"="}},adVideoId:Vt,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+Q+"____________"+Z+"AxAA&sigh="+x+"&cid="+C+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:eZ},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:hz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Y2}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:qF,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:qF,command:{innertubeCommand:{clickTrackingParams:FD,ypcGetOfflineUpsellEndpoint:{params:YF}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:fo+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:qQ,nanos:eQ}}}},ZsB=JSON.stringify(Ye),b0=performance.now()-Y;return{objectRepresentation:Ye,jsonRepresentation:ZsB,generationTime:b0}};
fca=function(Y,b){if(Y===b)return!0;if(!Y||!b||typeof Y!==typeof b)return!1;if(Y instanceof Array&&b instanceof Array){if(Y.length!==b.length)return!1;for(var w=0;w<Y.length;w++)if(!fca(Y[w],b[w]))return!1;return!0}if(typeof Y==="object"&&typeof b==="object"&&Y&&b){for(w in Y)if(!(w in b&&fca(Y[w],b[w])))return!1;for(var V in b)if(!(V in Y))return!1;return!0}return!1};
_.cH=function(){if(!EC){EC=new Is(new NWu);var Y=_.cQ("client_streamz_web_flush_count",-1);Y!==-1&&(EC.invocationLimit=Y)}return EC};
UC=function(Y,b,w,V){if(Y===b)return!0;if(Array.isArray(Y)&&Array.isArray(b)){if(Y.length!==b.length)return!1;for(var H=0;H<Y.length;H++)if(!UC(Y[H],b[H],w,V))return!1;return!0}if(Y instanceof Set||b instanceof Set){if(Y instanceof Set&&b instanceof Set){if(Y.size!==b.size)return!1;V=_.N(Y.values());for(H=V.next();!H.done;H=V.next())if(!b.has(H.value))return!1;return!0}return!1}if(Y instanceof Function){if(V)return!0;Y.name===""&&_.Ft(Error("Jf"),"ERROR");return!1}if(Y instanceof Date&&b instanceof
Date)return Y.getTime()===b.getTime();if(Y instanceof Object&&b instanceof Object){if(Ecq(Y)&&Ecq(b))try{return Y.equals(b)}catch(E){_.Ft(Error("Kf`"+E),"ERROR")}H=Object.getOwnPropertyNames(Y).filter(function(E){return w?Y[E]!==void 0:!0});
var f=Object.getOwnPropertyNames(b).filter(function(E){return w?b[E]!==void 0:!0});
if(H.length!==f.length)return!1;H=_.N(H);for(f=H.next();!f.done;f=H.next())if(f=f.value,!UC(Y[f],b[f],w,V))return!1;return!0}return!1};
Ecq=function(Y){Y=Object.getPrototypeOf(Y).equals;return Y instanceof Function&&Y.length===1};
_.X5u=function(){return _.c(function(Y){if(Y.nextAddress==1)return cWv!==2?Y.jumpTo(2):_.D(Y,Uxv(),3);Y.nextAddress!=2&&(cWv=Y.yieldResult);return Y.return(cWv)})};
_.ocL=function(){return _.c(function(Y){if(Y.nextAddress==1)return _.q("ab_pl_man")?DxG!==2?Y.jumpTo(2):_.D(Y,mxv(),3):Y.return(1);Y.nextAddress!=2&&(DxG=Y.yieldResult);return Y.return(DxG)})};
lcB=function(){return _.c(function(Y){if(Y.nextAddress==1)return _.q("ab_fk_sk_cl")?Ice!==2?Y.jumpTo(2):_.D(Y,kWt(),3):Y.return(1);Y.nextAddress!=2&&(Ice=Y.yieldResult);return Y.return(Ice)})};
_.qqg=function(){return _.c(function(Y){if(Y.nextAddress==1)return _.q("ab_det_apb_b")?hhK!==2?Y.jumpTo(2):_.D(Y,xxv(),3):Y.return(1);Y.nextAddress!=2&&(hhK=Y.yieldResult);return Y.return(hhK)})};
vcG=function(){var Y;return _.c(function(b){if(b.nextAddress==1)return _.D(b,Promise.all([_.X5u(),_.qqg(),_.ocL(),lcB()]),2);if(b.nextAddress!=3)return sjG()?b.return(!0):_.D(b,_.Qjg(),3);Y=b.yieldResult;return b.return(Y===0)})};
sjG=function(){var Y=!1,b=function(w,V){P4q.increment(V,w);w===0&&(Y=!0)};
b(_.ZZB(),"j.s_");b(cWv,"f.i_");b(hhK,"a.b_");b(DxG,"p.m_");b(Ice,"i.f_");BWv===2&&(BWv=_.ncv(MHg));b(BWv,"e.h_");_.q("ks_det_gpbl")||b(_.ehr(),"p.i_");_.q("ks_get_o_pp")||b(_.p5M(),"g.o_");_.q("ab_deg_unex_thr")||b(_.OZv(),"a.o_");b(tHu,"s.t_");_.q("ab_det_sc_inj_enf")&&b(_.Rhq(),"s.i_");b(dxr,"d.p_");b(_.FgK(_.X2),"o.p_");b(_.LgM()===0?0:_.Sqq(),"o.a_");return _.q("debug_sk_em_precheck")?!0:Y};
rWG=function(){var Y=[].concat(_.Bt(ac6));try{var b=NC();Y.push({jsonRepresentation:b.jsonRepresentation,objectRepresentation:b.objectRepresentation})}catch(w){Y=[].concat(_.Bt(ac6))}return Y};
zhe=function(){var Y=["adPlacements","adSlots"];try{return Y.filter(function(){return!0}).length!==Y.length?0:1}catch(b){return 0}};
_.p5M=function(){if(zhe()===0)return 0;var Y=NC(),b=Y.objectRepresentation,w=(0,_.BL.unsafeClone)(b),V=[];if(b&&typeof b==="object")for(var H in b)V.push(H);else return 4;Y=Y.objectRepresentation.adPlacements;if(!(Y&&Y.length>0))return 4;try{if(!fca(V,Object.getOwnPropertyNames(b)))return 0}catch(f){return 0}return fca(w,b)?1:0};
_.FgK=function(Y){if(!Y||!Y.length||typeof Y==="string")return 0;for(var b=Object.getOwnPropertyNames(Object.prototype),w=0;w<Y.length;w++)for(var V=_.VU(Y[w]),H=_.N(b),f=H.next();!f.done;f=H.next())if(V===f.value)return 0;return 1};
Wgb=function(Y){var b=_.VU(Y[1]);if(Y[0]===null)return b;Y=Y[0];for(var w={},V=0;V<Y.length;V++){var H=_.VU(Y[V]);if(V===0)w[H]=b;else{var f={};f[H]=w;w=f}}return w};
_.LgM=function(){for(var Y=_.D8,b=0;b<Y.length;b++){var w=Wgb(Y[b]),V=[];V.push(w);if(V.length===0)return 0}return 1};
_.Sqq=function(){for(var Y=_.D8,b={},w=0;w<Y.length;b={uf2:void 0},w++){var V=[Wgb(Y[w])];b.uf2=[];V.forEach(function(H){return function(f){H.uf2[H.uf2.length]=f}}(b));
if(b.uf2.length===0)return 0}return 1};
_.ZZB=function(){for(var Y=_.N(rWG()),b=Y.next();!b.done;b=Y.next()){var w=b.value;b=w.jsonRepresentation;w=w.objectRepresentation;try{var V=JSON.parse(b);if(!UC(V,w,!1,!1))return 0}catch(H){return 0}}return 1};
_.Rhq=function(){try{var Y=_.XO("ab_det_sc_inj_val");Y.length===1&&Y[0]===""&&(Y=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var b=document.querySelectorAll("script"),w=_.N(b),V=w.next();!V.done;V=w.next())for(var H=V.value,f=_.N(Y),E=f.next();!E.done;E=f.next()){var U=E.value;b=void 0;if((b=H.textContent)==null?0:b.includes(U))return 0}}catch(X){return 4}return 1};
_.Qjg=function(){var Y,b,w,V,H,f,E;return _.c(function(U){switch(U.nextAddress){case 1:_.ct(U,2),Y=_.N(ac6),b=Y.next();case 4:if(b.done)return U.return(1);V=w=b.value;H=V.jsonRepresentation;f=V.objectRepresentation;return _.D(U,(new Response(H,{status:200})).json(),7);case 7:E=U.yieldResult;if(!UC(E,f,!1,!1))return U.return(0);b=Y.next();U.jumpTo(4);break;case 2:return _.mS(U),U.return(4)}})};
_.OZv=function(){try{btoa("abc")}catch(Y){return 0}return 1};
Uxv=function(){var Y,b,w,V,H,f,E,U,X,I,k;return _.c(function(l){switch(l.nextAddress){case 1:_.ct(l,2),Y=_.N(rWG()),b=Y.next();case 4:if(b.done)return l.return(1);V=w=b.value;H=V.jsonRepresentation;f=V.objectRepresentation;E=btoa(H);U="data:application/json;base64,"+E;X=new Request(U);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 _.D(l,fetch(X),7);case 7:return I=l.yieldResult,_.D(l,I.json(),8);case 8:k=l.yieldResult;if(!UC(k,f,!1,!1))return l.return(0);b=Y.next();l.jumpTo(4);break;case 2:return _.mS(l),l.return(4)}})};
_.ncv=function(Y){if(!Y||!Y.length||typeof Y==="string")return 0;for(var b=function(H){return _.VU(H)},w=2,V=0;V<Y.length&&(w=_.KgI(_.HZu(Y[V],b)),w!==0);V++);
return w};
_.KgI=function(Y){var b=_.N(Y);Y=b.next().value;b=b.next().value;try{var w=document.createElement("div");document.body.appendChild(w);var V=getComputedStyle(w).display;document.body.removeChild(w);if(V==="none")return 4;var H=getComputedStyle(b).display==="none"?0:1;document.body.removeChild(Y);return H}catch(f){return 4}};
kWt=function(){var Y,b,w;return _.c(function(V){Y=new _.mD;b=document.createElement("button");b.classList.add("ytp-ad-skip-button");b.style.opacity="0";b.style.height="0px";b.style.width="0px";b.style.padding="0px";b.style.border="none";w=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.onclick=function(){Y.resolve(0);w()};
document.body.appendChild(b);setTimeout(function(){w();Y.resolve(1)},50);
return V.return(Y.promise)})};
mxv=function(){var Y,b,w,V,H,f,E;return _.c(function(U){Y=new _.mD;b=document.createElement("ytd-player");try{document.body.prepend(b)}catch(X){return U.return(4)}w=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.getElementsByTagName("div").length>0?V=b.getElementsByTagName("div")[0]:(V=document.createElement("div"),b.appendChild(V));H=document.createElement("div");V.appendChild(H);f=document.createElement("video");E=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"});f.src=_.lH(_.ZD(E));f.ontimeupdate=function(){w();Y.resolve(0)};
H.appendChild(f);f.classList.add("html5-main-video");setTimeout(function(){H.classList.add("ad-interrupting")},200);
setTimeout(function(){w();Y.resolve(1)},5E3);
return U.return(Y.promise)})};
iZI=function(Y,b){var w,V;return _.c(function(H){switch(H.nextAddress){case 1:w=[],V=0;case 2:if(!(V<3)){H.jumpTo(4);break}return _.D(H,fetch(Y,{cache:"no-store",method:b}).then(function(f){w.push(f.status)}).catch(function(){w.push(-1)}),3);
case 3:V++;H.jumpTo(2);break;case 4:return H.return(w)}})};
AWu=function(Y){return Y.domainLookupStart===0&&Y.domainLookupEnd===0&&Y.connectStart===0&&Y.connectEnd===0};
C4M=function(Y,b,w){w=w===void 0?"GET":w;var V,H,f,E,U,X,I,k,l,x;return _.c(function(Q){if(Q.nextAddress==1)return _.D(Q,Promise.all([iZI(Y,w),iZI(b,w)]),2);V=Q.yieldResult;H=_.N(V);f=H.next().value;E=H.next().value;U=f;X=E;if(Math.min.apply(Math,_.Bt(X))!==Math.max.apply(Math,_.Bt(X))||Math.min.apply(Math,_.Bt(U))!==Math.max.apply(Math,_.Bt(U)))return Q.return(2);if(Math.min.apply(Math,_.Bt(X))===Math.min.apply(Math,_.Bt(U)))return Q.return(1);k=(I=performance.getEntriesByName(Y))==null?void 0:I[0];
x=(l=performance.getEntriesByName(b))==null?void 0:l[0];return k&&x?AWu(x)?Q.return(1):AWu(k)?Q.return(0):Q.return(1):Q.return(2)})};
xxv=function(){var Y;return _.c(function(b){var w=[];var V;var H,f,E;(H=V=(H=NC().objectRepresentation.streamingData)==null?void 0:(f=H.formats)==null?void 0:(E=f[0])==null?void 0:E.url)&&H&&!V.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(H=H.replace("initcwndbps","ctier=L&initcwndbps"),H=H.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),V={testUrl:H,baseUrl:V,method:"GET"}):V=void 0;V&&w.push(V);_.q("ab_net_tp_e")&&w.push({testUrl:_.wB.location.origin+"/ad_companion",baseUrl:_.wB.location.origin+
"/generate_204",method:"OPTIONS"});if(_.q("ad_net_pb_ab")){var U;b:{V=/api\/stats\/ads/;var X,I,k,l;H=(U=NC().objectRepresentation.adPlacements)==null?void 0:(X=U[0])==null?void 0:(I=X.adPlacementRenderer)==null?void 0:(k=I.renderer)==null?void 0:(l=k.linearAdSequenceRenderer)==null?void 0:l.linearAds;if(H!=null&&H.length&&(U=_.v(H[0],yWq))&&(U=U.pings,U!=null&&U.impressionPings))for(X=[].concat(_.Bt(U.impressionPings)),U.progressPings&&(X=[].concat(_.Bt(X),_.Bt(U.progressPings))),U=_.N(X),X=U.next();!X.done;X=
U.next())if(X=X.value,X.baseUrl&&V.test(X.baseUrl)){U=X.baseUrl.replace("https://www.youtube.com","");break b}U=void 0}U&&w.push({testUrl:_.wB.location.origin+U,baseUrl:_.wB.location.origin+"/feed/download",method:"GET"})}if(_.q("ad_net_pb_pbp")){var x;b:{U=/api\/stats\/qoe/;if(X=NC().objectRepresentation.playbackTracking){I=[];I.push(X==null?void 0:(x=X.videostatsPlaybackUrl)==null?void 0:x.baseUrl);var Q;I.push(X==null?void 0:(Q=X.videostatsDelayplayUrl)==null?void 0:Q.baseUrl);var Z;I.push(X==
null?void 0:(Z=X.videostatsWatchtimeUrl)==null?void 0:Z.baseUrl);var e;I.push(X==null?void 0:(e=X.ptrackingUrl)==null?void 0:e.baseUrl);var O;I.push(X==null?void 0:(O=X.qoeUrl)==null?void 0:O.baseUrl);var L;I.push(X==null?void 0:(L=X.atrUrl)==null?void 0:L.baseUrl);x=_.N(I);for(Q=x.next();!Q.done;Q=x.next())if((Q=Q.value)&&U.test(Q)){x=Q.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}x=void 0}x&&w.push({testUrl:_.wB.location.origin+x,baseUrl:_.wB.location.origin+
"/feed/download",method:"GET"})}w=w.length!==0?w[Math.floor(Math.random()*w.length)]:void 0;return(Y=w)?b.return(C4M(Y.testUrl,Y.baseUrl,Y.method)):b.return(4)})};
_.ehr=function(){if(_.wB.k34===void 0||_.wB.k34===null||typeof _.wB.k34!=="function")return 2;try{return _.wB.k34()===!0?0:1}catch(Y){return 0}};
$xu=function(Y){switch(Y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.cI(Y,"unknown result type")}};
_.jjI=function(Y,b){var w=Number(_.zO("CATSTAT",0));if(b.nVp===void 0)return w;b=b.nVp;Y=$xu(Y);return w&~(3<<b)|Y<<b};
GWK=function(Y){var b,w;if((Y=(b=Y.auxiliaryUi)==null?void 0:(w=b.messageRenderers)==null?void 0:w.bkaEnforcementMessageViewModel)&&Y.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return Y};
JWr=function(){for(var Y=_.N(Object.values(_.TWb)),b=Y.next();!b.done;b=Y.next())b=b.value,b.isAsync&&b.nVp&&_.rx("CATSTAT",_.jjI(2,b))};
_.lW=function(Y,b){Y=_.oA("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",Y);(b===void 0?0:b)?_.uc6(Y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.IA(_.ky(),Y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
bnb=function(){if(!YSK){if(Polymer.Base){var Y=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{Y.apply(this,arguments)}catch(l){_.K7(l)}};
var b=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{b.apply(this,arguments)}catch(l){_.K7(l)}};
var w=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{w.apply(this,arguments)}catch(l){_.K7(l)}};
var V=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{V.apply(this,arguments)}catch(l){_.K7(l)}};
var H=Polymer.Base._listen,f=new WeakMap;Polymer.Base._listen=function(l,x,Q){var Z=function(){try{Q.apply(this,arguments)}catch(e){_.K7(e)}};
f.set(Q,Z);H.call(this,l,x,Z)};
var E=Polymer.Base._unlisten;Polymer.Base._unlisten=function(l,x,Q){E.call(this,l,x,f.get(Q))}}if(Polymer.Async){var U=Polymer.Async,X=U._atEndOfMicrotask;
U._atEndOfMicrotask=function(){try{X.apply(U,arguments)}catch(l){_.K7(l)}}}if(Polymer.RenderStatus){var I=Polymer.RenderStatus,k=I.afterNextRender;
I.afterNextRender=function(l,x,Q){k.call(I,l,function(){try{x.apply(this,arguments)}catch(Z){_.K7(Z)}},Q)}}YSK=!0}};
_.hL=function(Y){var b=Y?_.ku(Y):"";if(b){if(b.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(b.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(b.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(b.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(b.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.q("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";b=b.toLowerCase();if(b==="/")return"home";if(b==="/channel_memberships")return"channel-memberships-shopfront";if(b.indexOf("/feed/trending")===0)return"trending";if(b.indexOf("/feed/explore")===0)return"explore";if(b.indexOf("/live")===0)return"live";if(b.indexOf("/results")===0)return"search";if(b.indexOf("/sports")===0)return"sports";if(b.indexOf("/fashion")===0||b.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(b))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(b))return _.q("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(b.indexOf("/channel/")===0||b.indexOf("/user/")===0||b.indexOf("/gaming")===0||b.indexOf("/post/")===0)return"channel";if(wzB(Y))return"show";if(b==="/playlist"||b.indexOf("/playlist/")===0||b==="/view_play_list"||b.indexOf("/view_play_list/")===0||b.indexOf("/show/")===0)return"playlist";if(b==="/feed/history"||b.indexOf("/feed/history/")===0)return"history";if(b===
"/new")return"labs";if(b==="/feed/subscriptions")return"subscriptions";if(b.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(b==="/history_controls")return"standalone";if(b.indexOf("/account")===0||b==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(b.indexOf("/paid_memberships")===0||b.indexOf("/refund")===0||b.indexOf("/purchases")===0||b.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(b.indexOf("/product")===0)return"yts-products";if(b.indexOf("/premium")===
0||b.indexOf("/musicpremium")===0)return b.indexOf("/premium/offers")===0||b.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(b==="/cart/checkout"||b==="/cart")return"ypc-checkout";if(b.indexOf("/feed/downloads")===0||b.indexOf("/redeem")===0||b.indexOf("/reporthistory")===0)return"browse";if(b.indexOf("/hashtag")===0)return"hashtag-landing-page";if(b.indexOf("/handle")===0)return"handle";if(b.indexOf("/source")===0)return"audio-pivot";if(b.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(b.indexOf("/playables")===0)return"playables";if(b.indexOf("/create/live/join")===0)return"open-in-app";if(b.indexOf("/shorts")===0)return"shorts";if(b.indexOf("/feed/channels")===0)return"subscriptions-channels";(b=Y?_.ku(Y):"")&&b.indexOf("/watch")===0&&_.q("web_watch_enable_learning_journey")?(Y=_.GO(Y),Y=!!Y.list&&Y.list.indexOf("LJPP")===0):Y=!1;if(Y)return"learning_journey_watch"}};
_.xy=function(Y){var b,w;(Y=(w=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:w.url)&&(b=_.hL(Y));return b};
wzB=function(Y){var b=Y?_.ku(Y):"";if(!b)return!1;b=b.toLowerCase();return b.indexOf("/show/")===0||b.indexOf("/playlist")===0&&(Y=_.GO(Y),Y.list&&Y.list.indexOf("EL")===0)?!0:!1};
PH=function(Y){var b="unknown",w;var V=((w=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:w.webPageType)||"";V?(w=V.toLowerCase(),w.startsWith("web_page_type_")&&(w=w.slice(14))):w=V;w&&VoG[w.toUpperCase()]?b=VoG[w.toUpperCase()]:_.v(Y,_.QU)||_.v(Y,HnB)?b="browse":_.v(Y,_.vH)?b="search":_.v(Y,_.TG)&&(b="watch");b==="watch"&&_.xy(Y||null)==="learning_journey_watch"&&(b="learning_journey_watch");b==="unknown"&&_.Sk(Error("Mf`"+JSON.stringify({clickTrackingParams:Y==null?void 0:Y.clickTrackingParams,
commandMetadata:Y==null?void 0:Y.commandMetadata,allEndpointKeys:Object.keys(Y||[])})));return b};
_.Z8=function(Y){if(!_.gXL||Y)_.gXL=_.Iz();return _.gXL};
_.fiI=function(Y){return!!_.v(Y,_.TG)||!!_.v(Y,_.BH)&&_.q("kevlar_enable_shorts_prefetch")};
_.N96=function(Y,b){Y=_.v(Y,_.TG)||_.v(Y,_.BH);return"v"+Y.videoId+(Y.playlistId?"-pl"+Y.playlistId:"")+(b?"-an1":"")+(Y.params?"-pr"+Y.params:"")};
nX=function(Y){return function(){return new Y}};
MC=function(Y){var b=_.fH();return function(){return b.resolve(Y)}};
c0K=function(Y){var b=_.cQ("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;if(!_.v(Y,_.BH))return b&&_.Sk(Error("Pf")),!1;var w;return _.q("shorts_controller_retrieve_seedless_sequence_v2")&&((w=_.v(Y,_.BH))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:EXu(Y)?!0:(b&&_.Sk(Error("Qf")),!1)};
EXu=function(Y){var b=(_.v(Y,_.TG)||_.v(Y,_.BH)).videoId;if(!b||!USu.test(b))return!1;var w;return(Y=(w=_.v(Y.commandMetadata,_.g5))==null?void 0:w.url)&&(Y.includes(b)||Y.startsWith("/clip"))?!0:!1};
_.DSr=function(){var Y=_.P0();return Y.getFlag(192)?Y.getFlag(190):!(_.q("web_watch_cinematics_disabled_by_default")||_.q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Xzu())};
_.ey=function(Y,b,w){var V={};V.currentUrl=b;V.vis=Y.vis!==void 0?Y.vis:0;V.splay=!1;b=_.P0();V.autoCaptionsDefaultOn=b.getFlag(66);b.getFlag(141)?b.getFlag(140)?V.autonavState="STATE_OFF":V.autonavState="STATE_ON":V.autonavState="STATE_NONE";V.html5Preference="HTML5_PREF_WANTS";isNaN(_.zO("STS"))||(V.signatureTimestamp=_.zO("STS"));Y.autonav&&(V.autoplay=!0,V.autonav=!0);Y.mutedAutoplay&&(V.autoplay=!0,V.mutedAutoplay=!0);Y.inlinePlayback&&(V.autoplay=!0,V.autonav=!1,V.isInlineUnmutedPlayback=!!Y.inlineUnmuted);
V.referer=w;V.lactMilliseconds=Y.lact!==void 0?Y.lact.toString():"-1";_.q("enable_unknown_lact_fix_on_html5")&&V.lactMilliseconds==="-1"&&_.Sk(new _.BQ("Unknown LACT is set in playbackContext.",{"lact in tempData":Y.lact||"undefined",autonav:Y.autonav||"undefined"}));Y={};b.getFlag(194)&&(Y.hasShownAmbientMode=!0);b.getFlag(192)&&(Y.hasToggledOffAmbientMode=!0);_.DSr()&&(Y.watchAmbientModeEnabled=!0);V.watchAmbientModeContext=Y;return V};
mSr=function(Y){var b={},w=Y.pbis||0;w&&(b.playbackBeginsInSeconds=w);Y.prefetch_reason&&Y.prefetch_reason==="hc_pbis"&&(b.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return b};
_.OC=function(Y){Y=Y===void 0?!1:Y;var b=_.P0(),w="USER_INTERFACE_THEME_LIGHT";b.getFlag(165)?w="USER_INTERFACE_THEME_DARK":b.getFlag(174)?w="USER_INTERFACE_THEME_LIGHT":_.pX()&&(w="USER_INTERFACE_THEME_DARK");return Y?w:oXu()||w};
_.IiK=function(){return!_.q("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.pX=function(){return _.IiK()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.tL=function(){var Y=_.P0();return _.IiK()&&!Y.getFlag(165)&&!Y.getFlag(174)};
oXu=function(){var Y=Y===void 0?window.location.href:Y;if(_.q("kevlar_disable_theme_param"))return null;var b=_.ku(Y);if(_.kpr(b))return"USER_INTERFACE_THEME_DARK";try{var w=_.GO(Y).theme;return lig.get(w)||null}catch(V){}return null};
_.kpr=function(Y){return _.q("enable_dark_theme_only_on_shorts")?!(Y==null||!Y.startsWith("/shorts/")):!1};
_.qSM=function(Y,b,w,V,H){b=b===void 0?!1:b;w=w===void 0?!1:w;var f=_.zO("INNERTUBE_CONTEXT");if(!f)return _.Ft(Error("Tf")),{};f=(0,_.BL.unsafeClone)(f);_.q("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var E=f.client;E.clientName==="MWEB"&&E.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(E.clientFormFactor=_.zO("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");E.screenWidthPoints=window.innerWidth;E.screenHeightPoints=window.innerHeight;E.screenPixelDensity=
Math.round(window.devicePixelRatio||1);E.screenDensityFloat=window.devicePixelRatio||1;E.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());E.userInterfaceTheme=_.OC();if(!b){var U=_.D4e();U&&(E.connectionType=U);_.q("web_log_effective_connection_type")&&(U=oL6())&&(f.client.effectiveConnectionType=U)}var X;if(_.q("web_log_memory_total_kbytes")&&((X=_.wB.navigator)==null?0:X.deviceMemory)){var I;X=(I=_.wB.navigator)==null?void 0:I.deviceMemory;f.client.memoryTotalKbytes=""+X*1E6}b&&V&&!_.q("web_it_context_set_original_url_ks")&&
(E.originalUrl=hKB(_.wB.location.href,V).toString());_.q("web_gcf_hashes_innertube")&&(U=Zzr())&&(I=U.coldConfigData,X=U.coldHashData,U=U.hotHashData,f.client.configInfo=f.client.configInfo||{},I&&(f.client.configInfo.coldConfigData=I),X&&(f.client.configInfo.coldHashData=X),U&&(f.client.configInfo.hotHashData=U));I=_.GO(_.wB.location.href);!_.q("web_populate_internal_geo_killswitch")&&I.internalcountrycode&&(E.internalGeo=I.internalcountrycode);!_.q("web_populate_client_screen_killswitch")&&H&&(E.clientScreen=
H);E.clientName==="MWEB"||E.clientName==="WEB"?(E.mainAppWebInfo||(E.mainAppWebInfo={}),E.mainAppWebInfo.graftUrl=V||_.wB.location.href,_.q("kevlar_woffle")&&_.RA.instance&&(V=_.RA.instance,E.mainAppWebInfo.pwaInstallabilityStatus=!V.appInstalledEventFired&&V.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),E.mainAppWebInfo.webDisplayMode=leG(),E.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):E.clientName==="TVHTML5"&&
(!_.q("web_lr_app_quality_killswitch")&&(V=_.zO("LIVING_ROOM_APP_QUALITY"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{appQuality:V})),V=_.zO("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{certificationScope:V}));!_.q("web_populate_time_zone_itc_killswitch")&&(V=U4I())&&(E.timeZone=V);(V=p6q())?E.experimentsToken=V:delete E.experimentsToken;E=OSM();V=_.xSL();V=(0,_.BL.getValues)(V.tokenJars);f.request=Object.assign({},f.request,{internalExperimentFlags:E,consistencyTokenJars:V});
!_.q("web_prequest_context_killswitch")&&(E=_.zO("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=E);V=_.P0();E=V.getFlag(58);V=V.get("gsml","");f.user=Object.assign({},f.user);E&&(f.user.enableSafetyMode=E);V&&(f.user.lockedSafetyMode=!0);_.q("warm_op_csn_cleanup")?w&&(b=_.dO())&&(f.clientScreenNonce=b):!b&&(b=_.dO())&&(f.clientScreenNonce=b);Y&&(f.clickTracking={clickTrackingParams:Y});if(Y=_.Aq("yt.mdx.remote.remoteClient_"))f.remoteClient=Y;_.dr.getInstance().setLocationOnInnerTubeContext(f);
try{var k=WHG(),l=k.bid;delete k.bid;f.adSignalsInfo={params:[],bid:l};for(var x=_.N(Object.entries(k)),Q=x.next();!Q.done;Q=x.next()){var Z=_.N(Q.value),e=Z.next().value,O=Z.next().value;k=e;l=O;Y=void 0;(Y=f.adSignalsInfo.params)==null||Y.push({key:k,value:""+l})}var L,r;if(((L=f.client)==null?void 0:L.clientName)==="TVHTML5"||((r=f.client)==null?void 0:r.clientName)==="TVHTML5_UNPLUGGED"){var C=_.zO("INNERTUBE_CONTEXT");C.adSignalsInfo&&(f.adSignalsInfo.advertisingId=C.adSignalsInfo.advertisingId,
f.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=C.adSignalsInfo.limitAdTracking)}}catch(W){_.Ft(W)}return f};
_.sGe=function(Y){var b=new F2(_.zO("ONE_PICK_URL",""));b.urlParamMap_.set("hostId",Y);(Y=_.zO("GAPI_LOCALE"))&&b.urlParamMap_.set("hl",Y);(Y=_.zO("SESSION_INDEX"))&&b.urlParamMap_.set("authuser",Y);(Y=_.zO("DELEGATED_SESSION_ID"))&&b.urlParamMap_.set("groupId",Y);return b};
vXv=function(){var Y=_.fH(),b=Y.resolve(_.LX);Y=Y.resolve(_.Sy);return new QGg(b,Y)};
Znr=function(Y){if(window.IntersectionObserver)return new P$6(Y,400);throw new TypeError("$f");};
nX6=function(){var Y=Hammer.TouchAction,b=Y.prototype.preventDefaults;Y.prototype.preventDefaults=function(w){var V=this.actions.indexOf("pan-down")>-1;if(!V)return b.call(this,w);if(!B9K){var H=w.srcEvent;w=w.direction;var f;if((f=this.manager)==null?0:f.session.prevented)H.preventDefault();else if(V&&w&Hammer.DIRECTION_DOWN)return this.preventSrc(H)}}};
Moq=function(Y){if(!Y||Y.size===0)return Hammer.DIRECTION_ALL;if(Y.size===2){if(Y.has("up")&&Y.has("down"))return Hammer.DIRECTION_VERTICAL;if(Y.has("right")&&Y.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(Y.size===1){if(Y.has("up"))return Hammer.DIRECTION_UP;if(Y.has("down"))return Hammer.DIRECTION_DOWN;if(Y.has("right"))return Hammer.DIRECTION_RIGHT;if(Y.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.pzu=function(){return eKq?Promise.resolve(eKq):new Promise(function(Y,b){var w=self.indexedDB.open("swpushnotificationsdb");w.onerror=b;w.onsuccess=function(){var V=w.result;if(V.objectStoreNames.contains("swpushnotificationsstore"))eKq=V,Y(eKq);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.pzu()};
w.onupgradeneeded=Ona})};
Ona=function(Y){Y=Y.target.result;Y.objectStoreNames.contains("swpushnotificationsstore")&&Y.deleteObjectStore("swpushnotificationsstore");Y.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
RKM=function(Y){var b=tog(),w;return _.c(function(V){switch(V.nextAddress){case 1:return _.ct(V,2),_.D(V,Y.match(b,{cacheName:"yt-appshell-assets"}),4);case 4:w=V.yieldResult;_.$u(V,3);break;case 2:_.mS(V);case 3:return V.return(w)}})};
tog=function(){var Y=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?dSa.registration.scope:Fuq;Y.endsWith("/")&&(Y=Y.slice(0,-1));return Y+"/app_shell_home"};
Lut=function(Y){Y.map(function(b){return b.source}).join("|")};
_.SSu=function(Y){return _.c(function(b){return b.return(RKM(Y))})};
aiq=function(){var Y=window.caches,b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,_.SSu(Y),2);b=w.yieldResult;return w.return(!!b)})};
C$M=function(){_.c(function(Y){if(Y.nextAddress==1){if(r0b)return Y.jumpTo(0);r0b=!0;if(_.q("enable_system_health_primes_monitoring"))return _.oV(zKK,3E4),Wug(),Y.return();if(!(Math.random()<_.cQ("web_system_health_fraction")))return Y.jumpTo(0);Kuv={heightPixels:screen.height,widthPixels:screen.width};aA&&!isNaN(aA.jsHeapSizeLimit)&&(Kuv.memoryTotalKbytes=String(Math.round(aA.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Kuv.devicePixelRatio=window.devicePixelRatio);return _.D(Y,inM(),4)}_.oV(zKK,
3E4);return _.D(Y,A0v(),0)})};
inM=function(){return _.c(function(Y){if(Y.nextAddress==1)return rr.intersectionObserverPresent="IntersectionObserver"in window,rr.serviceWorkerPresent="serviceWorker"in navigator,rr.webSharePresent="share"in navigator,rr.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,rr.cacheStoragePresent="caches"in window,rr.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,rr.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
rr.webkitTemporaryStoragePresent="webkitTemporaryStorage"in zg&&zg.webkitTemporaryStorage&&"queryUsageAndQuota"in zg.webkitTemporaryStorage,rr.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.D(Y,AwL(),2);rr.indexedDbPresent=Y.yieldResult;rr.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;rr.broadcastChannelPresent="BroadcastChannel"in window;rr.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(rr.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,rr.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.om(Y)})};
zKK=function(){var Y=9E4+Math.random()*2E3;_.fB()>Y||(_.q("enable_system_health_primes_monitoring")?Wug():A0v())};
A0v=function(){var Y;return _.c(function(b){if(b.nextAddress==1)return _.D(b,y0u(),2);Y=b.yieldResult;_.RY("systemHealthCaptured",Y);_.om(b)})};
Wug=function(){var Y={metric:{}},b=$S6();b.networkEvents.length&&(Y.metric.networkEvents=jGg(b));_.RY("systemHealthCaptured",Y)};
y0u=function(){var Y,b,w,V,H,f,E,U,X,I;return _.c(function(k){switch(k.nextAddress){case 1:Y={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};b=window.screen;_.q("enable_is_extended_monitoring")&&b&&"isExtended"in b&&(Y.isExtended=!!b.isExtended);w={metric:{staticContext:Kuv,dynamicContext:Y,webMetric:GpK,webApiSupport:rr}};
if(V=_.dO())w.csn=V;aA&&(w.metric.webMetric.currentHeapKbytes=Math.round(aA.usedJSHeapSize/1E3));window.matchMedia&&(w.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,w.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,w.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in zg&&typeof zg.getBattery==="function")){k.jumpTo(2);break}return _.D(k,zg.getBattery(),3);case 3:if(H=
k.yieldResult)w.metric.dynamicContext.chargingStatus=H.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(w.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(rr.storageEstimatePresent)return _.D(k,navigator.storage.estimate(),8);if(!rr.webkitTemporaryStoragePresent){k.jumpTo(5);break}return _.D(k,T9M(),7);case 7:f=k.yieldResult;k.jumpTo(5);break;case 8:f=k.yieldResult;case 5:return w.metric.dynamicContext.deviceStorageQuotaMbytes=((E=f)==null?0:E.quota)?String(Math.round(f.quota/
1048576/10)*10):"-1",w.metric.dynamicContext.deviceStorageUsageMbytes=((U=f)==null?0:U.usage)?String(Math.round(f.usage/1048576/10)*10):"-1",X=w.metric.dynamicContext,_.D(k,aiq(),9);case 9:return X.hasAppShell=k.yieldResult,I=$S6(),I.networkEvents.length&&(w.metric.networkEvents=jGg(I)),k.return(w)}})};
T9M=function(){return new Promise(function(Y){var b;rr.webkitTemporaryStoragePresent&&(b=zg.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?zg.webkitTemporaryStorage.queryUsageAndQuota(function(w,V){Y({usage:w,quota:V})}):Y(void 0)})};
_.WH=function(Y){Y&=16777215;Y=[(Y&16711680)>>16,(Y&65280)>>8,Y&255];return J06(Y[0],Y[1],Y[2])};
_.KX=function(Y){Y=[(Y&16711680)>>>16,(Y&65280)>>>8,Y&255,(Y&4278190080)>>>24];var b=_.uGK(Y,function(w){return w==(w&255)});
Y[3]=(Y[3]/255).toFixed(3);if(!b)throw Error("ag`"+Y.join(","));return"rgba("+Y.join(",")+")"};
_.YUv=function(Y){return[(Y&16711680)>>>16,(Y&65280)>>>8,Y&255]};
_.bUL=function(Y){Y=Y.map(function(b){b/=255;return b<=.03928?b/12.92:Math.pow((b+.05)/1.05,2.4)});
return Y[0]*.2126+Y[1]*.7152+Y[2]*.0722};
iW=function(Y,b){Y=_.YUv(Y);return"rgba("+Y[0]+", "+Y[1]+", "+Y[2]+", "+b+")"};
_.wwG=function(){try{return!!self.localStorage}catch(Y){return!1}};
fLq=function(){if(ViK())_.Sk(Error("bg"));else{var Y=document.createElement("iframe");Y.style.display="none";var b=b===void 0?window.location.href:b;var w=_.SI(_.zO("PERSIST_IDENTITY_IFRAME_URL"));b=w?w:(new URL(b)).host.indexOf("studio")===0?_.HL(HUe,"persist_identity"):_.HL(gIb,"persist_identity");_.hYg(Y,1,b);Y.id="persist_identity";var V;(V=document.body)==null||V.appendChild(Y)}};
ViK=function(){var Y=N0G;Y||(Y=document.querySelector("#persist_identity"));return Y};
EIM=function(){var Y=!1;try{Y=!!window.sessionStorage.getItem("session_logininfo")}catch(b){Y=!0}return(_.zO("INNERTUBE_CLIENT_NAME")==="WEB"||_.zO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Y};
cBr=function(Y,b){if(!EIM())return!1;b||(b=_.zO("LOGIN_INFO"));return b?(Y.session_logininfo=b,!0):!1};
XwL=function(Y,b){Y=Y===void 0?!1:Y;if((b===void 0||!b)&&UTM!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Wf("LOG_STICKINESS",!1)){b=_.dO();var w=_.R3(),V={identityStickinessData:{initialState:UTM}};b&&w&&_.b3(b,w,V)}if(b=ViK())if(w=b.src?(new URL(b.src)).origin:"*",Y){var H;(H=b.contentWindow)==null||H.postMessage({action:"clear"},w)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(Y=window.sessionStorage.getItem("session_logininfo"))){var f;(f=b.contentWindow)==null||f.postMessage({loginInfo:Y},w)}};
_.AL=function(Y){Y=Y===void 0?!0:Y;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.rx("LOGIN_INFO",""),Y&&window.sessionStorage.setItem("from_switch_account","1"),XwL(!0,Y)}catch(b){}};
DTb=function(Y){Y&&(Y.startsWith("https://accounts.google.com/AddSession")?_.AL():Y.startsWith("https://accounts.google.com/ServiceLogin")?_.AL():Y.startsWith("https://myaccount.google.com")&&_.$G(Y).getPath().endsWith("/youtubeoptions")&&_.AL())};
CX=function(Y,b){DTb(Y);if(_.Wf("LOGGED_IN",!0)&&EIM()){var w=Nyt(Y);w==null&&(w={});cBr(w,b)&&_.VX(Y,w)}};
mT6=function(){function Y(b){for(b=b.target;b&&b.nodeName!=="A";)if(b=b.parentNode,!(b&&b instanceof HTMLElement))return;if(b&&!b.hasAttribute("download")&&b.getAttribute("rel")!=="external"&&b.href)return b.href}
document.addEventListener("mousedown",function(b){b.button!==0&&(b=Y(b))&&CX(b)});
document.addEventListener("click",function(b){(b=Y(b))&&CX(b)})};
k8r=function(){var Y=new oII;try{if(_.Wf("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(U){Y.increment(5,!1);return}if(_.zO("LOGIN_INFO")){var b=ILr?ILr:window.location;_.zO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&fLq();var w=Nyt(b.href);w==null&&(w={});var V=w.session_logininfo,H=Number(window.sessionStorage.getItem("stickiness_reload")),f=V===_.zO("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
H>=2||f)H>=2?Y.increment(2,f):f?Y.increment(7,f):window.sessionStorage.getItem("session_logininfo")||(Y.increment(3,f),UTM="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.zO("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.zO("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))Y.increment(4,f),window.sessionStorage.removeItem("stickiness_reload");
else if(H<2){window.sessionStorage.setItem("stickiness_reload",String(H+1));var E=b.href;E=_.H0(E,"sttick");CX(E,window.sessionStorage.getItem("session_logininfo"));E=_.TO(E,{sttick:H});Y.increment(H,f);_.$H(b,E)}}else Y.increment(6,!1)}else _.AL(!1)}catch(U){}};
_.yU=function(Y,b,w,V,H){b=b===void 0?{}:b;w=w===void 0?"":w;V=V===void 0?window:V;Y=_.Jq(Y,b);CX(Y);w=_.PN(Y+w,H);_.$H(V.location,w)};
_.lLu=function(Y,b,w,V,H){H=H===void 0?!1:H;w&&_.VX(Y,w);w=_.PN(Y);var f=_.lH(w);Y!=f&&_.C7(Error("cg`"+Y));Y=f;b=b||Aw(Y).toString(36);try{if(H)return H=Y,H=qCB(H),CX(H),_.Fk(window,H,b,"attributionsrc")}catch(E){_.K7(E)}CX(Y);return _.Fk(window,w,b,V)};
h9b=function(Y){if(Y.urlEndpoint){if(Y=_.GO(Y.urlEndpoint.url),Y.adurl)return Vh(Y.adurl)}else if(Y.watchEndpoint)return"//www.youtube.com/watch?v="+Y.watchEndpoint.videoId;return null};
xTB=function(Y){if(!Y||!Y.reportingPings)return null;var b={};Y.reportingPings.forEach(function(w){w.pingType in b?b[w.pingType].push(w.url):b[w.pingType]=[w.url]});
return{adpings:hmG(b)}};
_.$y=function(){return{isShellLoad:_.Wf("IS_SHELL_LOAD",!1)}};
sHu=function(){navigator.serviceWorker.getRegistrations().then(function(Y){Y.forEach(qUI)})};
qUI=function(Y){Y&&_.QHu(vIK,Y.scope)};
_.QHu=function(Y,b){b={scope:b||_.UJ("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Xk(Y),b)};
jy=function(Y,b,w,V){if(b&&b.serializedYpcCujLoggingParams){if(w){var H={};H.transactionErrorType=w;V&&(H.errorMessage=V);b.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:H}}}w={};w.ypcCujContext=b;Y=_.oA("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",Y,w);_.IA(_.ky(),Y,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Phv=function(Y,b,w,V){var H={};H.serializedTransactionFlowLoggingParams=b;w&&(H.errorType=w);V&&(H.errorMessage=V);_.RY(Y,H);_.dh()};
_.ZUB=function(Y){Y&&_.Phv("transactionFlowStarted",Y)};
_.B0v=function(Y){Y&&_.Phv("transactionFlowCancelled",Y)};
_.Gg=function(Y,b,w){b&&_.Phv("transactionFlowFailed",b,Y,w)};
nIL=function(Y){if(_.q("enable_setting_app_inert_when_buy_flow_opens")){var b=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");b&&(b.inert=Y)}};
_.Tg=function(){this.megabloxUrl_=null};
_.JL=function(Y){try{var b=Mir==null?void 0:Mir.composedPath(Y)}catch(w){b=Y.composedPath?Y.composedPath():[]}return b&&b.length>0?b:Y.composedPath?Y.composedPath():[]};
_.uW=function(Y){return _.JL(Y)[0]};
_.YZ=function(Y){if(!(Y instanceof Element))return null;Y=Y.classList?Array.from(Y.classList):void 0;if(!Y)return null;var b=Y.indexOf("style-scope");return b>-1&&b+1<Y.length?Y[b+1]:null};
br=function(Y){if(!(Y instanceof HTMLElement))return null;var b=Y&&(Y.$$||Y.polymerController)?Y.tagName.toLowerCase():null;return b?b:_.YZ(Y)};
e9a=function(Y,b){return Y.replace(/[^a-z]*[^\s]+/g,function(w){return w+".style-scope."+b})};
pw6=function(Y,b){return b?Y.split(",").map(function(w){return e9a(w.trim(),b)}).join(", "):Y};
_.w_=function(Y){var b,w,V,H;return(H=(V=(w=(b=Y.root)!=null?b:Y.shadowRoot)!=null?w:Y.__shady_native_shadowRoot)!=null?V:Y.__shady_shadowRoot)!=null?H:Y};
VC=function(Y){return Y instanceof ShadowRoot?ShadowRoot:Y instanceof DocumentFragment?DocumentFragment:Y instanceof Document?Document:HTMLElement};
OUu=function(Y){var b,w,V;return(V=(w=(b=Y.parentElement)!=null?b:Y.__shady_native_parentElement)!=null?w:Y.__shady_parentElement)!=null?V:null};
tiG=function(Y){var b,w,V;return(V=(w=(b=Y.parentNode)!=null?b:Y.__shady_native_parentNode)!=null?w:Y.__shady_parentNode)!=null?V:null};
R9a=function(Y){var b,w,V;return(V=(w=(b=Y.__shady_parentNode)!=null?b:Y.__shady_native_parentNode)!=null?w:Y.parentNode)!=null?V:null};
dTI=function(Y){var b,w;return(w=(b=tiG(Y))!=null?b:Y.host)!=null?w:null};
FAM=function(Y){var b,w,V;return(V=(w=(b=Y.nextSibling)!=null?b:Y.__shady_native_nextSibling)!=null?w:Y.__shady_nextSibling)!=null?V:null};
LAg=function(Y){var b,w,V;return(V=(w=(b=Y.previousSibling)!=null?b:Y.__shady_native_previousSibling)!=null?w:Y.__shady_previousSibling)!=null?V:null};
SU6=function(Y){var b,w,V;return(V=(w=(b=Y.nextElementSibling)!=null?b:Y.__shady_native_nextElementSibling)!=null?w:Y.__shady_nextElementSibling)!=null?V:null};
aLG=function(Y){var b,w,V;return(V=(w=(b=Y.previousElementSibling)!=null?b:Y.__shady_native_previousElementSibling)!=null?w:Y.__shady_previousElementSibling)!=null?V:null};
rBB=function(Y){var b,w,V;return new Set([].concat(_.Bt((b=Y.children)!=null?b:[]),_.Bt((w=Y.__shady_native_children)!=null?w:[]),_.Bt((V=Y.__shady_children)!=null?V:[])))};
z9u=function(Y){var b,w,V;return new Set([].concat(_.Bt((b=Y.childNodes)!=null?b:[]),_.Bt((w=Y.__shady_native_childNodes)!=null?w:[]),_.Bt((V=Y.__shady_childNodes)!=null?V:[])))};
WAK=function(Y){if(!Y)return null;var b=_.YZ(Y);if(!b){var w;return(w=Node.prototype.getRootNode)==null?void 0:w.call(Y)}b=b.toUpperCase();for(Y=OUu(Y);Y&&Y.tagName!==b;)Y=OUu(Y);return Y?_.w_(Y):null};
KAr=function(Y){for(;Y&&!(Y instanceof HTMLElement);)Y=dTI(Y);return Y};
iUa=function(Y){var b=KAr(Y);return Y===b?_.YZ(Y):b?br(b):null};
ABK=function(Y){return(Y=KAr(Y))?br(Y):null};
Cht=function(Y){if(Y instanceof Comment)return!1;if(Y instanceof Text){var b,w;if(((w=(b=Y.textContent)==null?void 0:b.trim())!=null?w:"")==="")return!1}return!0};
HX=function(Y,b,w){var V=b(Y);for(w=w===void 0?ABK(Y):w;V&&(iUa(V)!==w||!Cht(V));)Y=V,V=b(Y);return V};
yBv=function(Y,b,w){if(!b)return null;Y=ABK(Y);return iUa(b)===Y&&Cht(b)?b:HX(b,w,Y)};
$TK=function(Y){return HX(Y,R9a,_.YZ(Y))};
jHe=function(Y){return HX(Y,SU6)};
G8u=function(Y){return HX(Y,FAM)};
T0L=function(Y){return HX(Y,aLG)};
JBa=function(Y){return HX(Y,LAg)};
uXK=function(Y){return yBv(Y,Y.firstChild||Y.__shady_native_firstChild||Y.__shady_firstChild||null,FAM)};
Yee=function(Y){var b,w,V;var H=(V=(w=(b=Y.firstElementChild)!=null?b:Y.__shady_native_firstElementChild)!=null?w:Y.__shady_firstElementChild)!=null?V:null;return yBv(Y,H,SU6)};
b$6=function(Y){var b,w,V;var H=(V=(w=(b=Y.lastChild)!=null?b:Y.__shady_native_lastChild)!=null?w:Y.__shady_lastChild)!=null?V:null;return yBv(Y,H,LAg)};
wRq=function(Y){var b,w,V;var H=(V=(w=(b=Y.lastElementChild)!=null?b:Y.__shady_native_lastElementChild)!=null?w:Y.__shady_lastElementChild)!=null?V:null;return yBv(Y,H,aLG)};
Vgr=function(Y){var b=ABK(Y);return Array.from(z9u(Y)).filter(function(w){return iUa(w)===b})};
H$u=function(Y){var b=br(Y);return Array.from(rBB(Y)).filter(function(w){return _.YZ(w)===b})};
_.g_=function(Y,b,w){if(Y instanceof HTMLElement&&_.YZ(Y)===w){var V=Array.from(Y.classList).indexOf("style-scope");if(V===-1)Y.classList.add("style-scope"),Y.classList.add(b);else if(!(V+1>=Y.classList.length)){V=Y.classList[V+1];var H,f;Y==null||(H=Y.classList)==null||(f=H.replace)==null||f.call(H,V,b)}}if(Y instanceof HTMLElement||Y instanceof DocumentFragment)for(H=_.N(rBB(Y)),f=H.next();!f.done;f=H.next())_.g_(f.value,b,w);return Y};
fV=function(Y,b){if(Y instanceof HTMLElement&&_.YZ(Y)===b){var w=Array.from(Y.classList).indexOf("style-scope");w===-1||w+1>=Y.classList.length||Y.classList.remove("style-scope",Y.classList[w+1])}if(Y instanceof HTMLElement||Y instanceof DocumentFragment){w=_.N(Y.children);for(var V=w.next();!V.done;V=w.next())fV(V.value,b)}return Y};
_.g1t=function(Y,b){return VC(Y).prototype.appendChild.call(Y,b)};
fae=function(Y,b){if(Y===b)return!0;Y=z9u(Y);return Array.from(Y).some(function(w){return fae(w,b)})};
_.E6=function(Y,b){if(Y instanceof Nl)return Y;(b==null?0:b.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(Y,"ownerDocument")&&Object.defineProperty(Y,"ownerDocument",{get:function(){return window.document}});
return new Nl(Y)};
E1v=function(){var Y=Nl.prototype,b=[].concat(_.Bt(NQe?[]:["getRootNode"]),["setAttribute","removeAttribute"]);b=_.N(b);for(var w=b.next(),V={};!w.done;V={method$jscomp$48:void 0},w=b.next())V.method$jscomp$48=w.value,Y[V.method$jscomp$48]=function(H){return function(){return this.host[H.method$jscomp$48].apply(this.host,arguments)}}(V)};
U7G=function(){var Y=Nl.prototype,b=[].concat(_.Bt(NQe?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Bt(cmK?[]:["querySelector","querySelectorAll"]));b=_.N(b);for(var w=b.next(),V={};!w.done;V={method$jscomp$49:void 0},w=b.next())V.method$jscomp$49=w.value,Y[V.method$jscomp$49]=function(H){return function(){return this.root[H.method$jscomp$49].apply(this.root,arguments)}}(V)};
m76=function(){var Y=Nl.prototype,b=[].concat(_.Bt(XRG?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Bt(D7r?[]:["parentNode"]));b=_.N(b);for(var w=b.next(),V={};!w.done;V={prop$jscomp$62:void 0},w=b.next())V.prop$jscomp$62=w.value,Object.defineProperty(Y,V.prop$jscomp$62,{get:function(H){return function(){return this.host[H.prop$jscomp$62]}}(V),
configurable:!0})};
ksr=function(){var Y=Nl.prototype,b=["activeElement"].concat(_.Bt(XRG?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Bt(o1v?[]:["children"]),_.Bt(Iab?[]:["lastChild"]));b=_.N(b);for(var w=b.next(),V={};!w.done;V={prop$jscomp$63:void 0},w=b.next())V.prop$jscomp$63=w.value,Object.defineProperty(Y,V.prop$jscomp$63,{get:function(H){return function(){return this.root[H.prop$jscomp$63]}}(V),
configurable:!0})};
laG=function(){for(var Y=Nl.prototype,b=_.N(["innerHTML","textContent"]),w=b.next(),V={};!w.done;V={prop$jscomp$64:void 0},w=b.next())V.prop$jscomp$64=w.value,Object.defineProperty(Y,V.prop$jscomp$64,{get:function(H){return function(){return this.root[H.prop$jscomp$64]}}(V),
set:function(H){return function(f){this.root[H.prop$jscomp$64]=f}}(V),
configurable:!0})};
h1I=function(Y){var b=Nl.prototype;Y=_.N(Object.entries(Y));for(var w=Y.next(),V={};!w.done;V={fn$jscomp$360:void 0},w=Y.next()){var H=_.N(w.value);w=H.next().value;H=H.next().value;V.fn$jscomp$360=H;b[w]=function(f){return function(){return f.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.Bt(arguments)))}}(V)}};
qer=function(){for(var Y=Nl.prototype,b=_.N(Object.entries(x7a)),w=b.next(),V={};!w.done;V={fn$jscomp$361:void 0},w=b.next()){var H=_.N(w.value);w=H.next().value;H=H.next().value;V.fn$jscomp$361=H;Object.defineProperty(Y,w,{get:function(f){return function(){return f.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.Bt(arguments)))}}(V),
configurable:!0})}};
_.cX=function(Y){return Y instanceof sxB||Y instanceof Document?Y:new sxB(Y)};
Qxq=function(){for(var Y=sxB.prototype,b=_.N("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),w=b.next(),V={};!w.done;V={method$jscomp$50:void 0},w=b.next())V.method$jscomp$50=w.value,Y[V.method$jscomp$50]=function(H){return function(){return HTMLElement.prototype[H.method$jscomp$50].call.apply(HTMLElement.prototype[H.method$jscomp$50],[this.node].concat(_.Bt(arguments)))}}(V)};
v1G=function(){for(var Y=sxB.prototype,b=_.N("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),w=b.next(),V={};!w.done;V={prop$jscomp$65:void 0},w=b.next())V.prop$jscomp$65=w.value,Object.defineProperty(Y,V.prop$jscomp$65,{get:function(H){return function(){var f;return(f=this.node["__shady_native_"+H.prop$jscomp$65])!=null?f:this.node[H.prop$jscomp$65]}}(V),
configurable:!0})};
_.U6=function(Y,b,w){w===void 0&&(w=!Y.classList.contains(b));w?Y.classList.add(b):Y.classList.remove(b)};
_.XM=function(Y,b,w){w===void 0&&(w=!Y.hasAttribute(b));if(b==="class")throw Error("gg");w?_.cX(Y).setAttribute(b,""):_.cX(Y).removeAttribute(b)};
P5I=function(Y){return(Y.localName!=="slot"?[]:(0,_.DT)(Y).assignedNodes({flatten:!0})).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
_.Z$e=function(Y){return(Y=_.E6(Y).querySelector("slot"))&&Y.localName==="slot"?P5I(Y):[]};
_.m_=function(Y,b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(Y,b)};
oo=function(Y,b){var w=b.bind(Y);return function(V){w(V,V.detail)}};
_.Io=function(Y,b){var w=BQM.get(Y);w||(w=new WeakMap,BQM.set(Y,w));if(w.has(b))return w.get(b);if(_.q("web_fi_listen_disable_bound_fn_helper")){var V=b.bind(Y);Y=function(H){V(H,H==null?void 0:H.detail)}}else Y=oo(Y,b);
w.set(b,Y);return Y};
e16=function(Y,b){n1g(Y);Y.created[Mgq].push(b)};
n1g=function(Y){if(!Y.created||!Y.created[Mgq]){var b=Y.created,w=b?[b]:[];Y.created=function(){for(var V=_.N(w),H=V.next();!H.done;H=V.next())H.value.apply(this)};
Y.created[Mgq]=w}};
pRa=function(Y){return function(){var b=_.BN.apply(0,arguments);return function(w,V,H){Y.apply(null,_.Bt(b))(w,V,H)}}};
O$r=function(){return function(){var Y=_.BN.apply(0,arguments);return function(b,w,V){nia.apply(null,_.Bt(Y))(b,w,V)}}};
_.n=function(Y){return O$r()(Y)};
_.t=function(){return pRa(OkL).apply(null,_.Bt(_.BN.apply(0,arguments)))};
_.kZ=function(Y){return _.q("pbcm_fi_listen_decorators")?tgu(Y):pRa(esv)(Y)};
tgu=function(Y){return function(b,w){e16(b,function(){var V=this[w],H=_.q("web_fi_listen_disable_bound_fn_helper")?function(f){V(f,f.detail)}.bind(this):oo(this,V);
R1g.has(Y)?tQ(this.hostElement,Y,H):this.hostElement.addEventListener(Y,H)})}};
_.lr=function(){return pRa(pKB).apply(null,_.Bt(_.BN.apply(0,arguments)))};
_.R=function(Y){Y=Y===void 0?{}:Y;return pRa(MZt)(Y)};
_.hU=function(Y){if(Y.hostElement&&Y!==Y.hostElement){var b=_.B1(Y.hostElement);b=Y.renderIdom?b:b.shadowRoot}b||(Y=Y.root,b=Y instanceof Node?_.B1(Y):null);return b};
_.xZ=function(Y){return d7I?Fng(Y):function(b,w){Object.defineProperty(b,w,{get:function(){var V;return(V=_.hU(this))==null?void 0:V.querySelector(Y)},
enumerable:!0,configurable:!0})}};
Fng=function(Y){return function(b,w){Object.defineProperty(b,w,{get:function(){var V,H=(V=_.E6(this.hostElement))==null?void 0:V.querySelector(Y);if(H)return H;var f;return(f=_.hU(this))==null?void 0:f.querySelector(Y)},
enumerable:!0,configurable:!0})}};
_.ql=function(Y){return d7I?Lnr(Y):function(b,w){Object.defineProperty(b,w,{get:function(){var V;return(V=_.hU(this))==null?void 0:V.querySelectorAll(Y)},
enumerable:!0,configurable:!0})}};
Lnr=function(Y){return function(b,w){Object.defineProperty(b,w,{get:function(){var V,H=(V=_.E6(this.hostElement))==null?void 0:V.querySelectorAll(Y);if(H==null?0:H.length)return H;var f;return(f=_.hU(this))==null?void 0:f.querySelectorAll(Y)},
enumerable:!0,configurable:!0})}};
aaI=function(Y){return function(b){if(![_.YL,_.F].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("hg");xqe(Object.assign({},typeof Y!=="string"?Y:{is:Y,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(b)}};
_.QC=function(){var Y=Y===void 0?{}:Y;return function(b){if(![bo,_.s6].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("ig");qd6(Object.assign({},Y,{disableInheritanceCheck:!0}))(b)}};
z1a=function(Y,b){rmq[Y]!=null||(rmq[Y]=new Set);rmq[Y].add(b)};
_.vX=function(){var Y=_.lr.apply(null,_.Bt(_.BN.apply(0,arguments)));return function(b,w){z1a(b.is,w);Y(b,w)}};
BX=function(Y,b,w){if(PX(Y)&&!WnM.has(b)){b=b.replace(/^JSC\$[\d]+_/,"");b=b.replace(/\.\d+(\.|$)/g,function(f,E){return".#"+E});
ZT[Y]!=null||(ZT[Y]={});var V,H;(V=ZT[Y])[H=b]!=null||(V[H]=new Set);ZT[Y][b].has(w)||(ZT[Y][b].add(w),_.RY("polymerPropertyAccessEvent",{componentName:Y,propertyName:b,accessType:w}))}};
Kna=function(){return _.q("polymer_property_access_logging_debug")||_.q("polymer_enable_property_access_logging")};
PX=function(Y){if(_.q("polymer_property_access_logging_debug"))return!0;if(!_.q("polymer_enable_property_access_logging"))return!1;i$G||(i$G=Date.now());return(Aw(Y)+i$G)%100<_.cQ("polymer_property_access_logging_percent")};
Ama=function(Y,b){return PX(b)&&Y.hostElement.loggingStatus?new Proxy(Y,{get:function(w,V,H){if(w.hostElement.loggingStatus.bypassProxyController)return w[V];w.hostElement.loggingStatus.isExternalGet=!0;var f=w[V];w.hostElement.loggingStatus.isExternalGet=!1;if(f instanceof Function)return function(){var E=_.BN.apply(0,arguments);try{return w.hostElement.loggingStatus.currentExternalCall=V,BX(b,V,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),f.apply(this===H?w:this,E)}finally{w.hostElement.loggingStatus.currentExternalCall=
void 0}};
BX(b,V,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return f},
set:function(w,V,H){if(w.hostElement.loggingStatus.bypassProxyController)return w[V]=H,!0;w.hostElement.loggingStatus.isRendererStamper?BX(b,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):w.hostElement.loggingStatus.isDeclarativeExternal||BX(b,V,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{w.hostElement.loggingStatus.currentExternalSet=V,w[V]=H}finally{w.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):Y};
C5B=function(Y,b){Y&&Y.loggingStatus&&!Y.loggingStatus.isDeclarativeExternal&&!Y.loggingStatus.isExternalGet&&Y.loggingStatus.currentExternalSet!==b&&BX(Y.tagName.toLowerCase(),b,"PROPERTY_ACCESS_GET_INTERNAL")};
nV=function(Y,b,w){Y&&(w||Y.loggingStatus&&!Y.loggingStatus.isInitializing&&!Y.loggingStatus.isDefiningPropertyAccessor&&Y.loggingStatus.currentExternalSet!==b)&&BX(Y.tagName.toLowerCase(),b,"PROPERTY_ACCESS_SET_INTERNAL")};
ymr=function(){return{_definePropertyAccessor:function(Y,b){var w=this,V=w.hostElement.loggingStatus;V&&(V.isDefiningPropertyAccessor=!0);var H=w[Y];H!==void 0&&(w.__data?w._setPendingProperty(Y,H):(w.__dataProto!=null||(w.__dataProto={}),w.__dataProto[Y]=H));V&&(V.isDefiningPropertyAccessor=!1);Object.defineProperty(this,Y,{get:function(){C5B(w.hostElement,Y);return this.__data[Y]},
set:function(f){b||this._setPendingProperty(Y,f,!0)&&this._invalidateProperties()}})},
created:function(){var Y=this._setPendingProperty.bind(this);this._setPendingProperty=function(b,w,V){nV(this.hostElement,b);return Y.apply(this,[b,w,V])}}}};
$7r=function(Y){Kna()&&_.n(Ml.prototype)(Y.prototype,"__templateBindingLoggingBehavior")};
jxG=function(Y,b){if(b.resolvedFactories.length!==Y.resolvedFactories.length)return!0;b=_.N(b.resolvedFactories.entries());for(var w=b.next();!w.done;w=b.next()){var V=_.N(w.value);w=V.next().value;V=V.next().value;if(V.providerClass){if(V.providerClass!==Y.resolvedFactories[w].providerClass)return!0}else if(V.providerValue){if(V.providerValue!==Y.resolvedFactories[w].providerValue)return!0}else if(V.factory!==Y.resolvedFactories[w].factory)return!0}return!1};
GsL=function(Y,b){Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,w.constructor===Array)GsL(w,b);else{var V=b;V.has(w)||(w.inject&&V.add(w),w.behaviors&&GsL(w.behaviors,V))}};
em=function(Y,b){var w=Y[b];Y[b]=function(){var V=_.BN.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(w)return w.apply(this,V)}};
YBr=function(){_.pV.Class=function(w,V){w=TQq(w,V);em(w.prototype,"created");return w};
em(O6.prototype,"_initializeProperties");em(_.tU.prototype,"_initializeProperties");if(JmI)em(usG,"created");else{var Y=function(){em(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))Y();else{var b=customElements.define;customElements.define=function(w,V,H){b.call(customElements,w,V,H);w==="tp-yt-iron-list"&&(Y(),customElements.define=b)}}}};
w7B=function(Y,b){Y.prototype.behaviors=Y.prototype.behaviors||[];Y.prototype.behaviors.unshift(beB.InjectBehavior);Y.prototype.provide=b};
_.FM=function(Y){return function(b){if(!Y.disableElementRegistration){Y.noInjection||w7B(b,Y.providers);var w=b.prototype;w.__templateHelpers||nia(Ro.prototype)(w,"__templateHelpers");w=Y.is;Vtr||(Vtr=Date.now());(Aw(w)+Vtr)%100<_.cQ("polymer_log_prop_change_observer_percent")&&nia(d_.prototype)(b.prototype,"__propertyObserverObserver");b.prototype.behaviors=b.prototype.behaviors||[];b.prototype.behaviors.unshift(_.HeL.YtHostElementBehavior);$7r(b);aaI({is:Y.is,notifyObserversOnUndefined:Y.notifyObserversOnUndefined!==
!1,fastInit:Y.fastInit,template:Y.template,disableEnforceFastDefaultValuesCheck:!0})(b)}}};
_.S=function(Y){return _.FM({is:Y.is,template:Y.template,disableElementRegistration:Y.disableElementRegistration,cssBuildOptOut:Y.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
NiG=function(Y,b){if(ggt){Y=new Y;for(var w=_.N(Object.getOwnPropertyNames(Y)),V=w.next();!V.done;V=w.next())V=V.value,b[V]=Y[V];for(w=b;w&&w!==Object.prototype;w=Object.getPrototypeOf(w)){V=_.N(Object.getOwnPropertyNames(w));for(var H=V.next();!H.done;H=V.next())H=H.value,Y.hasOwnProperty(H)||Object.defineProperty(Y,H,fub(b,H))}}else Y.apply(b)};
fub=function(Y,b){return{get:function(){var w=Y[b];return w instanceof Function?w.bind(Y):w},
set:function(w){Y[b]=w}}};
cHv=function(Y,b){for(var w=Y._noAccessors,V=_.N(Object.getOwnPropertyNames(Y)),H=V.next();!H.done;H=V.next())if(H=H.value,!EgK.has(H))if(w)b[H]=Y[H];else{var f=Object.getOwnPropertyDescriptor(Y,H);f&&(f.configurable=!0,Object.defineProperty(b,H,f))}};
UsG=function(Y,b,w){return function(V){if(w){var H=w();V.model=H}if(Y[b])Y[b](V,V.detail)}};
LV=function(Y){var b=[];if(typeof Y==="string")Y.length>0&&b.push.apply(b,_.Bt(Y.split(".")));else{Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=w.value,typeof w==="string"?b.push.apply(b,_.Bt(w.split("."))):b.push(w)}return b};
X7G=function(Y,b){if(b[b.length-1]!=="*"&&b[b.length-1]!=="splices"){for(var w=0;w<b.length;w++){if(!Y)return;Y=Y[b[w]]}return Y}};
Dsv=function(Y,b){if(Y.length>b.length)return!1;for(var w=0;w<Y.length;w++)if(Y[w]!==b[w])return!1;return!0};
ogb=function(Y,b,w){if(b.type==="compute"){var V=b.getter.bind(w);var H=b.args}else V=function(){return w[b.method.methodName].apply(w,_.Bt(_.BN.apply(0,arguments)))},H=b.method.args;
msg(Y,b.propertyKey,V,H,b.value)};
k6M=function(Y,b){if(b.readOnly){var w=Object.getOwnPropertyDescriptor(Y.model,b.propertyKey);Object.defineProperty(Y.model,b.propertyKey,{get:w.get,set:function(){}});
Y.model[Iu6(b.propertyKey)]=w.set}};
lut=function(Y,b,w){if(w){var V=b.propertyKey,H=b.selector;b=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Bt(b.selectorArgs.map(function(f){return{type:"path",path:f}})));
msg(Y,V,function(f){var E=_.BN.apply(1,arguments);return H.apply(null,[w.getState()].concat(_.Bt(E)))},b)}};
xsu=function(Y,b,w){var V=_.hw(b.propertyKey)+"-changed";h6I(Y,function(H){var f={value:H.value,queueProperty:!0};H.path.split(".").length>1&&(f.path=H.path);w.dispatchEvent(new CustomEvent(V,{detail:f}))},[{type:"wildcard",
path:b.propertyKey}])};
qBe=function(Y,b,w){h6I(Y,function(){w[b.method.methodName].apply(w,_.Bt(_.BN.apply(0,arguments)))},b.method.args)};
Iu6=function(Y){return"_set"+(Y.charAt(0).toUpperCase()+Y.slice(1))};
sfb=function(){var Y,b=d2(function(w){Y=w},!1);
return[Y,b]};
BiB=function(Y){Y=Y.trim().replace(Qft,",").replace(vgM,"$1");var b=Y[0];b==="-"&&(b=Y[1]);if(b>="0"&&b<="9")return{type:"literal",value:Number(Y)};if(b==="'"||b==='"')return{type:"literal",value:Y.slice(1,-1)};if(b=Y.match(PZu)){b=b[1];var w=ZeM[b];if(w)return{type:w,path:Y.slice(0,-(b.length+1))}}return{type:"path",path:Y}};
p7b=function(Y){var b=Y.match(ngu);if(b)return Y={methodName:b[1],args:Mtt},b[2].trim()&&(b=b[2].replace(e6r,"&comma;").split(","),Y.args=b.map(BiB)),Y};
Oer=function(Y,b,w,V){V=V===void 0?!1:V;b=_.hw(b);var H=sZ;H&&(w=H(w,b,"attribute",Y));Sm(Y,w,b,V)};
Sm=function(Y,b,w,V){b=ttM(b,V===void 0?!1:V);b===void 0?Y.removeAttribute(w):Y.setAttribute(w,b)};
ttM=function(Y,b){switch(typeof Y){case "object":case "function":if(Y instanceof Date)return Y.toString();if(Y){if((b===void 0?0:b)&&!_.q("polymer_reflect_objects_as_boolean_killswitch"))return Y?"":void 0;b=window.trustedTypes?window.trustedTypes.isHTML(Y)||window.trustedTypes.isScript(Y)||window.trustedTypes.isScriptURL(Y):void 0;if(b)return Y;try{return JSON.stringify(Y)}catch(w){_.Sk(Error("Eg`"+Y))}}break;case "boolean":return Y?"":void 0;default:return Y!==null&&Y!==void 0?Y.toString():void 0}};
R6I=function(Y){if(Y===void 0)throw Error("Fg");return Y};
auL=function(Y,b,w,V){var H=dsv(V);if(H.length){V=w;var f="property";FLL.test(w)?f="attribute":w[w.length-1]==="$"&&(w=w.slice(0,-1),f="attribute");var E=LLb(H);E&&f==="attribute"&&(w==="class"&&Y.hasAttribute("class")&&(E+=" "+Y.getAttribute(w)),Sm(Y,E,w));f==="attribute"&&V==="disable-upgrade$"&&Y.setAttribute("disable-upgrade","");Y.localName==="input"&&V==="value"&&Y.setAttribute("value","");Y.removeAttribute(V);f==="property"&&(w=_.xL(w));b=R6I(b);SBb(b,f,w,H);return!0}return w.slice(0,3)===
"on-"?(Y.removeAttribute(w),(f=b).events!=null||(f.events=[]),b.events.push({name:w.slice(3),value:V}),!0):w==="id"?(b.id=V,!0):!1};
dsv=function(Y){for(var b=[],w=0,V;(V=rHe.exec(Y))!==null;){V.index>w&&b.push({type:"literal",value:Y.slice(w,V.index)});var H=V[1][0];w=!!V[2];V=V[3].trim();if(H==="{")throw Error("Gg");(H=p7b(V))?b.push({type:"method",negate:w,signature:H}):b.push({type:"path",negate:w,path:V});w=rHe.lastIndex}w&&w<Y.length&&(Y=Y.substring(w))&&b.push({type:"literal",value:Y});return b};
LLb=function(Y){for(var b="",w=0;w<Y.length;w++){var V=Y[w];V.type==="literal"&&(b+=V.value)}return b};
SBb=function(Y,b,w,V){Y.bindings!=null||(Y.bindings=[]);Y.bindings.push({kind:b,target:w,parts:V})};
AHG=function(Y,b,w){var V=!1;if(Y.localName==="template"){V=w;var H=b.stripWhitespace;H=z6M(Y,H===void 0?!1:H);var f=Y.content.ownerDocument.createDocumentFragment();H.content=f;f.appendChild(Y.content);V&&(V.templateInfo=H);V=!0}else Y.localName==="slot"&&(b.hasInsertionPoint=!0);if(Y.firstChild&&(H=w,Y.localName!=="script"&&Y.localName!=="style")){f=0;for(var E=Y.firstChild;E;){var U=E;if(U.localName==="template"){var X=U.getAttribute("is");if((E=X==="dom-if")||X==="dom-repeat"){U.removeAttribute("is");
X=U.ownerDocument.createElement("ps-"+X);U.parentNode.replaceChild(X,U);X.appendChild(U);var I=Array.from(U.attributes);I=_.N(I);for(var k=I.next();!k.done;k=I.next())k=k.value,E?WLB.has(k.name)&&Sm(X,k.value,k.name):KLg.has(k.name)?Sm(X,k.value,k.name):ier.has(k.name),U.removeAttribute(k.name);E=X}else E=U}if(E.nodeType===Node.TEXT_NODE){U=void 0;X=Y;for(I=E;((U=I.nextSibling)==null?void 0:U.nodeType)===Node.TEXT_NODE;)k=void 0,(k=I).textContent!=null||(k.textContent=""),I.nextSibling.textContent&&
(I.textContent+=I.nextSibling.textContent),X.removeChild(I.nextSibling);if(b.stripWhitespace&&E.textContent&&!E.textContent.trim()){Y.removeChild(E);E=E.nextSibling;continue}}AHG(E,b,{parentIndex:f,parentInfo:H});E.parentNode&&f++;E=E.nextSibling}}var l;if((l=Y.hasAttributes)==null?0:l.call(Y)){l=w=R6I(w);H=!1;f=Array.from(Y.attributes);f=_.N(f);for(U=f.next();!U.done;U=f.next())U=U.value,H=auL(Y,l,U.name,U.value)||H;V=H||V}Y.nodeType===Node.TEXT_NODE&&(l=dsv(Y.textContent),l.length&&(Y.textContent=
LLb(l)||" ",w=R6I(w),SBb(w,"text","textContent",l),V=!0));w&&V&&(w.infoIndex=b.nodeInfoList.push(w)-1)};
z6M=function(Y,b){b={nodeInfoList:[],stripWhitespace:(b===void 0?!1:b)||Y.hasAttribute("strip-whitespace")};AHG(Y.content,b);return b};
CZu=function(Y){Object.assign(Y,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
$s6=function(Y,b,w){b.signalCache!=null||(b.signalCache={});var V=b.signalCache[w];if(!V){var H=w.split(".");V=!yHB(Y,H[0]);if(H.length>1&&V){var f=Y.getPathMutationSignal(H);V=function(){var E=r2(Y.owner,function(){return Y.getWithPath([H[0]])}),U,X=(U=f())==null?void 0:U.value;
return{rootWasDefined:E!==void 0,value:X}}}else V=function(){var E=Y.getWithPath(H);
return{rootWasDefined:E!==void 0,value:E}};
b.signalCache[w]=V}return V()};
G6b=function(Y,b,w,V,H){b=b.parts.map(function(E,U){if(E.type==="literal"){w.partWasDefined!=null||(w.partWasDefined=[]);var X;(X=w.partWasDefined)[U]||(X[U]=E.value!==void 0);return E.value}var I;if(E.type==="method"){var k,l=(k=(I=w.partWasDefined)==null?void 0:I[U])!=null?k:!1;l||(l=E.signature.args.every(function(Z){return Z.type==="literal"}));
var x=!1,Q=!0;I=E.signature.args.map(function(Z){if(Z.type==="literal")return Z.value;if(Z.type!=="path")throw Error("Hg`"+Z.type);var e=$s6(Y,w,Z.path);Z=e.value;e=e.rootWasDefined;x||(x=e);Q&&(Q=e);return Z});
l||(l=H===1?Q:x);w.partWasDefined!=null||(w.partWasDefined={});w.partWasDefined[U]=l;if(!l)return;I=(U=$s6(Y,w,E.signature.methodName).value)&&typeof U==="function"?U.apply(V,I):void 0}else k=$s6(Y,w,E.path),I=k.value,w.partWasDefined!=null||(w.partWasDefined={}),(l=w.partWasDefined)[U]||(l[U]=I!==void 0||k.rootWasDefined);E.negate&&(I=!I);return I});
if(b.length===1){var f;return((f=w.partWasDefined)==null?0:f[0])?b[0]:jfM}return b.join("")};
Tib=function(Y){return typeof Y==="object"&&!!Y&&"notifyPath"in Y&&"canNotifyPath"in Y};
JHB=function(Y){return typeof Y==="object"&&!!Y&&"notifyPath"in Y};
uHq=function(Y){return"polymerController"in Y};
Y7r=function(Y,b){b=""+LV(b)[0];if(Tib(Y))return Y.canNotifyPath(b);if(uHq(Y)&&Tib(Y.polymerController))return Y.polymerController.canNotifyPath(b);if(JHB(Y)){var w;return!((w=Y.properties)==null||!w[b])}if(uHq(Y)&&JHB(Y.polymerController)){var V;return!((V=Y.polymerController.properties)==null||!V[b])}return!1};
bcG=function(Y,b,w){Tib(Y)||JHB(Y)?Y.notifyPath(b,w):uHq(Y)&&(Tib(Y.polymerController)||JHB(Y.polymerController))&&Y.polymerController.notifyPath(b,w)};
V5u=function(Y,b,w){if(w!==jfM){Y.kind==="attribute"||Y.target!=="textContent"&&(Y.target!=="value"||b.localName!=="input"&&b.localName!=="textarea")||(w=w===void 0?"":w);var V,H=(V=wlq.Polymer)==null?void 0:V.sanitizeDOMValue;H&&(w=H(w,Y.target,Y.kind,b));if(Y.kind==="attribute"){Y=Y.target;if(Y==="class"||Y==="name"||Y==="slot")b=(0,_.DT)(b);Sm(b,w,Y)}else if(Y=Y.target,w!==b[Y]||typeof w==="object")b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!0,BX(b.localName,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
b[Y]=w,b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!1)}};
Hca=function(Y,b,w,V){var H=b.parts[0];if(b.parts.length!==1||H.type!=="path"||!Y7r(w,b.target))return!1;var f=_.N(H.path.split(".")),E=f.next().value,U=uO(f);if(yHB(Y,E))return!1;V.signalCache!=null||(V.signalCache={});f=V.signalCache[H.path];var X;f=(X=f)==null?void 0:X().value;if((f==null?void 0:f.path)!==void 0){V=LV(f.path);var I=LV(H.path);V=[b.target].concat(_.Bt(V.slice(I.length-1)));bcG(w,V,H.negate?!f.value:f.value);return!0}var k=ao(Y,E);var l=k.getChangeRecordSignal(U),x=!1;f=function(){if(!x){var Z=
r2(Y.owner,function(){return k.getWithPath([])});
x||(x=Z!==void 0)}return{value:l(),rootWasDefined:x}};
V.signalCache[H.path]=f;V.partWasDefined!=null||(V.partWasDefined={});f=f();(I=V.partWasDefined)[0]||(I[0]=f.rootWasDefined);var Q=r2(Y.owner,function(){return k.getWithPath(U)});
V.partWasDefined[0]&&r2(Y.owner,function(){return void V5u(b,w,H.negate?!Q:Q)});
return!0};
gkq=function(Y,b,w,V,H,f){if(!Hca(Y,b,w,V)){var E=G6b(Y,b,V,H,f);r2(Y.owner,function(){return void V5u(b,w,E)})}};
fSt=function(Y,b,w,V,H,f){w=_.N(w);for(var E=w.next(),U={};!E.done;U={infoIndex:void 0},E=w.next()){E=E.value;var X=E.bindings;U.infoIndex=E.infoIndex;E=E.parentInfo;if(X){X=_.N(X);for(var I=X.next(),k={};!I.done;k={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},I=X.next()){k.b$jscomp$252=I.value;if(U.infoIndex===void 0)throw Error("Ig");k.bindingCtx$jscomp$4={};Y.effect(function(l,x){return function(){H&&!H()||gkq(Y,l.b$jscomp$252,b[x.infoIndex],l.bindingCtx$jscomp$4,V,f)}}(k,U))}}E&&fSt(Y,b,[E],
V,H,f)}};
NzB=function(Y,b){Y=(b.parentInfo?NzB(Y,b.parentInfo):Y).firstChild;for(var w=0;Y;Y=Y.nextSibling)if(b.parentIndex===w++)return Y;throw Error("Jg");};
cf6=function(Y,b,w,V){Y=document.importNode(Y.content,!0);Y.__noInsertionPoint=!(V==null?0:V.hasInsertionPoint);for(var H=Array(b.length),f={},E=0;E<b.length;E++){var U=b[E],X=NzB(Y,U);H[E]=X;U.id&&(f[U.id]=X);if(U.templateInfo){var I=X.parentElement;I&&(I.templateInfo=U.templateInfo,I.parentSignalProxy=w,I.eventListenerHost=V.eventListenerHost,I.stampingEnabled=V.enabledSignal)}I=void 0;if((I=U.events)==null?0:I.length)for(I=0;I<U.events.length;I++){var k=U.events[I];Eka(V.eventListenerHost,X,k.name,
k.value,V.getModel)}}fSt(w,H,b,V.thisCtx,V.enabledSignal,V.methodInvocationRequirement);return{root:Y,nodes:H,nodesById:f}};
XlM=function(Y,b){Y=Y();var w;(w=UHq.ShadyCSS)==null||w.prepareTemplate(Y,b);b=z6M(Y);return{template:Y,nodeInfoList:b.nodeInfoList,hasInsertionPoint:b.hasInsertionPoint}};
okb=function(){DHa=!1;for(var Y=r_.length,b=0;b<Y;b++){var w=r_[b];if(w)try{w()}catch(V){Promise.resolve().then(function(){throw V;})}}r_.splice(0,Y);
mHt+=Y};
hWK=function(Y){DHa||(DHa=!0,ISb.textContent=(kAB++).toString());r_.push(Y);return lSe++};
_.KV=function(Y,b,w){zd++;Y=b?new xHq(zd,Y,b,w):new q7K(zd,Y);WX.set(zd,Y);return zd};
sXM=function(Y){(Y=WX.get(Y))&&Y.cancel()};
vkM=function(Y,b){Y=QXG.get(Y);return Y?(b=Y.get(b))?b:null:null};
_.ir=function(Y,b,w,V){var H=vkM(Y,b);if(!H){H=new PPt;var f=QXG.get(Y);f||(f=new Map,QXG.set(Y,f));f.set(b,H)}Y=w.bind(Y);H.run(Y,V,void 0)};
_.ZcB=function(Y,b){var w;(w=vkM(Y,b))==null||w.cancel()};
Bze=function(Y){var b;(b=vkM(Y,"doRender"))==null||b.flush()};
AU=function(Y){var b;return(b=Y.hostElement)!=null?b:Y};
nkB=function(Y){var b=Y.indexOf(".");return b===-1?Y:Y.slice(0,b)};
M5r=function(Y,b,w,V,H,f){f=(H=(V=f?nkB(b):b)?b:null)?Y.get(H):Y.__data[b];H&&f===void 0&&(f=w[b]);_.Ua(Y.hostElement,HPK(V)+"-changed",{value:f,queueProperty:!0,path:H!=null?H:void 0},{bubbles:!1,composed:!1})};
eWM=function(Y,b){Y.__isReflecting=!0;Oer(Y.hostElement,b,Y.__data[b]);Y.__isReflecting=!1};
plr=function(Y){if(Y._onIronRequestResizeNotifications){var b=Y._onIronRequestResizeNotifications.bind(Y);Y._onIronRequestResizeNotifications=function(w){_.uW(w)!==Y.hostElement&&b(w)}}Y._ariaActiveAttributeChanged&&(Y._ariaActiveAttributeChanged=Y._ariaActiveAttributeChanged.bind(Y.hostElement));
Y._activeChanged&&(Y._activeChanged=function(w){Y.toggles?Sm(Y.hostElement,w?"true":"false",Y.ariaActiveAttribute):Y.hostElement.removeAttribute(Y.ariaActiveAttribute);Y._changedButtonState()});
Y._asyncClick&&(Y._asyncClick=function(){_.KV(function(){Y.hostElement.click()},1)});
!Y.keyEventTarget||Y.keyEventTarget instanceof EventTarget||(Y.keyEventTarget=AU(Y.keyEventTarget));Y._disabledChanged&&(Y._disabledChanged=Y._disabledChanged.bind(Y.hostElement));Y._observeItems&&(Y._observeItems=function(w){var V=AU(w);return _.B1(V).observeNodes(function(H){Y._updateItems();Y._updateSelected();_.Ua(V,"iron-items-changed",H,{bubbles:!1,cancelable:!1})})});
Y._updateItems&&Y._updateItems===_.CV._updateItems&&(Y._updateItems=function(){var w=_.B1(Y.hostElement).queryDistributedElements(Y.selectable||"*");w=Array.prototype.filter.call(w,Y._bindFilterItem);Y._setItems(w)});
Y._computeKeyboardClass&&(Y._computeKeyboardClass=function(w){_.U6(Y.hostElement,"keyboard-focus",w)});
Y.ensureRipple&&(Y.ensureRipple=function(w){if(Y.hasRipple&&!Y.hasRipple()){if(!Y._createRipple)return;Y._ripple=Y._createRipple();Y._ripple.noink=Y.noink;var V=Y._rippleContainer||Y.hostElement;V&&_.E6(V).appendChild(Y._ripple)}var H;if(w&&((H=Y._ripple)==null?0:H.uiDownAction)){V=_.E6(Y._rippleContainer||Y.hostElement);var f;H=(f=w.composedPath())==null?void 0:f[0];V.contains(H)&&Y._ripple.uiDownAction(w)}});
Y._updateMultiselectable&&(Y._updateMultiselectable=function(w){w?Y.hostElement.setAttribute("aria-multiselectable","true"):Y.hostElement.removeAttribute("aria-multiselectable")})};
OcK=function(Y,b,w){w=_.N(w);for(var V=w.next();!V.done;V=w.next())NiG(V.value.constructor,Y);NiG(b.constructor,Y)};
RWB=function(Y,b){Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,w.type==="signal"){var V=w.propertyKey;if(b.hasOwnProperty(V)&&b[V]!=null&&w.attributeType===Object){a:{V=b[V].constructor;for(var H=_.N(t5r),f=H.next();!f.done;f=H.next())if(f=f.value,V===f){V=f;break a}V=Object}w.attributeType=V}}};
dHv=function(){};
FNI=function(Y){var b;return(b=Y.hostElement)!=null?b:Y};
LN6=function(){throw Error("Ng");};
S7v=function(Y,b){Y.constructor.prototype.useSignals=!0;var w=new Y.constructor;OcK(w,Y,b.behaviors);RWB(b.reactiveSchemas,w);w={};for(var V=_.N(b.reactiveSchemas),H=V.next();!H.done;H=V.next())H=H.value,H.type==="signal"&&(w[H.propertyKey]=H.attributeType);var f={copyPropertiesToProto:LN6,didRegister:!1,typesForSignals:w},E=["disable-upgrade"].concat(_.Bt(b.observedAttributes)),U=function(X){yC.call(this,Y,b,f,X)};
_.P(U,yC);_.up.Object.defineProperties(U,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return E}}});
f.copyPropertiesToProto=function(){for(var X=0;X<b.behaviors.length;X++)cHv(b.behaviors[X],U.prototype);cHv(Y,U.prototype)};
b.legacyOptimizations||f.copyPropertiesToProto();U.prototype.is=Y.is;return U};
aSq=function(Y,b){if(Object.getPrototypeOf(b.prototype).constructor!==_.F)throw Error("Og");b.prototype.is=Y.is;return S7v(b.prototype,Y)};
rfI=function(Y){return Y.type==="compute"||Y.type==="computeWithMethod"};
zWt=function(Y){for(var b=Y.reactiveSchemas.filter(rfI),w=new Map,V=new Map,H=new Map,f=_.N(b),E=f.next();!E.done;E=f.next())E=E.value,w.set(E.propertyKey,E),V.set(E.propertyKey,[]),H.set(E.propertyKey,0);f=0;b=_.N(b);for(E=b.next();!E.done;E=b.next()){E=E.value;for(var U=_.N(E.type==="computeWithMethod"?E.method.args:E.args),X=U.next();!X.done;X=U.next())X=X.value,X.type!=="literal"&&(X=X.path.split(".")[0],V.has(X)&&(V.get(X).push(E.propertyKey),H.set(E.propertyKey,H.get(E.propertyKey)+1),f++))}E=
[].concat(_.Bt(V.keys())).filter(function(I){return H.get(I)===0});
for(b=[];E.length;)for(U=E.shift(),b.push(w.get(U)),U=_.N(V.get(U)),X=U.next();!X.done;X=U.next())X=X.value,H.set(X,H.get(X)-1),f--,H.get(X)===0&&E.push(X);w=Y.reactiveSchemas.filter(function(I){return!rfI(I)});
Y.reactiveSchemas=[].concat(_.Bt(w),_.Bt(b))};
WNL=function(Y,b){if(b.properties)for(var w=_.N(Object.entries(b.properties)),V=w.next();!V.done;V=w.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;Y.properties[V]=typeof H==="function"?{type:H}:H}b.observers&&Y.observers.push.apply(Y.observers,_.Bt(b.observers));b.disabledPolySiReactions&&Y.disabledPolySiReactions.push.apply(Y.disabledPolySiReactions,_.Bt(b.disabledPolySiReactions))};
KNa=function(Y,b){for(var w=b.length-1;w>=0;w--){var V=b[w];Array.isArray(V)?KNa(Y,V):Y.indexOf(V)<0&&Y.unshift(V)}};
icB=function(Y,b){Y.reactiveSchemas=Y.reactiveSchemas.filter(function(w){return w.type==="observe"&&b.includes(w.method.methodName)||rfI(w)&&b.includes(w.propertyKey)?!1:!0})};
CPM=function(Y,b){var w=b.prototype,V,H,f={is:Y.is,reactiveSchemas:[],observedAttributes:[],behaviors:[beB.InjectBehavior,Ro.prototype],disableElementRegistration:Y.disableElementRegistration,provide:(V=Y.providers)!=null?V:[],reactivityMode:Y.reactivityMode,signalProperties:(H=w.signalProperties)!=null?H:[]};"template"in b?f.templateGetter=function(){return b.template}:Y.getTemplate&&(f.templateGetter=Y.getTemplate);
w.behaviors&&KNa(f.behaviors,w.behaviors);AfG(f,b);return f};
AfG=function(Y,b){for(var w=b.prototype,V={properties:{},observers:[],disabledPolySiReactions:[]},H=_.N(Y.behaviors),f=H.next();!f.done;f=H.next())WNL(V,f.value);WNL(V,w);if(Y.signalProperties)for(w=_.N(Y.signalProperties),H=w.next();!H.done;H=w.next())delete V.properties[H.value];w=_.N(Object.entries(V.properties));for(H=w.next();!H.done;H=w.next()){f=_.N(H.value);H=f.next().value;f=f.next().value;var E=void 0;if((E=Y.signalProperties)==null||!E.includes(H)){E=void 0;var U=Y,X=f.type;if(!X)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{X=Reflect.getMetadata("design:type",b,H);for(var I=_.N(yfa),k=I.next();!k.done;k=I.next())if(k=k.value,X===k){X=k;break a}X=Object}else X=String;f.computed||f.selector||(U.reactiveSchemas.push({type:"signal",propertyKey:H,value:f.value,attributeType:X,readOnly:f.readOnly}),U.observedAttributes.push(_.hw(H)));f.reflectToAttribute&&U.reactiveSchemas.push({type:"reflect",propertyKey:H});if(f.computed){X=p7b(f.computed);if(!X)throw Error("Pg");U.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:H,method:X,value:f.value})}f.observer&&U.reactiveSchemas.push({type:"observe",method:{methodName:f.observer,args:[{type:"path",path:H}]}});f.notify&&U.reactiveSchemas.push({type:"notify",propertyKey:H});f.selector&&U.reactiveSchemas.push({type:"redux",propertyKey:H,selector:f.selector,selectorArgs:(E=f.selectorArgs)!=null?E:[]})}}$Ha&&zWt(Y);b=_.N(V.observers);for(H=b.next();!H.done;H=b.next())w=Y,H=H.value,(f=p7b(H))?w.reactiveSchemas.push({type:"observe",method:f}):console.log('Warning: unable to parse observe declaration: "'+
H+'"');icB(Y,V.disabledPolySiReactions)};
jX6=function(Y,b){for(var w=0;w<b.length;w++){var V=b[w],H=void 0;(H=V).showHideApi!=null||(H.showHideApi={});H=void 0;!!Y!==!((H=V.showHideApi)==null||!H.hideTemplateChildren)&&(V.nodeType===Node.TEXT_NODE?Y?(V.showHideApi.polymerTextContent=V.textContent,V.textContent=""):(H=void 0,V.textContent=(H=V.showHideApi.polymerTextContent)!=null?H:null):V instanceof Element&&V.localName==="slot"?Y?(V.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.DT)((0,_.DT)(V).parentNode).replaceChild(V.showHideApi.polymerReplaced,
V)):(H=V.showHideApi.polymerReplaced)&&(0,_.DT)((0,_.DT)(H).parentNode).replaceChild(V,H):V instanceof HTMLElement&&V.style&&(Y?(V.showHideApi.polymerDisplay=V.style.display,V.style.display="none"):V.style.display=V.showHideApi.polymerDisplay));V.showHideApi.hideTemplateChildren=Y;V.showHideChildren&&V.showHideChildren(Y)}};
TzB=function(){if(!GAG){var Y=document.createElement("style");Y.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(Y);GAG=!0}};
$Z=function(){return _.q("disable_hidden_dom_if_using_stamper")||_.q("creator_disable_hidden_dom_if_using_stamper")};
JfK=function(Y,b){var w=_.jm().getState();return b?Y.apply(null,[w].concat(_.Bt(b))):Y(w)};
b4a=function(){if(ugq)return ugq;var Y=_.N(_.kw(0,void 0,"Nl6eIe")),b=Y.next().value;Y.next();var w=Y.next().value;_.jm().subscribe(function(){Ybb(w)});
return ugq=b};
Ybb=function(Y){_.q("delay_redux_signal_update_killswitch")?Y(function(b){return b+1}):wdt||(wdt=!0,Promise.resolve().then(function(){Y(function(b){return b+1});
wdt=!1}))};
_.jm=function(){return VRv.getAppStore()};
Gd=function(Y,b){return VRv.getSelectFn()(Y,b)};
_.Td=function(Y){VRv.getDispatchFn()(Y)};
H4a=function(Y,b){var w={},V;for(V in Y)w[V]=b(Y[V],V);return w};
_.JU=function(Y,b){return function(){var w;return(w=_.Sa(Y))!=null?w:b}};
_.ur=function(Y,b){var w=Object.assign({},Y),V;for(V in b)b.hasOwnProperty(V)&&(w[V]=_.JU(Y[V],b[V]));return w};
gJt=function(Y,b,w){Y instanceof Element&&(w.debugName||(w.debugName="<"+Y.tagName.toLowerCase()+(Y.tagName.includes("-")?">":"."+Y.className+">")),_.q("ytwiz_enable_debug_component_props")&&(Y.debugProps||(Y.debugProps=H4a(b,function(V){return function(){return V()}}))))};
f2v=function(Y){var b;if(!(b=YO.traceAllComponents)){var w;b=(w=VK)==null?void 0:w.activeSpan;b=(b==null?void 0:b.name)!=="ytComponent"}return b?F0q("ytComponent",{},Y):Y()};
_.b8=function(Y,b){var w=function(V){return f2v(function(H){var f=NTa={};var E;if(((E=w)==null?0:E.idomCompat)&&V.renderedFromIdom){var U;E=typeof w.idomCompat==="object"?(U=w)==null?void 0:U.idomCompat.callbacks:{};U=_.N(EJq(V,E,w.debugName));var X=U.next().value;U.next();U=U.next().value;E=c8G(Y,X);f.privateValue=E;NTa=void 0;gJt(E,X,w);f={debugName:w.debugName};H&&f&&Object.assign(H.attributes,f);H=GDK(E);H=Array.isArray(H)?H[0]:H;H[k2]||(H[k2]={});H[k2].updateSignalsFromIdomProps=U;return E}E=
H4a(V,UEM);U=c8G(Y,E);f.privateValue=U;NTa=void 0;gJt(U,E,w);f={debugName:w.debugName};H&&f&&Object.assign(H.attributes,f);return U})};
w.debugName=b===void 0?"":b;return w};
c8G=function(Y,b){Y=Y(b);return q$(Y)};
Xdb=function(Y,b){Y[b]||(Y=new _.BQ("IDOM interop setter undefined. Key:",b),_.Ft(Y))};
UEM=function(Y,b){return b==="children"||b==="ref"||typeof Y==="function"||Y===void 0?Y:function(){return _.Sa(Y)}};
EJq=function(Y,b,w){var V={},H={},f={},E={},U;for(U in Y){E={key$jscomp$894:E.key$jscomp$894};E.key$jscomp$894=U;var X=Y[E.key$jscomp$894];if(E.key$jscomp$894==="children"||E.key$jscomp$894==="ref")V[E.key$jscomp$894]=X;else if(typeof X==="function")E.key$jscomp$894 in b||X.length>0?(f[E.key$jscomp$894]=X,V[E.key$jscomp$894]=function(k){return function(){return f[k.key$jscomp$894].apply(f,_.Bt(_.BN.apply(0,arguments)))}}(E)):V[E.key$jscomp$894]=X;
else if(!(Y[E.key$jscomp$894]===void 0&&E.key$jscomp$894 in b)){var I=_.N(_.kw(Y[E.key$jscomp$894],{debugName:"__cwis:"+w+":"+E.key$jscomp$894},"WAasgc"));X=I.next().value;I=I.next().value;V[E.key$jscomp$894]=X;H[E.key$jscomp$894]=I}}return[V,H,function(k){var l={},x;for(x in k)l={key$jscomp$895:l.key$jscomp$895,val$jscomp$117:void 0},l.key$jscomp$895=x,l.val$jscomp$117=k[l.key$jscomp$895],l.key$jscomp$895!=="children"&&l.key$jscomp$895!=="ref"&&(typeof l.val$jscomp$117==="function"?l.key$jscomp$895 in
b?f[l.key$jscomp$895]=l.val$jscomp$117:l.val$jscomp$117.length>0&&(f[l.key$jscomp$895]=l.val$jscomp$117,_.Sk(new _.BQ("Callback detected that was not set in the idomCompat callbacks map. Key:",l.key$jscomp$895))):l.key$jscomp$895 in b&&l.val$jscomp$117===void 0||(Xdb(H,l.key$jscomp$895),Qz(function(Q){return function(){H[Q.key$jscomp$895](Q.val$jscomp$117)}}(l))))}]};
oJL=function(Y,b,w){var V=IzK(Y.prototype,DEI,Y.prototype.behaviors);V.prototype.is=b;V.prototype.localName=b;w&&mEM(V,w);return function(H){H&&(V.prototype.hostElement=H);var f=new V;f.root=f;f.hostElement=H;return f}};
mEM=function(Y,b){var w;Object.defineProperty(Y.prototype,"_template",{get:function(){w===void 0&&(w=b());return w},
set:function(V){w=V},
configurable:!0,enumerable:!0})};
xEM=function(Y,b,w,V){function H(){if(!Q){for(var Z=new Set,e=_.N(k),O=e.next();!O.done;O=e.next()){O=O.value;for(var L=_.N(Object.getOwnPropertyNames(O)),r=L.next();!r.done;r=L.next()){r=r.value;var C=void 0,W=(C=Object.getOwnPropertyDescriptor(O,r))==null?void 0:C.value;W&&W instanceof Function&&!wI(r)&&(!U[r]||_.q("polymer_forward_method_killswitch"))&&Z.add(r)}}e=_.N(Object.entries(Object.getOwnPropertyDescriptors(Y.prototype)));for(O=e.next();!O.done;O=e.next())L=_.N(O.value),O=L.next().value,
L=L.next().value,L.value instanceof Function&&!wI(O)&&Z.add(O);Q=Z}return Q}
I2g(Y,b,V==null?void 0:V.providers);kiM(Y.prototype,Y,!0);var f=oJL(Y,b,w),E,U=(E=Y.prototype.properties)!=null?E:{},X,I,k=(I=(X=Y.prototype.behaviors)==null?void 0:X.flat(Infinity))!=null?I:[];w=_.N(k);for(E=w.next();!E.done;E=w.next())U=Object.assign({},E.value.properties,U);var l=[].concat(_.Bt(kmv),_.Bt(Object.keys(U).map(function(Z){return _.hw(Z)}))),x=!1,Q;
return{ctor:function(Z,e){var O=f(Z),L,r;Z=[].concat(_.Bt((L=V==null?void 0:V.allowedProps)!=null?L:[]),_.Bt((r=V==null?void 0:V.allowedPropsFromBehaviors)!=null?r:[]));O.allowedProps=Z.length>0?Z:void 0;L={};r=_.N(l);for(Z=r.next();!Z.done;Z=r.next())Z=Z.value,L[Z]=_.xL(Z);O.__dataAttributes=L;var C=O.ready.bind(O);O.ready=function(){e.beforeReady();C();if(PX(b)&&!x){var W=O.__templateInfo;if(W==null?0:W.hostProps){W=_.N(Object.keys(W.hostProps));for(var y=W.next();!y.done;y=W.next())BX(b,y.value,
"PROPERTY_ACCESS_GET_INTERNAL")}x=!0}};
O._overrideLegacyUndefined=!0;return O},
props:U,observedAttributes:l,getInitialMethods:H,getPropsToForwardBeforeRegister:function(){for(var Z=[],e=new Set,O=_.N(Object.keys(U)),L=O.next();!L.done;L=O.next())L=L.value,Z.push([L,U[L].readOnly]),e.add(L);O=H();L=_.N(Object.keys(Object.getOwnPropertyDescriptors(Y.prototype)));for(var r=L.next();!r.done;r=L.next())r=r.value,!l2v(r)||O.has(r)||e.has(r)||(Z.push([r,!1]),e.add(r));e=_.N(hle);for(O=e.next();!O.done;O=e.next())Z.push([O.value,!0]);return Z},
getPropsToForwardBeforeReady:function(Z){for(var e=[],O=_.N(Object.entries(Z)),L=O.next();!L.done;L=O.next()){var r=_.N(L.value);L=r.next().value;r=r.next().value;if(l2v(L)&&!(r instanceof Function)&&(e.push([L,!1]),PX(b))){var C=r=void 0;(C=(r=Z)._createPropertyAccessor)==null||C.call(r,L)}}return e},
shouldForwardProp:l2v,shouldLog:PX}};
I2g=function(Y,b,w){w7B(Y,w);Y.prototype.behaviors.unshift(qb6);if(Kna()){if(PX(b)){var V;(V=Y.prototype).behaviors!=null||(V.behaviors=[]);Y.prototype.behaviors.unshift(ymr())}$7r(Y)}_.n(Ro.prototype)(Y.prototype,"__templateHelpers")};
wI=function(Y){return siB.has(Y)||Y.startsWith("__compute__")};
l2v=function(Y){return!wI(Y)&&!Y.startsWith("_")&&!Y.endsWith("_")};
BTa=function(Y,b){function w(){var x=X();x=_.N(x);for(var Q=x.next();!Q.done;Q=x.next()){var Z=_.N(Q.value);Q=Z.next().value;Z=Z.next().value;Qib(l.prototype,Q,Z)}V=!0}
var V=!1,H=Y.ctor,f=Y.getInitialMethods,E=Y.observedAttributes,U=Y.getPropsToForwardBeforeReady,X=Y.getPropsToForwardBeforeRegister,I=Y.shouldForwardProp,k=Y.shouldLog,l=function(){var x=HTMLElement.call(this)||this;x.didForwardDynamicProps=!1;x.loggingStatus={};V||w();x.inst=H(x,{beforeReady:function(){x.didForwardDynamicProps||(x.forwardDynamicProps(),x.didForwardDynamicProps=!0)}});
x.controllerProxy=Ama(x.inst,b);x.forwardMethods();return x};
_.P(l,HTMLElement);l.prototype.forwardMethods=function(){for(var x=this,Q=_.N(this.inst.getExtraMethodsToForward()),Z=Q.next(),e={};!Z.done;e={method$jscomp$60:void 0},Z=Q.next()){var O=_.N(Z.value);Z=O.next().value;O=O.next().value;e.method$jscomp$60=O;this[Z]=function(L){return function(){return L.method$jscomp$60.call.apply(L.method$jscomp$60,[x.inst].concat(_.Bt(_.BN.apply(0,arguments))))}}(e)}Q=_.N(f());
for(e=Q.next();!e.done;e=Q.next())e=e.value,I(e)&&vJ6(this,e),k(b)&&!wI(e)&&PgI(this.inst,e)};
l.prototype.forwardDynamicProps=function(){var x=U(this.inst);x=_.N(x);for(var Q=x.next();!Q.done;Q=x.next()){var Z=_.N(Q.value);Q=Z.next().value;Z=Z.next().value;Qib(this,Q,Z);k(b)&&!wI(Q)&&Z4I(this.inst,Q)}};
l.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
l.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
l.prototype.attributeChangedCallback=function(x,Q,Z){this.inst.attributeChangedCallbackWrapper(x,Q,Z)};
_.up.Object.defineProperties(l.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return b}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.up.Object.defineProperties(l,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return E}}});
customElements.define(b,l)};
Qib=function(Y,b,w){Y.hasOwnProperty(b)||Object.defineProperty(Y,b,{get:function(){var V,H=((V=Y.is)!=null?V:Y.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||BX(H,b,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,V=this.polymerController[b],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,V},
set:function(V){if(!w){var H,f=((H=Y.is)!=null?H:Y.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||BX(f,b,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=b,this.loggingStatus.bypassProxyController=!0,this.polymerController[b]!==V&&(H={},this.polymerController.setProperties((H[b]=V,H)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
vJ6=function(Y,b,w){var V=Y.polymerController;Y[b]=function(){var H=_.BN.apply(0,arguments);Y.loggingStatus.currentExternalCall=b;Y.loggingStatus.bypassProxyController=!0;var f,E=((f=Y.is)!=null?f:Y.tagName).toLowerCase();BX(E,b,"PROPERTY_ACCESS_CALL_EXTERNAL");var U;f=(U=w!=null?w:V[b])==null?void 0:U.call.apply(U,[V].concat(_.Bt(H)));Y.loggingStatus.currentExternalCall=void 0;Y.loggingStatus.bypassProxyController=!1;return f}};
PgI=function(Y,b){var w=Y.hostElement,V=Y[b];Y[b]=function(){var H=_.BN.apply(0,arguments);if(w.loggingStatus.currentExternalCall!==b){var f,E=((f=w.is)!=null?f:w.tagName).toLowerCase();BX(E,b,"PROPERTY_ACCESS_CALL_INTERNAL")}return V==null?void 0:V.apply(Y,H)}};
Z4I=function(Y,b){var w=Object.getOwnPropertyDescriptor(Y,b);w&&!w.get&&Object.defineProperty(Y,b,{get:function(){C5B(Y.hostElement,b);return w.value},
set:function(V){nV(Y.hostElement,b);w.value=V}})};
nJe=function(Y){return _.q("poly_si_dom_repeat_detached_fix_killswitch")||Y.tagName!=="PS-DOM-REPEAT"?Y.tagName==="DOM-REPEAT":!0};
elv=function(Y,b){var w=MRa(Y);Y instanceof Element&&w.unshift(Y);Y=_.N(w.filter(nJe));for(var V=Y.next();!V.done;V=Y.next()){var H=void 0;V=_.N((H=V.value.__instances)!=null?H:[]);for(H=V.next();!H.done;H=V.next())if(H=H.value,H.root){H=Array.from(H.root.children);H=_.N(H);for(var f=H.next();!f.done;f=H.next())w.push.apply(w,_.Bt(elv(f.value,b)))}}return w.filter(function(E){return E.usePatchedLifecycles&&E.lifecycleIsConnected===b})};
MRa=function(Y){var b=null;Y instanceof Element?b=Element.prototype.querySelectorAll:Y instanceof DocumentFragment&&(b=DocumentFragment.prototype.querySelectorAll);return b?Array.from(b.call(Y,"*")):[]};
Vd=function(Y){I2(function(){for(var b=_.N(elv(Y,!1)),w=b.next();!w.done;w=b.next()){w=w.value;w.lifecycleIsConnected=!0;try{var V=void 0,H=void 0,f=void 0,E=void 0;(V=(E=w.polymerController)!=null?E:w)==null||(f=(H=V).connectedCallback)==null||f.call(H)}catch(U){_.Ft(U)}}})};
HP=function(Y){I2(function(){for(var b=_.N(elv(Y,!0)),w=b.next();!w.done;w=b.next()){w=w.value;w.lifecycleIsConnected=!1;try{var V=void 0,H=void 0,f=void 0,E=void 0;(V=(E=w.polymerController)!=null?E:w)==null||(f=(H=V).disconnectedCallback)==null||f.call(H)}catch(U){_.Ft(U)}}})};
LJq=function(){if(!pdM){pdM=!0;var Y=[Node];gI&&Y.push(gI.Wrapper);var b=Node.prototype.insertBefore,w=Node.prototype.removeChild;Y=_.N(Y);for(var V=Y.next(),H={};!V.done;H={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},V=Y.next())V=V.value,H.nativeInsertBefore=V.prototype.insertBefore,V.prototype.insertBefore=function(E){return function(U,X){if(U instanceof DocumentFragment){var I=Array.from(U.children);U=E.nativeInsertBefore.call(this,U,X);
if(this.isConnected&&E.nativeInsertBefore===b)for(X=_.N(I),I=X.next();!I.done;I=X.next())Vd(I.value);return U}I=U instanceof Element&&U.isConnected;X=E.nativeInsertBefore.call(this,U,X);I&&HP(U);this.isConnected&&Vd(U);return X}}(H),H.nativeAppendChild=V.prototype.appendChild,V.prototype.appendChild=function(E){return function(U){if(U instanceof DocumentFragment){var X=Array.from(U.children);
U=E.nativeAppendChild.call(this,U);if(this.isConnected){X=_.N(X);for(var I=X.next();!I.done;I=X.next())Vd(I.value)}return U}X=U instanceof Element&&U.isConnected;I=E.nativeAppendChild.call(this,U);X&&HP(U);this.isConnected&&Vd(U);return I}}(H),H.nativeRemoveChild=V.prototype.removeChild,V.prototype.removeChild=function(E){return function(U){var X=U instanceof Element&&U.isConnected,I=E.nativeRemoveChild.call(this,U);
X&&w===E.nativeRemoveChild&&HP(U);return I}}(H),H.nativeReplaceChild=V.prototype.replaceChild,V.prototype.replaceChild=function(E){return function(U,X){if(U instanceof DocumentFragment){var I=Array.from(U.children);
U=E.nativeReplaceChild.call(this,U,X);if(this.isConnected)for(HP(X),X=_.N(I),I=X.next();!I.done;I=X.next())Vd(I.value);return U}I=U instanceof Element&&U.isConnected;var k=this.isConnected,l=E.nativeReplaceChild.call(this,U,X);k&&HP(X);I&&HP(U);k&&Vd(U);return l}}(H);
Y=[Element];gI&&Y.push(gI.Wrapper);Y=_.N(Y);V=Y.next();for(H={};!V.done;H={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},V=Y.next())V=V.value,V.prototype.before=O46(V.prototype.before),V.prototype.after=O46(V.prototype.after),H.nativeReplaceWith=V.prototype.replaceWith,V.prototype.replaceWith=function(E){return function(){var U=_.BN.apply(0,arguments),X=_.N(tRK(U)),I=X.next().value,
k=X.next().value;X=this.isConnected;E.nativeReplaceWith.apply(this,U);U=_.N(k);for(k=U.next();!k.done;k=U.next())HP(k.value);if(X)for(HP(this),I=_.N(I),X=I.next();!X.done;X=I.next())X=X.value,X instanceof Element&&Vd(X)}}(H),H.nativeRemove=V.prototype.remove,V.prototype.remove=function(E){return function(){var U=this.isConnected;
E.nativeRemove.call(this);U&&HP(this)}}(H),H.nativeInsertAdjacentElement=V.prototype.insertAdjacentElement,V.prototype.insertAdjacentElement=function(E){return function(U,X){var I=X.isConnected;
U=E.nativeInsertAdjacentElement.call(this,U,X);I&&HP(X);U.isConnected&&Vd(U);return U}}(H),H.nativeSetAttribute=V.prototype.setAttribute,V.prototype.setAttribute=function(E){return function(U,X){var I=Rle(this);
if(!I.usePatchedLifecycles)return E.nativeSetAttribute.call(this,U,X);var k=this.getAttribute(U);E.nativeSetAttribute.call(this,U,X);X=this.getAttribute(U);dEb(I,U,k,X)}}(H),H.nativeRemoveAttribute=V.prototype.removeAttribute,V.prototype.removeAttribute=function(E){return function(U){var X=Rle(this);
if(!X.usePatchedLifecycles)return E.nativeRemoveAttribute.call(this,U);var I=this.getAttribute(U);E.nativeRemoveAttribute.call(this,U);I!==null&&dEb(X,U,I,null)}}(H),H.nativeToggleAttribute=V.prototype.toggleAttribute,V.prototype.toggleAttribute=function(E){return function(U,X){var I=Rle(this);
if(!this.usePatchedLifecycles)return E.nativeToggleAttribute.call(this,U,X);var k=this.getAttribute(U),l=k!==null;X=E.nativeToggleAttribute.call(this,U,X);X!==l&&dEb(I,U,k,X?"":null);return X}}(H);
Y=[Document,DocumentFragment,Element,ShadowRoot];gI&&Y.push(gI.Wrapper);Y=_.N(Y);for(H=Y.next();!H.done;H=Y.next())H=H.value,H.prototype.prepend=O46(H.prototype.prepend),H.prototype.append=O46(H.prototype.append);(gI==null?void 0:gI.noPatch)===!0&&FJM();document.readyState==="complete"?Vd(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Vd(document.body)});
var f=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");f&&f.get&&f.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(E){E||HP(this);f.set.call(this,E);return E}})}};
O46=function(Y){return function(){var b=_.BN.apply(0,arguments),w=_.N(tRK(b)),V=w.next().value;w=w.next().value;Y.apply(this,b);b=_.N(w);for(w=b.next();!w.done;w=b.next())HP(w.value);if(this.isConnected)for(V=_.N(V),b=V.next();!b.done;b=V.next())b=b.value,b instanceof Element&&Vd(b)}};
FJM=function(){for(var Y=_.N(Sbt),b=Y.next();!b.done;b=Y.next()){b=b.value.prototype;for(var w=_.N(a2b),V=w.next();!V.done;V=w.next()){V=V.value;var H=Object.getOwnPropertyDescriptor(b,V);H&&Object.defineProperty(b,"__shady_native_"+V,H)}}};
dEb=function(Y,b,w,V){var H,f;if((H=Y.polymerController)==null?0:(f=H.observedAttributes)==null?0:f.includes(b))if(Y=Y.polymerController,Y.attributeChangedCallbackWrapper)Y.attributeChangedCallbackWrapper.call(Y,b,w,V);else{var E;(E=Y.attributeChangedCallback)==null||E.call(Y,b,w,V)}};
tRK=function(Y){var b=[],w=[];Y=_.N(Y);for(var V=Y.next();!V.done;V=Y.next())V=V.value,V instanceof Element&&V.isConnected&&w.push(V),V instanceof DocumentFragment?b.push.apply(b,_.Bt(Array.from(V.children))):b.push(V);return[b,w]};
Rle=function(Y){return!(Y instanceof Element)&&Y.node instanceof Element?Y.node:Y};
r8a=function(Y,b){var w=b?["children"].concat(_.Bt(b)):["children"];b=[];w=_.N(w);for(var V=w.next();!V.done;V=w.next()){var H=V.value;if(Y.hasOwnProperty(H)){V=Y[H];V=typeof V==="function"?V():V;V=q$(Array.isArray(V)?V:[V]).flat();if(H!=="children"){H=HPK(H);for(var f=_.N(V),E=f.next();!E.done;E=f.next())E=E.value,E instanceof Element&&E.setAttribute("slot",H)}b.push(V)}}b.length===0?Y=[]:(Y=q$(_.m("div",null,b)),Y=Array.from(Y.childNodes));return Y};
WJG=function(Y,b,w){var V={};_.a2(function(){var H={},f;for(f in b)if(b.hasOwnProperty(f)){var E=void 0,U=void 0;if(!(((E=w.slotProps)==null?0:E.includes(f))||f==="children"||((U=w.callbackProps)==null?0:U.includes(f))||f==="ref")&&(E=_.Sa(b[f]),V[f]!==E)){V[f]=E;U=void 0;var X=(U=Y.hostElement)!=null?U:Y;zlB.has(f)&&(X[f]=E);H[f]=E}}Qz(function(){if(Y.setProperties)Y.setProperties(H);else for(var I=_.N(Object.entries(H)),k=I.next();!k.done;k=I.next()){var l=_.N(k.value);k=l.next().value;l=l.next().value;
Y[k]=l}})})};
i4L=function(Y,b,w,V){var H=r8a(w,V.slotProps),f=(0,_.DT)(Y);H=_.N(H);for(var E=H.next();!E.done;E=H.next())f.appendChild(E.value);WJG(b,w,V);V=_.N(V.callbackProps||[]);H=V.next();for(f={};!H.done;f={kebabEventName:void 0,eventListener:void 0},H=V.next())E=H=H.value,String(H).substring(0,2)==="on"&&w[E]?(f.kebabEventName=HPK(String(H).substring(2)),f.eventListener=w[E],Y.addEventListener(f.kebabEventName,f.eventListener),_.R2(function(k){return function(){Y.removeEventListener(k.kebabEventName,k.eventListener)}}(f))):
b[E]=w[E];
if(w.ref){w=_.N(KJI(w.ref));var U=w.next().value,X=w.next().value,I=b.attached.bind(b);b.attached=function(){U(Y);I()};
_.R2(function(){X()})}};
KJI=function(Y){if(typeof Y==="function"){var b;return[function(w){b=Y(w)},
function(){var w;(w=b)==null||w()}]}if(!Y.onRender||!Y.onUnmount)throw Error("Tg");
return[Y.onRender,Y.onUnmount]};
$Ea=function(Y,b,w,V,H){V=V===void 0?{}:V;var f=A8L,E=!1;f?(E=!0,A8L=void 0):(Cga=b,f=document.createElement(b),Cga=void 0);var U=f;U.usePatchedLifecycles=!0;U.lifecycleIsConnected=!1;f.loggingStatus={};var X=y8M(Y,b,f,V,H);_.R2(function(){U.lifecycleIsConnected&&(U.lifecycleIsConnected=!1,X.disconnectedCallback())});
E||i4L(f,X,w,V);return f};
y8M=function(Y,b,w,V,H){H=H===void 0?xEM:H;jiL[b]!=null||(jiL[b]=H(Y,b,V==null?void 0:V.getTemplate,V));var f=jiL[b],E=f.ctor;H=f.getInitialMethods;var U=f.getPropsToForwardBeforeReady;Y=f.getPropsToForwardBeforeRegister;V=f.shouldForwardProp;var X=f.observedAttributes,I=f.shouldLog,k=E(w,{beforeReady:function(){var l=k;l._takeAttributes?l._takeAttributes():l.setPropertiesFromInitialAttributeValues&&l.setPropertiesFromInitialAttributeValues();l=_.N(U(w.polymerController));for(var x=l.next();!x.done;x=
l.next()){var Q=_.N(x.value);x=Q.next().value;Q=Q.next().value;Qib(w,x,Q);I(b)&&!wI(x)&&Z4I(w.polymerController,x)}w.polymerController=Ama(k,b)}});
w.polymerController=k;w.polymerController.observedAttributes=X;f=_.N(k.getExtraMethodsToForward());for(E=f.next();!E.done;E=f.next())X=_.N(E.value),E=X.next().value,X=X.next().value,vJ6(w,E,X);H=_.N(H());for(f=H.next();!f.done;f=H.next())f=f.value,V(f)&&vJ6(w,f),I(b)&&!wI(f)&&PgI(k,f);Y=_.N(Y());for(V=Y.next();!V.done;V=Y.next())H=_.N(V.value),V=H.next().value,H=H.next().value,Qib(w,V,H);return k};
TTB=function(Y,b){return fA===b?(Y.isInert=!0,fA="",!0):Gmv===b?(Y.isInert=!0,Gmv="",!0):!1};
J8v=function(Y){var b=NZ;NZ=Y;return b};
Y5g=function(Y){if(EQ.has(Y))Gmv=Y;else if(cP.has(Y)&&NZ&&uJB(NZ)===Y){var b;(b=NZ)._numRenders!=null||(b._numRenders=0);NZ._numRenders++;if(NZ._numRenders>1)throw Error("Ug");return NZ}};
bD6=function(Y){EQ.has(uJB(Y))?Gmv=uJB(Y):cP.has(uJB(Y))&&NZ!==Y&&(Y._isInert=!0)};
uJB=function(Y){var b;return(b=Y==null?void 0:Y.tagName.toLowerCase())!=null?b:""};
wmB=function(Y,b){if(Y.componentType===nQ)throw Error("Vg");cP.add(b);var w=function(){var V=HTMLElement.call(this)||this;V.is=b;if(Cga===b)return V.isInert=!0,V;V.createElement();return V};
_.P(w,HTMLElement);w.prototype.createElement=function(){if(!this.isInert){A8L=this;var V=_.N(_.hEG(function(){return _.m(Y,null)})).next().value;
A8L=void 0;CZu(this);return V}};
customElements.define(b,w)};
HDu=function(Y,b,w,V,H){Y.prototype.is=b;(V==null?0:V.useSink)?Vda(Y,b,w,V,H):(w=xEM(Y,b,w,V),BTa(w,b));return Y};
Vda=function(Y,b,w,V,H){LJq();var f=_.b8(function(E){return $Ea(Y,b,E,Object.assign({},V,{getTemplate:w}),H)},"a");
wmB(f,b);return f};
fbM=function(Y){return!gxa.has(Y)};
cRK=function(Y,b,w,V){function H(){if(!l){for(var x=new Set(N1K),Q=_.N(f.behaviors),Z=Q.next();!Z.done;Z=Q.next()){Z=Z.value;for(var e=_.N(Object.getOwnPropertyNames(Z)),O=e.next();!O.done;O=e.next()){O=O.value;var L=void 0,r=(L=Object.getOwnPropertyDescriptor(Z,O))==null?void 0:L.value;r&&r instanceof Function&&(!I[O]||_.q("polymer_forward_method_killswitch"))&&x.add(O)}}Q=_.N(Object.entries(Object.getOwnPropertyDescriptors(Y.prototype)));for(Z=Q.next();!Z.done;Z=Q.next())e=_.N(Z.value),Z=e.next().value,
e=e.next().value,e.value instanceof Function&&x.add(Z);l=x}return l}
var f=CPM({is:b,disableElementRegistration:!1,getTemplate:w,providers:V==null?void 0:V.providers,reactivityMode:V==null?void 0:V.reactivityMode},Y);if((V==null?0:V.allowedProps)||(V==null?0:V.allowedPropsFromBehaviors)){var E,U;f.allowedProps=[].concat(_.Bt((E=V.allowedProps)!=null?E:[]),_.Bt((U=V.allowedPropsFromBehaviors)!=null?U:[]))}var X=aSq(f,Y);b=X.observedAttributes;var I={};w=_.N(f.reactiveSchemas);for(V=w.next();!V.done;V=w.next())if(V=V.value,V.type==="signal")I[V.propertyKey]={readOnly:V.readOnly},
V.readOnly&&(I[Iu6(V.propertyKey)]={readOnly:!0});else if(V.type==="compute"||V.type==="computeWithMethod"||V.type==="redux")I[V.propertyKey]={readOnly:!0};var k=f.reactiveSchemas.length,l;return{ctor:function(x,Q){x=new X(x);x.beforeReady=Q.beforeReady;return x},
props:I,observedAttributes:b,getInitialMethods:H,getPropsToForwardBeforeRegister:function(){for(var x=[],Q=new Set,Z=_.N(Exe),e=Z.next();!e.done;e=Z.next())e=e.value,x.push([e,e!=="observers"&&e!=="properties"]),Q.add(e);Z=_.N(Object.keys(I));for(e=Z.next();!e.done;e=Z.next())e=e.value,x.push([e,I[e].readOnly]),Q.add(e);Z=H();e=_.N(Object.keys(Object.getOwnPropertyDescriptors(Y.prototype)));for(var O=e.next();!O.done;O=e.next())O=O.value,!fbM(O)||Z.has(O)||Q.has(O)||(x.push([O,!1]),Q.add(O));x.push(["allowedProps",
!0]);return x},
getPropsToForwardBeforeReady:function(x){var Q=[];x=_.N(Object.keys(x));for(var Z=x.next();!Z.done;Z=x.next()){Z=Z.value;var e=H();fbM(Z)&&!e.has(Z)&&Q.push([Z,!1])}x=_.N(f.reactiveSchemas.slice(k));for(Z=x.next();!Z.done;Z=x.next())Z=Z.value,Z.type!=="compute"&&Z.type!=="computeWithMethod"&&Z.type!=="redux"&&Z.type!=="signal"||Q.push([Z.propertyKey,Z.type==="signal"?Z.readOnly:!0]);return Q},
shouldForwardProp:fbM,shouldLog:PX}};
_.a=function(Y,b,w,V){var H,f,E=(f=(H=V)==null?void 0:H.mode)!=null?f:0;V!=null||(V={});var U;(U=V).reactivityMode!=null||(U.reactivityMode=0);E===1&&_.XO("creator_poly_si_disable_list").includes(b)&&(E=2);return E===1?HDu(Y,b,w,Object.assign({},V,{useSink:!0}),cRK):HDu(Y,b,w,Object.assign({},V,{useSink:E===2}))};
_.UQ=function(){return function(Y,b,w,V){var H,f,E=(f=(H=V)==null?void 0:H.mode)!=null?f:2;V!=null||(V={});var U;(U=V).reactivityMode!=null||(U.reactivityMode=0);if(E===0)throw Error("Wg`"+E);return Vda(Y,b,w,V,E===1?cRK:void 0)}};
_.Xd=function(Y){return _.q("creator_poly_si_killswitch")?!1:_.q("force_all_poly_si_batches")&&(Y==="poly_si_all_on_test_check"||Y==="creator_poly_si_batch_050"?0:Y)||document.documentElement.hasAttribute("use-signals")?!0:!Y||_.q(Y+"_holdback_enabled")&&_.q("kevlar_polysi_holdback")?!1:_.q(Y)};
DR=function(Y){return Y?Y.icon?Y.icon.iconType.toLowerCase():Y.customThumbnail?"member":"":""};
UNu=function(Y){if(!Y)return"";Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())if((b=b.value)&&b.liveChatAuthorBadgeRenderer&&(b=DR(b.liveChatAuthorBadgeRenderer))&&b!=="verified")return b;return""};
Xma=function(Y,b){if(!Y)return null;var w;return((w=Y.find(function(V){return V&&V.liveChatAuthorBadgeRenderer?DR(V.liveChatAuthorBadgeRenderer)===b:!1}))==null?void 0:w.liveChatAuthorBadgeRenderer)||null};
_.lbG=function(Y){var b=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;Y=DNt(Y);b=DNt(b);var w=mNB(Y.hex);b=mNB(b.hex);var V=b[0]/255;var H=b[1]/255,f=b[2]/255,E=Math.max(V,H,f),U=Math.min(V,H,f),X=0,I=0,k=.5*(E+U);E!=U&&(E==V?X=60*(H-f)/(E-U):E==H?X=60*(f-V)/(E-U)+120:E==f&&(X=60*(V-H)/(E-U)+240),I=0<k&&k<=.5?(E-U)/(2*k):(E-U)/(2-2*k));V=[Math.round(X+360)%360,I,k];w=oxu(w,b);for(Y=Iba(Y.hex);w<4.5;){Y=V[2]>=.5?Y.darker((4.5-w)/2):Y.brighter((4.5-w)/2);w=Y.toString();
H=kHB(w);if(!H.length)throw Error("Td`"+w);w=H;w=oxu(w,b)}return Y.hex()};
oxu=function(Y,b){Y=_.bUL(Y);b=_.bUL(b);return(Math.max(Y,b)+.05)/(Math.min(Y,b)+.05)};
_.mQ=function(Y){return"#"+("000000"+(Y&16777215).toString(16)).slice(-6)};
_.h$G=function(Y){for(var b=0,w=0;w<Y.length;w++)b=Y.charCodeAt(w)+((b<<5)-b);Y="#";for(w=0;w<3;w++)Y+=("00"+(b>>w*8&255).toString(16)).slice(-2);return Y};
xNa=function(Y){Y=(Y||"").split(":");Y.length===1&&Y.unshift("yt-icons");Y[1]=Y[1].toLowerCase();return Y};
ZDq=function(Y,b){var w=(b=b===void 0?!1:b)?q5t:sWK,V=b?QWq:vxI;Y.getIconNames().forEach(function(H){H=b?H:H.substring(H.indexOf(":")+1);Y.name==="yt-icons"?Pvq.add(H):H.includes("-filled")?w.add(H):V.add(H)})};
oR=function(Y,b,w,V){w=w===void 0?!1:w;V=V===void 0?!1:V;var H,f,E;return _.c(function(U){if(U.nextAddress==1)return _.D(U,B1b,2);if(V)return U.return(Pvq.has(Y));H=w?q5t:sWK;f=w?QWq:vxI;return b?(E=Y.includes("-filled")?Y:Y.concat("-filled"),U.return(H.has(E))):U.return(f.has(Y))})};
_.e$I=function(Y){if(nxr(Y))return Y;var b=Y=Y.toLowerCase();(Y=Mdv.get(Y))&&(b=Y);return b};
_.IR=function(Y){if(nxr(Y))return Y.toString();var b=pmu.get(Y);if(b)return b;b=Y.toLowerCase();var w="yt-icons",V=b.replace(/_/g,"-");switch(Y){case "MY_CHANNEL":b="account_circle";break;case "ADD_TO_LIBRARY":b="add";break;case "ALERT_WARN_RED":b="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":b="person_music";break;case "BLOCK_USER":b="block";break;case "CAPTIONS":b="closed_caption";break;case "CLOSED_CAPTION":w="av";b="closed-caption";break;case "COLLECTION":w="maps";b="layers";break;case "CONTACT":w=
"icons";b="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":w="ytcp-icons";b=V.split("creator-studio-")[1];break;case "DISMISSAL":b="close";break;case "DO_NOT_DISTURB":b="block";break;case "DOGFOOD":w="icons";b="pets";break;case "DRAFT":b="paper_corner_folded";break;
case "EMPTY_LIKE":b="like_outline";break;case "EXIT_APP":b="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":b=V;break;case "GAMES":w="ytg";b="my-games";break;case "GO_TO_PAGE":b="arrow-forward";break;case "GROUP":w="social";break;case "HIDE":b="not_interested";break;case "INPUT_COMPONENT":w="icons";b="settings-input-component";break;case "KIDS_BLOCK":b="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":w="ytg";b="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":w=
"ytg";b="membership-post-purchase";break;case "MULTIVIEW":b="screen_multi_view";break;case "MY_LOCATION":w="maps";b=V;break;case "NOTIFICATIONS_INBOX":b="NOTIFICATIONS";break;case "NEXT":b="chevron_right";break;case "OFFLINE":b="power-settings-new";break;case "PAUSE":w="miniplayer";break;case "PAYMENT":w="icons";break;case "PHONE_DOWNLOAD":b="phone_download";break;case "PREMIUM_STANDALONE":w="yt-logos";b="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":w="yt-logos";b="premium_standalone_cairo";
break;case "QUESTION_ANSWER":b="question_answer";break;case "REDEEM":w="icons";b="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":b="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":b="library_add";break;case "SCHOOL":w="yt-sys-icons";b="creator_academy";break;case "SETTINGS_LIGHT":b="settings_applications";break;case "SETTINGS_MATERIAL":b="settings";break;case "SEARCH_HISTORY":b="watch_history";break;case "SHOPPING_BAG":b="bag";break;case "SOCIAL":case "PEOPLE":w=
"yt-icons";b="people";break;case "STAFF_PICK":w="ytg";b="spotlight";break;case "START_DVR":b="add";break;case "STOP_DVR":w="av";b="stop";break;case "TAB_LIKED":b="like";break;case "TAB_INBOX":b="mail";break;case "TERMS_OF_SERVICE":w="icons";b="description";break;case "TRENDING":b="fire";break;case "UNBLOCK_USER":b="remove";break;case "UNPLUGGED_DARK_THEME":w="image";b="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":b="live";break;case "UNPLUGGED_SPORTS":w="ytu";b="visibility-off";break;
case "VIDEOS":w="av";b="play-circle-filled";break;case "YOUTUBE":w="yt-logos";b="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":w="yt-logos-ext";b="yt-logo-red-updated";break;case "YOUTUBE_LOGO":w="yt-logos-ext";b="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":w="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":w="shorts";b=V;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":w="yt-sys-icons";b="youtube_improve_tv";break;case "OUTLINE_BAG":w=
"yt-sys-icons";b="bag";break;case "QUEUE_PLAY_LAST":w="yt-sys-icons";b="list_queue_last";break;case "SLASH_CIRCLE_LEFT":b="slash_circle_left";break;case "SPEED_1_POINT_2X":b="1_point_2x";break;case "SPEED_1_POINT_5X":b="1_point_5x";break;case "SPEED_1_POINT_8X":b="1_point_8x";break;case "SPEED_POINT_2X":b="point_2x";break;case "SPEED_POINT_5X":b="point_5x";break;case "SPEED_POINT_8X":b="point_8x";break;case "SPEED_1X":b="1x";break;case "SPEED_2X":b="2x";break;case "TAB_BOOKMARK":b="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":w="yt-sys-icons";b="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":w="yt-sys-icons";b="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":w="yt-sys-icons",b="tic_tac_toe"}b=w+":"+b;pmu.set(Y,b);return b};
nxr=function(Y){var b;_.q("kevlar_use_wil_icons")?b=!!_.fH().resolve(_.kO).resolveIcon({iconName:Y.toString()}):b=!1;return b};
_.hA=function(Y,b,w,V){w=w===void 0?{}:w;V=V===void 0?!1:V;w===null&&(w={});var H=_.XO("kevlar_command_handler_command_banlist");H=_.N(H);for(var f=H.next();!f.done;f=H.next())if(f=Y?Y.hasOwnProperty(f.value):void 0,f)return!1;H=_.v(Y.commandMetadata,_.g5);return V&&H!=null&&H.url?!1:!b.disableCommandHandlerOverride&&_.l8.instance?(V=_.l8.instance,w.form||(w.form={element:b}),w.form.element||(w.form.element=b),!w.clickedVisualElement&&b.visualElement&&(w.clickedVisualElement=b.visualElement),V.resolveCommand(Y,
w),!0):!1};
ODI=function(Y,b){Y=xO(Y);for(var w=_.N(Y.visibilityMonitorKeys||[]),V=w.next();!V.done;V=w.next())b.unobserveByKey(V.value);Y.visibilityMonitorKeys=void 0};
FCr=function(Y,b){if(_.dO()){if(_.q("kevlar_vimio_use_shared_monitor"))tdv(Y,b.data);else if(!tdv(Y,b.data))return;var w=b.data,V=R$6(w);if(_.q("enable_client_ve_spec_logging"))ODI(Y,b.observer);else{var H=xO(Y);H.trackedParams&&H.trackedParams!==V&&ODI(Y,b.observer)}H=xO(Y);!w||H.data&&H.data===w||(H.data=w);dNu(Y,b);H.trackedParams=V}};
dNu=function(Y,b){var w=b.observer;if(!w&&_.q("web_skip_missing_vimio_observer")){var V,H;_.Sk(new _.BQ("VisibilityObserver is not defined.",Y.tagName,Y.trackedParams,(V=b.data)==null?void 0:V.trackingParams,(H=b.data)==null?void 0:H.loggingDirectives))}else{var f=b.layer,E=b.visibilityCallback||function(){},U=b.prescanCallback,X=xO(Y);
V=[];b.showOption&&V.push(w.observe(Y,function(){b.skipLogging&&b.skipLogging()||_.qZ().reportShown(X,void 0,f);E(!0)},b.showOption));
b.hideOption&&V.push(w.observe(Y,function(){_.qZ().reportHidden(X,void 0,f);E(!1)},b.hideOption));
b.prescanOption&&U&&V.push(w.observe(Y,function(){U()},b.prescanOption));
X.visibilityMonitorKeys=V}};
tdv=function(Y,b){Y=xO(Y);if(Y.visualElement&&!b)return!0;if(!b)return!1;var w=!1;if(_.q("enable_client_ve_spec_logging")){var V,H;w=!!((V=b.loggingDirectives)==null?0:(H=V.clientVeSpec)==null?0:H.uiType)}V=R$6(b);if(!V&&!w)return!1;_.q("mweb_component_visibility_logging")&&(Y.veContainer||(Y.veContainer={}),Y.veContainer.trackingParams=V);if(Y.trackedParams&&Y.trackedParams===V)return!1;var f;if(_.q("enable_client_ve_spec_logging")&&((f=Y.visualElement)==null?0:f.isClientVe())){var E;f=(E=Y.visualElement)==
null?void 0:E.getAsJspb();var U,X,I,k;if(_.HE(f,2)===((U=b.loggingDirectives)==null?void 0:(X=U.clientVeSpec)==null?void 0:X.uiType)&&_.HE(f,3,-1)===((I=b.loggingDirectives)==null?void 0:(k=I.clientVeSpec)==null?void 0:k.elementIndex))return!1}if(_.q("enable_client_ve_spec_logging")){var l,x;!Y.visualElement&&((l=b.loggingDirectives)==null?0:(x=l.clientVeSpec)==null?0:x.uiType)&&(U=b.loggingDirectives.clientVeSpec,b=U.uiType,E=U.elementIndex,U=U.clientYoutubeData,Y.visualElement=_.sQ(_.Qd(),{veType:b,
elementIndex:E,clientYouTubeData:U}))}return!0};
R$6=function(Y){if(Y==null?0:Y.rendererContext){var b=_.v(Y.rendererContext,_.vP);if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams}return(Y==null?0:Y.loggingDirectives)?Y.loggingDirectives.trackingParams:Y==null?void 0:Y.trackingParams};
xO=function(Y){var b;return(b=Y.polymerController)!=null?b:Y};
rRe=function(Y){_.qZ();if(_.i1(PP().JSC$10510_elementShouldLogGesture).bind(PP())(Y,4)){LCM(Y);var b=S5b(Y);abG.set(Y,b)}};
LCM=function(Y){abG.has(Y)&&(abG.get(Y).cancel("untrack hover element"),abG.delete(Y))};
S5b=function(Y){var b,w=[],V=!1,H=new _.hh(function(f,E){ZR(Y,"mouseenter",_.i1(function(){var U,X,I;return _.c(function(k){if(k.nextAddress==1)return b=(0,_.gG)(),U=z$G(Y),w.push(U),X=WCt(Y,function(){V=!0;E(Error("Xg"))}),_.D(k,U,2);
if(k.nextAddress!=3)return X&&BP(X),I=KCt(Y),w.push(I),_.D(k,I,3);f();_.om(k)})}))});
H.then(function(){var f=(0,_.gG)()-b;f=Math.round(f);if(!(500>f||6E5<=f)){var E=Y.getScreenLayer?Y.getScreenLayer():void 0;E=_.dO(E)||"";var U=iDG(_.qZ(),Y);_.un(E,Y.visualElement?Y.visualElement:_.nA(U),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:f}})}rRe(Y)},function(){MZ&&(MZ(),MZ=null);
V&&(LCM(Y),rRe(Y))});
return H};
z$G=function(Y){var b;return(new _.hh(function(w,V){MZ=function(){V(Error("Yg"))};
b=_.Lb.debounce(_.i1(function(){BP(H);w()}),1,100);
var H=_.ez(Y,"mousemove",b)})).thenCatch(function(){var w=_.Lb.cancelDebouncedJobMap.get(b);
w&&_.Lb.cancelJob(w)})};
KCt=function(Y){var b;return(new _.hh(function(w,V){MZ=function(){V(Error("Zg"))};
b=ZR(Y,"mouseleave",_.i1(function(){w()}))})).thenCatch(function(){BP(b)})};
WCt=function(Y,b){return ZR(Y,"mouseleave",_.i1(b))};
CvI=function(Y){ARq&&_.pA.cancel(ARq);ARq=_.pA.run(function(){_.Ua(Y,"yt-visibility-refresh");ARq=0})};
yRt=function(Y){Y=Number(Y);return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
jWG=function(Y){if(!Y)return!1;if(_.v(Y,_.$Nv))return!0;var b;if(Y=(b=_.v(Y,_.ln))==null?void 0:b.commands)for(b=_.N(Y),Y=b.next();!Y.done;Y=b.next())if(_.v(Y.value,_.$Nv))return!0;return!1};
GHa=function(Y){var b=!0;b=b===void 0?!0:b;if(!Y.useSignals&&!Y.experimentalPropertiesChanged||_.q("experimental_templating_behavior_nopatch_killswitch")){var w=Y._propertiesChanged;Y._propertiesChanged=function(V,H,f){b?Y.debounceRender():Y.doRender();w&&w.call(Y,V,H,f)}}};
T1g=function(Y,b){if(Y.useSignals||Y.experimentalPropertiesChanged)if(_.q("experimental_templating_behavior_nopatch_killswitch"))Y.experimentalPropertiesChanged=function(){};
else return;var w=new Set,V=[Y].concat(_.Bt(Y.behaviors));V=_.N(V);for(var H=V.next();!H.done;H=V.next()){H=H.value;for(var f in H.properties)w.has(f)||(Y._addPropertyEffect(f,"function",b),w.add(f))}};
JRt=function(){var Y=Polymer.Element,b=Y._prepareTemplate;Y._prepareTemplate=function(){b.call(this);var w=this.prototype;if(w.experimentalTemplatingInUse&&w.experimentalTemplatingInUse()&&w.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Ft(Error("$g"));else{w=this.template.content.childNodes;for(var V=w.length-1;V>=0;V--){var H=w[V];H.nodeName!=="STYLE"&&H.nodeName!=="LINK"&&H.nodeName!=="SCRIPT"&&H.nodeName!=="#comment"&&H.remove()}}}};
uqa=function(Y){var b=!0;b=b===void 0?!0:b;JRt();var w=Y.ready;Y.ready=function(){this._template=null;w.call(this)};
T1g(Y,b?Y.debounceRender:Y.doRender)};
bRM=function(Y,b,w){if(w===null||w===void 0)return w;var V=UzI(Y.tagName.toLowerCase(),b,function(){throw Error("Sb");});
if(V===null)return w;V=Yjg[V];var H;if((H=V.isUnwrappable)==null?0:H.call(V,w)){if(V.unwrap)return V.unwrap(w);throw Error("ch");}return V.filterString?V.filterString(Y.tagName,b,String(w)):w};
wpt=function(Y,b,w){var V=b[b.length-1]!=="$",H=bRM(Y,b,w);if(V)if(typeof H==="function"&&b.startsWith("reactiveon")&&b===b.toLowerCase()){var f=w2;qKM(Y,b.slice(8),function(E){r2(f,function(){H(E)})})}else Y[b]=H;
else w=H==null?null:String(H),xzB(Y,b.slice(0,-1),w)};
tA=function(Y){V0L.length===0&&requestAnimationFrame(function(){setTimeout(function(){var b=V0L.slice();V0L.length=0;b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;try{w()}catch(V){_.OQ(V)}}})});
V0L.push(Y)};
HRB=function(Y){if(Y){var b=Y.component;if(b){var w;b==null||(w=b.events)==null||w.publish("DISCONNECTED");var V;b==null||(V=b.onDisconnected)==null||V.call(b)}var H,f;(H=Y.__spec)==null||(f=H.didUnmount)==null||f.call(H);for(b=0;b<Y.childNodes.length;b++)HRB(Y.childNodes[b])}};
dI=function(Y,b,w){var V=b&&b.key,H=Jl;H[0]=Y;H[1]=V;H[2]=void 0;for(var f in b)b.hasOwnProperty(f)&&(Y=b[f],V=b1,V.push(f),V.push(Y));b=Jl;a:{if(f=Jl[2])for(Y=0;Y<f.length;Y+=2)if(f[Y]==="nonce"){f=f[Y+1];break a}f=""}f=Rne(b[0],b[1],f);Y=iN(f);V=b[2];if(!Y.staticsApplied&&(Y.staticsApplied=!0,V&&V.length))if((H=Y._attrsArr)&&H.length){for(H=0;H<V.length;H+=2)RR[V[H]]=H+1;H=Y._attrsArr||(Y._attrsArr=hnL(0));for(var E=0,U=0;U<H.length;U+=2){var X=H[U],I=H[U+1],k=RR[X];k?V[k]===I&&delete RR[X]:(H[E]=
X,H[E+1]=I,E+=2)}Wh(H,E);for(var l in RR)Zbu(f,l,V[RR[l]],bp),delete RR[l]}else for(l=0;l<V.length;l+=2)Zbu(f,V[l],V[l+1],bp);zna(f,Y,bp);Wh(b,0);w&&w(Al);dze()};
gab=function(Y){var b=Y.toString().toLowerCase();return function(w,V){dI(b,w,V)}};
_.Fd=function(Y,b,w){w===void 0?delete Y[b.name]:Y[b.name]=w};
_.LA=function(Y){var b={androidIncludeFontPadding:!1},w=0,V=[],H=[],f=[];if(Y.simpleText)return b.content=Y.simpleText,b;if(Y.runs===void 0)return b.content="",b;Y=_.N(Y.runs);for(var E=Y.next();!E.done;E=Y.next()){E=E.value;var U=E.text,X=void 0,I=(X=U)==null?void 0:X.length;if(U&&I){V.push(U);if(E.bold||E.italics||E.strikethrough||E.underline||E.textColor!=null&&E.textColor!==0||E.deemphasize){U=H;X=U.push;var k={startIndex:w,length:I};E.bold&&(k.weightLabel="FONT_WEIGHT_MEDIUM");E.italics&&(k.italic=
!0);E.strikethrough&&(k.strikethrough="LINE_STYLE_SINGLE");E.underline&&(k.underline="LINE_STYLE_SINGLE");E.textColor!=null&&E.textColor!==0?document.documentElement.hasAttribute("dark")?k.fontColor=E.darkModeTextColor||E.textColor:k.fontColor=E.textColor:E.deemphasize&&(document.documentElement.hasAttribute("dark")?k.fontColor=parseInt("ff"+fve("#aaa").substring(1),16):k.fontColor=parseInt("ff"+fve("#606060").substring(1),16));X.call(U,k)}E.navigationEndpoint&&(U=f,X=U.push,k={startIndex:w,length:I,
onTap:{innertubeCommand:E.navigationEndpoint}},E.loggingDirectives&&_.Fd(k,NVt,E.loggingDirectives),X.call(U,k));w+=I}}b.content=V.join("");b.styleRuns=H.length?H:void 0;b.commandRuns=f.length?f:void 0;return b};
c2L=function(Y){if(Y==null||!Y.runs)return!0;Y=_.N(Y.runs);for(var b=Y.next();!b.done;b=Y.next())if(b=b.value,b.bracket||b.errorUnderline||b.deemphasize||_.v(b,Sz)||_.v(b,Eaa))return!1;return!0};
Uuu=function(Y,b){return function(w){var V=b.unit;if(V!==w)throw Error("fh`"+Y+"`"+V+"`"+w);return b}};
aR=function(Y){if(!((Y==null?0:Y.value)&&(Y==null?0:Y.unit)))return"";switch(Y.unit){case "DIMENSION_UNIT_FRACTION":var b="%";break;default:b="px"}Y=Y.value;b==="%"&&(Y*=100);return""+Y+b};
Xpu=function(Y){try{return Y()}catch(b){_.Sk(b)}};
_.zT=function(Y){var b=_.v(Y,_.rI);if(b)return b;if((b=_.v(Y,Duu))&&b.commands)return mu6(b.commands);if((b=_.v(Y,oaa))&&b.commands)return mu6(b.commands);if((Y=_.v(Y,Ivu))&&Y.identifier&&Y.command&&(kfM||(kfM=[]),!kfM.includes(Y.identifier)))return kfM.push(Y.identifier),_.v(Y.command,_.rI)};
mu6=function(Y){if(Y.length!==0){var b=[];Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())(w=_.zT(w.value))&&b.push(w);return{commandExecutorCommand:{commands:b}}}};
_.KA=function(Y){var b=Y.defaultTarget,w=Y.elementConfig,V=Y.elementsCommand,H=Y.skipOnClick,f=Y.forceNewState,E=Y.additionalCommandArgs,U=Y.innertubeCommand||_.zT(V);if(U){Y={};var X=lvM(U);V=X.navigatingCommand;X=X.href;V&&X?(Y.href$=X,hCI(Y,V,X,b),_.q("web_atagconfig_pointerdown")&&xur(Y,V),f&&(Y["force-new-state$"]=!0)):(Y.role$="button",Y.href$="javascript:void(0);");_.v(U,qju)&&(Y["aria-haspopup$"]=!0);H||(Y.onclick=function(I){if(sae(I)){var k=Object.assign({},{form:{element:I.target,event:I}},
E);I.preventDefault();_.WP(U,k)}});
return Object.assign({},w,Y)}};
QaI=function(Y){if(Y.length){if(Y.length===1)return Y[0];var b={};_.Fd(b,_.ln,{commands:Y});return b}};
i8=function(Y){return Y&&Y.href$!=="javascript:void(0);"};
lvM=function(Y){var b,w=((b=_.v(Y,_.ln))==null?void 0:b.commands)||[Y];Y=_.N(w);for(b=Y.next();!b.done;b=Y.next()){b=b.value;var V=void 0,H=void 0;w=(H=_.v((V=b)==null?void 0:V.commandMetadata,_.g5))==null?void 0:H.url;_.q("web_remove_web_navigation_endpoint_data")||(V=void 0,w=w||((V=_.v(b,vab))==null?void 0:V.url));if(w&&w!=="/service_ajax"){if(V=su(w,PbL))return Y=_.lH(V),{navigatingCommand:b,href:Y};_.Sk(new _.BQ("AttributedString URL could not be sanitized",w))}}return{}};
sae=function(Y){return Y.button!==void 0?Y.button===0&&!(Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey):!(Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey)};
hCI=function(Y,b,w,V){w=!wa(w);var H,f,E;if((H=_.v(b,_.QU))!=null&&H.nofollow||(f=_.v(b,_.TG))!=null&&f.nofollow||(E=_.v(b,_.Ah))!=null&&E.nofollow||w)Y.rel$="nofollow";var U;b=((U=_.v(b,_.Ah))==null?void 0:U.target)==="TARGET_NEW_WINDOW"?"_blank":V===void 0?"":V;Y.target$=b};
xur=function(Y,b){b.clickTrackingParams&&(Y.params={itct:b.clickTrackingParams});Y.onpointerdown=function(w){ZRI(w)};
Y._data=b};
BVL=function(Y){(Y.loggingUrls||[]).forEach(function(b){$r(b.baseUrl,b.attributionSrcMode)})};
nav=function(Y){Y.currentTarget._data&&BVL(Y.currentTarget._data)};
ZRI=function(Y){var b=Y.currentTarget;Y=Xpu(function(){return b.href});
var w=b.params;Y&&_.VX(Y,w||{},8,!0)};
M0t=function(Y,b){if(b=_.v(b,_.Ah))(b==null?void 0:b.target)==="TARGET_NEW_WINDOW"&&(Y.target="_blank"),b.nofollow&&(Y.rel="nofollow")};
eCL=function(Y){Y=_.v(Y==null?void 0:Y.commandMetadata,_.g5);return(Y==null?0:Y.url)?Y.url:null};
_.AA=function(Y,b){(Y=_.zT(Y))&&_.WP(Y,b)};
_.WP=function(Y,b){MMB(function(w){b?w.resolveCommand(Y,b):w.resolveCommand(Y)})};
RCL=function(Y,b){var w=["yt-core-attributed-string__link"];b!=null&&b.noLinkColor||((b==null?0:b.isOverlay)?w.push("yt-core-attributed-string__link--overlay-call-to-action-color"):w.push("yt-core-attributed-string__link--call-to-action-color"),(b==null?0:b.linkInheritColor)&&w.push("yt-core-attributed-string--link-inherit-color"));w={className:w.join(" "),tabindex$:"0"};var V=Y.onTap||Y.onLongPress;if(!V)return w;var H=ppG(Y);H&&(w["aria-label$"]=H);b=_.KA({elementsCommand:V,elementConfig:w,skipOnClick:!(b==
null||!b.skipOnClick),forceNewState:!0});Y.onLongPress&&(V=new ORL(function(){var f=_.zT(Y.onLongPress);f&&_.fH().resolve(_.Nn).resolveCommand(f)}),b&&t0G(V,b));
return b||w};
ppG=function(Y){var b,w;return(b=Y.onTapOptions)==null?void 0:(w=b.accessibilityInfo)==null?void 0:w.accessibilityLabel};
duI=function(Y){var b=Y;Y<=16777215&&(b+=parseInt("ff000000",16));return _.KX(b)};
FXb=function(Y){var b=Y.isDarkTheme;var w=Y.extension;Y=Y.runColor;var V=void 0;if(w=w==null?void 0:w.colorMap){b=b?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";w=_.N(w);for(var H=w.next();!H.done;H=w.next())if(H=H.value,b===H.key){V=H.value;break}}V==null&&Y&&(V=Y);if(V)return duI(V)};
CA=function(Y){var b=Y.config;var w=Y.image;var V=Y.imageConfig;var H=Y.imageWrapperConfig;var f=Y.run;var E=Y.tag;var U=Y.textLength;var X=Y.startIndex===void 0?0:Y.startIndex;Y=Y.length;X===void 0&&(X=0);f={run:f,startIndex:X,endIndex:Y!==void 0?X+Y:U,tag:E};w&&(f.image=w);V&&(f.imageConfig=V);H&&(f.imageWrapperConfig=H);b&&(f.config=b);return f};
SjL=function(Y,b){var w=[];w.push("yt-core-attributed-string");(b==null?0:b.className)&&w.push(b==null?void 0:b.className);(b==null?0:b.ellipsisTruncate)?w.push("yt-core-attributed-string--ellipsis-truncate"):(b==null?0:b.noWrap)?w.push("yt-core-attributed-string--white-space-no-wrap"):(b==null?0:b.noPreWrap)||w.push("yt-core-attributed-string--white-space-pre-wrap");(b==null?0:b.linkInheritColor)&&w.push("yt-core-attributed-string--link-inherit-color");Y.alignment&&w.push(LXB(Y.alignment));Y.lineBreakMode&&
w.push("yt-core-attributed-string--word-wrapping");return w.join(" ")};
avg=function(Y){if(Y.weight)return Y.weight;switch(Y.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
r2I=function(Y){switch(Y){case "LINE_STYLE_DOT":return"yt-core-attributed-string--line-style-dot";case "LINE_STYLE_NONE":return"yt-core-attributed-string--line-style-none";default:return"yt-core-attributed-string--line-style-single"}};
LXB=function(Y){switch(Y){case "TEXT_ALIGNMENT_LEFT":return"yt-core-attributed-string--text-alignment-left";case "TEXT_ALIGNMENT_RIGHT":return"yt-core-attributed-string--text-alignment-right";case "TEXT_ALIGNMENT_CENTER":return"yt-core-attributed-string--text-alignment-center";case "TEXT_ALIGNMENT_JUSTIFIED":return"yt-core-attributed-string--text-alignment-justified";case "TEXT_ALIGNMENT_LAYOUT_START":return"yt-core-attributed-string--text-alignment-layout-start";default:return"yt-core-attributed-string--text-alignment-unknown"}};
jz=function(Y,b,w){var V=b;Y.content&&w&&(w=Y.content.indexOf("\n"),w!==-1&&(V=Math.min(b,w)));if(!Y.content||Y.content.length<=V)b=Y;else if(Y.attachmentRuns||Y.commandRuns||Y.decorationRuns||Y.styleRuns||Y.paragraphStyleRuns){b=yd(Y.content,V);w=V;var H=Y.attachmentRuns;if(H){var f=[];H=_.N(H);for(var E=H.next();!E.done;E=H.next())E=Object.assign({},E.value),E.startIndex===void 0||E.startIndex>=w||(E.length||(E.length=0),E.length+E.startIndex>w&&(E.length=w-E.startIndex),f.push(E));w=f}else w=void 0;
f=zCM(V,Y.commandRuns);H=V;var U=Y.decorationRuns;if(U){E=[];U=_.N(U);for(var X=U.next();!X.done;X=U.next()){X=X.value;var I=_.v(X.textDecorator,$O);if(I&&I.startIndex!==void 0&&!(I.startIndex>=H)){X=Object.assign({},X,{textDecorator:{highlightTextDecorator:Object.assign({},I)}});I=_.v(X.textDecorator,$O);if(!I.length||I.length+I.startIndex>H)I.length=H-I.startIndex;E.push(X)}}H=E}else H=void 0;E=zCM(V,Y.styleRuns);if(U=Y.paragraphStyleRuns)for(Y=[],U=_.N(U),X=U.next();!X.done;X=U.next()){var k=X.value;
X=Object.assign({},k);if(!(X.startIndex===void 0||X.startIndex>=V)){if(!X.length||X.length+X.startIndex>V)X.length=V-X.startIndex;I=[];var l=void 0,x=void 0;if((l=k)==null?0:(x=l.listGroup)==null?0:x.listItems)for(k=_.N(k.listGroup.listItems),l=k.next();!l.done;l=k.next())if(l=Object.assign({},l.value),!(l.startIndex===void 0||l.startIndex>=V)){if(!l.length||l.length+l.startIndex>V)l.length=V-l.startIndex;I.push(l)}I.length>0&&(X.listGroup||(X.listGroup={}),X.listGroup=Object.assign({},X.listGroup,
{listItems:I}));Y.push(X)}}else Y=void 0;b={content:b,attachmentRuns:w,commandRuns:f,decorationRuns:H,styleRuns:E,paragraphStyleRuns:Y}}else b=Object.assign({},Y,{content:yd(Y.content,V)});return b};
zCM=function(Y,b){if(b){var w=[];b=_.N(b);for(var V=b.next();!V.done;V=b.next())if(V=Object.assign({},V.value),!(V.startIndex===void 0||V.startIndex>=Y)){if(!V.length||V.length+V.startIndex>Y)V.length=Y-V.startIndex;w.push(V)}return w}};
yd=function(Y,b){var w=b,V;if(V=w>0)V=Y.charCodeAt(w-1),V=V>=55296&&V<=56319;V&&(w=Y.charCodeAt(w),V=w>=56320&&w<=57343);V&&--b;return Y.substring(0,b)};
A2B=function(Y,b,w){w=w===void 0?WXu:w;if(Y){var V=_.fH().resolve(Vc);V||_.q("mweb_no_observer_killswitch")?FCr(Y,{data:b,observer:V,visibilityCallback:w,hideOption:KXg,showOption:iRg,layer:Y.layer}):_.Sk(new _.BQ("Warning: monitorVisibility called with null observer",Y.tagName,b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams))}else _.Sk(new _.BQ("Warning: monitorVisibility called with null element",b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams,b==null?void 0:
b.rendererContext))};
J2M=function(Y,b){var w=[],V=Y.content.length,H,f=(H=_.fH().resolve(_.HQ(_.GT)))==null?void 0:H();if(Y.paragraphStyleRuns){H=_.N(Y.paragraphStyleRuns);for(var E=H.next();!E.done;E=H.next()){var U=w.push,X=U.apply;var I=void 0;E=E.value;if((I=E.listGroup)!=null&&I.listItems){I=[];b:switch(E.listGroup.listType){case "LIST_TYPE_BULLET":var k="ul";break b;default:k="span"}I.push(CA({run:E,textLength:V,tag:k,config:{className:"yt-core-attributed-string__list-group"},startIndex:E.startIndex,length:E.length}));
k=_.N(E.listGroup.listItems);for(var l=k.next();!l.done;l=k.next()){l=l.value;b:switch(E.listGroup.listType){case "LIST_TYPE_BULLET":var x="li";break b;default:x="span"}I.push(CA({run:E,textLength:V,tag:x,startIndex:l.startIndex,length:l.length}))}E=I}else E=[];X.call(U,w,_.Bt(E))}}if(Y.styleRuns&&(b==null||!b.noStyleRuns))for(H=_.N(Y.styleRuns),U=H.next();!U.done;U=H.next()){U=U.value;X=FXb({extension:_.v(U.styleRunExtensions,Cba),isDarkTheme:f===void 0?!1:f,runColor:U.fontColor});I=[];X&&I.push("yt-core-attributed-string--link-inherit-color");
U.italic&&I.push("yt-core-attributed-string--italicized");U.underline&&U.strikethrough?I.push("yt-core-attributed-string--underline-strikethrough",r2I(U.underline)):U.underline?I.push("yt-core-attributed-string--underlined",r2I(U.underline)):U.strikethrough&&I.push("yt-core-attributed-string--strikethrough",r2I(U.strikethrough));if(U.baselineOffset){a:switch(U.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":E="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":E=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:E="yt-core-attributed-string--baseline-offset-unknown"}I.push(E)}E=I.join(" ");I=U;k={};if(I.weight||I.weightLabel)k.fontWeight=avg(I).toString();X&&(k.color=X);w.push(CA({run:U,textLength:V,tag:"span",config:{className:E,style:k},startIndex:U.startIndex,length:U.length}))}if(Y.decorationRuns)for(H=_.N(Y.decorationRuns),U=H.next();!U.done;U=H.next())U=U.value,X={},U.textDecorator&&(k=U.textDecorator,E=f===void 0?!1:f,l=[],I=
_.v(k,$O),k=_.v(k,y2K),I?(k=l,l=k.concat,x=[],(E=FXb({extension:_.v(I.highlightTextDecoratorExtensions,$uu),isDarkTheme:E,runColor:I.backgroundColor}))&&x.push("background-color: "+E+";"),I.backgroundCornerRadius!==void 0&&x.push("border-radius: "+I.backgroundCornerRadius+"px;"),I.leftPadding!==void 0&&x.push("padding-left: "+I.leftPadding+"px;"),I.rightPadding!==void 0&&x.push("padding-right: "+I.rightPadding+"px;"),I.topPadding!==void 0&&x.push("padding-top: "+I.topPadding+"px;"),I.bottomPadding!==
void 0&&x.push("padding-bottom: "+I.bottomPadding+"px;"),l=l.call(k,x)):k&&(I=l,l=I.concat,E=E?"#2ba640":"#107516",E=k.color?duI(k.color):E,E=["padding: 2px;","border-top: solid "+E+" 2px;","border-bottom: solid "+E+" 2px;","background: linear-gradient(135deg, "+E+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+E+" 3px, rgba(0, 0, 0, 0) 3px);"],l=l.call(I,E)),E=l.join(" "),X.style$=E,E=U.textDecorator,I=[],k=_.v(E,y2K),_.v(E,$O)?I.push("yt-core-attributed-string--highlight-text-decorator"):
k&&I.push("yt-core-attributed-string--bracket-text-decorator"),E=I.join(" "),X.className=E,X.dir="auto"),E=_.v(U.textDecorator,$O),I=_.v(U.textDecorator,y2K),k=_.v(U.textDecorator,$O),l=_.v(U.textDecorator,y2K),w.push(CA({run:U,textLength:V,tag:"span",config:X,startIndex:(E==null?void 0:E.startIndex)||(I==null?void 0:I.startIndex)||0,length:(k==null?void 0:k.length)||(l==null?void 0:l.length)||0}));if(Y.commandRuns&&(b==null||!b.noEndpoints))for(f=_.N(Y.commandRuns),H=f.next();!H.done;H=f.next())H=
H.value,U=RCL(H,b),w.push(CA({run:H,textLength:V,tag:"a",config:U,startIndex:H.startIndex,length:H.length}));if(Y.attachmentRuns)for(Y=_.N(Y.attachmentRuns),f=Y.next();!f.done;f=Y.next()){f=f.value;X=U=void 0;H={className:"yt-core-attributed-string--inline-block-mod"};if((X=f.element)==null?0:X.properties){X=(U=f.element)==null?void 0:U.properties;U=[];X=_.v(X,jat);if(X==null?0:X.margin)X=X.margin,X.left&&U.push("margin-left: "+aR(X.left)+";"),X.right&&U.push("margin-right: "+aR(X.right)+";"),X.top&&
U.push("margin-top: "+aR(X.top)+";"),X.bottom&&U.push("margin-bottom: "+aR(X.bottom)+";");U=U.length!==0?U.join(" "):void 0;H.style$=U}E=void 0;U={alt:"",preserveHeight:!0,preserveWidth:!0};X=["yt-core-attributed-string__image-element"];if(f.alignment){a:switch(f.alignment){case "ALIGNMENT_BASELINE":I="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":I="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:I=
"yt-core-attributed-string__image-element--image-alignment-bottom"}X.push(I)}if((E=f.element)==null?0:E.properties)E=[],I=_.v(f.element.properties,jat),(I==null?0:I.height)&&E.push("height: "+aR(I.height)+";"),(I==null?0:I.width)&&E.push("width: "+aR(I.width)+";"),E=E.length!==0?E.join(" "):void 0,U.style$=E,I=void 0,E=((I=_.v(f.element.properties,GfL))==null?void 0:I.label)||"",U.alt=E;U.className=X.join(" ");X=void 0;k=I=void 0;E=((k=f.element)==null?0:k.type)?(I=_.v(f.element.type,TVu))==null?
void 0:I.image:void 0;w.push(CA({run:f,textLength:V,tag:"img",image:E,imageConfig:U,imageWrapperConfig:H,startIndex:f.startIndex,length:(X=f.length)!=null?X:0}))}if(b==null?0:b.headerRuns)for(b=_.N(b.headerRuns),Y=b.next();!Y.done;Y=b.next())if(Y=Y.value,Y.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(Y.headerMapping)){a:{switch(Y.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":f=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":f="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":f="yt-core-attributed-string--heading-3";break a}f=void 0}w.push(CA({run:Y,textLength:V,tag:"span",config:f?{className:f}:void 0,startIndex:Y.startIndex,length:Y.length}))}return w};
_.TT=function(Y){return(Y==null?void 0:Y.content)!==void 0};
uVB=function(Y){return _.TT(Y)?Y:_.LA(Y)};
YrB=function(Y){return Y.image!==void 0&&Y.imageConfig!==void 0};
bYB=function(Y,b){if(b==null?0:b.userInput)for(Y=_.N(Y),b=Y.next();!b.done;b=Y.next())if(b=b.value,b.tag!=="a"&&b.tag!=="li"){var w=void 0;(w=b).config||(w.config={});b.config.dir=b.tag==="ul"?_.fH().resolve(_.JA):"auto"}};
w3r=function(Y){return function(b){var w=Y.run;(w.onTap!==void 0||w.onLongPress!==void 0)&&_.v(w,NVt)&&A2B(b,{loggingDirectives:_.v(w,NVt)})}};
Vja=function(Y){return function(b){for(var w in Y)(bp[w]||bp[KQ["default"]])(b,w,Y[w])}};
Nq6=function(Y,b){HYI(b);var w={data:null,start:0,end:Y.length,parts:[]};b=_.N(b);for(var V=b.next();!V.done;V=b.next())V=V.value,g0u(w,V.startIndex,V.endIndex,V);fYu(Y,w);return w};
g0u=function(Y,b,w,V){for(var H=_.N(Y.parts),f=H.next();!f.done;f=H.next()){f=f.value;if(typeof f==="string")throw Error("hh");if(f.start<=b&&w<=f.end){g0u(f,b,w,V);return}}Y.parts.push({data:V,parts:[],start:b,end:w})};
fYu=function(Y,b){for(var w=b.parts.length;w>=0;w--){var V=b.parts[w],H=b.parts[w-1],f=w===b.parts.length?b.end:V.start;H=w===0?b.start:H.end;f!==H&&b.parts.splice(w,0,Y.slice(H,f));V&&fYu(Y,V)}};
HYI=function(Y){Y.sort(function(b,w){if(b.startIndex<w.startIndex)return-1;if(w.startIndex<b.startIndex)return 1;b=b.endIndex-b.startIndex;w=w.endIndex-w.startIndex;return b>w?-1:w>b?1:0})};
_.E0u=function(Y){var b=Y.thumbnails;if(b){Y={sources:[]};b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V={};V.url=w.url;V.width=w.width;V.height=w.height;Y.sources.push(V)}return Y}};
c7B=function(Y,b,w,V){if(!b)return Y.length>=1?Y[Y.length-1]:null;if(V)for(var H=_.N(Y),f=H.next();!f.done;f=H.next()){f=f.value;var E=void 0,U=(E=f.url)==null?void 0:E.indexOf(V);if(U!==void 0&&U>=0)return f}V=_.N(Y);for(H=V.next();!H.done;H=V.next())if(H=H.value,H.width&&H.height&&(w&&H.width>=b||!w&&H.height>=b))return H;for(b=Y.length-1;b>=0;b--)if(w&&Y[b].width||!w&&Y[b].height)return Y[b];return Y[0]};
_.ULb=function(Y){var b;return(Y=(b=Y.sources)==null?void 0:b[0])?Y.width/Y.height:0};
_.X3G=function(Y){if(Y.sources){Y=_.N(Y.sources);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;var w=void 0;if((w=b.clientResource)==null?0:w.imageName)return b}}};
DLK=function(Y){var b;if((b=Y.clientResource)!=null&&b.imageColor)return _.KX(Y.clientResource.imageColor)};
_.o0e=function(Y,b,w,V,H,f,E){if(!b||b.length===0||b[0].clientResource)return null;if(w&&b[0].url)return b[0].url;V===void 0&&(V=!0);if(V){var U;Y=mLb*(H||(Y==null?void 0:(U=Y.getBoundingClientRect())==null?void 0:U.width)||0)}else{var X;Y=mLb*(f||(Y==null?void 0:(X=Y.getBoundingClientRect())==null?void 0:X.height)||0)}b=c7B(b,Y,V,E);return(b==null?0:b.url)?b.url:(b==null?0:b.imageData)?b.imageData:null};
IYe=function(Y,b,w){w=w?[w]:[];Y.opacity&&w.push("opacity: "+Y.opacity+";");b&&Y.placeholderColor?(Y=_.KX(Y.placeholderColor),w.push("background-color: "+Y+";")):w.push("background-color: transparent;");return w.join(" ")};
kNv=function(Y,b,w,V,H){var f=["yt-core-image"];b&&f.push(b);w||f.push("yt-core-image--fill-parent-height");V||f.push("yt-core-image--fill-parent-width");switch(Y.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":f.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":f.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":f.push("yt-core-image--content-mode-center");break;default:f.push("yt-core-image--content-mode-scale-to-fill")}Y.flipForRtlLayout&&
f.push("yt-core-image--flip-rtl");switch(H){case "TOP_START":var E;f.push(((E=document.body)==null?void 0:E.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return f.join(" ")};
huM=function(Y){var b;if(Y==null?0:(b=Y.clientResource)==null?0:b.imageName){var w;Y=(w=Y.clientResource)==null?void 0:w.imageName;a:{switch(Y){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":w="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":w="yt-logos-ext:yt-logo-updated";break a}w=void 0}return w||lYu.get(Y)||Y}};
sQq=function(Y){return _.q("mweb_wiz_skip_render")?xLa(Y):qrM(Y)};
xLa=function(Y){return function(b){var w=Rne("wink-root");Tl();dze();JAM(w,_.m(Y,b))}};
qrM=function(Y){var b=b===void 0?!1:b;return function(w){if(!b||!_.q("mweb_skip_keto_to_c3_if_no_data")||w.data!==void 0){var V=XP(!1);try{var H=w.children;_.q("mweb_render_outside_patch_killswitch")||Al?H?YD(_.m(Y,w,H)):YD(_.m(Y,w)):_.Sk(new _.BQ("ketoToC3 called outside of a patch",{tagName:Y.TAG_NAME}))}finally{XP(V)}}}};
QQe=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
PwI=function(Y,b){Y.onViewportEntered=b;v0t.observe(Y)};
ZY6=function(){var Y={rootMargin:"10%",threshold:.01};_.q("mweb_enable_set_io_root_to_null_safari")?Y.root=null:_.q("mweb_enable_set_io_root_to_body_safari")&&(Y.root=document.body);return new IntersectionObserver(function(b,w){b.filter(function(V){return V.intersectionRect.height>0}).forEach(function(V){V=V.target;
if(!_.q("mweb_enable_only_update_image_when_connected")||V.isConnected!==!1){var H;(H=V.onViewportEntered)==null||H.call(V);w.unobserve(V)}})},Y)};
BqB=function(Y,b,w,V,H){function f(){if(V){var U=V.loadedClass,X=V.notifyOnUnloaded;U&&_.u8(Y,U);X&&Y.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function E(){var U=w(b,Y);U&&Y.getAttribute("src")!==U&&(_.q("mweb_enable_only_update_image_when_connected")&&Y.isConnected===!1||U===Y.src||(Y.src=U),f())}
H=H===void 0?!0:H;Y.removeAttribute("src");f();b&&(H?PwI(Y,E):E())};
n0I=function(Y,b,w){if(!b)return!1;b=w(b,Y);w=Y.getAttribute("src");return b&&b===w&&Y.complete};
Mjg=function(Y,b){for(var w in b)w==="className"?Y.className=b[w]:(bp[w]||bp[KQ.default])(Y,w,b[w])};
eub=function(Y,b,w,V){sQq(_.Y_)({contentMode:b.contentMode,loadedClass:b.loadedClass,isPreloaded:b.isPreloaded,notifyOnLoaded:b.notifyOnLoaded,notifyOnUnloaded:b.notifyOnUnloaded,preferredThumbnail:b.preferredThumbnail,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,objectPosition:b.objectPosition,targetWidth:b.targetWidth,targetHeight:b.targetHeight,shouldShowPlaceholder:b.shouldShowPlaceholder,useWidth:b.useWidth,isToggled:b.isToggled,alt:b.alt,className:b.className,onerror:b.onerror,
onload:b.onload,style$:b.style$,color:b.color,width:b.width,height:b.height,"aria-hidden$":b["aria-hidden$"],draggable:b.draggable,"data-disabled$":b["data-disabled$"],data:Y,callback:w,renderLazy:V===void 0?!0:V,hideOn404:!1})};
OYv=function(Y,b,w){w=w===void 0?!1:w;var V=Y.sources!==void 0?Y:_.E0u(Y);if(V){var H=b.onload;b.onload=function(X){var I=X.target;w&&I.naturalWidth===120||_.bA(I,"yt-core-image--loaded");b.notifyOnLoaded&&I.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));H==null||H(X)};
b.targetWidth&&b.preserveWidth&&(b.width=b.targetWidth);b.targetHeight&&b.preserveHeight&&(b.height=b.targetHeight);var f=_.X3G(V),E=f&&huM(f);if(E)return(Y=DLK(f))&&(b.color=Y),{type:"icon",iconName:E,config:Object.assign({},b,b.alt?{}:{"aria-hidden$":"true"},{"aria-label$":b.alt,role:"img"})};if(Y.sources===void 0){b.alt=Y.accessibility&&Y.accessibility.accessibilityData&&Y.accessibility.accessibilityData.label||b.alt;b.style$=IYe(Y,b.shouldShowPlaceholder,b.style$);var U;b.isPreloaded=!((U=_.v(Y,
p3q))==null||!U.isPreloaded)}b.contentMode&&!V.contentMode&&(V.contentMode=b.contentMode);b.className=kNv(V,b.className,b.preserveHeight,b.preserveWidth,b.objectPosition);b.loadedClass="yt-core-image--loaded";return{type:"image",image:V,config:b}}};
_.wn=function(){var Y=_.BN.apply(0,arguments);return _.TM(_.Jh,function(b){var w=Y.map(function(V){return V(b)});
return function(){return void w.forEach(function(V){return void(V==null?void 0:V())})}})};
V_=function(Y,b){var w=b==null?void 0:b.initial;return _.sN(function(){_.Sa(!0);return w=Y(w)},{equals:b==null?void 0:b.isEqual},"rSlKsc")};
tjL=function(Y,b){if(Y===b)return!0;if(Y===void 0||b===void 0)return!1;var w,V,H,f,E,U,X,I;return Y.content===b.content&&((w=Y.styleRuns)==null?void 0:w.length)===((V=b.styleRuns)==null?void 0:V.length)&&((H=Y.commandRuns)==null?void 0:H.length)===((f=b.commandRuns)==null?void 0:f.length)&&((E=Y.attachmentRuns)==null?void 0:E.length)===((U=b.attachmentRuns)==null?void 0:U.length)&&((X=Y.decorationRuns)==null?void 0:X.length)===((I=b.decorationRuns)==null?void 0:I.length)};
F7r=function(Y,b){if(Y){var w=uVB(Y);if(w!=null&&w.content)if(_.q("attr_string_reactive"))sQq(Rua)({text:Y,config:b});else{var V=!(b==null||!b.ariaLabel)||!(w.commandRuns&&w.commandRuns.length!==0||w.paragraphStyleRuns&&w.paragraphStyleRuns.length!==0);Y=V?b==null?void 0:b.ariaLabel:null;V=V?"text":null;dI("span",{className:SjL(w,b),dir$:(b==null?0:b.userInput)?"auto":void 0,"aria-label$":Y,role$:V},function(){if(w.styleRuns||w.commandRuns||w.attachmentRuns||w.decorationRuns){var H=J2M(w,b);bYB(H,
b);H=Nq6(w.content,H);H=_.N(H.parts);for(var f=H.next();!f.done;f=H.next())dLe(f.value)}else f7(w.content)})}}};
dLe=function(Y){typeof Y==="string"?f7(Y):YrB(Y.data)?dI("span",Y.data.imageWrapperConfig,function(){eub(Y.data.image,Y.data.imageConfig)}):dI(Y.data.tag,Y.data.config,function(b){w3r(Y.data)(b);
b=_.N(Y.parts);for(var w=b.next();!w.done;w=b.next())dLe(w.value)})};
SrG=function(Y){return Y.parts.map(L7e)};
L7e=function(Y){if(typeof Y==="string")return Y;Y=YrB(Y.data)?_.m("span",{el:_.wn(Vja(Y.data.imageWrapperConfig))},_.m(_.Y_,Object.assign({},{data:Y.data.image},Y.data.imageConfig))):_.m(Y.data.tag,{el:_.wn(w3r(Y.data),Vja(Y.data.config))},Y.parts.map(L7e));return q$(Y)};
aYI=function(Y,b){return Y===b?!0:Y===void 0||b===void 0?!1:Y.noStyleRuns===b.noStyleRuns&&Y.noLinkColor===b.noLinkColor&&Y.noEndpoints===b.noEndpoints&&Y.headerRuns===b.headerRuns&&Y.isOverlay===b.isOverlay&&Y.linkInheritColor===b.linkInheritColor&&Y.userInput===b.userInput};
r7u=function(Y){return function(){var b,w,V,H,f,E,U,X,I,k,l,x,Q,Z;return{ariaLabel:(b=Y.ariaLabel)==null?void 0:b.call(Y),className:(w=Y.className)==null?void 0:w.call(Y),ellipsisTruncate:(V=Y.ellipsisTruncate)==null?void 0:V.call(Y),isOverlay:(H=Y.isOverlay)==null?void 0:H.call(Y),linkInheritColor:(f=Y.linkInheritColor)==null?void 0:f.call(Y),noEndpoints:(E=Y.noEndpoints)==null?void 0:E.call(Y),noStyleRuns:(U=Y.noStyleRuns)==null?void 0:U.call(Y),noLinkColor:(X=Y.noLinkColor)==null?void 0:X.call(Y),
noPreWrap:(I=Y.noPreWrap)==null?void 0:I.call(Y),noWrap:(k=Y.noWrap)==null?void 0:k.call(Y),skipOnClick:(l=Y.skipOnClick)==null?void 0:l.call(Y),stopPropagation:(x=Y.stopPropagation)==null?void 0:x.call(Y),userInput:(Q=Y.userInput)==null?void 0:Q.call(Y),headerRuns:(Z=Y.headerRuns)==null?void 0:Z.call(Y)}}};
zuI=function(Y){return Y.value===""||Y.value==="true"?!0:Y.value==="false"?!1:isNaN(Number(Y.value))?Y.value:Number(Y.value)};
Hb=function(Y,b){Y=new W7L(Y,b);_.Ft(Y);throw Y;};
K7r=function(Y,b,w){var V=J8v(Y);Y._numRenders=0;try{var H=_.hEG(function(){return _.m(b,Object.assign({},w))})}catch(E){var f=function(U){U.args||(U.args=[]);
U.args.push("Error in web component wrapper");U.args.push(Y.tagName.toLowerCase());return U};
_.LB(E instanceof Error?f(E):new W7L("Wiz rendering error",Y.tagName.toLowerCase()));throw E;}finally{J8v(V)}return H};
_.f_=function(Y,b,w){function V(k){var l={};k=_.N(k);for(var x=k.next();!x.done;x=k.next()){x=x.value;var Q=void 0,Z=void 0,e=void 0,O=_.xL((e=(Z=(Q=x).getAttribute)==null?void 0:Z.call(Q,"slot"))!=null?e:"children");if(Q=l[O])Q.push(x);else if(O in f||O==="children")l[O]=[x]}k=_.N(Object.keys(l));O=k.next();for(x={};!O.done;x={content$jscomp$55:void 0},O=k.next())O=O.value,O!=="children"&&(x.content$jscomp$55=l[O],l[O]=function(L){return function(){return L.content$jscomp$55}}(x));
return l}
w=w===void 0?{}:w;Y.componentType!==nQ||Hb("Components must be marked reactive to be used from web component wrapper.",b);EQ.has(b)&&Hb("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",b);var H,f=(H=w.props)!=null?H:{};cP.add(b);var E=iYg();H=function(){var k=E.apply(this,arguments)||this;k.rawProps={};k.queuingRender=!1;k.dispose=function(){};
k.isWebComponentWrapper=!0;k.isReparenting=!1;k.hasRendered=!1;return k};
_.P(H,E);H.prototype.render=function(){this.hasRendered=!0;for(var k=_.N([].concat(_.Bt(this.attributes))),l=k.next();!l.done;l=k.next())l=l.value,l.name!=="slot"&&this.removeAttribute(l.name);k=Object.assign({},this.componentProps,this.slotProps);l=_.N(K7r(this,Y,k));k=l.next().value;l=l.next().value;!(k[0]instanceof Element)||k.length>1?Hb("Wrapped Wiz components must return a single root element.",b):(k=k[0].tagName.toLowerCase(),k!==b&&Hb("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(k+" !== '"+b),b),this.dispose=l)};
H.prototype.setUpProps=function(){for(var k=this.rawProps,l=this.attributes,x=_.N(Object.keys(f)),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var Z=void 0;((Z=this)==null?0:Z[Q])&&this[Q]!==A7I&&k[Q]===void 0&&(k[Q]=this[Q],(Z=Object.getOwnPropertyDescriptor(this.constructor.prototype,Q))&&Object.defineProperty(this,Q,Z))}x=_.N(l);for(Q=x.next();!Q.done;Q=x.next()){Z=Q.value;Q=_.xL(Z.name);var e=Q==="class"&&!l.getNamedItem("class-name");if(Q in f||e)Z=zuI(Z),Q!=="class"||k.className?k[Q]=Z:k.className=
Z}l={};for(var O in f)f[O]!==_.gn&&f[O]!==CwL&&(k[O]instanceof Function&&Hb("Function props must be configured as STATIC, not SIGNAL.",b),Q=_.N(_.kw(k[O],void 0,"Ri8MSe")),x=Q.next().value,Q=Q.next().value,l[O]=Q,k[O]=x);k=_.N([k,l]);this.componentProps=k.next().value;this.setters=k.next().value;this.slotProps=V(this.childNodes)};
H.prototype.connectedCallback=function(){fA===b&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in f&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
H.prototype.disconnectedCallback=function(){if(!this._isInert){var k;a:{if(_.y7e)for(k=this;k;){if(_.$L6.has(k)){k=!0;break a}k=k.parentElement}k=!1}if(k)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){k=_.N([].concat(_.Bt(this.attributes)));for(var l=k.next();!l.done;l=k.next())l=l.value,l.name!=="slot"&&this.removeAttribute(l.name)}this.innerText="";CZu(this)}}};
H.prototype._setPendingPropertyOrPath=function(){};
H.prototype.notifyPath=function(){};
_.up.Object.defineProperties(H.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var U=_.N(Object.keys(f)),X=U.next(),I={};!X.done;I={prop$jscomp$104:void 0},X=U.next())I.prop$jscomp$104=X.value,X=void 0,((X=w.legacyPolymer)==null?0:X.forwardHostProps)&&zlB.has(I.prop$jscomp$104)||Object.defineProperty(H.prototype,I.prop$jscomp$104,{set:function(k){return function(l){var x=this;this._isInert||(this.setters?Qz(function(){var Q,Z;return void((Z=(Q=x.setters)[k.prop$jscomp$104])==null?void 0:Z.call(Q,l))}):(this.rawProps[k.prop$jscomp$104]=l,this.queuingRender&&k.prop$jscomp$104===
"data"&&l!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(I),
get:jQK.has(I.prop$jscomp$104)?void 0:function(){return A7I}});
customElements.define(b,H)};
_.GNu=function(Y,b){return(Y=_.NR(Y,b))?_.lH(_.PN(Y)):null};
_.Ev=function(Y){if(Y=_.NR(Y,Number.MAX_VALUE,void 0,"width"))return _.PN(Y)};
_.NR=function(Y,b,w,V){V=V===void 0?"width":V;if(!Y||!Y.length)return null;if(_.q("kevlar_tuner_should_always_use_device_pixel_ratio")){var H=window.devicePixelRatio;_.q("kevlar_tuner_should_clamp_device_pixel_ratio")?H=Math.min(H,_.cQ("kevlar_tuner_clamp_device_pixel_ratio")):_.q("kevlar_tuner_should_use_thumbnail_factor")&&(H=_.cQ("kevlar_tuner_thumbnail_factor"));Tqg=H}else Tqg||(Tqg=window.devicePixelRatio);H=Tqg;_.q("kevlar_tuner_should_always_use_device_pixel_ratio")?b*=H:H>1&&(b*=H);if(_.q("kevlar_tuner_min_thumbnail_quality"))return Y[0].url||
null;H=Y.length;if(_.q("kevlar_tuner_max_thumbnail_quality"))return Y[H-1].url||null;if(w)for(var f=0;f<H;f++)if(Y[f].url.indexOf(w)>=0)return Y[f].url||null;for(w=0;w<H;w++)if(Y[w][V]>=b)return Y[w].url||null;for(b=H-1;b>0;b--)if(Y[b][V])return Y[b].url||null;return Y[0].url||null};
Y46=function(){cb.size?setTimeout(function(){Uv(J7r)},0):ufq=0};
J7r=function(){var Y=(0,_.gG)(),b=null,w=!1;cb.forEach(function(H){H.loaded=!0;H.loadTime=Y;H.pendingPaint=!1;var f=bJv.get(H);f&&f.resolve(Y);b=H;w||!H.ftlEligible&&H.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(w=!0)});
var V;((V=b)==null?0:V.markDirty)&&b.markDirty();cb.clear();ufq=0;w&&wGt(Y)};
Vp6=function(Y){cb.add(Y);Y.pendingPaint=!0;ufq||(ufq=_.Xl(_.Lb,Y46))};
HJg=function(Y){Y.loaded=!1;Y.loadTime=Infinity;var b=bJv.get(Y);b&&(b.reject(Error("nh")),bJv.delete(Y));Y.pendingPaint&&(cb.delete(Y),Y.pendingPaint=!1)};
_.g3L=function(Y){var b=Y.indexOf(":");return b===-1?{originalName:Y}:{originalName:Y.substring(0,b),datasyncId:Y.substring(b+1)}};
_.NNM=function(){return _.c(function(Y){if(fMt!==void 0)return Y.return(fMt);fMt=new Promise(function(b){var w;return _.c(function(V){switch(V.nextAddress){case 1:return _.ct(V,2),_.D(V,_.Dp.open("test-only"),4);case 4:return _.D(V,_.Dp.delete("test-only"),5);case 5:_.$u(V,3);break;case 2:if(w=_.mS(V),w instanceof Error&&w.name==="SecurityError")return b(!1),V.return();case 3:b("caches"in window),_.om(V)}})});
return Y.return(fMt)})};
UiM=function(){return _.c(function(Y){if(Y.nextAddress==1)return _.D(Y,_.NNM(),2);if(!Y.yieldResult)return Y.return(void 0);E3a||(E3a=new cvu);return Y.return(E3a)})};
XGL=function(Y){var b,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:return _.D(f,UiM(),2);case 2:b=f.yieldResult;if(!b)throw Error("ph");return _.D(f,b.open("yt-player-local-img"),3);case 3:return w=f.yieldResult,_.D(f,w.match(Y),4);case 4:V=f.yieldResult;if(!V)throw Error("qh");return _.D(f,V.blob(),5);case 5:return H=f.yieldResult,f.return(H)}})};
DiI=function(Y,b){for(var w in Y)if(Y.hasOwnProperty(w)&&b[w])return w;return null};
mit=function(Y){return"stamp"+Y.replace("-","_")+"_"};
o3K=function(Y){var b=Y.match(/\[\[([\w\.]+)\]\]/);if(b&&b.length>1)return b[1];_.Ft(Error("sh`"+Y));return null};
IMb=function(Y){return Y===void 0?_.Wf("REUSE_COMPONENTS",!1):Y||!1};
hrb=function(Y,b,w){w&&(b.is?(k5g.has(b)&&(Y=k5g.get(b),w=Y.listener,delete b[Y.property],w.type==="element"&&b.removeEventListener(w.eventName,w.handler),k5g.delete(b)),lML(b)):b.__proto__==HTMLElement.prototype&&(b=new _.BQ("Rendererstamper removed a non custom element","Stamper: "+Y+" element: "+(b&&b.nodeName)),_.Sk(b)))};
xiq=function(Y,b,w,V){var H=b.node?b.node:b;_.E6(w).parentNode===H&&(b.removeChild(w),hrb(Y,w,V));if(Y=mB.get(w))mB.delete(w),_.Lb.cancelJob(Y);w.hidden=!1};
q4B=function(Y,b,w,V){if(b&&b.children&&(w=b.children[w]))if(_.Wf("DEFERRED_DETACH"))for(;w&&!mB.has(w);){var H=Y,f=b,E=w,U=V;E.hidden=!0;H=_.MY(_.Lb,xiq.bind(null,H,f,E,U),0);mB.set(E,H);w=w.nextElementSibling}else for(;(E=b.lastElementChild)&&(b.removeChild(E),hrb(Y,E,V),E!=w););};
sTK=function(Y){var b=_.GM("__slot-el");_.dx(function(){for(var w=_.N(Y.slotContent),V=w.next();!V.done;V=w.next())b.value.appendChild(V.value)});
return _.m("__slot-el",{el:b,skip:!0})};
_.oL=function(Y,b,w){w=w===void 0?QTu:w;EQ.add(b);var V;(V=w).propNames!=null||(V.propNames=[]);var H=new Set(w.propNames),f=iYg();V=function(){var I=f.call(this)||this;I.props={};I.isUpdating=!1;I.hasAttached=!1;I.isInert=!1;I.updateQueued=!1;I.initialClasses=[];TTB(I,b);return I};
_.P(V,f);V.prototype.forwardKebabCaseProp=function(I,k){I=_.xL(I);if(H.has(I)||I==="children")this.props[I]=k};
V.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var I=_.N(this.initialClasses),k=I.next();!k.done;k=I.next())(k=k.value)&&this.classList.add(k);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
V.prototype.handleSlottedContent=function(){for(var I=new Map,k=_.N(this.children),l=k.next();!l.done;l=k.next()){l=l.value;var x=void 0,Q=(x=l.getAttribute("slot"))!=null?x:"children";(x=I.get(Q))?x.push(l):I.set(Q,[l]);if(!l.getAttribute("key")){var Z=void 0,e=void 0;l.setAttribute("key",Q+"_"+((e=(Z=x)==null?void 0:Z.length)!=null?e:0))}}I=_.N(I);for(k=I.next();!k.done;k=I.next())l=_.N(k.value),k=l.next().value,l=l.next().value,this.forwardKebabCaseProp(k,_.m(sTK,{slotContent:l}))};
V.prototype.connectedCallback=function(){var I=this;if(!TTB(this,b)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var k=_.N(this.attributes),l=k.next();!l.done;l=k.next())l=l.value,this.forwardKebabCaseProp(l.name,zuI(l));this.handleSlottedContent();w.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){I.afterFirstPatch()});
this.hasAttached=!0}};
V.prototype.attributeChangedCallback=function(I,k,l){this.isInert||this.isUpdating||this.isConnected||I!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Bt(l.split(" ")))};
V.prototype.disconnectedCallback=function(){zGg(this)};
V.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var I,k;JAM(this,_.m(Y,Object.assign({},this.props,{idomKey:(k=(I=this.__incrementalDOMData)==null?void 0:I.key)!=null?k:b})),!0)}catch(x){var l=x instanceof Error?x:new _.BQ("Wiz rendering error");l.args||(l.args=[]);l.args.push("Error in deprecated web component wrapper");l.args.push(b.toLowerCase());_.Ft(l);throw x;}finally{this.updateQueued=this.isUpdating=!1}}};
V.prototype.enqueueUpdate=function(){var I=this;return _.c(function(k){if(w.synchronous)return I.update(),k.return();if(I.updateQueued)return k.return();I.updateQueued=!0;return k.return(Promise.resolve().then(function(){I.update()}))})};
V.prototype.notifyPath=function(){w.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.up.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var E=_.N(w.propNames),U=E.next(),X={};!U.done;X={prop$jscomp$106:void 0},U=E.next())X.prop$jscomp$106=U.value,Object.defineProperty(V.prototype,X.prop$jscomp$106,{set:function(I){return function(k){this.isInert||k===this.props[I.prop$jscomp$106]||(this.props[I.prop$jscomp$106]=k,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(X)});
customElements.define(b,V)};
_.v3e=function(Y,b){return _.kt(Y.entities,"markersEngagementPanelSyncEntity",b)};
Pk6=function(Y,b){return _.kt(Y.entities,"fantasyWinProbabilityEntity",b)};
ZJr=function(Y,b){return _.kt(Y.entities,"fantasyTeamEntity",b)};
BNK=function(Y,b){return _.kt(Y.entities,"fantasyPlayerEntity",b)};
n3b=function(Y,b){return _.kt(Y.entities,"booleanEntity",b)};
Mp6=function(Y,b){return _.kt(Y.entities,"qrCodeEntity",b)};
ert=function(Y){return _.kt(Y.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
pGt=function(){if(IL)return IL;if(window.lottie)return IL=Promise.resolve(window.lottie);var Y=_.SI(_.zO("LOTTIE_URL"));return Y?IL=new Promise(function(b,w){var V=document.createElement("script");V.addEventListener("load",function(){b(lottie)});
V.addEventListener("error",function(H){var f="Lottie library failed to load.";H?H.message&&(f+=" Original description: "+H.message,_.aY(H,f)):H=Error(f);_.Sk(H);w(H)});
V.setAttribute("async","");_.Ku(V,Y);document.head.appendChild(V)}):Promise.reject(Error("th"))};
OJb=function(){return IL?IL:pGt()};
tpK=function(Y){if(Y)switch(Y){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.q("kevlar_use_wil_icons"))return Y=(Y=ert(_.u3().getState()))&&Y.animationLightUrl&&Y.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:Y.animationLightUrl,pathDarkTheme:Y.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,Y?Y:k_.get("LIKE")}};
Rre=function(Y){var b=tpK(Y);if(b)return b;switch(Y){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return k_.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return k_.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return k_.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return k_.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return k_.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return k_.get("NOTIFICATION_BELL")}};
Fhr=function(Y,b){if(!Y||diL)b=!1;else{if(Y.closest){var w=!!tpK(b);w=_.zO("ID_TOKEN")&&w?!!Y.closest("segmented-like-dislike-button-view-model"):!1}else w=!1;if(!w)if(Y.closest)if(w=!_.zO("ID_TOKEN"),Y=Y.closest("ytd-subscription-notification-toggle-button-renderer-next"),w||!Y)w=!1;else{var V;w=((V=Y.data)==null?void 0:V.targetId)==="notification-bell"&&b!=="EXPAND_MORE"}else w=!1;b=w}return b};
Lha=function(Y){var b,w;return _.c(function(V){switch(V.nextAddress){case 1:return _.ct(V,2),_.D(V,fetch(Y),4);case 4:return b=V.yieldResult,_.D(V,b.json(),5);case 5:return V.return(V.yieldResult);case 2:w=_.mS(V),_.Sk(w),_.om(V)}})};
S46=function(Y,b){var w,V,H;return _.c(function(f){if(f.nextAddress==1)return(w=b?Y.pathDarkTheme:Y.path)?_.D(f,Promise.all([Lha(w),pGt()]),2):f.return();V=f.yieldResult;H=V[0];lA.set(w,H);_.om(f)})};
_.hj=function(){for(var Y=_.BN.apply(0,arguments),b=!0,w=_.N(Y),V=w.next();!V.done;V=w.next())if(typeof V.value!=="string"){b=!1;break}return b?Y.join(" ").trim()||void 0:function(){for(var H="",f=_.N(Y),E=f.next();!E.done;E=f.next())if(E=E.value,typeof E==="function"&&(E=E()),E)if(typeof E==="string")H+=" "+E;else for(var U in E)if(E.hasOwnProperty(U)){var X=E[U];typeof X==="function"&&(X=X());X&&(H+=" "+U)}H=H.trim()||void 0;return _.Sa(H)}};
_.x_=function(Y){var b;var w=Y.data;var V=Y.className;var H=Y.animationName;var f=Y.animationRef;var E=(b=Y.elRefForInterop)||_.GM("lottie-component"),U;_.R2(function(){var k;return void((k=U)==null?void 0:k.destroy())});
var X;_.tl(function(){var k=_.Sa(H);if(k!==X){X=k;var l=Object.assign({},{animationName:k,animationRef:_.Sa(f)},_.Sa(w));try{_.fH().resolve(aML)().then(function(Z){var e;(e=U)==null||e.destroy();e=l.animationRef;var O=l.listeners;Z=Z.loadAnimation(Object.assign({},{container:E.value},l.animationConfig));e&&(e.lottieEl=Z);if(O)for(e=_.N(Object.entries(O)),O=e.next();!O.done;O=e.next()){var L=_.N(O.value);O=L.next().value;(L=L.next().value)&&Z.addEventListener(O,L)}U=Z})}catch(Z){k=Z;
var x="LottieComponent error.";k.message&&(x+=" Original description: "+k.message);_.aY(k,x);_.Sk(k);var Q;((Q=l.listeners)==null?0:Q.error)&&l.listeners.error(k)}}},"Cu2JNe");
var I=_.hj("ytLottieComponentHost",V);return _.m(CFg,{cond:function(){return!b},
then:function(){return _.m("lottie-component",{class:I,el:E})}})};
zru=function(Y,b,w,V){function H(E,U){if(b.value===U&&Y!=null&&Y.value){for(;Y.value.firstChild;)Y.value.removeChild(Y.value.firstChild);Y.value.classList.add("yt-spec-icon-shape");E(Y.value,V)}}
w=_.rvu(_.fH().resolve(_.kO),w);if(typeof w==="function")b.value=null,H(w,null);else{var f=new _.hh(w.then,w);b.value=f;f.then(function(E){H(E,f)})}};
Khb=function(Y,b){var w=document.createElement("div"),V=_.Oz(w,function(){return _.m(_.h,{cond:Y,then:function(H){return _.m(Whg,{data:H,options:b})}})});
return[w,V]};
_.qR=function(){for(var Y=[],b=_.N(_.BN.apply(0,arguments)),w=b.next();!w.done;w=b.next())if(w=w.value)if(typeof w==="string")Y.push(w);else{w=_.N(Object.entries(w));for(var V=w.next();!V.done;V=w.next()){var H=_.N(V.value);V=H.next().value;(H=H.next().value)&&Y.push(V)}}return Y.join(" ")};
yvG=function(Y){var b=_.GM("animated-rolling-character"),w=L7(),V=uo(Y.character)||uo(Y.previousCharacter);gDI(function(){if(Y.marginMultiplier){var H;(H=w.value)==null||H.cancel();V?(H=Y.previousCharacter?Number(Y.previousCharacter)+10:Y.rollUp?0:30,Y.shouldAnimate||(H-=iJ6(Y,H))):(H=Y.rollUp?0:2,Y.shouldAnimate||(H-=Y.rollUp?-1:1));b.value.style.marginTop="-"+H*Y.marginMultiplier+"px";Y.shouldAnimate?w.value=Avv(b.value,Y,H,V):b.value.style.display=Y.character?"":"none"}});
return _.m("animated-rolling-character",{el:b,class:"animated-rolling-character-wiz"},bN(V,function(){for(var H=[],f=1;f<30;f++)H.push(_.m("div",null,f%10));return _.m(_.Uz,null,_.m("div",null,"\u00a0"),H,_.m("div",null,"\u00a0"))},function(){return CkI(Y.character)}))};
CkI=function(Y){return _.m(_.Uz,null,_.m("div",null,"\u00a0"),_.m(_.Uz,null,bN(!Y||_.EM(Y),function(){return _.m("div",null,"\u00a0")},function(){return _.m("div",null,Y)})),_.m("div",null,"\u00a0"))};
Avv=function(Y,b,w,V){w=new Animation(new KeyframeEffect(Y,[{transform:"translateY(0px)"},{transform:"translateY("+(V?iJ6(b,w):b.rollUp?-1:1)*b.marginMultiplier+"px)"}],$iI),document.timeline);b.character?(Y.style.display="",w.onfinish=null):w.onfinish=function(){Y.style.display="none"};
w.play();return w};
iJ6=function(Y,b){var w=Number(Y.character)+10;if(Y.previousCharacter)if(Y.character){var V=Number(Y.character),H=Number(Y.previousCharacter);Y=Y.rollUp?H<V?w:w+10:H<V?w-10:w}else Y=Y.rollUp?30:0;else Y=Y.character==="0"?w:Y.rollUp?w-10:w+10;return b-Y};
_.sv=function(Y,b){return function(w){var V={},H;for(H in w){var f=void 0,E=void 0;((f=b)==null?0:(E=f.callbacks)==null?0:E[H])||(V[H]=w[H])}return _.m(lpb,null,function(){for(var U in V)w[U]=_.Sa(V[U]);w.disableReactiveLogging=!0;return _.m(Y,Object.assign({},w))})}};
TN6=function(Y,b,w,V,H,f,E){w=new Animation(new KeyframeEffect(Y,[{transform:"translateY(0px)"},{transform:"translateY("+(f?jTG(b,w,V,H):V?-1:1)*E+"px)"}],G5u),document.timeline);b?(Y.style.display="",w.onfinish=null):w.onfinish=function(){Y.style.display="none"};
w.play();return w};
jTG=function(Y,b,w,V){var H=Number(Y)+10;b?Y?(Y=Number(Y),b=Number(b),w=w?b<Y?H:H+10:b<Y?H-10:H):w=w?30:0:w=Y==="0"?H:w?H-10:H+10;return V-w};
uNK=function(Y){var b=L7(),w=L7();RI(function(){b.value=Y.numberText;w.value=Y.numberValue},[Y.numberText]);
var V=Y.fontSizeMultiplier?Y.heightPx*Y.fontSizeMultiplier:Y.heightPx,H=Uce(function(){if(Y.numberText){var E=Y.numberText;var U=Y.forceRollUp||!w.value||!Y.numberValue||w.value<Y.numberValue;var X=!!Y.shouldAnimate,I=b.value,k=[],l=0,x=0,Q=(I?I.replace(/\D/g,"").length:0)-(E?E.replace(/\D/g,"").length:0);I=I?I.split(/(\d)/).filter(Boolean):[];for(E=E.split(/(\d)/).filter(Boolean);Q<0;){var Z=E[x];k.push({character:Z,rollUp:U,marginMultiplier:V,shouldAnimate:X});x++;uo(Z)&&Q++}for(;l<Q;)Z=I[l],k.push({previousCharacter:Z,
rollUp:U,marginMultiplier:V,shouldAnimate:X}),l++,uo(Z)||Q++;for(;x<E.length;)Q=E[x],Z=I[l],uo(Q)===uo(Z)?(x++,l++):uo(Q)?(l++,Q=void 0):uo(Z)&&(x++,Z=void 0),k.push({character:Q,previousCharacter:Z,rollUp:U,marginMultiplier:V,shouldAnimate:X});U=k}else U=[];return U},[Y.numberText]),f=Y.numberText?["height: "+V+"px;",
"line-height: "+Y.heightPx+"px;"].join(" "):"";return _.m("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:f,dir:"ltr","aria-hidden":"true"},H.map(function(E){return _.m(Jvg,Object.assign({},E))}))};
bG6=function(Y){var b;return(b=Y8b[Y])!=null?b:"EVENT_SPAN_TYPE_UNKNOWN"};
weL=function(Y){var b=Y.nodeName;if(Y.id)return b+="#"+Y.id;if(Y.classList)for(var w=_.N(Y.classList),V=w.next();!V.done;V=w.next())b+="."+V.value;Y.parentElement&&(b=weL(Y.parentElement)+" > "+b);return b};
VNg=function(Y){return function(b){var w=bG6(b.type);return w==="EVENT_SPAN_TYPE_UNKNOWN"?Y(b):F0q("event",{type:w,nodepath:b.target instanceof Element?weL(b.target):void 0},function(){return Y(b)})}};
_.Q_=function(Y){Y&&tfr("event")&&(Y=VNg(Y));return $Zq(function(b){var w,V=(w=Y)==null?void 0:w(b);return typeof V==="boolean"?V:!0})};
Pb=function(Y){return function(){return Y()?Y():void 0}};
HGa=function(Y){return new KeyframeEffect(Y,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
g9e=function(Y){return new KeyframeEffect(Y,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.Zp=function(Y){var b=V_(function(w){w=w?I2(w[0]):void 0;return _.kw(Y(w),void 0,"AwTxXe")},{isEqual:function(w,V){return I2(w[0])===I2(V[0])}});
return[function(){return b()[0]()},
function(w){return void b()[1](w)}]};
_.Bb=function(Y){return function(){var b="",w;for(w in Y){for(var V=Y[w];typeof V==="function";)V=V();V!==void 0&&V!==null&&(b+="; "+w+": "+V)}return b.length>0?_.Sa(b.slice(2)):_.Sa()}};
f$B=function(Y){switch(Y){case 2:return"yt-spec-touch-feedback-shape--touch-response-inverse";case 3:return"yt-spec-touch-feedback-shape--overlay-touch-response";case 4:return"yt-spec-touch-feedback-shape--overlay-touch-response-inverse";default:return"yt-spec-touch-feedback-shape--touch-response"}};
UIg=function(Y,b,w,V,H,f){var E=NDG(Y),U=E.disabled,X=E.iconPosition,I=E.style,k=E.focused,l=function(){return!!Z()&&X()==="icon-only"},x=function(){return!!Z()&&X()==="icon-only-40"},Q=function(){return!!Z()&&X()==="icon-with-label"},Z=function(){return!!b||!(V==null||!V())};
return{type:function(){return I()==="call-to-action-inverse"?"text":I()==="overlay-dark"&&Y().type!=="filled"&&Y().type!=="tonal"?"tonal":Y().type},
shouldFocus:function(){return(k()||(f==null?void 0:f()))&&!U()},
hasIconLeading:function(){return!!Z()&&X()==="leading"},
hasIconTrailing:function(){return!!Z()&&X()==="trailing"},
hasIconLeadingTrailing:function(){return!!Z()&&!!(w||H!=null&&H())&&X()==="leading-trailing"},
hasIconOnly:l,hasIconOnly40:x,hasIconWithLabel:Q,iconButton:function(){return l()||x()||Q()},
visiblyDisabled:function(){return(U()?"disabled":Y().state)==="disabled"||U()},
overrideSmallSizeIcon:function(){return E9K(Y(),Z())},
iconToRender:b?b:function(){return _.m(_.n_,{icon:V,size:function(){return MR(Y(),!0)},
active:function(){return Y().toggled},
iconFilter:function(){return ciL(Y())}})},
secondaryIconToRender:w?w:function(){return _.m(_.n_,{icon:H,size:function(){return MR(Y(),!0)},
active:function(){return Y().toggled},
iconFilter:function(){return ciL(Y())}})}}};
NDG=function(Y){return{size:function(){return Y().size},
style:function(){return Y().style},
focused:function(){return Y().focused},
disabled:function(){return Y().disabled},
onTap:function(b){var w,V;return(V=(w=Y()).onTap)==null?void 0:V.call(w,b)},
alignByText:function(){return Y().alignByText},
aTagConfig:function(){return Y().aTagConfig},
customColors:function(){return Y().customColors},
segmentedPosition:function(){return Y().segmentedPosition},
toggled:function(){return Y().toggled},
toggleable:function(){return Y().toggleable},
accessibilityLabel:function(){return Y().accessibilityLabel},
onToggle:function(b){var w,V;return(V=(w=Y()).onToggle)==null?void 0:V.call(w,b)},
iconPosition:function(){return Y().iconPosition},
oneOffCustomTextWrap:function(){return Y().oneOffCustomTextWrap},
disableTextEllipsis:function(){return Y().disableTextEllipsis},
disableBackdropFilter:function(){return Y().disableBackdropFilter},
tooltipText:function(){return Y().tooltipText},
ariaHidden:function(){return Y().ariaHidden},
tabIndex:function(){return Y().tabIndex},
buttonText:function(){return Y().buttonText},
formattedButtonText:function(){return Y().formattedButtonText},
animatedTextProps:function(){return Y().animatedTextProps}}};
Xev=function(Y){return Y.style==="overlay-dark"?4:Y.style==="overlay"?Y.type==="filled"?4:3:Y.type==="filled"||Y.style==="call-to-action-inverse"||Y.style==="mono-inverse"?2:1};
E9K=function(Y,b){b=(Y.iconPosition==="icon-only"||Y.iconPosition==="icon-only-40"||Y.iconPosition==="icon-with-label")&&b;return!Y.segmentedPosition&&b&&Y.size==="S"};
DIt=function(){return!_.q("web_disable_backdrop_filter")};
MR=function(Y,b){switch(Y.size){case "XS":return 16;case "S":return E9K(Y,b)?24:16;default:return 24}};
mIK=function(Y){switch(Y){case "filled":return"yt-spec-button-shape-next--filled";case "outline":return"yt-spec-button-shape-next--outline";case "tonal":return"yt-spec-button-shape-next--tonal";default:return"yt-spec-button-shape-next--text"}};
o9v=function(Y){switch(Y){case "call-to-action":return"yt-spec-button-shape-next--call-to-action";case "call-to-action-overlay":return"yt-spec-button-shape-next--call-to-action-overlay";case "mono":return"yt-spec-button-shape-next--mono";case "overlay":return"yt-spec-button-shape-next--overlay";case "overlay-dark":return"yt-spec-button-shape-next--overlay-dark";case "call-to-action-inverse":return"yt-spec-button-shape-next--call-to-action-inverse";case "mono-inverse":return"yt-spec-button-shape-next--mono-inverse";
case "brand-gradient":return"yt-spec-button-shape-next--brand-gradient";case "gen-ai-gradient":return"yt-spec-button-shape-next--gen-ai-gradient";default:return"yt-spec-button-shape-next--mono"}};
I$M=function(Y){switch(Y){case "XS":return"yt-spec-button-shape-next--size-xs";case "S":return"yt-spec-button-shape-next--size-s";case "L":return"yt-spec-button-shape-next--size-l";case "XL":return"yt-spec-button-shape-next--size-xl";default:return"yt-spec-button-shape-next--size-m"}};
ciL=function(Y){if(Y.style==="overlay-dark"&&Y.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
kXg=function(Y){if(!Y)return{};var b=Y.color,w=Y.backgroundColor;Y=Y.borderColor;var V="";b&&(V+="color: "+b+";");w&&(V+="background-color: "+w+";");Y&&(V+="border-color: "+Y+";");return{style:V}};
sJu=function(Y,b,w){var V=Y.buttonText,H=Y.formattedButtonText,f=Y.formattedButtonTextLegacy,E=Y.animatedTextProps,U=Y.style,X=Y.size,I=Y.focused,k=Y.disabled,l=Y.onTap,x=Y.alignByText,Q=Y.aTagConfig,Z=Y.customColors,e=Y.segmentedPosition,O=Y.toggled,L=Y.toggleable,r=Y.accessibilityLabel,C=Y.onToggle,W=Y.iconPosition,y=Y.oneOffCustomTextWrap,G=Y.disableTextEllipsis,Nr=Y.disableBackdropFilter,o6=Y.tooltipText,lI=Y.ariaHidden,Zt=Y.tabIndex,eL=Y.state,OM=Y.type;U==="call-to-action-inverse"&&(OM="text");
U==="overlay-dark"&&OM!=="filled"&&OM!=="tonal"&&(OM="tonal");var iI=!!b&&W==="leading",rB=!!b&&W==="trailing",Tj=!!b&&!!w&&W==="leading-trailing",J_=!!b&&W==="icon-only",B9=!!b&&W==="icon-only-40",ok=!!b&&W==="icon-with-label",Ut=J_||B9||ok;k&&(eL="disabled");var wt=eL==="disabled"||k;eL=E9K(Y,!!b);var X$={},Dg=(X$["yt-spec-button-shape-next"]=!0,X$[mIK(OM)]=!0,X$[o9v(U)]=!wt,X$["yt-spec-button-shape-next--disabled"]=!!wt,X$[I$M(X)]=!0,X$["yt-spec-button-shape-next--focused"]=!!I&&!k,X$["yt-spec-button-shape-next--icon-trailing"]=
rB,X$["yt-spec-button-shape-next--icon-leading"]=iI,X$["yt-spec-button-shape-next--icon-leading-trailing"]=Tj,X$["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=Tj&&!(V||H),X$["yt-spec-button-shape-next--icon-button"]=J_||ok,X$["yt-spec-button-shape-next--icon-only-default"]=B9,X$["yt-spec-button-shape-next--align-by-text"]=!!x,X$["yt-spec-button-shape-next--segmented-start"]=e==="start",X$["yt-spec-button-shape-next--segmented-end"]=e==="end",X$["yt-spec-button-shape-next--override-small-size-icon"]=
eL,X$["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!y,X$["yt-spec-button-shape-next--disable-text-ellipsis"]=!!G,X$["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!Nr&&DIt(),X$),eQ=function(){if(E)sQq(_.l$L)(E);else if(f)f(W==="icon-with-label"||y?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(H){var $d=W==="icon-with-label"||y;F7r(Object.assign({},H,$d?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!$d})}else V&&f7(V)},cg=function($d){l==null||l($d);
L&&(C==null||C($d))},qQ=Q?hcK:xIg,t_=Q?"aria-current$":"aria-pressed$",$s=function(){b&&(iI||Tj||Ut)&&function(){e9({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){b()})}();
(V||H||f||E)&&!Ut&&function(){e9({className:"yt-spec-button-shape-next__button-text-content"},function(){eQ()})}();
rB&&function(){e9({className:"yt-spec-button-shape-next__icon"},function(){b()})}();
Tj&&function(){e9({className:"yt-spec-button-shape-next__secondary-icon"},function(){w()})}();
k||sQq(_.p_)({model:{color:Xev(Y)}})},P9=function(){var $d={};
qQ(Object.assign({},($d.className=_.qR(Dg),$d.onclick=Q?void 0:cg,$d.disabled=k,$d["aria-disabled$"]=wt,$d.style=k&&Q?"pointer-events:none":void 0,$d[t_]=L?!!O:void 0,$d["aria-label$"]=r,$d.title$=o6!=null?o6:"",$d["aria-hidden$"]=lI,$d.tabindex$=Zt,$d),Q,kXg(Z)),function(){$s()})};
ok?(X={},U=(X["yt-spec-button-shape-with-label"]=!0,X["yt-spec-button-shape-with-label--is-overlay"]=U==="overlay"||U==="overlay-dark",X),q86({className:_.qR(U)},function(){P9();e9({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},eQ)})):P9()};
v9b=function(Y,b){if(!w2){var w;NGM(function(){return w=Ip6(Y,b)});
return w}Y.parent=QJM();return Ip6(Y,b)};
QJM=function(){var Y=Z7L(w2||void 0,DRg);return P1I(Y)?void 0:Y};
Ov=function(Y,b){_.WP(Y,Object.assign({},b,{forceClickLogging:!0}))};
PBG=function(Y,b,w,V){var H=void 0;return function(f){var E=_.zT(w?Y==null?void 0:Y.onDisabledTap:Y==null?void 0:Y.onTap);if(E){var U;H=(U=H)!=null?U:b==null?void 0:b.value;if(E)if(_.q("web_button_vm_click_client_ve_killswitch"))Ov(E,Object.assign({},{form:{element:H,event:f}},void 0));else{var X;U=E==null?void 0:E.clickTrackingParams;var I,k=Y==null?void 0:(X=Y.loggingDirectives)==null?void 0:(I=X.clientVeSpec)==null?void 0:I.uiType;X=k&&!U?_.tj(k):void 0;Ov(E,Object.assign({},{form:{element:H,event:f}},
{clickedVisualElement:X}))}}V&&V(f)}};
ZGg=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_STYLE_CTA":return"call-to-action";case "BUTTON_VIEW_MODEL_STYLE_MONO":case "BUTTON_VIEW_MODEL_STYLE_BRAND":return"mono";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY":return"overlay";case "BUTTON_VIEW_MODEL_STYLE_OVERLAY_DARK":return"overlay-dark";case "BUTTON_VIEW_MODEL_STYLE_BRAND_GRADIENT":return"brand-gradient";case "BUTTON_VIEW_MODEL_STYLE_BRAND_AI":return"gen-ai-gradient";default:return"mono"}};
BDv=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_TYPE_FILLED":return"filled";case "BUTTON_VIEW_MODEL_TYPE_OUTLINE":return"outline";case "BUTTON_VIEW_MODEL_TYPE_TEXT":return"text";case "BUTTON_VIEW_MODEL_TYPE_TONAL":return"tonal";default:return"text"}};
n9M=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_STATE_ACTIVE":return"active";case "BUTTON_VIEW_MODEL_STATE_INACTIVE":return"disabled";case "BUTTON_VIEW_MODEL_STATE_DISABLED":return"disabled";default:return"active"}};
MNr=function(Y){switch(Y){case "BUTTON_VIEW_MODEL_SIZE_XSMALL":return"XS";case "BUTTON_VIEW_MODEL_SIZE_COMPACT":return"S";case "BUTTON_VIEW_MODEL_SIZE_DEFAULT":return"M";case "BUTTON_VIEW_MODEL_SIZE_LARGE":return"L";case "BUTTON_VIEW_MODEL_SIZE_XLARGE":return"XL";default:return"M"}};
ecv=function(Y,b){return _.kt(Y.entities,"engagementToolbarStateEntityPayload",b)};
OGI=function(Y){(Y=_.nA(Y))&&_.peL(Y)};
_.peL=function(Y){var b=_.dO();b&&_.j1(b,Y)};
tNv=function(Y,b,w){_.Xx(Y,"yt-open-popup-action",[b,w||Y])};
Rce=function(Y,b){var w=_.S4(Y,"endpoint"),V=_.S4(Y,"action");return(w=V?V:w)&&b&&(w=b.navigationEndpointPopupMap[w])&&(Y=_.Aq(w,Y),(w=_.S4(Y,"renderer"))&&b.supportedPopups.hasOwnProperty(w))?{openPopupAction:{popupType:b.popupTypeMap[w],popup:Y}}:null};
dII=function(Y,b,w,V){if(V){var H;w=w==null?void 0:(H=w.data)==null?void 0:H.contents;(H=w instanceof Array&&w.length?w[0]:w)&&(w=_.S4(H,"renderer"))&&V.supportedPopups.hasOwnProperty(w)&&(b.stopPropagation(),tNv(Y,{openPopupAction:{popupType:V.popupTypeMap[w],popup:H}}))}};
S8r=function(Y,b,w,V){V=V===void 0?!1:V;var H=FbK(b);if(H){H.href&&CX(H.href);var f=b.button;f=f!==void 0?f===0&&!RL(b):!RL(b);H.data&&f&&LbM(Y,H,b,w,V)}};
LbM=function(Y,b,w,V,H){H=H===void 0?!1:H;var f=_.cQ("pbj_navigate_limit",-1)===0;a$r(b);_.fH().resolve(_.HQ(iF));var E=b.data;if(Object.keys(E).length!==0)if(!_.q("unplugged_web_disable_actions_for_cec_endpoint")&&_.v(E,_.ln))_.q("endpoint_behavior_command_executor_fix_killswitch")||(w.preventDefault(),w.stopPropagation()),_.IP(Y,[E],Y);else if(V=Rce(E,V))E.loggingUrls&&E.loggingUrls.forEach(function(X){X.baseUrl&&_.yn(X.baseUrl)}),w.preventDefault(),w.stopPropagation(),tNv(Y,V,b);
else{var U=riK(0,b.data,w);if(Y=b.getForm)Y=Y(),U.tempData=U.tempData||{},U.tempData=Object.assign({},U.tempData,Y);Y=_.JL(w);if(V=Y.find(function(X){return!!X.visualElement}))U.createScreenConfig=U.createScreenConfig||{},U.createScreenConfig.clickedVisualElement=V.visualElement;
if(!f)if(w.preventDefault(),w.stopPropagation(),_.v(E,_.zcq)&&!H&&_.l8.instance)_.l8.instance.resolveCommand(E,U);else if(_.q("kevlar_command_handler_formatted_string")&&!H&&_.l8.instance&&Wbq(E))H=Y.find(function(X){return!!X.is})||w.target,w={form:Object.assign({},U,{event:w,
element:H,originatingNode:b})},_.l8.instance.resolveCommand(E,w);else{E=_.JL(w);w=[];for(H=0;H<E.length;H++)(f=E[H].is)&&w.push(f);pPv({parents:w.join(","),text:b.innerText},function(){_.Ua(b,"yt-navigate",U)})}}};
KbM=function(Y){if(Y=FbK(Y))a$r(Y),DTb(Y.href)};
FbK=function(Y){Y=_.JL(Y);for(var b,w=0;w<Y.length;w++)if(b=Y[w],b.tagName==="A"&&b.classList.contains("yt-simple-endpoint")){if(!b.data)break;return b}return null};
RL=function(Y){return Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey};
iGv=function(Y,b){var w={itct:b.clickTrackingParams};_.q("kevlar_client_side_screens")&&(!_.v(b,_.BH)||_.q("kevlar_exclude_endpoint_killswitch"))&&(w.endpoint=JSON.stringify(b));_.q("enable_unknown_lact_fix_on_html5")&&_.fH().resolve(_.HQ(_.dn))&&(w.lact=_.fB());cBr(w);_.VX(Y,w)};
a$r=function(Y){Y.href&&Object.keys(Y.data).length!==0&&iGv(Y.href,Y.data)};
Wbq=function(Y){for(var b=_.N(AiB),w=b.next();!w.done;w=b.next())if(Y[w.value])return!1;return!0};
_.Fl=function(Y,b){if(b){var w={};CBG.forEach(function(V){V=yia(b,V,"--yt-lightsource-");Object.assign(w,V)});
$Iq.forEach(function(V){V=yia(b,V,"--yt-basic-");Object.assign(w,V)});
_.m_(Y,w)}};
yia=function(Y,b,w){var V={};V[w+_.hw(b)]=Y&&Y[b]?_.KX(Y[b]):"";return V};
_.S9=function(Y,b,w){L_[Y]||(L_[Y]={});L_[Y][b]=w};
_.aL=function(Y){L_[Y]||(L_[Y]={});return L_[Y]};
jJg=function(Y){if(!Y)return{};var b=Y.foregroundTitleColor,w=Y.backgroundColor;Y=Y.borderColor;var V="text";Y?V="outline":w&&(V="filled");return{type:V,customColors:{color:b?_.KX(b):void 0,backgroundColor:w?_.KX(w):void 0,borderColor:Y?_.KX(Y):void 0}}};
Yiv=function(Y){var b=Y.renderer;var w=Y.element;var V=Y.commandController;var H=Y.onTapCallback;var f=Y.skipCommandHandling;var E=Y.overrides;var U=Y.forceIcon;var X=Y.forceModernIconButton;var I=Y.forceDisabled;var k=Y.isSubscribe===void 0?!1:Y.isSubscribe;var l=Y.isPressed===void 0?!1:Y.isPressed;var x=Y.useButtonSize===void 0?!1:Y.useButtonSize;Y=GXL(b);k&&(Y.style="mono",Y.type="filled");U=!b.icon||!U&&b.text?b.icon?b.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:X?"icon-only":"icon-only-40";U==="icon-only-40"&&(Y.type="text");var Q;X=Object;k=X.assign;x=TDt(b,x);l=!!b.isSelected||!_.q("web_propagate_is_pressed_killswitch")&&!!l;var Z=b.isSelected!==void 0;I=I===void 0?b.isDisabled:I;var e=b.text?_.LA(b.text):void 0;var O,L,r,C=((O=b.accessibilityData)==null?void 0:(L=O.accessibilityData)==null?void 0:L.label)||((r=b.accessibility)==null?void 0:r.label);O=C?C:_.Tx(b.text);w=Jig(b,w,V,H,f);V=uvq(b);V!=null&&V.length?(V=_.KA({innertubeCommand:QaI(V),
forceNewState:!0}),V=i8(V)?V:void 0):V=void 0;return k.call(X,{},Y,x,{iconPosition:U},E,{focused:!1,toggled:l,toggleable:Z,disabled:I,formattedButtonText:e,accessibilityLabel:O,onTap:w,aTagConfig:V},jJg((Q=b.colorData)==null?void 0:Q.basicColorPaletteData),{oneOffCustomTextWrap:b.oneOffCustomTextWrap})};
Jig=function(Y,b,w,V,H){return function(f){var E=uvq(Y);V(E,f);if(!H){E=_.N(E);for(var U=E.next();!U.done;U=E.next())Ov(U.value,{form:{element:b,event:f},commandController:w})}}};
uvq=function(Y){var b=[];Y.command&&b.push(Y.command);Y.serviceEndpoint&&b.push(Y.serviceEndpoint);Y.navigationEndpoint&&b.push(Y.navigationEndpoint);return b};
TDt=function(Y,b){if(b)switch(Y.size){case "SIZE_SMALL":return{size:"S"};case "SIZE_LARGE":return{size:"L"};case "SIZE_XLARGE":return{size:"XL"};case "SIZE_XSMALL":return{size:"XS"};default:return{size:"M"}}switch(Y.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
GXL=function(Y){switch(Y.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.rn=function(Y){return _.sN(function(){b4a()();return Gd(Y)},void 0,"Icv7j")};
z9=function(Y,b){return _.kt(Y.entities,"likeStatusEntity",b)};
bvv=function(Y,b){return _.kt(Y.entities,"likeCountEntity",b)};
_.wjq=function(Y,b){return _.kt(Y.entities,"stringEntity",b)};
VeM=function(Y,b){if(!Y)return!1;var w,V=(w=_.v(Y,_.x7))==null?void 0:w.signal;if(V&&b.signalEndpointMap)return!!b.signalEndpointMap[V];var H;if((w=(H=_.v(Y,_.Wb))==null?void 0:H.request)&&b.continuationEndpointMap)return!!b.continuationEndpointMap[w];for(var f in Y)if(b.commandEndpointMap[f])return!0;return!1};
Hvt=function(Y,b){if(b.streamingEndpointMap)for(var w in Y)if(b.streamingEndpointMap[w]&&(Y=b.streamingEndpointMap[w]))return Y()};
gRK=function(Y,b){var w,V=(w=_.v(Y,_.x7))==null?void 0:w.signal;if(V&&b.signalEndpointMap&&(w=b.signalEndpointMap[V]))return w();var H;if((w=(H=_.v(Y,_.Wb))==null?void 0:H.request)&&b.continuationEndpointMap&&(H=b.continuationEndpointMap[w]))return H();for(var f in Y)if(b.commandEndpointMap[f]&&(Y=b.commandEndpointMap[f]))return Y()};
fxu=function(Y){var b={"Content-Type":"application/json"};_.zO("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=_.zO("EOM_VISITOR_DATA"):_.zO("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=_.zO("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=_.zO("LOGGED_IN",!1);_.zO("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=_.zO("DEBUG_SETTINGS_METADATA"));Y!=="cors"&&((Y=_.zO("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=Y),(Y=_.zO("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
Y),(Y=_.zO("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=Y),(Y=_.zO("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=Y),_.Wf("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Y=_.zO("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(b["X-YouTube-Lava-Device-Context"]=Y));return b};
No6=function(Y,b){b.watchNextResponse||b.reelItemWatchResponse?b.watchNextResponse?Y.content=b.watchNextResponse:Y.content=b.reelItemWatchResponse:b.playerResponse?Y.player=b.playerResponse:b.reelWatchSequenceResponse&&(Y.reelSequence=b.reelWatchSequenceResponse)};
_.K_=function(Y){if(!Y)return null;for(var b=[],w=0;w<Y.textSegments.length;w++){var V=Y.textSegments[w];V.text?b.push(V):V.emojiId&&b.push({emoji_id:V.emojiId})}return{text_segments:b}};
DKv=function(Y,b,w,V,H,f,E){f=f===void 0?[]:f;var U=new _.iA;U.endpoint=w;if(!w)return _.LB(new _.BQ("handle undefined endpoint",b.tagName)),U;var X=rAK(w);X.length&&(_.IP(Y,X,b,V),U.actions=X);w.loggingUrls&&w.loggingUrls.forEach(function(k){k.baseUrl&&$r(k.baseUrl,k.attributionSrcMode)});
X=!_.q("web_skip_impression_click_killswitch")&&V&&V.impression;if(w.clickTrackingParams&&!ERG(w)&&!cMt(b)&&!X&&(X=_.Qd(),!_.Aj(X,b))){var I=b.getScreenLayer&&b.getScreenLayer();I?X.clickCommand(w,null,I):X.clickCommand(w,null)}X=!1;for(I=0;I<f.length;I++)if((0,f[I])(b,w,V)){X=!0;break}!X&&UKI(w)&&(U.ajaxPromise=XjI(Y,b,w,V,H,E));return U};
cMt=function(Y){var b;return(Y=(b=Y.data)==null?void 0:b.navigationEndpoint)&&!!Y.clickTrackingParams};
ERG=function(Y){var b=_.v(Y,_.x7);if(b&&(b=b.signal)&&mKq.indexOf(b)>=0)return!0;for(var w in Y)if(oRa.indexOf(w)>=0)return!0;return!1};
UKI=function(Y){var b;if(((b=_.v(Y,_.x7))==null?void 0:b.signal)==="CLIENT_SIGNAL")return!1;for(var w in Y)if(Ixb.indexOf(w)>=0)return!1;Y=Object.keys(Y);return Y.length===1&&Y[0]==="loggingUrls"?!1:!0};
vRM=function(Y,b,w,V,H,f,E){var U=_.C_.instance;if(U&&_.y_(U,V))var X=_.$_(U,V,H).then(function(k){return(k==null?0:k.data)?k:{data:k}});
else X=Y.requestDataForServiceEndpoint(V,H),_.v(V,kBu)||_.v(V,lxv)||_.v(V,_.hFv)||_.v(V,xKt)||_.Sk(new _.BQ("No RequestBuilder for endpoint",V));var I=_.j9();I.promise.thenCatch(function(){var k=_.S4(V,"action")||_.S4(V,"command")||_.S4(V,"endpoint");k&&(k=V[k],k.hasOwnProperty("onFailureAction")?_.IP(b,[k.onFailureAction],w):k.hasOwnProperty("onFailureCommand")&&_.IP(b,k.onFailureCommand,w));X.cancel("Resolver promise rejected")});
X.then(function(k){if(k){var l=k.error;if(l){if(f&&f.onServerError)f.onServerError(V,k);I.reject(new _.BQ("Response error",V,l))}else if(k=k.data)if(l=k.error){if(f&&f.onServerError)f.onServerError(V,k);I.reject(new _.BQ("Returned error",V,l))}else{qiI(b,w,k,V);spL(k);if(l=aRG(k))for(var x=_.N(l),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var Z=_.fH().resolve(_.HQ(QpL))||G9;if(!_.C_.instance||!Z.some(function(O){return!!_.v(V,O)})||_.q("kevlar_response_processor_allowlist_killswitch")){var e=Z=void 0;
((e=_.v((Z=Q)==null?void 0:Z.commandMetadata,_.g5))==null?0:e.sendPost)?_.oP(b,[Q]):_.IP(b,[Q],w)}}(x=_.v(k==null?void 0:k.frameworkUpdates,T9))&&E&&E(x);if(f&&f.onSuccess)f.onSuccess(V,k);I.resolve(new _.Jj(k,l))}}else I.reject(new _.BQ("Invalid service endpoint provided",V))},function(k){I.reject(k)});
return I.promise};
spL=function(Y){var b;(Y=(b=_.v(Y==null?void 0:Y.onResponseReceivedCommand,_.Peq))==null?void 0:b.continuationItems)&&(Y==null?void 0:Y.length)===1&&_.v(Y[0],Zvu)&&_.S1("so_r",void 0,"search_overview_answer")};
XjI=function(Y,b,w,V,H,f){var E;return(E=b.getNetworkManager&&b.getNetworkManager()?b.getNetworkManager():_.fH().resolve(_.HQ(_.LX)))?vRM(E,Y,b,w,V,H,f):_.OQ("No network manager.")};
qiI=function(Y,b,w,V){if(w=w.trackingParams||w.loggingDirectives&&w.loggingDirectives.trackingParams){var H;(_.v(V,Boa)||_.v(V,nRa)||_.v(V,MeL))&&V.clickTrackingParams?H=_.nA(V.clickTrackingParams):_.q("web_graft_to_parent_command")&&V.clickTrackingParams&&(H=_.nA(V.clickTrackingParams));var f;V=(f=b.getScreenLayer)==null?void 0:f.call(b);b=_.Qd().graftServerVe(w,H,V);_.De(Y,"yt-store-grafted-ve-action",[b])}};
_.eFL=function(Y){var b=new Image;return new _.hh(function(w,V){b.addEventListener("load",function(){w()});
b.addEventListener("error",function(){V()});
b.src=Y})};
pjg=function(Y){return!!Y};
Ovv=function(Y){return!!Y};
teg=function(Y,b,w){var V=Y.rowIndex;V!==void 0&&_.De(Y.hostElement,"yt-section-reactive-dismissal",[V,b,w])};
_.uA=function(Y,b,w){Y=_.N(Y);for(var V=Y.next();!V.done;V=Y.next()){V=V.value;if(V===b)break;for(var H=_.N(w),f=H.next();!f.done;f=H.next())if(f=f.value,V.tagName===f||!_.q("web_event_button_role_check_killswitch")&&V.role==="button"&&f==="BUTTON")return!0}return!1};
_.Yh=function(Y,b,w){Y=_.N(Y);for(var V=Y.next();!V.done;V=Y.next()){V=V.value;if(V===b)break;for(var H=_.N(w),f=H.next();!f.done;f=H.next())if(V.id===f.value)return!0}return!1};
RFq=function(Y,b){if(!Y&&!b)return"medium";Y=Math.max(Y||0,b||0);return Y>=256?"large":Y>=96?"medium":"small"};
dKK=function(Y){switch(Y){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.V4=function(){var Y=_.fH().resolve(_.HQ(_.bX));return Y?(Y=Y.getCurrentPage())?_.wK(Y):null:null};
_.Hv=function(){var Y=_.V4();if(!Y){var b=_.fH().resolve(_.HQ(_.bX)),w=b?typeof b:"no page manager";b=b?b.getCurrentPage():null;w=new _.BQ("Player is missing when requested.",w,b?b.tagName:"no page");_.Ft(w)}return Y};
_.wK=function(Y){return Y&&Y.getPlayer?Y.getPlayer():null};
Ff6=function(Y,b){Y={args:{raw_player_response:Y}};b&&(Y.args=Object.assign({},Y.args,b));return Y};
LfI=function(Y){if(Y.args){if(Y.args.raw_player_response)return Y.args.raw_player_response;if(Y.args.player_response)return JSON.parse(Y.args.player_response)}};
_.Siu=function(Y,b){var w={url:"/watch?v="+Y.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};Y.playlistId&&(w.url+="&list="+Y.playlistId);Y.playerParams&&(w.url+="&pp="+Y.playerParams);Y={watchEndpoint:Y,commandMetadata:{webCommandMetadata:w}};b&&(Y.clickTrackingParams=b);return Y};
rMt=function(){return axv||!!_.Aq("yt.player.Application")};
WfG=function(){return zFe||!!document.querySelector("link#player-css")};
ivt=function(){function Y(){axv=!0;Kfq.resolve()}
var b,w;return _.c(function(V){Kfq||(Kfq=new _.mD,rMt()?Y():(b=document.createElement("script"),b.addEventListener("load",Y),w=_.eh(_.zO("PLAYER_JS_URL")),_.Ku(b,w),document.head.appendChild(b)));return V.return(Kfq.promise)})};
CeL=function(){function Y(){zFe=!0;AMI.resolve()}
if(!AMI)if(AMI=new _.mD,WfG())Y();else{var b=document.createElement("link");b.id="player-css";b.addEventListener("load",Y);var w=_.eh(_.zO("PLAYER_CSS_URL"));_.Cu(b,w,"stylesheet");document.head.appendChild(b)}return AMI.promise};
yMG=function(){return rMt()&&WfG()?Promise.resolve([]):Promise.all([ivt(),CeL()])};
$Kb=function(Y,b,w){var V={args:{}};Y&&(V.args.raw_player_response=Y);b&&(V.args.raw_watch_next_response=b);w&&(V.args=Object.assign({},V.args,w));return V};
JMb=function(Y,b,w){var V=!1;V=V===void 0?!0:V;Y=typeof Y==="string"?_.gK(document,Y):Y;var H=jpe+"_"+_.wU(Y),f=GBK[H];if(f&&V)return Toe(b,w)?f.api.loadVideoByPlayerVars(b.args||null):f.loadNewVideoConfig(b),f.api;f=new fs(Y,H,b,w,void 0);GBK[H]=f;f.addOnDisposeCallback(function(){delete GBK[f.getId()]});
return f.api};
Toe=function(Y,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):Y&&Y.args&&Y.args.fflags?Y.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
uFb=function(){var Y=new _.mD;Y.resolved=!1;var b=Y.resolve;Y.resolve=function(w){Y.resolved=!0;b(w)};
return Y};
bw6=function(Y){var b={};YFL().install((b.document_disposed={callback:Y},b))};
No=function(Y,b){if(!Y&&Math.random()<=_.cQ("kevlar_unified_player_logging_threshold")){Y=Error("vh`"+(b?b:"Unspecified error"));if(_.q("kevlar_unified_player_throw_errors"))throw Y;_.Sk(Y)}};
_.w4B=function(){var Y=_.Aq("ytDebugData.callbacks");Y||(Y={},_.wG("ytDebugData.callbacks",Y));return Y};
HwK=function(Y,b){var w=_.w4B();if(_.q("web_dd_iu")||VEb.includes(Y))w[Y]=b};
gng=function(){return _.c(function(Y){return Y.return({isLeader:_.BYr(_.u3().getState()),c:_.zO("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.zO("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
fIa=function(){var Y;_.c(function(b){if(b.nextAddress==1)return HwK("APP_STATE",gng),_.D(b,_.fH().resolve(_.EH),2);Y=b.yieldResult;HwK("PI",function(){return _.c(function(w){return w.return(Y.getVideoStats())})});
_.om(b)})};
NZe=function(Y){var b=_.w5(_.CM(_.wB.location.href));Y=_.w5(_.CM(Y));return _.q("kevlar_clear_non_displayable_url_params")?b==cv(Y):cv(b)==cv(Y)};
cv=function(Y){var b=_.Enb(Y);Y=Y.slice(0);var w=["frags"];_.q("kevlar_hide_pp_url_param")&&w.push("pp");_.q("kevlar_hide_time_continue_url_param")&&w.push("time_continue");w=_.N(w);for(var V=w.next();!V.done;V=w.next())V=V.value,Y=_.H0(_.w5(Y),V);return _.w5(Y)+(b?"#"+b:"")};
UH=function(Y,b){b=Number(b)*1E3;var w=Math.round((0,_.gG)()),V=w.toString();Y={innertubeResponse:Y,serverDateTimestampMs:V,lastModifiedTimestampMs:V,expireTimestampMs:(w+b).toString()};if(b=_.zO("INNERTUBE_CONTEXT_CLIENT_NAME"))Y.clientName=b;return Y};
U0g=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++caa};
_.X4g=function(){var Y=_.R3(),b=_.dO();b&&Y&&_.Tu(b,[Y],!0)};
m0q=function(Y){return Y&&D0B.some(function(b){return Y.includes(b)})};
x06=function(Y){var b=_.v(Y,_.Ah);if(!b)return!1;var w=b.url,V=b.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!w)return _.Ft(Error("Ah")),!1;if(b.target==="TARGET_NEW_WINDOW"){var H={};_.q("resolve_url_parent_tracking_params")&&(!_.Yu(w)||bc(window.location.href,w))&&(H={endpoint:Y,itct:Y.clickTrackingParams});cBr(H);Y=null;try{if(V)return Y=_.lLu(w,"_blank",H,void 0,V),onB(_.fH().resolve(IIK),Y,w),!0}catch(x){_.Ft(x)}_.VX(w,H);b={target:"_blank",noopener:_.q("set_window_noopener_ks")&&
!b.allowOpener};Y=window;V=kH(w)?w:_.PN(typeof w.href!="undefined"?w.href:String(w));H=self.crossOriginIsolated!==void 0;var f="strict-origin-when-cross-origin";window.Request&&(f=(new Request("/")).referrerPolicy);var E=b.noreferrer;if(H&&E&&f==="unsafe-url")throw Error("re");f=E&&!H;E=b.target||w.target;var U=[],X=[],I=!1;for(l in b){var k=b[l];switch(l){case "width":case "height":case "top":case "left":U.push(l+"="+k);break;case "target":break;case "noopener":case "noreferrer":k?X.push(l):(I=!0,
X.push(l+"=false"));break;case "attributionsrc":U.push(l+(k?"="+k:""));break;default:U.push(l+"="+(k?1:0))}}var l=E!==void 0&&!["_blank","_self","_top","_parent",""].includes(E);l=na()&&l;kcu&&H&&U.length===0&&X.length>0&&!l&&!I?(X.length===2&&(X=["noreferrer"]),_.Fk(Y,V,E,X[0]),Y=lIK()):(l=U.join(","),_.dB()&&Y.navigator&&Y.navigator.standalone&&E&&E!="_self"?(l=_.xG("A"),er(l,V),l.target=E,f&&(l.rel="noreferrer"),((b=b.attributionsrc)||b==="")&&l.setAttribute("attributionsrc",b),b=document.createEvent("MouseEvent"),
b.initMouseEvent("click",!0,!0,Y,1),l.dispatchEvent(b),Y=lIK()):f?(Y=_.Fk(Y,"",E,l),b=_.lH(V),Y&&(Y.opener=null,b===""&&(b="javascript:''"),b='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Xz(b)+'">',b=Ou(b),(V=Y.document)&&V.write&&(V.write(tz(b)),V.close()))):((Y=_.Fk(Y,V,E,l))&&b.noopener&&(Y.opener=null),Y&&b.noreferrer&&(Y.opener=null)));onB(_.fH().resolve(IIK),Y,w);return!0}b=_.ku(w);b=m0q(b)||w==="https://studio.youtube.com/";V=!(!_.Yu(w)||bc(window.location.href,
w));l=w.indexOf("disable_polymer=1")>=0;if(V||l||b)CX(w),d5(),_.yU(w,void 0,void 0,window.top,he6);else return _.Sk(new _.BQ("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",Y)),!1;return!0};
_.QcK=function(Y,b){b=b===void 0?0:b;if(!(_.v(Y,qFr)||_.v(Y,scv)||_.v(Y,_.Ah)&&_.v(Y,_.Ah).url))return!1;var w,V=(w=_.v(Y,_.Ah))==null?void 0:w.url;w=V?{externalLinkData:{url:V}}:null;return _.Qd().clickCommand(Y,w,b)};
vnq=function(Y,b){return _.kt(Y.entities,"subscriptionStateEntity",b)};
PmL=function(Y,b){return _.kt(Y.entities,"subscriptionNotificationStateEntity",b)};
ZwK=function(Y,b){return _.kt(Y.entities,"upcomingEventReminderStateEntity",b)};
BZu=function(Y,b){return _.kt(Y.entities,"engagementToolbarSurfaceEntityPayload",b)};
nnt=function(Y,b){return _.kt(Y.entities,"triStateButtonStateEntityPayload",b)};
MEM=function(Y,b){return _.kt(Y.entities,"commerceCartCheckoutButtonEntity",b)};
_.ee6=function(Y,b){return _.kt(Y.entities,"playlistLoopStateEntity",b)};
p4e=function(Y,b){return _.kt(Y.entities,"commandEntity",b)};
tEI=function(Y,b,w,V,H){H=H===void 0?{}:H;return function(f){var E,U;var X=((E=Y.loggingDirectives)==null?0:(U=E.clientVeSpec)==null?0:U.uiType)?_.tj(Y.loggingDirectives.clientVeSpec.uiType):void 0;H.clickedVisualElement||(H.clickedVisualElement=X);X=OwB(Y,b);w(X,f);X=_.N(X);for(E=X.next();!E.done;E=X.next()){E=E.value;U=V;var I=f,k=H;k.form?k.form.event=I:k.form={element:U,event:I};Ov(E,k)}}};
OwB=function(Y,b){var w=[];b?(Y.toggledCommand&&w.push(Y.toggledCommand),Y.toggledServiceEndpoint&&w.push(Y.toggledServiceEndpoint)):(Y.defaultCommand&&w.push(Y.defaultCommand),Y.defaultServiceEndpoint&&w.push(Y.defaultServiceEndpoint),Y.defaultNavigationEndpoint&&w.push(Y.defaultNavigationEndpoint));return w};
Reu=function(Y,b){var w=Y.toggledStyle||Y.style,V;switch((V=b?w:Y.style)==null?void 0:V.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"}}};
_.DE=function(){return _.c(function(Y){return Y.nextAddress==1?_.D(Y,_.fH().resolve(_.EH),2):Y.return(_.fH().resolve(d0K)())})};
_.mZ=function(){return _.fH().resolve(d0K)()};
_.o1=function(){return FP(function(){return{lottieEl:void 0}})};
FTa=function(Y,b){return Y.startsWith(b.uniqueId)};
LTK=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,_.DE(),2);b=V.yieldResult;if((w=b)==null||!w.addEventListener)return I1(),V.return();b.addEventListener("onCueRangeEnter",Y);_.om(V)})};
SFt=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,_.DE(),2);b=V.yieldResult;if((w=b)==null||!w.removeEventListener)return I1(),V.return();b.removeEventListener("onCueRangeEnter",Y);_.om(V)})};
aIg=function(Y){var b,w,V,H,f;_.c(function(E){if(E.nextAddress==1)return _.D(E,_.DE(),2);b=E.yieldResult;if((w=b)==null||!w.addCueRange)return I1(),E.return();V=_.N(Y.timings);for(H=V.next();!H.done;H=V.next())f=H.value,b.addCueRange(Y.uniqueId+"-"+f,f/1E3,(f+100)/1E3);_.om(E)})};
raL=function(Y){var b,w,V,H,f;_.c(function(E){if(E.nextAddress==1)return _.D(E,_.DE(),2);b=E.yieldResult;if((w=b)==null||!w.removeCueRange)return I1(),E.return();V=_.N(Y.timings);for(H=V.next();!H.done;H=V.next())f=H.value,b.removeCueRange(Y.uniqueId+"-"+f);_.om(E)})};
zeI=function(){var Y,b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,_.DE(),2);Y=V.yieldResult;if((b=Y)==null||!b.getPlayerState)return I1(),V.return();w=Y.getPlayerState();return V.return(w===2)})};
I1=function(){_.Sk(new _.BQ("Smartimation player does not exist or is corrupted"))};
WTu=function(){try{var Y;return(Y=window.CSS)!=null&&Y.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(b){return _.Sk(new _.BQ("Smartimation CSS.supports threw an error")),!1}};
jce=function(Y,b,w,V,H){var f=Y.playlistId?KTr:iwG;b=b();w=w();H=!!Y.videoId&&H()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Z7(b))return Aab({data:Y,actionType:f,disabled:H},w);if(Y.videoId&&V())return Cmr({data:Y,actionType:f,disabled:H});switch(b){case "TRANSFER_STATE_UNKNOWN":return Cmr({data:Y,actionType:f,disabled:H});case "TRANSFER_STATE_FAILED":return Y.videoId?yav({data:Y,actionType:f,disabled:H}):$0K({data:Y,actionType:f,disabled:H});case "TRANSFER_STATE_COMPLETE":return $0K({data:Y,
actionType:f,disabled:H});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Aab({data:Y,actionType:f,disabled:H},w);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return Y.videoId?yav({data:Y,actionType:f,disabled:H}):Cmr({data:Y,actionType:f,disabled:H});default:return Cmr({data:Y,actionType:f,disabled:H})}};
Gc6=function(Y,b){var w=Y.onTapCommand,V=_.zT(w);if(Y.videoId&&_.v(V,_.kh))return _.v(V,_.kh).action=b,w;Y.playlistId&&_.v(V,_.lX)&&(_.v(V,_.lX).action=b);return w};
Cmr=function(Y){var b=Y.data;var w=Y.actionType;Y=Y.disabled;return{text:TZv,iconType:"OFFLINE_DOWNLOAD",onTap:Gc6(b,w.ACTION_ADD),disabled:Y}};
Aab=function(Y,b){var w=Y.data;var V=Y.actionType;Y=Y.disabled;var H="OFFLINE_DOWNLOAD";b>=0&&b<=.1?H="OFFLINE_DOWNLOADING_ZERO":b>.1&&b<=.3?H="OFFLINE_DOWNLOADING_TWENTY":b>.3&&b<=.5?H="OFFLINE_DOWNLOADING_FORTY":b>.5&&b<=.7?H="OFFLINE_DOWNLOADING_SIXTY":b>.7&&b<1?H="OFFLINE_DOWNLOADING_EIGHTY":b===1&&(H="OFFLINE_PIN");return{text:Jae,iconType:H,onTap:Gc6(w,V.ACTION_REMOVE_WITH_PROMPT),disabled:Y}};
$0K=function(Y){var b=Y.data;var w=Y.actionType;Y=Y.disabled;return{text:uSa,iconType:"OFFLINE_PIN",onTap:Gc6(b,w.ACTION_REMOVE_WITH_PROMPT),disabled:Y}};
yav=function(Y){var b=Y.data;var w=Y.actionType;Y=Y.disabled;return{text:YAt,iconType:"OFFLINE_DOWNLOAD",onTap:Gc6(b,w.ACTION_RETRY),disabled:Y}};
H0e=function(Y){var b=b0I;wuI.push(Y);VT6||(b(function(){for(var w=_.N(wuI),V=w.next();!V.done;V=w.next())V=V.value,V();wuI.length=0;VT6=!1}),VT6=!0)};
b0I=function(Y){Promise.resolve().then(Y)};
hd=function(Y){Y=_.N(URg(Y));var b=Y.next().value,w=Y.next().value,V=!1;_.dx(function(){return function(){V=!0}});
return[b,function(H){H0e(function(){V&&!_.q("cow_prevent_state_setter_after_cleanup_killswitch")||w(H)})}]};
gfg=function(){var Y=_.N(hd(!1)),b=Y.next().value,w=Y.next().value;return function(){w(!b)}};
fVq=function(Y){return FP(function(){return{value:Y}})};
N4u=function(Y,b){var w=fVq(Y),V=fVq(b);RI(function(){w.value=Y},[Y]);
RI(function(){V.value=b},b&&b.length>=1?b:[void 0]);
var H=FP(function(){return{value:void 0}});
if(Y!==w.value||V.value!==b||H.value===void 0)H.value=Gd(Y,b);var f=gfg();_.dx(function(){function E(){var X=Gd(w.value,b);X!==H.value&&(H.value=X,f())}
var U=_.jm().subscribe(E);E();return U});
return H.value};
_.xh=function(Y,b){var w=b4a();return _.sN(function(){w();return Gd(Y,[_.Sa(b)||""])},void 0,"HaeHEc")};
EfM=function(Y){var b=_.xh(_.a8,function(){return Y().videoId}),w=_.xh(_.rb,function(){return Y().playlistId});
return function(){return Y().videoId?b:Y().playlistId?w:_.N(_.kw("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
c$a=function(Y){var b=_.xh(zx,function(){return Y().videoId}),w=_.xh(_.ZLB,function(){return Y().playlistId});
return function(){return Y().videoId?b:Y().playlistId?w:_.N(_.kw(0,void 0,"K4tgOc")).next().value}};
UJr=function(Y){var b=_.xh(_.Rxv,function(){return Y().videoId});
return function(){return Y().videoId?b:_.N(_.kw(!1,void 0,"Oaxwcf")).next().value}};
Xuv=function(Y){var b=_.xh(M7a,function(){return Y().videoId});
return function(){return Y().videoId?b:_.N(_.kw("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
DJM=function(){return{}};
mJK=function(){var Y,b;return(b=(Y=_.fH().resolve(_.HQ(_.GT)))==null?void 0:Y())!=null?b:!1};
IVM=function(Y,b){Y=Y===void 0?ofG:Y;switch(b.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},Y,{isOpen:b.payload});default:return Y}};
lVM=function(Y,b){Y=Y===void 0?k4b:Y;switch(b.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},Y,{isAllowed:b.payload});default:return Y}};
xJK=function(Y,b){Y=Y===void 0?hTG:Y;switch(b.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{errorMessage:b.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{title:b.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{privacy:b.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},Y,{isDisabled:b.payload});default:return Y}};
sDe=function(Y,b){Y=Y===void 0?qAa:Y;switch(b.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},Y,{isOpen:b.payload});default:return Y}};
vfa=function(Y,b){Y=Y===void 0?QDG:Y;switch(b.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},Y,{isFullscreen:b.payload});case "SET_NAVIGATION_BUTTON":var w=b.payload.targetId,V=Object.assign({},Y.navigationButtons);V[w]=b.payload.button;return Object.assign({},Y,{navigationButtons:V});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},Y,{topPanelId:b.payload});case "SET_SECONDARY_HEADER":return w=b.payload.panelId,V=Object.assign({},Y.secondaryHeader),V[w]=b.payload.secondaryHeader,
Object.assign({},Y,{secondaryHeader:V});default:return Y}};
nfI=function(){return kL(Object.assign({},{entities:fWq,voiceSearch:xPb,engagementPanel:vfa,bottomSheet:IVM,cinematicSetting:lVM,shorts:nVB,drawerLayout:sDe,createPlaylist:xJK,locationCollection:PEa,reportChannel:Z0M,reportForm:B4L},MFI))};
MTI=function(Y,b){_.Lb.addLowPriorityJob(function(){var w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:return _.ct(f,2),_.D(f,pGt(),4);case 4:return _.D(f,fetch(Y),5);case 5:return w=f.yieldResult,_.D(f,w.json(),6);case 6:V=f.yieldResult;lA.set(Y,V);requestAnimationFrame(function(){b(V)});
_.$u(f,0);break;case 2:H=_.mS(f),_.Sk(H),_.om(f)}})})};
eTu=function(Y){var b={animationConfig:{},listeners:{}},w=function(){Y(!0)};
b.listeners.data_failed=w;b.listeners.error=w;b.listeners.data_ready=function(){Y(!1)};
return b};
tTM=function(Y){var b=Y.model;var w=Y.subscribed;var V=Y.isOverlay;var H=Y.element;var f=Y.commandController;var E=Y.notificationState;if(w){var U,X;var I=(b==null?void 0:(U=b.buttonStyle)==null?void 0:U.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:b==null?void 0:(X=b.unsubscribeButtonContent)==null?void 0:X.buttonText}else{var k;I=b==null?void 0:(k=b.subscribeButtonContent)==null?void 0:k.buttonText}a:{var l;switch(b==null?void 0:(l=b.buttonStyle)==
null?void 0:l.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":U="S";break a;default:U="M"}}a:if(V)V="overlay";else switch(b.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":V="overlay";break a;default:V="mono"}a:if(w)var x="tonal";else switch((x=b.buttonStyle)==
null?void 0:x.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":x="tonal";break a;default:x="filled"}return{style:V,type:x,state:b.disableSubscribeButton?"disabled":"active",size:U,focused:Y.focused,toggled:w,accessibilityLabel:puv(b,w,E),buttonText:I,iconPosition:b.disableNotificationBell?"none":"leading-trailing",onTap:O0e(b,w,H,f),disableTextEllipsis:!!Y.disableTextEllipsis}};
O0e=function(Y,b,w,V){return function(H){if(b){var f;var E=Y.disableNotificationBell?_.zT(Y==null?void 0:(f=Y.unsubscribeButtonContent)==null?void 0:f.onTapCommand):_.zT(Y==null?void 0:Y.onShowSubscriptionOptions)}else{var U;E=_.zT(Y==null?void 0:(U=Y.subscribeButtonContent)==null?void 0:U.onTapCommand)}E&&Ov(E,{form:{element:w==null?void 0:w.value},commandController:V});H.stopPropagation()}};
puv=function(Y,b,w){if(b){if(Y==null?0:Y.disableNotificationBell){var V;return Y==null?void 0:(V=Y.unsubscribeButtonContent)==null?void 0:V.accessibilityText}switch(w){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var H;return Y==null?void 0:(H=Y.bellAccessibilityData)==null?void 0:H.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var f;return Y==null?void 0:(f=Y.bellAccessibilityData)==null?void 0:f.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var E;return Y==null?void 0:(E=
Y.bellAccessibilityData)==null?void 0:E.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var U;return Y==null?void 0:(U=Y.bellAccessibilityData)==null?void 0:U.disabledLabel;default:var X;return Y==null?void 0:(X=Y.unsubscribeButtonContent)==null?void 0:X.accessibilityText}}else{var I;return Y==null?void 0:(I=Y.subscribeButtonContent)==null?void 0:I.accessibilityText}};
RTu=function(Y){if(Y){switch(Y){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":Y="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":Y="NOTIFICATIONS_OFF";break;default:Y="NOTIFICATIONS_NONE"}return Y}};
dJL=function(Y,b,w){w.subscribed!==b&&((w=w.key)&&_.Td(_.qo("subscriptionStateEntity",w,{key:w,subscribed:b})),Y.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:b})),b||_.Xx(Y,"yt-unsubscribe-action"))};
LYb=function(Y){Y=_.v(_.zT(Y),_.sH);var b,w,V,H;return(H=_.v(Y==null?void 0:(b=Y.panelLoadingStrategy)==null?void 0:(w=b.inlineContent)==null?void 0:(V=w.sheetViewModel)==null?void 0:V.content,FY6))==null?void 0:H.listItems};
SAt=function(Y,b){if(Y.onShowSubscriptionOptions&&b&&(Y=LYb(Y.onShowSubscriptionOptions),Y!=null&&Y.length)){var w=RTu(b);Y.forEach(function(V){V=_.v(V,_.Q4);var H,f,E,U,X=V==null?void 0:(H=V.leadingImage)==null?void 0:(f=H.sources)==null?void 0:(E=f[0])==null?void 0:(U=E.clientResource)==null?void 0:U.imageName;V&&X&&(V.isSelected=X===w)})}};
aVq=function(Y,b,w,V){b&&w?Y.style.width=w+"px":!b&&V&&(Y.style.width=V+"px")};
r$I=function(Y,b,w){var V;(V=Y.lottieEl)==null||V.goToAndPlay(0);var H;(H=b.lottieEl)==null||H.goToAndPlay(0);_.vv(_.Lb,function(){var f;(f=w.lottieEl)==null||f.goToAndPlay(0)},300)};
Pv=function(){return _.fH().resolve(_.HQ(zTv))||{}};
WYu=function(Y){return typeof Y==="function"};
_.ZE=function(Y){Object.keys(Y);var b=function(w,V){var H=b.mapping||Y;if(!w)return _.m(_.Uz,null);if(Array.isArray(w)&&(w=KYI(H,b,w),Array.isArray(w))){if(!w.length)return _.m(_.Uz,null);if(w.length>1){for(var f=!1,E=!1,U=[],X={},I=0;I<w.length;X={data$jscomp$1852:void 0},I++)if(X.data$jscomp$1852=w[I],X.data$jscomp$1852){var k=i0K(X.data$jscomp$1852,H),l=k.mappingEntry;k=k.rendererName;l&&k&&(l&&(!WYu(l)&&A$r(l)&&(E=!0),!WYu(l)&&l.asyncId||(f=!0)),U.push(CEq(X.data$jscomp$1852,l,k,b,V)))}return E&&
!f?_.m(_.Uz,null,y$v()):_.m(_.Uz,null,U)}w=w[0]}if(!w)return _.m(_.Uz,null);w=KYI(H,b,[w])[0];if(!w)return _.m(_.Uz,null);f=i0K(w,H);H=f.mappingEntry;f=f.rendererName;return H&&f?_.m(_.Uz,null,CEq(w,H,f,b,V)):_.m(_.Uz,null)};
b.mapping=Y;return b};
_.$Je=function(Y){var b=void 0,w;for(w in Y)if(Y.hasOwnProperty(w)){b=w;break}return b};
KYI=function(Y,b,w){var V,H=(V=Pv().preProcessOptions)==null?void 0:V.idomOptions;if(!H)return w;Pv();return H.preProcessPropsIdom(Y,w,b.triggerRerender)};
i0K=function(Y,b){return(Y=_.$Je(Y))?{mappingEntry:b[Y],rendererName:Y}:{mappingEntry:void 0,rendererName:void 0}};
CEq=function(Y,b,w,V,H){if(!b)return _.m(_.Uz,null);var f={};H&&H[w]&&(f=Object.assign({},H[w]));Y[w]!==void 0&&(f.data=Y[w]);if(WYu(b))return b.debugName||(b.debugName=w),_.m(b,f);b.asyncId&&(V.pendingIdsMap=V.pendingIdsMap||{},V.pendingIdsMap[w]=b.asyncId);return b.templateFn?b.templateFn(f):A$r(b)?y$v():_.m(_.Uz,null)};
A$r=function(Y){var b;return(b=Y.showPlaceholder)!=null?b:Pv().defaultShowPlaceholder};
y$v=function(){var Y=Pv().placeholder;return Y()};
jDb=function(Y){Y=_.v(Y,_.Bv);return(Y==null?void 0:Y.iconName)&&!(Y==null?0:Y.title)};
J$L=function(Y,b,w){var V;return _.m(_.Uz,null,Y==null?void 0:(V=Y.actions)==null?void 0:V.map(function(H){return _.m("div",{class:function(){var f={"yt-flexible-actions-view-model-wiz__action":!0};f["yt-flexible-actions-view-model-wiz__action--row-action"]=b;f["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(jDb(H))var E=!0;else if(E=_.v(H,_.ns),(E==null?0:E.isToggled)&&jDb(E==null?void 0:E.toggledButtonViewModel)||(E==null||!E.isToggled)&&jDb(E==null?void 0:E.defaultButtonViewModel))E=
!0;else{var U;E=((U=_.v(H,G4G))==null?0:U.playlistId)?!0:!1}f=(f["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=E,f["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=w,f);return _.qR(f)}},T4b([H],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!b}}))}))};
unL=function(Y){var b=Y.layout===1,w,V=((w=Y.data)==null?void 0:w.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";w={};V=(w["yt-flexible-actions-view-model-wiz"]=!0,w["yt-flexible-actions-view-model-wiz--inline"]=!b,w["yt-flexible-actions-view-model-wiz--scrollable"]=V,w);var H,f;return _.m("yt-flexible-actions-view-model",{class:_.qR(Y.className,V)},(H=Y.data)==null?void 0:(f=H.actionsRows)==null?void 0:f.map(function(E){if(b){var U;return _.m("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
J$L(E,b,!((U=Y.data)==null||!U.respectActionIntrinsicWidth)))}return J$L(E,b,!1)}))};
YlM=function(Y,b){b=b===void 0?{shouldPersist:!0}:b;return{useUpdatableData:function(w,V){var H=[],f=_.N(_.Zp(function(){var I=w();if(V!=null&&V.length&&H){var k=H.length>0;for(var l=!1,x=0;x<V.length;x++){var Q=V[x]();k&&Q!==H[x]&&(l=!0);H[x]=Q}k=l}else k=!1;if(k)_.Mo.remove(X());else if(k=_.Mo.get(X()))return k;return I})),E=f.next().value,U=f.next().value,X=_.sN(function(){return Y(w())},void 0,"VFraLb");
_.tl(function(){if(X()!=null){eP.set(X(),[E,U,!1]);var I=X();_.R2(function(){eP.delete(I)})}},"Fdafud");
return[E,function(I){U(I);b.shouldPersist&&_.Mo.set(X(),I)}]},
getData:function(w){var V;return(V=eP.get(Y(w)))==null?void 0:V[0]()},
updateData:function(w,V){w=Y(w);var H=eP.get(w);if(!H)return!1;var f=_.N(H);H=f.next().value;f=f.next().value;V=V(H());f(V);b.shouldPersist&&_.Mo.set(w,V);return!0},
useUpdatableDataIdom:function(w,V){var H=Y(w),f=_.Mo.get(H),E=_.N(hd(f!=null?f:w)),U=E.next().value,X=E.next().value,I=L7(f!=null?f:w);RI(function(){if(H!=null)return eP.set(H,[function(){return I.value},
function(k){X(k);I.value=k},
eP.has(H)]),_.Lb.addJob(function(){_.ps(_.Lb,function(){var k=eP.get(H);k&&(k[2]=!1)},0)},8),function(){var k;
((k=eP.get(H))==null?0:k[2])||eP.delete(H)}},[H]);
RI(function(){U!==w&&(X(w),I.value=w)},V?[].concat(_.Bt(V),[H]):[H]);
return[U,X]}}};
bqL=function(Y){var b=_.N(_.kw(!0,void 0,"bKtO6d")),w=b.next().value;b.next();return function(){var V=q$(Y.children());return _.m(_.h,{cond:w,then:function(){return V},
else:Y.fallback})}()};
_.OH=function(Y){var b=woB(Y),w=b.data,V=b.mapping,H=b.wrapper;b=b.pendingFallback;var f=function(){return V$v(_.Sa(w))},E=function(){var U=f(),X=[];
U=_.N(U);for(var I=U.next();!I.done;I=U.next()){var k=void 0;I=I.value;var l=void 0;for(k in I)if(!(!I).hasOwnProperty(k)){l=k;break}(k=l)&&X.push(k)}return X};
return Y.data?_.m(bqL,{fallback:b},function(){return _.m(_.Bf,{each:E},function(U,X){var I=H?function(l){return H(function(){return V[U](l,X)},k,X)}:function(l){return V[U](l,X)};
I.debugName||(I.debugName=String(U));if(!V[String(U)])return document.createComment("");var k=Hqu(f,U,X);return _.m(I,{data:k})})}):_.m(_.Uz,null)};
woB=function(Y){var b=Y.targetId||gNB(Y.children);if(!Y.data||!b||_.q("mweb_new_replaceables_killswitch"))return Object.assign({},Y,{mapping:Y.children,wrapper:void 0});var w="stamper-"+fhg++,V=function(){var U;return(U=typeof Y.targetId==="function"?Y.targetId(w):Y.targetId)!=null?U:w};
b=_.N(NJe(function(){var U=V$v(Y.data());U.targetId=V;return U})).next().value;
var H=Object.assign({},Pv().replaceableMapping,Y.children);if(Y.replacementWrapper){var f=H.notificationTextRenderer,E=H.notificationMultiActionRenderer;f&&(H.notificationTextRenderer=function(U,X){return Y.replacementWrapper(f({data:U.data},X))});
E&&(H.notificationMultiActionRenderer=function(U,X){return Y.replacementWrapper(E({data:U.data},X))})}return Object.assign({},Y,{data:b,
mapping:H,wrapper:function(U,X,I){return v9b({targetId:V,stamperIndex:I},U)}})};
Hqu=function(Y,b,w){var V;return _.sN(function(){var H=Y()[w()];if(H)V=H[b];else return _.Sk(new _.BQ("Stamper failed to find "+String(b)+" at index "+w()+" of data array of length "+(Y().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),V;return H[b]},void 0,"k97xP")};
gNB=function(Y){Y=_.N(Object.keys(Y));for(var b=Y.next();!b.done;b=Y.next())if(b=b.value,ENI.includes(b)||cNK.includes(b)||U2r.includes(b))return!0;return!1};
V$v=function(Y){return Y?Array.isArray(Y)?Y:[Y]:[]};
XoK=function(Y){return!(Y==null||!Y.iconName||(Y==null?0:Y.title))};
D2g=function(Y){var b=_.v(Y.data.toggleButtonViewModel,_.ns),w,V=(w=Y.data.dislikeEntityKey)!=null?w:"",H=N4u(z9,[V]);b=Object.assign({},b,{isToggled:H?H.likeStatus==="DISLIKE":b.isToggled});return _.m("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.m(_.td,{data:b,buttonShapeOverrides:Y.buttonShapeOverrideables,onToggle:function(f){H&&f!==(H.likeStatus==="DISLIKE")&&H.key&&_.Td(_.R1("likeStatusEntity",H.key,{likeStatus:f?"DISLIKE":"INDIFFERENT",hadUserInteraction:f}))}}))};
oNr=function(Y){var b=_.q("web_supports_animations_api"),w=_.v(Y.data.toggleButtonViewModel,_.ns),V,H,f,E,U=_.N(hd({numberText:(E=(V=Y.likeCountEntity)==null?void 0:(H=V.likeCountIfIndifferent)==null?void 0:H.content)!=null?E:"",numberValue:Number((f=Y.likeCountEntity)==null?void 0:f.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),X=U.next().value,I=U.next().value,k,l,x,Q;V=_.N(hd({numberText:(Q=(k=Y.likeCountEntity)==null?void 0:(l=k.likeCountIfLiked)==null?void 0:l.content)!=null?
Q:"",numberValue:Number((x=Y.likeCountEntity)==null?void 0:x.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));k=V.next().value;var Z=V.next().value;l=_.N(hd());var e=l.next().value,O=l.next().value,L;l=(L=Y.data.likeStatusEntityKey)!=null?L:"";var r,C;L=(C=(r=Y.likeCountEntity)==null?void 0:r.key)!=null?C:"";var W=N4u(z9,[l]),y=N4u(bvv,[L]);r=Uce(function(){return(W==null?void 0:W.likeStatus)==="LIKE"},[W]);
RI(function(){var G,Nr=y&&((G=y.likeCountIfIndifferent)==null?void 0:G.content)!==X.numberText;if(!e&&Nr){var o6,lI;I({numberText:(lI=y==null?void 0:(o6=y.likeCountIfIndifferent)==null?void 0:o6.content)!=null?lI:"",numberValue:Number(y==null?void 0:y.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var Zt,eL;Z({numberText:(eL=y==null?void 0:(Zt=y.likeCountIfLiked)==null?void 0:Zt.content)!=null?eL:"",numberValue:Number(y==null?void 0:y.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[y]);
w=Object.assign({},w,{isToggled:r});b=b&&Y.likeCountEntity;return _.m("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.m(_.td,{data:w,buttonShapeOverrides:Y.buttonShapeOverrideables,animatedTextPropsDefault:b?X:void 0,animatedTextPropsToggled:b?k:void 0,onToggle:function(G){m2r(G,W,e,O)},
style:function(){return Y.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
m2r=function(Y,b,w,V){w&&_.Lb.cancelJob(w);w=_.Lb.addLowPriorityJob(function(){V(void 0)},5E3);
V(w);b&&Y!==(b.likeStatus==="LIKE")&&b.key&&_.Td(_.qo("likeStatusEntity",b.key,{key:b.key,likeStatus:Y?"LIKE":"INDIFFERENT",hadUserInteraction:Y}))};
IhG=function(Y,b,w,V){w&&_.Lb.cancelJob(w);w=_.Lb.addLowPriorityJob(function(){V(void 0)},5E3);
V(w);b&&Y!==(b.likeStatus==="LIKE")&&b.key&&_.Td(_.qo("likeStatusEntity",b.key,{key:b.key,likeStatus:Y?"LIKE":"INDIFFERENT",hadUserInteraction:Y}))};
hpG=function(Y){var b,w=_.v((b=Y.data)==null?void 0:b.likeButtonViewModel,_.dK),V;b=_.v((V=Y.data)==null?void 0:V.dislikeButtonViewModel,_.Fz);var H,f=(H=N4u(z9,[(w==null?void 0:w.likeStatusEntityKey)||""]))!=null?H:w==null?void 0:w.likeStatusEntity;V=Uce(function(){var E=Y.data,U;E=(E==null?void 0:(U=E.timedAnimationData)==null?void 0:U.animationTiming)||[];return{uniqueId:"like-dislike",timings:E,enabled:(f==null?void 0:f.likeStatus)==="INDIFFERENT"&&E.length>0,experimentEnabled:E.length>0}},[Y.data,
f]);return _.m("segmented-like-dislike-button-view-model",{class:_.qR(Y.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.m(Ls,{settings:V},_.m("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},w?_.m(knB,{data:w,likeCountEntity:Y.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,b?_.m(lhB,{data:b,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
x2M=function(Y,b){var w=wb.get(Y)||{layerNode:b};w.layerNode=b;O9v(Y,w);Y.getScreenLayer=function(){return SP(w.layerNode)}};
qlu=function(Y){var b;Y=Y.parentNode;for(var w;Y&&((b=wb.get(Y))==null||!b.isRenderer)&&!((w=Y.polymerController)!=null?w:Y).isRenderer_;)Y=Y.parentNode||Y.host;if(b=Y)return wb.get(b)};
s4a=function(Y){if(Y){wb.delete(Y);var b=_.fH().resolve(Vc);ODI(Y,b)}};
vNa=function(Y,b,w){if(w===void 0?0:w){if(w=Y.getAttribute("client-ve-type"),b.data&&!b.disableReactiveLogging||w)_.a2(function(){Q4B(Y,_.Sa(b.data))}),_.R2(function(){return void s4a(Y)})}else typeof b.data!=="function"&&Q4B(Y,b.data)};
Q4B=function(Y,b){Pdg++;ZqG(Y,b)&&_.Lb.addJob(function(){_.ps(_.Lb,function(){if(ZqG(Y,b)&&Y.ownerDocument.documentElement===document.documentElement&&Y){var w;if(Y.getAttribute("layer")){var V=w=Number(Y.getAttribute("layer")),H=wb.get(Y);H?H.layerNode.layer=V:x2M(Y,new BJa(V));(V=qlu(Y))&&(H=wb.get(Y))!=null&&(H.layerNode.parent=V.layerNode)}else if(w=wb.get(Y))w=SP(w.layerNode);else{w=SP;V=new BJa;if(H=qlu(Y))V.parent=H.layerNode;x2M(Y,V);w=w(V)}w!=null||(w=0);V=Y.getAttribute("client-ve-type");
H=Number(V);var f=!1;V=!1;var E=wb.get(Y),U;if((U=E)&&!(U=E[nNb]!==b)&&(U=H)){var X;U=((X=wb.get(Y))==null?void 0:X.clientVeType)===void 0}U&&(E[nNb]=b,f=V=E.isRenderer=!0);wb.has(Y)&&(wb.get(Y).clientVeType=H);Y.visualElement&&(V=!0);if(_.q("wiz_next_ld_fix_client_ve_spec")){var I;X=((I=_.v(b==null?void 0:b.rendererContext,_.vP))==null?void 0:I.loggingDirectives)||(b==null?void 0:b.loggingDirectives)}else X=b==null?void 0:b.loggingDirectives;X&&X.clientVeSpec&&(I=M$g(_.qZ(),Y),I=_.epg(_.Qd(),X,I||
void 0,w))&&(Y.visualElement=I);!Y.visualElement&&H&&f&&(Y.veType=H,I=void 0,_.q("wiz_next_client_ve_parent_fix")&&(I=M$g(_.qZ(),Y)),I=_.sQ(_.Qd(),Y,I,w),Y.visualElement=I);V&&(I=_.fH().resolve(Vc),FCr(Y,{data:b,observer:I,layer:w,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
ZqG=function(Y,b){return(b==null?0:b.trackingParams)||(b==null?0:b.loggingDirectives)||_.v(b==null?void 0:b.rendererContext,_.vP)||Y.getAttribute("client-ve-type")?!0:!1};
OqI=function(Y){return _.q("cow_logging_in_component_wrapper")?function(b){vNa(b,Y,!0)}:por};
por=function(){};
_.t$K=function(Y,b){return _.kt(Y.entities,"accountLinkStatusEntity",b)};
RpL=function(Y,b){return _.kt(Y.entities,"hatsSurveyEntity",b)};
d2u=function(Y,b){return _.kt(Y.entities,"hatsSurveyStateEntity",b)};
FWg=function(Y,b){return _.kt(Y.entities,"quantityIncrementerEntity",b)};
zpe=function(Y){var b=Y.data;var w=Y.className===void 0?"":Y.className;var V=Y.setMinWidth;Y=Y.forceIconOnly;var H=_.GM("account-link-button-view-model",OqI({data:b}));V=V?"ytwAccountLinkButtonViewModelHostMinWidth":"";var f=_.xh(_.t$K,function(){var l;return(l=_.Sa(b).accountLinkStatusEntityKey)!=null?l:""}),E=_.xh(_.t$K,function(){var l;
return(l=_.Sa(b).accountLinkStatusSecondaryEntityKey)!=null?l:""}),U=function(){if(!_.q("web_account_link_secondary_killswitch")){var l,x;
return((l=f())==null?void 0:l.linked)||((x=E())==null?void 0:x.linked)}var Q;return(Q=f())==null?void 0:Q.linked};
_.tl(function(){var l=f();if(l){var x=LWb(new Slq,ahb(new rNI,!!l.linked));_.DE().then(function(Q){Q&&(Q.setAccountLinkState(_.YM(x.JSC$10114_serializeBinary(),4)),Q.updateAccountLinkingConfig(!!l.linked))})}},"lLLHt");
var X=function(){return _.v(_.Sa(b).toggleButtonViewModel,_.ns)};
_.jk("yt-signal-action-show-account-link-dialog",function(){if(X()){var l=U()?X().toggledButtonViewModel:X().defaultButtonViewModel;l=_.v(l,_.Bv);var x;if((x=f())==null?0:x.isWarning){x=_.v(_.Sa(b).warningButtonViewModel,_.Bv);if(!x){_.C7(Error("Bh"));return}l=x}var Q;(x=_.zT((Q=l)==null?void 0:Q.onTap))&&_.h1([x],H.value)}else _.C7(Error("Ch"))});
var I=function(){var l=X();return Object.assign({},l,{isToggled:U()})},k=Y?{iconPosition:"icon-only"}:{};
return _.m("account-link-button-view-model",{class:_.hj("ytwAccountLinkButtonViewModelHost",function(){return _.Sa(w)},V),
el:H,"button-renderer":!0},_.m("div",null,_.m(_.h,{cond:function(){var l;if((l=f())==null?0:l.isWarning)return(l=_.v(_.Sa(b).warningButtonViewModel,_.Bv))||_.C7(Error("Bh")),l},
then:function(l){return _.m(_.a1,{data:l,buttonOverrides:k})},
else:function(){return _.m(_.td,{data:I,buttonShapeOverrides:k})}})))};
WWB=function(Y){switch(Y){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
KWL=function(Y){switch(Y){case "BADGE_STYLE_TYPE_YPC_GREEN":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_STYLE_TYPE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_RED_SQUARE":return 11;
case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;case "BADGE_STYLE_TYPE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
iqa=function(Y){switch(Y){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Cdv=function(Y){var b=_.cQ("web_generic_client_event_wait_period ",0);b||(b=3E5);var w=AN6.get(Y);!_.q("enable_web_client_experiment_event_timeout_killswitch")&&w&&(0,_.gG)()-w<b||(AN6.set(Y,(0,_.gG)()),_.RY("genericClientExperimentEvent",{eventType:Y}))};
yNL=function(Y){switch(Y){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
$2e=function(Y){if(!Y)return"";var b,w=(b=_.fH().resolve(_.HQ(_.GT)))==null?void 0:b(),V;if(!w&&((V=Y.vibrantColorPalette)==null?0:V.iconInactiveColor))return iW(Y.vibrantColorPalette.iconInactiveColor,"1");var H;return w&&((H=Y.darkColorPalette)==null?0:H.iconInactiveColor)?iW(Y.darkColorPalette.iconInactiveColor,"1"):Y.color?iW(Y.color,"1"):Y.sampledThumbnailColor?(Y=Y.sampledThumbnailColor,"rgba("+Y.red+","+Y.green+","+Y.blue+");"):""};
_.rK=function(Y,b){if(!Y.includes("DATE_PLACEHOLDER"))return Y;var w=new Date(0);w.setUTCSeconds(b);return Y.replace("DATE_PLACEHOLDER",j4g(w))};
_.zI=function(Y){return Y!=null&&Y.watch?Y.watch.isTheaterMode:!1};
_.Wv=function(Y){return Y!=null&&Y.watch?Y.watch.isWatchFullscreen:!1};
_.Ks=function(Y){Y=_.GnM(Y);return _.q("web_watch_enable_single_column_grid_view")?Y:!1};
_.GnM=function(Y){return Y.watch.isWatchNarrowWidth};
TJK=function(Y,b,w){return function(V){var H=Y.command;H&&(Ov(H,{form:{element:w}}),b([H],V))}};
u8K=function(Y,b,w,V,H){return function(f){var E=JNI(Y,b);E&&Ov(E,{form:{element:w},commandController:V});H&&f.stopPropagation()}};
JNI=function(Y,b){if(Y.signInEndpoint&&!_.q("web_subscribe_sign_in_endpoint_killswitch"))return Y.signInEndpoint;if(b){if(Y.serviceEndpoints)return Y.serviceEndpoints[1];if(Y.onUnsubscribeEndpoints)return Y.onUnsubscribeEndpoints[0]}else{if(Y.serviceEndpoints)return Y.serviceEndpoints[0];if(Y.onSubscribeEndpoints)return Y.onSubscribeEndpoints[0]}};
Y9G=function(Y,b){var w,V,H,f;b=b&&((w=Y.unsubscribeAccessibility)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label)||((H=Y.subscribeAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label);return Y.longSubscriberCountText?[b,_.Tx(Y.longSubscriberCountText)].filter(function(E){return E}).join(" "):b};
iX=function(Y,b){return b||(Y==null?0:Y.isChannelDelegate)?"disabled":"active"};
b2e=function(Y,b){var w;switch((w=Y.style)==null?void 0:w.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:iX(Y)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:iX(Y)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:iX(Y,!0)};case "OVERLAY":return b?{style:"overlay",type:"tonal",state:iX(Y)}:{style:"overlay",type:"filled",state:iX(Y)};default:return b?{style:"mono",type:"tonal",state:iX(Y)}:{style:"mono",type:"filled",state:iX(Y)}}};
wMG=function(Y){switch(Y){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
V_b=function(Y){switch(Y){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
H2B=function(Y,b){var w=Y.map(function(V){return V.toString()});
return _.Q_(function(V){if(w.includes(V.key)){b&&V.preventDefault();var H;(H=V.currentTarget)==null||H.click()}})};
_.gAr=function(){return H2B(["Enter"])};
_.fQu=function(){return H2B(["Enter"," "],!0)};
_.Ad=function(Y){if(Y.composedPath)return Y.composedPath();if(!Y.__composedPath){for(var b=[],w=Y.target;w;)b.push(w),w=w.parentNode;b.push(window);Y.__composedPath=b}return Y.__composedPath};
_.Cs=function(Y,b,w){Y=_.N(Y);for(var V=Y.next();!V.done;V=Y.next()){V=V.value;if(V===b)break;for(var H=_.N(w),f=H.next();!f.done;f=H.next())if(f=f.value,V.tagName===f||V.role==="button"&&f==="BUTTON")return!0}return!1};
EA6=function(Y,b){var w,V=(w=b.observer)!=null?w:_.fH().resolve(Vc);if(Y){w=N$M(Y);var H=[];b.showOption&&H.push(V.observe(Y,function(){b.visibilityCallback(!0)},b.showOption));
b.hideOption&&H.push(V.observe(Y,function(){b.visibilityCallback(!1)},b.hideOption));
b.prescanOption&&b.prescanCallback&&H.push(V.observe(Y,function(){b.prescanCallback()},b.prescanOption));
var f;w.visibilityMonitorKeys=((f=w.visibilityMonitorKeys)!=null?f:[]).concat(H)}};
N$M=function(Y){var b;return(b=Y.polymerController)!=null?b:Y};
_.$h=function(Y){return!!_.y4(Y)};
_.XMe=function(Y,b){var w=QJM();RI(function(){var V=Y.value;if(V)return ckv(V,b),UBK(V,b,void 0,void 0,void 0,w)},[b])};
_.jP=function(Y,b,w,V,H,f){var E=QJM();_.tl(function(){var U=Y.value;U&&(ckv(U,b(),f),U=UBK(U,b(),w,V,H,E),_.R2(U))},"GXtnHd")};
ckv=function(Y,b,w){var V=DBr(b),H=mBK(b);b=V&&oAa;var f=H&&IQt;(V||H)&&EA6(Y,{visibilityCallback:function(E){var U=_.fH().resolve(_.Nn);E&&V?U.resolveCommand(V,{form:{element:w?Y:void 0},disableClickTracking:!0}):!E&&H&&U.resolveCommand(H,{form:{element:w?Y:void 0},disableClickTracking:!0})},
showOption:b,hideOption:f})};
UBK=function(Y,b,w,V,H,f){var E=new Map;if(b=_.y4(b)){var U;Y=(V==null?void 0:(U=V.onTap)==null?void 0:U.value)||Y;w=k$K(b,Y,w==null?void 0:w.onTap,H,f);Y.addEventListener("click",w);E.set("click",w)}return function(){for(var X=_.N(E),I=X.next();!I.done;I=X.next()){var k=_.N(I.value);I=k.next().value;k=k.next().value;Y.removeEventListener(I,k)}}};
_.y4=function(Y){var b;return(Y=(b=_.v(Y,lQu))==null?void 0:b.onTap)&&_.zT(Y)};
DBr=function(Y){var b;return(Y=(b=_.v(Y,lQu))==null?void 0:b.onVisible)&&_.zT(Y)};
mBK=function(Y){var b;return(Y=(b=_.v(Y,lQu))==null?void 0:b.onHidden)&&_.zT(Y)};
k$K=function(Y,b,w,V,H){var f=function(U){_.fH().resolve(_.Nn).resolveCommand(Y,U)},E=function(U){V&&_.Cs(_.Ad(U),b,V)||f(U.target?{form:{element:U.target,
sourceData:Y,mutationContext:H}}:void 0)};
w&&(E=function(U){w(U,f)});
return E};
hja=function(Y){switch(Y){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 72;case "giant":return 72;default:return 0}};
xBu=function(Y){var b=Y.numAvatarsInCluster;switch(Y.clusterSize){case "small":return b===2?22:18;case "40":return b===2?24:22;default:return b===2?24:20}};
q9t=function(Y,b){return function(w){var V=Object.keys(b);_.tl(function(){if(Y()){for(var H=_.N(V),f=H.next();!f.done;f=H.next())f=f.value,w.addEventListener(f,b[f]);_.R2(function(){for(var E=_.N(V),U=E.next();!U.done;U=E.next())U=U.value,w.removeEventListener(U,b[U])})}},"bXZGfe")}};
sbB=function(Y){switch(xBu(Y)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
QbM=function(Y){switch(Y){case "tiny":return"yt-spec-avatar-shape--avatar-size-tiny";case "extra-small":return"yt-spec-avatar-shape--avatar-size-extra-small";case "small":return"yt-spec-avatar-shape--avatar-size-small";case "medium":return"yt-spec-avatar-shape--avatar-size-medium";case "48":return"yt-spec-avatar-shape--avatar-size-48";case "large":return"yt-spec-avatar-shape--avatar-size-large";case "extra-large":return"yt-spec-avatar-shape--avatar-size-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape--avatar-size-extra-extra-large";
case "giant":return"yt-spec-avatar-shape--avatar-size-giant";case "responsive":return"yt-spec-avatar-shape--avatar-size-responsive";default:return""}};
vAv=function(Y){switch(xBu(Y)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
PKb=function(Y){switch(Y){case "tiny":return"yt-spec-avatar-shape__button--button-tiny";case "extra-small":return"yt-spec-avatar-shape__button--button-extra-small";case "small":return"yt-spec-avatar-shape__button--button-small";case "medium":return"yt-spec-avatar-shape__button--button-medium";case "48":return"yt-spec-avatar-shape__button--button-48";case "large":return"yt-spec-avatar-shape__button--button-large";case "extra-large":return"yt-spec-avatar-shape__button--button-extra-large";case "extra-extra-large":return"yt-spec-avatar-shape__button--button-extra-extra-large";
case "giant":return"yt-spec-avatar-shape__button--button-giant";case "responsive":return"yt-spec-avatar-shape__button--button-responsive";default:return""}};
Z2M=function(Y){switch(Y){case "tiny":return 16;case "extra-small":return 24;case "small":return 32;case "medium":return 36;case "48":return 48;case "large":return 56;case "extra-large":return 72;case "extra-extra-large":return 120;case "giant":return 160;default:return 0}};
B$I=function(Y){return Y==="medium"||Y==="48"||Y==="large"||Y==="extra-large"||Y==="extra-extra-large"||Y==="giant"};
nAI=function(Y){return!!((Y==null?0:Y.includes(3))||(Y==null?0:Y.includes(5)))};
ejM=function(Y){return{size:M_M(Y.data.avatarImageSize),onTap:Y.onTap,decorations:Y.decorations||[],badgeText:Y.badgeText,accessibilityText:Y.accessibilityText,avatarButtonCustomClassName:Y.avatarButtonCustomClassName,clusterLayoutConfig:Y.clusterLayoutConfig}};
M_M=function(Y){switch(Y){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
pMI=function(Y){switch(Y){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
O2a=function(Y){switch(Y){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
t_u=function(Y){var b=Y.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",w,V=Y.avatars&&Y.avatars.length>0?(w=_.v(Y.avatars[0],_.GI))==null?void 0:w.avatarImageSize:"AVATAR_SIZE_UNKNOWN";w=pMI(V)||0;if(b){var H,f=(H=Y.avatarClusterSize)!=null?H:"AVATAR_SIZE_M";b=pMI(f);var E,U,X=Math.min((U=(E=Y.avatars)==null?void 0:E.length)!=null?U:0,4),I;return{avatars:((I=Y.avatars)==null?void 0:I.slice(0,4))||[],avatarSizeInPx:w,avatarStackStyle:{width:b+"px",height:b+"px",position:"relative"},avatarStyle:function(l){var x=
xBu({clusterSize:M_M(f),numAvatarsInCluster:X,avatarIndex:l});var Q=pMI(f);X===3&&l===2?(Q=(Q-x)/2,Q=(_.zO("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*Q):Q=void 0;return{position:"absolute",top:X===2&&l===1||X===3&&l===2||X===4&&l>=2?"0":void 0,bottom:X===2&&l===0||X>2&&l<2?"0":void 0,left:X===2&&l===1||X>2&&(l===1||l===3)?"0":void 0,right:X<=3&&l===0||X===4&&(l===0||l===2)?"0":void 0,transform:Q?"translateX("+Q+"px)":void 0,width:x+"px",height:x+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(l){return{clusterSize:M_M(Y.avatarClusterSize),numAvatarsInCluster:X,avatarIndex:l}},
avatarButtonCustomClassName:void 0}}var k;return{avatars:((k=Y.avatars)==null?void 0:k.slice())||[],avatarSizeInPx:w,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:O2a(V),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
RjL=function(Y,b,w){return function(){Ov(Y,{form:{element:b},commandController:w})}};
dBu=function(Y){switch(Y){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
FFr=function(Y){switch(Y){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
LFr=function(Y){var b=Y.data;Y=Y.hidden===void 0?!1:Y.hidden;var w={};Y={class:_.qR("yt-page-indicator-view-model",(w["yt-page-indicator-view-model__indicator--hidden"]=!b.indicatorCount,w)),hidden:Y};if(b.indicatorCount){w=[];for(var V=0;V<b.indicatorCount;V++){var H={};H=_.qR("yt-page-indicator-view-model__indicator",(H["yt-page-indicator-view-model__indicator--selected"]=b.selectedIndex===V,H));w.push(_.m("div",{class:H}))}b=_.m(_.Uz,null,w)}else b=_.m(_.Uz,null);return _.m("yt-page-indicator-view-model",
Y,b)};
aQG=function(Y){Y&&(S9K(Y)?delete Y.inlinePlayerData:"inlinePlaybackEndpoint"in Y&&delete Y.inlinePlaybackEndpoint)};
rkv=function(Y){if("accessibilityText"in Y)return Y.accessibilityText||"";if("title"in Y){var b,w,V;return((b=Y.title)==null?void 0:(w=b.accessibility)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label)||""}if("accessibility"in Y){var H,f;return((H=Y.accessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)||""}return""};
S9K=function(Y){return"inlinePlayerData"in Y};
TI=function(Y){return new zjt(Y)};
_.WFG=function(Y,b,w,V,H,f){var E=function(I){I.preventDefault()},U=function(){var I=Y.value;
if(I)return(I._data=b)?(I.addEventListener("touchstart",ZRI,{passive:!0}),I.addEventListener("click",nav),b.clickTrackingParams&&(I.params={itct:b.clickTrackingParams}),M0t(I,b),er(I,eCL(b)||"")):I.addEventListener("click",E),function(){b?(I.removeEventListener("touchstart",ZRI,{passive:!0}),I.removeEventListener("click",nav)):I.removeEventListener("click",E)}},X=function(){var I=Y.value;
if(I){var k=_.KA({innertubeCommand:b,elementsCommand:w,forceNewState:V,stopPropagation:f});if(k)return I._data=k._data,k["aria-haspopup$"]&&I.setAttribute("aria-haspopup",k["aria-haspopup$"].toString()),k["force-new-state$"]&&I.setAttribute("force-new-state",k["force-new-state$"].toString()),k.href$&&er(I,k.href$),k.rel$&&(I.rel=k.rel$),k.role$&&I.setAttribute("role",k.role$),k.target$&&(I.target=k.target$),I.params=k.params,k.onclick&&I.addEventListener("click",k.onclick),k.onpointerdown&&I.addEventListener("onpointerdown",
k.onpointerdown),function(){k.onclick&&I.removeEventListener("click",k.onclick);k.onpointerdown&&I.removeEventListener("onpointerdown",k.onpointerdown)}}};
RI(H?X:U,[b,w])};
KFB=function(Y){var b=Y.children;var w=Y.className;var V=Y.dir;var H=Y.style;var f=Y.role;var E=Y.ariaSelected;var U=Y.ariaLabel;var X=Y.ariaHidden;var I=Y.ariaLabelledby;var k=Y.ariaDescribedby;var l=Y.command;var x=Y.elementsCommand;var Q=Y.forceNewState;var Z=Y.isPlaceholder;var e=Y.tabIdentifier;var O=Y.target;var L=Y.tabIndex;var r=Y.useATagConfig;var C=Y.stopPropagation;Y=_.GM("a");_.WFG(Y,l,x,Q,r,C);return _.m("a",{el:Y,"on:click":_.Q_(function(){return C===!1}),
class:w,style:H,dir:V,role:f?f:l?void 0:"group","aria-hidden":X?!0:void 0,"aria-label":U,"aria-labelledby":I,"aria-describedby":k,"aria-selected":E,tabindex:L!==void 0?L:void 0,target:O,"tab-identifier":e,"force-new-state":Q?!0:void 0,"is-placeholder":Z?!0:void 0},b)};
i2u=function(Y){var b=Y.data;Y=_.Q_(function(){var H=_.v(b.onTap,_.rI);H&&_.fH().resolve(_.Nn).resolveCommand(H);return!1});
var w={sources:[{url:b.thumbnailUrl,width:120,height:90}]},V=b.rating&&b.ratingA11yLabel&&b.reviewsCount&&b.reviewsCountA11yLabel;return _.m("place-data-view-model",null,b.placeName&&b.placeCategory?_.m("div",{class:"yt-spec-place-data-view-model-shape","on:click":Y},_.m(_.Y_,{data:w,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.m(KFB,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.v(b.onTap,_.rI),forceNewState:!0,useATagConfig:!0},
_.m("h3",{class:"yt-spec-place-data-view-model-shape__name",title:b.placeName},b.placeName)),_.m("div",{class:"yt-spec-place-data-view-model-shape__metadata"},V?_.m("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.m("span",{class:"score",title:b.ratingA11yLabel},b.rating),_.m("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.m(_.n_,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.m("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:b.reviewsCountA11yLabel},b.reviewsCount)):_.m("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.m("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.m("span",{class:"category",title:b.placeCategory},b.placeCategory)))):null)};
Akq=function(Y){return function(b){Y&&(Y.thumbnailElRef=b.thumbnailElRef,Y.thumbnail=b.thumbnail,Y.thumbnailOverlays=b.thumbnailOverlays,Y.thumbnailSize=b.thumbnailSize)}};
CKL=function(Y){var b;return(b=Y.sharedUi)==null?void 0:b.animatedThumbnailEnabled};
ykB=function(Y){var b;return(b=Y.sharedUi)==null?void 0:b.inlinePreviewEnabled};
_.$Be=function(Y){var b;return(b=Y.sharedUi)==null?void 0:b.currentPageSubType};
jbb=function(Y){switch(Y){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
Jk6=function(Y){var b=_.N(_.kw(!1,void 0,"RIOonf")),w=b.next().value,V=b.next().value;_.dx(function(){var H=Y==null?void 0:Y();if(H){var f=_.fH().resolve(_.HQ(G$v));if(f){var E={triggeringElement:H,onDwellTriggeredFn:function(){V(!0)},
onDwellEndFn:function(){V(!1)}};
f.registerElement(E);_.R2(function(){T$K(f,E)})}}});
return w};
u7a=function(Y,b,w){w?w(b):_.AA(b,Y.target?{form:{element:Y.target}}:void 0)};
_.Jd=function(Y,b,w,V){_.tl(function(){var H=Y.value;if(H){var f=new Map,E,U=(E=b())==null?void 0:E.onTap;U&&(E=function(X){a:{var I=X.composedPath();I=_.N(I);for(var k=I.next();!k.done;k=I.next()){k=k.value;if(k===H)break;if(k.className.indexOf("HostIsClickableAdComponent")>=0||k.tagName==="A".toString()||k.tagName==="BUTTON".toString()){I=!0;break a}}I=!1}I||u7a(X,U,w)},(V==null?0:V())||_.q("enable_web_home_top_landscape_image_layout_level_click")?(H.addEventListener("tap",E),f.set("tap",E)):(H.addEventListener("click",
E),f.set("click",E)));
_.R2(function(){for(var X=_.N(f),I=X.next();!I.done;I=X.next()){var k=_.N(I.value);I=k.next().value;k=k.next().value;H.removeEventListener(I,k)}})}},"g9MHN")};
YEv=function(Y,b){var w,V=(w=Y.interaction)==null?void 0:w.onTap;if(Y=_.KA({elementsCommand:V,forceNewState:!0,skipOnClick:!0}))return Y.onclick=function(H){sae(H)&&(H.preventDefault(),V&&u7a(H,V,b))},i8(Y)?Y:void 0};
bFv=function(Y){switch(Y){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
wc6=function(Y){switch(Y){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
VDq=function(Y){switch(Y){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.HFg=function(Y){return _.q("rich_grid_enable_dynamic_offset")&&Y?Math.max(Math.round((Y-_.cQ("rich_grid_dynamic_offset_anchor_width",1300))/100*_.cQ("rich_grid_dynamic_offset_offset_per_100",10)),_.cQ("rich_grid_dynamic_offset_lower_bound",-60)):0};
g6L=function(Y,b){switch(b){case 4:return 16;case 1:return Y<528?16:Y<1024?32:48;case 2:return(Y>=528?16:8)/2;case 3:return(Y<528?16:Y<1024?32:48)+(Y>=528?16:8)/2;default:return 0}};
fBL=function(Y){var b=Y.originalContainerWidth;var w=Y.sizing;var V=Y.standardUnit;if(Y.isCompactList&&b<528)return 1;switch(w){case "STANDARD":return V;case "COMPACT":return V+1;case "EXTRA_COMPACT":return _.q("web_responsive_extra_compact_2x")?V*2:_.q("web_responsive_current")?V===1?2:V%2===0?V/2*3:V+2:V<4?V*2:Math.ceil(V*3/2);case "MINI":return V>1?V*2:3;default:return V}};
E6e=function(Y){var b=Y.containerWidth;var w=Y.peek;var V=Y.gutter;var H=Y.numItems;Y=Y.ignoreMaxWidthLimit;b=w?Math.max((b-w-V*H)/H,0):Math.max((b-V*(H-1))/H,0);return Y?b:Math.min(b,N36)};
_.uX=function(Y){var b=Y.containerWidth;var w=Y.hasPeek;var V=Y.sizing;var H=Y.marginSettings;var f=Y.isCompactList;var E=Y.enableFullBleedForSingleCol;var U=Y.standardUnitMinWidth;V=V||"STANDARD";w=!!w;Y=b>=528?16:8;var X=w?b>=528?48:24:0;H=g6L(b,H);var I=Math.max(b-H*2,0);U=_.q("kevlar_disable_min_width_override")?void 0:U;U=Math.min(Math.max(Math.floor((I-X+Y)/((U!=null?U:cgu)+_.HFg(b)+Y)),1),6);var k=(E=!!E&&U===1)||U===1&&V!=="STANDARD";w=w||k?I:Math.min(I,(N36+Y)*U-Y);V=fBL({originalContainerWidth:b,
sizing:V,standardUnit:U,isCompactList:f});return{itemWidth:E6e({containerWidth:w,peek:X,gutter:Y,numItems:V,ignoreMaxWidthLimit:k}),gutter:Y,maxContainerWidth:w,numItems:V,margin:E?0:H,contentMargin:g6L(b,1),typographyBump:E6e({containerWidth:w,peek:X,gutter:Y,numItems:U,ignoreMaxWidthLimit:k})>400&&!(f&&b<528),standardUnit:U}};
UWu=function(Y){switch(Y){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.Xcq=function(Y){if(Y){var b;if((b=Y.responsiveContainerConfiguration)==null?0:b.responsiveSize)return UWu(Y.responsiveContainerConfiguration.responsiveSize);if(Y.layoutSizing)switch(Y.layoutSizing){case "RICH_GRID_LAYOUT_SIZING_COMPACT":return"COMPACT";case "RICH_GRID_LAYOUT_SIZING_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RICH_GRID_LAYOUT_SIZING_TINY":return"MINI";default:return"STANDARD"}}};
DWK=function(Y){if(Y.fullbleed)return 1;switch(Y.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
koB=function(Y,b,w,V,H,f,E,U){a:switch(Y){case 4:f=!!(f&&f<100);break a;default:f=!1}a:switch(Y){case 3:case 4:var X=V==="LOCKUP_CONTENT_TYPE_CHANNEL"||V==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:X=!1}a:switch(Y){case 5:var I=!0;break a;case 4:I=!1;break a;default:I=!1}a:if(Y===4&&V==="LOCKUP_CONTENT_TYPE_SOURCE")var k=1;else switch(Y){case 3:k=1;break a;default:k=0}return{isOverlay:I,isCard:mWv(V,E),sizing:b!=null?b:"STANDARD",typographyBump:w!=null?w:!1,isTiny:f,isCentered:X,isCollection:o6M(V),
arrangement:k,addMarginForFullbleed:Y===1&&V!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:Y===1&&V==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:IBr(V,H,U),disableRounding:Y===5||mWv(V,E)||Y===1&&V==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:o6M(V)?2:0,useLegacyTypography:!(U==null||!U.useLegacyTypography),useRichGridLegacyTypography:!(U==null||!U.useRichGridLegacyTypography)&&!_.q("web_enable_typography_bump")}};
o6M=function(Y){switch(Y){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
mWv=function(Y,b){if(b&&Y==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(Y){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
IBr=function(Y,b,w){if(b&&(w==null||!w.alwaysRespectPodcastShowAspectRatio||Y!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(Y){case "LOCKUP_CONTENT_TYPE_SHORT":return 4;case "LOCKUP_CONTENT_TYPE_GAME":case "LOCKUP_CONTENT_TYPE_MOVIE":return 1;case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PRODUCT":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return 3;default:return 0}};
lBB=function(Y){switch(Y){case 0:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingGreenCircle";case 1:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingYellowCircle";case 2:return"ytBrNzBadgeShapeBadgeStyleTypeNzRatingRedSquare";case 3:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallGreenSquare";case 4:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlueSquare";case 5:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlueSquare";case 6:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallYellowSquare";case 7:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeYellowSquare";
case 8:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallOrangeSquare";case 9:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeOrangeSquare";case 10:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallRedSquare";case 11:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeRedSquare";case 12:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingSmallBlackSquare";case 13:return"ytBrNzBadgeShapeBadgeStyleTypeBrRatingLargeBlackSquare"}};
qEI=function(Y,b,w){a:switch(Y.badgeStyle){case "BADGE_OVERLAY":var V=!0;break a;default:V=!1}return{type:b?16:hbv(Y.badgeStyle),brNzRatingBadgeType:xWr(Y.badgeStyle),text:Y.badgeText,icon:Y.iconName,isOverlay:V,modern:w||_.q("web_modern_badge_view_model"),accessibilityText:Y.accessibilityLabel}};
hbv=function(Y){switch(Y){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
xWr=function(Y){switch(Y){case "BADGE_NZ_RATING_GREEN_CIRCLE":return 0;case "BADGE_NZ_RATING_YELLOW_CIRCLE":return 1;case "BADGE_NZ_RATING_RED_SQUARE":return 2;case "BADGE_BR_RATING_SMALL_GREEN_SQUARE":return 3;case "BADGE_BR_RATING_SMALL_BLUE_SQUARE":return 4;case "BADGE_BR_RATING_LARGE_BLUE_SQUARE":return 5;case "BADGE_BR_RATING_SMALL_YELLOW_SQUARE":return 6;case "BADGE_BR_RATING_LARGE_YELLOW_SQUARE":return 7;case "BADGE_BR_RATING_SMALL_ORANGE_SQUARE":return 8;case "BADGE_BR_RATING_LARGE_ORANGE_SQUARE":return 9;
case "BADGE_BR_RATING_SMALL_RED_SQUARE":return 10;case "BADGE_BR_RATING_LARGE_RED_SQUARE":return 11;case "BADGE_BR_RATING_SMALL_BLACK_SQUARE":return 12;case "BADGE_BR_RATING_LARGE_BLACK_SQUARE":return 13}};
Qru=function(Y){var b=Y.data?qEI(Y.data,!!Y.workaroundShortsIsThumbnailBadge,Y.modern):void 0;return _.m("yt-badge-view-model",{class:_.qR("yt-badge-view-model-wiz",Y.class)},bN(b==null?void 0:b.brNzRatingBadgeType,function(){return _.m(srb,{data:b})}),bN(b&&!b.brNzRatingBadgeType,function(){return _.m(_.YE,{data:b})}))};
_.bJ=function(Y){if(Y){var b;return((b=_.fH().resolve(_.HQ(_.GT)))==null?0:b())?Y.darkThemeImage:Y.image}};
ZFa=function(Y,b,w,V,H,f){if(H&&f&&b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:H,height:f};if(!w)return{};H=w.size;w=w.allowFullWidth;if(b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&w)return{fullWidth:!0};if(H===void 0)return{};switch(Y){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:H,height:H};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:H,height:1/v6G*H};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:H*
PUe,height:H};default:return(V==null?0:V.height)&&(V==null?0:V.width)?V.width/V.height>1?{maxWidth:H*PUe}:{maxWidth:H}:{maxWidth:H}}};
B3I=function(Y){var b;return Y&&((b=_.bJ(Y.themedImage))!=null?b:Y.image)};
n6u=function(Y){var b;return Y==null?void 0:(b=Y.sources)==null?void 0:b[0]};
ebB=function(Y,b){var w,V;return!!((Y==null?0:(w=Y.byline)==null?0:w.hideAvatar)&&((V=_.v(b,MDv))==null?void 0:V.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
pcB=function(Y,b){var w,V;return!!((Y==null?0:(w=Y.byline)==null?0:w.addPadding)&&((V=_.v(b,MDv))==null?void 0:V.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
OF6=function(Y,b,w,V){var H={},f=(H["yt-content-metadata-view-model-wiz__delimiter"]=!0,H["yt-content-metadata-view-model-wiz__delimiter--standalone"]=V,H);return bN(b-1>w,function(){return _.m("span",{class:_.qR(f),"aria-hidden":!0},Y)})};
RbI=function(Y,b){return _.m(_.wv,{text:Y.text,linkInheritColor:!0,className:tDq(b),userInput:!0})};
FlI=function(Y){var b=Y.metadataPart;var w=Y.isOverlay;var V=Y.useMediumText;var H=Y.hideAvatar;var f=1;b.maxLines!==void 0&&(f=b.maxLines);return _.m(_.Uz,null,bN(b.avatarStack,function(){return dWq(b.avatarStack,{avatarStackViewModel:{isOverlay:w,useMediumText:V,hideAvatar:H}})}),bN(b.text,function(){var E=f;
return _.m(_.Uz,null,b.tooltip?_.m("span",{title:b.tooltip,role:"tooltip"},RbI(b,E)):RbI(b,E))}))};
tDq=function(Y){switch(Y){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
Llb=function(Y){var b=Y.metadataRow;var w=Y.isInline;var V=Y.delimiter;var H=Y.isOverlay;var f=Y.useMediumText;var E=Y.extensions;var U=ebB(E==null?void 0:E.lockupMetadata,b);Y=pcB(E==null?void 0:E.lockupMetadata,b);E=!(!((E==null?0:E.lockupMetadata)&&b.badges)||b.metadataParts);var X={};Y=(X["yt-content-metadata-view-model-wiz__metadata-row"]=!0,X["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=w,X["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
Y,X["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=E,X);var I,k;return _.m("div",{class:_.qR(Y)},(I=b.badges)==null?void 0:I.map(function(l){return _.m("div",{class:"yt-content-metadata-view-model-wiz__badge"},dWq(l))}),(k=b.metadataParts)==null?void 0:k.map(function(l,x){return _.m(_.Uz,null,FlI({metadataPart:l,
isOverlay:H,useMediumText:f,hideAvatar:U}),OF6(V,b.metadataParts.length,x,!1))}),bN(b.isSpacerRow&&!w,function(){return _.m("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
SEM=function(Y){var b=Y.className;var w=Y.data;var V=Y.layout===void 0?0:Y.layout;var H=Y.isOverlay===void 0?!1:Y.isOverlay;var f=Y.useMediumText;var E=Y.extensions;Y=_.GM("yt-content-metadata-view-model");var U=V===0;V={};V=(V["yt-content-metadata-view-model-wiz"]=!0,V["yt-content-metadata-view-model-wiz--inline"]=U,V["yt-content-metadata-view-model-wiz--tappable"]=_.$h(w.rendererContext),V["yt-content-metadata-view-model-wiz--medium-text"]=f,V);_.XMe(Y,w.rendererContext);return _.m("yt-content-metadata-view-model",
{class:_.qR(b,V),el:Y},bN(w.metadataRows,function(){return w.metadataRows.map(function(X,I){return _.m(_.Uz,null,Llb({metadataRow:X,isInline:U,delimiter:w.delimiter,isOverlay:H,useMediumText:f,extensions:E}),bN(U&&!X.isSpacerRow,function(){return OF6(w.delimiter,w.metadataRows.length,I,!0)}))})}))};
aBG=function(Y){switch(Y){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
rgL=function(Y){switch(Y.style){case "STYLE_VISIBLY_DISABLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_WHITE_WITH_BORDER":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};
case "STYLE_LIGHT_TEXT":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_TONAL_OVERLAY":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",
type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};case "STYLE_DARK_ON_BLACK":return{style:"BUTTON_VIEW_MODEL_STYLE_OVERLAY",
type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"};default:return{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"}}};
zbB=function(Y){var b=_.$Be(_.jm().getState())||"";return Y?Y+b:""};
Wla=function(Y){switch(Y){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
iFL=function(Y){var b=_.N(_.kw(void 0,void 0,"BIquNb")),w=b.next().value,V=b.next().value,H=_.N(_.kw(void 0,void 0,"eR0GH"));b=H.next().value;var f=H.next().value;H=_.N(_.kw(void 0,void 0,"UmkP0"));var E=H.next().value,U=H.next().value;return{touchFeedbackEvents:{pointerUpEvent:w,pointerDownEvent:b,pointerLeaveEvent:E},touchFeedbackOnPointerUp:_.Q_(function(X){if(Kle(_.Ad(X)))return!1;V(X);f(void 0);U(void 0);return!0}),
touchFeedbackOnPointerDown:_.Q_(function(X){Y==null||Y(X);if(Kle(_.Ad(X)))return!1;f(X);V(void 0);U(void 0);return!0}),
touchFeedbackOnPointerLeave:_.Q_(function(X){Kle(_.Ad(X))||(U(X),f(void 0),V(void 0))})}};
Kle=function(Y){var b=["BUTTON".toString()];Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next()){w=w.value;for(var V=_.N(b),H=V.next();!H.done;H=V.next())if(w.tagName===H.value)return!0}return!1};
Ag6=function(Y){switch(Y){case "AD_AVATAR_SIZE_XXS":return"tiny";case "AD_AVATAR_SIZE_XS":return"extra-small";case "AD_AVATAR_SIZE_S":return"small";case "AD_AVATAR_SIZE_M":return"medium";case "AD_AVATAR_SIZE_MPLUS":return"48";case "AD_AVATAR_SIZE_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
CUb=function(Y){return Y.scrollHeight-Y.offsetHeight>1};
ygM=function(Y,b){var w;return jz(Y,((w=Y.content)==null?void 0:w.length)||0,!b)};
$Wt=function(Y,b){b=ygM(Y,b);var w,V;return(((w=Y.content)==null?void 0:w.length)||0)>(((V=b.content)==null?void 0:V.length)||0)};
T3u=function(Y,b,w,V,H,f){if(!b||jrb){var E;return jz(Y,((E=Y.content)==null?void 0:E.length)||0,!0)}b=V.value;if(!w.value||!b||!Y.content)return Y;w=0;V=Y.content.length;E=0;Goq||(Goq=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var U=Goq;for(H=H*f*U;w<=V;)f=Math.floor(w+(V-w)/2),U=jz(Y,f)||Y,b.firstChild&&(b.firstChild.textContent=U.content),b.scrollHeight>H?V=f-1:(E=f,w=f+1);return jz(Y,E)};
JgM=function(Y,b){var w,V;return(((w=Y.content)==null?void 0:w.length)||0)>(((V=b.content)==null?void 0:V.length)||0)};
uUr=function(Y){var b=Y.isTruncated;var w=Y.isAbsoluteButton;var V=Y.lineHeight;var H=Y.contentRef.value,f=Y.placeholderTruncationTextRef.value,E=Y.truncationTextRef.value;Y=Y.appDirection==="rtl";if(H&&f){var U=f.offsetLeft;Y&&(U=H.offsetWidth-f.offsetWidth-f.offsetLeft);if(b){b=f.offsetWidth;f=H.offsetWidth;var X=w?f-b-70:U-70;V="linear-gradient(\n      to top, transparent 0%,\n      transparent "+V+"rem,\n      #000 "+V+"rem,\n      #000 100%), linear-gradient(\n      to "+((Y?"left":"right")+
",\n      #000 0px,\n      #000 "+X+"px,\n      transparent "+(w?f-b:X+70)+"px)");H.style.setProperty("-webkit-mask-image",V);H.style.setProperty("mask-image",V)}else H.style.setProperty("-webkit-mask-image",""),H.style.setProperty("mask-image","");w?Y?(E.style.setProperty("left","0"),E.style.setProperty("right","unset")):(E.style.setProperty("left",""),E.style.setProperty("right","0")):Y?(E.style.setProperty("left","unset"),E.style.setProperty("right",U+"px")):(E.style.setProperty("left",U+"px"),
E.style.setProperty("right","unset"))}};
Yo6=function(Y,b,w,V,H,f,E){var U=_.GM("truncated-text-content"),X=_.GM("truncated-text-content"),I=_.GM("button"),k=_.GM("button"),l=_.GM("button"),x=_.fH().resolve(_.JA),Q=_.N(hd(ygM(Y,H))),Z=Q.next().value,e=Q.next().value;Q=_.N(hd(_.q("enable_truncated_text_max_lines")?JgM(Y,Z):$Wt(Y,H)));var O=Q.next().value,L=Q.next().value,r=L7(null);RI(function(){function C(){if(U.value&&I.value&&l.value)if(_.q("enable_truncated_text_max_lines")){var G=T3u(Y,H,U,X,b,w);e(G);V||requestAnimationFrame(function(){if(U.value&&
I.value&&l.value){var Nr=CUb(U.value)||JgM(Y,G);L(Nr);uUr({isTruncated:Nr,isAbsoluteButton:CUb(U.value),lineHeight:w,contentRef:U,placeholderTruncationTextRef:I,truncationTextRef:l,appDirection:x})}})}else e(ygM(Y,H)),requestAnimationFrame(function(){if(U.value&&I.value&&l.value)if(CUb(U.value))L(!0),V||uUr({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:w,contentRef:U,placeholderTruncationTextRef:I,truncationTextRef:l,appDirection:x});else{var Nr=$Wt(Y,H);L(Nr);V||uUr({isTruncated:Nr,isAbsoluteButton:!1,lineHeight:w,contentRef:U,placeholderTruncationTextRef:I,truncationTextRef:l,appDirection:x})}})}
var W,y;(W=r.value)==null||(y=W.stop)==null||y.call(W);W=new _.Vm(C,17);C();r.value=W},[Y.content,
b,w,x,V,f,E,H]);_.dx(function(){var C=function(){Goq=void 0;var y,G;(y=r.value)==null||(G=y.fire)==null||G.call(y)};
if(window.ResizeObserver){var W=new ResizeObserver(C);W.observe(U.value);return function(){var y,G;(y=r.value)==null||(G=y.stop)==null||G.call(y);W.disconnect()}}window.addEventListener("resize",C);
return function(){var y,G;(y=r.value)==null||(G=y.stop)==null||G.call(y);window.removeEventListener("resize",C)}});
return{isTruncated:O,displayText:Z,contentRef:U,hiddenRef:X,placeholderTruncationTextRef:I,hiddenTruncationTextRef:k,truncationTextRef:l}};
b5a=function(Y){return _.m("button",{"aria-disabled":!0,disabled:!0,class:Y.className,el:Y.elRef,style:"line-height: "+Y.lineHeight+"rem;"},_.m(_.wv,{text:Y.text}))};
wrG=function(Y){var b=Y.text;var w=Y.alwaysShowTruncationText;var V=Y.truncationText;var H=Y.onExpandClick;var f=Y.maxLines===void 0?2:Y.maxLines;var E=Y.disableTextMask===void 0?!1:Y.disableTextMask;var U=Y.textStyle===void 0?"default":Y.textStyle;var X=Y.accessibilityLabel===void 0?"":Y.accessibilityLabel;var I=Y.textSize===void 0?"small":Y.textSize;var k=_.Q_(function(){return void(H==null?void 0:H())});
a:switch(I){case "medium":var l=2;break a;case "large":l=2.2;break a;default:l=1.8}var x=Yo6(b,f,l,E,Y.alwaysTruncateAtMaxLines===void 0?!1:Y.alwaysTruncateAtMaxLines,I,U),Q=x.isTruncated;Y=x.displayText;b=x.contentRef;var Z=x.hiddenRef,e=x.placeholderTruncationTextRef,O=x.hiddenTruncationTextRef;x=x.truncationTextRef;var L={};w=_.qR((L["truncated-text-wiz__absolute-button"]=!E,L["truncated-text-wiz__bottom-button"]=E,L["truncated-text-wiz--hidden"]=!(w||Q),L));E={};U=_.qR((E["truncated-text-wiz"]=
!0,E["truncated-text-wiz--overlay"]=U==="overlay",E["truncated-text-wiz--medium-text"]=I==="medium",E["truncated-text-wiz--large-text"]=I==="large",E["truncated-text-wiz--primary-text"]=U==="primary-text",E));I={};I=_.qR((I["truncated-text-wiz__truncated-text-content"]=!0,I["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,I));return _.m("truncated-text",{class:U,"on:click":k,style:"line-height: "+l+"rem;"},_.m("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:b,style:"max-height: "+f*l+"rem;"},_.m(_.wv,{text:Y}),_.m(b5a,{text:V,lineHeight:l,elRef:e,className:"truncated-text-wiz__inline-button"})),_.m("truncated-text-content",{class:I,el:Z,style:"max-height: "+f*l+"rem;","aria-hidden":"true"},_.m(_.wv,{text:Y}),_.m(b5a,{text:V,lineHeight:l,elRef:O,className:"truncated-text-wiz__inline-button"})),_.m("button",{"aria-label":X,class:w,el:x,style:"line-height: "+l+"rem;"},_.m(_.wv,{text:V})))};
V6B=function(Y){return{content:Y!=null?Y:""}};
fNb=function(Y){var b=Y.data;var w;Y={class:Y.className};a:switch(b.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var V="yt-video-attribute-view-model--vertical";break a;default:V="yt-video-attribute-view-model--horizontal"}a:switch(b.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var H="yt-video-attribute-view-model--image-small";break a;default:H="yt-video-attribute-view-model--image-large"}a:switch(b.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var f="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":f="yt-video-attribute-view-model--image-avatar";break a;default:f=""}a:switch(b.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var E="yt-video-attribute-view-model--metadata-header";break a;default:E=""}a:switch(b.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var U="yt-video-attribute-view-model--container-card";break a;default:U=""}var X=_.zT(b.onTap)||_.y4(b.rendererContext)?"yt-video-attribute-view-model--clickable":"";
V=["yt-video-attribute-view-model",V,H,f,E,U,X].join(" ");if(b.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var I="";else H=b.lightColorPalette,f=b.darkColorPalette,E=((I=_.fH().resolve(_.HQ(_.GT)))==null?0:I())&&f?f:H,I=(I=E==null?void 0:E.section2Color)?_.KX(I):"";return _.m("yt-video-attribute-view-model",Y,_.m("div",{class:V,style:_.Bb({"background-color":I})},_.m(KFB,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(w=_.zT(b.onTap))!=
null?w:_.y4(b.rendererContext),role:"group",ariaLabel:b.title,forceNewState:!0},b.heroText||b.image?_.m(H5I,{data:b}):null,_.m(gmb,{data:b,sizeSmall:b.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
NH6=function(Y){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:Y.overflowMenuA11yLabel,onTap:function(b){b.preventDefault();b.stopPropagation();if(Y.overflowMenuOnTap){var w=_.KA({elementsCommand:Y.overflowMenuOnTap,forceNewState:!0});if(w==null?0:w.onclick)w.onclick(b)}}}};
H5I=function(Y){Y=Y.data;var b,w=((b=_.fH().resolve(_.HQ(_.GT)))==null?0:b())&&Y.darkThemeImage?Y.darkThemeImage:Y.image;b=NH6(Y);return _.m("div",{class:"yt-video-attribute-view-model__hero-section"},w?_.m(_.Y_,{data:w,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):Y.heroText?_.m("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.m("span",{class:"yt-video-attribute-view-model__hero-text"},Y.heroText)):null,Y.overflowMenuOnTap?
_.m("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.m(HT,{data:b,iconName:"MORE_VERT"})):null)};
gmb=function(Y){var b=Y.data;Y=Y.sizeSmall;var w=b.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",V=_.zT(b.onTap)||_.y4(b.rendererContext);V=_.KA({innertubeCommand:V});V=i8(V);var H={};Y={class:_.qR("yt-video-attribute-view-model__metadata",(H["yt-video-attribute-view-model--small-font"]=Y,H)),role:V?"link":"group"};V=_.m("h1",{class:"yt-video-attribute-view-model__title"},b.title);w=b.subtitle?_.m("h4",{class:"yt-video-attribute-view-model__subtitle"},w?_.m(wrG,{text:V6B(b.subtitle),truncationText:V6B(b.subtitleTruncationText),
maxLines:2}):_.m("span",null,b.subtitle)):null;if(b.secondarySubtitle){H=b.secondarySubtitle;if(H!=null&&H.attachmentRuns){for(var f=[],E=_.N(H.attachmentRuns),U=E.next();!U.done;U=E.next())U=U.value,U.element&&f.push(Object.assign({},U,{element:Object.assign({},U.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));H=Object.assign({},H,{attachmentRuns:f})}H=_.m("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.m(_.wv,{text:H}))}else H=null;return _.m("div",Y,V,w,H,b.buttonViewModel?EmI(b.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.gv=function(Y,b,w,V,H){V=V===void 0?{}:V;if(!H||Math.random()<5E-4){b=b||null;w=w||null;Y=Y instanceof Error?Y:new _.BQ(Y);if(Y.args)for(var f=_.N(Y.args),E=f.next();!E.done;E=f.next())E=E.value,E instanceof Object&&(V=Object.assign({},E,V));V.category="H5 Ads Control Flow";b&&(V.slot=b?"slot:  "+b.slotType:"");w&&(V.layout=w?"layout:  "+w.layoutType:"",V.layoutId=w.layoutId);H&&(V.known_error_aggressively_sampled=!0);Y.args=[V];_.Sk(Y)}};
_.cKq=function(Y,b){_.Xx(Y,"yt-open-popup-action",[_.bW(b),Y])};
_.fx=function(Y,b){_.cKq(Y,_.Gx(b))};
Xr6=function(Y){if(!Y)return"";if(UjM[Y])return UjM[Y];Ny||(Ny=_.xG("A"));Ny.href!==Y&&er(Ny,Y);var b=Ny.pathname;UjM[Y]=b.startsWith("/")?b:"/"+b;return UjM[Y]};
Djb=function(){var Y=Xr6(window.location.href);if(Y==="/")return"home";if(Y.startsWith("/results"))return"search";if(Y.startsWith("/watch"))return"watch";if(Y.startsWith("/shorts"))return"shorts";if(Y.startsWith("/hashtag"))return"hashtag";if(Y.startsWith("/create_channel"))return"create_channel";if(Y.startsWith("/@")||Y.startsWith("/user/")||Y.startsWith("/channel/"))return"channel";if(Y.startsWith("/experiments"))return"experiments";if(Y.startsWith("/sponsor_channel"))return"sponsorship";if(Y.startsWith("/select_site"))return"settings";
if(Y.startsWith("/locate"))return"locate";if(Y.startsWith("/redeem"))return"redeem";if(Y.startsWith("/musicpremium")||Y.startsWith("/premium")||Y.startsWith("/red"))return"premium";if(Y.startsWith("/paid_memberships"))return"paid_memberships";if(Y.startsWith("/oops"))return"oops";if(Y.startsWith("/clip"))return"clip";var b;return(E1==null?void 0:(b=E1.response)==null?void 0:b.page)==="404"?"404":Y.startsWith("/feed/history")?"history":Y.startsWith("/feed/library")?"library":Y.startsWith("/feed/subscriptions")?
"subscriptions":Y.startsWith("/feed/trending")?"trending":Y.startsWith("/feed/news_destination")?"news":Y.startsWith("/playlist")?"playlist":Y.startsWith("/minor_moment")?"minor_moment":Y.startsWith("/playable/")||Y.match("^/playables/(?!saved).")?"mini_app":Y.startsWith("/playables")?"playables":Y.startsWith("/create/live/join")?"open_in_app":Y.startsWith("/feed/explore")?"explore":"browse"};
_.k7B=function(){var Y=E1==null?void 0:E1.response,b=Y==null?void 0:Y.endpoint;if(!b)return(Y==null?void 0:Y.page)==="watch"?"watch":Djb();var w;Y=(w=_.v(b==null?void 0:b.commandMetadata,_.g5))==null?void 0:w.webPageType;w=!1;if(Y&&!mja.includes(Y))switch(Y){case "WEB_PAGE_TYPE_SEARCH":return"search";case "WEB_PAGE_TYPE_SHORTS":return"shorts";case "WEB_PAGE_TYPE_CHANNEL":return"channel";case "WEB_PAGE_TYPE_SETTINGS":return"settings";case "WEB_PAGE_TYPE_PLAYLIST":return"playlist";case "WEB_PAGE_TYPE_OPEN_IN_APP":return"open_in_app";
case "WEB_PAGE_TYPE_MINI_APP":return"mini_app";case "WEB_PAGE_TYPE_WATCH":var V;return((V=_.v(b==null?void 0:b.commandMetadata,_.g5))==null?0:V.url)&&Xr6(_.v(b.commandMetadata,_.g5).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var H;return(b=(H=_.v(b,_.QU))==null?void 0:H.browseId)?omq[b]||"browse":"browse";default:w=!0}if(_.v(b,_.cT)||_.v(b,ING))return"sponsorship";H=Xr6(window.location.href);if(H.startsWith("/experiments"))return"experiments";if(H.startsWith("/create_channel"))return"create_channel";
if(_.v(b,_.Ah)&&H.startsWith("/shorts"))return"shorts";if(_.v(b,_.Ah)&&H.startsWith("/watch"))return"watch";w&&(b=new _.BQ("Unsupported mWeb page type",{pathname:H,webPageType:Y}),_.Ft(b));return"browse"};
U1=function(Y,b,w,V){return Y&&b?Y!==w||b!==V?(_.gv(Error("Ih"),void 0,void 0,{"stored-slot":Y,"stored-layout":b,"latest-slot":w,"latest-layout":V}),!1):!0:!1};
lNI=function(Y,b,w){return Y({targetId:b},function(V){return w.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},V,{header:w.continuationItems?w.continuationItems[0]:void 0}):Object.assign({},V,{contents:w.continuationItems?w.continuationItems:[]})})};
h_I=function(Y,b,w,V){if(b=b.trackingParams){var H,f=(H=w.getScreenLayer)==null?void 0:H.call(w);w=_.dO(f);H=_.R3(f);if(w&&H){var E=_.nA(b);_.q("combine_ve_grafts")?Y.graftServerVe(b,H,f):_.yX(w,H,E);V==null||V(E)}}};
qob=function(Y){var b;return((b=xjv.get(Y))==null?void 0:b.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
vme=function(Y,b){var w={type:b.slotType,controlFlowManagerLayer:sFq.get(b.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(w.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(w.slotPhysicalPosition=b.slotPhysicalPosition);if(Y){w.debugData={slotId:b.slotId};if(Y=b.slotEntryTrigger)w.debugData.slotEntryTriggerData=QFM(Y);Y=b.slotFulfillmentTriggers;w.debugData.fulfillmentTriggerData=[];Y=_.N(Y);for(var V=Y.next();!V.done;V=Y.next())w.debugData.fulfillmentTriggerData.push(QFM(V.value));
b=b.slotExpirationTriggers;w.debugData.expirationTriggerData=[];b=_.N(b);for(Y=b.next();!Y.done;Y=b.next())w.debugData.expirationTriggerData.push(QFM(Y.value))}return w};
QFM=function(Y,b){var w={type:Y.triggerType};b!=null&&(w.category=b);Y.triggeringSlotId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedSlotId=Y.triggeringSlotId);Y.triggeringLayoutId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedLayoutId=Y.triggeringLayoutId);return w};
PTI=function(Y,b,w,V){b={opportunityType:b};Y&&(V||w)&&(V=_.MD(V||[],function(H){return vme(Y,H)}),b.debugData=Object.assign({},w&&w.length>0?{associatedSlotId:w}:{},V.length>0?{slots:V}:{}));
return b};
Z56=function(Y){return on(Y.opportunityAdapterMap).concat(on(Y.triggerAdapterMap)).concat(on(Y.fulfillmentAdapterFactoryMap)).concat(on(Y.slotAdapterFactoryMap)).concat(on(Y.layoutRenderingAdapterFactoryMap))};
on=function(Y){var b=[];Y=_.N(Y.values());for(var w=Y.next();!w.done;w=Y.next())w=w.value,w.isAdsControlFlowEventListener&&b.push(w);return b};
kE=function(Y){var b=Y.slotId,w=Y.slotType,V=Y.slotPhysicalPosition;return b===void 0?new In("Cannot construct a slot due to the missing id.",{adSlotMetadata:Y}):w===void 0?new In("Cannot construct a slot due to the missing type.",{adSlotMetadata:Y}):V===void 0?new In("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:Y}):{slotId:b,slotType:w,slotPhysicalPosition:V,managerLayer:"external",adSlotLoggingData:Y.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new BHu}};
nmu=function(Y){var b=Y.layoutId,w=Y.layoutType;return b===void 0?new lJ("Cannot construct a layout due to the missing id.",{adLayoutMetadata:Y}):w===void 0?new lJ("Cannot construct a layout due to the missing type.",{adLayoutMetadata:Y}):{layoutId:b,layoutType:w,managerLayer:"external",adLayoutLoggingData:Y.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new BHu,interactionLoggingAdsClientData:{}}};
M6L=function(Y){if((Y=Y.value)&&Y.querySelector("img")){var b=Y.querySelector("img");b.addEventListener("error",function(){XGL(b.src).then(function(w){(w=_.ZD(w).toString())?b.src=w:b.removeAttribute("src")}).catch(function(){b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
xE=function(Y,b){if(b&&(e_M(b.viewableCommand)||e_M(b.endOfSessionCommand))){Y=Y.value;var w=prL(b==null?void 0:b.viewableCommand);b=prL(b==null?void 0:b.endOfSessionCommand);if(!h9){var V=_.cQ("custom_active_view_tos_timeout_ms");h9=V>0&&V!==36E5?new O5a(t66(),V):new O5a(t66())}R_q(h9,Y);djB(h9,Y,w,b)}};
qy=function(Y){h9&&R_q(h9,Y.value)};
t66=function(){var Y=_.zO("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(Y==null?void 0:Y.length)===2?Y[1]:null};
e_M=function(Y){Y=_.zT(Y);return!(Y==null||!Y.loggingUrls)&&Y.loggingUrls.length>0};
prL=function(Y){if(!Y)return[];var b=[],w,V;((V=(w=_.zT(Y))==null?void 0:w.loggingUrls)!=null?V:[]).forEach(function(H){H.baseUrl&&b.push(H.baseUrl)});
return b};
FMM=function(Y){return Y.shorts.isDesktopSmallWidth};
_.LMM=function(Y){return Y.shorts.isWatchWhileMode};
_.s1=function(Y){return Y.shorts.isFullscreen};
_.Qm=function(Y){return Y.shorts.isShortsPipActive};
aNg=function(Y){var b,w;if(Y=(b=_.v(Y.reelsAdCardButtoned,SoG))==null?void 0:(w=b.animatedRenderingConfig)==null?void 0:w.easeOutSeconds)return Y+"s"};
z_a=function(Y,b,w){return _.c(function(V){return V.return(new Promise(function(H){var f=new Image;f.onload=function(){H(new rKB(Y,b,w,f.naturalWidth,f.naturalHeight))};
f.src=w.toString()}))})};
WMg=function(Y,b){return Math.round(Y/1E-5)===Math.round(b/1E-5)};
KMM=function(Y,b){return Math.round(Y/1E-5)===Math.round(b/1E-5)};
i5u=function(Y,b){return Y.year===b.year&&Y.month===b.month&&Y.day===b.day};
AKB=function(Y,b){return Y.year!==b.year?Y.year<b.year:Y.month!==b.month?Y.month<b.month:Y.day<b.day};
yK6=function(Y){return Y.day===CTM(Y.year,Y.month)?Y.month===11?{year:Y.year+1,month:0,day:1}:{year:Y.year,month:Y.month+1,day:1}:{year:Y.year,month:Y.month,day:Y.day+1}};
$jg=function(){var Y=new Date,b={year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()};return{start:b,end:{year:Y.getFullYear()+2,month:Y.getMonth(),day:Y.getDate()},selectedDate:yK6(b)}};
jFq=function(Y){return(new $t(2)).format(new Date(Y.year,Y.month,Y.day))};
G7L=function(Y){return{year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()}};
THt=function(Y,b){Y=(Y+(Number(b.utcOffsetSec)+(new Date(Y*1E3)).getTimezoneOffset()*60))*1E3;b=G7L(new Date(Y));return{date:b,secondsSinceMidnight:Math.floor((Y-(new Date(b.year,b.month,b.day)).getTime())/1E3)}};
JKv=function(Y,b){b=b.months.findIndex(function(w){return w.year===Y.year&&w.month===Y.month});
return b>=0?b:void 0};
u0a=function(Y){if(!Y)return!1;try{if(Y.host&&Y.host.tagName==="YT-FORMATTED-STRING"&&Y.host.id==="contenteditable-textarea"||Y.nodeType===Node.ELEMENT_NODE&&Y.tagName==="YTD-COMMENTBOX")return!0}catch(b){return!1}return u0a(Y.parentNode)};
vT=function(Y){return Y?!(Y.tagName!=="A"||!Y.href||!Y.classList.contains("yt-simple-endpoint")):!1};
YpM=function(Y){return Y?Y.tagName==="IMG"&&Y.classList.contains("emoji"):!1};
bfI=function(Y,b,w){if(!Y)return null;var V=vT(Y);if(V&&w)return b=Y.pathname.substring(Y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(V&&!w)return document.createTextNode("");if(YpM(Y))return w=Y.alt,Y=Y.dataset.emojiId,!Y&&b&&(b=_.PT(b,w))&&b.isCustomEmoji&&(Y=b.emojiId),Y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+Y+">"):document.createTextNode(w);V=Y.cloneNode(!1);for(var H=0;H<Y.childNodes.length;++H){var f=bfI(Y.childNodes[H],b,w);f&&V.appendChild(f)}return V};
ZH=function(Y){return Y?vT(Y)?Y:ZH(Y.lastChild):null};
w_q=function(Y){return Y?vT(Y)?Y:w_q(Y.firstChild):null};
VUG=function(Y){if(!Y)return null;for(var b=Y.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=ZH(b))?Y=b:Y=(Y=Y.parentNode)?ZH(Y.previousElementSibling):null;return Y};
HfI=function(Y){if(!Y)return null;for(var b=Y.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=w_q(b))?b:HfI(Y.parentNode)};
gYg=function(Y){var b=_.BT(),w=b.JSC$9293_getStartNode();if(!u0a(w.parentNode))return null;b=b.JSC$9293_getStartOffset();if(w.nodeType===Node.TEXT_NODE){var V=_.FE(w,vT);if(V){if(Y&&b===0||!Y&&b===w.length)return V}else{if(Y&&b===w.length)return!w||w.nodeName==="BR"||w.nextElementSibling&&_.nx(w.nextElementSibling,"display")==="block"?null:w_q(w.nextElementSibling);if(!Y&&b===0)return w?ZH(w.previousElementSibling):null}}if(w.nodeType===Node.ELEMENT_NODE)if(Y){if(0<=b&&b<w.childNodes.length)return w_q(w.childNodes[b])}else if(0<
b&&b<=w.childNodes.length)return ZH(w.childNodes[b-1]);return null};
fOb=function(Y,b,w){if(!Y)return null;if(Y.nodeType===Node.TEXT_NODE)if(w){var V=VUG(Y);if(V&&!/^\s+\S/.test(Y.wholeText.substr(0,b)))return V}else if((V=HfI(Y))&&!/\S\s+/.test(Y.wholeText.substr(b,Y.wholeText.length)))return V;return Y.nodeType===Node.ELEMENT_NODE?w?VUG(Y.childNodes[b]):HfI(Y.childNodes[b]):fOb(Y.parentNode,b,w)};
Ncq=function(Y){if(Y.hasChildNodes())switch(Y.tagName){case "DIV":case "A":case "SPAN":var b="";for(Y=Y.firstChild;Y;Y=Y.nextSibling)b+=Ncq(Y);return b;default:return""}else switch(Y.nodeType){case 3:return Y.textContent;default:return""}};
My=function(Y,b){return Y.year===b.year&&Y.month===b.month&&Y.day===b.day};
eV=function(Y,b){return Y.year!==b.year?Y.year<b.year:Y.month!==b.month?Y.month<b.month:Y.day<b.day};
EYt=function(Y){return{year:Y.getFullYear(),month:Y.getMonth(),day:Y.getDate()}};
cGq=function(Y){var b=KsK;b=b===void 0?KsK:b;b(new Date(Y.year,Y.month,Y.day))};
px=function(Y){return EYt(new Date(Number(Y.seconds)*1E3))};
Ugb=function(Y){return Y.year!==void 0&&Y.month!==void 0&&Y.day!==void 0};
X_G=function(Y){return Y.start!==void 0&&Y.end!==void 0};
Dg6=function(Y){return X_G(Y)?Y.start:Y};
mgu=function(Y){return X_G(Y)?Y.end:void 0};
IOM=function(Y,b){for(var w=[],V=new Date(Y.start.year,Y.start.month);V.getFullYear()<Y.end.year||V.getFullYear()===Y.end.year&&V.getMonth()<=Y.end.month;){var H=w,f=H.push,E=V.getFullYear(),U=V.getMonth(),X=Y,I=b,k=void 0,l=[],x=Object.freeze({extraCssClass:"invisible"}),Q=new Date(E,U),Z=EYt(Q);Q=Q.getDay();for(var e=EYt(new Date);Z.month===U;){Q!==oYq&&k||(k=Array.from({length:7}).fill(x),l.push(k));var O={date:{year:E,month:U,day:Z.day},extraCssClass:"",debugClass:""};O.extraCssClass=I(O.date,
Z,e,X).trim();k[(Q-oYq+7)%7]=O;Z=Z.day===CTM(Z.year,Z.month)?Z.month===11?{year:Z.year+1,month:0,day:1}:{year:Z.year,month:Z.month+1,day:1}:{year:Z.year,month:Z.month,day:Z.day+1};Q=(Q+1)%7}f.call(H,{weeks:l,monthLabel:O1.SHORTMONTHS[U]+" "+E,year:E,month:U,monthLabelExtraCssClass:l[0][2]===x?"shift-down-label":""});V.setMonth(V.getMonth()+1)}return w};
kRG=function(Y,b){b=b.months.findIndex(function(w){return w.year===Y.year&&w.month===Y.month});
return b>=0?b:void 0};
hvB=function(Y,b){a:{var w=w===void 0?[2,3]:w;w=_.N(w);for(var V=w.next();!V.done;V=w.next()){var H=new Date;if((new lOq(V.value)).parse(b,H,{validate:!0})){H.setHours(0,0,0,0);b=H;break a}}b=null}if(!b)return{isValid:!1,value:void 0};b=EYt(b);w=Y.end;return eV(b,Y.start)||eV(w,b)?{isValid:!1,value:void 0}:{isValid:!0,value:b}};
vYv=function(Y){var b=xgg;b=b===void 0?qp6:b;var w=Y.columnsToShow||[],V=set(Y.columnDimensions,Y.columnsToShow,Y.leftFloatingColumns,b);return w.map(function(H,f){var E=Y.columns[H];if(E===void 0)throw Error("Oh");var U=V?V[f]:"";var X=Y.getCustomTooltip?Y.getCustomTooltip(H,E.headerTooltipParagraphs):E.headerTooltipParagraphs;var I=Qer(Y,H);return{type:H,index:f,style:U,classes:I,headerName:E.headerName||"",headerIcon:E.headerIcon,headerTooltipParagraphs:X||[],headerTooltipHelpContext:E.headerTooltipHelpContext,
sortOrders:E.sortOrders||[],selectionState:E.isSelectionCheckbox?Y.selectionState:void 0}})};
Qer=function(Y,b){var w=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],V=Y.columns[b];if(V===void 0)return"";var H=w.includes("DEFAULTS")&&V.cssClass?[V.cssClass]:[];if(w.includes("SORTING")){V.sortOrders&&V.sortOrders.length&&H.push("sortable");if(Y.sorting&&Y.sorting.columnType===b)a:switch(Y.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var f="column-sorted";break a;default:f=""}else f="";f&&H.push(f)}w.includes("FLOATING")&&(b=Y.columnsToShow.indexOf(b),Y.leftFloatingColumns&&b<Y.leftFloatingColumns&&
H.push("floating-column"),Y.leftFloatingColumns&&b===Y.leftFloatingColumns-1&&H.push("last-floating-column"));w.includes("RIGHT_ALIGN")&&V.rightAlignHeader&&H.push("right-align");return H.filter(function(E){return E}).join(" ")};
set=function(Y,b,w,V){w=w===void 0?0:w;V=V===void 0?qp6:V;if(Y){var H=[],f=0;Psq(Y,b,V).forEach(function(E,U){var X="min-width:"+E.minWidth+"px;padding-left:"+E.paddingLeft+"px;padding-right:"+E.paddingRight+"px;flex:"+E.flexGrow+" 0 "+E.minWidth+"px;";E.maxWidth!==Infinity&&(X=[X,"max-width:"+E.maxWidth+"px;"].join(""));f>0&&U<w&&(X=[X,"left:"+f+"px;"].join(""));H.push(X);f+=E.minWidth+E.paddingLeft+E.paddingRight});
return H}};
Psq=function(Y,b,w){w=w===void 0?qp6:w;return b.map(function(V,H){V=Y&&Y[V]||{};var f=H===0?w.paddingLeftFirstColumn:w.padding;V.paddingLeft!==void 0&&(f=V.paddingLeft);H=H===b.length-1?w.paddingRightLastColumn:w.padding;V.paddingRight!==void 0&&(H=V.paddingRight);return{paddingLeft:f,paddingRight:H,minWidth:V.minWidth!==void 0?V.minWidth:w.minWidth,maxWidth:V.maxWidth!==void 0?V.maxWidth:w.maxWidth,flexGrow:V.flexGrow!==void 0?V.flexGrow:w.flexGrow}})};
ZfM=function(Y){var b=Y.reduce(function(V,H){var f=H.columnId,E={};H.headerText&&(E.headerName=_.Tx(H.headerText));H.rightAlignHeader&&(E.rightAlignHeader=H.rightAlignHeader);var U;if((U=H.headerIcon)==null?0:U.iconType)E.headerIcon=_.IR(H.headerIcon.iconType);V[f]=E;return V},{}),w=Y.filter(function(V){return!V.hideColumn}).map(function(V){return V.columnId});
Y=Y.filter(function(V){return!!V.dimensions}).reduce(function(V,H){V[H.columnId]=H.dimensions;
return V},{});
return{columns:b,columnsToShow:w,columnDimensions:Y}};
_.Bct=function(Y){return Y?Y.simpleText?Y.simpleText:Y.runs?Y.runs.map(function(b){return b.text}).join(""):"":""};
Ofa=function(Y){var b=Y.data;var w=Y.onTap;var V=Y.isSelected;var H=Y.onFocusIn;if(!b)return{};Y=nY6(b);V===void 0&&(V=b==null?void 0:b.isSelected);var f;return{text:MUr(b,Y),startIcon:(f=b.icon)==null?void 0:f.iconType,state:V?0:2,type:0,onTap:eva(b,w),accessibilityLabel:p_B(b,Y),onFocusIn:function(){return H==null?void 0:H()}}};
MUr=function(Y,b){if(!b)return Y.text?_.Bct(Y.text):void 0};
eva=function(Y,b){return function(w){b==null||b(w,Y)}};
nY6=function(Y){Y=Y.style&&Y.style.styleType;return!jrb&&Y==="STYLE_EXPLORE_LAUNCHER_CHIP"};
p_B=function(Y,b){if(b){var w,V,H;return(H=(w=Y.accessibilityData)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label)!=null?H:MUr(Y,!1)}};
t9=function(Y){return{signalAction:{signal:Y}}};
dgM=function(){return _.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?tUu:_.Rvg};
F8L=function(Y,b){Y=Y===void 0?"SOFT_RELOAD_PAGE":Y;b=b===void 0?49504:b;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.NV(_.sa("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:b}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:Y}}]}}}};
L8b=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.NV(_.sa("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:dgM()}};
Spv=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.NV(_.sa("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:dgM()}};
aOt=function(Y,b){var w=_.NV(_.sa("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),V=_.NV(_.sa("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),H={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.NV(_.sa("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};H.serviceEndpoint=Y?Y:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[t9("SOFT_RELOAD_PAGE")]}};return{title:w,bodyText:V,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:H},
style:{value:b!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
zvb=function(Y){Y=Y===void 0?{}:Y;return{title:_.NV(Y.localizedZeroStateTitleText===void 0?"":Y.localizedZeroStateTitleText),bodyText:_.NV(Y.localizedZeroStateMessage===void 0?"":Y.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NV(Y.localizedZeroStateButtonText===void 0?"":Y.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[rGb]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.if6=function(Y,b,w,V,H,f,E,U){V=V===void 0?!1:V;H=H===void 0?!1:H;f=f===void 0?0:f;E=E===void 0?-Infinity:E;U=U===void 0?!1:U;var X=[],I=_.NV(_.sa("SMART_DOWNLOADS",void 0,"Smart downloads"));E=_.NV(W8B(f,E,Y.length));f=void 0;V?Y.length>0?f=K8M(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.q("kevlar_manual_downloads_above"),I,E):U?f={alertBannerViewModel:{heading:{content:w.localizedOptInBannerTitleText===void 0?"":w.localizedOptInBannerTitleText},body:{content:w.localizedPromptMessage===
void 0?"":w.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.sa("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.sa("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:_.gUB}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:H&&(f={backgroundPromoRenderer:{bodyText:_.NV(_.sa("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"}}}):H&&(f={alertBannerViewModel:{heading:{content:w.localizedOptInBannerTitleText===void 0?"":w.localizedOptInBannerTitleText},
body:{content:w.localizedOptInMessage===void 0?"":w.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.sa("TURN_ON",void 0,"Turn on"),accessibilityText:_.sa("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});w=_.NV(_.sa("YOUR_DOWNLOADS",void 0,"Your downloads"));H=void 0;b.length>0?(H=void 0,_.q("kevlar_display_downloads_numbers")&&(H=_.NV(_.QX("VIDEO_COUNT",b.length))),H=K8M(b,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,w,H)):V||Y.length||(H={backgroundPromoRenderer:{bodyText:_.NV(_.sa("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}}}});f&&!_.q("kevlar_manual_downloads_above")&&X.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:139572}}}});H&&X.push({richSectionRenderer:{content:H,loggingDirectives:{clientVeSpec:{uiType:51721}}}});f&&_.q("kevlar_manual_downloads_above")&&X.push({richSectionRenderer:{content:f,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(b.length>0||V&&Y.length>0)&&X.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.NV(_.sa("DOWNLOADS_AVAILABILITY",
void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:X}};
_.Cs6=function(Y){return AGu(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.yG6=function(Y){return AGu(Y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
AGu=function(Y,b){var w=[];Y=K8M(Y,b,!0);w.push({richSectionRenderer:{content:Y}});return{contents:w}};
K8M=function(Y,b,w,V,H){w=w===void 0?!1:w;var f="RESPONSIVE_SIZE_STANDARD";_.q("kevlar_modern_downloads_compact")?f="RESPONSIVE_SIZE_COMPACT":_.q("kevlar_modern_downloads_extra_compact")&&(f="RESPONSIVE_SIZE_EXTRA_COMPACT");Y={isExpanded:w,contents:Rn(Y),entitySelectorType:b,responsiveContainerConfiguration:{responsiveSize:f}};V&&(Y.title=V);H&&(Y.subtitle=H);w||(_.q("kevlar_smart_downloads_show_more_button")?(Y.showMoreButton={buttonRenderer:{accessibility:{label:_.sa("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.NV(_.sa("SHOW_MORE",void 0,"Show more"))}},Y.showLessButton={buttonRenderer:{accessibility:{label:_.sa("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.NV(_.sa("SHOW_LESS",void 0,"Show less"))}}):(Y.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.sa("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,
"Previous"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:11760}}}},Y.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.sa("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:11760}}}},Y.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.sa("VIEW_ALL",void 0,"View all"),accessibilityText:_.sa("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:gb("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:Y}};
Rn=function(Y){var b=[];Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,zze(w)){var V=b,H=V.push;var f=void 0;if(w==null?0:(f=w.videoEntity)==null?0:f.videoId){f=W$(_.u3().getState(),w.videoEntity.videoId);var E=_.u3().getState();var U=_.I8(w.videoEntity.videoId,"mainVideoEntity");E=!!_.p8(E.entities)[U];E={videoId:w.videoEntity.videoId,title:Ef(w.videoEntity.title),shortBylineText:Ef(w.channelEntity.title),thumbnail:w.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:E&&_.q("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:zAb(w.videoEntity.videoId,f,w.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.sa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};w.videoEntity.lengthSeconds&&(E.thumbnailOverlays=EVK(w.videoEntity.lengthSeconds,f));E.isWatched=f>0;_.q("kevlar_modern_downloads_page")&&(E.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:w.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.sa("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},E.badges=void 0);w=E}else w={};H.call(V,{richItemRenderer:{content:{videoRenderer:w},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(rxb(w)){V=b;H=V.push;var X=U=f=void 0,I=void 0,k=void 0,l=void 0,x=void 0,Q=void 0,Z=void 0,e=void 0,O=void 0,L=void 0;E=w.mainPlaylistEntity.playlistId;var r=w==null?void 0:(L=w.mainPlaylistEntity)==null?void 0:(O=L.thumbnailStyleData)==null?void 0:(e=O[0])==null?void 0:(Z=e.value)==null?void 0:(Q=Z.collageThumbnail)==
null?void 0:Q.coverThumbnail;if(E&&r){Q=W0t(E);!_.q("enable_offline_playlist_page")&&(w==null?0:(x=w.mainPlaylistEntity)==null?0:x.videos)&&(x=w==null?void 0:(l=w.mainPlaylistEntity)==null?void 0:(k=l.videos)==null?void 0:k[0],k=_.D7(x).entityId,k=JSON.parse(k).videoId,k!==void 0&&(l=W$(_.u3().getState(),k),Q=_.f8(k,E,void 0,void 0,l)));k=[];if(w==null?0:(I=w.mainPlaylistEntity)==null?0:(X=I.videos)==null?0:X.length)k=[WsG(),Object.assign({},(U=zxG(w==null?void 0:w.mainPlaylistEntity.videos.length))!=
null?U:{})];w={playlistId:E,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:r}},navigationEndpoint:Q,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:k,title:Ef(w.mainPlaylistEntity.title),shortBylineText:Ef(w==null?void 0:(f=w.channelEntity)==null?void 0:f.title),badges:[{metadataBadgeRenderer:{label:_.sa("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.q("kevlar_modern_downloads_page")&&(w.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:$g6,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:E,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.sa("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},w.badges=void 0)}else w=void 0;H.call(V,{richItemRenderer:{content:{playlistRenderer:w},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return b};
W8B=function(Y,b,w){Y=Y?jeI(Y):"";b!==void 0&&isFinite(b)?b===0?b=_.sa("UPDATING",void 0,"Updating..."):(b=Nwv(new Date(b),new Date),b=_.sa("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var V="";Y&&b&&(V=" \u2022 ");if(w&&_.q("kevlar_display_downloads_numbers")){w=_.QX("VIDEO_COUNT",w);if(Y||b)V=" \u2022 ";return w+V+Y+V+b}return Y+V+b};
GR6=function(Y){return OiI(Y.entities).length};
_.Tce=function(Y,b){var w=UWu(Y.responsiveSize),V;Y=!((V=Y.responsiveMap)==null||!V.some(function(H){return H.containerSize==="CONTAINER_SIZE_NARROW"&&H.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:b,sizing:w,enableFullBleedForSingleCol:!1,isCompactList:w==="COMPACT"&&Y}};
JGI=function(Y,b){return _.kt(Y.entities,"votingEntity",b)};
uwq=function(Y){if(Y){var b;return((b=_.fH().resolve(_.HQ(_.GT)))==null?0:b())?Y.darkTheme:Y.lightTheme}};
Ynq=function(Y,b){if(Y.simpleText)return Object.assign({},Y,{simpleText:yd(Y.simpleText,b)});if(!Y.runs)return Y;for(var w=Object.assign({},Y,{runs:[]}),V=0,H=_.N(Y.runs),f=H.next();!f.done;f=H.next())if(f=f.value,f.text)if(V+f.text.length<=b)w.runs.push(f),V+=f.text.length;else return w.runs.push(Object.assign({},f,{text:yd(f.text,b-V)})),w;return Y};
bWg=function(Y,b){return _.kt(Y.entities,"chipBarStateEntity",b)};
wSL=function(Y,b){return _.kt(Y.entities,"chipEntity",b)};
HWa=function(Y,b,w,V){return function(){var H=Vbu.has(Y.displayType)&&Y.selected,f=H&&Y.deselectCommand?Y.deselectCommand:Y.tapCommand;!f||H&&V||_.AA(f,{form:{element:b==null?void 0:b.value}});w==null||w()}};
geu=function(Y){switch(Y){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
fnv=function(Y,b){return{triggeringElement:Y,onDwellTriggeredFn:function(){var w={triggeringElement:Y,loadVideoPreviewEventData:b},V=document.querySelector(".video-preview");V&&V.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:w}))},
onDwellEndFn:function(){var w=document.querySelector(".video-preview");w&&w.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Nu6=function(Y,b){var w=_.fH().resolve(_.HQ(G$v)),V=function(){var H=b();return w&&H?fnv(Y.value,H):null};
_.tl(function(){var H=V();w&&H&&Promise.resolve().then(function(){w.registerElement(H)});
_.R2(function(){w&&H&&Promise.resolve().then(function(){T$K(w,H)})})},"csPUge")};
cbg=function(Y){var b=Y.dataset.resizeObserverId;if(b)return b;b=""+Eee++;return Y.dataset.resizeObserverId=b};
Uev=function(Y,b){var w=cbg(Y);dv.has(w)||dv.set(w,new Set);dv.get(w).add(b);FB.has(w)&&b(Object.assign({},{target:Y},FB.get(w)))};
XSu=function(Y){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;var w=cbg(b.target),V=Object.assign({},{target:b.target},FB.get(w));if(V!=null&&V.contentRect?V.contentRect.width!==b.contentRect.width||V.contentRect.height!==b.contentRect.height:1)for(FB.set(w,{borderBoxSize:b.borderBoxSize,contentBoxSize:b.contentBoxSize,contentRect:b.contentRect,devicePixelContentBoxSize:b.devicePixelContentBoxSize}),w=_.N(dv.get(w)||[]),V=w.next();!V.done;V=w.next())V=V.value,V(b)}};
meL=function(){return Lx?Lx:Lx=new DeK(XSu)};
oea=function(Y,b){var w=cbg(Y);dv.has(w)&&(dv.get(w).delete(b),dv.get(w).size===0&&(dv.delete(w),FB.delete(w),Lx.unobserve(Y),delete Y.dataset.resizeObserverId));dv.size===0&&Lx&&(Lx.disconnect(),Lx=void 0)};
kqq=function(Y,b){var w=_.fH().resolve(Vc);return In6.map(function(V){return w.observe(Y,b,V)})};
lna=function(Y){var b=_.fH().resolve(Vc);Y.forEach(function(w){b.unobserveByKey(w)})};
_.qne=function(Y,b){var w=Object.assign({},h2G,b);b=_.N(t36());var V=b.next().value,H=b.next().value,f=function(E){var U=E.contentRect.height;if((E=E.contentRect.width)||U||w.canHaveZeroSize)V.width()===E&&V.height()===U||H(V,{height:U,width:E})};
_.dx(function(){var E=Y instanceof HTMLElement?Y:Y.value,U=xeB(f,w.throttleMs),X=[];w.useVisibilityObserver&&(X=kqq(E,function(I,k){requestAnimationFrame(function(){k==="visible"?(Uev(E,U),meL().observe(E)):oea(E,U)})}));
X.length||(Uev(E,U),meL().observe(E));_.R2(function(){X.length&&(lna(X),X.length=0);oea(E,U)})});
return V};
QSI=function(Y){var b=Y.data;var w=Y.callback;var V=Y.enableSingleChipSelection;var H=Y.disableChipsScrollAnimation;var f=_.TM("div"),E=L7(!1),U=L7(0);Y={};Y=_.N(hd(b.autoselectedChipIndex!=null?(Y[b.autoselectedChipIndex]=!0,Y):{}));var X=Y.next().value,I=Y.next().value,k=function(){var o6=f.value;return o6==null||o6.scrollLeft-1<=0},l=function(){var o6=f.value;
return o6==null?!1:o6.scrollLeft+1>=(o6==null?NaN:o6.scrollWidth)-(o6==null?NaN:o6.clientWidth)};
Y=_.N(hd(k()));var x=Y.next().value,Q=Y.next().value;Y=_.N(hd(l()));var Z=Y.next().value,e=Y.next().value;Y=b.isHorizontallyScrollable;var O=function(o6){f.value!=null&&(_.zO("HTML_DIR")==="rtl"&&(o6=-o6),f.value.scrollBy({left:o6,behavior:H?"instant":"smooth"}))},L=function(){O(-320)},r=function(){O(320)},C=_.Q_(function(o6){E.value=!0;
U.value=o6.clientX}),W=_.Q_(function(o6){if(E.value){o6=o6.clientX;
var lI=o6-U.value;U.value=o6;var Zt;(Zt=f.value)==null||Zt.scrollBy({left:-lI})}}),y=_.Q_(function(){var o6=k(),lI=l();
o6!==x&&Q(o6);lI!==Z&&e(lI)});
wS("pointerup",function(){E.value&&(E.value=!1)});
var G={},Nr={};return _.m("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},bN(b.title,function(){return _.m("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.m("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},b.title),sSM(b.overflowButton))}),_.m("div",{class:"ytChipsShelfViewModelChipsShelfContent"},bN(b.previousButton!=null,function(){var o6={};
return _.m("div",{class:_.qR("ytChipsShelfViewModelLeftArrowContainer",(o6.ytChipsShelfViewModelLeftArrowContainerIsHidden=x,o6))},sSM(b.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:L}}))}),_.m("div",{el:f,
"on:pointerdown":C,"on:pointermove":W,"on:scroll":y,class:_.qR("ytChipsShelfViewModelChipsScrollContainer",(G.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!Y,G))},_.m("div",{class:_.qR("ytChipsShelfViewModelChipsContainer",(Nr.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!Y,Nr.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!Y&&!1,Nr))},(b.contents||[]).map(function(o6,lI){return _.m("div",{class:"ytChipsShelfViewModelChipWrapper"},sSM(o6,
{chipViewModel:{callback:function(Zt,eL){if(V){var OM={};I((OM[lI]=eL,OM))}else OM={},I(Object.assign({},X,(OM[lI]=eL,OM)));w==null||w(Zt,eL,lI)},
disableDeselection:V,selected:!!X[lI]}}))}))),bN(b.nextButton!=null,function(){var o6={};
return _.m("div",{class:_.qR("ytChipsShelfViewModelRightArrowContainer",(o6.ytChipsShelfViewModelRightArrowContainerIsHidden=Z,o6))},sSM(b.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:r}}))})))};
P0a=function(Y,b,w,V,H){Y=b?Y.switchOffCommand:Y.switchOnCommand;if(V&&H)ver(Y,w,H);else{var f,E;(f=_.KA({elementsCommand:Y}))==null||(E=f.onclick)==null||E.call(f,w)}};
ver=function(Y,b,w){Y=_.KA({elementsCommand:Y,additionalCommandArgs:{commandController:{onSuccess:function(){w(!1)},
onServerError:function(){w(!1)}}}});
if(Y==null?0:Y.onclick)Y.onclick(b),w(!0)};
Buv=function(Y){if(Y)return _.v(Y,ZWG)};
OWa=function(Y,b,w){if(b)return[neG];switch(Y){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[SV];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return w?[SV]:[MbL,SV];case "TRANSFER_STATE_PAUSED_BY_USER":return[e2I,SV];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[pSG,SV];default:return[neG]}};
tbg=function(Y,b,w,V){return OWa(Y,b,V).map(function(H){var f=H.text,E=H.iconType,U=H.videoAction;H=H.playlistAction;f=f?{content:f}:void 0;E=E&&{sources:[{clientResource:{imageName:E}}]};var X=(0,_.BL.unsafeClone)(w);if(X){var I=_.v(X,_.kh),k=_.v(X,_.lX);I&&U?I.action=U:k&&H&&(k.action=H)}return{title:f,leadingImage:E,rendererContext:X&&{commandContext:{onTap:{innertubeCommand:X}}}}})};
R2M=function(Y){Y=_.y4(Y.rendererContext);var b;return(b=_.v(Y,_.lX))==null?void 0:b.playlistId};
deI=function(Y){var b;return(b=Y.listItems)==null?void 0:b.some(function(w){var V;return _.$h((V=_.v(w,_.Q4))==null?void 0:V.rendererContext)})};
L9I=function(Y){var b;return(b=Y.listItems)==null?void 0:b.some(function(w){w=_.v(w,_.Q4);return!!_.v(w==null?void 0:w.leadingAccessory,F9L)})};
an=function(Y){var b=_.fH().resolve(_.HQ(_.GT));return b!=null&&b()?Y.darkThemeColorPalette:Y.lightThemeColorPalette};
zL=function(Y){return{primaryTextColor:rv(Y,0),secondaryTextColor:rv(Y,1),optionColor:rv(Y,2),backgroundColor:rv(Y,3),videoBackgroundColor:rv(Y,4)}};
rv=function(Y,b){if(Y){switch(b){case 0:Y=Y.primaryTitleColor;break;case 1:Y=Y.secondaryTitleColor;break;case 2:Y=Y.surgeColor;break;case 3:Y=Y.section2Color;break;case 4:Y=Y.section3Color;break;default:return}if(Y)return _.WH(Y)}};
Snv=function(Y){return Y?_.KX(Y):""};
anr=function(Y){return(Y==null?void 0:Y.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
rbr=function(Y,b){var w;return"linear-gradient(to bottom, "+((w=b==null?void 0:b.map(function(V){var H=Y?V.darkThemeColor:V.lightThemeColor;return H?_.KX(H)+" "+((V==null?void 0:V.startLocation)||0)*100+"%":"transparent"}))==null?void 0:w.join(", "))+")"};
z2q=function(Y,b,w,V,H){if(!((V==null?0:V.height)&&(V==null?0:V.width)))return{size:0};var f=V.width;V=V.height;if(H)return b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&f>V?{size:312/PUe}:b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(w!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||Y!==1&&Y!==2||b!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&b!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&b!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||V===f)switch(Y){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||V>f)switch(Y){case 1:case 3:return{size:240*v6G};default:return{size:360*v6G}}switch(Y){case 1:case 2:return{size:1/PUe*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.W9g=function(Y){if(!("matchMedia"in window))return _.C7(Error("Ph")),function(){return!1};
var b=window.matchMedia(Y);Y=_.N(_.kw(b.matches,void 0,"jLJc8e"));var w=Y.next().value,V=Y.next().value,H=function(f){V(f.matches)};
b.addEventListener?(b.addEventListener("change",H),_.R2(function(){b.removeEventListener("change",H)})):b.addListener&&(b.addListener(H),_.R2(function(){b.removeListener(H)}));
return w};
K9B=function(Y){return Y==="IMAGE_BANNER_STYLE_INSET"||Y==="IMAGE_BANNER_STYLE_UNKNOWN"};
iWG=function(){if(!("matchMedia"in window))return _.C7(Error("Ph")),function(){return 0};
var Y=FP(function(){return window.matchMedia("(max-width: 527.9px)")}),b=FP(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),w=FP(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),V=FP(function(){return window.matchMedia("(min-width: 1024px)")}),H=_.N(_.kw(Y.matches,void 0,"og9kEc")),f=H.next().value,E=H.next().value;
H=_.N(_.kw(b.matches,void 0,"ybDWCb"));var U=H.next().value,X=H.next().value;H=_.N(_.kw(w.matches,void 0,"o0Gfh"));var I=H.next().value,k=H.next().value;H=_.N(_.kw(V.matches,void 0,"yqUUgd"));var l=H.next().value,x=H.next().value,Q=FP(function(){return function(L){E(L.matches)}}),Z=FP(function(){return function(L){X(L.matches)}}),e=FP(function(){return function(L){k(L.matches)}}),O=FP(function(){return function(L){x(L.matches)}});
_.dx(function(){Y.addEventListener?(Y.addEventListener("change",Q),b.addEventListener("change",Z),w.addEventListener("change",e),V.addEventListener("change",O)):Y.addListener&&(Y.addListener(Q),b.addListener(Z),w.addListener(e),V.addListener(O));_.R2(function(){Y.removeEventListener?(Y.removeEventListener("change",Q),b.removeEventListener("change",Z),w.removeEventListener("change",e),V.removeEventListener("change",O)):Y.removeListener&&(Y.removeListener(Q),b.removeListener(Z),w.removeListener(e),
V.removeListener(O))})});
return function(){return f()?1:U()?2:I()?3:l()?4:0}};
AbG=function(Y){var b=0;Y=_.N([Y.title,Y.metadata,Y.actions,Y.description,Y.attribution]);for(var w=Y.next();!w.done;w=Y.next())w.value&&b++;return b};
C0I=function(Y){return Y===1||Y===2?1:0};
$eL=function(Y){var b,w=((b=_.fH().resolve(_.HQ(_.GT)))==null?0:b())&&Y.data.darkThemeImage?Y.data.darkThemeImage:Y.data.image;b=_.m("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.m("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},w?_.m(_.Y_,{data:w,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),ybM(Y.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));w=_.m(_.wv,{text:Y.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var V=Y.data;if(V.bodyText){var H=[];V=_.N(V.bodyText);for(var f=V.next();!f.done;f=V.next())H.push(_.m(_.wv,{text:f.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else H=_.m(_.Uz,null);return _.m("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},b,w,H,ybM(Y.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.m(_.wv,{text:Y.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.m(_.wv,{text:Y.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Gqq=function(Y){Y=(new jSg).parse(Y);return(new o3).render(Y).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(b){var w=b.split(":").map(Number),V=0,H=0;if(w.length===3)w=_.N(w),V=w.next().value,H=w.next().value,w=w.next().value;else if(w.length===2)w=_.N(w),H=w.next().value,w=w.next().value;else if(w.length===1)w=_.N(w).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(V*3600+H*60+w)+'" role="button">'+b+"</span>"})};
Tut=function(Y){Y=_.N(Y.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var b=Y.next(),w={};!b.done;w={clickHandler$jscomp$4:void 0},b=Y.next()){b=b.value;w.clickHandler$jscomp$4=function(H){H=Number(H.target.getAttribute("data-time"));if(isNaN(H))throw Error("Rh");var f;(f=_.mZ())==null||f.seekTo(H,!0)};
var V=function(H){return function(f){f.key!=="Enter"&&f.key!=="Space"||(0,H.clickHandler$jscomp$4)(f)}}(w);
b.setAttribute("tabindex","0");b.removeEventListener("click",w.clickHandler$jscomp$4);b.removeEventListener("keydown",V);b.addEventListener("click",w.clickHandler$jscomp$4);b.addEventListener("keydown",V)}};
JbI=function(){return _.m("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.m(WT,{percentWidth:100}),_.m(WT,{animationDelay:200}),_.m(WT,{animationDelay:400}),_.m(WT,{animationDelay:600}),_.m(WT,{animationDelay:800,percentWidth:60}),_.m("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.m(WT,{percentWidth:100}),_.m(WT,{animationDelay:200}),_.m(WT,{animationDelay:400}),_.m(WT,{animationDelay:600,percentWidth:50}))};
WT=function(Y){return _.m("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(Y.percentWidth===void 0?100:Y.percentWidth)+"%"},_.m("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(Y.animationDelay===void 0?0:Y.animationDelay)+"ms"}))};
uYI=function(){var Y=_.N(_.kw(function(){return""},void 0,"v2wS5e")),b=Y.next().value;
return[function(){return b()()},
Y.next().value]};
brq=function(Y){Y=Y===void 0?{}:Y;return{title:_.NV(Y.localizedOptInBannerTitleText===void 0?"":Y.localizedOptInBannerTitleText),titleLength:19,subtitle:_.NV(Y.localizedOptInMessage===void 0?"":Y.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NV(_.sa("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:_.NV(_.sa("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:[Ym6]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
wse=function(Y,b){Y=Y?jeI(Y):"";b!==void 0&&isFinite(b)?b===0?b=_.sa("UPDATING",void 0,"Updating..."):(b=Nwv(new Date(b),new Date),b=_.sa("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var w="";Y&&b&&(w=" \u2022 ");return _.NV(Y+w+b)};
gzq=function(Y,b,w,V,H,f){b=b===void 0?0:b;var E=VJr[b],U=E.title,X=E.iconType,I=E.topButtonRenderer,k=E.sectionClientVE;E=E.videoClientVE;var l;if(b!==1||Y.length){w=[];Y=_.N(Y);for(V=Y.next();!V.done;V=Y.next()){var x=V.value;if(zze(x))w.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:x.videoEntity.videoId,title:Ef(x.videoEntity.title),shortBylineText:Ef(x.channelEntity.title),thumbnail:x.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:x.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.sa("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:E}}}}}});else if(rxb(x)){V=w;var Q=V.push;var Z=void 0,e=void 0,O=void 0,L=void 0,r=void 0,C=void 0,W=void 0,y=void 0,G=x.mainPlaylistEntity.playlistId,Nr=x==null?void 0:(y=x.mainPlaylistEntity)==null?void 0:(W=y.thumbnailStyleData)==null?void 0:(C=W[0])==null?void 0:(r=C.value)==null?void 0:(L=r.collageThumbnail)==null?void 0:L.coverThumbnail;L=W0t(G);if(!_.q("enable_offline_playlist_page")&&
(x==null?0:(O=x.mainPlaylistEntity)==null?0:O.videos)){b:{O=x==null?void 0:(e=x.mainPlaylistEntity)==null?void 0:e.videos;e=_.u3().getState().entities;if(O!=null&&O.length&&e)for(O=_.N(O),r=O.next();!r.done;r=O.next())if(r=_.D7(r.value).entityId,(r=JSON.parse(r).videoId)&&ezM(e,r)==="TRANSFER_STATE_COMPLETE"){e=r;break b}e=""}e!==void 0&&(L=W$(_.u3().getState(),e),L=_.f8(e,G,void 0,void 0,L))}e=i9I(_.sa("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),W0t(G));x=G&&Nr&&e?{playlistId:G,navigationEndpoint:L,
viewPlaylistText:e,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Nr}},title:Ef(x.mainPlaylistEntity.title),shortBylineText:Ef(x==null?void 0:(Z=x.channelEntity)==null?void 0:Z.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Hrv,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:G,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.sa("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:E}}}:
void 0;Q.call(V,{gridPlaylistRenderer:x})}}E={gridRenderer:{items:w}};b===1&&(l=wse(H,f))}else if(V){var o6=_.NV((Q=w==null?void 0:w.localizedPromptMessage)!=null?Q:"");E={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NV(_.sa("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.gUB}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.NV(_.sa("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};l=wse(H,f)}else o6=_.NV(_.sa("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
E={};return{contents:[{shelfRenderer:{title:U,titleAnnotation:l,icon:{iconType:X},subtitle:o6,content:E,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:I}]}}}}],loggingDirectives:{clientVeSpec:{uiType:k}}}};
fPq=function(Y,b,w,V,H,f,E,U){w=w===void 0?{}:w;V=V===void 0?!1:V;H=H===void 0?!1:H;f=f===void 0?!1:f;E=E===void 0?0:E;U=U===void 0?-Infinity:U;if(!b.length&&!Y.length&&!V)return H?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:zvb(w)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.NV(_.sa("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=[];Y.length&&X.push(gzq(Y,0));V?X.push(gzq(b,1,w,f,E,U)):H&&X.push({contents:[{statementBannerRenderer:brq(w)}]});(V&&b.length||Y.length)&&X.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.NV(_.sa("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(I){return{itemSectionRenderer:I}})};
Kx=function(Y,b){if(typeof Y!=="object")return null;Y=_.N(Object.entries(Y));for(var w=Y.next();!w.done;w=Y.next()){var V=_.N(w.value);w=V.next().value;V=V.next().value;if(w===b)return w;if(V=Kx(V,b))return w+"."+V}return null};
iJ=function(Y){var b=Y.content;return(Y=Y.styleRuns)&&b?{runs:Y.map(function(w){var V={text:b.slice(w.startIndex,w.startIndex+w.length)};w.fontColor&&(V.textColor=w.fontColor);return V})}:{simpleText:b}};
cTb=function(Y,b,w,V){var H=Neb;V&&(Y.quantity=V);if(!Y.quantity||!Y.maxQuantity)return{};V=Y.minusButton;var f=Y.plusButton,E,U,X,I;return{value:Y.quantity,maxValue:Y.maxQuantity,onChangeCallback:function(k){H(Y,k)},
minusLabel:(E=_.v(V,Eze))==null?void 0:E.label,minimumReachedLabel:(U=_.v(V,Eze))==null?void 0:U.limitReachedLabel,plusLabel:(X=_.v(f,Eze))==null?void 0:X.label,maximumReachedLabel:(I=_.v(f,Eze))==null?void 0:I.limitReachedLabel,disabled:b,onRemoveCommand:w}};
Neb=function(Y,b){var w=Y.quantityIncrementerEntityKey;if(w){var V={};V.quantity=b;_.Td(_.R1("quantityIncrementerEntity",w,V));Y.onChangeCommand&&_.AA(Y.onChangeCommand)}};
UAu=function(Y){return _.q("kevlar_comments_clone_data_killswitch")?Y:_.BL.unsafeClone(Y)};
mAG=function(Y,b){(Y=Xsr(Y))&&(b?DAt.push({command:Y,sourceData:{},commandContext:void 0}):_.fH().resolve(_.Nn).resolveCommand(Y))};
Xsr=function(Y){return _.v(Y,_.rI)};
ozq=function(){var Y=window.performance.timeOrigin+window.performance.now(),b=(new _.A9).setSeconds(Y/1E9);return _.Zg(b,2,_.vI(Y%1E9),0)};
Cx=function(Y,b){var w=_.v(_.v(Y,_.rI),IPb);w&&(b&&(w.serializedAdditionalMetadata=_.YM(b)),mAG(Y,!0))};
k0v=function(Y){switch(Y){case 2:return"MINI_APP_AD_TRIGGER_TYPE_WITHIN";case 3:return"MINI_APP_AD_TRIGGER_TYPE_REWARD";case 1:return"MINI_APP_AD_TRIGGER_TYPE_BEFORE";default:return"MINI_APP_AD_TRIGGER_TYPE_UNSPECIFIED"}};
lP6=function(){return!!_.zO("ID_TOKEN")};
qmv=function(Y){return Y instanceof Error&&Y.cause instanceof hNa&&Y.cause.rpcErrorCode!==void 0?!xAe.includes(Y.cause.rpcErrorCode):!0};
Q9K=function(){return _.Jq(s96,{authuser:""+(_.zO("SESSION_INDEX")||0)})};
ym=function(Y,b,w,V){w=w===void 0?"MINI_APP_SDK_API_UNSPECIFIED":w;V=V===void 0?"":V;var H=new _.BQ;w={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:V,sdkApi:w};Y instanceof Error&&(H.message=Y.message,H.name=Y.name,Y.cause instanceof hNa&&Y.cause.rpcErrorCode!==void 0&&(w.rpcErrorCode=Y.cause.rpcErrorCode));var f;(f=b.onError)==null||f.call(b,{loggingError:H,metadata:w})};
P9L=function(Y,b,w,V){switch(Y){case "MINI_APP_SOURCE_GAMESNACKS":return new $E(b,w,V);default:return new vzI(b,w,V)}};
ZrG=function(Y){switch(Y){case 1:return"MINI_APP_ERROR_SOURCE_CONSOLE";case 2:return"MINI_APP_ERROR_SOURCE_UNCAUGHT";case 3:return"MINI_APP_ERROR_SOURCE_SDK";case 4:return"MINI_APP_ERROR_SOURCE_SDK_INTERNAL";case 5:return"MINI_APP_ERROR_SOURCE_SDK_SERVER";default:return"MINI_APP_ERROR_SOURCE_UNSPECIFIED"}};
BeG=function(Y){switch(Y){case 1:return"MINI_APP_SDK_ERROR_TYPE_API_UNAVAILABLE";case 2:return"MINI_APP_SDK_ERROR_TYPE_INVALID_PARAMS";case 3:return"MINI_APP_SDK_ERROR_TYPE_SIZE_LIMIT_EXCEEDED";default:return"MINI_APP_SDK_ERROR_TYPE_UNSPECIFIED"}};
nzK=function(Y){switch(Y){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
MJr=function(){return Math.floor(Math.random()*4)+1};
eNa=function(Y,b,w,V){Y=_.N(Object.entries(Y));for(var H=Y.next(),f={};!H.done;f={message$jscomp$957:void 0},H=Y.next()){var E=_.N(H.value);H=E.next().value;E=E.next().value;f.message$jscomp$957=E;b.push(setTimeout(function(U){return function(){V(!1);w(U.message$jscomp$957.text)}}(f),f.message$jscomp$957.delayMs));
Number(H)>0&&b.push(setTimeout(function(){V(!0)},f.message$jscomp$957.delayMs-400))}};
psB=function(Y,b){var w=w===void 0?WXu:w;_.q("mweb_fix_monitor_visibility_after_render")?Y&&tA(function(){A2B(Y,b,w)}):tA(function(){A2B(Y,b,w)})};
tJG=function(Y){var b=Y.data;var w=Y.uniqueId;Y=Y.overrides;var V,H=((V=b.timedAnimationData)==null?void 0:V.animationTiming)||[];return _.m("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.m(Ls,{settings:{uniqueId:w,timings:H,experimentEnabled:H.length>0,enabled:H.length>0}},OrI(b.buttonRenderer,{buttonRenderer:{buttonOverrides:Y}})))};
L6q=function(Y){RNK||(RNK=dAu(new _.i3(1,void 0,void 0,F6u),0));var b=RNK.format(Math.floor(Y));b=_.K8==="be"||_.K8==="bg"||_.K8==="es"||_.K8==="et"||_.K8==="hu"||_.K8==="ka"||_.K8==="lv"||_.K8==="pl"||_.K8==="pt-PT"||_.K8==="sq"?b.replace(new RegExp("^(\\d)"+F6u.GROUP_SEP.replace(".","\\.")+"(\\d+("+F6u.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):b;return Y>=1E3&&Y<=9999&&b[1]==="."&&(_.K8==="sl"||_.K8==="it")?b.replace(".",""):b};
Smq=function(Y,b){dI("ytd-button-renderer",{data:Y,className:b?b.className:"",overrides:b==null?void 0:b.buttonOverrides},Tl)};
zNK=function(Y,b,w,V){if(Y)return V=V||Y.likeStatus,b?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:V==="LIKE",isDisabled:!Y.likesAllowed,defaultIcon:{iconType:w},defaultText:V==="LIKE"?Y.likeCountWithUnlikeText:Y.likeCountText,toggledText:V==="LIKE"?Y.likeCountText:Y.likeCountWithLikeText,defaultNavigationEndpoint:aPe(Y,"LIKE"),defaultServiceEndpoint:rTv(Y,"LIKE"),toggledServiceEndpoint:rTv(Y,"INDIFFERENT"),defaultTooltip:_.Tx(Y.likeCountTooltipText),toggledTooltip:_.Tx(Y.likeCountTooltipText),
targetId:Y.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:V==="DISLIKE",isDisabled:!Y.likesAllowed,defaultIcon:{iconType:w},defaultText:V==="DISLIKE"?Y.dislikeCountWithUndislikeText:Y.dislikeCountText,toggledText:V==="DISLIKE"?Y.dislikeCountText:Y.dislikeCountWithDislikeText,defaultNavigationEndpoint:aPe(Y,"DISLIKE"),defaultServiceEndpoint:rTv(Y,"DISLIKE"),toggledServiceEndpoint:rTv(Y,"INDIFFERENT"),defaultTooltip:_.Tx(Y.dislikeCountTooltipText),
toggledTooltip:_.Tx(Y.dislikeCountTooltipText)}};
aPe=function(Y,b){if(b==="LIKE")return Y.likeCommand;if(b==="DISLIKE")return Y.dislikeNavigationEndpoint};
rTv=function(Y,b){var w;return(w=Y.serviceEndpoints)==null?void 0:w.find(function(V){var H;return((H=_.v(V,_.jV))==null?void 0:H.status)===b})};
_.irL=function(Y,b,w){return window.spf&&!_.q("web_disable_spfjs_client")?W6a(Y,b,w):K6u(Y,b)};
W6a=function(Y,b,w){var V=null,H=(new _.hh(function(f,E){var U={};if(b){U.method=b.method;var X=b.postParams||{};AQe(Y,b)&&(X[_.zO("XSRF_FIELD_NAME")]=_.zO("XSRF_TOKEN"));U.postData=_.h6(X);b.type&&(U.type=b.type);X=b.headers}U.headers=akB(Y,X);_.q("debug_forward_web_query_parameters")&&(Y=_.KHG(Y,window.location.search));U.experimental_headers=U.headers;U.onError=function(I){I.err&&I.xhr&&(I.err.params={url:I.xhr.responseURL,response:I.xhr.responseText.substr(0,64)});E(I.err)};
U.onPartDone=function(I){w&&w.call(null,I.part)};
U.onDone=function(I){var k=ATg(I.response,"xsrf_token");bc(window.location.href,Y)&&k&&_.rx("XSRF_TOKEN",k);if(k=ATg(I.response,"service_worker_killswitch"))_.rx("SERVICE_WORKER_KILLSWITCH",k),sHu();f(I.response)};
V=spf.request(Y,U)})).then(C9I);
H.thenCatch(function(f){var E=f instanceof _.GL,U=f&&f.hasOwnProperty("params")&&f.params.response?f.params.response:"";f instanceof Error&&(U?E?eQv(f):U===')]}\'\n{"reload":"now"}'?eQv(f):(yTb(f,Y,U),$Aa(f,U)?_.Sk(f):_.Ft(f)):eQv(f));V&&V.abort()});
return H};
C9I=function(Y){if(Y.type==="multipart"){var b=Y.timing;Y=Y.parts.reduce(function(w,V){Object.assign(w,V);return w},{});
Y.timing=Y.timing||{};Object.assign(Y.timing,b);Y.type="reduced"}return Y};
K6u=function(Y,b){b=b===void 0?{}:b;var w=null,V=new _.hh(function(H,f){b.onFinish=function(E){if(E.readyState===XMLHttpRequest.DONE)if(E.status===200){if(E.responseType!=="json"){var U=E.response;U.substring(0,5)===")]}'\n"&&(U=U.substring(5));try{var X=JSON.parse(U)}catch(I){X=I}}else X=E.response;X instanceof Error?f(X):(U=ATg(X,"xsrf_token"),bc(window.location.href,Y)&&U&&_.rx("XSRF_TOKEN",U),E=E.responseURL,window.performance&&window.performance.getEntriesByName?(U=window.performance.getEntriesByName(E).pop())?
E={responseStart:(0,_.gG)()-(U.responseEnd-U.responseStart)}:(Math.random()<.01&&(U=Error("ci"),U.params=E,_.Sk(U)),E={responseStart:-1}):E={responseStart:0},X.timing=X.timing||{},Object.assign(X.timing,E),H(X))}else f(Error("bi`"+E.status))};
(w=_.lc(Y,b))||f(Error("bi`"+w.status))});
V.thenCatch(function(H){H instanceof Error&&(yTb(H,Y),$Aa(H)&&(H.level="WARNING"))});
_.q("cancel_pending_navs")&&V.thenCatch(function(){w.abort()});
return V};
ATg=function(Y,b){var w=Y[b],V=Y.parts;Y.type==="multipart"&&V&&(w=(Y=V.find(function(H){return b in H}))&&Y[b]);
return w};
yTb=function(Y,b,w){var V=Y.message||"";b={original:V,url:b};if(w)if(V=V.match(/position:?\s*(\d+)/)){V=V&&Number(V[1])?Number(V[1]):0;var H=Math.max(V-25,0);b.position=V;b.response=w.substring(H,V+25)}else b.response=w.substring(0,50);_.aY(Y,b);try{Y.message="JSON parse error"}catch(f){}};
$Aa=function(Y,b){Y=Y.message||"";Y=!!(Y.indexOf("<")>=0||Y.indexOf("end of ")>=0||Y.indexOf("Unterminated string")>=0||Y.indexOf("Unexpected EOF"));if(!Y&&b)for(var w=b.length,V=!1,H=0;H<w;H++)if(V&&b[H]==="\\")H++;else if(b[H]==='"')V=!V;else if(b[H]==="<"&&!V){Y=!0;break}return Y};
j96=function(){return document.documentElement.hasAttribute("dark")};
_.G0v=function(Y,b){if(Y!=="GFEEDBACK"&&Y!=="GUIDED_HELP")_.K7(Error("di`"+Y));else{var w=_.fH().resolve(_.HQ(_.bX));if(w&&(w=w.getCurrentPage())&&w.getServiceTrackingParams&&(w=w.getServiceTrackingParams()))for(var V=0,H;H=w[V++];)if(H.service===Y){if(Y=H.params)for(w=0;V=Y[w++];)b[V.key]=V.value;break}}};
_.TeK=function(Y){var b=_.V4();b&&(b=b.getPlayer())&&(b.pauseVideo(),Y.playback_id=b.getVideoData().cpn,Y.eid=b.getVideoData().eventId,Object.assign(Y,b.getFeedbackProductData()))};
JTI=function(){var Y={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.zO("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(Y.enableAnonymousFeedback=!0);_.zO("SESSION_INDEX")&&(Y.authuser=String(_.zO("SESSION_INDEX")));_.q("enable_pageid_for_feedback")&&_.zO("DELEGATED_SESSION_ID")&&(Y.pageId=String(_.zO("DELEGATED_SESSION_ID")));return Y};
_.TL=function(Y){_.q("enable_ypc_spinners")&&_.Xx(Y,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},Y])};
_.J9=function(Y){_.q("enable_ypc_spinners")&&_.Xx(Y,"yt-close-popup-action",["yt-loading-renderer"])};
uog=function(Y){return new Promise(function(b,w){_.WP({verifyCommand:{recaptchaToken:Y.recaptchaResponse}},{commandController:{onSuccess:function(V,H){H||w("ChallengeService did not return a response.");var f;b({challengeCompleted:(f=H.verified)!=null?f:!1})},
onServerError:function(V,H){w(H)}}})})};
Y$6=function(Y,b,w,V){b({recaptchaResponse:V}).then(function(H){H.challengeCompleted?_.vQ()?(w(3),_.fH().resolve(_.Nn).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:Y}})):w(2):w(4)},function(){w(4)})};
bIL=function(Y,b,w){_.io("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.zO("HL"),function(){var V;(V=window.grecaptcha)==null||V.ready(function(){var H=window.grecaptcha;H?(w(H.render(Y,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Y$6.bind(null,Y,uog,b)})),b(1)):b(4)})})};
wCe=function(Y,b){return function(){switch(b()){case 0:return Y().captchaLoadingMessage;case 1:return Y().challengeReason;case 3:return Y().captchaSuccessfulMessage;case 2:return Y().captchaCookieSetFailureMessage;case 4:return Y().captchaFailedMessage;default:return Y().challengeReason}}()};
_.uJ=function(){if(!V8G){var Y=document.querySelector("#player.skeleton");Y&&(_.qf(Y),V8G=!0)}};
_.gT6=function(){return HIG=sjG()};
ETv=function(){return _.c(function(Y){return f0q!==void 0?Y.return():_.D(Y,Nja(),0)})};
Nja=function(){return _.c(function(Y){if(Y.nextAddress==1)return _.D(Y,vcG(),2);HIG=Y.yieldResult;f0q=_.Lb.addLowPriorityJob(Nja,5E3);_.om(Y)})};
oTv=function(Y){var b=b===void 0?c5g:b;var w,V,H=(w=Y.responseContext)==null?void 0:(V=w.mainAppWebResponseContext)==null?void 0:V.trackingParam;if(!H){b.increment("MISSING");var f,E,U,X,I,k;_.Sk(new _.BQ("282054944_a",{b4o:!!((f=Y.responseContext)==null?0:(E=f.mainAppWebResponseContext)==null?0:E.loggedOut),wiH:((U=Y.responseContext)==null?void 0:U.mainAppWebResponseContext)===void 0,iSm:Y.responseContext===void 0,vnO:(X=Y.playabilityStatus)==null?void 0:X.contextParams,t2Z:(((I=Y.streamingData)==
null?void 0:I.formats)||[]).length>0,qu2:(((k=Y.streamingData)==null?void 0:k.adaptiveFormats)||[]).length>0,os:!!Y.offlineState,cotn:Y.cotn}));return 2}w="";try{w=Utq(H)}catch(Q){return b.increment("C_ERROR"),_.Ft(Q),2}try{var l=_.XCG(w);var x=Dt6(l)}catch(Q){return b.increment("P_ERROR"),_.Ft(Q),2}x=_.wl(x,mtI,1,_.V9());H=[];x=_.N(x);for(l=x.next();!l.done;l=x.next())V=l.value,l=V.getPath(),w=(0,_.BL.getValueByKeys)(Y,l.split(".")),w=String(w===void 0||w===null?"":w),V=V.getValue()||"",f=/[+\-\/_]/g,
w.replace(f,"")!==V.replace(f,"")&&(b.increment("MISMATCH"),_.q("ab_mis_log_err")&&(w=new _.BQ("282054944_p",{l9f:l,g:String(w),e:String(V)}),_.Ft(w)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(l)||(l.match(/enforcementMessageViewModel/i)?H.push(3):H.push(2)));if(H.length>0)return Math.max.apply(Math,_.Bt(H));b.increment("SUCCESS");return 1};
l0u=function(Y){var b=new Yi;if(Y.interpreterJavascript){var w=_.s8B(Y.interpreterJavascript);w=zz(w).toString();var V=new I0L;_.hP(V,6,w);_.HN(b,1,V,ak)}else Y.interpreterUrl&&(w=_.SI(Y.interpreterUrl),w=_.Xk(w).toString(),V=new _.kba,_.hP(V,4,w),_.HN(b,2,V,ak));Y.interpreterHash&&_.bf(b,3,Y.interpreterHash,ak);Y.program&&_.bf(b,4,Y.program,ak);Y.globalName&&_.bf(b,5,Y.globalName,ak);Y.clientExperimentsStateBlob&&_.bf(b,7,Y.clientExperimentsStateBlob,ak);return b};
wp=function(Y){var b={};Y=_.N(Y.split("&"));for(var w=Y.next();!w.done;w=Y.next())w=w.value.split("="),w.length===2&&(b[w[0]]=w[1]);return b};
h5v=function(Y){return Number(Y.t)||7200};
nGG=function(){if(_.q("bg_st_hr"))return"havuokmhhs-0";var Y,b=((Y=performance)==null?void 0:Y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)};
xtq=function(){return new Promise(function(Y){var b=window.top;b.ntpevasrs!==void 0?Y(new VY(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(w){Y(new VY(w))}))})};
q$b=function(Y){var b=Y.az5.bind(Y);_.wG("yt.aba.att",b);Y=Y.yXE.bind(Y);_.wG("yt.aba.att2",Y)};
QN6=function(Y){switch(_.ku(Y.input)){case _.Yy(sNg):var b={};return b.encryptedVideoId=Y.innerTubeRequest.externalVideoId,b}return{}};
Pu6=function(Y){switch(_.ku(Y.input)){case _.Yy(sNg):if(_.q("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Yy(HK):if(_.q("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&Y.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Yy(vTg):var b,w;if(_.q("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((w=_.v((b=Y.config)==null?void 0:b.command,
Boa))==null?0:w.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.BjL=function(Y){var b;if(Y.playlistVideoRenderer&&((b=Y.playlistVideoRenderer)==null?0:b.engagementBar))return ZIg(Y.playlistVideoRenderer.engagementBar);if(_.v(Y,gp)){var w;if(Y=(w=_.v(Y,gp))==null?void 0:w.engagementBar)return ZIg(Y)}return""};
ZIg=function(Y){if(!Y)return"";Y=_.v(Y,_.nTM);if(Y==null||!Y.actions)return"";Y=_.N(Y.actions);for(Y=Y.next();!Y.done;Y=Y.next()){Y=_.v(Y.value,_.M8M);var b=void 0;if((b=Y)==null||!b.itemId)break;return Y.itemId}return""};
_.e56=function(Y){var b;if(Y.playlistVideoRenderer&&((b=Y.playlistVideoRenderer)==null?0:b.videoId))return Y.playlistVideoRenderer.videoId;if(_.v(Y,gp)){var w,V;if(Y=(w=_.v(Y,gp))==null?void 0:(V=w.playlistItemData)==null?void 0:V.videoId)return Y}return""};
_.pCK=function(Y){var b;if(Y.playlistVideoRenderer&&((b=Y.playlistVideoRenderer)==null?0:b.voteCount))return Y.playlistVideoRenderer.voteCount;if(_.v(Y,gp)){var w,V;if(Y=(w=_.v(Y,gp))==null?void 0:(V=w.playlistItemData)==null?void 0:V.voteCount)return Y}return 0};
_.fk=function(Y,b){return _.kt(Y.entities,"flowStateEntity",b)};
t8u=function(Y,b,w,V){var H=void 0;Y=_.N(Y[b.iconName]||[]);for(var f=Y.next();!f.done;f=Y.next()){f=f.value;var E=b.iconSize;var U=b.iconStyle;E=!E||E===f[2];var X=OIv[f[0]];V&&V!==f[1]||!E||U&&U!==X?U=!1:H?(U=OIv[f[0]],U=!!b.iconStyle||U==="youtube_outline",E=H.version<=f[1],U=(!!b.iconSize||f[2]===24)&&U&&E):U=!0;U&&(H={name:b.iconName,style:OIv[f[0]],size:f[2],version:f[1],allowMirroring:!!f[3],url:w(b.iconName,f)})}return H};
R5v=function(Y,b,w,V){return Y+(""+OIv[w[0]]+((V===void 0?0:V)?"_experimental":"")+"/"+b+"/v"+w[1]+"/")+(w[2]+"px.svg")};
Nq=function(Y){return _.q("web_bookmark_playlist_save_icon")?"bookmark":Y};
dtt=function(Y,b){return R5v("https://fonts.gstatic.com/s/i/",Y,b)};
FPg=function(Y,b){return R5v("https://fonts.gstatic.com/s/i/",Y,b,!0)};
LPg=function(Y,b){return R5v("https://www.gstatic.com/youtube/img/icons/web/",Y,b)};
a0M=function(Y){var b=Y.enabled;var w=Y.itemPlaybackModel;var V=Y.thumbnailElRef;var H=Y.containerElRef;var f=Y.options;var E;_.tl(function(){var U=H==null?void 0:H.value;var X,I=(X=V())==null?void 0:X.value;X=w();var k=f();if(b&&X&&U&&I&&(k==null?0:k.thumbnail)){var l={data:X,hostElement:U},x,Q,Z=_.q("web_explore_hub_on_hover")||_.q("web_client_explore_hub_on_hover")?[].concat(_.Bt((x=k.thumbnailOverlays)!=null?x:[]),_.Bt((Q=X.overlays)!=null?Q:[])):k.thumbnailOverlays||[],e,O;U={mediaRenderer:l,
lockupElement:U,thumbnailElement:I,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.zT((e=X.inlinePlayerData)==null?void 0:e.onVisible),navigationEndpoint:_.zT((O=X.inlinePlayerData)==null?void 0:O.onSelect),thumbnail:k.thumbnail,thumbnailOverlays:Z,accessibilityText:k.accessibilityText||""},thumbnailSize:k.thumbnailSize,enableRounding:k.enableRounding}}}else U=void 0;if(e=U){var L;(L=E)==null||Ed(L);E=TI(e);var r,C;((r=w())==null?0:(C=r.inlinePlayerData)==null?0:C.forceImpAutoplay)&&
S$u(E)}},"B33dEc");
_.R2(function(){var U;(U=E)==null||Ed(U)})};
r5I=function(Y){Y=atob(Y);for(var b=[],w=0;w<Y.length;w++)b.push(Y.charCodeAt(w));return new Blob([new Uint8Array(b)],{type:"image/png"})};
WP6=function(Y,b,w,V){V=V===void 0?"INSERTION_POSITION_UNSPECIFIED":V;return Y({targetId:b},function(H){var f,E=(f=H.contents)!=null?f:[];f=w!=null?w:[];var U=z5b(E);switch(V){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},H,{contents:[].concat(_.Bt(E.slice(0,U)),_.Bt(f),_.Bt(E.slice(U+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},H,{contents:[].concat(_.Bt(f),_.Bt(E))});case "INSERTION_POSITION_LAST":return Object.assign({},H,{contents:[].concat(_.Bt(E),_.Bt(f))});
default:return H}})};
iIa=function(Y,b,w,V,H){H=H===void 0?"RELATIVE_INSERTION_POSITION_AFTER":H;return Y({targetId:b},function(f){var E,U=(E=f.contents)!=null?E:[];E=KPM(U,w);if(E<0)return f;E=H==="RELATIVE_INSERTION_POSITION_BEFORE"?E:E+1;return Object.assign({},f,{contents:[].concat(_.Bt(U.slice(0,E)),_.Bt(V),_.Bt(U.slice(E)))})})};
z5b=function(Y){var b=Y.findIndex(function(w){return _.v(w,_.cK)});
return b>=0?b:Y.length};
KPM=function(Y,b){return Y.findIndex(function(w){a:{w=_.N(Object.values(w));for(var V=w.next();!V.done;V=w.next())if((V=V.value)&&V.targetId){w=V.targetId;break a}w=""}return w===b})};
CuM=function(Y,b,w){return Y({targetId:b},function(V){var H,f=(H=V.contents)!=null?H:[];return Object.assign({},V,{contents:A5I(f,w)})})};
A5I=function(Y,b){return Y.filter(function(w){var V=b.includes;a:{w=_.N(Object.values(w));for(var H=w.next();!H.done;H=w.next())if((H=H.value)&&H.targetId){w=H.targetId;break a}w=""}return!V.call(b,w||"")})};
_.y5a=function(Y,b){return{engagementPanelSectionListRenderer:{panelIdentifier:Y,identifier:b,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.jNv=function(Y){var b,w=(b=Y.getOption("captions","tracklist",{includeAsr:!0}))!=null?b:[];return w=$tq(w,Y)};
Gbe=function(Y){return Y.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
$tq=function(Y,b){b=Gbe(b);if(b==null||!b.length)return Y;var w=b.filter(function(E){return E});
b=Y.filter(function(E){return E.languageCode.startsWith("en")});
w=_.N(w);for(var V=w.next();!V.done;V=w.next())if(V=V.value,b.length){var H=b[0],f=Object.assign({},H);H.languageCode!==V.languageCode&&(f.displayName=H.languageName+" >> "+V.languageName,f.translationLanguage=V,Y.push(f))}return Y};
Tj6=function(Y,b,w){Y=_.jNv(Y);if(Y.length)return w?Y.find(function(V){if(typeof(V==null?void 0:V.translationLanguage)==="object"){var H;return((H=V.translationLanguage)==null?void 0:H.languageCode)===b}return!1}):Y==null?void 0:Y.find(function(V){return V.languageCode===b})};
J5K=function(Y){return Y.getOption("captions","tracklist",{includeAsr:!0})};
upb=function(Y){return Y.getOption("captions","tracklist",{includeAsr:!0})};
Yhr=function(Y){var b=upb(Y);if(b==null?0:b.length)return b;Y.loadModule("captions");return upb(Y)};
bmu=function(Y){var b=Y.getOption("captions","track");if(b)return b;Y.loadModule("captions");return Y.getOption("captions","track")};
VYI=function(Y){var b=Yhr(Y);if(b!=null&&b.length){var w=bmu(Y),V;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.sa("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(w==null?0:w.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Bt(b.map(function(H){return{listItemViewModel:{title:{content:H.displayName},
isSelected:H.displayName===(w==null?void 0:w.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:H.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.sa("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!w.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!w.translationLanguage&&{selectionText:{content:(w==null?void 0:(V=w.translationLanguage)==null?void 0:V.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[wka(Y)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
wka=function(Y){var b=Gbe(Y);if(b==null||!b.length)throw Error("Bi");var w=bmu(Y);Y=b.filter(function(V){return!V.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Bt(Y.map(function(V){var H;return{listItemViewModel:{title:{content:V.languageName},isSelected:V.languageName===(w==null?void 0:(H=w.translationLanguage)==null?void 0:H.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:V.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
NsK=function(Y){return new Promise(function(b,w){if(Y===void 0)_.Ft(Error("Fi"),"ERROR"),w(Error("Fi"));else{w=new _.HmG;var V=_.gqg();w=w.init();var H=_.f_I(_.zO("YPC_MB_URL"),!0);Promise.all([w,H]).then(function(){var f=payments.business.integration.ClientTokenFactory.createClientToken(Y,V);b(f)})}})};
U3a=function(Y,b,w,V,H,f,E){var U=_.j9();w=w.replace(/-/g,"+").replace(/_/g,"/");var X=_.P0().get("hl"),I=_.Ud(_.Tg),k=b==null?void 0:b.element;k&&_.TL(k);Equ(b,!0);_.csB(I,w,U.resolve,function(){k&&_.J9(k)},function(l){k&&_.J9(k);
U.reject(l)},X,V?function(l){V&&_.$_(Y,V,{backend_analytics:l})}:void 0,U.resolve,H,f,E);
return U.promise};
Equ=function(Y,b){!(Y=Y==null?void 0:Y.element)||Y.tagName!=="YT-BUTTON-RENDERER"&&Y.tagName!=="YTD-BUTTON-RENDERER"||(Y.disabled=b)};
XkK=function(){var Y=_.sa("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.NV(Y),actionButton:{buttonRenderer:Spv()}}},popupType:"TOAST"}};
D3t=function(){var Y=_.sa("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.NV(Y),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
m3M=function(Y){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Y}]}}};
X5=function(Y,b,w,V){var H;return _.c(function(f){if(f.nextAddress==1)return _.ct(f,2),_.D(f,Y,4);if(f.nextAddress!=2)return(H=_.n8(b.getState().entities).length>0)?f.return({title:_.NV(_.sa("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.NV(_.sa("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:L8b()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
f.return(aOt(w,V));_.mS(f);return f.return(aOt(w,V))})};
oqt=function(Y,b){return b?b==="PPSV"||tce(Y,b):!1};
I_M=function(Y){Y.responseContext||(Y.responseContext={});Y.responseContext.maxAgeSeconds=0;return Y};
mw=function(Y){var b;return _.c(function(w){return w.nextAddress==1?_.D(w,k3B(Y,"service:topbar:fallback"),2):(b=w.yieldResult)&&_.Dz(b)?w.return(I_M(_.Dz(b))):w.return()})};
l_g=function(Y){var b;return _.c(function(w){return w.nextAddress==1?_.D(w,k3B(Y,"service:downloads_settings:fallback"),2):(b=w.yieldResult)&&_.Dz(b)?w.return(b):w.return()})};
k3B=function(Y,b){var w;return _.c(function(V){if(V.nextAddress==1)return Y?_.D(V,Y.get(b),2):V.return();w=V.yieldResult;return!w||!_.Dz(w)||!isNaN(Number(w.data.expireTimestampMs))&&w.isExpired()?V.return():V.return(w)})};
hOa=function(Y){var b=_.fH().resolve(oM).getState().entities;return Y.playlistId?oqt(b,Y.playlistId):!1};
x3K=function(Y,b){var w;if(b==null?0:(w=b.requestTemplate)==null?0:w.panelId)Y.panelId=b.requestTemplate.panelId;var V;if(b==null?0:(V=b.requestTemplate)==null?0:V.params)Y.params=b.requestTemplate.params};
s0B=function(){if(qhG)return qhG();var Y=!_.q("idb_response_store_auth_killswitch"),b={};qhG=HO("yt-it-response-store",{objectStores:(b.ResponseStore={addedAtVersion:1},b),shared:!Y,upgrade:function(w,V){V(1)&&(w=iS(w,"ResponseStore",{keyPath:["key","clientName"]}),AE(w,"byExpiration","expireTimestampMs"),AE(w,"byInterface","clientName"))},
version:1});return qhG()};
Q0G=function(Y){return _.Gr(s0B(),Y)};
Pqu=function(Y,b){var w;return _.c(function(V){return V.nextAddress==1?_.D(V,_.Vn(),2):(w=V.yieldResult)?V.return(new vqa(Y,b,w)):V.return()})};
Zmu=function(Y){var b=Object.keys(Y)[0];if(b)return Y.screenExit&&(b=b+";"+Y.screenExit.screen),b};
Bsa=function(Y){var b=new Map;Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=w.value,w!=null&&(b.has(w.taskType)||b.set(w.taskType,[]),b.get(w.taskType).push(w));return b};
nqq=function(Y){return!isNaN(Y)&&Y>0};
MYq=function(Y){Y=[].concat(_.Bt(Y)).sort(function(w,V){return w-V});
var b=Math.floor(Y.length/2);return Y.length%2?Y[b]:(Y[b-1]+Y[b])/2};
Omb=function(Y,b){Y=Y===void 0?oOI:Y;b=b===void 0?{}:b;_.wG("yt.logging.errors.log",_.Ft);DZ6();eOB(xZv(),b);window.onerror=Y;pku=mZK;window.addEventListener("unhandledrejection",function(w){if(w.reason instanceof Error){var V=w.reason;_.aY(V,{source:"unhandledrejection"});V.name==="AbortError"&&(V.level="WARNING")}mZK(w.reason);w.preventDefault()})};
_.tYe=function(Y){return Y.a11y.ephemeralAction||null};
_.ROt=function(Y){var b,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G,Nr,o6,lI,Zt,eL,OM,iI,rB,Tj,J_,B9,ok,Ut,wt,X$,Dg,eQ,cg;return _.c(function(qQ){if(qQ.nextAddress==1)return _.D(qQ,_.QK(Y,{mode:"readonly",enableRetries:!0},function(t_){return v$(t_,"playbackData").then(function($s){var P9=$s.map(function(gU){return gU.transfer}).filter(function(gU){return!!gU}),$d=$s.map(function(gU){return gU.offlineVideoPolicy}).filter(function(gU){return!!gU}),Kh=$s.filter(function(gU){return!!gU.key}).map(function(gU){return _.I8(_.D7(gU.key).entityId,
"downloadStatusEntity")});
P9=v$(t_,"transfer",P9);$d=v$(t_,"offlineVideoPolicy",$d);Kh=v$(t_,"downloadStatusEntity",Kh);var yr=P9.then(function(gU){gU=gU.reduce(function(rU,xs){(xs==null?0:xs.offlineVideoStreams)&&rU.push.apply(rU,_.Bt(xs.offlineVideoStreams));return rU},[]).filter(function(rU){return!!rU});
return v$(t_,"offlineVideoStreams",gU)});
return WQ.all([P9,$d,yr,Kh]).then(function(gU){var rU=_.N(gU);gU=rU.next().value;var xs=rU.next().value;var xd=rU.next().value;rU=rU.next().value;return[$s,gU,xs,xd,rU]})})}),2);
if(qQ.nextAddress!=3)return b=qQ.yieldResult,_.D(qQ,_.QK(Y,{mode:"readonly",enableRetries:!0},function(t_){return v$(t_,"mainDownloadsListEntity").then(function($s){var P9,$d;return($d=(P9=$s[0])==null?void 0:P9.downloads)!=null?$d:[]})}),3);
w=qQ.yieldResult;V=_.N(b);H=V.next().value;f=V.next().value;E=V.next().value;U=V.next().value;X=V.next().value;I=H;k=f;l=E;x=U;Q=X;Z={};e={};O={};L={};r={};C=[];W=_.N(k);for(y=W.next();!y.done;y=W.next())(G=y.value)&&(Z[G.key]=G);Nr=_.N(l);for(o6=Nr.next();!o6.done;o6=Nr.next())(lI=o6.value)&&(e[lI.key]=lI);Zt=_.N(Q);for(eL=Zt.next();!eL.done;eL=Zt.next())(OM=eL.value)&&(O[OM.key]=OM);iI=_.N(x);for(rB=iI.next();!rB.done;rB=iI.next())(Tj=rB.value)&&(L[Tj.key]=Tj);J_=_.N(w);for(B9=J_.next();!B9.done;B9=
J_.next())ok=B9.value,Ut=void 0,r[(Ut=ok.videoItem)!=null?Ut:""]=!0,ok.videoItem&&(X$=wt=void 0,Dg=(X$=(wt=_.D7(ok.videoItem))==null?void 0:wt.entityId)!=null?X$:"",C.push({externalVideoId:Dg}));eQ=I.filter(function(t_){if(!t_||!t_.key||!t_.offlineVideoPolicy)return!1;t_=_.D7(t_.key).entityId;t_=_.I8(t_,"downloadStatusEntity");var $s;return!(t_&&(($s=O[t_])==null?void 0:$s.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
cg=eQ.map(function(t_){var $s=Z[t_.transfer],P9=[];if($s==null?0:$s.offlineVideoStreams)for(var $d=_.N($s.offlineVideoStreams),Kh=$d.next();!Kh.done;Kh=$d.next())(Kh=L[Kh.value])&&P9.push(Kh);$d=e[t_.offlineVideoPolicy];Kh=r;var yr=t_==null?void 0:t_.playerResponseTimestamp,gU=_.D7($d.key).entityId;t_=_.I8(gU,"mainVideoEntity");if($d.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var rU="OFFLINE_VIDEO_STATE_DISABLED";$d.expirationTimestamp&&Number($d.expirationTimestamp)<Date.now()/1E3&&(rU="OFFLINE_VIDEO_STATE_EXPIRED")}else if($d.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")rU="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch($s==null?void 0:$s.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":rU="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":rU="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":rU="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":rU="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":rU="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":rU="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:rU="OFFLINE_VIDEO_STATE_UNKNOWN"}if(rU==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch($s==null?void 0:$s.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":rU="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":rU="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":rU=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}gU={id:gU,videoState:rU};if($s==null?0:$s.cotn)gU.cotn=$s.cotn;if($s==null?0:$s.maximumDownloadQuality)gU.selectedVideoQuality=$s==null?void 0:$s.maximumDownloadQuality;if($s==null?0:$s.lastProgressTimeMs)gU.lastProgressTimeMs=$s.lastProgressTimeMs;yr&&(gU.playerResponseSavedTimeMs=String(Number(yr)*1E3));$s=String;yr=0;P9=_.N(P9);for(rU=P9.next();!rU.done;rU=P9.next())if(rU=rU.value,rU.streamsProgress){rU=_.N(rU.streamsProgress);for(var xs=rU.next();!xs.done;xs=
rU.next()){var xd=void 0;yr+=Number((xd=xs.value.numBytesDownloaded)!=null?xd:0)}}gU.downloadedBytes=$s(yr);gU.selectedOfflineMode=Kh[t_]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";$d.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(gU.offlinePlaybackDisabledReason=$d.offlinePlaybackDisabledReason);return gU});
return qQ.return({offlineVideos:cg,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:C}}})})};
d3v=function(){var Y;return _.c(function(b){return b.nextAddress==1?_.D(b,_.xt(),2):(Y=b.yieldResult)?b.return(_.ROt(Y)):b.return({state:"PES Unavailable"})})};
ShL=function(){var Y,b,w,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,_.xt(),2);if(H.nextAddress!=3)return(Y=H.yieldResult)?_.D(H,F5e(Y),3):H.return({state:"PES Unavailable"});b=H.yieldResult;w={};V=b.reduce(function(f,E){f[E.key]=E;return f},w);
return H.return(L5G(V))})};
L5G=function(Y){for(var b={},w=[],V=_.N(Object.keys(Y)),H=V.next();!H.done;H=V.next()){var f=H.value;H=Y[f];var E=void 0;if(((E=H)==null?void 0:E.entityType)==="mainVideoEntity"){delete Y[f];var U=H.data;H={};if(U){var X=void 0;E=(X=U.videoId)!=null?X:"vid-"+f;f=Y;H.video=U;delete H.video.formattedDescription;delete H.video.thumbnail;U.owner&&(X=f[U.owner],X==null?0:X.data)&&(delete f[X.key],H.video.owner=X.data,delete H.video.owner.avatar);if(U=U.downloadState)if(X=f[U],X==null?0:X.data)if(delete f[U],
U=X.data.playbackData)if(X=f[U],X!=null&&X.data){delete f[U];U=X.data;delete U.playerResponseJson;H.playbackData=U;if(U.transfer&&(X=f[U.transfer],X==null?0:X.data)){delete f[X.key];var I=X.data;H.transfer=I;X=[];I=_.N(I.offlineVideoStreams||[]);for(var k=I.next();!k.done;k=I.next())if(k=f[k.value])delete f[k.key],X.push(k.data);X&&(H.streams=X)}(U=U.offlineVideoPolicy)&&(U=f[U])&&U.data&&(delete f[U.key],H.offlineVideoPolicy=U.data)}b[E]=H}}else H&&H.entityType==="offlineOrchestrationActionWrapperEntity"&&
H.data&&(delete Y[H.key],E=H.data,f=void 0,w.push({id:E.rootActionId,type:((f=E.actionProto)==null?void 0:f.actionType)||"",entity:H}))}b.wrapperEntities=w;Object.keys(Y).length>0&&(b.unknownKeys=Y);return b};
a_v=function(){var Y,b,w,V,H,f,E,U,X;return _.c(function(I){if(I.nextAddress==1)return Y=!!(new _.WO("")).expiringStorage_,V=!!((b=_.wB.crypto)==null?0:(w=b.subtle)==null?0:w.importKey),H=!!_.wB.BroadcastChannel,f=!!_.wB.navigator.locks,_.D(I,AwL(),2);E=I.yieldResult;U=Y&&V&&H&&f&&E;X={isSupported:U};if(U)return I.return(X);X.missingBrowserFeatures=[];E||X.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");Y||X.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
V||X.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");H||X.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");f||X.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return I.return(X)})};
rsM=function(){var Y;return!((Y=IM?IM:null)==null||!Y.window)};
_.W5t=function(Y){if(_.pa()&&_.Xgu("Chromium")>=120){var b=_.zOM().mediaSession;try{b.setActionHandler("enterpictureinpicture",function(){Y()})}catch(w){}}};
K5L=function(Y){for(var b=[],w=_.N(document.styleSheets),V=w.next(),H={};!V.done;H={node$jscomp$730:void 0},V=w.next())H.node$jscomp$730=V.value.ownerNode,H.node$jscomp$730&&(H.node$jscomp$730 instanceof HTMLStyleElement||H.node$jscomp$730 instanceof HTMLLinkElement)&&b.push(new Promise(function(f){return function(E){var U=f.node$jscomp$730.cloneNode(!0);U.onload=function(){E()};
U.onerror=function(){_.Sk(Error("hj"));E()};
Y.document.head.appendChild(U)}}(H)));
return Promise.all(b)};
urv=function(Y){var b=[_.wF(imB),_.wF(AsL),_.wF(Cqu)];ysI(window.document.documentElement,Y.document.documentElement,[_.wF($3I),_.wF(j0I),_.wF(G36),_.wF(Tsa),_.wF(Jsv)]);ysI(window.document.body,Y.document.body,b)};
ysI=function(Y,b,w){Y=_.N(Y.attributes);for(var V=Y.next();!V.done;V=Y.next())if(V=V.value)try{_.Az(w,b,V.name,V.value)}catch(H){}};
bO6=function(Y,b){Y=new _.ki(Y.document.documentElement);Y.start(YYB,b);return Y};
wnb=function(Y){var b=Y.document.documentElement;b.addEventListener("click",function(w){S8r(b,w)});
b.addEventListener("touchstart",function(w){KbM(w)});
b.addEventListener("mousedown",function(w){KbM(w)})};
HOB=function(Y,b,w,V){V=V===void 0?!1:V;b=new Vva(b||Y,w||Y);return{x:Y.x+((V===void 0?0:V)?b.lengthX*-1:b.lengthX)*.2,y:Y.y+((V===void 0?0:V)?b.lengthY*-1:b.lengthY)*.2}};
gou=function(Y){if(!Y)return!1;var b=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",w,V,H,f=(H=(w=Y.errorScreen)==null?void 0:w.playerLegacyDesktopYpcTrailerRenderer)!=null?H:(V=Y.errorScreen)==null?void 0:V.ypcTrailerRenderer;return!!b||!!f};
_.f6u=function(Y,b){if(!Y)return!1;var w,V=(w=Y.errorScreen)==null?void 0:w.playerLegacyDesktopYpcOfferRenderer,H;b=!!(b==null?0:(H=b.playerOverlayRenderer)==null?0:H.gatedActionsOverlayRenderer);return!!gou(Y)||!!V||!!b};
cVB=function(Y){return N8g(Y,0,"gclid",Y.search(Eor))>=0||N8g(Y,0,"gad_source",Y.search(Eor))>=0};
DOr=function(Y){var b=[],w=0;return{clear:function(){w=b.length=0},
push:function(V){b[w]=V;w=(w+1)%Y},
iterate:function(){return function H(){var f,E,U,X;return _.UOe(H,function(I){switch(I.nextAddress){case 1:_.X3(I,2),f=b.length,E=0;case 4:if(!(E<f)){I.jumpTo(2);break}U=w+E;X=_.Xn6;return _.D(I,b[U%f],7);case 7:X(I.yieldResult);E++;I.jumpTo(4);break;case 2:_.Ux(I),_.Dl(I,0)}})}()}}};
ooI=function(){var Y=mOa,b=YO.bufferSize;Y||(Y=[]);Y=Y.map(bG6);var w=new Set(Y),V=DOr(b);return{flush:function(){var H=Array.from(V.iterate());V.clear();H=H.map(function(f){return{name:f.name,timestamp:f.startTime,attributes:f.attributes}});
return JSON.stringify(H)},
onSpanStart:function(H){H.name==="event"&&w.has(H.attributes.type)||V.push(H)}}};
I6g=function(){var Y=ooI(),b=Y.flush;RAG({onSpanStart:Y.onSpanStart});P8M.subscribe("handleError",function(w){try{w.params.breadcrumbs=b()}catch(V){_.Ft(V,"WARNING")}})};
kyL=function(Y,b,w){var V=Y.endTime;if(V==null)throw Error("jj");w=_.i1(jBe)(Y.name,V-Y.startTime,Y.startTime,{webTracing:Y.attributes},w,b);if(Y.children)for(Y=_.N(Y.children),V=Y.next();!V.done;V=Y.next())kyL(V.value,b,w)};
hZB=function(){for(var Y={},b=_.N(YO.enabledSpansArray),w=b.next();!w.done;w=b.next())Y[w.value]=!0;if(YO.exportToCsi||YO.exportBreadcrumbs)Y={enabledSpans:Y},VK={sessionId:Y.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:Y.enabledSpans};YO.exportBreadcrumbs&&I6g();YO.exportToCsi&&RAG(l66)};
xOe=function(Y){return new Promise(function(b){window.setTimeout(b,Y)})};
qYG=function(Y){var b={bicf:function(f){Y.lU4=f},
blc:function(){return Y.getLatestChallengeResponse()},
bcr:function(f){Y.pT7.push(f)}},w=window.top;
w.ntpevasrs=b;if(w.ntpqfbel!==void 0)for(var V=_.N(w.ntpqfbel),H=V.next();!H.done;H=V.next())H=H.value,H(b);w.ntpqfbel=void 0};
slb=function(Y){return _.c(function(b){if(b.nextAddress==1)return _.ct(b,2),_.D(b,Y.q17(),4);if(b.nextAddress!=2)return _.$u(b,0);_.mS(b);_.om(b)})};
QlM=function(Y){var b,w;(b=Y.ytcsi)==null||(w=b.tick)==null||w.call(b,"pot_ist")};
vov=function(Y){if(Y instanceof Error){var b=_.Aq("yt.logging.errors.log");b&&b(Y,"WARNING")}};
PDr=function(Y){try{var b=JSON.parse(Y);if(b.bgChallenge)return b}catch(w){}};
B8r=function(){var Y=window,b={networkStatusManagerPromise:_.fH().resolve(new nDv(_.jI)),initialChallengeSli:_.q("wpo_att_sli")?new _.dka("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};Y=Y===void 0?window:Y;var w=Y.ytAtR,V;b==null||(V=b.initialChallengeSli)==null||_.lf(V);if(w){if(w=PDr(w)){var H;b==null||(H=b.initialChallengeSli)==null||_.hJ(H,"SUCCESS");ZOt(w,b)}Y.ytAtR=void 0}else Y.ytAtRC=function(f){if(f=PDr(f)){var E;b==null||(E=b.initialChallengeSli)==null||
_.hJ(E,"SUCCESS");ZOt(f,b);Y.ytAtRC=void 0}}};
eZa=function(){if(noB)return noB;try{var Y=_.xG("IFRAME");_.Rg(Y,_.HL(MvG));Y.sandbox.add("allow-same-origin");Y.style.display="none";document.body.appendChild(Y);return noB=Y}catch(b){Y=new _.BQ("Failed to create sandbox iframe"),_.Ft(Y)}};
pnI=function(Y){var b,w;return(w=Y==null?void 0:(b=Y.contentWindow)==null?void 0:b.fetch)!=null?w:window.fetch};
OOa=function(Y){var b,w;return(w=Y==null?void 0:(b=Y.contentWindow)==null?void 0:b.JSON.parse)!=null?w:JSON.parse};
tve=function(Y){var b,w;return(w=Y==null?void 0:(b=Y.contentWindow)==null?void 0:b.Request)!=null?w:window.Request};
Faq=function(){if(LDg()==="hidden")var Y="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else LDg()==="visible"&&(Y="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",RZu=null);Y&&dOv(Y)};
dOv=function(Y){if(Y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||Y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(LaI===Y)return;LaI=Y}var b=9E4+Math.random()*2E3;if(Y!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.fB()>b)&&LDg()==="visible"){b=-1;RZu&&(b=Math.round((0,_.gG)()-RZu));var w=String;var V=_.Aq("_fact",window);V=V==null||V==-1?-1:Math.max(Date.now()-V,0);_.RY("foregroundHeartbeat",{firstActivityMs:w(V),clientDocumentNonce:khG,index:String(SYM),lastEventDeltaMs:String(b),trigger:Y});
_.wG("_fact",-1,window);SYM++;RZu=(0,_.gG)()}};
_.a6M=function(){try{return!!self.sessionStorage}catch(Y){return!1}};
rVM=function(){var Y=navigator;return new Promise(function(b,w){var V;(V=Y.webkitTemporaryStorage)!=null&&V.queryUsageAndQuota?Y.webkitTemporaryStorage.queryUsageAndQuota(function(H,f){b({usage:H,quota:f})},function(H){w(H)}):w(Error("rj"))})};
zZv=function(Y,b){var w={errorSeverity:b.errorSeverity.toString(),wizFeatureFlags:Object.entries(b.featureFlags).join("\n")};XPe(b,w);b=b.errorSeverity;b===3?_.Ft(Y,"ERROR",void 0,void 0,void 0,w):b===2&&_.Ft(Y,"WARNING",void 0,void 0,void 0,w);_.q("cow_if_errors_in_popup")&&b===3&&Y.message.indexOf("<If>")!==-1&&window.alert(Y.message)};
WaM=function(Y,b,w){Y.componentType!==nQ&&w instanceof HTMLElement&&b&&!_.q("cow_logging_in_component_wrapper")&&vNa(w,b,!0)};
yVa=function(){if(!Kab){Kab=!0;var Y=Object.assign({},{enableLazyTsx:_.q("mweb_enable_wiz_lazy_tsx")||_.q("kevlar_enable_wiz_lazy_tsx")||_.q("creator_enable_wiz_lazy_tsx")||iOt,flushRenderEffectsDuringRender:!0},{handleError:zZv,enableComponentStacksInErrorMessages:!1});Object.assign(_.fQ,Y);RGL=AVK;QYq=WaM;aFK=Y5g;Fpu=bD6;_.q("ytwiz_enable_debug_component_props")&&(Y=document.body.firstElementChild,window.ng||Y.__ngContext__||(Y.__ngContext__={},Y.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
CDB))}};
$Og=function(Y,b,w){b=b===void 0?{}:b;var V,H=(V=_.v(Y.commandMetadata,_.g5))==null?void 0:V.url;V=b.form||{};!w||V.element||V.skipDefaultElement||(b.form=b.form||{},b.form.element=w);if(H&&H!=="/service_ajax")return{type:0,command:Y,form:b.form};if(_.q("kevlar_service_command_check")){if(_.y_(_.fH().resolve(_.Sy),Y))return Object.assign({},{type:1,command:Y},b)}else{var f;if((f=_.v(Y.commandMetadata,_.g5))==null?0:f.apiUrl)return Object.assign({},{type:1,command:Y},b)}return{type:2,command:Y,form:b.form}};
jla=function(Y){if(Y.form){var b=Y.form,w=Object.assign({},b);b=b.element;w=(delete w.element,w);if(b)return[_.oP(b,[Y.command,w,Y.commandController])]}return[]};
Gya=function(Y){if(Y.form){var b=Y.form,w=Object.assign({},b);b=b.element;w=(delete w.element,w);b&&_.IP(b,[Y.command],b,w)}};
JVM=function(Y,b,w){var V=new T8u(Y,b),H=new xi(Y,b,w);Y={"/youtubei/v1/browse":new qq(Y,b,w),"/youtubei/v1/player":V,"/youtubei/v1/navigation/resolve_url":new sd,"/youtubei/v1/next":H,"/youtubei/v1/guide":new QY(w),"/youtubei/v1/search":new vK(Y,b,w),"/youtubei/v1/reel/reel_item_watch":new PK(Y,b,w),"/youtubei/v1/get_watch":new Zz(V,H)};Y["/youtubei/v1/account/account_menu"]=new BK;Y["/youtubei/v1/notification/get_notification_menu"]=new nk;return Y};
tJ=function(){var Y=_.fH().resolve(Mq);return Promise.resolve(uCG(Y,_.wB.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
YOI=function(Y){return Y&&(Y=_.RM(_.Enb(Y)))?(new URLSearchParams(Y)).get("service"):null};
Lk=function(Y,b){_.Xl(_.dp(),function(){_.S1("adl")});
_.fH().resolve(bNL)(b);Y=Y.root;Y.loadData&&Y.loadData(b);(b==null?0:b.response)?_.hJ(SVt(),"SUCCESS"):_.Sk(new _.BQ("Lifecycle: No response in data",_.Wf("IS_SHELL_LOAD"),b?b.page:"NO_PAGE",b?b.endpoint:"NO_ENDPOINT"));Y.polymerController.$["page-manager"].lazyPrepareCriticalPages((b==null?void 0:b.page)||"",b.endpoint);var w,V;((V=_.v(b==null?void 0:(w=b.endpoint)==null?void 0:w.commandMetadata,_.g5))==null?0:V.webPageType)&&_.u3().dispatch(_.F5(_.v(b.endpoint.commandMetadata,_.g5).webPageType))};
wAr=function(){var Y,b;return _.c(function(w){switch(w.nextAddress){case 1:Y=window;if(!Y.getDataPromise){w.jumpTo(2);break}_.ct(w,3);return _.D(w,Y.getDataPromise(),5);case 5:return w.return(w.yieldResult);case 3:return _.mS(w),_.D(w,tJ(),6);case 6:return w.return(w.yieldResult);case 2:if(Y.getInitialData)return b=Y.getInitialData(),Y.getInitialData=void 0,w.return(b);throw Error("tj`"+_.wB.location.href);}})};
HNg=function(){_.rx("CSI_SERVICE_NAME","youtube");_.Fx({loadType:"cold"});_.q("kevlar_log_lcp")&&V2I(function(Y){_.S1("lcp",Y.value)})};
g4v=function(){var Y=_.CC(document.location.href,"enable");Y&&Y.indexOf("scraper")>-1&&_.rx("ADD_SCRAPER_ATTRIBUTES",!0)};
Ud6=function(Y){var b=Y.root;Y=[fr6,NdG,_.SZ];_.q("web_feedback_endpoint_autolog_allowlist_killswitch")&&Y.push(_.aM,E4K);cCG(function(w,V){return $Og(w,V,b)},function(w){if(!w.command)return[];
var V;((V=w.form)==null?0:V.element)?w.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},w.form,{endpoint:w.command})})):b.handleNavigate(w);return[]},Y);
_.fH().addProvider({provide:_.Nn,useValue:_.l8.instance})};
DdG=function(){var Y={},b={},w;for(w in XAq){var V=_.N(_.kw(XAq[w],void 0,"NBH2te"));Y[w]=V.next().value;b[w]=V.next().value}return[Y,function(H){for(var f in H){var E=void 0;(E=b[f])==null||E(H[f])}}]};
_.IrK=function(Y,b){var w=_.BL.getValueByKeys(Y,"contents","twoColumnWatchNextResults","results","results","contents"),V=_.BL.getValueByKeys(Y,"contents","twoColumnWatchNextResults","playlist","playlist")||null,H=null,f=null;if(V)H=_.BL.getValueByKeys(V,"titleText"),f=_.BL.unsafeClone(_.BL.getValueByKeys(V,"longBylineText")),w="",f&&(w=_.Tx(f)),f=_.Gx(w);else if(w){w=_.N(w);for(var E=w.next();!E.done;E=w.next())E=E.value,E.videoPrimaryInfoRenderer&&(H=_.BL.getValueByKeys.apply(_.BL,[E].concat(_.Bt(mdM)))),
E.videoSecondaryInfoRenderer&&(f=_.BL.getValueByKeys.apply(_.BL,[E].concat(_.Bt(o4G))))}else _.C7(Error("yj"));var U;Y.currentVideoEndpoint?U=Y.currentVideoEndpoint:_.C7(Error("zj"));var X;b&&(X=_.BL.getValueByKeys(b,"playabilityStatus","miniplayer","miniplayerRenderer"));Y={miniplayerTitle:H,miniplayerSubtitle:f,watchEndpoint:U,playlistData:V};X&&(Y.miniplayerRenderer=X);return Y};
kJr=function(Y){if(Y)return _.LA(Y)};
_.lrb=function(){return{isFullscreen:function(){throw Error("Aj");},
toggleFullscreen:function(){throw Error("Bj");},
exitFullscreen:function(){throw Error("Cj");},
isAutonavEnabled:function(){throw Error("Dj");},
setAutonavEnabled:function(){throw Error("Ej");},
isAutoplaySetExplicitly:function(){throw Error("Fj");}}};
hte=function(Y){return Y.videoDuration?Y.numTaps>1&&Y.tapDirection!==0?_.rp(Y.draggedTime/Y.videoDuration,0,1):_.rp((Y.playedTime||0)/Y.videoDuration,0,1):0};
xdu=function(Y){return Y.videoDuration?Y.isDragging||Y.numTaps>1&&Y.tapDirection!==0?_.rp(Y.draggedTime/Y.videoDuration,0,1):_.rp((Y.playedTime||0)/Y.videoDuration,0,1):0};
shg=function(Y){var b,w,V;return _.v(Y==null?void 0:(b=Y.markersMap)==null?void 0:(w=b.find(function(H){return H.key==="HEATSEEKER"}))==null?void 0:(V=w.value)==null?void 0:V.heatmap,qOr)};
QhM=function(Y){var b,w;return(w=(b=shg(Y))==null?void 0:b.heatMarkersDecorations)!=null?w:[]};
v4I=function(Y){if(_.q("mweb_supported_chapters_killswitch"))return!0;var b;return!!(Y==null?0:(b=Y.markersMap)==null?0:b.find(function(w){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(w.key)}))};
_.PRK=function(Y){var b=Object,w=b.assign,V;Y={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(V=Y==null?void 0:Y.getPlayerState())!=null?V:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return w.call(b,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},Y,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
ZNL=function(Y){return function(b){var w=Y(),V,H=(V=w.playerApi)==null?void 0:V.getPlayerState();b&&b!==w.playerState&&(b===1||b===2)&&w.setState({playerState:H})}};
n4a=function(Y){return function(b){var w=Y(),V=w.playerApi;V&&(b==null?void 0:b.type)==="newdata"&&(Bda&&(clearTimeout(Bda),Bda=void 0),_.q("web_shorts_use_progress_state_for_gapless")?(b=V==null?void 0:V.getProgressState(b==null?void 0:b.playertype),b=b.seekableEnd-b.seekableStart):b=V==null?void 0:V.getDuration(b==null?void 0:b.playertype),w.setState({playedTime:0,videoDuration:b}))}};
M2G=function(Y){return function(b){var w=Y(),V=w.playerApi;if(V){var H=V.getPresentingPlayerType();_.q("web_shorts_use_progress_state_for_gapless")?(V=V.getProgressState(H),V=V.seekableEnd-V.seekableStart):V=V.getDuration(H);w.setState({playedTime:b,videoDuration:V})}}};
ONL=function(Y){var b=Y.element;var w=Y.veType;var V=Y.storedVisualElement===void 0?null:Y.storedVisualElement;var H=Y.elementIndex===void 0?0:Y.elementIndex;Y=Y.clientYouTubeData;var f=_.dO();f!==etb&&(pAa.clear(),etb=f);if(b.visualElement&&pAa.has(b.visualElement))return null;if(V&&pAa.has(V))return b.visualElement=V,null;w=_.sQ(_.Qd(),{veType:w,elementIndex:H,clientYouTubeData:Y});if(!w)return null;b.visualElement=w;pAa.add(w);return w};
_.zi=function(Y,b,w,V){w=w===void 0?null:w;V=V===void 0?WXu:V;var H=H===void 0?null:H;tA(function(){if(b){w instanceof Function&&(w=w());var f=ONL({element:b,veType:Y,storedVisualElement:w,clientYouTubeData:void 0});f&&(A2B(b,H),V(f))}})};
Rtu=function(Y){_.zi(112394,Y,function(){return t2u},function(b){t2u=b})};
L1K=function(Y,b){if(!Y)return[];var w,V,H;Y=((w=Y.markersMap)==null?void 0:(V=w.find(function(f){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(f.key)}))==null?void 0:(H=V.value)==null?void 0:H.chapters)||[];
!ddG(Y)||(b==null?0:b.ignoreStub)||(Y=[F1M()].concat(_.Bt(Y)));return Y};
F1M=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ddG=function(Y){if(Y.length===0)return!1;var b;return((b=_.v(Y[0],WK))==null?void 0:b.timeRangeStartMillis)!==0};
Kk=function(Y){return Y?Y.timeRangeStartMillis||0:0};
arI=function(Y,b){if(Y.isDragging&&b)return Y=SOb(Y,b),Y===-1?F1M():L1K(b)[Y]};
SOb=function(Y,b){return Y.isDragging&&b?L1K(b,{ignoreStub:!0}).findIndex(function(w,V,H){w=rCG(Y);return ztI(w,H,V).scrubberHovering}):-1};
rCG=function(Y){return Object.assign({},Y,{videoDuration:Y.videoDuration*1E3,playedTime:Y.playedTime*1E3,draggedTime:Y.draggedTime*1E3})};
ztI=function(Y,b,w){var V=Kk(_.v(b[w],WK));b=Kk(_.v(b[w+1],WK))||Y.videoDuration;w=Y.isDragging;var H;if(H=Y.isDragging)H=Y.draggedTime,H=H!==null&&H>=V&&H<b;var f=Y.playedTime;return f!==null&&f>=V&&f<b?{videoPosition:"active",isScrubbing:w,scrubberHovering:H}:Y.playedTime<V?{videoPosition:"pending",isScrubbing:w,scrubberHovering:H}:{videoPosition:"seen",isScrubbing:w,scrubberHovering:H}};
W1e=function(Y,b){return Y.videoPosition==="seen"||(b===void 0?0:b)>0};
K1L=function(Y,b,w){b=Y/b.storyboardInterval;var V=L1K(w);if(!V.length)return-b*72;w=0;V=_.N(V);for(var H=V.next();!H.done;H=V.next())if(Kk(_.v(H.value,WK))/1E3<Y)w++;else break;return-(b*72)-w*56};
iNI=function(Y){return Y?Y.width/Y.columns:0};
ACL=function(Y){return Y.isHovering?Y.hoveredTime:Y.draggedTime};
CRe=function(Y,b){Y=Y.draggedTime*1E3;return Y>=b.visibleTimeRangeStartMillis&&Y<=b.visibleTimeRangeEndMillis};
_.yCu=function(Y){if(Y===void 0||Number.isNaN(Y))return"--:--";var b=Math.abs(Math.floor(Y)),w=Math.floor(b/86400),V=Math.floor(b%86400/3600),H=Math.floor(b%3600/60);b=Math.floor(b%60);var f="";w>0&&(f+=w+":",V<10&&(f+="0"));if(w>0||V>0)f+=V+":",H<10&&(f+="0");f+=H+":";b<10&&(f+="0");f+=b;return Y>=0?f:"-"+f};
$db=function(Y,b){return function(){var w=ACL(Y());var V=b();var H=Y().playerApi;if(H&&H.getNumberOfStoryboardLevels()!==0){var f=H.getStoryboardFrameIndex(w,1);f!==-1?V=H.getStoryboardFrame(f,1):(w=H.getStoryboardFrameIndex(w,0),H=H.getStoryboardFrame(w,0),V&&H&&(H.height*=3,H.width*=3),V=H)}else V=null;if(!V)return null;b()&&(V.width=90*V.columns,V.height=160*V.rows);return V}};
_.AJ=function(Y){if(!Y||Y.getVideoData)return Y};
jhq=function(){var Y;return{playerApi:(Y=_.mZ())!=null?Y:void 0}};
GJr=function(Y){var b;_.c(function(w){if(w.nextAddress==1)return _.D(w,_.DE(),2);if(b=w.yieldResult)b.unMute(!0),b.setVolume(Y,!0);_.om(w)})};
Tdv=function(Y,b){Y&&(Y.value=""+b,Y.style.setProperty("--gradient-percent",b+"%"))};
JCu=function(Y){var b;return(b=Y==null?void 0:Y.value)!=null?b:0};
ujI=function(){var Y;_.c(function(b){if(b.nextAddress==1)return _.D(b,_.DE(),2);Y=b.yieldResult;if(!Y)return b.return();Y.isMuted()?Y.unMute(!0):Y.mute(!0);_.om(b)})};
YW6=function(Y){var b=_.fH().resolve(_.Ck).getPlayerElement();b&&Y&&(Y===1?b.pause():b.play())};
bKg=function(Y){_.De(Y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
wJI=function(Y){_.De(Y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
HKe=function(Y){return _.Oz(Y.document.body,function(){return _.m(Vnr,null)})};
gjt=function(){var Y=window.performance.getEntriesByType("navigation");return Y?Y.map(function(b){return b.type}).includes("reload"):!1};
m9I=function(){yY(yY(yY(yY(yY(yY(yY(_.fH().resolve(_.$i),_.fJL),_.NkG),_.Ejg),_.cYr),_.U9G),_.XJe),_.D9M)};
ojM=function(Y,b){b=b===void 0?!1:b;var w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return b||!_.q("kevlar_shorts_seedless_retry_initial_load")||(w=window,V=!(!w.getDataPromise&&!w.getInitialData),V)?_.D(E,wAr(),2):(setTimeout(ojM.bind(window,Y,!0),1E3),E.return());if(E.nextAddress!=3)return H=E.yieldResult,_.D(E,IJL(H),3);f=E.yieldResult;Lk(Y,f);_.om(E)})};
IJL=function(Y){var b;if((b=Y.response)==null||!b.replacementEndpoint)return _.k7(Y);b=_.fH().resolve(Mq);Y=Y.response;_.v(Y.replacementEndpoint,_.BH)&&Y.sequenceContinuation&&(_.v(Y.replacementEndpoint,_.BH).sequenceParams=Y.sequenceContinuation);return jZ(b,Y.replacementEndpoint,{},_.wB.location.href,"shorts",function(){},function(){return!1})};
kEe=function(Y){var b=_.u3(),w,V=_.v((w=Y.response)==null?void 0:w.frameworkUpdates,T9),H;w=_.v((H=Y.playerResponse)==null?void 0:H.frameworkUpdates,T9);var f;Y=_.v((f=Y.reelWatchSequenceResponse)==null?void 0:f.frameworkUpdates,T9);V&&_.sf(V,b);w&&_.sf(w,b);Y&&_.sf(Y,b)};
lJb=function(Y){var b;_.q("enable_redirect_linking_for_desktop_web_client")&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&Y.url&&(Y.url=Y.url.toString()+window.location.hash)};
qWL=function(Y){var b=_.fH(),w=b.resolve(Mq);b=b.resolve(_.hDt);Y.endpoint&&(w=x9v(w,Y.endpoint),w.content&&Y.response&&_.Gi(b,Y.response,w.content),w.player&&Y.playerResponse&&_.Gi(b,Y.playerResponse,w.player),w.reelSequence&&Y.reelWatchSequenceResponse&&_.Gi(b,Y.reelWatchSequenceResponse,w.reelSequence))};
Ti=function(Y,b){kEe(b);var w;(b==null?0:b.url)&&((w=window.location.hash)==null?0:w.includes("redirect_state"))&&(lJb(b),(w=YOI(b.url))&&_.Xx(Y.root,"yt-initialize-third-party",[w,b]));qWL(b);w=_.fH();var V=w.resolve(sEg);b.playerResponse&&w.resolve(QEM).handleResponse(b.playerResponse);if(b.playerResponse){w=void 0;if(_.q("ab_v_vid_sig")&&b.endpoint){var H,f=(H=_.v(b.endpoint,_.TG))!=null?H:_.v(b.endpoint,_.BH);f&&(w=f.videoId)}vjM(V,b.playerResponse,w)}b.playerResponse&&GWK(b.playerResponse)&&
_.q("web_enable_ab_rsp_cl")?ETv().then(function(){PlK(V,b.playerResponse);Lk(Y,b)}):Lk(Y,b)};
BkM=function(Y){if(Y=Y.root.data){var b=_.fH().resolve(ZKg);Y.endpoint&&(Y.response&&b.handleResponse(Y.response,void 0,document.querySelector("ytd-app")),Y.playerResponse&&b.handleResponse(Y.playerResponse),Y.reelWatchSequenceResponse&&b.handleResponse(Y.reelWatchSequenceResponse))}};
njt=function(Y){var b,w,V,H,f,E;return _.c(function(U){switch(U.nextAddress){case 1:b=window;if(!b.getDataPromise){U.jumpTo(2);break}_.ct(U,3);return _.D(U,b.getDataPromise(),5);case 5:w=U.yieldResult;Ti(Y,w);_.$u(U,4);break;case 3:return _.mS(U),_.D(U,tJ(),6);case 6:V=U.yieldResult,Lk(Y,V);case 4:return U.return();case 2:if(!_.q("sw_nav_preload_pbj")){U.jumpTo(7);break}b.fetchInitialData=function(){var X;return _.c(function(I){if(I.nextAddress==1)return _.D(I,tJ(),2);X=I.yieldResult;Lk(Y,X);_.om(I)})};
if(b.getInitialData){b.loadInitialData=function(X){Ti(Y,X)};
H=b.getInitialData();b.getInitialData=void 0;Ti(Y,H);U.jumpTo(8);break}b.fetchInitialData=void 0;return _.D(U,tJ(),9);case 9:f=U.yieldResult,Lk(Y,f);case 8:return U.return();case 7:b.getInitialData?(E=b.getInitialData(),b.getInitialData=void 0,Ti(Y,E)):b.loadInitialData=function(X){Ti(Y,X)},_.om(U)}})};
Mnu=function(Y){var b=0;return function(){return b<Y.length?{done:!1,value:Y[b++]}:{done:!0}}};
eDK=typeof Object.defineProperties=="function"?Object.defineProperty:function(Y,b,w){if(Y==Array.prototype||Y==Object.prototype)return Y;Y[b]=w.value;return Y};
pJK=function(Y){Y=["object"==typeof globalThis&&globalThis,Y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<Y.length;++b){var w=Y[b];if(w&&w.Math==Math)return w}throw Error("a");};
_.up=pJK(this);uf=function(Y,b){if(b)a:{var w=_.up;Y=Y.split(".");for(var V=0;V<Y.length-1;V++){var H=Y[V];if(!(H in w))break a;w=w[H]}Y=Y[Y.length-1];V=w[Y];b=b(V);b!=V&&b!=null&&eDK(w,Y,{configurable:!0,writable:!0,value:b})}};
uf("Symbol",function(Y){if(Y)return Y;var b=function(f,E){this.$jscomp$symbol$id_=f;eDK(this,"description",{configurable:!0,writable:!0,value:E})};
b.prototype.toString=function(){return this.$jscomp$symbol$id_};
var w="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",V=0,H=function(f){if(this instanceof H)throw new TypeError("b");return new b(w+(f||"")+"_"+V++,f)};
return H});
uf("Symbol.iterator",function(Y){if(Y)return Y;Y=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),w=0;w<b.length;w++){var V=_.up[b[w]];typeof V==="function"&&typeof V.prototype[Y]!="function"&&eDK(V.prototype,Y,{configurable:!0,writable:!0,value:function(){return OKa(Mnu(this))}})}return Y});
uf("Symbol.asyncIterator",function(Y){return Y?Y:Symbol("d")});
var OKa=function(Y){Y={next:Y};Y[Symbol.iterator]=function(){return this};
return Y},tnB=typeof Object.create=="function"?Object.create:function(Y){var b=function(){};
b.prototype=Y;return new b},RDv=function(){function Y(){function w(){}
new w;Reflect.construct(w,[],function(){});
return new w instanceof w}
if(typeof Reflect!="undefined"&&Reflect.construct){if(Y())return Reflect.construct;var b=Reflect.construct;return function(w,V,H){w=b(w,V);H&&Reflect.setPrototypeOf(w,H.prototype);return w}}return function(w,V,H){H===void 0&&(H=w);
H=tnB(H.prototype||Object.prototype);return Function.prototype.apply.call(w,H,V)||H}}(),d9a;
if(typeof Object.setPrototypeOf=="function")d9a=Object.setPrototypeOf;else{var Fjv;a:{var LjL={a:!0},SWu={};try{SWu.__proto__=LjL;Fjv=SWu.a;break a}catch(Y){}Fjv=!1}d9a=Fjv?function(Y,b){Y.__proto__=b;if(Y.__proto__!==b)throw new TypeError("e`"+Y);return Y}:null}Yv=d9a;
_.P=function(Y,b){Y.prototype=tnB(b.prototype);Y.prototype.constructor=Y;if(Yv)Yv(Y,b);else for(var w in b)if(w!="prototype")if(Object.defineProperties){var V=Object.getOwnPropertyDescriptor(b,w);V&&Object.defineProperty(Y,w,V)}else Y[w]=b[w];Y.superClass_=b.prototype};
_.N=function(Y){var b=typeof Symbol!="undefined"&&Symbol.iterator&&Y[Symbol.iterator];if(b)return b.call(Y);if(typeof Y.length=="number")return{next:Mnu(Y)};throw Error("f`"+String(Y));};
uO=function(Y){for(var b,w=[];!(b=Y.next()).done;)w.push(b.value);return w};
_.Bt=function(Y){return Y instanceof Array?Y:uO(_.N(Y))};
_.wM=function(Y){return bL(Y,Y)};
bL=function(Y,b){Y.raw=b;Object.freeze&&(Object.freeze(Y),Object.freeze(b));return Y};
V0=function(Y,b){return Object.prototype.hasOwnProperty.call(Y,b)};
aJM=typeof Object.assign=="function"?Object.assign:function(Y,b){for(var w=1;w<arguments.length;w++){var V=arguments[w];if(V)for(var H in V)V0(V,H)&&(Y[H]=V[H])}return Y};
uf("Object.assign",function(Y){return Y||aJM});
var rYB=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},zDg=function(Y){if(Y.isRunning_)throw new TypeError("h");
Y.isRunning_=!0};
rYB.prototype.JSC$6776_next_=function(Y){this.yieldResult=Y};
var Wjg=function(Y,b){Y.abruptCompletion_={exception:b,isException:!0};Y.nextAddress=Y.catchAddress_||Y.finallyAddress_};
rYB.prototype.return=function(Y){this.abruptCompletion_={return:Y};this.nextAddress=this.finallyAddress_};
_.D=function(Y,b,w){Y.nextAddress=w;return{value:b}};
rYB.prototype.jumpTo=function(Y){this.nextAddress=Y};
_.om=function(Y){Y.nextAddress=0};
_.ct=function(Y,b,w){Y.catchAddress_=b;w!=void 0&&(Y.finallyAddress_=w)};
_.X3=function(Y,b){Y.catchAddress_=0;Y.finallyAddress_=b||0};
_.$u=function(Y,b,w){Y.nextAddress=b;Y.catchAddress_=w||0};
_.mS=function(Y,b){Y.catchAddress_=b||0;b=Y.abruptCompletion_.exception;Y.abruptCompletion_=null;return b};
_.Ux=function(Y,b,w,V){V?Y.finallyContexts_[V]=Y.abruptCompletion_:Y.finallyContexts_=[Y.abruptCompletion_];Y.catchAddress_=b||0;Y.finallyAddress_=w||0};
_.Dl=function(Y,b,w){w=Y.finallyContexts_.splice(w||0)[0];(w=Y.abruptCompletion_=Y.abruptCompletion_||w)?w.isException?Y.nextAddress=Y.catchAddress_||Y.finallyAddress_:w.jumpTo!=void 0&&Y.finallyAddress_<w.jumpTo?(Y.nextAddress=w.jumpTo,Y.abruptCompletion_=null):Y.nextAddress=Y.finallyAddress_:Y.nextAddress=b};
Kjr=function(Y){this.JSC$6781_context_=new rYB;this.program_=Y};
AYI=function(Y,b){zDg(Y.JSC$6781_context_);var w=Y.JSC$6781_context_.yieldAllIterator_;if(w)return iKL(Y,"return"in w?w["return"]:function(V){return{value:V,done:!0}},b,Y.JSC$6781_context_.return);
Y.JSC$6781_context_.return(b);return HZ(Y)};
iKL=function(Y,b,w,V){try{var H=b.call(Y.JSC$6781_context_.yieldAllIterator_,w);if(!(H instanceof Object))throw new TypeError("g`"+H);if(!H.done)return Y.JSC$6781_context_.isRunning_=!1,H;var f=H.value}catch(E){return Y.JSC$6781_context_.yieldAllIterator_=null,Wjg(Y.JSC$6781_context_,E),HZ(Y)}Y.JSC$6781_context_.yieldAllIterator_=null;V.call(Y.JSC$6781_context_,f);return HZ(Y)};
HZ=function(Y){for(;Y.JSC$6781_context_.nextAddress;)try{var b=Y.program_(Y.JSC$6781_context_);if(b)return Y.JSC$6781_context_.isRunning_=!1,{value:b.value,done:!1}}catch(w){Y.JSC$6781_context_.yieldResult=void 0,Wjg(Y.JSC$6781_context_,w)}Y.JSC$6781_context_.isRunning_=!1;if(Y.JSC$6781_context_.abruptCompletion_){b=Y.JSC$6781_context_.abruptCompletion_;Y.JSC$6781_context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
Clt=function(Y){this.next=function(b){zDg(Y.JSC$6781_context_);Y.JSC$6781_context_.yieldAllIterator_?b=iKL(Y,Y.JSC$6781_context_.yieldAllIterator_.next,b,Y.JSC$6781_context_.JSC$6776_next_):(Y.JSC$6781_context_.JSC$6776_next_(b),b=HZ(Y));return b};
this.throw=function(b){zDg(Y.JSC$6781_context_);Y.JSC$6781_context_.yieldAllIterator_?b=iKL(Y,Y.JSC$6781_context_.yieldAllIterator_["throw"],b,Y.JSC$6781_context_.JSC$6776_next_):(Wjg(Y.JSC$6781_context_,b),b=HZ(Y));return b};
this.return=function(b){return AYI(Y,b)};
this[Symbol.iterator]=function(){return this}};
_.UOe=function(Y,b){b=new Clt(new Kjr(b));Yv&&Y.prototype&&Yv(b,Y.prototype);return b};
yYt=function(Y){function b(V){return Y.next(V)}
function w(V){return Y.throw(V)}
return new Promise(function(V,H){function f(E){E.done?V(E.value):Promise.resolve(E.value).then(b,w).then(f,H)}
f(Y.next())})};
_.c=function(Y){return yYt(new Clt(new Kjr(Y)))};
i3g=function(Y){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return Y};
this.next=function(b){return Promise.resolve(Y.next(b))};
this["throw"]=function(b){return new Promise(function(w,V){var H=Y["throw"];H!==void 0?w(H.call(Y,b)):(w=Y["return"],w!==void 0&&w.call(Y),V(new TypeError("i")))})};
Y["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(Y["return"](b))})};
_.BN=function(){for(var Y=Number(this),b=[],w=Y;w<arguments.length;w++)b[w-Y]=arguments[w];return b};
_.Xn6=function(Y){return Y};
uf("globalThis",function(Y){return Y||_.up});
uf("Reflect",function(Y){return Y?Y:{}});
uf("Reflect.construct",function(){return RDv});
uf("Reflect.setPrototypeOf",function(Y){return Y?Y:Yv?function(b,w){try{return Yv(b,w),!0}catch(V){return!1}}:null});
uf("Promise",function(Y){function b(){this.batch_=null}
function w(E){return E instanceof H?E:new H(function(U){U(E)})}
if(Y&&(typeof _.up.PromiseRejectionEvent!=="undefined"||!_.up.Promise||_.up.Promise.toString().indexOf("[native code]")===-1))return Y;b.prototype.asyncExecute=function(E){if(this.batch_==null){this.batch_=[];var U=this;this.asyncExecuteFunction(function(){U.executeBatch_()})}this.batch_.push(E)};
var V=_.up.setTimeout;b.prototype.asyncExecuteFunction=function(E){V(E,0)};
b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var E=this.batch_;this.batch_=[];for(var U=0;U<E.length;++U){var X=E[U];E[U]=null;try{X()}catch(I){this.asyncThrow_(I)}}}this.batch_=null};
b.prototype.asyncThrow_=function(E){this.asyncExecuteFunction(function(){throw E;})};
var H=function(E){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var U=this.createResolveAndReject_();try{E(U.resolve,U.reject)}catch(X){U.reject(X)}};
H.prototype.createResolveAndReject_=function(){function E(I){return function(k){X||(X=!0,I.call(U,k))}}
var U=this,X=!1;return{resolve:E(this.resolveTo_),reject:E(this.JSC$6797_reject_)}};
H.prototype.resolveTo_=function(E){if(E===this)this.JSC$6797_reject_(new TypeError("j"));else if(E instanceof H)this.settleSameAsPromise_(E);else{a:switch(typeof E){case "object":var U=E!=null;break a;case "function":U=!0;break a;default:U=!1}U?this.resolveToNonPromiseObj_(E):this.fulfill_(E)}};
H.prototype.resolveToNonPromiseObj_=function(E){var U=void 0;try{U=E.then}catch(X){this.JSC$6797_reject_(X);return}typeof U=="function"?this.settleSameAsThenable_(U,E):this.fulfill_(E)};
H.prototype.JSC$6797_reject_=function(E){this.settle_(2,E)};
H.prototype.fulfill_=function(E){this.settle_(1,E)};
H.prototype.settle_=function(E,U){if(this.state_!=0)throw Error("k`"+E+"`"+U+"`"+this.state_);this.state_=E;this.result_=U;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
H.prototype.scheduleUnhandledRejectionCheck_=function(){var E=this;V(function(){if(E.notifyUnhandledRejection_()){var U=_.up.console;typeof U!=="undefined"&&U.error(E.result_)}},1)};
H.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var E=_.up.CustomEvent,U=_.up.Event,X=_.up.dispatchEvent;if(typeof X==="undefined")return!0;typeof E==="function"?E=new E("unhandledrejection",{cancelable:!0}):typeof U==="function"?E=new U("unhandledrejection",{cancelable:!0}):(E=_.up.document.createEvent("CustomEvent"),E.initCustomEvent("unhandledrejection",!1,!0,E));E.promise=this;E.reason=this.result_;return X(E)};
H.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var E=0;E<this.onSettledCallbacks_.length;++E)f.asyncExecute(this.onSettledCallbacks_[E]);this.onSettledCallbacks_=null}};
var f=new b;H.prototype.settleSameAsPromise_=function(E){var U=this.createResolveAndReject_();E.callWhenSettled_(U.resolve,U.reject)};
H.prototype.settleSameAsThenable_=function(E,U){var X=this.createResolveAndReject_();try{E.call(U,X.resolve,X.reject)}catch(I){X.reject(I)}};
H.prototype.then=function(E,U){function X(x,Q){return typeof x=="function"?function(Z){try{I(x(Z))}catch(e){k(e)}}:Q}
var I,k,l=new H(function(x,Q){I=x;k=Q});
this.callWhenSettled_(X(E,I),X(U,k));return l};
H.prototype.catch=function(E){return this.then(void 0,E)};
H.prototype.callWhenSettled_=function(E,U){function X(){switch(I.state_){case 1:E(I.result_);break;case 2:U(I.result_);break;default:throw Error("l`"+I.state_);}}
var I=this;this.onSettledCallbacks_==null?f.asyncExecute(X):this.onSettledCallbacks_.push(X);this.isRejectionHandled_=!0};
H.resolve=w;H.reject=function(E){return new H(function(U,X){X(E)})};
H.race=function(E){return new H(function(U,X){for(var I=_.N(E),k=I.next();!k.done;k=I.next())w(k.value).callWhenSettled_(U,X)})};
H.all=function(E){var U=_.N(E),X=U.next();return X.done?w([]):new H(function(I,k){function l(Z){return function(e){x[Z]=e;Q--;Q==0&&I(x)}}
var x=[],Q=0;do x.push(void 0),Q++,w(X.value).callWhenSettled_(l(x.length-1),k),X=U.next();while(!X.done)})};
return H});
var gM=function(Y,b,w){if(Y==null)throw new TypeError("m`"+w);if(b instanceof RegExp)throw new TypeError("n`"+w);return Y+""};
uf("String.prototype.startsWith",function(Y){return Y?Y:function(b,w){var V=gM(this,b,"startsWith"),H=V.length,f=b.length;w=Math.max(0,Math.min(w|0,V.length));for(var E=0;E<f&&w<H;)if(V[w++]!=b[E++])return!1;return E>=f}});
uf("Object.setPrototypeOf",function(Y){return Y||Yv});
uf("Symbol.dispose",function(Y){return Y?Y:Symbol("o")});
uf("SuppressedError",function(Y){function b(w,V,H){if(!(this instanceof b))return new b(w,V,H);H=Error(H);"stack"in H&&(this.stack=H.stack);this.message=H.message;this.error=w;this.suppressed=V}
if(Y)return Y;_.P(b,Error);b.prototype.name="SuppressedError";return b});
var $9v=function(Y,b,w){Y instanceof String&&(Y=String(Y));for(var V=Y.length,H=0;H<V;H++){var f=Y[H];if(b.call(w,f,H,Y))return{i:H,v:f}}return{i:-1,v:void 0}};
uf("Array.prototype.find",function(Y){return Y?Y:function(b,w){return $9v(this,b,w).v}});
uf("WeakMap",function(Y){function b(){}
function w(X){var I=typeof X;return I==="object"&&X!==null||I==="function"}
function V(X){if(!V0(X,f)){var I=new b;eDK(X,f,{value:I})}}
function H(X){var I=Object[X];I&&(Object[X]=function(k){if(k instanceof b)return k;Object.isExtensible(k)&&V(k);return I(k)})}
if(function(){if(!Y||!Object.seal)return!1;try{var X=Object.seal({}),I=Object.seal({}),k=new Y([[X,2],[I,3]]);if(k.get(X)!=2||k.get(I)!=3)return!1;k.delete(X);k.set(I,4);return!k.has(X)&&k.get(I)==4}catch(l){return!1}}())return Y;
var f="$jscomp_hidden_"+Math.random();H("freeze");H("preventExtensions");H("seal");var E=0,U=function(X){this.JSC$6804_id_=(E+=Math.random()+1).toString();if(X){X=_.N(X);for(var I;!(I=X.next()).done;)I=I.value,this.set(I[0],I[1])}};
U.prototype.set=function(X,I){if(!w(X))throw Error("p");V(X);if(!V0(X,f))throw Error("q`"+X);X[f][this.JSC$6804_id_]=I;return this};
U.prototype.get=function(X){return w(X)&&V0(X,f)?X[f][this.JSC$6804_id_]:void 0};
U.prototype.has=function(X){return w(X)&&V0(X,f)&&V0(X[f],this.JSC$6804_id_)};
U.prototype.delete=function(X){return w(X)&&V0(X,f)&&V0(X[f],this.JSC$6804_id_)?delete X[f][this.JSC$6804_id_]:!1};
return U});
uf("Map",function(Y){if(function(){if(!Y||typeof Y!="function"||!Y.prototype.entries||typeof Object.seal!="function")return!1;try{var U=Object.seal({x:4}),X=new Y(_.N([[U,"s"]]));if(X.get(U)!="s"||X.size!=1||X.get({x:4})||X.set({x:4},"t")!=X||X.size!=2)return!1;var I=X.entries(),k=I.next();if(k.done||k.value[0]!=U||k.value[1]!="s")return!1;k=I.next();return k.done||k.value[0].x!=4||k.value[1]!="t"||!I.next().done?!1:!0}catch(l){return!1}}())return Y;
var b=new WeakMap,w=function(U){this[0]={};this[1]=f();this.size=0;if(U){U=_.N(U);for(var X;!(X=U.next()).done;)X=X.value,this.set(X[0],X[1])}};
w.prototype.set=function(U,X){U=U===0?0:U;var I=V(this,U);I.list||(I.list=this[0][I.id]=[]);I.entry?I.entry.value=X:(I.entry={next:this[1],previous:this[1].previous,head:this[1],key:U,value:X},I.list.push(I.entry),this[1].previous.next=I.entry,this[1].previous=I.entry,this.size++);return this};
w.prototype.delete=function(U){U=V(this,U);return U.entry&&U.list?(U.list.splice(U.index,1),U.list.length||delete this[0][U.id],U.entry.previous.next=U.entry.next,U.entry.next.previous=U.entry.previous,U.entry.head=null,this.size--,!0):!1};
w.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};
w.prototype.has=function(U){return!!V(this,U).entry};
w.prototype.get=function(U){return(U=V(this,U).entry)&&U.value};
w.prototype.entries=function(){return H(this,function(U){return[U.key,U.value]})};
w.prototype.keys=function(){return H(this,function(U){return U.key})};
w.prototype.values=function(){return H(this,function(U){return U.value})};
w.prototype.forEach=function(U,X){for(var I=this.entries(),k;!(k=I.next()).done;)k=k.value,U.call(X,k[1],k[0],this)};
w.prototype[Symbol.iterator]=w.prototype.entries;var V=function(U,X){var I=X&&typeof X;I=="object"||I=="function"?b.has(X)?I=b.get(X):(I=""+ ++E,b.set(X,I)):I="p_"+X;var k=U[0][I];if(k&&V0(U[0],I))for(U=0;U<k.length;U++){var l=k[U];if(X!==X&&l.key!==l.key||X===l.key)return{id:I,list:k,index:U,entry:l}}return{id:I,list:k,index:-1,entry:void 0}},H=function(U,X){var I=U[1];
return OKa(function(){if(I){for(;I.head!=U[1];)I=I.previous;for(;I.next!=I.head;)return I=I.next,{done:!1,value:X(I)};I=null}return{done:!0,value:void 0}})},f=function(){var U={};
return U.previous=U.next=U.head=U},E=0;
return w});
uf("Set",function(Y){if(function(){if(!Y||typeof Y!="function"||!Y.prototype.entries||typeof Object.seal!="function")return!1;try{var w=Object.seal({x:4}),V=new Y(_.N([w]));if(!V.has(w)||V.size!=1||V.add(w)!=V||V.size!=1||V.add({x:4})!=V||V.size!=2)return!1;var H=V.entries(),f=H.next();if(f.done||f.value[0]!=w||f.value[1]!=w)return!1;f=H.next();return f.done||f.value[0]==w||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:H.next().done}catch(E){return!1}}())return Y;
var b=function(w){this.JSC$6818_map_=new Map;if(w){w=_.N(w);for(var V;!(V=w.next()).done;)this.add(V.value)}this.size=this.JSC$6818_map_.size};
b.prototype.add=function(w){w=w===0?0:w;this.JSC$6818_map_.set(w,w);this.size=this.JSC$6818_map_.size;return this};
b.prototype.delete=function(w){w=this.JSC$6818_map_.delete(w);this.size=this.JSC$6818_map_.size;return w};
b.prototype.clear=function(){this.JSC$6818_map_.clear();this.size=0};
b.prototype.has=function(w){return this.JSC$6818_map_.has(w)};
b.prototype.entries=function(){return this.JSC$6818_map_.entries()};
b.prototype.values=function(){return this.JSC$6818_map_.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(w,V){var H=this;this.JSC$6818_map_.forEach(function(f){return w.call(V,f,f,H)})};
return b});
uf("Math.log2",function(Y){return Y?Y:function(b){return Math.log(b)/Math.LN2}});
uf("Object.values",function(Y){return Y?Y:function(b){var w=[],V;for(V in b)V0(b,V)&&w.push(b[V]);return w}});
uf("Object.is",function(Y){return Y?Y:function(b,w){return b===w?b!==0||1/b===1/w:b!==b&&w!==w}});
uf("Array.prototype.includes",function(Y){return Y?Y:function(b,w){var V=this;V instanceof String&&(V=String(V));var H=V.length;w=w||0;for(w<0&&(w=Math.max(w+H,0));w<H;w++){var f=V[w];if(f===b||Object.is(f,b))return!0}return!1}});
uf("String.prototype.includes",function(Y){return Y?Y:function(b,w){return gM(this,b,"includes").indexOf(b,w||0)!==-1}});
uf("Array.from",function(Y){return Y?Y:function(b,w,V){w=w!=null?w:function(U){return U};
var H=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var E=0;!(f=b.next()).done;)H.push(w.call(V,f.value,E++))}else for(f=b.length,E=0;E<f;E++)H.push(w.call(V,b[E],E));return H}});
uf("Object.entries",function(Y){return Y?Y:function(b){var w=[],V;for(V in b)V0(b,V)&&w.push([V,b[V]]);return w}});
uf("Number.isFinite",function(Y){return Y?Y:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
uf("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
uf("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
uf("Number.isInteger",function(Y){return Y?Y:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
uf("Number.isSafeInteger",function(Y){return Y?Y:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
uf("String.prototype.endsWith",function(Y){return Y?Y:function(b,w){var V=gM(this,b,"endsWith");w===void 0&&(w=V.length);w=Math.max(0,Math.min(w|0,V.length));for(var H=b.length;H>0&&w>0;)if(V[--w]!=b[--H])return!1;return H<=0}});
var jEa=function(Y,b){Y instanceof String&&(Y+="");var w=0,V=!1,H={next:function(){if(!V&&w<Y.length){var f=w++;return{value:b(f,Y[f]),done:!1}}V=!0;return{done:!0,value:void 0}}};
H[Symbol.iterator]=function(){return H};
return H};
uf("Array.prototype.entries",function(Y){return Y?Y:function(){return jEa(this,function(b,w){return[b,w]})}});
uf("Math.trunc",function(Y){return Y?Y:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var w=Math.floor(Math.abs(b));return b<0?-w:w}});
uf("Number.isNaN",function(Y){return Y?Y:function(b){return typeof b==="number"&&isNaN(b)}});
uf("Array.prototype.keys",function(Y){return Y?Y:function(){return jEa(this,function(b){return b})}});
uf("Array.prototype.values",function(Y){return Y?Y:function(){return jEa(this,function(b,w){return w})}});
uf("Array.prototype.fill",function(Y){return Y?Y:function(b,w,V){var H=this.length||0;w<0&&(w=Math.max(0,H+w));if(V==null||V>H)V=H;V=Number(V);V<0&&(V=Math.max(0,H+V));for(w=Number(w||0);w<V;w++)this[w]=b;return this}});
var fE=function(Y){return Y?Y:Array.prototype.fill};
uf("Int8Array.prototype.fill",fE);uf("Uint8Array.prototype.fill",fE);uf("Uint8ClampedArray.prototype.fill",fE);uf("Int16Array.prototype.fill",fE);uf("Uint16Array.prototype.fill",fE);uf("Int32Array.prototype.fill",fE);uf("Uint32Array.prototype.fill",fE);uf("Float32Array.prototype.fill",fE);uf("Float64Array.prototype.fill",fE);
uf("Object.fromEntries",function(Y){return Y?Y:function(b){var w={};if(!(Symbol.iterator in b))throw new TypeError("r`"+b);b=b[Symbol.iterator].call(b);for(var V=b.next();!V.done;V=b.next()){V=V.value;if(Object(V)!==V)throw new TypeError("s");w[V[0]]=V[1]}return w}});
uf("String.prototype.replaceAll",function(Y){return Y?Y:function(b,w){if(b instanceof RegExp&&!b.global)throw new TypeError("t");return b instanceof RegExp?this.replace(b,w):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),w)}});
uf("Object.getOwnPropertySymbols",function(Y){return Y?Y:function(){return[]}});
uf("String.prototype.repeat",function(Y){return Y?Y:function(b){var w=gM(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("u");b|=0;for(var V="";b;)if(b&1&&(V+=w),b>>>=1)w+=w;return V}});
uf("Array.prototype.findIndex",function(Y){return Y?Y:function(b,w){return $9v(this,b,w).i}});
uf("Array.prototype.flatMap",function(Y){return Y?Y:function(b,w){var V=[];Array.prototype.forEach.call(this,function(H,f){H=b.call(w,H,f,this);Array.isArray(H)?V.push.apply(V,H):V.push(H)});
return V}});
uf("String.prototype.codePointAt",function(Y){return Y?Y:function(b){var w=gM(this,null,"codePointAt"),V=w.length;b=Number(b)||0;if(b>=0&&b<V){b|=0;var H=w.charCodeAt(b);if(H<55296||H>56319||b+1===V)return H;b=w.charCodeAt(b+1);return b<56320||b>57343?H:(H-55296)*1024+b+9216}}});
uf("String.fromCodePoint",function(Y){return Y?Y:function(b){for(var w="",V=0;V<arguments.length;V++){var H=Number(arguments[V]);if(H<0||H>1114111||H!==Math.floor(H))throw new RangeError("v`"+H);H<=65535?w+=String.fromCharCode(H):(H-=65536,w+=String.fromCharCode(H>>>10&1023|55296),w+=String.fromCharCode(H&1023|56320))}return w}});
uf("String.prototype.padStart",function(Y){return Y?Y:function(b,w){var V=gM(this,null,"padStart");b-=V.length;w=w!==void 0?String(w):" ";return(b>0&&w?w.repeat(Math.ceil(b/w.length)).substring(0,b):"")+V}});
uf("Promise.prototype.finally",function(Y){return Y?Y:function(b){return this.then(function(w){return Promise.resolve(b()).then(function(){return w})},function(w){return Promise.resolve(b()).then(function(){throw w;
})})}});
uf("Math.imul",function(Y){return Y?Y:function(b,w){b=Number(b);w=Number(w);var V=b&65535,H=w&65535;return V*H+((b>>>16&65535)*H+V*(w>>>16&65535)<<16>>>0)|0}});
uf("Object.hasOwn",function(Y){return Y?Y:function(b,w){return Object.prototype.hasOwnProperty.call(b,w)}});
uf("Math.sign",function(Y){return Y?Y:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
uf("Array.prototype.flat",function(Y){return Y?Y:function(b){b=b===void 0?1:b;var w=[];Array.prototype.forEach.call(this,function(V){Array.isArray(V)&&b>0?(V=Array.prototype.flat.call(V,b-1),w.push.apply(w,V)):w.push(V)});
return w}});
uf("String.raw",function(Y){return Y?Y:function(b,w){if(b==null)throw new TypeError("w");for(var V=b.raw,H=V.length,f="",E=0;E<H;++E)f+=V[E],E+1<H&&E+1<arguments.length&&(f+=String(arguments[E+1]));return f}});
uf("Reflect.ownKeys",function(Y){return Y?Y:function(b){var w=[],V=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var H=0;H<V.length;H++)(V[H].substring(0,14)=="jscomp_symbol_"?b:w).push(V[H]);return w.concat(b)}});
uf("Object.getOwnPropertyDescriptors",function(Y){return Y?Y:function(b){for(var w={},V=Reflect.ownKeys(b),H=0;H<V.length;H++)w[V[H]]=Object.getOwnPropertyDescriptor(b,V[H]);return w}});
uf("WeakSet",function(Y){if(function(){if(!Y||!Object.seal)return!1;try{var w=Object.seal({}),V=Object.seal({}),H=new Y([w]);if(!H.has(w)||H.has(V))return!1;H.delete(w);H.add(V);return!H.has(w)&&H.has(V)}catch(f){return!1}}())return Y;
var b=function(w){this.JSC$6825_map_=new WeakMap;if(w){w=_.N(w);for(var V;!(V=w.next()).done;)this.add(V.value)}};
b.prototype.add=function(w){this.JSC$6825_map_.set(w,!0);return this};
b.prototype.has=function(w){return this.JSC$6825_map_.has(w)};
b.prototype.delete=function(w){return this.JSC$6825_map_.delete(w)};
return b});
uf("Promise.allSettled",function(Y){function b(V){return{status:"fulfilled",value:V}}
function w(V){return{status:"rejected",reason:V}}
return Y?Y:function(V){var H=this;V=Array.from(V,function(f){return H.resolve(f).then(b,w)});
return H.all(V)}});
uf("Number.parseInt",function(Y){return Y||parseInt});
_._DumpException=window._DumpException||function(Y){throw Y;};
window._DumpException=_._DumpException;var GEb,NX,E0,cZ,TkM,JYK,ue6,Yct,yN,bdv;GEb=GEb||{};_.wB=this||self;_.wG=function(Y,b,w){Y=Y.split(".");w=w||_.wB;for(var V;Y.length&&(V=Y.shift());)Y.length||b===void 0?w[V]&&w[V]!==Object.prototype[V]?w=w[V]:w=w[V]={}:w[V]=b};
NX=function(Y){var b=_.Aq("WIZ_global_data.oxN3nb");Y=b&&b[Y];return Y!=null?Y:!1};
E0=_.wB._F_toggles_default_kevlar_base||[];cZ=function(){};
cZ.get=function(){return null};
_.Aq=function(Y,b){Y=Y.split(".");b=b||_.wB;for(var w=0;w<Y.length;w++)if(b=b[Y[w]],b==null)return null;return b};
_.U0=function(Y){Y.instance_=void 0;Y.getInstance=function(){return Y.instance_?Y.instance_:Y.instance_=new Y}};
_.I7=function(Y){var b=typeof Y;return b!="object"?b:Y?Array.isArray(Y)?"array":b:"null"};
_.TK=function(Y){var b=_.I7(Y);return b=="array"||b=="object"&&typeof Y.length=="number"};
_.bC=function(Y){var b=typeof Y;return b=="object"&&Y!=null||b=="function"};
_.wU=function(Y){return Object.prototype.hasOwnProperty.call(Y,TkM)&&Y[TkM]||(Y[TkM]=++JYK)};
TkM="closure_uid_"+(Math.random()*1E9>>>0);JYK=0;ue6=function(Y,b,w){return Y.call.apply(Y.bind,arguments)};
Yct=function(Y,b,w){if(!Y)throw Error();if(arguments.length>2){var V=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,V);return Y.apply(b,H)}}return function(){return Y.apply(b,arguments)}};
_.nC=function(Y,b,w){_.nC=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ue6:Yct;return _.nC.apply(null,arguments)};
_.v0=function(Y,b){var w=Array.prototype.slice.call(arguments,1);return function(){var V=w.slice();V.push.apply(V,arguments);return Y.apply(this,V)}};
_.XT=function(){return Date.now()};
yN=function(Y){return Y};
_.DX=function(Y,b){function w(){}
w.prototype=b.prototype;Y.superClass_=b.prototype;Y.prototype=new w;Y.prototype.constructor=Y;Y.base=function(V,H,f){for(var E=Array(arguments.length-2),U=2;U<arguments.length;U++)E[U-2]=arguments[U];return b.prototype[H].apply(V,E)}};
bdv=function(Y){return Y};var w86,VWI;_.z=function(Y,b,w,V){var H=arguments.length,f=H<3?b:V===null?V=Object.getOwnPropertyDescriptor(b,w):V,E;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")f=Reflect.decorate(Y,b,w,V);else for(var U=Y.length-1;U>=0;U--)if(E=Y[U])f=(H<3?E(f):H>3?E(b,w,f):E(b,w))||f;H>3&&f&&Object.defineProperty(b,w,f)};
_.K=function(Y,b){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Y,b)};
w86=function(Y,b){if(b!==null&&b!==void 0){if(typeof b!=="object"&&typeof b!=="function")throw new TypeError("x");if(w===void 0){if(!Symbol.dispose)throw new TypeError("z");var w=b[Symbol.dispose]}if(typeof w!=="function")throw new TypeError("A");Y.stack.push({value:b,dispose:w,async:!1})}return b};
VWI=function(Y){function b(f){Y.error=Y.hasError?new SuppressedError(f,Y.error,"An error was suppressed during disposal."):f;Y.hasError=!0}
function w(){for(;V=Y.stack.pop();)try{if(!V.async&&H===1)return H=0,Y.stack.push(V),Promise.resolve().then(w);if(V.dispose){var f=V.dispose.call(V.value);if(V.async)return H|=2,Promise.resolve(f).then(w,function(E){b(E);return w()})}else H|=1}catch(E){b(E)}if(H===1)return Y.hasError?Promise.reject(Y.error):Promise.resolve();
if(Y.hasError)throw Y.error;}
var V,H=0;w()};_.DX(_.Yb,Error);_.Yb.prototype.name="CustomError";var HdI;var gCe=void 0,fUK,NRt=typeof TextDecoder!=="undefined",VLq,wgq=typeof String.prototype.isWellFormed==="function",baG=typeof TextEncoder!=="undefined";var ECI;_.PE=function(Y){for(var b=[],w=0,V=0;V<Y.length;V++){var H=Y.charCodeAt(V);H<128?b[w++]=H:(H<2048?b[w++]=H>>6|192:((H&64512)==55296&&V+1<Y.length&&(Y.charCodeAt(V+1)&64512)==56320?(H=65536+((H&1023)<<10)+(Y.charCodeAt(++V)&1023),b[w++]=H>>18|240,b[w++]=H>>12&63|128):b[w++]=H>>12|224,b[w++]=H>>6&63|128),b[w++]=H&63|128)}return b};
ECI=function(Y){for(var b=[],w=0,V=0;w<Y.length;){var H=Y[w++];if(H<128)b[V++]=String.fromCharCode(H);else if(H>191&&H<224){var f=Y[w++];b[V++]=String.fromCharCode((H&31)<<6|f&63)}else if(H>239&&H<365){f=Y[w++];var E=Y[w++],U=Y[w++];H=((H&7)<<18|(f&63)<<12|(E&63)<<6|U&63)-65536;b[V++]=String.fromCharCode(55296+(H>>10));b[V++]=String.fromCharCode(56320+(H&1023))}else f=Y[w++],E=Y[w++],b[V++]=String.fromCharCode((H&15)<<12|(f&63)<<6|E&63)}return b.join("")};var Dt=String.prototype.trim?function(Y){return Y.trim()}:function(Y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Y)[1]},cX6=/&/g,Uau=/</g,X8b=/>/g,DaB=/"/g,maL=/'/g,oCb=/\x00/g,IUM=/[\x00&<>"']/;var m3=!!(E0[0]>>14&1),kvq=!!(E0[0]>>15&1),lUB=!!(E0[0]&8),hV6=!!(E0[0]&2),xae=!!(E0[0]&4),qcL=!!(E0[0]&16);var he=m3?kvq:NX(610401301),stI=m3?lUB:NX(772657768),QtK=m3?hV6:NX(513659523),vCG=m3?xae:NX(568333945),kcu=m3?qcL:NX(1331761403);var xb,Pit=_.wB.navigator;xb=Pit?Pit.userAgentData||null:null;var TD;_.zK=function(Y,b){return Array.prototype.indexOf.call(Y,b,void 0)};
_.$2=function(Y,b,w){Array.prototype.forEach.call(Y,b,w)};
_.oy=function(Y,b,w){return Array.prototype.filter.call(Y,b,w)};
_.MD=function(Y,b,w){return Array.prototype.map.call(Y,b,w)};
TD=function(Y,b,w){return Array.prototype.some.call(Y,b,w)};
_.uGK=function(Y,b,w){return Array.prototype.every.call(Y,b,w)};var Iy=function(Y){Iy[" "](Y);return Y};
Iy[" "]=function(){};
var tP=function(Y,b){try{return Iy(Y[b]),!0}catch(w){}return!1},x$g=function(Y,b,w,V){V=V?V(b):b;
return Object.prototype.hasOwnProperty.call(Y,V)?Y[V]:Y[V]=w(b)};var ZdB,Yr,BRr,nCM,eVL,p8M,bPG,Odt,tWM,RVG,jrb,Fiv,LiL,zVr,Wig,Kiv;_.zOM=function(){return _.wB.navigator||null};
ZdB=Bg();_.kv=ftg();Yr=vg("Edge");BRr=Yr||_.kv;_.lL=vg("Gecko")&&!(_.Xu(_.kb(),"WebKit")&&!vg("Edge"))&&!(vg("Trident")||vg("MSIE"))&&!vg("Edge");_.hZ=_.Xu(_.kb(),"WebKit")&&!vg("Edge");nCM=_.hZ&&vg("Mobile");_.MWM=_.obI();eVL=_.Itr();p8M=(R6()?xb.platform==="Linux":vg("Linux"))||_.kKI();bPG=_.Drg();Odt=mrv();tWM=vg("iPad");RVG=vg("iPod");_.daa=_.dB();jrb=_.Xu(_.kb(),"KaiOS");Fiv=function(){var Y=_.wB.document;return Y?Y.documentMode:void 0};
a:{var Sca="",aUq=function(){var Y=_.kb();if(_.lL)return/rv:([^\);]+)(\)|;)/.exec(Y);if(Yr)return/Edge\/([\d\.]+)/.exec(Y);if(_.kv)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Y);if(_.hZ)return/WebKit\/(\S+)/.exec(Y);if(ZdB)return/(?:Version)[ \/]?(\S+)/.exec(Y)}();
aUq&&(Sca=aUq?aUq[1]:"");if(_.kv){var rX6=Fiv();if(rX6!=null&&rX6>parseFloat(Sca)){LiL=String(rX6);break a}}LiL=Sca}zVr=LiL;Wig={};_.xv=function(Y){return x$g(Wig,Y,function(){return _.I6(zVr,Y)>=0})};
if(_.wB.document&&_.kv){var ida=Fiv();Kiv=ida?ida:parseInt(zVr,10)||void 0}else Kiv=void 0;_.AXI=Kiv;var Q3t,vLG,CiK;_.qX=na();Q3t=mrv()||vg("iPod");vLG=vg("iPad");CiK=_.Ebb();_.s0=_.pa();_.ra=_.te()&&!_.dB();var yXq,Q0,yzK,w5G,jtr,$aB;yXq={};Q0=null;yzK=_.lL||_.hZ||typeof _.wB.btoa=="function";_.YM=function(Y,b){b===void 0&&(b=0);$aB();b=yXq[b];for(var w=Array(Math.floor(Y.length/3)),V=b[64]||"",H=0,f=0;H<Y.length-2;H+=3){var E=Y[H],U=Y[H+1],X=Y[H+2],I=b[E>>2];E=b[(E&3)<<4|U>>4];U=b[(U&15)<<2|X>>6];X=b[X&63];w[f++]=I+E+U+X}I=0;X=V;switch(Y.length-H){case 2:I=Y[H+1],X=b[(I&15)<<2]||V;case 1:Y=Y[H],w[f]=b[Y>>2]+b[(Y&3)<<4|I>>4]+X+V}return w.join("")};
w5G=function(Y){var b="";jtr(Y,function(w){b+=String.fromCharCode(w)});
return b};
_.XCG=function(Y){var b=[];jtr(Y,function(w){b.push(w)});
return b};
_.c9=function(Y){var b=Y.length,w=b*3/4;w%3?w=Math.floor(w):_.UM("=.",Y[b-1])&&(w=_.UM("=.",Y[b-2])?w-2:w-1);var V=new Uint8Array(w),H=0;jtr(Y,function(f){V[H++]=f});
return H!==w?V.subarray(0,H):V};
jtr=function(Y,b){function w(X){for(;V<Y.length;){var I=Y.charAt(V++),k=Q0[I];if(k!=null)return k;if(!_.EM(I))throw Error("E`"+I);}return X}
$aB();for(var V=0;;){var H=w(-1),f=w(0),E=w(64),U=w(64);if(U===64&&H===-1)break;b(H<<2|f>>4);E!=64&&(b(f<<4&240|E>>2),U!=64&&b(E<<6&192|U))}};
$aB=function(){if(!Q0){Q0={};for(var Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],w=0;w<5;w++){var V=Y.concat(b[w].split(""));yXq[w]=V;for(var H=0;H<V.length;H++){var f=V[H];Q0[f]===void 0&&(Q0[f]=H)}}}};var FGI=typeof Uint8Array!=="undefined",BBa=!_.kv&&typeof btoa==="function",nbI=/[-_.]/g,PI6={"-":"+",_:"/",".":"="},dU={};var Rk,TRa;Rk=function(Y,b){if(b!==dU)throw Error("G");this.JSC$6856_value_=Y;if(Y!=null&&Y.length===0)throw Error("F");};
_.F$=function(){return GvL||(GvL=new Rk(null,dU))};
TRa=function(Y){return new Uint8Array(tc(Y)||0)};
Rk.prototype.isEmpty=function(){return this.JSC$6856_value_==null};
Rk.prototype.sizeBytes=function(){var Y=tc(this);return Y?Y.length:0};
var tc=function(Y){if(dU!==dU)throw Error("G");var b=Y.JSC$6856_value_;b=b==null||FGI&&b!=null&&b instanceof Uint8Array?b:typeof b==="string"?MLK(b):null;return b==null?b:Y.JSC$6856_value_=b},GvL;var pg6=void 0;var st=typeof Symbol==="function"&&typeof Symbol()==="symbol",JXG=lC("jas",void 0,!0),AO=lC(void 0,"0di"),n3=lC(void 0,"1oa"),jX=lC(void 0,Symbol()),p9I=lC(void 0,"0ub"),tKq=lC(void 0,"0ubs"),Fdg=lC(void 0,"0ubsb"),y_B=lC(void 0,"0actk"),Kg=lC("m_m","messagePrototypeMarker",!0),z8b=lC(void 0,"vps"),ndq=lC();var tLI,Oaa,xM,uQu;tLI={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Oaa=Object.defineProperties;_.Qr=st?JXG:"internalArrayState";uQu=[];Z5(uQu,7);xM=Object.freeze(uQu);var iQ={},po={},YRM=function(Y,b,w){this.iterable=Y;this.mapper=b;this.thisArg=w};
YRM.prototype.next=function(){var Y=this.iterable.next();Y.done||(Y.value=this.mapper.call(this.thisArg,Y.value));return Y};
YRM.prototype[Symbol.iterator]=function(){return this};
var b6g=Object.freeze({}),ak={};_.wib=Ko(function(Y){return Y!==null&&Y!==void 0});var zqM=Ko(function(Y){return typeof Y==="number"}),reG=Ko(function(Y){return typeof Y==="string"}),WGe=Ko(function(Y){return typeof Y==="boolean"}),VGu=Ko(function(Y){return Y!=null&&typeof Y==="object"&&typeof Y.then==="function"}),j2g=Ko(function(Y){return typeof Y==="function"}),NG=Ko(function(Y){return!!Y&&(typeof Y==="object"||typeof Y==="function")});var A_=typeof _.wB.BigInt==="function"&&typeof _.wB.BigInt(0)==="bigint";var Lg=Ko(function(Y){return A_?Y>=H6a&&Y<=glu:Y[0]==="-"?KGa(Y,fGG):KGa(Y,NgM)}),fGG=Number.MIN_SAFE_INTEGER.toString(),H6a=A_?BigInt(Number.MIN_SAFE_INTEGER):void 0,NgM=Number.MAX_SAFE_INTEGER.toString(),glu=A_?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Ele=typeof Uint8Array.prototype.slice==="function",jK=0,Gj=0,Gw;var eX,R7,ks,dt,GKa;eX=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Fb=typeof BigInt==="function"?BigInt.asUintN:void 0;R7=Number.isSafeInteger;ks=Number.isFinite;dt=Math.trunc;GKa=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var WIq={};var Zou={},c3u=function(){try{var Y=function(){return RDv(Map,[],this.constructor)};
_.P(Y,Map);Iy(new Y);return!1}catch(b){return!0}}(),vZ=function(){this.JSC$6876_map_=new Map};
_.g=vZ.prototype;_.g.get=function(Y){return this.JSC$6876_map_.get(Y)};
_.g.set=function(Y,b){this.JSC$6876_map_.set(Y,b);this.size=this.JSC$6876_map_.size;return this};
_.g.delete=function(Y){Y=this.JSC$6876_map_.delete(Y);this.size=this.JSC$6876_map_.size;return Y};
_.g.clear=function(){this.JSC$6876_map_.clear();this.size=this.JSC$6876_map_.size};
_.g.has=function(Y){return this.JSC$6876_map_.has(Y)};
_.g.entries=function(){return this.JSC$6876_map_.entries()};
_.g.keys=function(){return this.JSC$6876_map_.keys()};
_.g.values=function(){return this.JSC$6876_map_.values()};
_.g.forEach=function(Y,b){return this.JSC$6876_map_.forEach(Y,b)};
vZ.prototype[Symbol.iterator]=function(){return this.entries()};
var bj=function(){if(c3u)return Object.setPrototypeOf(vZ.prototype,Map.prototype),Object.defineProperties(vZ.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),vZ;var Y=function(){return RDv(Map,[],this.constructor)};
_.P(Y,Map);return Y}(),Cg=function(Y,b,w,V){w=w===void 0?qtK:w;
V=V===void 0?qtK:V;var H=bj.call(this)||this;H.arrayState=Y[_.Qr]|0;H.valueCtor=b;H.keyToApi=w;H.valueToApi=H.valueCtor?QkK:V;for(var f=0;f<Y.length;f++){var E=Y[f],U=w(E[0],!1,!0),X=E[1];b?X===void 0&&(X=null):X=V(E[1],!1,!0,void 0,void 0,H.arrayState);bj.prototype.set.call(H,U,X)}return H};
_.P(Cg,bj);var UUK=function(Y){if(Y.arrayState&2)throw Error("K");};
_.g=Cg.prototype;_.g.clear=function(){UUK(this);bj.prototype.clear.call(this)};
_.g.delete=function(Y){UUK(this);return bj.prototype.delete.call(this,this.keyToApi(Y,!0,!1))};
_.g.entries=function(){if(this.valueCtor){var Y=bj.prototype.keys.call(this);Y=new YRM(Y,vdK,this)}else Y=bj.prototype.entries.call(this);return Y};
_.g.values=function(){if(this.valueCtor){var Y=bj.prototype.keys.call(this);Y=new YRM(Y,Cg.prototype.get,this)}else Y=bj.prototype.values.call(this);return Y};
_.g.forEach=function(Y,b){this.valueCtor?bj.prototype.forEach.call(this,function(w,V,H){Y.call(b,H.get(V),V,H)}):bj.prototype.forEach.call(this,Y,b)};
_.g.set=function(Y,b){UUK(this);Y=this.keyToApi(Y,!0,!1);return Y==null?this:b==null?(bj.prototype.delete.call(this,Y),this):bj.prototype.set.call(this,Y,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
_.g.has=function(Y){return bj.prototype.has.call(this,this.keyToApi(Y,!1,!1))};
_.g.get=function(Y){Y=this.keyToApi(Y,!1,!1);var b=bj.prototype.get.call(this,Y);if(b!==void 0){var w=this.valueCtor;return w?(w=this.valueToApi(b,!1,!0,w,this.callToMutableOnAccess,this.arrayState),w!==b&&bj.prototype.set.call(this,Y,w),w):b}};
Cg.prototype[Symbol.iterator]=function(){return this.entries()};
Cg.prototype.toJSON=void 0;var PCb;var FIt=function(){},Tt=function(Y,b){for(var w in Y)!isNaN(w)&&b(Y,+w,Y[w])},LI6=function(Y){var b=new FIt;
Tt(Y,function(w,V,H){b[V]=fg(H)});
b.reviveUnknownFields=Y.reviveUnknownFields;return b},MKv={reviveIntoImmutable:!0};var dQg;var KIt,ioq;var Xie,vD,xP,Py,DUe,O0,Qu,mUM,olM,FT,IGM,LE,rM,zZ;Xie=_.Co(0);_.PZ={};_.ZX=function(Y,b,w,V,H){b=vD(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,w,H);if(b!==null||V&&Y.noLegacyNull!==po)return b};
vD=function(Y,b,w,V){if(b===-1)return null;var H=b+(w?0:-1),f=Y.length-1;if(!(f<1+(w?0:-1))){if(H>=f){var E=Y[f];if(E!=null&&typeof E==="object"&&E.constructor===Object){w=E[b];var U=!0}else if(H===f)w=E;else return}else w=Y[H];if(V&&w!=null){V=V(w);if(V==null)return V;if(!Object.is(V,w))return U?E[b]=V:Y[H]=V,V}return w}};
_.UK=function(Y,b,w,V){Iw(Y);var H=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;hc(H,H[_.Qr]|0,b,w,V);return Y};
_.BZ=function(Y,b,w){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return M_(Y,Y[_.Qr]|0,b,w)!==void 0};
_.nE=function(Y,b,w,V){var H=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return M_(H,H[_.Qr]|0,b,Py(Y,V,w))!==void 0};
_.V9=function(Y){return Y===b6g?2:4};
_.MX=function(Y,b){Y=_.ZX(Y,b,void 0,void 0,YXq);return Y==null?_.F$():Y};
xP=function(Y,b,w,V){Iw(Y);var H=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.Qr]|0;if(V==null){var E=wIt(H);if(VXb(E,H,f,w)===b)E.set(w,0);else return Y}else f=Hgg(H,f,w,b);hc(H,f,b,V);return Y};
_.eu=function(Y,b,w,V){var H=Y[_.Qr]|0,f=zj(H);H=Hgg(Y,H,w,b,f);hc(Y,H,b,V,f)};
Py=function(Y,b,w){return _.pE(Y,b)===w?w:-1};
_.pE=function(Y,b){Y=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return VXb(wIt(Y),Y,void 0,b,void 0)};
DUe=function(Y,b,w){var V=Y[_.Qr]|0,H=zj(V),f=vD(Y,w,H);if(f!=null&&f[Kg]===iQ){if(!Ot(f))return XD(f),f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var E=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(f)&&(E=f);if(E){var U=E[_.Qr]|0;U&2&&(E=N_(E,U))}E=f3(E,b,!0);E!==f&&hc(Y,V,w,E,H);return E};
_.EK=function(Y,b,w,V){var H=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.Qr]|0;b=M_(H,f,b,w,V);if(b==null)return b;f=H[_.Qr]|0;if(!Ot(Y,f)){var E=skM(b);E!==b&&(XD(Y)&&(H=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=H[_.Qr]|0),b=E,f=hc(H,f,w,b,V),kM(H,f))}return b};
_.wl=function(Y,b,w,V){var H=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return gsG(Y,H,H[_.Qr]|0,b,w,V,!1,!0)};
_.HN=function(Y,b,w,V){w=fAa(w);_.UK(Y,b,w,V);w&&!Ot(w)&&kM(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return Y};
_.gE=function(Y,b,w,V){V=fAa(V);xP(Y,b,w,V);V&&!Ot(V)&&kM(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return Y};
O0=function(Y,b,w){Iw(Y);var V=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=V[_.Qr]|0;if(w==null)return hc(V,H,b),Y;for(var f=w===xM?7:w[_.Qr]|0,E=f,U=Qt(f),X=U||Object.isFrozen(w),I=!0,k=!0,l=0;l<w.length;l++){var x=w[l];U||(x=Ot(x),I&&(I=!x),k&&(k=x))}U||(f=I?13:5,f=k?f&-4097:f|4096);X&&f===E||(w=fg(w),E=0,f=q_(f,H));f!==E&&Z5(w,f);H=hc(V,H,b,w);2&f||!(4096&f||16&f)||kM(V,H);return Y};
Qu=function(Y,b,w,V){Esg(Y,b,w,V);return Y};
mUM=function(Y,b,w){Esg(Y,b,tZ,void 0,w,1,!0);return Y};
_.Ry=function(Y,b,w){Y=_.ZX(Y,b,void 0,w);b=typeof Y;Y=Y==null?Y:b==="bigint"?_.Co((0,_.Fb)(64,Y)):_.hO(Y)?b==="string"?_.X9L(Y):_.c_g(Y):void 0;return Y};
_.dM=function(Y,b){var w=w===void 0?!1:w;var V;return(V=_.j6I(_.ZX(Y,b)))!=null?V:w};
_.HE=function(Y,b,w){w=w===void 0?0:w;var V;return(V=_.PI(_.ZX(Y,b)))!=null?V:w};
olM=function(Y,b){var w=w===void 0?0:w;Y=_.ZA(_.ZX(Y,b));return Y!=null?Y:w};
FT=function(Y,b,w){w=w===void 0?Xie:w;var V;return(V=_.odg(_.ZX(Y,b)))!=null?V:w};
IGM=function(Y){var b=b===void 0?Xie:b;var w;return(w=_.Ry(Y,23))!=null?w:b};
LE=function(Y,b){var w=w===void 0?0:w;var V;return(V=_.ZX(Y,b,void 0,void 0,_.Xb))!=null?V:w};
_.Su=function(Y,b,w,V){w=w===void 0?"":w;var H;return(H=_.WI(_.ZX(Y,b,V)))!=null?H:w};
_.ay=function(Y,b){var w=w===void 0?0:w;var V;return(V=_.QN(_.ZX(Y,b)))!=null?V:w};
rM=function(Y,b){var w=w===void 0?"0":w;Y=mQG(_.ZX(Y,b),!0);return Y!=null?Y:w};
zZ=function(Y,b,w){return _.Su(Y,Py(Y,w,b))};
_.WZ=function(Y,b,w,V){return _.EK(Y,b,Py(Y,V,w),void 0)};
_.hy=function(Y,b){return _.WI(_.ZX(Y,b,void 0,_.PZ))};
_.E2=function(Y,b,w){return _.UK(Y,b,$rq(w))};
_.pM=function(Y,b,w){return _.Zg(Y,b,$rq(w),!1)};
_.KE=function(Y,b,w){return _.UK(Y,b,_.vI(w))};
_.By=function(Y,b,w){return _.UK(Y,b,OX(w))};
_.hP=function(Y,b,w){return _.UK(Y,b,zt(w))};
_.bf=function(Y,b,w,V){return _.Zg(Y,b,zt(w),"",V)};
_.cO=function(Y,b,w){return _.UK(Y,b,w==null?w:_.sX(w))};
_.iL=function(Y,b,w){return _.Zg(Y,b,w==null?w:_.sX(w),0)};var O3=function(Y,b,w){this.buffer=Y;if(w&&!b)throw Error();this.JSC$6888_isImmutable=b};var kYv=function(Y,b,w,V){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6891_start_=0;this.init(Y,b,w,V)},AZ,haM,xUv,sKe,nsK,lGM;
_.g=kYv.prototype;_.g.init=function(Y,b,w,V){var H=V===void 0?{}:V;V=H.aliasBytesFields===void 0?!1:H.aliasBytesFields;H=H.treatNewDataAsImmutable===void 0?!1:H.treatNewDataAsImmutable;this.aliasBytesFields=V;this.treatNewDataAsImmutable=H;Y&&(Y=cOM(Y,this.treatNewDataAsImmutable),this.bytes_=Y.buffer,this.bytesAreImmutable_=Y.JSC$6888_isImmutable,this.JSC$6891_start_=b||0,this.end_=w!==void 0?this.JSC$6891_start_+w:this.bytes_.length,this.cursor_=this.JSC$6891_start_)};
_.g.free=function(){this.clear();lGM.length<100&&lGM.push(this)};
_.g.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6891_start_=0;this.aliasBytesFields=!1};
_.g.reset=function(){this.cursor_=this.JSC$6891_start_};
_.g.atEnd=function(){return this.cursor_==this.end_};
_.CE=function(Y,b){var w=0,V=0,H=0,f=Y.bytes_,E=Y.cursor_;do{var U=f[E++];w|=(U&127)<<H;H+=7}while(H<32&&U&128);H>32&&(V|=(U&127)>>4);for(H=3;H<32&&U&128;H+=7)U=f[E++],V|=(U&127)<<H;AZ(Y,E);if(U<128)return b(w>>>0,V>>>0);throw Error("X");};
AZ=function(Y,b){Y.cursor_=b;if(b>Y.end_)throw Error("Y`"+b+"`"+Y.end_);};
_.y0=function(Y){var b=Y.bytes_,w=Y.cursor_,V=b[w++],H=V&127;if(V&128&&(V=b[w++],H|=(V&127)<<7,V&128&&(V=b[w++],H|=(V&127)<<14,V&128&&(V=b[w++],H|=(V&127)<<21,V&128&&(V=b[w++],H|=V<<28,V&128&&b[w++]&128&&b[w++]&128&&b[w++]&128&&b[w++]&128&&b[w++]&128)))))throw Error("X");AZ(Y,w);return H};
_.$v=function(Y){var b=Y.bytes_,w=Y.cursor_,V=b[w],H=b[w+1],f=b[w+2];b=b[w+3];AZ(Y,Y.cursor_+4);return(V<<0|H<<8|f<<16|b<<24)>>>0};
haM=function(Y){var b=_.$v(Y);Y=_.$v(Y);return CIg(b,Y)};
xUv=function(Y){var b=_.$v(Y),w=_.$v(Y);Y=(w>>31)*2+1;var V=w>>>20&2047;b=4294967296*(w&1048575)+b;return V==2047?b?NaN:Y*Infinity:V==0?Y*4.9E-324*b:Y*Math.pow(2,V-1075)*(b+4503599627370496)};
_.qRB=function(Y){for(var b=0,w=Y.cursor_,V=w+10,H=Y.bytes_;w<V;){var f=H[w++];b|=f;if((f&128)===0)return AZ(Y,w),!!(b&127)}throw Error("X");};
sKe=function(Y,b){if(b<0)throw Error("Z`"+b);var w=Y.cursor_,V=w+b;if(V>Y.end_)throw Error("Y`"+(Y.end_-w)+"`"+b);Y.cursor_=V;return w};
nsK=function(Y,b){if(b==0)return _.F$();var w=sKe(Y,b);Y.aliasBytesFields&&Y.bytesAreImmutable_?w=Y.bytes_.subarray(w,w+b):(Y=Y.bytes_,b=w+b,w=w===b?new Uint8Array(0):Ele?Y.slice(w,b):new Uint8Array(Y.subarray(w,b)));return w.length==0?_.F$():new Rk(w,dU)};
lGM=[];var vlB=function(Y,b,w,V){if(lGM.length){var H=lGM.pop();H.init(Y,b,w,V);Y=H}else Y=new kYv(Y,b,w,V);this.decoder_=Y;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;QKI(this,V)},QKI=function(Y,b){b=b===void 0?{}:b;
Y.discardUnknownFields=b.discardUnknownFields===void 0?!1:b.discardUnknownFields},pIb=function(Y,b,w,V){if(P_e.length){var H=P_e.pop();
QKI(H,V);H.decoder_.init(Y,b,w,V);return H}return new vlB(Y,b,w,V)},Zgq,rX,Z6v,P_e;
vlB.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;P_e.length<100&&P_e.push(this)};
vlB.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Zgq=function(Y){if(Y.decoder_.atEnd())return!1;Y.fieldCursor_=Y.decoder_.cursor_;var b=_.y0(Y.decoder_)>>>0,w=b>>>3;b&=7;if(!(b>=0&&b<=5))throw Error("T`"+b+"`"+Y.fieldCursor_);if(w<1)throw Error("U`"+w+"`"+Y.fieldCursor_);Y.nextField_=w;Y.nextWireType_=b;return!0};
rX=function(Y){switch(Y.nextWireType_){case 0:Y.nextWireType_!=0?rX(Y):_.qRB(Y.decoder_);break;case 1:Y=Y.decoder_;AZ(Y,Y.cursor_+8);break;case 2:if(Y.nextWireType_!=2)rX(Y);else{var b=_.y0(Y.decoder_)>>>0;Y=Y.decoder_;AZ(Y,Y.cursor_+b)}break;case 5:Y=Y.decoder_;AZ(Y,Y.cursor_+4);break;case 3:b=Y.nextField_;do{if(!Zgq(Y))throw Error("V");if(Y.nextWireType_==4){if(Y.nextField_!=b)throw Error("W");break}rX(Y)}while(1);break;default:throw Error("T`"+Y.nextWireType_+"`"+Y.fieldCursor_);}};
Z6v=function(Y,b,w){var V=Y.decoder_.end_,H=_.y0(Y.decoder_)>>>0,f=Y.decoder_.cursor_+H,E=f-V;E<=0&&(Y.decoder_.end_=f,w(b,Y,void 0,void 0,void 0),E=f-Y.decoder_.cursor_);if(E)throw Error("S`"+H+"`"+(H-E));Y.decoder_.cursor_=f;Y.decoder_.end_=V};
_.BgB=function(Y){var b=_.y0(Y.decoder_)>>>0;Y=Y.decoder_;var w=sKe(Y,b);Y=Y.bytes_;if(NRt){var V=Y,H;(H=fUK)||(H=fUK=new TextDecoder("utf-8",{fatal:!0}));b=w+b;V=w===0&&b===V.length?V:V.subarray(w,b);try{var f=H.decode(V)}catch(I){if(gCe===void 0){try{H.decode(new Uint8Array([128]))}catch(k){}try{H.decode(new Uint8Array([97])),gCe=!0}catch(k){gCe=!1}}!gCe&&(fUK=void 0);throw I;}}else{f=w;b=f+b;w=[];for(var E=null,U,X;f<b;)U=Y[f++],U<128?w.push(U):U<224?f>=b?bI():(X=Y[f++],U<194||(X&192)!==128?(f--,
bI()):w.push((U&31)<<6|X&63)):U<240?f>=b-1?bI():(X=Y[f++],(X&192)!==128||U===224&&X<160||U===237&&X>=160||((H=Y[f++])&192)!==128?(f--,bI()):w.push((U&15)<<12|(X&63)<<6|H&63)):U<=244?f>=b-2?bI():(X=Y[f++],(X&192)!==128||(U<<28)+(X-144)>>30!==0||((H=Y[f++])&192)!==128||((V=Y[f++])&192)!==128?(f--,bI()):(U=(U&7)<<18|(X&63)<<12|(H&63)<<6|V&63,U-=65536,w.push((U>>10&1023)+55296,(U&1023)+56320))):bI(),w.length>=8192&&(E=YMI(E,w),w.length=0);f=YMI(E,w)}return f};
_.nlt=function(Y){var b=_.y0(Y.decoder_)>>>0;return nsK(Y.decoder_,b)};
_.MGG=function(Y,b,w){var V=_.y0(Y.decoder_)>>>0;for(V=Y.decoder_.cursor_+V;Y.decoder_.cursor_<V;)w.push(b(Y.decoder_))};
P_e=[];var eaL=function(Y,b){this.JSC$6898_lo=Y>>>0;this.JSC$6898_hi=b>>>0},O6I=function(Y){if(!Y)return pig||(pig=new eaL(0,0));
if(!/^\d+$/.test(Y))return null;HI(Y);return new eaL(jK,Gj)},pig,Wde=function(Y,b){this.JSC$6900_lo=Y>>>0;
this.JSC$6900_hi=b>>>0},rOu=function(Y){if(!Y)return tGa||(tGa=new Wde(0,0));
if(!/^-?\d+$/.test(Y))return null;HI(Y);return new Wde(jK,Gj)},tGa;var RaG=function(){this.JSC$6902_buffer_=[]},zRb,dUB;
RaG.prototype.length=function(){return this.JSC$6902_buffer_.length};
RaG.prototype.end=function(){var Y=this.JSC$6902_buffer_;this.JSC$6902_buffer_=[];return Y};
zRb=function(Y,b,w){for(;w>0||b>127;)Y.JSC$6902_buffer_.push(b&127|128),b=(b>>>7|w<<25)>>>0,w>>>=7;Y.JSC$6902_buffer_.push(b)};
dUB=function(Y,b){for(;b>127;)Y.JSC$6902_buffer_.push(b&127|128),b>>>=7;Y.JSC$6902_buffer_.push(b)};
_.Kdb=function(Y,b){if(b>=0)dUB(Y,b);else{for(var w=0;w<9;w++)Y.JSC$6902_buffer_.push(b&127|128),b>>=7;Y.JSC$6902_buffer_.push(1)}};
_.Tw=function(Y,b){Y.JSC$6902_buffer_.push(b>>>0&255);Y.JSC$6902_buffer_.push(b>>>8&255);Y.JSC$6902_buffer_.push(b>>>16&255);Y.JSC$6902_buffer_.push(b>>>24&255)};var Frq,ij,AOq,j7v;Frq=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new RaG};
ij=function(Y,b){b.length!==0&&(Y.blocks_.push(b),Y.totalLength_+=b.length)};
_.mFB=function(Y,b){_.jQ(Y,b,2);b=Y.encoder_.end();ij(Y,b);b.push(Y.totalLength_);return b};
_.ose=function(Y,b){var w=b.pop();for(w=Y.totalLength_+Y.encoder_.length()-w;w>127;)b.push(w&127|128),w>>>=7,Y.totalLength_++;b.push(w);Y.totalLength_++};
_.jQ=function(Y,b,w){dUB(Y.encoder_,b*8+w)};
AOq=function(Y,b,w){if(w!=null){switch(typeof w){case "string":O6I(w)}_.jQ(Y,b,1);switch(typeof w){case "number":Y=Y.encoder_;iaB(w);_.Tw(Y,jK);_.Tw(Y,Gj);break;case "bigint":w=BigInt.asUintN(64,w);w=new eaL(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));Y=Y.encoder_;b=w.JSC$6898_hi;_.Tw(Y,w.JSC$6898_lo);_.Tw(Y,b);break;default:w=O6I(w),Y=Y.encoder_,b=w.JSC$6898_hi,_.Tw(Y,w.JSC$6898_lo),_.Tw(Y,b)}}};
j7v=function(Y,b,w){_.jQ(Y,b,2);dUB(Y.encoder_,w.length);ij(Y,Y.encoder_.end());ij(Y,w)};var UFu,aGt,r3g,KrK,i6u;UFu=Rw();_.Lrt=Rw();_.SRa=Rw();aGt=Rw();r3g=Rw();_.zae=Rw();_.ju=Rw();_.Wru=Rw();KrK=Rw();i6u=Rw();_.A3v=Rw();_.C_t=Rw();_.SQ=function(Y,b,w){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y,b,w)};
_.SQ.prototype.toJSON=function(){return wX(this)};
_.SQ.prototype.serialize=function(Y){return JSON.stringify(wX(this,Y))};
var wDr=function(Y,b){if(b==null||b=="")return new Y;b=JSON.parse(b);if(!Array.isArray(b))throw Error("$");return new Y(drq(b))};
_.SQ.prototype.getExtension=function(Y){Oo6(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y.fieldIndex);e8M(this,Y.fieldIndex);return Y.ctor?Y.isRepeated?Y.getExtensionFn(this,Y.ctor,Y.fieldIndex,_.V9(),Y.JSC$6913_hasMessageId):Y.getExtensionFn(this,Y.ctor,Y.fieldIndex,Y.JSC$6913_hasMessageId):Y.isRepeated?Y.getExtensionFn(this,Y.fieldIndex,_.V9(),Y.JSC$6913_hasMessageId):Y.getExtensionFn(this,Y.fieldIndex,Y.defaultValue,Y.JSC$6913_hasMessageId)};
_.SQ.prototype.clone=function(){var Y=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=Y[_.Qr]|0;return cD(this,Y,b)?E3(this,Y,!0):new this.constructor(N_(Y,b,!1))};
_.SQ.prototype[Kg]=iQ;_.SQ.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var dX=function(Y,b,w){this.$$binaryReaderFn=Y;this.$$binaryWriterFn=b;Y=yN(UFu);this.$$isMsg=!!Y&&w===Y||!1},hRv=XIg(function(Y,b,w,V,H){if(Y.nextWireType_!==2)return!1;
Z6v(Y,DUe(b,V,w),H);return!0},IAu),xFI=XIg(function(Y,b,w,V,H){if(Y.nextWireType_!==2)return!1;
Z6v(Y,DUe(b,V,w),H);return!0},IAu),WD=Symbol(),aw=Symbol(),PQB=Symbol(),tXL=Symbol(),MXG=Symbol(),ktL,lAa;var Y36,y3B,$Uq,jKt,GYt,Tge,J3e,uiv,YkG,btG,wWv,HtL,gKa,N7G,EK6;Y36=function(Y,b){var w=new Frq;RRB(Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w,L3(WD,zw,K3,b));ij(w,w.encoder_.end());Y=new Uint8Array(w.totalLength_);b=w.blocks_;for(var V=b.length,H=0,f=0;f<V;f++){var E=b[f];Y.set(E,H);H+=E.length}w.blocks_=[Y];return Y};
y3B=_.Ac(function(Y,b,w){if(Y.nextWireType_!==1)return!1;_.C3(b,w,xUv(Y.decoder_));return!0},aAM,i6u);
$Uq=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==1)return!1;_.eu(b,w,V,xUv(Y.decoder_));return!0},aAM,i6u);
jKt=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==5)return!1;var H=_.$v(Y.decoder_);Y=(H>>31)*2+1;var f=H>>>23&255;H&=8388607;_.eu(b,w,V,f==255?H?NaN:Y*Infinity:f==0?Y*1.401298464324817E-45*H:Y*Math.pow(2,f-150)*(H+8388608));return!0},function(Y,b,w){b=_.Xb(b);
b!=null&&(_.jQ(Y,w,5),Y=Y.encoder_,w=Gw||(Gw=new DataView(new ArrayBuffer(8))),w.setFloat32(0,+b,!0),Gj=0,jK=w.getUint32(0,!0),_.Tw(Y,jK))},KrK);
_.GZ=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;_.C3(b,w,_.CE(Y.decoder_,bQ));return!0},_.Jc,_.ju);
GYt=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;Y=_.CE(Y.decoder_,bQ);_.C3(b,w,Y===0?void 0:Y);return!0},_.Jc,_.ju);
Tge=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==0)return!1;_.eu(b,w,V,_.CE(Y.decoder_,bQ));return!0},_.Jc,_.ju);
_.TZ=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;_.C3(b,w,_.y0(Y.decoder_));return!0},iga,aGt);
J3e=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;Y=_.y0(Y.decoder_);_.C3(b,w,Y===0?void 0:Y);return!0},iga,aGt);
uiv=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==0)return!1;_.eu(b,w,V,_.y0(Y.decoder_));return!0},iga,aGt);
YkG=_.Ac(function(Y,b,w){if(Y.nextWireType_!==1)return!1;_.C3(b,w,haM(Y.decoder_));return!0},_.yOg,_.Wru);
btG=_.SXM(function(Y,b,w){if(Y.nextWireType_!==1&&Y.nextWireType_!==2)return!1;b=_.BD(b,b[_.Qr]|0,w);Y.nextWireType_==2?_.MGG(Y,haM,b):b.push(haM(Y.decoder_));return!0},function(Y,b,w){b=_.LdI(kjq,b,!1);
if(b!=null)for(var V=0;V<b.length;V++)AOq(Y,w,b[V])},_.Wru);
_.JZ=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;_.C3(b,w,_.qRB(Y.decoder_));return!0},_.$Fb,_.Lrt);
wWv=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==0)return!1;_.eu(b,w,V,_.qRB(Y.decoder_));return!0},_.$Fb,_.Lrt);
_.uL=_.Ac(function(Y,b,w){if(Y.nextWireType_!==2)return!1;_.C3(b,w,_.BgB(Y));return!0},_.Gtr,_.SRa);
_.Vs6=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==2)return!1;_.eu(b,w,V,_.BgB(Y));return!0},_.Gtr,_.SRa);
HtL=_.SXM(function(Y,b,w){if(Y.nextWireType_!==2)return!1;Y=_.BgB(Y);_.BD(b,b[_.Qr]|0,w).push(Y);return!0},function(Y,b,w){b=_.LdI(_.WI,b,!0);
if(b!=null)for(var V=0;V<b.length;V++){var H=Y,f=w,E=b[V];E!=null&&j7v(H,f,HaI(E))}},_.SRa);
gKa=void 0;gKa=gKa===void 0?UFu:gKa;_.YS=new dX(function(Y,b,w,V,H){if(Y.nextWireType_!==2)return!1;V=f3(void 0,V,!0);_.BD(b,b[_.Qr]|0,w).push(V);Z6v(Y,V,H);return!0},function(Y,b,w,V,H){if(Array.isArray(b))for(var f=0;f<b.length;f++)Tte(Y,b[f],w,V,H)},gKa);
_.bV=XIg(function(Y,b,w,V,H,f){if(Y.nextWireType_!==2)return!1;var E=b[_.Qr]|0;Hgg(b,E,f,w,zj(E));b=DUe(b,V,w);Z6v(Y,b,H);return!0},Tte);
_.foe=_.Ac(function(Y,b,w){if(Y.nextWireType_!==2)return!1;_.C3(b,w,_.nlt(Y));return!0},_.JOM,_.A3v);
N7G=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==2)return!1;_.eu(b,w,V,_.nlt(Y));return!0},_.JOM,_.A3v);
EK6=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==0)return!1;_.eu(b,w,V,_.y0(Y.decoder_)>>>0);return!0},function(Y,b,w){b=_.ZA(b);
b!=null&&b!=null&&(_.jQ(Y,w,0),dUB(Y.encoder_,b))},r3g);
_.wm=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;_.C3(b,w,_.y0(Y.decoder_));return!0},_.ube,_.C_t);var XWv=function(){var Y=cFg,b=Upg;this.fieldIndex=175237375;this.ctor=b;this.isRepeated=0;this.getExtensionFn=_.EK;this.defaultValue=void 0;this.JSC$6913_hasMessageId=Y.messageId!=null?ak:void 0};
XWv.prototype.register=function(){Iy(this)};var DpK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(DpK,_.SQ);var mpv=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(mpv,_.SQ);var gMI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(gMI,_.SQ);var oKr=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(oKr,_.SQ);var IoK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(IoK,_.SQ);var kUe=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(kUe,_.SQ);var lov=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(lov,_.SQ);lov.prototype.getData=function(){return _.MX(this,2)};var hf6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(hf6,_.SQ);var xpM=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(xpM,_.SQ);xpM.prototype.getStyle=function(){return _.EK(this,DpK,1)};var V$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(V$,_.SQ);V$.prototype.getPayloadCase=function(){return _.pE(this,fu)};
V$.prototype.getStyle=function(){return _.WZ(this,xpM,6,fu)};
var qkB=function(){var Y=new V$,b=new IoK;return _.gE(Y,7,fu,b)},su6=function(){var Y=new V$,b=new kUe;
return _.gE(Y,8,fu,b)},fu=[1,
2,3,4,5,6,7,8];var Quv=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Quv,_.SQ);var vKK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(vKK,_.SQ);var P2a=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(P2a,_.SQ);var Ztg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Ztg,_.SQ);var B7K=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(B7K,_.SQ);var nKr=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(nKr,_.SQ);var Ms6=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Ms6,_.SQ);var efe=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(efe,_.SQ);efe.prototype.getData=function(){return _.MX(this,2)};var pWq=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(pWq,_.SQ);var H36=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(H36,_.SQ);H36.prototype.getPayloadCase=function(){return _.pE(this,Vk)};
var Vk=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var HY=function(Y,b){Y=Error.call(this,Y);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=b===void 0?2:b};
_.P(HY,Error);var Otr=Promise;var tsq=function(Y){this.channelPromise=Y};
tsq.prototype.send=function(Y,b,w){this.channelPromise.then(function(V){V.send(Y,b,w)})};var Rf6=function(Y,b){this.data=Y;this.channel=b};
Rf6.prototype.reply=function(Y,b,w){this.channel.send(Y,b,w)};var dpv=function(Y){this.JSC$6979_port_=Y};
dpv.prototype.send=function(Y,b,w){w=w===void 0?[]:w;var V=new MessageChannel;FOa(V.port1,b);this.JSC$6979_port_.postMessage(Y,[V.port2].concat(w))};
var LOL=function(Y,b){FOa(Y,b);return new dpv(Y)},FOa=function(Y,b){b&&(Y.onmessage=function(w){b(new Rf6(w.data,LOL(w.ports[0])))})};var Ska=function(Y){this.verifier_=Y},aoL=function(Y){var b=Object.create(null);
(typeof Y==="string"?[Y]:Y).forEach(function(w){if(w==="null")throw Error("ba");b[w]=!0});
return function(w){return b[w]===!0}};_.rFa=function(){if(!_.wB.addEventListener||!Object.defineProperty)return!1;var Y=!1,b=Object.defineProperty({},"passive",{get:function(){Y=!0}});
try{var w=function(){};
_.wB.addEventListener("test",w,b);_.wB.removeEventListener("test",w,b)}catch(V){}return Y}();var zfe;_.gm=function(Y){var b=Y.destination;var w=Y.iframe;var V=Y.origin;var H=Y.channelName===void 0?"ZNWN1d":Y.channelName;var f=Y.onMessage===void 0?void 0:Y.onMessage;Y=Y.onEstablished===void 0?void 0:Y.onEstablished;return zfe({destination:b,getSource:function(){return w.contentWindow},
originVerifier:V instanceof Ska?V:typeof V==="function"?new Ska(V):new Ska(aoL(V)),channelName:H,onMessage:f,onEstablished:Y})};
zfe=function(Y){var b=Y.destination;var w=Y.getSource;var V=Y.originVerifier;var H=Y.token===void 0?void 0:Y.token;var f=Y.channelName;var E=Y.onMessage===void 0?void 0:Y.onMessage;var U=Y.onEstablished===void 0?void 0:Y.onEstablished;return new tsq(new Otr(function(X,I){var k=function(l){l.source&&l.source===w()&&V.verifier_(l.origin)&&(l.data.n||l.data)===f&&(b.removeEventListener("message",k,!1),H&&l.data.t!==H?I(Error("ca`"+f+"`"+H+"`"+l.data.t)):(X(LOL(l.ports[0],E)),U&&U(l)))};
b.addEventListener("message",k,!1)}))};var WOq=function(Y){try{Y()}catch(b){Vv(b)}};var itI=function(Y){var b=this;var w=Y.getMessageType;var V=Y.onUnregisteredMessage===void 0?function(){}:Y.onUnregisteredMessage;
var H=Y.onBeforeRegisteredMessage===void 0?function(){}:Y.onBeforeRegisteredMessage;
Y=Y.onAfterRegisteredMessage===void 0?function(){}:Y.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=w;this.onUnregisteredMessage_=V;this.onBeforeRegisteredMessage_=H;this.onAfterRegisteredMessage_=Y;this.onMessage=function(f){return KOg(b,f)}};
itI.prototype.register=function(Y,b){this.registry_.set(Y,b);return this};
var KOg=function(Y,b){var w=Y.getMessageType_(b.data),V=Y.registry_.get(w);V?(WOq(function(){return Y.onBeforeRegisteredMessage_(b,w)}),WOq(function(){return V(b)}),WOq(function(){return Y.onAfterRegisteredMessage_(b,w)})):WOq(function(){return Y.onUnregisteredMessage_(b,w)})};var AFg=function(Y){this.JSC$6996_channel_=Y},yFg,$pI;
AFg.prototype.send=function(Y,b,w){this.JSC$6996_channel_.send(wX(Y),b,w)};
_.C2t=function(Y,b){return function(w){var V=new Y(w.data);return b(new Rf6(V,w.channel))}};
yFg=function(Y){return function(b){return Y(new Rf6(b.data,new AFg(b.channel)))}};
$pI=function(Y,b){return yFg(_.C2t(Y,b))};var juG=function(Y,b,w,V){this.registry=Y;this.delegate=b;this.receiveMessageConstructor=w;this.createInitMessage=V;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},VQg=function(Y){var b=new itI({getMessageType:Y.getPayloadCase});
return new juG(b,new AFg(_.gm({iframe:Y.child,destination:window,origin:Y.origin,channelName:Y.channelName,onMessage:$pI(Y.receiveMessageConstructor,b.onMessage)})),Y.receiveMessageConstructor,Y.createInitMessage)},GUt=function(Y,b){Y.createInitMessage=b};
juG.prototype.send=function(Y){if(!this.initialised)throw new HY("Attempted to send a message before initialisation.");this.delegate.send(Y)};
var T7K=function(Y,b){return _.c(function(w){if(!Y.initialised)throw new HY("Attempted to send a message before initialisation.");return w.return(new Promise(function(V){Y.delegate.send(b,$pI(Y.receiveMessageConstructor,V))}))})};
juG.prototype.init=function(){var Y=this;return _.c(function(b){if(Y.initialised)throw new HY("Attempted to initialise twice. The SDK can only be initialised once.");if(Y.createInitMessage!==void 0){var w=Y.delegate,V=w.send,H=Y.createInitMessage;var f=new mpv;var E=[].concat(_.Bt(Y.features));f=_.PD(f,1,E,_.sX);V.call(w,H.call(Y,f))}Y.initialised=!0;_.om(b)})};
var fj=function(Y,b){if(Y.initialised)throw new HY('Attempted to set up API "'+b+'" after initialisation. All APIs must be set up before initialising the SDK.');Y.features.add(b);return Y.registry};
_.up.Object.defineProperties(juG.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var JFg=function(Y){this.channel=Y;this.registered=!1};
JFg.prototype.update=function(Y){if(this.channel.isInitialised){if(!this.registered)throw new HY("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var b=new V$;var w=new oKr;w=_.E2(w,1,Y);b=_.gE(b,2,fu,w);this.channel.send(b)}else this.register();this.JSC$7010_audioEnabled=Y};
JFg.prototype.register=function(){fj(this.channel,1);this.registered=!0};
JFg.prototype.isAudioEnabled=function(){return this.JSC$7010_audioEnabled};var uWB=function(Y){this.channel=Y};
_.g=uWB.prototype;_.g.onFirstFrameReady=function(Y){fj(this.channel,2).register(11,function(b){b=_.WZ(b.data,Quv,11,Vk);if(!b)throw new HY("Unexpectedly nonexistent GameFirstFrameReadyEvent");Y(_.Su(b,1))})};
_.g.onReady=function(Y){fj(this.channel,2).register(4,function(b){b=_.WZ(b.data,P2a,4,Vk);if(!b)throw new HY("Unexpectedly nonexistent GameReadyEvent");Y(_.Su(b,1))})};
_.g.onLevelComplete=function(Y){fj(this.channel,2).register(5,function(b){b=_.WZ(b.data,Ztg,5,Vk);if(!b)throw new HY("Unexpectedly nonexistent LevelCompleteEvent");Y(_.Su(b,1),_.HE(b,2))})};
_.g.onGameOver=function(Y){fj(this.channel,2).register(6,function(b){b=_.WZ(b.data,vKK,6,Vk);if(!b)throw new HY("Unexpectedly nonexistent GameOverEvent");Y(_.Su(b,1))})};
_.g.pause=function(){var Y=this;if(!this.channel.isInitialised)return fj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new HY("Using unregistered Game Feature: pause.");var b=qkB();return new Promise(function(w){return _.c(function(V){if(V.nextAddress==1)return _.D(V,T7K(Y.channel,b),2);w();_.om(V)})})};
_.g.resume=function(){var Y=this;if(!this.channel.isInitialised)return fj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new HY("Using unregistered Game Feature: resume.");var b=su6();return new Promise(function(w){return _.c(function(V){if(V.nextAddress==1)return _.D(V,T7K(Y.channel,b),2);w();_.om(V)})})};var Ysq=function(Y){this.channel=Y};
Ysq.prototype.onReady=function(Y){fj(this.channel,5).register(8,function(b){if(!_.WZ(b.data,B7K,8,Vk))throw new HY("Unexpectedly nonexistent PageReadyEvent");Y()})};var bTM=function(Y){this.channel=Y};
bTM.prototype.onChange=function(Y){fj(this.channel,3).register(7,function(b){b=_.WZ(b.data,nKr,7,Vk);if(!b)throw new HY("Unexpectedly nonexistent ScoreEvent");Y(_.Su(b,1),_.HE(b,2))})};var wFg={load:function(){throw new HY("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new HY("Storage used, but storage.onSave() listener not set!");}},VAG=function(Y){this.channel=Y;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},HTg=function(Y){fj(Y.channel,4).register(2,wFg.load).register(3,wFg.save);
Y.initialSetupDone=!0};
VAG.prototype.onLoad=function(Y){this.initialSetupDone||HTg(this);this.loadRegistered||(this.loadRegistered=!0,fj(this.channel,4).register(2,function(b){var w,V,H;return _.c(function(f){if(f.nextAddress==1){w=_.WZ(b.data,Ms6,2,Vk);if(!w)throw new HY("Unexpectedly nonexistent StorageLoad");V=_.Su(w,1);return _.D(f,Y(V),2)}H=f.yieldResult;var E=b.reply,U=new V$;var X=new lov;X=_.hP(X,1,V);X=_.UK(X,2,_.Lo(H,!1));U=_.gE(U,3,fu,X);E.call(b,U);_.om(f)})}))};
VAG.prototype.onSave=function(Y){this.initialSetupDone||HTg(this);this.saveRegistered||(this.saveRegistered=!0,fj(this.channel,4).register(3,function(b){var w,V,H;return _.c(function(f){if(f.nextAddress==1){w=_.WZ(b.data,efe,3,Vk);if(!w)throw new HY("Unexpectedly nonexistent StorageSave");V=_.Su(w,1);H=TRa(w.getData());return _.D(f,Y(V,H),2)}var E=b.reply,U=new V$;var X=new hf6;X=_.hP(X,1,V);U=_.gE(U,4,fu,X);E.call(b,U);_.om(f)})}))};var gBB=function(Y){this.channel=Y};
gBB.prototype.update=function(Y){if(!this.channel.features.has(6))throw new HY("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var b=new V$,w=new xpM;Y=_.HN(w,1,Y);b=_.gE(b,6,fu,Y);this.channel.send(b)};
gBB.prototype.register=function(){fj(this.channel,6)};var f3M=function(Y){this.channel=Y;this.userActivityLoggingIntervalMs=0};
f3M.prototype.onUserActivity=function(Y,b){this.userActivityLoggingIntervalMs=b;fj(this.channel,7).register(9,function(w){if(!_.WZ(w.data,pWq,9,Vk))throw new HY("Unexpectedly nonexistent ClickEvent");Y()})};var N6M=function(Y){var b=this;this.channel=Y;this.init=this.channel.init.bind(this.channel);this.page=new Ysq(this.channel);this.game=new uWB(this.channel);this.audio=new JFg(this.channel);this.score=new bTM(this.channel);this.storage=new VAG(this.channel);this.style=new gBB(this.channel);this.userActivity=new f3M(this.channel);GUt(this.channel,function(w){var V=new gMI;w=_.HN(V,1,w);w=_.KE(w,3,b.userActivity.userActivityLoggingIntervalMs);V=b.audio.isAudioEnabled();V!==void 0&&_.E2(w,2,V);V=new V$;
return _.gE(V,5,fu,w)})};var EB6=function(){this.timedFunctionContext=0};
EB6.prototype.timeExecution=function(Y,b){var w=this;return function(){var V=_.BN.apply(0,arguments);w.timedFunctionContext=Y;return b.apply(null,_.Bt(V))}};var cDM=function(){var Y={};this.priorityTasks=(Y[3]=[],Y[2]=[],Y[1]=[],Y);this.isFlushing=!1},Uy=function(Y,b,w){var V=U5g(Y,w);
Y.priorityTasks[w].push(b);V&&Y.priorityTasks[w].length===1&&Y.flush()},U5g=function(Y,b){return Object.keys(Y.priorityTasks).map(function(w){return Number(w)}).filter(function(w){return!isNaN(w)&&w>b}).every(function(w){return Y.priorityTasks[w].length===0})};
cDM.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(Y){return Y.length>0});)XFa(this,3),XFa(this,2),XFa(this,1)}catch(Y){throw Object.values(this.priorityTasks).forEach(function(b){return void b.splice(0,b.length)}),Y;
}finally{this.isFlushing=!1}}};
var XFa=function(Y,b){for(;U5g(Y,b)&&Y.priorityTasks[b].length>0;)Y.priorityTasks[b][0](),Y.priorityTasks[b].shift()};
_.up.Object.defineProperties(cDM.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(Y){return Y.length>0})}}});var XDr={};var D5L=globalThis.trustedTypes,NXu=D5L,ccg;var cN=function(Y){this.privateDoNotAccessOrElseWrappedResourceUrl=Y};
cN.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var m5v,oBB,I3B,kae,l3b,hII,x5B,qsL;m5v=_.wM([""]);oBB=bL(["\x00"],["\\0"]);I3B=bL(["\n"],["\\n"]);kae=bL(["\x00"],["\\u0000"]);l3b=_.wM([""]);hII=bL(["\x00"],["\\0"]);x5B=bL(["\n"],["\\n"]);qsL=bL(["\x00"],["\\u0000"]);_.sZI=mm(function(Y){return Y(m5v)})||mm(function(Y){return Y(oBB)})||mm(function(Y){return Y(I3B)})||mm(function(Y){return Y(kae)});
_.QZu=_.DD(l3b)&&_.DD(hII)&&_.DD(x5B)&&_.DD(qsL);var vN;_.og=function(Y,b){this.privateDoNotAccessOrElseWrappedUrl=b};
_.og.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.vBb=Ig("about:blank");vN=Ig("about:invalid#zClosurez");var D_M=function(Y){this.isValid=Y},PtG=new D_M(function(Y){return/^[^:]*([/?#]|$)/.test(Y)}),ZTL=q1("data"),B6u=q1("http"),nB6=q1("https"),MAq=q1("ftp"),eIa=q1("mailto"),pFe=q1("intent"),OTK=q1("vnd.youtube"),m_e=[ZTL,
B6u,nB6,eIa,MAq,PtG],oMu=N1(function(){return typeof URL==="function"}),tA6=["data:",
"http:","https:","mailto:","ftp:"],kwM=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var pu=function(Y){this.privateDoNotAccessOrElseWrappedHtml=Y};
pu.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var kOr=N1(function(){return new pu(D5L?D5L.emptyHTML:"")});var RIq={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"},dE=function(Y,b){var w=Error.call(this,Y+" cannot be used with intent "+RIq[b]);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.type=Y;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.P(dE,Error);_.ag=function(Y){this.privateDoNotAccessOrElseWrappedScript=Y};
_.ag.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var q3g=function(Y){this.privateDoNotAccessOrElseWrappedAttributePrefix=Y};
q3g.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var swr="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var hQI=function(Y){var b=_.Aq("window.location.href");Y==null&&(Y='Unknown Error of type "null/undefined"');if(typeof Y==="string")return{message:Y,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var w=!1;try{var V=Y.lineNumber||Y.line||"Not available"}catch(E){V="Not available",w=!0}try{var H=Y.fileName||Y.filename||Y.sourceURL||_.wB.$googDebugFname||b}catch(E){H="Not available",w=!0}b=d5M(Y);if(!(!w&&Y.lineNumber&&Y.fileName&&Y.stack&&Y.message&&Y.name)){w=Y.message;
if(w==null){if(Y.constructor&&Y.constructor instanceof Function){if(Y.constructor.name)w=Y.constructor.name;else if(w=Y.constructor,Nh[w])w=Nh[w];else{w=String(w);if(!Nh[w]){var f=/function\s+([^\(]+)/m.exec(w);Nh[w]=f?f[1]:"[Anonymous]"}w=Nh[w]}w='Unknown Error of type "'+w+'"'}else w="Unknown Error of unknown type";typeof Y.toString==="function"&&Object.prototype.toString!==Y.toString&&(w+=": "+Y.toString())}return{message:w,name:Y.name||"UnknownError",lineNumber:V,fileName:H,stack:b||"Not available"}}return{message:Y.message,
name:Y.name,lineNumber:Y.lineNumber,fileName:Y.fileName,stack:b}},d5M=function(Y,b){b||(b={});
b[FcK(Y)]=!0;var w=Y.stack||"",V=Y.cause;V&&!b[FcK(V)]&&(w+="\nCaused by: ",V.stack&&V.stack.indexOf(V.toString())==0||(w+=typeof V==="string"?V:V.message+"\n"),w+=d5M(V,b));Y=Y.errors;if(Array.isArray(Y)){V=1;var H;for(H=0;H<Y.length&&!(V>4);H++)b[FcK(Y[H])]||(w+="\nInner error "+V++ +": ",Y[H].stack&&Y[H].stack.indexOf(Y[H].toString())==0||(w+=typeof Y[H]==="string"?Y[H]:Y[H].message+"\n"),w+=d5M(Y[H],b));H<Y.length&&(w+="\n... "+(Y.length-H)+" more inner errors")}return w},FcK=function(Y){var b=
"";
typeof Y.toString==="function"&&(b=""+Y);return b+Y.stack},Nh={};var Lca,Vh,Xz,a3M,rDg,Ssg,y9,Aw,WcB;Lca=function(Y,b){for(var w=Y.split("%s"),V="",H=Array.prototype.slice.call(arguments,1);H.length&&w.length>1;)V+=w.shift()+H.shift();return V+w.join("%s")};
_.yW=function(Y){return encodeURIComponent(String(Y))};
Vh=function(Y){return decodeURIComponent(Y.replace(/\+/g," "))};
Xz=function(Y){IUM.test(Y)&&(Y.indexOf("&")!=-1&&(Y=Y.replace(cX6,"&amp;")),Y.indexOf("<")!=-1&&(Y=Y.replace(Uau,"&lt;")),Y.indexOf(">")!=-1&&(Y=Y.replace(X8b,"&gt;")),Y.indexOf('"')!=-1&&(Y=Y.replace(DaB,"&quot;")),Y.indexOf("'")!=-1&&(Y=Y.replace(maL,"&#39;")),Y.indexOf("\x00")!=-1&&(Y=Y.replace(oCb,"&#0;")));return Y};
a3M=function(Y){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var w=_.wB.document.createElement("div");return Y.replace(Ssg,function(V,H){var f=b[V];if(f)return f;H.charAt(0)=="#"&&(H=Number("0"+H.slice(1)),isNaN(H)||(f=String.fromCharCode(H)));f||(_.iH(w,Ou(V+" ")),f=w.firstChild.nodeValue.slice(0,-1));return b[V]=f})};
rDg=function(Y){return Y.replace(/&([^;]+);/g,function(b,w){switch(w){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return w.charAt(0)!="#"||(w=Number("0"+w.slice(1)),isNaN(w))?b:String.fromCharCode(w)}})};
Ssg=/&([^;\s<&]+);?/g;_.z0r=function(Y){return String(Y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.zIr=String.prototype.repeat?function(Y,b){return Y.repeat(b)}:function(Y,b){return Array(b+1).join(Y)};
_.EI=function(Y,b){if(!Number.isFinite(Y))return String(Y);Y=String(Y);var w=Y.indexOf(".");w===-1&&(w=Y.length);var V=Y[0]==="-"?"-":"";V&&(Y=Y.substring(1));return V+(0,_.zIr)("0",Math.max(0,b-w))+Y};
y9=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.XT()).toString(36)};
Aw=function(Y){for(var b=0,w=0;w<Y.length;++w)b=31*b+Y.charCodeAt(w)>>>0;return b};
_.xL=function(Y){return String(Y).replace(/\-([a-z])/g,function(b,w){return w.toUpperCase()})};
_.hw=function(Y){return String(Y).replace(/([A-Z])/g,"-$1").toLowerCase()};
WcB=function(Y){return Y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,w,V){return w+V.toUpperCase()})};var Kcu=function(){this.names=new Map};
Kcu.prototype.getName=function(Y){var b=this.names.get(Y);if(b)return b;var w;b=(w=Y.description)!=null?w:y9();this.names.set(Y,b);return b};var iTI=function(Y){var b=Error.call(this,Y?Y.length+" errors occurred during unsubscription:\n"+Y.map(function(w,V){return V+1+") "+w.toString()}).join("\n  "):"");
this.message=b.message;"stack"in b&&(this.stack=b.stack);this.errors=Y;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.P(iTI,Error);var Tz=function(Y){this.initialTeardown=Y;this.closed=!1;this._teardowns=this._parentage=null};
_.g=Tz.prototype;
_.g.unsubscribe=function(){if(!this.closed){this.closed=!0;var Y=this._parentage;if(Array.isArray(Y))for(var b=_.N(Y),w=b.next();!w.done;w=b.next())w.value.remove(this);else Y==null||Y.remove(this);b=this.initialTeardown;if(Gz(b))try{b()}catch(f){var V=f instanceof iTI?f.errors:[f]}var H=this._teardowns;if(H)for(this._teardowns=null,b=_.N(H),w=b.next();!w.done;w=b.next()){w=w.value;try{Gz(w)?w():w.unsubscribe()}catch(f){w=void 0,V=(w=V)!=null?w:[],f instanceof iTI?V=[].concat(_.Bt(V),_.Bt(f.errors)):
V.push(f)}}if(V)throw new iTI(V);}};
_.g.add=function(Y){if(Y&&Y!==this)if(this.closed)Gz(Y)?Y():Y.unsubscribe();else{if(Y instanceof Tz){if(Y.closed||Y._hasParent(this))return;Y._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(Y)}};
_.g._hasParent=function(Y){var b=this._parentage;return b===Y||Array.isArray(b)&&b.includes(Y)};
_.g._addParent=function(Y){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(Y),b):b?[b,Y]:Y};
_.g._removeParent=function(Y){var b=this._parentage;b===Y?this._parentage=null:Array.isArray(b)&&jr(b,Y)};
_.g.remove=function(Y){var b=this._teardowns;b&&jr(b,Y);Y instanceof Tz&&Y._removeParent(this)};
var AD6=new Tz;AD6.closed=!0;Tz.JSC$7106_EMPTY=AD6;var Z3e=function(){setTimeout.apply(null,_.Bt(_.BN.apply(0,arguments)))};var cY=function(Y){Tz.call(this);this.JSC$7111_isStopped=!1;this.destination=Y instanceof cY?Y:new UI(!Y||Gz(Y)?{next:Y!=null?Y:void 0}:Y);PjL(Y)&&Y.add(this)};
_.P(cY,Tz);cY.JSC$7106_EMPTY=Tz.JSC$7106_EMPTY;cY.create=function(Y,b,w){return new X1(Y,b,w)};
_.g=cY.prototype;_.g.next=function(Y){this.JSC$7111_isStopped||this._next(Y)};
_.g.error=function(Y){this.JSC$7111_isStopped||(this.JSC$7111_isStopped=!0,this._error(Y))};
_.g.complete=function(){this.JSC$7111_isStopped||(this.JSC$7111_isStopped=!0,this._complete())};
_.g.unsubscribe=function(){this.closed||(this.JSC$7111_isStopped=!0,Tz.prototype.unsubscribe.call(this))};
_.g._next=function(Y){this.destination.next(Y)};
_.g._error=function(Y){this.destination.error(Y);this.unsubscribe()};
_.g._complete=function(){this.destination.complete();this.unsubscribe()};
var UI=function(Y){this.partialObserver=Y};
UI.prototype.next=function(Y){var b=this.partialObserver;if(b.next)try{b.next(Y)}catch(w){uH(w)}};
UI.prototype.error=function(Y){var b=this.partialObserver;if(b.error)try{b.error(Y)}catch(w){uH(w)}else uH(Y)};
UI.prototype.complete=function(){var Y=this.partialObserver;if(Y.complete)try{Y.complete()}catch(b){uH(b)}};
var X1=function(Y,b,w){cY.call(this);var V;Gz(Y)||!Y?V={next:Y!=null?Y:void 0,error:b!=null?b:void 0,complete:w!=null?w:void 0}:V=Y;this.destination=new UI(V)};
_.P(X1,cY);X1.JSC$7106_EMPTY=cY.JSC$7106_EMPTY;X1.create=cY.create;var gC=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Ve=function(Y){Y&&(this._subscribe=Y)};
_.g=Ve.prototype;_.g.lift=function(Y){var b=new Ve;b.source=this;b.operator=Y;return b};
_.g.subscribe=function(Y,b,w){Y=Y&&Y instanceof cY||Y&&Gz(Y.next)&&Gz(Y.error)&&Gz(Y.complete)&&PjL(Y)?Y:new X1(Y,b,w);b=this.operator;w=this.source;Y.add(b?b.call(Y,w):w?this._subscribe(Y):this._trySubscribe(Y));return Y};
_.g._trySubscribe=function(Y){try{return this._subscribe(Y)}catch(b){Y.error(b)}};
_.g.forEach=function(Y,b){var w=this;b=nMM(b);return new b(function(V,H){var f=w.subscribe(function(E){try{Y(E)}catch(U){H(U),f==null||f.unsubscribe()}},H,V)})};
_.g._subscribe=function(Y){var b;return(b=this.source)==null?void 0:b.subscribe(Y)};
Ve.prototype[gC]=function(){return this};
Ve.prototype.pipe=function(){var Y=_.BN.apply(0,arguments);return Y.length?BXa(Y)(this):this};
Ve.create=function(Y){return new Ve(Y)};var Ctv=function(){var Y=Error.call(this,"object unsubscribed");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.P(Ctv,Error);var ND=function(){this.observers=[];this.hasError=this.JSC$7127_isStopped=this.closed=!1;this.thrownError=null};
_.P(ND,Ve);_.g=ND.prototype;_.g.lift=function(Y){var b=new Df(this,this);b.operator=Y;return b};
_.g._throwIfClosed=function(){if(this.closed)throw new Ctv;};
_.g.next=function(Y){this._throwIfClosed();if(!this.JSC$7127_isStopped){var b=this.observers.slice();b=_.N(b);for(var w=b.next();!w.done;w=b.next())w.value.next(Y)}};
_.g.error=function(Y){this._throwIfClosed();if(!this.JSC$7127_isStopped){this.hasError=this.JSC$7127_isStopped=!0;this.thrownError=Y;for(var b=this.observers;b.length;)b.shift().error(Y)}};
_.g.complete=function(){this._throwIfClosed();if(!this.JSC$7127_isStopped){this.JSC$7127_isStopped=!0;for(var Y=this.observers;Y.length;)Y.shift().complete()}};
_.g.unsubscribe=function(){this.JSC$7127_isStopped=this.closed=!0;this.observers=null};
_.g._trySubscribe=function(Y){this._throwIfClosed();return Ve.prototype._trySubscribe.call(this,Y)};
_.g._subscribe=function(Y){this._throwIfClosed();this._checkFinalizedStatuses(Y);return this._innerSubscribe(Y)};
_.g._innerSubscribe=function(Y){var b=this,w=this.JSC$7127_isStopped,V=this.observers;return this.hasError||w?Tz.JSC$7106_EMPTY:(V.push(Y),new Tz(function(){return jr(b.observers,Y)}))};
_.g._checkFinalizedStatuses=function(Y){var b=this.thrownError,w=this.JSC$7127_isStopped;this.hasError?Y.error(b):w&&Y.complete()};
ND.create=function(Y,b){return new Df(Y,b)};
var Df=function(Y,b){ND.call(this);this.destination=Y;this.source=b};
_.P(Df,ND);Df.create=ND.create;Df.prototype.next=function(Y){var b,w;(b=this.destination)==null||(w=b.next)==null||w.call(b,Y)};
Df.prototype.error=function(Y){var b,w;(b=this.destination)==null||(w=b.error)==null||w.call(b,Y)};
Df.prototype.complete=function(){var Y,b;(Y=this.destination)==null||(b=Y.complete)==null||b.call(Y)};
Df.prototype._subscribe=function(Y){var b,w;return(w=(b=this.source)==null?void 0:b.subscribe(Y))!=null?w:Tz.JSC$7106_EMPTY};var rF=function(Y){ND.call(this);this._value=Y};
_.P(rF,ND);rF.create=ND.create;rF.prototype._subscribe=function(Y){var b=ND.prototype._subscribe.call(this,Y);!b.closed&&Y.next(this._value);return b};
rF.prototype.getValue=function(){var Y=this.thrownError,b=this._value;if(this.hasError)throw Y;this._throwIfClosed();return b};
rF.prototype.next=function(Y){ND.prototype.next.call(this,this._value=Y)};
_.up.Object.defineProperties(rF.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var tp=new Ve(function(Y){return Y.complete()});var Ht=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var FvI=function(Y){return Y&&typeof Y.length==="number"&&typeof Y!=="function"};var yDa={now:function(){return(yDa.delegate||Date).now()},
delegate:void 0};var jC=function(Y,b,w){Y=Y===void 0?Infinity:Y;b=b===void 0?Infinity:b;w=w===void 0?yDa:w;ND.call(this);this.bufferSize=Y;this.windowTime=b;this.timestampProvider=w;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=b===Infinity;this.bufferSize=Math.max(1,Y);this.windowTime=Math.max(1,b)};
_.P(jC,ND);jC.create=ND.create;jC.prototype.next=function(Y){var b=this.buffer,w=this.infiniteTimeWindow,V=this.timestampProvider,H=this.windowTime;this.JSC$7127_isStopped||(b.push(Y),!w&&b.push(V.now()+H));$5B(this);ND.prototype.next.call(this,Y)};
jC.prototype._subscribe=function(Y){this._throwIfClosed();$5B(this);for(var b=this._innerSubscribe(Y),w=this.infiniteTimeWindow,V=this.buffer.slice(),H=0;H<V.length&&!Y.closed;H+=w?1:2)Y.next(V[H]);this._checkFinalizedStatuses(Y);return b};
var $5B=function(Y){var b=Y.bufferSize,w=Y.timestampProvider,V=Y.buffer;Y=Y.infiniteTimeWindow;var H=(Y?1:2)*b;b<Infinity&&H<V.length&&V.splice(0,V.length-H);if(!Y){b=w.now();w=0;for(Y=1;Y<V.length&&V[Y]<=b;Y+=2)w=Y;w&&V.splice(0,w+1)}};var GaL=function(Y,b){b=b===void 0?jZv:b;this.schedulerActionCtor=Y;this.now=b};
GaL.prototype.schedule=function(Y,b,w){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,Y)).schedule(w,b)};
var jZv=yDa.now;var BEK=function(){var Y=Error.call(this,"no elements in sequence");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.P(BEK,Error);var vt=function(Y,b,w,V,H){cY.call(this,Y);this.onUnsubscribe=H;b&&(this._next=function(f){try{b(f)}catch(E){this.destination.error(E)}});
w&&(this._error=function(f){try{w(f)}catch(E){this.destination.error(E)}this.unsubscribe()});
V&&(this._complete=function(){try{V()}catch(f){this.destination.error(f)}this.unsubscribe()})};
_.P(vt,cY);vt.JSC$7106_EMPTY=cY.JSC$7106_EMPTY;vt.create=cY.create;vt.prototype.unsubscribe=function(){var Y;this.closed||(Y=this.onUnsubscribe)!=null&&Y.call(this);cY.prototype.unsubscribe.call(this)};var ye=function(Y,b){this.source=Y;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};
_.P(ye,Ve);ye.create=Ve.create;ye.prototype._subscribe=function(Y){return T6t(this).subscribe(Y)};
var T6t=function(Y){var b=Y._subject;if(!b||b.JSC$7127_isStopped)Y._subject=Y.subjectFactory();return Y._subject};
ye.prototype._teardown=function(){this._refCount=0;var Y=this._connection;this._subject=this._connection=null;Y==null||Y.unsubscribe()};
ye.prototype.connect=function(){var Y=this,b=this._connection;if(!b){b=this._connection=new Tz;var w=T6t(this);b.add(this.source.subscribe(new vt(w,void 0,function(V){Y._teardown();w.error(V)},function(){Y._teardown();
w.complete()},function(){return Y._teardown()})));
b.closed&&(this._connection=null,b=Tz.JSC$7106_EMPTY)}return b};var $_q=Array.isArray;var GwL=Array.isArray,JDL=Object,TXq=JDL.getPrototypeOf,JcK=JDL.prototype,uDI=JDL.keys;var M6=function(Y,b,w){cY.call(this,Y);this._next=b;this.shouldComplete=w};
_.P(M6,cY);M6.JSC$7106_EMPTY=cY.JSC$7106_EMPTY;M6.create=cY.create;M6.prototype._complete=function(){this.shouldComplete()?cY.prototype._complete.call(this):this.unsubscribe()};var NEB=["addListener","removeListener"],fDM=["addEventListener","removeEventListener"],czI=["on","off"];var mU=function(){Tz.call(this)};
_.P(mU,Tz);mU.JSC$7106_EMPTY=Tz.JSC$7106_EMPTY;mU.prototype.schedule=function(){return this};var uma=function(Y,b){return setInterval.apply(null,[Y,b].concat(_.Bt(_.BN.apply(2,arguments))))};var ov=function(Y,b){Tz.call(this);this.scheduler=Y;this.work=b;this.pending=!1};
_.P(ov,mU);ov.JSC$7106_EMPTY=mU.JSC$7106_EMPTY;ov.prototype.schedule=function(Y,b){b=b===void 0?0:b;if(this.closed)return this;this.state=Y;Y=this.id;var w=this.scheduler;Y!=null&&(this.id=YMC(this,Y,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(w,this.id,b);return this};
ov.prototype.requestAsyncId=function(Y,b,w){w=w===void 0?0:w;return uma(Y.flush.bind(Y,this),w)};
var YMC=function(Y,b,w){w=w===void 0?0:w;if(w!=null&&Y.delay===w&&Y.pending===!1)return b;clearInterval(b)};
ov.prototype.execute=function(Y,b){if(this.closed)return Error("ma");this.pending=!1;if(Y=this._execute(Y,b))return Y;this.pending===!1&&this.id!=null&&(this.id=YMC(this,this.id,null))};
ov.prototype._execute=function(Y){var b=!1;try{this.work(Y)}catch(V){b=!0;var w=!!V&&V||Error(V)}if(b)return this.unsubscribe(),w};
ov.prototype.unsubscribe=function(){if(!this.closed){var Y=this.id,b=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;jr(b,this);Y!=null&&(this.id=YMC(this,Y,null));this.delay=null;mU.prototype.unsubscribe.call(this)}};var baI=function(Y,b){b=b===void 0?jZv:b;GaL.call(this,Y,b);this.actions=[];this.active=!1;this.scheduled=void 0};
_.P(baI,GaL);baI.prototype.flush=function(Y){var b=this.actions;if(this.active)b.push(Y);else{var w;this.active=!0;do if(w=Y.execute(Y.state,Y.delay))break;while(Y=b.shift());this.active=!1;if(w){for(;Y=b.shift();)Y.unsubscribe();throw w;}}};var vL=new Ve(Jz);var U1r=Array.isArray;var Iv=function(Y,b){ov.call(this,Y,b);this.scheduler=Y;this.work=b};
_.P(Iv,ov);Iv.JSC$7106_EMPTY=ov.JSC$7106_EMPTY;Iv.prototype.schedule=function(Y,b){b=b===void 0?0:b;if(b>0)return ov.prototype.schedule.call(this,Y,b);this.delay=b;this.state=Y;this.scheduler.flush(this);return this};
Iv.prototype.execute=function(Y,b){return b>0||this.closed?ov.prototype.execute.call(this,Y,b):this._execute(Y,b)};
Iv.prototype.requestAsyncId=function(Y,b,w){w=w===void 0?0:w;return w!=null&&w>0||w==null&&this.delay>0?ov.prototype.requestAsyncId.call(this,Y,b,w):Y.flush(this)};var wg8=function(){baI.apply(this,arguments)};
_.P(wg8,baI);var Cjb=new wg8(Iv);var VL8=function(){this.performanceMonitor=new EB6;this.queue=new cDM;this.internalSymbol=Symbol();this.debugNames=new Kcu};
VL8.prototype.getOnBackgrounded=function(){return vL};
_.up.Object.defineProperties(VL8.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var kS=function(Y,b){b=Error.call(this,b?Y+": "+b:String(Y));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=Y;this.__proto__=kS.prototype;this.name=String(Y)};
_.P(kS,Error);var PL=function(Y){kS.call(this,1E3,'sfr:"'+Y+'"');this.measurementStrategyFailureReason=Y;this.__proto__=PL.prototype};
_.P(PL,kS);var ZK=function(){kS.call(this,1003);this.__proto__=ZK.prototype};
_.P(ZK,kS);var lV=function(){kS.call(this,1009);this.__proto__=lV.prototype};
_.P(lV,kS);var HaC=function(){kS.call(this,1011);this.__proto__=HaC.prototype};
_.P(HaC,kS);var gbK=function(){kS.call(this,1007);this.__proto__=ZK.prototype};
_.P(gbK,kS);var xQ=function(Y){kS.call(this,1004,String(Y));this.inputObservableIndex=Y;this.__proto__=xQ.prototype};
_.P(xQ,kS);var Sxr=function(Y){kS.call(this,1010,Y);this.__proto__=qD.prototype};
_.P(Sxr,kS);var qD=function(Y){kS.call(this,1005,Y);this.__proto__=qD.prototype};
_.P(qD,kS);var ft9=function(Y){var b=_.BN.apply(1,arguments),w=this;this.orderedFactories=[];this.orderedFactories.push(Y);b.forEach(function(V){w.orderedFactories.push(V)})};
ft9.prototype.isSupported=function(Y){return this.orderedFactories.some(function(b){return b.isSupported(Y)})};
ft9.prototype.makeBeacon=function(Y,b){for(var w=0;w<this.orderedFactories.length;w++)if(this.orderedFactories[w].isSupported(b))return this.orderedFactories[w].makeBeacon(Y,b);throw new lV;};var Qzt=Symbol("na"),NB$=Symbol("oa"),SC=function(Y,b){this.value=Y;this.timeline=b},F3=function(Y,b){if(b.timeline!==Y.timeline)throw new gbK;
return Y.value-b.value};
_.g=SC.prototype;_.g.equals=function(Y){return F3(this,Y)===0};
_.g.maximum=function(Y){if(Y.timeline!==this.timeline)throw new gbK;return this.value>=Y.value?this:Y};
_.g.round=function(){return new SC(Math.round(this.value),this.timeline)};
_.g.add=function(Y){return new SC(this.value+Y,this.timeline)};
_.g.toString=function(){return String(this.value)};var hn=function(Y,b){this.context=Y;this.JSC$7233_pinger=b};
hn.prototype.isSupported=function(Y){return this.JSC$7233_pinger.isSupported(Y)};
hn.prototype.makeBeacon=function(Y,b){if(!this.isSupported(b))throw new lV;return new xS(this.context,this.JSC$7233_pinger,b!=null?b:void 0,Y)};
var xS=function(Y,b,w,V){var H=this;this.JSC$7239_pinger=b;this.properties=w;this.url=V;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var f;this.method=(f=w==null?void 0:w.beaconMethod)!=null?f:"GET";this.backgroundedSubscription=Y.getOnBackgrounded().subscribe(function(){H.sendNow()})};
xS.prototype.deactivate=function(){this.internalIsPending=!1};
xS.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7239_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var Y,b;this.JSC$7239_pinger.pingWithHeadersAndBody((Y=this.properties)!=null?Y:{},this.customHeaders,(b=this.body)!=null?b:"",this.url)}else this.JSC$7239_pinger.ping(this.url);this.internalIsPending=!1}catch(w){}else this.internalIsPending=!1};
xS.prototype.setHeader=function(Y){this.customHeaders.set(Y,void 0)};
_.up.Object.defineProperties(xS.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var cej=function(){for(var Y=_.N(_.BN.apply(0,arguments)),b=Y.next();!b.done;b=Y.next())if(b=b.value,b.available()){this.timeProvider=b;return}this.timeProvider=new Ebd};
_.g=cej.prototype;_.g.available=function(){return this.timeProvider.available()};
_.g.now=function(){return this.timeProvider.now()};
_.g.setTimeout=function(Y,b){return this.timeProvider.setTimeout(Y,b)};
_.g.clearTimeout=function(Y){this.timeProvider.clearTimeout(Y)};
_.g.interval=function(Y,b){var w=this.intervalObservable(Y).subscribe(b);return function(){return void w.unsubscribe()}};
_.g.intervalObservable=function(Y){return this.timeProvider.intervalObservable(Y)};
_.up.Object.defineProperties(cej.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Ebd=function(){this.timeline=Symbol()};
_.g=Ebd.prototype;_.g.available=function(){return!1};
_.g.now=function(){return new SC(0,this.timeline)};
_.g.setTimeout=function(){return 0};
_.g.clearTimeout=function(){};
_.g.interval=function(){return function(){}};
_.g.intervalObservable=function(){return vL};var qh=function(Y,b){this.intrinsicFunctionNamespace=Y;this.performanceMonitor=b};
_.g=qh.prototype;_.g.setTimeout=function(Y,b){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,Y),b)};
_.g.clearTimeout=function(Y){this.intrinsicFunctionNamespace.clearTimeout(Y)};
_.g.interval=function(Y,b){var w=this.intervalObservable(Y).subscribe(b);return function(){return void w.unsubscribe()}};
_.g.intervalObservable=function(Y){var b=this;return new Ve(function(w){var V=0,H=b.intrinsicFunctionNamespace.setInterval(function(){w.next(V++)},Y);
return function(){b.intrinsicFunctionNamespace.clearInterval(H)}})};
_.g.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Urt=function(Y,b){qh.call(this,Y,b);this.timeline=NB$};
_.P(Urt,qh);Urt.prototype.now=function(){return new SC(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Urt.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&qh.prototype.available.call(this)};var Xg$=function(Y,b){qh.call(this,Y,b);this.timeline=Qzt};
_.P(Xg$,qh);Xg$.prototype.now=function(){return new SC(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Xg$.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&qh.prototype.available.call(this)};var mrr=function(Y){this.context=Y;if(Dr9===void 0)a:{var b,w,V=(b=Y.global)==null?void 0:(w=b.document)==null?void 0:w.createElement("meta");if(V)try{V.httpEquiv="origin-trial";V.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";Y.global.document.head.append(V);Dr9=V;break a}catch(H){}Dr9=void 0}},
Dr9;
mrr.prototype.isSupported=function(Y){return quv(this.context)!==void 0&&!(Y==null||!Y.endOfSession)&&!sI(this.context)&&!(Y==null?0:Y.attributionEnabled)&&!(Y==null?0:Y.customHeaders)&&!(Y==null?0:Y.customBody)};
mrr.prototype.makeBeacon=function(Y,b){if(!this.isSupported(b))throw new lV;return new Qk(this.context,Y,b)};
var Qk=function(Y,b,w){this.context=Y;this.properties=w;this.JSC$7266_urlWithoutToken=b;var V;this.beaconMethod=(V=w==null?void 0:w.beaconMethod)!=null?V:"GET";Y=quv(this.context);if(Y===void 0)throw Error();this.fetchLater=Y;obC(this,ItQ(this))},obC=function(Y,b){Y.beaconResult&&Y.beaconResult.activated||(Y.beaconAbort=new AbortController,Y.beaconResult=Y.fetchLater(b,{method:Y.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:Y.beaconAbort.signal,activateAfter:96E4}))},ItQ=function(Y){Y=Y.JSC$7266_urlWithoutToken;
return(Y.slice(-1)[0]==="&"?Y:Y+"&")+"flapi=1"};
Qk.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Qk.prototype.sendNow=function(){};
Qk.prototype.setHeader=function(){};
_.up.Object.defineProperties(Qk.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7266_urlWithoutToken},
set:function(Y){this.JSC$7266_urlWithoutToken=Y;Y=ItQ(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);obC(this,Y)}},
method:{configurable:!0,enumerable:!0,get:function(){return this.beaconMethod}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.beaconResult?!this.beaconResult.activated:!1}}});var kKC=function(Y){this.context=Y};
kKC.prototype.isSupported=function(){return!sI(this.context)&&!!this.context.global.fetch};
kKC.prototype.ping=function(){var Y=this;return Rm.apply(null,_.Bt(_.BN.apply(0,arguments).map(function(b){return Ex(Y.context.global.fetch(b,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Zl(function(w){return w.status===200}))}))).pipe(nHI(function(b){return b}),e4M())};
kKC.prototype.pingWithHeadersAndBody=function(Y,b,w){for(var V=_.BN.apply(3,arguments),H=this,f=new Headers,E=_.N(b.entries()),U=E.next();!U.done;U=E.next()){var X=_.N(U.value);U=X.next().value;X=X.next().value;f.set(U,X)}var I,k=(I=Y.keepAlive)!=null?I:!1;Rm.apply(null,_.Bt(V.map(function(l){return Ex(H.context.global.fetch(l,Object.assign({},{method:String(Y.beaconMethod),cache:"no-cache"},k?{keepalive:!0}:{},{mode:"no-cors",headers:f,body:w}))).pipe(Zl(function(x){return x.status===200}))}))).pipe(nHI(function(l){return l}),
e4M())};var ltj,xeB;_.vY=function(){};
_.a6=function(Y){return Y};
ltj=function(Y){var b=b||0;return function(){return Y.apply(this,Array.prototype.slice.call(arguments,0,b))}};
_.PY=function(Y){var b=!1,w;return function(){b||(w=Y(),b=!0);return w}};
_.Zf=function(Y,b){var w=0;return function(V){_.wB.clearTimeout(w);var H=arguments;w=_.wB.setTimeout(function(){Y.apply(void 0,H)},b)}};
xeB=function(Y,b){var w=0,V=!1,H=[],f=function(){w=0;V&&(V=!1,E())},E=function(){w=_.wB.setTimeout(f,b);
var U=H;H=[];Y.apply(void 0,U)};
return function(U){H=arguments;w?V=!0:E()}};var xro=function(){return he&&xb?xb.mobile:!hq$()&&(vg("iPod")||vg("iPhone")||vg("Android")||vg("IEMobile"))},hq$=function(){return he&&xb?!xb.mobile&&(vg("iPad")||vg("Android")||vg("Silk")):vg("iPad")||vg("Android")&&!vg("Mobile")||vg("Silk")};var qM8;_.BL={};qM8="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.BL.add=function(Y,b,w){if(Y!==null&&b in Y)throw Error("qa`"+b);Y[b]=w};
_.BL.clear=function(Y){for(var b in Y)delete Y[b]};
_.BL.clone=function(Y){var b={},w;for(w in Y)b[w]=Y[w];return b};
_.BL.contains=function(Y,b){return tr6(Y,b)};
_.BL.containsKey=function(Y,b){return Y!==null&&b in Y};
_.BL.containsValue=tr6;_.BL.create=FmG;_.BL.createImmutableView=function(Y){var b=Y;Object.isFrozen&&!Object.isFrozen(Y)&&(b=Object.create(Y),Object.freeze(b));return b};
_.BL.createSet=Lmq;_.BL.equals=function(Y,b){for(var w in Y)if(!(w in b)||Y[w]!==b[w])return!1;for(var V in b)if(!(V in Y))return!1;return!0};
_.BL.every=function(Y,b,w){for(var V in Y)if(!b.call(w,Y[V],V,Y))return!1;return!0};
_.BL.extend=function(Y,b){for(var w,V,H=1;H<arguments.length;H++){V=arguments[H];for(w in V)Y[w]=V[w];for(var f=0;f<qM8.length;f++)w=qM8[f],Object.prototype.hasOwnProperty.call(V,w)&&(Y[w]=V[w])}};
_.BL.filter=function(Y,b,w){var V={},H;for(H in Y)b.call(w,Y[H],H,Y)&&(V[H]=Y[H]);return V};
_.BL.findKey=R4r;_.BL.findValue=function(Y,b,w){return(b=R4r(Y,b,w))&&Y[b]};
_.BL.forEach=function(Y,b,w){for(var V in Y)b.call(w,Y[V],V,Y)};
_.BL.get=function(Y,b,w){return Y!==null&&b in Y?Y[b]:w};
_.BL.getAllPropertyNames=function(Y,b,w){if(!Y)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return OuB(Y);for(var V={};Y&&(Y!==Object.prototype||b)&&(Y!==Function.prototype||w);){for(var H=Object.getOwnPropertyNames(Y),f=0;f<H.length;f++)V[H[f]]=!0;Y=Object.getPrototypeOf(Y)}return OuB(V)};
_.BL.getAnyKey=function(Y){for(var b in Y)return b};
_.BL.getAnyValue=function(Y){for(var b in Y)return Y[b]};
_.BL.getCount=function(Y){var b=0,w;for(w in Y)b++;return b};
_.BL.getKeys=OuB;_.BL.getSuperClass=function(Y){return(Y=Object.getPrototypeOf(Y.prototype))&&Y.constructor};
_.BL.getValueByKeys=function(Y,b){var w=_.TK(b),V=w?b:arguments;for(w=w?0:1;w<V.length;w++){if(Y==null)return;Y=Y[V[w]]}return Y};
_.BL.getValues=function(Y){var b=[],w=0,V;for(V in Y)b[w++]=Y[V];return b};
_.BL.isEmpty=function(Y){for(var b in Y)return!1;return!0};
_.BL.isImmutableView=function(Y){return!!Object.isFrozen&&Object.isFrozen(Y)};
_.BL.map=function(Y,b,w){var V={},H;for(H in Y)V[H]=b.call(w,Y[H],H,Y);return V};
_.BL.remove=function(Y,b){var w;(w=b in Y)&&delete Y[b];return w};
_.BL.set=function(Y,b,w){Y[b]=w};
_.BL.setIfUndefined=function(Y,b,w){return b in Y?Y[b]:Y[b]=w};
_.BL.setWithReturnValueIfNotSet=function(Y,b,w){if(b in Y)return Y[b];w=w();return Y[b]=w};
_.BL.some=function(Y,b,w){for(var V in Y)if(b.call(w,Y[V],V,Y))return!0;return!1};
_.BL.transpose=function(Y){var b={},w;for(w in Y)b[Y[w]]=w;return b};
_.BL.unsafeClone=d1b;var BY=function(Y,b,w,V,H){this.allowedElements=Y;this.elementPolicies=b;this.allowedGlobalAttributes=w;this.globalAttributePolicies=V;this.globallyAllowedAttributePrefixes=H},s6d=function(Y,b,w){w=Y.elementPolicies.get(w);
return(w==null?0:w.has(b))?w.get(b):Y.allowedGlobalAttributes.has(b)?{policyAction:1}:(w=Y.globalAttributePolicies.get(b))?w:Y.globallyAllowedAttributePrefixes&&[].concat(_.Bt(Y.globallyAllowedAttributePrefixes)).some(function(V){return b.indexOf(V)===0})?{policyAction:1}:{policyAction:0}};var Q6I="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(" "),
vb_=[["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}]])]],PIk="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
ZaU=[["dir",{policyAction:3,conditions:N1(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:N1(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:N1(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:N1(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],BBo=new BY(new Set(Q6I),new Map(vb_),new Set(PIk),new Map(ZaU)),nbC=new BY(new Set(Q6I.concat(["BUTTON",
"INPUT"])),new Map(vb_),new Set(N1(function(){return PIk.concat(["class","id","name"])})),new Map(N1(function(){return ZaU.concat([["style",
{policyAction:1}]])})));var MLj,eq5,Oao;MLj=function(Y,b,w,V){this.JSC$7326_sanitizerTable=Y;this.styleElementSanitizer=b;this.styleAttributeSanitizer=w;this.JSC$7326_resourceUrlPolicy=V;this.changes=[]};
_.pgk=function(Y,b){var w=document.implementation.createHTMLDocument("");Y=eq5(Y,b,w);w=w.body;w.appendChild(Y);w=(new XMLSerializer).serializeToString(w);w=w.slice(w.indexOf(">")+1,w.lastIndexOf("</"));return Ou(w)};
eq5=function(Y,b,w){b=aDL(b,w);b=document.createTreeWalker(b,5,function(U){if(U.nodeType===3)U=1;else if(z4M(U))if(U=rzM(U),U===null)U=2;else{var X=Y.JSC$7326_sanitizerTable;U=U!=="FORM"&&(X.allowedElements.has(U)||X.elementPolicies.has(U))?1:2}else U=2;return U});
for(var V=b.nextNode(),H=w.createDocumentFragment(),f=H;V!==null;){var E=void 0;if(V.nodeType===3)Y.styleElementSanitizer&&f.nodeName==="STYLE"?(V=Y.styleElementSanitizer(V.data),E=Y.createTextNode(V)):E=Y.createTextNode(V.data);else if(z4M(V))E=Oao(Y,V,w);else throw Error("da");f.appendChild(E);if(V=b.firstChild())f=E;else for(;!(V=b.nextSibling())&&(V=b.parentNode());)f=f.parentNode}return H};
MLj.prototype.createTextNode=function(Y){return document.createTextNode(Y)};
Oao=function(Y,b,w){var V,H=rzM(b);w=w.createElement(H);b=b.attributes;for(var f=_.N(b),E=f.next();!E.done;E=f.next()){var U=E.value;E=U.name;U=U.value;var X=s6d(Y.JSC$7326_sanitizerTable,E,H);a:{if(V=X.conditions){V=_.N(V);for(var I=V.next();!I.done;I=V.next()){var k=_.N(I.value);I=k.next().value;k=k.next().value;var l=void 0;if((I=(l=b.getNamedItem(I))==null?void 0:l.value)&&!k.has(I)){V=!1;break a}}}V=!0}if(V)switch(X.policyAction){case 1:VB(w,E,U);break;case 2:X=_.Igt(U);U=X!==void 0&&tA6.indexOf(X.toLowerCase())!==
-1?U:"about:invalid#zClosurez";VB(w,E,U);break;case 3:VB(w,E,U.toLowerCase());break;case 4:Y.styleAttributeSanitizer?(U=Y.styleAttributeSanitizer(U),VB(w,E,U)):VB(w,E,U);break;case 5:Y.JSC$7326_resourceUrlPolicy?(X={type:2,attributeName:E,elementName:H},U=SuI(U),(U=Y.JSC$7326_resourceUrlPolicy(U,X))&&VB(w,E,U.toString())):VB(w,E,U);break;case 6:if(Y.JSC$7326_resourceUrlPolicy){X={type:2,attributeName:E,elementName:H};V=[];U=_.N(U.split(","));for(I=U.next();!I.done;I=U.next())k=_.N(I.value.trim().split(/\s+/,
2)),I=k.next().value,k=k.next().value,V.push({url:I,descriptor:k});U={parts:[]};V=_.N(V);for(I=V.next();!I.done;I=V.next())I=I.value,k=SuI(I.url),(k=Y.JSC$7326_resourceUrlPolicy(k,X))&&U.parts.push({url:k.toString(),descriptor:I.descriptor});VB(w,E,WmG(U))}else VB(w,E,U)}}return w};
_.tLC=N1(function(){return new MLj(BBo)});
_.Rqd=N1(function(){return new MLj(nbC)});var dr8=function(){this.calledBuild=!1;this.JSC$7338_sanitizerTable=BBo},FGC=function(){dr8.apply(this,arguments)};
_.P(FGC,dr8);FGC.prototype.build=function(){if(this.calledBuild)throw Error("sa");this.calledBuild=!0;return new MLj(this.JSC$7338_sanitizerTable,void 0,void 0,this.JSC$7338_resourceUrlPolicy)};var LG5=/[^#]*/;var jq=function(Y){try{return!!Y&&Y.location.href!=null&&tP(Y,"foo")}catch(b){return!1}},ato=function(Y){var b=SMI;
if(b)for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&Y(b[w],w,b)},reI=function(){var Y=[];
ato(function(b){Y.push(b)});
return Y},SMI={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"},zqt=_.PY(function(){return reI()}),KGo=function(){var Y=WG_("IFRAME"),
b={};
_.$2(zqt(),function(w){Y.sandbox&&Y.sandbox.supports&&Y.sandbox.supports(w)&&(b[w]=!0)});
return b},WG_=function(Y,b){b=b===void 0?document:b;
return b.createElement(String(Y).toLowerCase())};var nj;_.rp=function(Y,b,w){return Math.min(Math.max(Y,b),w)};
nj=function(Y,b,w){return Y+w*(b-Y)};_.eq=function(Y,b){this.x=Y!==void 0?Y:0;this.y=b!==void 0?b:0};
_.g=_.eq.prototype;_.g.clone=function(){return new _.eq(this.x,this.y)};
_.g.equals=function(Y){return Y instanceof _.eq&&(this==Y?!0:this&&Y?this.x==Y.x&&this.y==Y.y:!1)};
_.g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.g.translate=function(Y,b){Y instanceof _.eq?(this.x+=Y.x,this.y+=Y.y):(this.x+=Number(Y),typeof b==="number"&&(this.y+=b));return this};
_.g.scale=function(Y,b){this.x*=Y;this.y*=typeof b==="number"?b:Y;return this};_.mE=function(Y,b){this.width=Y;this.height=b};
_.g=_.mE.prototype;_.g.clone=function(){return new _.mE(this.width,this.height)};
_.g.area=function(){return this.width*this.height};
_.g.aspectRatio=function(){return this.width/this.height};
_.g.isEmpty=function(){return!this.area()};
_.g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.g.scale=function(Y,b){this.width*=Y;this.height*=typeof b==="number"?b:Y;return this};var rh=function(Y,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=Y===sRL&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=iaU};
rh.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Aeo=function(Y){return Y instanceof rh&&Y.constructor===rh&&Y.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===iaU?Y.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},iaU={},sRL={};
new rh(sRL,"");var la,s2,ex,CI9,j6C,$r8,pl,TBC,uuj,Je5,Rv,YtU,NUK,f5C,gdo,Ed_,c_9,UQQ,X9K,rLM,DQ8,od9,I5d,mQI,Mh;la=function(Y){return Y?new Mh(_.Oy(Y)):HdI||(HdI=new Mh)};
_.gK=function(Y,b){return typeof b==="string"?Y.getElementById(b):b};
s2=function(Y,b){return(b||document).getElementsByTagName(String(Y))};
_.ye_=function(Y){return CI9("yt-formatted-string","paper-input-input",Y)};
ex=function(Y,b,w,V){Y=V||Y;return(b=b&&b!="*"?String(b).toUpperCase():"")||w?Y.querySelectorAll(b+(w?"."+w:"")):Y.getElementsByTagName("*")};
CI9=function(Y,b,w){var V=document,H=Y&&Y!="*"?String(Y).toUpperCase():"";return H||b?(w||V).querySelector(H+(b?"."+b:"")):ex(V,Y,b,w)[0]||null};
j6C=function(Y,b){_.BL.forEach(b,function(w,V){V=="style"?Y.style.cssText=w:V=="class"?Y.className=w:V=="for"?Y.htmlFor=w:$r8.hasOwnProperty(V)?Y.setAttribute($r8[V],w):_.Hg(V,"aria-")||_.Hg(V,"data-")?Y.setAttribute(V,w):Y[V]=w})};
$r8={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"};_.Iz=function(Y){Y=(Y||window).document;Y=Y.compatMode=="CSS1Compat"?Y.documentElement:Y.body;return new _.mE(Y.clientWidth,Y.clientHeight)};
_.GKo=function(Y){var b=_.pj(Y);Y=Y.defaultView;return new _.eq(Y.pageXOffset||b.scrollLeft,Y.pageYOffset||b.scrollTop)};
_.pj=function(Y){return Y.scrollingElement?Y.scrollingElement:_.hZ||Y.compatMode!="CSS1Compat"?Y.body||Y.documentElement:Y.documentElement};
pl=function(Y){return Y?Y.defaultView:window};
_.OI=function(Y,b,w){return TBC(document,arguments)};
TBC=function(Y,b){var w=b[1],V=Je5(Y,String(b[0]));w&&(typeof w==="string"?V.className=w:Array.isArray(w)?V.className=w.join(" "):j6C(V,w));b.length>2&&uuj(Y,V,b,2);return V};
uuj=function(Y,b,w,V){function H(U){U&&b.appendChild(typeof U==="string"?Y.createTextNode(U):U)}
for(;V<w.length;V++){var f=w[V];if(!_.TK(f)||_.bC(f)&&f.nodeType>0)H(f);else{a:{if(f&&typeof f.length=="number"){if(_.bC(f)){var E=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){E=typeof f.item=="function";break a}}E=!1}_.$2(E?_.jL(f):f,H)}}};
_.xG=function(Y){return Je5(document,Y)};
Je5=function(Y,b){b=String(b);Y.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return Y.createElement(b)};
_.tn=function(){return document.createTextNode("\n")};
Rv=function(Y){if(Y.nodeType!=1)return!1;switch(Y.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
YtU=function(Y,b){uuj(_.Oy(Y),Y,arguments,1)};
_.dm=function(Y){for(var b;b=Y.firstChild;)Y.removeChild(b)};
_.F1=function(Y,b){b.parentNode&&b.parentNode.insertBefore(Y,b)};
_.Lj=function(Y,b){b.parentNode&&b.parentNode.insertBefore(Y,b.nextSibling)};
_.qf=function(Y){return Y&&Y.parentNode?Y.parentNode.removeChild(Y):null};
_.bo$=function(Y,b){var w=b.parentNode;w&&w.replaceChild(Y,b)};
_.w9r=function(Y){var b,w=Y.parentNode;if(w&&w.nodeType!=11)if(Y.removeNode)Y.removeNode(!1);else{for(;b=Y.firstChild;)w.insertBefore(b,Y);_.qf(Y)}};
_.Sx=function(Y){return Y.children!=void 0?Y.children:Array.prototype.filter.call(Y.childNodes,function(b){return b.nodeType==1})};
_.HoI=function(Y){return Y.nextElementSibling!==void 0?Y.nextElementSibling:_.VKU(Y.nextSibling,!0)};
_.VKU=function(Y,b){for(;Y&&Y.nodeType!=1;)Y=b?Y.nextSibling:Y.previousSibling;return Y};
_.YP=function(Y){return _.bC(Y)&&Y.nodeType==1};
_.Ay=function(Y,b){if(!Y||!b)return!1;if(Y.contains&&b.nodeType==1)return Y==b||Y.contains(b);if(typeof Y.compareDocumentPosition!="undefined")return Y==b||!!(Y.compareDocumentPosition(b)&16);for(;b&&Y!=b;)b=b.parentNode;return b==Y};
NUK=function(Y,b){if(Y==b)return 0;if(Y.compareDocumentPosition)return Y.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in Y||Y.parentNode&&"sourceIndex"in Y.parentNode){var w=Y.nodeType==1,V=b.nodeType==1;if(w&&V)return Y.sourceIndex-b.sourceIndex;var H=Y.parentNode,f=b.parentNode;return H==f?gdo(Y,b):!w&&_.Ay(H,b)?-1*f5C(Y,b):!V&&_.Ay(f,Y)?f5C(b,Y):(w?Y.sourceIndex:H.sourceIndex)-(V?b.sourceIndex:f.sourceIndex)}V=_.Oy(Y);w=V.createRange();w.selectNode(Y);w.collapse(!0);Y=V.createRange();Y.selectNode(b);
Y.collapse(!0);return w.compareBoundaryPoints(_.wB.Range.START_TO_END,Y)};
f5C=function(Y,b){var w=Y.parentNode;if(w==b)return-1;for(;b.parentNode!=w;)b=b.parentNode;return gdo(b,Y)};
gdo=function(Y,b){for(;b=b.previousSibling;)if(b==Y)return-1;return 1};
Ed_=function(Y){var b,w=arguments.length;if(!w)return null;if(w==1)return arguments[0];var V=[],H=Infinity;for(b=0;b<w;b++){for(var f=[],E=arguments[b];E;)f.unshift(E),E=E.parentNode;V.push(f);H=Math.min(H,f.length)}f=null;for(b=0;b<H;b++){E=V[0][b];for(var U=1;U<w;U++)if(E!=V[U][b])return f;f=E}return f};
_.Oy=function(Y){return Y.nodeType==9?Y:Y.ownerDocument||Y.document};
c_9=function(Y){return Y.contentDocument||Y.contentWindow.document};
_.av=function(Y,b){if("textContent"in Y)Y.textContent=b;else if(Y.nodeType==3)Y.data=String(b);else if(Y.firstChild&&Y.firstChild.nodeType==3){for(;Y.lastChild!=Y.firstChild;)Y.removeChild(Y.lastChild);Y.firstChild.data=String(b)}else _.dm(Y),Y.appendChild(_.Oy(Y).createTextNode(String(b)))};
UQQ={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};X9K={IMG:" ",BR:"\n"};rLM=function(Y){var b;Y.tagName=="A"&&Y.hasAttribute("href")||Y.tagName=="INPUT"||Y.tagName=="TEXTAREA"||Y.tagName=="SELECT"||Y.tagName=="BUTTON"?b=!Y.disabled&&(!Y.hasAttribute("tabindex")||DQ8(Y)):b=Y.hasAttribute("tabindex")&&DQ8(Y);return b};
DQ8=function(Y){Y=Y.tabIndex;return typeof Y==="number"&&Y>=0&&Y<32768};
od9=function(Y){var b=[];mQI(Y,b,!0);Y=b.join("");Y=Y.replace(/ \xAD /g," ").replace(/\xAD/g,"");Y=Y.replace(/\u200B/g,"");Y=Y.replace(/ +/g," ");Y!=" "&&(Y=Y.replace(/^\s*/,""));return Y};
I5d=function(Y){var b=[];mQI(Y,b,!1);return b.join("")};
mQI=function(Y,b,w){if(!(Y.nodeName in UQQ))if(Y.nodeType==3)w?b.push(String(Y.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(Y.nodeValue);else if(Y.nodeName in X9K)b.push(X9K[Y.nodeName]);else for(Y=Y.firstChild;Y;)mQI(Y,b,w),Y=Y.nextSibling};
_.kj8=function(Y,b,w){if(!b&&!w)return null;var V=b?String(b).toUpperCase():null;return _.FE(Y,function(H){return(!V||H.nodeName==V)&&(!w||typeof H.className==="string"&&_.Ka(H.className.split(/\s+/),w))},!0)};
_.FE=function(Y,b,w){Y&&!w&&(Y=Y.parentNode);for(w=0;Y;){if(b(Y))return Y;Y=Y.parentNode;w++}return null};
Mh=function(Y){this.JSC$7363_document_=Y||_.wB.document||document};
_.g=Mh.prototype;_.g.getElement=function(Y){return _.gK(this.JSC$7363_document_,Y)};
_.g.$=Mh.prototype.getElement;_.g.getElementsByTagName=function(Y,b){return(b||this.JSC$7363_document_).getElementsByTagName(String(Y))};
_.g.getElementsByTagNameAndClass=function(Y,b,w){return ex(this.JSC$7363_document_,Y,b,w)};
_.g.$$=Mh.prototype.getElementsByTagNameAndClass;_.g.setProperties=j6C;_.g.JSC$7365_createDom=function(Y,b,w){return TBC(this.JSC$7363_document_,arguments)};
_.g.createElement=function(Y){return Je5(this.JSC$7363_document_,Y)};
_.g.createTextNode=function(Y){return this.JSC$7363_document_.createTextNode(String(Y))};
_.g.getWindow=function(){return this.JSC$7363_document_.defaultView};
var kQ=function(Y){return _.GKo(Y.JSC$7363_document_)};
_.g=Mh.prototype;_.g.appendChild=function(Y,b){Y.appendChild(b)};
_.g.append=YtU;_.g.canHaveChildren=Rv;_.g.removeNode=_.qf;_.g.getChildren=_.Sx;_.g.contains=_.Ay;_.g=fl.prototype;_.g.getWidth=function(){return this.right-this.left};
_.g.getHeight=function(){return this.bottom-this.top};
_.g.clone=function(){return new fl(this.top,this.right,this.bottom,this.left)};
_.g.contains=function(Y){return this&&Y?Y instanceof fl?Y.left>=this.left&&Y.right<=this.right&&Y.top>=this.top&&Y.bottom<=this.bottom:Y.x>=this.left&&Y.x<=this.right&&Y.y>=this.top&&Y.y<=this.bottom:!1};
_.g.expand=function(Y,b,w,V){_.bC(Y)?(this.top-=Y.top,this.right+=Y.right,this.bottom+=Y.bottom,this.left-=Y.left):(this.top-=Y,this.right+=Number(b),this.bottom+=Number(w),this.left-=Number(V));return this};
_.g.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};
_.g.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};
_.g.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};
_.g.translate=function(Y,b){Y instanceof _.eq?(this.left+=Y.x,this.right+=Y.x,this.top+=Y.y,this.bottom+=Y.y):(this.left+=Y,this.right+=Y,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};
_.g.scale=function(Y,b){b=typeof b==="number"?b:Y;this.left*=Y;this.right*=Y;this.top*=b;this.bottom*=b;return this};var rm=function(Y,b,w,V){this.left=Y;this.top=b;this.width=w;this.height=V};
_.g=rm.prototype;_.g.clone=function(){return new rm(this.left,this.top,this.width,this.height)};
_.g.boundingRect=function(Y){var b=Math.max(this.left+this.width,Y.left+Y.width),w=Math.max(this.top+this.height,Y.top+Y.height);this.left=Math.min(this.left,Y.left);this.top=Math.min(this.top,Y.top);this.width=b-this.left;this.height=w-this.top};
_.g.contains=function(Y){return Y instanceof _.eq?Y.x>=this.left&&Y.x<=this.left+this.width&&Y.y>=this.top&&Y.y<=this.top+this.height:this.left<=Y.left&&this.left+this.width>=Y.left+Y.width&&this.top<=Y.top&&this.top+this.height>=Y.top+Y.height};
_.g.distance=function(Y){var b=Y.x<this.left?this.left-Y.x:Math.max(Y.x-(this.left+this.width),0);Y=Y.y<this.top?this.top-Y.y:Math.max(Y.y-(this.top+this.height),0);return Math.sqrt(b*b+Y*Y)};
_.g.getSize=function(){return new _.mE(this.width,this.height)};
_.g.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};
_.g.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};
_.g.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};
_.g.translate=function(Y,b){Y instanceof _.eq?(this.left+=Y.x,this.top+=Y.y):(this.left+=Y,typeof b==="number"&&(this.top+=b));return this};
_.g.scale=function(Y,b){b=typeof b==="number"?b:Y;this.left*=Y;this.width*=Y;this.top*=b;this.height*=b;return this};var h88,Kj,XLG,WY,Qkj,skt,vdj,tZq,PCd,BUU;_.ze=function(Y,b,w){if(typeof b==="string")(b=_.l5K(Y,b))&&(Y.style[b]=w);else for(var V in b){w=Y;var H=b[V],f=_.l5K(w,V);f&&(w.style[f]=H)}};
h88={};_.l5K=function(Y,b){var w=h88[b];if(!w){var V=_.xL(b);w=V;Y.style[V]===void 0&&(V=(_.hZ?"Webkit":_.lL?"Moz":null)+WcB(V),Y.style[V]!==void 0&&(w=V));h88[b]=w}return w};
_.nx=function(Y,b){var w=_.Oy(Y);return w.defaultView&&w.defaultView.getComputedStyle&&(Y=w.defaultView.getComputedStyle(Y,null))?Y[b]||Y.getPropertyValue(b)||"":""};
_.iO=function(Y,b){return _.nx(Y,b)||(Y.currentStyle?Y.currentStyle[b]:null)||Y.style&&Y.style[b]};
_.xQt=function(Y){return _.iO(Y,"position")};
Kj=function(Y,b,w){if(b instanceof _.eq){var V=b.x;b=b.y}else V=b,b=w;Y.style.left=WY(V,!1);Y.style.top=WY(b,!1)};
XLG=function(Y){try{return Y.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
_.Rz=function(Y){var b=_.Oy(Y),w=new _.eq(0,0);if(Y==(b?_.Oy(b):document).documentElement)return w;Y=XLG(Y);b=kQ(la(b));w.x=Y.left+b.x;w.y=Y.top+b.y;return w};
_.qtj=function(Y,b,w){if(b instanceof _.mE)w=b.height,b=b.width;else if(w==void 0)throw Error("ta");Y.style.width=WY(b,!0);Y.style.height=WY(w,!0)};
WY=function(Y,b){typeof Y=="number"&&(Y=(b?Math.round(Y):Y)+"px");return Y};
Qkj=function(Y){return skt(Y)};
skt=function(Y){var b=vdj;if(_.iO(Y,"display")!="none")return b(Y);var w=Y.style,V=w.display,H=w.visibility,f=w.position;w.visibility="hidden";w.position="absolute";w.display="inline";Y=b(Y);w.display=V;w.position=f;w.visibility=H;return Y};
vdj=function(Y){var b=Y.offsetWidth,w=Y.offsetHeight,V=_.hZ&&!b&&!w;return(b===void 0||V)&&Y.getBoundingClientRect?(Y=XLG(Y),new _.mE(Y.right-Y.left,Y.bottom-Y.top)):new _.mE(b,w)};
tZq=function(Y){var b=_.Rz(Y);Y=skt(Y);return new rm(b.x,b.y,Y.width,Y.height)};
PCd=function(Y,b){Y=Y.style;"opacity"in Y?Y.opacity=b:"MozOpacity"in Y?Y.MozOpacity=b:"filter"in Y&&(Y.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")};
_.T_=function(Y,b){Y.style.display=b?"":"none"};
_.Zo$=function(Y){return"rtl"==_.iO(Y,"direction")};
BUU=function(Y){var b=_.nx(Y,"marginLeft"),w=_.nx(Y,"marginRight"),V=_.nx(Y,"marginTop");Y=_.nx(Y,"marginBottom");return new fl(parseFloat(V),parseFloat(w),parseFloat(Y),parseFloat(b))};
_.nd8=function(Y){var b=_.nx(Y,"borderLeftWidth"),w=_.nx(Y,"borderRightWidth"),V=_.nx(Y,"borderTopWidth");Y=_.nx(Y,"borderBottomWidth");return new fl(parseFloat(V),parseFloat(w),parseFloat(Y),parseFloat(b))};var iV=function(Y){this.context=Y};
iV.prototype.isSupported=function(Y){return(Y==null?0:Y.attributionEnabled)||(Y==null?void 0:Y.beaconMethod)==="POST"||(Y==null?0:Y.customHeaders)||(Y==null?0:Y.customBody)||(Y==null?0:Y.keepAlive)?!1:!sI(this.context)};
iV.prototype.ping=function(){var Y=this;return l7(_.BN.apply(0,arguments).map(function(b){try{var w=Y.context.global,V=!1;V=V===void 0?!1:V;w.google_image_requests||(w.google_image_requests=[]);var H=WG_("IMG",w.document);V&&(H.attributionSrc="");H.src=b;w.google_image_requests.push(H);return!0}catch(f){return!1}}).every(function(b){return b}))};
iV.prototype.pingWithHeadersAndBody=function(Y,b,w){this.ping.apply(this,_.Bt(_.BN.apply(3,arguments)))};var MKr=function(Y){this.context=Y};
MKr.prototype.isSupported=function(Y){return e8t&&!sI(this.context)&&iuK(this.context)!==void 0&&!(Y==null?0:Y.attributionEnabled)&&(Y==null?void 0:Y.beaconMethod)!=="POST"&&!(Y==null?0:Y.customHeaders)&&!(Y==null?0:Y.customBody)};
MKr.prototype.makeBeacon=function(Y,b){if(!this.isSupported(b))throw new lV;return new An(this.context,Y)};
var e8t=!1,An=function(Y,b){this.context=Y;this.JSC$7384_urlWithoutToken=b;Y=iuK(this.context);if(Y===void 0)throw Error();this.wrappedBeacon=new Y(p9C(this),{})},p9C=function(Y){Y=Y.JSC$7384_urlWithoutToken;
return(Y.slice(-1)[0]==="&"?Y:Y+"&")+"pbapi=1"};
An.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
An.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
An.prototype.setHeader=function(){};
_.up.Object.defineProperties(An.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7384_urlWithoutToken},
set:function(Y){this.JSC$7384_urlWithoutToken=Y;this.wrappedBeacon.setURL(p9C(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(Y){if(Y!=="GET")throw new lV;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var Ook=function(Y){this.context=Y};
Ook.prototype.isSupported=function(Y){if((Y==null?0:Y.attributionEnabled)||(Y==null?void 0:Y.beaconMethod)==="GET"||(Y==null?0:Y.customHeaders)||(Y==null?0:Y.customBody)||(Y==null?0:Y.keepAlive))return!1;var b;return!sI(this.context)&&((b=this.context.global.navigator)==null?void 0:b.sendBeacon)!==void 0};
Ook.prototype.ping=function(){var Y=this;return l7(_.BN.apply(0,arguments).map(function(b){var w;return(w=Y.context.global.navigator)==null?void 0:w.sendBeacon(b)}).every(function(b){return b}))};
Ook.prototype.pingWithHeadersAndBody=function(Y,b,w){this.ping.apply(this,_.Bt(_.BN.apply(3,arguments)))};var XE=function(Y){this.value=Y},Cl=function(Y,b){return l7(Y.value).pipe(cL(b))},T2=new XE(!1),q26=new XE(!0);var Ll=function(Y){this.value=Y;this.releasedSubject=new ND};
Ll.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.up.Object.defineProperties(Ll.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7397_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var VCb=["FRAME","IMG","IFRAME"],TEb=/^[01](px)?$/,wtK=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},bht=function(){var Y=new wtK;
Y.crossDomainLoadedDefault=!0;Y.pendingImagesBlockLoad=!0;return Y};var tK8=function(Y,b){var w=U66(Y);if(w)if(w.onCreativeLoad)w.onCreativeLoad(b);else{var V=b?[b]:[],H=function(f){for(var E=0;E<V.length;++E)try{V[E](1,f)}catch(U){}V={push:function(U){U(1,f)}}};
w.onCreativeLoad=function(f){V.push(f)};
w.setAttribute("data-creative-load-listener","");w.addEventListener("creativeLoad",function(f){H(f.detail)});
_.wB.addEventListener("message",function(f){cpa(w,H,f)})}};var Cj=function(Y,b){var w=this;this.global=Y;this.parentContext=b;this.JSC$7408_onVisibilityChange=this.document?Rm(l7(!0),Ox(this.document,"visibilitychange")).pipe(am(this.parentContext.performanceMonitor,748),Zl(function(){return w.getVisibilityState()}),Ap()):l7("visible");
this.document?Ox(this.document,"DOMContentLoaded").pipe(am(this.parentContext.performanceMonitor,739),i7(1)):l7(jgu("DOMContentLoaded"))},xfG=function(Y){return Y.document!==null&&Y.document.visibilityState!==void 0};
Cj.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Cj.prototype.querySelector=function(Y){return this.document?this.document.querySelector(Y):null};
Cj.prototype.querySelectorAll=function(Y){return this.document?_.jL(this.document.querySelectorAll(Y)):[]};
Cj.prototype.elementFromPoint=function(Y,b){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;Y=this.document.elementFromPoint(Y,b);return Y===null?null:new Ll(Y)};
var EG6=function(Y,b,w){w=w===void 0?!1:w;if(b.ref===void 0||!Y.document)return l7(b).pipe(am(Y.parentContext.performanceMonitor,749));var V=new jC(1),H=function(){V.next(b)};
w||tK8(b.ref,H);HhM(b.ref,H);return V.pipe(am(Y.parentContext.performanceMonitor,749),i7(1))};
_.up.Object.defineProperties(Cj.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return tP(this.global,"document")?this.global.document||null:null}}});var XtL=_.wM(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),D6I=_.wM(["./reach_worklet.js"]),m6M=_.wM(["./reach_worklet.js"]),R8k=_.wM(["./reach_worklet.html"]),dQ9=_.wM(["./reach_worklet.js"]),FI5=_.wM(["./reach_worklet.js"]);_.HL(R8k);_.HL(dQ9);_.HL(FI5);var z2={left:0,top:0,width:0,height:0};var LIk,St8,a5U,r_r,bc,WI8,KI5,io8,N8g,Eor,y_U,$QC;LIk=function(Y,b,w,V,H,f,E){var U="";Y&&(U+=Y+":");w&&(U+="//",b&&(U+=b+"@"),U+=w,V&&(U+=":"+V));H&&(U+=H);f&&(U+="?"+f);E&&(U+="#"+E);return U};
St8=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.u1=function(Y){return Y.match(St8)};
_.RM=function(Y,b){return Y?b?decodeURI(Y):decodeURIComponent(Y):Y};
a5U=function(Y){Y=_.u1(Y)[1]||null;!Y&&_.wB.self&&_.wB.self.location&&(Y=_.wB.self.location.protocol.slice(0,-1));return Y?Y.toLowerCase():""};
_.Yu=function(Y){return _.RM(_.u1(Y)[3]||null,!0)};
_.ku=function(Y){return _.RM(_.u1(Y)[5]||null,!0)};
_.Enb=function(Y){var b=Y.indexOf("#");return b<0?null:Y.slice(b+1)};
r_r=function(Y){Y=_.u1(Y);return LIk(Y[1],Y[2],Y[3],Y[4])};
_.z8d=function(Y){Y=_.u1(Y);return LIk(Y[1],null,Y[3],Y[4])};
_.CM=function(Y){Y=_.u1(Y);return LIk(null,null,null,null,Y[5],Y[6],Y[7])};
_.w5=function(Y){var b=Y.indexOf("#");return b<0?Y:Y.slice(0,b)};
bc=function(Y,b){Y=_.u1(Y);b=_.u1(b);return Y[3]==b[3]&&Y[1]==b[1]&&Y[4]==b[4]};
WI8=function(Y,b){if(Y){Y=Y.split("&");for(var w=0;w<Y.length;w++){var V=Y[w].indexOf("="),H=null;if(V>=0){var f=Y[w].substring(0,V);H=Y[w].substring(V+1)}else f=Y[w];b(f,H?Vh(H):"")}}};
KI5=function(Y){var b=Y.indexOf("#");b<0&&(b=Y.length);var w=Y.indexOf("?");if(w<0||w>b){w=b;var V=""}else V=Y.substring(w+1,b);return[Y.slice(0,w),V,Y.slice(b)]};
io8=function(Y,b){return b?Y?Y+"&"+b:b:Y};
_.A_U=function(Y,b){if(!b)return Y;Y=KI5(Y);Y[1]=io8(Y[1],b);return Y[0]+(Y[1]?"?"+Y[1]:"")+Y[2]};
_.CC8=function(Y,b,w){if(Array.isArray(b))for(var V=0;V<b.length;V++)_.CC8(Y,String(b[V]),w);else b!=null&&w.push(Y+(b===""?"":"="+_.yW(b)))};
_.h6=function(Y){var b=[],w;for(w in Y)_.CC8(w,Y[w],b);return b.join("&")};
_.Jq=function(Y,b){b=_.h6(b);return _.A_U(Y,b)};
_.yk=function(Y,b,w){w=w!=null?"="+_.yW(w):"";return _.A_U(Y,b+w)};
N8g=function(Y,b,w,V){for(var H=w.length;(b=Y.indexOf(w,b))>=0&&b<V;){var f=Y.charCodeAt(b-1);if(f==38||f==63)if(f=Y.charCodeAt(b+H),!f||f==61||f==38||f==35)return b;b+=H+1}return-1};
Eor=/#|$/;_.CC=function(Y,b){var w=Y.search(Eor),V=N8g(Y,0,b,w);if(V<0)return null;var H=Y.indexOf("&",V);if(H<0||H>w)H=w;V+=b.length+1;return Vh(Y.slice(V,H!==-1?H:0))};
y_U=/[?&]($|#)/;_.H0=function(Y,b){for(var w=Y.search(Eor),V=0,H,f=[];(H=N8g(Y,V,b,w))>=0;)f.push(Y.substring(V,H)),V=Math.min(Y.indexOf("&",H)+1||w,w);f.push(Y.slice(V));return f.join("").replace(y_U,"$1")};
_.zM=function(Y,b,w){return _.yk(_.H0(Y,b),b,w)};
$QC=function(Y){var b=KI5(window.location.href),w=b[1],V=[];w&&w.split("&").forEach(function(H){var f=H.indexOf("=");f=f>=0?H.slice(0,f):H;Y.hasOwnProperty(f)||V.push(H)});
b[1]=io8(V.join("&"),_.h6(Y));return b[0]+(b[1]?"?"+b[1]:"")+b[2]};var Rye=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Rye,_.SQ);Rye.prototype.getVersion=function(){return _.Su(this,2)};var tCu=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(tCu,_.SQ);var BCt=function(Y,b){return _.hP(Y,2,b)},OhB=function(Y,b){return _.hP(Y,3,b)};
tCu.prototype.getModel=function(){return _.Su(this,4)};
var MCK=function(Y,b){return _.hP(Y,4,b)},Zha=function(Y,b){return _.hP(Y,5,b)},ptb=function(Y,b){return _.hP(Y,9,b)},P7M=function(Y,b){return O0(Y,10,b)},vFq=function(Y,b){return _.E2(Y,11,b)},nFG=function(Y,b){return _.hP(Y,1,b)},eyv=function(Y,b){return _.E2(Y,7,b)};var smI="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var G2=function(Y,b,w,V){Y=Y===void 0?window:Y;b=b===void 0?null:b;w=w===void 0?new EB6:w;V=V===void 0?oFg():V;VL8.call(this);var H=this;this.global=Y;this.debugChannel=b;this.performanceMonitor=w;this.onPageHide=ph(function(){return Ox(H.global,"pagehide")}).pipe(am(this.performanceMonitor,941));
this.onLoad=ph(function(){return Ox(H.global,"load")}).pipe(am(this.performanceMonitor,738),i7(1));
this.onResize=ph(function(){return Ox(H.global,"resize")}).pipe(am(this.performanceMonitor,741));
this.onMessage=ph(function(){return Ox(H.global,"message")}).pipe(am(this.performanceMonitor,740));
this.document=new Cj(this.global,this);this.timeProvider=new cej(new Xg$(this.intrinsicFunctionNamespace,this.performanceMonitor),new Urt(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new ft9(new mrr(this),new MKr(this),new hn(this,new kKC(this)),new hn(this,new Ook(this)),new hn(this,new iV(this)))};
_.P(G2,VL8);var sI=function(Y){var b=Y.global;return!!Y.global.HTMLFencedFrameElement&&!!b.fence&&typeof b.fence.reportEvent==="function"};
_.g=G2.prototype;_.g.reportFencedFrameEvent=function(Y){sI(this)&&this.global.fence.reportEvent(Y)};
_.g.getOnBackgrounded=function(){return this.onPageHide.pipe(am(this.performanceMonitor,942),cL(this.queue),Zl(function(){}))};
_.g.postMessage=function(Y,b,w){w=w===void 0?[]:w;this.global.postMessage(Y,b,w)};
_.g.getWidth=function(){return jq(this.global)?this.global.width:0};
_.g.getHeight=function(){return jq(this.global)?this.global.height:0};
_.g.isMobile=function(){return hq$()||xro()};
var Sq=function(Y,b){try{var w=hye(b,Y.global,Y.isMobile());return{left:w.left,top:w.top,width:w.getWidth(),height:w.getHeight()}}catch(V){return z2}};
G2.prototype.validate=function(){var Y=this.beaconFactory.isSupported()||sI(this);return this.global&&this.timeProvider.available()&&Y};
var CHu=function(Y){return(Y=FSb(Y.global))?Ex(Y):null};
_.up.Object.defineProperties(G2.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(Y){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!jq(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}}});_.jk$=!_.kv&&!_.te();var ss6=function(Y){return Y};var vGL=function(Y){return Y.pipe(dC(function(b){var w=b.endOfSessionReason;var V;return((V=b.viewable)==null?void 0:V.extrapolateToNow().value)||w!=void 0}),i7(1),z1())};var WS6=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},KSt=function(Y){var b=Y.sequenceNumber.toString(10).padStart(2,"0");
b=""+Y.startTime+b;Y.sequenceNumber<99&&Y.sequenceNumber++;return b};var hdt=wC(YQ(function(Y){return Y.endOfSessionReason===void 0}),Zl(function(Y){return Object.assign({},Y,{timestamps:sy(Y)})}),dC(function(Y){var b=Y.viewable;
Y=Y.timestamps;var w;return(w=b==null?void 0:b.extrapolateUsingTimestampMap(Y).value)!=null?w:!1}),Zl(function(Y){var b=Y.beaconFactory;
var w=Y.timestampedExposureHistory;var V=Y.timeOnScreen;var H=Y.binaryContext;Y=Y.timestamps;if(b===void 0||w===void 0||V===void 0||H===void 0)return!1;if(V.extrapolateUsingTimestampMap(Y).value.every(function(f){return f>=0}))return!0;
w=w.map(function(f){return f.timestamp+":"+f.value}).join(",");
V=QB({bin:H,tos:V},Y);b.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+V+("&eh="+w)).sendNow();return!0}),YQ(function(Y){return!Y}),z1());var Apv=function(Y){return{id:Y.pingId,mcvt:Y.maxConsecutiveViewTime,p:Y.creativePosition,asp:Y.adSpeedPosition,tm:Y.totalMeasurementTime,tu:Y.totalUnviewedTime,mtos:Y.maxTimeOnScreen,tos:Y.timeOnScreen,v:Y.binaryVersion,bin:Y.binaryContext,avms:Y.measurementStrategy,bs:Y.browserSize,mc:Y.maximumExposure,"if":Y.crossDomainIframeState,vu:Y.delayedImpressionJsState,app:Y.inApp,mse:Y.mraidError,mtop:Y.mraidSituation,itpl:Y.injectedTemplateId,adk:Y.adKey,exk:Y.awbidKey,rs:Y.requestSource,la:Y.isLargeAd,
cr:Y.isContentRecommendationAd,uach:Y.userAgentClientHints,vs:Y.viewState,r:Y.reasonCode,pay:Y.hasCpmavUrl,co:Y.clientPingOrderCounter,rst:Y.adRenderStartTime,rpt:Y.adRenderPeriodTime,isd:Y.initialScrollDepth,lsd:Y.loadedScrollDepth,context:Y.errorContext,msg:Y.errorMessage,stack:Y.errorStack,name:Y.errorName,ec:Y.hasElementChanged,sfr:Y.strategyFailureReasons,met:Y.creativeSearchResult,wmsd:Y.webMeasurementStartDiagnostic,pv:Y.pageVisible,epv:Y.eosPageVisible,pbe:Y.inStatefulBeaconExperiment,fle:Y.inFetchLaterBeaconExperiment,
vae:Y.inViewableAttributionExperiment,spb:Y.supportsPendingBeacon,sfl:Y.supportsFetchLater,ffslot:Y.isFencedFrameSlotTurtlex,reach:Y.sharedStorageReachMode,io2:Y.v2VisibilityBitVector,rxdbg:Y.rxDebugger,omida:Y.omidAppId,omidp:Y.omidPartner,omidpv:Y.omidPartnerVersion,omidor:Y.omidOcclusionReasons,omidv:Y.omidVersion,omids:Y.omidSessionType,omidam:Y.omidAccessMode,omidct:Y.omidCreativeType,omidia:Y.omidInApp,omiddc:Y.omidDeviceCategory,omidlat:Y.omidLastActivity,omiddit:Y.omidDeviceIdleTime,qid:Y.errorEscapedQueryId}};var QsG=function(Y){var b=[];return Y.pipe(Zl(function(w){var V=w.beaconFactory,H=w.fetchBeaconFactory,f=w.timeOnScreen,E=w.timeOnScreenUrlPrefixes,U=w.payloadMapper,X=w.timeOnScreenPingId,I=w.timeOnScreenReason,k=w.urlSerializer,l=w.viewable,x=w.hasImpressionFired,Q=w.inStatefulBeaconExperiment,Z=w.supportsPendingBeacon,e=w.supportsFetchLater,O=w.turtlexReportEventData;if(!w.geometryMeasurable||!x||w.maxTimeOnScreen===void 0||f===void 0||E===void 0||U===void 0||X===void 0||k===void 0||V===void 0)return!1;
if(w.isTurtlex){if(I===void 0)return!1;E=w.reportFencedFrameEvent;if(!E)return!1;E({eventType:"active-view-time-on-screen",eventData:O!=null?O:"",destination:["buyer"]});return!0}if(!(Q||e||I))return!1;O=sy(w);var L;l=(L=l==null?void 0:l.extrapolateUsingTimestampMap(O).value)!=null?L:!1;L=k(Object.assign({},w,{pingId:X,viewState:l?4:3,reasonCode:I!=null?I:"u",payloadMapper:U,urlPrefixes:E}),O);if(Q){for(;b.length>E.length;)w=void 0,(w=b.shift())==null||w.deactivate();L.forEach(function(C,W){W>=b.length?
b.push(V.makeBeacon(C)):b[W].url=C});
return Z&&H&&I!==void 0?(L.forEach(function(C){H.makeBeacon(C).sendNow()}),!0):I!==void 0}if(Z&&H&&I!==void 0)return L.forEach(function(C){H.makeBeacon(C).sendNow()}),!0;
if(e&&H){for(;b.length>E.length;)Z=void 0,(Z=b.shift())==null||Z.deactivate();var r=k(Object.assign({},w,{pingId:X,viewState:l?4:3,reasonCode:I!=null?I:"u",payloadMapper:U,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),O)[0];L.forEach(function(C,W){W>=b.length?b.push(V.makeBeacon(r,{endOfSession:!0})):b[W].url=r});
return I!==void 0?(L.forEach(function(C){H.makeBeacon(C).sendNow()}),!0):I!==void 0}return I!==void 0?(L.forEach(function(C){V.makeBeacon(C).sendNow()}),!0):!1}),YQ(function(w){return!w}),z1())};var POa=wC(dC(function(Y){return Y.immediateUrlPrefixes!==void 0&&Y.payloadMapper!==void 0&&Y.urlSerializer!==void 0&&Y.inferredPingId!==void 0&&Y.beaconFactory!==void 0}),dC(function(Y){return u3I(Y)!==null}),TCB(function(Y){return Y.activeViewUnmeasurableEvent},function(Y){return Y.emit}),Zl(function(Y){if(Y.isTurtlex){var b=Y.reportFencedFrameEvent;
if(b){var w;b({eventType:"active-view-unmeasurable",eventData:(w=Y.turtlexReportEventData)!=null?w:"",destination:["buyer"]})}}else{w=void 0;var V=u3I(Y);if(V==="x"){var H,f=(H=Y.geometricMeasurementErrors)!=null?H:Y.contextValidationErrors;f&&(b=f.stack,w=f.message)}Y.urlSerializer(Object.assign({},Y,{urlPrefixes:Y.immediateUrlPrefixes,payloadMapper:Y.payloadMapper,pingId:Y.inferredPingId,viewState:2,reasonCode:V,errorMessage:w,errorStack:b}),sy(Y)).forEach(function(E){Y.beaconFactory.makeBeacon(E).sendNow()})}}),
i7(1),z1());var Yyr=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var lwg=wC(dC(function(Y){return Y.payloadMapper!==void 0&&Y.immediateUrlPrefixes!==void 0&&Y.urlSerializer!==void 0&&Y.inferredPingId!==void 0&&Y.beaconFactory!==void 0}),Zl(function(Y){return Object.assign({},Y,{timestamps:sy(Y)})}),dC(function(Y){var b=Y.viewable;
var w=Y.hasImpressionFired;Y=Y.timestamps;var V;return!!w&&((V=b==null?void 0:b.extrapolateUsingTimestampMap(Y).value)!=null?V:!1)}),TCB(function(Y){return Y.activeViewViewableEvent},function(Y){return Y.emit}),Zl(function(Y){var b=Y.beaconFactory,w=Y.turtlexReportEventData;
if(Y.isTurtlex){var V=Y.reportFencedFrameEvent;if(!V)return!1;V({eventType:"active-view-viewable",eventData:w!=null?w:"",destination:["buyer"]});return!0}w=Y.urlSerializer(Object.assign({},Y,{urlPrefixes:Y.immediateUrlPrefixes,payloadMapper:Y.payloadMapper,pingId:Y.inferredPingId,viewState:4,reasonCode:"v"}),Y.timestamps);(V=Y.cpmavUrls)&&V.length>0&&Y.viewUrlSerializer&&Y.viewUrlSerializer(V,Y).forEach(function(H){b.makeBeacon(H).sendNow()});
(V=Y.viewableRelayUrls)&&V.length>0&&Y.viewUrlSerializer&&Y.viewUrlSerializer(V,Y).forEach(function(H){b.makeBeacon(H).sendNow()});
w.forEach(function(H){b.makeBeacon(H,{attributionEnabled:Y.isViewableAttributionEnabled}).sendNow()});
return!0}),YQ(function(Y){return!Y}),z1());var KEu=Zl(function(Y){return[Y.value.topWindowViewportExternalGeometry.width,Y.value.topWindowViewportExternalGeometry.height]});var az=function(Y,b){this.callback=Y;this.options=b;this.intersectionObserverV2=this.intersectionObserverV1=null},PaI=function(Y,b){b?Y.intersectionObserverV2||(b=Object.assign({},Y.options,{delay:100,
trackVisibility:!0}),Y.intersectionObserverV2=new IntersectionObserver(Y.callback,b)):Y.intersectionObserverV1||(Y.intersectionObserverV1=new IntersectionObserver(Y.callback,Y.options))},Gj5=function(Y,b){Y=b?Y.intersectionObserverV2:Y.intersectionObserverV1;
if(!Y)throw new HaC;return Y};
az.prototype.observe=function(Y,b){Gj5(this,Y).observe(b)};
az.prototype.unobserve=function(Y,b){Gj5(this,Y).unobserve(b)};
az.prototype.disconnect=function(Y){Gj5(this,Y).disconnect()};
az.prototype.takeRecords=function(Y){return Gj5(this,Y).takeRecords()};var dF={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:z2,topWindowViewportExternalGeometry:z2,measurementRequests:new ND,elementGeometrySourceName:"ns",elementGeometry:z2,intersectionGeometry:z2,viewportLocalAppOffset:{x:0,y:0}};var Olq=WL(wC(Zl(function(Y){var b;return(b=Y.exposureOverride)!=null?b:BFa(Y)}),Zl(function(Y){return isFinite(Y)?Y:0}))),aKL=WL(wC(Zl(function(Y){var b;
return(b=Y.exposureOverride)!=null?b:BFa(Y)}),Zl(function(Y){return isFinite(Y)?Y:-1})));var $S=function(Y,b){this.a=Y;this.b=b;if(Y.clock.timeline!==b.clock.timeline)throw Error();};
$S.prototype.equivalentTo=function(Y){return Y instanceof $S?this.a.equivalentTo(Y.a)&&this.b.equivalentTo(Y.b):!1};
$S.prototype.extrapolateToTime=function(Y){var b=this.a.extrapolateToTime(Y).value,w=this.b.extrapolateToTime(Y).value;return{timestamp:Y,value:[b,w]}};
_.up.Object.defineProperties($S.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.a.active||this.b.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.a.clock}},
lastMeasurement:{configurable:!0,enumerable:!0,get:function(){var Y=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),b=this.a.lastMeasurement.timestamp.equals(Y)?this.a.lastMeasurement.value:this.a.extrapolateToTime(Y).value,w=this.b.lastMeasurement.timestamp.equals(Y)?this.b.lastMeasurement.value:this.b.extrapolateToTime(Y).value;return{timestamp:Y,value:[b,w]}}}});var jx=function(Y,b){this.input=Y;this.mapFunction=b;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
jx.prototype.equivalentTo=function(Y){return Y instanceof jx?this.input.equivalentTo(Y.input)&&this.mapFunction===Y.mapFunction:!1};
jx.prototype.extrapolateToTime=function(Y){Y=this.input.extrapolateToTime(Y);return{timestamp:Y.timestamp,value:this.mapFunction(Y.value)}};
_.up.Object.defineProperties(jx.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Ge=function(){};
Ge.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Ge.prototype.extrapolateUsingTimestampMap=function(Y){var b=this.clock.timeline,w,V=(w=Y.get(b))!=null?w:this.clock.now();Y.set(b,V);return this.extrapolateToTime(V)};
Ge.prototype.map=function(Y){return new TUK(this,Y)};
Ge.prototype.joinWith=function(Y){return new J_d(this,Y)};
var J_d=function(){$S.apply(this,arguments);this.map=Ge.prototype.map;this.joinWith=Ge.prototype.joinWith;this.extrapolateToNow=Ge.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ge.prototype.extrapolateUsingTimestampMap};
_.P(J_d,$S);var TUK=function(){jx.apply(this,arguments);this.map=Ge.prototype.map;this.joinWith=Ge.prototype.joinWith;this.extrapolateToNow=Ge.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ge.prototype.extrapolateUsingTimestampMap};
_.P(TUK,jx);var ia=function(Y,b){this.lastMeasurement=b;this.extrapolateToNow=Ge.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ge.prototype.extrapolateUsingTimestampMap;this.map=Ge.prototype.map;this.joinWith=Ge.prototype.joinWith;this.clock=Y};
ia.prototype.equivalentTo=function(Y){return Y.active};
ia.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.up.Object.defineProperties(ia.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var WEr=Zl(function(Y){if(Y.value.viewportGeometrySourceName==="omid"){if(Y.value.elementGeometrySourceName==="nio")return"omio";if(Y.value.elementGeometrySourceName==="geo")return"omgeo"}return Y.value.elementGeometrySourceName==="geo"||Y.value.elementGeometrySourceName==="nio"?Y.value.viewportGeometrySourceName:Y.value.elementGeometrySourceName});var Mqq=wC(dC(function(Y){return!isNaN(Y)}),T1(function(Y,b){return isNaN(Y)?b:Math.min(Y,b)},NaN),Ap());var tqa=WL(wC(Zl(function(Y){return Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.exposedViewportLocalGeometry.width*Y.exposedViewportLocalGeometry.height)}),Zl(function(Y){return isFinite(Y)?Math.min(1,Y):0})));var zHe=wC(WL(Zl(function(Y){Y=Y.exposureOverride?Y.elementGeometry.width*Y.elementGeometry.height*Y.exposureOverride/(Y.topWindowViewportExternalGeometry.width*Y.topWindowViewportExternalGeometry.height):Y.intersectionGeometry.width*Y.intersectionGeometry.height/(Y.topWindowViewportExternalGeometry.width*Y.topWindowViewportExternalGeometry.height);return isFinite(Y)?Y:0})));var APb=function(Y,b){var w=this;this.timeProvider=Y;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=b.pipe(Ap()).subscribe(function(V){$Q(w);w.measurementRequestObserver=V})},yPv=function(Y,b){$Q(Y);
Y.lastMeasurementRequest=Y.timeProvider.setTimeout(function(){var w;return void((w=Y.measurementRequestObserver)==null?void 0:w.next())},b)},$Q=function(Y){Y.lastMeasurementRequest!==null&&Y.timeProvider.clearTimeout(Y.lastMeasurementRequest);
Y.lastMeasurementRequest=null};
APb.prototype.dispose=function(){$Q(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var u$U=function(){};var oGM=function(Y,b){this.context=Y;this.strategies=b};
_.P(oGM,u$U);oGM.prototype.buildGeometrySource=function(Y,b){var w=this.strategies.map(function(f){return f.buildGeometrySource(Y,b)}),V=JPq(w.map(function(f){return f.geometrySource})),H=V.capturedErrors.pipe(YX8());
return{geometrySource:V.chain.pipe(cL(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:H,strategyErrors:V.capturedErrors}].concat(_.Bt(w.map(function(f){return f.additionalOutputs}))))}};
var YX8=function(){return T1(function(Y,b){b instanceof PL?Y.push(b.measurementStrategyFailureReason):Y.push(-1);return Y},[])};var k_e=function(Y,b){this.context=Y;this.poller=b};
_.P(k_e,u$U);k_e.prototype.buildGeometrySource=function(Y,b){var w=uEM(bCr(this.context,this.poller),mDu(this.context,b.requestSource));return{geometrySource:TFB(Y.measurableCreative.pipe(w),b.inApp),additionalOutputs:{}}};var IwI=function(Y,b,w){w=w===void 0?xDg(Y,b):w;this.context=Y;this.intersectionObserverStrategy=w};
_.P(IwI,u$U);IwI.prototype.buildGeometrySource=function(Y,b){var w=this.intersectionObserverStrategy(b.useV2);return{geometrySource:TFB(Y.measurableCreative.pipe(w,qyv(this.context)),b.inApp),additionalOutputs:{}}};var bgQ=function(Y,b,w){var V=V===void 0?Symbol():V;this.element=Y;this.immediateUrls=b;this.timeOnScreenUrls=w;this.symbol=V};var yB=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),fwv=Object.freeze([1,.75,yB.exposureThreshold,yB.largeAdExposureThreshold,0]);var O5a=function(Y,b){b=b===void 0?36E5:b;var w=w===void 0?!0:w;this.creatives=new ND;this.elementsToUnregister=new ND;this.elementMap=new Map;var V=new G2(window,null);V.beaconFactory=new hn(V,new iV(V));mfG(V,this.creatives,this.elementsToUnregister,Y,b,w).subscribe()},djB=function(Y,b,w,V){if(!Y.elementMap.has(b)){var H=new Ll(b);
Y.elementMap.set(b,H);Y.creatives.next(new bgQ(H,w,V))}},R_q=function(Y,b){Y.elementsToUnregister.next(b);
var w=Y.elementMap.get(b);w!==void 0&&(w.release(),Y.elementMap.delete(b))};var I8v=function(Y){var b=Y.url;Y=Y.uaDataValues;this.JSC$7513_url_=b;this.uaDataValues_=Y;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var w=/[?&]([^&=]+)=([^&]*)/g;Y=w.exec(b);)this.urlParamValues_[Y[1]]=Y[2]},kgK=function(Y){Y=Y.uaDataValues_;
if(!Y)return"";var b=JP("uap",Y.platform)+JP("uapv",Y.platformVersion)+JP("uafv",Y.uaFullVersion)+JP("uaa",Y.architecture)+JP("uam",Y.model)+JP("uab",Y.bitness);Y.fullVersionList&&(b+="&uafvl="+encodeURIComponent(Y.fullVersionList.map(function(w){return encodeURIComponent(w.brand)+";"+encodeURIComponent(w.version)}).join("|")));
Y.wow64!=null&&(b+="&uaw="+Number(Y.wow64));return b.slice(1)};var Te=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Te,_.SQ);Te.prototype.getId=function(){return _.Su(this,1)};
Te.prototype.setId=function(Y){return _.bf(this,1,Y)};var Jn=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Jn,_.SQ);Jn.prototype.getSeconds=function(){return FT(this,1)};
Jn.prototype.setSeconds=function(Y){return _.Zg(this,1,OX(Y),"0")};_.A9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(_.A9,_.SQ);_.A9.prototype.getSeconds=function(){return FT(this,1)};
_.A9.prototype.setSeconds=function(Y){return _.Zg(this,1,OX(Y),"0")};
_.wI5=function(Y){var b=Number(rM(Y,1));Y=_.HE(Y,2);return new Date(b*1E3+Y/1E6)};var uV=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(uV,_.SQ);uV.prototype.getUrl=function(){return _.Su(this,1)};
uV.prototype.setUrl=function(Y){return _.bf(this,1,Y)};
uV.prototype.getHeight=function(){return _.HE(this,2)};
uV.prototype.getWidth=function(){return _.HE(this,3)};var Y5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Y5,_.SQ);Y5.prototype.getAspectRatio=function(){return LE(this,1)};
Y5.prototype.setAspectRatio=function(Y){return _.Zg(this,1,_.UX(Y),0)};
Y5.prototype.getDuration=function(){return _.EK(this,Jn,2)};var VXd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(VXd,_.SQ);var Hg9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Hg9,_.SQ);var gsI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(gsI,_.SQ);var fAo=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(fAo,_.SQ);var Nt8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Nt8,_.SQ);var Es9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Es9,_.SQ);var cOt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(cOt,_.SQ);var UF$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(UF$,_.SQ);var XI9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(XI9,_.SQ);var bz=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(bz,_.SQ);var V2=[2,4,5,6,7];var DFC=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(DFC,_.SQ);var tZ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(tZ,_.SQ);_.g=tZ.prototype;_.g.getId=function(){return _.EK(this,Te,1)};
_.g.setId=function(Y){return _.HN(this,1,Y)};
_.g.getName=function(){return _.Su(this,2)};
_.g.setDescription=function(Y){return _.bf(this,3,Y)};
_.g.getUrl=function(){return _.Su(this,8)};
_.g.setUrl=function(Y){return _.bf(this,8,Y)};
var HV=function(Y){return _.wl(Y,uV,10,_.V9())};
tZ.prototype.getOwner=function(Y){var b=_.s3(this,40,_.WI,3,!0);SK(b,Y);return b[Y]};
tZ.prototype.getVersion=function(){return FT(this,45)};
var gP=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(gP,_.SQ);_.mFU=[0,GYt,J3e];_.os_=[0,GYt,J3e];var IA$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(IA$,_.SQ);var f1=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(f1,_.SQ);f1.prototype.getStatus=function(){return _.ay(this,1)};
f1.prototype.removeItem=function(Y){return mUM(this,2,Y)};var ktK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(ktK,_.SQ);ktK.prototype.getName=function(){return _.Su(this,8)};var Nk=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Nk,_.SQ);Nk.prototype.getCommand=function(){return _.ay(this,1)};
Nk.prototype.getSource=function(){return _.EK(this,ktK,2)};
Nk.prototype.setVisible=function(Y){return _.pM(this,5,Y)};
Nk.prototype.removeItem=function(Y){return mUM(this,7,Y)};var lAo=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(lAo,_.SQ);lAo.prototype.getCommand=function(){return _.ay(this,1)};
lAo.prototype.removeItem=function(Y){return mUM(this,4,Y)};
var hRr=_.wE(lAo);var EV=function(Y,b,w){w=w===void 0?Error():w;var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.code=Y;b+=":";w instanceof Error?(this.message=b+w.message,this.stack=w.stack||""):(this.message=b+String(w),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(EV,Error);_.BE=function(){this.JSC$7571_disposed_=this.JSC$7571_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.BE.prototype.JSC$7571_disposed_=!1;_.BE.prototype.isDisposed=function(){return this.JSC$7571_disposed_};
_.BE.prototype.dispose=function(){this.JSC$7571_disposed_||(this.JSC$7571_disposed_=!0,this.disposeInternal())};
_.BE.prototype[Symbol.dispose]=function(){this.dispose()};
_.os=function(Y,b){Y.addOnDisposeCallback(_.v0(_.ua,b))};
_.BE.prototype.addOnDisposeCallback=function(Y,b){this.JSC$7571_disposed_?b!==void 0?Y.call(b):Y():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),b&&(Y=Y.bind(b)),this.onDisposeCallbacks_.push(Y))};
_.BE.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var cV=function(Y){_.BE.call(this);this.wpc=Y};
_.P(cV,_.BE);cV.prototype.q17=function(){return this.wpc.f()};
cV.prototype.lTO=function(Y){return this.wpc.c(Y)};
cV.prototype.wd=function(Y){return this.wpc.m(edG(Y))};
cV.prototype.b8=function(Y){return this.wpc.mws(edG(Y))};
var bO=function(Y){_.BE.call(this);var b=this;this.nj=Y;this.zmu="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.xW6=void 0;this.uds=this.nj.p;this.wae=this.qwi.bind(this);this.addOnDisposeCallback(function(){return void xFC(b)})};
_.P(bO,_.BE);var qXI=function(Y){var b;return _.c(function(w){if(w.nextAddress==1){if(!Y.nj.wpc)throw new EV(30,"NWA");return Y.yDi?w.return(Y.yDi):_.D(w,Y.nj.wpc(),2)}b=w.yieldResult;Y.yDi=new cV(b);return w.return(Y.yDi)})};
bO.prototype.snapshot=function(Y){return this.nj.s(Object.assign({},Y.sR&&{c:Y.sR},Y.zGs&&{s:Y.zGs},Y.wN2!==void 0&&{p:Y.wN2}))};
bO.prototype.qwi=function(Y){this.nj.e(Y)};
bO.prototype.ooZ=function(Y,b){return this.nj.c(Y,b,!1)};
var xFC=function(Y){Y.xW6!==void 0&&(Y.zmu.forEach(function(b){var w;(w=Y.xW6)==null||w.removeEventListener(b,Y.wae)}),Y.xW6=void 0)};
bO.prototype.eIi=function(){return this.nj.l()};var s7U,UV=function(){_.BE.apply(this,arguments);this.nmd=1;this[s7U]=this.dispose};
_.P(UV,_.BE);UV.prototype.share=function(){if(this.isDisposed())throw Error("ua");this.nmd++;return this};
UV.prototype.dispose=function(){--this.nmd||_.BE.prototype.dispose.call(this)};
s7U=Symbol.dispose;var G_B=function(Y){this.v06=Y;Y.addNewEventMetric("/client_streamz/bg/frs",_.Nf("mk"))};
G_B.prototype.record=function(Y,b){this.v06.record("/client_streamz/bg/frs",Y,b)};
var YNg=function(Y){this.pNj=Y;Y.addNewEventMetric("/client_streamz/bg/wrl",_.Nf("mn"),fC("ac"),fC("sc"),_.Nf("rk"),_.Nf("mk"))};
YNg.prototype.record=function(Y,b,w,V,H,f){this.pNj.record("/client_streamz/bg/wrl",Y,b,w,V,H,f)};
var Jyr=function(Y){this.jjp=Y;Y.addNewCounter("/client_streamz/bg/ec",_.Nf("en"),_.Nf("mk"))};
Jyr.prototype.increment=function(Y,b){this.jjp.JSC$7824_incrementCounter("/client_streamz/bg/ec",Y,b)};
var uhu=function(Y){this.ypp=Y;Y.addNewEventMetric("/client_streamz/bg/el",_.Nf("en"),_.Nf("mk"))};
uhu.prototype.record=function(Y,b,w){this.ypp.record("/client_streamz/bg/el",Y,b,w)};
var Tle=function(Y){this.wNl=Y;Y.addNewCounter("/client_streamz/bg/cec",fC("ec"),_.Nf("mk"))};
Tle.prototype.increment=function(Y,b){this.wNl.JSC$7824_incrementCounter("/client_streamz/bg/cec",Y,b)};
var bQr=function(Y){this.uNp=Y;Y.addNewCounter("/client_streamz/bg/po/csc",fC("cs"),_.Nf("mk"))};
bQr.prototype.increment=function(Y,b){this.uNp.JSC$7824_incrementCounter("/client_streamz/bg/po/csc",Y,b)};
var whL=function(Y){this.inC=Y;Y.addNewCounter("/client_streamz/bg/po/ctav",_.Nf("av"),_.Nf("mk"))};
whL.prototype.increment=function(Y,b){this.inC.JSC$7824_incrementCounter("/client_streamz/bg/po/ctav",Y,b)};
var VaI=function(Y){this.cpj=Y;Y.addNewCounter("/client_streamz/bg/po/cwsc",_.Nf("su"),_.Nf("mk"))};
VaI.prototype.increment=function(Y,b){this.cpj.JSC$7824_incrementCounter("/client_streamz/bg/po/cwsc",Y,b)};var XhG=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(XhG,_.SQ);var UG6=function(Y,b){return _.PD(Y,3,b,TBI)};var Q7d=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Q7d,_.SQ);var vsr=[1,2,3];var PQU=[0,vsr,_.Vs6,uiv,wWv];var Zg8=[0,_.YS,[0,y3B,_.GZ]];var BtQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(BtQ,_.SQ);var nsj=[1,2,3];var MXI=[0,nsj,Tge,$Uq,_.bV,Zg8];var eR9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(eR9,_.SQ);var pId=[0,_.YS,PQU,MXI];var Ogd=[0,_.uL];var tXK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(tXK,_.SQ);var RRU=[0,_.uL,-1,_.JZ];var dFr=[0,_.uL,-1,_.TZ,_.JZ];var Fd9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Fd9,_.SQ);var LdC=[1,2,3];var SXt=[0,LdC,_.bV,RRU,_.bV,dFr,_.bV,Ogd];var aAt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(aAt,_.SQ);aAt.prototype.JSC$7644_serializeBinary=b3q([0,_.uL,SXt,HtL,_.YS,pId,YkG,btG]);var rO$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(rO$,_.SQ);var Kdd=function(Y){var b=new aAt;b=_.hP(b,1,Y.JSC$7760_metricName);var w=zRd(Y);b=_.PD(b,3,w,_.SX);w=[];for(var V=[],H=_.N(Y.cellMap.keys()),f=H.next();!f.done;f=H.next())V.push(f.value.split(","));for(H=0;H<V.length;H++){f=V[H];for(var E=Y.cellType,U=Y.getCells(f)||[],X=[],I=0;I<U.length;I++){var k=U[I],l=k&&k.cellValue;k=new BtQ;switch(E){case 3:l=Number(l);Number.isFinite(l)&&xP(k,1,nsj,OX(l));break;case 2:xP(k,2,nsj,_.UX(Number(l)))}X.push(k)}E=X;for(U=0;U<E.length;U++){X=E[U];I=new eR9;X=_.HN(I,
2,X);I=[];k=Wd_(Y);for(l=0;l<k.length;l++){var x=k[l],Q=f[l],Z=new Q7d;switch(x){case 3:xP(Z,1,vsr,zt(String(Q)));break;case 2:x=Number(Q);Number.isFinite(x)&&xP(Z,2,vsr,_.vI(x));break;case 1:xP(Z,3,vsr,$rq(Q==="true"))}I.push(Z)}O0(X,1,I);w.push(X)}}O0(b,4,w);return b};var igo=function(Y){if(!Y)return"";if(/^about:(?:blank|srcdoc)$/.test(Y))return window.origin||"";Y.indexOf("blob:")===0&&(Y=Y.substring(5));Y=Y.split("#")[0].split("?")[0];Y=Y.toLowerCase();Y.indexOf("//")==0&&(Y=window.location.protocol+Y);/^[\w\-]*:\/\//.test(Y)||(Y=window.location.href);var b=Y.substring(Y.indexOf("://")+3),w=b.indexOf("/");w!=-1&&(b=b.substring(0,w));w=Y.substring(0,Y.indexOf("://"));if(!w)throw Error("va`"+Y);if(w!=="http"&&w!=="https"&&w!=="chrome-extension"&&w!=="moz-extension"&&
w!=="file"&&w!=="android-app"&&w!=="chrome-search"&&w!=="chrome-untrusted"&&w!=="chrome"&&w!=="app"&&w!=="devtools")throw Error("wa`"+w);Y="";var V=b.indexOf(":");if(V!=-1){var H=b.substring(V+1);b=b.substring(0,V);if(w==="http"&&H!=="80"||w==="https"&&H!=="443")Y=":"+H}return w+"://"+b+Y};var CQk=function(Y,b,w){var V=String(_.wB.location.href);return V&&Y&&b?[b,AO8(igo(V),Y,w||null)].join(" "):null},AO8=function(Y,b,w){var V=[],H=[];
if((Array.isArray(w)?2:1)==1)return H=[b,Y],_.$2(V,function(U){H.push(U)}),yO9(H.join(" "));
var f=[],E=[];_.$2(w,function(U){E.push(U.key);f.push(U.value)});
w=Math.floor((new Date).getTime()/1E3);H=f.length==0?[w,b,Y]:[f.join(":"),w,b,Y];_.$2(V,function(U){H.push(U)});
Y=yO9(H.join(" "));Y=[w,Y];E.length==0||Y.push(E.join(""));return Y.join("_")},yO9=function(Y){var b=S2K();
b.update(Y);return b.digestString().toLowerCase()};var X6=function(Y){this.JSC$7655_document_=Y||{cookie:""}},$Fd;
_.g=X6.prototype;_.g.isEnabled=function(){if(!_.wB.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};
_.g.set=function(Y,b,w){var V=!1;if(typeof w==="object"){var H=w.sameSite;V=w.secure||!1;var f=w.domain||void 0;var E=w.path||void 0;var U=w.maxAge}if(/[;=\s]/.test(Y))throw Error("xa`"+Y);if(/[;\r\n]/.test(b))throw Error("ya`"+b);U===void 0&&(U=-1);w=f?";domain="+f:"";E=E?";path="+E:"";V=V?";secure":"";U=U<0?"":U==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+U*1E3)).toUTCString();this.JSC$7655_document_.cookie=Y+"="+b+w+E+U+V+(H!=null?";samesite="+H:"")};
_.g.get=function(Y,b){for(var w=Y+"=",V=(this.JSC$7655_document_.cookie||"").split(";"),H=0,f;H<V.length;H++){f=Dt(V[H]);if(f.lastIndexOf(w,0)==0)return f.slice(w.length);if(f==Y)return""}return b};
_.g.remove=function(Y,b,w){var V=this.containsKey(Y);this.set(Y,"",{maxAge:0,path:b,domain:w});return V};
_.g.getKeys=function(){return $Fd(this).keys};
_.g.getValues=function(){return $Fd(this).values};
_.g.isEmpty=function(){return!this.JSC$7655_document_.cookie};
_.g.getCount=function(){return this.JSC$7655_document_.cookie?(this.JSC$7655_document_.cookie||"").split(";").length:0};
_.g.containsKey=function(Y){return this.get(Y)!==void 0};
_.g.containsValue=function(Y){for(var b=$Fd(this).values,w=0;w<b.length;w++)if(b[w]==Y)return!0;return!1};
_.g.clear=function(){for(var Y=$Fd(this).keys,b=Y.length-1;b>=0;b--)this.remove(Y[b])};
$Fd=function(Y){Y=(Y.JSC$7655_document_.cookie||"").split(";");for(var b=[],w=[],V,H,f=0;f<Y.length;f++)H=Dt(Y[f]),V=H.indexOf("="),V==-1?(b.push(""),w.push(H)):(b.push(H.substring(0,V)),w.push(H.substring(V+1)));return{keys:b,values:w}};
_.sJ=new X6(typeof document=="undefined"?null:document);var YTL,j7r;YTL=function(){var Y=_.wB.__SAPISID||_.wB.__APISID||_.wB.__3PSAPISID||_.wB.__1PSAPISID||_.wB.__OVERRIDE_SID;if(Y)return!0;typeof document!=="undefined"&&(Y=new X6(document),Y=Y.get("SAPISID")||Y.get("APISID")||Y.get("__Secure-3PAPISID")||Y.get("__Secure-1PAPISID"));return!!Y};
j7r=function(Y,b,w,V){(Y=_.wB[Y])||typeof document==="undefined"||(Y=(new X6(document)).get(b));return Y?CQk(Y,w,V):null};
_.ArK=function(Y){var b=igo(_.wB==null?void 0:_.wB.location.href),w=[];if(YTL()){b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==0||b.indexOf("moz-extension:")==0;var V=b?_.wB.__SAPISID:_.wB.__APISID;V||typeof document==="undefined"||(V=new X6(document),V=V.get(b?"SAPISID":"APISID")||V.get("__Secure-3PAPISID"));(V=V?CQk(V,b?"SAPISIDHASH":"APISIDHASH",Y):null)&&w.push(V);b&&((b=j7r("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",Y))&&w.push(b),
(Y=j7r("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",Y))&&w.push(Y))}return w.length==0?null:w.join(" ")};var GtQ=function(){this.minSize=1024};
GtQ.prototype.compress=function(Y){var b,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:return b=new CompressionStream("gzip"),w=(new Response(b.readable)).arrayBuffer(),V=b.writable.getWriter(),_.D(f,V.write((new TextEncoder).encode(Y)),2);case 2:return _.D(f,V.close(),3);case 3:return H=Uint8Array,_.D(f,w,4);case 4:return f.return(new H(f.yieldResult))}})};
GtQ.prototype.isSupported=function(Y){return Y<this.minSize?!1:typeof CompressionStream!=="undefined"};var Tt_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Tt_,_.SQ);var Dq=function(Y,b){this.intervalMs=Y;this.callback=b;this.enabled=!1;this.nowFn=function(){return _.XT()};
this.lastTimeMs=this.nowFn()};
Dq.prototype.setInterval=function(Y){this.intervalMs=Y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
Dq.prototype.start=function(){var Y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){Y.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
Dq.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
Dq.prototype.tick=function(){var Y=this;if(this.enabled){var b=Math.max(this.nowFn()-this.lastTimeMs,0);b<this.intervalMs*.8?this.timer=setTimeout(function(){Y.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var JOt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(JOt,_.SQ);var ub_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(ub_,_.SQ);var Y3k=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Y3k,_.SQ);Y3k.prototype.getTransmissionType=function(){return _.ay(this,1)};var WtB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(WtB,_.SQ);WtB.prototype.getVersion=function(){return _.Su(this,2)};var mV=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(mV,_.SQ);var zdL=function(Y){O0(cE,1,Y)};
mV.prototype.getModel=function(){return _.Su(this,6)};
var b38=_.wE(mV);var wDQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(wDQ,_.SQ);var awG=["platform","platformVersion","architecture","model","uaFullVersion"],cE=new mV,ry6=null;var o_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(o_,_.SQ);var VQ9=function(Y){return _.cO(Y,1,1)};var H3k=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y,4)};
_.P(H3k,_.SQ);_.I_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y,36)};
_.P(_.I_,_.SQ);_.I_.prototype.getExperimentIds=function(){return _.EK(this,Tt_,16)};var gMC=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y,19)};
_.P(gMC,_.SQ);gMC.prototype.setLogSource=function(Y){return _.cO(this,2,Y)};
gMC.prototype.setScheduler=function(Y){return _.cO(this,10,Y)};var NX$=function(Y,b){this.isServiceWorkerScope=b=b===void 0?!1:b;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new gMC;Number.isInteger(Y)&&this.logRequest.setLogSource(Y);b||(this.locale=document.documentElement.getAttribute("lang"));fg9(this,new o_)};
NX$.prototype.setLogSource=function(Y){this.logRequest.setLogSource(Y);return this};
var fg9=function(Y,b){_.HN(Y.logRequest,1,b);_.ay(b,1)||VQ9(b);Y.isServiceWorkerScope||(b=k5(Y),_.Su(b,5)||_.hP(b,5,Y.locale));Y.uach&&(b=k5(Y),_.EK(b,mV,9)||_.HN(b,9,Y.uach))},EM8=function(Y,b){Y.transmissionType=b},cc9=function(Y){var b=b===void 0?awG:b;
var w=Y.isServiceWorkerScope?void 0:pl();w?KtI(w,b).then(function(V){Y.uach=b38(V!=null?V:"[]");V=k5(Y);_.HN(V,9,Y.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},k5=function(Y){var b=_.EK(Y.logRequest,o_,1);
b||(b=new o_,fg9(Y,b));Y=b;b=_.EK(Y,wDQ,11);b||(b=new wDQ,_.HN(Y,11,b));return b};
NX$.prototype.build=function(Y,b,w,V,H,f){b=b===void 0?0:b;w=w===void 0?0:w;V=V===void 0?null:V;H=H===void 0?0:H;f=f===void 0?0:f;if(!this.isServiceWorkerScope){var E=k5(this);var U=new Y3k;U=_.cO(U,1,this.transmissionType);U=_.E2(U,2,this.isFinal);w=_.KE(U,3,w>0?w:void 0);w=_.KE(w,4,H>0?H:void 0);w=_.KE(w,5,f>0?f:void 0);H=w.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=H[_.Qr]|0;w=Ot(w,f)?w:cD(w,H,f)?E3(w,H):new w.constructor(N_(H,f,!0));_.HN(E,10,w)}E=this.logRequest.clone();w=Date.now().toString();
E=_.UK(E,4,OX(w));Y=Y.slice();Y=O0(E,3,Y);V&&(E=new JOt,V=_.KE(E,13,V),E=new ub_,V=_.HN(E,2,V),E=new H3k,V=_.HN(E,1,V),V=_.cO(V,2,9),_.HN(Y,18,V));b&&_.By(Y,14,b);return Y};U2.prototype.currBackoffCount_=0;U2.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
U2.prototype.getValue=function(){return this.currValue_};
var U_C=function(Y){Y.currBaseValue_=Math.min(Y.maxValue_,Y.currBaseValue_*Y.backoffFactor_);Y.currValue_=Math.min(Y.maxValue_,Y.currBaseValue_+(Y.randomFactor_?Math.round(Y.randomFactor_*(Math.random()-.5)*2*Y.currBaseValue_):0));Y.currBackoffCount_++};var cFg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y,8)};
_.P(cFg,_.SQ);var XDQ=_.wE(cFg);var Upg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Upg,_.SQ);var lz;lz=new XWv;var hS=function(Y){_.BE.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7733_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$7733_sendBeaconApiEnabled=!1;this.logSource=Y.logSource;this.getAuthHeaderValue=
Y.getAuthHeaderValue||function(){};
this.logRequestBuilder=new NX$(Y.logSource,Y.isServiceWorkerScope);this.network=Y.network||null;this.productID=Y.productID||null;this.bufferSize=1E3;this.clearcutUrl=Y.urlOverride||null;this.sessionIndex=Y.sessionIndex||null;this.disableAutomaticFlush=Y.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!Y.disableWithCredentials;this.isServiceWorkerScope=Y.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!pl()&&!!pl().navigator&&pl().navigator.sendBeacon!==
void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(D_t())).searchParams&&!!(new URL(D_t())).searchParams.set;var w=VQ9(new o_);fg9(this.logRequestBuilder,w);this.flushBackoff=new U2(1E4,3E5,.1);Y=m__(this,Y.backgroundJobDeferrer);this.JSC$7733_flushTimer=new Dq(this.flushBackoff.getValue(),Y);this.backupTimer=new Dq(6E5,Y);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState===
"hidden"){oM$(b);var V;(V=b.metalogService)==null||V.flush()}}),document.addEventListener("pagehide",function(){oM$(b);
var V;(V=b.metalogService)==null||V.flush()}))};
_.P(hS,_.BE);var m__=function(Y,b){return Y.isBrowserSupported?b?function(){b().then(function(){Y.flush()})}:function(){Y.flush()}:function(){}};
hS.prototype.disposeInternal=function(){oM$(this);this.JSC$7733_flushTimer.stop();this.backupTimer.stop();_.BE.prototype.disposeInternal.call(this)};
var Ig5=function(Y){Y.clearcutUrl||(Y.clearcutUrl=D_t());try{return(new URL(Y.clearcutUrl)).toString()}catch(b){return(new URL(Y.clearcutUrl,pl().location.origin)).toString()}};
hS.prototype.dispatch=function(Y){if(Y instanceof _.I_)this.log(Y);else try{var b=new _.I_,w=Y.serialize();var V=_.hP(b,8,w);this.log(V)}catch(H){x5(this,4,1)}};
var x5=function(Y,b,w){Y.metalogService&&Y.metalogService.increment(b,w)};
hS.prototype.log=function(Y){x5(this,2,1);if(this.isBrowserSupported){Y=Y.clone();var b=this.sequencePosition++;Y=_.By(Y,21,b);this.componentId&&_.hP(Y,26,this.componentId);b=Y;if(mQG(_.ZX(b,1))==null){var w=Date.now();w=Number.isFinite(w)?w.toString():"0";_.UK(b,1,OX(w))}_.DQq(_.ZX(b,15))!=null||_.By(b,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(w=this.experimentIds.clone(),_.HN(b,16,w));x5(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,b),
this.numLogsDroppedSinceLastFlush+=b,x5(this,3,b));this.pendingEvents.push(Y);this.disableAutomaticFlush||this.JSC$7733_flushTimer.enabled||this.JSC$7733_flushTimer.start()}};
hS.prototype.flush=function(Y,b){var w=this;if(this.pendingEvents.length===0)Y&&Y();else if(this.JSC$7733_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,kwt(this);else{var V=Date.now();if(this.noFlushUntilMs>V&&this.startWaitingMs<V)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?EM8(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var H=this.pendingEvents.length,
f=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),E=this.getAuthHeaderValue();if(E&&this.lastFailedAuth===E)b&&b("stale-auth-token");else{this.pendingEvents=[];this.JSC$7733_flushTimer.enabled&&this.JSC$7733_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;V=f.serialize();var U;this.JSC$7733_compressor&&this.JSC$7733_compressor.isSupported(V.length)&&
(U=this.JSC$7733_compressor.compress(V));var X=lgj(this,V,E),I=function(x){w.flushBackoff.reset();w.JSC$7733_flushTimer.setInterval(w.flushBackoff.getValue());if(x){var Q=null;try{var Z=JSON.stringify(JSON.parse(x.replace(")]}'\n","")));Q=XDQ(Z)}catch(e){}Q&&(x=Number(FT(Q,1,_.Co("-1"))),x>0&&(w.startWaitingMs=Date.now(),w.noFlushUntilMs=w.startWaitingMs+x),Oo6(Q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,lz.fieldIndex),e8M(Q,lz.fieldIndex),Q=lz.ctor?lz.getExtensionFn(Q,lz.ctor,lz.fieldIndex,
lz.JSC$6913_hasMessageId):lz.getExtensionFn(Q,lz.fieldIndex,null,lz.JSC$6913_hasMessageId),Q=Q===null?void 0:Q)&&(Q=_.HE(Q,1,-1),Q!==-1&&(w.flushBackoff=new U2(Q<1?1:Q,3E5,.1),w.JSC$7733_flushTimer.setInterval(w.flushBackoff.getValue())))}Y&&Y();w.numRetriesSinceLastSuccessfulFlush=0},k=function(x,Q){var Z=_.wl(f,_.I_,3,_.V9());
var e=Number(FT(f,14));U_C(w.flushBackoff);w.JSC$7733_flushTimer.setInterval(w.flushBackoff.getValue());x===401&&E&&(w.lastFailedAuth=E);e&&(w.numLogsDroppedSinceLastFlush+=e);Q===void 0&&(Q=w.isRetryable(x));Q&&(w.pendingEvents=Z.concat(w.pendingEvents),w.disableAutomaticFlush||w.JSC$7733_flushTimer.enabled||w.JSC$7733_flushTimer.start());x5(w,7,1);b&&b("net-send-failed",x);++w.numRetriesSinceLastSuccessfulFlush},l=function(){w.network&&w.network.send(X,I,k)};
U?U.then(function(x){x5(w,5,H);X.requestHeaders["Content-Encoding"]="gzip";X.requestHeaders["Content-Type"]="application/binary";X.body=x;X.bodyType=2;l()},function(){x5(w,6,H);
l()}):l()}}}};
var lgj=function(Y,b,w){w=w===void 0?null:w;var V=V===void 0?Y.withCredentials:V;var H={},f=new URL(Ig5(Y));w&&(H.Authorization=w);Y.sessionIndex&&(H["X-Goog-AuthUser"]=Y.sessionIndex,f.searchParams.set("authuser",Y.sessionIndex));Y.pageId&&(Object.defineProperty(H,"X-Goog-PageId",{value:Y.pageId}),f.searchParams.set("pageId",Y.pageId));return{url:f.toString(),body:b,bodyType:1,requestHeaders:H,requestType:"POST",withCredentials:V,timeoutMillis:Y.timeoutMillis}},oM$=function(Y){Y.logRequestBuilder.isFinal=
!0;
Y.flush();Y.logRequestBuilder.isFinal=!1},kwt=function(Y){hY9(Y,function(b,w){b=new URL(b);
b.searchParams.set("format","json");var V=!1;try{V=pl().navigator.sendBeacon(b.toString(),w.serialize())}catch(H){}V||(Y.isSendBeaconSupported=!1);return V})},hY9=function(Y,b){if(Y.pendingEvents.length!==0){var w=new URL(Ig5(Y));
w.searchParams.delete("format");var V=Y.getAuthHeaderValue();V&&w.searchParams.set("auth",V);w.searchParams.set("authuser",Y.sessionIndex||"0");for(V=0;V<10&&Y.pendingEvents.length;++V){var H=Y.pendingEvents.slice(0,32),f=Y.logRequestBuilder.build(H,Y.numLogsDroppedSinceLastFlush,Y.numRetriesSinceLastSuccessfulFlush,Y.productID,Y.persistedLogRecoveredCount,Y.persistedLogExpiredCount);if(!b(w.toString(),f)){++Y.numRetriesSinceLastSuccessfulFlush;break}Y.numLogsDroppedSinceLastFlush=0;Y.numRetriesSinceLastSuccessfulFlush=
0;Y.persistedLogRecoveredCount=0;Y.persistedLogExpiredCount=0;Y.pendingEvents=Y.pendingEvents.slice(H.length)}Y.JSC$7733_flushTimer.enabled&&Y.JSC$7733_flushTimer.stop()}};
hS.prototype.isRetryable=function(Y){return 500<=Y&&Y<600||Y===401||Y===0};
var D_t=function(){return"https://play.google.com/log?format=json&hasfast=true"};var x_k=function(){this.abortSupported=typeof AbortController!=="undefined"};
x_k.prototype.send=function(Y,b,w){var V=this,H,f,E,U,X,I,k,l,x,Q;return _.c(function(Z){switch(Z.nextAddress){case 1:return f=(H=V.abortSupported?new AbortController:void 0)?setTimeout(function(){H.abort()},Y.timeoutMillis):void 0,_.ct(Z,2,3),E=Object.assign({},{method:Y.requestType,
headers:Object.assign({},Y.requestHeaders)},Y.body&&{body:Y.body},Y.withCredentials&&{credentials:"include"},{signal:Y.timeoutMillis&&H?H.signal:null}),_.D(Z,fetch(Y.url,E),5);case 5:U=Z.yieldResult;if(U.status!==200){(X=w)==null||X(U.status);Z.jumpTo(3);break}if((I=b)==null){Z.jumpTo(7);break}return _.D(Z,U.text(),8);case 8:I(Z.yieldResult);case 7:case 3:_.Ux(Z);clearTimeout(f);_.Dl(Z,0);break;case 2:k=_.mS(Z);switch((l=k)==null?void 0:l.name){case "AbortError":(x=w)==null||x(408);break;default:(Q=
w)==null||Q(400)}Z.jumpTo(3)}})};
x_k.prototype.getTransmissionType=function(){return 4};_.mt=function(Y,b){b=b===void 0?"0":b;_.BE.call(this);this.logSource=Y;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7751_clearExperimentIds=this.productID=null;this.JSC$7751_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.P(_.mt,_.BE);var N2G=function(Y,b){Y.buildLabel=b;return Y},fsM=function(Y,b){Y.network=b;
return Y},clv=function(Y,b){Y.JSC$7751_clearExperimentIds=b},gwL=function(Y){Y.JSC$7751_sendBeaconApiEnabled=!0;
return Y};
_.mt.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.mt.prototype.build=function(){this.network||(this.network=new x_k);var Y=new hS({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.ArK,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.os(this,Y);if(this.buildLabel){var b=this.buildLabel,w=
k5(Y.logRequestBuilder);_.hP(w,7,b)}Y.JSC$7733_compressor=new GtQ;this.componentId&&(Y.componentId=this.componentId);this.productID&&(Y.productID=this.productID);this.pageId&&(Y.pageId=this.pageId);this.JSC$7751_clearExperimentIds&&((w=this.JSC$7751_clearExperimentIds)?(Y.experimentIds||(Y.experimentIds=new Tt_),b=Y.experimentIds,w=w.serialize(),_.hP(b,4,w)):Y.experimentIds&&_.UK(Y.experimentIds,4));this.JSC$7751_sendBeaconApiEnabled&&(Y.JSC$7733_sendBeaconApiEnabled=Y.isSendBeaconSupported);cc9(Y.logRequestBuilder);
this.bufferSize&&(Y.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(Y);return Y};var DGG=function(Y,b,w,V,H,f,E){Y=Y===void 0?-1:Y;b=b===void 0?"":b;w=w===void 0?"":w;V=V===void 0?!1:V;H=H===void 0?"":H;_.BE.call(this);this.logSource=Y;this.componentId=b;f?b=f:(Y=new _.mt(Y,"0"),Y.componentId=b,_.os(this,Y),w!==""&&(Y.destinationUrl=w),V&&(Y.serviceWorkerScopeEnabled=!0),H&&N2G(Y,H),E&&fsM(Y,E),b=Y.build());this.JSC$7755_transport=b};
_.P(DGG,_.BE);DGG.prototype.flush=function(Y){Y=Y||[];if(Y.length){for(var b=new rO$,w=[],V=0;V<Y.length;V++){var H=Y[V],f=Kdd(H);w.push(f);H.clear()}O0(b,1,w);this.JSC$7755_transport.dispatch(b);this.JSC$7755_transport.flush()}};var q39=function(Y){this.cellValue=Y};var qk=function(Y,b,w){this.JSC$7760_metricName=Y;this.cellType=b;this.fields=w||[];this.cellMap=new Map},Wd_=function(Y){return Y.fields.map(function(b){return b.fieldType})},zRd=function(Y){return Y.fields.map(function(b){return b.fieldName})};
_.g=qk.prototype;_.g.addCell=function(Y){var b=_.BN.apply(1,arguments),w=this.getCells(b);w?w.push(new q39(Y)):this.JSC$7760_setCell(Y,b)};
_.g.JSC$7760_setCell=function(Y){var b=this.JSC$7760_getKey(_.BN.apply(1,arguments));this.cellMap.set(b,[new q39(Y)])};
_.g.getCells=function(){var Y=this.JSC$7760_getKey(_.BN.apply(0,arguments));return this.cellMap.has(Y)?this.cellMap.get(Y):void 0};
_.g.getCell=function(){var Y=this.getCells(_.BN.apply(0,arguments));return Y&&Y.length?Y[0]:void 0};
_.g.clear=function(){this.cellMap.clear()};
_.g.JSC$7760_getKey=function(){var Y=_.BN.apply(0,arguments);return Y?Y.join(","):"key"};var swQ=function(Y,b){qk.call(this,Y,3,b)};
_.P(swQ,qk);swQ.prototype.JSC$7763_incrementCounterBy=function(Y){var b=_.BN.apply(1,arguments),w=0,V=this.getCell(b);V&&(w=V.cellValue);this.JSC$7760_setCell(w+Y,b)};var QwQ=function(Y,b){qk.call(this,Y,2,b)};
_.P(QwQ,qk);QwQ.prototype.record=function(Y){this.addCell(Y,_.BN.apply(1,arguments))};_.sV=function(Y){this.id=Y};
_.sV.prototype.toString=function(){return this.id};_.Q2=function(Y,b){this.type=Y instanceof _.sV?String(Y):Y;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};
_.Q2.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Q2.prototype.preventDefault=function(){this.defaultPrevented=!0};_.vV=function(Y,b){_.Q2.call(this,Y?Y.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;Y&&this.init(Y,b)};
_.DX(_.vV,_.Q2);
_.vV.prototype.init=function(Y,b){var w=this.type=Y.type,V=Y.changedTouches&&Y.changedTouches.length?Y.changedTouches[0]:null;this.target=Y.target||Y.srcElement;this.currentTarget=b;b=Y.relatedTarget;b||(w=="mouseover"?b=Y.fromElement:w=="mouseout"&&(b=Y.toElement));this.relatedTarget=b;V?(this.clientX=V.clientX!==void 0?V.clientX:V.pageX,this.clientY=V.clientY!==void 0?V.clientY:V.pageY,this.screenX=V.screenX||0,this.screenY=V.screenY||0):(this.offsetX=_.hZ||Y.offsetX!==void 0?Y.offsetX:Y.layerX,
this.offsetY=_.hZ||Y.offsetY!==void 0?Y.offsetY:Y.layerY,this.clientX=Y.clientX!==void 0?Y.clientX:Y.pageX,this.clientY=Y.clientY!==void 0?Y.clientY:Y.pageY,this.screenX=Y.screenX||0,this.screenY=Y.screenY||0);this.button=Y.button;this.keyCode=Y.keyCode||0;this.key=Y.key||"";this.charCode=Y.charCode||(w=="keypress"?Y.keyCode:0);this.ctrlKey=Y.ctrlKey;this.altKey=Y.altKey;this.shiftKey=Y.shiftKey;this.metaKey=Y.metaKey;this.pointerId=Y.pointerId||0;this.pointerType=Y.pointerType;this.state=Y.state;
this.timeStamp=Y.timeStamp;this.event_=Y;Y.defaultPrevented&&_.vV.superClass_.preventDefault.call(this)};
_.vV.prototype.stopPropagation=function(){_.vV.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.vV.prototype.preventDefault=function(){_.vV.superClass_.preventDefault.call(this);var Y=this.event_;Y.preventDefault?Y.preventDefault():Y.returnValue=!1};var vMI="closure_listenable_"+(Math.random()*1E6|0),PV=function(Y){return!(!Y||!Y[vMI])};var PjK=0;var Z3_=function(Y,b,w,V,H){this.listener=Y;this.proxy=null;this.src=b;this.type=w;this.capture=!!V;this.handler=H;this.key=++PjK;this.removed=this.callOnce=!1},BXo=function(Y){Y.removed=!0;
Y.listener=null;Y.proxy=null;Y.src=null;Y.handler=null};Xh.prototype.add=function(Y,b,w,V,H){var f=Y.toString();Y=this.listeners[f];Y||(Y=this.listeners[f]=[],this.typeCount_++);var E=nMt(Y,b,V,H);E>-1?(b=Y[E],w||(b.callOnce=!1)):(b=new Z3_(b,this.src,f,!!V,H),b.callOnce=w,Y.push(b));return b};
Xh.prototype.remove=function(Y,b,w,V){Y=Y.toString();if(!(Y in this.listeners))return!1;var H=this.listeners[Y];b=nMt(H,b,w,V);return b>-1?(BXo(H[b]),_.yv(H,b),H.length==0&&(delete this.listeners[Y],this.typeCount_--),!0):!1};
var MQt=function(Y,b){var w=b.type;if(!(w in Y.listeners))return!1;var V=_.$b(Y.listeners[w],b);V&&(BXo(b),Y.listeners[w].length==0&&(delete Y.listeners[w],Y.typeCount_--));return V};
Xh.prototype.removeAll=function(Y){Y=Y&&Y.toString();var b=0,w;for(w in this.listeners)if(!Y||w==Y){for(var V=this.listeners[w],H=0;H<V.length;H++)++b,BXo(V[H]);delete this.listeners[w];this.typeCount_--}return b};
Xh.prototype.getListener=function(Y,b,w,V){Y=this.listeners[Y.toString()];var H=-1;Y&&(H=nMt(Y,b,w,V));return H>-1?Y[H]:null};
Xh.prototype.hasListener=function(Y,b){var w=Y!==void 0,V=w?Y.toString():"",H=b!==void 0;return _.BL.some(this.listeners,function(f){for(var E=0;E<f.length;++E)if(!(w&&f[E].type!=V||H&&f[E].capture!=b))return!0;return!1})};
var nMt=function(Y,b,w,V){for(var H=0;H<Y.length;++H){var f=Y[H];if(!f.removed&&f.listener==b&&f.capture==!!w&&f.handler==V)return H}return-1};var eYQ,pDr,O38,RYt,d_8,ZR,BP,S35,FvC,Lv8,Zq,agd,tQ_;eYQ="closure_lm_"+(Math.random()*1E6|0);pDr={};O38=0;_.ez=function(Y,b,w,V,H){if(V&&V.once)return ZR(Y,b,w,V,H);if(Array.isArray(b)){for(var f=0;f<b.length;f++)_.ez(Y,b[f],w,V,H);return null}w=tQ_(w);return PV(Y)?Y.listen(b,w,_.bC(V)?!!V.capture:!!V,H):RYt(Y,b,w,!1,V,H)};
RYt=function(Y,b,w,V,H,f){if(!b)throw Error("Aa");var E=_.bC(H)?!!H.capture:!!H,U=Zq(Y);U||(Y[eYQ]=U=new Xh(Y));w=U.add(b,w,V,E,f);if(w.proxy)return w;V=d_8();w.proxy=V;V.src=Y;V.listener=w;if(Y.addEventListener)_.rFa||(H=E),H===void 0&&(H=!1),Y.addEventListener(b.toString(),V,H);else if(Y.attachEvent)Y.attachEvent(FvC(b.toString()),V);else if(Y.addListener&&Y.removeListener)Y.addListener(V);else throw Error("Ba");O38++;return w};
d_8=function(){var Y=Lv8,b=function(w){return Y.call(b.src,b.listener,w)};
return b};
ZR=function(Y,b,w,V,H){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ZR(Y,b[f],w,V,H);return null}w=tQ_(w);return PV(Y)?Y.listenOnce(b,w,_.bC(V)?!!V.capture:!!V,H):RYt(Y,b,w,!0,V,H)};
_.BV=function(Y,b,w,V,H){if(Array.isArray(b))for(var f=0;f<b.length;f++)_.BV(Y,b[f],w,V,H);else V=_.bC(V)?!!V.capture:!!V,w=tQ_(w),PV(Y)?Y.unlisten(b,w,V,H):Y&&(Y=Zq(Y))&&(b=Y.getListener(b,w,V,H))&&BP(b)};
BP=function(Y){if(typeof Y==="number"||!Y||Y.removed)return!1;var b=Y.src;if(PV(b))return MQt(b.eventTargetListeners_,Y);var w=Y.type,V=Y.proxy;b.removeEventListener?b.removeEventListener(w,V,Y.capture):b.detachEvent?b.detachEvent(FvC(w),V):b.addListener&&b.removeListener&&b.removeListener(V);O38--;(w=Zq(b))?(MQt(w,Y),w.typeCount_==0&&(w.src=null,b[eYQ]=null)):BXo(Y);return!0};
S35=function(Y,b,w,V,H){w=tQ_(w);V=!!V;return PV(Y)?Y.getListener(b,w,V,H):Y?(Y=Zq(Y))?Y.getListener(b,w,V,H):null:null};
FvC=function(Y){return Y in pDr?pDr[Y]:pDr[Y]="on"+Y};
Lv8=function(Y,b){if(Y.removed)Y=!0;else{b=new _.vV(b,this);var w=Y.listener,V=Y.handler||Y.src;Y.callOnce&&BP(Y);Y=w.call(V,b)}return Y};
Zq=function(Y){Y=Y[eYQ];return Y instanceof Xh?Y:null};
agd="__closure_events_fn_"+(Math.random()*1E9>>>0);tQ_=function(Y){if(typeof Y==="function")return Y;Y[agd]||(Y[agd]=function(b){return Y.handleEvent(b)});
return Y[agd]};_.n1=function(){_.BE.call(this);this.eventTargetListeners_=new Xh(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.DX(_.n1,_.BE);_.n1.prototype[vMI]=!0;_.g=_.n1.prototype;_.g.setParentEventTarget=function(Y){this.parentEventTarget_=Y};
_.g.addEventListener=function(Y,b,w,V){_.ez(this,Y,b,w,V)};
_.g.removeEventListener=function(Y,b,w,V){_.BV(this,Y,b,w,V)};
_.g.dispatchEvent=function(Y){var b,w=this.parentEventTarget_;if(w)for(b=[];w;w=w.parentEventTarget_)b.push(w);w=this.actualEventTarget_;var V=Y.type||Y;if(typeof Y==="string")Y=new _.Q2(Y,w);else if(Y instanceof _.Q2)Y.target=Y.target||w;else{var H=Y;Y=new _.Q2(V,w);_.BL.extend(Y,H)}H=!0;var f;if(b)for(f=b.length-1;!Y.propagationStopped_&&f>=0;f--){var E=Y.currentTarget=b[f];H=rcd(E,V,!0,Y)&&H}Y.propagationStopped_||(E=Y.currentTarget=w,H=rcd(E,V,!0,Y)&&H,Y.propagationStopped_||(H=rcd(E,V,!1,Y)&&
H));if(b)for(f=0;!Y.propagationStopped_&&f<b.length;f++)E=Y.currentTarget=b[f],H=rcd(E,V,!1,Y)&&H;return H};
_.g.disposeInternal=function(){_.n1.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.g.listen=function(Y,b,w,V){return this.eventTargetListeners_.add(String(Y),b,!1,w,V)};
_.g.listenOnce=function(Y,b,w,V){return this.eventTargetListeners_.add(String(Y),b,!0,w,V)};
_.g.unlisten=function(Y,b,w,V){return this.eventTargetListeners_.remove(String(Y),b,w,V)};
_.g.removeAllListeners=function(Y){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(Y):0};
var rcd=function(Y,b,w,V){b=Y.eventTargetListeners_.listeners[String(b)];if(!b)return!0;b=b.concat();for(var H=!0,f=0;f<b.length;++f){var E=b[f];if(E&&!E.removed&&E.capture==w){var U=E.listener,X=E.handler||E.src;E.callOnce&&MQt(Y.eventTargetListeners_,E);H=U.call(X,V)!==!1&&H}}return H&&!V.defaultPrevented};
_.n1.prototype.getListener=function(Y,b,w,V){return this.eventTargetListeners_.getListener(String(Y),b,w,V)};
_.n1.prototype.hasListener=function(Y,b){return this.eventTargetListeners_.hasListener(Y!==void 0?String(Y):void 0,b)};var Mk=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(Y){return Y&&AsyncContext.Snapshot.wrap(Y)}:function(Y){return Y};var zY_=function(Y,b){this.create_=Y;this.reset_=b;this.occupants_=0;this.JSC$7795_head_=null};
zY_.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var Y=this.JSC$7795_head_;this.JSC$7795_head_=Y.next;Y.next=null}else Y=this.create_();return Y};
zY_.prototype.put=function(Y){this.reset_(Y);this.occupants_<100&&(this.occupants_++,Y.next=this.JSC$7795_head_,this.JSC$7795_head_=Y)};var WvU=function(){this.workTail_=this.workHead_=null};
WvU.prototype.add=function(Y,b){var w=Ayg.get();w.set(Y,b);this.workTail_?this.workTail_.next=w:this.workHead_=w;this.workTail_=w};
WvU.prototype.remove=function(){var Y=null;this.workHead_&&(Y=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),Y.next=null);return Y};
var Ayg=new zY_(function(){return new KvC},function(Y){return Y.reset()}),KvC=function(){this.next=this.scope=this.fn=null};
KvC.prototype.set=function(Y,b){this.fn=Y;this.scope=b;this.next=null};
KvC.prototype.reset=function(){this.next=this.scope=this.fn=null};var i39,COv,iCB,Ac9;COv=!1;iCB=new WvU;_.eO=function(Y,b){i39||Ac9();COv||(i39(),COv=!0);iCB.add(Y,b)};
Ac9=function(){var Y=Promise.resolve(void 0);i39=function(){Y.then(yyI)}};var Cjd=function(Y){Y.prototype.$goog_Thenable=!0},ycd=function(Y){if(!Y)return!1;
try{return!!Y.$goog_Thenable}catch(b){return!1}};var $_8,jwr,GwK,Jcj,uDC,Yu$,Huj,NEU,XN_,czC,pku;_.hh=function(Y,b){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(Y!=_.vY)try{var w=this;Y.call(b,function(V){w.resolve_(2,V)},function(V){w.resolve_(3,V)})}catch(V){this.resolve_(3,V)}};
$_8=function(){this.next=this.context=this.JSC$7806_onRejected=this.JSC$7806_onFulfilled=this.child=null;this.always=!1};
$_8.prototype.reset=function(){this.context=this.JSC$7806_onRejected=this.JSC$7806_onFulfilled=this.child=null;this.always=!1};
jwr=new zY_(function(){return new $_8},function(Y){Y.reset()});
GwK=function(Y,b,w){var V=jwr.get();V.JSC$7806_onFulfilled=Y;V.JSC$7806_onRejected=b;V.context=w;return V};
_.k7=function(Y){if(Y instanceof _.hh)return Y;var b=new _.hh(_.vY);b.resolve_(2,Y);return b};
_.OQ=function(Y){return new _.hh(function(b,w){w(Y)})};
Jcj=function(Y,b,w){TX8(Y,b,w,null)||_.eO(_.v0(b,Y))};
_.p1=function(Y){return new _.hh(function(b,w){var V=Y.length,H=[];if(V)for(var f=function(I,k){V--;H[I]=k;V==0&&b(H)},E=function(I){w(I)},U,X=0;X<Y.length;X++)U=Y[X],Jcj(U,_.v0(f,X),E);
else b(H)})};
uDC=function(Y){return new _.hh(function(b){var w=Y.length,V=[];if(w)for(var H=function(U,X,I){w--;V[U]=X?{fulfilled:!0,value:I}:{fulfilled:!1,reason:I};w==0&&b(V)},f,E=0;E<Y.length;E++)f=Y[E],Jcj(f,_.v0(H,E,!0),_.v0(H,E,!1));
else b(V)})};
Yu$=function(Y){return new _.hh(function(b,w){var V=Y.length,H=[];if(V)for(var f=function(I){b(I)},E=function(I,k){V--;
H[I]=k;V==0&&w(H)},U,X=0;X<Y.length;X++)U=Y[X],Jcj(U,f,_.v0(E,X));
else b(void 0)})};
_.j9=function(){var Y,b,w=new _.hh(function(V,H){Y=V;b=H});
return new bur(w,Y,b)};
_.hh.prototype.then=function(Y,b,w){return wNd(this,Mk(typeof Y==="function"?Y:null),Mk(typeof b==="function"?b:null),w)};
Cjd(_.hh);Huj=function(Y,b,w,V){VrI(Y,GwK(b||_.vY,w||null,V))};
_.OV=function(Y,b){b=Mk(b);b=GwK(b,b);b.always=!0;VrI(Y,b);return Y};
_.hh.prototype.finally=function(Y){var b=this;Y=Mk(Y);return new Promise(function(w,V){Huj(b,function(H){Y();w(H)},function(H){Y();
V(H)})})};
_.hh.prototype.thenCatch=function(Y,b){return wNd(this,null,Mk(Y),b)};
_.hh.prototype.catch=_.hh.prototype.thenCatch;_.hh.prototype.cancel=function(Y){if(this.state_==0){var b=new _.GL(Y);_.eO(function(){gHo(this,b)},this)}};
var gHo=function(Y,b){if(Y.state_==0)if(Y.parent_){var w=Y.parent_;if(w.callbackEntries_){for(var V=0,H=null,f=null,E=w.callbackEntries_;E&&(E.always||(V++,E.child==Y&&(H=E),!(H&&V>1)));E=E.next)H||(f=E);H&&(w.state_==0&&V==1?gHo(w,b):(f?(V=f,V.next==w.callbackEntriesTail_&&(w.callbackEntriesTail_=V),V.next=V.next.next):fDt(w),NEU(w,H,3,b)))}Y.parent_=null}else Y.resolve_(3,b)},VrI=function(Y,b){Y.callbackEntries_||Y.state_!=2&&Y.state_!=3||EH$(Y);
Y.callbackEntriesTail_?Y.callbackEntriesTail_.next=b:Y.callbackEntries_=b;Y.callbackEntriesTail_=b},wNd=function(Y,b,w,V){var H=GwK(null,null,null);
H.child=new _.hh(function(f,E){H.JSC$7806_onFulfilled=b?function(U){try{var X=b.call(V,U);f(X)}catch(I){E(I)}}:f;
H.JSC$7806_onRejected=w?function(U){try{var X=w.call(V,U);X===void 0&&U instanceof _.GL?E(U):f(X)}catch(I){E(I)}}:E});
H.child.parent_=Y;VrI(Y,H);return H.child};
_.hh.prototype.unblockAndFulfill_=function(Y){this.state_=0;this.resolve_(2,Y)};
_.hh.prototype.unblockAndReject_=function(Y){this.state_=0;this.resolve_(3,Y)};
_.hh.prototype.resolve_=function(Y,b){this.state_==0&&(this===b&&(Y=3,b=new TypeError("Ca")),this.state_=1,TX8(b,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=b,this.state_=Y,this.parent_=null,EH$(this),Y!=3||b instanceof _.GL||czC(this,b)))};
var TX8=function(Y,b,w,V){if(Y instanceof _.hh)return Huj(Y,b,w,V),!0;if(ycd(Y))return Y.then(b,w,V),!0;if(_.bC(Y))try{var H=Y.then;if(typeof H==="function")return U1Q(Y,H,b,w,V),!0}catch(f){return w.call(V,f),!0}return!1},U1Q=function(Y,b,w,V,H){var f=!1,E=function(X){f||(f=!0,w.call(H,X))},U=function(X){f||(f=!0,V.call(H,X))};
try{b.call(Y,E,U)}catch(X){U(X)}},EH$=function(Y){Y.executing_||(Y.executing_=!0,_.eO(Y.executeCallbacks_,Y))},fDt=function(Y){var b=null;
Y.callbackEntries_&&(b=Y.callbackEntries_,Y.callbackEntries_=b.next,b.next=null);Y.callbackEntries_||(Y.callbackEntriesTail_=null);return b};
_.hh.prototype.executeCallbacks_=function(){for(var Y;Y=fDt(this);)NEU(this,Y,this.state_,this.result_);this.executing_=!1};
NEU=function(Y,b,w,V){if(w==3&&b.JSC$7806_onRejected&&!b.always)for(;Y&&Y.hadUnhandledRejection_;Y=Y.parent_)Y.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,XN_(b,w,V);else try{b.always?b.JSC$7806_onFulfilled.call(b.context):XN_(b,w,V)}catch(H){pku.call(null,H)}jwr.put(b)};
XN_=function(Y,b,w){b==2?Y.JSC$7806_onFulfilled.call(Y.context,w):Y.JSC$7806_onRejected&&Y.JSC$7806_onRejected.call(Y.context,w)};
czC=function(Y,b){Y.hadUnhandledRejection_=!0;_.eO(function(){Y.hadUnhandledRejection_&&pku.call(null,b)})};
pku=Vv;_.GL=function(Y){_.Yb.call(this,Y)};
_.DX(_.GL,_.Yb);_.GL.prototype.name="cancel";var bur=function(Y,b,w){this.promise=Y;this.resolve=b;this.reject=w};var tS;_.gO=function(Y,b){_.n1.call(this);this.JSC$7818_interval_=Y||1;this.timerObject_=b||_.wB;this.boundTick_=(0,_.nC)(this.tick_,this);this.last_=_.XT()};
_.DX(_.gO,_.n1);_.g=_.gO.prototype;_.g.enabled=!1;_.g.JSC$7820_timer_=null;_.g.setInterval=function(Y){this.JSC$7818_interval_=Y;this.JSC$7820_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7820_timer_&&this.stop()};
_.g.tick_=function(){if(this.enabled){var Y=_.XT()-this.last_;Y>0&&Y<this.JSC$7818_interval_*.8?this.JSC$7820_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7818_interval_-Y):(this.JSC$7820_timer_&&(this.timerObject_.clearTimeout(this.JSC$7820_timer_),this.JSC$7820_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.g.start=function(){this.enabled=!0;this.JSC$7820_timer_||(this.JSC$7820_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7818_interval_),this.last_=_.XT())};
_.g.stop=function(){this.enabled=!1;this.JSC$7820_timer_&&(this.timerObject_.clearTimeout(this.JSC$7820_timer_),this.JSC$7820_timer_=null)};
_.g.disposeInternal=function(){_.gO.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
tS=function(Y,b,w){if(typeof Y==="function")w&&(Y=(0,_.nC)(Y,w));else if(Y&&typeof Y.handleEvent=="function")Y=(0,_.nC)(Y.handleEvent,Y);else throw Error("Da");return Number(b)>2147483647?-1:_.wB.setTimeout(Y,b||0)};
_.D1o=function(Y){var b=null;return(new _.hh(function(w,V){b=tS(function(){w(void 0)},Y);
b==-1&&V(Error("Ea"))})).thenCatch(function(w){_.wB.clearTimeout(b);
throw w;})};var Is=function(Y){_.BE.call(this);this.streamzLogger=Y;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7824_flushTimer=new _.gO(this.flushInterval);this.JSC$7824_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.os(this,this.JSC$7824_flushTimer)};
_.P(Is,_.BE);Is.prototype.sendIsolatedPayload=function(Y){this.shouldSendIsolatedPayload=Y;this.invocationLimit=1};
var m1K=function(Y){Y.JSC$7824_flushTimer.enabled||Y.JSC$7824_flushTimer.start();Y.invocationCount++;Y.invocationCount>=Y.invocationLimit&&Y.snapshotAndFlush()};
Is.prototype.snapshotAndFlush=function(){var Y=this.metricMap.values();Y=[].concat(_.Bt(Y)).filter(function(b){return b.cellMap.size});
Y.length&&this.streamzLogger.flush(Y,this.shouldSendIsolatedPayload);oH9(Y);this.invocationCount=0;this.JSC$7824_flushTimer.enabled&&this.JSC$7824_flushTimer.stop()};
Is.prototype.addNewCounter=function(Y){var b=_.BN.apply(1,arguments);this.metricMap.has(Y)||this.metricMap.set(Y,new swQ(Y,b))};
Is.prototype.addNewEventMetric=function(Y){var b=_.BN.apply(1,arguments);this.metricMap.has(Y)||this.metricMap.set(Y,new QwQ(Y,b))};
var ID$=function(Y,b){return Y.disabledMetrics.has(b)?void 0:Y.metricMap.get(b)};
Is.prototype.JSC$7824_incrementCounter=function(Y){this.JSC$7824_incrementCounterBy(Y,1,_.BN.apply(1,arguments))};
Is.prototype.JSC$7824_incrementCounterBy=function(Y,b){var w=_.BN.apply(2,arguments),V=ID$(this,Y);V&&V instanceof swQ&&(V.JSC$7763_incrementCounterBy(b,w),m1K(this))};
Is.prototype.record=function(Y,b){var w=_.BN.apply(2,arguments),V=ID$(this,Y);V&&V instanceof QwQ&&(V.record(b,w),m1K(this))};
var oH9=function(Y){for(var b=0;b<Y.length;b++)Y[b].clear()};_.R_=function(Y,b,w){w=w===void 0?{}:w;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=Y;this.metadata=w;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(_.R_,Error);_.R_.prototype.toString=function(){var Y="RpcError("+($fe(this.code)||String(this.code))+")";this.message&&(Y+=": "+this.message);return Y};_.kz_=_.wB.JSON.parse;_.dP=_.wB.JSON.stringify;_.eS=_.wB.JSON.parse;_.lDC=function(Y){switch(Y){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var h4r=function(Y){switch(Y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var x1K,qur=function(){};
_.DX(qur,_.jsg);qur.prototype.createInstance=function(){return new XMLHttpRequest};
x1K=new qur;_.F6=function(Y){_.n1.call(this);this.headers=new Map;this.JSC$7833_xmlHttpFactory_=Y||null;this.JSC$7833_active_=!1;this.JSC$7833_xhr_=null;this.JSC$7833_lastUri_="";this.JSC$7833_lastErrorCode_=0;this.JSC$7833_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7833_timeoutId_=null;this.responseType_="";this.JSC$7833_withCredentials_=!1};
_.DX(_.F6,_.n1);var sgt=/^https?$/i,QgQ=["POST","PUT"],vHj=[],g5u=function(Y,b,w,V,H,f,E){var U=new _.F6;vHj.push(U);b&&U.listen("complete",b);U.listenOnce("ready",U.cleanupSend_);f&&(U.timeoutInterval_=Math.max(0,f));E&&(U.JSC$7833_withCredentials_=E);U.send(Y,w,V,H)};
_.F6.prototype.cleanupSend_=function(){this.dispose();_.$b(vHj,this)};
_.F6.prototype.send=function(Y,b,w,V){if(this.JSC$7833_xhr_)throw Error("Fa`"+this.JSC$7833_lastUri_+"`"+Y);b=b?b.toUpperCase():"GET";this.JSC$7833_lastUri_=Y;this.JSC$7833_lastError_="";this.JSC$7833_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7833_active_=!0;this.JSC$7833_xhr_=this.createXhr();this.JSC$7833_xhr_.onreadystatechange=Mk((0,_.nC)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7833_xhr_.open(b,String(Y),!0),this.inOpen_=!1}catch(E){PHr(this,E);return}Y=w||"";w=new Map(this.headers);
if(V)if(Object.getPrototypeOf(V)===Object.prototype)for(var H in V)w.set(H,V[H]);else if(typeof V.keys==="function"&&typeof V.get==="function"){H=_.N(V.keys());for(var f=H.next();!f.done;f=H.next())f=f.value,w.set(f,V.get(f))}else throw Error("Ga`"+String(V));V=Array.from(w.keys()).find(function(E){return"content-type"==E.toLowerCase()});
H=_.wB.FormData&&Y instanceof _.wB.FormData;!_.Ka(QgQ,b)||V||H||w.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=_.N(w);for(V=b.next();!V.done;V=b.next())w=_.N(V.value),V=w.next().value,w=w.next().value,this.JSC$7833_xhr_.setRequestHeader(V,w);this.responseType_&&(this.JSC$7833_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7833_xhr_&&this.JSC$7833_xhr_.withCredentials!==this.JSC$7833_withCredentials_&&(this.JSC$7833_xhr_.withCredentials=this.JSC$7833_withCredentials_);
try{this.JSC$7833_timeoutId_&&(clearTimeout(this.JSC$7833_timeoutId_),this.JSC$7833_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7833_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7833_xhr_.send(Y),this.inSend_=!1}catch(E){PHr(this,E)}};
_.F6.prototype.createXhr=function(){return this.JSC$7833_xmlHttpFactory_?this.JSC$7833_xmlHttpFactory_.createInstance():x1K.createInstance()};
_.F6.prototype.timeout_=function(){typeof GEb!="undefined"&&this.JSC$7833_xhr_&&(this.JSC$7833_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7833_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var PHr=function(Y,b){Y.JSC$7833_active_=!1;Y.JSC$7833_xhr_&&(Y.inAbort_=!0,Y.JSC$7833_xhr_.abort(),Y.inAbort_=!1);Y.JSC$7833_lastError_=b;Y.JSC$7833_lastErrorCode_=5;Zuo(Y);BEj(Y)},Zuo=function(Y){Y.errorDispatched_||(Y.errorDispatched_=!0,Y.dispatchEvent("complete"),Y.dispatchEvent("error"))};
_.F6.prototype.abort=function(Y){this.JSC$7833_xhr_&&this.JSC$7833_active_&&(this.JSC$7833_active_=!1,this.inAbort_=!0,this.JSC$7833_xhr_.abort(),this.inAbort_=!1,this.JSC$7833_lastErrorCode_=Y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),BEj(this))};
_.F6.prototype.disposeInternal=function(){this.JSC$7833_xhr_&&(this.JSC$7833_active_&&(this.JSC$7833_active_=!1,this.inAbort_=!0,this.JSC$7833_xhr_.abort(),this.inAbort_=!1),BEj(this,!0));_.F6.superClass_.disposeInternal.call(this)};
_.F6.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)nHC(this);else this.onReadyStateChangeEntryPoint_()};
_.F6.prototype.onReadyStateChangeEntryPoint_=function(){nHC(this)};
var nHC=function(Y){if(Y.JSC$7833_active_&&typeof GEb!="undefined")if(Y.inSend_&&_.L1(Y)==4)setTimeout(Y.onReadyStateChange_.bind(Y),0);else if(Y.dispatchEvent("readystatechange"),Y.isComplete()){Y.JSC$7833_active_=!1;try{if(Y.isSuccess())Y.dispatchEvent("complete"),Y.dispatchEvent("success");else{Y.JSC$7833_lastErrorCode_=6;try{var b=_.L1(Y)>2?Y.JSC$7833_xhr_.statusText:""}catch(w){b=""}Y.JSC$7833_lastError_=b+" ["+Y.getStatus()+"]";Zuo(Y)}}finally{BEj(Y)}}},BEj=function(Y,b){if(Y.JSC$7833_xhr_){Y.JSC$7833_timeoutId_&&
(clearTimeout(Y.JSC$7833_timeoutId_),Y.JSC$7833_timeoutId_=null);
var w=Y.JSC$7833_xhr_;Y.JSC$7833_xhr_=null;b||Y.dispatchEvent("ready");try{w.onreadystatechange=null}catch(V){}}};
_.F6.prototype.isActive=function(){return!!this.JSC$7833_xhr_};
_.F6.prototype.isComplete=function(){return _.L1(this)==4};
_.F6.prototype.isSuccess=function(){var Y=this.getStatus(),b;if(!(b=h4r(Y))){if(Y=Y===0)Y=a5U(String(this.JSC$7833_lastUri_)),Y=!sgt.test(Y);b=Y}return b};
_.L1=function(Y){return Y.JSC$7833_xhr_?Y.JSC$7833_xhr_.readyState:0};
_.g=_.F6.prototype;_.g.getStatus=function(){try{return _.L1(this)>2?this.JSC$7833_xhr_.status:-1}catch(Y){return-1}};
_.g.getResponseText=function(){try{return this.JSC$7833_xhr_?this.JSC$7833_xhr_.responseText:""}catch(Y){return""}};
_.g.getResponse=function(){try{if(!this.JSC$7833_xhr_)return null;if("response"in this.JSC$7833_xhr_)return this.JSC$7833_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7833_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7833_xhr_)return this.JSC$7833_xhr_.mozResponseArrayBuffer}return null}catch(Y){return null}};
_.g.getAllResponseHeaders=function(){return this.JSC$7833_xhr_&&_.L1(this)>=2?this.JSC$7833_xhr_.getAllResponseHeaders()||"":""};
_.g.getLastError=function(){return typeof this.JSC$7833_lastError_==="string"?this.JSC$7833_lastError_:String(this.JSC$7833_lastError_)};var EwK=function(){};
EwK.prototype.send=function(Y,b,w){b=b===void 0?function(){}:b;
w=w===void 0?function(){}:w;
g5u(Y.url,function(V){V=V.target;V.isSuccess()?b(V.getResponseText()):w(V.getStatus())},Y.requestType,Y.body,Y.requestHeaders,Y.timeoutMillis,Y.withCredentials)};
EwK.prototype.getTransmissionType=function(){return 1};var MrQ=function(Y,b){this.logger=Y;this.event=b;this.startTime=kG()};
MrQ.prototype.done=function(){this.logger.fu(this.event,kG()-this.startTime)};
var SO=function(){UV.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.P(SO,UV);var a_=function(Y,b,w){var V=kG();b=b();Y.fu(w,kG()-V);return b},OQ6=function(){SO.apply(this,arguments)};
_.P(OQ6,SO);_.g=OQ6.prototype;_.g.sVs=function(){};
_.g.dU=function(){};
_.g.fu=function(){};
_.g.logError=function(){};
_.g.sD=function(){};
_.g.c47=function(){};
_.g.wPh=function(){};
_.g.iDR=function(){};
_.g.uMs=function(){};
var e4t=function(Y){SO.call(this);var b=this;this.logger=Y;this.TEST_ONLY={vZO:function(){return b.logger},
getExperimentIds:function(){return b.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void b.logger.dispose()})};
_.P(e4t,SO);_.g=e4t.prototype;_.g.update=function(Y){this.logger.dispose();this.logger=Y};
_.g.dU=function(Y){this.logger.dU(Y)};
_.g.fu=function(Y,b){this.logger.fu(Y,b)};
_.g.logError=function(Y){this.logger.logError(Y)};
_.g.sD=function(){this.logger.sD()};
_.g.c47=function(Y){this.logger.c47(Y)};
_.g.wPh=function(Y){this.logger.wPh(Y)};
_.g.iDR=function(Y){this.logger.iDR(Y)};
_.g.uMs=function(Y){this.logger.uMs(Y)};
_.g.sVs=function(Y){this.logger.sVs(Y)};
var pNo=function(Y,b){_.BE.call(this);var w=this;this.callback=Y;this.f1e=b;this.uCk=-b;this.addOnDisposeCallback(function(){return void clearTimeout(w.timer)})};
_.P(pNo,_.BE);var OuU=function(Y){if(Y.timer===void 0){var b=Math.max(0,Y.uCk+Y.f1e-kG());Y.timer=setTimeout(function(){try{Y.callback()}finally{Y.uCk=kG(),Y.timer=void 0}},b)}},trk=function(Y,b){SO.call(this);
this.metrics=Y;this.wC=b};
_.P(trk,SO);_.g=trk.prototype;_.g.sVs=function(Y){this.metrics.oSZ.record(Y,this.wC)};
_.g.dU=function(Y){this.metrics.eventCount.increment(Y,this.wC)};
_.g.fu=function(Y,b){this.metrics.i9p.record(b,Y,this.wC)};
_.g.logError=function(Y){this.metrics.errorCount.increment(Y,this.wC)};
_.g.c47=function(Y){this.metrics.nJm.increment(Y,this.wC)};
_.g.wPh=function(Y){this.metrics.kZj.increment(Y,this.wC)};
_.g.iDR=function(Y){this.metrics.gJU.increment(Y,this.wC)};
var lO=function(Y,b){b=b===void 0?[]:b;var w={wC:Y.wC||"_",kRR:Y.kRR||[],uQL:Y.uQL|0,destinationUrl:Y.destinationUrl,osY:Y.osY||function(){},
vo:Y.vo||function(f,E){return pha(f,E,w.osY,w.destinationUrl)}},V=w.vo("49",w.kRR.concat(b));
trk.call(this,HQM(V),w.wC);var H=this;this.TEST_ONLY={getExperimentIds:function(){return H.options.kRR.concat(H.qgY).sort(function(f,E){return f-E})}};
this.options=w;this.service=V;this.chL=!Y.vo;this.flushDebouncer=new pNo(function(){return void H.service.snapshotAndFlush()},w.uQL);
this.addOnDisposeCallback(function(){H.flushDebouncer.dispose();H.chL&&H.service.dispose()});
(this.qgY=b.slice()).sort(_.H9)};
_.P(lO,trk);lO.prototype.uMs=function(Y){var b=this;Y=Y.slice();Y.sort(_.H9);_.NQ(Y,this.qgY)||(this.flushDebouncer.dispose(),this.chL&&this.service.dispose(),this.service=this.options.vo("49",this.options.kRR.concat(Y)),this.flushDebouncer=new pNo(function(){return void b.service.snapshotAndFlush()},this.options.uQL),this.metrics=HQM(this.service),this.qgY=Y)};
lO.prototype.sD=function(){OuU(this.flushDebouncer)};var I0L=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(I0L,_.SQ);_.kba=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(_.kba,_.SQ);var Yi=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y,0,Yi.messageId)};
_.P(Yi,_.SQ);var R4Q=_.bH(Yi);Yi.messageId="bfkj";var RdK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(RdK,_.SQ);var d1d=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(d1d,_.SQ);var FmI=_.wE(d1d);_.mD=function(){var Y=this;this.promise=new Promise(function(b,w){Y.resolve=b;Y.reject=w})};_.rP=function(Y){_.BE.call(this);var b=this;this.yN7=Math.floor(Math.random()*200);this.xcj=new d1d;if("challenge"in Y&&R4Q(Y.challenge)){var w=_.Su(Y.challenge,4,void 0,ak);var V=_.Su(Y.challenge,5,void 0,ak);_.Su(Y.challenge,7,void 0,ak)&&(this.xcj=FmI(_.Su(Y.challenge,7,void 0,ak)))}else w=Y.program,V=Y.globalName;this.addOnDisposeCallback(function(){var Z,e,O;return _.c(function(L){if(L.nextAddress==1)return _.D(L,b.yVi,2);Z=L.yieldResult;e=Z.pX3;(O=e)==null||O();_.om(L)})});
this.logger=ta6(Y.tN||{},this.xcj,Y.yH3);_.os(this,this.logger);var H=new _.mD;this.yVi=H.promise;this.logger.dU("t");var f=this.logger.share(),E=new MrQ(f,"t"),U=function(Z,e,O,L){if(!b.logger.isDisposed()){var r="k";e?r="h":O&&(r="u");r!=="k"?L!==0&&(b.logger.dU(r),b.logger.fu(r,Z)):b.yN7<=0?(b.logger.dU(r),b.logger.fu(r,Z),b.yN7=Math.floor(Math.random()*200)):b.yN7--}},X=function(Z,e,O,L){Promise.resolve().then(function(){E.done();
f.sD();f.dispose();H.resolve({dJw:Z,pX3:e,gPp:O,cCe:L})})};
if(!_.wB[V])throw this.logger.logError(25),Error("Ha");if(!_.wB[V].a)throw this.logger.logError(26),Error("Ia");try{var I=_.wB[V].a;V=[];for(var k=[],l=dfb(this.xcj),x=0;x<l.length;x++)V.push(l[x]),k.push(1);var Q=Ftu(this.xcj);for(l=0;l<Q.length;l++)V.push(Q[l]),k.push(2);this.dU3=_.N(I(w,X,!0,Y.clj,U,[V,k],_.Su(this.xcj,5))).next().value;this.uds=H.promise.then(function(){})}catch(Z){throw this.logger.logError(28),Z;
}};
_.P(_.rP,_.BE);_.rP.prototype.snapshot=function(Y){if(this.isDisposed())throw Error("Ja");this.logger.dU("n");var b=this.logger.share();return this.yVi.then(function(w){var V=w.dJw;return new Promise(function(H){var f=new MrQ(b,"n");V(function(E){f.done();b.sVs(E.length);b.sD();b.dispose();H(E)},[Y.sR,
Y.zGs,Y.nrJ,Y.wN2])})})};
_.Lm8=function(Y,b){if(Y.isDisposed())throw Error("Ja");Y.logger.dU("n");var w=a_(Y.logger,function(){return Y.dU3([b.sR,b.zGs,b.nrJ,b.wN2])},"n");
Y.logger.sVs(w.length);Y.logger.sD();return w};
_.rP.prototype.qwi=function(Y){this.yVi.then(function(b){var w;(w=b.gPp)==null||w(Y)})};
_.rP.prototype.ooZ=function(Y,b){return this.yVi.then(function(w){var V;return(V=w.cCe)==null?void 0:V(Y,b,!1)})};
_.rP.prototype.eIi=function(){return this.logger.share()};var SuC=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(SuC,_.SQ);var YPq=_.bH(SuC);var aDK=function(){this.aIM={};this.rO7=null},rzt=function(){aDK.instance||(aDK.instance=new aDK);
return aDK.instance},WmI=function(Y,b){return z4t(Y,_.EK(b,I0L,1,ak),_.EK(b,_.kba,2,ak),_.Su(b,3,void 0,ak))},z4t=function(Y,b,w,V){if(!b&&!w)return Promise.resolve();
if(!V)return SNI(b,w);var H;(H=Y.aIM)[V]||(H[V]=new Promise(function(f,E){SNI(b,w).then(function(){Y.rO7=V;f()},function(U){delete Y.aIM[V];
E(U)})}));
return Y.aIM[V]};var Km5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Km5,_.SQ);var iuj=function(Y,b){return _.bf(Y,1,b)},AzI=function(Y,b){return _.bf(Y,2,b)};var zh=function(Y){_.BE.call(this);var b=this;this.options=Y;this.pyi=new _.mD;this.uds=this.pyi.promise;this.pRi=new _.mD;this.xGO=1;this.qp5=new _.mD;this.zSm=[];this.tbs=Y.tbs||function(){};
this.logger=new e4t(ta6(Y.tN||{}));CH$(this,Y.m0,Y.gOJ,Y.x53,Y.mDZ,Object.assign({},yzj,Y.o6T||{}));this.addOnDisposeCallback(function(){return void $1k(b)})};
_.P(zh,_.BE);zh.prototype.snapshot=function(Y){var b=this;return _.c(function(w){switch(w.nextAddress){case 1:if(b.isDisposed())throw Error("Ja");if(b.uu||b.sy4){w.jumpTo(2);break}return _.D(w,b.pRi.promise,2);case 2:if(!b.uu){w.jumpTo(4);break}return _.D(w,b.uu.snapshot(Y),5);case 5:return w.return(w.yieldResult);case 4:throw b.sy4;}})};
var jg$=function(Y){var b;return _.c(function(w){if(Y.isDisposed())throw Error("Ja");(b=Y.hf)!=null&&(b.endTimeMs=0,b.resolver(1));return _.D(w,Y.qp5.promise,0)})},$1k=function(Y){Y.sy4=Error("La");
Y.pRi.resolve();LtM(Y.pyi.promise);Y.pyi.reject(Error("La"));Y.logger.dispose();Promise.all(Y.zSm).then(function(){var w;return _.c(function(V){(w=Y.uu)==null||w.dispose();Y.uu=void 0;_.om(V)})});
Y.zSm=[];var b;(b=Y.hf)!=null&&(b.endTimeMs=0,b.resolver(1));LtM(Y.qp5.promise);Y.qp5.reject(Error("La"))};
zh.prototype.qwi=function(Y){var b,w;(b=this.uu)==null||(w=b.qwi)==null||w.call(b,Y)};
zh.prototype.ooZ=function(Y,b){var w,V,H;return(H=(w=this.uu)==null?void 0:(V=w.ooZ)==null?void 0:V.call(w,Y,b))!=null?H:Promise.resolve()};
var Gz$=function(Y,b){var w=Y.tbs;Y.tbs=function(){w();b()}},TEd=function(Y,b){Y.isDisposed()||(Y.uu=b,Y.logger.update(b.eIi()),Y.pRi.resolve(),Y.pyi.resolve(void 0),Y.tbs())};
zh.prototype.handleError=function(Y){if(!this.isDisposed()){this.sy4=Y;this.pRi.resolve();var b,w;(w=(b=this.options).hBe)==null||w.call(b,Y)}};
var Jzk=function(Y,b){b&&(Promise.all(Y.zSm).then(function(){return void b.dispose()}),Y.zSm=[])},WV=function(Y,b){Y.xGO=b;
var w,V;(V=(w=Y.options).eFE)==null||V.call(w,b)},uk$=function(Y){Y.isDisposed()||(Y.qp5.resolve(),Y.qp5=new _.mD)},CH$=function(Y,b,w,V,H,f){V=V===void 0?rzt():V;
H=H===void 0?Promise.resolve(void 0):H;var E,U,X,I,k,l,x,Q,Z,e,O,L;_.c(function(r){switch(r.nextAddress){case 1:return _.D(r,0,3);case 3:U=null;if(!E){r.jumpTo(6);break}WV(Y,7);_.ct(r,7);return _.D(r,Q9(E.snapshot({}),f.nEC,function(){return Promise.resolve("E:CTO")}),9);
case 9:U=r.yieldResult;_.$u(r,6);break;case 7:_.mS(r),U="E:UCE";case 6:X=void 0,I=E?f.nQC:f.vQJ,k=new U2(I,f.p4u,f.jue,f.gQC),l=1;case 10:if(!(l<=f.maxAttempts)){r.jumpTo(12);break}if(l===1){r.jumpTo(13);break}WV(Y,0);Y.hf=new YxU(k.getValue(),f.pXu,f.ffw);return _.D(r,Y.hf.promise,14);case 14:x=r.yieldResult,Y.hf=void 0,x===1?(l=1,k.reset()):U_C(k);case 13:_.ct(r,15);Q=void 0;if(w){Q=w;r.jumpTo(17);break}WV(Y,5);Z=V.rO7;return _.D(r,Q9(bh5(b,Z,U),f.pHu,function(){return Promise.reject(Error("Ma"))}),
18);
case 18:Q=r.yieldResult;case 17:return WV(Y,3),_.D(r,Q9(WmI(V,Q),f.i4w,function(){return Promise.reject(Error("Na"))}),19);
case 19:return WV(Y,8),_.D(r,H,20);case 20:return e=new _.rP({challenge:Q,tN:Y.options.tN,clj:Y.options.clj}),_.D(r,Q9(e.uds,f.nk3,function(){return Promise.reject(Error("Oa"))}),21);
case 21:X=e;r.jumpTo(12);break;case 15:O=_.mS(r),Y.handleError(O),uk$(Y);case 11:l++;r.jumpTo(10);break;case 12:if(Y.isDisposed()){r.jumpTo(5);break}X&&(w=void 0,Jzk(Y,E),E=X,TEd(Y,X),uk$(Y));WV(Y,2);Y.hf=new YxU(f.vmu,f.pXu,f.ffw);return _.D(r,Y.hf.promise,22);case 22:Y.hf=void 0;if(Y.isDisposed()){r.jumpTo(5);break}r.jumpTo(3);break;case 5:(L=E)==null||L.dispose(),_.om(r)}})};
zh.prototype.eIi=function(){return this.logger.share()};
var yzj={vmu:432E5,pXu:3E5,ffw:10,nEC:1E4,pHu:3E4,i4w:3E4,nk3:6E4,vQJ:1E3,nQC:6E4,p4u:6E5,jue:.25,gQC:2,maxAttempts:10},YxU=function(Y,b,w){var V=this;this.endTimeMs=Date.now()+Y;this.promise=new Promise(function(f){V.resolver=f});
var H=function(){var f=V.endTimeMs-Date.now();f<=w?V.resolver(0):setTimeout(H,Math.min(f,b))};
H()};var wtj,z7L=(wtj=Math.imul)!=null?wtj:function(Y,b){return Y*b|0},vE=[196,
200,224,18],K1=function(Y,b,w){w=w===void 0?[]:w;this.maxItems=Y;this.h9=b===void 0?0:b;this.y3=w},VCd=function(Y){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!b)return new K1(Y);var w=b.split(",");if(w.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new K1(Y);b=w.slice(1);b.length===1&&b[0]===""&&(b=[]);w=Number(w[0]);return isNaN(w)||w<0||w>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new K1(Y)):new K1(Y,w,b)};
K1.prototype.serialize=function(){return String(this.h9)+","+this.y3.join()};
K1.prototype.insert=function(Y,b){var w=void 0;if(this.y3[this.h9]!==Y){var V=this.y3.indexOf(Y);V!==-1?(this.y3.splice(V,1),V<this.h9&&this.h9--,this.y3.splice(this.h9,0,Y)):(w=this.y3[this.h9],this.y3[this.h9]=Y)}this.h9=(this.h9+1)%this.maxItems;Y=asg("iU5q-!O9@$",this.serialize());w&&Y&&b(w);return Y};
var Hht=function(Y,b){this.logger=b;try{var w=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(V){w=!1}w&&(this.index=VCd(Y))},gF5=function(Y,b,w,V,H){var f=Y.index?a_(Y.logger,function(){return Alg(Y.index,K4e(b),w,V,H)},"W"):"u";
Y.logger.iDR(f)},flr=function(Y,b,w){var V=_.N(Y.index?a_(Y.logger,function(){return CNI(K4e(b),w)},"R"):["u"]),H=V.next().value;
V=V.next().value;Y.logger.wPh(H);return V};var NCo={toString:function(Y){var b=[],w=0;Y-=-2147483648;b[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Y%52);for(Y=Math.floor(Y/52);Y>0;)b[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Y%62),Y=Math.floor(Y/62);return b.join("")}};var U6k=function(Y){Y=EFj(Y);for(var b=2654435769,w=2654435769,V=314159265,H=Y.length,f=H,E=0,U=function(){b-=w;b-=V;b^=V>>>13;w-=V;w-=b;w^=b<<8;V-=b;V-=w;V^=w>>>13;b-=w;b-=V;b^=V>>>12;w-=V;w-=b;w^=b<<16;V-=b;V-=w;V^=w>>>5;b-=w;b-=V;b^=V>>>3;w-=V;w-=b;w^=b<<10;V-=b;V-=w;V^=w>>>15};f>=12;f-=12,E+=12)b+=cpo(Y,E),w+=cpo(Y,E+4),V+=cpo(Y,E+8),U();
V+=H;switch(f){case 11:V+=Y[E+10]<<24;case 10:V+=Y[E+9]<<16;case 9:V+=Y[E+8]<<8;case 8:w+=Y[E+7]<<24;case 7:w+=Y[E+6]<<16;case 6:w+=Y[E+5]<<8;case 5:w+=Y[E+4];case 4:b+=Y[E+3]<<24;case 3:b+=Y[E+2]<<16;case 2:b+=Y[E+1]<<8;case 1:b+=Y[E]}U();return NCo.toString(V)},EFj=function(Y){for(var b=[],w=0;w<Y.length;w++)b.push(Y.charCodeAt(w));
return b},cpo=function(Y,b){return Y[b]+(Y[b+1]<<8)+(Y[b+2]<<16)+(Y[b+3]<<24)};var XtK,iz=function(Y){_.BE.call(this);this.logger=Y;this.ks6=new _.mD;this[XtK]=this.dispose};
_.P(iz,_.BE);var D6C=function(Y,b){var w=setTimeout(function(){Y.ks6.resolve()},b);
Y.addOnDisposeCallback(function(){return void clearTimeout(w)})};
iz.prototype.b8=function(Y,b){var w=this.wd(Y);b==null||b(w);return a_(this.logger,function(){return _.YM(w,2)},this.cts)};
var m6t=function(Y,b,w,V){return a_(Y.logger,function(){return w?Y.b8(b,V):Y.wd(b,V)},Y.d5)};
XtK=Symbol.dispose;var oF9=function(Y,b,w,V){iz.call(this,Y);this.l1l=b;this.xZj=w;this.d5="m";this.cts="x";this.a1w=0;D6C(this,V)};
_.P(oF9,iz);oF9.prototype.wd=function(Y,b){var w=this;this.logger.dU(this.d5);++this.a1w>=this.xZj&&this.ks6.resolve();var V=Y();Y=a_(this.logger,function(){return w.l1l(V)},"C");
if(Y===void 0)throw new EV(17,"YNJ:Undefined");if(!(Y instanceof Uint8Array))throw new EV(18,"ODM:Invalid");b==null||b(Y);return Y};
var Ilr=function(Y,b,w){iz.call(this,Y);this.gse=b;this.d5="f";this.cts="z";D6C(this,w)};
_.P(Ilr,iz);Ilr.prototype.wd=function(){return this.gse};
var k1_=function(Y,b,w){iz.call(this,Y);this.vre=b;this.d5="w";this.cts="z";D6C(this,w)};
_.P(k1_,iz);k1_.prototype.wd=function(){var Y=this;return a_(this.logger,function(){return _.c9(Y.vre)},"d")};
k1_.prototype.b8=function(){return this.vre};
var llU=function(Y,b){iz.call(this,Y);this.error=b;this.d5="e";this.cts="y"};
_.P(llU,iz);var hy_=function(Y,b){var w=(b(Y.error.message)+":"+b(Y.error.stack)).substring(0,2048);b=w.length+1;w=yle(w);var V=new Uint8Array(4+w.length);V.set([42,b&127|128,b>>7,Y.error.code]);V.set(w,4);return V};
llU.prototype.wd=function(){if(this.cUe)return this.cUe;this.cUe=hy_(this,function(Y){return"_"+U6k(Y)});
return hy_(this,function(Y){return Y})};
var x6t=function(Y,b,w){iz.call(this,Y);this.yVj=b;this.clientState=w;this.d5="S";this.cts="q"};
_.P(x6t,iz);x6t.prototype.wd=function(){var Y=Math.floor(Date.now()/1E3),b=[Math.random()*255,Math.random()*255],w=b.concat([this.yVj&255,this.clientState],[Y>>24&255,Y>>16&255,Y>>8&255,Y&255]);Y=new Uint8Array(2+w.length);Y[0]=34;Y[1]=w.length;Y.set(w,2);w=Y.subarray(2);for(var V=b=b.length;V<w.length;++V)w[V]^=w[V%b];this.logger.c47(this.clientState);return Y};var qx$={yZd:3E4,zkE:2E4},AS=function(Y){_.BE.call(this);var b=this;this.lWi=new _.mD;this.nfZ=0;this.eY=void 0;this.state=2;this.nj=Y.nj;this.m0=Y.m0;this.o6T=Object.assign({},qx$,Y.o6T||{});this.logger=Y.nj.eIi();var w;this.onError=(w=Y.onError)!=null?w:function(){};
this.abk=Y.abk||!1;if(smC(Y)){var V=this.nj;this.izk=function(){return jg$(V).catch(function(E){E=b.reportError(new EV(b.pn?20:32,"TRG:Disposed",E));b.eY=E;var U;(U=b.pn)==null||U.dispose();b.pn=void 0;b.lWi.reject(E)})};
Gz$(V,function(){return void Qm8(b)});
V.xGO===2&&Qm8(this)}else this.izk=Y.uMG,Qm8(this);var H=this.logger.share();H.dU("o");var f=new MrQ(H,"o");this.lWi.promise.then(function(){f.done();H.sD();H.dispose()},function(){return void H.dispose()});
this.addOnDisposeCallback(function(){b.pn?(b.pn.dispose(),b.pn=void 0):b.eY?b.logger.sD():(b.eY=b.reportError(new EV(32,"TNP:Disposed")),b.logger.sD(),b.lWi.reject(b.eY))});
_.os(this,this.logger)};
_.P(AS,_.BE);AS.prototype.q17=function(){return this.lWi.promise};
var vF8=function(Y,b){if(!(b instanceof EV))if(b instanceof _.R_){var w=Error(b.toString());w.stack=b.stack;b=new EV(11,"EBH:Error",w)}else b=new EV(12,"BSO:Unknown",b);return Y.reportError(b)},Qm8=function(Y){var b,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e;
return _.c(function(O){switch(O.nextAddress){case 1:b=void 0;Y.nfZ++;w=new _.mD;Y.nj instanceof zh&&Y.nj.zSm.push(w.promise);if(!Y.abk){O.jumpTo(2);break}V=new _.mD;setTimeout(function(){return void V.resolve()});
return _.D(O,V.promise,2);case 2:return H=Y.logger.share(),_.ct(O,4,5),Y.state=5,f={},E=[],_.D(O,Q9(Y.nj.snapshot({sR:f,nrJ:E}),Y.o6T.zkE,function(){return Promise.reject(new EV(15,"MDA:Timeout"))}),7);
case 7:U=O.yieldResult;if(Y.isDisposed())throw new EV(Y.pn?20:32,"MDA:Disposed");X=E[0];Y.state=6;return _.D(O,Q9(P7t(Y.m0,U),Y.o6T.yZd,function(){return Promise.reject(new EV(10,"BWB:Timeout"))}),8);
case 8:I=O.yieldResult;if(Y.isDisposed())throw new EV(Y.pn?20:32,"BWB:Disposed");Y.state=7;b=a_(H,function(){var r=Zho(Y,I,w,X);r.ks6.promise.then(function(){return void Y.izk()});
return r},"i");
case 5:_.Ux(O);H.dispose();_.Dl(O,6);break;case 4:k=_.mS(O);(l=b)==null||l.dispose();if(!Y.eY){x=vF8(Y,k);w.resolve();var L;if(L=Y.nj instanceof zh&&Y.nfZ<2)a:if(k instanceof EV)L=k.code!==32&&k.code!==20&&k.code!==10;else{if(k instanceof _.R_)switch(k.code){case 2:case 13:case 14:case 4:break;default:L=!1;break a}L=!0}if(L)return Q=(1+Math.random()*.25)*(Y.pn?6E4:1E3),Z=setTimeout(function(){return void Y.izk()},Q),Y.addOnDisposeCallback(function(){return void clearTimeout(Z)}),O.return();
Y.eY=x}H.logError(Y.pn?13:14);Y.lWi.reject(Y.eY);return O.return();case 6:Y.state=8,Y.nfZ=0,(e=Y.pn)==null||e.dispose(),Y.pn=b,Y.lWi.resolve(),_.om(O)}})},Zho=function(Y,b,w,V){var H=olM(b,2)*1E3;
if(H<=0)throw new EV(31,"TTM:Invalid");if(_.Su(b,4))return new k1_(Y.logger,_.Su(b,4),H);if(!olM(b,3))return new Ilr(Y.logger,TRa(_.MX(b,1)),H);if(!V)throw new EV(4,"PMD:Undefined");V=V(TRa(_.MX(b,1)));if(!(V instanceof Function))throw new EV(16,"APF:Failed");Y.x2C=Math.floor((Date.now()+H)/1E3);Y=new oF9(Y.logger,V,olM(b,3),H);Y.addOnDisposeCallback(function(){return void w.resolve()});
return Y};
AS.prototype.wd=function(Y){return BC5(this,Object.assign({},Y),!1)};
AS.prototype.b8=function(Y){return BC5(this,Object.assign({},Y),!0)};
AS.prototype.lTO=function(Y){if(Y>150)return!1;try{return this.cache=new Hht(Y,this.logger),!0}catch(b){return this.reportError(new EV(22,"GBJ:init",b)),!1}};
AS.prototype.reportError=function(Y){this.logger.logError(Y.code);this.onError(Y);return Y};
var nFI=function(Y,b){b=b instanceof EV?b:new EV(5,"TVD:error",b);return Y.reportError(b)},BC5=function(Y,b,w){try{if(Y.isDisposed())throw new EV(21,"BNT:disposed");
if(!Y.pn&&Y.eY)throw Y.eY;var V,H;return(H=(V=MCj(Y,b,w))!=null?V:eyr(Y,b,w))!=null?H:ptd(Y,b,w)}catch(f){if(!b.vi4)throw nFI(Y,f);return OhU(Y,w,f)}},MCj=function(Y,b,w){var V;
return(V=Y.pn)==null?void 0:m6t(V,function(){return tC$(Y,b)},w,function(H){var f;
if(Y.pn instanceof oF9&&((f=b.m7)==null?0:f.bCh))try{var E;(E=Y.cache)==null||gF5(E,tC$(Y,b),H,b.m7.zQR,Y.x2C-120)}catch(U){Y.reportError(new EV(24,"ELX:write",U))}})},eyr=function(Y,b,w){var V;
if((V=b.m7)!=null&&V.vQR)try{var H,f=(H=Y.cache)==null?void 0:flr(H,tC$(Y,b),b.m7.zQR);return f?w?a_(Y.logger,function(){return _.YM(f,2)},"a"):f:void 0}catch(E){Y.reportError(new EV(23,"RXO:read",E))}},ptd=function(Y,b,w){var V={stack:[],
error:void 0,hasError:!1};try{if(!b.niH)throw new EV(29,"SDF:notready");return m6t(w86(V,new x6t(Y.logger,0,Y.state)),function(){return tC$(Y,b)},w)}catch(H){V.error=H,V.hasError=!0}finally{VWI(V)}},OhU=function(Y,b,w){var V={stack:[],
error:void 0,hasError:!1};try{var H=nFI(Y,w);return m6t(w86(V,new llU(Y.logger,H)),function(){return[]},b)}catch(f){V.error=f,V.hasError=!0}finally{VWI(V)}},tC$=function(Y,b){return b.f3T?b.f3T:b.sR?a_(Y.logger,function(){return b.f3T=yle(b.sR)},"c"):[]},smC=function(Y){return Ko(function(b){if(!NG(b))return!1;
for(var w=_.N(Object.entries(Y)),V=w.next();!V.done;V=w.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;if(!(V in b)){if(H.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!H(b[V]))return!1}return!0})}({nj:function(Y){return Ko(function(b){return b instanceof Y})}(zh)},"");var Ry_=function(){var Y=_.cH();this.JSC$7951_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",gl("cookie_enabled"),gl("cookie_3p_enabled"),_.Nf("browser"))};
Ry_.prototype.increment=function(Y,b,w){this.JSC$7951_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Y,b,w)};
var oII=function(){var Y=_.cH();this.JSC$7975_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",fC("tick"),gl("from_st_cookie"))};
oII.prototype.increment=function(Y,b){this.JSC$7975_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",Y,b)};
var d6U=function(){var Y=_.cH();this.JSC$7981_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Nf("status"))};
d6U.prototype.increment=function(Y){this.JSC$7981_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",Y)};
var FSd=function(){var Y=_.cH();this.JSC$7984_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Nf("stage"),gl("is_using_ytd_player"),gl("has_expandable_tiles"))};
FSd.prototype.increment=function(Y,b,w){this.JSC$7984_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",Y,b,w)};
var LS5=function(){var Y=_.cH();this.JSC$7987_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/response_signature",_.Nf("check_status"))};
LS5.prototype.increment=function(Y){this.JSC$7987_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/response_signature",Y)};
var SxQ=function(){var Y=_.cH();this.JSC$7990_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Nf("sig"),fC("de"))};
SxQ.prototype.increment=function(Y,b){this.JSC$7990_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/e_sig_log",Y,b)};
var alC=function(){var Y=_.cH();this.JSC$7993_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Nf("sig"),fC("de"))};
alC.prototype.increment=function(Y,b){this.JSC$7993_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/e_sig_en",Y,b)};
_.rpo=function(){var Y=_.cH();this.JSC$7996_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Nf("action"))};
_.rpo.prototype.increment=function(Y){this.JSC$7996_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/enforcement_intent",Y)};var C1=window;var zy5=(new Date).getTime();var WSk=function(Y){this.servicePromise_=Y;Y.then((0,_.nC)(function(){},this),function(){},this)},KS5=function(Y,b,w){Y.servicePromise_.then(function(V){var H=V[b];
if(!H)throw Error("Pa`"+b);return H.apply(V,w)})},C78=function(Y,b,w){for(var V=Array(arguments.length-2),H=2;H<arguments.length;H++)V[H-2]=arguments[H];
H=ihk(Y,b).then(function(f){return f.apply(null,V)},function(f){f=Error("Qa`"+b+"`"+Y,{cause:f});
delete Apr[b];return _.OQ(f)});
return new WSk(H)},Apr={},ihk=function(Y,b){var w=Apr[b];
if(w)return w;w=(w=_.Aq(b))?_.k7(w):(new _.hh(function(V,H){var f=(new Mh(document)).createElement("SCRIPT");f.async=!0;_.Ku(f,_.Uu(Aeo(Y)));f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||V()};
f.onerror=function(E){H(Error("Ra`"+b+"`"+Y,{cause:E}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var V=_.Aq(b);
if(!V)throw Error("Sa`"+b+"`"+Y);return V});
return Apr[b]=w};var ypj={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},jm$=function(){var Y=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=$Gt(function(){return _.c(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):_.D(b,$6$(Y),2);Y.rsaForList.length>
0&&document.addEventListener("click",Y.requestAccessForHelpPanel);_.om(b)})});
this.requestAccessForHelpPanel=function(){if(!(Y.rsaForPromises.length>0)){for(var b=_.N(Y.rsaForList),w=b.next();!w.done;w=b.next()){w=w.value;try{Y.rsaForPromises.push(document.requestStorageAccessFor(w))}catch(V){}}Promise.all(Y.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){Y.reset()})}}};
jm$.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var $6$=function(Y){var b,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:b=_.N(Object.values(ypj)),w=b.next();case 2:if(w.done){f.jumpTo(0);break}V=w.value;_.ct(f,5);return _.D(f,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:V}),7);case 7:H=f.yieldResult;H.state!=="granted"&&Y.rsaForList.push(V);_.$u(f,3);break;case 5:_.mS(f);f.jumpTo(0);break;case 3:w=b.next(),f.jumpTo(2)}})};(new jm$).initialize();var G1I=function(Y){this.JSC$8010_loader_=Y};
G1I.prototype.startHelp=function(Y){KS5(this.JSC$8010_loader_,"startHelp",arguments)};
G1I.prototype.JSC$8012_loadChatSupport=function(Y){KS5(this.JSC$8010_loader_,"loadChatSupport",arguments)};
var JpK=function(Y,b){b=b||{};Y=C78(TCU,"help.service.Lazy.create",Y,{apiKey:b.apiKey||b.apiKey,asxUiUri:b.asxUiUri||b.asxUiUri,environment:b.environment||b.environment,flow:b.flow||b.flow,frdProductData:b.frdProductData||b.frdProductData,frdProductDataSerializedJspb:b.frdProductDataSerializedJspb||b.frdProductDataSerializedJspb,helpCenterPath:b.helpCenterPath||b.helpCenterPath,locale:b.locale||b.locale||"en-US".replace(/-/g,"_"),nonce:b.nonce||b.nonce,productData:b.productData||b.productData,receiverUri:b.receiverUri||
b.receiverUri,renderApiUri:b.renderApiUri||b.renderApiUri,theme:b.theme||b.theme,window:b.window||b.window});return new G1I(Y)},TCU=new rh(sRL,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var u3C=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(u3C,_.SQ);var YyQ=_.wE(u3C);_.bl9=new function(Y,b,w,V){this.configType=Y;this.flagName=w;this.defaultValue=V;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 Vq8=function(){this.retriever=_.fH().resolve(wLK)};Zw(Node);Zw(Element);var Hlk=Zw(HTMLElement);Zw(SVGElement);var gQt,fKQ,jO,NFK;gQt=function(Y){return typeof Y.className=="string"?Y.className:Y.getAttribute&&Y.getAttribute("class")||""};
fKQ=function(Y){return Y.classList?Y.classList:gQt(Y).match(/\S+/g)||[]};
_.y2=function(Y,b){typeof Y.className=="string"?Y.className=b:Y.setAttribute&&Y.setAttribute("class",b)};
_.$5=function(Y,b){return Y.classList?Y.classList.contains(b):_.Ka(fKQ(Y),b)};
_.bA=function(Y,b){if(Y.classList)Y.classList.add(b);else if(!_.$5(Y,b)){var w=gQt(Y);_.y2(Y,w+(w.length>0?" "+b:b))}};
jO=function(Y,b){if(Y.classList)Array.prototype.forEach.call(b,function(H){_.bA(Y,H)});
else{var w={};Array.prototype.forEach.call(fKQ(Y),function(H){w[H]=!0});
Array.prototype.forEach.call(b,function(H){w[H]=!0});
b="";for(var V in w)b+=b.length>0?" "+V:V;_.y2(Y,b)}};
_.u8=function(Y,b){Y.classList?Y.classList.remove(b):_.$5(Y,b)&&_.y2(Y,Array.prototype.filter.call(fKQ(Y),function(w){return w!=b}).join(" "))};
NFK=function(Y,b){Y.classList?Array.prototype.forEach.call(b,function(w){_.u8(Y,w)}):_.y2(Y,Array.prototype.filter.call(fKQ(Y),function(w){return!_.Ka(b,w)}).join(" "))};var EQ8=function(Y){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=Y.document},XLI=function(Y,b){cPj(Y);
var w=document.createElement("div"),V;(V=b.parentNode)==null||V.insertBefore(w,b);w.tabIndex=0;w.id="fc-focus-trap-pre-div";w=document.createElement("div");var H;(H=b.parentNode)==null||H.insertBefore(w,b.nextSibling);w.tabIndex=0;w.id="fc-focus-trap-post-div";var f=UDd(Y,b),E=UDd(Y,b,!0);f&&E&&(Y.focusChangeHandler=function(){var U=Y.document.activeElement;if(U)if(_.Ay(b,U))Y.previouslyFocusedElement=U;else if(U===Y.document.activeElement)switch(Y.previouslyFocusedElement){case f:E.focus();Y.previouslyFocusedElement=
E;break;default:f.focus(),Y.previouslyFocusedElement=f}},Y.document.addEventListener("focus",Y.focusChangeHandler,!0),Y.document.addEventListener("focusin",Y.focusChangeHandler))},cPj=function(Y){Y.focusChangeHandler&&(document.removeEventListener("focus",Y.focusChangeHandler,!0),document.removeEventListener("focusin",Y.focusChangeHandler),Y.focusChangeHandler=null);
var b;(b=document.getElementById("fc-focus-trap-pre-div"))==null||b.remove();var w;(w=document.getElementById("fc-focus-trap-post-div"))==null||w.remove()},DD9=function(Y,b,w,V,H){w=w===void 0?!0:w;
var f;H=(f=H===void 0?null:H)!=null?f:UDd(Y,b,V===void 0?!1:V);H!==null&&(H.focus(),w&&XLI(Y,b))};
EQ8.prototype.disableButton=function(Y,b){b=b===void 0?null:b;Y.disabled=!0;b&&_.bA(Y,b)};
var UDd=function(Y,b,w){w=w===void 0?!1:w;if(rLM(b)&&!w)return b;var V=w?[].slice.call(b.children,0).reverse():b.children;V=_.N(V);for(var H=V.next();!H.done;H=V.next())if(H=H.value,Hlk(H)&&(H=UDd(Y,H,w)))return H;return rLM(b)&&w?b:null};var mD$=function(Y){this.originalBodyOverflow="";this.JSC$8036_domHelper=la(Y)};_.DX(_.Mf,_.BE);_.g=_.Mf.prototype;_.g.JSC$8039_id_=0;_.g.disposeInternal=function(){_.Mf.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8037_listener_;delete this.handler_};
_.g.start=function(Y){this.stop();this.JSC$8039_id_=tS(this.callback_,Y!==void 0?Y:this.JSC$8037_interval_)};
_.g.stop=function(){this.isActive()&&_.wB.clearTimeout(this.JSC$8039_id_);this.JSC$8039_id_=0};
_.g.fire=function(){this.stop();this.JSC$8039_doAction_()};
_.g.isActive=function(){return this.JSC$8039_id_!=0};
_.g.JSC$8039_doAction_=function(){this.JSC$8039_id_=0;this.JSC$8037_listener_&&this.JSC$8037_listener_.call(this.handler_)};_.fM=function(Y){_.BE.call(this);this.handler_=Y;this.JSC$8040_keys_={}};
_.DX(_.fM,_.BE);var oQd=[];_.fM.prototype.listen=function(Y,b,w,V){Array.isArray(b)||(b&&(oQd[0]=b.toString()),b=oQd);for(var H=0;H<b.length;H++){var f=_.ez(Y,b[H],w||this.handleEvent,V||!1,this.handler_||this);if(!f)break;this.JSC$8040_keys_[f.key]=f}return this};
_.fM.prototype.listenOnce=function(Y,b,w,V){return IKd(this,Y,b,w,V)};
var IKd=function(Y,b,w,V,H,f){if(Array.isArray(w))for(var E=0;E<w.length;E++)IKd(Y,b,w[E],V,H,f);else{b=ZR(b,w,V||Y.handleEvent,H,f||Y.handler_||Y);if(!b)return Y;Y.JSC$8040_keys_[b.key]=b}return Y};
_.fM.prototype.unlisten=function(Y,b,w,V,H){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.unlisten(Y,b[f],w,V,H);else if(Y=S35(Y,b,w||this.handleEvent,_.bC(V)?!!V.capture:!!V,H||this.handler_||this))BP(Y),delete this.JSC$8040_keys_[Y.key];return this};
_.fM.prototype.removeAll=function(){_.BL.forEach(this.JSC$8040_keys_,function(Y,b){this.JSC$8040_keys_.hasOwnProperty(b)&&BP(Y)},this);
this.JSC$8040_keys_={}};
_.fM.prototype.disposeInternal=function(){_.fM.superClass_.disposeInternal.call(this);this.removeAll()};
_.fM.prototype.handleEvent=function(){throw Error("Ta");};var Gh=function(){_.BE.call(this);this.services_={}};
_.DX(Gh,_.BE);_.g=Gh.prototype;_.g.logger=null;_.g.connect=function(Y){Y&&Y()};
_.g.isConnected=function(){return!0};
_.g.registerService=function(Y,b,w){this.services_[Y]={callback:b,objectPayload:!!w}};
_.g.getService=function(Y,b){var w=this.services_[Y];return w?w:this.defaultService_?{callback:_.v0(this.defaultService_,Y),objectPayload:_.bC(b)}:null};
var k2t=function(Y,b){if(b&&typeof Y==="string")try{return JSON.parse(Y)}catch(w){return null}else if(!b&&typeof Y!=="string")return(0,_.dP)(Y);return Y};
Gh.prototype.disposeInternal=function(){Gh.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 Th=function(Y,b){this.sequence_=[];this.onCancelFunction_=Y;this.defaultScope_=b||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};
Th.prototype.cancel=function(Y){if(this.fired_)this.result_ instanceof Th&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;Y?b.cancel(Y):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new JS(this))}};
Th.prototype.continue_=function(Y,b){this.blocked_=!1;lKU(this,Y,b)};
var lKU=function(Y,b,w){Y.fired_=!0;Y.result_=w;Y.hadError_=!b;hHI(Y)},qyr=function(Y){if(Y.fired_){if(!Y.silentlyCanceled_)throw new xD9(Y);
Y.silentlyCanceled_=!1}};
Th.prototype.callback=function(Y){qyr(this);lKU(this,!0,Y)};
Th.prototype.errback=function(Y){qyr(this);lKU(this,!1,Y)};
var szI=function(Y,b,w){uz(Y,b,null,w)};
Th.prototype.finally=function(Y){var b=this;return new Promise(function(w,V){uz(b,function(H){Y();w(H)},function(H){Y();
V(H)})})};
var uz=function(Y,b,w,V){var H=Y.fired_;H||(b===w?b=w=Mk(b):(b=Mk(b),w=Mk(w)));Y.sequence_.push([b,w,V]);H&&hHI(Y)};
Th.prototype.then=function(Y,b,w){var V,H,f=new _.hh(function(E,U){H=E;V=U});
uz(this,H,function(E){E instanceof JS?f.cancel():V(E);return Qz5},this);
return f.then(Y,b,w)};
Cjd(Th);var vQk=function(Y,b){b instanceof Th?szI(Y,(0,_.nC)(b.branch,b)):szI(Y,function(){return b})};
Th.prototype.branch=function(Y){var b=new Th;uz(this,b.callback,b.errback,b);Y&&(b.parent_=this,this.branches_++);return b};
Th.prototype.isError=function(Y){return Y instanceof Error};
var PaC=function(Y){return TD(Y.sequence_,function(b){return typeof b[1]==="function"})},Qz5={},hHI=function(Y){if(Y.unhandledErrorId_&&Y.fired_&&PaC(Y)){var b=Y.unhandledErrorId_,w=Zl_[b];
w&&(_.wB.clearTimeout(w.JSC$8057_id_),delete Zl_[b]);Y.unhandledErrorId_=0}Y.parent_&&(Y.parent_.branches_--,delete Y.parent_);b=Y.result_;for(var V=w=!1;Y.sequence_.length&&!Y.blocked_;){var H=Y.sequence_.shift(),f=H[0],E=H[1];H=H[2];if(f=Y.hadError_?E:f)try{var U=f.call(H||Y.defaultScope_,b);U===Qz5&&(U=void 0);U!==void 0&&(Y.hadError_=Y.hadError_&&(U==b||Y.isError(U)),Y.result_=b=U);if(ycd(b)||typeof _.wB.Promise==="function"&&b instanceof _.wB.Promise)V=!0,Y.blocked_=!0}catch(X){b=X,Y.hadError_=
!0,PaC(Y)||(w=!0)}}Y.result_=b;V&&(U=(0,_.nC)(Y.continue_,Y,!0),V=(0,_.nC)(Y.continue_,Y,!1),b instanceof Th?(uz(b,U,V),b.blocking_=!0):b.then(U,V));w&&(b=new BFo(b),Zl_[b.JSC$8057_id_]=b,Y.unhandledErrorId_=b.JSC$8057_id_)},xD9=function(){_.Yb.call(this)};
_.DX(xD9,_.Yb);xD9.prototype.message="Deferred has already fired";xD9.prototype.name="AlreadyCalledError";var JS=function(){_.Yb.call(this)};
_.DX(JS,_.Yb);JS.prototype.message="Deferred was canceled";JS.prototype.name="CanceledError";var BFo=function(Y){this.JSC$8057_id_=_.wB.setTimeout((0,_.nC)(this.throwError,this),0);this.JSC$8057_error_=Y};
BFo.prototype.throwError=function(){delete Zl_[this.JSC$8057_id_];throw this.JSC$8057_error_;};
var Zl_={};var nQt={1:"NativeMessagingTransport"},Mq8=["pu","lru","pru","lpu","ppu"],pLr=function(){for(var Y=10,b=eH$,w=b.length,V="";Y-- >0;)V+=b.charAt(Math.floor(Math.random()*w));return V},eH$="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Yp=function(Y){_.BE.call(this);this.JSC$8060_domHelper_=Y||la()};
_.DX(Yp,_.BE);Yp.prototype.transportType=0;Yp.prototype.getWindow=function(){return this.JSC$8060_domHelper_.getWindow()};
Yp.prototype.getName=function(){return nQt[String(this.transportType)]||""};var bY=function(Y,b,w,V,H){Yp.call(this,w);this.JSC$8063_channel_=Y;this.protocolVersion_=H||2;this.peerHostname_=b||"*";this.JSC$8063_eventHandler_=new _.fM(this);this.maybeAttemptToConnectTimer_=new _.gO(100,this.getWindow());this.oneSidedHandshake_=!!V;this.setupAckReceived_=new Th;this.setupAckSent_=new Th;this.JSC$8063_connected_=new Th;this.endpointId_=pLr();this.peerEndpointId_=null;this.oneSidedHandshake_?Ol8(this.JSC$8063_channel_)==1?vQk(this.JSC$8063_connected_,this.setupAckReceived_):
vQk(this.JSC$8063_connected_,this.setupAckSent_):(vQk(this.JSC$8063_connected_,this.setupAckReceived_),this.protocolVersion_==2&&vQk(this.JSC$8063_connected_,this.setupAckSent_));szI(this.JSC$8063_connected_,this.notifyConnected_,this);this.JSC$8063_connected_.callback(!0);this.JSC$8063_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.DX(bY,Yp);bY.prototype.peerProtocolVersion_=null;bY.prototype.initialized_=!1;bY.prototype.transportType=1;var tqo={};bY.prototype.sendTimerId_=0;
var FE9=function(Y){var b=Y.event_.data;if(typeof b!=="string")return!1;var w=b.indexOf("|"),V=b.indexOf(":");if(w==-1||V==-1)return!1;var H=b.substring(0,w);w=b.substring(w+1,V);b=b.substring(V+1);if(V=wy[H])return V.xpcDeliver(w,b,Y.event_.origin),!0;V=RH_(b)[0];for(var f in wy){var E=wy[f];if(Ol8(E)==1&&!E.isConnected()&&w=="tp"&&(V=="SETUP"||V=="SETUP_NTPV2")&&dDj(E,Y.event_.origin))return delete wy[E.name],E.name=H,wy[H]=E,E.xpcDeliver(w,b),!0}return!1},LEU=function(Y){Y.protocolVersion_!=2||
Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=2||Y.send("tp","SETUP_NTPV2,"+Y.endpointId_);
Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=1||Y.send("tp","SETUP")},SyU=function(Y,b){if(Y.protocolVersion_!=2||Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=2||b!=2){if(Y.peerProtocolVersion_!=null&&Y.peerProtocolVersion_!=1||b!=1)return;
Y.send("tp","SETUP_ACK")}else Y.send("tp","SETUP_ACK_NTPV2");Y.setupAckSent_.fired_||Y.setupAckSent_.callback(!0)},aKK=function(Y,b){b>Y.peerProtocolVersion_&&(Y.peerProtocolVersion_=b);
Y.peerProtocolVersion_==1&&(Y.setupAckSent_.fired_||Y.oneSidedHandshake_||Y.setupAckSent_.callback(!0),Y.peerEndpointId_=null)};
_.g=bY.prototype;_.g.connect=function(){var Y=this.getWindow(),b=_.wU(Y),w=tqo[b];typeof w!=="number"&&(w=0);w==0&&_.ez(Y.postMessage?Y:Y.document,"message",FE9,!1,bY);tqo[b]=w+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.g.maybeAttemptToConnect_=function(){var Y=Ol8(this.JSC$8063_channel_)==0;this.oneSidedHandshake_&&Y||this.JSC$8063_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),LEU(this))};
_.g.send=function(Y,b){var w=this.JSC$8063_channel_.peerWindowObject_;w&&(this.send=function(V,H){var f=this,E=this.JSC$8063_channel_.name;this.sendTimerId_=tS(function(){f.sendTimerId_=0;try{var U=w.postMessage?w:w.document;U.postMessage&&U.postMessage(E+"|"+V+":"+H,f.peerHostname_)}catch(X){}},0)},this.send(Y,b))};
_.g.notifyConnected_=function(){var Y=this.JSC$8063_channel_,b=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;Y.isConnected()||Y.connectionDelay_&&Y.connectionDelay_.isActive()||(Y.state_=2,_.ua(Y.connectionDelay_),b!==void 0?(Y.connectionDelay_=new _.Mf(Y.connectCb_,b),Y.connectionDelay_.start()):(Y.connectionDelay_=null,Y.connectCb_()))};
_.g.disposeInternal=function(){if(this.initialized_){var Y=this.getWindow(),b=_.wU(Y),w=tqo[b];tqo[b]=w-1;w==1&&_.BV(Y.postMessage?Y:Y.document,"message",FE9,!1,bY)}this.sendTimerId_&&(_.wB.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.ua(this.JSC$8063_eventHandler_);delete this.JSC$8063_eventHandler_;_.ua(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8063_connected_.cancel();delete this.JSC$8063_connected_;delete this.send;bY.superClass_.disposeInternal.call(this)};
var RH_=function(Y){Y=Y.split(",");Y[1]=Y[1]||null;return Y};_.VJ=function(Y){if(Y.getValues&&typeof Y.getValues=="function")return Y.getValues();if(typeof Map!=="undefined"&&Y instanceof Map||typeof Set!=="undefined"&&Y instanceof Set)return Array.from(Y.values());if(typeof Y==="string")return Y.split("");if(_.TK(Y)){for(var b=[],w=Y.length,V=0;V<w;V++)b.push(Y[V]);return b}return _.BL.getValues(Y)};
_.rP$=function(Y){if(Y.getKeys&&typeof Y.getKeys=="function")return Y.getKeys();if(!Y.getValues||typeof Y.getValues!="function"){if(typeof Map!=="undefined"&&Y instanceof Map)return Array.from(Y.keys());if(!(typeof Set!=="undefined"&&Y instanceof Set)){if(_.TK(Y)||typeof Y==="string"){var b=[];Y=Y.length;for(var w=0;w<Y;w++)b.push(w);return b}return _.BL.getKeys(Y)}}};
_.zH_=function(Y,b,w){if(Y.forEach&&typeof Y.forEach=="function")Y.forEach(b,w);else if(_.TK(Y)||typeof Y==="string")Array.prototype.forEach.call(Y,b,w);else for(var V=_.rP$(Y),H=_.VJ(Y),f=H.length,E=0;E<f;E++)b.call(w,H[E],V&&V[E],Y)};var hKB,UT,D1,$D5,WEQ,il_,KE$,yPr,APd;
_.Jw=function(Y,b){this.JSC$8068_domain_=this.userInfo_=this.scheme_="";this.JSC$8068_port_=null;this.fragment_=this.JSC$8068_path_="";this.JSC$8068_ignoreCase_=!1;var w;Y instanceof _.Jw?(this.JSC$8068_ignoreCase_=b!==void 0?b:Y.JSC$8068_ignoreCase_,_.H2(this,Y.scheme_),this.userInfo_=Y.userInfo_,_.gy(this,Y.JSC$8068_domain_),_.fP(this,Y.JSC$8068_port_),_.Nv(this,Y.getPath()),_.ET(this,Y.JSC$8068_queryData_.clone()),_.c2(this,Y.fragment_)):Y&&(w=_.u1(String(Y)))?(this.JSC$8068_ignoreCase_=!!b,_.H2(this,
w[1]||"",!0),this.userInfo_=UT(w[2]||""),_.gy(this,w[3]||"",!0),_.fP(this,w[4]),_.Nv(this,w[5]||"",!0),_.ET(this,w[6]||"",!0),_.c2(this,w[7]||"",!0)):(this.JSC$8068_ignoreCase_=!!b,this.JSC$8068_queryData_=new _.Xa(null,this.JSC$8068_ignoreCase_))};
_.Jw.prototype.toString=function(){var Y=[],b=this.scheme_;b&&Y.push(D1(b,WEQ,!0),":");var w=this.JSC$8068_domain_;if(w||b=="file")Y.push("//"),(b=this.userInfo_)&&Y.push(D1(b,WEQ,!0),"@"),Y.push(_.yW(w).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),w=this.JSC$8068_port_,w!=null&&Y.push(":",String(w));if(w=this.getPath())this.JSC$8068_domain_&&w.charAt(0)!="/"&&Y.push("/"),Y.push(D1(w,w.charAt(0)=="/"?KE$:il_,!0));(w=this.JSC$8068_queryData_.toString())&&Y.push("?",w);(w=this.fragment_)&&Y.push("#",D1(w,
APd));return Y.join("")};
_.Jw.prototype.resolve=function(Y){var b=this.clone(),w=!!Y.scheme_;w?_.H2(b,Y.scheme_):w=!!Y.userInfo_;w?b.userInfo_=Y.userInfo_:w=!!Y.JSC$8068_domain_;w?_.gy(b,Y.JSC$8068_domain_):w=Y.JSC$8068_port_!=null;var V=Y.getPath();if(w)_.fP(b,Y.JSC$8068_port_);else if(w=!!Y.JSC$8068_path_){if(V.charAt(0)!="/")if(this.JSC$8068_domain_&&!this.JSC$8068_path_)V="/"+V;else{var H=b.getPath().lastIndexOf("/");H!=-1&&(V=b.getPath().slice(0,H+1)+V)}H=V;if(H==".."||H==".")V="";else if(_.UM(H,"./")||_.UM(H,"/.")){V=
_.Hg(H,"/");H=H.split("/");for(var f=[],E=0;E<H.length;){var U=H[E++];U=="."?V&&E==H.length&&f.push(""):U==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),V&&E==H.length&&f.push("")):(f.push(U),V=!0)}V=f.join("/")}else V=H}w?_.Nv(b,V):w=Y.JSC$8068_queryData_.toString()!=="";w?_.ET(b,Y.JSC$8068_queryData_.clone()):w=!!Y.fragment_;w&&_.c2(b,Y.fragment_);return b};
_.Jw.prototype.clone=function(){return new _.Jw(this)};
_.H2=function(Y,b,w){Y.scheme_=w?UT(b,!0):b;Y.scheme_&&(Y.scheme_=Y.scheme_.replace(/:$/,""));return Y};
_.gy=function(Y,b,w){Y.JSC$8068_domain_=w?UT(b,!0):b;return Y};
_.fP=function(Y,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Ua`"+b);Y.JSC$8068_port_=b}else Y.JSC$8068_port_=null;return Y};
_.Jw.prototype.getPath=function(){return this.JSC$8068_path_};
_.Nv=function(Y,b,w){Y.JSC$8068_path_=w?UT(b,!0):b;return Y};
_.ET=function(Y,b,w){b instanceof _.Xa?(Y.JSC$8068_queryData_=b,CaK(Y.JSC$8068_queryData_,Y.JSC$8068_ignoreCase_)):(w||(b=D1(b,yPr)),Y.JSC$8068_queryData_=new _.Xa(b,Y.JSC$8068_ignoreCase_));return Y};
_.G_=function(Y,b,w){Y.JSC$8068_queryData_.set(b,w);return Y};
_.jh=function(Y,b){return Y.JSC$8068_queryData_.get(b)};
_.c2=function(Y,b,w){Y.fragment_=w?UT(b):b;return Y};
_.me=function(Y){_.G_(Y,"zx",y9());return Y};
_.$G=function(Y,b){return Y instanceof _.Jw?Y.clone():new _.Jw(Y,b)};
hKB=function(Y,b){Y instanceof _.Jw||(Y=_.$G(Y));b instanceof _.Jw||(b=_.$G(b));return Y.resolve(b)};
UT=function(Y,b){return Y?b?decodeURI(Y.replace(/%25/g,"%2525")):decodeURIComponent(Y):""};
D1=function(Y,b,w){return typeof Y==="string"?(Y=encodeURI(Y).replace(b,$D5),w&&(Y=Y.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Y):null};
$D5=function(Y){Y=Y.charCodeAt(0);return"%"+(Y>>4&15).toString(16)+(Y&15).toString(16)};
WEQ=/[#\/\?@]/g;il_=/[#\?:]/g;KE$=/[#\?]/g;yPr=/[#\?@]/g;APd=/#/g;_.Xa=function(Y,b){this.count_=this.keyMap_=null;this.encodedQuery_=Y||null;this.JSC$8069_ignoreCase_=!!b};
_.oB=function(Y){Y.keyMap_||(Y.keyMap_=new Map,Y.count_=0,Y.encodedQuery_&&WI8(Y.encodedQuery_,function(b,w){Y.add(Vh(b),w)}))};
_.g=_.Xa.prototype;_.g.getCount=function(){_.oB(this);return this.count_};
_.g.add=function(Y,b){_.oB(this);this.encodedQuery_=null;Y=IB(this,Y);var w=this.keyMap_.get(Y);w||this.keyMap_.set(Y,w=[]);w.push(b);this.count_+=1;return this};
_.g.remove=function(Y){_.oB(this);Y=IB(this,Y);return this.keyMap_.has(Y)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(Y).length,this.keyMap_.delete(Y)):!1};
_.g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.g.isEmpty=function(){_.oB(this);return this.count_==0};
_.g.containsKey=function(Y){_.oB(this);Y=IB(this,Y);return this.keyMap_.has(Y)};
_.g.containsValue=function(Y){var b=this.getValues();return _.Ka(b,Y)};
_.g.forEach=function(Y,b){_.oB(this);this.keyMap_.forEach(function(w,V){w.forEach(function(H){Y.call(b,H,V,this)},this)},this)};
_.g.getKeys=function(){_.oB(this);for(var Y=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),w=[],V=0;V<b.length;V++)for(var H=Y[V],f=0;f<H.length;f++)w.push(b[V]);return w};
_.g.getValues=function(Y){_.oB(this);var b=[];if(typeof Y==="string")this.containsKey(Y)&&(b=b.concat(this.keyMap_.get(IB(this,Y))));else{Y=Array.from(this.keyMap_.values());for(var w=0;w<Y.length;w++)b=b.concat(Y[w])}return b};
_.g.set=function(Y,b){_.oB(this);this.encodedQuery_=null;Y=IB(this,Y);this.containsKey(Y)&&(this.count_-=this.keyMap_.get(Y).length);this.keyMap_.set(Y,[b]);this.count_+=1;return this};
_.g.get=function(Y,b){if(!Y)return b;Y=this.getValues(Y);return Y.length>0?String(Y[0]):b};
_.jz9=function(Y,b,w){Y.remove(b);w.length>0&&(Y.encodedQuery_=null,Y.keyMap_.set(IB(Y,b),_.jL(w)),Y.count_+=w.length)};
_.Xa.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var Y=[],b=Array.from(this.keyMap_.keys()),w=0;w<b.length;w++){var V=b[w],H=_.yW(V);V=this.getValues(V);for(var f=0;f<V.length;f++){var E=H;V[f]!==""&&(E+="="+_.yW(V[f]));Y.push(E)}}return this.encodedQuery_=Y.join("&")};
_.Xa.prototype.clone=function(){var Y=new _.Xa;Y.encodedQuery_=this.encodedQuery_;this.keyMap_&&(Y.keyMap_=new Map(this.keyMap_),Y.count_=this.count_);return Y};
var IB=function(Y,b){b=String(b);Y.JSC$8069_ignoreCase_&&(b=b.toLowerCase());return b},CaK=function(Y,b){b&&!Y.JSC$8069_ignoreCase_&&(_.oB(Y),Y.encodedQuery_=null,Y.keyMap_.forEach(function(w,V){var H=V.toLowerCase();
V!=H&&(this.remove(V),_.jz9(this,H,w))},Y));
Y.JSC$8069_ignoreCase_=b};
_.Xa.prototype.extend=function(Y){for(var b=0;b<arguments.length;b++)_.zH_(arguments[b],function(w,V){this.add(V,w)},this)};var kp=function(Y,b){Gh.call(this);for(var w=0,V;V=Mq8[w];w++)if(V in Y&&!/^https?:\/\//.test(Y[V]))throw Error("Wa`"+Y[V]+"`"+V);this.cfg_=Y;this.name=this.cfg_.cn||pLr();this.JSC$8064_domHelper_=b||la();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.fM(this);Y.lpu=Y.lpu||r_r(this.JSC$8064_domHelper_.getWindow().location.href)+"/robots.txt";Y.ppu=Y.ppu||r_r(Y.pu||"")+"/robots.txt";wy[this.name]=this;S35(window,"unload",G25)||ZR(window,"unload",G25)};
_.DX(kp,Gh);var TFU=RegExp("^%*tp$"),JP8=RegExp("^%+tp$");_.g=kp.prototype;_.g.connectionDelay_=null;_.g.peerWindowDeferred_=null;_.g.transport_=null;_.g.state_=1;_.g.isConnected=function(){return this.state_==2};
_.g.peerWindowObject_=null;_.g.iframeElement_=null;_.g.connect=function(Y){this.connectCb_=Y||_.vY;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?szI(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.g.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8064_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var Y=this.iframeElement_.contentWindow;Y||(Y=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=Y}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ya");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$8064_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new bY(this,this.cfg_.ph,this.JSC$8064_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Xa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.g.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.ua(this.transport_);this.connectCb_=this.transport_=null;_.ua(this.connectionDelay_);this.connectionDelay_=null};
_.g.send=function(Y,b){if(this.isConnected()){try{var w=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(H){w=!1}if(w){_.bC(b)&&(b=(0,_.dP)(b));w=this.transport_;var V=w.send;TFU.test(Y)&&(Y="%"+Y);Y=Y.replace(/[%:|]/g,encodeURIComponent);V.call(w,Y,b)}else this.close()}};
_.g.xpcDeliver=function(Y,b,w){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.nC)(this.xpcDeliver,this,Y,b,w));else if(dDj(this,w)&&!this.isDisposed()&&this.state_!=3)if(Y&&Y!="tp")this.isConnected()&&(Y=Y.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),Y=JP8.test(Y)?Y.substring(1):Y,Y=this.getService(Y,b))&&(b=k2t(b,Y.objectPayload),b!=null&&Y.callback(b));else switch(Y=this.transport_,w=RH_(b),b=w[1],w[0]){case "SETUP_ACK":aKK(Y,1);Y.setupAckReceived_.fired_||Y.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":Y.protocolVersion_==2&&(aKK(Y,2),Y.setupAckReceived_.fired_||Y.setupAckReceived_.callback(!0));break;case "SETUP":aKK(Y,1);SyU(Y,1);break;case "SETUP_NTPV2":Y.protocolVersion_==2&&(w=Y.peerProtocolVersion_,aKK(Y,2),SyU(Y,2),w!=1&&Y.peerEndpointId_==null||Y.peerEndpointId_==b||LEU(Y),Y.peerEndpointId_=b)}};
var Ol8=function(Y){var b=Y.cfg_.role;return typeof b==="number"?b:window.parent==Y.peerWindowObject_?1:0},dDj=function(Y,b){var w=Y.cfg_.ph;
return _.EM(b==null?"":String(b))||_.EM(w==null?"":String(w))||b==Y.cfg_.ph};
kp.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete wy[this.name];_.ua(this.peerLoadHandler_);delete this.peerLoadHandler_;kp.superClass_.disposeInternal.call(this)};
var G25=function(){for(var Y in wy)_.ua(wy[Y])},wy={};var Y2I=function(Y,b){this.JSC$8078_win=Y;this.allowAdsHttpEndpoint=b;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8078_domHelper=la(Y);this.scrollManager=new mD$(Y);this.accessibilityManager=new EQ8(Y);uEt(this)},uEt=function(Y){var b=function(){Y.allowAdsPopup&&Y.allowAdsPopup.style.setProperty("display","none","important");
Y.wallElement.style.setProperty("display","","important");cPj(Y.accessibilityManager);DD9(Y.accessibilityManager,Y.wallElement.querySelector(".fc-dialog-container"),!1,!1,Y.wallElement.querySelector(".fc-button-whitelist"));var H=Y.scrollManager;H.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow=H.originalBodyOverflow};
Y.allowAdsPopup=Y.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-whitelist-root"});Y.allowAdsPopup.style.setProperty("display","none","important");Y.JSC$8078_domHelper.appendChild(Y.JSC$8078_domHelper.JSC$7363_document_.body,Y.allowAdsPopup);var w=Y.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-dialog-overlay"});Y.JSC$8078_domHelper.appendChild(Y.allowAdsPopup,w);var V=Y.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:b});Y.JSC$8078_domHelper.appendChild(Y.allowAdsPopup,
V);w=Y.JSC$8078_domHelper.JSC$7365_createDom("IFRAME");w.className="fc-whitelist-dialog";w.frameBorder="0";w.id="fc-whitelist-iframe";w.tabIndex="0";_.Rg(w,Y.allowAdsHttpEndpoint);Y.JSC$8078_domHelper.appendChild(V,w);V={};V.pu=_.Xk(Y.allowAdsHttpEndpoint).toString();V.tp=1;V.cn="fc-whitelist-channel";V.ifrid=w.id;V.osh=!0;Y.allowAdsCrossPageChannel=new kp(V);Y.allowAdsCrossPageChannel.registerService("close",b);Y.allowAdsCrossPageChannel.registerService("refresh",function(){Y.JSC$8078_win.location.reload()});
Y.allowAdsCrossPageChannel.registerService("resize",function(H){if(H){var f=Y.allowAdsPopup.querySelector(".fc-whitelist-dialog");H.width&&f.style.setProperty("width",H.width,"important");H.height&&f.style.setProperty("height",H.height,"important")}},!0);
Y.allowAdsCrossPageChannel.connect()};
Y2I.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8078_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var lY=window,hu=document,bCQ=lY.location,wE8=function(){},VhK=/\[native code\]/,xp=function(Y,b,w){return Y[b]=Y[b]||w},HCd=function(Y){Y=Y.sort();
for(var b=[],w=void 0,V=0;V<Y.length;V++){var H=Y[V];H!=w&&b.push(H);w=H}return b},qv=function(){var Y;
if((Y=Object.create)&&VhK.test(Y))Y=Y(null);else{Y={};for(var b in Y)Y[b]=void 0}return Y},sT=xp(lY,"gapi",{});var QJ={};QJ=xp(lY,"___jsl",qv());xp(QJ,"I",0);xp(QJ,"hel",10);var gGU=function(){var Y=bCQ.href;if(QJ.dpo)var b=QJ.h;else{b=QJ.h;var w=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),V=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(Y=Y&&(w.exec(Y)||V.exec(Y)))try{b=decodeURIComponent(Y[2])}catch(H){}}return b},fwr=function(Y){var b=xp(QJ,"PQ",[]);
QJ.PQ=[];var w=b.length;if(w===0)Y();else for(var V=0,H=function(){++V===w&&Y()},f=0;f<w;f++)b[f](H)},Nl$=function(Y){return xp(xp(QJ,"H",qv()),Y,qv())};var v2=function(Y){this.JSC$8080_obj_=Y};
v2.prototype.value=function(){return this.JSC$8080_obj_};
v2.prototype.getWidth=function(){return this.JSC$8080_obj_.width};
v2.prototype.getHeight=function(){return this.JSC$8080_obj_.height};
v2.prototype.getStyle=function(){return this.JSC$8080_obj_.style};var EGk=function(Y){this.JSC$8083_obj_=Y||{}};
_.g=EGk.prototype;_.g.value=function(){return this.JSC$8083_obj_};
_.g.setUrl=function(Y){this.JSC$8083_obj_.url=Y;return this};
_.g.getUrl=function(){return this.JSC$8083_obj_.url};
_.g.getStyle=function(){return this.JSC$8083_obj_.style};
_.g.setId=function(Y){this.JSC$8083_obj_.id=Y;return this};
_.g.getId=function(){return this.JSC$8083_obj_.id};
_.g.getContext=function(){return this.JSC$8083_obj_.context};
var cy9=function(Y){Y.JSC$8083_obj_.attributes=Y.JSC$8083_obj_.attributes||{};return new v2(Y.JSC$8083_obj_.attributes)};var Uf9=function(){EGk.apply(this,arguments)};
_.P(Uf9,EGk);var XEj=xp(QJ,"perf",qv());xp(XEj,"g",qv());var DfI=xp(XEj,"i",qv());xp(XEj,"r",[]);qv();qv();var oGt=function(Y,b,w){b&&b.length>0&&(b=mfI(b),w&&w.length>0&&(b+="___"+mfI(w)),b.length>28&&(b=b.substr(0,28)+(b.length-28)),w=b,b=xp(DfI,"_p",qv()),xp(b,w,qv())[Y]=(new Date).getTime(),b=XEj.r,typeof b==="function"?b(Y,"_p",w):b.push([Y,"_p",w]))},mfI=function(Y){return Y.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var IwC=qv(),k__=[],P2=function(Y){throw Error("Za`"+Y);};
k__.push(["jsl",function(Y){for(var b in Y)if(Object.prototype.hasOwnProperty.call(Y,b)){var w=Y[b];typeof w=="object"?QJ[b]=xp(QJ,b,[]).concat(w):xp(QJ,b,w)}if(b=Y.u)Y=xp(QJ,"us",[]),Y.push(b),(b=/^https:(.*)$/.exec(b))&&Y.push("http:"+b[1])}]);
var lw9=/^(\/[a-zA-Z0-9_\-]+)+$/,hd5=[/\/amp\//,/\/amp$/,/^\/amp$/],xfI=/^[a-zA-Z0-9\-_\.,!]+$/,q2k=/^gapi\.loaded_[0-9]+$/,ssk=/^[a-zA-Z0-9,._-]+$/,ZCt=function(Y,b,w,V,H){var f=Y.split(";"),E=f.shift(),U=IwC[E],X=null;U?X=U(f,b,w,V):P2("no hint processor for: "+E);X||P2("failed to generate load url");b=X;w=b.match(QsI);(V=b.match(vGK))&&V.length===1&&POo.test(b)&&w&&w.length===1||P2("failed sanity: "+Y);try{Y="?";if(H&&H.length>0){Vr(H);var I=H.join(",");X=X+"?le="+I;Y="&"}if(QJ.rol){var k=QJ.ol;
k&&k.length&&(X=""+X+Y+"ol="+k.length)}}catch(l){}return X},Mhk=function(Y,b,w,V){Y=Bl5(Y);
q2k.test(w)||P2("invalid_callback");b=nGI(b);V=V&&V.length?nGI(V):null;var H=function(f){return encodeURIComponent(f).replace(/%2C/g,",")};
return[encodeURIComponent(Y.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",H(Y.version),"/m=",H(b),V?"/exm="+H(V):"","/rt=j/sv=1/d=1/ed=1",Y.activeMods?"/am="+H(Y.activeMods):"",Y.resourceSig?"/rs="+H(Y.resourceSig):"",Y.zcms?"/t="+H(Y.zcms):"","/cb=",H(w)].join("")},Bl5=function(Y){Y.charAt(0)!=="/"&&P2("relative path");
for(var b=Y.substring(1).split("/"),w=[];b.length;){Y=b.shift();if(!Y.length||Y.indexOf(".")==0)P2("empty/relative directory");else if(Y.indexOf("=")>0){b.unshift(Y);break}w.push(Y)}Y={};for(var V=0,H=b.length;V<H;++V){var f=b[V].split("="),E=decodeURIComponent(f[0]),U=decodeURIComponent(f[1]);f.length==2&&E&&U&&(Y[E]=Y[E]||U)}b="/"+w.join("/");lw9.test(b)||P2("invalid_prefix");w=0;for(V=hd5.length;w<V;++w)hd5[w].test(b)&&P2("invalid_prefix");w=edI(Y,"k",!0);V=edI(Y,"am");H=edI(Y,"rs");Y=edI(Y,"t");
return{pathPrefix:b,version:w,activeMods:V,resourceSig:H,zcms:Y}},nGI=function(Y){for(var b=[],w=0,V=Y.length;w<V;++w){var H=Y[w].replace(/\./g,"_").replace(/-/g,"_");
ssk.test(H)&&b.push(H)}return b.join(",")},edI=function(Y,b,w){Y=Y[b];
!Y&&w&&P2("missing: "+b);if(Y){if(xfI.test(Y))return Y;P2("invalid: "+b)}return null},POo=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,vGK=/\/cb=/g,QsI=/\/\//g;
IwC.m=function(Y,b,w,V){(Y=Y[0])||P2("missing_hint");return"https://apis.google.com"+Mhk(Y,b,w,V)};
var pEk=decodeURI("%73cript"),OC8=/^[-+_0-9\/A-Za-z]+={0,2}$/,th8=function(Y,b){for(var w=[],V=0;V<Y.length;++V){var H=Y[V],f;if(f=H){a:{for(f=0;f<b.length;f++)if(b[f]===H)break a;f=-1}f=f<0}f&&w.push(H)}return w},Rdj=function(){var Y=QJ.nonce;
return Y!==void 0?Y&&Y===String(Y)&&Y.match(OC8)?Y:QJ.nonce=null:hu.querySelector?(Y=hu.querySelector("script[nonce]"))?(Y=Y.nonce||Y.getAttribute("nonce")||"",Y&&Y===String(Y)&&Y.match(OC8)?QJ.nonce=Y:QJ.nonce=null):null:null},Ltt=function(Y){if(hu.readyState!="loading")dfd(Y);
else{var b=Rdj(),w="";b!==null&&(w=' nonce="'+b+'"');Y="<"+pEk+' src="'+encodeURI(Y)+'"'+w+"></"+pEk+">";hu.write(Ft$?Ft$.createHTML(Y):Y)}},dfd=function(Y){var b=hu.createElement(pEk);
b.setAttribute("src",Ft$?Ft$.createScriptURL(Y):Y);Y=Rdj();Y!==null&&b.setAttribute("nonce",Y);b.async="true";(Y=hu.getElementsByTagName(pEk)[0])?Y.parentNode.insertBefore(b,Y):(hu.head||hu.body||hu.documentElement).appendChild(b)},awI=function(Y,b,w){S2j(function(){var V=b===gGU()?xp(sT,"_",qv()):qv();
V=xp(Nl$(b),"_",V);Y(V)},w)},opL=function(Y,b){var w=b||{};
typeof b=="function"&&(w={},w.callback=b);var V=(b=w)&&b._c;if(V)for(var H=0;H<k__.length;H++){var f=k__[H][0],E=k__[H][1];E&&Object.prototype.hasOwnProperty.call(V,f)&&E(V[f],Y,b)}b=[];Y?b=Y.split(":"):w.features&&(b=w.features);if(!(Y=w.h)&&(Y=gGU(),!Y))throw Error("$a");ryk(b||[],w,Y)},ryk=function(Y,b,w){Y=HCd(Y)||[];
var V=b.callback,H=b.config,f=b.timeout,E=b.ontimeout,U=b.onerror,X=void 0;typeof U=="function"&&(X=U);var I=null,k=!1;if(f&&!E||!f&&E)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";U=xp(Nl$(w),"r",[]).sort();var l=xp(Nl$(w),"L",[]).sort(),x=QJ.le||[],Q=[].concat(U),Z=function(C,W){if(k)return 0;lY.clearTimeout(I);l.push.apply(l,e);var y=((sT||{}).config||{}).update;y?y(H):H&&xp(QJ,"cu",[]).push(H);if(W){oGt("me0",C,Q);try{awI(W,w,X)}finally{oGt("me1",C,Q)}}return 1};
f>0&&(I=lY.setTimeout(function(){k=!0;E()},f));
var e=th8(Y,l);if(e.length){e=th8(Y,U);var O=xp(QJ,"CP",[]),L=O.length;O[L]=function(C){if(!C)return 0;oGt("ml1",e,Q);var W=function(G){O[L]=null;Z(e,C)&&fwr(function(){V&&V();G()})},y=function(){var G=O[L+1];
G&&G()};
L>0&&O[L-1]?O[L]=function(){W(y)}:W(y)};
if(e.length){var r="loaded_"+QJ.I++;sT[r]=function(C){O[L](C);sT[r]=null};
Y=ZCt(w,e,"gapi."+r,U,x);U.push.apply(U,e);oGt("ml0",e,Q);b.sync||lY.___gapisync?Ltt(Y):dfd(Y)}else O[L](wE8)}else Z(e)&&V&&V()},zdK;
var WtU=null,KtC=_.wB.trustedTypes;if(KtC&&KtC.createPolicy){try{WtU=KtC.createPolicy("goog#gapi",{createHTML:bdv,createScript:bdv,createScriptURL:bdv})}catch(Y){_.wB.console&&_.wB.console.error(Y.message)}zdK=WtU}else zdK=WtU;var Ft$=zdK,S2j=function(Y,b){if(QJ.hee&&QJ.hel>0)try{return Y()}catch(w){b&&b(w),QJ.hel--,opL("debug_error",function(){try{window.___jsl.hefn(w)}catch(V){throw w;}})}else try{return Y()}catch(w){throw b&&b(w),w;
}},iCU=sT.load;
iCU&&xp(QJ,"ol",[]).push(iCU);sT.load=function(Y,b){return S2j(function(){return opL(Y,b)})};var O2;var Ay9=function(Y,b){this.serviceId_=Y;this.moduleId_=b||null};
Ay9.prototype.toString=function(){return this.serviceId_};
Ay9.prototype.getModuleId=function(){return this.moduleId_};var EP6=new Ay9("MpJwZc","MpJwZc");var UYu=new _.sV("a"),che=function(Y,b,w){_.Q2.call(this,Y,b);this.node=b;this.kind=w};
_.P(che,_.Q2);var COr=function(){this.JSC$8096_keys_={};this.urlPrefix_="";this.JSC$8096_queryData_={}};
COr.prototype.toString=function(){var Y=this.urlPrefix_+yyC(this),b=_.h6(this.JSC$8096_queryData_),w="";b!=""&&(w="?"+b);return Y+w};
var $f_=function(Y){Y=Z1(Y,"md");return!!Y&&Y!=="0"},yyC=function(Y){var b=[],w=(0,_.nC)(function(V){this.JSC$8096_keys_[V]!==void 0&&b.push(V+"="+this.JSC$8096_keys_[V])},Y);
$f_(Y)?(w("md"),w("k"),w("ck"),w("am"),w("rs"),w("gssmodulesetproto"),w("slk"),w("dti")):(w("sdch"),w("k"),w("ck"),w("am"),w("rt"),"d"in Y.JSC$8096_keys_||B2(Y,"d","0"),w("d"),w("exm"),w("excm"),(Y.JSC$8096_keys_.excm||Y.JSC$8096_keys_.exm)&&b.push("ed=1"),w("im"),w("dg"),w("sm"),Z1(Y,"br")!="1"&&Z1(Y,"br")!="0"||w("br"),w("br-d"),Z1(Y,"rb")=="1"&&w("rb"),Z1(Y,"zs")!=="0"&&w("zs"),js9(Y)!==""&&w("wt"),w("gssmodulesetproto"),w("ujg"),w("sp"),w("rs"),w("cb"),w("ee"),w("slk"),w("dti"),w("m"));return b.join("/")},
Z1=function(Y,b){return Y.JSC$8096_keys_[b]?Y.JSC$8096_keys_[b]:null},B2=function(Y,b,w){w?Y.JSC$8096_keys_[b]=w:delete Y.JSC$8096_keys_[b]},G_U=function(Y,b){Y.urlPrefix_=b},Tl_=function(Y,b){b&&b.length>0?(b.sort(),B2(Y,"exm",b.join(","))):B2(Y,"exm",null)},JyQ=function(Y,b){b&&b.length>0?(b.sort(),B2(Y,"excm",b.join(","))):B2(Y,"excm",null)},uh$=function(Y){return(Y=Z1(Y,"m"))?Y.split(","):[]},js9=function(Y){switch(Z1(Y,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},YN9=function(Y,b){var w=Object.keys(b).filter(function(V){return!!Object.keys(b[V]).length}).map(function(V){var H=Object.keys(b[V]);
H.length>1&&H.sort();return V+":"+H.join(",")});
w.sort();B2(Y,"ee",w.join(";"))},C1g=function(Y){var b=Z1(Y,"ee");
if(!b)return{};Y={};b=_.N(b.split(";"));for(var w=b.next();!w.done;w=b.next()){var V=_.N(w.value.split(":"));w=V.next().value;V=V.next().value;Y[w]={};V=_.N(V.split(","));for(var H=V.next();!H.done;H=V.next())Y[w][H.value]=!0}return Y},bQQ=function(Y){delete Y.JSC$8096_keys_.m;
delete Y.JSC$8096_keys_.exm;delete Y.JSC$8096_keys_.ed};
COr.prototype.clone=function(){var Y=new COr;Y.JSC$8096_keys_=Object.assign({},this.JSC$8096_keys_);Y.urlPrefix_=this.urlPrefix_;Y.JSC$8096_queryData_=Object.assign({},this.JSC$8096_queryData_);return Y};
var yqt=function(Y,b){b=b===void 0?!0:b;var w=whK(Y),V=new COr,H=_.u1(w)[5];_.BL.forEach(VaC,function(E){var U=H.match("/"+E+"=([^/]+)");U&&B2(V,E,U[1])});
var f="";f=Y.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";G_U(V,Y.substr(0,Y.indexOf(f)+f.length));if(!b)return V;(Y=_.u1(w)[6]||null)&&WI8(Y,function(E,U){V.JSC$8096_queryData_[E]=U});
return V},Kz6=function(Y){Y=_.ku(whK(Y));
return Y===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(Y)?/\/k=/.test(Y):!1},whK=function(Y){return Y.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?Y.substr(65):Y},VaC={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},HQt=RegExp("^loaded_(g|h)?[_\\d]+$");_.nP=function(Y){this.JSC$8108_id_=Y;this.opts={}};
_.nP.prototype.JSC$8110_setLabel=function(Y){this.label_=Y||void 0;return this};
_.nP.prototype.addUploadMetadata=function(Y,b){var w=this.opts.data||{};w[Y]=b;this.opts.data=w;return this};
var gwK=function(Y){var b=_.BL.filter(Y.opts,function(w){return w!==null});
b=_.BL.isEmpty(b)?null:b;Y=[Y.JSC$8108_id_,Y.label_,b];b=hqu(Y);return Y=Y.slice(0,b+1)};
_.nP.prototype.toString=function(){var Y=gwK(this);return"("+_.MD(Y,function(b){return JSON.stringify(b)}).join(",")+")"};
_.nP.prototype.getId=function(){return this.JSC$8108_id_};
_.nP.prototype.getOptions=function(){return _.BL.clone(this.opts)};var Mv=function(){_.nP.call(this,"image-search")};
_.P(Mv,_.nP);Mv.prototype.setSize=function(Y){this.opts.imgsz=Y;return this};
Mv.prototype.JSC$8110_setLabel=function(Y){_.nP.prototype.JSC$8110_setLabel.call(this,Y);return this};
Mv.prototype.addUploadMetadata=function(Y,b){_.nP.prototype.addUploadMetadata.call(this,Y,b);return this};var eB=function(){_.nP.call(this,"maps")};
_.P(eB,_.nP);eB.prototype.setZoom=function(Y){this.opts.zoom=Y;return this};
eB.prototype.JSC$8110_setLabel=function(Y){_.nP.prototype.JSC$8110_setLabel.call(this,Y);return this};
eB.prototype.addUploadMetadata=function(Y,b){_.nP.prototype.addUploadMetadata.call(this,Y,b);return this};_.pP=function(){_.nP.call(this,"photos")};
_.P(_.pP,_.nP);_.pP.prototype.JSC$8110_setLabel=function(Y){_.nP.prototype.JSC$8110_setLabel.call(this,Y);return this};
_.pP.prototype.addUploadMetadata=function(Y,b){_.nP.prototype.addUploadMetadata.call(this,Y,b);return this};var OT=function(){_.nP.call(this,"url")};
_.P(OT,_.nP);var fst=function(){var Y=new OT;Y.opts.type="video";Y.opts.site="youtube.com";return Y};
OT.prototype.JSC$8110_setLabel=function(Y){_.nP.prototype.JSC$8110_setLabel.call(this,Y);return this};
OT.prototype.addUploadMetadata=function(Y,b){_.nP.prototype.addUploadMetadata.call(this,Y,b);return this};var tu=function(){_.nP.call(this,"video-search")};
_.P(tu,_.nP);var N2I=function(){var Y=new tu;Y.opts.site="youtube.com";return Y};
tu.prototype.JSC$8110_setLabel=function(Y){_.nP.prototype.JSC$8110_setLabel.call(this,Y);return this};
tu.prototype.addUploadMetadata=function(Y,b){_.nP.prototype.addUploadMetadata.call(this,Y,b);return this};var Ewj=function(){_.nP.call(this,"web")};
_.P(Ewj,_.nP);Ewj.prototype.JSC$8110_setLabel=function(Y){_.nP.prototype.JSC$8110_setLabel.call(this,Y);return this};
Ewj.prototype.addUploadMetadata=function(Y,b){_.nP.prototype.addUploadMetadata.call(this,Y,b);return this};var RB=function(){this.items_=[];this.opts={}},clr=function(Y){switch(Y){case "image-search":return new Mv;
case "maps":return new eB;case "photos":return new _.pP;case "url":return new OT;case "video-search":return new tu;case "web":return new Ewj}return new _.nP(Y)};
RB.prototype.addView=function(Y){this.items_.push(typeof Y==="string"?clr(Y):Y);return this};
var UGk=function(Y){return"("+_.MD(Y.items_,function(b){return b.toString()}).join(",")+")"};
RB.prototype.toString=function(){return UGk(this)};
RB.prototype.getViews=function(Y,b){b=b===void 0?[]:b;for(var w=this.items_,V=0;V<w.length;V++){var H=w[V];H instanceof RB?H.getViews(Y,b):H.getId()==Y&&b.push(H)}return b};
RB.prototype.getOptions=function(){return _.BL.clone(this.opts)};var WE=function(Y){this.basePickerUrl_=Y||"https://docs.google.com/picker";this.nav_=new RB};
WE.prototype.nav_=null;WE.prototype.addView=function(Y){this.nav_.addView(Y);return this};
WE.prototype.getBaseUrl=function(){return this.basePickerUrl_};
WE.prototype.getViews=function(Y){return this.nav_.getViews(Y)};
_.XhI=function(Y,b){Y.callback_=b;return Y};var DGI=new Map;DGI.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");DGI.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");DGI.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var mG9=new Set;mG9.add("application/vnd.google-apps.kix");mG9.add("application/vnd.google-apps.ritz");mG9.add("application/vnd.google-apps.punch");var ZQo=function(Y,b,w){var V=w&&_.Su(w,1);w=owr(w);var H=Y[0].getId();switch(_.ay(H,2)){case 13:return IsU(Y,b,V,w);case 3:return klj(Y,b,V,w);case 10:return lso(Y,b,V,w);case 27:return lso(Y,b,V,w);case 12:return h7d(Y,b);case 2:return xGr(Y,b,V,w);case 5:return qN9(Y,b,V,w);case 9:return s2t(Y,b,V,w);case 6:return Q2_(Y,b,V,w);case 25:return vw8(Y,b,V,w);case 1:return _.BZ(Y[0],VXd,26)?PNK(Y,b,V,w):lso(Y,b,V,w);default:return{}}},Q2_=function(Y,b,w,V){Y=Y.map(function(H){return{id:H.getId().getId(),
serviceId:"youtube",name:H.getName(),description:_.Su(H,3),type:dy(H),lastEditedUtc:_.wI5(_.EK(H,_.A9,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:H.getUrl(),embedUrl:_.Su(H,13),thumbnails:Fa(HV(H))}});
return{action:b,docs:Y,viewToken:V,view:w||"youtube",v2Translated:!0}},xGr=function(Y,b,w,V){var H=Y.map(function(f){var E=f.getId().getId(),U=_.Su(f,7),X=f.getName(),I=dy(f),k=_.wI5(_.EK(f,_.A9,12)).getTime(),l=f.getUrl(),x=Number(IGM(f)),Q=_.Su(f,3),Z=_.Su(f,11),e=Fa(HV(f));
var O=_.EK(f,gP,21);O=_.dM(O,1);var L=_.EK(f,gP,21);L=_.Su(L,10);var r=_.Su(f,13);var C=_.EK(f,gP,21);C=_.dM(C,9);var W=_.EK(f,gP,21);W=_.Su(W,11);E={id:E,serviceId:"docs",mimeType:U,name:X,type:I,lastEditedUtc:k,url:l,sizeBytes:x,description:Q,iconUrl:Z,thumbnails:e,isShared:O,downloadUrl:L,embedUrl:r,copyable:C,resourceKey:W};U=_.EK(f,gP,21);_.dM(U,12)&&(E.uploadState="success",E.isNew=!0);U=_.EK(f,gP,21);_.BZ(U,Y5,3)&&(f=_.EK(f,gP,21),f=_.EK(f,Y5,3),_.BZ(f,Jn,2)&&(U=Sh(f.getDuration().getSeconds()),
X=f.getDuration(),X=_.HE(X,2),E.duration=U+X/1E9),E.aspectRatio=f.getAspectRatio());return E});
return{action:b,docs:H,viewToken:V,view:w||"all",extraUserInputs:B2r(Y),v2Translated:!0}},qN9=function(Y,b,w,V){Y=Y.map(function(H){var f=_.EK(H,DFC,15);
f=_.EK(f,uV,1);Qu(H,10,uV,f);return{id:H.getId().getId(),serviceId:"web",mimeType:_.Su(H,7),name:H.getName(),type:dy(H),url:H.getUrl(),description:_.Su(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Fa(HV(H))}});
return{action:b,docs:Y,viewToken:V,view:w||"image-search",v2Translated:!0}},s2t=function(Y,b,w,V){Y=Y.map(function(H){return{serviceId:"url",
name:HV(H)[0].getUrl().split("/").pop(),type:dy(H),mimeType:_.Su(H,7),url:H.getUrl(),description:_.Su(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Fa(HV(H))}});
return{action:b,docs:Y,viewToken:V,view:w||"url",v2Translated:!0}},PNK=function(Y,b,w,V){Y=Y.map(function(H){return{id:H.getId().getId(),
serviceId:"picasa",name:H.getName(),type:dy(H),description:_.Su(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Fa(HV(H))}});
return{action:b,docs:Y,viewToken:V,view:w||"webcam",v2Translated:!0}},lso=function(Y,b,w,V){return{action:b,
docs:Y.map(nwU),viewToken:V,view:Mat(w||"upload",Y),extraUserInputs:B2r(Y),v2Translated:!0}},Mat=function(Y,b){return b.some(function(w){var V;
return((V=_.EK(w,bz,30))==null?void 0:_.ay(V,3))===9})?Y+"/gmailphotos":Y},klj=function(Y,b,w,V){var H=Y.map(function(f){var E={id:f.getId().getId(),
serviceId:"picasa",mimeType:_.Su(f,7),name:f.getName(),type:dy(f),lastEditedUtc:_.wI5(_.EK(f,_.A9,12)).getTime(),url:f.getUrl(),sizeBytes:Number(IGM(f)),description:_.Su(f,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Fa(HV(f)),mediaKey:f.getId().getId(),parentId:_.Su(f,4)},U,X=(U=_.EK(f,fAo,18))==null?void 0:_.EK(U,gsI,3);X&&(E.latitude=LE(X,1),E.longitude=LE(X,2));var I;f=(I=_.EK(f,fAo,18))==null?void 0:FT(I,6);I=f!=null?Sh(f):void 0;I&&(E.version=
I);return E});
return{action:b,docs:H,viewToken:V,view:w||"photos",extraUserInputs:B2r(Y),v2Translated:!0}},IsU=function(Y,b,w,V){Y=Y.map(function(H){return{id:H.getId().getId(),
serviceId:"et",name:HV(H)[0].getUrl().split("/").pop(),description:_.Su(H,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Fa(HV(H),"etjpg")}});
return{action:b,docs:Y,viewToken:V,view:w||"et",v2Translated:!0}},vw8=function(Y,b,w,V){Y=Y.map(function(H){var f=H.getId().getId(),E=V["2"];
return{id:f,serviceId:E.type!=="gmail_themes"&&E.parent==="6226252643674576769"?"picasa":"static_themes",name:H.getName(),mimeType:_.Su(H,7),type:dy(H),description:_.Su(H,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:H.getUrl(),embedUrl:H.getUrl(),thumbnails:Fa(HV(H))}});
return{action:b,docs:Y,viewToken:V,view:w||"photos",v2Translated:!0}},h7d=function(Y,b){Y=Y.map(function(w){var V=_.EK(w,Hg9,27);
V=_.s3(V,1,_.WI,_.V9())[0];return{id:w.getId().getId(),serviceId:"contacts",mimeType:_.Su(w,7),name:w.getName(),description:_.Su(w,3),url:"mailto:"+V,thumbnail:[{url:_.Su(w,11)}],email:V}});
return{action:b,docs:Y,view:"contacts",v2Translated:!0}},owr=function(Y){if(!Y)return{};
var b=_.Su(Y,3);b=b&&JSON.parse(b)||{};return{0:_.Su(Y,1),1:_.Su(Y,2),2:b}},Fa=function(Y,b){b=b===void 0?"":b;
if(!Y.length)return null;b=="etjpg"&&(Y=Y.filter(function(w){return w.getUrl().includes("w1200-h300")}));
return Y.map(function(w){return{url:w.getUrl(),height:w.getHeight(),width:w.getWidth(),type:b}})},B2r=function(Y){return{isAttachment:Y.some(function(b){return _.dM(b,31)})}},nwU=function(Y){var b,w={id:(b=Y.getId())==null?void 0:b.getId(),
serviceId:e7j(Y),mimeType:_.Su(Y,7),name:Y.getName(),type:dy(Y),sizeBytes:Number(IGM(Y)),description:_.Su(Y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Fa(HV(Y)),isNew:!0};if(b=_.EK(Y,bz,30)){w.dataUrl=_.Su(b,1)||null;a:{var V=_.EK(Y,bz,30);switch(_.ay(V,3)){case 9:V=_.WZ(V,UF$,2,V2);V={remoteRefs:V&&_.Su(V,1)};break a;case 10:case 15:V=_.WZ(V,cOt,4,V2);var H=HV(Y);V={photo_id:V&&_.Su(V,1),media_key:Y.getId().getId(),media_type:_.ay(Y,6)===1?1:2,image_url:H&&
H[0].getUrl(),width:H&&String(H[0].getWidth()),height:H&&String(H[0].getHeight())};break a}V=null}w.uploadMetadata=V;w.uploadId=_.Su(b,9)||null;w.uploadState=pho(b)||null}(V=b&&_.WZ(b,cOt,4,V2))&&(w.id=_.Su(V,1));(V=b&&_.WZ(b,XI9,5,V2))&&(w.contentId=_.Su(V,1));(V=b&&_.WZ(b,Nt8,7,V2))&&(w.contentId=_.Su(V,1));(V=b&&_.WZ(b,Es9,6,V2))&&(w.contentId=_.Su(V,1));(b==null?void 0:_.ay(b,3))===1&&(w.mediaKey=Y.getId().getId());return w},e7j=function(Y){var b;
switch(((b=_.EK(Y,bz,30))==null?void 0:_.ay(b,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},dy=function(Y){switch(_.ay(Y,6)){case 1:case 21:return"photo";
case 2:return"video";case 6:return"folder";case 13:return"calendar";case 14:return"album";case 19:return"contact";case 3:case 4:case 5:case 7:case 12:return _.Su(Y,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},pho=function(Y){switch(Y==null?void 0:_.ay(Y,8)){case 0:return"default";
case 1:return"canceled";case 2:return"error";case 3:return"running";case 4:return"scheduled";case 5:return"success"}return null};var dGo,OQk,tak,R7K;_.F4j=function(Y,b){var w=b||{};b=w.document||document;var V=_.Xk(Y).toString(),H=(new Mh(b)).createElement("SCRIPT"),f={script_:H,timeout_:void 0},E=new Th(OQk,f),U=null,X=w.timeout!=null?w.timeout:5E3;X>0&&(U=window.setTimeout(function(){tak(H,!0);E.errback(new R7K(1,"Timeout reached for loading script "+V))},X),f.timeout_=U);
H.onload=H.onreadystatechange=function(){H.readyState&&H.readyState!="loaded"&&H.readyState!="complete"||(tak(H,w.cleanupWhenDone||!1,U),E.callback(null))};
H.onerror=function(){tak(H,!0,U);E.errback(new R7K(0,"Error while loading script "+V))};
f=w.attributes||{};_.BL.extend(f,{type:"text/javascript",charset:"UTF-8"});j6C(H,f);_.Ku(H,Y);dGo(b).appendChild(H);return E};
dGo=function(Y){var b=s2("HEAD",Y);return b&&b.length!==0?b[0]:Y.documentElement};
OQk=function(){if(this&&this.script_){var Y=this.script_;Y&&Y.tagName=="SCRIPT"&&tak(Y,!0,this.timeout_)}};
tak=function(Y,b,w){w!=null&&_.wB.clearTimeout(w);Y.onload=function(){};
Y.onerror=function(){};
Y.onreadystatechange=function(){};
b&&window.setTimeout(function(){_.qf(Y)},0)};
R7K=function(Y,b){var w="Jsloader error (code #"+Y+")";b&&(w+=": "+b);_.Yb.call(this,w);this.code=Y};
_.DX(R7K,_.Yb);var L49=_.wM(["https://apis.google.com/js/api.js"]),SNC=_.HL(L49),W4K=function(Y,b){var w=!1,V=as9(Y,b).then(function(f){w=!0;return f}),H=_.D1o(5E3).then(function(){return w?as9(Y,b):rld(b).then(function(f){return z7K(f,Y)})});
return Yu$([V,H])},as9=function(Y,b){return K4_(b).then(function(w){return z7K(w,Y)})},z7K=function(Y,b){var w=_.Hg(b,"gapi.")?b.slice(5):b;
return Y[w]?_.k7(Y[w]):new _.hh(function(V,H){var f=tS(function(){H(Error("cb"))},3E4);
Y.load(b,{callback:function(){_.wB.clearTimeout(f);V(Y[w])},
onerror:function(E){_.wB.clearTimeout(f);H(E)}})})},K4_=function(Y){return Y.gapi&&Y.gapi.load?_.k7(Y.gapi):rld(Y)},rld=function(Y){return _.F4j(SNC,{document:Y.document}).then(function(){return Y.gapi})},iQd=function(){};
iQd.prototype.load=function(Y,b){b=b===void 0?window:b;var w=Date.now();return W4K(Y,b).then(function(V){var H=Date.now();return{library:V,loadStartMs:w,loadEndMs:H}},function(V){throw V instanceof Error?V:Error(String(V));
})};var D$B=function(){_.BE.call(this);this.gapiLoader_=new iQd;this.origin_=null;this.gapiPickerIframeResolver_=_.j9();this.gapiIframesResolver_=_.j9();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.P(D$B,_.BE);var Al9=function(Y,b){var w=_.Aq("gapi.iframes",b);return w?(Y=Date.now(),_.k7({library:w,loadStartMs:Y,loadEndMs:Y})):Y.gapiLoader_.load("gapi.iframes",b)},CNC=function(Y,b,w,V,H,f){var E=!1;
E=E===void 0?!1:E;Al9(Y,pl(b.ownerDocument)).then(function(U){var X=U.library;Y.gapiIframesResolver_.resolve(X);U=Y.gapiPickerIframeResolver_;var I=U.resolve,k=E;k=k===void 0?!1:k;var l={};l["host-message-handler"]=w;Y.hostMessageHandlerInternal_=l;var x=_.$G(V);x=_.$G(x);x=_.fP(_.gy(_.H2(new _.Jw,x.scheme_),x.JSC$8068_domain_),x.JSC$8068_port_).toString();Y.origin_=x;x=(new Uf9).setUrl(V);x.JSC$8083_obj_.where=b;x.JSC$8083_obj_.allowPost=k;x.JSC$8083_obj_.messageHandlers=l;k=_.Aq("makeWhiteListIframesFilter",
X)([Y.origin_]);x.JSC$8083_obj_.messageHandlersFilter=k;H!=null&&x.setId(H);f!=null&&(x.JSC$8083_obj_.rpctoken=f);k=cy9(x);k.JSC$8080_obj_.style={display:"block","min-width":"100%",width:"1px"};k.JSC$8080_obj_.height="100%";cy9(x).value().allow="camera 'src' "+Y.origin_;X=X.getContext().openChild(x.value());I.call(U,X)},function(U){Y.gapiIframesResolver_.reject(U);
Y.gapiPickerIframeResolver_.reject(U)});
return Y.gapiPickerIframeResolver_.promise},yl_=function(Y,b){return _.p1([Y.gapiIframesResolver_.promise,
Y.gapiPickerIframeResolver_.promise]).then(function(w){var V=_.N(w);w=V.next().value;return(V=V.next().value)?V.send("picker-message-handler",b,void 0,_.Aq("makeWhiteListIframesFilter",w)([Y.origin_])):_.OQ(Error("db"))})};
D$B.prototype.disposeInternal=function(){$G5(this);_.BE.prototype.disposeInternal.call(this)};
var $G5=function(Y){Y.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete Y.hostMessageHandlerInternal_["host-message-handler"])})};var j29=function(){this.nextId=0};var T2U=function(Y,b){switch(Y.action){case "select-contacts":Y=Glo(Y.contacts);break;case "visibility":Y=Y.visible;var w=new Nk;Y=_.iL(w,1,7).setVisible(Y);w={};w["iframe-command"]=Y.serialize();Y=w;break;default:Y=null}return Y?yl_(b,Y):_.k7()},Glo=function(Y){if(!Y||Y.length==0)return null;
var b=new Nk;_.iL(b,1,11);var w=new j29;Y.forEach(function(V){if(V.email){var H=new tZ;H=_.bf(H,2,V.name?V.name:V.email);var f=new Hg9;V=_.Ntq(f,1,_.SX,V.email,_.WI);V=_.HN(H,27,V);H=V.setId;f=(new Te).setId(":"+(w.nextId++).toString(36));f=_.iL(f,2,12);V=H.call(V,f)}else V=null;V&&Qu(b,7,tZ,V)});
Y={};Y["iframe-command"]=b.serialize();return Y};_.Jlk=function(){if(eVL){var Y=/Windows NT ([0-9.]+)/;return(Y=Y.exec(_.kb()))?Y[1]:"0"}return _.MWM?(Y=/1[0|1][_.][0-9_.]+/,(Y=Y.exec(_.kb()))?Y[0].replace(/_/g,"."):"10"):bPG?(Y=/Android\s+([^\);]+)(\)|;)/,(Y=Y.exec(_.kb()))?Y[1]:""):Odt||tWM||RVG?(Y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Y=Y.exec(_.kb()))?Y[1].replace(/_/g,"."):""):""}();var LP;LP=function(Y){return(Y=Y.exec(_.kb()))?Y[1]:""};
_.uI$=function(){if(_.qX)return LP(/Firefox\/([0-9.]+)/);if(_.kv||Yr||ZdB)return zVr;if(_.s0){if(_.dB()||_.obI()){var Y=LP(/CriOS\/([0-9.]+)/);if(Y)return Y}return LP(/Chrome\/([0-9.]+)/)}if(_.ra&&!_.dB())return LP(/Version\/([0-9.]+)/);if(Q3t||vLG){if(Y=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.kb()))return Y[1]+"."+Y[2]}else if(CiK)return(Y=LP(/Android\s+([0-9.]+)/))?Y:LP(/Version\/([0-9.]+)/);return""}();var YzQ=function(){};
_.U0(YzQ);YzQ.prototype.nextId_=0;_.SB=function(Y){return":"+(Y.nextId_++).toString(36)};var aB=function(Y){_.n1.call(this);this.JSC$8178_dom_=Y||la();this.JSC$8178_id_=null;this.inDocument_=!1;this.JSC$8178_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.DX(aB,_.n1);aB.prototype.idGenerator_=YzQ.getInstance();aB.prototype.getId=function(){return this.JSC$8178_id_||(this.JSC$8178_id_=_.SB(this.idGenerator_))};
aB.prototype.setId=function(Y){this.parent_&&this.parent_.childIndex_&&(_.BL.remove(this.parent_.childIndex_,this.JSC$8178_id_),_.BL.add(this.parent_.childIndex_,Y,this));this.JSC$8178_id_=Y};
aB.prototype.getElement=function(){return this.JSC$8178_element_};
var ry=function(Y){Y.googUiComponentHandler_||(Y.googUiComponentHandler_=new _.fM(Y));return Y.googUiComponentHandler_},b7Q=function(Y,b){if(Y==b)throw Error("eb");
var w;if(w=b&&Y.parent_&&Y.JSC$8178_id_){w=Y.parent_;var V=Y.JSC$8178_id_;w=w.childIndex_&&V?_.BL.get(w.childIndex_,V)||null:null}if(w&&Y.parent_!=b)throw Error("eb");Y.parent_=b;aB.superClass_.setParentEventTarget.call(Y,b)};
aB.prototype.setParentEventTarget=function(Y){if(this.parent_&&this.parent_!=Y)throw Error("fb");aB.superClass_.setParentEventTarget.call(this,Y)};
aB.prototype.JSC$8180_createDom=function(){this.JSC$8178_element_=this.JSC$8178_dom_.createElement("DIV")};
aB.prototype.render=function(Y){wfd(this,Y)};
var wfd=function(Y,b,w){if(Y.inDocument_)throw Error("gb");Y.JSC$8178_element_||Y.JSC$8180_createDom();b?b.insertBefore(Y.JSC$8178_element_,w||null):Y.JSC$8178_dom_.JSC$7363_document_.body.appendChild(Y.JSC$8178_element_);Y.parent_&&!Y.parent_.inDocument_||Y.enterDocument()};
_.g=aB.prototype;_.g.decorate=function(Y){if(this.inDocument_)throw Error("gb");if(Y&&this.canDecorate(Y)){this.wasDecorated_=!0;var b=_.Oy(Y);this.JSC$8178_dom_&&this.JSC$8178_dom_.JSC$7363_document_==b||(this.JSC$8178_dom_=la(Y));this.decorateInternal(Y);this.enterDocument()}else throw Error("hb");};
_.g.canDecorate=function(){return!0};
_.g.decorateInternal=function(Y){this.JSC$8178_element_=Y};
_.g.enterDocument=function(){this.inDocument_=!0;V4Q(this,function(Y){!Y.inDocument_&&Y.getElement()&&Y.enterDocument()})};
_.g.exitDocument=function(){V4Q(this,function(Y){Y.inDocument_&&Y.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);V4Q(this,function(Y){Y.dispose()});
!this.wasDecorated_&&this.JSC$8178_element_&&_.qf(this.JSC$8178_element_);this.parent_=this.model_=this.JSC$8178_element_=this.childIndex_=this.children_=null;aB.superClass_.disposeInternal.call(this)};
_.g.getModel=function(){return this.model_};
_.g.addChild=function(Y,b){var w=this.children_?this.children_.length:0;if(Y.inDocument_&&(b||!this.inDocument_))throw Error("gb");if(w<0||w>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);Y.parent_==this?(_.BL.set(this.childIndex_,Y.getId(),Y),_.$b(this.children_,Y)):_.BL.add(this.childIndex_,Y.getId(),Y);b7Q(Y,this);_.qMq(this.children_,w,0,Y);Y.inDocument_&&this.inDocument_&&Y.parent_==this?(b=this.getContentElement(),
(b.childNodes[w]||null)!=Y.getElement()&&(Y.getElement().parentElement==b&&b.removeChild(Y.getElement()),w=b.childNodes[w]||null,b.insertBefore(Y.getElement(),w))):b?(this.JSC$8178_element_||this.JSC$8180_createDom(),w=this.children_?this.children_[w+1]||null:null,wfd(Y,this.getContentElement(),w?w.JSC$8178_element_:null)):this.inDocument_&&!Y.inDocument_&&Y.JSC$8178_element_&&Y.JSC$8178_element_.parentNode&&Y.JSC$8178_element_.parentNode.nodeType==1&&Y.enterDocument()};
_.g.getContentElement=function(){return this.JSC$8178_element_};
var V4Q=function(Y,b){Y.children_&&Y.children_.forEach(b,void 0)};
aB.prototype.removeChild=function(Y,b){if(Y){var w=typeof Y==="string"?Y:Y.getId();Y=this.childIndex_&&w?_.BL.get(this.childIndex_,w)||null:null;w&&Y&&(_.BL.remove(this.childIndex_,w),_.$b(this.children_,Y),b&&(Y.exitDocument(),Y.JSC$8178_element_&&_.qf(Y.JSC$8178_element_)),b7Q(Y,null))}if(!Y)throw Error("jb");return Y};_.DX(V4r,wfb);_.DX(H7v,wfb);var H7r;var g2r=function(Y,b){b?Y.setAttribute("role",b):Y.removeAttribute("role")},zV=function(Y,b,w){Array.isArray(w)&&(w=w.join(" "));
var V="aria-"+b;w===""||w==void 0?(H7r||(w={},H7r=(w.atomic=!1,w.autocomplete="none",w.dropeffect="none",w.haspopup=!1,w.live="off",w.multiline=!1,w.multiselectable=!1,w.orientation="vertical",w.readonly=!1,w.relevant="additions text",w.required=!1,w.sort="none",w.busy=!1,w.disabled=!1,w.hidden=!1,w.invalid="false",w)),w=H7r,b in w?Y.setAttribute(V,w[b]):Y.removeAttribute(V)):Y.setAttribute(V,w)};var fZj;_.W2=function(Y,b,w){_.n1.call(this);this.target=Y;this.handle=b||Y;this.limits=w||new rm(NaN,NaN,NaN,NaN);this.JSC$8183_document_=_.Oy(Y);this.JSC$8183_eventHandler_=new _.fM(this);_.os(this,this.JSC$8183_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;_.ez(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=fZj};
_.DX(_.W2,_.n1);fZj=_.wB.document&&_.wB.document.documentElement&&!!_.wB.document.documentElement.setCapture&&!!_.wB.document.releaseCapture;_.NxC=function(Y,b){Y.hysteresisDistanceSquared_=Math.pow(b,2)};
_.g=_.W2.prototype;_.g.setEnabled=function(Y){this.enabled_=Y};
_.g.disposeInternal=function(){_.W2.superClass_.disposeInternal.call(this);_.BV(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8183_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8183_document_.releaseCapture();this.handle=this.target=null};
_.g.startDrag=function(Y){var b=Y.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(Y.event_.button!=0||_.MWM&&Y.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new KP("start",this,Y.clientX,Y.clientY,Y)))this.dragging_=!0,b&&Y.preventDefault();else return;else b&&Y.preventDefault();b=this.JSC$8183_document_;var w=b.documentElement,V=!this.useSetCapture_;this.JSC$8183_eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,
{capture:V,passive:!1});this.JSC$8183_eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,V);this.useSetCapture_?(w.setCapture(!1),this.JSC$8183_eventHandler_.listen(w,"losecapture",this.endDrag)):this.JSC$8183_eventHandler_.listen(pl(b),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8183_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,V);this.clientX=this.startX=Y.clientX;this.clientY=this.startY=Y.clientY;this.screenX=Y.screenX;this.screenY=Y.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=kQ(la(this.JSC$8183_document_))}};
_.g.endDrag=function(Y,b){this.JSC$8183_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8183_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new KP("end",this,Y.clientX,Y.clientY,Y,E2K(this,this.deltaX),cqC(this,this.deltaY),b||Y.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.g.handleMove_=function(Y){if(this.enabled_){var b=Y.clientX-this.clientX,w=Y.clientY-this.clientY;this.clientX=Y.clientX;this.clientY=Y.clientY;this.screenX=Y.screenX;this.screenY=Y.screenY;if(!this.dragging_){var V=this.startX-this.clientX,H=this.startY-this.clientY;if(V*V+H*H>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new KP("start",this,Y.clientX,Y.clientY,Y)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(Y);return}}w=U$K(this,b,w);b=w.x;w=w.y;this.dragging_&&this.dispatchEvent(new KP("beforedrag",
this,Y.clientX,Y.clientY,Y,b,w))&&(XfI(this,Y,b,w),Y.preventDefault())}};
var U$K=function(Y,b,w){var V=kQ(la(Y.JSC$8183_document_));b+=V.x-Y.pageScroll.x;w+=V.y-Y.pageScroll.y;Y.pageScroll=V;Y.deltaX+=b;Y.deltaY+=w;return new _.eq(E2K(Y,Y.deltaX),cqC(Y,Y.deltaY))};
_.W2.prototype.onScroll_=function(Y){var b=U$K(this,0,0);Y.clientX=this.clientX;Y.clientY=this.clientY;XfI(this,Y,b.x,b.y)};
var XfI=function(Y,b,w,V){Y.target.style.left=w+"px";Y.target.style.top=V+"px";Y.dispatchEvent(new KP("drag",Y,b.clientX,b.clientY,b,w,V))},E2K=function(Y,b){var w=Y.limits;
Y=isNaN(w.left)?null:w.left;w=isNaN(w.width)?0:w.width;return Math.min(Y!=null?Y+w:Infinity,Math.max(Y!=null?Y:-Infinity,b))},cqC=function(Y,b){var w=Y.limits;
Y=isNaN(w.top)?null:w.top;w=isNaN(w.height)?0:w.height;return Math.min(Y!=null?Y+w:Infinity,Math.max(Y!=null?Y:-Infinity,b))};
_.W2.prototype.isDragging=function(){return this.dragging_};
var KP=function(Y,b,w,V,H,f,E){_.Q2.call(this,Y);this.clientX=w;this.clientY=V;this.browserEvent=H;this.left=f!==void 0?f:b.deltaX;this.top=E!==void 0?E:b.deltaY};
_.DX(KP,_.Q2);var iY=function(Y){this.JSC$8190_map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("pa");for(var w=0;w<b;w+=2)this.set(arguments[w],arguments[w+1])}else Y&&this.addAll(Y)};
_.g=iY.prototype;_.g.getCount=function(){return this.JSC$8190_map_.size};
_.g.getValues=function(){return Array.from(this.JSC$8190_map_.values())};
_.g.getKeys=function(){return Array.from(this.JSC$8190_map_.keys())};
_.g.containsKey=function(Y){return this.JSC$8190_map_.has(Y)};
_.g.containsValue=function(Y){return this.getValues().some(function(b){return b==Y})};
_.g.equals=function(Y,b){var w=this;b=b===void 0?function(V,H){return V===H}:b;
return this===Y?!0:this.JSC$8190_map_.size!=Y.getCount()?!1:this.getKeys().every(function(V){return b(w.JSC$8190_map_.get(V),Y.get(V))})};
_.g.isEmpty=function(){return this.JSC$8190_map_.size==0};
_.g.clear=function(){this.JSC$8190_map_.clear()};
_.g.remove=function(Y){return this.JSC$8190_map_.delete(Y)};
_.g.get=function(Y,b){return this.JSC$8190_map_.has(Y)?this.JSC$8190_map_.get(Y):b};
_.g.set=function(Y,b){this.JSC$8190_map_.set(Y,b);return this};
_.g.addAll=function(Y){if(Y instanceof iY){Y=_.N(Y.JSC$8190_map_);for(var b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;w=w.next().value;this.JSC$8190_map_.set(b,w)}}else if(Y)for(Y=_.N(Object.entries(Y)),b=Y.next();!b.done;b=Y.next())w=_.N(b.value),b=w.next().value,w=w.next().value,this.JSC$8190_map_.set(b,w)};
_.g.forEach=function(Y,b){var w=this;b=b===void 0?this:b;this.JSC$8190_map_.forEach(function(V,H){return Y.call(b,V,H,w)})};
_.g.clone=function(){return new iY(this)};(function(){for(var Y=["ms","moz","webkit","o"],b,w=0;b=Y[w]&&!_.wB.requestAnimationFrame;++w)_.wB.requestAnimationFrame=_.wB[b+"RequestAnimationFrame"],_.wB.cancelAnimationFrame=_.wB[b+"CancelAnimationFrame"]||_.wB[b+"CancelRequestAnimationFrame"];if(!_.wB.requestAnimationFrame){var V=0;_.wB.requestAnimationFrame=function(H){var f=(new Date).getTime(),E=Math.max(0,16-(f-V));V=f+E;return _.wB.setTimeout(function(){H(f+E)},E)};
_.wB.cancelAnimationFrame||(_.wB.cancelAnimationFrame=function(H){clearTimeout(H)})}})();
var D$U=[[],[]],m$I=0,o2r=!1,IZj=0,lZ_=function(Y,b){var w=IZj++,V={measureTask:{id:w,fn:Y.measure,context:b},mutateTask:{id:w,fn:Y.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(V.args||(V.args=[]),V.args.length=0,V.args.push.apply(V.args,arguments),V.args.push(V.state)):V.args&&V.args.length!=0?(V.args[0]=V.state,V.args.length=1):V.args=[V.state];V.isScheduled||(V.isScheduled=!0,D$U[m$I].push(V));o2r||(o2r=!0,window.requestAnimationFrame(kOQ))}},kOQ=
function(){o2r=!1;
var Y=D$U[m$I],b=Y.length;m$I=(m$I+1)%2;for(var w,V=0;V<b;++V){w=Y[V];var H=w.measureTask;w.isScheduled=!1;H.fn&&H.fn.apply(H.context,w.args)}for(V=0;V<b;++V)w=Y[V],H=w.mutateTask,w.isScheduled=!1,H.fn&&H.fn.apply(H.context,w.args),w.state={};Y.length=0};var hUQ=_.wM(["about:blank"]),x$9=_.wM(["javascript:undefined"]),qz$=_.HL(hUQ);_.Xk(qz$);var sI8=_.HL(x$9);_.Xk(sI8);var Au=function(Y){_.n1.call(this);this.JSC$8196_element_=Y;this.listenKeyIn_=_.ez(this.JSC$8196_element_,"focus",this,!0);this.listenKeyOut_=_.ez(this.JSC$8196_element_,"blur",this,!0)};
_.DX(Au,_.n1);Au.prototype.handleEvent=function(Y){var b=new _.vV(Y.event_);b.type=Y.type=="focusin"||Y.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};
Au.prototype.disposeInternal=function(){Au.superClass_.disposeInternal.call(this);BP(this.listenKeyIn_);BP(this.listenKeyOut_);delete this.JSC$8196_element_};var QII=function(Y,b){this.JSC$8199_element_=Y;this.JSC$8199_dom_=b};var CP=function(Y,b){aB.call(this,b);this.useIframeMask_=!!Y;this.lastFocus_=null;this.resizeBackgroundTask_=lZ_({mutate:this.resizeBackground_},this);lZ_({mutate:this.updateModalAndBackground_},this)};
_.DX(CP,aB);_.g=CP.prototype;_.g.focusHandler_=null;_.g.visible_=!1;_.g.bgEl_=null;_.g.bgIframeEl_=null;_.g.tabCatcherElement_=null;_.g.backwardTabWrapInProgress_=!1;_.g.getCssClass=function(){return"goog-modalpopup"};
_.g.getBackgroundElement=function(){return this.bgEl_};
_.g.JSC$8180_createDom=function(){CP.superClass_.JSC$8180_createDom.call(this);var Y=this.getElement(),b=Dt(this.getCssClass()).split(" ");jO(Y,b);Y.tabIndex=0;_.T_(Y,!1);v2k(this);P1C(this)};
var v2k=function(Y){if(Y.useIframeMask_&&!Y.bgIframeEl_){var b=Y.JSC$8178_dom_.JSC$7365_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Rg(b,qz$);Y.bgIframeEl_=b;Y.bgIframeEl_.className=Y.getCssClass()+"-bg";_.T_(Y.bgIframeEl_,!1);PCd(Y.bgIframeEl_,0)}Y.bgEl_||(Y.bgEl_=Y.JSC$8178_dom_.JSC$7365_createDom("DIV",Y.getCssClass()+"-bg"),_.T_(Y.bgEl_,!1))},P1C=function(Y){Y.tabCatcherElement_||(Y.tabCatcherElement_=Y.JSC$8178_dom_.createElement("SPAN"),_.T_(Y.tabCatcherElement_,
!1),Y.tabCatcherElement_.tabIndex=0,Y.tabCatcherElement_.style.position="absolute")};
_.g=CP.prototype;_.g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.g.canDecorate=function(Y){return!!Y&&Y.tagName=="DIV"};
_.g.decorateInternal=function(Y){CP.superClass_.decorateInternal.call(this,Y);Y=Dt(this.getCssClass()).split(" ");jO(this.getElement(),Y);v2k(this);P1C(this);this.getElement().tabIndex=0;_.T_(this.getElement(),!1)};
_.g.enterDocument=function(){this.bgIframeEl_&&_.F1(this.bgIframeEl_,this.getElement());_.F1(this.bgEl_,this.getElement());CP.superClass_.enterDocument.call(this);_.Lj(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Au(this.JSC$8178_dom_.JSC$7363_document_);ry(this).listen(this.focusHandler_,"focusin",this.onFocus);Z7K(this,!1)};
_.g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.ua(this.focusHandler_);CP.superClass_.exitDocument.call(this);_.qf(this.bgIframeEl_);_.qf(this.bgEl_);_.qf(this.tabCatcherElement_)};
_.g.setVisible=function(Y){if(Y!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&Z7K(this,Y),Y){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8178_dom_.JSC$7363_document_.activeElement}catch(H){}this.updateModalAndBackground_();ry(this).listen(this.JSC$8178_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8178_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);BxK(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)ZR(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){ry(this).unlisten(this.JSC$8178_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8178_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)ZR(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.JSC$8178_dom_,w=b.JSC$7363_document_.body,V=b.JSC$7363_document_.activeElement||w;if(!this.lastFocus_||this.lastFocus_==w){this.lastFocus_=null;break a}(V==w||b.contains(this.getElement(),V))&&this.lastFocus_.focus()}catch(H){}this.lastFocus_=
null}}};
var Z7K=function(Y,b){Y.modalAriaVisibilityHelper_||(Y.modalAriaVisibilityHelper_=new QII(Y.JSC$8178_element_,Y.JSC$8178_dom_));Y=Y.modalAriaVisibilityHelper_;if(b){Y.hiddenElements_||(Y.hiddenElements_=[]);b=Y.JSC$8199_dom_.getChildren(Y.JSC$8199_dom_.JSC$7363_document_.body);for(var w=0;w<b.length;w++){var V=b[w],H;if(H=V!=Y.JSC$8199_element_)H=V.getAttribute("aria-hidden"),H=!(H==null||H==void 0?0:String(H));H&&(zV(V,"hidden",!0),Y.hiddenElements_.push(V))}}else if(Y.hiddenElements_){for(b=0;b<
Y.hiddenElements_.length;b++)Y.hiddenElements_[b].removeAttribute("aria-hidden");Y.hiddenElements_=null}};
CP.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var BxK=function(Y,b){Y.bgIframeEl_&&_.T_(Y.bgIframeEl_,b);Y.bgEl_&&_.T_(Y.bgEl_,b);_.T_(Y.getElement(),b);_.T_(Y.tabCatcherElement_,b)};
_.g=CP.prototype;_.g.onShow=function(){this.dispatchEvent("show")};
_.g.onHide=function(){BxK(this,!1);this.dispatchEvent("hide")};
_.g.isVisible=function(){return this.visible_};
_.g.focus=function(){this.focusElement_()};
_.g.resizeBackground_=function(){this.bgIframeEl_&&_.T_(this.bgIframeEl_,!1);this.bgEl_&&_.T_(this.bgEl_,!1);var Y=this.JSC$8178_dom_.JSC$7363_document_;var b=_.Iz(pl(this.JSC$8178_dom_.JSC$7363_document_)||window);var w=Math.max(b.width,Math.max(Y.body.scrollWidth,Y.documentElement.scrollWidth));Y=Math.max(b.height,Math.max(Y.body.scrollHeight,Y.documentElement.scrollHeight));this.bgIframeEl_&&(_.T_(this.bgIframeEl_,!0),_.qtj(this.bgIframeEl_,w,Y));this.bgEl_&&(_.T_(this.bgEl_,!0),_.qtj(this.bgEl_,
w,Y))};
_.g.reposition=function(){var Y;if(_.xQt(this.getElement())=="fixed")var b=Y=0;else b=kQ(this.JSC$8178_dom_),Y=b.x,b=b.y;var w=Qkj(this.getElement());var V=_.Iz(pl(this.JSC$8178_dom_.JSC$7363_document_)||window);Y=Math.max(Y+V.width/2-w.width/2,0);b=Math.max(b+V.height/2-w.height/2,0);Kj(this.getElement(),Y,b);Kj(this.tabCatcherElement_,Y,b)};
_.g.onFocus=function(Y){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():Y.target==this.tabCatcherElement_&&tS(this.focusElement_,0,this)};
_.g.focusElement_=function(){try{this.getElement().focus()}catch(Y){}};
_.g.disposeInternal=function(){_.ua(this.popupShowTransition_);this.popupShowTransition_=null;_.ua(this.popupHideTransition_);this.popupHideTransition_=null;_.ua(this.bgShowTransition_);this.bgShowTransition_=null;_.ua(this.bgHideTransition_);this.bgHideTransition_=null;CP.superClass_.disposeInternal.call(this)};var as=function(Y,b,w){CP.call(this,b,w);this.JSC$8209_class_=Y||"modal-dialog";this.buttons_=(new yJ).addButton(n2t,!0).addButton(M4I,!1,!0)};
_.DX(as,CP);_.g=as.prototype;_.g.escapeToCancel_=!0;_.g.hasTitleCloseButton_=!0;_.g.modal_=!0;_.g.draggable_=!0;_.g.backgroundElementOpacity_=.5;_.g.title_="";_.g.JSC$8211_dragger_=null;_.g.JSC$8211_disposeOnHide_=!1;_.g.titleEl_=null;_.g.titleTextEl_=null;_.g.titleTextId_=null;_.g.titleCloseEl_=null;_.g.contentEl_=null;_.g.buttonEl_=null;_.g.getCssClass=function(){return this.JSC$8209_class_};
_.g.setTitle=function(Y){this.title_=Y;this.titleTextEl_&&_.av(this.titleTextEl_,Y)};
_.g.getTitle=function(){return this.title_};
_.g.getContent=function(){return""};
_.g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var eUK=function(Y){Y.getElement()||Y.render();return Y.getElement()};
as.prototype.getBackgroundElement=function(){this.getElement()||this.render();return as.superClass_.getBackgroundElement.call(this)};
var pfk=function(Y,b){Y.backgroundElementOpacity_=b;Y.getElement()&&(b=Y.getBackgroundElement())&&PCd(b,Y.backgroundElementOpacity_)};
as.prototype.setDraggable=function(Y){this.draggable_=Y;O75(this,Y&&this.inDocument_)};
as.prototype.JSC$8211_handleDrag=function(){};
var O75=function(Y,b){var w=Dt(Y.JSC$8209_class_+"-title-draggable").split(" ");Y.getElement()&&(b?jO(Y.titleEl_,w):NFK(Y.titleEl_,w));b&&!Y.JSC$8211_dragger_?(b=new _.W2(Y.getElement(),Y.titleEl_),Y.JSC$8211_dragger_=b,jO(Y.titleEl_,w),_.ez(Y.JSC$8211_dragger_,"start",Y.setDraggerLimits_,!1,Y),_.ez(Y.JSC$8211_dragger_,"drag",Y.JSC$8211_handleDrag,!1,Y)):!b&&Y.JSC$8211_dragger_&&(Y.JSC$8211_dragger_.dispose(),Y.JSC$8211_dragger_=null)};
_.g=as.prototype;
_.g.JSC$8180_createDom=function(){as.superClass_.JSC$8180_createDom.call(this);var Y=this.getElement(),b=this.JSC$8178_dom_;this.titleTextId_=this.getId();var w=this.getId()+".contentEl";this.titleEl_=b.JSC$7365_createDom("DIV",this.JSC$8209_class_+"-title",this.titleTextEl_=b.JSC$7365_createDom("SPAN",{className:this.JSC$8209_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.JSC$7365_createDom("SPAN",this.JSC$8209_class_+"-title-close"));YtU(Y,this.titleEl_,this.contentEl_=
b.JSC$7365_createDom("DIV",{className:this.JSC$8209_class_+"-content",id:w}),this.buttonEl_=b.JSC$7365_createDom("DIV",this.JSC$8209_class_+"-buttons"));g2r(this.titleTextEl_,"heading");g2r(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;zV(this.titleCloseEl_,"label","Close");g2r(Y,"dialog");zV(Y,"labelledby",this.titleTextId_||"");_.T_(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(Y=this.buttons_,Y.JSC$8212_element_=this.buttonEl_,Y.render());_.T_(this.buttonEl_,!!this.buttons_);
pfk(this,this.backgroundElementOpacity_)};
_.g.decorateInternal=function(Y){as.superClass_.decorateInternal.call(this,Y);Y=this.getElement();var b=this.JSC$8209_class_+"-content";this.contentEl_=ex(document,null,b,Y)[0];this.contentEl_||(this.contentEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",b),Y.appendChild(this.contentEl_));b=this.JSC$8209_class_+"-title";var w=this.JSC$8209_class_+"-title-text",V=this.JSC$8209_class_+"-title-close";(this.titleEl_=ex(document,null,b,Y)[0])?(this.titleTextEl_=ex(document,null,w,this.titleEl_)[0],this.titleCloseEl_=
ex(document,null,V,this.titleEl_)[0]):(this.titleEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",b),Y.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=od9(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.OI("SPAN",{className:w,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;zV(Y,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8178_dom_.JSC$7365_createDom("SPAN",
V),this.titleEl_.appendChild(this.titleCloseEl_));_.T_(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.JSC$8209_class_+"-buttons";(this.buttonEl_=ex(document,null,b,Y)[0])?(this.buttons_=new yJ(this.JSC$8178_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",b),Y.appendChild(this.buttonEl_),this.buttons_&&(Y=this.buttons_,Y.JSC$8212_element_=this.buttonEl_,Y.render()),_.T_(this.buttonEl_,!!this.buttons_));pfk(this,this.backgroundElementOpacity_)};
_.g.enterDocument=function(){as.superClass_.enterDocument.call(this);ry(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);ry(this).listen(this.buttonEl_,"click",this.onButtonClick_);O75(this,this.draggable_);ry(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var Y=this.getElement();g2r(Y,"dialog");this.titleTextEl_.id!==""&&zV(Y,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){Y=this.JSC$8178_dom_;
var b=this.getBackgroundElement();Y.removeNode(this.bgIframeEl_);Y.removeNode(b)}this.isVisible()&&Z7K(this,!1)}};
_.g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);O75(this,!1);as.superClass_.exitDocument.call(this)};
_.g.setVisible=function(Y){Y!=this.isVisible()&&(this.inDocument_||this.render(),as.superClass_.setVisible.call(this,Y))};
_.g.onShow=function(){as.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.g.onHide=function(){as.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8211_disposeOnHide_&&this.dispose()};
_.g.setDraggerLimits_=function(){var Y=this.JSC$8178_dom_.JSC$7363_document_,b=_.Iz(pl(Y)||window),w=Math.max(Y.body.scrollWidth,b.width);Y=Math.max(Y.body.scrollHeight,b.height);var V=Qkj(this.getElement());_.xQt(this.getElement())=="fixed"?this.JSC$8211_dragger_.limits=new rm(0,0,Math.max(0,b.width-V.width),Math.max(0,b.height-V.height)):this.JSC$8211_dragger_.limits=new rm(0,0,w-V.width,Y-V.height)};
_.g.onTitleCloseClick_=function(){t48(this)};
var t48=function(Y){if(Y.hasTitleCloseButton_){var b=Y.buttons_,w=b&&b.cancelButton_;w?(b=b.get(w),Y.dispatchEvent(new $p(w,b))&&Y.setVisible(!1)):Y.setVisible(!1)}},RU_=function(Y){Y.hasTitleCloseButton_=!1;
Y.titleCloseEl_&&_.T_(Y.titleCloseEl_,Y.hasTitleCloseButton_)};
as.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;as.superClass_.disposeInternal.call(this)};
as.prototype.onButtonClick_=function(Y){a:{for(Y=Y.target;Y!=null&&Y!=this.buttonEl_;){if(Y.tagName=="BUTTON")break a;Y=Y.parentNode}Y=null}if(Y&&!Y.disabled){Y=Y.name;var b=this.buttons_.get(Y);this.dispatchEvent(new $p(Y,b))&&this.setVisible(!1)}};
as.prototype.onKey_=function(Y){var b=!1,w=!1,V=this.buttons_,H=Y.target;if(Y.type=="keydown")if(this.escapeToCancel_&&Y.keyCode==27){var f=V&&V.cancelButton_;H=H.tagName=="SELECT"&&!H.disabled;f&&!H?(w=!0,b=V.get(f),b=this.dispatchEvent(new $p(f,b))):H||(b=!0)}else{if(Y.keyCode==9&&Y.shiftKey&&H==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(k){}tS(this.resetBackwardTabWrap_,0,this)}}else if(Y.keyCode==13){if(H.tagName=="BUTTON"&&!H.disabled)f=H.name;
else if(H==this.titleCloseEl_)t48(this);else if(V){var E=V.defaultButton_,U;if(U=E)a:{U=s2("BUTTON",V.JSC$8212_element_);for(var X,I=0;X=U[I];I++)if(X.name==E||X.id==E){U=X;break a}U=null}H=(H.tagName=="TEXTAREA"||H.tagName=="SELECT"||H.tagName=="A")&&!H.disabled;!U||U.disabled||H||(f=E)}f&&V&&(w=!0,b=this.dispatchEvent(new $p(f,String(V.get(f)))))}else H!=this.titleCloseEl_||Y.keyCode!=32&&Y.key!=" "||t48(this);if(b||w)Y.stopPropagation(),Y.preventDefault();b&&this.setVisible(!1)};
var $p=function(Y,b){this.type="dialogselect";this.key=Y;this.caption=b};
_.DX($p,_.Q2);var yJ=function(Y){iY.call(this);Y||la();this.cancelButton_=this.JSC$8212_element_=this.defaultButton_=null};
_.DX(yJ,iY);_.g=yJ.prototype;_.g.clear=function(){iY.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.g.set=function(Y,b,w,V){iY.prototype.set.call(this,Y,b);w&&(this.defaultButton_=Y);V&&(this.cancelButton_=Y);return this};
_.g.addButton=function(Y,b,w){return this.set(Y.key,Y.caption,b,w)};
_.g.render=function(){if(this.JSC$8212_element_){_.iH(this.JSC$8212_element_,kOr);var Y=la(this.JSC$8212_element_);this.forEach(function(b,w){b=Y.JSC$7365_createDom("BUTTON",{name:w},b);w==this.defaultButton_&&(b.className="goog-buttonset-default");this.JSC$8212_element_.appendChild(b)},this)}};
_.g.decorate=function(Y){if(Y&&Y.nodeType==1){this.JSC$8212_element_=Y;Y=s2("BUTTON",this.JSC$8212_element_);for(var b,w,V,H=0;b=Y[H];H++)if(w=b.name||b.id,V=od9(b)||b.value,w){var f=H==0;this.set(w,V,f,b.name=="cancel");f&&_.bA(b,"goog-buttonset-default")}}};
_.g.getElement=function(){return this.JSC$8212_element_};
var n2t={key:"ok",caption:"OK"},M4I={key:"cancel",caption:"Cancel"},d$I={key:"yes",caption:"Yes"},FzU={key:"no",caption:"No"},LzQ={key:"save",caption:"Save"},Sz8={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new yJ).addButton(n2t,!0,!0),(new yJ).addButton(n2t,!0).addButton(M4I,!1,!0),(new yJ).addButton(d$I,!0).addButton(FzU,!1,!0),(new yJ).addButton(d$I).addButton(FzU,!0).addButton(M4I,!1,!0),(new yJ).addButton(Sz8).addButton(LzQ).addButton(M4I,!0,!0));_.DX(g2v,as);_.DX(fZK,WE);var aZC=_.wM(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),rq9=_.wM(["//apis.google.com/js/rpc.js"]),IZK=_.HL(aZC),o2v=_.HL(rq9),E2L=null;var KC=function(Y,b){_.n1.call(this);this.JSC$8221_element_=Y;Y=_.YP(this.JSC$8221_element_)?this.JSC$8221_element_:this.JSC$8221_element_?this.JSC$8221_element_.body:null;this.isRtl_=!!Y&&_.Zo$(Y);this.listenKey_=_.ez(this.JSC$8221_element_,_.lL?"DOMMouseScroll":"mousewheel",this,b)};
_.DX(KC,_.n1);KC.prototype.handleEvent=function(Y){var b=0,w=0,V=Y.event_;V.type=="mousewheel"?(Y=zU$(-V.wheelDelta),V.wheelDeltaX!==void 0?(b=zU$(-V.wheelDeltaX),w=zU$(-V.wheelDeltaY)):w=Y):(Y=V.detail,Y>100?Y=3:Y<-100&&(Y=-3),V.axis!==void 0&&V.axis===V.HORIZONTAL_AXIS?b=Y:w=Y);typeof this.maxDeltaX_==="number"&&(b=_.rp(b,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(w=_.rp(w,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(b=-b);b=new Wzj(Y,V,b,w);this.dispatchEvent(b)};
var zU$=function(Y){return _.hZ&&(_.MWM||p8M)&&Y%40!=0?Y:Y/40};
KC.prototype.disposeInternal=function(){KC.superClass_.disposeInternal.call(this);BP(this.listenKey_);this.listenKey_=null};
var Wzj=function(Y,b,w,V){_.vV.call(this,b);this.type="mousewheel";this.detail=Y;this.deltaX=w;this.deltaY=V};
_.DX(Wzj,_.vV);_.Ud=function(Y){var b="instance_";if(Y.instance_&&Y.hasOwnProperty(b))return Y.instance_;b=new Y;return Y.instance_=b};var m$G;var Kzk=_.wM(["https://about:blank"]),i7k=_.wM(['javascript:""']),Aq5=_.wM(["about:blank"]);_.DX(Jy,g2v);_.g=Jy.prototype;_.g.JSC$8229_url_="";_.g.JSC$8229_iframe_=null;_.g.iframeLoaded_=!1;_.g.loadedFired_=!1;_.g.callback_=function(){};
_.g.enterDocument=function(){Jy.superClass_.enterDocument.call(this);XfG(this.getBackgroundElement(),ry(this))};
_.g.render=function(Y){var b=this;Jy.superClass_.render.call(this,Y);this.useGapi_?Al9(this.iframeManager_,window).then(function(){return C19(b)}).then(null,function(){b.callback_({action:"error"})}):yq5(this)};
var C19=function(Y){var b=Y.JSC$8178_dom_.JSC$7365_createDom("div",["picker-dialog-content","picker-frame"]);_.T_(b,!1);Y.getContentElement().appendChild(b);return CNC(Y.iframeManager_,b,function(w){var V=hRr(w["iframe-command"]);switch(V.getCommand()){case 1:w=Y.callback_;V=_.EK(V,f1,2);var H="";switch(V.getStatus()){case 2:H="cancel";break;case 1:H="picked";break;case 3:H="error"}var f=_.wl(V,tZ,2,_.V9(b6g));V=f.length===0?{action:H}:ZQo(f,H,_.EK(V,IA$,7));w.call(Y,V);Y.setVisible(!1);break;case 4:RU_(Y);
Y.callback_({action:"loaded"});break;case 7:case 8:w=Y.callback_;a:{H=V.getCommand();f=_.EK(V,f1,2);switch(H){case 7:H="uploadScheduled";break;case 8:H="uploadStateChange";break;default:V={};break a}V=_.wl(f,tZ,2,_.V9(b6g));if(V.length===0)V={action:H};else{var E=_.EK(f,IA$,7);f=E&&_.Su(E,1);E=owr(E);V=lso(V,H,f,E)}}w.call(Y,V)}},Y.JSC$8229_url_,Y.targetId_,Y.rpcToken_).then(function(w){Y.JSC$8229_iframe_=w.getIframeEl();
$$d(Y);_.T_(Y.JSC$8229_iframe_.parentElement,!0);_.bA(Y.getElement(),"picker-dialog");jIr(Y);return w})},yq5=function(Y){Y.JSC$8229_iframe_=Y.JSC$8178_dom_.JSC$7365_createDom("IFRAME",{id:Y.targetId_,
name:Y.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Rg(Y.JSC$8229_iframe_,GOj(Y));_.bA(Y.getElement(),"picker-dialog");Y.getContentElement().appendChild(Y.JSC$8229_iframe_);ry(Y).listen(Y.JSC$8229_iframe_,"load",function(){return void $$d(Y)});
Y.JSC$8229_iframe_.src=Y.JSC$8229_url_;jIr(Y)},Jq9=function(Y){Txo(Y,(0,_.nC)(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},Y))},jIr=function(Y){var b=_.jh(_.$G(Y.JSC$8229_url_),"title");
b&&Y.setTitle(b)},GOj=function(Y){return _.Xgu("Internet Explorer")>=7&&_.Hg(Y.JSC$8229_url_,"https")?_.HL(Kzk):_.kv?_.HL(i7k):_.HL(Aq5)},$$d=function(Y){Jq9(Y);
Y.iframeLoaded_=!0;Y.JSC$8229_iframe_.tabIndex=0;Y.isVisible()&&Y.focus()};
Jy.prototype.handleKeydown_=function(Y){Y.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),Y.stopPropagation(),Y.preventDefault())};
var Txo=function(Y,b){var w=Y.JSC$8227_gadgetsDomHelper_;cqI(function(){b(w.getWindow().gadgets.rpc)},w)};
Jy.prototype.setUrl=function(Y){Y=_.G_(new _.Jw(Y),"rpcService",this.targetId_);_.G_(Y,"rpctoken",this.rpcToken_);_.c2(Y,"rpctoken="+this.rpcToken_);_.H2(Y,"https");this.JSC$8229_url_=Y.toString();this.JSC$8229_iframe_&&(this.JSC$8229_iframe_.src=this.JSC$8229_url_)};
var uPU=function(Y,b){Y.callback_=b;Txo(Y,(0,_.nC)(function(w){w.register(this.targetId_,(0,_.nC)(this.handlePickerAction_,this))},Y))};
Jy.prototype.handlePickerAction_=function(Y){var b=Y.action;b=="loaded"&&(this.loadedFired_=!0,YJj(this,new H7v(this.isVisible())),bH_(this),RU_(this),ry(this).unlisten(this.JSC$8178_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8229_iframe_.tabIndex=0);b!="picked"&&b!="cancel"||this.setVisible(!1);this.callback_(Y)};
var bH_=function(Y){Y.JSC$8229_appId_&&YJj(Y,new V4r(Y.JSC$8229_appId_,window.location.protocol+"//"+window.location.host))};
Jy.prototype.setRelayUrl=function(Y){Txo(this,(0,_.nC)(function(b){b.setRelayUrl(this.targetId_,Y)},this))};
var YJj=function(Y,b){Y.useGapi_&&T2U(b,Y.iframeManager_).then(null,function(){Y.callback_({action:"error"})});
Txo(Y,(0,_.nC)(function(w){w.call(this.targetId_,"picker",null,b)},Y))};
Jy.prototype.resizePicker_=function(){var Y=pl(this.JSC$8178_dom_.JSC$7363_document_)||window;if(_.jh(_.$G(this.JSC$8229_url_),"ignoreLimits")=="true")Y=new _.mE(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.jh(_.$G(this.JSC$8229_url_),"shadeDialog")=="true"){var b=eUK(this);b=BUU(b);var w=_.Iz(Y);Y=w.width-80;w=w.height-40;b&&(Y-=b.left?b.left:0,Y-=b.right?b.right:0,w-=b.top?b.top:0,w-=b.bottom?b.bottom:0);Y=new _.mE(Y>0?Y:0,w>0?w:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,
Math.min(1051,b)),(w=this.preferredDialogHeight_)||(w=_.Iz(Y).height*.85),w=Math.max(480,Math.min(650,w))):(b=_.Iz(Y),w=b.width*.618,w=w<b.height?Math.round(Math.max(480,Math.min(650,w*.85))):Math.round(Math.max(480,Math.min(650,b.height*.85))),b=Math.round(w/.618)),Y=_.Iz(Y),b=Math.min(b,Math.max(Y.width,320)),w=Math.min(w,Math.max(Y.height,480)),Y=new _.mE(b,w);_.qtj(this.getContentElement(),Y);this.reposition()};
Jy.prototype.reposition=function(){if(_.jh(_.$G(this.JSC$8229_url_),"shadeDialog")=="true"){var Y=Qkj(this.getElement()),b=_.Iz(this.JSC$8178_dom_.getWindow());Y=Math.floor(b.width/2-Y.width/2);b=eUK(this);if(b=BUU(b)){var w=b.left?b.left:0;w+=b.right?b.right:0;Y=Math.floor(Y-w/2)}Y=Y>0?Y:0;b=kQ(this.JSC$8178_dom_).y;Kj(this.getElement(),Y,b)}else Jy.superClass_.reposition.call(this)};
Jy.prototype.setVisible=function(Y){if(Y!=this.isVisible()&&this.autoSizeDialog_){var b=this.JSC$8178_dom_.getWindow();Y?(this.resizePicker_(),ry(this).listen(b,"resize",this.resizePicker_),this.iframeLoaded_||ry(this).listen(b,"keydown",this.handleKeydown_)):(ry(this).unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||ry(this).unlisten(b,"keydown",this.handleKeydown_))}Jy.superClass_.setVisible.call(this,Y);YJj(this,new H7v(Y))};
Jy.prototype.focus=function(){Jy.superClass_.focus.call(this);if(this.JSC$8229_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8229_iframe_.focus()}catch(Y){}};var F2=function(Y,b){b=b===void 0?Jy:b;WE.call(this,Y);this.pickerConstructor=b;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(Y=window.location.origin)||(Y=window.location.protocol+"//"+window.location.host);Y&&this.urlParamMap_.set("origin",Y);this.postProcessors_=[]};
_.P(F2,fZK);F2.prototype.JSC$8234_disposeOnHide_=!1;
F2.prototype.build=function(){this.JSC$8135_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8135_appId_);this.getRelayUrl()||this.setRelayUrl(_.Nv(_.c2(_.ET(_.$G(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var Y=new this.pickerConstructor(wQU(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);Y.JSC$8211_disposeOnHide_=this.JSC$8234_disposeOnHide_;
Y.JSC$8229_appId_=this.JSC$8135_appId_;Y.loadedFired_&&bH_(Y);uPU(Y,this.callback_);return Y};
var V3r=function(Y){Y.urlParamMap_.set("multiselectEnabled","true");return Y};
F2.prototype.getHeight=function(){return this.dialogHeight_};
F2.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
F2.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
F2.prototype.getWidth=function(){return this.dialogWidth_};
var HHj=function(Y){Y.JSC$8234_disposeOnHide_=void 0;return Y};
F2.prototype.setRelayUrl=function(Y){this.urlParamMap_.set("parent",Y);return this};
var guk=function(Y,b){Y.urlParamMap_.set("selectButtonLabel",b);return Y};
F2.prototype.setSize=function(Y,b){this.dialogWidth_=Y;this.dialogHeight_=b;return this};
F2.prototype.setTitle=function(Y){this.urlParamMap_.set("title",Y);return this};
var wQU=function(Y){Y.postProcessors_.length&&Y.urlParamMap_.set("pp",JSON.stringify(Y.postProcessors_));Y.urlParamMap_.set("nav",UGk(Y.nav_));var b=new _.Jw(Y.getBaseUrl());Y.urlParamMap_.forEach(function(w,V){_.G_(b,V,w)});
return b};var Euo=function(Y,b){Y.name!==void 0?(this.name=Y.name,this.code=fj$[Y.name]):(this.code=Y=Y.code,this.name=Naj(Y));_.Yb.call(this,Lca("%s %s",this.name,b))};
_.DX(Euo,_.Yb);var Naj=function(Y){var b=_.BL.findKey(fj$,function(w){return Y==w});
if(b===void 0)throw Error("mb`"+Y);return b},jB={},fj$=(jB.AbortError=3,jB.EncodingError=5,jB.InvalidModificationError=9,jB.InvalidStateError=7,jB.NotFoundError=1,jB.NotReadableError=4,jB.NoModificationAllowedError=6,jB.PathExistsError=12,jB.QuotaExceededError=10,jB.SecurityError=2,jB.SyntaxError=8,jB.TypeMismatchError=11,jB);var c69=function(Y,b){_.Q2.call(this,Y.type,b);this.event_=Y};
_.DX(c69,_.Q2);var Un$=function(Y,b,w){w===void 0&&(w=Y.size);return Y.slice?Y.slice(b,w):null};var hUr=new WeakMap,lZe=function(Y,b){Y=[Y];for(var w=b.length-1;w>=0;--w)Y.push(typeof b[w],b[w]);return Y.join("\v")};_.qzu(function(){if(!_.wB.Blob)return!1;var Y=new Uint8Array(100);try{var b=new Blob([Y])}catch(w){return!1}return b.size!=100?!1:!0});
var XQC=_.qzu(function(){if(!_.wB.Blob)return!1;var Y=new Uint8Array(100);try{var b=new Blob([Y])}catch(w){return!1}return Un$(b,0,1)===null?!1:!0});_.wB.U3bHHf!=null||(_.wB.U3bHHf=0);_.wB.U3bHHf++;var sIq={};var w2=void 0;var v26=Symbol("ub");var Szq=Hh("WizInjectionContext_Dispatcher");var cf=Symbol("vb");var x2=function(){},bSG=Symbol("wb"),ZZ=function(Y){this.props=Y;
this.__unmounted=!1};
ZZ.prototype.didPatch=function(){};
ZZ.prototype.didMount=function(){};
ZZ.prototype.didUnmount=function(){};
ZZ.prototype.didUpdate=function(){};var t4q=Hh("WizInjectionContext_RootElement");var d$G=Hh("WizInjectionContext_AppContext"),RUe=Hh("WizInjectionContext_ModelRootElement"),FzB=Hh("WizInjectionContext_RendererData"),Lzr=Hh("WizInjectionContext_InjectingConstructor"),O7t=Hh("WizInjectionContext_AsyncDeps"),aZI={};var Aqt=!1;var jIv={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:QtK,enableLazyTsx:vCG,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:stI,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};_.fQ=Object.assign({},{attributes:{},handleError:function(Y){throw Y;}},jIv);var Dn8=Symbol("Ab"),SJg=Symbol("Bb"),W$v=Symbol("Cb"),r6M=Symbol("Db"),jVt=Ko(function(Y){return NG(Y)&&Dn8 in Y});var wQB=Symbol("Eb"),GV={},YJK=(GV[wQB]=!0,GV.debugName="[component]",GV.getComponentStack=function(){for(var Y=[],b=this;b;)V3v(b)&&Y.push(b.debugName),b=b.parent;return Y},GV.registerSignal=function(){},GV.registerEffect=function(){},GV);var EN=null,UN=!1,c6g=1,o2=Symbol("Fb"),qG={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 TV=Symbol("Gb"),Ju=Symbol("Hb"),Ds=Symbol("Ib"),lju=Object.assign({},qG,{value:TV,dirty:!0,error:null,equal:HHK,kind:"computed",producerMustRecompute:function(Y){return Y.value===TV||Y.value===Ju},
producerRecomputeValue:function(Y){if(Y.value===Ju)throw Error("da");var b=Y.value;Y.value=Ju;var w=oub(Y),V=!1;try{var H=Y.computation();ch(null);V=b!==TV&&b!==Ds&&H!==Ds&&Y.equal(b,H)}catch(f){H=Ds,Y.error=f}finally{Ije(Y,w)}V?Y.value=b:(Y.value=H,Y.version++)}});var sVg=function(){throw Error();};var vuq=null,xnv=Object.assign({},qG,{equal:HHK,value:void 0,kind:"signal"});Object.assign({},qG,{value:TV,dirty:!0,error:null,equal:HHK,kind:"linkedSignal",producerMustRecompute:function(Y){return Y.value===TV||Y.value===Ju},
producerRecomputeValue:function(Y){if(Y.value===Ju)throw Error("da");var b=Y.value;Y.value=Ju;var w=oub(Y);try{var V=Y.source();var H=Y.computation(V,b===TV||b===Ds?void 0:{source:Y.sourceValue,value:b});Y.sourceValue=V}catch(f){H=Ds,Y.error=f}finally{Ije(Y,w)}b!==TV&&H!==Ds&&Y.equal(b,H)?Y.value=b:(Y.value=H,Y.version++)}});Object.assign({},qG,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(Y){Y.schedule!==null&&Y.schedule(Y.ref)},
hasRun:!1,cleanupFn:function(){}});var ZHK=Symbol("Jb"),lN=Symbol("Kb");var hl=Array.isArray;var dnG;var mn$={},L$b=RBK(Object.assign({},{consumerAllowSignalWrites:!0},mn$)),sz=RBK(Object.assign({},{consumerAllowSignalWrites:!0},mn$));var vh=0,Ph=!1,uY=function(){this.queue=new Set};
uY.prototype.remove=function(Y){this.queue.delete(Y)};
uY.prototype.clear=function(){this.queue.clear()};
var oud=function(){uY.apply(this,arguments)};
_.P(oud,uY);oud.prototype.schedule=function(Y){this.queue.add(Y)};
oud.prototype.flush=function(){if(this.queue.size){Ph=!0;try{for(var Y=_.N(this.queue),b=Y.next();!b.done;b=Y.next()){var w=b.value;this.queue.delete(w);try{w.run()}catch(V){Ij_(V)}}}finally{Ph=!1}}};
var kr9=new oud,YW=function(){uY.apply(this,arguments)};
_.P(YW,uY);var lj$=function(){YW.apply(this,arguments)};
_.P(lj$,YW);lj$.prototype.schedule=function(Y){Y.hasRun?this.queue.add(Y):Y.run()};
lj$.prototype.flush=function(){if(this.queue.size)if(_.fQ.flushRenderEffectsDuringRender){var Y=this.queue;this.queue=new Set;Grt(Y)}else Grt(this.queue)};
var ajq=new lj$,hBI=function(){YW.apply(this,arguments)};
_.P(hBI,YW);hBI.prototype.schedule=function(Y){var b=this;return _.c(function(w){if(w.nextAddress==1)return Y.hasRun?w.jumpTo(2):_.D(w,Promise.resolve(),3);if(w.nextAddress!=2)return Y.run(),w.return();b.queue.add(Y);_.om(w)})};
hBI.prototype.flush=function(){var Y=this;return _.c(function(b){if(b.nextAddress==1)return Y.queue.size?_.D(b,Promise.resolve(),2):b.return();Grt(Y.queue);_.om(b)})};
var K$v=new hBI,xnr=function(){YW.apply(this,arguments)};
_.P(xnr,YW);xnr.prototype.schedule=function(Y){this.queue.add(Y)};
xnr.prototype.flush=function(){this.queue.size&&Grt(this.queue)};
var zBa=new xnr,y6g=[ajq,kr9,zBa,K$v],qJd=[ajq,zBa,K$v],A6v=[];vuq=function(){$nK();for(var Y=_.N(A6v),b=Y.next();!b.done;b=Y.next())b=b.value,b()};
var Ij_=Vv;var nQ=Symbol("Pb");var Bh=null,uOb,YKv=null,bbg;var bx={},sV9=Object.assign({},qG,(bx[Dn8]=!0,bx.effectType=SJg,bx.isResettableContext=!0,bx.producerNode=void 0,bx.hasRun=!1,bx.effectFn=null,bx.consumerIsAlwaysLive=!0,bx.consumerAllowSignalWrites=!0,bx.consumerMarkedDirty=iHe,bx.kind="effect",bx.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(UN)throw Error("Qb");this.dirty=!1;if(!this.hasRun||Unu(this)){this.hasRun=!0;pf6(this);var Y=_.Vz(this),b=oub(this);Txa("effectRun",this.debugName);try{ON(this.effectFn,this.componentStack)}catch(w){throw _.fQ.enableContextBasedComponentStacks&&
pQ(w),w;}finally{Jqg("effectRun",this.debugName),Ije(this,b),_.Vz(Y)}}}},bx.componentStack=void 0,bx.debugName="[effect]",bx[Symbol.dispose]=function(){gu6(this);
if(XI(this))for(var Y=0;Y<this.producerNode.length;Y++)fju(this.producerNode[Y],this.producerIndexOfThis[Y]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);Y=_.N(qJd);for(var b=Y.next();!b.done;b=Y.next())b.value.remove(this);eUL(this)},bx));var HbG=Object.assign({},sV9,{effectType:W$v});var gr6=Symbol("Rb");var f9e=Object.assign({},sV9,{effectType:SJg});var WqI=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var cEB={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},Ere=
{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}]}},tut={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},Dzt=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],XOK={"*":{async:1,dir:0,loading:2,target:3}};var QV$=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,wf={},orB=(wf[1]=null,wf[2]=function(Y,b){return b instanceof pu?tz(b):vN.toString()},wf[3]=function(Y,b){return kH(b)?_.lH(b):QV$.test(String(b))?String(b):vN.toString()},wf[4]=function(Y,b){return b instanceof cN?_.Xk(b):vN.toString()},wf[5]=function(Y,b){return String(b)},wf[7]=null,wf[8]=null,wf[10]=null,wf);var b_6=Symbol("Tb");var jeI=function(Y){var b=vu8,w=Y,V="",H="",f=1;Y<0&&(Y=-Y);if(Y===Infinity)Y=(Infinity*Math.sign(w)).toString();else{for(var E=0;E<PcU.length;E++){var U=PcU[E];f=b[U];if(Y>=f||f<=1&&Y>.1*f){V=U;break}}V?(V+="B",H=" "):f=1;Y=Math.round(w/f*10)/10+H+V}return Y},PcU="Y Z E P T G M K  m u n".split(" "),vu8={"":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};_.ZHj=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 wyu={};RegExp.prototype.hasOwnProperty("sticky");var AEr=function(Y){Y=String(Y);for(var b=function(V,H,f){for(var E=Math.min(H.length-f,V.length),U=0;U<E;U++){var X=H[f+U];if(V[U]!==("A"<=X&&X<="Z"?X.toLowerCase():X))return!1}return!0},w=0;(w=Y.indexOf("<",w))!=-1;){if(b("\x3c/script",Y,w)||b("\x3c!--",Y,w))return"zSoyz";
w+=1}return Y},bBI=function(Y){return Y!=null&&Y.contentKind===wyu};var KQ={default:"__default"};var sqL=Object.prototype.hasOwnProperty;l9r.prototype=Object.create(null);var bp=PSb();var wx=null;var Fqq=function(Y){this.created=[];this.deleted=[];this.node=Y};var Lq6=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var Y=this,b=Y;Y;)b=Y,Y=Y.parentNode;return b};var BGq=function(Y,b){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=Y;this.key=b;this.text=void 0};var yz=null,$w=null,Al=null,Gl=null,Obt=[],pOr=MII,Jl=[],b1=[],Yva=function(Y){return SK6(function(b,w,V){Al=$w=b;$w=null;w(V);ene(null);$w=Al;Al=Al.parentNode;return b},Y)}(),udg=function(Y){return SK6(function(b,w,V){var H={nextSibling:b};
$w=H;w(V);Al&&ene(b.nextSibling);return H===$w?null:$w},Y)}();var Hf=[],rEG=0;var gx=new l9r;var RR=new l9r;var BaQ=PSb(),ibL=BaQ[KQ.default],CSv=BaQ.style,KqB=["focusin","focusout"];var RGL=function(){},QYq=function(){},aFK=function(){},Fpu=function(){};var Ez=Symbol("$b");var u4K,JEK=TGu;var k2=Symbol("ac");var lFv={};var SPq=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(" ")),
Lpv=new Set(["a","font","script","style","title"]);var QW={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var vf=null,Pf=function(Y,b){ZZ.call(this,Y);var w=this;this.functionComponent=b;this.hooks=[];this.hookCounter=0;this.disposeEffects=d2(function(V){w.effectContext=V;_.R2(function(){Bhu(w,w.el)})},_.fQ.alwaysTrackContexts||!!w2)};
_.P(Pf,ZZ);Pf.prototype.render=function(Y){var b=vf;vf=this;this.hookCounter=0;var w=ch(sz),V=_.Vz(this.effectContext);try{return Txa("render",this.componentName),this.functionComponent(Y)}finally{Jqg("render",this.componentName),_.Vz(V),ch(w),vf=b}};
_.up.Object.defineProperties(Pf.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return TaI(this.functionComponent)}}});var rhq=Symbol("oc"),OBq=function(Y,b,w){this.kind=Y;this.props=b;this.children=w};
_.P(OBq,x2);OBq.prototype.render=function(){return pya(this.kind,this.props,this.children)};
OBq.prototype.getChildren=function(){return this.children};var WpI=[];sVg=function(Y){throw Error("tb`"+Y.debugName);};
(function(){var Y=wx;wx=function(b){Y==null||Y(b);Kpe(b)}})();var nu5=new WeakMap,M3C=0;var eBo=void 0,pQr={},OHt=new WeakMap,CDB={getComponent:function(Y){if(Y.hasAttribute("ng-version"))return pQr;if(!Y.__wizComponent)return null;Y=Y.__wizComponent;OHt.set(Y.propsAndState,Y);return Y.propsAndState},
getDirectiveMetadata:function(Y){if(Y===pQr)return{framework:"wiz",name:"<Root>",props:{}};Y=OHt.get(Y);if(!Y)throw Error("pc");return{framework:"wiz",name:Y.name,props:Object.fromEntries(Object.keys(Y.props).map(function(b){return[b,b]}))}},
"\u0275setProfiler":function(Y){var b;(b=eBo)==null||b();eBo=Ccu(function(){Y(2)})},
getInjector:function(Y){return Y.__wizComponent},
"\u0275getSignalGraph":function(Y){var b;Y=(b=Y.effects)!=null?b:[];var w=iBG(Y),V=Array.from(w.keys());b=[];Y=[];for(var H=new Map,f=0;f<V.length;f++)H.set(V[f],f);w=_.N(w.entries());for(V=w.next();!V.done;V=w.next()){f=_.N(V.value);V=f.next().value;var E=f.next().value;f=V;V=H.get(f);var U=nu5.get(f);U||(U=M3C.toString(),nu5.set(f,U),M3C++);var X=void 0,I=(X=f.debugName)!=null?X:"";X=I.startsWith("[signal]")?I:I.replace(/@.+/,"");f.kind==="computed"?b.push({label:X,value:f.value,kind:f.kind,epoch:f.version,
debuggableFn:f.computation,id:U}):f.kind==="signal"?b.push({label:X,value:f.value,kind:f.kind,epoch:f.version,id:U}):f.kind==="effect"?(I=void 0,b.push({label:X,kind:f.kind,epoch:f.version,debuggableFn:(I=f.effectFn)!=null?I:void 0,id:U})):b.push({label:X,kind:f.kind,epoch:f.version,id:U});f=_.N(E);for(E=f.next();!E.done;E=f.next())Y.push({consumer:V,producer:H.get(E.value)})}return{nodes:b,edges:Y}},
isSignal:function(Y){return typeof Y==="function"&&Y[o2]!==void 0}};_.h.debugName="RlDudd";var Ahv={nonNullableCondIsNull:function(){return Error("tc")}};var The=function(){this.map=new Map};
The.prototype.push=function(Y,b){var w=this.map;w.has(Y)&&(this.multi||(this.multi=new Map),this.multi.set(b,w.get(Y)));w.set(Y,b)};
The.prototype.pop=function(Y){var b=this.map,w=b.get(Y),V;w!==void 0&&((V=this.multi)==null?0:V.has(w))?(b.set(Y,this.multi.get(w)),this.multi.delete(w)):b.delete(Y);return w};_.Bf.debugName="nsTGHd";_.n7.debugName="tbhMcf";_.M$.debugName="zyMFzb";_.e4.debugName="vI1rtf";_.p7={OUT_OF_ORDER_HOOK_CALL:function(Y){return Error("uc`"+Y)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(Y,b){return Error("yc`"+((b===void 0?0:b)?"IDOM":"Reactive")+"`"+Y)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(Y,b){return Error("zc`"+Y+"`"+b)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(Y){return Error("Ac`"+Y)},
USE_ELEMENT_NOT_ASSIGNED:function(Y){return Error("Bc`"+String(Y))}};u4K=tkt;var fkM=Symbol("Cc");PFu({beforeRender:function(Y){var b=_.Vz(Y.effectContext);try{var w;((w=Y.__syncEffects)==null?0:w.length)&&EDv(Y.__syncEffects)}finally{_.Vz(b)}},
didPatch:function(Y){var b=_.Vz(Y.effectContext);try{var w;((w=Y.__syncEffects)==null?0:w.length)&&EDv(Y.__syncEffects)}finally{_.Vz(b)}},
didUnmount:function(Y){var b;((b=Y.hooks)==null?0:b.length)&&Y.hooks.forEach(NSq)}});var t3k,RBj,dnI;t3k=_.wB.window;_.aI=(t3k==null?void 0:(RBj=t3k.yt)==null?void 0:RBj.config_)||(t3k==null?void 0:(dnI=t3k.ytcfg)==null?void 0:dnI.data_)||{};_.wG("yt.config_",_.aI);var F$C={},Dct=[];_.BQ=function(Y){var b=_.BN.apply(1,arguments);var w=Error.call(this,Y);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.args=[].concat(_.Bt(b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(_.BQ,Error);var mvv=function(Y,b,w){this.actionName=Y;this.optionalAction=b===void 0?!1:b;this.args=w===void 0?null:w;this.returnValue=[]};_.A=function(Y){this.name=Y};_.KB=new _.A("signalAction");var vDt=/^[\w.]*$/,lkb={q:!0,search_query:!0},kCI=String(Ikb);var VS;VS=Symbol("Dc");_.Hx=function(Y){this.name=Y};
_.Hx.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var Ppt=function(Y){this.key=Y},nDv=function(Y){this.deferredKey=Y},BSt=function(){var Y=this;
this.providers=new Map;this.JSC$8455_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(Y.providers)}}};
BSt.prototype.addProvider=function(Y){this.providers.set(Y.provide,Y);var b=this.JSC$8455_deferred.get(Y.provide);if(b)try{b.resolver(this.resolve(Y.provide))}catch(w){b.rejector(w)}};
BSt.prototype.resolve=function(Y){return Y instanceof nDv?L$d(this,Y):Y instanceof Ppt?SJ9(this,Y.key,[],!0):SJ9(this,Y,[])};
var L$d=function(Y,b){b=b.deferredKey;if(Y.JSC$8455_deferred.has(b))return Y.JSC$8455_deferred.get(b).promise;var w={};w.promise=new Promise(function(V,H){w.resolver=V;w.rejector=H});
Y.JSC$8455_deferred.set(b,w);return w.promise},SJ9=function(Y,b,w,V){V=V===void 0?!1:V;
if(w.indexOf(b)>-1)throw Error("Ec`"+b);if(Y.cachedValues.has(b))return Y.cachedValues.get(b);if(!Y.providers.has(b)){if(V)return;throw Error("Fc`"+b);}V=Y.providers.get(b);w.push(b);if(V.useValue!==void 0)var H=V.useValue;else if(V.useFactory)H=V[VS]?aj8(Y,V[VS],w):[],H=V.useFactory.apply(V,_.Bt(H));else if(V.useClass){H=V.useClass;var f=H[VS]?aj8(Y,H[VS],w):[];H=new (Function.prototype.bind.apply(H,[null].concat(_.Bt(f))))}else throw Error("Gc`"+b);w.pop();V.skipCache||Y.cachedValues.set(b,H);return H},
aj8=function(Y,b,w){return b?b.map(function(V){return V instanceof Ppt?SJ9(Y,V.key,w,!0):SJ9(Y,V,w)}):[]};var ZSK;var iF=new _.Hx("ENDPOINT_HANDLER_TOKEN");_.Ah=new _.A("urlEndpoint");var r6t=function(){this.data=[];this.cachedPackedInt52=-1};
r6t.prototype.set=function(Y,b){b=b===void 0?!0:b;0<=Y&&Y<52&&Number.isInteger(Y)&&this.data[Y]!==b&&(this.data[Y]=b,this.cachedPackedInt52=-1)};
r6t.prototype.get=function(Y){return!!this.data[Y]};
var zBo=function(Y){Y.cachedPackedInt52===-1&&(Y.cachedPackedInt52=Y.data.reduce(function(b,w,V){return b+(w?Math.pow(2,V):0)},0));
return Y.cachedPackedInt52};var WHG=function(Y){var b=W$r;Y=Y===void 0?_.Aq("yt.ads.biscotti.lastId_")||"":Y;var w=Object,V=w.assign,H={};H.dt=zy5;H.flash="0";a:{try{var f=b.JSC$8461_win_.top.location.href}catch(o6){f=2;break a}f=f?f===b.doc_.location.href?0:1:2}H=(H.frm=f,H);try{H.u_tz=-(new Date).getTimezoneOffset();var E=E===void 0?C1:E;try{var U=E.history.length}catch(o6){U=0}H.u_his=U;var X;H.u_h=(X=C1.screen)==null?void 0:X.height;var I;H.u_w=(I=C1.screen)==null?void 0:I.width;var k;H.u_ah=(k=C1.screen)==null?void 0:k.availHeight;
var l;H.u_aw=(l=C1.screen)==null?void 0:l.availWidth;var x;H.u_cd=(x=C1.screen)==null?void 0:x.colorDepth}catch(o6){}U=b.JSC$8461_win_;try{var Q=U.screenX;var Z=U.screenY}catch(o6){}try{var e=U.outerWidth;var O=U.outerHeight}catch(o6){}try{var L=U.innerWidth;var r=U.innerHeight}catch(o6){}try{var C=U.screenLeft;var W=U.screenTop}catch(o6){}try{L=U.innerWidth,r=U.innerHeight}catch(o6){}try{var y=U.screen.availWidth;var G=U.screen.availTop}catch(o6){}Q=[C,W,Q,Z,y,G,e,O,L,r];Z=llB(!1,b.JSC$8461_win_.top);
e={};var Nr=Nr===void 0?_.wB:Nr;O=new r6t;"SVGElement"in Nr&&"createElementNS"in Nr.document&&O.set(0);L=KGo();L["allow-top-navigation-by-user-activation"]&&O.set(1);L["allow-popups-to-escape-sandbox"]&&O.set(2);Nr.crypto&&Nr.crypto.subtle&&O.set(3);"TextDecoder"in Nr&&"TextEncoder"in Nr&&O.set(4);Nr=zBo(O);b=(e.bc=Nr,e.bih=Z.height,e.biw=Z.width,e.brdim=Q.join(),e.vis=wEq(b.doc_),e.wgl=!!C1.WebGLRenderingContext,e);w=V.call(w,H,b);w.ca_type="image";Y&&(w.bid=Y);return w},W$r=new function(){var Y=
window.document;
this.JSC$8461_win_=window;this.doc_=Y};
_.wG("yt.ads_.signals_.getAdSignalsString",function(Y){return hmG(WHG(Y))});_.XT();navigator.userAgent.indexOf(" (CrKey ");var tMu="XMLHttpRequest"in _.wB?function(){return new XMLHttpRequest}:null;var K$r="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),iH_=[].concat(_.Bt(K$r),["client_dev_set_cookie"]);var zmB={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"},FHM="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(_.Bt(K$r)),TSM=!1,SZM=_.KHG,$cI=rQL;var qQv=[{messageFn:function(Y){return"Cannot read property '"+Y.key+"'"},
patternsForType:{Error:[{regexp:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{regexp:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{regexp:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{regexp:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{regexp:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{regexp:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{regexp:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{messageFn:function(Y){return"Cannot call '"+Y.key+"'"},
patternsForType:{TypeError:[{regexp:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{regexp:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{regexp:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{regexp:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{regexp:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,
groups:["key"]},{regexp:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{messageFn:function(Y){return Y.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var A6r={messageWeights:[],callbackWeights:[{callback:bMB,weight:500},{callback:w1G,weight:500}]};var Cc$=function(){this.callbackWeights=[];this.messageWeights=[]},y69,xZv=function(){if(!y69){var Y=y69=new Cc$;
Y.messageWeights.length=0;Y.callbackWeights.length=0;eOB(Y,A6r)}return y69},eOB=function(Y,b){b.messageWeights&&Y.messageWeights.push.apply(Y.messageWeights,b.messageWeights);
b.callbackWeights&&Y.callbackWeights.push.apply(Y.callbackWeights,b.callbackWeights)};_.DX(_.xu,_.BE);_.xu.prototype.subscribe=function(Y,b,w){var V=this.topics_[Y];V||(V=this.topics_[Y]=[]);var H=this.JSC$8485_key_;this.subscriptions_[H]=Y;this.subscriptions_[H+1]=b;this.subscriptions_[H+2]=w;this.JSC$8485_key_=H+3;V.push(H);return H};
var $nj=function(Y){var b=P8M,w=!1,V=b.subscribe("handleError",function(H){w||(w=!0,this.unsubscribeByKey(V),Y.apply(void 0,arguments))},b)};
_.xu.prototype.unsubscribe=function(Y,b,w){if(Y=this.topics_[Y]){var V=this.subscriptions_;if(Y=Y.find(function(H){return V[H+1]==b&&V[H+2]==w}))return this.unsubscribeByKey(Y)}return!1};
_.xu.prototype.unsubscribeByKey=function(Y){var b=this.subscriptions_[Y];if(b){var w=this.topics_[b];this.publishDepth_!=0?(this.pendingKeys_.push(Y),this.subscriptions_[Y+1]=function(){}):(w&&_.$b(w,Y),delete this.subscriptions_[Y],delete this.subscriptions_[Y+1],delete this.subscriptions_[Y+2])}return!!b};
_.xu.prototype.publish=function(Y,b){var w=this.topics_[Y];if(w){var V=Array(arguments.length-1),H=arguments.length,f;for(f=1;f<H;f++)V[f-1]=arguments[f];if(this.async_)for(f=0;f<w.length;f++)H=w[f],jV5(this.subscriptions_[H+1],this.subscriptions_[H+2],V);else{this.publishDepth_++;try{for(f=0,H=w.length;f<H&&!this.isDisposed();f++){var E=w[f];this.subscriptions_[E+1].apply(this.subscriptions_[E+2],V)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;w=this.pendingKeys_.pop();)this.unsubscribeByKey(w)}}return f!=
0}return!1};
var jV5=function(Y,b,w){_.eO(function(){Y.apply(b,w)})};
_.xu.prototype.clear=function(Y){if(Y){var b=this.topics_[Y];b&&(b.forEach(this.unsubscribeByKey,this),delete this.topics_[Y])}else this.subscriptions_.length=0,this.topics_={}};
_.xu.prototype.getCount=function(Y){if(Y){var b=this.topics_[Y];return b?b.length:0}Y=0;for(b in this.topics_)Y+=this.getCount(b);return Y};
_.xu.prototype.disposeInternal=function(){_.xu.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var P8M=new _.xu;var X4=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(X4,_.SQ);X4.prototype.getColdHashData=function(){return _.Su(this,3)};
X4.prototype.getHotHashData=function(){return _.Su(this,5)};
X4.prototype.setHotHashData=function(Y){return _.hP(this,5,Y)};var kuI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(kuI,_.SQ);var iVb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(iVb,_.SQ);_.g=iVb.prototype;_.g.getDeviceId=function(){return _.Su(this,6)};
_.g.getExperimentIds=function(Y){var b=_.s3(this,9,_.PI,3,!0);SK(b,Y);return b[Y]};
_.g.getPlayerType=function(){return _.ay(this,36)};
_.g.setHomeGroupInfo=function(Y){return _.HN(this,81,Y)};
_.g.clearLocationPlayabilityToken=function(){return _.UK(this,89)};var sP=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(sP,_.SQ);sP.prototype.setKey=function(Y){return _.hP(this,1,Y)};
sP.prototype.getValue=function(){return zZ(this,2,CrK)};
var CrK=[2,3,4,5,6];var Gr5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Gr5,_.SQ);Gr5.prototype.setTrackingParams=function(Y){return _.UK(this,1,_.Lo(Y,!1))};var AUb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(AUb,_.SQ);var x8v=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(x8v,_.SQ);x8v.prototype.getExperimentIds=function(Y){var b=_.s3(this,5,_.ZA,3,!0);SK(b,Y);return b[Y]};var ZF=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(ZF,_.SQ);ZF.prototype.getToken=function(){return _.hy(this,2)};
ZF.prototype.setToken=function(Y){return _.hP(this,2,Y)};var vy=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(vy,_.SQ);vy.prototype.setSafetyMode=function(Y){return _.cO(this,5,Y)};var qY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(qY,_.SQ);qY.prototype.setClient=function(Y){return _.HN(this,1,Y)};var hwM={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 leG;_.RA=function(){var Y=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.wB.addEventListener("beforeinstallprompt",function(b){b.preventDefault();Y.deferredInstallPrompt=b});
_.wB.addEventListener("appinstalled",function(){Y.appInstalledEventFired=!0},{once:!0})};
leG=function(){if(!_.wB.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.wB.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.wB.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.wB.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.wB.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Y){return"WEB_DISPLAY_MODE_UNKNOWN"}};var QPG=function(){this.syncHeaders=!0},v7L=function(Y){var b={},w=[];
"USER_SESSION_ID"in _.aI&&w.push({key:"u",value:_.zO("USER_SESSION_ID")});if(w=_.ArK(w))b.Authorization=w,w=Y=Y==null?void 0:Y.sessionIndex,w===void 0&&(w=Number(_.zO("SESSION_INDEX",0)),w=isNaN(w)?0:w),_.q("voice_search_auth_header_removal")||(b["X-Goog-AuthUser"]=w.toString()),"INNERTUBE_HOST_OVERRIDE"in _.aI||(b["X-Origin"]=window.location.origin),Y===void 0&&"DELEGATED_SESSION_ID"in _.aI&&(b["X-Goog-PageId"]=_.zO("DELEGATED_SESSION_ID"));return b};var TaC={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var gf=_.Aq("ytglobal.prefsUserPrefsPrefs_")||{},J6U;_.wG("ytglobal.prefsUserPrefsPrefs_",gf);_.f9=function(){this.cookieName=_.zO("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.zO("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Y=_.sJ.get(this.cookieName,void 0);Y&&this.parse(Y)};
_.P0=function(){J6U||(J6U=new _.f9);return J6U};
_.f9.prototype.get=function(Y,b){uOd(Y);YKr(Y);Y=gf[Y]!==void 0?gf[Y].toString():null;return Y!=null?Y:b?b:""};
_.f9.prototype.set=function(Y,b){uOd(Y);YKr(Y);if(b==null)throw Error("Jc");gf[Y]=b.toString()};
_.f9.prototype.getFlag=function(Y){return!!((bb9("f"+(Math.floor(Y/31)+1))||0)&1<<Y%31)};
_.Ze=function(Y,b,w){Y="f"+(Math.floor(b/31)+1);b=1<<b%31;var V=bb9(Y)||0;V=w?V|b:V&~b;V===0?delete gf[Y]:(w=V.toString(16),gf[Y]=w.toString())};
_.f9.prototype.remove=function(Y){uOd(Y);YKr(Y);delete gf[Y]};
_.f9.prototype.save=function(){var Y=!0;_.q("web_secure_pref_cookie_killswitch")&&(Y=!1);_.Qh(this.cookieName,this.dump(),63072E3,this.cookieDomain,Y)};
_.f9.prototype.clear=function(){_.BL.clear(gf)};
_.f9.prototype.dump=function(){var Y=[],b;for(b in gf)gf.hasOwnProperty(b)&&Y.push(b+"="+encodeURIComponent(String(gf[b])));return Y.join("&")};
var YKr=function(Y){if(/^f([1-9][0-9]*)$/.test(Y))throw Error("Kc`"+Y);},uOd=function(Y){if(!/^\w+$/.test(Y))throw Error("Lc`"+Y);
},bb9=function(Y){Y=gf[Y]!==void 0?gf[Y].toString():null;
return Y!=null&&/^[A-Fa-f0-9]+$/.test(Y)?parseInt(Y,16):null};
_.f9.prototype.parse=function(Y){Y=decodeURIComponent(Y).split("&");for(var b=0;b<Y.length;b++){var w=Y[b].split("="),V=w[0];(w=w[1])&&(gf[V]=w.toString())}};var X1r={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"},qaL={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},sPb={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},m4g={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Uv;_.Nb=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.MY=function(Y,b,w){return Y.addJob(b,0,w)};
_.Nb.prototype.addLowPriorityJob=function(Y,b){return this.addJob(Y,1,b)};
_.vv=function(Y,b,w){return Y.addJob(b,2,w)};
_.ps=function(Y,b,w){return Y.addJob(b,3,w)};
_.Xl=function(Y,b,w){return Y.addJob(b,4,w)};
Uv=function(Y){var b=_.Aq("yt.scheduler.instance.addImmediateJob");b?b(Y):Y()};
_.Nb.prototype.debounce=function(Y,b,w){var V=this,H=0,f=function(){H&&V.cancelJob(H);H=V.addJob(Y,b,w);V.cancelDebouncedJobMap.set(f,H)};
return f};
_.Nb.prototype.cancelThrottle=function(Y){(Y=this.cancelThrottledJobMap.get(Y))&&Y()};var Eg=function(){_.Nb.apply(this,arguments)};
_.P(Eg,_.Nb);_.dp=function(){Eg.instance||(Eg.instance=new Eg);return Eg.instance};
Eg.prototype.addJob=function(Y,b,w){w!==void 0&&Number.isNaN(Number(w))&&(w=void 0);var V=_.Aq("yt.scheduler.instance.addJob");return V?V(Y,b,w):w===void 0?(Y(),NaN):_.m$(Y,w||0)};
Eg.prototype.cancelJob=function(Y){if(Y===void 0||!Number.isNaN(Number(Y))){var b=_.Aq("yt.scheduler.instance.cancelJob");b?b(Y):_.IV(Y)}};
Eg.prototype.start=function(){var Y=_.Aq("yt.scheduler.instance.start");Y&&Y()};
Eg.prototype.pause=function(){var Y=_.Aq("yt.scheduler.instance.pause");Y&&Y()};
_.Lb=_.dp();_.nH.prototype.set=function(Y,b){b===void 0?this.mechanism.remove(Y):this.mechanism.set(Y,(0,_.dP)(b))};
_.nH.prototype.get=function(Y){try{var b=this.mechanism.get(Y)}catch(w){return}if(b!==null)try{return JSON.parse(b)}catch(w){throw"Storage: Invalid value was encountered";}};
_.nH.prototype.remove=function(Y){this.mechanism.remove(Y)};var cx=function(Y){this.mechanism=Y};
_.DX(cx,_.nH);var wO9=function(Y){this.data=Y},VIr=function(Y){return Y===void 0||Y instanceof wO9?Y:new wO9(Y)};
cx.prototype.set=function(Y,b){cx.superClass_.set.call(this,Y,VIr(b))};
cx.prototype.getWrapper=function(Y){Y=cx.superClass_.get.call(this,Y);if(Y===void 0||Y instanceof Object)return Y;throw"Storage: Invalid value was encountered";};
cx.prototype.get=function(Y){if(Y=this.getWrapper(Y)){if(Y=Y.data,Y===void 0)throw"Storage: Invalid value was encountered";}else Y=void 0;return Y};_.DX(Mn,cx);_.HbI=function(Y){var b=Y.creation;Y=Y.expiration;return!!Y&&Y<_.XT()||!!b&&b>_.XT()};
Mn.prototype.set=function(Y,b,w){if(b=VIr(b)){if(w){if(w<_.XT()){Mn.prototype.remove.call(this,Y);return}b.expiration=w}b.creation=_.XT()}Mn.superClass_.set.call(this,Y,b)};
Mn.prototype.getWrapper=function(Y,b){var w=Mn.superClass_.getWrapper.call(this,Y);if(w)if(!b&&_.HbI(w))Mn.prototype.remove.call(this,Y);else return w};var Ug=function(){};
Ug.prototype.next=function(){return X_};
var X_={done:!0,value:void 0},D4=function(Y){return{value:Y,done:!1}};
Ug.prototype.__iterator__=function(){return this};
_.grk=function(Y){if(Y instanceof Ug)return Y;if(typeof Y.__iterator__=="function")return Y.__iterator__(!1);if(_.TK(Y)){var b=0,w=new Ug;w.next=function(){for(;;){if(b>=Y.length)return X_;if(b in Y)return D4(Y[b++]);b++}};
return w}throw Error("Mc");};var f9_=function(Y){if(Y instanceof m0||Y instanceof o5||Y instanceof I5)return Y;if(typeof Y.next=="function")return new m0(function(){return Y});
if(typeof Y[Symbol.iterator]=="function")return new m0(function(){return Y[Symbol.iterator]()});
if(typeof Y.__iterator__=="function")return new m0(function(){return Y.__iterator__()});
throw Error("Nc");},m0=function(Y){this.func_=Y};
m0.prototype.__iterator__=function(){return new o5(this.func_())};
m0.prototype[Symbol.iterator]=function(){return new I5(this.func_())};
m0.prototype.toEs6=function(){return new I5(this.func_())};
var o5=function(Y){this.JSC$8569_iter_=Y};
_.P(o5,Ug);o5.prototype.next=function(){return this.JSC$8569_iter_.next()};
o5.prototype[Symbol.iterator]=function(){return new I5(this.JSC$8569_iter_)};
o5.prototype.toEs6=function(){return new I5(this.JSC$8569_iter_)};
var I5=function(Y){m0.call(this,function(){return Y});
this.JSC$8572_iter_=Y};
_.P(I5,m0);I5.prototype.next=function(){return this.JSC$8572_iter_.next()};var NGt=function(){};var kW=function(){};
_.DX(kW,NGt);kW.prototype.getCount=function(){for(var Y=0,b=_.N(this),w=b.next();!w.done;w=b.next())Y++;return Y};
kW.prototype[Symbol.iterator]=function(){return f9_(this.__iterator__(!0)).toEs6()};
kW.prototype.clear=function(){var Y=Array.from(this);Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())this.remove(b.value)};_.DX(e3,kW);_.g=e3.prototype;_.g.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var Y=this.storage_;if(Y)try{Y.setItem("__sak","1");Y.removeItem("__sak");var b=!0}catch(w){b=w instanceof DOMException&&(w.name==="QuotaExceededError"||w.code===22||w.code===1014||w.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Y&&Y.length!==0}else b=!1;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
_.g.set=function(Y,b){lx(this);try{this.storage_.setItem(Y,b)}catch(w){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.g.get=function(Y){lx(this);Y=this.storage_.getItem(Y);if(typeof Y!=="string"&&Y!==null)throw"Storage mechanism: Invalid value was encountered";return Y};
_.g.remove=function(Y){lx(this);this.storage_.removeItem(Y)};
_.g.getCount=function(){lx(this);return this.storage_.length};
_.g.__iterator__=function(Y){lx(this);var b=0,w=this.storage_,V=new Ug;V.next=function(){if(b>=w.length)return X_;var H=w.key(b++);if(Y)return D4(H);H=w.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return D4(H)};
return V};
_.g.clear=function(){lx(this);this.storage_.clear()};
_.g.key=function(Y){lx(this);return this.storage_.key(Y)};
var lx=function(Y){if(Y.storage_==null)throw Error("Oc");Y.isAvailable()||Vv(Error("Oc"))};_.DX(Imr,e3);_.DX(kGu,e3);_.DX(pH,kW);pH.prototype.set=function(Y,b){this.mechanism_.set(this.JSC$8587_prefix_+Y,b)};
pH.prototype.get=function(Y){return this.mechanism_.get(this.JSC$8587_prefix_+Y)};
pH.prototype.remove=function(Y){this.mechanism_.remove(this.JSC$8587_prefix_+Y)};
pH.prototype.__iterator__=function(Y){var b=this.mechanism_[Symbol.iterator](),w=this,V=new Ug;V.next=function(){var H=b.next();if(H.done)return H;for(H=H.value;H.slice(0,w.JSC$8587_prefix_.length)!=w.JSC$8587_prefix_;){H=b.next();if(H.done)return H;H=H.value}return D4(Y?H.slice(w.JSC$8587_prefix_.length):w.mechanism_.get(H))};
return V};_.WO=function(Y){this.expiringStorage_=(Y=_.lmL(Y))?new Mn(Y):null;this.JSC$8591_domain_=document.domain||window.location.hostname};
_.WO.prototype.set=function(Y,b,w,V){w=w||31104E3;this.remove(Y);if(this.expiringStorage_)try{this.expiringStorage_.set(Y,b,Date.now()+w*1E3);return}catch(f){}var H="";if(V)try{H=escape((0,_.dP)(b))}catch(f){return}else H=escape(b);_.Qh(Y,H,w,this.JSC$8591_domain_)};
_.WO.prototype.get=function(Y,b){var w=void 0,V=!this.expiringStorage_;if(!V)try{w=this.expiringStorage_.get(Y)}catch(H){V=!0}if(V&&(w=_.sJ.get(Y,void 0))&&(w=unescape(w),b))try{w=JSON.parse(w)}catch(H){this.remove(Y),w=void 0}return w};
_.WO.prototype.remove=function(Y){this.expiringStorage_&&this.expiringStorage_.remove(Y);_.ELu(Y,"/",this.JSC$8591_domain_)};
_.WO.prototype.getCreationTime=function(Y){return this.expiringStorage_&&(Y=(this.expiringStorage_.getWrapper(Y)||{}).creation,typeof Y==="number")?Y:null};var x4v=function(){var Y;return function(){Y||(Y=new _.WO("ytidb"));return Y}}();var s3a;_.t6=[];s3a=!1;var zgb=Q3t||vLG;var ht={},Er_=(ht.AUTH_INVALID="No user identifier specified.",ht.EXPLICIT_ABORT="Transaction was explicitly aborted.",ht.IDB_NOT_SUPPORTED="IndexedDB is not supported.",ht.MISSING_INDEX="Index not created.",ht.MISSING_OBJECT_STORES="Object stores not created.",ht.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",ht.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",ht.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",ht.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",ht.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",ht.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",ht.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",ht),xW={},cEU=(xW.AUTH_INVALID="ERROR",xW.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",xW.EXPLICIT_ABORT="IGNORED",
xW.IDB_NOT_SUPPORTED="ERROR",xW.MISSING_INDEX="WARNING",xW.MISSING_OBJECT_STORES="ERROR",xW.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",xW.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",xW.QUOTA_EXCEEDED="WARNING",xW.QUOTA_MAYBE_EXCEEDED="WARNING",xW.UNKNOWN_ABORT="WARNING",xW.INCOMPATIBLE_DB_VERSION="WARNING",xW),qb={},UzC=(qb.AUTH_INVALID=!1,qb.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,qb.EXPLICIT_ABORT=!1,qb.IDB_NOT_SUPPORTED=!1,qb.MISSING_INDEX=!1,qb.MISSING_OBJECT_STORES=!1,qb.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,qb.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,qb.QUOTA_EXCEEDED=!1,qb.QUOTA_MAYBE_EXCEEDED=!0,qb.UNKNOWN_ABORT=!0,qb.INCOMPATIBLE_DB_VERSION=!1,qb),aV=function(Y,b,w,V,H){b=b===void 0?{}:b;w=w===void 0?Er_[Y]:w;V=V===void 0?cEU[Y]:V;H=H===void 0?UzC[Y]:H;_.BQ.call(this,w,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Y},b));this.type=Y;this.message=w;this.level=V;this.retryable=H;Object.setPrototypeOf(this,aV.prototype)};
_.P(aV,_.BQ);var XOj=function(Y,b){aV.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:Y},Er_.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,XOj.prototype)};
_.P(XOj,aV);var ZMv=function(Y,b){var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.index=Y;this.objectStore=b;Object.setPrototypeOf(this,ZMv.prototype)};
_.P(ZMv,Error);var BOB=["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 KH=function(Y){this.executor=Y},WQ=function(Y){var b=this;
this.state={status:"PENDING"};this.JSC$8619_onFulfilled=[];this.JSC$8619_onRejected=[];Y=Y.executor;var w=function(H){if(b.state.status==="PENDING"){b.state={status:"FULFILLED",value:H};H=_.N(b.JSC$8619_onFulfilled);for(var f=H.next();!f.done;f=H.next())f=f.value,f()}},V=function(H){if(b.state.status==="PENDING"){b.state={status:"REJECTED",
reason:H};H=_.N(b.JSC$8619_onRejected);for(var f=H.next();!f.done;f=H.next())f=f.value,f()}};
try{Y(w,V)}catch(H){V(H)}};
WQ.all=function(Y){return new WQ(new KH(function(b,w){var V=[],H=Y.length;H===0&&b(V);for(var f={i$jscomp$462:0};f.i$jscomp$462<Y.length;f={i$jscomp$462:f.i$jscomp$462},++f.i$jscomp$462)WQ.resolve(Y[f.i$jscomp$462]).then(function(E){return function(U){V[E.i$jscomp$462]=U;H--;H===0&&b(V)}}(f)).catch(function(E){w(E)})}))};
WQ.resolve=function(Y){return new WQ(new KH(function(b,w){Y instanceof WQ?Y.then(b,w):b(Y)}))};
WQ.reject=function(Y){return new WQ(new KH(function(b,w){w(Y)}))};
WQ.prototype.then=function(Y,b){var w=this,V=Y!=null?Y:egt,H=b!=null?b:MSq;return new WQ(new KH(function(f,E){w.state.status==="PENDING"?(w.JSC$8619_onFulfilled.push(function(){Dz5(w,w,V,f,E)}),w.JSC$8619_onRejected.push(function(){mzj(w,w,H,f,E)})):w.state.status==="FULFILLED"?Dz5(w,w,V,f,E):w.state.status==="REJECTED"&&mzj(w,w,H,f,E)}))};
WQ.prototype.catch=function(Y){return this.then(void 0,Y)};
var Dz5=function(Y,b,w,V,H){try{if(Y.state.status!=="FULFILLED")throw Error("Rc");var f=w(Y.state.value);f instanceof WQ?orU(Y,b,f,V,H):V(f)}catch(E){H(E)}},mzj=function(Y,b,w,V,H){try{if(Y.state.status!=="REJECTED")throw Error("Sc");
var f=w(Y.state.reason);f instanceof WQ?orU(Y,b,f,V,H):V(f)}catch(E){H(E)}},orU=function(Y,b,w,V,H){b===w?H(new TypeError("Tc")):w.then(function(f){f instanceof WQ?orU(Y,b,f,V,H):V(f)},function(f){H(f)})};var sg;sg=window;_.gG=sg.ytcsi&&sg.ytcsi.now?sg.ytcsi.now:sg.performance&&sg.performance.timing&&sg.performance.now&&sg.performance.timing.navigationStart?function(){return sg.performance.timing.navigationStart+sg.performance.now()}:function(){return(new Date).getTime()};var CH=function(Y,b){this.JSC$8631_wrapped=Y;this.options=b;this.transactionCount=0;this.startedMs=Math.round((0,_.gG)());this.hasUnknownAbortedTransaction=!1},l9Q,hnK,Px,sqK;
CH.prototype.add=function(Y,b,w){return _.Tr(this,[Y],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore(Y).add(b,w)})};
CH.prototype.clear=function(Y){return _.Tr(this,[Y],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(Y).clear()})};
CH.prototype.close=function(){this.JSC$8631_wrapped.close();var Y;((Y=this.options)==null?0:Y.closed)&&this.options.closed()};
CH.prototype.count=function(Y,b){return _.Tr(this,[Y],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(Y).count(b)})};
var iS=function(Y,b,w){Y=Y.JSC$8631_wrapped.createObjectStore(b,w);return new QS(Y)};
CH.prototype.delete=function(Y,b){return _.Tr(this,[Y],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore(Y).delete(b)})};
var I9d=function(Y,b){return _.Tr(Y,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(w){return w.objectStore("ResponseStore").index("byInterface").delete(b)})};
CH.prototype.get=function(Y,b){return _.Tr(this,[Y],{mode:"readonly",enableRetries:!0},function(w){return w.objectStore(Y).get(b)})};
CH.prototype.getAll=function(Y,b,w){return _.Tr(this,[Y],{mode:"readonly",enableRetries:!0},function(V){return V.objectStore(Y).getAll(b,w)})};
CH.prototype.put=function(Y,b,w){return _.Tr(this,[Y],{mode:"readwrite",enableRetries:!0},function(V){return V.objectStore(Y).put(b,w)})};
CH.prototype.objectStoreNames=function(){return Array.from(this.JSC$8631_wrapped.objectStoreNames)};
_.Tr=function(Y,b,w,V){var H,f,E,U,X,I,k,l,x,Q,Z,e;return _.c(function(O){switch(O.nextAddress){case 1:var L={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof w==="string"?L.mode=w:Object.assign(L,w);H=L;Y.transactionCount++;f=H.enableRetries?3:1;E=0;case 2:if(U){O.jumpTo(4);break}E++;X=Math.round((0,_.gG)());_.ct(O,5);I=Y.JSC$8631_wrapped.transaction(b,H.mode);L=new RgL(I);L=kDQ(L,V);return _.D(O,L,7);case 7:return k=O.yieldResult,l=Math.round((0,_.gG)()),l9Q(Y,X,l,E,void 0,
b.join(),H),O.return(k);case 5:x=_.mS(O);Q=Math.round((0,_.gG)());Z=nLe(x,Y.JSC$8631_wrapped.name,b.join(),Y.JSC$8631_wrapped.version);if((e=Z instanceof aV&&!Z.retryable)||E>=f)l9Q(Y,X,Q,E,Z,b.join(),H),U=Z;O.jumpTo(2);break;case 4:return O.return(Promise.reject(U))}})};
l9Q=function(Y,b,w,V,H,f,E){b=w-b;H?(H instanceof aV&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&da("QUOTA_EXCEEDED",{dbName:LH(Y.JSC$8631_wrapped.name),objectStoreNames:f,transactionCount:Y.transactionCount,transactionMode:E.mode}),H instanceof aV&&H.type==="UNKNOWN_ABORT"&&(w-=Y.startedMs,w<0&&w>=2147483648&&(w=0),da("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:Y.transactionCount,dbDuration:w}),Y.hasUnknownAbortedTransaction=!0),
hnK(Y,!1,V,f,b,E.tag),_.RV(H)):hnK(Y,!0,V,f,b,E.tag)};
hnK=function(Y,b,w,V,H,f){da("TRANSACTION_ENDED",{objectStoreNames:V,connectionHasUnknownAbortedTransaction:Y.hasUnknownAbortedTransaction,duration:H,isSuccessful:b,tryCount:w,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
CH.prototype.getVersion=function(){return this.JSC$8631_wrapped.version};
CH.prototype.getName=function(){return this.JSC$8631_wrapped.name};
var QS=function(Y){this.JSC$8646_wrapped=Y};
QS.prototype.add=function(Y,b){return ic(this.JSC$8646_wrapped.add(Y,b))};
QS.prototype.autoIncrement=function(){return this.JSC$8646_wrapped.autoIncrement};
QS.prototype.clear=function(){return ic(this.JSC$8646_wrapped.clear()).then(function(){})};
var AE=function(Y,b,w){Y.JSC$8646_wrapped.createIndex(b,w,{unique:!1})};
QS.prototype.count=function(Y){return ic(this.JSC$8646_wrapped.count(Y))};
var xzU=function(Y,b){return uc(Y,{query:b},function(w){return w.delete().then(function(){return w.continue()})}).then(function(){})};
QS.prototype.delete=function(Y){return Y instanceof IDBKeyRange?xzU(this,Y):ic(this.JSC$8646_wrapped.delete(Y))};
QS.prototype.get=function(Y){return ic(this.JSC$8646_wrapped.get(Y))};
QS.prototype.getAll=function(Y,b){return"getAll"in IDBObjectStore.prototype?ic(this.JSC$8646_wrapped.getAll(Y,b)):qKt(this,Y,b)};
var qKt=function(Y,b,w){var V=[];return uc(Y,{query:b},function(H){if(!(w!==void 0&&V.length>=w))return V.push(H.getValue()),H.continue()}).then(function(){return V})};
QS.prototype.index=function(Y){try{return new vx(this.JSC$8646_wrapped.index(Y))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new ZMv(Y,this.JSC$8646_wrapped.name);throw b;}};
QS.prototype.getName=function(){return this.JSC$8646_wrapped.name};
QS.prototype.keyPath=function(){return this.JSC$8646_wrapped.keyPath};
QS.prototype.put=function(Y,b){return ic(this.JSC$8646_wrapped.put(Y,b))};
var uc=function(Y,b,w){Y=Y.JSC$8646_wrapped.openCursor(b.query,b.direction);return sqK(Y).then(function(V){return tSb(V,w)})},RgL=function(Y){var b=this;
this.JSC$8654_wrapped=Y;this.objectStoreCache=new Map;this.JSC$8654_aborted=!1;this.done=new Promise(function(w,V){b.JSC$8654_wrapped.addEventListener("complete",function(){w()});
b.JSC$8654_wrapped.addEventListener("error",function(H){H.currentTarget===H.target&&V(b.JSC$8654_wrapped.error)});
b.JSC$8654_wrapped.addEventListener("abort",function(){var H=b.JSC$8654_wrapped.error;if(H)V(H);else if(!b.JSC$8654_aborted){H=aV;for(var f=b.JSC$8654_wrapped.objectStoreNames,E=[],U=0;U<f.length;U++){var X=f.item(U);if(X===null)throw Error("Uc");E.push(X)}H=new H("UNKNOWN_ABORT",{objectStoreNames:E.join(),dbName:b.JSC$8654_wrapped.db.name,mode:b.JSC$8654_wrapped.mode});V(H)}})})},kDQ=function(Y,b){var w=new Promise(function(V,H){try{b(Y).then(function(f){V(f)}).catch(H)}catch(f){H(f),Y.abort()}});
return Promise.all([w,Y.done]).then(function(V){return _.N(V).next().value})};
RgL.prototype.abort=function(){this.JSC$8654_wrapped.abort();this.JSC$8654_aborted=!0;throw new aV("EXPLICIT_ABORT");};
RgL.prototype.objectStore=function(Y){Y=this.JSC$8654_wrapped.objectStore(Y);var b=this.objectStoreCache.get(Y);b||(b=new QS(Y),this.objectStoreCache.set(Y,b));return b};
var vx=function(Y){this.JSC$8656_wrapped=Y};
vx.prototype.count=function(Y){return ic(this.JSC$8656_wrapped.count(Y))};
vx.prototype.delete=function(Y){return _.fb(this,{query:Y},function(b){return b.delete().then(function(){return b.continue()})})};
vx.prototype.get=function(Y){return ic(this.JSC$8656_wrapped.get(Y))};
vx.prototype.getAll=function(Y,b){return"getAll"in IDBIndex.prototype?ic(this.JSC$8656_wrapped.getAll(Y,b)):Qq8(this,Y,b)};
var Qq8=function(Y,b,w){var V=[];return _.fb(Y,{query:b},function(H){if(!(w!==void 0&&V.length>=w))return V.push(H.getValue()),H.continue()}).then(function(){return V})};
vx.prototype.keyPath=function(){return this.JSC$8656_wrapped.keyPath};
vx.prototype.unique=function(){return this.JSC$8656_wrapped.unique};
_.fb=function(Y,b,w){Y=Y.JSC$8656_wrapped.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return sqK(Y).then(function(V){return tSb(V,w)})};
Px=function(Y,b){this.request=Y;this.cursor=b};
sqK=function(Y){return ic(Y).then(function(b){return b?new Px(Y,b):null})};
Px.prototype.continue=function(Y){this.cursor.continue(Y);return sqK(this.request)};
Px.prototype.delete=function(){return ic(this.cursor.delete()).then(function(){})};
Px.prototype.getValue=function(){return this.cursor.value};
Px.prototype.update=function(Y){return ic(this.cursor.update(Y))};var Z4=function(Y,b){this.name=Y;this.options=b;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},vrI;
Z4.prototype.openDb=function(Y,b,w){w=w===void 0?{}:w;return FK6(Y,b,w)};
Z4.prototype.delete=function(Y){Y=Y===void 0?{}:Y;return _.j3(this.name,Y)};
vrI=function(Y,b){return new aV("INCOMPATIBLE_DB_VERSION",{dbName:Y.name,oldVersion:Y.options.version,newVersion:b})};
_.Gr=function(Y,b){if(!b)throw zr("openWithToken",LH(Y.name));return Y.open()};
Z4.prototype.open=function(){var Y=this;if(!this.isCompatible)throw vrI(this);if(this.connectionPromise)return this.connectionPromise;var b,w=function(){Y.connectionPromise===b&&(Y.connectionPromise=void 0)},V={blocking:function(f){f.close()},
closed:w,terminated:w,upgrade:this.options.upgrade},H=function(){var f,E,U,X,I,k,l,x,Q,Z;return _.c(function(e){switch(e.nextAddress){case 1:return E=(f=Error().stack)!=null?f:"",_.ct(e,2),_.D(e,Y.openDb(Y.name,Y.options.version,V),4);case 4:for(var O=U=e.yieldResult,L=Y.options,r=[],C=_.N(Object.keys(L.objectStores)),W=C.next();!W.done;W=C.next()){W=W.value;var y=L.objectStores[W],G=y.removedAtVersion===void 0?Number.MAX_VALUE:y.removedAtVersion;!(O.JSC$8631_wrapped.version>=y.addedAtVersion)||O.JSC$8631_wrapped.version>=
G||O.JSC$8631_wrapped.objectStoreNames.contains(W)||r.push(W)}X=r;if(X.length===0){e.jumpTo(5);break}I=Object.keys(Y.options.objectStores);k=U.objectStoreNames();if(Y.timesReopenedToFixMissingObjectStore<_.cQ("ytidb_reopen_db_retries",0))return Y.timesReopenedToFixMissingObjectStore++,U.close(),_.RV(new aV("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:Y.name,expectedObjectStores:I,foundObjectStores:k})),e.return(H());if(!(Y.timesDeletedToFixMissingObjectStore<_.cQ("ytidb_remake_db_retries",1))){e.jumpTo(6);
break}Y.timesDeletedToFixMissingObjectStore++;return _.D(e,Y.delete(),7);case 7:return _.RV(new aV("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:Y.name,expectedObjectStores:I,foundObjectStores:k})),e.return(H());case 6:throw new XOj(k,I);case 5:return e.return(U);case 2:l=_.mS(e);if(l instanceof DOMException?l.name!=="VersionError":"DOMError"in self&&l instanceof DOMError?l.name!=="VersionError":!(l instanceof Object&&"message"in l)||l.message!=="An attempt was made to open a database using a lower version than the existing version."){e.jumpTo(8);
break}return _.D(e,Y.openDb(Y.name,void 0,Object.assign({},V,{upgrade:void 0})),9);case 9:x=e.yieldResult;Q=x.getVersion();if(Y.options.version!==void 0&&Q>Y.options.version+1)throw x.close(),Y.isCompatible=!1,vrI(Y,Q);return e.return(x);case 8:throw w(),l instanceof Error&&!_.q("ytidb_async_stack_killswitch")&&(l.stack=l.stack+"\n"+E.substring(E.indexOf("\n")+1)),nLe(l,Y.name,"",(Z=Y.options.version)!=null?Z:-1);}})};
return this.connectionPromise=b=H()};var LKL=new Z4("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(Y,b){b(1)&&iS(Y,"databases",{keyPath:"actualName"})}});var iMI,WKM=new function(){}(new function(){});new _.mD;var PSd=function(Y,b){Z4.call(this,Y,b);this.options=b;FO(Y)};
_.P(PSd,Z4);var YaL=function(Y,b){var w;return function(){w||(w=new PSd(Y,b));return w}};
PSd.prototype.openDb=function(Y,b,w){w=w===void 0?{}:w;return(this.options.shared?j3B:$4r)(Y,b,Object.assign({},w))};
PSd.prototype.delete=function(Y){Y=Y===void 0?{}:Y;return(this.options.shared?uAa:GGI)(this.name,Y)};var Zb$={},bza=HO("ytGcfConfig",{objectStores:(Zb$.coldConfigStore={addedAtVersion:1},Zb$.hotConfigStore={addedAtVersion:1},Zb$),shared:!1,upgrade:function(Y,b){b(1)&&(AE(iS(Y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),AE(iS(Y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var BG8=function(){_.BE.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var Y=_.Aq("yt.gcf.config.hotUpdateCallbacks");Y?(this.localHotConfigJobQueue=[].concat(_.Bt(Y)),this.sharedHotConfigJobQueue=Y):(this.sharedHotConfigJobQueue=[],_.wG("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.P(BG8,_.BE);BG8.prototype.disposeInternal=function(){for(var Y=_.N(this.localHotConfigJobQueue),b=Y.next();!b.done;b=Y.next()){var w=this.sharedHotConfigJobQueue;b=w.indexOf(b.value);b>=0&&w.splice(b,1)}this.localHotConfigJobQueue.length=0;_.BE.prototype.disposeInternal.call(this)};var ek=function(){var Y=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new BG8;this.TEST_ONLY={initializeConfigDb:function(){Y.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return Y.coldGlobalConfigGroup},
setHotConfigGroup:function(b){nrk(Y,b)},
setHotHashData:function(b){Y.setHotHashData(b)},
setColdConfigGroup:function(b){MIC(Y,b)},
getColdHashData:function(){return Y.coldHashData},
getHotHashData:function(){return Y.hotHashData},
getHotConfigGroup:function(){return Y.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return en_()},
getExportedHotConfigGroup:function(){return Bx()},
getExportedColdHashData:function(){return _.Aq("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Aq("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){pOQ(Y)},
resetInstance:function(){Y.setHotHashData(void 0);Ob5(Y);delete ek.instance},
setDebounceTimer:function(b){Y.debounceTimer=b},
getDebounceTimer:function(){return Y.debounceTimer}}},tIo=function(){if(!ek.instance){var Y=new ek;
ek.instance=Y}return ek.instance},Fq8=function(Y){var b;
_.c(function(w){if(w.nextAddress==1)return _.q("start_client_gcf")||_.q("delete_gcf_config_db")?_.q("start_client_gcf")?_.D(w,_.Vn(),3):w.jumpTo(2):w.return();w.nextAddress!=2&&((b=w.yieldResult)&&_.Zj()&&!_.q("delete_gcf_config_db")?(Y.isConfigDbInitialized=!0,pOQ(Y)):(Rn_(Y),dz_(Y)));return _.q("delete_gcf_config_db")?_.D(w,N56(),0):w.jumpTo(0)})},EOu=function(){var Y;
return(Y=Bx())!=null?Y:_.zO("RAW_HOT_CONFIG_GROUP")},Lqk=function(Y){var b,w,V,H,f,E;
return _.c(function(U){switch(U.nextAddress){case 1:if(Y.hotGlobalConfigGroup)return U.return(Bx());if(!Y.isConfigDbInitialized)return b=zr("getHotConfig IDB not initialized"),_.C7(b),U.return(Promise.reject(b));w=bS();V=_.zO("TIME_CREATED_MS");if(!w){H=zr("getHotConfig token error");_.C7(H);U.jumpTo(2);break}return _.D(U,feK(w),3);case 3:if((f=U.yieldResult)&&f.timestamp>V)return nrk(Y,f.config),Y.setHotHashData(f.hashData),U.return(Bx());case 2:dz_(Y);if(!(w&&Y.hotGlobalConfigGroup&&Y.hotHashData)){U.jumpTo(4);
break}return _.D(U,V1L(Y.hotGlobalConfigGroup,Y.hotHashData,w,V),4);case 4:return Y.hotGlobalConfigGroup?U.return(Bx()):(E=new _.BQ("Config not available in ytConfig"),_.C7(E),U.return(Promise.reject(E)))}})},a9U=function(Y){var b,w,V,H,f,E;
return _.c(function(U){switch(U.nextAddress){case 1:if(Y.coldGlobalConfigGroup)return U.return(en_());if(!Y.isConfigDbInitialized)return b=zr("getColdConfig IDB not initialized"),_.C7(b),U.return(Promise.reject(b));w=bS();V=_.zO("TIME_CREATED_MS");if(!w){H=zr("getColdConfig");_.C7(H);U.jumpTo(2);break}return _.D(U,g7I(w),3);case 3:if((f=U.yieldResult)&&f.timestamp>V)return MIC(Y,f.config),SKk(Y,f.configData),Ob5(Y,f.hashData),U.return(en_());case 2:Rn_(Y);if(!(w&&Y.coldGlobalConfigGroup&&Y.coldHashData&&
Y.configData)){U.jumpTo(4);break}return _.D(U,Hze(Y.coldGlobalConfigGroup,Y.coldHashData,Y.configData,w,V),4);case 4:return Y.coldGlobalConfigGroup?U.return(en_()):(E=new _.BQ("Config not available in ytConfig"),_.C7(E),U.return(Promise.reject(E)))}})},pOQ=function(Y){if(!Y.hotGlobalConfigGroup||!Y.coldGlobalConfigGroup){if(!bS()){var b=zr("scheduleGetConfigs");
_.C7(b)}Y.initJob||(Y.initJob=_.Lb.addLowPriorityJob(function(){return _.c(function(w){switch(w.nextAddress){case 1:return _.ct(w,2),_.D(w,Lqk(Y),4);case 4:_.$u(w,3);break;case 2:_.mS(w);case 3:return _.ct(w,5),_.D(w,a9U(Y),7);case 7:_.$u(w,6);break;case 5:_.mS(w);case 6:Y.initJob&&(Y.initJob=0),_.om(w)}})},100))}},VzG=function(Y,b,w){var V,H,f;
return _.c(function(E){switch(E.nextAddress){case 1:if(!_.q("start_client_gcf")){E.jumpTo(0);break}w&&nrk(Y,w);Y.setHotHashData(b);V=bS();if(!V){E.jumpTo(3);break}if(w){E.jumpTo(4);break}return _.D(E,feK(V),5);case 5:H=E.yieldResult,w=(f=H)==null?void 0:f.config;case 4:return _.D(E,V1L(w,b,V),3);case 3:if(w)for(var U=w,X=_.N(Y.configUpdateService.sharedHotConfigJobQueue),I=X.next();!I.done;I=X.next())I=I.value,I(U);_.om(E)}})},HAa=function(Y,b,w){var V,H,f,E;
return _.c(function(U){if(U.nextAddress==1){if(!_.q("start_client_gcf"))return U.jumpTo(0);Ob5(Y,b);return(V=bS())?w?U.jumpTo(4):_.D(U,g7I(V),5):U.jumpTo(0)}U.nextAddress!=4&&(H=U.yieldResult,w=(f=H)==null?void 0:f.config);if(!w)return U.jumpTo(0);E=w.configData;return _.D(U,Hze(w,b,E,V),0)})},Zzr=function(){var Y=tIo(),b=(0,_.gG)()-Y.debounceTimer;
if(!(Y.debounceTimer!==0&&b<_.cQ("send_config_hash_timer"))){b=_.Aq("yt.gcf.config.coldConfigData");var w=_.Aq("yt.gcf.config.hotHashData"),V=_.Aq("yt.gcf.config.coldHashData");b&&w&&V&&(Y.debounceTimer=(0,_.gG)());return{coldConfigData:b,hotHashData:w,coldHashData:V}}},Rn_=function(Y){MIC(Y,_.zO("RAW_COLD_CONFIG_GROUP"));
Ob5(Y,_.zO("SERIALIZED_COLD_HASH_DATA"));var b;SKk(Y,(b=Y.coldGlobalConfigGroup)==null?void 0:b.configData)},dz_=function(Y){nrk(Y,_.zO("RAW_HOT_CONFIG_GROUP"));
Y.setHotHashData(_.zO("SERIALIZED_HOT_HASH_DATA"))},nrk=function(Y,b){Y.hotGlobalConfigGroup=b;
_.wG("yt.gcf.config.hotConfigGroup",Y.hotGlobalConfigGroup||null)},MIC=function(Y,b){Y.coldGlobalConfigGroup=b;
_.wG("yt.gcf.config.coldConfigGroup",Y.coldGlobalConfigGroup||null)};
ek.prototype.setHotHashData=function(Y){this.hotHashData=Y;_.wG("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Ob5=function(Y,b){Y.coldHashData=b;_.wG("yt.gcf.config.coldHashData",Y.coldHashData||null)},SKk=function(Y,b){Y.configData=b;
_.wG("yt.gcf.config.coldConfigData",Y.configData||null)},Bx=function(){return _.Aq("yt.gcf.config.hotConfigGroup")},en_=function(){return _.Aq("yt.gcf.config.coldConfigGroup")};var kr={},rEI=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";kr.assign=function(Y){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var w=b.shift();if(w){if(typeof w!=="object")throw new TypeError("Xc`"+w);for(var V in w)Object.prototype.hasOwnProperty.call(w,V)&&(Y[V]=w[V])}}return Y};
kr.shrinkBuf=function(Y,b){if(Y.length===b)return Y;if(Y.subarray)return Y.subarray(0,b);Y.length=b;return Y};
var zno={arraySet:function(Y,b,w,V,H){if(b.subarray&&Y.subarray)Y.set(b.subarray(w,w+V),H);else for(var f=0;f<V;f++)Y[H+f]=b[w+f]},
flattenChunks:function(Y){var b,w;var V=w=0;for(b=Y.length;V<b;V++)w+=Y[V].length;var H=new Uint8Array(w);V=w=0;for(b=Y.length;V<b;V++){var f=Y[V];H.set(f,w);w+=f.length}return H}},WqC={arraySet:function(Y,b,w,V,H){for(var f=0;f<V;f++)Y[H+f]=b[w+f]},
flattenChunks:function(Y){return[].concat.apply([],Y)}};
kr.setTyped=function(){rEI?(kr.Buf8=Uint8Array,kr.Buf16=Uint16Array,kr.Buf32=Int32Array,kr.assign(kr,zno)):(kr.Buf8=Array,kr.Buf16=Array,kr.Buf32=Array,kr.assign(kr,WqC))};
kr.setTyped();var KqU=!0;try{new Uint8Array(1)}catch(Y){KqU=!1}
var f7I=function(Y){var b,w,V=Y.length,H=0;for(b=0;b<V;b++){var f=Y.charCodeAt(b);if((f&64512)===55296&&b+1<V){var E=Y.charCodeAt(b+1);(E&64512)===56320&&(f=65536+(f-55296<<10)+(E-56320),b++)}H+=f<128?1:f<2048?2:f<65536?3:4}var U=new kr.Buf8(H);for(b=w=0;w<H;b++)f=Y.charCodeAt(b),(f&64512)===55296&&b+1<V&&(E=Y.charCodeAt(b+1),(E&64512)===56320&&(f=65536+(f-55296<<10)+(E-56320),b++)),f<128?U[w++]=f:(f<2048?U[w++]=192|f>>>6:(f<65536?U[w++]=224|f>>>12:(U[w++]=240|f>>>18,U[w++]=128|f>>>12&63),U[w++]=
128|f>>>6&63),U[w++]=128|f&63);return U};var y1u={};y1u=function(Y,b,w,V){var H=Y&65535|0;Y=Y>>>16&65535|0;for(var f;w!==0;){f=w>2E3?2E3:w;w-=f;do H=H+b[V++]|0,Y=Y+H|0;while(--f);H%=65521;Y%=65521}return H|Y<<16|0};for(var OK={},n9,ibK=[],AEQ=0;AEQ<256;AEQ++){n9=AEQ;for(var CSr=0;CSr<8;CSr++)n9=n9&1?3988292384^n9>>>1:n9>>>1;ibK[AEQ]=n9}OK=function(Y,b,w,V){w=V+w;for(Y^=-1;V<w;V++)Y=Y>>>8^ibK[(Y^b[V])&255];return Y^-1};var qz={};qz={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 Fxt=[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],Saq=[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],gtv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A1t=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],PO=Array(576);D9(PO);var Z9=Array(60);D9(Z9);var hE=Array(512);D9(hE);var lS=Array(256);D9(lS);var Lxr=Array(29);D9(Lxr);var aeu=Array(30);D9(aeu);var w$K,VlL,H8B,b8K=!1;var F4;
F4=[new dG(0,0,0,0,function(Y,b){var w=65535;for(w>Y.pending_buf_size-5&&(w=Y.pending_buf_size-5);;){if(Y.lookahead<=1){tE(Y);if(Y.lookahead===0&&b===0)return 1;if(Y.lookahead===0)break}Y.strstart+=Y.lookahead;Y.lookahead=0;var V=Y.block_start+w;if(Y.strstart===0||Y.strstart>=V)if(Y.lookahead=Y.strstart-V,Y.strstart=V,Mz(Y,!1),Y.strm.avail_out===0)return 1;if(Y.strstart-Y.block_start>=Y.w_size-262&&(Mz(Y,!1),Y.strm.avail_out===0))return 1}Y.insert=0;if(b===4)return Mz(Y,!0),Y.strm.avail_out===0?3:
4;Y.strstart>Y.block_start&&Mz(Y,!1);return 1}),
new dG(4,4,8,4,$8I),new dG(4,5,16,8,$8I),new dG(4,6,32,32,$8I),new dG(4,4,16,16,Rq),new dG(8,16,32,32,Rq),new dG(8,16,128,128,Rq),new dG(8,32,128,256,Rq),new dG(32,128,258,1024,Rq),new dG(32,258,258,4096,Rq)];var Yfe={};Yfe=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 NbK=Object.prototype.toString;
ux6.prototype.push=function(Y,b){var w=this.strm,V=this.options.chunkSize;if(this.ended)return!1;var H=b===~~b?b:b===!0?4:0;typeof Y==="string"?w.input=f7I(Y):NbK.call(Y)==="[object ArrayBuffer]"?w.input=new Uint8Array(Y):w.input=Y;w.next_in=0;w.avail_in=w.input.length;do{w.avail_out===0&&(w.output=new kr.Buf8(V),w.next_out=0,w.avail_out=V);Y=J1g(w,H);if(Y!==1&&Y!==0)return yEd(this,Y),this.ended=!0,!1;if(w.avail_out===0||w.avail_in===0&&(H===4||H===2))if(this.options.to==="string"){var f=kr.shrinkBuf(w.output,
w.next_out);b=f;f=f.length;if(f<65537&&(b.subarray&&KqU||!b.subarray))b=String.fromCharCode.apply(null,kr.shrinkBuf(b,f));else{for(var E="",U=0;U<f;U++)E+=String.fromCharCode(b[U]);b=E}this.chunks.push(b)}else b=kr.shrinkBuf(w.output,w.next_out),this.chunks.push(b)}while((w.avail_in>0||w.avail_out===0)&&Y!==1);if(H===4)return(w=this.strm)&&w.state?(V=w.state.status,V!==42&&V!==69&&V!==73&&V!==91&&V!==103&&V!==113&&V!==666?Y=sK(w,-2):(w.state=null,Y=V===113?sK(w,-3):0)):Y=-2,yEd(this,Y),this.ended=
!0,Y===0;H===2&&(yEd(this,0),w.avail_out=0);return!0};
var yEd=function(Y,b){b===0&&(Y.result=Y.options.to==="string"?Y.chunks.join(""):kr.flattenChunks(Y.chunks));Y.chunks=[];Y.err=b;Y.msg=Y.strm.msg};var $zd=typeof TextEncoder!=="undefined"?new TextEncoder:null,LRb=$zd?function(Y){return $zd.encode(Y)}:function(Y){Y=_.PE(Y);
for(var b=new Uint8Array(Y.length),w=0;w<b.length;w++)b[w]=Y[w];return b};var EWg={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},UbG={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Mb=function(Y,b){this.version=Y;this.args=b};
Mb.prototype.serialize=function(){return{version:this.version,args:this.args}};var DVr=function(Y,b){this.topic=Y;this.dataClass=b};
DVr.prototype.toString=function(){return this.topic};var jq9=_.Aq("ytPubsub2Pubsub2Instance")||new _.xu;_.xu.prototype.subscribe=_.xu.prototype.subscribe;_.xu.prototype.unsubscribeByKey=_.xu.prototype.unsubscribeByKey;_.xu.prototype.publish=_.xu.prototype.publish;_.xu.prototype.clear=_.xu.prototype.clear;_.wG("ytPubsub2Pubsub2Instance",jq9);var X$b=_.Aq("ytPubsub2Pubsub2SubscribedKeys")||{};_.wG("ytPubsub2Pubsub2SubscribedKeys",X$b);var ota=_.Aq("ytPubsub2Pubsub2TopicToKeys")||{};_.wG("ytPubsub2Pubsub2TopicToKeys",ota);
var mVG=_.Aq("ytPubsub2Pubsub2IsAsync")||{};_.wG("ytPubsub2Pubsub2IsAsync",mVG);_.wG("ytPubsub2Pubsub2SkipSubKey",null);var P3t=void 0,Q8I=void 0;var tlt=_.cQ("max_body_size_to_compress",5E5),RMK=_.cQ("min_body_size_to_compress",500),aq=!0,rrg=0,rG=0,a7a=_.cQ("compression_performance_threshold_lr",250),zMb=_.cQ("slow_compressions_before_abandon_count",4),ntb=!1,Mlu=new Map,FRr=1,dVG=!0;_.DX(zD,i8L);zD.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 GDj=function(Y,b,w){w||(w=0);var V=Y.W_;if(typeof b==="string")for(var H=0;H<16;H++)V[H]=b.charCodeAt(w)<<24|b.charCodeAt(w+1)<<16|b.charCodeAt(w+2)<<8|b.charCodeAt(w+3),w+=4;else for(H=0;H<16;H++)V[H]=b[w]<<24|b[w+1]<<16|b[w+2]<<8|b[w+3],w+=4;for(b=16;b<80;b++)w=V[b-3]^V[b-8]^V[b-14]^V[b-16],V[b]=(w<<1|w>>>31)&4294967295;b=Y.chain_[0];w=Y.chain_[1];H=Y.chain_[2];for(var f=Y.chain_[3],E=Y.chain_[4],U,X,I=0;I<80;I++)I<40?I<20?(U=f^w&(H^f),X=1518500249):(U=w^H^f,X=1859775393):I<60?(U=w&H|f&(w|H),
X=2400959708):(U=w^H^f,X=3395469782),U=(b<<5|b>>>27)+U+E+X+V[I]&4294967295,E=f,f=H,H=(w<<30|w>>>2)&4294967295,w=b,b=U;Y.chain_[0]=Y.chain_[0]+b&4294967295;Y.chain_[1]=Y.chain_[1]+w&4294967295;Y.chain_[2]=Y.chain_[2]+H&4294967295;Y.chain_[3]=Y.chain_[3]+f&4294967295;Y.chain_[4]=Y.chain_[4]+E&4294967295};
zD.prototype.update=function(Y,b){if(Y!=null){b===void 0&&(b=Y.length);for(var w=b-this.blockSize,V=0,H=this.buf_,f=this.inbuf_;V<b;){if(f==0)for(;V<=w;)GDj(this,Y,V),V+=this.blockSize;if(typeof Y==="string")for(;V<b;){if(H[f]=Y.charCodeAt(V),++f,++V,f==this.blockSize){GDj(this,H);f=0;break}}else for(;V<b;)if(H[f]=Y[V],++f,++V,f==this.blockSize){GDj(this,H);f=0;break}}this.inbuf_=f;this.total_+=b}};
zD.prototype.digest=function(){var Y=[],b=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var w=this.blockSize-1;w>=56;w--)this.buf_[w]=b&255,b/=256;GDj(this,this.buf_);for(w=b=0;w<5;w++)for(var V=24;V>=0;V-=8)Y[b]=this.chain_[w]>>V&255,++b;return Y};var yru;var p9=function(Y){var b=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(k){b.databaseToken=k},
triggerThrottle:function(){b.throttledSend()},
cancelThrottle:function(){b.cancelThrottledSend()},
immediateSend:function(k){return _.c(function(l){return _.D(l,b.immediateSend(k),0)})},
requestWithinAgeLimit:function(k,l){return b.requestWithinAgeLimit(k,l)},
retryQueuedRequests:function(){b.retryQueuedRequests()}};
var w;this.throttleTimeout=(w=Y.throttleTimeout)!=null?w:100;var V;this.retryMaxAttempts=(V=Y.retryMaxAttempts)!=null?V:1;var H;this.requestAgeLimitMs=(H=Y.requestAgeLimitMs)!=null?H:2592E6;var f;this.queuedRequestAgeLimitMs=(f=Y.queuedRequestAgeLimitMs)!=null?f:12E4;var E;this.retryDelayMs=(E=Y.retryDelayMs)!=null?E:5E3;var U;this.databaseToken=(U=Y.databaseToken)!=null?U:void 0;this.enableCleaning=!!Y.enableCleaning;var X;this.cleaningRate=(X=Y.cleaningRate)!=null?X:.1;var I;this.potentialEsfErrorLimit=
(I=Y.potentialEsfErrorLimit)!=null?I:10;Y.handleError&&(this.handleError=Y.handleError);Y.handleWarning&&(this.handleWarning=Y.handleWarning);Y.disableYtIdbTransactions&&(this.disableYtIdbTransactions=Y.disableYtIdbTransactions);Y.bypassDbTokenDependency&&(this.bypassDbTokenDependency=Y.bypassDbTokenDependency);this.getBooleanFlag=Y.getBooleanFlag;this.jobManager=Y.jobManager;this.logsStore=Y.logsStore;this.networkManager=Y.networkManager;this.sendFn=Y.sendFn;this.onlineEvent=Y.onlineEvent;this.offlineEvent=
Y.offlineEvent;ef(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&TG$(this)},TG$=function(Y){ef(Y)&&!Y.disableYtIdbTransactions&&(Y.initialized=!0,Y.enableCleaning&&Math.random()<=Y.cleaningRate&&Y.logsStore.cleanLogsStore(Y.databaseToken),Y.retryQueuedRequests(),Y.networkManager.isNetworkAvailable()&&Y.throttledSend(),Y.networkManager.listen(Y.onlineEvent,Y.throttledSend.bind(Y)),Y.networkManager.listen(Y.offlineEvent,Y.cancelThrottledSend.bind(Y)))};
_.g=p9.prototype;_.g.writeThenSend=function(Y,b){var w=this;b=b===void 0?{}:b;if(ef(this)&&this.initialized){var V={url:Y,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(V,this.databaseToken).then(function(H){V.id=H;w.networkManager.isNetworkAvailable()&&w.immediateSend(V)}).catch(function(H){w.immediateSend(V);
JEj(w,H)})}else this.sendFn(Y,b)};
_.g.sendThenWrite=function(Y,b,w){var V=this;b=b===void 0?{}:b;if(ef(this)&&this.initialized){var H={url:Y,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(H.skipRetry=w);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!H.skipRetry){if(!H.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(E,U){return _.c(function(X){if(X.nextAddress==1)return _.D(X,V.logsStore.set(H,V.databaseToken).catch(function(I){JEj(V,I)}),2);
f(E,U);_.om(X)})}}this.sendFn(Y,b,H.skipRetry)}else this.logsStore.set(H,this.databaseToken).catch(function(E){V.sendFn(Y,b,H.skipRetry);
JEj(V,E)})}else this.sendFn(Y,b,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&w)};
_.g.sendAndWrite=function(Y,b){var w=this;b=b===void 0?{}:b;if(ef(this)&&this.initialized){var V={url:Y,options:b,timestamp:this.now(),status:"NEW",sendCount:0},H=!1,f=b.onSuccess?b.onSuccess:function(){};
V.options.onSuccess=function(E,U){V.id!==void 0?w.logsStore.deleteRequest(V.id,w.databaseToken):H=!0;w.networkManager.networkStatusHint&&w.getBooleanFlag&&w.getBooleanFlag("vss_network_hint")&&w.networkManager.networkStatusHint(!0);f(E,U)};
this.sendFn(V.url,V.options,void 0,!0);this.logsStore.set(V,this.databaseToken).then(function(E){V.id=E;H&&w.logsStore.deleteRequest(V.id,w.databaseToken)}).catch(function(E){JEj(w,E)})}else this.sendFn(Y,b,void 0,!0)};
_.g.throttledSend=function(){var Y=this;if(!ef(this))throw Error("$c");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.logsStore.getMostRecentByStatus("NEW",Y.databaseToken),2);if(w.nextAddress!=3)return b=w.yieldResult,b?_.D(w,Y.immediateSend(b),3):(Y.cancelThrottledSend(),w.return());Y.intervalJob&&(Y.intervalJob=0,Y.throttledSend());_.om(w)})},this.throttleTimeout))};
_.g.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.g.immediateSend=function(Y){var b=this,w;return _.c(function(V){switch(V.nextAddress){case 1:if(!ef(b))throw Error("ad");if(Y.id===void 0){V.jumpTo(2);break}return _.D(V,b.logsStore.markAsQueued(Y.id,b.databaseToken),3);case 3:(w=V.yieldResult)||b.handleWarning(Error("bd"));case 2:if(b.requestWithinAgeLimit(Y,b.requestAgeLimitMs)){V.jumpTo(4);break}b.handleWarning(Error("cd"));if(Y.id===void 0){V.jumpTo(5);break}return _.D(V,b.logsStore.deleteRequest(Y.id,b.databaseToken),5);case 5:return V.return();
case 4:Y.skipRetry||(Y=u4j(b,Y));if(!Y){V.jumpTo(0);break}if(!Y.skipRetry||Y.id===void 0){V.jumpTo(8);break}return _.D(V,b.logsStore.deleteRequest(Y.id,b.databaseToken),8);case 8:b.sendFn(Y.url,Y.options,!!Y.skipRetry),_.om(V)}})};
var u4j=function(Y,b){if(!ef(Y))throw Error("dd");var w=b.options.onError?b.options.onError:function(){};
b.options.onError=function(H,f){var E,U,X,I;return _.c(function(k){switch(k.nextAddress){case 1:E=JrM(f);(U=uZK(f))&&Y.getBooleanFlag&&Y.getBooleanFlag("web_enable_error_204")&&Y.handleError(Error("ed"),b.url,f);if(!(Y.getBooleanFlag&&Y.getBooleanFlag("nwl_consider_error_code")&&E||Y.getBooleanFlag&&!Y.getBooleanFlag("nwl_consider_error_code")&&Y.potentialEsfErrorCounter<=Y.potentialEsfErrorLimit)){k.jumpTo(2);break}if(!Y.networkManager.sendNetworkCheckRequest){k.jumpTo(3);break}return _.D(k,Y.networkManager.sendNetworkCheckRequest(),
3);case 3:if(Y.networkManager.isNetworkAvailable()){k.jumpTo(2);break}w(H,f);if(!Y.getBooleanFlag||!Y.getBooleanFlag("nwl_consider_error_code")||((X=b)==null?void 0:X.id)===void 0){k.jumpTo(6);break}return _.D(k,Y.logsStore.resetRequest(b.id,Y.databaseToken,!1),6);case 6:return k.return();case 2:if(Y.getBooleanFlag&&Y.getBooleanFlag("nwl_consider_error_code")&&!E&&Y.potentialEsfErrorCounter>Y.potentialEsfErrorLimit)return k.return();Y.potentialEsfErrorCounter++;if(((I=b)==null?void 0:I.id)===void 0){k.jumpTo(8);
break}return b.sendCount<Y.retryMaxAttempts?_.D(k,Y.logsStore.resetRequest(b.id,Y.databaseToken,!0,U?!1:void 0),12):_.D(k,Y.logsStore.deleteRequest(b.id,Y.databaseToken),8);case 12:Y.jobManager.addLowPriorityJob(function(){Y.networkManager.isNetworkAvailable()&&Y.throttledSend()},Y.retryDelayMs);
case 8:w(H,f),_.om(k)}})};
var V=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(H,f){var E;return _.c(function(U){if(U.nextAddress==1)return((E=b)==null?void 0:E.id)===void 0?U.jumpTo(2):_.D(U,Y.logsStore.deleteRequest(b.id,Y.databaseToken),2);Y.networkManager.networkStatusHint&&Y.getBooleanFlag&&Y.getBooleanFlag("vss_network_hint")&&Y.networkManager.networkStatusHint(!0);V(H,f);_.om(U)})};
return b};
p9.prototype.requestWithinAgeLimit=function(Y,b){Y=Y.timestamp;return this.now()-Y>=b?!1:!0};
p9.prototype.retryQueuedRequests=function(){var Y=this;if(!ef(this))throw Error("fd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(b){b&&!Y.requestWithinAgeLimit(b,Y.queuedRequestAgeLimitMs)?Y.jobManager.addLowPriorityJob(function(){return _.c(function(w){if(w.nextAddress==1)return b.id===void 0?w.jumpTo(2):_.D(w,Y.logsStore.resetRequest(b.id,Y.databaseToken),2);Y.retryQueuedRequests();_.om(w)})}):Y.networkManager.isNetworkAvailable()&&Y.throttledSend()})};
var JEj=function(Y,b){Y.writeError&&!Y.networkManager.isNetworkAvailable()?Y.writeError(b):Y.handleError(b)},ef=function(Y){return!!Y.databaseToken||Y.bypassDbTokenDependency};var YCM;var NIv={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523};var YP8={},UCa=HO("ServiceWorkerLogsDatabase",{objectStores:(YP8.SWHealthLog={addedAtVersion:1},YP8),shared:!0,upgrade:function(Y,b){b(1)&&AE(iS(Y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var h3v={},l8a=0;var QAL;var Og=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},GD=function(){if(!Og.instance){var Y=_.Aq("yt.networkRequestMonitor.instance")||new Og;
_.wG("yt.networkRequestMonitor.instance",Y);Og.instance=Y}return Og.instance};
Og.prototype.requestComplete=function(Y,b){b&&(this.anyRequestHasSucceeded=!0);Y=this.removeParams(Y);this.requestMap.get(Y)||this.requestMap.set(Y,b)};
Og.prototype.isEndpointCFR=function(Y){Y=this.removeParams(Y);return(Y=this.requestMap.get(Y))?!1:Y===!1&&this.anyRequestHasSucceeded?!0:null};
Og.prototype.removeParams=function(Y){return Y.split("?")[0]};
Og.prototype.removeParams=Og.prototype.removeParams;Og.prototype.isEndpointCFR=Og.prototype.isEndpointCFR;Og.prototype.requestComplete=Og.prototype.requestComplete;Og.getInstance=GD;var tt=function(Y){_.n1.call(this);var b=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=Y!=null?Y:{addLowPriorityJob:function(H,f){return setTimeout(H,f)},
cancelJob:function(H){clearTimeout(H)}};
var w,V;this.isOnline=(V=(w=window.navigator)==null?void 0:w.onLine)!=null?V:!0;this.onNavigatorChange=function(){return _.c(function(H){return _.D(H,bBC(b),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||wy$(this)};
_.P(tt,_.n1);tt.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete tt.instance};
tt.prototype.isNetworkAvailable=function(){return this.isOnline};
var wy$=function(Y){Y.pollingJob=Y.jobManager.addLowPriorityJob(function(){var b;return _.c(function(w){if(w.nextAddress==1)return Y.isOnline?((b=window.navigator)==null?0:b.onLine)?w.jumpTo(3):_.D(w,bBC(Y),3):_.D(w,bBC(Y),3);wy$(Y);_.om(w)})},3E4)},bBC=function(Y,b){return Y.networkRequestPromise?Y.networkRequestPromise:Y.networkRequestPromise=new Promise(function(w){var V,H,f,E;
return _.c(function(U){switch(U.nextAddress){case 1:return V=window.AbortController?new window.AbortController:void 0,f=(H=V)==null?void 0:H.signal,E=!1,_.ct(U,2,3),V&&(Y.abortTimeoutKey=Y.jobManager.addLowPriorityJob(function(){V.abort()},b||2E4)),_.D(U,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:E=!0;case 3:_.Ux(U);Y.networkRequestPromise=void 0;Y.abortTimeoutKey&&(Y.jobManager.cancelJob(Y.abortTimeoutKey),Y.abortTimeoutKey=0);E!==Y.isOnline&&(Y.isOnline=E,Y.isOnline?Y.dispatchEvent("networkstatus-online"):Y.dispatchEvent("networkstatus-offline"));w(E);_.Dl(U,0);break;case 2:_.mS(U),E=!1,U.jumpTo(3)}})})};var R5=function(){_.n1.call(this);var Y=this;this.shouldFlushErrors=!1;tt.instance||(tt.instance=new tt(_.Lb));this.sharedNetworkStatusManager=tt.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(Y.shouldFlushErrors&&_.q("offline_error_handling")){var b=vyq().get("errors",!0);if(b){for(var w in b)if(b[w]){var V=new _.BQ(w,"sent via offline_errors");V.name=b[w].name;V.stack=b[w].stack;V.level=b[w].level;_.K7(V)}vyq().set("errors",{},2592E3,!0)}}})};
_.P(R5,_.n1);var Vkt=function(){if(!R5.instance){var Y=_.Aq("yt.networkStatusManager.instance")||new R5;_.wG("yt.networkStatusManager.instance",Y);R5.instance=Y}return R5.instance};
_.g=R5.prototype;_.g.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.g.networkStatusHint=function(Y){this.sharedNetworkStatusManager.isOnline=Y};
_.g.getWindowStatus=function(){var Y=window.navigator.onLine;return Y===void 0?!0:Y};
_.g.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.g.listen=function(Y,b){return this.sharedNetworkStatusManager.listen(Y,b)};
_.g.sendNetworkCheckRequest=function(Y){Y=bBC(this.sharedNetworkStatusManager,Y);Y.then(function(b){_.q("use_cfr_monitor")&&GD().requestComplete("generate_204",b)});
return Y};
R5.prototype.sendNetworkCheckRequest=R5.prototype.sendNetworkCheckRequest;R5.prototype.listen=R5.prototype.listen;R5.prototype.enableErrorFlushing=R5.prototype.enableErrorFlushing;R5.prototype.getWindowStatus=R5.prototype.getWindowStatus;R5.prototype.networkStatusHint=R5.prototype.networkStatusHint;R5.prototype.isNetworkAvailable=R5.prototype.isNetworkAvailable;R5.getInstance=Vkt;_.jI=function(Y){Y=Y===void 0?{}:Y;_.n1.call(this);var b=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Vkt();var w=_.Aq("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);w&&(Y.rateLimit?(this.rateLimit=Y.rateLimit,w("networkstatus-online",function(){HBt(b,"publicytnetworkstatus-online")}),w("networkstatus-offline",function(){HBt(b,"publicytnetworkstatus-offline")})):(w("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),w("networkstatus-offline",
function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
_.P(_.jI,_.n1);_.jI.prototype.isNetworkAvailable=function(){var Y=_.Aq("yt.networkStatusManager.instance.isNetworkAvailable");return Y?Y.bind(this.nsmInstance)():!0};
_.jI.prototype.networkStatusHint=function(Y){var b=_.Aq("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);b&&b(Y)};
_.jI.prototype.sendNetworkCheckRequest=function(Y){var b=this,w;return _.c(function(V){w=_.Aq("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.nsmInstance);return _.q("skip_network_check_if_cfr")&&GD().isEndpointCFR("generate_204")?V.return(new Promise(function(H){var f;b.networkStatusHint(((f=window.navigator)==null?void 0:f.onLine)||!0);H(b.isNetworkAvailable())})):w?V.return(w(Y)):V.return(!0)})};
var HBt=function(Y,b){Y.rateLimit?Y.lastJobTime?(_.Lb.cancelJob(Y.schedulerJob),Y.schedulerJob=_.Lb.addLowPriorityJob(function(){Y.lastPublicSignalSent!==b&&(Y.dispatchEvent(b),Y.lastPublicSignalSent=b,Y.lastJobTime=(0,_.gG)())},Y.rateLimit-((0,_.gG)()-Y.lastJobTime))):(Y.dispatchEvent(b),Y.lastPublicSignalSent=b,Y.lastJobTime=(0,_.gG)()):Y.dispatchEvent(b)};var MyI,df=function(){p9.call(this,{logsStore:{cleanLogsStore:Eyb,deleteRequest:Nru,getMostRecentByStatus:HXb,markAsQueued:gyt,resetRequest:f86,set:VyL},networkManager:_.e3B(),handleError:function(Y,b,w){var V,H=w==null?void 0:(V=w.error)==null?void 0:V.code;if(H===400||H===415){var f;Y=new _.BQ(Y.message,b,w==null?void 0:(f=w.error)==null?void 0:f.code);_.C7(Y,void 0,void 0,void 0,!0)}else _.K7(Y)},
handleWarning:_.C7,sendFn:Bru,now:_.gG,writeError:PWt,jobManager:_.dp(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.cQ("potential_esf_error_limit",10),getBooleanFlag:_.q,disableYtIdbTransactions:!(_.Zj()&&_.pHB())});this.initializationPromise=new _.mD;_.q("networkless_immediately_drop_all_requests")&&cLr();uAa("LogsDatabaseV2")};
_.P(df,p9);_.fFQ=function(){var Y=_.Aq("yt.networklessRequestController.instance");Y||(Y=new df,_.wG("yt.networklessRequestController.instance",Y),_.q("networkless_logging")&&_.Vn().then(function(b){Y.databaseToken=b;TG$(Y);Y.initializationPromise.resolve();Y.enableCleaning&&Math.random()<=Y.cleaningRate&&Y.databaseToken&&DCu(Y.databaseToken);_.q("networkless_immediately_drop_sw_health_store")&&gPC(Y)}));
return Y};
df.prototype.writeThenSend=function(Y,b){b||(b={});b=nyM(Y,b);_.Zj()||(this.initialized=!1);p9.prototype.writeThenSend.call(this,Y,b)};
df.prototype.sendThenWrite=function(Y,b,w){b||(b={});b=nyM(Y,b);_.Zj()||(this.initialized=!1);p9.prototype.sendThenWrite.call(this,Y,b,w)};
df.prototype.sendAndWrite=function(Y,b){b||(b={});b=nyM(Y,b);_.Zj()||(this.initialized=!1);p9.prototype.sendAndWrite.call(this,Y,b)};
df.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var gPC=function(Y){var b;_.c(function(w){if(!Y.databaseToken)throw b=zr("clearSWHealthLogsDb"),b;return w.return(mCr(Y.databaseToken).catch(function(V){Y.handleError(V)}))})};_.tyb=!1;_.OXb=_.wB.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.tyb};_.wG("ytNetworklessLoggingInitializationOptions",_.OXb);var th=function(Y){var b=this;this.config_=null;Y?this.config_=Y:E76()&&(this.config_=_.Nz());_.MY(_.Lb,function(){Tbr(b)},5E3)};
th.prototype.isReady=function(){!this.config_&&E76()&&(this.config_=_.Nz());return!!this.config_};
var Gxa=function(Y,b,w,V){!_.zO("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&_.C7(new _.BQ("Missing VISITOR_DATA when sending innertube request.",b,w,V));if(!Y.isReady()){var H=new _.BQ("innertube xhrclient not ready",b,w,V);_.K7(H);throw H;}var f={headers:V.headers||{},method:"POST",postParams:w,postBody:V.postBody,postBodyFormat:V.postBodyFormat||"JSON",onTimeout:function(){V.onTimeout()},
onFetchTimeout:V.onTimeout,onSuccess:function(l,x){if(V.onSuccess)V.onSuccess(x)},
onFetchSuccess:function(l){if(V.onSuccess)V.onSuccess(l)},
onError:function(l,x){if(V.onError)V.onError(x)},
onFetchError:function(l){if(V.onError)V.onError(l)},
timeout:V.timeout,withCredentials:!0,compress:V.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");var E="";(H=Y.config_.innertubeHostOverride)&&(E=H);var U=Y.config_.innertubeUseThirdPartyAuth||!1,X=_.Pnt(U,E,V);Object.assign(f.headers,X);f.headers.Authorization&&!E&&U&&(f.headers["x-origin"]=window.location.origin);var I=_.TO(E+("/youtubei/"+Y.config_.innertubeApiVersion+"/"+b),{alt:"json"}),k=function(l){l=l===void 0?!1:l;var x;if(V.retry&&E!="www.youtube-nocookie.com"&&
(l||_.q("skip_ls_gel_retry")||f.headers["Content-Type"]!=="application/json"||(x=$Vq(b,w,X,U)),x)){var Q=f.onSuccess,Z=f.onFetchSuccess;f.onSuccess=function(L,r){j8b(x);Q(L,r)};
w.onFetchSuccess=function(L,r){j8b(x);Z(L,r)}}try{if(l&&V.retry&&!V.networklessOptions.bypassNetworkless)f.method="POST",V.networklessOptions.writeThenSend?_.fFQ().writeThenSend(I,f):_.fFQ().sendAndWrite(I,f);
else if(V.compress){var e=!V.networklessOptions.writeThenSend;if(f.postBody){var O=f.postBody;typeof O!=="string"&&(O=JSON.stringify(f.postBody));Sfv(I,O,f,_.lc,e)}else Sfv(I,JSON.stringify(f.postParams),f,iSe,e)}else _.q("web_all_payloads_via_jspb")?_.lc(I,f):iSe(I,f)}catch(L){if(L.name==="InvalidAccessError")x&&(j8b(x),x=0),_.C7(Error("gd"));else throw L;}x&&_.MY(_.Lb,function(){Tbr(Y)},5E3)};
_.R3K()?AwL().then(function(l){k(l)}):k(!1)};var FeI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(FeI,_.SQ);var Nh5=0,FDK=_.hZ?"webkit":_.lL?"moz":_.kv?"ms":ZdB?"o":"";_.wG("ytDomDomGetNextId",_.Aq("ytDomDomGetNextId")||function(){return++Nh5});var EPk={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},wh=function(Y){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(Y=
Y||window.event){this.event=Y;for(var b in Y)b in EPk||(this[b]=Y[b]);this.scale=Y.scale;this.rotation=Y.rotation;var w=Y.target||Y.srcElement;w&&w.nodeType==3&&(w=w.parentNode);this.target=w;var V=Y.relatedTarget;if(V)try{V=V.nodeName?V:null}catch(H){V=null}else this.type=="mouseover"?V=Y.fromElement:this.type=="mouseout"&&(V=Y.toElement);this.relatedTarget=V;this.clientX=Y.clientX!=void 0?Y.clientX:Y.pageX;this.clientY=Y.clientY!=void 0?Y.clientY:Y.pageY;this.keyCode=Y.keyCode?Y.keyCode:Y.which;
this.charCode=Y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Y.altKey;this.ctrlKey=Y.ctrlKey;this.shiftKey=Y.shiftKey;this.metaKey=Y.metaKey;this.pageX_=Y.pageX;this.pageY_=Y.pageY}}catch(H){}},ch_=function(Y){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;
Y.pageX_=Y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Y.pageY_=Y.clientY+b}};
wh.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
wh.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
wh.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var bF=_.wB.ytEventsEventsListeners||{};_.wG("ytEventsEventsListeners",bF);var WD6=_.wB.ytEventsEventsCounter||{count:0};_.wG("ytEventsEventsCounter",WD6);var KDt=_.PY(function(){var Y=!1;try{var b=Object.defineProperty({},"capture",{get:function(){Y=!0}});
window.addEventListener("test",null,b)}catch(w){}return Y});_.DX(Hy,_.BE);Hy.prototype.onMouseMove_=function(Y){Y.pageX_===void 0&&ch_(Y);var b=Y.pageX_;Y.pageY_===void 0&&ch_(Y);this.position_=new _.eq(b,Y.pageY_)};
Hy.prototype.checkPosition_=function(){if(this.position_){var Y=(0,_.gG)();if(this.previousTime_!=0){var b=this.previousPosition_,w=this.position_,V=b.x-w.x;b=b.y-w.y;V=Math.sqrt(V*V+b*b)/(Y-this.previousTime_);this.cycles_[this.index_]=Math.abs((V-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(w=b=0;w<4;w++)b+=this.cycles_[w]||0;b>=3&&this.callback_();this.previousVelocity_=V}this.previousTime_=Y;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Hy.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.iXG(this.mouseListenerKey_)};var $Ce={};var wPt=new _.A("rawColdConfigGroup");var bA6=new _.A("rawHotConfigGroup");var UY$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(UY$,_.SQ);var dvr=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(dvr,_.SQ);var nB=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y,500)};
_.P(nB,_.SQ);nB.prototype.getPayloadCase=function(){return _.pE(this,XyK)};
nB.prototype.getContext=function(){return _.EK(this,dvr,33)};
var XyK=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523];var joe=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(joe,_.SQ);var Pre=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Pre,_.SQ);Pre.prototype.setVideoId=function(Y){return xP(this,1,ZVe,zt(Y))};
Pre.prototype.getPlaylistId=function(){return _.hy(this,Py(this,ZVe,2))};
var ZVe=[1,2];var K_b=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(K_b,_.SQ);K_b.prototype.getContext=function(){return _.EK(this,qY,1)};
K_b.prototype.getTier=function(){return _.ay(this,7)};var DYU,EP,cy;DYU=_.wB.ytPubsubPubsubInstance||new _.xu;EP=_.wB.ytPubsubPubsubSubscribedKeys||{};cy=_.wB.ytPubsubPubsubTopicToKeys||{};_.jAG=_.wB.ytPubsubPubsubIsSynchronous||{};_.xu.prototype.subscribe=_.xu.prototype.subscribe;_.xu.prototype.unsubscribeByKey=_.xu.prototype.unsubscribeByKey;_.xu.prototype.publish=_.xu.prototype.publish;_.xu.prototype.clear=_.xu.prototype.clear;_.wG("ytPubsubPubsubInstance",DYU);_.wG("ytPubsubPubsubTopicToKeys",cy);_.wG("ytPubsubPubsubIsSynchronous",_.jAG);
_.wG("ytPubsubPubsubSubscribedKeys",EP);var Xt=window;var F_=_.q("web_enable_lifecycle_monitoring")&&Y6b()!==0,mYt=_.q("web_enable_lifecycle_monitoring");var IFt=function(Y){var b=this;var w=w===void 0?0:w;var V=V===void 0?_.dp():V;this.JSC$8853_defaultPriority=w;this.scheduler=V;this.completedResolver=new _.mD;this.scheduledPayloads=Y;for(Y={i$jscomp$486:0};Y.i$jscomp$486<this.scheduledPayloads.length;Y={payload$jscomp$18:void 0,i$jscomp$486:Y.i$jscomp$486},Y.i$jscomp$486++)Y.payload$jscomp$18=this.scheduledPayloads[Y.i$jscomp$486],w=function(H){return function(){H.payload$jscomp$18.job();b.scheduledPayloads[H.i$jscomp$486].processed=!0;b.scheduledPayloads.every(function(f){return f.processed===
!0})&&b.completedResolver.resolve()}}(Y),V=this.scheduler.addJob(w,oPr(this,Y.payload$jscomp$18)),this.scheduledPayloads[Y.i$jscomp$486]=Object.assign({},Y.payload$jscomp$18,{job:w,
jobId:V})};
IFt.prototype.flushJobs=function(){var Y=this,b=Array.from(this.scheduledPayloads.keys()).sort(function(V,H){return oPr(Y,Y.scheduledPayloads[H])-oPr(Y,Y.scheduledPayloads[V])});
b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=this.scheduledPayloads[w.value],w.jobId===void 0||w.processed||(this.scheduler.cancelJob(w.jobId),this.scheduler.addJob(w.job,10))};
IFt.prototype.cancel=function(){for(var Y=_.N(this.scheduledPayloads),b=Y.next();!b.done;b=Y.next())b=b.value,b.jobId===void 0||b.processed||this.scheduler.cancelJob(b.jobId),b.processed=!0;this.completedResolver.resolve()};
var oPr=function(Y,b){var w;return(w=b.priority)!=null?w:Y.JSC$8853_defaultPriority};var L9=function(Y){this.state=Y;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};F_&&bVr(this.state)};
L9.prototype.install=function(Y){this.plugins.push(Y);return this};
L9.prototype.uninstall=function(){var Y=this;_.BN.apply(0,arguments).forEach(function(b){b=Y.plugins.indexOf(b);b>-1&&Y.plugins.splice(b,1)})};
L9.prototype.transition=function(Y,b){var w=this;F_&&wXq(this.state);var V=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(E){return E===w.state&&f.to===Y}):f.from===w.state&&f.to===Y});
if(V){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);kM8(this,Y,b);this.state=Y;F_&&bVr(this.state);V=V.action.bind(this);var H=this.plugins.filter(function(f){return f[Y]}).map(function(f){return f[Y]});
V(lFr(this,H),b)}else throw Error("hd`"+this.state+"`"+Y);};
var lFr=function(Y,b){var w=b.filter(function(H){return hGt(Y,H)===10}),V=b.filter(function(H){return hGt(Y,H)!==10});
return Y.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var H=_.BN.apply(0,arguments);return _.c(function(f){if(f.nextAddress==1)return _.D(f,Y.runImmediateJobsAsync.apply(Y,[w].concat(_.Bt(H))),2);Y.setJobSetWithScheduledJobs.apply(Y,[V].concat(_.Bt(H)));_.om(f)})}:function(){var H=_.BN.apply(0,arguments);
Y.runImmediateJobsSync.apply(Y,[w].concat(_.Bt(H)));Y.setJobSetWithScheduledJobs.apply(Y,[V].concat(_.Bt(H)))}};
L9.prototype.runImmediateJobsSync=function(Y){var b=_.BN.apply(1,arguments);_.dp();for(var w=_.N(Y),V=w.next(),H={};!V.done;H={lifecycle$jscomp$2:void 0},V=w.next())H.lifecycle$jscomp$2=V.value,Uv(function(f){return function(){xYj(f.lifecycle$jscomp$2.name);HVI(function(){return f.lifecycle$jscomp$2.callback.apply(f.lifecycle$jscomp$2,_.Bt(b))});
Sf(f.lifecycle$jscomp$2.name)}}(H))};
L9.prototype.runImmediateJobsAsync=function(Y){var b=_.BN.apply(1,arguments),w,V,H,f;return _.c(function(E){E.nextAddress==1&&(_.dp(),w=_.N(Y),V=w.next(),H={});if(E.nextAddress!=3){if(V.done)return E.jumpTo(0);H.lifecycle$jscomp$3=V.value;H.asyncJobCompletion=void 0;f=function(U){return function(){xYj(U.lifecycle$jscomp$3.name);var X=HVI(function(){return U.lifecycle$jscomp$3.callback.apply(U.lifecycle$jscomp$3,_.Bt(b))});
VGu(X)?U.asyncJobCompletion=_.q("web_lifecycle_error_handling_killswitch")?X.then(function(){Sf(U.lifecycle$jscomp$3.name)}):X.then(function(){Sf(U.lifecycle$jscomp$3.name)},function(I){Vma(I);
Sf(U.lifecycle$jscomp$3.name)}):Sf(U.lifecycle$jscomp$3.name)}}(H);
Uv(f);return H.asyncJobCompletion?_.D(E,H.asyncJobCompletion,3):E.jumpTo(3)}H={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};V=w.next();return E.jumpTo(2)})};
L9.prototype.setJobSetWithScheduledJobs=function(Y){var b=_.BN.apply(1,arguments),w=this,V=Y.map(function(H){return{job:function(){xYj(H.name);HVI(function(){return H.callback.apply(H,_.Bt(b))});
Sf(H.name)},
priority:hGt(w,H)}});
V.length&&(this.jobSet=new IFt(V))};
var hGt=function(Y,b){var w,V;return(V=(w=Y.overridePriority)!=null?w:b.priority)!=null?V:0},xYj=function(Y){F_&&Y&&bVr(Y)},Sf=function(Y){F_&&Y&&wXq(Y)},kM8=function(Y,b,w){mYt&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+Y.constructor.name+"] '"+Y.state+"' to '"+b+"'"),console.log("with message: ",w),console.groupEnd())};
_.up.Object.defineProperties(L9.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var qPQ=function(Y){L9.call(this,Y===void 0?"none":Y);this.navigationTimer=null;this.overridePriority=10;this.transitions=[{from:"none",to:"application_navigating",action:this.runApplicationNavigationBegin},{from:"application_navigating",to:"none",action:this.runApplicationNavigationEnd},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]},sYK;
_.P(qPQ,L9);qPQ.prototype.runApplicationNavigationBegin=function(Y,b){var w=this;this.navigationTimer=_.MY(_.Lb,function(){w.currentState==="application_navigating"&&w.transition("none")},5E3);
Y(b==null?void 0:b.event)};
qPQ.prototype.runApplicationNavigationEnd=function(Y,b){this.navigationTimer&&(_.Lb.cancelJob(this.navigationTimer),this.navigationTimer=null);Y(b==null?void 0:b.event)};
_.YQv=function(){sYK||(sYK=new qPQ);return sYK};var uMg=[];_.wG("yt.logging.transport.getScrapedGelPayloads",function(){return uMg});var DF=function(){var Y=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return Y.totalEntries}}};
DF.prototype.storePayload=function(Y,b){Y=gZB(Y);this.store[Y]?this.store[Y].push(b):(this.memoizedKeySequences={},this.store[Y]=[b]);this.totalEntries++;_.q("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return Y};
DF.prototype.smartExtractMatchingEntries=function(Y){if(!Y.keys.length)return[];for(var b=QY8(this,Y.keys.splice(0,1)[0]),w=[],V=0;V<b.length;V++)this.store[b[V]]&&Y.sizeLimit&&(this.store[b[V]].length<=Y.sizeLimit?(w.push.apply(w,_.Bt(this.store[b[V]])),delete this.store[b[V]]):w.push.apply(w,_.Bt(this.store[b[V]].splice(0,Y.sizeLimit))));this.totalEntries-=w.length;(Y==null?0:Y.sizeLimit)&&w.length<(Y==null?void 0:Y.sizeLimit)&&(Y.sizeLimit-=w.length,w.push.apply(w,_.Bt(this.smartExtractMatchingEntries(Y))));
return w};
DF.prototype.extractMatchingEntries=function(Y){Y=QY8(this,Y);for(var b=[],w=0;w<Y.length;w++)this.store[Y[w]]&&(b.push.apply(b,_.Bt(this.store[Y[w]])),delete this.store[Y[w]]);this.totalEntries-=b.length;return b};
DF.prototype.getSequenceCount=function(Y){Y=QY8(this,Y);for(var b=0,w=0;w<Y.length;w++){var V=void 0;b+=((V=this.store[Y[w]])==null?void 0:V.length)||0}return b};
var QY8=function(Y,b){var w=gZB(b);if(Y.memoizedKeySequences[w])return Y.memoizedKeySequences[w];var V=Object.keys(Y.store)||[];if(V.length<=1&&gZB(b)===V[0])return V;for(var H=[],f=0;f<V.length;f++){var E=V[f].split("/");if(vPr(b.auth,E[0])){var U=b.isJspb;vPr(U===void 0?"undefined":U?"true":"false",E[1])&&vPr(b.cttAuthInfo,E[2])&&(U=b.tier,U=U===void 0?"undefined":JSON.stringify(U),vPr(U,E[3])&&H.push(V[f]))}}return Y.memoizedKeySequences[w]=H},vPr=function(Y,b){return Y===void 0||Y==="undefined"?
!0:Y===b};
DF.prototype.getSequenceCount=DF.prototype.getSequenceCount;DF.prototype.extractMatchingEntries=DF.prototype.extractMatchingEntries;DF.prototype.smartExtractMatchingEntries=DF.prototype.smartExtractMatchingEntries;DF.prototype.storePayload=DF.prototype.storePayload;var dlg,tmq,F_L,lF,PF$,fRb,gO6,OVI,pXB,xlq,RS6,T_6,nZu;dlg=_.cQ("initial_gel_batch_timeout",2E3);tmq=_.cQ("gel_queue_timeout_max_ms",6E4);F_L=_.cQ("gel_min_batch_size",5);lF=void 0;PF$=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
fRb=new PF$;gO6=new PF$;OVI=new PF$;pXB=new PF$;RS6=!0;T_6=1;_.Gdg=new Map;nZu=_.wB.ytLoggingTransportTokensToCttTargetIds_||{};_.wG("ytLoggingTransportTokensToCttTargetIds_",nZu);var B_6=_.wB.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.wG("ytLoggingTransportTokensToJspbCttTargetIds_",B_6);var kP={};var pB=_.wB.ytLoggingGelSequenceIdObj_||{};_.wG("ytLoggingGelSequenceIdObj_",pB);var UZ6=[];var QRq=new Set,IRt=0,BIv=0,ZAu=0,lR6=[],kTK=[],nOq=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var zQG=function(){};
zQG.prototype.getUrl=function(Y,b){b=b===void 0?!1:b;return Y.hasOwnProperty("shareEndpoint")?null:_.OAv(Y,null,b)};
var riK=function(Y,b,w){Y={endpoint:b,actions:[]};w=(w.path?w.path[0]:w.target).icon||"";b=w.indexOf(":");b>0&&(w=w.substr(b+1));w&&Y.actions.push(w);return Y};var SQq=/Command$/,LQb=/Endpoint$/,RQL=new Map;var ZBr,Bh$;ZBr=1;_.CB=function(){this.actionRoutingMap=new Map};
_.CB.prototype.triggerAction=function(Y){var b=new mvv(Y,!1,_.BN.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.CB.prototype.triggerOptionalAction=function(Y){var b=new mvv(Y,!0,_.BN.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.a5=function(Y,b,w){b.forEach(function(V){var H=FQK(V);H&&Y.triggerOptionalAction(H,V,w,void 0)})};
_.CB.prototype.handleAction=function(Y){var b=this.actionRoutingMap.get(Y.actionName);b&&Bh$(Y,b);Y.optionalAction||Y.returnValue.length!==0||(Y=new _.BQ("Unhandled action",Y.actionName),_.C7(Y))};
Bh$=function(Y,b){b.forEach(function(w){var V=null;w?V=w.apply(null,Y.args):(w=Error("id"),w.params=Y.actionName,_.K7(w));Y.returnValue.push(V)})};
_.yu=function(Y,b,w){w||(w=ZBr++);for(var V=_.N(Object.keys(b)),H=V.next();!H.done;H=V.next()){H=H.value;var f=Y.actionRoutingMap.get(H);f||(f=new Map,Y.actionRoutingMap.set(H,f));Y.registerActionHandler(w,H,b[H],f)}return w};
_.CB.prototype.registerActionHandler=function(Y,b,w,V){V.set(Y,_.i1(w))};
_.$P=function(Y,b,w){b=_.N(Object.keys(b));for(var V=b.next();!V.done;V=b.next())(V=Y.actionRoutingMap.get(V.value))&&V.delete(w)};
_.U0(_.CB);var iAM=function(Y,b){var w=_.CB.getInstance();_.dx(function(){var V={},H=_.yu(w,(V[Y]=b,V));_.R2(function(){var f={};_.$P(w,(f[Y]="",f),H)})})};_.Jh=Symbol("kd");u4K=tkt;var fpe=new Set(["For","If","Match","Watch"]),nPK={},Mk8=(nPK[KQ.default]=function(){return yEb},nPK.style=function(){return yEb},nPK),eGC;
for(eGC in Mk8)_.fQ.attributes[eGC]=Mk8[eGC](_.fQ.attributes[eGC]);var Vc=new _.Hx("VISIBILITY_OBSERVER");var k9e={retrieve:function(Y){return this.id.\u0275prov.token===Y.\u0275prov.token?this.contextValue:this?Z7L(this,this.id):v26}};var AVK=function(Y,b,w){if(Y!==uF)return!1;Y=Yva(document.createElement("div"),function(){var V=XP(!1);try{w[0]()}finally{XP(V)}});
Y=Array.from(Y.childNodes);Y.length===1&&(Y=Y[0]);return Y};var pyo=function(Y){Y=Y.clone();bQQ(Y);B2(Y,"dg",null);B2(Y,"d","0");Tl_(Y,null);JyQ(Y,null);return Y},OB8=!0,tk5=function(Y,b,w){var V=w===void 0?{}:w;
w=V.cssRowKey===void 0?void 0:V.cssRowKey;var H=V.combinedSignature===void 0?void 0:V.combinedSignature;var f=V.extraEdges===void 0?void 0:V.extraEdges;V=V.callback===void 0?void 0:V.callback;B2(Y,"m",b.join(","));f&&YN9(Y,f);w&&(B2(Y,"ck",w),H?B2(Y,"rs",H):OB8&&(OB8=!1));if(V){if(V!=null&&!HQt.test(V))throw Error("bb`"+V);B2(Y,"cb",V)}Y=Y.toString();_.Hg(Y,"/")&&(Y=r_r(document.location.href)+Y);return _.Uu(Y)};var dY8=function(Y){return RGK(Y).then(function(b){return JSON.parse(b.responseText)})},RGK=function(Y){var b={},w=b.xmlHttpFactory?b.xmlHttpFactory.createInstance():x1K.createInstance();
return(new _.hh(function(V,H){var f;try{w.open("GET",Y,!0)}catch(X){H(new rf("Error opening XHR: "+X.message,Y,w))}w.onreadystatechange=function(){if(w.readyState==4){_.wB.clearTimeout(f);var X;!(X=h4r(w.status))&&(X=w.status===0)&&(X=a5U(Y),X=!(X=="http"||X=="https"||X==""));X?V(w):H(new Fp$(w.status,Y,w))}};
w.onerror=function(){H(new rf("Network error",Y,w))};
if(b.headers)for(var E in b.headers){var U=b.headers[E];U!=null&&w.setRequestHeader(E,U)}b.withCredentials&&(w.withCredentials=b.withCredentials);b.responseType&&(w.responseType=b.responseType);b.mimeType&&w.overrideMimeType(b.mimeType);b.timeoutMs>0&&(f=_.wB.setTimeout(function(){w.onreadystatechange=function(){};
w.abort();H(new Lpr(Y,w))},b.timeoutMs));
try{w.send(null)}catch(X){w.onreadystatechange=function(){},_.wB.clearTimeout(f),H(new rf("Error sending XHR: "+X.message,Y,w))}})).thenCatch(function(V){V instanceof _.GL&&w.abort();
throw V;})},rf=function(Y,b,w){_.Yb.call(this,Y+", url="+b);
this.url=b;this.xhr=w};
_.DX(rf,_.Yb);rf.prototype.name="XhrError";var Fp$=function(Y,b,w){rf.call(this,"Request Failed, status="+Y,b,w);this.status=Y};
_.DX(Fp$,rf);Fp$.prototype.name="XhrHttpError";var Lpr=function(Y,b){rf.call(this,"Request timed out",Y,b)};
_.DX(Lpr,rf);Lpr.prototype.name="XhrTimeoutError";cZ=cZ||{};var zS=function(){_.BE.call(this)};
_.DX(zS,_.BE);zS.prototype.initialize=function(){};var SP8=function(Y,b){this.fn_=Y;this.handler_=b};
SP8.prototype.execute=function(Y){this.fn_&&(this.fn_.call(this.handler_||null,Y),this.fn_=this.handler_=null)};
SP8.prototype.abort=function(){this.handler_=this.fn_=null};var Wx=function(Y,b){_.BE.call(this);this.deps_=Y;this.JSC$8981_id_=b;this.onloadCallbacks_=[];this.JSC$8981_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.DX(Wx,_.BE);Wx.prototype.moduleConstructor_=zS;Wx.prototype.module_=null;Wx.prototype.getId=function(){return this.JSC$8981_id_};
Wx.prototype.registerCallback=function(Y,b){return aFj(this.onloadCallbacks_,Y,b)};
var rh8=function(Y,b){aFj(Y.JSC$8981_onErrorCallbacks_,b)},aFj=function(Y,b,w){b=new SP8(b,w);
Y.push(b);return b};
Wx.prototype.isLoaded=function(){return!!this.module_};
Wx.prototype.onLoad=function(Y){var b=new this.moduleConstructor_;b.initialize(Y());this.module_=b;b=(b=zG9(this.earlyOnloadCallbacks_,Y()))||zG9(this.onloadCallbacks_,Y());b||(this.JSC$8981_onErrorCallbacks_.length=0);return b};
Wx.prototype.onError=function(Y){(Y=zG9(this.JSC$8981_onErrorCallbacks_,Y))&&Vv(Error("od`"+Y));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var zG9=function(Y,b){for(var w=[],V=0;V<Y.length;V++)try{Y[V].execute(b)}catch(H){Vv(H),w.push(H)}Y.length=0;return w.length?w:null};
Wx.prototype.disposeInternal=function(){Wx.superClass_.disposeInternal.call(this);_.ua(this.module_)};var WpC,$Yr,CF9,yh_,iBI,Ahr,utd,Th_,JhU;
_.ix=function(Y,b,w,V,H){V=V===void 0?!1:V;H=H===void 0?!1:H;var f=f===void 0?!0:f;this.scsReferenceUrl_=yqt(_.Xk(Y).toString(),f);this.cssRowKey_=b;this.combinedSignature_=w;this.useNegativeLoading_=V;this.requestedModuleMap_={};this.JSC$8984_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(Y=Z1(this.scsReferenceUrl_,"excm"))?Y.split(","):[];this.shouldScanForCss_=H;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;$$b();this.logger=null;_.K9(this,uh$(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
WpC=function(Y,b){if(b.href||b.getAttribute("data-href"))if(b=b.href||b.getAttribute("data-href"),Kz6(b)&&!yqt(b).urlPrefix_.endsWith("_/js/")){b=uh$(yqt(b));b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,Y.loadedCssModuleList_.includes(w)||Y.loadedCssModuleList_.push(w)}};
_.ix.prototype.JSC$8986_loadModules=function(Y,b,w){var V=w===void 0?{}:w;w=V.extraEdges;var H=V.onError;var f=V.onSuccess;V=V.forceReload;this.JSC$8984_moduleInfoMap_=b;if(!Y)throw Error("pd");if(this.shouldScanForCss_){b=_.N(document.getElementsByTagName("style"));for(var E=b.next();!E.done;E=b.next())WpC(this,E.value);b=_.N(document.getElementsByTagName("link"));for(E=b.next();!E.done;E=b.next())WpC(this,E.value)}Kp_(this,iBI(this,Y),w,H,f,V)};
var Kp_=function(Y,b,w,V,H,f){V=V===void 0?function(){}:V;
H=H===void 0?function(){}:H;
f=f===void 0?!1:f;Ahr(Y,b,function(E,U,X){X=X===void 0?U:X;Y.enableFallbackFetch&&f?Y.loadWithFetch(E,U,V,H,X):Y.load(E,U,V,H,X,w)},w)||V(-1)};
_.ix.prototype.loadWithFetch=function(){_.c(function(){throw Error("qd");})};
_.ix.prototype.maybeSetAdditionalFields=function(){};
$Yr=function(Y,b,w){if(Y.useNegativeLoading_){var V=Y.scsReferenceUrl_;Y={cssRowKey:Y.cssRowKey_,combinedSignature:Y.combinedSignature_,extraEdges:w,requestedModuleIds:CF9(Y),requestedCssModuleIds:yh_(Y)};var H=Y===void 0?{}:Y;Y=H.requestedModuleIds===void 0?[]:H.requestedModuleIds;w=H.requestedCssModuleIds===void 0?[]:H.requestedCssModuleIds;var f=H.cssRowKey===void 0?void 0:H.cssRowKey;var E=H.combinedSignature===void 0?void 0:H.combinedSignature;var U=H.extraEdges===void 0?void 0:H.extraEdges;
H=H.callback===void 0?void 0:H.callback;V=pyo(V);B2(V,"d","1");Tl_(V,Y);JyQ(V,w);b=tk5(V,b,{cssRowKey:f,combinedSignature:E,extraEdges:U,callback:H})}else V=Y.scsReferenceUrl_,Y={cssRowKey:Y.cssRowKey_,combinedSignature:Y.combinedSignature_,requestedModuleIds:CF9(Y),requestedCssModuleIds:yh_(Y)},U=Y===void 0?{}:Y,Y=U.requestedCssModuleIds===void 0?[]:U.requestedCssModuleIds,w=U.cssRowKey===void 0?void 0:U.cssRowKey,f=U.combinedSignature===void 0?void 0:U.combinedSignature,E=U.extraEdges===void 0?
void 0:U.extraEdges,U=U.callback===void 0?void 0:U.callback,V=pyo(V),JyQ(V,Y),b=tk5(V,b,{cssRowKey:w,combinedSignature:f,extraEdges:E,callback:U});return b};
_.K9=function(Y,b){for(var w=!1,V=[],H=0;H<b.length;++H){var f=b[H];Y.requestedModuleMap_[f]||(Y.requestedModuleMap_[f]=!0,Y.requestedModuleList_.push(f),w=!0,V.push(f))}w&&(Y.requestedModuleListSorted_=!1)};
_.At=function(Y,b){for(var w=[],V=0;V<b.length;++V){var H=b[V];Y.requestedModuleMap_[H]&&(delete Y.requestedModuleMap_[H],_.$b(Y.requestedModuleList_,H),w.push(H))}};
_.ix.prototype.load=function(Y,b,w,V,H){H=H===void 0?b:H;_.Xk(Y);var f=this.useCors_,E=this.corsMode_,U=this.fetchPriority,X=_.xG("SCRIPT");_.Ku(X,Y);f&&(X.crossOrigin=E);X.async=!1;U&&X.setAttribute("fetchpriority",U);_.K9(this,b);_.jY5(this,Y,X,b,w,V,H)};
_.jY5=function(Y,b,w,V,H,f,E){E=E===void 0?V:E;Y.lastScript_=w;Y.insertPos.insertBefore(w,Y.insertPos.firstChild);_.GMo(w,V,function(){w.parentElement.removeChild(w);Y.lastScript_==w&&(Y.lastScript_=null);var U=new Set;V.map(function(I){return U.add(I)});
for(var X in Y.JSC$8984_moduleInfoMap_)Y.JSC$8984_moduleInfoMap_[X].isLoaded()&&U.add(X);Array.from(U);f()},function(U){w.parentElement.removeChild(w);
Y.lastScript_==w&&(Y.lastScript_=null);_.At(Y,U);Y.pendingModuleGraphUpdate_?Y.pendingModuleGraphUpdate_.then(function(){H(-1,b)}):H(-1,b)},E)};
_.GMo=function(Y,b,w,V,H){H=H===void 0?b:H;var f=b.length,E=function(){f=0;Y.onload=null;Y.onerror=null;U=function(){}},U=function(){E();
var I=H.filter(function(k){return!Rs().getModuleInfo(k).isLoaded()});
I.length!==0?V(I,"Response was successful but was missing module(s) "+I+"."):w()},X=function(){f--;
f==0&&U()};
b.forEach(function(I){I=Rs().getModuleInfo(I);I.isLoaded()?X():(aFj(I.earlyOnloadCallbacks_,X),rh8(I,X))});
Y.onload=function(){return U()};
Y.onerror=function(){E();V(b)}};
CF9=function(Y){Y.requestedModuleListSorted_||(Y.requestedModuleListSorted_=!0,Y.requestedModuleList_.sort());return Y.requestedModuleList_};
yh_=function(Y){Y=Y.loadedCssModuleList_;Y.sort();return Y};
iBI=function(Y,b){return b.filter(function(w){return!Y.requestedModuleMap_[w]})};
Ahr=function(Y,b,w,V){if(Y.pendingModuleGraphUpdate_)return Y.pendingModuleGraphUpdate_.then(function(){Ahr(Y,b,w,V)}),!0;
if(!Y.useNegativeLoading_){var H=[],f=Object.assign({},Y.requestedModuleMap_);Th_(Y,b,function(k){H.push(k.getId())},V,function(k){return!k.isLoaded()},f);
b=H}for(f=0;f<b.length;){for(var E=b.length-f,U=f==0?b:b.slice(f,b.length),X=$Yr(Y,U,V),I=_.Xk(X).toString();I.length>Y.urlMaxLength;)if(E>1)E-=Math.ceil((I.length-Y.urlMaxLength)/6),E=Math.max(E,1),U=b.slice(f,f+E),X=$Yr(Y,U,V),I=_.Xk(X).toString();else return Y.useNegativeLoading_?(Y.useNegativeLoading_=!1,Y.pendingModuleGraphUpdate_=JhU(Y).then(function(k){utd(Y,k,V)}),Ahr(Y,b.slice(f),w,V)):!1;
f+=E;Y.useNegativeLoading_?w(X,U):w(X,U,f===b.length?b:[])}return!0};
utd=function(Y,b,w){Rs().setAllModuleInfoString((b||{}).moduleGraph);Th_(Y,CF9(Y),function(V){_.K9(Y,[V.getId()])},w);
Y.pendingModuleGraphUpdate_=null};
Th_=function(Y,b,w,V,H,f){f=f===void 0?{}:f;var E=Rs();b=_.N(b);for(var U=b.next();!U.done;U=b.next()){U=U.value;var X=E.getModuleInfo(U);if(!(f[U]||H&&!H(X))){f[U]=!0;var I=X.deps_||[];if(V){var k=[];V[U]&&(k=Object.keys(V[U]));I=I.concat(k)}Th_(Y,I,w,V,H,f);w(X)}}};
JhU=function(Y){Y=Y.scsReferenceUrl_.clone();bQQ(Y);B2(Y,"dg",null);B2(Y,"md","1");return dY8(Y.toString())};var xRG=new Uint8Array(123);var YZ5=[];var bSI=function(){this.JSC$8090_loader_=null};
_.g=bSI.prototype;_.g.setBatchModeEnabled=function(){};
_.g.setAllModuleInfoString=function(){};
_.g.addExtraEdge=function(){throw Error("rd");};
_.g.removeExtraEdge=function(){throw Error("sd");};
_.g.getModuleContext=function(){return null};
_.g.isActive=function(){return!1};
_.g.isUserActive=function(){return!1};
_.g.registerCallback=function(){};var C9=function(Y,b,w,V,H){var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.name="ModuleLoadFailure";this.type=Y;this.status=b;this.requestedModuleIds=w;this.url=V;this.cause=H;this.message=this.toString()};
_.P(C9,Error);C9.prototype.toString=function(){return w6o(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var w6o=function(Y){switch(Y.type){case C9.JSC$8996_Type.UNAUTHORIZED:return"Unauthorized";case C9.JSC$8996_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case C9.JSC$8996_Type.TIMEOUT:return"Timed out";case C9.JSC$8996_Type.OLD_CODE_GONE:return"Out of date module id";case C9.JSC$8996_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+Y.type}};
cZ.ModuleLoadFailure=C9;cZ.ModuleLoadFailure.JSC$8996_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var yS=function(){this.moduleIds_=this.JSC$8090_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8999_extraEdges_={};this.JSC$8999_callbackMap_={};this.JSC$8999_currentlyLoadingModule_=this.baseModuleInfo_=new Wx([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Th;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.DX(yS,bSI);var VMC=function(Y,b){_.Yb.call(this,"Error loading "+Y+": "+b)};
_.DX(VMC,_.Yb);yS.prototype.setBatchModeEnabled=function(Y){this.batchModeEnabled_=Y};
yS.prototype.setAllModuleInfoString=function(Y,b){if(!(this instanceof yS))this.setAllModuleInfoString(Y,b);else if(typeof Y==="string"){if(Y.startsWith("d$")){Y=Y.substring(2);for(var w=[],V=0,H=Y.indexOf("/"),f=0,E=!1,U=0;;){var X=E?Y.substring(f):Y.substring(f,H);if(X.length===0)V++,f="sy"+V.toString(36),X=[];else{var I=X.indexOf(":");if(I<0)f=X,X=[];else if(I===X.length-1)f=X.substring(0,I),X=Array(w[U-1]);else{f=X.substring(0,I);X=X.substring(I+1).split(",");I=U;for(var k=0;k<X.length;k++)I-=
X[k].length===0?1:Number(X[k]),X[k]=w[I]}I=0;if(f.length===0)I=1;else if(f.charAt(0)==="+"||f.charAt(0)==="-")I=Number(f);I!==0&&(V+=I,f="sy"+V.toString(36))}w.push(f);HSk(this,f,X);if(E)break;f=H+1;H=Y.indexOf("/",f);H===-1&&(E=!0);U++}this.moduleIds_=w}else if(Y.startsWith("p$"))gDC(this,Y);else{Y=Y.split("/");w=[];for(V=0;V<Y.length;V++){U=Y[V].split(":");H=U[0];E=[];if(U[1])for(E=U[1].split(","),U=0;U<E.length;U++)E[U]=w[parseInt(E[U],36)];w.push(H);HSk(this,H,E)}this.moduleIds_=w}b&&b.length?
(_.Je(this.loadingModuleIds_,b),this.lastInitialModuleId_=_.Fu(b)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8999_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8999_currentlyLoadingModule_=null,(b=this.baseModuleInfo_.onLoad((0,_.nC)(this.getModuleContext,this)))&&b.length&&fkt(this,new cZ.ModuleLoadFailure(cZ.ModuleLoadFailure.JSC$8996_Type.INIT_ERROR,void 0,void 0,void 0,b[0])),$W(this))}};
var gDC=function(Y,b){var w=b.substring(2);for(b=0;b<64;b++)xRG["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(b)]=b;var V={buf:w,pos:0};fS(V);var H=fS(V),f=fS(V)+1;b=Array(H);var E=Array(H),U=Array(H);f=Array(f);var X=0,I=0,k=V.pos,l=V.buf.indexOf("|",V.pos);V.pos=l+1;for(l=0;l<H;l++){var x=fS(V),Q=x&2,Z=x&1;x>>>=2;Z?(X+=x>>>1^-(x&1),x="sy"+X.toString(36)):(Z=k,k+=x,x=w.substring(Z,k));b[l]=x;Q&&(f[I++]=x)}f[I]="";V.pos++;I=H&-2;w=H&1;for(X=0;X<I;X+=2)k=qv6(V),U[X]=
k&7,U[X+1]=k>>>3&7;w&&(w=qv6(V),U[I]=w&7);V.pos++;for(I=0;I<H;I++)U[I]===7&&(U[I]=fS(V));V.pos++;for(w=I=0;w<H;w++){X=U[w];k=X===0?YZ5:Array(X);E[w]=k;l=I;for(Q=0;Q<X;Q++)l-=fS(V),k[Q]=f[l];f[I]===b[w]&&I++}for(V=0;V<b.length;V++)HSk(Y,b[V],E[V]);Y.moduleIds_=b};
_.g=yS.prototype;_.g.getModuleInfo=function(Y){return this.moduleInfoMap[Y]};
_.g.addExtraEdge=function(Y,b){var w=this.getModuleInfo(Y);w&&w.isLoaded()?this.load(b):(this.JSC$8999_extraEdges_[Y]||(this.JSC$8999_extraEdges_[Y]={}),this.JSC$8999_extraEdges_[Y][b]=!0)};
_.g.removeExtraEdge=function(Y,b){if(this.JSC$8999_extraEdges_[Y]){delete this.JSC$8999_extraEdges_[Y][b];for(var w in this.JSC$8999_extraEdges_[Y])return;delete this.JSC$8999_extraEdges_[Y]}};
_.g.isActive=function(){return this.loadingModuleIds_.length>0};
_.g.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var $W=function(Y){var b=Y.lastActive_,w=Y.isActive();w!=b&&(Y.executeCallbacks_(w?"active":"idle"),Y.lastActive_=w);b=Y.isUserActive();b!=Y.userLastActive_&&(Y.executeCallbacks_(b?"userActive":"userIdle"),Y.userLastActive_=b)},HSk=function(Y,b,w){Y.moduleInfoMap[b]?(Y=Y.moduleInfoMap[b].deps_,Y!=w&&Y.splice.apply(Y,[0,
Y.length].concat(_.Bt(w)))):Y.moduleInfoMap[b]=new Wx(w,b)},EDr=function(Y,b,w){var V=[];
Vr(b,V);b=[];for(var H={},f=0;f<V.length;f++){var E=V[f],U=Y.getModuleInfo(E);if(!U)throw Error("td`"+E);var X=new Th;H[E]=X;U.isLoaded()?X.callback(null):(NS8(Y,E,U,!!w,X),Y.isModuleLoading(E)||b.push(E))}b.length>0&&(Y.loadingModuleIds_.length===0?Y.loadModules_(b):(Y.requestedModuleIdsQueue_.push(b),$W(Y)));return H},NS8=function(Y,b,w,V,H){w.registerCallback(H.callback,H);
rh8(w,function(f){H.errback(new VMC(b,f))});
Y.isModuleLoading(b)?V&&(cQ$(Y,b),$W(Y)):V&&cQ$(Y,b)};
yS.prototype.loadModules_=function(Y,b,w){var V=this;b||(this.consecutiveFailures_=0);var H=Uc_(this,Y);this.loadingModuleIds_=H;this.requestedLoadingModuleIds_=this.batchModeEnabled_?Y:_.jL(H);$W(this);if(H.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,H);if(Object.keys(this.JSC$8999_extraEdges_).length>0&&!this.JSC$8090_loader_.supportsExtraEdges)throw Error("ud");Y=(0,_.nC)(this.JSC$8090_loader_.JSC$8986_loadModules,this.JSC$8090_loader_,_.jL(H),this.moduleInfoMap,{extraEdges:this.JSC$8999_extraEdges_,
forceReload:!!w,onError:function(f,E){var U=V.requestedLoadingModuleIds_;f=f!=null?f:void 0;V.consecutiveFailures_++;var X=_.jL(H);V.requestedLoadingModuleIds_=U;H.forEach(_.v0(_.$b,V.requestedModuleIds_),V);f==401?(fkt(V,new cZ.ModuleLoadFailure(cZ.ModuleLoadFailure.JSC$8996_Type.UNAUTHORIZED,f)),V.requestedModuleIdsQueue_.length=0):f==410?(X68(V,new cZ.ModuleLoadFailure(cZ.ModuleLoadFailure.JSC$8996_Type.OLD_CODE_GONE,f)),Dc5(V)):V.consecutiveFailures_>=3?(X68(V,new cZ.ModuleLoadFailure(cZ.ModuleLoadFailure.JSC$8996_Type.CONSECUTIVE_FAILURES,
f,X,E)),Dc5(V)):V.loadModules_(V.requestedLoadingModuleIds_,!0,f==8001||!1)},
onTimeout:(0,_.nC)(this.handleLoadTimeout_,this)});(b=Math.pow(this.consecutiveFailures_,2)*5E3)?_.wB.setTimeout(Y,b):Y()}};
var Uc_=function(Y,b){b=b.filter(function(H){return Y.moduleInfoMap[H].isLoaded()?(_.wB.setTimeout(function(){return Error("vd`"+H)},0),!1):!0});
for(var w=[],V=0;V<b.length;V++)w=w.concat(mcU(Y,b[V]));Vr(w);return!Y.batchModeEnabled_&&w.length>1?(b=w.shift(),Y.requestedModuleIdsQueue_=w.map(function(H){return[H]}).concat(Y.requestedModuleIdsQueue_),[b]):w},mcU=function(Y,b){var w=_.BL.createSet(Y.requestedModuleIds_),V=[];
w[b]||V.push(b);b=[b];for(var H=0;H<b.length;H++)for(var f=Y.getModuleInfo(b[H]).deps_,E=f.length-1;E>=0;E--){var U=f[E];Y.getModuleInfo(U).isLoaded()||w[U]||(V.push(U),b.push(U))}V.reverse();Vr(V);return V};
yS.prototype.JSC$8994_setLoaded=function(){if(this.JSC$8999_currentlyLoadingModule_){var Y=this.JSC$8999_currentlyLoadingModule_.getId(),b=[];if(this.JSC$8999_extraEdges_[Y]){for(var w=_.N(Object.keys(this.JSC$8999_extraEdges_[Y])),V=w.next();!V.done;V=w.next()){V=V.value;var H=this.getModuleInfo(V);H&&!H.isLoaded()&&(this.removeExtraEdge(Y,V),b.push(V))}this.loadMultiple(b)}this.isDisposed()||((b=this.moduleInfoMap[Y].onLoad((0,_.nC)(this.getModuleContext,this)))&&b.length&&fkt(this,new cZ.ModuleLoadFailure(cZ.ModuleLoadFailure.JSC$8996_Type.INIT_ERROR,
void 0,void 0,void 0,b[0])),_.$b(this.userInitiatedLoadingModuleIds_,Y),_.$b(this.loadingModuleIds_,Y),this.loadingModuleIds_.length===0&&Dc5(this),this.lastInitialModuleId_&&Y==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),$W(this),this.JSC$8999_currentlyLoadingModule_=null)}};
yS.prototype.isModuleLoading=function(Y){if(_.Ka(this.loadingModuleIds_,Y))return!0;for(var b=0;b<this.requestedModuleIdsQueue_.length;b++)if(_.Ka(this.requestedModuleIdsQueue_[b],Y))return!0;return!1};
yS.prototype.load=function(Y,b){return EDr(this,[Y],b)[Y]};
yS.prototype.loadMultiple=function(Y){return EDr(this,Y)};
var cQ$=function(Y,b){_.Ka(Y.userInitiatedLoadingModuleIds_,b)||Y.userInitiatedLoadingModuleIds_.push(b)};
yS.prototype.beforeLoadModuleCode=function(Y){var b=this;this.JSC$8999_currentlyLoadingModule_&&this.JSC$8999_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8994_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[Y]&&oDj(this,this.moduleInfoMap[Y].deps_||[],function(w){w.module_=new zS;_.$b(b.loadingModuleIds_,w.getId())},function(w){return!w.isLoaded()});
this.JSC$8999_currentlyLoadingModule_=this.getModuleInfo(Y)};
yS.prototype.handleLoadTimeout_=function(){X68(this,new cZ.ModuleLoadFailure(cZ.ModuleLoadFailure.JSC$8996_Type.TIMEOUT));Dc5(this)};
var X68=function(Y,b){Y.requestedLoadingModuleIds_.length>1?Y.requestedModuleIdsQueue_=Y.requestedLoadingModuleIds_.map(function(w){return[w]}).concat(Y.requestedModuleIdsQueue_):fkt(Y,b)},fkt=function(Y,b){var w=Y.requestedLoadingModuleIds_;
Y.loadingModuleIds_.length=0;for(var V=[],H=0;H<Y.requestedModuleIdsQueue_.length;H++){var f=Y.requestedModuleIdsQueue_[H].filter(function(X){var I=mcU(this,X);return TD(w,function(k){return _.Ka(I,k)})},Y);
_.Je(V,f)}for(H=0;H<w.length;H++)_.Ca(V,w[H]);for(H=0;H<V.length;H++){for(f=0;f<Y.requestedModuleIdsQueue_.length;f++)_.$b(Y.requestedModuleIdsQueue_[f],V[H]);_.$b(Y.userInitiatedLoadingModuleIds_,V[H])}if(H=Y.JSC$8999_callbackMap_.error)for(f=0;f<H.length;f++)for(var E=H[f],U=0;U<V.length;U++)E("error",V[U],b);for(V=0;V<w.length;V++)if(Y.moduleInfoMap[w[V]])Y.moduleInfoMap[w[V]].onError(b);Y.requestedLoadingModuleIds_.length=0;$W(Y)},Dc5=function(Y){for(;Y.requestedModuleIdsQueue_.length;){var b=
Y.requestedModuleIdsQueue_.shift().filter(function(w){return!this.getModuleInfo(w).isLoaded()},Y);
if(b.length>0){Y.loadModules_(b);return}}$W(Y)};
yS.prototype.registerCallback=function(Y,b){Array.isArray(Y)||(Y=[Y]);for(var w=0;w<Y.length;w++){var V=Y[w],H=b,f=this.JSC$8999_callbackMap_;f[V]||(f[V]=[]);f[V].push(H)}};
yS.prototype.executeCallbacks_=function(Y){for(var b=this.JSC$8999_callbackMap_[Y],w=0;b&&w<b.length;w++)b[w](Y)};
var oDj=function(Y,b,w,V,H){V=V===void 0?function(){return!0}:V;
H=H===void 0?{}:H;b=_.N(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var E=Y.getModuleInfo(f);!H[f]&&V(E)&&(H[f]=!0,oDj(Y,E.deps_||[],w,V,H),w(E))}};
yS.prototype.dispose=function(){_.YG(_.BL.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8999_callbackMap_={};this.isDisposed_=!0};
yS.prototype.isDisposed=function(){return this.isDisposed_};
_.ty=function(){return new yS};var Ikd=[5E3,2E4],kCC=function(){this.JSC$8090_loader_=null;this.JSC$9007_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9007_queue_=[];this.JSC$9007_extraEdges_=Object.create(null);this.JSC$9007_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.P(kCC,bSI);_.g=kCC.prototype;_.g.setAllModuleInfoString=function(){this.JSC$9007_currentlyLoadingModule_&&this.JSC$9007_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8994_setLoaded()};
_.g.getModuleInfo=function(Y){var b=this.JSC$9007_moduleInfoMap_[Y];b||(b=new Wx([],Y),this.JSC$9007_moduleInfoMap_[Y]=b);return b};
_.g.addExtraEdge=function(Y,b){this.getModuleInfo(Y).isLoaded()?this.load(b):(this.JSC$9007_extraEdges_[Y]||(this.JSC$9007_extraEdges_[Y]={}),this.JSC$9007_extraEdges_[Y][b]=!0)};
_.g.removeExtraEdge=function(Y,b){if(this.JSC$9007_extraEdges_[Y]){delete this.JSC$9007_extraEdges_[Y][b];for(var w in this.JSC$9007_extraEdges_[Y])return;delete this.JSC$9007_extraEdges_[Y]}};
_.g.isModuleLoading=function(Y){return!!this.loadingModules_[Y]};
_.g.load=function(Y){lkd(this,[Y]);return hmI(this,Y)};
_.g.loadMultiple=function(Y){var b=this,w=Object.create(null),V=[];Y.forEach(function(H){w[H]||(w[H]=hmI(b,H),V.push(H))});
lkd(this,V);return w};
_.g.beforeLoadModuleCode=function(Y){var b;((b=this.JSC$9007_currentlyLoadingModule_)==null?void 0:b.getId())==="synthetic_module_overhead"&&this.JSC$8994_setLoaded();var w,V;xcj(this,(V=(w=this.JSC$9007_moduleInfoMap_[Y])==null?void 0:w.deps_)!=null?V:[],function(H){H.module_=new zS},function(H){return!H.isLoaded()});
this.JSC$9007_currentlyLoadingModule_=this.getModuleInfo(Y)};
_.g.JSC$8994_setLoaded=function(){if(this.JSC$9007_currentlyLoadingModule_){var Y=this.JSC$9007_currentlyLoadingModule_.getId(),b=[];if(this.JSC$9007_extraEdges_[Y]){for(var w=_.N(Object.keys(this.JSC$9007_extraEdges_[Y])),V=w.next();!V.done;V=w.next())V=V.value,this.getModuleInfo(V).isLoaded()||(this.removeExtraEdge(Y,V),b.push(V));this.loadMultiple(b)}this.JSC$9007_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9007_currentlyLoadingModule_=null;(!this.isModuleLoading(Y)&&/^sy[0-9a-z]{0,4}$/.test(Y)||Y==="synthetic_module_overhead")&&delete this.JSC$9007_moduleInfoMap_[Y];this.unsetModulesAsLoading(Y)}};
_.g.setModulesAsLoading=function(){var Y=this;_.BN.apply(0,arguments).forEach(function(b){Y.loadingModules_[b]=!0})};
_.g.unsetModulesAsLoading=function(){var Y=this;_.BN.apply(0,arguments).forEach(function(b){delete Y.loadingModules_[b]})};
var hmI=function(Y,b){return new _.hh(function(w,V){var H=Y.getModuleInfo(b);H.isLoaded()?w(null):(H.registerCallback(function(){w(null)}),rh8(H,function(f){var E="Error loading "+b+": "+f;
f instanceof cZ.ModuleLoadFailure&&f.url&&(E=E+", requested url: "+f.url.toString());V(Error(E))}))})},lkd=function(Y,b){b=b.filter(function(w){return!Y.isModuleLoading(w)&&!Y.getModuleInfo(w).isLoaded()});
b.length>0&&(Y.setModulesAsLoading.apply(Y,_.Bt(b)),Y.JSC$9007_queue_.push(b),qZo(Y))},qZo=function(Y){for(var b={};Y.activeLoads_<Infinity&&Y.JSC$9007_queue_.length>0;b={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})b.ids$jscomp$36=Y.JSC$9007_queue_.shift().filter(function(w){return!Y.getModuleInfo(w).isLoaded()}),b.ids$jscomp$36.length>0&&(Y.activeLoads_++,b.finishLoad=function(w){return function(){Y.activeLoads_--;
qZo(Y);w.finishLoad=function(){}}}(b),_.p1(b.ids$jscomp$36.map(function(w){return hmI(Y,w)})).then(function(w){return function(){(0,w.finishLoad)()}}(b)),b.attempt$jscomp$6=0,b.load$jscomp$1=function(w){return function(){if(Object.keys(Y.JSC$9007_extraEdges_).length>0&&!Y.JSC$8090_loader_.supportsExtraEdges)throw Error("ud");
Y.JSC$8090_loader_.JSC$8986_loadModules(w.ids$jscomp$36,Y.JSC$9007_moduleInfoMap_,{extraEdges:Y.JSC$9007_extraEdges_,onError:function(V,H){var f=Ikd[w.attempt$jscomp$6++];f!==void 0?setTimeout(function(){(0,w.load$jscomp$1)()},f):(Y.unsetModulesAsLoading.apply(Y,_.Bt(w.ids$jscomp$36)),(0,w.finishLoad)(),w.ids$jscomp$36.forEach(function(E){E=Y.getModuleInfo(E);
if(!E.isLoaded())E.onError(new cZ.ModuleLoadFailure(cZ.ModuleLoadFailure.JSC$8996_Type.CONSECUTIVE_FAILURES,V,w.ids$jscomp$36,H))}))}})}}(b),(0,b.load$jscomp$1)())},xcj=function(Y,b,w,V,H){V=V===void 0?function(){return!0}:V;
H=H===void 0?{}:H;b=_.N(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var E=Y.getModuleInfo(f);!H[f]&&V(E)&&(H[f]=!0,xcj(Y,E.deps_||[],w,V,H),w(E))}};var sd_=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var QLe=Symbol("xd");window.JSCompiler_renameProperty=function(Y){return Y};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var QdI=!sd_||HTMLElement.es5Shimmed||_.wB.Reflect===void 0||_.wB.customElements===void 0||_.wB.customElements.polyfillWrapFlushCallback||!1,vD5,iYg=function(){var Y=HTMLElement;if(QdI)return Y;if(vD5!==void 0)return vD5;var b=_.wB.Reflect,w=function(){return b.construct(Y,[],this.constructor)};
w.prototype=Y.prototype;w.prototype.constructor=w;w.es5Shimmed=!0;Object.setPrototypeOf(w,Y);return vD5=w},Pp5=!1;QdI||Pp5||(Pp5=!0,_.wB.HTMLElement=iYg());/*

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 n_v=/(url\()([^)]*)(\))/g,Z_6=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Bnb,Nc;var ad=!window.ShadyDOM||!window.ShadyDOM.inUse,ZSj=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),BS5=!window.customElements.polyfillWrapFlushCallback,nDr;if(nDr=ad&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var MMU=new CSSStyleSheet;MMU.replaceSync("");var emI=document.createElement("div");emI.attachShadow({mode:"open"});emI.shadowRoot.adoptedStyleSheets=[MMU];nDr=emI.shadowRoot.adoptedStyleSheets[0]===MMU}catch(Y){nDr=!1}
var p68=nDr,OSt=window.Polymer&&window.Polymer.rootPath||eEr(document.baseURI||window.location.href),sZ=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,aEM=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,KS=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,tM$=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,SM=window.Polymer&&window.Polymer.legacyOptimizations||!1,W6=window.Polymer&&window.Polymer.legacyWarnings||!1,Rmr=window.Polymer&&window.Polymer.syncInitialRender||
!1,v6=window.Polymer&&window.Polymer.legacyUndefined||!1,dco=window.Polymer&&window.Polymer.orderedComputed||!1,jf=window.Polymer&&window.Polymer.removeNestedTemplates||!1,GS=window.Polymer&&window.Polymer.fastDomIf||!1,TS=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,FHt=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,LHU=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Jt={},SZt={},Zk=function(){return HTMLElement.apply(this,arguments)||this};
_.P(Zk,HTMLElement);Zk.import=function(Y,b){return Y?(Y=Jt[Y]||SZt[Y.toLowerCase()])&&b?Y.querySelector(b):Y:null};
Zk.prototype.attributeChangedCallback=function(Y,b,w){b!==w&&this.register()};
Zk.prototype.register=function(Y){if(Y=Y||this.id){if(KS&&(Jt[Y]||SZt[Y.toLowerCase()])!==void 0)throw Jt[Y]=SZt[Y.toLowerCase()]=null,Error("yd`"+Y);this.id=Y;Jt[Y]=SZt[Y.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.up.Object.defineProperties(Zk.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var Y=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;Y=_.EZ(this.getAttribute("assetpath")||"",Y.baseURI);this.__assetpath=eEr(Y)}return this.__assetpath}}});
_.up.Object.defineProperties(Zk,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Zk["import"]=Zk.import;Zk.prototype.modules=Jt;customElements.define("dom-module",Zk);var akU=0,O_B=0,c6=[],rQK=0,pbq=!1,zmU=document.createTextNode(""),WHI,Fy;(new window.MutationObserver(t9u)).observe(zmU,{characterData:!0});_.ux={after:function(Y){return{run:function(b){return window.setTimeout(b,Y)},
cancel:function(b){window.clearTimeout(b)}}},
run:function(Y,b){return window.setTimeout(Y,b)},
cancel:function(Y){window.clearTimeout(Y)}};
_.pA={run:function(Y){return window.requestAnimationFrame(Y)},
cancel:function(Y){window.cancelAnimationFrame(Y)}};
WHI={run:function(Y){return window.requestIdleCallback?window.requestIdleCallback(Y):window.setTimeout(Y,16)},
cancel:function(Y){window.cancelIdleCallback?window.cancelIdleCallback(Y):window.clearTimeout(Y)}};
Fy={run:function(Y){pbq||(pbq=!0,zmU.textContent=rQK++);c6.push(Y);return akU++},
cancel:function(Y){var b=Y-O_B;if(b>=0){if(!c6[b])throw Error("zd`"+Y);c6[b]=null}}};var KHI=0,Y8=function(Y){var b=Y.__mixinApplications;b||(b=new WeakMap,Y.__mixinApplications=b);var w=KHI++;return function(V){var H=V.__mixinSet;if(H&&H[w])return V;var f=b,E=f.get(V);E||(E=Y(V),f.set(V,E),V=Object.create(E.__mixinSet||H||null),V[w]=!0,E.__mixinSet=V);return E}};_.qc=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(Y){return ShadyDOM.patch(Y)}:function(Y){return Y};var iS_=Y8(function(Y){var b=function(){var w=Y.call(this)||this;w.__dataEnabled=!1;w.__dataReady=!1;w.__dataInvalid=!1;w.__data={};w.__dataPending=null;w.__dataOld=null;w.__dataInstanceProps=null;w.__dataCounter=0;w.__serializing=!1;w._initializeProperties();return w};
_.P(b,Y);b.createProperties=function(w){var V=this.prototype,H;for(H in w)H in V||V._createPropertyAccessor(H)};
b.attributeNameForProperty=function(w){return w.toLowerCase()};
b.typeForProperty=function(){};
b.prototype._createPropertyAccessor=function(w,V){this._addPropertyToAttributeMap(w);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[w]||(this.__dataHasAccessor[w]=!0,this._definePropertyAccessor(w,V))};
b.prototype._addPropertyToAttributeMap=function(w){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var V=this.__dataAttributes[w];V||(V=this.constructor.attributeNameForProperty(w),this.__dataAttributes[V]=w);return V};
b.prototype._definePropertyAccessor=function(w,V){Object.defineProperty(this,w,{get:function(){return this.__data[w]},
set:V?function(){}:function(H){this._setPendingProperty(w,H,!0)&&this._invalidateProperties()}})};
b.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
b.prototype._initializeProperties=function(){for(var w in this.__dataHasAccessor)this.hasOwnProperty(w)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[w]=this[w],delete this[w])};
b.prototype._initializeInstanceProperties=function(w){Object.assign(this,w)};
b.prototype._setProperty=function(w,V){this._setPendingProperty(w,V)&&this._invalidateProperties()};
b.prototype._getProperty=function(w){return this.__data[w]};
b.prototype._setPendingProperty=function(w,V){var H=this.__data[w],f=this._shouldPropertyChange(w,V,H);f&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||w in this.__dataOld||(this.__dataOld[w]=H),this.__data[w]=V,this.__dataPending[w]=V);return f};
b.prototype._isPropertyPending=function(w){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(w))};
b.prototype._invalidateProperties=function(){var w=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Fy.run(function(){w.__dataInvalid&&(w.__dataInvalid=!1,w._flushProperties())}))};
b.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
b.prototype._flushProperties=function(){this.__dataCounter++;var w=this.__data,V=this.__dataPending,H=this.__dataOld;this._shouldPropertiesChange(w,V,H)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(w,V,H));this.__dataCounter--};
b.prototype._shouldPropertiesChange=function(w,V){return!!V};
b.prototype._propertiesChanged=function(){};
b.prototype._shouldPropertyChange=function(w,V,H){return H!==V&&(H===H||V===V)};
b.prototype.attributeChangedCallback=function(w,V,H,f){V!==H&&this._attributeToProperty(w,H);Y.prototype.attributeChangedCallback&&Y.prototype.attributeChangedCallback.call(this,w,V,H,f)};
b.prototype._attributeToProperty=function(w,V,H){if(!this.__serializing){var f=this.__dataAttributes;w=f&&f[w]||w;this[w]=this._deserializeValue(V,H||this.constructor.typeForProperty(w))}};
b.prototype._propertyToAttribute=function(w,V,H){this.__serializing=!0;H=arguments.length<3?this[w]:H;this._valueToNodeAttribute(this,H,V||this.constructor.attributeNameForProperty(w));this.__serializing=!1};
b.prototype._valueToNodeAttribute=function(w,V,H){V=this._serializeValue(V);if(H==="class"||H==="name"||H==="slot")w=(0,_.qc)(w);V===void 0?w.removeAttribute(H):w.setAttribute(H,V===""&&window.trustedTypes?window.trustedTypes.emptyScript:V)};
b.prototype._serializeValue=function(w){switch(typeof w){case "boolean":return w?"":void 0;default:return w!=null?w.toString():void 0}};
b.prototype._deserializeValue=function(w,V){switch(V){case Boolean:return w!==null;case Number:return Number(w);default:return w}};
return b});var AQ_=0,REe=[];var Cp8=Y8(function(Y){function b(f){f=Object.getPrototypeOf(f);return f.prototype instanceof H?f:null}
function w(f){if(!f.hasOwnProperty("__ownProperties")){var E=null;if(f.hasOwnProperty("properties")){var U=f.properties;if(U){E={};for(var X in U){var I=U[X];E[X]=typeof I==="function"?{type:I}:I}}}f.__ownProperties=E}return f.__ownProperties}
var V=iS_(Y),H=function(){return V.apply(this,arguments)||this};
_.P(H,V);H.finalize=function(){if(!this.hasOwnProperty("__finalized")){var f=b(this);f&&f.finalize();this.__finalized=!0;this._finalizeClass()}};
H._finalizeClass=function(){var f=w(this);f&&this.createProperties(f)};
H.typeForProperty=function(f){return(f=this._properties[f])&&f.type};
H.prototype._initializeProperties=function(){AQ_++;this.constructor.finalize();V.prototype._initializeProperties.call(this)};
H.prototype.connectedCallback=function(){V.prototype.connectedCallback&&V.prototype.connectedCallback.call(this);this._enableProperties()};
H.prototype.disconnectedCallback=function(){V.prototype.disconnectedCallback&&V.prototype.disconnectedCallback.call(this)};
_.up.Object.defineProperties(H,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var f=this;if(!this.hasOwnProperty("__observedAttributes")){dRv(this.prototype);var E=this._properties;this.__observedAttributes=E?Object.keys(E).map(function(U){return f.prototype._addPropertyToAttributeMap(U)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var f=b(this);this.__properties=Object.assign({},f&&f._properties,w(this))}return this.__properties}}});
return H});var FBL={},LBL=/-[a-z]/g,Svg=/([A-Z])/g;for(var yQ5={},$cC=HTMLElement.prototype;$cC;){for(var jdC=Object.getOwnPropertyNames($cC),GCd=0;GCd<jdC.length;GCd++)yQ5[jdC[GCd]]=!0;$cC=Object.getPrototypeOf($cC)}var TSt=window.trustedTypes?function(Y){return trustedTypes.isHTML(Y)||trustedTypes.isScript(Y)||trustedTypes.isScriptURL(Y)}:function(){return!1},JQ5=Y8(function(Y){var b=iS_(Y);
Y=function(){return b.apply(this,arguments)||this};
_.P(Y,b);Y.createPropertiesForAttributes=function(){for(var w=this.observedAttributes,V=0;V<w.length;V++)this.prototype._createPropertyAccessor(UZ(w[V]))};
Y.attributeNameForProperty=function(w){return Xy(w)};
Y.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);b.prototype._initializeProperties.call(this)};
Y.prototype._initializeProtoProperties=function(w){for(var V in w)this._setProperty(V,w[V])};
Y.prototype._ensureAttribute=function(w,V){this.hasAttribute(w)||this._valueToNodeAttribute(this,V,w)};
Y.prototype._serializeValue=function(w){switch(typeof w){case "object":if(w instanceof Date)return w.toString();if(w){if(TSt(w))return w;try{return JSON.stringify(w)}catch(V){return""}}default:return b.prototype._serializeValue.call(this,w)}};
Y.prototype._deserializeValue=function(w,V){switch(V){case Object:try{var H=JSON.parse(w)}catch(f){H=w}break;case Array:try{H=JSON.parse(w)}catch(f){H=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+w)}break;case Date:H=isNaN(w)?String(w):Number(w);H=new Date(H);break;default:H=b.prototype._deserializeValue.call(this,w,V)}return H};
Y.prototype._definePropertyAccessor=function(w,V){if(!yQ5[w]){var H=this[w];H!==void 0&&(this.__data?this._setPendingProperty(w,H):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[w]=H))}b.prototype._definePropertyAccessor.call(this,w,V)};
Y.prototype._hasAccessor=function(w){return this.__dataHasAccessor&&this.__dataHasAccessor[w]};
Y.prototype._isPropertyPending=function(w){return!!(this.__dataPending&&w in this.__dataPending)};
return Y});var uyQ={"dom-if":!0,"dom-repeat":!0},YD9=!1,bMU=!1,w1I=function(){var Y=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(b){return b}});
return function(b,w,V){w=w.getAttribute(V);Y&&V.startsWith("on-")?b.setAttribute(V,Y.createScript(w,V)):b.setAttribute(V,w)}}(),VS$=Y8(function(Y){var b=function(){return Y.apply(this,arguments)||this};
_.P(b,Y);b._parseTemplate=function(w,V){if(!w._templateInfo){var H=w._templateInfo={};H.nodeInfoList=[];H.nestedTemplate=!!V;H.stripWhiteSpace=V&&V.stripWhiteSpace||w.hasAttribute&&w.hasAttribute("strip-whitespace");this._parseTemplateContent(w,H,{parent:null})}return w._templateInfo};
b._parseTemplateContent=function(w,V,H){return this._parseTemplateNode(w.content,V,H)};
b._parseTemplateNode=function(w,V,H){var f=!1;w.localName!="template"||w.hasAttribute("preserve-content")?w.localName==="slot"&&(V.hasInsertionPoint=!0):f=this._parseTemplateNestedTemplate(w,V,H)||f;if(!YD9){YD9=!0;var E=document.createElement("textarea");E.placeholder="a";bMU=E.placeholder===E.textContent}bMU&&w.localName==="textarea"&&w.placeholder&&w.placeholder===w.textContent&&(w.textContent=null);w.firstChild&&this._parseTemplateChildNodes(w,V,H);w.hasAttributes&&w.hasAttributes()&&(f=this._parseTemplateNodeAttributes(w,
V,H)||f);return f||H.noted};
b._parseTemplateChildNodes=function(w,V,H){if(w.localName!=="script"&&w.localName!=="style")for(var f=w.firstChild,E=0,U;f;f=U){if(f.localName=="template"){var X=f.getAttribute("is");if(X&&uyQ[X])for(U=f,U.removeAttribute("is"),f=U.ownerDocument.createElement(X),U.parentNode.replaceChild(f,U),f.appendChild(U);U.attributes.length;)X=U.attributes[0].name,w1I(f,U,X),U.removeAttribute(X)}U=f.nextSibling;if(f.nodeType===Node.TEXT_NODE){for(X=U;X&&X.nodeType===Node.TEXT_NODE;)f.textContent+=X.textContent,
U=X.nextSibling,w.removeChild(X),X=U;if(V.stripWhiteSpace&&!f.textContent.trim()){w.removeChild(f);continue}}X={parentIndex:E,parentInfo:H};this._parseTemplateNode(f,V,X)&&(X.infoIndex=V.nodeInfoList.push(X)-1);f.parentNode&&E++}};
b._parseTemplateNestedTemplate=function(w,V,H){V=this._parseTemplate(w,V);(V.content=w.content.ownerDocument.createDocumentFragment()).appendChild(w.content);H.templateInfo=V;return!0};
b._parseTemplateNodeAttributes=function(w,V,H){for(var f=!1,E=Array.from(w.attributes),U=E.length-1,X;X=E[U];U--)f=this._parseTemplateNodeAttribute(w,V,H,X.name,X.value)||f;return f};
b._parseTemplateNodeAttribute=function(w,V,H,f,E){return f.slice(0,3)==="on-"?(w.removeAttribute(f),H.events=H.events||[],H.events.push({name:f.slice(3),value:E}),!0):f==="id"?(H.id=E,!0):!1};
b._contentForTemplate=function(w){var V=w._templateInfo;return V&&V.content||w.content};
b.prototype._stampTemplate=function(w,V){w&&!w.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(w);V=V||this.constructor._parseTemplate(w);var H=V.nodeInfoList;w=document.importNode(V.content||w.content,!0);w.__noInsertionPoint=!V.hasInsertionPoint;var f=w.nodeList=Array(H.length);w.$={};for(var E=0,U=H.length,X=void 0;E<U&&(X=H[E]);E++){var I=f[E]=apI(w,X);X.id&&(w.$[X.id]=I);var k=I,l=X,x=V;l.templateInfo&&(k._templateInfo=l.templateInfo,k._parentTemplateInfo=
x);if(X.events&&X.events.length)for(k=0,l=X.events,x=void 0;k<l.length&&(x=l[k]);k++)this._addMethodEventListenerToNode(I,x.name,x.value,this)}return w};
b.prototype._addMethodEventListenerToNode=function(w,V,H,f){H=rjv(f||w,H);this._addEventListenerToNode(w,V,H);return H};
b.prototype._addEventListenerToNode=function(w,V,H){w.addEventListener(V,H)};
b.prototype._removeEventListenerFromNode=function(w,V,H){w.removeEventListener(V,H)};
return b});var hQ=0,Qc=[],HMo={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},gL9=/[A-Z]/,fmC=function(Y,b,w,V,H){var f=H?mH(Y):Y;if(b=b[f])for(f=0;f<b.length;f++){var E=b[f];if(E.info.lastRun!==hQ&&(!H||CAK(Y,E.trigger))){E.info.lastRun=hQ;E=E.info;for(var U=w,X=V,I=0,k=U.length-1,l=-1;I<=k;){var x=I+k>>1,Q=X.get(U[x].methodInfo)-X.get(E.methodInfo);if(Q<0)I=x+1;else if(Q>0)k=x-1;else{l=x;break}}l<
0&&(l=k+1);U.splice(l,0,E)}}},NKI=[],NOd=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"),wA=Y8(function(Y){var b=VS$(JQ5(Y));
Y=function(){var w=b.call(this)||this;w.__isPropertyEffectsClient=!0;return w};
_.P(Y,b);Y.prototype._initializeProperties=function(){b.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
Y.prototype._registerHost=function(){if(b6.length){var w=b6[b6.length-1];w._enqueueClient(this);this.__dataHost=w}};
Y.prototype._initializeProtoProperties=function(w){this.__data=Object.create(w);this.__dataPending=Object.create(w);this.__dataOld={}};
Y.prototype._initializeInstanceProperties=function(w){var V=this.__readOnly,H;for(H in w)V&&V[H]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[H]=this.__dataPending[H]=w[H])};
Y.prototype._addPropertyEffect=function(w,V,H){this._createPropertyAccessor(w,V=="__readOnly");var f=Ajq(this,V,!0)[w];f||(f=this[V][w]=[]);f.push(H)};
Y.prototype._removePropertyEffect=function(w,V,H){w=Ajq(this,V,!0)[w];H=w.indexOf(H);H>=0&&w.splice(H,1)};
Y.prototype._hasPropertyEffect=function(w,V){V=this[V];return!(!V||!V[w])};
Y.prototype._hasReadOnlyEffect=function(w){return this._hasPropertyEffect(w,"__readOnly")};
Y.prototype._hasNotifyEffect=function(w){return this._hasPropertyEffect(w,"__notifyEffects")};
Y.prototype._hasReflectEffect=function(w){return this._hasPropertyEffect(w,"__reflectEffects")};
Y.prototype._hasComputedEffect=function(w){return this._hasPropertyEffect(w,"__computeEffects")};
Y.prototype._setPendingPropertyOrPath=function(w,V,H,f){if(f||mH(Array.isArray(w)?w[0]:w)!==w){if(!f&&(f=lp(this,w),w=i_K(this,w,V),!w||!b.prototype._shouldPropertyChange.call(this,w,V,f)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(w,V,H)){if(H=this.__dataLinkedPaths)for(var E in H)f=H[E],od(E,w)?(f=Id(E,f,w),this._setPendingPropertyOrPath(f,V,!0,!0)):od(f,w)&&(f=Id(f,E,w),this._setPendingPropertyOrPath(f,V,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[w])return this._setPendingProperty(w,
V,H);this[w]=V}return!1};
Y.prototype._setUnmanagedPropertyToNode=function(w,V,H){if(H!==w[V]||typeof H=="object")V==="className"&&(w=(0,_.qc)(w)),w[V]=H};
Y.prototype._setPendingProperty=function(w,V,H){var f=this.__dataHasPaths&&Dk(w);if(this._shouldPropertyChange(w,V,(f?this.__dataTemp:this.__data)[w])){this.__dataPending||(this.__dataPending={},this.__dataOld={});w in this.__dataOld||(this.__dataOld[w]=this.__data[w]);f?this.__dataTemp[w]=V:this.__data[w]=V;this.__dataPending[w]=V;if(f||this.__notifyEffects&&this.__notifyEffects[w])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[w]=H;return!0}return!1};
Y.prototype._setProperty=function(w,V){this._setPendingProperty(w,V,!0)&&this._invalidateProperties()};
Y.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
Y.prototype._enqueueClient=function(w){this.__dataPendingClients=this.__dataPendingClients||[];w!==this&&this.__dataPendingClients.push(w)};
Y.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
Y.prototype.__enableOrFlushClients=function(){var w=this.__dataPendingClients;if(w){this.__dataPendingClients=null;for(var V=0;V<w.length;V++){var H=w[V];H.__dataEnabled?H.__dataPending&&H._flushProperties():H._enableProperties()}}};
Y.prototype._readyClients=function(){this.__enableOrFlushClients()};
Y.prototype.setProperties=function(w,V){for(var H in w)!V&&this.__readOnly&&this.__readOnly[H]||this._setPendingPropertyOrPath(H,w[H],!0);this._invalidateProperties()};
Y.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
Y.prototype._propertiesChanged=function(w,V,H){w=this.__dataHasPaths;this.__dataHasPaths=!1;var f;if(f=this.__computeEffects)if(dco){hQ++;var E=Jjb(this),U=[],X;for(X in V)fmC(X,f,U,E,w);for(;X=U.shift();)YHr(this,"",V,H,X)&&fmC(X.methodInfo,f,U,E,w);Object.assign(H,this.__dataOld);Object.assign(V,this.__dataPending);this.__dataPending=null}else for(E=V;xD(this,f,E,H,w);)Object.assign(H,this.__dataOld),Object.assign(V,this.__dataPending),E=this.__dataPending,this.__dataPending=null;f=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(V,H,w);this._flushClients();xD(this,this.__reflectEffects,V,H,w);xD(this,this.__observeEffects,V,H,w);if(f){E=this.__notifyEffects;U=hQ++;for(var I in f)if(f[I]){if(X=E){var k=E;X=U;var l=I,x=V,Q=H,Z=w,e=!1,O=Z?mH(l):l;if(k=k[O]){O=0;for(var L=k.length,r=void 0;O<L&&(r=k[O]);O++)r.info&&r.info.lastRun===X||Z&&!CAK(l,r.trigger)||(r.info&&(r.info.lastRun=X),r.fn(this,l,x,Q,r.info,Z,void 0),e=!0)}X=e}if(X)var C=!0;else{if(X=w)X=I,l=V,x=mH(X),x!==
X?(x=Xy(x)+"-changed",$Re(this,x,l[X],X),X=!0):X=!1;X&&(C=!0)}}var W;C&&(W=this.__dataHost)&&W._invalidateProperties&&W._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
Y.prototype._propagatePropertyChanges=function(w,V,H){this.__propagateEffects&&xD(this,this.__propagateEffects,w,V,H);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,w,V,H)};
Y.prototype._runEffectsForTemplate=function(w,V,H,f){var E=this,U=function(X,I){xD(E,w.propertyEffects,X,H,I,w.nodeList);for(var k=w.firstChild;k;k=k.nextSibling)E._runEffectsForTemplate(k,X,H,I)};
w.runEffects?w.runEffects(U,V,f):U(V,f)};
Y.prototype.linkPaths=function(w,V){w=kD(w);V=kD(V);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[w]=V};
Y.prototype.unlinkPaths=function(w){w=kD(w);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[w]};
Y.prototype.notifySplices=function(w,V){var H={path:""};w=lp(this,w,H);Xvq(this,w,H.path,V)};
Y.prototype.get=function(w,V){return lp(V||this,w)};
Y.prototype.set=function(w,V,H){H?i_K(H,w,V):this.__readOnly&&this.__readOnly[w]||this._setPendingPropertyOrPath(w,V,!0)&&this._invalidateProperties()};
Y.prototype.push=function(w){var V=_.BN.apply(1,arguments),H={path:""},f=lp(this,w,H),E=f.length,U=f.push.apply(f,_.Bt(V));V.length&&P6(this,f,H.path,E,V.length,[]);return U};
Y.prototype.pop=function(w){var V={path:""};w=lp(this,w,V);var H=!!w.length,f=w.pop();H&&P6(this,w,V.path,w.length,0,[f]);return f};
Y.prototype.splice=function(w,V,H){var f=_.BN.apply(3,arguments),E={path:""},U=lp(this,w,E);V<0?V=U.length-Math.floor(-V):V&&(V=Math.floor(V));var X=arguments.length===2?U.splice(V):U.splice.apply(U,[V,H].concat(_.Bt(f)));(f.length||X.length)&&P6(this,U,E.path,V,f.length,X);return X};
Y.prototype.shift=function(w){var V={path:""};w=lp(this,w,V);var H=!!w.length,f=w.shift();H&&P6(this,w,V.path,0,0,[f]);return f};
Y.prototype.unshift=function(w){var V=_.BN.apply(1,arguments),H={path:""},f=lp(this,w,H),E=f.unshift.apply(f,_.Bt(V));V.length&&P6(this,f,H.path,0,V.length,[]);return E};
Y.prototype.notifyPath=function(w,V){if(arguments.length==1){var H={path:""};V=lp(this,w,H);H=H.path}else H=Array.isArray(w)?kD(w):w;this._setPendingPropertyOrPath(H,V,!0,!0)&&this._invalidateProperties()};
Y.prototype._createReadOnlyProperty=function(w,V){this._addPropertyEffect(w,"__readOnly");V&&(this["_set"+(w[0].toUpperCase()+w.substring(1))]=function(H){this._setProperty(w,H)})};
Y.prototype._createPropertyObserver=function(w,V,H){var f={property:w,method:V,dynamicFn:!!H};this._addPropertyEffect(w,"__observeEffects",{fn:yjv,info:f,trigger:{name:w}});H&&this._addPropertyEffect(V,"__observeEffects",{fn:yjv,info:f,trigger:{name:V}})};
Y.prototype._createMethodObserver=function(w,V){var H=cdI(w);if(!H)throw Error("Ad`"+w);ghg(this,H,"__observeEffects",ul6,null,V)};
Y.prototype._createNotifyingProperty=function(w){this._addPropertyEffect(w,"__notifyEffects",{fn:jLv,info:{eventName:Xy(w)+"-changed",property:w}})};
Y.prototype._createReflectedProperty=function(w){var V=this.constructor.attributeNameForProperty(w);V[0]==="-"?console.warn("Property "+w+" cannot be reflected to attribute "+V+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(w,"__reflectEffects",{fn:G9M,info:{attrName:V}})};
Y.prototype._createComputedProperty=function(w,V,H){var f=cdI(V);if(!f)throw Error("Bd`"+V);V=ghg(this,f,"__computeEffects",YHr,w,H);Ajq(this,"__computeInfo")[w]=V};
Y.prototype._marshalArgs=function(w,V,H){for(var f=this.__data,E=[],U=0,X=w.length;U<X;U++){var I=w[U],k=I.name,l=I.structured,x=I.wildcard,Q=I.value;I.literal||(x?(I=od(k,V),l=Uor(f,H,I?V:k),Q={path:I?V:k,value:l,base:I?lp(f,k):l}):Q=l?Uor(f,H,k):f[k]);if(v6&&!this._overrideLegacyUndefined&&Q===void 0&&w.length>1)return Qc;E[U]=Q}return E};
Y.addPropertyEffect=function(w,V,H){this.prototype._addPropertyEffect(w,V,H)};
Y.createPropertyObserver=function(w,V,H){this.prototype._createPropertyObserver(w,V,H)};
Y.createMethodObserver=function(w,V){this.prototype._createMethodObserver(w,V)};
Y.createNotifyingProperty=function(w){this.prototype._createNotifyingProperty(w)};
Y.createReadOnlyProperty=function(w,V){this.prototype._createReadOnlyProperty(w,V)};
Y.createReflectedProperty=function(w){this.prototype._createReflectedProperty(w)};
Y.createComputedProperty=function(w,V,H){this.prototype._createComputedProperty(w,V,H)};
Y.bindTemplate=function(w){return this.prototype._bindTemplate(w)};
Y.prototype._bindTemplate=function(w,V){var H=this.constructor._parseTemplate(w),f=this.__preBoundTemplateInfo==H;if(!f)for(var E in H.propertyEffects)this._createPropertyAccessor(E);V?(H=Object.create(H),H.wasPreBound=f,this.__templateInfo?(w=w._parentTemplateInfo||this.__templateInfo,V=w.lastChild,H.parent=w,w.lastChild=H,(H.previousSibling=V)?V.nextSibling=H:w.firstChild=H):this.__templateInfo=H):this.__preBoundTemplateInfo=H;return H};
Y._addTemplatePropertyEffect=function(w,V,H){(w.hostProps=w.hostProps||{})[V]=!0;w=w.propertyEffects=w.propertyEffects||{};(w[V]=w[V]||[]).push(H)};
Y.prototype._stampTemplate=function(w,V){V=V||this._bindTemplate(w,!0);b6.push(this);w=b.prototype._stampTemplate.call(this,w,V);b6.pop();V.nodeList=w.nodeList;if(!V.wasPreBound)for(var H=V.childNodes=[],f=w.firstChild;f;f=f.nextSibling)H.push(f);w.templateInfo=V;H=V.nodeList;f=V.nodeInfoList;if(f.length)for(var E=0;E<f.length;E++){var U=H[E],X=f[E].bindings;if(X)for(var I=0;I<X.length;I++){var k=X[I],l=U,x=k;if(x.isCompound){for(var Q=l.__dataCompoundStorage||(l.__dataCompoundStorage={}),Z=x.parts,
e=Array(Z.length),O=0;O<Z.length;O++)e[O]=Z[O].literal;Z=x.target;Q[Z]=e;x.literal&&x.kind=="property"&&(Z==="className"&&(l=(0,_.qc)(l)),l[Z]=x.literal)}Hsu(U,this,k)}U.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(V,this.__data,null,!1),this._flushClients());return w};
Y.prototype._removeBoundDom=function(w){w=w.templateInfo;var V=w.previousSibling,H=w.nextSibling,f=w.parent;V?V.nextSibling=H:f&&(f.firstChild=H);H?H.previousSibling=V:f&&(f.lastChild=V);w.nextSibling=w.previousSibling=null;w=w.childNodes;for(V=0;V<w.length;V++)H=w[V],(0,_.qc)((0,_.qc)(H).parentNode).removeChild(H)};
Y._parseTemplateNode=function(w,V,H){var f=b._parseTemplateNode.call(this,w,V,H);if(w.nodeType===Node.TEXT_NODE){var E=this._parseBindings(w.textContent,V);E&&(w.textContent=fEG(E)||" ",VPL(this,V,H,"text","textContent",E),f=!0)}return f};
Y._parseTemplateNodeAttribute=function(w,V,H,f,E){var U=this._parseBindings(E,V);if(U){E=f;var X="property";gL9.test(f)?X="attribute":f[f.length-1]=="$"&&(f=f.slice(0,-1),X="attribute");var I=fEG(U);I&&X=="attribute"&&(f=="class"&&w.hasAttribute("class")&&(I+=" "+w.getAttribute(f)),w.setAttribute(f,I));X=="attribute"&&E=="disable-upgrade$"&&w.setAttribute(f,"");w.localName==="input"&&E==="value"&&w.setAttribute(E,"");w.removeAttribute(E);X==="property"&&(f=UZ(f));VPL(this,V,H,X,f,U,I);return!0}return b._parseTemplateNodeAttribute.call(this,
w,V,H,f,E)};
Y._parseTemplateNestedTemplate=function(w,V,H){var f=b._parseTemplateNestedTemplate.call(this,w,V,H),E=w.parentNode,U=H.templateInfo,X=E.localName==="dom-if",I=E.localName==="dom-repeat";jf&&(X||I)&&(E.removeChild(w),H=H.parentInfo,H.templateInfo=U,H.noted=!0,f=!1);w=U.hostProps;if(GS&&X)w&&(V.hostProps=Object.assign(V.hostProps||{},w),jf||(H.parentInfo.noted=!0));else for(var k in w)VPL(this,V,H,"property","_host_"+k,[{mode:"{",source:k,dependencies:[k],hostProp:!0}]);return f};
Y._parseBindings=function(w,V){for(var H=[],f=0,E;(E=NOd.exec(w))!==null;){E.index>f&&H.push({literal:w.slice(f,E.index)});f=E[1][0];var U=!!E[2];E=E[3].trim();var X=!1,I="",k=-1;f=="{"&&(k=E.indexOf("::"))>0&&(I=E.substring(k+2),E=E.substring(0,k),X=!0);k=cdI(E);var l=[];if(k){var x=k,Q=x.args;x=x.methodName;for(var Z=0;Z<Q.length;Z++){var e=Q[Z];e.literal||l.push(e)}if((Q=V.dynamicFns)&&Q[x]||k.static)l.push(x),k.dynamicFn=!0}else l.push(E);H.push({source:E,mode:f,negate:U,customEvent:X,signature:k,
dependencies:l,event:I});f=NOd.lastIndex}f&&f<w.length&&(w=w.substring(f))&&H.push({literal:w});return H.length?H:null};
Y._evaluateBinding=function(w,V,H,f,E,U){w=V.signature?ul6(w,H,f,E,V.signature):H!=V.source?lp(w,V.source):U&&Dk(H)?lp(w,H):w.__data[H];V.negate&&(w=!w);return w};
_.up.Object.defineProperties(Y.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return HMo}}});
return Y}),b6=[];var EL$=window.ShadyCSS&&window.ShadyCSS.cssBuild,VI=Y8(function(Y){function b(V,H,f,E){if(!EL$){for(var U=H.content.querySelectorAll("style"),X=IEq(H),I=kIa(f),k=H.content.firstElementChild,l=0;l<I.length;l++){var x=I[l];x.textContent=V._processStyleText(x.textContent,E);H.content.insertBefore(x,k)}for(k=I=0;k<X.length;k++)l=X[k],x=U[I],x!==l?(l=l.cloneNode(!0),x.parentNode.insertBefore(l,x)):I++,l.textContent=V._processStyleText(l.textContent,E)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(H,
f);if(LHU&&EL$&&p68&&(H=H.content.querySelectorAll("style"))){var Q="";Array.from(H).forEach(function(Z){Q+=Z.textContent;Z.parentNode.removeChild(Z)});
V._styleSheet=new CSSStyleSheet;V._styleSheet.replaceSync(Q)}}
var w=Cp8(wA(Y));Y=function(){return w.call(this)||this};
_.P(Y,w);Y._finalizeClass=function(){w._finalizeClass.call(this);var V;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(V=this.__ownObservers)&&this.createObservers(V,this._properties);this._prepareTemplate()};
Y._prepareTemplate=function(){var V=this.template;V&&(typeof V==="string"?(console.error("template getter must return HTMLTemplateElement"),V=null):SM||(V=V.cloneNode(!0)));this.prototype._template=V};
Y.createProperties=function(V){for(var H in V){var f=this.prototype,E=H,U=V[H],X=V;U.computed&&(U.readOnly=!0);U.computed&&(f._hasReadOnlyEffect(E)?console.warn("Cannot redefine computed property '"+E+"'."):f._createComputedProperty(E,U.computed,X));U.readOnly&&!f._hasReadOnlyEffect(E)?f._createReadOnlyProperty(E,!U.computed):U.readOnly===!1&&f._hasReadOnlyEffect(E)&&console.warn("Cannot make readOnly property '"+E+"' non-readOnly.");U.reflectToAttribute&&!f._hasReflectEffect(E)?f._createReflectedProperty(E):
U.reflectToAttribute===!1&&f._hasReflectEffect(E)&&console.warn("Cannot make reflected property '"+E+"' non-reflected.");U.notify&&!f._hasNotifyEffect(E)?f._createNotifyingProperty(E):U.notify===!1&&f._hasNotifyEffect(E)&&console.warn("Cannot make notify property '"+E+"' non-notify.");U.observer&&f._createPropertyObserver(E,U.observer,X[U.observer]);f._addPropertyToAttributeMap(E)}};
Y.createObservers=function(V,H){for(var f=this.prototype,E=0;E<V.length;E++)f._createMethodObserver(V[E],H)};
Y.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);w.prototype._initializeProperties.call(this);this.rootPath=OSt;this.importPath=this.constructor.importPath;var V=this.constructor;if(!V.hasOwnProperty("__propertyDefaults")){V.__propertyDefaults=null;var H=V._properties,f;for(f in H){var E=H[f];"value"in E&&(V.__propertyDefaults=V.__propertyDefaults||{},V.__propertyDefaults[f]=E)}}if(V=V.__propertyDefaults)for(var U in V)H=V[U],
this._canApplyPropertyDefault(U)&&(H=typeof H.value=="function"?H.value.call(this):H.value,this._hasAccessor(U)?this._setPendingProperty(U,H,!0):this[U]=H)};
Y.prototype._canApplyPropertyDefault=function(V){return!this.hasOwnProperty(V)};
Y._processStyleText=function(V,H){return M9K(V,H)};
Y._finalizeTemplate=function(V){var H=this.prototype._template;if(H&&!H.__polymerFinalized){H.__polymerFinalized=!0;var f=this.importPath;f=f?_.EZ(f):"";b(this,H,V,f);this.prototype._bindTemplate(H)}};
Y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);w.prototype.connectedCallback.call(this)};
Y.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);w.prototype.ready.call(this)};
Y.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));w.prototype._readyClients.call(this)};
Y.prototype._attachDom=function(V){var H=(0,_.qc)(this);if(H.attachShadow)return V?(H.shadowRoot||(H.attachShadow({mode:"open",shadyUpgradeFragment:V}),H.shadowRoot.appendChild(V),this.constructor._styleSheet&&(H.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Rmr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(H.shadowRoot),H.shadowRoot):null;throw Error("Dd");};
Y.prototype.updateStyles=function(V){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,V)};
Y.prototype.resolveUrl=function(V,H){!H&&this.importPath&&(H=_.EZ(this.importPath));return _.EZ(V,H)};
Y._parseTemplateContent=function(V,H,f){H.dynamicFns=H.dynamicFns||this._properties;return w._parseTemplateContent.call(this,V,H,f)};
Y._addTemplatePropertyEffect=function(V,H,f){!W6||H in this._properties||f.info.part.signature&&f.info.part.signature.static||f.info.part.hostProp||V.nestedTemplate||console.warn("Property '"+H+"' used in template but not declared in 'properties'; attribute will not be observed.");return w._addTemplatePropertyEffect.call(this,V,H,f)};
_.up.Object.defineProperties(Y,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var V=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof V==="function"&&(V=V());if(V===void 0){if(V=this.hasOwnProperty("is")){V=this.is;var H=null;if(V&&(!KS||tM$)&&(H=Zk.import(V,"template"),KS&&!H))throw Error("Cd`"+V);V=H}V=V||Object.getPrototypeOf(this.prototype).constructor.template}this._template=V}return this._template},
set:function(V){this._template=V}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var V=this.importMeta;V?this._importPath=eEr(V.url):this._importPath=(V=Zk.import(this.is))&&V.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return Y});var cw9=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(Y){return Y}}),vhK=function(Y,b){U4C(Y,b);
this.value=b.reduce(function(w,V,H){return w+PXM(V)+Y[H+1]},Y[0]).toString()},U4C;
vhK.prototype.toString=function(){return this.value};
_.X1Q=function(Y){var b=_.BN.apply(1,arguments);U4C(Y,b);var w=document.createElement("template");b=b.reduce(function(V,H,f){if(H instanceof HTMLTemplateElement)H=H.innerHTML;else if(H instanceof vhK)H=PXM(H);else throw Error("Fd`"+H);return V+H+Y[f+1]},Y[0]);
cw9&&(b=cw9.createHTML(b));w.innerHTML=b;return w};
U4C=function(Y,b){if(!Array.isArray(Y)||!Array.isArray(Y.raw)||b.length!==Y.length-1)throw new TypeError("Gd");};var Hq=VI(HTMLElement);var D4_=Y8(function(Y){var b=VI(Y);Y=function(){var w=b.call(this)||this;w.__lastItems=null;w.__lastMulti=null;w.__selectedMap=null;return w};
_.P(Y,b);Y.prototype.__updateSelection=function(w,V){var H=V.path;H=="items"?(V=V.base||[],H=this.__lastItems,w!==this.__lastMulti&&this.clearSelection(),H&&(H=Q1M(V,H),this.__applySplices(H)),this.__lastItems=V,this.__lastMulti=w):V.path=="items.splices"?this.__applySplices(V.value.indexSplices):(w=H.slice(6),V=parseInt(w,10),w.indexOf(".")<0&&w==V&&this.__deselectChangedIdx(V))};
Y.prototype.__applySplices=function(w){for(var V=this,H=this.__selectedMap,f={},E=0;E<w.length;f={s$jscomp$108:void 0},E++){f.s$jscomp$108=w[E];H.forEach(function(k){return function(l,x){l<k.s$jscomp$108.index||(l>=k.s$jscomp$108.index+k.s$jscomp$108.removed.length?H.set(x,l+k.s$jscomp$108.addedCount-k.s$jscomp$108.removed.length):H.set(x,-1))}}(f));
for(var U=0;U<f.s$jscomp$108.addedCount;U++){var X=f.s$jscomp$108.index+U;H.has(this.items[X])&&H.set(this.items[X],X)}}this.__updateLinks();var I=0;H.forEach(function(k,l){k<0?(V.multi?V.splice("selected",I,1):V.selected=V.selectedItem=null,H.delete(l)):I++})};
Y.prototype.__updateLinks=function(){var w=this;this.__dataLinkedPaths={};if(this.multi){var V=0;this.__selectedMap.forEach(function(H){H>=0&&w.linkPaths("items."+H,"selected."+V++)})}else this.__selectedMap.forEach(function(H){w.linkPaths("selected","items."+H);
w.linkPaths("selectedItem","items."+H)})};
Y.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
Y.prototype.isSelected=function(w){return this.__selectedMap.has(w)};
Y.prototype.isIndexSelected=function(w){return this.isSelected(this.items[w])};
Y.prototype.__deselectChangedIdx=function(w){var V=this,H=this.__selectedIndexForItemIndex(w);if(H>=0){var f=0;this.__selectedMap.forEach(function(E,U){H==f++&&V.deselect(U)})}};
Y.prototype.__selectedIndexForItemIndex=function(w){if(w=this.__dataLinkedPaths["items."+w])return parseInt(w.slice(9),10)};
Y.prototype.deselect=function(w){var V=this.__selectedMap.get(w);if(V>=0){this.__selectedMap.delete(w);var H;this.multi&&(H=this.__selectedIndexForItemIndex(V));this.__updateLinks();this.multi?this.splice("selected",H,1):this.selected=this.selectedItem=null}};
Y.prototype.deselectIndex=function(w){this.deselect(this.items[w])};
Y.prototype.select=function(w){this.selectIndex(this.items.indexOf(w))};
Y.prototype.selectIndex=function(w){var V=this.items[w];this.isSelected(V)?this.toggle&&this.deselectIndex(w):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(V,w),this.__updateLinks(),this.multi?this.push("selected",V):this.selected=this.selectedItem=V)};
_.up.Object.defineProperties(Y,{properties:{configurable:!0,enumerable:!0,get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},
observers:{configurable:!0,enumerable:!0,get:function(){return["__updateSelection(multi, items.*)"]}}});
return Y}),m49=D4_(Hq),gA=function(){return m49.apply(this,arguments)||this};
_.P(gA,m49);_.up.Object.defineProperties(gA,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(gA.is,gA);var oLk=window.Polymer;window.Polymer=function(Y){return window.Polymer._polymerFn(Y)};
oLk&&Object.assign(Polymer,oLk);Polymer._polymerFn=function(){throw Error("Hd");};/*

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:M9K,resolveUrl:_.EZ,pathFromUrl:eEr};Polymer.DomModule=Zk;Polymer.Async={timeOut:_.ux,animationFrame:_.pA,idlePeriod:WHI,microTask:Fy};Polymer.dedupingMixin=Y8;Polymer.wrap=_.qc;Polymer.PropertiesChanged=iS_;Polymer.telemetry={instanceCount:AQ_,incrementInstanceCount:function(){AQ_++},
registrations:REe,register:dRv,dumpRegistrations:function(){REe.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Cp8;Polymer.CaseMap={dashToCamelCase:UZ,camelToDashCase:Xy};Polymer.PropertyAccessors=JQ5;Polymer.TemplateStamp=VS$;Polymer.Path={isPath:Dk,root:mH,isAncestor:zEK,isDescendant:od,translate:Id,matches:WBv,normalize:kD,split:KBq,get:lp,set:i_K,isDeep:Dk};Polymer.Settings={useShadow:ad,useNativeCSSProperties:ZSj,useNativeCustomElements:BS5,get rootPath(){return OSt},setRootPath:function(Y){OSt=Y},
get sanitizeDOMValue(){return sZ},setSanitizeDOMValue:function(Y){sZ=Y},
get passiveTouchGestures(){return aEM},setPassiveTouchGestures:function(Y){aEM=Y},
get strictTemplatePolicy(){return KS},setStrictTemplatePolicy:function(Y){KS=Y},
get allowTemplateFromDomModule(){return tM$},setAllowTemplateFromDomModule:function(Y){tM$=Y},
get legacyOptimizations(){return SM},setLegacyOptimizations:function(Y){SM=Y},
get syncInitialRender(){return Rmr},setSyncInitialRender:function(Y){Rmr=Y},
get legacyUndefined(){return v6},setLegacyUndefined:function(Y){v6=Y},
get legacyWarnings(){return W6},setLegacyWarnings:function(Y){W6=Y},
get orderedComputed(){return dco},setOrderedComputed:function(Y){dco=Y},
get fastDomIf(){return GS},setFastDomIf:function(Y){GS=Y},
get removeNestedTemplates(){return jf},setRemoveNestedTemplates:function(Y){jf=Y},
get suppressTemplateNotifications(){return TS},setSuppressTemplateNotifications:TS};Polymer.rootPath!==void 0&&(OSt=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(sZ=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(aEM=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(KS=Polymer.strictTemplatePolicy);tM$=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(SM=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Rmr=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(v6=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(W6=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(dco=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(GS=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(jf=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(TS=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return sZ},
set:function(Y){sZ=Y}});Polymer.PropertyEffects=wA;Polymer.StyleGather={stylesFromModules:ohK,stylesFromModule:mo6,stylesFromTemplate:IEq,stylesFromModuleImports:kIa,cssFromModules:hoK,cssFromModule:lEK,cssFromTemplate:xoG,cssFromModuleImports:function(Y){return(Y=Zk.import(Y))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(Y):""}};Polymer.ElementMixin=VI;Polymer.updateStyles=function(Y){window.ShadyCSS&&window.ShadyCSS.styleDocument(Y)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Q1M};Polymer.html=_.X1Q;Polymer.htmlLiteral=function(Y){return new vhK(Y,_.BN.apply(1,arguments))};Polymer.Element=Hq;Polymer.ArraySelectorMixin=D4_;Polymer.ArraySelector=gA;var ImQ=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,kG$=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,gia=/@media\s(.*)/;var eot=null,MPM=window.HTMLImports&&window.HTMLImports.whenReady||null,pvr;var lmK=null,fy=null,Nw=function(){this.customStyles=[];this.enqueued=!1;Ose(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},hgI=function(Y){!Y.enqueued&&fy&&(Y.enqueued=!0,Ose(fy))};
Nw.prototype.addCustomStyle=function(Y){Y.__seenByShadyCSS||(Y.__seenByShadyCSS=!0,this.customStyles.push(Y),hgI(this))};
Nw.prototype.getStyleForCustomStyle=function(Y){if(Y.__shadyCSSCachedStyle)return Y.__shadyCSSCachedStyle;var b;Y.getStyle?b=Y.getStyle():b=Y;return b};
Nw.prototype.processStyles=function(){for(var Y=this.customStyles,b=0;b<Y.length;b++){var w=Y[b];if(!w.__shadyCSSCachedStyle){var V=this.getStyleForCustomStyle(w);V&&(V=V.__appliedElement||V,lmK&&lmK(V),w.__shadyCSSCachedStyle=V)}}return Y};
Nw.prototype.addCustomStyle=Nw.prototype.addCustomStyle;Nw.prototype.getStyleForCustomStyle=Nw.prototype.getStyleForCustomStyle;Nw.prototype.processStyles=Nw.prototype.processStyles;Object.defineProperties(Nw.prototype,{transformCallback:{get:function(){return lmK},
set:function(Y){lmK=Y}},
validateCallback:{get:function(){return fy},
set:function(Y){var b=!1;fy||(b=!0);fy=Y;b&&hgI(this)}}});var RoG=!(window.ShadyDOM&&window.ShadyDOM.inUse),tPL,JQ;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(JQ=window.ShadyCSS.cssBuild);var x4r=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?tPL=window.ShadyCSS.nativeCss:window.ShadyCSS?(doK(window.ShadyCSS),window.ShadyCSS=void 0):doK(window.WebComponents&&window.WebComponents.flags);var wKv=tPL;var qDI=new Nw;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(Y,b){qDI.processStyles();BK6(Y,b)},
styleElement:function(){qDI.processStyles()},
styleDocument:function(Y){qDI.processStyles();BK6(document.body,Y)},
getComputedStyleValue:function(Y,b){return nhL(Y,b)},
flushCustomStyles:function(){},
nativeCss:wKv,nativeShadow:RoG,cssBuild:JQ,disableRuntime:x4r});window.ShadyCSS.CustomStyleInterface=qDI;var s3o=window.ShadyCSS.CustomStyleInterface,EG=function(){var Y=HTMLElement.call(this)||this;Y._style=null;s3o.addCustomStyle(Y);return Y};
_.P(EG,HTMLElement);EG.prototype.getStyle=function(){if(this._style)return this._style;var Y=this.querySelector("style");if(!Y)return null;this._style=Y;var b=Y.getAttribute("include");b&&(Y.removeAttribute("include"),Y.textContent=hoK(b)+Y.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
EG.prototype.getStyle=EG.prototype.getStyle;window.customElements.define("custom-style",EG);Polymer.CustomStyle=EG;var cq=function(){this._timer=this._callback=this._asyncModule=null},UG,vLI;
cq.prototype.setConfig=function(Y,b){var w=this;this._asyncModule=Y;this._callback=b;this._timer=this._asyncModule.run(function(){w._timer=null;UG.delete(w);w._callback()})};
cq.prototype.cancel=function(){this.isActive()&&(Q35(this),UG.delete(this))};
var Q35=function(Y){Y.isActive()&&(Y._asyncModule.cancel(Y._timer),Y._timer=null)};
cq.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
cq.prototype.isActive=function(){return this._timer!=null};
_.DW=function(Y,b,w){Y instanceof cq?Q35(Y):Y=new cq;Y.setConfig(b,w);return Y};
UG=new Set;_.mk=function(Y){UG.add(Y)};
vLI=function(){var Y=!!UG.size;UG.forEach(function(b){try{b.flush()}catch(w){setTimeout(function(){throw w;})}});
return Y};var LZK=typeof document.head.style.touchAction==="string",FZt=["mousedown","mousemove","mouseup","click"],CXu=[0,1,4,2],Po$;try{Po$=(new MouseEvent("test",{buttons:1})).buttons===1}catch(Y){Po$=!1}var AdL=Po$,SHr=!1;(function(){try{var Y=Object.defineProperty({},"passive",{get:function(){SHr=!0}});
window.addEventListener("test",null,Y);window.removeEventListener("test",null,Y)}catch(b){}})();
var zoL=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),WZq=[],ZMr={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},HxB={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},KZM=function(Y){var b=Y.sourceCapabilities;if(!b||b.firesTouchEvents)if(Y.__polymerGesturesHandled={skip:!0},Y.type==="click"){b=!1;for(var w=GI6(Y),V=0;V<w.length;V++){if(w[V].nodeType===Node.ELEMENT_NODE)if(w[V].localName==="label")WZq.push(w[V]);
else if(ZMr[w[V].localName]){var H=w[V];var f=Array.prototype.slice.call(H.labels||[]);if(!f.length){f=[];try{var E=H.getRootNode();if(H.id){var U=E.querySelectorAll("label[for = '"+H.id+"']");for(H=0;H<U.length;H++)f.push(U[H])}}catch(X){}}for(H=0;H<f.length;H++)b=b||WZq.indexOf(f[H])>-1}if(w[V]===BOU)return}b||(Y.preventDefault(),Y.stopPropagation())}},BOU=null,oO=null,JdK=0,uzI=0,TKM=-1,Y1L=!1;
document.addEventListener("touchend",function(Y){oO||isg(!0);BOU=GI6(Y)[0];oO=_.DW(oO,_.ux.after(2500),function(){isg();oO=BOU=null})},SHr?{passive:!0}:!1);
var GI6=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(Y){return Y.composedPath&&Y.composedPath()||[]},OZ={},eM=[];
bxG({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Mc(this.info)},
mousedown:function(Y){if(nS(Y)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),w=this;$oa(this.info,function(V){nS(V)||(LS("up",b,V),Mc(w.info))},function(V){nS(V)&&LS("up",b,V);
Mc(w.info)});
LS("down",b,Y)}},
touchstart:function(Y){LS("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),Y.changedTouches[0],Y)},
touchend:function(Y){LS("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),Y.changedTouches[0],Y)}});
bxG({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(Y){this.moves.length>2&&this.moves.shift();this.moves.push(Y)},
movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start";this.info.started=!1;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=!1;Mc(this.info)},
mousedown:function(Y){if(nS(Y)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y),w=this,V=function(H){var f=H.clientX,E=H.clientY;wTI(w.info,f,E)&&(w.info.state=w.info.started?H.type==="mouseup"?"end":"track":"start",w.info.state==="start"&&pS("tap"),w.info.addMove({x:f,y:E}),nS(H)||(w.info.state="end",Mc(w.info)),b&&VVu(w.info,b,H),w.info.started=!0)};
$oa(this.info,V,function(H){w.info.started&&V(H);Mc(w.info)});
this.info.x=Y.clientX;this.info.y=Y.clientY}},
touchstart:function(Y){Y=Y.changedTouches[0];this.info.x=Y.clientX;this.info.y=Y.clientY},
touchmove:function(Y){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y=Y.changedTouches[0];var w=Y.clientX,V=Y.clientY;wTI(this.info,w,V)&&(this.info.state==="start"&&pS("tap"),this.info.addMove({x:w,y:V}),VVu(this.info,b,Y),this.info.state="track",this.info.started=!0)},
touchend:function(Y){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y);Y=Y.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:Y.clientX,y:Y.clientY}),VVu(this.info,b,Y))}});
bxG({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=!1},
mousedown:function(Y){nS(Y)&&(this.info.x=Y.clientX,this.info.y=Y.clientY)},
click:function(Y){nS(Y)&&gEM(this.info,Y)},
touchstart:function(Y){Y=Y.changedTouches[0];this.info.x=Y.clientX;this.info.y=Y.clientY},
touchend:function(Y){gEM(this.info,Y.changedTouches[0],Y)}});var nL_=Y8(function(Y){var b=function(){return Y.apply(this,arguments)||this};
_.P(b,Y);b.prototype._addEventListenerToNode=function(w,V,H){tQ(w,V,H)||Y.prototype._addEventListenerToNode.call(this,w,V,H)};
b.prototype._removeEventListenerFromNode=function(w,V,H){Rd(w,V,H)||Y.prototype._removeEventListenerFromNode.call(this,w,V,H)};
return b});var IO=Y8(function(Y){var b=function(){return Y.apply(this,arguments)||this};
_.P(b,Y);b.prototype._shouldPropertyChange=function(w,V,H){return fHK(this,w,V,H,!0)};
return b}),MS8=Y8(function(Y){var b=function(){return Y.apply(this,arguments)||this};
_.P(b,Y);b.prototype._shouldPropertyChange=function(w,V,H){return fHK(this,w,V,H,this.mutableData)};
_.up.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return b});
IO._mutablePropertyChange=fHK;var Nvt=!1;var eg5=nL_(MS8(wA(HTMLElement))),k8=function(){var Y=eg5.call(this)||this;if(KS)throw Error("Id");Y.root=null;Y.$=null;Y.__children=null;return Y};
_.P(k8,eg5);_.g=k8.prototype;_.g.attributeChangedCallback=function(){this.mutableData=!0};
_.g.connectedCallback=function(){EEg()||(this.style.display="none");this.render()};
_.g.disconnectedCallback=function(){this.__removeChildren()};
_.g.__insertChildren=function(){(0,_.qc)((0,_.qc)(this).parentNode).insertBefore(this.root,this)};
_.g.__removeChildren=function(){if(this.__children)for(var Y=0;Y<this.__children.length;Y++)this.root.appendChild(this.__children[Y])};
_.g.render=function(){var Y=this;if(!this.__children){var b=b||this.querySelector("template");if(!b){var w=new MutationObserver(function(){if(b=Y.querySelector("template"))w.disconnect(),Y.render();else throw Error("Jd");});
w.observe(this,{childList:!0});return}this.root=this._stampTemplate(b);this.$=this.root.$;this.__children=[];for(var V=this.root.firstChild;V;V=V.nextSibling)this.__children[this.__children.length]=V;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.up.Object.defineProperties(k8,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",k8);Polymer.Debouncer=cq;Polymer.Gestures={gestures:OZ,recognizers:eM,deepTargetFind:j1e,addListener:tQ,removeListener:Rd,register:bxG,setTouchAction:_.dS,prevent:pS,resetMouseCanceller:function(){oO&&oO.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:tQ,remove:Rd};Polymer.GestureEventListeners=nL_;Polymer.MutableData=IO;Polymer.OptionalMutableData=MS8;Polymer.DomBind=k8;_.l6=function(){do{var Y=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var b=vLI()}while(Y||b)};var c9q=null;UyK.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:UyK,writable:!0}});var hXM=wA(UyK),lHu=IO(hXM),p1Q=wA(function(){}),rS=function(Y){var b=p1Q.call(this)||this;
b._configureProperties(Y);b.root=b._stampTemplate(b.__dataHost);var w=[];b.children=w;for(var V=b.root.firstChild;V;V=V.nextSibling)w.push(V),V.__templatizeInstance=b;b.__templatizeOwner&&b.__templatizeOwner.__hideTemplateChildren__&&b._showHideChildren(!0);w=b.__templatizeOptions;(Y&&w.instanceProps||!w.instanceProps)&&b._enableProperties();return b};
_.P(rS,p1Q);_.g=rS.prototype;_.g._configureProperties=function(Y){if(this.__templatizeOptions.forwardHostProp)for(var b in this.__hostProps)this._setPendingProperty(b,this.__dataHost["_host_"+b]);for(var w in Y)this._setPendingProperty(w,Y[w])};
_.g.forwardHostProp=function(Y,b){this._setPendingPropertyOrPath(Y,b,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.g._addEventListenerToNode=function(Y,b,w){var V=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(Y,b,function(f){f.model=V;w(f)});
else{var H=this.__dataHost.__dataHost;H&&H._addEventListenerToNode(Y,b,w)}};
_.g._showHideChildren=function(Y){Dye(Y,this.children)};
_.g._setUnmanagedPropertyToNode=function(Y,b,w){Y.__hideTemplateChildren__&&Y.nodeType==Node.TEXT_NODE&&b=="textContent"?Y.__polymerTextContent__=w:p1Q.prototype._setUnmanagedPropertyToNode.call(this,Y,b,w)};
_.g.dispatchEvent=function(){return!0};
_.up.Object.defineProperties(rS.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var Y=this.__parentModel;if(!Y){var b;Y=this;do Y=Y.__dataHost.__dataHost;while((b=Y.__templatizeOptions)&&!b.parentModel);this.__parentModel=Y}return Y}}});
var oEe=IO(rS);var ho=function(){var Y=Hq.call(this)||this;Y.__renderDebouncer=null;Y._lastIf=!1;Y.__hideTemplateChildren__=!1;return Y};
_.P(ho,Hq);_.g=ho.prototype;_.g.__debounceRender=function(){var Y=this;this.__renderDebouncer=_.DW(this.__renderDebouncer,Fy,function(){return Y.__render()});
_.mk(this.__renderDebouncer)};
_.g.disconnectedCallback=function(){Hq.prototype.disconnectedCallback.call(this);var Y=(0,_.qc)(this).parentNode;Y&&(Y.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.qc)(Y).host)||this.__teardownInstance()};
_.g.connectedCallback=function(){Hq.prototype.connectedCallback.call(this);EEg()||(this.style.display="none");this.if&&this.__debounceRender()};
_.g.__ensureTemplate=function(){var Y=this;if(!this.__template){var b=this._templateInfo?this:(0,_.qc)(this).querySelector("template");if(!b){var w=new MutationObserver(function(){if((0,_.qc)(Y).querySelector("template"))w.disconnect(),Y.__render();else throw Error("Md");});
w.observe(this,{childList:!0});return!1}this.__template=b}return!0};
_.g.__ensureInstance=function(){var Y=(0,_.qc)(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&(0,_.qc)(this).previousSibling!==b[b.length-1])for(var w=0,V=void 0;w<b.length&&(V=b[w]);w++)(0,_.qc)(Y).insertBefore(V,this)}else{if(!Y||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(Y)}return!0};
_.g.render=function(){_.l6()};
_.g.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();TS&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.g.__hasInstance=function(){};
_.g.__getInstanceNodes=function(){};
_.g.__createAndInsertInstance=function(){};
_.g.__teardownInstance=function(){};
_.g._showHideChildren=function(){};
_.up.Object.defineProperties(ho,{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:ho.prototype.__debounceRender},restamp:{type:Boolean,observer:ho.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var OMr=function(){var Y=ho.call(this)||this;Y.__instance=null;Y.__syncInfo=null;return Y};
_.P(OMr,ho);_.g=OMr.prototype;_.g.__hasInstance=function(){return!!this.__instance};
_.g.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.g.__createAndInsertInstance=function(Y){var b=this,w=this.__dataHost||this;if(KS&&!this.__dataHost)throw Error("Kd");var V=w._bindTemplate(this.__template,!0);V.runEffects=function(H,f,E){var U=b.__syncInfo;if(b.if)U&&(b.__syncInfo=null,b._showHideChildren(),f=Object.assign(U.changedProps,f)),H(f,E);else if(b.__instance)if(U||(U=b.__syncInfo={runEffects:H,changedProps:{}}),E)for(var X in f)H=mH(X),U.changedProps[H]=b.__dataHost[H];else Object.assign(U.changedProps,f)};
this.__instance=w._stampTemplate(this.__template,V);(0,_.qc)(Y).insertBefore(this.__instance,this)};
_.g.__syncHostProperties=function(){var Y=this.__syncInfo;Y&&(this.__syncInfo=null,Y.runEffects(Y.changedProps,!1))};
_.g.__teardownInstance=function(){var Y=this.__dataHost||this;this.__instance&&(Y._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.g._showHideChildren=function(){var Y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==Y&&(this.__instance.__hidden=Y,Dye(Y,this.__instance.templateInfo.childNodes));Y||this.__syncHostProperties()};
var tSd=function(){var Y=ho.call(this)||this;Y.__ctor=null;Y.__instance=null;Y.__invalidProps=null;return Y};
_.P(tSd,ho);_.g=tSd.prototype;_.g.__hasInstance=function(){return!!this.__instance};
_.g.__getInstanceNodes=function(){return this.__instance.children};
_.g.__createAndInsertInstance=function(Y){this.__ctor||(this.__ctor=zC(this.__template,this,{mutableData:!0,forwardHostProp:function(b,w){this.__instance&&(this.if?this.__instance.forwardHostProp(b,w):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[mH(b)]=!0))}}));
this.__instance=new this.__ctor;(0,_.qc)(Y).insertBefore(this.__instance.root,this)};
_.g.__teardownInstance=function(){if(this.__instance){var Y=this.__instance.children;if(Y&&Y.length){var b=(0,_.qc)(Y[0]).parentNode;if(b){b=(0,_.qc)(b);for(var w=0,V=void 0;w<Y.length&&(V=Y[w]);w++)b.removeChild(V)}}this.__instance=this.__invalidProps=null}};
_.g.__syncHostProperties=function(){var Y=this.__invalidProps;if(Y){this.__invalidProps=null;for(var b in Y)this.__instance._setPendingProperty(b,this.__dataHost[b]);this.__instance._flushProperties()}};
_.g._showHideChildren=function(){var Y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==Y&&(this.__instance.__hidden=Y,this.__instance._showHideChildren(Y));Y||this.__syncHostProperties()};
_.tU=GS?OMr:tSd;customElements.define(_.tU.is,_.tU);Polymer.enqueueDebouncer=_.mk;Polymer.flush=_.l6;Polymer.Templatize={templatize:zC,modelForElement:PJq};Polymer.TemplateInstanceBase=rS;Polymer.DomIf=_.tU;var RgK=MS8(Hq),O6=function(){var Y=RgK.call(this)||this;Y.__instances=[];Y.__renderDebouncer=null;Y.__itemsIdxToInstIdx={};Y.__chunkCount=null;Y.__renderStartTime=null;Y.__itemsArrayChanged=!1;Y.__shouldMeasureChunk=!1;Y.__shouldContinueChunking=!1;Y.__chunkingId=0;Y.__sortFn=null;Y.__filterFn=null;Y.__observePaths=null;Y.__ctor=null;Y.__isDetached=!0;Y.template=null;return Y};
_.P(O6,RgK);_.g=O6.prototype;_.g.disconnectedCallback=function(){RgK.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var Y=0;Y<this.__instances.length;Y++)this.__detachInstance(Y);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.g.connectedCallback=function(){RgK.prototype.connectedCallback.call(this);EEg()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var Y=(0,_.qc)((0,_.qc)(this).parentNode),b=0;b<this.__instances.length;b++)this.__attachInstance(b,Y);this.__chunkingId&&this.__render()}};
_.g.__ensureTemplatized=function(){var Y=this;if(!this.__ctor){var b=this.template=this._templateInfo?this:this.querySelector("template");if(!b){var w=new MutationObserver(function(){if(Y.querySelector("template"))w.disconnect(),Y.__render();else throw Error("Nd");});
w.observe(this,{childList:!0});return!1}var V={};V[this.as]=!0;V[this.indexAs]=!0;V[this.itemsIndexAs]=!0;this.__ctor=zC(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:V,forwardHostProp:function(H,f){for(var E=this.__instances,U=0,X=void 0;U<E.length&&(X=E[U]);U++)X.forwardHostProp(H,f)},
notifyInstanceProp:function(H,f,E){WBv(this.as,f)&&(H=H[this.itemsIndexAs],f==this.as&&(this.items[H]=E),f=Id(this.as,"items."+H,f),this.notifyPath(f,E))}})}return!0};
_.g.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.g.__functionFromPropertyValue=function(Y){if(typeof Y==="string"){var b=this.__getMethodHost();return function(){return b[Y].apply(b,arguments)}}return Y};
_.g.__sortChanged=function(Y){this.__sortFn=this.__functionFromPropertyValue(Y);this.items&&this.__debounceRender(this.__render)};
_.g.__filterChanged=function(Y){this.__filterFn=this.__functionFromPropertyValue(Y);this.items&&this.__debounceRender(this.__render)};
_.g.__computeFrameTime=function(Y){return Math.ceil(1E3/Y)};
_.g.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.g.__handleObservedPaths=function(Y){if(this.__sortFn||this.__filterFn)if(!Y)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var b=this.__observePaths,w=0;w<b.length;w++)Y.indexOf(b[w])===0&&this.__debounceRender(this.__render,this.delay)};
_.g.__itemsChanged=function(Y){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(Y.path,Y.value)||(Y.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.g.__debounceRender=function(Y,b){b=b===void 0?0:b;this.__renderDebouncer=_.DW(this.__renderDebouncer,b>0?_.ux.after(b):Fy,Y.bind(this));_.mk(this.__renderDebouncer)};
_.g.render=function(){this.__debounceRender(this.__render);_.l6()};
_.g.__render=function(){var Y=this;if(this.__ensureTemplatized()){var b=this.items||[],w=this.__sortAndFilterItems(b),V=this.__calculateLimit(w.length);this.__updateInstances(b,V,w);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){Y.__chunkingId=null;Y.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);TS&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.g.__sortAndFilterItems=function(Y){for(var b=this,w=Array(Y.length),V=0;V<Y.length;V++)w[V]=V;this.__filterFn&&(w=w.filter(function(H,f,E){return b.__filterFn(Y[H],f,E)}));
this.__sortFn&&w.sort(function(H,f){return b.__sortFn(Y[H],Y[f])});
return w};
_.g.__calculateLimit=function(Y){var b=Y,w=this.__instances.length;if(this.initialCount){var V;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(b=Math.min(Y,this.initialCount),this.__chunkCount=(V=Math.max(b-w,0))||1):(V=Math.min(Math.max(Y-w,0),this.__chunkCount),b=Math.min(w+V,Y));this.__shouldMeasureChunk=V===this.__chunkCount;this.__shouldContinueChunking=b<Y;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return b};
_.g.__continueChunking=function(){if(this.__shouldMeasureChunk){var Y=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/Y*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.g.__updateInstances=function(Y,b,w){var V=this.__itemsIdxToInstIdx={},H;for(H=0;H<b;H++){var f=this.__instances[H],E=w[H],U=Y[E];V[E]=H;f?(f._setPendingProperty(this.as,U),f._setPendingProperty(this.indexAs,H),f._setPendingProperty(this.itemsIndexAs,E),f._flushProperties()):this.__insertInstance(U,H,E)}for(Y=this.__instances.length-1;Y>=H;Y--)this.__detachAndRemoveInstance(Y)};
_.g.__detachInstance=function(Y){Y=this.__instances[Y];for(var b=(0,_.qc)(Y.root),w=0;w<Y.children.length;w++)b.appendChild(Y.children[w]);return Y};
_.g.__attachInstance=function(Y,b){b.insertBefore(this.__instances[Y].root,this)};
_.g.__detachAndRemoveInstance=function(Y){this.__detachInstance(Y);this.__instances.splice(Y,1)};
_.g.__stampInstance=function(Y,b,w){var V={};V[this.as]=Y;V[this.indexAs]=b;V[this.itemsIndexAs]=w;return new this.__ctor(V)};
_.g.__insertInstance=function(Y,b,w){Y=this.__stampInstance(Y,b,w);w=(w=this.__instances[b+1])?w.children[0]:this;(0,_.qc)((0,_.qc)(this).parentNode).insertBefore(Y.root,w);return this.__instances[b]=Y};
_.g._showHideChildren=function(Y){for(var b=0;b<this.__instances.length;b++)this.__instances[b]._showHideChildren(Y)};
_.g.__handleItemPath=function(Y,b){var w=Y.slice(6),V=w.indexOf(".");Y=V<0?w:w.substring(0,V);if(Y==parseInt(Y,10)){w=V<0?"":w.substring(V+1);this.__handleObservedPaths(w);if(Y=this.__instances[this.__itemsIdxToInstIdx[Y]])Y._setPendingPropertyOrPath(this.as+(w?"."+w:""),b,!1,!0),Y._flushProperties();return!0}};
_.g.itemForElement=function(Y){return(Y=this.modelForElement(Y))&&Y[this.as]};
_.g.indexForElement=function(Y){return(Y=this.modelForElement(Y))&&Y[this.indexAs]};
_.g.modelForElement=function(Y){return PJq(this.template,Y)};
_.up.Object.defineProperties(O6,{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:O6.prototype.__sortChanged},filter:{type:Function,observer:O6.prototype.__filterChanged},observe:{type:String,observer:O6.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!TS,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.*)"]}}});
O6.prototype._setRenderedItemCount=function(){};
customElements.define(O6.is,O6);Polymer.DomRepeat=O6;var d4$=function(Y,b){var w=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=Y;this.callback=b;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){w._schedule()};
this.connect();this._schedule()},FKk=function(Y){var b=(0,_.qc)(Y);
if(ip(Y))return b.assignedNodes({flatten:!0});Y=[];for(var w=0;w<b.childNodes.length;w++){var V=b.childNodes[w];ip(V)?Y.push.apply(Y,_.Bt((0,_.qc)(V).assignedNodes({flatten:!0}))):Y.push(V)}return Y};
_.g=d4$.prototype;_.g.connect=function(){var Y=this;ip(this._target)?this._listenSlots([this._target]):(0,_.qc)(this._target).children&&(this._listenSlots((0,_.qc)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(b){Y._processMutations(b)}):(this._nativeChildrenObserver=new MutationObserver(function(b){Y._processMutations(b)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.g.disconnect=function(){ip(this._target)?this._unlistenSlots([this._target]):(0,_.qc)(this._target).children&&(this._unlistenSlots((0,_.qc)(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};
_.g._schedule=function(){var Y=this;this._scheduled||(this._scheduled=!0,Fy.run(function(){return Y.flush()}))};
_.g._processMutations=function(Y){this._processSlotMutations(Y);this.flush()};
_.g._processSlotMutations=function(Y){if(Y)for(var b=0;b<Y.length;b++){var w=Y[b];w.addedNodes&&this._listenSlots(w.addedNodes);w.removedNodes&&this._unlistenSlots(w.removedNodes)}};
_.g.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var Y={target:this._target,addedNodes:[],removedNodes:[]},b=FKk(this._target),w=Q1M(b,this._effectiveNodes),V=0,H=void 0;V<w.length&&(H=w[V]);V++)for(var f=0,E=void 0;f<H.removed.length&&(E=H.removed[f]);f++)Y.removedNodes.push(E);
V=0;for(H=void 0;V<w.length&&(H=w[V]);V++)for(f=H.index;f<H.index+H.addedCount;f++)Y.addedNodes.push(b[f]);this._effectiveNodes=b;b=!1;if(Y.addedNodes.length||Y.removedNodes.length)b=!0,this.callback.call(this._target,Y);return b};
_.g._listenSlots=function(Y){for(var b=0;b<Y.length;b++){var w=Y[b];ip(w)&&w.addEventListener("slotchange",this._boundSchedule)}};
_.g._unlistenSlots=function(Y){for(var b=0;b<Y.length;b++){var w=Y[b];ip(w)&&w.removeEventListener("slotchange",this._boundSchedule)}};var x8=Element.prototype,LKK=x8.matches||x8.matchesSelector||x8.mozMatchesSelector||x8.msMatchesSelector||x8.oMatchesSelector||x8.webkitMatchesSelector,SDI=function(Y,b){return LKK.call(Y,b)},AQ=function(Y){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(Y);
this.node=Y},WKt;
_.g=AQ.prototype;_.g.observeNodes=function(Y){return new d4$(this.node,Y)};
_.g.unobserveNodes=function(Y){Y.disconnect()};
_.g.notifyObserver=function(){};
_.g.deepContains=function(Y){if((0,_.qc)(this.node).contains(Y))return!0;var b=Y;for(Y=Y.ownerDocument;b&&b!==Y&&b!==this.node;)b=(0,_.qc)(b).parentNode||(0,_.qc)(b).host;return b===this.node};
_.g.getOwnerRoot=function(){return(0,_.qc)(this.node).getRootNode()};
_.g.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.qc)(this.node).assignedNodes({flatten:!0}):[]};
_.g.getDestinationInsertionPoints=function(){for(var Y=[],b=(0,_.qc)(this.node).assignedSlot;b;)Y.push(b),b=(0,_.qc)(b).assignedSlot;return Y};
_.g.importNode=function(Y,b){return(0,_.qc)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(Y,b)};
_.g.getEffectiveChildNodes=function(){return FKk(this.node)};
_.g.queryDistributedElements=function(Y){for(var b=this.getEffectiveChildNodes(),w=[],V=0,H=b.length,f=void 0;V<H&&(f=b[V]);V++)f.nodeType===Node.ELEMENT_NODE&&SDI(f,Y)&&w.push(f);return w};
_.up.Object.defineProperties(AQ.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var Y=this.node;return Y._activeElement!==void 0?Y._activeElement:Y.activeElement}}});
var qw=function(Y){this.event=Y};
_.up.Object.defineProperties(qw.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 amU=AQ;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var rwk=window.ShadyDOM.Wrapper,zgd=function(){return rwk.apply(this,arguments)||this};
_.P(zgd,rwk);Object.getOwnPropertyNames(AQ.prototype).forEach(function(Y){Y!="activeElement"&&Y!="constructor"&&(zgd.prototype[Y]=AQ.prototype[Y])});
Bva(zgd.prototype,["classList"]);amU=zgd;Object.defineProperties(qw.prototype,{localTarget:{get:function(){var Y=this.event.currentTarget;Y=Y&&_.B1(Y).getOwnerRoot();for(var b=this.path,w=0;w<b.length;w++){var V=b[w];if(_.B1(V).getOwnerRoot()===Y)return V}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Zxv(),Bva(AQ.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),nEM();WKt=amU;_.B1=function(Y){Y=Y||document;if(Y instanceof amU)return Y;if(Y instanceof qw)return Y;var b=Y.__domApi;b||(Y instanceof Event?b=new qw(Y):b=new amU(Y),Y.__domApi=b);return b};var KKo=/:host\(:dir\((ltr|rtl)\)\)/g,iMC=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,AwK=/:dir\((?:ltr|rtl)\)/,Co_=!(!window.ShadyDOM||!window.ShadyDOM.inUse),$D=[],sG=null,yc="",ywI=Y8(function(Y){Co_||sG||(yc=document.documentElement.getAttribute("dir"),sG=new MutationObserver(MVu),sG.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var b=JQ5(Y);Y=function(){var w=b.call(this)||this;w.__autoDirOptOut=!1;return w};
_.P(Y,b);Y._processStyleText=function(w,V){w=b._processStyleText.call(this,w,V);!Co_&&AwK.test(w)&&(w=this._replaceDirInCssText(w),this.__activateDir=!0);return w};
Y._replaceDirInCssText=function(w){w=w.replace(KKo,':host([dir="$1"])');return w=w.replace(iMC,':host([dir="$2"]) $1')};
Y.prototype.ready=function(){b.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
Y.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(sG&&sG.takeRecords().length&&MVu(),$D.push(this),this.__autoDirOptOut||this.setAttribute("dir",yc))};
Y.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var w=$D.indexOf(this);w>-1&&$D.splice(w,1)}};
Y.__activateDir=!1;return Y});var $4Q=function(Y){for(;Y;){var b=Object.getOwnPropertyDescriptor(Y,"observedAttributes");if(b)return b.get;Y=Object.getPrototypeOf(Y.prototype).constructor}return function(){return[]}};
Y8(function(Y){var b=VI(Y),w=$4Q(b);Y=function(){return b.call(this)||this};
_.P(Y,b);Y.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:b.prototype._initializeProperties.call(this)};
Y.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
Y.prototype._canApplyPropertyDefault=function(V){return b.prototype._canApplyPropertyDefault.call(this,V)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(V))};
Y.prototype.attributeChangedCallback=function(V,H,f,E){V=="disable-upgrade"?this.__isUpgradeDisabled&&f==null&&(b.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.qc)(this).isConnected&&b.prototype.connectedCallback.call(this)):b.prototype.attributeChangedCallback.call(this,V,H,f,E)};
Y.prototype.connectedCallback=function(){this.__isUpgradeDisabled||b.prototype.connectedCallback.call(this)};
Y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||b.prototype.disconnectedCallback.call(this)};
_.up.Object.defineProperties(Y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return w.call(this).concat("disable-upgrade")}}});
return Y});var jM=!1,pTu=[],GC=[];var dyr=window.ShadyDOM,F2g=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",S1q):document.readyState==="interactive"||document.readyState==="complete"?S1q():window.addEventListener("DOMContentLoaded",S1q);var zXu=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=""},aHL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,r9G=/@import[^;]*;/gim,y9a=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,$yG=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,jnB=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,GLa=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,A9G=/^@[^\s]*keyframes/,
ixB=/\s+/g;var TvI={};var YdM=Promise.resolve();var j3U=new Set;var GGC=/;\s*/m,TOt=/^\s*(initial)|(inherit)\s*$/,JwQ=/\s*!important/,uAo=function(){this._map={}};
uAo.prototype.set=function(Y,b){Y=Y.trim();this._map[Y]={properties:b,dependants:{}}};
uAo.prototype.get=function(Y){Y=Y.trim();return this._map[Y]||null};
var YaK=null,QI=function(){this._measureElement=this._currentElement=null;this._map=new uAo};
_.g=QI.prototype;_.g.detectMixin=function(Y){Y=kG$.test(Y)||ImQ.test(Y);kG$.lastIndex=0;ImQ.lastIndex=0;return Y};
_.g.transformTemplate=function(Y,b){if(Y._gatheredStyle===void 0){var w=[];for(var V=Y.content.querySelectorAll("style"),H=0;H<V.length;H++){var f=V[H];if(f.hasAttribute("shady-unscoped")){if(!RoG){var E=f.textContent;if(!j3U.has(E)){j3U.add(E);var U=document.createElement("style");U.setAttribute("shady-unscoped","");U.textContent=E;document.head.appendChild(U)}f.parentNode.removeChild(f)}}else w.push(f.textContent),f.parentNode.removeChild(f)}(w=w.join("").trim())?(V=document.createElement("style"),
V.textContent=w,Y.content.insertBefore(V,Y.content.firstChild),w=V):w=null;Y._gatheredStyle=w}return(Y=Y._gatheredStyle)?this.JSC$9217_transformStyle(Y,b):null};
_.g.JSC$9217_transformStyle=function(Y,b){b=b===void 0?"":b;var w=Hk6(Y);this.transformRules(w,b);Y.textContent=VZe(w);return w};
_.g.transformCustomStyle=function(Y){var b=this,w=Hk6(Y);fz6(w,function(V){V.selector===":root"&&(V.selector="html");b.transformRule(V)});
Y.textContent=VZe(w);return w};
_.g.transformRules=function(Y,b){var w=this;this._currentElement=b;fz6(Y,function(V){w.transformRule(V)});
this._currentElement=null};
_.g.transformRule=function(Y){Y.cssText=bzo(this,Y.parsedCssText,Y);Y.selector===":root"&&(Y.selector=":host > *")};
var bzo=function(Y,b,w){b=b.replace(ImQ,function(V,H,f,E){return Y._produceCssProperties(V,H,f,E,w)});
return Y._consumeCssProperties(b,w)};
_.g=QI.prototype;_.g._getInitialValueForProperty=function(Y){this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement));return window.getComputedStyle(this._measureElement).getPropertyValue(Y)};
_.g._fallbacksFromPreviousRules=function(Y){for(var b=this,w=Y;w.parent;)w=w.parent;var V={},H=!1;fz6(w,function(f){(H=H||f===Y)||f.selector===Y.selector&&Object.assign(V,b._cssTextToMap(f.parsedCssText))});
return V};
_.g._consumeCssProperties=function(Y,b){for(var w;w=kG$.exec(Y);){var V=w[0],H=w[1];w=w.index;var f=w+V.indexOf("@apply"),E=w+V.length;V=Y.slice(0,f);Y=Y.slice(E);f=b?this._fallbacksFromPreviousRules(b):{};Object.assign(f,this._cssTextToMap(V));H=this._atApplyToCssProperties(H,f);Y=V+H+Y;kG$.lastIndex=w+H.length}return Y};
_.g._atApplyToCssProperties=function(Y,b){Y=Y.replace(GGC,"");var w=[],V=this._map.get(Y);V||(this._map.set(Y,{}),V=this._map.get(Y));if(V){this._currentElement&&(V.dependants[this._currentElement]=!0);var H,f=V.properties;for(H in f){var E=b&&b[H];V=[H,": var(",Y,"_-_",H];E&&V.push(",",E.replace(JwQ,""));V.push(")");JwQ.test(f[H])&&V.push(" !important");w.push(V.join(""))}}return w.join("; ")};
_.g._replaceInitialOrInherit=function(Y,b){var w=TOt.exec(b);w&&(b=w[1]?this._getInitialValueForProperty(Y):"apply-shim-inherit");return b};
_.g._cssTextToMap=function(Y,b){b=b===void 0?!1:b;Y=Y.split(";");for(var w,V,H={},f=0;f<Y.length;f++)if(w=Y[f])V=w.split(":"),V.length>1&&(w=V[0].trim(),V=V.slice(1).join(":"),b&&(V=this._replaceInitialOrInherit(w,V)),H[w]=V);return H};
_.g._invalidateMixinEntry=function(Y){if(YaK)for(var b in Y.dependants)b!==this._currentElement&&YaK(b)};
_.g._produceCssProperties=function(Y,b,w,V,H){var f=this;w&&Npv(w,function(Z,e){e&&f._map.get(e)&&(V="@apply "+e+";")});
if(!V)return Y;var E=this._consumeCssProperties(""+V,H);H=Y.slice(0,Y.indexOf("--"));var U=E=this._cssTextToMap(E,!0),X=this._map.get(b),I=X&&X.properties;I?U=Object.assign(Object.create(I),E):this._map.set(b,U);var k=[],l,x=!1;for(l in U){var Q=E[l];Q===void 0&&(Q="initial");!I||l in I||(x=!0);k.push(b+"_-_"+l+": "+Q)}x&&this._invalidateMixinEntry(X);X&&(X.properties=U);w&&(H=Y+";"+H);return H+k.join("; ")+";"};
QI.prototype.detectMixin=QI.prototype.detectMixin;QI.prototype.transformStyle=QI.prototype.JSC$9217_transformStyle;QI.prototype.transformCustomStyle=QI.prototype.transformCustomStyle;QI.prototype.transformRules=QI.prototype.transformRules;QI.prototype.transformRule=QI.prototype.transformRule;QI.prototype.transformTemplate=QI.prototype.transformTemplate;QI.prototype._separator="_-_";Object.defineProperty(QI.prototype,"invalidCallback",{get:function(){return YaK},
set:function(Y){YaK=Y}});var vq=new QI,w0j=function(){this.customStyleInterface=null;vq.invalidCallback=J9K},Pq=function(Y){!Y.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(Y.customStyleInterface=window.ShadyCSS.CustomStyleInterface,Y.customStyleInterface.transformCallback=function(b){vq.transformCustomStyle(b)},Y.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){Y.customStyleInterface.enqueued&&Y.flushCustomStyles()})})};
_.g=w0j.prototype;_.g.prepareTemplate=function(Y,b){Pq(this);Eig(Y)===""&&(TvI[b]=Y,b=vq.transformTemplate(Y,b),Y._styleAst=b)};
_.g.flushCustomStyles=function(){Pq(this);if(this.customStyleInterface){var Y=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var b=0;b<Y.length;b++){var w=this.customStyleInterface.getStyleForCustomStyle(Y[b]);w&&vq.transformCustomStyle(w)}this.customStyleInterface.enqueued=!1}}};
_.g.styleSubtree=function(Y,b){Pq(this);b&&BK6(Y,b);if(Y.shadowRoot)for(this.styleElement(Y),Y=Y.shadowRoot.children||Y.shadowRoot.childNodes,b=0;b<Y.length;b++)this.styleSubtree(Y[b]);else for(Y=Y.children||Y.childNodes,b=0;b<Y.length;b++)this.styleSubtree(Y[b])};
_.g.styleElement=function(Y){Pq(this);var b=Y.localName,w;b?b.indexOf("-")>-1?w=b:w=Y.getAttribute&&Y.getAttribute("is")||"":w=Y.is;b=TvI[w];if(!(b&&Eig(b)!==""||!b||uBe(b))){if(uBe(b)||b._applyShimValidatingVersion!==b._applyShimNextVersion)this.prepareTemplate(b,w),bke(b);if(Y=Y.shadowRoot)if(Y=Y.querySelector("style"))Y.__cssRules=b._styleAst,Y.textContent=VZe(b._styleAst)}};
_.g.styleDocument=function(Y){Pq(this);this.styleSubtree(document.body,Y)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var ZW=new w0j,V1K=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(Y,b){ZW.flushCustomStyles();ZW.prepareTemplate(Y,b)},
prepareTemplateStyles:function(Y,b,w){window.ShadyCSS.prepareTemplate(Y,b,w)},
prepareTemplateDom:function(){},
styleSubtree:function(Y,b){ZW.flushCustomStyles();ZW.styleSubtree(Y,b)},
styleElement:function(Y){ZW.flushCustomStyles();ZW.styleElement(Y)},
styleDocument:function(Y){ZW.flushCustomStyles();ZW.styleDocument(Y)},
getComputedStyleValue:function(Y,b){return nhL(Y,b)},
flushCustomStyles:function(){ZW.flushCustomStyles()},
nativeCss:wKv,nativeShadow:RoG,cssBuild:JQ,disableRuntime:x4r};V1K&&(window.ShadyCSS.CustomStyleInterface=V1K)}window.ShadyCSS.ApplyShim=vq;var Hz_;Hz_=window.ShadyCSS;_.Bq=Y8(function(Y){Y=nL_(VI(Y));var b=EL$?Y:ywI(Y),w=$4Q(b),V={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Y=function(){return b.call(this)||this};
_.P(Y,b);Y.prototype.created=function(){};
Y.prototype.__attributeReaction=function(H,f,E){(this.__dataAttributes&&this.__dataAttributes[H]||H==="disable-upgrade")&&this.attributeChangedCallback(H,f,E,null)};
Y.prototype.setAttribute=function(H,f){if(FHt&&!this._legacyForceObservedAttributes){var E=this.getAttribute(H);b.prototype.setAttribute.call(this,H,f);this.__attributeReaction(H,E,String(f))}else b.prototype.setAttribute.call(this,H,f)};
Y.prototype.removeAttribute=function(H){if(FHt&&!this._legacyForceObservedAttributes){var f=this.getAttribute(H);b.prototype.removeAttribute.call(this,H);this.__attributeReaction(H,f,null)}else b.prototype.removeAttribute.call(this,H)};
Y.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
Y.prototype._canApplyPropertyDefault=function(H){return b.prototype._canApplyPropertyDefault.call(this,H)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(H))};
Y.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(b.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
Y.prototype.attached=function(){};
Y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(b.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
Y.prototype.detached=function(){};
Y.prototype.attributeChangedCallback=function(H,f,E,U){f!==E&&(H=="disable-upgrade"?this.__isUpgradeDisabled&&E==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.qc)(this).isConnected&&this.connectedCallback()):(b.prototype.attributeChangedCallback.call(this,H,f,E,U),this.attributeChanged(H,f,E)))};
Y.prototype.attributeChanged=function(){};
Y.prototype._initializeProperties=function(){if(SM&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var H=Object.getPrototypeOf(this);H.hasOwnProperty("__hasRegisterFinished")||(this._registered(),H.__hasRegisterFinished=!0);b.prototype._initializeProperties.call(this);this.root=this;this.created();FHt&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
Y.prototype._takeAttributes=function(){for(var H=this.attributes,f=0,E=H.length;f<E;f++){var U=H[f];this.__attributeReaction(U.name,null,U.value)}};
Y.prototype._registered=function(){};
Y.prototype.ready=function(){this._ensureAttributes();b.prototype.ready.call(this)};
Y.prototype._ensureAttributes=function(){};
Y.prototype._applyListeners=function(){};
Y.prototype.serialize=function(H){return this._serializeValue(H)};
Y.prototype.deserialize=function(H,f){return this._deserializeValue(H,f)};
Y.prototype.reflectPropertyToAttribute=function(H,f,E){this._propertyToAttribute(H,f,E)};
Y.prototype.serializeValueToAttribute=function(H,f,E){this._valueToNodeAttribute(E||this,H,f)};
Y.prototype.extend=function(H,f){if(!H||!f)return H||f;for(var E=Object.getOwnPropertyNames(f),U=0,X=void 0;U<E.length&&(X=E[U]);U++){var I=Object.getOwnPropertyDescriptor(f,X);I&&Object.defineProperty(H,X,I)}return H};
Y.prototype.mixin=function(H,f){for(var E in f)H[E]=f[E];return H};
Y.prototype.chainObject=function(H,f){H&&f&&H!==f&&(H.__proto__=f);return H};
Y.prototype.instanceTemplate=function(H){H=this.constructor._contentForTemplate(H);return document.importNode(H,!0)};
Y.prototype.fire=function(H,f,E){E=E||{};f=f===null||f===void 0?{}:f;H=new Event(H,{bubbles:E.bubbles===void 0?!0:E.bubbles,cancelable:!!E.cancelable,composed:E.composed===void 0?!0:E.composed});H.detail=f;(0,_.qc)(E.node||this).dispatchEvent(H);return H};
Y.prototype.listen=function(H,f,E){H=H||this;var U=this.__boundListeners||(this.__boundListeners=new WeakMap),X=U.get(H);X||(X={},U.set(H,X));U=f+E;X[U]||(X[U]=this._addMethodEventListenerToNode(H,f,E,this))};
Y.prototype.unlisten=function(H,f,E){H=H||this;var U=this.__boundListeners&&this.__boundListeners.get(H);E=f+E;var X=U&&U[E];X&&(this._removeEventListenerFromNode(H,f,X),U[E]=null)};
Y.prototype.setScrollDirection=function(H,f){_.dS(f||this,V[H]||"auto")};
Y.prototype.$$=function(H){return this.root.querySelector(H)};
Y.prototype.distributeContent=function(){var H=_.B1(this);window.ShadyDOM&&H.shadowRoot&&ShadyDOM.flush()};
Y.prototype.getEffectiveChildNodes=function(){return _.B1(this).getEffectiveChildNodes()};
Y.prototype.queryDistributedElements=function(H){return _.B1(this).queryDistributedElements(H)};
Y.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
Y.prototype.getEffectiveTextContent=function(){for(var H=this.getEffectiveChildNodes(),f=[],E=0,U;U=H[E];E++)U.nodeType!==Node.COMMENT_NODE&&f.push(U.textContent);return f.join("")};
Y.prototype.queryEffectiveChildren=function(H){return(H=this.queryDistributedElements(H))&&H[0]};
Y.prototype.queryAllEffectiveChildren=function(H){return this.queryDistributedElements(H)};
Y.prototype.getContentChildNodes=function(H){return(H=this.root.querySelector(H||"slot"))?_.B1(H).getDistributedNodes():[]};
Y.prototype.getContentChildren=function(H){return this.getContentChildNodes(H).filter(function(f){return f.nodeType===Node.ELEMENT_NODE})};
Y.prototype.isLightDescendant=function(H){return this!==H&&(0,_.qc)(this).contains(H)&&(0,_.qc)(this).getRootNode()===(0,_.qc)(H).getRootNode()};
Y.prototype.isLocalDescendant=function(H){return this.root===(0,_.qc)(H).getRootNode()};
Y.prototype.scopeSubtree=function(H,f){return L2q(H,f===void 0?!1:f)};
Y.prototype.getComputedStyleValue=function(H){return Hz_.getComputedStyleValue(this,H)};
Y.prototype.debounce=function(H,f,E){this._debouncers=this._debouncers||{};return this._debouncers[H]=_.DW(this._debouncers[H],E>0?_.ux.after(E):Fy,f.bind(this))};
Y.prototype.isDebouncerActive=function(H){this._debouncers=this._debouncers||{};H=this._debouncers[H];return!(!H||!H.isActive())};
Y.prototype.flushDebouncer=function(H){this._debouncers=this._debouncers||{};(H=this._debouncers[H])&&H.flush()};
Y.prototype.cancelDebouncer=function(H){this._debouncers=this._debouncers||{};(H=this._debouncers[H])&&H.cancel()};
Y.prototype.async=function(H,f){return f>0?_.ux.run(H.bind(this),f):~Fy.run(H.bind(this))};
Y.prototype.cancelAsync=function(H){H<0?Fy.cancel(~H):_.ux.cancel(H)};
Y.prototype.create=function(H,f){H=document.createElement(H);if(f)if(H.setProperties)H.setProperties(f);else for(var E in f)H[E]=f[E];return H};
Y.prototype.elementMatches=function(H,f){return SDI(f||this,H)};
Y.prototype.toggleAttribute=function(H,f){var E=this;arguments.length===3&&(E=arguments[2]);arguments.length==1&&(f=!E.hasAttribute(H));if(f)return(0,_.qc)(E).setAttribute(H,""),!0;(0,_.qc)(E).removeAttribute(H);return!1};
Y.prototype.toggleClass=function(H,f,E){E=E||this;arguments.length==1&&(f=!E.classList.contains(H));f?E.classList.add(H):E.classList.remove(H)};
Y.prototype.transform=function(H,f){f=f||this;f.style.webkitTransform=H;f.style.transform=H};
Y.prototype.translate3d=function(H,f,E,U){this.transform("translate3d("+H+","+f+","+E+")",U||this)};
Y.prototype.arrayDelete=function(H,f){if(Array.isArray(H)){if(f=H.indexOf(f),f>=0)return H.splice(f,1)}else if(f=lp(this,H).indexOf(f),f>=0)return this.splice(H,f,1);return null};
Y.prototype._logger=function(H,f){Array.isArray(f)&&f.length===1&&Array.isArray(f[0])&&(f=f[0]);switch(H){case "log":case "warn":case "error":console[H].apply(console,_.Bt(f))}};
Y.prototype._log=function(){this._logger("log",_.BN.apply(0,arguments))};
Y.prototype._warn=function(){this._logger("warn",_.BN.apply(0,arguments))};
Y.prototype._error=function(){this._logger("error",_.BN.apply(0,arguments))};
Y.prototype._logf=function(H){return["[%s::%s]",this.is,H].concat(_.Bt(_.BN.apply(1,arguments)))};
_.up.Object.defineProperties(Y.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var H=(0,_.qc)(this).getRootNode();return H instanceof DocumentFragment?H.host:H}}});
_.up.Object.defineProperties(Y,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return FHt&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],dRv(this.prototype)),this.__observedAttributes):w.call(this).concat("disable-upgrade")}}});
Y.prototype.is="";return Y});Polymer.FlattenedNodesObserver=d4$;Polymer.DomApi=WKt;Polymer.EventApi=qw;Polymer.dom=_.B1;Polymer.dom.matchesSelector=SDI;Polymer.dom.flush=_.l6;Polymer.dom.addDebouncer=_.mk;Polymer.DirMixin=ywI;Polymer.RenderStatus={beforeNextRender:_.RXB,afterNextRender:_.TC,flush:function(){for(;pTu.length||GC.length;)eXg(pTu),eXg(GC);jM=!1}};Polymer.LegacyElementMixin=_.Bq;var g7C;g7C=IO._mutablePropertyChange;var fej={properties:{mutableData:Boolean},_shouldPropertyChange:function(Y,b,w){return g7C(this,Y,b,w,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(Y,b,w){return g7C(this,Y,b,w,!0)}};
Polymer.OptionalMutableDataBehavior=fej;var cJg={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},oiI={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},mqb=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},oiI),N5k=(0,_.Bq)(HTMLElement),TQq=function(Y,b){Y||console.warn("Polymer.Class requires `info` argument");b=b?b(N5k):N5k;b=IzK(Y,b,Y.behaviors);b.is=b.prototype.is=
Y.is;return b};Polymer.Class=TQq;Polymer.mixinBehaviors=function(Y,b){return IzK({},(0,_.Bq)(b),Y)};
Polymer.GenerateClassFromInfo=IzK;_.pV=function(Y){var b=typeof Y==="function"?Y:_.pV.Class(Y);Y._legacyForceObservedAttributes&&(b.prototype._legacyForceObservedAttributes=Y._legacyForceObservedAttributes);customElements.define(b.is,b);return b};
_.pV.Class=TQq;Polymer._polymerFn=_.pV;var E7k=window.onLegacyPolymerFunctionDefinedCallback;E7k&&E7k();var usG={templatize:function(Y,b){this._templatizerTemplate=Y;this.ctor=zC(Y,this,{mutableData:!!b,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(Y){return new this.ctor(Y)},
modelForElement:function(Y){return PJq(this._templatizerTemplate,Y)}};Polymer.Templatizer=usG;_.ny=(0,_.Bq)(HTMLElement).prototype;Polymer.Base=_.ny;var lzK=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.YL=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.P(_.YL,PolymerFakeBaseClass);var bo=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.P(bo,PolymerFakeBaseClass);var hsM=Symbol("Od"),Bpa=[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 c1k=c1k||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},U89;(function(Y){function b(W,y,G){var Nr=C.get(W);if(!Nr){if(!G)return;Nr=new L;C.set(W,Nr)}W=Nr.get(y);if(!W){if(!G)return;W=new L;Nr.set(y,W)}return W}
function w(W,y,G){if(V(W,y,G))return!0;y=x(y);return y!==null?w(W,y,G):!1}
function V(W,y,G){y=b(y,G,!1);return y===void 0?!1:!!y.has(W)}
function H(W,y,G){if(V(W,y,G))return f(W,y,G);y=x(y);if(y!==null)return H(W,y,G)}
function f(W,y,G){y=b(y,G,!1);if(y!==void 0)return y.get(W)}
function E(W,y){var G=U(W,y);W=x(W);if(W===null)return G;var Nr=E(W,y);if(Nr.length<=0)return G;if(G.length<=0)return Nr;y=new r;W=[];G=_.N(G);for(var o6=G.next();!o6.done;o6=G.next())o6=o6.value,y.has(o6)||(y.add(o6),W.push(o6));G=_.N(Nr);for(Nr=G.next();!Nr.done;Nr=G.next())Nr=Nr.value,y.has(Nr)||(y.add(Nr),W.push(Nr));return W}
function U(W,y){W=b(W,y,!1);var G=[];W&&W.forEach(function(Nr,o6){return G.push(o6)});
return G}
function X(W){return W===void 0}
function I(W){return typeof W==="object"?W!==null:typeof W==="function"}
function k(W){return typeof W==="function"}
function l(W){return typeof W==="symbol"?W:String(W)}
function x(W){var y=Object.getPrototypeOf(W);if(typeof W!=="function"||W===O||y!==O)return y;var G=Object.getPrototypeOf(W.prototype);if(G==null||G===Object.prototype)return y;G=G.constructor;return typeof G!=="function"||G===W?y:G}
function Q(){function W(){this._keys=[];this._values=[];this._cache=y}
var y={};W.prototype={get size(){return this._keys.length},has:function(G){return G===this._cache?!0:this._find(G)>=0?(this._cache=G,!0):!1},
get:function(G){var Nr=this._find(G);if(Nr>=0)return this._cache=G,this._values[Nr]},
set:function(G,Nr){this.delete(G);this._keys.push(G);this._values.push(Nr);this._cache=G;return this},
delete:function(G){G=this._find(G);return G>=0?(this._keys.splice(G,1),this._values.splice(G,1),this._cache=y,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=y},
forEach:function(G){for(var Nr=this.size,o6=0;o6<Nr;++o6){var lI=this._keys[o6],Zt=this._values[o6];this._cache=lI;G.call(this,Zt,lI,this)}},
_find:function(G){for(var Nr=this._keys,o6=Nr.length,lI=0;lI<o6;++lI)if(Nr[lI]===G)return lI;return-1}};
return W}
function Z(){function W(){this._map=new L}
W.prototype={get size(){return this._map.length},has:function(y){return this._map.has(y)},
add:function(y){this._map.set(y,y);return this},
delete:function(y){return this._map.delete(y)},
clear:function(){this._map.clear()},
forEach:function(y,G){this._map.forEach(y,G)}};
return W}
function e(){function W(){this._key=G()}
function y(OM,iI){for(var rB=0;rB<iI;++rB)OM[rB]=Math.random()*255|0}
function G(){do{if(o6)var OM=o6.randomBytes(16);else typeof Uint8Array==="function"?(OM=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(OM):y(OM,16)):(OM=Array(16),y(OM,16));OM[6]=OM[6]&79|64;OM[8]=OM[8]&191|128;for(var iI="",rB=0;rB<16;++rB){var Tj=OM[rB];if(rB===4||rB===6||rB===8)iI+="-";Tj<16&&(iI+="0");iI+=Tj.toString(16).toLowerCase()}OM="@@WeakMap@@"+iI}while(lI.call(Zt,OM));Zt[OM]=!0;return OM}
function Nr(OM,iI){if(!lI.call(OM,eL)){if(!iI)return;Object.defineProperty(OM,eL,{value:Object.create(null)})}return OM[eL]}
var o6=typeof global!=="undefined"&&typeof c1k==="object"&&typeof require==="function"&&require("crypto"),lI=Object.prototype.hasOwnProperty,Zt={},eL=G();W.prototype={has:function(OM){return(OM=Nr(OM,!1))?this._key in OM:!1},
get:function(OM){if(OM=Nr(OM,!1))return OM[this._key]},
set:function(OM,iI){Nr(OM,!0)[this._key]=iI;return this},
delete:function(OM){return(OM=Nr(OM,!1))&&this._key in OM?delete OM[this._key]:!1},
clear:function(){this._key=G()}};
return W}
var O=Object.getPrototypeOf(Function),L=typeof Map==="function"?Map:Q(),r=typeof Set==="function"?Set:Z(),C=new (typeof WeakMap==="function"?WeakMap:e());Y.decorate=function(W,y,G,Nr){if(X(Nr)){if(X(G)){if(!Array.isArray(W))throw new TypeError;if(!k(y))throw new TypeError;for(G=W.length-1;G>=0;--G)if(Nr=(0,W[G])(y),!X(Nr)){if(!k(Nr))throw new TypeError;y=Nr}return y}if(!Array.isArray(W))throw new TypeError;if(!I(y))throw new TypeError;G=l(G);for(Nr=W.length-1;Nr>=0;--Nr)(0,W[Nr])(y,G)}else{if(Array.isArray(W))if(I(y)){if(X(G))throw new TypeError;
if(!I(Nr))throw new TypeError;}else throw new TypeError;else throw new TypeError;G=l(G);for(var o6=W.length-1;o6>=0;--o6){var lI=(0,W[o6])(y,G,Nr);if(!X(lI)){if(!I(lI))throw new TypeError;Nr=lI}}return Nr}};
Y.metadata=function(W,y){return function(G,Nr){if(X(Nr)){if(!k(G))throw new TypeError;b(G,void 0,!0).set(W,y)}else{if(!I(G))throw new TypeError;Nr=l(Nr);b(G,Nr,!0).set(W,y)}}};
Y.defineMetadata=function(W,y){var G;if(I(y))X(G)||(G=l(G));else throw new TypeError;b(y,G,!0).set("parameters",W)};
Y.hasMetadata=function(W,y,G){if(I(y))X(G)||(G=l(G));else throw new TypeError;return w(W,y,G)};
Y.hasOwnMetadata=function(W,y,G){if(I(y))X(G)||(G=l(G));else throw new TypeError;return V(W,y,G)};
Y.getMetadata=function(W,y,G){if(I(y))X(G)||(G=l(G));else throw new TypeError;return H(W,y,G)};
Y.getOwnMetadata=function(W,y,G){if(I(y))X(G)||(G=l(G));else throw new TypeError;return f(W,y,G)};
Y.getMetadataKeys=function(W,y){if(I(W))X(y)||(y=l(y));else throw new TypeError;return E(W,y)};
Y.getOwnMetadataKeys=function(W,y){if(I(W))X(y)||(y=l(y));else throw new TypeError;return U(W,y)};
Y.deleteMetadata=function(W,y,G){if(I(y))X(G)||(G=l(G));else throw new TypeError;var Nr=b(y,G,!1);if(!X(Nr)){if(!Nr.delete(W))return!1;if(Nr.size>0)return!0;W=C.get(y);W.delete(G);if(W.size>0)return!0;C.delete(y);return!0}};
(function(W){if(typeof W.Reflect!=="undefined"){if(W.Reflect!==Y)for(var y in Y)W.Reflect[y]=Y[y]}else W.Reflect=Y})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(U89||(U89={}));var dSa=self;var X0o=[0,_.TZ,_.uL,_.TZ];var D8d=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(D8d,_.SQ);var m8o=_.uj(D8d,[0,_.foe,_.YS,X0o,_.uL,_.wm]);_.DX(_.wO,_.BE);_.g=_.wO.prototype;_.g.start=function(){this.stop();this.usingListeners_=!1;var Y=o7$(this),b=Iet(this);Y&&!b&&this.JSC$9260_win_.mozRequestAnimationFrame?(this.JSC$9260_id_=_.ez(this.JSC$9260_win_,"MozBeforePaint",this.callback_),this.JSC$9260_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9260_id_=Y&&b?Y.call(this.JSC$9260_win_,this.callback_):this.JSC$9260_win_.setTimeout(ltj(this.callback_),20)};
_.g.stop=function(){if(this.isActive()){var Y=o7$(this),b=Iet(this);Y&&!b&&this.JSC$9260_win_.mozRequestAnimationFrame?BP(this.JSC$9260_id_):Y&&b?b.call(this.JSC$9260_win_,this.JSC$9260_id_):this.JSC$9260_win_.clearTimeout(this.JSC$9260_id_)}this.JSC$9260_id_=null};
_.g.fire=function(){this.stop();this.JSC$9262_doAction_()};
_.g.isActive=function(){return this.JSC$9260_id_!=null};
_.g.JSC$9262_doAction_=function(){this.usingListeners_&&this.JSC$9260_id_&&BP(this.JSC$9260_id_);this.JSC$9260_id_=null;this.JSC$9260_listener_.call(this.handler_,_.XT())};
_.g.disposeInternal=function(){this.stop();_.wO.superClass_.disposeInternal.call(this)};
var o7$=function(Y){Y=Y.JSC$9260_win_;return Y.requestAnimationFrame||Y.webkitRequestAnimationFrame||Y.mozRequestAnimationFrame||Y.oRequestAnimationFrame||Y.msRequestAnimationFrame||null},Iet=function(Y){Y=Y.JSC$9260_win_;
return Y.cancelAnimationFrame||Y.cancelRequestAnimationFrame||Y.webkitCancelRequestAnimationFrame||Y.mozCancelRequestAnimationFrame||Y.oCancelRequestAnimationFrame||Y.msCancelRequestAnimationFrame||null};_.Vm=function(Y,b,w){_.BE.call(this);this.JSC$9263_listener_=w!=null?Y.bind(w):Y;this.JSC$9263_interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9263_timer_=null};
_.P(_.Vm,_.BE);_.g=_.Vm.prototype;_.g.fire=function(Y){this.args_=arguments;this.JSC$9263_timer_||this.pauseCount_?this.shouldFire_=!0:kuC(this)};
_.g.stop=function(){this.JSC$9263_timer_&&(_.wB.clearTimeout(this.JSC$9263_timer_),this.JSC$9263_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.g.pause=function(){this.pauseCount_++};
_.g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9263_timer_||(this.shouldFire_=!1,kuC(this))};
_.g.disposeInternal=function(){_.BE.prototype.disposeInternal.call(this);this.stop()};
var kuC=function(Y){Y.JSC$9263_timer_=tS(function(){Y.JSC$9263_timer_=null;Y.shouldFire_&&!Y.pauseCount_&&(Y.shouldFire_=!1,kuC(Y))},Y.JSC$9263_interval_);
var b=Y.args_;Y.args_=null;Y.JSC$9263_listener_.apply(null,b)};var leI=function(Y,b){this.childIterator_=Y[_.wB.Symbol.iterator]();this.mapFn_=b};
leI.prototype[Symbol.iterator]=function(){return this};
leI.prototype.next=function(){var Y=this.childIterator_.next();return{value:Y.done?void 0:this.mapFn_.call(void 0,Y.value),done:Y.done}};
var hwt=function(Y,b){return new leI(Y,b)};var x8r={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 DNt=function(Y){var b=qaK(Y);if(!b)throw Error("Sd`"+Y);return b},qaK=function(Y){var b={};
Y=String(Y);var w=Y.charAt(0)=="#"?Y:"#"+Y;if(sPd.test(w))return b.hex=fve(w),b.type="hex",b;w=kHB(Y);return w.length?(b.hex=J06(w[0],w[1],w[2]),b.type="rgb",b):x8r&&(Y=x8r[Y.toLowerCase()])?(b.hex=Y,b.type="named",b):null},QPI=/#(.)(.)(.)/,fve=function(Y){if(!sPd.test(Y))throw Error("Ud`"+Y);
Y.length==4&&(Y=Y.replace(QPI,"#$1$1$2$2$3$3"));return Y.toLowerCase()},mNB=function(Y){Y=fve(Y);
Y=parseInt(Y.slice(1),16);return[Y>>16,Y>>8&255,Y&255]},J06=function(Y,b,w){Y=Number(Y);
b=Number(b);w=Number(w);if(Y!=(Y&255)||b!=(b&255)||w!=(w&255))throw Error("Vd`"+Y+"`"+b+"`"+w);b=Y<<16|b<<8|w;return Y<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)},sPd=/^#(?:[0-9a-f]{3}){1,2}$/i,v7K=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,kHB=function(Y){var b=Y.match(v7K);
if(b){Y=Number(b[1]);var w=Number(b[2]);b=Number(b[3]);if(Y>=0&&Y<=255&&w>=0&&w<=255&&b>=0&&b<=255)return[Y,w,b]}return[]};var Pn5={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},O1=Pn5;O1=Pn5;var CTM,ZzQ,B5I;CTM=function(Y,b){switch(b){case 1:return Y%4!=0||Y%100==0&&Y%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ZzQ=function(Y,b,w,V,H){Y=new Date(Y,b,w);H=H||0;return Y.valueOf()+(((V!==void 0?V:3)-H+7)%7-((Y.getDay()+6)%7-H+7)%7)*864E5};
_.Mw=function(Y,b,w){typeof Y==="number"?(this.date=B5I(Y,b||0,w||1),n7I(this,w||1)):_.bC(Y)?(this.date=B5I(Y.getFullYear(),Y.getMonth(),Y.getDate()),n7I(this,Y.getDate())):(this.date=new Date(_.XT()),Y=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),n7I(this,Y))};
B5I=function(Y,b,w){b=new Date(Y,b,w);Y>=0&&Y<100&&b.setFullYear(b.getFullYear()-1900);return b};
_.g=_.Mw.prototype;_.g.firstDayOfWeek_=O1.FIRSTDAYOFWEEK;_.g.firstWeekCutOffDay_=O1.FIRSTWEEKCUTOFFDAY;_.g.clone=function(){var Y=new _.Mw(this.date);Y.firstDayOfWeek_=this.firstDayOfWeek_;Y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return Y};
_.g.getFullYear=function(){return this.date.getFullYear()};
_.g.getYear=function(){return this.getFullYear()};
_.g.getMonth=function(){return this.date.getMonth()};
_.g.getDate=function(){return this.date.getDate()};
_.g.getTime=function(){return this.date.getTime()};
_.g.getDay=function(){return this.date.getDay()};
_.g.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.g.getUTCMonth=function(){return this.date.getUTCMonth()};
_.g.getUTCDate=function(){return this.date.getUTCDate()};
_.g.getUTCDay=function(){return this.date.getDay()};
_.g.getUTCHours=function(){return this.date.getUTCHours()};
_.g.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.g.set=function(Y){this.date=new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())};
_.g.setFullYear=function(Y){this.date.setFullYear(Y)};
_.g.setYear=function(Y){this.setFullYear(Y)};
_.g.setMonth=function(Y){this.date.setMonth(Y)};
_.g.setDate=function(Y){this.date.setDate(Y)};
_.g.setTime=function(Y){this.date.setTime(Y)};
_.g.setUTCFullYear=function(Y){this.date.setUTCFullYear(Y)};
_.g.setUTCMonth=function(Y){this.date.setUTCMonth(Y)};
_.g.setUTCDate=function(Y){this.date.setUTCDate(Y)};
_.g.add=function(Y){if(Y.years||Y.months){var b=this.getMonth()+Y.months+Y.years*12,w=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var V=Math.min(CTM(w,b),this.getDate());this.setDate(1);this.setFullYear(w);this.setMonth(b);this.setDate(V)}Y.days&&(w=this.getYear(),b=w>=0&&w<=99?-1900:0,Y=new Date((new Date(w,this.getMonth(),this.getDate(),12)).getTime()+Y.days*864E5),this.setDate(1),this.setFullYear(Y.getFullYear()+b),this.setMonth(Y.getMonth()),this.setDate(Y.getDate()),n7I(this,Y.getDate()))};
_.g.JSC$9276_toIsoString=function(Y){var b=this.getFullYear(),w=b<0?"-":b>=1E4?"+":"";return[w+_.EI(Math.abs(b),w?6:4),_.EI(this.getMonth()+1,2),_.EI(this.getDate(),2)].join(Y?"-":"")};
_.g.equals=function(Y){return!(!Y||this.getYear()!=Y.getYear()||this.getMonth()!=Y.getMonth()||this.getDate()!=Y.getDate())};
_.g.toString=function(){return this.JSC$9276_toIsoString()};
var n7I=function(Y,b){Y.getDate()!=b&&Y.date.setUTCHours(Y.date.getUTCHours()+(Y.getDate()<b?1:-1))};
_.Mw.prototype.valueOf=function(){return this.date.valueOf()};var py=function(Y,b,w,V,H){this.reversed=!!b;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!w;Y&&ew(this,Y,V);this.depth=H!=void 0?H:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.DX(py,Ug);var ew=function(Y,b,w,V){if(Y.node=b)Y.tagType=typeof w==="number"?w:Y.node.nodeType!=1?0:Y.reversed?-1:1;typeof V==="number"&&(Y.depth=V)};
_.g=py.prototype;_.g.JSC$9291_copyFrom=function(Y){this.node=Y.node;this.tagType=Y.tagType;this.depth=Y.depth;this.reversed=Y.reversed;this.constrained=Y.constrained};
_.g.clone=function(){return new py(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.g.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return X_;var Y=this.node;var b=this.reversed?-1:1;if(this.tagType==b){var w=this.reversed?Y.lastChild:Y.firstChild;w?ew(this,w):ew(this,Y,b*-1)}else(w=this.reversed?Y.previousSibling:Y.nextSibling)?ew(this,w):ew(this,Y.parentNode,b*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(Y=this.node)?D4(Y):X_};
_.g.equals=function(Y){return Y.node==this.node&&(!this.node||Y.tagType==this.tagType)};
_.g.splice=function(Y){var b=this.node,w=this.reversed?1:-1;this.tagType==w&&(this.tagType=w*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;py.prototype.next.call(this);this.reversed=!this.reversed;w=_.TK(arguments[0])?arguments[0]:arguments;for(var V=w.length-1;V>=0;V--)_.Lj(w[V],b);_.qf(b)};var M1j=function(){},OG=function(Y){for(var b=[],w=Y.getTextRangeCount(),V=0;V<w;V++)b.push(Y.getTextRange(V));
return b};
M1j.prototype.isReversed=function(){return!1};
M1j.prototype.getWindow=function(){return pl(_.Oy(this.JSC$9293_getStartNode()))};
var ewo=function(Y,b){py.call(this,Y,b,!0)};
_.DX(ewo,py);var to=function(Y,b,w,V,H){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!H;if(Y){this.startNode_=Y;this.startOffset_=b;this.endNode_=w;this.endOffset_=V;if(Y.nodeType==1&&Y.tagName!="BR")if(Y=Y.childNodes,b=Y[b])this.startNode_=b,this.startOffset_=0;else{Y.length&&(this.startNode_=_.Fu(Y));var f=!0}w.nodeType==1&&((this.endNode_=w.childNodes[V])?this.endOffset_=0:this.endNode_=w)}py.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);f&&this.next()};
_.DX(to,ewo);_.g=to.prototype;_.g.JSC$9299_getStartNode=function(){return this.startNode_};
_.g.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)};
_.g.next=function(){return this.isLast()?X_:to.superClass_.next.call(this)};
_.g.JSC$9291_copyFrom=function(Y){this.startNode_=Y.startNode_;this.endNode_=Y.endNode_;this.startOffset_=Y.startOffset_;this.endOffset_=Y.endOffset_;this.isReversed_=Y.isReversed_;to.superClass_.JSC$9291_copyFrom.call(this,Y)};
_.g.clone=function(){var Y=new to(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);Y.JSC$9291_copyFrom(this);return Y};var p0j=function(){};
p0j.prototype.__iterator__=function(){return new to(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var RO=function(Y){this.range_=Y};
_.DX(RO,p0j);var Oz_=function(Y){var b=_.Oy(Y).createRange();if(Y.nodeType==3)b.setStart(Y,0),b.setEnd(Y,Y.length);else if(Rv(Y)||Y.nodeType==3){for(var w,V=Y;(w=V.firstChild)&&(Rv(w)||w.nodeType==3);)V=w;b.setStart(V,0);for(V=Y;(w=V.lastChild)&&(Rv(w)||w.nodeType==3);)V=w;b.setEnd(V,V.nodeType==1?V.childNodes.length:V.length)}else w=Y.parentNode,Y=Array.prototype.indexOf.call(w.childNodes,Y),b.setStart(w,Y),b.setEnd(w,Y+1);return b},t1K=function(Y,b,w,V){var H=_.Oy(Y).createRange();
H.setStart(Y,b);H.setEnd(w,V);return H};
_.g=RO.prototype;_.g.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.g.getContainer=function(){return this.range_.commonAncestorContainer};
_.g.compareBrowserRangeEndpoints=function(Y,b,w){return this.range_.compareBoundaryPoints(w==1?b==1?_.wB.Range.START_TO_START:_.wB.Range.START_TO_END:b==1?_.wB.Range.END_TO_START:_.wB.Range.END_TO_END,Y)};
_.g.isCollapsed=function(){return this.range_.collapsed};
_.g.select=function(Y){this.selectInternal(pl(_.Oy(this.range_.startContainer)).getSelection(),Y)};
_.g.selectInternal=function(Y){Y.removeAllRanges();Y.addRange(this.range_)};
_.g.insertNode=function(Y,b){var w=this.range_.cloneRange();w.collapse(b);w.insertNode(Y);w.detach();return Y};
_.g.collapse=function(Y){this.range_.collapse(Y)};_.DX(VG,RO);VG.prototype.selectInternal=function(Y,b){!b||this.isCollapsed()?VG.superClass_.selectInternal.call(this,Y,b):(Y.collapse(this.range_.endContainer,this.range_.endOffset),Y.extend(this.range_.startContainer,this.range_.startOffset))};_.DX(H1,RO);H1.prototype.compareBrowserRangeEndpoints=function(Y,b,w){return H1.superClass_.compareBrowserRangeEndpoints.call(this,Y,b,w)};
H1.prototype.selectInternal=function(Y,b){b?Y.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):Y.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var RwQ=function(Y){return _.hZ?new H1(Y):_.lL?new VG(Y):new RO(Y)};var FR=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},d8_;
_.DX(FR,M1j);d8_=function(Y,b){var w=new FR;w.browserRangeWrapper_=Y;w.isReversed_=!!b;return w};
_.Fx5=function(Y){Y=_.hZ?new H1(Oz_(Y)):_.lL?new VG(Oz_(Y)):new RO(Oz_(Y));return d8_(Y)};
_.Ly=function(Y,b,w,V){var H=new FR;H.isReversed_=LxQ(Y,b,w,V);if(_.YP(Y)&&!Rv(Y)){var f=Y.parentNode;b=Array.prototype.indexOf.call(f.childNodes,Y);Y=f}_.YP(w)&&!Rv(w)&&(f=w.parentNode,V=Array.prototype.indexOf.call(f.childNodes,w),w=f);H.isReversed_?(H.startNode_=w,H.startOffset_=V,H.endNode_=Y,H.endOffset_=b):(H.startNode_=Y,H.startOffset_=b,H.endNode_=w,H.endOffset_=V);return H};
_.g=FR.prototype;_.g.clone=function(){var Y=new FR;Y.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();Y.startNode_=this.startNode_;Y.startOffset_=this.startOffset_;Y.endNode_=this.endNode_;Y.endOffset_=this.endOffset_;Y.isReversed_=this.isReversed_;return Y};
_.g.JSC$9293_getType=function(){return"text"};
_.g.getBrowserRangeObject=function(){return Sw(this).range_};
_.g.getTextRangeCount=function(){return 1};
_.g.getTextRange=function(){return this};
var Sw=function(Y){var b;if(!(b=Y.browserRangeWrapper_)){b=Y.JSC$9293_getStartNode();var w=Y.JSC$9293_getStartOffset(),V=Y.JSC$9293_getEndNode(),H=Y.JSC$9293_getEndOffset();b=_.hZ?new H1(t1K(b,w,V,H)):_.lL?new VG(t1K(b,w,V,H)):new RO(t1K(b,w,V,H));b=Y.browserRangeWrapper_=b}return b};
_.g=FR.prototype;_.g.getContainer=function(){return Sw(this).getContainer()};
_.g.JSC$9293_getStartNode=function(){return this.startNode_||(this.startNode_=Sw(this).range_.startContainer)};
_.g.JSC$9293_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Sw(this).range_.startOffset};
_.g.JSC$9293_getEndNode=function(){return this.endNode_||(this.endNode_=Sw(this).range_.endContainer)};
_.g.JSC$9293_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Sw(this).range_.endOffset};
_.g.isReversed=function(){return this.isReversed_};
_.g.JSC$9293_containsRange=function(Y,b){if(Y.JSC$9293_getType()=="text"){var w=Sw(this);Y=Sw(Y);b=b&&!Y.isCollapsed();Y=Y.range_;w=b?w.compareBrowserRangeEndpoints(Y,0,1)>=0&&w.compareBrowserRangeEndpoints(Y,1,0)<=0:w.compareBrowserRangeEndpoints(Y,0,0)>=0&&w.compareBrowserRangeEndpoints(Y,1,1)<=0}else w=!1;return w};
_.g.isCollapsed=function(){return Sw(this).isCollapsed()};
_.g.JSC$9293_getText=function(){return Sw(this).range_.toString()};
_.g.__iterator__=function(){return new to(this.JSC$9293_getStartNode(),this.JSC$9293_getStartOffset(),this.JSC$9293_getEndNode(),this.JSC$9293_getEndOffset())};
_.g.select=function(){Sw(this).select(this.isReversed_)};
_.g.JSC$9293_removeContents=function(){var Y=Sw(this).range_;Y.extractContents();if(Y.startContainer.hasChildNodes()&&(Y=Y.startContainer.childNodes[Y.startOffset])){var b=Y.previousSibling;I5d(Y)==""&&_.qf(Y);b&&I5d(b)==""&&_.qf(b)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.g.insertNode=function(Y,b){Y=Sw(this).insertNode(Y,b);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return Y};
_.g.collapse=function(Y){Y=this.isReversed()?!Y:Y;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(Y);Y?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Sa8=function(){};
_.DX(Sa8,M1j);Sa8.prototype.JSC$9293_containsRange=function(Y,b){var w=OG(this);Y=OG(Y);return(b?TD:_.uGK)(Y,function(V){return TD(w,function(H){return H.JSC$9293_containsRange(V,b)})})};
Sa8.prototype.insertNode=function(Y,b){b?_.F1(Y,this.JSC$9293_getStartNode()):_.Lj(Y,this.JSC$9293_getEndNode());return Y};var ae$,r1U=la().JSC$7363_document_.documentElement;ae$=r1U.requestFullscreen?"fullscreenchange":r1U.webkitRequestFullscreen?"webkitfullscreenchange":r1U.mozRequestFullScreen?"mozfullscreenchange":r1U.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var zw8=function(){var Y=la().JSC$7363_document_;return!!(Y.webkitIsFullScreen||Y.mozFullScreen||Y.msFullscreenElement||Y.fullscreenElement)};var aO=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.DX(aO,Sa8);_.g=aO.prototype;_.g.clone=function(){var Y=new aO;Y.browserRanges_=_.jL(this.browserRanges_);return Y};
_.g.JSC$9293_getType=function(){return"mutli"};
_.g.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.g.getTextRangeCount=function(){return this.browserRanges_.length};
_.g.getTextRange=function(Y){this.ranges_[Y]||(this.ranges_[Y]=d8_(RwQ(this.browserRanges_[Y])));return this.ranges_[Y]};
_.g.getContainer=function(){if(!this.container_){for(var Y=[],b=this.getTextRangeCount(),w=0;w<b;w++)Y.push(this.getTextRange(w).getContainer());this.container_=Ed_.apply(null,Y)}return this.container_};
var rA=function(Y){Y.sortedRanges_||(Y.sortedRanges_=OG(Y),Y.sortedRanges_.sort(function(b,w){var V=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();var H=w.JSC$9293_getStartNode();w=w.JSC$9293_getStartOffset();return V==H&&b==w?0:LxQ(V,b,H,w)?1:-1}));
return Y.sortedRanges_};
_.g=aO.prototype;_.g.JSC$9293_getStartNode=function(){return rA(this)[0].JSC$9293_getStartNode()};
_.g.JSC$9293_getStartOffset=function(){return rA(this)[0].JSC$9293_getStartOffset()};
_.g.JSC$9293_getEndNode=function(){return _.Fu(rA(this)).JSC$9293_getEndNode()};
_.g.JSC$9293_getEndOffset=function(){return _.Fu(rA(this)).JSC$9293_getEndOffset()};
_.g.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.g.JSC$9293_getText=function(){return OG(this).map(function(Y){return Y.JSC$9293_getText()}).join("")};
_.g.__iterator__=function(){return new zP(this)};
_.g.select=function(){var Y=this.getWindow().getSelection();Y.removeAllRanges();for(var b=this.getTextRangeCount(),w=0;w<b;w++)Y.addRange(this.getTextRange(w).getBrowserRangeObject())};
_.g.JSC$9293_removeContents=function(){OG(this).forEach(function(Y){Y.JSC$9293_removeContents()})};
_.g.collapse=function(Y){if(!this.isCollapsed()){var b=Y?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;b.collapse(Y);this.ranges_=[b];this.sortedRanges_=[b];this.browserRanges_=[b.getBrowserRangeObject()]}};
var zP=function(Y){this.iterators_=null;this.currentIdx_=0;Y&&(this.iterators_=rA(Y).map(function(b){return _.grk(b)}));
py.call(this,Y?this.JSC$9299_getStartNode():null,!1,!0)};
_.DX(zP,ewo);_.g=zP.prototype;_.g.JSC$9299_getStartNode=function(){return this.iterators_[0].JSC$9299_getStartNode()};
_.g.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.g.next=function(){for(;this.currentIdx_<this.iterators_.length;){var Y=this.iterators_[this.currentIdx_],b=Y.next();if(b.done)this.currentIdx_++;else return ew(this,Y.node,Y.tagType,Y.depth),b}return X_};
_.g.JSC$9291_copyFrom=function(Y){this.iterators_=_.jL(Y.iterators_);zP.superClass_.JSC$9291_copyFrom.call(this,Y)};
_.g.clone=function(){var Y=new zP(null);Y.JSC$9291_copyFrom(this);return Y};var Wx$,LxQ;_.BT=function(){var Y=window.getSelection();return Y&&Wx$(Y)};
Wx$=function(Y){var b=!1;if(Y.createRange)try{var w=Y.createRange()}catch(H){return null}else if(Y.rangeCount){if(Y.rangeCount>1){w=new aO;b=Y.rangeCount;for(var V=0;V<b;V++)w.browserRanges_.push(Y.getRangeAt(V));return w}w=Y.getRangeAt(0);b=LxQ(Y.anchorNode,Y.anchorOffset,Y.focusNode,Y.focusOffset)}else return null;return d8_(RwQ(w),b)};
_.Wq=function(Y,b){return _.Ly(Y,b,Y,b)};
_.Ky=function(Y,b,w,V){return _.Ly(Y,b,w,V)};
LxQ=function(Y,b,w,V){if(Y==w)return V<b;var H;if(Y.nodeType==1&&b)if(H=Y.childNodes[b])Y=H,b=0;else if(_.Ay(Y,w))return!0;if(w.nodeType==1&&V)if(H=w.childNodes[V])w=H,V=0;else if(_.Ay(w,Y))return!1;return(NUK(Y,w)||b-V)>0};var i6=function(){_.n1.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.nC)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.nC)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.nC)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.nC)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.nC)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.nC)(this.dispatchProgressEvent_,this)};
_.DX(i6,_.n1);i6.prototype.abort=function(){try{this.reader_.abort()}catch(Y){throw new Euo(Y,"aborting read");}};
i6.prototype.getError=function(){return this.reader_.error&&new Euo(this.reader_.error,"reading file")};
i6.prototype.dispatchProgressEvent_=function(Y){this.dispatchEvent(new c69(Y,this))};
i6.prototype.disposeInternal=function(){i6.superClass_.disposeInternal.call(this);delete this.reader_};
var izI=function(Y){var b=new i6,w=KxK(b);b.reader_.readAsArrayBuffer(Y);return w},A15=function(Y){var b=new i6,w=KxK(b);
b.reader_.readAsDataURL(Y);return w},KxK=function(Y){var b=new Th;
Y.listen("loadend",_.v0(function(w,V){var H=V.reader_.result,f=V.getError();H==null||f?w.errback(f):w.callback(H);V.dispose()},b,Y));
return b};var Ao=function(){_.n1.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9333_eventHandler_=new _.fM(this);this.JSC$9333_isInitialized_=!1};
_.DX(Ao,_.n1);var CnQ=new _.sV("d"),y1$=new _.sV("beforedragstart"),$8C=new _.sV("dragstart"),jPk=new _.sV("beforedragmove"),Gu9=new _.sV("dragmove"),T5r=new _.sV("beforedragend"),J19=new _.sV("dragend"),uxk=new _.sV("e");Ao.prototype.isDragging=function(){return!!this.JSC$9333_dragger_};
var Yf_=function(Y,b){b.dlgGrowthDirection_=0;b.dlgDragHoverClass_=void 0;b.dlgDragPermission=0;Y.dragLists_.push(b)},b8j=function(Y,b){Y.getHandleForDragItem_=b};
Ao.prototype.init=function(){if(!this.JSC$9333_isInitialized_){for(var Y=this.dragLists_.length,b=0;b<Y;b++)for(var w=_.Sx(this.dragLists_[b]),V=w.length,H=0;H<V;++H){var f=w[H],E=this.getHandleForDragItem_(f),U=_.wU(E);this.dragItemForHandle_[U]=f;this.dragItemHoverClasses_&&(this.JSC$9333_eventHandler_.listen(f,"mouseover",this.handleDragItemMouseover_),this.JSC$9333_eventHandler_.listen(f,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9333_eventHandler_.listen(E,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9333_eventHandler_.listen(E,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(f);this.JSC$9333_eventHandler_.listen(E,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9333_isInitialized_=!0}};
Ao.prototype.disposeInternal=function(){this.JSC$9333_eventHandler_.dispose();for(var Y=this.dragLists_.length,b=0;b<Y;b++){var w=this.dragLists_[b];w.dlgGrowthDirection_=void 0;w.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;w$j(this);Ao.superClass_.disposeInternal.call(this)};
var VlK=function(Y,b){for(var w=Y.dragLists_.length,V=0;V<w;V++){var H=Y.dragLists_[V];H.dlgBounds_=tZq(H)}w=Y.dragItems_.length;for(V=0;V<w;V++)H=Y.dragItems_[V],H!=b&&(H.dlgBounds_=tZq(H))};
_.g=Ao.prototype;
_.g.handlePotentialDragStart_=function(Y){var b=_.wU(Y.currentTarget);b=this.dragItemForHandle_[b];if(b.parentElement.dlgDragPermission!=2){this.currDragItem_=b;a:{b=this.currDragItem_;for(var w=b.cloneNode(!0),V=s2("TEXTAREA",b),H=s2("TEXTAREA",w),f=0;f<V.length;f++)H[f].value=V[f].value;switch(b.tagName){case "TR":b=_.OI("TABLE",null,_.OI("TBODY",null,w));break a;case "TD":case "TH":b=_.OI("TABLE",null,_.OI("TBODY",null,_.OI("TR",null,w)));break a;case "TEXTAREA":w.value=b.value;default:b=w;break a}b=
void 0}this.draggerEl_=b;this.draggerElClasses_&&jO(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Oy(this.currDragItem_).body.appendChild(this.draggerEl_);w=_.Rz(this.currDragItem_);b=this.draggerEl_;V=_.Rz(b);if(w instanceof _.eq){var E=w.y;w=w.x}Kj(b,b.offsetLeft+(w-V.x),b.offsetTop+(Number(E)-V.y));this.JSC$9333_dragger_=new _.W2(this.draggerEl_);_.NxC(this.JSC$9333_dragger_,this.hysteresisDistance_);
_.ez(this.JSC$9333_dragger_,"start",this.handleDragStart_,!1,this);_.ez(this.JSC$9333_dragger_,"end",this.handleDragEnd_,!1,this);_.ez(this.JSC$9333_dragger_,"earlycancel",this.JSC$9335_cleanup_,!1,this);this.dispatchEvent(new Cy(CnQ,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_));this.JSC$9333_dragger_.startDrag(Y)}};
_.g.handleDragStart_=function(Y){if(this.dispatchEvent(new Cy(y1$,this,Y.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.HoI(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?jO(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var b=skt(this.draggerEl_);this.draggerEl_.halfWidth=b.width/2;this.draggerEl_.halfHeight=b.height/2;b=this.draggerEl_.getBoundingClientRect();
var w=Y.clientY,V=E2K(this.JSC$9333_dragger_,Y.clientX);if(V>b.right){var H=this.currDragItem_.getBoundingClientRect();this.JSC$9333_dragger_.deltaX=V-(V-H.left)/H.width*b.width}w=cqC(this.JSC$9333_dragger_,w);w>b.bottom&&(this.JSC$9333_dragger_.deltaY+=w-b.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";VlK(this,this.currDragItem_);this.currDragItem_.style.display="";_.ez(this.JSC$9333_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Cy($8C,
this,Y.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_))}else Y.preventDefault(),this.JSC$9335_cleanup_()};
_.g.handleDragMove_=function(Y){var b=_.Rz(this.draggerEl_);b=new _.eq(b.x+this.draggerEl_.halfWidth,b.y+this.draggerEl_.halfHeight);a:{var w=null;if(this.currDragItem_.style.display!="none"){w=this.currDragItem_.parentNode;var V=tZq(w);if(H8U(b,V))break a}V=this.dragLists_.length;for(var H=0;H<V;H++){var f=this.dragLists_[H];if(f!=w&&H8U(b,f.dlgBounds_)){w=f;break a}}w=null}if(w){if(w==null)throw Error("Wd");V=0;H=!1;f=void 0;switch(w.dlgGrowthDirection_){case 0:V=b.y;var E=gtr;var U=f7C;break;case 4:H=
!0;case 2:V=b.x;E=Nbj;U=f7C;break;case 5:H=!0;case 3:V=b.x,E=Etr,U=cr$}for(var X=null,I,k=_.Sx(w),l=k.length,x=0;x<l;x++){var Q=k[x];if(Q!=this.currDragItem_){var Z=E(Q.dlgBounds_);if(H){var e=UVk(Q,b);f===void 0&&(f=e);U(V,Z)&&(I==void 0||e<f||e==f&&(U(Z,I)||Z==I))&&(X=Q,I=Z);e<f&&(f=e)}else U(V,Z)&&(I==void 0||U(Z,I))&&(X=Q,I=Z)}}E=X!==null&&UVk(X,b)>f?null:X}else E=null;if(!this.dispatchEvent(new Cy(jPk,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_,b,w,E)))return!1;if(w&&w.dlgDragPermission!=
1)this.currDragItem_.parentNode==w&&_.HoI(this.currDragItem_)==E||w.insertBefore(this.currDragItem_,E),this.currDragItem_.style.display="",w.dlgDragHoverClass_&&_.bA(w,w.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",U=this.dragLists_.length,I=0;I<U;I++)V=this.dragLists_[I],V.dlgDragHoverClass_&&_.u8(V,V.dlgDragHoverClass_);w!=this.currHoverList_&&(this.currHoverList_=w,VlK(this,this.currDragItem_));this.dispatchEvent(new Cy(Gu9,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_,
b,w,E));return!1};
_.g.JSC$9335_cleanup_=function(){w$j(this);this.JSC$9333_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var Y=this.dragLists_.length,b=0;b<Y;b++)this.dragLists_[b].dlgBounds_=null;Y=this.dragItems_.length;for(b=0;b<Y;b++)this.dragItems_[b].dlgBounds_=null};
_.g.handleDragEnd_=function(Y){if(!this.dispatchEvent(new Cy(T5r,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_)))return!1;w$j(this);this.dispatchEvent(new Cy(J19,this,Y,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_));this.JSC$9335_cleanup_();return!0};
var w$j=function(Y){_.ua(Y.JSC$9333_dragger_);var b=Y.draggerEl_&&Y.draggerEl_.parentElement;Y.draggerEl_&&_.qf(Y.draggerEl_);Y.currDragItem_&&Y.currDragItem_.style.display=="none"&&(Y.origList_.insertBefore(Y.currDragItem_,Y.origNextItem_),Y.currDragItem_.style.display="");Y.currDragItemClasses_&&Y.currDragItem_?NFK(Y.currDragItem_,Y.currDragItemClasses_||[]):Y.currDragItem_&&(Y.currDragItem_.style.visibility="");for(var w=Y.dragLists_.length,V=0;V<w;V++){var H=Y.dragLists_[V];H.dlgDragHoverClass_&&
_.u8(H,H.dlgDragHoverClass_)}b&&Y.dispatchEvent(new Cy(uxk,Y,null,Y.currDragItem_,Y.draggerEl_,Y.JSC$9333_dragger_))};
_.g=Ao.prototype;_.g.getHandleForDragItem_=function(Y){return Y};
_.g.handleDragItemMouseover_=function(Y){jO(Y.currentTarget,this.dragItemHoverClasses_||[])};
_.g.handleDragItemMouseout_=function(Y){NFK(Y.currentTarget,this.dragItemHoverClasses_||[])};
_.g.handleDragItemHandleMouseover_=function(Y){jO(Y.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.g.handleDragItemHandleMouseout_=function(Y){NFK(Y.currentTarget,this.dragItemHandleHoverClasses_||[])};
var H8U=function(Y,b){return Y.x>b.left&&Y.x<b.left+b.width&&Y.y>b.top&&Y.y<b.top+b.height},UVk=function(Y,b){Y=Y.dlgBounds_;
return Math.abs(b.y-(Y.top+(Y.height-1)/2))},gtr=function(Y){return Y.top+Y.height-1},Nbj=function(Y){return Y.left+Y.width-1},Etr=function(Y){return Y.left||0},f7C=function(Y,b){return Y<b},cr$=function(Y,b){return Y>b},Cy=function(Y,b,w,V,H,f){_.Q2.call(this,Y);
this.event=w;this.currDragItem=V;this.draggerEl=H;this.JSC$9337_dragger=f};
_.DX(Cy,_.Q2);_.DX(N4,_.BE);var X$d=new _.eq(0,0);N4.prototype.JSC$9341_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
N4.prototype.JSC$9341_onMouseMove=function(Y){var b=this.containerIsActuallyContent_?X$d:kQ(la(this.containerNode_)),w=this.horizontalScrolling_?this.calculateScrollDelta(Y.clientX+b.x,this.scrollBounds_.left,this.scrollBounds_.width):0,V=this.calculateScrollDelta(Y.clientY+b.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=w;this.scrollDelta_.y=V;!(w=!w&&!V)&&(w=this.constrainScroll_)&&(w=Y.clientX+b.x,Y=Y.clientY+b.y,b=this.containerBounds_,w=!(b.left<=w&&b.left+b.width>=
w&&b.top<=Y&&b.top+b.height>=Y));w?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
N4.prototype.calculateScrollDelta=function(Y,b,w){var V=0;Y<b?V=-8:Y>b+w&&(V=8);return V};
N4.prototype.disposeInternal=function(){N4.superClass_.disposeInternal.call(this);this.JSC$9339_eventHandler_.dispose();this.scrollTimer_.dispose()};var DVQ={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"}}},yI=DVQ;yI=DVQ;var $8={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 mVI=function(){},yK=function(Y){if(typeof Y=="number"){var b=new mVI;
b.standardOffset_=Y;var w=Y;if(w==0)w="Etc/GMT";else{var V=["Etc/GMT",w<0?"-":"+"];w=Math.abs(w);V.push(Math.floor(w/60)%100);w%=60;w!=0&&V.push(":",_.EI(w,2));w=V.join("")}b.timeZoneId_=w;w=Y;w==0?w="UTC":(V=["UTC",w<0?"+":"-"],w=Math.abs(w),V.push(Math.floor(w/60)%100),w%=60,w!=0&&V.push(":",w),w=V.join(""));Y=oto(Y);b.tzNames_=[w,w];b.tzNamesExt_={STD_LONG_NAME_GMT:Y,STD_GENERIC_LOCATION:Y};b.transitions_=[];return b}b=new mVI;b.timeZoneId_=Y.id;b.standardOffset_=-Y.std_offset;b.tzNames_=Y.names;
b.tzNamesExt_=Y.names_ext;b.transitions_=Y.transitions;return b},oto=function(Y){var b=["GMT"];
b.push(Y<=0?"+":"-");Y=Math.abs(Y);b.push(_.EI(Math.floor(Y/60)%100,2),":",_.EI(Y%60,2));return b.join("")},I7d=function(Y,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;
for(var w=0;w<Y.transitions_.length&&b>=Y.transitions_[w];)w+=2;return w==0?0:Y.transitions_[w-1]},kx$=function(Y,b){Y=Y.standardOffset_-I7d(Y,b);
return Y===-1440?0:Y};var $t=function(Y,b){this.patternParts_=[];this.JSC$9352_dateTimeSymbols_=b||O1;typeof Y=="number"?l7U(this,Y):hMQ(this,Y)},xV_=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],jw=function(Y){return Y.getHours?Y.getHours():0},hMQ=function(Y,b){for(uKe&&(b=b.replace(/\u200f/g,""));b;){for(var w=b,V=0;V<xV_.length;++V){var H=b.match(xV_[V]);
if(H){var f=H[0];b=b.substring(f.length);V==0&&(f=="''"?f="'":(f=f.substring(1,H[1]=="'"?f.length-1:f.length),f=f.replace(/''/g,"'")));Y.patternParts_.push({text:f,type:V});break}}if(w===b)throw Error("Xd`"+b);}};
$t.prototype.format=function(Y,b){if(!Y)throw Error("Yd");var w=b?(Y.getTimezoneOffset()-kx$(b,Y))*6E4:0,V=w?new Date(Y.getTime()+w):Y,H=V;b&&V.getTimezoneOffset()!=Y.getTimezoneOffset()&&(V=new Date(V.getTime()+(V.getTimezoneOffset()-Y.getTimezoneOffset())*6E4),H=new Date(Y.getTime()+(w+(w>0?-864E5:864E5))));w=[];for(var f=0;f<this.patternParts_.length;++f){var E=this.patternParts_[f].text;1==this.patternParts_[f].type?w.push(qfI(this,E,Y,V,H,b)):w.push(E)}return w.join("")};
var l7U=function(Y,b){if(b<4)var w=Y.JSC$9352_dateTimeSymbols_.DATEFORMATS[b];else if(b<8)w=Y.JSC$9352_dateTimeSymbols_.TIMEFORMATS[b-4];else if(b<12)w=Y.JSC$9352_dateTimeSymbols_.DATETIMEFORMATS[b-8],w=w.replace("{1}",Y.JSC$9352_dateTimeSymbols_.DATEFORMATS[b-8]),w=w.replace("{0}",Y.JSC$9352_dateTimeSymbols_.TIMEFORMATS[b-8]);else if(b===12)w=Y.JSC$9352_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(b===13)w=Y.JSC$9352_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{l7U(Y,10);return}hMQ(Y,w)},GP=function(Y,b){b=String(b);
Y=Y.JSC$9352_dateTimeSymbols_||O1;if(Y.ZERODIGIT!==void 0&&!JIK){for(var w=[],V=0;V<b.length;V++){var H=b.charCodeAt(V);w.push(48<=H&&H<=57?String.fromCharCode(Y.ZERODIGIT+H-48):b.charAt(V))}b=w.join("")}return b},JIK=!1,uKe=!1,Q8C=function(Y,b,w,V){w=w.getFullYear();
w<=0&&V&&(w=1-w);return GP(Y,s8U(w,b))},s8U=function(Y,b){b==2&&(Y%=100);
Y<0&&b++;return _.EI(Y,b)},TP=function(Y){if(!(Y.getHours&&Y.getSeconds&&Y.getMinutes))throw Error("Zd");
},vtk=function(Y,b){TP(b);
b=jw(b);return Y.JSC$9352_dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},qfI=function(Y,b,w,V,H,f){var E=b.length;
switch(b.charAt(0)){case "G":return w=V.getFullYear()>0?1:0,E>=4?Y.JSC$9352_dateTimeSymbols_.ERANAMES[w]:Y.JSC$9352_dateTimeSymbols_.ERAS[w];case "y":return Q8C(Y,E,V,!0);case "Y":return w=(new Date(ZzQ(V.getFullYear(),V.getMonth(),V.getDate(),Y.JSC$9352_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,Y.JSC$9352_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),E==2&&(w%=100),GP(Y,s8U(w,E));case "u":return Q8C(Y,E,V,!1);case "M":a:switch(w=V.getMonth(),E){case 5:E=Y.JSC$9352_dateTimeSymbols_.NARROWMONTHS[w];break a;
case 4:E=Y.JSC$9352_dateTimeSymbols_.MONTHS[w];break a;case 3:E=Y.JSC$9352_dateTimeSymbols_.SHORTMONTHS[w];break a;default:E=GP(Y,_.EI(w+1,E))}return E;case "k":return TP(H),GP(Y,_.EI(jw(H)||24,E));case "S":return GP(Y,(H.getMilliseconds()/1E3).toFixed(Math.min(3,E)).slice(2)+(E>3?_.EI(0,E-3):""));case "E":return w=V.getDay(),E>=4?Y.JSC$9352_dateTimeSymbols_.WEEKDAYS[w]:Y.JSC$9352_dateTimeSymbols_.SHORTWEEKDAYS[w];case "a":return vtk(Y,H);case "b":return vtk(Y,H);case "B":return vtk(Y,H);case "h":return TP(H),
GP(Y,_.EI(jw(H)%12||12,E));case "K":return TP(H),GP(Y,_.EI(jw(H)%12,E));case "H":return TP(H),GP(Y,_.EI(jw(H),E));case "c":a:switch(w=V.getDay(),E){case 5:E=Y.JSC$9352_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[w];break a;case 4:E=Y.JSC$9352_dateTimeSymbols_.STANDALONEWEEKDAYS[w];break a;case 3:E=Y.JSC$9352_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[w];break a;default:E=GP(Y,_.EI(w,1))}return E;case "L":a:switch(w=V.getMonth(),E){case 5:E=Y.JSC$9352_dateTimeSymbols_.STANDALONENARROWMONTHS[w];break a;
case 4:E=Y.JSC$9352_dateTimeSymbols_.STANDALONEMONTHS[w];break a;case 3:E=Y.JSC$9352_dateTimeSymbols_.STANDALONESHORTMONTHS[w];break a;default:E=GP(Y,_.EI(w+1,E))}return E;case "Q":return w=Math.floor(V.getMonth()/3),E<4?Y.JSC$9352_dateTimeSymbols_.SHORTQUARTERS[w]:Y.JSC$9352_dateTimeSymbols_.QUARTERS[w];case "d":return GP(Y,_.EI(V.getDate(),E));case "m":return TP(H),GP(Y,_.EI(H.getMinutes?H.getMinutes():0,E));case "s":return TP(H),GP(Y,_.EI(H.getSeconds(),E));case "v":return(f||yK(w.getTimezoneOffset())).timeZoneId_;
case "V":return Y=f||yK(w.getTimezoneOffset()),E<=2?Y.timeZoneId_:I7d(Y,w)>0?Y.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?Y.tzNamesExt_.DST_GENERIC_LOCATION:Y.tzNamesExt_.DST_GENERIC_LOCATION:Y.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?Y.tzNamesExt_.STD_GENERIC_LOCATION:Y.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return w=ZzQ(H.getFullYear(),H.getMonth(),H.getDate(),Y.JSC$9352_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,Y.JSC$9352_dateTimeSymbols_.FIRSTDAYOFWEEK),GP(Y,_.EI(Math.floor(Math.round((w-(new Date((new Date(w)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,E));case "z":return Y=f||yK(w.getTimezoneOffset()),E<4?Y.tzNames_[I7d(Y,w)>0?2:0]:Y.tzNames_[I7d(Y,w)>0?3:1];case "Z":return b=f||yK(w.getTimezoneOffset()),E<4?(E=-kx$(b,w),Y=[E<0?"-":"+"],E=Math.abs(E),Y.push(_.EI(Math.floor(E/60)%100,2),_.EI(E%60,2)),E=Y.join("")):E=GP(Y,oto(kx$(b,w))),E;default:return""}};var P35=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Z85=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,lOq=function(Y){this.patternParts_=[];this.JSC$9361_dateTimeSymbols_=O1;if(typeof Y=="number"){Y>11&&(Y=10);if(Y<4)var b=this.JSC$9361_dateTimeSymbols_.DATEFORMATS[Y];else Y<8?b=this.JSC$9361_dateTimeSymbols_.TIMEFORMATS[Y-4]:(b=this.JSC$9361_dateTimeSymbols_.DATETIMEFORMATS[Y-8],b=b.replace("{1}",this.JSC$9361_dateTimeSymbols_.DATEFORMATS[Y-8]),b=b.replace("{0}",this.JSC$9361_dateTimeSymbols_.TIMEFORMATS[Y-
8]));Bb$(this,b)}else Bb$(this,Y)},Bb$=function(Y,b){for(var w=!1,V="",H=0;H<b.length;H++){var f=b.charAt(H);
if(P35.test(f))for(V.length>0&&(Y.patternParts_.push({text:V,count:0,abutStart:!1,numeric:!1}),V=""),Y.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});H<b.length-1&&b.charAt(H+1)==" ";)H++;else if(w)f=="'"?H+1<b.length&&b.charAt(H+1)=="'"?(V+="'",H++):w=!1:V+=f;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(f)>=0){V.length>0&&(Y.patternParts_.push({text:V,count:0,abutStart:!1,numeric:!1}),V="");for(var E=b.charAt(H),U=H+1;U<b.length&&b.charAt(U)==E;)U++;E=U-H;E<=0?U=!1:(U="MydhHmsSDkK".indexOf(f),
U=U>0||U==0&&E<3);Y.patternParts_.push({text:f,count:E,abutStart:!1,numeric:U});H+=E-1}else f=="'"?H+1<b.length&&b.charAt(H+1)=="'"?(V+="'",H++):w=!0:V+=f}V.length>0&&Y.patternParts_.push({text:V,count:0,abutStart:!1,numeric:!1});b=!1;for(w=0;w<Y.patternParts_.length;w++)Y.patternParts_[w].numeric?!b&&w+1<Y.patternParts_.length&&Y.patternParts_[w+1].numeric&&(b=!0,Y.patternParts_[w].abutStart=!0):b=!1};
lOq.prototype.parse=function(Y,b,w){var V=!1,H=!1;w&&(V=w.predictive||!1,H=w.validate||!1);if(V)for(w=0;w<this.patternParts_.length;w++){var f=this.patternParts_[w];if(f.count>0&&("abBhHkKm".indexOf(f.text.charAt(0))<0||f.count>2||f.abutStart))throw Error("$d`"+f.text.charAt(0));}f=new ntd;w=[0];f.dayPeriodIndex=-1;for(var E=0;E<this.patternParts_.length&&!(V&&w[0]>=Y.length);E++){if(this.patternParts_[E].count==0){a:{var U=Y;var X=w,I=this.patternParts_[E],k=V;if(I.text.match(P35)!=null){if(I=X[0],
Ml$(U,X),X[0]>I){U=!0;break a}}else{if(U.indexOf(I.text,X[0])==X[0]){X[0]+=I.text.length;U=!0;break a}if(k&&I.text.indexOf(U.substring(X[0]))==0){X[0]+=U.length-X[0];U=!0;break a}}U=!1}if(U)continue;return 0}if(this.patternParts_[E].abutStart){a:{X=Y;I=w;k=E;var l=I[0],x=0;for(U=k;U<this.patternParts_.length;U++){var Q=this.patternParts_[U],Z=Q.count;if(Z===0)break;if(U==k&&(Z-=x,x++,Z==0)){U=0;break a}var e=U>k&&Q.numeric,O=I[0];if(!eMU(this,X,I,Q,Z,f,!1)||e&&I[0]-O<Z)U=k-1,I[0]=l}U-=k}if(U<=0)return 0;
E+=U-1}else if(!eMU(this,Y,w,this.patternParts_[E],0,f,V))return 0}a:{Y=H;if(b==null)throw Error("ae");f.era!=void 0&&f.year!=void 0&&f.era==0&&f.year>0&&(f.year=-(f.year-1));f.year!=void 0&&b.setFullYear(f.year);V=b.getDate();b.setDate(1);f.month!=void 0&&b.setMonth(f.month);f.day!=void 0?b.setDate(f.day):(H=CTM(b.getFullYear(),b.getMonth()),b.setDate(V>H?H:V));typeof b.setHours==="function"&&(f.hours==void 0&&(f.hours=b.getHours()),f.hours<12&&(f.ampm!=void 0&&f.ampm>0?f.hours+=12:f.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(f.dayPeriodName)||["night1","night2"].includes(f.dayPeriodName)&&f.hours>=6)&&(f.hours+=12)),b.setHours(f.hours));typeof b.setMinutes==="function"&&f.minutes!=void 0&&b.setMinutes(f.minutes);typeof b.setSeconds==="function"&&f.seconds!=void 0&&b.setSeconds(f.seconds);typeof b.setMilliseconds==="function"&&f.milliseconds!=void 0&&b.setMilliseconds(f.milliseconds);if(Y&&(f.year&&f.year!=b.getFullYear()||f.month&&f.month!=
b.getMonth()||f.day&&f.day!=b.getDate()||f.hours&&f.hours>=24||f.minutes&&f.minutes>=60||f.seconds&&f.seconds>=60||f.milliseconds&&f.milliseconds>=1E3))b=!1;else{f.tzOffset!=void 0&&b.setTime(b.getTime()+(f.tzOffset-b.getTimezoneOffset())*60*1E3);f.ambiguousYear&&(Y=new Date,Y.setFullYear(Y.getFullYear()-80),b.getTime()<Y.getTime()&&b.setFullYear(Y.getFullYear()+100));if(f.dayOfWeek!=void 0)if(f.day==void 0)f=(7+f.dayOfWeek-b.getDay())%7,f>3&&(f-=7),Y=b.getMonth(),b.setDate(b.getDate()+f),b.getMonth()!=
Y&&b.setDate(b.getDate()+(f>0?-7:7));else if(f.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?w[0]:0};
var eMU=function(Y,b,w,V,H,f,E){Ml$(b,w);if(V.numeric&&H>0&&w[0]+H>b.length)return!1;switch(V.text.charAt(0)){case "G":return Jo(b,w,[Y.JSC$9361_dateTimeSymbols_.ERAS],function(U){return f.era=U}),!0;
case "M":case "L":return p$K(Y,b,w,H,V,f);case "E":return Jo(b,w,[Y.JSC$9361_dateTimeSymbols_.WEEKDAYS,Y.JSC$9361_dateTimeSymbols_.SHORTWEEKDAYS],function(U){return f.dayOfWeek=U});
case "B":case "b":return H=[],Y=[[].concat(Y.JSC$9361_dateTimeSymbols_.AMPMS)],H.push("isAm"),H.push("isPm"),b=Jo(b,w,Y,function(U){return f.dayPeriodIndex=U},E),f.dayPeriodName=H[f.dayPeriodIndex],E?b:!0;
case "a":return b=Jo(b,w,[Y.JSC$9361_dateTimeSymbols_.AMPMS],function(U){return f.ampm=U},E),E?b:!0;
case "y":return O88(Y,b,w,V,H,f);case "Q":return Jo(b,w,[Y.JSC$9361_dateTimeSymbols_.QUARTERS,Y.JSC$9361_dateTimeSymbols_.SHORTQUARTERS],function(U){f.month=U*3;f.day=1});
case "d":return u6(Y,b,w,V,H,function(U){f.day=U}),!0;
case "S":return tl5(Y,b,w,H,f);case "h":case "K":case "H":case "k":return b=u6(Y,b,w,V,H,function(U){f.hours=V.text.charAt(0)==="h"&&U===12?0:U},E),E?b:!0;
case "m":return b=u6(Y,b,w,V,H,function(U){f.minutes=U},E),E?b:!0;
case "s":return u6(Y,b,w,V,H,function(U){f.seconds=U}),!0;
case "z":case "Z":case "v":return RMj(Y,b,w,f);default:return!1}},O88=function(Y,b,w,V,H,f){var E=w[0];
H=Y$(Y,b,w,H);H===null&&(H=Y$(Y,b,w,0,!0));if(H===null)return!1;H>=0&&w[0]-E==2&&V.count==2?(Y=H,b=(new Date).getFullYear()-80,w=b%100,f.ambiguousYear=Y==w,Y+=Math.floor(b/100)*100+(Y<w?100:0),f.year=Y):f.year=H;return!0},p$K=function(Y,b,w,V,H,f){return H.numeric&&u6(Y,b,w,H,V,function(E){f.month=E-1})?!0:Jo(b,w,[Y.JSC$9361_dateTimeSymbols_.MONTHS,
Y.JSC$9361_dateTimeSymbols_.STANDALONEMONTHS,Y.JSC$9361_dateTimeSymbols_.SHORTMONTHS,Y.JSC$9361_dateTimeSymbols_.STANDALONESHORTMONTHS],function(E){f.month=E})},tl5=function(Y,b,w,V,H){var f=w[0];
Y=Y$(Y,b,w,V);if(Y===null)return!1;w=w[0]-f;H.milliseconds=w<3?Y*Math.pow(10,3-w):Math.round(Y/Math.pow(10,w-3));return!0},RMj=function(Y,b,w,V){b.indexOf("GMT",w[0])==w[0]&&(w[0]+=3);
if(w[0]>=b.length)return V.tzOffset=0,!0;var H=w[0],f=Y$(Y,b,w,0,!0);if(f===null)return!1;if(w[0]<b.length&&b.charAt(w[0])==":"){var E=f*60;w[0]++;f=Y$(Y,b,w,0);if(f===null)return!1;E+=f}else E=f,E=E<24&&w[0]-H<=3?E*60:E%100+E/100*60;V.tzOffset=-E;return!0},u6=function(Y,b,w,V,H,f,E){E=E||!1;
var U=w[0];Y=Y$(Y,b,w,H);if(Y===null)return!1;if(E&&w[0]-U<V.count){if(w[0]<b.length)return!1;Y*=Math.pow(10,V.count-(w[0]-U))}f(Y);return!0},Jo=function(Y,b,w,V,H){H=H||!1;
for(var f,E=0;E<w.length;E++){f=b;for(var U=w[E],X=H,I=0,k=null,l=Y.substring(f[0]).toLowerCase(),x=0;x<U.length;x++){var Q=U[x].toLowerCase();if(X&&Q.indexOf(l)==0){I=l.length;k=x;break}U[x].length>I&&l.indexOf(Q)==0&&(I=U[x].length,k=x)}k!==null&&(f[0]+=I);f=k;if(f!==null)return V(f),!0}return!1},Ml$=function(Y,b){(Y=Y.substring(b[0]).match(Z85))&&(b[0]+=Y[0].length)},Y$=function(Y,b,w,V,H){b=V>0?b.substring(0,w[0]+V):b;
H=H||!1;if(Y.JSC$9361_dateTimeSymbols_.ZERODIGIT){V=[];for(var f=w[0];f<b.length;f++){var E=b.charCodeAt(f)-Y.JSC$9361_dateTimeSymbols_.ZERODIGIT;V.push(0<=E&&E<=9?String.fromCharCode(E+48):b.charAt(f))}b=V.join("")}else b=b.substring(w[0]);Y=b.match(new RegExp("^"+(H?"[+-]?":"")+"\\d+"));if(!Y)return null;w[0]+=Y[0].length;return parseInt(Y[0],10)},ntd=function(){};
ntd.prototype.ambiguousYear=!1;_.dVI={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 FRQ={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"},LRd=FRQ,Sfr=FRQ;Sfr=LRd=FRQ;var rr9,bM,VV,dAu,wL,a7o;
_.i3=function(Y,b,w,V){var H;if(H=b){a:if(b&&b.length===3){for(H=0;H<3;H++){var f=b[H];if(f<"A"||f>"Z"&&f<"a"||f>"z"){H=!1;break a}}H=!0}else H=!1;H=!H}if(H)throw new TypeError("be");this.intlCurrencyCode_=b?b.toUpperCase():null;this.currencyStyle_=w||0;this.overrideNumberFormatSymbols_=V||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_=bM(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof Y==="number")switch(Y){case 1:wL(this,bM(this).DECIMAL_PATTERN);break;case 2:wL(this,bM(this).SCIENTIFIC_PATTERN);break;case 3:wL(this,bM(this).PERCENT_PATTERN);break;case 4:Y=bM(this).CURRENCY_PATTERN;b=["0"];if(w=
$8[VV(this)]){w=w[0]&7;if(w>0)for(b.push("."),V=0;V<w;V++)b.push("0");Y=Y.replace(/0.00/g,b.join(""))}wL(this,Y);break;case 5:a7o(this,1);break;case 6:a7o(this,2);break;default:throw Error("ee");}else wL(this,Y)};
rr9=!1;bM=function(Y){return Y.overrideNumberFormatSymbols_||(rr9?Sfr:LRd)};
VV=function(Y){return Y.intlCurrencyCode_||bM(Y).DEF_CURRENCY_CODE};
dAu=function(Y,b){if(b>308)throw Error("de`"+b);Y.maximumFractionDigits_=b;return Y};
wL=function(Y,b){var w=[0];Y.positivePrefix_=zMd(Y,b,w);for(var V=w[0],H=-1,f=0,E=0,U=0,X=-1,I=b.length,k=!0;w[0]<I&&k;w[0]++)switch(b.charAt(w[0])){case "#":E>0?U++:f++;X>=0&&H<0&&X++;break;case "0":if(U>0)throw Error("ke`"+b);E++;X>=0&&H<0&&X++;break;case ",":X>0&&Y.groupingArray_.push(X);X=0;break;case ".":if(H>=0)throw Error("le`"+b);H=f+E+U;break;case "E":if(Y.useExponentialNotation_)throw Error("me`"+b);Y.useExponentialNotation_=!0;Y.minExponentDigits_=0;w[0]+1<I&&b.charAt(w[0]+1)=="+"&&(w[0]++,
Y.useSignForPositiveExponent_=!0);for(;w[0]+1<I&&b.charAt(w[0]+1)=="0";)w[0]++,Y.minExponentDigits_++;if(f+E<1||Y.minExponentDigits_<1)throw Error("ne`"+b);k=!1;break;default:w[0]--,k=!1}E==0&&f>0&&H>=0&&(E=H,E==0&&E++,U=f-E,f=E-1,E=1);if(H<0&&U>0||H>=0&&(H<f||H>f+E)||X==0)throw Error("oe`"+b);U=f+E+U;Y.maximumFractionDigits_=H>=0?U-H:0;H>=0&&(Y.minimumFractionDigits_=f+E-H,Y.minimumFractionDigits_<0&&(Y.minimumFractionDigits_=0));Y.minimumIntegerDigits_=(H>=0?H:U)-f;Y.useExponentialNotation_&&(Y.maximumIntegerDigits_=
f+Y.minimumIntegerDigits_,Y.maximumFractionDigits_==0&&Y.minimumIntegerDigits_==0&&(Y.minimumIntegerDigits_=1));Y.groupingArray_.push(Math.max(0,X));Y.decimalSeparatorAlwaysShown_=H==0||H==U;V=w[0]-V;Y.positiveSuffix_=zMd(Y,b,w);w[0]<b.length&&b.charAt(w[0])==";"?(w[0]++,Y.multiplier_!=1&&(Y.negativePercentSignExpected_=!0),Y.negativePrefix_=zMd(Y,b,w),w[0]+=V,Y.negativeSuffix_=zMd(Y,b,w)):(Y.negativePrefix_+=Y.positivePrefix_,Y.negativeSuffix_+=Y.positiveSuffix_)};
a7o=function(Y,b){Y.compactStyle_=b;wL(Y,bM(Y).DECIMAL_PATTERN);Y.minimumFractionDigits_=0;dAu(Y,2);if(Y.minimumFractionDigits_>0)throw Error("ce");Y.significantDigits_=2};
_.i3.prototype.parse=function(Y,b){b=b||[0];if(this.compactStyle_!==0)throw Error("fe");Y=Y.replace(/ |\u202f/g,"\u00a0");var w=Y.indexOf(this.positivePrefix_,b[0])==b[0],V=Y.indexOf(this.negativePrefix_,b[0])==b[0];w&&V&&(this.positivePrefix_.length>this.negativePrefix_.length?V=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(w=!1));w?b[0]+=this.positivePrefix_.length:V&&(b[0]+=this.negativePrefix_.length);if(Y.indexOf(bM(this).INFINITY,b[0])==b[0]){b[0]+=bM(this).INFINITY.length;var H=
Infinity}else{H=Y;var f=!1,E=!1,U=!1,X=-1,I=1,k=bM(this).DECIMAL_SEP,l=bM(this).GROUP_SEP,x=bM(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ge");l=l.replace(/\u202f/g,"\u00a0");for(var Q="";b[0]<H.length;b[0]++){var Z=H.charAt(b[0]),e=WRC(this,Z);if(e>=0&&e<=9)Q+=e,U=!0;else if(Z==k.charAt(0)){if(f||E)break;Q+=".";f=!0}else if(Z==l.charAt(0)&&("\u00a0"!=l.charAt(0)||b[0]+1<H.length&&WRC(this,H.charAt(b[0]+1))>=0)){if(f||E)break}else if(Z==x.charAt(0)){if(E)break;Q+="E";E=!0;X=b[0]}else if(Z==
"+"||Z=="-"){if(U&&X!=b[0]-1)break;Q+=Z}else if(this.multiplier_==1&&Z==bM(this).PERCENT.charAt(0)){if(I!=1)break;I=100;if(U){b[0]++;break}}else if(this.multiplier_==1&&Z==bM(this).PERMILL.charAt(0)){if(I!=1)break;I=1E3;if(U){b[0]++;break}}else break}this.multiplier_!=1&&(I=this.multiplier_);H=parseFloat(Q)/I}if(w){if(Y.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(V){if(Y.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return V?
-H:H};
_.i3.prototype.format=function(Y){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("he");if(isNaN(Y))return bM(this).NAN;var b=[];var w=Y;if(this.compactStyle_==0)w=HU;else{w=Math.abs(w);var V=KRk(this,w<=1?0:i8K(w)).divisorBase;w=KRk(this,V+i8K(Arj(this,gL(w,-V)).intValue))}Y=gL(Y,-w.divisorBase);(V=Y<0||Y==0&&1/Y<0)?w.negative_prefix?b.push(w.negative_prefix):(b.push(w.prefix),b.push(this.negativePrefix_)):(b.push(w.prefix),b.push(this.positivePrefix_));if(isFinite(Y))if(Y*=
V?-1:1,Y*=this.multiplier_,this.useExponentialNotation_){var H=Y;if(H==0)C3U(this,H,this.minimumIntegerDigits_,b),yr$(this,0,b);else{var f=Math.floor(Math.log(H)/Math.log(10)+2E-15);H=gL(H,-f);var E=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(E=f%this.maximumIntegerDigits_,E<0&&(E=this.maximumIntegerDigits_+E),H=gL(H,E),f-=E,E=1):this.minimumIntegerDigits_<1?(f++,H=gL(H,-1)):(f-=this.minimumIntegerDigits_-1,H=gL(H,this.minimumIntegerDigits_-
1));C3U(this,H,E,b);yr$(this,f,b)}}else C3U(this,Y,this.minimumIntegerDigits_,b);else b.push(bM(this).INFINITY);V?w.negative_suffix?b.push(w.negative_suffix):(isFinite(Y)&&b.push(w.suffix),b.push(this.negativeSuffix_)):(isFinite(Y)&&b.push(w.suffix),b.push(this.positiveSuffix_));return b.join("")};
var Arj=function(Y,b){var w=gL(b,Y.maximumFractionDigits_);Y.significantDigits_>0&&(w=$V8(w,Y.significantDigits_,Y.maximumFractionDigits_));w=Math.round(w);if(isFinite(w)){var V=Math.floor(gL(w,-Y.maximumFractionDigits_));w=Math.floor(w-gL(V,Y.maximumFractionDigits_));if(w<0||w>=gL(1,Y.maximumFractionDigits_))V=Math.round(b),w=0}else V=b,w=0;return{intValue:V,fracValue:w}},C3U=function(Y,b,w,V){if(Y.minimumFractionDigits_>Y.maximumFractionDigits_)throw Error("he");
V||(V=[]);b=Arj(Y,b);var H=b.intValue,f=b.fracValue,E=Y.minimumFractionDigits_>0||f>0||!1;b=Y.minimumFractionDigits_;E&&(b=Y.minimumFractionDigits_);for(var U="",X=H;X>1E20;)U="0"+U,X=Math.round(gL(X,-1));U=X+U;var I=bM(Y).DECIMAL_SEP;X=bM(Y).ZERO_DIGIT.codePointAt(0);var k=U.length,l=0;if(H>0||w>0){for(H=k;H<w;H++)V.push(String.fromCodePoint(X));if(Y.groupingArray_.length>=2)for(w=1;w<Y.groupingArray_.length;w++)l+=Y.groupingArray_[w];w=k-l;if(w>0){H=Y.groupingArray_;l=k=0;for(var x,Q=bM(Y).GROUP_SEP,
Z=U.length,e=0;e<Z;e++)if(V.push(String.fromCodePoint(X+Number(U.charAt(e)))),Z-e>1)if(x=H[l],e<w){var O=w-e;(x===1||x>0&&O%x===1)&&V.push(Q)}else l<H.length&&(e===w?l+=1:x===e-w-k+1&&(V.push(Q),k+=x,l+=1))}else{w=U;U=Y.groupingArray_;H=bM(Y).GROUP_SEP;x=w.length;Q=[];for(k=U.length-1;k>=0&&x>0;k--){l=U[k];for(Z=0;Z<l&&x-Z-1>=0;Z++)Q.push(String.fromCodePoint(X+Number(w.charAt(x-Z-1))));x-=l;x>0&&Q.push(H)}V.push.apply(V,Q.reverse())}}else E||V.push(String.fromCodePoint(X));(Y.decimalSeparatorAlwaysShown_||
E)&&V.push(I);f=String(f);E=f.split("e+");E.length==2&&(f=String($V8(parseFloat(E[0]),Y.significantDigits_,1)),f=f.replace(".",""),f+=(0,_.zIr)("0",parseInt(E[1],10)-f.length+1));Y.maximumFractionDigits_+1>f.length&&(f="1"+(0,_.zIr)("0",Y.maximumFractionDigits_-f.length)+f);for(Y=f.length;f.charAt(Y-1)=="0"&&Y>b+1;)Y--;for(b=1;b<Y;b++)V.push(String.fromCodePoint(X+Number(f.charAt(b))))},yr$=function(Y,b,w){w.push(bM(Y).EXP_SYMBOL);
b<0?(b=-b,w.push(bM(Y).MINUS_SIGN)):Y.useSignForPositiveExponent_&&w.push(bM(Y).PLUS_SIGN);b=""+b;for(var V=bM(Y).ZERO_DIGIT,H=b.length;H<Y.minExponentDigits_;H++)w.push(V);Y=V.codePointAt(0)-j8d;for(V=0;V<b.length;V++)w.push(String.fromCodePoint(Y+b.codePointAt(V)))},WRC=function(Y,b){b=b.codePointAt(0);
if(48<=b&&b<58)return b-48;Y=bM(Y).ZERO_DIGIT.codePointAt(0);return Y<=b&&b<Y+10?b-Y:-1},j8d="0".codePointAt(0),zMd=function(Y,b,w){for(var V="",H=!1,f=b.length;w[0]<f;w[0]++){var E=b.charAt(w[0]);
if(E=="'")w[0]+1<f&&b.charAt(w[0]+1)=="'"?(w[0]++,V+="'"):H=!H;else if(H)V+=E;else switch(E){case "#":case "0":case ",":case ".":case ";":return V;case "\u00a4":if(w[0]+1<f&&b.charAt(w[0]+1)=="\u00a4")w[0]++,V+=VV(Y);else switch(Y.currencyStyle_){case 0:E=VV(Y);V+=E in $8?$8[E][1]:E;break;case 2:E=VV(Y);var U=$8[E];V+=U?E==U[1]?E:E+" "+U[1]:E;break;case 1:E=VV(Y),V+=E in $8?$8[E][2]:E}break;case "%":if(!Y.negativePercentSignExpected_&&Y.multiplier_!=1)throw Error("ie");if(Y.negativePercentSignExpected_&&
Y.multiplier_!=100)throw Error("je");Y.multiplier_=100;Y.negativePercentSignExpected_=!1;V+=bM(Y).PERCENT;break;case "\u2030":if(!Y.negativePercentSignExpected_&&Y.multiplier_!=1)throw Error("ie");if(Y.negativePercentSignExpected_&&Y.multiplier_!=1E3)throw Error("je");Y.multiplier_=1E3;Y.negativePercentSignExpected_=!1;V+=bM(Y).PERMILL;break;default:V+=E}}return V},HU={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},KRk=function(Y,b){Y=Y.compactStyle_==1?yI.COMPACT_DECIMAL_SHORT_PATTERN:yI.COMPACT_DECIMAL_LONG_PATTERN;Y==null&&(Y=yI.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return HU;b=Math.min(14,b);var w=Y[gL(1,b)];for(--b;!w&&b>=3;)w=Y[gL(1,b)],b--;if(!w)return HU;w=w.other;var V=Y="",H=w.indexOf(";");H>=0&&(w=w.substring(0,H),H=w.substring(H+1))&&(V=/([^0]*)(0+)(.*)/.exec(H),Y=V[1],V=V[3]);return w&&w!="0"?(w=/([^0]*)(0+)(.*)/.exec(w))?{divisorBase:b+
1-(w[2].length-1),negative_prefix:Y,negative_suffix:V,prefix:w[1],suffix:w[3]}:HU:HU},i8K=function(Y){if(!isFinite(Y))return Y>0?Y:0;
for(var b=0;(Y/=10)>=1;)b++;return b},gL=function(Y,b){if(!Y||!isFinite(Y)||b==0)return Y;
Y=String(Y).split("e");return parseFloat(Y[0]+"e"+(parseInt(Y[1]||0,10)+b))},Gxo=function(Y,b){return Y&&isFinite(Y)?gL(Math.round(gL(Y,b)),-b):Y},$V8=function(Y,b,w){if(!Y)return Y;
b=b-i8K(Y)-1;return b<-w?Gxo(Y,-w):Gxo(Y,b)};var TbQ=function(Y){return Y%10==1&&Y%100!=11?"one":Y%10==2&&Y%100!=12?"two":Y%10==3&&Y%100!=13?"few":"other"},Jrt=TbQ;
Jrt=TbQ;var uZj;uZj=function(Y,b){var w=Y|0;if(void 0===b){b=Math;var V=b.min,H=Y+"",f=H.indexOf(".");b=V.call(b,f===-1?0:H.length-f-1,3)}V=Math.pow(10,b);Y={v:b,f:(Y*V|0)%V};return w==1&&Y.v==0?"one":"other"};
_.jl=uZj;_.jl=uZj;var YCt,bXo,wHk,HXd,gy5;_.VyK=function(Y){this.JSC$9404_pattern_=Y;this.parsedPattern_=this.literals_=this.initialLiterals_=null;Y=LRd;var b=yI;if(YCt!==Y||bXo!==b)YCt=Y,bXo=b,wHk=new _.i3(1);this.numberFormatter_=wHk};
YCt=null;bXo=null;wHk=null;HXd=RegExp("'([{}#].*?)'","g");gy5=RegExp("''","g");
_.VyK.prototype.format=function(Y){if(this.JSC$9404_pattern_){this.initialLiterals_=[];var b=f8k(this,this.JSC$9404_pattern_);this.parsedPattern_=Nr$(this,b);this.JSC$9404_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.jL(this.initialLiterals_),b=[],Eyd(this,this.parsedPattern_,Y,!1,b),Y=b.join("");this.literals_.length>0;)Y=Y.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else Y="";return Y};
var Eyd=function(Y,b,w,V,H){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:H.push(b[f].value);break;case 3:var E=b[f].value;var U=Y,X=H,I=w[E];I===void 0?X.push("Undefined parameter - "+E):(U.literals_.push(I),X.push(U.buildPlaceholder_(U.literals_)));break;case 2:E=b[f].value;U=Y;X=w;I=V;var k=H,l=E.argumentIndex;X[l]===void 0?k.push("Undefined parameter - "+l):(l=E[X[l]],l===void 0&&(l=E.other),Eyd(U,l,X,I,k));break;case 0:E=b[f].value;cLQ(Y,E,w,_.jl,V,H);break;case 1:E=b[f].value,cLQ(Y,E,
w,Jrt,V,H)}},cLQ=function(Y,b,w,V,H,f){var E=b.argumentIndex,U=b.argumentOffset,X=+w[E];
isNaN(X)?f.push("Undefined or invalid parameter - "+E):(U=X-U,E=b[w[E]],E===void 0&&(V=V(Math.abs(U)),E=b[V],E===void 0&&(E=b.other)),b=[],Eyd(Y,E,w,H,b),w=b.join(""),H?f.push(w):(Y=Y.numberFormatter_.format(U),f.push(w.replace(/#/g,Y))))},f8k=function(Y,b){var w=Y.initialLiterals_,V=Y.buildPlaceholder_.bind(Y);
b=b.replace(gy5,function(){w.push("'");return V(w)});
return b=b.replace(HXd,function(H,f){w.push(f);return V(w)})},UCo=function(Y){var b=0,w=[],V=[],H=/[{}]/g;
H.lastIndex=0;for(var f;f=H.exec(Y);){var E=f.index;f[0]=="}"?(w.pop(),w.length==0&&(f={type:1},f.value=Y.substring(b,E),V.push(f),b=E+1)):(w.length==0&&(b=Y.substring(b,E),b!=""&&V.push({type:0,value:b}),b=E+1),w.push("{"))}Y=Y.substring(b);Y!=""&&V.push({type:0,value:Y});return V},XHt=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,DC$=/^\s*(\w+)\s*,\s*selectordinal\s*,/,mCQ=/^\s*(\w+)\s*,\s*select\s*,/,Nr$=function(Y,b){var w=[];
b=UCo(b);for(var V=0;V<b.length;V++){var H={};if(0==b[V].type)H.type=4,H.value=b[V].value;else if(1==b[V].type){var f=b[V].value;switch(XHt.test(f)?0:DC$.test(f)?1:mCQ.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:H.type=2;H.value=oy$(Y,b[V].value);break;case 0:H.type=0;H.value=I8r(Y,b[V].value);break;case 1:H.type=1;H.value=kgj(Y,b[V].value);break;case 3:H.type=3,H.value=b[V].value}}w.push(H)}return w},oy$=function(Y,b){var w="";
b=b.replace(mCQ,function(U,X){w=X;return""});
var V={};V.argumentIndex=w;b=UCo(b);for(var H=0;H<b.length;){var f=b[H].value;H++;var E=void 0;1==b[H].type&&(E=Nr$(Y,b[H].value));V[f.replace(/\s/g,"")]=E;H++}return V},I8r=function(Y,b){var w="",V=0;
b=b.replace(XHt,function(X,I,k){w=I;k&&(V=parseInt(k,10));return""});
var H={};H.argumentIndex=w;H.argumentOffset=V;b=UCo(b);for(var f=0;f<b.length;){var E=b[f].value;f++;var U=void 0;1==b[f].type&&(U=Nr$(Y,b[f].value));H[E.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=U;f++}return H},kgj=function(Y,b){var w="";
b=b.replace(DC$,function(U,X){w=X;return""});
var V={};V.argumentIndex=w;V.argumentOffset=0;b=UCo(b);for(var H=0;H<b.length;){var f=b[H].value;H++;var E=void 0;1==b[H].type&&(E=Nr$(Y,b[H].value));V[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=E;H++}return V};
_.VyK.prototype.buildPlaceholder_=function(Y){return"\ufddf_"+(Y.length-1).toString(10)+"_"};var l8o;
l8o={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 wBI=function(){this.rdtfSymbols_=h3r||l8o;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
wBI.prototype.format=function(Y,b){a:{b=xCC(this,b);switch(this.style_){case 2:if(b.NARROW!=void 0){b=b.NARROW;break a}case 1:if(b.SHORT!=void 0){b=b.SHORT;break a}default:b=b.LONG;break a}b=void 0}if(!this.alwaysNumeric_&&b&&b.R&&b.R[""+Y])Y=b.R[""+Y];else if(b){var w=Math.abs(Y);Y=(new _.VyK("{N,plural,"+(Y>0||Y==0&&1/Y==Infinity?b.F:b.P)+"}")).format({N:w})}else Y="";return Y};
var xCC=function(Y,b){switch(b){default:case 0:return Y.rdtfSymbols_.YEAR;case 1:return Y.rdtfSymbols_.QUARTER;case 2:return Y.rdtfSymbols_.MONTH;case 3:return Y.rdtfSymbols_.WEEK;case 4:return Y.rdtfSymbols_.DAY;case 5:return Y.rdtfSymbols_.HOUR;case 6:return Y.rdtfSymbols_.MINUTE;case 7:return Y.rdtfSymbols_.SECOND}};var qCU=function(Y,b,w,V,H,f,E,U){this.x0=Y;this.y0=b;this.x1=w;this.y1=V;this.x2=H;this.y2=f;this.x3=E;this.y3=U};
qCU.prototype.clone=function(){return new qCU(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
qCU.prototype.equals=function(Y){return this.x0==Y.x0&&this.y0==Y.y0&&this.x1==Y.x1&&this.y1==Y.y1&&this.x2==Y.x2&&this.y2==Y.y2&&this.x3==Y.x3&&this.y3==Y.y3};
var sA5=function(Y,b){if(b==0)return Y.x0;if(b==1)return Y.x3;var w=nj(Y.x0,Y.x1,b),V=nj(Y.x1,Y.x2,b);Y=nj(Y.x2,Y.x3,b);w=nj(w,V,b);V=nj(V,Y,b);return nj(w,V,b)},QAK=function(Y,b){var w=(b-Y.x0)/(Y.x3-Y.x0);
if(w<=0)return 0;if(w>=1)return 1;for(var V=0,H=1,f=0,E=0;E<8;E++){f=sA5(Y,w);var U=(sA5(Y,w+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return w;if(Math.abs(U)<1E-6)break;else f<b?V=w:H=w,w-=(f-b)/U}for(E=0;Math.abs(f-b)>1E-6&&E<8;E++)f<b?(V=w,w=(w+H)/2):(H=w,w=(w+V)/2),f=sA5(Y,w);return w};var fi=function(){_.n1.call(this);this.JSC$9425_name_="closure_frame"+vy8++;this.iframesForDisposal_=[];PW5[this.JSC$9425_name_]=this},NM;
_.DX(fi,_.n1);var PW5={},vy8=0,ZX$=function(Y,b){var w=la(Y);_.zH_(b,function(V,H){Array.isArray(V)||(V=[V]);_.$2(V,function(f){f=w.JSC$7365_createDom("INPUT",{type:"hidden",name:H,value:f});Y.appendChild(f)})})};
_.g=fi.prototype;_.g.JSC$9427_form_=null;_.g.JSC$9427_iframe_=null;_.g.iframeName_=null;_.g.nextIframeId_=0;_.g.JSC$9427_active_=!1;_.g.complete_=!1;_.g.success_=!1;_.g.lastContent_=null;_.g.JSC$9427_lastErrorCode_=0;_.g.iframeDisposalTimer_=null;
_.g.send=function(Y,b,w,V){if(this.JSC$9427_active_)throw Error("pe");Y=new _.Jw(Y);b=b?b.toUpperCase():"GET";w&&_.me(Y);NM||(NM=_.OI("FORM"),NM.acceptCharset="utf-8",w=NM.style,w.position="absolute",w.visibility="hidden",w.top=w.left="-10px",w.width=w.height="10px",w.overflow="hidden",document.body.appendChild(NM));this.JSC$9427_form_=NM;b=="GET"&&ZX$(this.JSC$9427_form_,Y.JSC$8068_queryData_);V&&ZX$(this.JSC$9427_form_,V);w=Y.toString();w=Gla(w);V=this.JSC$9427_form_;w=_.M1(Ig(w));w!==void 0&&(V.action=
w);this.JSC$9427_form_.method=b;Br$(this);nyt(this)};
_.g.abort=function(Y){if(this.JSC$9427_active_){var b=E_(this);if(b)if(PV(b))b.removeAllListeners(void 0);else if(b=Zq(b)){var w=0,V;for(V in b.listeners)for(var H=b.listeners[V].concat(),f=0;f<H.length;++f)BP(H[f])&&++w}this.success_=this.JSC$9427_active_=this.complete_=!1;this.JSC$9427_lastErrorCode_=Y||7;this.dispatchEvent("abort");MyC(this)}};
_.g.disposeInternal=function(){this.JSC$9427_active_&&this.abort();fi.superClass_.disposeInternal.call(this);this.JSC$9427_iframe_&&e3U(this);nyt(this);this.JSC$9427_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9427_form_=null;this.JSC$9427_lastErrorCode_=0;delete PW5[this.JSC$9425_name_]};
_.g.isComplete=function(){return this.complete_};
_.g.isSuccess=function(){return this.success_};
_.g.isActive=function(){return this.JSC$9427_active_};
_.g.getResponseText=function(){return this.lastContent_};
_.g.getLastError=function(){return _.lDC(this.JSC$9427_lastErrorCode_)};
var Br$=function(Y){Y.JSC$9427_active_=!0;Y.complete_=!1;Y.JSC$9427_lastErrorCode_=0;Y.iframeName_=Y.JSC$9425_name_+"_"+(Y.nextIframeId_++).toString(36);Y.JSC$9427_iframe_=la(Y.JSC$9427_form_).JSC$7365_createDom("IFRAME",{name:Y.iframeName_,id:Y.iframeName_});var b=Y.JSC$9427_iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";_.hZ?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");la(Y.JSC$9427_form_).JSC$7363_document_.body.appendChild(Y.JSC$9427_iframe_);
b=Y.iframeName_+"_inner";var w=c_9(Y.JSC$9427_iframe_);if(document.baseURI){var V=Xz(b);V='<head><base href="'+Xz(document.baseURI)+'"></head><body><iframe id="'+V+'" name="'+V+'"></iframe>';V=Ou(V)}else V=Xz(b),V=Ou('<body><iframe id="'+V+'" name="'+V+'"></iframe>');w.write(tz(V));_.ez(w.getElementById(b),"load",Y.onIframeLoaded_,!1,Y);V=s2("TEXTAREA",Y.JSC$9427_form_);for(var H=0,f=V.length;H<f;H++){var E=V[H].value;I5d(V[H])!=E&&(_.av(V[H],E),V[H].value=E)}V=w.importNode(Y.JSC$9427_form_,!0);V.target=
b;V.action=Y.JSC$9427_form_.action;w.body.appendChild(V);H=s2("SELECT",Y.JSC$9427_form_);f=s2("SELECT",V);E=0;for(var U=H.length;E<U;E++)for(var X=s2("OPTION",H[E]),I=s2("OPTION",f[E]),k=0,l=X.length;k<l;k++)I[k].selected=X[k].selected;H=s2("INPUT",Y.JSC$9427_form_);f=s2("INPUT",V);E=0;for(U=H.length;E<U;E++)if(H[E].type=="file"&&H[E].value!=f[E].value){Y.JSC$9427_form_.target=b;V=Y.JSC$9427_form_;break}try{Y.errorHandled_=!1,V.submit(),w.close(),_.lL&&setTimeout(Y.testForFirefoxSilentError_.bind(Y),
250)}catch(x){_.BV(w.getElementById(b),"load",Y.onIframeLoaded_,!1,Y),w.close(),cU(Y,2)}};
fi.prototype.onIframeLoaded_=function(){_.BV(E_(this),"load",this.onIframeLoaded_,!1,this);try{var Y=this.JSC$9427_iframe_?c_9(E_(this)):null;this.complete_=!0;this.JSC$9427_active_=!1;try{var b=Y.body;this.lastContent_=b.textContent||b.innerText}catch(H){var w=1}var V;w||typeof this.errorChecker_!="function"||(V=this.errorChecker_(Y))&&(w=4);w?cU(this,w):(this.success_=!0,this.JSC$9427_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),MyC(this))}catch(H){cU(this,1)}};
var cU=function(Y,b){Y.errorHandled_||(Y.success_=!1,Y.JSC$9427_active_=!1,Y.complete_=!0,Y.JSC$9427_lastErrorCode_=b,Y.dispatchEvent("complete"),Y.dispatchEvent("error"),MyC(Y),Y.errorHandled_=!0)},MyC=function(Y){e3U(Y);
nyt(Y);Y.JSC$9427_form_=null;Y.dispatchEvent("ready")},e3U=function(Y){var b=Y.JSC$9427_iframe_;
b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,Y.iframesForDisposal_.push(b));Y.iframeDisposalTimer_&&(clearTimeout(Y.iframeDisposalTimer_),Y.iframeDisposalTimer_=null);_.lL?Y.iframeDisposalTimer_=setTimeout(Y.disposeIframes_.bind(Y),2E3):Y.disposeIframes_();Y.JSC$9427_iframe_=null;Y.iframeName_=null};
fi.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var Y=this.iframesForDisposal_.pop();_.qf(Y)}};
var nyt=function(Y){Y.JSC$9427_form_&&Y.JSC$9427_form_==NM&&_.dm(Y.JSC$9427_form_)},E_=function(Y){return Y.JSC$9427_iframe_?c_9(Y.JSC$9427_iframe_).getElementById(Y.iframeName_+"_inner"):null};
fi.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9427_active_){var Y=this.JSC$9427_iframe_?c_9(E_(this)):null;Y&&!tP(Y,"documentUri")?(_.BV(E_(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?cU(this,3):cU(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.U_=function(Y){return Y=="\r"||Y=="\n"||Y==" "||Y=="\t"};var pHU;_.XL=function(Y){this.errorMessage_=null;this.result_=[];this.JSC$9429_buffer_="";this.stack_=[];this.JSC$9429_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!Y||!Y.deliverMessageAsRawString)};
pHU={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};_.XL.prototype.isInputValid=function(){return this.streamState_!=3};
_.XL.prototype.done=function(){return this.streamState_===2};
var Dy=function(Y,b,w){Y.streamState_=3;Y.errorMessage_="The stream is broken @"+Y.JSC$9429_pos_+"/"+w+". With input:\n"+b;throw Error(Y.errorMessage_);};
_.XL.prototype.acceptsBinaryInput=function(){return!1};
_.XL.prototype.parse=function(Y){function b(){for(;x<Y.length;)if(_.U_(Y[x]))x++,f.JSC$9429_pos_++;else break;return x<I}
function w(){for(var Z;;){Z=Y[x++];if(!Z)break;f.JSC$9429_pos_++;switch(f.state_){case X.INIT:Z==="{"?f.state_=X.OBJECT_OPEN:Z==="["?f.state_=X.ARRAY_OPEN:_.U_(Z)||Dy(f,Y,x);continue;case X.KEY_START:case X.OBJECT_OPEN:if(_.U_(Z))continue;if(f.state_===X.KEY_START)E.push(X.KEY_END);else if(Z==="}"){H("{}");f.state_=V();continue}else E.push(X.OBJECT_END);Z==='"'?f.state_=X.STRING:Dy(f,Y,x);continue;case X.KEY_END:case X.OBJECT_END:if(_.U_(Z))continue;Z===":"?(f.state_===X.OBJECT_END&&(E.push(X.OBJECT_END),
f.depth_++),f.state_=X.VALUE):Z==="}"?(f.depth_--,H(),f.state_=V()):Z===","?(f.state_===X.OBJECT_END&&E.push(X.OBJECT_END),f.state_=X.KEY_START):Dy(f,Y,x);continue;case X.ARRAY_OPEN:case X.VALUE:if(_.U_(Z))continue;if(f.state_===X.ARRAY_OPEN)if(f.depth_++,f.state_=X.VALUE,Z==="]"){f.depth_--;if(f.depth_===0){f.state_=X.ARRAY_END;return}H("[]");f.state_=V();continue}else E.push(X.ARRAY_END);Z==='"'?f.state_=X.STRING:Z==="{"?f.state_=X.OBJECT_OPEN:Z==="["?f.state_=X.ARRAY_OPEN:Z==="t"?f.state_=X.TRUE1:
Z==="f"?f.state_=X.FALSE1:Z==="n"?f.state_=X.NULL1:Z!=="-"&&("0123456789".indexOf(Z)!==-1?f.state_=X.NUM_DIGIT:Dy(f,Y,x));continue;case X.ARRAY_END:if(Z===",")E.push(X.ARRAY_END),f.state_=X.VALUE,f.depth_===1&&(l=x);else if(Z==="]"){f.depth_--;if(f.depth_===0)return;H();f.state_=V()}else if(_.U_(Z))continue;else Dy(f,Y,x);continue;case X.STRING:var e=x;a:for(;;){for(;f.unicodeCount_>0;)if(Z=Y[x++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,!Z)break a;if(Z==='"'&&!f.slashed_){f.state_=
V();break}if(Z==="\\"&&!f.slashed_&&(f.slashed_=!0,Z=Y[x++],!Z))break;if(f.slashed_)if(f.slashed_=!1,Z==="u"&&(f.unicodeCount_=1),Z=Y[x++])continue;else break;U.lastIndex=x;Z=U.exec(Y);if(!Z){x=Y.length+1;break}x=Z.index+1;Z=Y[Z.index];if(!Z)break}f.JSC$9429_pos_+=x-e;continue;case X.TRUE1:if(!Z)continue;Z==="r"?f.state_=X.TRUE2:Dy(f,Y,x);continue;case X.TRUE2:if(!Z)continue;Z==="u"?f.state_=X.TRUE3:Dy(f,Y,x);continue;case X.TRUE3:if(!Z)continue;Z==="e"?f.state_=V():Dy(f,Y,x);continue;case X.FALSE1:if(!Z)continue;
Z==="a"?f.state_=X.FALSE2:Dy(f,Y,x);continue;case X.FALSE2:if(!Z)continue;Z==="l"?f.state_=X.FALSE3:Dy(f,Y,x);continue;case X.FALSE3:if(!Z)continue;Z==="s"?f.state_=X.FALSE4:Dy(f,Y,x);continue;case X.FALSE4:if(!Z)continue;Z==="e"?f.state_=V():Dy(f,Y,x);continue;case X.NULL1:if(!Z)continue;Z==="u"?f.state_=X.NULL2:Dy(f,Y,x);continue;case X.NULL2:if(!Z)continue;Z==="l"?f.state_=X.NULL3:Dy(f,Y,x);continue;case X.NULL3:if(!Z)continue;Z==="l"?f.state_=V():Dy(f,Y,x);continue;case X.NUM_DECIMAL_POINT:Z===
"."?f.state_=X.NUM_DIGIT:Dy(f,Y,x);continue;case X.NUM_DIGIT:if("0123456789.eE+-".indexOf(Z)!==-1)continue;else x--,f.JSC$9429_pos_--,f.state_=V();continue;default:Dy(f,Y,x)}}}
function V(){var Z=E.pop();return Z!=null?Z:X.VALUE}
function H(Z){f.depth_>1||(Z||(Z=l===-1?f.JSC$9429_buffer_+Y.substring(k,x):Y.substring(l,x)),f.deliverMessageAsRawString_?f.result_.push(Z):f.result_.push(JSON.parse(Z)),l=x)}
for(var f=this,E=f.stack_,U=f.stringInputPattern_,X=pHU,I=Y.length,k=0,l=-1,x=0;x<I;)switch(f.streamState_){case 3:return Dy(f,Y,x),null;case 2:return b()&&Dy(f,Y,x),null;case 0:if(b()){var Q=Y[x++];f.JSC$9429_pos_++;if(Q==="["){f.streamState_=1;k=x;f.state_=X.ARRAY_OPEN;continue}else Dy(f,Y,x)}return null;case 1:return w(),f.depth_===0&&f.state_==X.ARRAY_END?(f.streamState_=2,f.JSC$9429_buffer_=Y.substring(x)):f.JSC$9429_buffer_=l===-1?f.JSC$9429_buffer_+Y.substring(k):Y.substring(l),f.result_.length>
0?(Q=f.result_,f.result_=[],Q):null}return null};_.DX(_.ED,Mn);c1.prototype.getValue=function(){return this.JSC$9437_value_};
c1.prototype.clone=function(){return new c1(this.JSC$9437_key_,this.JSC$9437_value_)};var my=function(Y){this.nodes_=[];if(Y)a:{if(Y instanceof my){var b=Y.getKeys();Y=Y.getValues();if(this.getCount()<=0){for(var w=this.nodes_,V=0;V<b.length;V++)w.push(new c1(b[V],Y[V]));break a}}else b=_.BL.getKeys(Y),Y=_.BL.getValues(Y);for(w=0;w<b.length;w++)this.insert(b[w],Y[w])}};
_.g=my.prototype;_.g.insert=function(Y,b){var w=this.nodes_;w.push(new c1(Y,b));Y=w.length-1;b=this.nodes_;for(w=b[Y];Y>0;){var V=Y-1>>1;if(b[V].JSC$9437_key_>w.JSC$9437_key_)b[Y]=b[V],Y=V;else break}b[Y]=w};
_.g.remove=function(){var Y=this.nodes_,b=Y.length,w=Y[0];if(!(b<=0)){if(b==1)Y.length=0;else{Y[0]=Y.pop();Y=0;b=this.nodes_;for(var V=b.length,H=b[Y];Y<V>>1;){var f=Y*2+1,E=Y*2+2;f=E<V&&b[E].JSC$9437_key_<b[f].JSC$9437_key_?E:f;if(b[f].JSC$9437_key_>H.JSC$9437_key_)break;b[Y]=b[f];Y=f}b[Y]=H}return w.getValue()}};
_.g.peek=function(){var Y=this.nodes_;if(Y.length!=0)return Y[0].getValue()};
_.g.getValues=function(){for(var Y=this.nodes_,b=[],w=Y.length,V=0;V<w;V++)b.push(Y[V].getValue());return b};
_.g.getKeys=function(){for(var Y=this.nodes_,b=[],w=Y.length,V=0;V<w;V++)b.push(Y[V].JSC$9437_key_);return b};
_.g.containsValue=function(Y){return this.nodes_.some(function(b){return b.getValue()==Y})};
_.g.containsKey=function(Y){return this.nodes_.some(function(b){return b.JSC$9437_key_==Y})};
_.g.clone=function(){return new my(this)};
_.g.getCount=function(){return this.nodes_.length};
_.g.isEmpty=function(){return this.nodes_.length===0};
_.g.clear=function(){this.nodes_.length=0};_.o$=function(Y,b){this.JSC$9443_map_={};this.JSC$9443_keys_=[];this.version_=this.size=0;var w=arguments.length;if(w>1){if(w%2)throw Error("pa");for(var V=0;V<w;V+=2)this.set(arguments[V],arguments[V+1])}else Y&&this.addAll(Y)};
_.g=_.o$.prototype;_.g.getCount=function(){return this.size};
_.g.getValues=function(){I$(this);for(var Y=[],b=0;b<this.JSC$9443_keys_.length;b++)Y.push(this.JSC$9443_map_[this.JSC$9443_keys_[b]]);return Y};
_.g.getKeys=function(){I$(this);return this.JSC$9443_keys_.concat()};
_.g.containsKey=function(Y){return this.has(Y)};
_.g.has=function(Y){return k$(this.JSC$9443_map_,Y)};
_.g.containsValue=function(Y){for(var b=0;b<this.JSC$9443_keys_.length;b++){var w=this.JSC$9443_keys_[b];if(k$(this.JSC$9443_map_,w)&&this.JSC$9443_map_[w]==Y)return!0}return!1};
_.g.equals=function(Y,b){if(this===Y)return!0;if(this.size!=Y.getCount())return!1;b=b||OXd;I$(this);for(var w,V=0;w=this.JSC$9443_keys_[V];V++)if(!b(this.get(w),Y.get(w)))return!1;return!0};
var OXd=function(Y,b){return Y===b};
_.o$.prototype.isEmpty=function(){return this.size==0};
_.o$.prototype.clear=function(){this.JSC$9443_map_={};this.version_=this.size=this.JSC$9443_keys_.length=0};
_.o$.prototype.remove=function(Y){return this.delete(Y)};
_.o$.prototype.delete=function(Y){return k$(this.JSC$9443_map_,Y)?(delete this.JSC$9443_map_[Y],--this.size,this.version_++,this.JSC$9443_keys_.length>2*this.size&&I$(this),!0):!1};
var I$=function(Y){if(Y.size!=Y.JSC$9443_keys_.length){for(var b=0,w=0;b<Y.JSC$9443_keys_.length;){var V=Y.JSC$9443_keys_[b];k$(Y.JSC$9443_map_,V)&&(Y.JSC$9443_keys_[w++]=V);b++}Y.JSC$9443_keys_.length=w}if(Y.size!=Y.JSC$9443_keys_.length){b={};for(V=w=0;w<Y.JSC$9443_keys_.length;){var H=Y.JSC$9443_keys_[w];k$(b,H)||(Y.JSC$9443_keys_[V++]=H,b[H]=1);w++}Y.JSC$9443_keys_.length=V}};
_.g=_.o$.prototype;_.g.get=function(Y,b){return k$(this.JSC$9443_map_,Y)?this.JSC$9443_map_[Y]:b};
_.g.set=function(Y,b){k$(this.JSC$9443_map_,Y)||(this.size+=1,this.JSC$9443_keys_.push(Y),this.version_++);this.JSC$9443_map_[Y]=b};
_.g.addAll=function(Y){if(Y instanceof _.o$)for(var b=Y.getKeys(),w=0;w<b.length;w++)this.set(b[w],Y.get(b[w]));else for(b in Y)this.set(b,Y[b])};
_.g.forEach=function(Y,b){for(var w=this.getKeys(),V=0;V<w.length;V++){var H=w[V],f=this.get(H);Y.call(b,f,H,this)}};
_.g.clone=function(){return new _.o$(this)};
_.g.transpose=function(){for(var Y=new _.o$,b=0;b<this.JSC$9443_keys_.length;b++){var w=this.JSC$9443_keys_[b];Y.set(this.JSC$9443_map_[w],w)}return Y};
_.g.keys=function(){return f9_(this.__iterator__(!0)).toEs6()};
_.g.values=function(){return f9_(this.__iterator__(!1)).toEs6()};
_.g.entries=function(){var Y=this;return hwt(this.keys(),function(b){return[b,Y.get(b)]})};
_.g.__iterator__=function(Y){I$(this);var b=0,w=this.version_,V=this,H=new Ug;H.next=function(){if(w!=V.version_)throw Error("qe");if(b>=V.JSC$9443_keys_.length)return X_;var f=V.JSC$9443_keys_[b++];return D4(Y?f:V.JSC$9443_map_[f])};
return H};
var k$=function(Y,b){return Object.prototype.hasOwnProperty.call(Y,b)};var R3j=function(){this.JSC$9446_map_=new _.o$;this.JSC$9446_head_=new tyd("");this.JSC$9446_head_.next=this.JSC$9446_head_.prev=this.JSC$9446_head_},dCk=function(Y,b){if(b=Y.JSC$9446_map_.get(b))b.remove(),Y.insert_(b);
return b};
_.g=R3j.prototype;_.g.get=function(Y,b){return(Y=dCk(this,Y))?Y.value:b};
_.g.set=function(Y,b){var w=dCk(this,Y);w?w.value=b:(w=new tyd(Y,b),this.JSC$9446_map_.set(Y,w),this.insert_(w))};
_.g.peek=function(){return this.JSC$9446_head_.next.value};
_.g.shift=function(){return FDj(this,this.JSC$9446_head_.next)};
_.g.pop=function(){return FDj(this,this.JSC$9446_head_.prev)};
_.g.remove=function(Y){return(Y=this.JSC$9446_map_.get(Y))?(this.removeNode(Y),!0):!1};
_.g.removeNode=function(Y){Y.remove();this.JSC$9446_map_.remove(Y.key)};
_.g.getCount=function(){return this.JSC$9446_map_.getCount()};
_.g.isEmpty=function(){return this.JSC$9446_map_.isEmpty()};
_.g.getKeys=function(){return this.map(function(Y,b){return b})};
_.g.getValues=function(){return this.map(function(Y){return Y})};
_.g.contains=function(Y){return this.some(function(b){return b==Y})};
_.g.containsKey=function(Y){return this.JSC$9446_map_.containsKey(Y)};
_.g.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9446_head_.prev)};
_.g.forEach=function(Y,b){for(var w=this.JSC$9446_head_.next;w!=this.JSC$9446_head_;w=w.next)Y.call(b,w.value,w.key,this)};
_.g.map=function(Y,b){for(var w=[],V=this.JSC$9446_head_.next;V!=this.JSC$9446_head_;V=V.next)w.push(Y.call(b,V.value,V.key,this));return w};
_.g.some=function(Y,b){for(var w=this.JSC$9446_head_.next;w!=this.JSC$9446_head_;w=w.next)if(Y.call(b,w.value,w.key,this))return!0;return!1};
_.g.every=function(Y,b){for(var w=this.JSC$9446_head_.next;w!=this.JSC$9446_head_;w=w.next)if(!Y.call(b,w.value,w.key,this))return!1;return!0};
_.g.insert_=function(Y){Y.next=this.JSC$9446_head_.next;Y.prev=this.JSC$9446_head_;this.JSC$9446_head_.next=Y;for(Y.next.prev=Y;this.getCount()>100;)this.removeNode(this.JSC$9446_head_.prev)};
var FDj=function(Y,b){Y.JSC$9446_head_!=b&&Y.removeNode(b);return b.value},tyd=function(Y,b){this.key=Y;
this.value=b};
tyd.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var LD9=function(){my.apply(this,arguments)};
_.P(LD9,my);LD9.prototype.enqueue=function(Y,b){this.insert(Y,b)};var SCK=function(){var Y=Error();Y.name="SecurityError";throw Y;},lIK=function(){return{get opener(){return null},
get closed(){return!0},get location(){SCK()},get document(){SCK()},postMessage:function(){},
close:function(){},
focus:function(){}}};var RsI={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 Lwg={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 a8d={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(Lwg).join("|");var rLt=function(){function Y(U){U.substr(-1)!==";"&&(U+=";");return E(U)}
for(var b=Object.keys(a8d).sort(FwL),w=Object.keys(Lwg).sort(FwL),V=0,H=0;V<w.length;V++)b[H]===w[V]?(w[V]+=";?",H++):w[V]+=";";var f=new RegExp("&(?:"+w.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=SdB();return function(U){return String(U).replace(f,Y)}}();/*

 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.
*/
var z3o={};var WDk=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"),KD5=/[\\&]/,iXI=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),ALk=RegExp('[&<>"]',"g"),CW_=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),yL5=function(Y){return Y.charCodeAt(0)===92?Y.charAt(1):rLt(Y)},$C_=function(Y){return KD5.test(Y)?Y.replace(iXI,yL5):Y},jAI=function(Y){try{var b,w="";
if(typeof H!=="string"){var V=H;var H=";/?:@&=+$,-_.!~*'()#"}typeof V==="undefined"&&(V=!0);var f,E=z3o[H];if(E)var U=E;else{E=z3o[H]=[];for(f=0;f<128;f++){var X=String.fromCharCode(f);/^[0-9a-z]$/i.test(X)?E.push(X):E.push("%"+("0"+f.toString(16).toUpperCase()).slice(-2))}for(f=0;f<H.length;f++)E[H.charCodeAt(f)]=H[f];U=E}var I=0;for(b=Y.length;I<b;I++){var k=Y.charCodeAt(I);if(V&&k===37&&I+2<b&&/^[0-9a-f]{2}$/i.test(Y.slice(I+1,I+3)))w+=Y.slice(I,I+3),I+=2;else if(k<128)w+=U[k];else if(k>=55296&&
k<=57343){if(k>=55296&&k<=56319&&I+1<b){var l=Y.charCodeAt(I+1);if(l>=56320&&l<=57343){w+=encodeURIComponent(Y[I]+Y[I+1]);I++;continue}}w+="%EF%BF%BD"}else w+=encodeURIComponent(Y[I])}return w}catch(x){return Y}},Gg8=function(Y){switch(Y){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return Y}},lM=function(Y,b){return ALk.test(Y)?b?Y.replace(CW_,Gg8):Y.replace(ALk,Gg8):Y};/*

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

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 http://mths.be/fromcodepoint v0.2.1 by @mathias */
var hx;if(String.fromCodePoint)hx=function(Y){try{return String.fromCodePoint(Y)}catch(b){if(b instanceof RangeError)return String.fromCharCode(65533);throw b;}};
else{var Trt=String.fromCharCode,JLt=Math.floor;hx=function(){var Y=[],b=-1,w=arguments.length;if(!w)return"";for(var V="";++b<w;){var H=Number(arguments[b]);if(!isFinite(H)||H<0||H>1114111||JLt(H)!==H)return String.fromCharCode(65533);if(H<=65535)Y.push(H);else{H-=65536;var f=(H>>10)+55296;H=H%1024+56320;Y.push(f,H)}if(b+1===w||Y.length>16384)V+=Trt.apply(null,Y),Y.length=0}return V}};var u29=function(Y){this.root=this.current=Y;this.entering=!0};
u29.prototype.next=function(){var Y=this.current,b=this.entering;if(Y===null)return null;a:switch(Y._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var w=!0;break a;default:w=!1}b&&w?Y._firstChild?(this.current=Y._firstChild,this.entering=!0):this.entering=!1:Y===this.root?this.current=null:Y._next===null?(this.current=
Y._parent,this.entering=!1):(this.current=Y._next,this.entering=!0);return{entering:b,node:Y}};
var mK=function(Y,b){this._type=Y;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=b;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};
mK.prototype.appendChild=function(Y){x$(Y);Y._parent=this;this._lastChild?(this._lastChild._next=Y,Y._prev=this._lastChild):this._firstChild=Y;this._lastChild=Y};
var x$=function(Y){Y._prev?Y._prev._next=Y._next:Y._parent&&(Y._parent._firstChild=Y._next);Y._next?Y._next._prev=Y._prev:Y._parent&&(Y._parent._lastChild=Y._prev);Y._parent=null;Y._next=null;Y._prev=null},Y6d=function(Y,b){x$(b);
b._next=Y._next;b._next&&(b._next._prev=b);b._prev=Y;Y._next=b;b._parent=Y._parent;b._next||(b._parent._lastChild=b)};
mK.prototype.insertBefore=function(Y){x$(Y);Y._prev=this._prev;Y._prev&&(Y._prev._next=Y);Y._next=this;this._prev=Y;Y._parent=this._parent;Y._prev||(Y._parent._firstChild=Y)};
_.up.Object.defineProperties(mK.prototype,{type:{configurable:!0,enumerable:!0,get:function(){return this._type}},
firstChild:{configurable:!0,enumerable:!0,get:function(){return this._firstChild}},
lastChild:{configurable:!0,enumerable:!0,get:function(){return this._lastChild}},
next:{configurable:!0,enumerable:!0,get:function(){return this._next}},
prev:{configurable:!0,enumerable:!0,get:function(){return this._prev}},
parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},
sourcepos:{configurable:!0,enumerable:!0,get:function(){return this._sourcepos}},
literal:{configurable:!0,enumerable:!0,get:function(){return this._literal},
set:function(Y){this._literal=Y}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(Y){this._destination=Y}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(Y){this._title=Y}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(Y){this._info=Y}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(Y){this._level=Y}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(Y){this._listData.type=Y}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(Y){this._listData.tight=Y}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(Y){this._listData.start=Y}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(Y){this._onEnter=Y}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(Y){this._onExit=Y}}});var az6=/[ \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,
rJK={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 bVQ=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]/),
wX8=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Vmo=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),HVC=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),gZU=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),fTo=/`+/,N_$=/^`+/,EZr=/\.\.\./g,cUj=/--+/g,Ulk=/^<([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])?)*)>/,
XX$=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,DlK=/^ *(?:\n *)?/,mlQ=/^[ \t\n\x0b\x0c\x0d]/,oZ$=/[ \t\n\x0b\x0c\x0d]+/g,ITo=/^\s/,kdK=/ *$/,lTr=/^ */,hS5=/^ *(?:\n|$)/,xl8=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),q6C=/^[^\n`\[\]\\!<&*_'"]+/m,qM=function(Y){var b=new mK("text");b._literal=Y;return b},s_=function(Y){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=Y||{}};
s_.prototype.match=function(Y){Y=Y.exec(this.subject.slice(this.pos));if(Y===null)return null;this.pos+=Y.index+Y[0].length;return Y[0]};
s_.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var QV=function(Y){Y.match(DlK);return!0},soj=function(Y,b,w){var V=0;
var H=Y.pos;if(b===39||b===34)V++,Y.pos++;else for(;Y.peek()===b;)V++,Y.pos++;if(V===0)V=null;else{var f=H===0?"\n":Y.subject.charAt(H-1);var E=Y.peek();E=E===-1?"\n":hx(E);var U=ITo.test(E);E=bVQ.test(E);var X=ITo.test(f);var I=bVQ.test(f);f=!U&&!(E&&!X&&!I);U=!X&&!(I&&!U&&!E);b===95?(X=f&&(!U||I),E=U&&(!f||E)):(X=b===39||b===34?f&&!U:f,E=U);Y.pos=H;V={numdelims:V,can_open:X,can_close:E}}if(!V)return!1;H=V.numdelims;E=Y.pos;Y.pos+=H;E=b===39?"\u2019":b===34?"\u201c":Y.subject.slice(E,Y.pos);E=qM(E);
w.appendChild(E);Y.delimiters={cc:b,numdelims:H,origdelims:H,node:E,previous:Y.delimiters,next:null,can_open:V.can_open,can_close:V.can_close};Y.delimiters.previous!==null&&(Y.delimiters.previous.next=Y.delimiters);return!0},Qo8=function(Y,b){b.previous!==null&&(b.previous.next=b.next);
b.next===null?Y.delimiters=b.previous:b.next.previous=b.previous},vZ8=function(Y,b){var w,V,H=[],f=!1;
H[95]=b;H[42]=b;H[39]=b;H[34]=b;for(w=Y.delimiters;w!==null&&w.previous!==b;)w=w.previous;for(;w!==null;){var E=w.cc;if(w.can_close){var U=w.previous;for(V=!1;U!==null&&U!==b&&U!==H[E];){f=(w.can_open||U.can_close)&&(U.origdelims+w.origdelims)%3===0;if(U.cc===w.cc&&U.can_open&&!f){V=!0;break}U=U.previous}var X=w;if(E===42||E===95)if(V){var I=w.numdelims>=2&&U.numdelims>=2?2:1;var k=U.node;var l=w.node;U.numdelims-=I;w.numdelims-=I;k._literal=k._literal.slice(0,k._literal.length-I);l._literal=l._literal.slice(0,
l._literal.length-I);var x=new mK(I===1?"emph":"strong");for(I=k._next;I&&I!==l;){var Q=I._next;x$(I);x.appendChild(I);I=Q}Y6d(k,x);I=U;Q=w;I.next!==Q&&(I.next=Q,Q.previous=I);U.numdelims===0&&(x$(k),Qo8(Y,U));w.numdelims===0&&(x$(l),U=w.next,Qo8(Y,w),w=U)}else w=w.next;else E===39?(w.node._literal="\u2019",V&&(U.node._literal="\u2018"),w=w.next):E===34&&(w.node._literal="\u201d",V&&(U.node.literal="\u201c"),w=w.next);V||f||(H[E]=X.previous,X.can_open||Qo8(Y,X))}else w=w.next}for(;Y.delimiters!==
null&&Y.delimiters!==b;)Qo8(Y,Y.delimiters)},Pr_=function(Y){Y=Y.match(wX8);
return Y===null?null:$C_(Y.substr(1,Y.length-2))},ZV_=function(Y){var b=Y.match(Vmo);
if(b===null){b=Y.pos;for(var w=0,V;(V=Y.peek())!==-1;)if(V===92)Y.pos+=1,Y.peek()!==-1&&(Y.pos+=1);else if(V===40)Y.pos+=1,w+=1;else if(V===41)if(w<1)break;else Y.pos+=1,--w;else if(mlQ.exec(hx(V))!==null)break;else Y.pos+=1;b=Y.subject.substr(b,Y.pos-b);return jAI($C_(b))}return jAI($C_(b.substr(1,b.length-2)))},B_k=function(Y){Y=Y.match(xl8);
return Y===null||Y.length>1001?0:Y.length},nZ$=function(Y,b,w,V){Y.brackets!==null&&(Y.brackets.bracketAfter=!0);
Y.brackets={node:b,previous:Y.brackets,previousDelimiter:Y.delimiters,index:w,image:V,active:!0}},Mmk=function(Y,b){var w;
return(w=Y.match(q6C))?(Y.options.smart?b.appendChild(qM(w.replace(EZr,"\u2026").replace(cUj,function(V){var H=0,f=0;V.length%3===0?f=V.length/3:V.length%2===0?H=V.length/2:V.length%3===2?(H=1,f=(V.length-2)/3):(H=2,f=(V.length-4)/3);V="";var E;for(E=0;E<f;E++)V+="\u2014";for(E=0;E<H;E++)V+="\u2013";return V}))):b.appendChild(qM(w)),!0):!1},eSr=function(Y,b,w){Y.subject=b;
Y.pos=0;b=Y.pos;var V=B_k(Y);if(V===0)return 0;var H=Y.subject.substr(0,V);if(Y.peek()===58)Y.pos++;else return Y.pos=b,0;QV(Y);V=ZV_(Y);if(V===null||V.length===0)return Y.pos=b,0;var f=Y.pos;QV(Y);var E=Pr_(Y);E===null&&(E="",Y.pos=f);var U=!0;Y.match(hS5)===null&&(E===""?U=!1:(E="",Y.pos=f,U=Y.match(hS5)!==null));if(!U)return Y.pos=b,0;H=zst(H);if(H==="")return Y.pos=b,0;w[H]||(w[H]={destination:V,title:E});return Y.pos-b},pXU=function(Y,b){var w,V=Y.peek();
if(V===-1)return!1;switch(V){case 10:Y.pos+=1;if((w=b._lastChild)&&w.type==="text"&&w._literal[w._literal.length-1]===" "){var H=w._literal[w._literal.length-2]===" ";w._literal=w._literal.replace(kdK,"");b.appendChild(new mK(H?"linebreak":"softbreak"))}else b.appendChild(new mK("softbreak"));Y.match(lTr);w=!0;break;case 92:w=Y.subject;Y.pos+=1;Y.peek()===10?(Y.pos+=1,w=new mK("linebreak"),b.appendChild(w)):HVC.test(w.charAt(Y.pos))?(b.appendChild(qM(w.charAt(Y.pos))),Y.pos+=1):b.appendChild(qM("\\"));
w=!0;break;case 96:a:if(w=Y.match(N_$),w===null)w=!1;else{H=Y.pos;for(var f;(f=Y.match(fTo))!==null;)if(f===w){f=new mK("code");f._literal=Y.subject.slice(H,Y.pos-w.length).trim().replace(oZ$," ");b.appendChild(f);w=!0;break a}Y.pos=H;b.appendChild(qM(w));w=!0}break;case 42:case 95:w=soj(Y,V,b);break;case 39:case 34:w=Y.options.smart&&soj(Y,V,b);break;case 91:w=Y.pos;Y.pos+=1;H=qM("[");b.appendChild(H);nZ$(Y,H,w,!1);w=!0;break;case 33:w=Y.pos;Y.pos+=1;Y.peek()===91?(Y.pos+=1,H=qM("!["),b.appendChild(H),
nZ$(Y,H,w+1,!0)):b.appendChild(qM("!"));w=!0;break;case 93:var E,U=!1,X;Y.pos+=1;var I=Y.pos;H=Y.brackets;if(H===null)b.appendChild(qM("]"));else if(H.active){w=H.image;var k=Y.pos;Y.peek()===40&&(Y.pos++,QV(Y)&&(f=ZV_(Y))!==null&&QV(Y)&&(mlQ.test(Y.subject.charAt(Y.pos-1))&&(E=Pr_(Y)),1)&&QV(Y)&&Y.peek()===41?(Y.pos+=1,U=!0):Y.pos=k);if(!U){var l=Y.pos,x=B_k(Y);x>2?X=Y.subject.slice(l,l+x):H.bracketAfter||(X=Y.subject.slice(H.index,I));x===0&&(Y.pos=k);X&&(X=Y.refmap[zst(X)])&&(f=X.destination,E=
X.title,U=!0)}if(U){I=new mK(w?"image":"link");I._destination=f;I._title=E||"";for(f=H.node._next;f;)E=f._next,x$(f),I.appendChild(f),f=E;b.appendChild(I);vZ8(Y,H.previousDelimiter);Y.brackets=Y.brackets.previous;x$(H.node);if(!w)for(H=Y.brackets;H!==null;)H.image||(H.active=!1),H=H.previous}else Y.brackets=Y.brackets.previous,Y.pos=I,b.appendChild(qM("]"))}else b.appendChild(qM("]")),Y.brackets=Y.brackets.previous;w=!0;break;case 60:(w=Y.match(Ulk))?(w=w.slice(1,w.length-1),H=new mK("link"),H._destination=
jAI("mailto:"+w),H._title="",H.appendChild(qM(w)),b.appendChild(H),w=!0):(w=Y.match(XX$))?(w=w.slice(1,w.length-1),H=new mK("link"),H._destination=jAI(w),H._title="",H.appendChild(qM(w)),b.appendChild(H),w=!0):w=!1;w||(w=Y.match(WDk),w===null?w=!1:(H=new mK("html_inline"),H._literal=w,b.appendChild(H),w=!0));break;case 38:(w=Y.match(gZU))?(b.appendChild(qM(rLt(w))),w=!0):w=!1;break;default:w=Mmk(Y,b)}w||(Y.pos+=1,b.appendChild(qM(hx(V))));return!0};
s_.prototype.parseInlines=function(Y){this.subject=Y._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;pXU(this,Y););Y._string_content=null;vZ8(this,null)};
s_.prototype.parse=s_.prototype.parseInlines;var OVC=[/./,/^<(?: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")],tm8=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],RSk=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,dl9=/^[#`~*+_=<>0-9-\|]|\|/,F_K=/[^ \t\f\v\r\n]/,L_Q=/^[*+-]/,S6K=/^(\d{1,9})([.)])/,aTd=/^#{1,6}(?:[ \t]+|$)/,rUC=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,zSd=/^(?:`{3,}|~{3,})(?= *$)/,W_k=/^(?:=+|-+)[ \t]*$/,K_d=/\r\n|\n|\r/,KwM=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,ikg=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,iVd={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(Y,b){for(Y=b._firstChild;Y;){if(Wwt(Y)&&Y._next){b._listData.tight=!1;break}for(var w=Y._firstChild;w;){if(Wwt(w)&&(Y._next||w._next)){b._listData.tight=!1;break}w=w._next}Y=Y._next}},
canContain:function(Y){return Y==="item"},
acceptsLines:!1},block_quote:{continue:function(Y){var b=Y.currentLine;if(Y.indented||XA(b,Y.nextNonspace)!==62)return 1;vU(Y);PU(Y,1,!1);UD(XA(b,Y.offset))&&PU(Y,1,!0);return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"},
acceptsLines:!1},item:{continue:function(Y,b){if(Y.blank){if(b._firstChild==null)return 1;vU(Y)}else if(Y.indent>=b._listData.markerOffset+b._listData.padding)PU(Y,b._listData.markerOffset+b._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(Y){return Y!=="item"&&!AJe(Y)},
acceptsLines:!1},heading:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},thematic_break:{continue:function(){return 1},
finalize:function(){},
canContain:function(){return!1},
acceptsLines:!1},code_block:{continue:function(Y,b){var w=Y.currentLine,V=Y.indent;if(b._isFenced){if((V=V<=3&&w.charAt(Y.nextNonspace)===b._fenceChar&&w.slice(Y.nextNonspace).match(zSd))&&V[0].length>=b._fenceLength)return Y.finalize(b,Y.lineNumber),2;for(b=b._fenceOffset;b>0&&UD(XA(w,Y.offset));)PU(Y,1,!0),b--}else if(V>=4)PU(Y,4,!0);else if(Y.blank)vU(Y);else return 1;return 0},
finalize:function(Y,b){if(b._isFenced){var w=b._string_content,V=w.indexOf("\n");Y=w.slice(0,V);w=w.slice(V+1);b.info=$C_(Y.trim());b._literal=w}else b._literal=b._string_content.replace(/(\n *)+$/,"\n");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(Y,b){return!Y.blank||b._htmlBlockType!==6&&b._htmlBlockType!==7?0:1},
finalize:function(Y,b){b._literal=b._string_content.replace(/(\n *)+$/,"");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(Y){return Y.blank?1:0},
finalize:function(Y,b){for(var w,V=!1;XA(b._string_content,0)===91&&(w=eSr(Y.inlineParser,b._string_content,Y.refmap));)b._string_content=b._string_content.slice(w),V=!0;V&&!F_K.test(b._string_content)&&x$(b)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(Y){return Dm(Y.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(Y){return Y=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(Y,b){if(!b._rowIsDelimiter){Y=b._isHeader?"th":"td";for(var w=b._parent._tableColumns,V=b._string_content,H=0,f="",E,U=b._sourcepos[0][0];H<V.length;){switch(V[H]){case "|":E&&(E._string_content=f.trim(),f="",E=null,w--,w<=0&&(H=V.length));break;default:if(!E){E=new mK(Y,[[U,H],[U,H]]);var X=b._parent._columnAlignment,I=b._parent._tableColumns-w;X&&I<=X.length&&I>=0&&(E._alignment=X[I]);b.appendChild(E)}f+=V[H];E._sourcepos[1][1]=H}H++}E&&(E._string_content=f.trim());b._string_content=
""}},
canContain:function(Y){return Y!=="row"},
acceptsLines:!1}},AUd=[function(Y){if(Y.indented||XA(Y.currentLine,Y.nextNonspace)!==62)return 0;vU(Y);PU(Y,1,!1);UD(XA(Y.currentLine,Y.offset))&&PU(Y,1,!0);Zy(Y);Y.addChild("block_quote",Y.nextNonspace);return 1},
function(Y){var b;if(!Y.indented&&(b=Y.currentLine.slice(Y.nextNonspace).match(aTd))){vU(Y);PU(Y,b[0].length,!1);Zy(Y);var w=Y.addChild("heading",Y.nextNonspace);w.level=b[0].trim().length;w._string_content=Y.currentLine.slice(Y.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");PU(Y,Y.currentLine.length-Y.offset);return 2}return 0},
function(Y){var b;if(!Y.indented&&(b=Y.currentLine.slice(Y.nextNonspace).match(rUC))){var w=b[0].length;Zy(Y);var V=Y.addChild("code_block",Y.nextNonspace);V._isFenced=!0;V._fenceLength=w;V._fenceChar=b[0][0];V._fenceOffset=Y.indent;vU(Y);PU(Y,w,!1);return 2}return 0},
function(Y,b){if(!Y.indented&&XA(Y.currentLine,Y.nextNonspace)===60){var w=Y.currentLine.slice(Y.nextNonspace),V;for(V=1;V<=7;V++)if(OVC[V].test(w)&&(V<7||b.type!=="paragraph"))return Zy(Y),Y.addChild("html_block",Y.offset)._htmlBlockType=V,2}return 0},
function(Y,b){var w;if(!Y.indented&&b.type==="paragraph"&&(w=Y.currentLine.slice(Y.nextNonspace).match(W_k))){Zy(Y);var V=new mK("heading",b.sourcepos);V.level=w[0][0]==="="?1:2;V._string_content=b._string_content;Y6d(b,V);x$(b);Y.tip=V;PU(Y,Y.currentLine.length-Y.offset,!1);return 2}return 0},
function(Y){return!Y.indented&&RSk.test(Y.currentLine.slice(Y.nextNonspace))?(Zy(Y),Y.addChild("thematic_break",Y.nextNonspace),PU(Y,Y.currentLine.length-Y.offset,!1),2):0},
function(Y,b){var w,V;if(!(V=Y.indented&&b.type!=="list")){a:{var H=b,f=Y.currentLine.slice(Y.nextNonspace);V={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:Y.indent};if(w=f.match(L_Q))V.type="bullet",V.bulletChar=w[0][0];else{if(!(w=f.match(S6K))||H.type==="paragraph"&&w[1]!=="1"){w=null;break a}V.type="ordered";V.start=parseInt(w[1],10);V.delimiter=w[2]}var E=XA(Y.currentLine,Y.nextNonspace+w[0].length);if(E!==-1&&E!==9&&E!==32||H.type==="paragraph"&&!Y.currentLine.slice(Y.nextNonspace+
w[0].length).match(F_K))w=null;else{vU(Y);PU(Y,w[0].length,!0);H=Y.column;f=Y.offset;do PU(Y,1,!0),E=XA(Y.currentLine,Y.offset);while(Y.column-H<5&&UD(E));E=XA(Y.currentLine,Y.offset)===-1;var U=Y.column-H;U>=5||U<1||E?(V.padding=w[0].length+1,Y.column=H,Y.offset=f,UD(XA(Y.currentLine,Y.offset))&&PU(Y,1,!0)):V.padding=w[0].length+U;w=V}}V=!w}if(V)return 0;Zy(Y);(V=Y.tip.type!=="list")||(b=b._listData,V=!(b.type===w.type&&b.delimiter===w.delimiter&&b.bulletChar===w.bulletChar));V&&(b=Y.addChild("list",
Y.nextNonspace),b._listData=w);b=Y.addChild("item",Y.nextNonspace);b._listData=w;return 1},
function(Y){var b;return((b=Y.options.shouldParseIndentAsCodeBlock)!=null?b:1)&&Y.indented&&Y.tip.type!=="paragraph"&&!Y.blank?(PU(Y,4,!0),Zy(Y),Y.addChild("code_block",Y.offset),2):0},
function(Y,b){var w=Dm(Y.currentLine),V=Dm(Y.lookahead);if(w!==0&&V<0&&Math.abs(w)==Math.abs(V)&&!AJe(b.type)){Zy(Y);b=Y.addChild("table",Y.nextNonspace);b._tableRows=1;b._tableColumns=Math.abs(w);w=Y.lookahead;if(ikg.test(w)){V=[];for(var H=0,f=!1,E=0,U=void 0;H<w.length;){var X=E>=3;switch(w[H]){case "-":E++;break;case "|":f&&(V.push(U),U=void 0,E=0);f=!0;break;case ":":U||X||(U="left"),!U&&X&&(U="right"),U==="left"&&X&&(U="center")}H++}w=V}else w=void 0;b._columnAlignment=w;b=Y.addChild("row",
Y.nextNonspace);b._isHeader=!0;PU(Y,Y.currentLine.length-Y.offset,!1);b._string_content=Y.currentLine;return 1}return 0},
function(Y,b){if(b.type=="table"&&Dm(Y.currentLine)!==0){Zy(Y);var w=b;b=Y.addChild("row",Y.nextNonspace);Dm(Y.currentLine)<0?b._rowIsDelimiter=!0:w._tableRows+=1;PU(Y,Y.currentLine.length-Y.offset,!1);b._string_content=Y.currentLine;return 2}return 0}],jSg=function(){var Y={shouldParseIndentAsCodeBlock:!1};
Y=Y===void 0?{}:Y;this.lastMatchedContainer=this.doc=Cft();this.refmap={};this.lastLineLength=0;this.inlineParser=new s_(Y);this.options=Y;this.oldtip=this.tip=this.doc;this.lookahead=this.currentLine="";this.indent=this.nextNonspaceColumn=this.nextNonspace=this.column=this.offset=this.lineNumber=0;this.partiallyConsumedTab=this.blank=this.indented=!1;this.allClosed=!0;this.blocks=iVd;this.blockStarts=AUd},Crj=function(Y){Y.partiallyConsumedTab&&(Y.offset+=1,Y.tip._string_content+=" ".repeat(4-Y.column%
4));
Y.tip._string_content+=Y.currentLine.slice(Y.offset)+"\n"};
jSg.prototype.addChild=function(Y,b){for(;!this.blocks[this.tip.type].canContain(Y);)this.finalize(this.tip,this.lineNumber-1);Y=new mK(Y,[[this.lineNumber,b+1],[0,0]]);Y._string_content="";this.tip.appendChild(Y);return this.tip=Y};
var Zy=function(Y){if(!Y.allClosed){for(;Y.oldtip!==Y.lastMatchedContainer;){var b=Y.oldtip._parent;Y.finalize(Y.oldtip,Y.lineNumber-1);Y.oldtip=b}Y.allClosed=!0}},PU=function(Y,b,w){for(var V=Y.currentLine,H,f;b>0&&(f=V[Y.offset]);)f==="\t"?(H=4-Y.column%4,w?(Y.partiallyConsumedTab=H>b,H=H>b?b:H,Y.column+=H,Y.offset+=Y.partiallyConsumedTab?0:1,b-=H):(Y.partiallyConsumedTab=!1,Y.column+=H,Y.offset+=1,--b)):(Y.partiallyConsumedTab=!1,Y.offset+=1,Y.column+=1,--b)},vU=function(Y){Y.offset=Y.nextNonspace;
Y.column=Y.nextNonspaceColumn;Y.partiallyConsumedTab=!1},yUj=function(Y){for(var b=Y.currentLine,w=Y.offset,V=Y.column,H;(H=b.charAt(w))!=="";)if(H===" ")w++,V++;
else if(H==="\t")w++,V+=4-V%4;else break;Y.blank=H==="\n"||H==="\r"||H==="";Y.nextNonspace=w;Y.nextNonspaceColumn=V;Y.indent=Y.nextNonspaceColumn-Y.column;Y.indented=Y.indent>=4};
jSg.prototype.finalize=function(Y,b){var w=Y._parent;Y._open=!1;Y.sourcepos[1]=[b,this.lastLineLength];this.blocks[Y.type].finalize(this,Y);this.tip=w};
jSg.prototype.parse=function(Y){this.tip=this.doc=Cft();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!Y)return this.doc;this.options.time&&console.time("preparing input");var b=Y.split(K_d),w=b.length;Y.charCodeAt(Y.length-1)===10&&--w;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(Y=0;Y<w;Y++)a:{var V=void 0,H=b[Y],f=b[Y+1],E=!0,U=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;H.indexOf("\x00")!==-1&&(H=H.replace(/\0/g,"\ufffd"));this.currentLine=H;for(this.lookahead=f;(V=U._lastChild)&&V._open;){U=V;yUj(this);switch(this.blocks[U.type].continue(this,U)){case 0:break;case 1:E=!1;break;case 2:this.lastLineLength=H.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!E){U=U._parent;break}}this.allClosed=U===this.oldtip;this.lastMatchedContainer=
U;V=U.type!=="paragraph"&&iVd[U.type].acceptsLines;f=this.blockStarts;for(E=f.length;!V;){yUj(this);if(!this.indented&&!dl9.test(H.slice(this.nextNonspace))){vU(this);break}for(var X=0;X<E;){var I=f[X](this,U);if(I===1){U=this.tip;break}else if(I===2){U=this.tip;V=!0;break}else X++}if(X===E){vU(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Zy(this);this.blank&&U.lastChild&&(U.lastChild._lastLineBlank=!0);V=U.type;f=this.blank&&!(V==="block_quote"||V==="code_block"&&U._isFenced||
V==="item"&&!U._firstChild&&U.sourcepos[0][0]===this.lineNumber);for(E=U;E;)E._lastLineBlank=f,E=E._parent;this.blocks[V].acceptsLines?(Crj(this),V==="html_block"&&U._htmlBlockType>=1&&U._htmlBlockType<=5&&tm8[U._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(U,this.lineNumber)):this.offset<H.length&&!this.blank&&(this.addChild("paragraph",this.offset),vU(this),Crj(this))}else Crj(this);this.lastLineLength=H.length}for(;this.tip;)this.finalize(this.tip,w);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");H=new u29(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;w=H.next();)b=w.node,Y=b.type,w.entering||Y!=="paragraph"&&Y!=="heading"&&Y!=="th"&&Y!="td"||this.inlineParser.parse(b);this.options.time&&console.timeEnd("inline parsing");return this.doc};yJG.prototype.render=function(Y){Y=new u29(Y);var b;this.buffer="";for(this.lastOut="\n";b=Y.next();){var w=b.node.type;if(this[w])this[w](b.node,b.entering)}return this.buffer};
yJG.prototype.out=function(Y){BU(this,Y)};
var BU=function(Y,b){Y.buffer+=b;Y.lastOut=b};
yJG.prototype.cr=function(){this.lastOut!=="\n"&&BU(this,"\n")};var $lr=/^javascript:|vbscript:|file:|data:/i,jo_=/^data:image\/(?:png|gif|jpeg|webp)/i,Gd9=function(Y){return $lr.test(Y)&&!jo_.test(Y)};
o3.prototype=Object.create(yJG.prototype);_.g=o3.prototype;_.g.text=function(Y){this.out(Y.literal)};
_.g.html_inline=function(Y){this.options.safe?BU(this,"\x3c!-- raw HTML omitted --\x3e"):BU(this,Y.literal)};
_.g.html_block=function(Y){this.cr();this.options.safe?BU(this,"\x3c!-- raw HTML omitted --\x3e"):BU(this,Y.literal);this.cr()};
_.g.softbreak=function(){BU(this,this.options.softbreak)};
_.g.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.g.link=function(Y,b){var w=this.attrs(Y);b?(this.options.safe&&Gd9(Y.destination)||w.push(["href",lM(Y.destination,!0)]),Y.title&&w.push(["title",lM(Y.title,!0)]),this.tag("a",w)):this.tag("/a")};
_.g.image=function(Y,b){b?(this.disableTags===0&&(this.options.safe&&Gd9(Y.destination)?BU(this,'<img src="" alt="'):BU(this,'<img src="'+lM(Y.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(Y.title&&BU(this,'" title="'+lM(Y.title,!0)),BU(this,'" />')))};
_.g.emph=function(Y,b){this.tag(b?"em":"/em")};
_.g.strong=function(Y,b){this.tag(b?"strong":"/strong")};
_.g.paragraph=function(Y,b){var w=Y.parent.parent;Y=this.attrs(Y);w!==null&&w.type==="list"&&w.listTight||(b?(this.cr(),this.tag("p",Y)):(this.tag("/p"),this.cr()))};
_.g.heading=function(Y,b){var w="h"+Y.level;Y=this.attrs(Y);b?(this.cr(),this.tag(w,Y)):(this.tag("/"+w),this.cr())};
_.g.code=function(Y){this.tag("code");this.out(Y.literal);this.tag("/code")};
_.g.code_block=function(Y){var b=Y.info?Y.info.split(/\s+/):[],w=this.attrs(Y);b.length>0&&b[0].length>0&&w.push(["class","language-"+lM(b[0],!0)]);this.cr();this.tag("pre");this.tag("code",w);this.out(Y.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.g.thematic_break=function(Y){Y=this.attrs(Y);this.cr();this.tag("hr",Y,!0);this.cr()};
_.g.block_quote=function(Y,b){Y=this.attrs(Y);b?(this.cr(),this.tag("blockquote",Y)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.g.list=function(Y,b){var w=Y.listType==="bullet"?"ul":"ol",V=this.attrs(Y);b?(Y=Y.listStart,Y!==null&&Y!==1&&V.push(["start",Y.toString()]),this.cr(),this.tag(w,V)):(this.cr(),this.tag("/"+w));this.cr()};
_.g.item=function(Y,b){Y=this.attrs(Y);b?this.tag("li",Y):(this.tag("/li"),this.cr())};
_.g.custom_inline=function(Y,b){b&&Y.onEnter?BU(this,Y.onEnter):!b&&Y.onExit&&BU(this,Y.onExit)};
_.g.custom_block=function(Y,b){this.cr();b&&Y.onEnter?BU(this,Y.onEnter):!b&&Y.onExit&&BU(this,Y.onExit);this.cr()};
_.g.table=function(Y,b){Y=this.attrs(Y);b?(this.cr(),this.tag("table",Y)):(this.tag("/table"),this.cr())};
_.g.row=function(Y,b){Y._rowIsDelimiter||(Y=this.attrs(Y),b?this.tag("tr",Y):this.tag("/tr"))};
_.g.td=function(Y,b){var w=this.attrs(Y);Y._alignment&&w.push(["align",Y._alignment]);b?this.tag("td",w):this.tag("/td")};
_.g.th=function(Y,b){var w=this.attrs(Y);Y._alignment&&w.push(["align",Y._alignment]);b?this.tag("th",w):this.tag("/th")};
_.g.out=function(Y){BU(this,lM(Y,!1))};
_.g.tag=function(Y,b,w){if(!(this.disableTags>0)){this.buffer+="<"+Y;if(b&&b.length>0){Y=0;for(var V;(V=b[Y])!==void 0;)this.buffer+=" "+V[0]+'="'+V[1]+'"',Y++}w&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.g.attrs=function(Y){var b=[];this.options.sourcepos&&(Y=Y.sourcepos)&&b.push(["data-sourcepos",String(Y[0][0])+":"+String(Y[0][1])+"-"+String(Y[1][0])+":"+String(Y[1][1])]);return b};
o3.prototype.text=o3.prototype.text;o3.prototype.html_inline=o3.prototype.html_inline;o3.prototype.html_block=o3.prototype.html_block;o3.prototype.softbreak=o3.prototype.softbreak;o3.prototype.linebreak=o3.prototype.linebreak;o3.prototype.link=o3.prototype.link;o3.prototype.image=o3.prototype.image;o3.prototype.emph=o3.prototype.emph;o3.prototype.strong=o3.prototype.strong;o3.prototype.paragraph=o3.prototype.paragraph;o3.prototype.heading=o3.prototype.heading;o3.prototype.code=o3.prototype.code;
o3.prototype.code_block=o3.prototype.code_block;o3.prototype.thematic_break=o3.prototype.thematic_break;o3.prototype.block_quote=o3.prototype.block_quote;o3.prototype.list=o3.prototype.list;o3.prototype.item=o3.prototype.item;o3.prototype.custom_inline=o3.prototype.custom_inline;o3.prototype.custom_block=o3.prototype.custom_block;o3.prototype.table=o3.prototype.table;o3.prototype.row=o3.prototype.row;o3.prototype.td=o3.prototype.td;o3.prototype.th=o3.prototype.th;o3.prototype.out=o3.prototype.out;
o3.prototype.tag=o3.prototype.tag;o3.prototype.attrs=o3.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 T_k,JU8,Iba;(function(){function Y(p,M){return p<M?-1:p>M?1:p>=M?0:NaN}
function b(p){return function(M,d){return Y(p(M),d)}}
function w(){for(var p=0,M=arguments.length,d={},T;p<M;++p){if(!(T=arguments[p]+"")||T in d)throw Error("se`"+T);d[T]=[]}return new V(d)}
function V(p){this._=p}
function H(p,M){return p.trim().split(/^|\s+/).map(function(d){var T="",gB=d.indexOf(".");gB>=0&&(T=d.slice(gB+1),d=d.slice(0,gB));if(d&&!M.hasOwnProperty(d))throw Error("te`"+d);return{type:d,name:T}})}
function f(p,M,d){for(var T=0,gB=p.length;T<gB;++T)if(p[T].name===M){p[T]=PLt;p=p.slice(0,T).concat(p.slice(T+1));break}d!=null&&p.push({name:M,value:d});return p}
function E(p){var M=p,d=M.indexOf(":");d>=0&&(M=p.slice(0,d))!=="xmlns"&&(p=p.slice(d+1));return XB.hasOwnProperty(M)?{space:XB[M],local:p}:p}
function U(p){return function(){var M=this.ownerDocument,d=this.namespaceURI;return d==="http://www.w3.org/1999/xhtml"&&M.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?M.createElement(p):M.createElementNS(d,p)}}
function X(p){return function(){return this.ownerDocument.createElementNS(p.space,p.local)}}
function I(p){p=E(p);return(p.local?X:U)(p)}
function k(){}
function l(p){return p==null?k:function(){return this.querySelector(p)}}
function x(p){return Array(p.length)}
function Q(p,M){this.ownerDocument=p.ownerDocument;this.namespaceURI=p.namespaceURI;this._next=null;this._parent=p;this.__data__=M}
function Z(p){return function(){return p}}
function e(p,M,d,T,gB,mG){for(var qr=0,Mr,uI=M.length,GK=mG.length;qr<GK;++qr)(Mr=M[qr])?(Mr.__data__=mG[qr],T[qr]=Mr):d[qr]=new Q(p,mG[qr]);for(;qr<uI;++qr)if(Mr=M[qr])gB[qr]=Mr}
function O(p,M,d,T,gB,mG,qr){var Mr,uI,GK={},Yd=M.length,Et=mG.length,iC=Array(Yd),o7;for(Mr=0;Mr<Yd;++Mr)if(uI=M[Mr])iC[Mr]=o7="$"+qr.call(uI,uI.__data__,Mr,M),o7 in GK?gB[Mr]=uI:GK[o7]=uI;for(Mr=0;Mr<Et;++Mr)o7="$"+qr.call(p,mG[Mr],Mr,mG),(uI=GK[o7])?(T[Mr]=uI,uI.__data__=mG[Mr],GK[o7]=null):d[Mr]=new Q(p,mG[Mr]);for(Mr=0;Mr<Yd;++Mr)(uI=M[Mr])&&GK[iC[Mr]]===uI&&(gB[Mr]=uI)}
function L(p,M){return p<M?-1:p>M?1:p>=M?0:NaN}
function r(p){return function(){this.removeAttribute(p)}}
function C(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function W(p,M){return function(){this.setAttribute(p,M)}}
function y(p,M){return function(){this.setAttributeNS(p.space,p.local,M)}}
function G(p,M){return function(){var d=M.apply(this,arguments);d==null?this.removeAttribute(p):this.setAttribute(p,d)}}
function Nr(p,M){return function(){var d=M.apply(this,arguments);d==null?this.removeAttributeNS(p.space,p.local):this.setAttributeNS(p.space,p.local,d)}}
function o6(p){return function(){this.style.removeProperty(p)}}
function lI(p,M,d){return function(){this.style.setProperty(p,M,d)}}
function Zt(p,M,d){return function(){var T=M.apply(this,arguments);T==null?this.style.removeProperty(p):this.style.setProperty(p,T,d)}}
function eL(p,M){return p.style.getPropertyValue(M)||(p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView).getComputedStyle(p,null).getPropertyValue(M)}
function OM(p){return function(){delete this[p]}}
function iI(p,M){return function(){this[p]=M}}
function rB(p,M){return function(){var d=M.apply(this,arguments);d==null?delete this[p]:this[p]=d}}
function Tj(){this.textContent=""}
function J_(p){return function(){this.textContent=p}}
function B9(p){return function(){var M=p.apply(this,arguments);this.textContent=M==null?"":M}}
function ok(){this.innerHTML=""}
function Ut(p){return function(){this.innerHTML=p}}
function wt(p){return function(){var M=p.apply(this,arguments);this.innerHTML=M==null?"":M}}
function X$(){return null}
function Dg(){var p=this.parentNode;p&&p.removeChild(this)}
function eQ(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function cg(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function qQ(p,M,d){p=t_(p,M,d);return function(T){var gB=T.relatedTarget;gB&&(gB===this||gB.compareDocumentPosition(this)&8)||p.call(this,T)}}
function t_(p,M,d){return function(){p.call(this,this.__data__,M,d)}}
function $s(p){return p.trim().split(/^|\s+/).map(function(M){var d="",T=M.indexOf(".");T>=0&&(d=M.slice(T+1),M=M.slice(0,T));return{type:M,name:d}})}
function P9(p){return function(){var M=this.__on;if(M){for(var d=0,T=-1,gB=M.length,mG;d<gB;++d)(mG=M[d],p.type&&mG.type!==p.type||mG.name!==p.name)?M[++T]=mG:this.removeEventListener(mG.type,mG.listener,mG.capture);++T?M.length=T:delete this.__on}}}
function $d(p,M,d){var T=dwo.hasOwnProperty(p.type)?qQ:t_;return function(gB,mG,qr){gB=this.__on;var Mr;mG=T(M,mG,qr);if(gB){qr=0;for(var uI=gB.length;qr<uI;++qr)if((Mr=gB[qr]).type===p.type&&Mr.name===p.name){this.removeEventListener(Mr.type,Mr.listener,Mr.capture);this.addEventListener(Mr.type,Mr.listener=mG,Mr.capture=d);Mr.value=M;return}}this.addEventListener(p.type,mG,d);Mr={type:p.type,name:p.name,value:M,listener:mG,capture:d};gB?gB.push(Mr):this.__on=[Mr]}}
function Kh(p,M,d){var T=p.ownerDocument&&p.ownerDocument.defaultView||p.document&&p||p.defaultView,gB=T.CustomEvent;typeof gB==="function"?gB=new gB(M,d):(gB=T.document.createEvent("Event"),d?(gB.initEvent(M,d.bubbles,d.cancelable),gB.detail=d.detail):gB.initEvent(M,!1,!1));p.dispatchEvent(gB)}
function yr(p,M){return function(){return Kh(this,p,M)}}
function gU(p,M){return function(){return Kh(this,p,M.apply(this,arguments))}}
function rU(p,M){this._groups=p;this._parents=M}
function xs(){return new rU([[document.documentElement]],ZEA)}
function xd(){this._="@"+(++BMI).toString(36)}
function MQ(p,M,d){p.prototype=M.prototype=d;d.constructor=p}
function DA(p,M){p=Object.create(p.prototype);for(var d in M)p[d]=M[d];return p}
function Eu(){}
function EX(p){var M;p=(p+"").trim().toLowerCase();return(M=nvs.exec(p))?(M=parseInt(M[1],16),new uQ(M>>8&15|M>>4&240,M>>4&15|M&240,(M&15)<<4|M&15,1)):(M=Mu7.exec(p))?q6(parseInt(M[1],16)):(M=e07.exec(p))?new uQ(M[1],M[2],M[3],1):(M=pZX.exec(p))?new uQ(M[1]*255/100,M[2]*255/100,M[3]*255/100,1):(M=OEt.exec(p))?W1(M[1],M[2],M[3],M[4]):(M=tuA.exec(p))?W1(M[1]*255/100,M[2]*255/100,M[3]*255/100,M[4]):(M=R0F.exec(p))?dl(M[1],M[2]/100,M[3]/100,1):(M=dXR.exec(p))?dl(M[1],M[2]/100,M[3]/100,M[4]):Fkr.hasOwnProperty(p)?
q6(Fkr[p]):p==="transparent"?new uQ(NaN,NaN,NaN,0):null}
function q6(p){return new uQ(p>>16&255,p>>8&255,p&255,1)}
function W1(p,M,d,T){T<=0&&(p=M=d=NaN);return new uQ(p,M,d,T)}
function W9(p){p instanceof Eu||(p=EX(p));if(!p)return new uQ;p=p.rgb();return new uQ(p.r,p.g,p.b,p.opacity)}
function tO(p,M,d,T){return arguments.length===1?W9(p):new uQ(p,M,d,T==null?1:T)}
function uQ(p,M,d,T){this.r=+p;this.g=+M;this.b=+d;this.opacity=+T}
function Vt(p){p=Math.max(0,Math.min(255,Math.round(p)||0));return(p<16?"0":"")+p.toString(16)}
function dl(p,M,d,T){T<=0?p=M=d=NaN:d<=0||d>=1?p=M=NaN:M<=0&&(p=NaN);return new uN(p,M,d,T)}
function Lh(p){if(p instanceof uN)return new uN(p.h,p.s,p.l,p.opacity);p instanceof Eu||(p=EX(p));if(!p)return new uN;if(p instanceof uN)return p;p=p.rgb();var M=p.r/255,d=p.g/255,T=p.b/255,gB=Math.min(M,d,T),mG=Math.max(M,d,T),qr=NaN,Mr=mG-gB,uI=(mG+gB)/2;Mr?(qr=M===mG?(d-T)/Mr+(d<T)*6:d===mG?(T-M)/Mr+2:(M-d)/Mr+4,Mr/=uI<.5?mG+gB:2-mG-gB,qr*=60):Mr=uI>0&&uI<1?0:qr;return new uN(qr,Mr,uI,p.opacity)}
function ea(p,M,d,T){return arguments.length===1?Lh(p):new uN(p,M,d,T==null?1:T)}
function uN(p,M,d,T){this.h=+p;this.s=+M;this.l=+d;this.opacity=+T}
function hz(p,M,d){return(p<60?M+(d-M)*p/60:p<180?d:p<240?M+(d-M)*(240-p)/60:M)*255}
function KM(p){if(p instanceof Qv)return new Qv(p.l,p.a,p.b,p.opacity);if(p instanceof h_){if(isNaN(p.h))return new Qv(p.l,0,0,p.opacity);var M=p.h*Lkk;return new Qv(p.l,Math.cos(M)*p.c,Math.sin(M)*p.c,p.opacity)}p instanceof uQ||(p=W9(p));var d=NF(p.r),T=NF(p.g),gB=NF(p.b);M=La(.2225045*d+.7168786*T+.0606169*gB);if(d===T&&T===gB)var mG=d=M;else mG=La((.4360747*d+.3850649*T+.1430804*gB)/.96422),d=La((.0139322*d+.0971045*T+.7141733*gB)/.82521);return new Qv(116*M-16,500*(mG-M),200*(M-d),p.opacity)}
function Qv(p,M,d,T){this.l=+p;this.a=+M;this.b=+d;this.opacity=+T}
function La(p){return p>F3t?Math.pow(p,1/3):p/SG5+aWU}
function Wg(p){return p>xR?p*p*p:SG5*(p-aWU)}
function D5(p){return 255*(p<=.0031308?12.92*p:1.055*Math.pow(p,1/2.4)-.055)}
function NF(p){return(p/=255)<=.04045?p/12.92:Math.pow((p+.055)/1.055,2.4)}
function p3(p){if(p instanceof h_)return new h_(p.h,p.c,p.l,p.opacity);p instanceof Qv||(p=KM(p));if(p.a===0&&p.b===0)return new h_(NaN,0,p.l,p.opacity);var M=Math.atan2(p.b,p.a)*roU;return new h_(M<0?M+360:M,Math.sqrt(p.a*p.a+p.b*p.b),p.l,p.opacity)}
function md(p,M,d,T){return arguments.length===1?p3(p):new h_(p,M,d,T==null?1:T)}
function h_(p,M,d,T){this.h=+p;this.c=+M;this.l=+d;this.opacity=+T}
function kd(p,M,d,T){if(arguments.length===1){var gB=p;if(gB instanceof qF)gB=new qF(gB.h,gB.s,gB.l,gB.opacity);else{gB instanceof uQ||(gB=W9(gB));var mG=gB.g/255,qr=gB.b/255,Mr=(zik*qr+gB.r/255*-1.7884503806-3.5172982438*mG)/(zik+-1.7884503806-3.5172982438);qr-=Mr;var uI=(1.97294*(mG-Mr)- -.29227*qr)/-.90649;qr=(mG=Math.sqrt(uI*uI+qr*qr)/(1.97294*Mr*(1-Mr)))?Math.atan2(uI,qr)*roU-120:NaN;gB=new qF(qr<0?qr+360:qr,mG,Mr,gB.opacity)}}else gB=new qF(p,M,d,T==null?1:T);return gB}
function qF(p,M,d,T){this.h=+p;this.s=+M;this.l=+d;this.opacity=+T}
function mv(p,M,d,T,gB){var mG=p*p,qr=mG*p;return((1-3*p+3*mG-qr)*M+(4-6*mG+3*qr)*d+(1+3*p+3*mG-3*qr)*T+qr*gB)/6}
function fo(p){return function(){return p}}
function xH(p,M){return function(d){return p+d*M}}
function Y2(p,M,d){return p=Math.pow(p,d),M=Math.pow(M,d)-p,d=1/d,function(T){return Math.pow(p+T*M,d)}}
function FD(p,M){var d=M-p;return d?xH(p,d>180||d<-180?d-360*Math.round(d/360):d):fo(isNaN(p)?M:p)}
function sx(p){return(p=+p)===1?A6:function(M,d){return d-M?Y2(M,d,p):fo(isNaN(M)?d:M)}}
function A6(p,M){var d=M-p;return d?xH(p,d):fo(isNaN(p)?M:p)}
function eZ(p){return function(M){var d=M.length,T=Array(d),gB=Array(d),mG=Array(d),qr;for(qr=0;qr<d;++qr){var Mr=tO(M[qr]);T[qr]=Mr.r||0;gB[qr]=Mr.g||0;mG[qr]=Mr.b||0}T=p(T);gB=p(gB);mG=p(mG);Mr.opacity=1;return function(uI){Mr.r=T(uI);Mr.g=gB(uI);Mr.b=mG(uI);return Mr+""}}}
function Ae(p,M){return p=+p,M-=p,function(d){return p+M*d}}
function gt(p){return function(){return p}}
function a7(p){return function(M){return p(M)+""}}
function rt(p,M){var d=Wka.lastIndex=Kke.lastIndex=0,T,gB,mG,qr=-1,Mr=[],uI=[];p+="";for(M+="";(T=Wka.exec(p))&&(gB=Kke.exec(M));)(mG=gB.index)>d&&(mG=M.slice(d,mG),Mr[qr]?Mr[qr]+=mG:Mr[++qr]=mG),(T=T[0])===(gB=gB[0])?Mr[qr]?Mr[qr]+=gB:Mr[++qr]=gB:(Mr[++qr]=null,uI.push({i:qr,x:Ae(T,gB)})),d=Kke.lastIndex;d<M.length&&(mG=M.slice(d),Mr[qr]?Mr[qr]+=mG:Mr[++qr]=mG);return Mr.length<2?uI[0]?a7(uI[0].x):gt(M):(M=uI.length,function(GK){for(var Yd=0,Et;Yd<M;++Yd)Mr[(Et=uI[Yd]).i]=Et.x(GK);return Mr.join("")})}
function YF(p,M,d,T,gB,mG){var qr,Mr,uI;if(qr=Math.sqrt(p*p+M*M))p/=qr,M/=qr;if(uI=p*d+M*T)d-=p*uI,T-=M*uI;if(Mr=Math.sqrt(d*d+T*T))d/=Mr,T/=Mr,uI/=Mr;p*T<M*d&&(p=-p,M=-M,uI=-uI,qr=-qr);return{translateX:gB,translateY:mG,rotate:Math.atan2(M,p)*Wko,skewX:Math.atan(uI)*Wko,scaleX:qr,scaleY:Mr}}
function Qe(p,M,d,T){function gB(GK){return GK.length?GK.pop()+" ":""}
function mG(GK,Yd,Et,iC,o7,lj){GK!==Et||Yd!==iC?(o7=o7.push("translate(",null,M,null,d),lj.push({i:o7-4,x:Ae(GK,Et)},{i:o7-2,x:Ae(Yd,iC)})):(Et||iC)&&o7.push("translate("+Et+M+iC+d)}
function qr(GK,Yd,Et,iC){GK!==Yd?(GK-Yd>180?Yd+=360:Yd-GK>180&&(GK+=360),iC.push({i:Et.push(gB(Et)+"rotate(",null,T)-2,x:Ae(GK,Yd)})):Yd&&Et.push(gB(Et)+"rotate("+Yd+T)}
function Mr(GK,Yd,Et,iC){GK!==Yd?iC.push({i:Et.push(gB(Et)+"skewX(",null,T)-2,x:Ae(GK,Yd)}):Yd&&Et.push(gB(Et)+"skewX("+Yd+T)}
function uI(GK,Yd,Et,iC,o7,lj){GK!==Et||Yd!==iC?(o7=o7.push(gB(o7)+"scale(",null,",",null,")"),lj.push({i:o7-4,x:Ae(GK,Et)},{i:o7-2,x:Ae(Yd,iC)})):Et===1&&iC===1||o7.push(gB(o7)+"scale("+Et+","+iC+")")}
return function(GK,Yd){var Et=[],iC=[];GK=p(GK);Yd=p(Yd);mG(GK.translateX,GK.translateY,Yd.translateX,Yd.translateY,Et,iC);qr(GK.rotate,Yd.rotate,Et,iC);Mr(GK.skewX,Yd.skewX,Et,iC);uI(GK.scaleX,GK.scaleY,Yd.scaleX,Yd.scaleY,Et,iC);GK=Yd=null;return function(o7){for(var lj=-1,Sr=iC.length,Q$;++lj<Sr;)Et[(Q$=iC[lj]).i]=Q$.x(o7);return Et.join("")}}}
function ow(p){return function(M,d){var T=p((M=ea(M)).h,(d=ea(d)).h),gB=A6(M.s,d.s),mG=A6(M.l,d.l),qr=A6(M.opacity,d.opacity);return function(Mr){M.h=T(Mr);M.s=gB(Mr);M.l=mG(Mr);M.opacity=qr(Mr);return M+""}}}
function pk(p){return function(M,d){var T=p((M=md(M)).h,(d=md(d)).h),gB=A6(M.c,d.c),mG=A6(M.l,d.l),qr=A6(M.opacity,d.opacity);return function(Mr){M.h=T(Mr);M.c=gB(Mr);M.l=mG(Mr);M.opacity=qr(Mr);return M+""}}}
function Od(p){return function T(d){function gB(mG,qr){var Mr=p((mG=kd(mG)).h,(qr=kd(qr)).h),uI=A6(mG.s,qr.s),GK=A6(mG.l,qr.l),Yd=A6(mG.opacity,qr.opacity);return function(Et){mG.h=Mr(Et);mG.s=uI(Et);mG.l=GK(Math.pow(Et,d));mG.opacity=Yd(Et);return mG+""}}
d=+d;gB.gamma=T;return gB}(1)}
function Fs(){return NH||(Kk_(CQ6),NH=ws.now()+mGg)}
function CQ6(){NH=0}
function L$(){this._call=this._time=this._next=null}
function us(p,M,d){var T=new L$;T.restart(p,M,d);return T}
function Ye(){NH=(owv=ws.now())+mGg;qK=VT=0;try{Fs();++qK;for(var p=IsB,M;p;)(M=NH-p._time)>=0&&p._call.call(null,M),p=p._next;--qK}finally{qK=0;p=IsB;for(var d=Infinity;p;)if(p._call){d>p._time&&(d=p._time);var T=p;p=p._next}else M=p._next,p._next=null,p=T?T._next=M:IsB=M;Hk=T;b0(d);NH=0}}
function ZsB(){var p=ws.now(),M=p-owv;M>1E3&&(mGg-=M,owv=p)}
function b0(p){qK||(VT&&(VT=clearTimeout(VT)),p-NH>24?(p<Infinity&&(VT=setTimeout(Ye,p-ws.now()-mGg)),gs&&(gs=clearInterval(gs))):(gs||(owv=ws.now(),gs=setInterval(ZsB,1E3)),qK=1,Kk_(Ye)))}
function iyQ(p,M,d){var T=new L$;M=M==null?0:+M;T.restart(function(gB){T.stop();p(gB+M)},M,d);
return T}
function iyr(p,M,d,T,gB,mG){var qr=p.__transition;if(!qr)p.__transition={};else if(d in qr)return;L3Q(p,d,{name:M,index:T,group:gB,on:S0X,tween:aX7,time:mG.time,delay:mG.delay,duration:mG.duration,ease:mG.ease,timer:null,state:0})}
function Aoa(p,M){p=wP(p,M);if(p.state>0)throw Error("ue");return p}
function E7(p,M){p=wP(p,M);if(p.state>2)throw Error("ve");return p}
function wP(p,M){p=p.__transition;if(!p||!(p=p[M]))throw Error("we");return p}
function L3Q(p,M,d){function T(uI){var GK,Yd;if(d.state!==1)return mG();for(iC in qr){var Et=qr[iC];if(Et.name===d.name){if(Et.state===3)return iyQ(T);Et.state===4?(Et.state=6,Et.timer.stop(),Et.on.call("interrupt",p,p.__data__,Et.index,Et.group),delete qr[iC]):+iC<M&&(Et.state=6,Et.timer.stop(),delete qr[iC])}}iyQ(function(){d.state===3&&(d.state=4,d.timer.restart(gB,d.delay,d.time),gB(uI))});
d.state=2;d.on.call("start",p,p.__data__,d.index,d.group);if(d.state===2){d.state=3;Mr=Array(Yd=d.tween.length);var iC=0;for(GK=-1;iC<Yd;++iC)if(Et=d.tween[iC].value.call(p,p.__data__,d.index,d.group))Mr[++GK]=Et;Mr.length=GK+1}}
function gB(uI){uI=uI<d.duration?d.ease.call(null,uI/d.duration):(d.timer.restart(mG),d.state=5,1);for(var GK=-1,Yd=Mr.length;++GK<Yd;)Mr[GK].call(null,uI);d.state===5&&(d.on.call("end",p,p.__data__,d.index,d.group),mG())}
function mG(){d.state=6;d.timer.stop();delete qr[M];for(var uI in qr)return;delete p.__transition}
var qr=p.__transition,Mr;qr[M]=d;d.timer=us(function(uI){d.state=1;d.timer.restart(T,d.delay,d.time);d.delay<=uI&&T(uI-d.delay)},0,d.time)}
function rZb(p,M){var d,T;return function(){var gB=E7(this,p),mG=gB.tween;if(mG!==d){T=d=mG;mG=0;for(var qr=T.length;mG<qr;++mG)if(T[mG].name===M){T=T.slice();T.splice(mG,1);break}}gB.tween=T}}
function z0F(p,M,d){var T,gB;if(typeof d!=="function")throw Error();return function(){var mG=E7(this,p),qr=mG.tween;if(qr!==T){gB=(T=qr).slice();qr={name:M,value:d};for(var Mr=0,uI=gB.length;Mr<uI;++Mr)if(gB[Mr].name===M){gB[Mr]=qr;break}Mr===uI&&gB.push(qr)}mG.tween=gB}}
function C6L(p,M,d){var T=p._id;p.each(function(){var gB=E7(this,T);(gB.value||(gB.value={}))[M]=d.apply(this,arguments)});
return function(gB){return wP(gB,T).value[M]}}
function Aoo(p,M){var d;return(typeof M==="number"?Ae:M instanceof EX?C6K:(d=EX(M))?(M=d,C6K):rt)(p,M)}
function W3I(p){return function(){this.removeAttribute(p)}}
function K3X(p){return function(){this.removeAttributeNS(p.space,p.local)}}
function iE7(p,M,d){var T,gB;return function(){var mG=this.getAttribute(p);return mG===d?null:mG===T?gB:gB=M(T=mG,d)}}
function AZI(p,M,d){var T,gB;return function(){var mG=this.getAttributeNS(p.space,p.local);return mG===d?null:mG===T?gB:gB=M(T=mG,d)}}
function CLF(p,M,d){var T,gB,mG;return function(){var qr=d(this);if(qr==null)return void this.removeAttribute(p);var Mr=this.getAttribute(p);return Mr===qr?null:Mr===T&&qr===gB?mG:mG=M(T=Mr,gB=qr)}}
function yZb(p,M,d){var T,gB,mG;return function(){var qr=d(this);if(qr==null)return void this.removeAttributeNS(p.space,p.local);var Mr=this.getAttributeNS(p.space,p.local);return Mr===qr?null:Mr===T&&qr===gB?mG:mG=M(T=Mr,gB=qr)}}
function $XA(p,M){function d(){var T=this,gB=M.apply(T,arguments);return gB&&function(mG){T.setAttributeNS(p.space,p.local,gB(mG))}}
d._value=M;return d}
function jyt(p,M){function d(){var T=this,gB=M.apply(T,arguments);return gB&&function(mG){T.setAttribute(p,gB(mG))}}
d._value=M;return d}
function GZQ(p,M){return function(){Aoa(this,p).delay=+M.apply(this,arguments)}}
function TM7(p,M){return M=+M,function(){Aoa(this,p).delay=M}}
function JZt(p,M){return function(){E7(this,p).duration=+M.apply(this,arguments)}}
function uTO(p,M){return M=+M,function(){E7(this,p).duration=M}}
function YIA(p,M){if(typeof M!=="function")throw Error();return function(){E7(this,p).ease=M}}
function bjt(p){return(p+"").trim().split(/^|\s+/).every(function(M){var d=M.indexOf(".");d>=0&&(M=M.slice(0,d));return!M||M==="start"})}
function wYI(p,M,d){var T,gB,mG=bjt(M)?Aoa:E7;return function(){var qr=mG(this,p),Mr=qr.on;if(Mr!==T)(gB=(T=Mr).copy()).on(M,d);qr.on=gB}}
function Vxt(p){return function(){var M=this.parentNode,d;for(d in this.__transition)if(+d!==p)return;M&&M.removeChild(this)}}
function HjO(p,M){var d,T,gB;return function(){var mG=eL(this,p),qr=(this.style.removeProperty(p),eL(this,p));return mG===qr?null:mG===d&&qr===T?gB:gB=M(d=mG,T=qr)}}
function gSX(p){return function(){this.style.removeProperty(p)}}
function ffX(p,M,d){var T,gB;return function(){var mG=eL(this,p);return mG===d?null:mG===T?gB:gB=M(T=mG,d)}}
function Nmg(p,M,d){var T,gB,mG;return function(){var qr=eL(this,p),Mr=d(this);Mr==null&&(Mr=(this.style.removeProperty(p),eL(this,p)));return qr===Mr?null:qr===T&&Mr===gB?mG:mG=M(T=qr,gB=Mr)}}
function ESN(p,M,d){function T(){var gB=this,mG=M.apply(gB,arguments);return mG&&function(qr){gB.style.setProperty(p,mG(qr),d)}}
T._value=M;return T}
function cns(p){return function(){this.textContent=p}}
function UhN(p){return function(){var M=p(this);this.textContent=M==null?"":M}}
function mg(p,M,d,T){this._groups=p;this._parents=M;this._name=d;this._id=T}
function yoa(p){return{type:p}}
function $wv(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function klK(){}
function yoo(p,M){var d=new klK;if(p instanceof klK)p.each(function(qr,Mr){d.set(Mr,qr)});
else if(Array.isArray(p)){var T=-1,gB=p.length,mG;if(M==null)for(;++T<gB;)d.set(T,p[T]);else for(;++T<gB;)d.set(M(mG=p[T],T,p),mG)}else if(p)for(T in p)d.set(T,p[T]);return d}
function lsa(){}
function $wr(p){return function(M){for(var d={},T=0;T<p.length;T++)d[p[T]]=M[T]||"";return d}}
function XYb(p,M){var d=$wr(p);return function(T,gB){return M(d(T),gB,p)}}
function DhQ(p){var M=Object.create(null),d=[];p.forEach(function(T){for(var gB in T)gB in M||d.push(M[gB]=gB)});
return d}
function jO_(p){function M(qr,Mr){function uI(){if(lj)return jOe;if(Sr)return Sr=!1,GP8;var BO,rl=Et,Y7;if(qr.charCodeAt(rl)===34){for(;Et++<Yd&&qr.charCodeAt(Et)!==34||qr.charCodeAt(++Et)===34;);(BO=Et)>=Yd?lj=!0:(Y7=qr.charCodeAt(Et++))===10?Sr=!0:Y7===13&&(Sr=!0,qr.charCodeAt(Et)===10&&++Et);return qr.slice(rl+1,BO-1).replace(/""/g,'"')}for(;Et<Yd;){if((Y7=qr.charCodeAt(BO=Et++))===10)Sr=!0;else if(Y7===13)Sr=!0,qr.charCodeAt(Et)===10&&++Et;else if(Y7!==mG)continue;return qr.slice(rl,BO)}return lj=
!0,qr.slice(rl,Yd)}
var GK=[],Yd=qr.length,Et=0,iC=0,o7,lj=Yd<=0,Sr=!1;qr.charCodeAt(Yd-1)===10&&--Yd;for(qr.charCodeAt(Yd-1)===13&&--Yd;(o7=uI())!==jOe;){for(var Q$=[];o7!==GP8&&o7!==jOe;)Q$.push(o7),o7=uI();Mr&&(Q$=Mr(Q$,iC++))==null||GK.push(Q$)}return GK}
function d(qr){return qr.map(T).join(p)}
function T(qr){return qr==null?"":gB.test(qr)?'"'+qr.replace(/"/g,'""')+'"':qr}
var gB=new RegExp('["'+p+"\n\r]"),mG=p.charCodeAt(0);return{parse:function(qr,Mr){var uI,GK;qr=M(qr,function(Yd,Et){if(uI)return uI(Yd,Et-1);GK=Yd;uI=Mr?XYb(Yd,Mr):$wr(Yd)});
qr.columns=GK||[];return qr},
parseRows:M,format:function(qr,Mr){Mr==null&&(Mr=DhQ(qr));return[Mr.map(T).join(p)].concat(qr.map(function(uI){return Mr.map(function(GK){return T(uI[GK])}).join(p)})).join("\n")},
formatRows:function(qr){return qr.map(d).join("\n")}}}
function mhX(p){if(!p.ok)throw Error("xe`"+p.status+"`"+p.statusText);return p.text()}
function TA5(p){return function(M,d,T){arguments.length===2&&typeof d==="function"&&(T=d,d=void 0);return fetch(M,d).then(mhX).then(function(gB){return p(gB,T)})}}
function Jo5(p,M,d,T){if(isNaN(M)||isNaN(d))return p;var gB,mG=p._root;T={data:T};var qr=p._x0,Mr=p._y0,uI=p._x1,GK=p._y1,Yd,Et,iC,o7,lj;if(!mG)return p._root=T,p;for(;mG.length;)if((iC=M>=(Yd=(qr+uI)/2))?qr=Yd:uI=Yd,(o7=d>=(Et=(Mr+GK)/2))?Mr=Et:GK=Et,gB=mG,!(mG=mG[lj=o7<<1|iC]))return gB[lj]=T,p;var Sr=+p._x.call(null,mG.data);var Q$=+p._y.call(null,mG.data);if(M===Sr&&d===Q$)return T.next=mG,gB?gB[lj]=T:p._root=T,p;do gB=gB?gB[lj]=Array(4):p._root=Array(4),(iC=M>=(Yd=(qr+uI)/2))?qr=Yd:uI=Yd,(o7=
d>=(Et=(Mr+GK)/2))?Mr=Et:GK=Et;while((lj=o7<<1|iC)===(iC=(Q$>=Et)<<1|Sr>=Yd));return gB[iC]=mG,gB[lj]=T,p}
function qC(p,M,d,T,gB){this.node=p;this.x0=M;this.y0=d;this.x1=T;this.y1=gB}
function oSb(p){return p[0]}
function IfX(p){return p[1]}
function GPq(p,M,d,T,gB,mG){this._x=p;this._y=M;this._x0=d;this._y0=T;this._x1=gB;this._y1=mG;this._root=void 0}
function uRU(p){for(var M={data:p.data},d=M;p=p.next;)d=d.next={data:p.data};return M}
function h7b(p,M){if((M=(p=M?p.toExponential(M-1):p.toExponential()).indexOf("e"))<0)return null;var d=p.slice(0,M);return[d.length>1?d[0]+d.slice(2):d,+p.slice(M+1)]}
function keQ(p){return p=h7b(Math.abs(p)),p?p[1]:NaN}
function lfs(p,M){return function(d,T){for(var gB=d.length,mG=[],qr=0,Mr=p[0],uI=0;gB>0&&Mr>0;){uI+Mr+1>T&&(Mr=Math.max(1,T-uI));mG.push(d.substring(gB-=Mr,gB+Mr));if((uI+=Mr+1)>T)break;Mr=p[qr=(qr+1)%p.length]}return mG.reverse().join(M)}}
function hPN(p){return function(M){return M.replace(/[0-9]/g,function(d){return p[+d]})}}
function TAt(p){return new Jot(p)}
function Jot(p){if(!(M=xht.exec(p)))throw Error("ye`"+p);var M;this.fill=M[1]||" ";this.align=M[2]||">";this.sign=M[3]||"-";this.symbol=M[4]||"";this.zero=!!M[5];this.width=M[6]&&+M[6];this.comma=!!M[7];this.precision=M[8]&&+M[8].slice(1);this.trim=!!M[9];this.type=M[10]||""}
function Y_U(p,M){M=h7b(p,M);if(!M)return p+"";p=M[0];M=M[1];return M<0?"0."+Array(-M).join("0")+p:p.length>M+1?p.slice(0,M+1)+"."+p.slice(M+1):p+Array(M-p.length+2).join("0")}
function biK(p){return p}
function qIX(p){function M(Mr){function uI($M){var yh=Y7,MF=vb,U3,HD;if(rl==="c")MF=z_($M)+MF,$M="";else{$M=+$M;var lQ=$M<0;$M=z_(Math.abs($M),Q$);if(BO){var FI=$M.length,mp=1,nb=-1;a:for(;mp<FI;++mp)switch($M[mp]){case ".":nb=U3=mp;break;case "0":nb===0&&(nb=mp);U3=mp;break;default:if(!+$M[mp])break a;nb>0&&(nb=0)}$M=nb>0?$M.slice(0,nb)+$M.slice(U3+1):$M}lQ&&+$M===0&&(lQ=!1);yh=(lQ?Et==="("?Et:"-":Et==="-"||Et==="("?"":Et)+yh;MF=(rl==="s"?wU8[8+Vc5/3]:"")+MF+(lQ&&Et==="("?")":"");if(oz)for(lQ=-1,
U3=$M.length;++lQ<U3;)if(HD=$M.charCodeAt(lQ),48>HD||HD>57){MF=(HD===46?gB+$M.slice(lQ+1):$M.slice(lQ))+MF;$M=$M.slice(0,lQ);break}}Sr&&!o7&&($M=d($M,Infinity));HD=yh.length+$M.length+MF.length;lQ=HD<lj?Array(lj-HD+1).join(GK):"";Sr&&o7&&($M=d(lQ+$M,lQ.length?lj-MF.length:Infinity),lQ="");switch(Yd){case "<":$M=yh+$M+MF+lQ;break;case "=":$M=yh+lQ+$M+MF;break;case "^":$M=lQ.slice(0,HD=lQ.length>>1)+yh+$M+MF+lQ.slice(HD);break;default:$M=lQ+yh+$M+MF}return mG($M)}
Mr=TAt(Mr);var GK=Mr.fill,Yd=Mr.align,Et=Mr.sign,iC=Mr.symbol,o7=Mr.zero,lj=Mr.width,Sr=Mr.comma,Q$=Mr.precision,BO=Mr.trim,rl=Mr.type;rl==="n"?(Sr=!0,rl="g"):Hit[rl]||(Q$==null&&(Q$=12),BO=!0,rl="g");if(o7||GK==="0"&&Yd==="=")o7=!0,GK="0",Yd="=";var Y7=iC==="$"?T[0]:iC==="#"&&/[boxX]/.test(rl)?"0"+rl.toLowerCase():"",vb=iC==="$"?T[1]:/[%p]/.test(rl)?qr:"",z_=Hit[rl],oz=/[defgprs%]/.test(rl);Q$=Q$==null?6:/[gprs]/.test(rl)?Math.max(1,Math.min(21,Q$)):Math.max(0,Math.min(20,Q$));uI.toString=function(){return Mr+
""};
return uI}
var d=p.grouping&&p.thousands?lfs(p.grouping,p.thousands):biK,T=p.currency,gB=p.decimal,mG=p.numerals?hPN(p.numerals):biK,qr=p.percent||"%";return{format:M,formatPrefix:function(Mr,uI){var GK=M((Mr=TAt(Mr),Mr.type="f",Mr));Mr=Math.max(-8,Math.min(8,Math.floor(keQ(uI)/3)))*3;var Yd=Math.pow(10,-Mr),Et=wU8[8+Mr/3];return function(iC){return GK(Yd*iC)+Et}}}}
function JJ(){this.reset()}
function g$I(p,M,d){var T=p.s=M+d,gB=T-M;p.t=M-(T-gB)+(d-gB)}
function xGv(p){return p>1?DH:p<-1?-DH:Math.asin(p)}
function svs(){}
function fyK(p){var M=p[0];p=p[1];var d=m2(p);return[d*m2(M),d*Yt(M),Yt(p)]}
function NLo(p,M){return[p[1]*M[2]-p[2]*M[1],p[2]*M[0]-p[0]*M[2],p[0]*M[1]-p[1]*M[0]]}
function E$8(p){var M=qNg(p[0]*p[0]+p[1]*p[1]+p[2]*p[2]);p[0]/=M;p[1]/=M;p[2]/=M}
function QvO(){var p=[],M;return{point:function(d,T){M.push([d,T])},
lineStart:function(){p.push(M=[])},
lineEnd:svs,rejoin:function(){p.length>1&&p.push(p.pop().concat(p.shift()))},
result:function(){var d=p;p=[];M=null;return d}}}
function s2M(p,M,d,T){this.x=p;this.z=M;this.o=d;this.e=T;this.v=!1;this.n=this.p=null}
function vSg(p,M,d,T,gB){var mG=[],qr=[];p.forEach(function(Et){if(!((iC=Et.length-1)<=0)){var iC,o7=Et[0],lj=Et[iC],Sr=o7;if(oj(Sr[0]-lj[0])<1E-6&&oj(Sr[1]-lj[1])<1E-6){gB.lineStart();for(Mr=0;Mr<iC;++Mr)gB.point((o7=Et[Mr])[0],o7[1]);gB.lineEnd()}else mG.push(iC=new s2M(o7,Et,null,!0)),qr.push(iC.o=new s2M(o7,null,iC,!1)),mG.push(iC=new s2M(lj,Et,null,!1)),qr.push(iC.o=new s2M(lj,null,iC,!0))}});
if(mG.length){qr.sort(M);cx8(mG);cx8(qr);var Mr=0;for(p=qr.length;Mr<p;++Mr)qr[Mr].e=d=!d;d=mG[0];for(var uI;;){for(var GK=d,Yd=!0;GK.v;)if((GK=GK.n)===d)return;M=GK.z;gB.lineStart();do{GK.v=GK.o.v=!0;if(GK.e){if(Yd)for(Mr=0,p=M.length;Mr<p;++Mr)gB.point((uI=M[Mr])[0],uI[1]);else T(GK.x,GK.n.x,1,gB);GK=GK.n}else{if(Yd)for(M=GK.p.z,Mr=M.length-1;Mr>=0;--Mr)gB.point((uI=M[Mr])[0],uI[1]);else T(GK.x,GK.p.x,-1,gB);GK=GK.p}GK=GK.o;M=GK.z;Yd=!Yd}while(!GK.v);gB.lineEnd()}}}
function cx8(p){if(M=p.length){for(var M,d=0,T=p[0],gB;++d<M;)T.n=gB=p[d],gB.p=T,T=gB;T.n=gB=p[0];gB.p=T}}
function PVX(p){return p.length>1}
function Zjb(p,M){return((p=p.x)[0]<0?p[1]-DH-1E-6:DH-p[1])-((M=M.x)[0]<0?M[1]-DH-1E-6:DH-M[1])}
function uRB(){}
function UMt(p){return function(M,d){var T=m2(M),gB=m2(d);T=p(T*gB);return[T*gB*Yt(M),T*Yt(d)]}}
function fm(p){return function(M,d){var T=qNg(M*M+d*d),gB=p(T),mG=Yt(gB);gB=m2(gB);return[XUI(M*mG,T*gB),xGv(T&&d*mG/T)]}}
function BmN(p){var M=0,d=p.children,T=d&&d.length;if(T)for(;--T>=0;)M+=d[T].value;else M=1;p.value=M}
function DMU(p,M){var d=new N3(p);p=+p.value&&(d.value=p.value);var T,gB=[d],mG,qr,Mr,uI;for(M==null&&(M=nSt);T=gB.pop();)if(p&&(T.value=+T.data.value),(qr=M(T.data))&&(uI=qr.length))for(T.children=Array(uI),Mr=uI-1;Mr>=0;--Mr)gB.push(mG=T.children[Mr]=new N3(qr[Mr])),mG.parent=T,mG.depth=T.depth+1;return d.eachBefore(Mxd)}
function nSt(p){return p.children}
function ePF(p){p.data=p.data.data}
function Mxd(p){var M=0;do p.height=M;while((p=p.parent)&&p.height<++M)}
function N3(p){this.data=p;this.depth=this.height=0;this.parent=null}
function CS(p,M,d,T){function gB(mG){return p(mG=new Date(+mG)),mG}
gB.floor=gB;gB.ceil=function(mG){return p(mG=new Date(mG-1)),M(mG,1),p(mG),mG};
gB.round=function(mG){var qr=gB(mG),Mr=gB.ceil(mG);return mG-qr<Mr-mG?qr:Mr};
gB.offset=function(mG,qr){return M(mG=new Date(+mG),qr==null?1:Math.floor(qr)),mG};
gB.range=function(mG,qr,Mr){var uI=[],GK;mG=gB.ceil(mG);Mr=Mr==null?1:Math.floor(Mr);if(!(mG<qr&&Mr>0))return uI;do uI.push(GK=new Date(+mG)),M(mG,Mr),p(mG);while(GK<mG&&mG<qr);return uI};
gB.filter=function(mG){return CS(function(qr){if(qr>=qr)for(;p(qr),!mG(qr);)qr.setTime(qr-1)},function(qr,Mr){if(qr>=qr)if(Mr<0)for(;++Mr<=0;)for(;M(qr,-1),!mG(qr););
else for(;--Mr>=0;)for(;M(qr,1),!mG(qr););})};
d&&(gB.count=function(mG,qr){Y_B.setTime(+mG);biL.setTime(+qr);p(Y_B);p(biL);return Math.floor(d(Y_B,biL))},gB.every=function(mG){mG=Math.floor(mG);
return isFinite(mG)&&mG>0?mG>1?gB.filter(T?function(qr){return T(qr)%mG===0}:function(qr){return gB.count(0,qr)%mG===0}):gB:null});
return gB}
function cl(p){return CS(function(M){M.setDate(M.getDate()-(M.getDay()+7-p)%7);M.setHours(0,0,0,0)},function(M,d){M.setDate(M.getDate()+d*7)},function(M,d){return(d-M-(d.getTimezoneOffset()-M.getTimezoneOffset())*6E4)/6048E5})}
function U7(p){return CS(function(M){M.setUTCDate(M.getUTCDate()-(M.getUTCDay()+7-p)%7);M.setUTCHours(0,0,0,0)},function(M,d){M.setUTCDate(M.getUTCDate()+d*7)},function(M,d){return(d-M)/6048E5})}
function pYI(p){if(0<=p.y&&p.y<100){var M=new Date(-1,p.m,p.d,p.H,p.M,p.S,p.L);M.setFullYear(p.y);return M}return new Date(p.y,p.m,p.d,p.H,p.M,p.S,p.L)}
function Q2e(p){if(0<=p.y&&p.y<100){var M=new Date(Date.UTC(-1,p.m,p.d,p.H,p.M,p.S,p.L));M.setUTCFullYear(p.y);return M}return new Date(Date.UTC(p.y,p.m,p.d,p.H,p.M,p.S,p.L))}
function Eh(p){return{y:p,m:0,d:1,H:0,M:0,S:0,L:0}}
function OjO(p){function M(MF,U3){return function(HD){var lQ=[],FI=-1,mp=0,nb=MF.length,VW,dA;for(HD instanceof Date||(HD=new Date(+HD));++FI<nb;)if(MF.charCodeAt(FI)===37){lQ.push(MF.slice(mp,FI));(mp=mM_[VW=MF.charAt(++FI)])!=null?VW=MF.charAt(++FI):mp=VW==="e"?" ":"0";if(dA=U3[VW])VW=dA(HD,mp);lQ.push(VW);mp=FI+1}lQ.push(MF.slice(mp,FI));return lQ.join("")}}
function d(MF,U3){return function(HD){var lQ=Eh(1900);if(T(lQ,MF,HD,0)!=HD.length)return null;if("Q"in lQ)return new Date(lQ.Q);"p"in lQ&&(lQ.H=lQ.H%12+lQ.p*12);if("V"in lQ){if(lQ.V<1||lQ.V>53)return null;"w"in lQ||(lQ.w=1);if("Z"in lQ){HD=Q2e(Eh(lQ.y));var FI=HD.getUTCDay();HD=FI>4||FI===0?wUq.ceil(HD):wUq(HD);HD=o$K.offset(HD,(lQ.V-1)*7);lQ.y=HD.getUTCFullYear();lQ.m=HD.getUTCMonth();lQ.d=HD.getUTCDate()+(lQ.w+6)%7}else HD=U3(Eh(lQ.y)),FI=HD.getDay(),HD=FI>4||FI===0?Vct.ceil(HD):Vct(HD),HD=Iyt.offset(HD,
(lQ.V-1)*7),lQ.y=HD.getFullYear(),lQ.m=HD.getMonth(),lQ.d=HD.getDate()+(lQ.w+6)%7}else if("W"in lQ||"U"in lQ)"w"in lQ||(lQ.w="u"in lQ?lQ.u%7:"W"in lQ?1:0),FI="Z"in lQ?Q2e(Eh(lQ.y)).getUTCDay():U3(Eh(lQ.y)).getDay(),lQ.m=0,lQ.d="W"in lQ?(lQ.w+6)%7+lQ.W*7-(FI+5)%7:lQ.w+lQ.U*7-(FI+6)%7;return"Z"in lQ?(lQ.H+=lQ.Z/100|0,lQ.M+=lQ.Z%100,Q2e(lQ)):U3(lQ)}}
function T(MF,U3,HD,lQ){for(var FI=0,mp=U3.length,nb=HD.length,VW;FI<mp;){if(lQ>=nb)return-1;VW=U3.charCodeAt(FI++);if(VW===37){if(VW=U3.charAt(FI++),VW=yh[VW in mM_?U3.charAt(FI++):VW],!VW||(lQ=VW(MF,HD,lQ))<0)return-1}else if(VW!=HD.charCodeAt(lQ++))return-1}return lQ}
var gB=p.dateTime,mG=p.date,qr=p.time,Mr=p.periods,uI=p.days,GK=p.shortDays,Yd=p.months,Et=p.shortMonths,iC=ck(Mr),o7=Uh(Mr),lj=ck(uI),Sr=Uh(uI),Q$=ck(GK),BO=Uh(GK),rl=ck(Yd),Y7=Uh(Yd),vb=ck(Et),z_=Uh(Et),oz={a:function(MF){return GK[MF.getDay()]},
A:function(MF){return uI[MF.getDay()]},
b:function(MF){return Et[MF.getMonth()]},
B:function(MF){return Yd[MF.getMonth()]},
c:null,d:kQt,e:kQt,f:txN,H:RPO,I:dhI,j:FUN,L:lyd,m:LUt,M:SII,p:function(MF){return Mr[+(MF.getHours()>=12)]},
Q:hzr,s:xMK,S:afg,u:rnX,U:zPX,V:WUI,w:KU7,W:ij7,x:null,X:null,y:AnN,Y:CVI,Z:ynt,"%":q_d},$M={a:function(MF){return GK[MF.getUTCDay()]},
A:function(MF){return uI[MF.getUTCDay()]},
b:function(MF){return Et[MF.getUTCMonth()]},
B:function(MF){return Yd[MF.getUTCMonth()]},
c:null,d:s$d,e:s$d,f:$hb,H:jvR,I:Ges,j:Tmt,L:Q$d,m:Jnd,M:u1t,p:function(MF){return Mr[+(MF.getUTCHours()>=12)]},
Q:hzr,s:xMK,S:YVd,u:b1t,U:wVI,V:VOt,w:H17,W:g5b,x:null,X:null,y:fqX,Y:NPs,Z:E5X,"%":q_d},yh={a:function(MF,U3,HD){return(U3=Q$.exec(U3.slice(HD)))?(MF.w=BO[U3[0].toLowerCase()],HD+U3[0].length):-1},
A:function(MF,U3,HD){return(U3=lj.exec(U3.slice(HD)))?(MF.w=Sr[U3[0].toLowerCase()],HD+U3[0].length):-1},
b:function(MF,U3,HD){return(U3=vb.exec(U3.slice(HD)))?(MF.m=z_[U3[0].toLowerCase()],HD+U3[0].length):-1},
B:function(MF,U3,HD){return(U3=rl.exec(U3.slice(HD)))?(MF.m=Y7[U3[0].toLowerCase()],HD+U3[0].length):-1},
c:function(MF,U3,HD){return T(MF,gB,U3,HD)},
d:v$$,e:v$$,f:cSs,H:PMr,I:PMr,j:Ukt,L:XVA,m:DkI,M:mkb,p:function(MF,U3,HD){return(U3=iC.exec(U3.slice(HD)))?(MF.p=o7[U3[0].toLowerCase()],HD+U3[0].length):-1},
Q:o5X,s:IqN,S:khd,u:lqg,U:hLI,V:xkg,w:qVI,W:s_s,x:function(MF,U3,HD){return T(MF,mG,U3,HD)},
X:function(MF,U3,HD){return T(MF,qr,U3,HD)},
y:Q_A,Y:v5F,Z:Pzd,"%":Z1N};oz.x=M(mG,oz);oz.X=M(qr,oz);oz.c=M(gB,oz);$M.x=M(mG,$M);$M.X=M(qr,$M);$M.c=M(gB,$M);return{format:function(MF){var U3=M(MF,oz);U3.toString=function(){return MF};
return U3},
parse:function(MF){var U3=d(MF,pYI);U3.toString=function(){return MF};
return U3},
utcFormat:function(MF){var U3=M(MF,$M);U3.toString=function(){return MF};
return U3},
utcParse:function(MF){var U3=d(MF,Q2e);U3.toString=function(){return MF};
return U3}}}
function m4(p,M,d){var T=p<0?"-":"";p=(T?-p:p)+"";var gB=p.length;return T+(gB<d?Array(d-gB+1).join(M)+p:p)}
function BPd(p){return p.replace(n5N,"\\$&")}
function ck(p){return new RegExp("^(?:"+p.map(BPd).join("|")+")","i")}
function Uh(p){for(var M={},d=-1,T=p.length;++d<T;)M[p[d].toLowerCase()]=d;return M}
function qVI(p,M,d){return(M=bn.exec(M.slice(d,d+1)))?(p.w=+M[0],d+M[0].length):-1}
function lqg(p,M,d){return(M=bn.exec(M.slice(d,d+1)))?(p.u=+M[0],d+M[0].length):-1}
function hLI(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.U=+M[0],d+M[0].length):-1}
function xkg(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.V=+M[0],d+M[0].length):-1}
function s_s(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.W=+M[0],d+M[0].length):-1}
function v5F(p,M,d){return(M=bn.exec(M.slice(d,d+4)))?(p.y=+M[0],d+M[0].length):-1}
function Q_A(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.y=+M[0]+(+M[0]>68?1900:2E3),d+M[0].length):-1}
function Pzd(p,M,d){return(M=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(M.slice(d,d+6)))?(p.Z=M[1]?0:-(M[2]+(M[3]||"00")),d+M[0].length):-1}
function DkI(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.m=M[0]-1,d+M[0].length):-1}
function v$$(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.d=+M[0],d+M[0].length):-1}
function Ukt(p,M,d){return(M=bn.exec(M.slice(d,d+3)))?(p.m=0,p.d=+M[0],d+M[0].length):-1}
function PMr(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.H=+M[0],d+M[0].length):-1}
function mkb(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.M=+M[0],d+M[0].length):-1}
function khd(p,M,d){return(M=bn.exec(M.slice(d,d+2)))?(p.S=+M[0],d+M[0].length):-1}
function XVA(p,M,d){return(M=bn.exec(M.slice(d,d+3)))?(p.L=+M[0],d+M[0].length):-1}
function cSs(p,M,d){return(M=bn.exec(M.slice(d,d+6)))?(p.L=Math.floor(M[0]/1E3),d+M[0].length):-1}
function Z1N(p,M,d){return(p=MOF.exec(M.slice(d,d+1)))?d+p[0].length:-1}
function o5X(p,M,d){return(M=bn.exec(M.slice(d)))?(p.Q=+M[0],d+M[0].length):-1}
function IqN(p,M,d){return(M=bn.exec(M.slice(d)))?(p.Q=+M[0]*1E3,d+M[0].length):-1}
function kQt(p,M){return m4(p.getDate(),M,2)}
function RPO(p,M){return m4(p.getHours(),M,2)}
function dhI(p,M){return m4(p.getHours()%12||12,M,2)}
function FUN(p,M){return m4(1+Iyt.count(si(p),p),M,3)}
function lyd(p,M){return m4(p.getMilliseconds(),M,3)}
function txN(p,M){return lyd(p,M)+"000"}
function LUt(p,M){return m4(p.getMonth()+1,M,2)}
function SII(p,M){return m4(p.getMinutes(),M,2)}
function afg(p,M){return m4(p.getSeconds(),M,2)}
function rnX(p){p=p.getDay();return p===0?7:p}
function zPX(p,M){return m4(eLb.count(si(p),p),M,2)}
function WUI(p,M){var d=p.getDay();p=d>=4||d===0?HiM(p):HiM.ceil(p);return m4(HiM.count(si(p),p)+(si(p).getDay()===4),M,2)}
function KU7(p){return p.getDay()}
function ij7(p,M){return m4(Vct.count(si(p),p),M,2)}
function AnN(p,M){return m4(p.getFullYear()%100,M,2)}
function CVI(p,M){return m4(p.getFullYear()%1E4,M,4)}
function ynt(p){p=p.getTimezoneOffset();return(p>0?"-":(p*=-1,"+"))+m4(p/60|0,"0",2)+m4(p%60,"0",2)}
function s$d(p,M){return m4(p.getUTCDate(),M,2)}
function jvR(p,M){return m4(p.getUTCHours(),M,2)}
function Ges(p,M){return m4(p.getUTCHours()%12||12,M,2)}
function Tmt(p,M){return m4(1+o$K.count(QH(p),p),M,3)}
function Q$d(p,M){return m4(p.getUTCMilliseconds(),M,3)}
function $hb(p,M){return Q$d(p,M)+"000"}
function Jnd(p,M){return m4(p.getUTCMonth()+1,M,2)}
function u1t(p,M){return m4(p.getUTCMinutes(),M,2)}
function YVd(p,M){return m4(p.getUTCSeconds(),M,2)}
function b1t(p){p=p.getUTCDay();return p===0?7:p}
function wVI(p,M){return m4(pVR.count(QH(p),p),M,2)}
function VOt(p,M){var d=p.getUTCDay();p=d>=4||d===0?g$G(p):g$G.ceil(p);return m4(g$G.count(QH(p),p)+(QH(p).getUTCDay()===4),M,2)}
function H17(p){return p.getUTCDay()}
function g5b(p,M){return m4(wUq.count(QH(p),p),M,2)}
function fqX(p,M){return m4(p.getUTCFullYear()%100,M,2)}
function NPs(p,M){return m4(p.getUTCFullYear()%1E4,M,4)}
function E5X(){return"+0000"}
function q_d(){return"%"}
function hzr(p){return+p}
function xMK(p){return Math.floor(+p/1E3)}
function N6(p){for(var M=p.length/6|0,d=Array(M),T=0;T<M;)d[T]="#"+p.slice(T*6,++T*6);return d}
function LQ(p){return O1O(p[p.length-1])}
function vwq(p){var M=p.length;return function(d){return p[Math.max(0,Math.min(M-1,Math.floor(d*M)))]}}
function ZiC(p){this._context=p}
function BL9(p){this._curve=p}
function n$8(p,M,d){var T=p._x1-p._x0;M-=p._x1;var gB=(p._y1-p._y0)/(T||M<0&&-0);p=(d-p._y1)/(M||T<0&&-0);return((gB<0?-1:1)+(p<0?-1:1))*Math.min(Math.abs(gB),Math.abs(p),.5*Math.abs((gB*M+p*T)/(T+M)))||0}
function Mck(p,M){var d=p._x1-p._x0;return d?(3*(p._y1-p._y0)/d-M)/2:M}
function fyL(p,M,d){var T=p._x0,gB=p._x1,mG=p._y1,qr=(gB-T)/3;p._context.bezierCurveTo(T+qr,p._y0+qr*M,gB-qr,mG-qr*d,gB,mG)}
function NLa(p){this._context=p}
function ezt(p){this._context=p}
function Xr(p,M,d){this.k=p;this.x=M;this.y=d}
(function(p){p.length===1&&(p=b(p));return{left:function(M,d,T,gB){T==null&&(T=0);gB==null&&(gB=M.length);for(;T<gB;){var mG=T+gB>>>1;p(M[mG],d)<0?T=mG+1:gB=mG}return T},
right:function(M,d,T,gB){T==null&&(T=0);gB==null&&(gB=M.length);for(;T<gB;){var mG=T+gB>>>1;p(M[mG],d)>0?gB=mG:T=mG+1}return T}}})(Y);
var PLt={value:function(){}};
V.prototype=w.prototype={constructor:V,on:function(p,M){var d=this._,T=H(p+"",d),gB,mG=-1,qr=T.length;if(arguments.length<2)for(;++mG<qr;){var Mr;if(Mr=gB=(p=T[mG]).type){a:{Mr=d[gB];for(var uI=0,GK=Mr.length;uI<GK;++uI)if((gB=Mr[uI]).name===p.name){gB=gB.value;break a}gB=void 0}Mr=gB}if(Mr)return gB}else{if(M!=null&&typeof M!=="function")throw Error("ze`"+M);for(;++mG<qr;)if(gB=(p=T[mG]).type)d[gB]=f(d[gB],p.name,M);else if(M==null)for(gB in d)d[gB]=f(d[gB],p.name,null);return this}},
copy:function(){var p={},M=this._,d;for(d in M)p[d]=M[d].slice();return new V(p)},
call:function(p,M){if((gB=arguments.length-2)>0)for(var d=Array(gB),T=0,gB,mG;T<gB;++T)d[T]=arguments[T+2];if(!this._.hasOwnProperty(p))throw Error("te`"+p);mG=this._[p];T=0;for(gB=mG.length;T<gB;++T)mG[T].value.apply(M,d)},
apply:function(p,M,d){if(!this._.hasOwnProperty(p))throw Error("te`"+p);p=this._[p];for(var T=0,gB=p.length;T<gB;++T)p[T].value.apply(M,d)}};
var XB={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/"},pUr=function(p){return function(){return this.matches(p)}};
if(typeof document!=="undefined"){var D_=document.documentElement;if(!D_.matches){var tOI=D_.webkitMatchesSelector||D_.msMatchesSelector||D_.mozMatchesSelector||D_.oMatchesSelector;pUr=function(p){return function(){return tOI.call(this,p)}}}}var OiC=pUr;
Q.prototype={constructor:Q,appendChild:function(p){return this._parent.insertBefore(p,this._next)},
insertBefore:function(p,M){return this._parent.insertBefore(p,M)},
querySelector:function(p){return this._parent.querySelector(p)},
querySelectorAll:function(p){return this._parent.querySelectorAll(p)}};
var dwo={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(dwo={mouseenter:"mouseover",mouseleave:"mouseout"}));var ZEA=[null];rU.prototype=xs.prototype={constructor:rU,select:function(p){typeof p!=="function"&&(p=l(p));for(var M=this._groups,d=M.length,T=Array(d),gB=0;gB<d;++gB)for(var mG=M[gB],qr=mG.length,Mr=T[gB]=Array(qr),uI,GK,Yd=0;Yd<qr;++Yd)(uI=mG[Yd])&&(GK=p.call(uI,uI.__data__,Yd,mG))&&("__data__"in uI&&(GK.__data__=uI.__data__),Mr[Yd]=GK);return new rU(T,this._parents)},
filter:function(p){typeof p!=="function"&&(p=OiC(p));for(var M=this._groups,d=M.length,T=Array(d),gB=0;gB<d;++gB)for(var mG=M[gB],qr=mG.length,Mr=T[gB]=[],uI,GK=0;GK<qr;++GK)(uI=mG[GK])&&p.call(uI,uI.__data__,GK,mG)&&Mr.push(uI);return new rU(T,this._parents)},
data:function(p,M){if(!p)return o7=Array(this.size()),GK=-1,this.each(function(rl){o7[++GK]=rl}),o7;
var d=M?O:e,T=this._parents,gB=this._groups;typeof p!=="function"&&(p=Z(p));for(var mG=gB.length,qr=Array(mG),Mr=Array(mG),uI=Array(mG),GK=0;GK<mG;++GK){var Yd=T[GK],Et=gB[GK],iC=Et.length,o7=p.call(Yd,Yd&&Yd.__data__,GK,T),lj=o7.length,Sr=Mr[GK]=Array(lj),Q$=qr[GK]=Array(lj);iC=uI[GK]=Array(iC);d(Yd,Et,Sr,Q$,iC,o7,M);Et=Yd=0;for(var BO;Yd<lj;++Yd)if(iC=Sr[Yd]){for(Yd>=Et&&(Et=Yd+1);!(BO=Q$[Et])&&++Et<lj;);iC._next=BO||null}}qr=new rU(qr,T);qr._enter=Mr;qr._exit=uI;return qr},
exit:function(){return new rU(this._exit||this._groups.map(x),this._parents)},
merge:function(p){var M=this._groups;p=p._groups;for(var d=M.length,T=Math.min(d,p.length),gB=Array(d),mG=0;mG<T;++mG)for(var qr=M[mG],Mr=p[mG],uI=qr.length,GK=gB[mG]=Array(uI),Yd,Et=0;Et<uI;++Et)if(Yd=qr[Et]||Mr[Et])GK[Et]=Yd;for(;mG<d;++mG)gB[mG]=M[mG];return new rU(gB,this._parents)},
order:function(){for(var p=this._groups,M=-1,d=p.length;++M<d;)for(var T=p[M],gB=T.length-1,mG=T[gB],qr;--gB>=0;)if(qr=T[gB])mG&&mG!==qr.nextSibling&&mG.parentNode.insertBefore(qr,mG),mG=qr;return this},
sort:function(p){function M(Et,iC){return Et&&iC?p(Et.__data__,iC.__data__):!Et-!iC}
p||(p=L);for(var d=this._groups,T=d.length,gB=Array(T),mG=0;mG<T;++mG){for(var qr=d[mG],Mr=qr.length,uI=gB[mG]=Array(Mr),GK,Yd=0;Yd<Mr;++Yd)if(GK=qr[Yd])uI[Yd]=GK;uI.sort(M)}return(new rU(gB,this._parents)).order()},
call:function(){var p=arguments[0];arguments[0]=this;p.apply(null,arguments);return this},
nodes:function(){var p=Array(this.size()),M=-1;this.each(function(){p[++M]=this});
return p},
node:function(){for(var p=this._groups,M=0,d=p.length;M<d;++M)for(var T=p[M],gB=0,mG=T.length;gB<mG;++gB){var qr=T[gB];if(qr)return qr}return null},
size:function(){var p=0;this.each(function(){++p});
return p},
empty:function(){return!this.node()},
each:function(p){for(var M=this._groups,d=0,T=M.length;d<T;++d)for(var gB=M[d],mG=0,qr=gB.length,Mr;mG<qr;++mG)(Mr=gB[mG])&&p.call(Mr,Mr.__data__,mG,gB);return this},
attr:function(p,M){var d=E(p);if(arguments.length<2){var T=this.node();return d.local?T.getAttributeNS(d.space,d.local):T.getAttribute(d)}return this.each((M==null?d.local?C:r:typeof M==="function"?d.local?Nr:G:d.local?y:W)(d,M))},
style:function(p,M,d){return arguments.length>1?this.each((M==null?o6:typeof M==="function"?Zt:lI)(p,M,d==null?"":d)):eL(this.node(),p)},
property:function(p,M){return arguments.length>1?this.each((M==null?OM:typeof M==="function"?rB:iI)(p,M)):this.node()[p]},
text:function(p){return arguments.length?this.each(p==null?Tj:(typeof p==="function"?B9:J_)(p)):this.node().textContent},
html:function(p){return arguments.length?this.each(p==null?ok:(typeof p==="function"?wt:Ut)(p)):this.node().innerHTML},
append:function(p){var M=typeof p==="function"?p:I(p);return this.select(function(){return this.appendChild(M.apply(this,arguments))})},
insert:function(p,M){var d=typeof p==="function"?p:I(p),T=M==null?X$:typeof M==="function"?M:l(M);return this.select(function(){return this.insertBefore(d.apply(this,arguments),T.apply(this,arguments)||null)})},
remove:function(){return this.each(Dg)},
clone:function(p){return this.select(p?cg:eQ)},
datum:function(p){return arguments.length?this.property("__data__",p):this.node().__data__},
on:function(p,M,d){var T=$s(p+""),gB=T.length,mG;if(arguments.length<2){var qr=this.node().__on;if(qr)for(var Mr=0,uI=qr.length,GK;Mr<uI;++Mr){var Yd=0;for(GK=qr[Mr];Yd<gB;++Yd)if((mG=T[Yd]).type===GK.type&&mG.name===GK.name)return GK.value}}else{qr=M?$d:P9;d==null&&(d=!1);for(Yd=0;Yd<gB;++Yd)this.each(qr(T[Yd],M,d));return this}},
dispatch:function(p,M){return this.each((typeof M==="function"?gU:yr)(p,M))}};
var BMI=0;xd.prototype=function(){return new xd}.prototype={constructor:xd,
get:function(p){for(var M=this._;!(M in p);)if(!(p=p.parentNode))return;return p[M]},
set:function(p,M){return p[this._]=M},
remove:function(p){return this._ in p&&delete p[this._]},
toString:function(){return this._}};
var vj=1/.7,nvs=/^#([0-9a-f]{3})$/,Mu7=/^#([0-9a-f]{6})$/,e07=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),pZX=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),OEt=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),tuA=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*\\)$"),
R0F=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),dXR=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*\\)$"),Fkr={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};
MQ(Eu,EX,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
MQ(uQ,tO,DA(Eu,{brighter:function(p){p=p==null?vj:Math.pow(vj,p);return new uQ(this.r*p,this.g*p,this.b*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new uQ(this.r*p,this.g*p,this.b*p,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"#"+Vt(this.r)+Vt(this.g)+Vt(this.b)},
toString:function(){var p=this.opacity;p=isNaN(p)?1:Math.max(0,Math.min(1,p));return(p===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))+(p===1?")":", "+p+")")}}));
MQ(uN,ea,DA(Eu,{brighter:function(p){p=p==null?vj:Math.pow(vj,p);return new uN(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new uN(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=this.h%360+(this.h<0)*360,M=this.l,d=M+(M<.5?M:1-M)*(isNaN(p)||isNaN(this.s)?0:this.s);M=2*M-d;return new uQ(hz(p>=240?p-240:p+120,M,d),hz(p,M,d),hz(p<120?p+240:p-120,M,d),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 Lkk=Math.PI/180,roU=180/Math.PI,aWU=4/29,xR=6/29,SG5=3*xR*xR,F3t=xR*xR*xR;MQ(Qv,function(p,M,d,T){return arguments.length===1?KM(p):new Qv(p,M,d,T==null?1:T)},DA(Eu,{brighter:function(p){return new Qv(this.l+18*(p==null?1:p),this.a,this.b,this.opacity)},
darker:function(p){return new Qv(this.l-18*(p==null?1:p),this.a,this.b,this.opacity)},
rgb:function(){var p=(this.l+16)/116,M=isNaN(this.a)?p:p+this.a/500,d=isNaN(this.b)?p:p-this.b/200;M=.96422*Wg(M);p=1*Wg(p);d=.82521*Wg(d);return new uQ(D5(3.1338561*M-1.6168667*p-.4906146*d),D5(-.9787684*M+1.9161415*p+.033454*d),D5(.0719453*M-.2289914*p+1.4052427*d),this.opacity)}}));
MQ(h_,md,DA(Eu,{brighter:function(p){return new h_(this.h,this.c,this.l+18*(p==null?1:p),this.opacity)},
darker:function(p){return new h_(this.h,this.c,this.l-18*(p==null?1:p),this.opacity)},
rgb:function(){return KM(this).rgb()}}));
var zik=1.78277*-.29227-.1347134789;MQ(qF,kd,DA(Eu,{brighter:function(p){p=p==null?vj:Math.pow(vj,p);return new qF(this.h,this.s,this.l*p,this.opacity)},
darker:function(p){p=p==null?.7:Math.pow(.7,p);return new qF(this.h,this.s,this.l*p,this.opacity)},
rgb:function(){var p=isNaN(this.h)?0:(this.h+120)*Lkk,M=+this.l,d=isNaN(this.s)?0:this.s*M*(1-M),T=Math.cos(p);p=Math.sin(p);return new uQ(255*(M+d*(-.14861*T+1.78277*p)),255*(M+d*(-.29227*T+-.90649*p)),255*(M+1.97294*T*d),this.opacity)}}));
var C6K=function d(M){function T(mG,qr){var Mr=gB((mG=tO(mG)).r,(qr=tO(qr)).r),uI=gB(mG.g,qr.g),GK=gB(mG.b,qr.b),Yd=A6(mG.opacity,qr.opacity);return function(Et){mG.r=Mr(Et);mG.g=uI(Et);mG.b=GK(Et);mG.opacity=Yd(Et);return mG+""}}
var gB=sx(M);T.gamma=d;return T}(1),O1O=eZ(function(M){var d=M.length-1;
return function(T){var gB=T<=0?T=0:T>=1?(T=1,d-1):Math.floor(T*d),mG=M[gB],qr=M[gB+1];return mv((T-gB/d)*d,gB>0?M[gB-1]:2*mG-qr,mG,qr,gB<d-1?M[gB+2]:2*qr-mG)}});
eZ(function(M){var d=M.length;return function(T){var gB=Math.floor(((T%=1)<0?++T:T)*d);return mv((T-gB/d)*d,M[(gB+d-1)%d],M[gB%d],M[(gB+1)%d],M[(gB+2)%d])}});
var Wka=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kke=new RegExp(Wka.source,"g"),Wko=180/Math.PI,E$q={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},m5,cxq,tc_,PNL,RLg=Qe(function(M){if(M==="none")return E$q;m5||(m5=document.createElement("DIV"),cxq=document.documentElement,tc_=document.defaultView);m5.style.transform=M;M=tc_.getComputedStyle(cxq.appendChild(m5),null).getPropertyValue("transform");cxq.removeChild(m5);M=M.slice(7,-1).split(",");return YF(+M[0],+M[1],+M[2],+M[3],
+M[4],+M[5])},"px, ","px)","deg)"),dkg=Qe(function(M){if(M==null)return E$q;
PNL||(PNL=document.createElementNS("http://www.w3.org/2000/svg","g"));PNL.setAttribute("transform",M);if(!(M=PNL.transform.baseVal.consolidate()))return E$q;M=M.matrix;return YF(M.a,M.b,M.c,M.d,M.e,M.f)},", ",")",")");
ow(FD);ow(A6);pk(FD);pk(A6);Od(FD);var UMM=Od(A6),qK=0,VT=0,gs=0,IsB,Hk,owv=0,NH=0,mGg=0,ws=typeof performance==="object"&&performance.now?performance:Date,Kk_=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(M){setTimeout(M,17)};
L$.prototype=us.prototype={constructor:L$,restart:function(M,d,T){if(typeof M!=="function")throw new TypeError("Ae");T=(T==null?Fs():+T)+(d==null?0:+d);this._next||Hk===this||(Hk?Hk._next=this:IsB=this,Hk=this);this._call=M;this._time=T;b0()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,b0())}};
var S0X=w("start","end","interrupt"),aX7=[],FVX=xs.prototype.constructor,Rzt=0,Pj=xs.prototype;mg.prototype=function(M){return xs().transition(M)}.prototype={constructor:mg,
select:function(M){var d=this._name,T=this._id;typeof M!=="function"&&(M=l(M));for(var gB=this._groups,mG=gB.length,qr=Array(mG),Mr=0;Mr<mG;++Mr)for(var uI=gB[Mr],GK=uI.length,Yd=qr[Mr]=Array(GK),Et,iC,o7=0;o7<GK;++o7)(Et=uI[o7])&&(iC=M.call(Et,Et.__data__,o7,uI))&&("__data__"in Et&&(iC.__data__=Et.__data__),Yd[o7]=iC,iyr(Yd[o7],d,T,o7,Yd,wP(Et,T)));return new mg(qr,this._parents,d,T)},
filter:function(M){typeof M!=="function"&&(M=OiC(M));for(var d=this._groups,T=d.length,gB=Array(T),mG=0;mG<T;++mG)for(var qr=d[mG],Mr=qr.length,uI=gB[mG]=[],GK,Yd=0;Yd<Mr;++Yd)(GK=qr[Yd])&&M.call(GK,GK.__data__,Yd,qr)&&uI.push(GK);return new mg(gB,this._parents,this._name,this._id)},
merge:function(M){if(M._id!==this._id)throw Error();var d=this._groups;M=M._groups;for(var T=d.length,gB=Math.min(T,M.length),mG=Array(T),qr=0;qr<gB;++qr)for(var Mr=d[qr],uI=M[qr],GK=Mr.length,Yd=mG[qr]=Array(GK),Et,iC=0;iC<GK;++iC)if(Et=Mr[iC]||uI[iC])Yd[iC]=Et;for(;qr<T;++qr)mG[qr]=d[qr];return new mg(mG,this._parents,this._name,this._id)},
selection:function(){return new FVX(this._groups,this._parents)},
transition:function(){for(var M=this._name,d=this._id,T=++Rzt,gB=this._groups,mG=gB.length,qr=0;qr<mG;++qr)for(var Mr=gB[qr],uI=Mr.length,GK,Yd=0;Yd<uI;++Yd)if(GK=Mr[Yd]){var Et=wP(GK,d);iyr(GK,M,T,Yd,Mr,{time:Et.time+Et.delay+Et.duration,delay:0,duration:Et.duration,ease:Et.ease})}return new mg(gB,this._parents,M,T)},
call:Pj.call,nodes:Pj.nodes,node:Pj.node,size:Pj.size,empty:Pj.empty,each:Pj.each,on:function(M,d){var T=this._id;return arguments.length<2?wP(this.node(),T).on.on(M):this.each(wYI(T,M,d))},
attr:function(M,d){var T=E(M),gB=T==="transform"?dkg:Aoo;return this.attrTween(M,typeof d==="function"?(T.local?yZb:CLF)(T,gB,C6L(this,"attr."+M,d)):d==null?(T.local?K3X:W3I)(T):(T.local?AZI:iE7)(T,gB,d+""))},
attrTween:function(M,d){var T="attr."+M;if(arguments.length<2)return(T=this.tween(T))&&T._value;if(d==null)return this.tween(T,null);if(typeof d!=="function")throw Error();var gB=E(M);return this.tween(T,(gB.local?$XA:jyt)(gB,d))},
style:function(M,d,T){var gB=M==="transform"?RLg:Aoo;return d==null?this.styleTween(M,HjO(M,gB)).on("end.style."+M,gSX(M)):this.styleTween(M,typeof d==="function"?Nmg(M,gB,C6L(this,"style."+M,d)):ffX(M,gB,d+""),T)},
styleTween:function(M,d,T){var gB="style."+M;if(arguments.length<2)return(gB=this.tween(gB))&&gB._value;if(d==null)return this.tween(gB,null);if(typeof d!=="function")throw Error();return this.tween(gB,ESN(M,d,T==null?"":T))},
text:function(M){return this.tween("text",typeof M==="function"?UhN(C6L(this,"text",M)):cns(M==null?"":M+""))},
remove:function(){return this.on("end.remove",Vxt(this._id))},
tween:function(M,d){var T=this._id;if(arguments.length<2){T=wP(this.node(),T).tween;for(var gB=0,mG=T.length,qr;gB<mG;++gB)if((qr=T[gB]).name===M)return qr.value;return null}return this.each((d==null?rZb:z0F)(T,M,d))},
delay:function(M){var d=this._id;return arguments.length?this.each((typeof M==="function"?GZQ:TM7)(d,M)):wP(this.node(),d).delay},
duration:function(M){var d=this._id;return arguments.length?this.each((typeof M==="function"?JZt:uTO)(d,M)):wP(this.node(),d).duration},
ease:function(M){var d=this._id;return arguments.length?this.each(YIA(d,M)):wP(this.node(),d).ease}};
var XUG={time:null,delay:0,duration:250,ease:function(M){return((M*=2)<=1?M*M*M:(M-=2)*M*M+2)/2}};
xs.prototype.transition=function(M){var d;if(M instanceof mg){var T=M._id;M=M._name}else T=++Rzt,(d=XUG).time=Fs(),M=M==null?null:M+"";for(var gB=this._groups,mG=gB.length,qr=0;qr<mG;++qr)for(var Mr=gB[qr],uI=Mr.length,GK,Yd=0;Yd<uI;++Yd)if(GK=Mr[Yd]){var Et=GK,iC=M,o7=T,lj=Yd,Sr=Mr,Q$;if(!(Q$=d))a:{Q$=void 0;for(var BO=T;!(Q$=GK.__transition)||!(Q$=Q$[BO]);)if(!(GK=GK.parentNode)){Q$=(XUG.time=Fs(),XUG);break a}}iyr(Et,iC,o7,lj,Sr,Q$)}return new mg(gB,this._parents,M,T)};
["e","w"].map(yoa);["n","s"].map(yoa);"n e s w nw ne se sw".split(" ").map(yoa);$wv.prototype=function(){return new $wv}.prototype={constructor:$wv,
moveTo:function(M,d){this._+="M"+(this._x0=this._x1=+M)+","+(this._y0=this._y1=+d)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(M,d){this._+="L"+(this._x1=+M)+","+(this._y1=+d)},
bezierCurveTo:function(M,d,T,gB,mG,qr){this._+="C"+ +M+","+ +d+","+ +T+","+ +gB+","+(this._x1=+mG)+","+(this._y1=+qr)},
rect:function(M,d,T,gB){this._+="M"+(this._x0=this._x1=+M)+","+(this._y0=this._y1=+d)+"h"+ +T+"v"+ +gB+"h"+-T+"Z"},
toString:function(){return this._}};
klK.prototype=yoo.prototype={constructor:klK,has:function(M){return" "+M in this},
get:function(M){return this[" "+M]},
set:function(M,d){this[" "+M]=d;return this},
remove:function(M){M=" "+M;return M in this&&delete this[M]},
clear:function(){for(var M in this)M[0]===" "&&delete this[M]},
keys:function(){var M=[],d;for(d in this)d[0]===" "&&M.push(d.slice(1));return M},
values:function(){var M=[],d;for(d in this)d[0]===" "&&M.push(this[d]);return M},
entries:function(){var M=[],d;for(d in this)d[0]===" "&&M.push({key:d.slice(1),value:this[d]});return M},
size:function(){var M=0,d;for(d in this)d[0]===" "&&++M;return M},
empty:function(){for(var M in this)if(M[0]===" ")return!1;return!0},
each:function(M){for(var d in this)d[0]===" "&&M(this[d],d.slice(1),this)}};
var Xg=yoo.prototype;lsa.prototype=function(M,d){var T=new lsa;if(M instanceof lsa)M.each(function(qr){T.add(qr)});
else if(M){var gB=-1,mG=M.length;if(d==null)for(;++gB<mG;)T.add(M[gB]);else for(;++gB<mG;)T.add(d(M[gB],gB,M))}return T}.prototype={constructor:lsa,
has:Xg.has,add:function(M){this[" "+M]=M;return this},
remove:Xg.remove,clear:Xg.clear,values:Xg.keys,size:Xg.size,empty:Xg.empty,each:Xg.each};var GP8={},jOe={},LVb=jO_(",").parse,SVA=jO_("\t").parse;TA5(LVb);TA5(SVA);var sC=function(M,d,T){d=new GPq(d==null?oSb:d,T==null?IfX:T,NaN,NaN,NaN,NaN);return M==null?d:d.addAll(M)}.prototype=GPq.prototype;
sC.copy=function(){var M=new GPq(this._x,this._y,this._x0,this._y0,this._x1,this._y1),d=this._root,T,gB;if(!d)return M;if(!d.length)return M._root=uRU(d),M;for(T=[{source:d,target:M._root=Array(4)}];d=T.pop();)for(var mG=0;mG<4;++mG)if(gB=d.source[mG])gB.length?T.push({source:gB,target:d.target[mG]=Array(4)}):d.target[mG]=uRU(gB);return M};
sC.add=function(M){var d=+this._x.call(null,M),T=+this._y.call(null,M);return Jo5(this.cover(d,T),d,T,M)};
sC.addAll=function(M){var d,T,gB=M.length,mG,qr,Mr=Array(gB),uI=Array(gB),GK=Infinity,Yd=Infinity,Et=-Infinity,iC=-Infinity;for(T=0;T<gB;++T)isNaN(mG=+this._x.call(null,d=M[T]))||isNaN(qr=+this._y.call(null,d))||(Mr[T]=mG,uI[T]=qr,mG<GK&&(GK=mG),mG>Et&&(Et=mG),qr<Yd&&(Yd=qr),qr>iC&&(iC=qr));Et<GK&&(GK=this._x0,Et=this._x1);iC<Yd&&(Yd=this._y0,iC=this._y1);this.cover(GK,Yd).cover(Et,iC);for(T=0;T<gB;++T)Jo5(this,Mr[T],uI[T],M[T]);return this};
sC.cover=function(M,d){if(isNaN(M=+M)||isNaN(d=+d))return this;var T=this._x0,gB=this._y0,mG=this._x1,qr=this._y1;if(isNaN(T))mG=(T=Math.floor(M))+1,qr=(gB=Math.floor(d))+1;else if(T>M||M>mG||gB>d||d>qr){var Mr=mG-T,uI=this._root,GK;switch(GK=(d<(gB+qr)/2)<<1|M<(T+mG)/2){case 0:do{var Yd=Array(4);Yd[GK]=uI;uI=Yd}while(Mr*=2,mG=T+Mr,qr=gB+Mr,M>mG||d>qr);break;case 1:do Yd=Array(4),Yd[GK]=uI,uI=Yd;while(Mr*=2,T=mG-Mr,qr=gB+Mr,T>M||d>qr);break;case 2:do Yd=Array(4),Yd[GK]=uI,uI=Yd;while(Mr*=2,mG=T+Mr,
gB=qr-Mr,M>mG||gB>d);break;case 3:do Yd=Array(4),Yd[GK]=uI,uI=Yd;while(Mr*=2,T=mG-Mr,gB=qr-Mr,T>M||gB>d)}this._root&&this._root.length&&(this._root=uI)}else return this;this._x0=T;this._y0=gB;this._x1=mG;this._y1=qr;return this};
sC.data=function(){var M=[];this.visit(function(d){if(!d.length){do M.push(d.data);while(d=d.next)}});
return M};
sC.extent=function(M){return arguments.length?this.cover(+M[0][0],+M[0][1]).cover(+M[1][0],+M[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
sC.find=function(M,d,T){var gB=this._x0,mG=this._y0,qr,Mr,uI,GK,Yd=this._x1,Et=this._y1,iC=[],o7=this._root,lj;o7&&iC.push(new qC(o7,gB,mG,Yd,Et));T==null?T=Infinity:(gB=M-T,mG=d-T,Yd=M+T,Et=d+T,T*=T);for(;lj=iC.pop();)if(!(!(o7=lj.node)||(qr=lj.x0)>Yd||(Mr=lj.y0)>Et||(uI=lj.x1)<gB||(GK=lj.y1)<mG))if(o7.length){lj=(qr+uI)/2;var Sr=(Mr+GK)/2;iC.push(new qC(o7[3],lj,Sr,uI,GK),new qC(o7[2],qr,Sr,lj,GK),new qC(o7[1],lj,Mr,uI,Sr),new qC(o7[0],qr,Mr,lj,Sr));if(o7=(d>=Sr)<<1|M>=lj)lj=iC[iC.length-1],iC[iC.length-
1]=iC[iC.length-1-o7],iC[iC.length-1-o7]=lj}else if(lj=M-+this._x.call(null,o7.data),Sr=d-+this._y.call(null,o7.data),lj=lj*lj+Sr*Sr,lj<T){var Q$=Math.sqrt(T=lj);gB=M-Q$;mG=d-Q$;Yd=M+Q$;Et=d+Q$;Q$=o7.data}return Q$};
sC.remove=function(M){if(isNaN(GK=+this._x.call(null,M))||isNaN(Yd=+this._y.call(null,M)))return this;var d,T=this._root,gB,mG=this._x0,qr=this._y0,Mr=this._x1,uI=this._y1,GK,Yd,Et,iC,o7,lj,Sr;if(!T)return this;if(T.length)for(;;){(o7=GK>=(Et=(mG+Mr)/2))?mG=Et:Mr=Et;(lj=Yd>=(iC=(qr+uI)/2))?qr=iC:uI=iC;if(!(d=T,T=T[Sr=lj<<1|o7]))return this;if(!T.length)break;if(d[Sr+1&3]||d[Sr+2&3]||d[Sr+3&3]){var Q$=d;var BO=Sr}}for(;T.data!==M;)if(!(gB=T,T=T.next))return this;(M=T.next)&&delete T.next;if(gB)return M?
gB.next=M:delete gB.next,this;if(!d)return this._root=M,this;M?d[Sr]=M:delete d[Sr];(T=d[0]||d[1]||d[2]||d[3])&&T===(d[3]||d[2]||d[1]||d[0])&&!T.length&&(Q$?Q$[BO]=T:this._root=T);return this};
sC.removeAll=function(M){for(var d=0,T=M.length;d<T;++d)this.remove(M[d]);return this};
sC.root=function(){return this._root};
sC.size=function(){var M=0;this.visit(function(d){if(!d.length){do++M;while(d=d.next)}});
return M};
sC.visit=function(M){var d=[],T,gB=this._root,mG,qr,Mr,uI,GK;for(gB&&d.push(new qC(gB,this._x0,this._y0,this._x1,this._y1));T=d.pop();)if(!M(gB=T.node,qr=T.x0,Mr=T.y0,uI=T.x1,GK=T.y1)&&gB.length){T=(qr+uI)/2;var Yd=(Mr+GK)/2;(mG=gB[3])&&d.push(new qC(mG,T,Yd,uI,GK));(mG=gB[2])&&d.push(new qC(mG,qr,Yd,T,GK));(mG=gB[1])&&d.push(new qC(mG,T,Mr,uI,Yd));(mG=gB[0])&&d.push(new qC(mG,qr,Mr,T,Yd))}};
sC.visitAfter=function(M){var d=[],T=[],gB;for(this._root&&d.push(new qC(this._root,this._x0,this._y0,this._x1,this._y1));gB=d.pop();){var mG=gB.node;if(mG.length){var qr,Mr=gB.x0,uI=gB.y0,GK=gB.x1,Yd=gB.y1,Et=(Mr+GK)/2,iC=(uI+Yd)/2;(qr=mG[0])&&d.push(new qC(qr,Mr,uI,Et,iC));(qr=mG[1])&&d.push(new qC(qr,Et,uI,GK,iC));(qr=mG[2])&&d.push(new qC(qr,Mr,iC,Et,Yd));(qr=mG[3])&&d.push(new qC(qr,Et,iC,GK,Yd))}T.push(gB)}for(;gB=T.pop();)M(gB.node,gB.x0,gB.y0,gB.x1,gB.y1);return this};
sC.x=function(M){return arguments.length?(this._x=M,this):this._x};
sC.y=function(M){return arguments.length?(this._y=M,this):this._y};
var xht=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;TAt.prototype=Jot.prototype;Jot.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 Vc5,Hit={"%":function(M,d){return(M*100).toFixed(d)},
b:function(M){return Math.round(M).toString(2)},
c:function(M){return M+""},
d:function(M){return Math.round(M).toString(10)},
e:function(M,d){return M.toExponential(d)},
f:function(M,d){return M.toFixed(d)},
g:function(M,d){return M.toPrecision(d)},
o:function(M){return Math.round(M).toString(8)},
p:function(M,d){return Y_U(M*100,d)},
r:Y_U,s:function(M,d){var T=h7b(M,d);if(!T)return M+"";var gB=T[0];T=T[1];T=T-(Vc5=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1;var mG=gB.length;return T===mG?gB:T>mG?gB+Array(T-mG+1).join("0"):T>0?gB.slice(0,T)+"."+gB.slice(T):"0."+Array(1-T).join("0")+h7b(M,Math.max(0,d+T-1))[0]},
X:function(M){return Math.round(M).toString(16).toUpperCase()},
x:function(M){return Math.round(M).toString(16)}},wU8="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),aqs;
(function(M){return aqs=qIX(M)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});JJ.prototype={constructor:JJ,reset:function(){this.s=this.t=0},
add:function(M){g$I(ZQa,M,this.t);g$I(this,ZQa.s,this.s);this.s?this.t+=ZQa.t:this.s=ZQa.t},
valueOf:function(){return this.s}};
var ZQa=new JJ,oY=Math.PI,DH=oY/2,dMo=oY/4,rSb=oY*2,DMB=oY/180,oj=Math.abs,mMe=Math.atan,XUI=Math.atan2,m2=Math.cos,Yt=Math.sin,qNg=Math.sqrt;new JJ;new JJ;new JJ;var o$L=new JJ;(function(M,d,T,gB){return function(mG){function qr(z_,oz){M(z_,oz)&&mG.point(z_,oz)}
function Mr(z_,oz){o7.point(z_,oz)}
function uI(){vb.point=Mr;o7.lineStart()}
function GK(){vb.point=qr;o7.lineEnd()}
function Yd(z_,oz){Y7.push([z_,oz]);Sr.point(z_,oz)}
function Et(){Sr.lineStart();Y7=[]}
function iC(){Yd(Y7[0][0],Y7[0][1]);Sr.lineEnd();var z_=Sr.clean(),oz=lj.result(),$M=oz.length,yh;Y7.pop();BO.push(Y7);Y7=null;if($M)if(z_&1){if($M=oz[0],(oz=$M.length-1)>0){Q$||(mG.polygonStart(),Q$=!0);mG.lineStart();for(z_=0;z_<oz;++z_)mG.point((yh=$M[z_])[0],yh[1]);mG.lineEnd()}}else $M>1&&z_&2&&oz.push(oz.pop().concat(oz.shift())),rl.push(oz.filter(PVX))}
var o7=d(mG),lj=QvO(),Sr=d(lj),Q$=!1,BO,rl,Y7,vb={point:qr,lineStart:uI,lineEnd:GK,polygonStart:function(){vb.point=Yd;vb.lineStart=Et;vb.lineEnd=iC;rl=[];BO=[]},
polygonEnd:function(){vb.point=qr;vb.lineStart=uI;vb.lineEnd=GK;var z_=rl,oz=z_.length;var $M=-1;for(var yh=0,MF,U3;++$M<oz;)yh+=z_[$M].length;for(MF=Array(yh);--oz>=0;)for(U3=z_[oz],$M=U3.length;--$M>=0;)MF[--yh]=U3[$M];rl=MF;z_=BO;oz=gB[0];yh=gB[1];var HD=Yt(yh);$M=[Yt(oz),-m2(oz),0];U3=MF=0;o$L.reset();HD===1?yh=DH+1E-6:HD===-1&&(yh=-DH-1E-6);HD=0;for(var lQ=z_.length;HD<lQ;++HD)if(mp=(FI=z_[HD]).length){var FI,mp,nb=FI[mp-1],VW=nb[0],dA=nb[1]/2+dMo,B2v=Yt(dA),Fy$=m2(dA);for(dA=0;dA<mp;++dA,VW=
IyM,B2v=Ly_,Fy$=o0,nb=nwB){var nwB=FI[dA],IyM=nwB[0];o0=nwB[1]/2+dMo;var Ly_=Yt(o0),o0=m2(o0),Zx=IyM-VW,kQM=Zx>=0?1:-1,lyb=kQM*Zx,MaM=lyb>oY;B2v*=Ly_;o$L.add(XUI(B2v*kQM*Yt(lyb),Fy$*o0+B2v*m2(lyb)));MF+=MaM?Zx+kQM*rSb:Zx;MaM^VW>=oz^IyM>=oz&&(nb=NLo(fyK(nb),fyK(nwB)),E$8(nb),VW=NLo($M,nb),E$8(VW),VW=(MaM^Zx>=0?-1:1)*xGv(VW[2]),yh>VW||yh===VW&&(nb[0]||nb[1]))&&(U3+=MaM^Zx>=0?1:-1)}}z_=(MF<-1E-6||MF<1E-6&&o$L<-1E-6)^U3&1;rl.length?(Q$||(mG.polygonStart(),Q$=!0),vSg(rl,Zjb,z_,T,mG)):z_&&(Q$||(mG.polygonStart(),
Q$=!0),mG.lineStart(),T(null,null,1,mG),mG.lineEnd());Q$&&(mG.polygonEnd(),Q$=!1);rl=BO=null},
sphere:function(){mG.polygonStart();mG.lineStart();T(null,null,1,mG);mG.lineEnd();mG.polygonEnd()}};
return vb}})(function(){return!0},function(M){var d=NaN,T=NaN,gB=NaN,mG;
return{lineStart:function(){M.lineStart();mG=1},
point:function(qr,Mr){var uI=qr>0?oY:-oY,GK=oj(qr-d);if(oj(GK-oY)<1E-6)M.point(d,T=(T+Mr)/2>0?DH:-DH),M.point(gB,T),M.lineEnd(),M.lineStart(),M.point(uI,T),M.point(qr,T),mG=0;else if(gB!==uI&&GK>=oY){oj(d-gB)<1E-6&&(d-=gB*1E-6);oj(qr-uI)<1E-6&&(qr-=uI*1E-6);GK=d;var Yd=T,Et=qr,iC,o7,lj=Yt(GK-Et);T=oj(lj)>1E-6?mMe((Yt(Yd)*(o7=m2(Mr))*Yt(Et)-Yt(Mr)*(iC=m2(Yd))*Yt(GK))/(iC*o7*lj)):(Yd+Mr)/2;M.point(gB,T);M.lineEnd();M.lineStart();M.point(uI,T);mG=0}M.point(d=qr,T=Mr);gB=uI},
lineEnd:function(){M.lineEnd();d=T=NaN},
clean:function(){return 2-mG}}},function(M,d,T,gB){M==null?(T*=DH,gB.point(-oY,T),gB.point(0,T),gB.point(oY,T),gB.point(oY,0),gB.point(oY,-T),gB.point(0,-T),gB.point(-oY,-T),gB.point(-oY,0),gB.point(-oY,T)):oj(M[0]-d[0])>1E-6?(M=M[0]<d[0]?oY:-oY,T=T*M/2,gB.point(-M,T),gB.point(0,T),gB.point(M,T)):gB.point(d[0],d[1])},[-oY,
-DH]);new JJ;new JJ;new JJ;new JJ;uRB.prototype={constructor:uRB,point:function(M,d){this.stream.point(M,d)},
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()}};
m2(30*DMB);(function(M){return function(d){var T=new uRB,gB;for(gB in M)T[gB]=M[gB];T.stream=d;return T}})({point:function(M,d){this.stream.point(M*DMB,d*DMB)}});
UMt(function(M){return qNg(2/(1+M))}).invert=fm(function(M){return 2*xGv(M/2)});
UMt(function(M){return(M=M>1?0:M<-1?oY:Math.acos(M))&&M/Yt(M)}).invert=fm(function(M){return M});
qNg(3);fm(mMe);fm(xGv);fm(function(M){return 2*mMe(M)});
N3.prototype=DMU.prototype={constructor:N3,count:function(){return this.eachAfter(BmN)},
each:function(M){var d,T=[this],gB;do{var mG=T.reverse();for(T=[];d=mG.pop();)if(M(d),d=d.children){var qr=0;for(gB=d.length;qr<gB;++qr)T.push(d[qr])}}while(T.length);return this},
eachAfter:function(M){for(var d,T=[this],gB=[],mG,qr;d=T.pop();)if(gB.push(d),d=d.children)for(mG=0,qr=d.length;mG<qr;++mG)T.push(d[mG]);for(;d=gB.pop();)M(d);return this},
eachBefore:function(M){for(var d,T=[this],gB;d=T.pop();)if(M(d),d=d.children)for(gB=d.length-1;gB>=0;--gB)T.push(d[gB]);return this},
sum:function(M){return this.eachAfter(function(d){for(var T=+M(d.data)||0,gB=d.children,mG=gB&&gB.length;--mG>=0;)T+=gB[mG].value;d.value=T})},
sort:function(M){return this.eachBefore(function(d){d.children&&d.children.sort(M)})},
path:function(M){var d=this;var T=d;var gB=M;if(T!==gB){var mG=T.ancestors(),qr=gB.ancestors(),Mr=null;T=mG.pop();for(gB=qr.pop();T===gB;)Mr=T,T=mG.pop(),gB=qr.pop();T=Mr}for(gB=[d];d!==T;)d=d.parent,gB.push(d);for(d=gB.length;M!==T;)gB.splice(d,0,M),M=M.parent;return gB},
ancestors:function(){for(var M=this,d=[M];M=M.parent;)d.push(M);return d},
links:function(){var M=this,d=[];M.each(function(T){T!==M&&d.push({source:T.parent,target:T})});
return d},
copy:function(){return DMU(this).eachBefore(ePF)}};
(function(M,d){this._=M;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=d}).prototype=Object.create(N3.prototype);
var Y_B=new Date,biL=new Date,S_9=CS(function(){},function(M,d){M.setTime(+M+d)},function(M,d){return d-M});
S_9.every=function(M){M=Math.floor(M);return isFinite(M)&&M>0?M>1?CS(function(d){d.setTime(Math.floor(d/M)*M)},function(d,T){d.setTime(+d+T*M)},function(d,T){return(T-d)/M}):S_9:null};
CS(function(M){M.setTime(Math.floor(M/1E3)*1E3)},function(M,d){M.setTime(+M+d*1E3)},function(M,d){return(d-M)/1E3},function(M){return M.getUTCSeconds()});
CS(function(M){M.setTime(Math.floor(M/6E4)*6E4)},function(M,d){M.setTime(+M+d*6E4)},function(M,d){return(d-M)/6E4},function(M){return M.getMinutes()});
CS(function(M){var d=M.getTimezoneOffset()*6E4%36E5;d<0&&(d+=36E5);M.setTime(Math.floor((+M-d)/36E5)*36E5+d)},function(M,d){M.setTime(+M+d*36E5)},function(M,d){return(d-M)/36E5},function(M){return M.getHours()});
var Iyt=CS(function(M){M.setHours(0,0,0,0)},function(M,d){M.setDate(M.getDate()+d)},function(M,d){return(d-M-(d.getTimezoneOffset()-M.getTimezoneOffset())*6E4)/864E5},function(M){return M.getDate()-1}),eLb=cl(0),Vct=cl(1);
cl(2);cl(3);var HiM=cl(4);cl(5);cl(6);CS(function(M){M.setDate(1);M.setHours(0,0,0,0)},function(M,d){M.setMonth(M.getMonth()+d)},function(M,d){return d.getMonth()-M.getMonth()+(d.getFullYear()-M.getFullYear())*12},function(M){return M.getMonth()});
var si=CS(function(M){M.setMonth(0,1);M.setHours(0,0,0,0)},function(M,d){M.setFullYear(M.getFullYear()+d)},function(M,d){return d.getFullYear()-M.getFullYear()},function(M){return M.getFullYear()});
si.every=function(M){return isFinite(M=Math.floor(M))&&M>0?CS(function(d){d.setFullYear(Math.floor(d.getFullYear()/M)*M);d.setMonth(0,1);d.setHours(0,0,0,0)},function(d,T){d.setFullYear(d.getFullYear()+T*M)}):null};
CS(function(M){M.setUTCSeconds(0,0)},function(M,d){M.setTime(+M+d*6E4)},function(M,d){return(d-M)/6E4},function(M){return M.getUTCMinutes()});
CS(function(M){M.setUTCMinutes(0,0,0)},function(M,d){M.setTime(+M+d*36E5)},function(M,d){return(d-M)/36E5},function(M){return M.getUTCHours()});
var o$K=CS(function(M){M.setUTCHours(0,0,0,0)},function(M,d){M.setUTCDate(M.getUTCDate()+d)},function(M,d){return(d-M)/864E5},function(M){return M.getUTCDate()-1}),pVR=U7(0),wUq=U7(1);
U7(2);U7(3);var g$G=U7(4);U7(5);U7(6);CS(function(M){M.setUTCDate(1);M.setUTCHours(0,0,0,0)},function(M,d){M.setUTCMonth(M.getUTCMonth()+d)},function(M,d){return d.getUTCMonth()-M.getUTCMonth()+(d.getUTCFullYear()-M.getUTCFullYear())*12},function(M){return M.getUTCMonth()});
var QH=CS(function(M){M.setUTCMonth(0,1);M.setUTCHours(0,0,0,0)},function(M,d){M.setUTCFullYear(M.getUTCFullYear()+d)},function(M,d){return d.getUTCFullYear()-M.getUTCFullYear()},function(M){return M.getUTCFullYear()});
QH.every=function(M){return isFinite(M=Math.floor(M))&&M>0?CS(function(d){d.setUTCFullYear(Math.floor(d.getUTCFullYear()/M)*M);d.setUTCMonth(0,1);d.setUTCHours(0,0,0,0)},function(d,T){d.setUTCFullYear(d.getUTCFullYear()+T*M)}):null};
var mM_={"-":"",_:" ",0:"0"},bn=/^\s*\d+/,MOF=/^%/,n5N=/[\\^$*+?|[\]().{}]/g,e7K;(function(M){e7K=OjO(M);T_k=e7K.utcFormat;JU8=e7K.utcParse;return e7K})({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||T_k("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||JU8("%Y-%m-%dT%H:%M:%S.%LZ");N6("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
N6("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");N6("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");N6("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");N6("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");N6("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");N6("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
N6("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");N6("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");N6("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");N6("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");N6("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var zLI=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(N6);LQ(zLI);var WVt=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(N6);LQ(WVt);var KVN=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(N6);LQ(KVN);var i1O=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(N6);
LQ(i1O);var ASQ=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(N6);LQ(ASQ);var CzI=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(N6);LQ(CzI);var ySb=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(N6);LQ(ySb);var $kt=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(N6);LQ($kt);var j_X=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(N6);LQ(j_X);var GhF=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(N6);LQ(GhF);var TPX=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(N6);LQ(TPX);var JSt=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(N6);LQ(JSt);var u6d=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(N6);LQ(u6d);var YTX=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(N6);LQ(YTX);var bPd=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(N6);LQ(bPd);var w2s=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(N6);LQ(w2s);var VBN=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(N6);LQ(VBN);var HPt=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(N6);LQ(HPt);var gpX=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(N6);LQ(gpX);var f1d=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(N6);LQ(f1d);var NyA=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(N6);LQ(NyA);var EpR=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(N6);LQ(EpR);var cuQ=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(N6);LQ(cuQ);var Uvs=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(N6);LQ(Uvs);var X2t=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(N6);LQ(X2t);var DvO=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(N6);LQ(DvO);var mvN=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(N6);LQ(mvN);UMM(kd(300,.5,0),kd(-240,.5,1));UMM(kd(-100,.75,.35),kd(80,1.5,.8));UMM(kd(260,.75,.35),kd(80,1.5,.8));kd();tO();vwq(N6("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
vwq(N6("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
vwq(N6("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
vwq(N6("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
ZiC.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(M,d){M=+M;d=+d;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(M,d):this._context.moveTo(M,d);break;case 1:this._point=2;default:this._context.lineTo(M,d)}}};
(function(M){function d(T){return new BL9(M(T))}
d._curve=M;return d})(function(M){return new ZiC(M)});
BL9.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(M,d){this._curve.point(d*Math.sin(M),d*-Math.cos(M))}};
NLa.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:fyL(this,this._t0,Mck(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(M,d){var T=NaN;M=+M;d=+d;if(M!==this._x1||d!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(M,d):this._context.moveTo(M,d);break;case 1:this._point=2;break;case 2:this._point=3;fyL(this,Mck(this,T=n$8(this,M,d)),T);break;default:fyL(this,this._t0,T=n$8(this,M,d))}this._x0=this._x1;this._x1=M;this._y0=this._y1;this._y1=d;this._t0=T}}};
(function(M){this._context=new ezt(M)}.prototype=Object.create(NLa.prototype)).point=function(M,d){NLa.prototype.point.call(this,d,M)};
ezt.prototype={moveTo:function(M,d){this._context.moveTo(d,M)},
closePath:function(){this._context.closePath()},
lineTo:function(M,d){this._context.lineTo(d,M)},
bezierCurveTo:function(M,d,T,gB,mG,qr){this._context.bezierCurveTo(d,M,gB,T,qr,mG)}};
Xr.prototype={constructor:Xr,scale:function(M){return M===1?this:new Xr(this.k*M,this.x,this.y)},
translate:function(M,d){return M===0&d===0?this:new Xr(this.k,this.x+this.k*M,this.y+this.k*d)},
apply:function(M){return[M[0]*this.k+this.x,M[1]*this.k+this.y]},
invert:function(M){return[(M[0]-this.x)/this.k,(M[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Xr(1,0,0);Iba=EX;XB.svg=XB.svg;XB.xhtml=XB.xhtml;XB.xlink=XB.xlink;XB.xml=XB.xml;XB.xmlns=XB.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 uM9="hammer_"+(Math.random()*1E6|0),YQr=function(){var Y=document||document;if(!Y[uM9]){var b=function(){(function(w,V,H,f){function E(Qv,La,Wg){return setTimeout(x(Qv,Wg),La)}
function U(Qv,La,Wg){return Array.isArray(Qv)?(X(Qv,Wg[La],Wg),!0):!1}
function X(Qv,La,Wg){var D5;if(Qv)if(Qv.forEach)Qv.forEach(La,Wg);else if(Qv.length!==f){var NF=0;for(D5=Qv.length;NF<D5;NF++)La.call(Wg,Qv[NF],NF,Qv)}else for(NF in Qv)Qv.hasOwnProperty(NF)&&La.call(Wg,Qv[NF],NF,Qv)}
function I(Qv,La,Wg){for(var D5=Object.keys(La),NF=0,p3=D5.length;NF<p3;NF++)if(!Wg||Wg&&Qv[D5[NF]]===f)Qv[D5[NF]]=La[D5[NF]];return Qv}
function k(Qv,La){return I(Qv,La,!0)}
function l(Qv,La,Wg){La=La.prototype;var D5=Qv.prototype=Object.create(La);D5.constructor=Qv;D5._super=La;Wg&&I(D5,Wg)}
function x(Qv,La){return function(){return Qv.apply(La,arguments)}}
function Q(Qv,La){return typeof Qv=="function"?Qv.apply(La?La[0]||f:f,La):Qv}
function Z(Qv,La,Wg){X(O(La),function(D5){Qv.addEventListener(D5,Wg,!1)})}
function e(Qv,La,Wg){X(O(La),function(D5){Qv.removeEventListener(D5,Wg,!1)})}
function O(Qv){return Qv.trim().split(/\s+/g)}
function L(Qv,La,Wg){if(Qv.indexOf&&!Wg)return Qv.indexOf(La);for(var D5=0,NF=Qv.length;D5<NF;D5++)if(Wg&&Qv[D5][Wg]==La||!Wg&&Qv[D5]===La)return D5;return-1}
function r(Qv,La,Wg){for(var D5=[],NF=[],p3=0,md=Qv.length;p3<md;p3++){var h_=La?Qv[p3][La]:Qv[p3];L(NF,h_)<0&&D5.push(Qv[p3]);NF[p3]=h_}Wg&&(D5=La?D5.sort(function(kd,qF){return kd[La]>qF[La]}):D5.sort());
return D5}
function C(Qv,La){for(var Wg,D5=La[0].toUpperCase()+La.slice(1),NF=0,p3=gU.length;NF<p3;NF++)if(Wg=(Wg=gU[NF])?Wg+D5:La,Wg in Qv)return Wg;return f}
function W(Qv,La){var Wg=this;this.manager=Qv;this.callback=La;this.element=Qv.element;this.target=Qv.options.inputTarget;this.domHandler=function(D5){Q(Qv.options.enable,[Qv])&&Wg.handler(D5)};
this.evEl&&Z(this.element,this.evEl,this.domHandler);this.evTarget&&Z(this.target,this.evTarget,this.domHandler);this.evWin&&Z(w,this.evWin,this.domHandler)}
function y(Qv){var La;q6?La=iI:W1?La=rB:EX?La=Tj:La=OM;return new La(Qv,G)}
function G(Qv,La,Wg){var D5=Wg.pointers.length,NF=Wg.changedPointers.length,p3=La&1&&D5-NF===0;Wg.isFirst=!!p3;Wg.isFinal=!!(La&12&&D5-NF===0);p3&&(Qv.session={});Wg.eventType=La;La=Qv.session;D5=Wg.pointers;NF=D5.length;La.firstInput||(La.firstInput=Nr(Wg));NF>1&&!La.firstMultiple?La.firstMultiple=Nr(Wg):NF===1&&(La.firstMultiple=!1);p3=La.firstInput;var md=(NF=La.firstMultiple)?NF.center:p3.center,h_=Wg.center=o6(D5);Wg.timeStamp=MQ();Wg.deltaTime=Wg.timeStamp-p3.timeStamp;Wg.angle=eL(md,h_);Wg.distance=
Zt(md,h_);p3=Wg.center;md=La.offsetDelta||{};h_=La.prevDelta||{};var kd=La.prevInput||{};if(Wg.eventType===1||kd.eventType===4)h_=La.prevDelta={x:kd.deltaX||0,y:kd.deltaY||0},md=La.offsetDelta={x:p3.x,y:p3.y};Wg.deltaX=h_.x+(p3.x-md.x);Wg.deltaY=h_.y+(p3.y-md.y);Wg.offsetDirection=lI(Wg.deltaX,Wg.deltaY);NF?(p3=NF.pointers,p3=Zt(D5[0],D5[1],tO)/Zt(p3[0],p3[1],tO)):p3=1;Wg.scale=p3;NF?(NF=NF.pointers,D5=eL(D5[1],D5[0],tO)-eL(NF[1],NF[0],tO)):D5=0;Wg.rotation=D5;md=La.lastInterval||Wg;D5=Wg.timeStamp-
md.timeStamp;Wg.eventType!=8&&(D5>25||md.velocity===f)?(p3=md.deltaX-Wg.deltaX,md=md.deltaY-Wg.deltaY,h_=p3/D5||0,kd=md/D5||0,D5=h_,NF=kd,h_=xd(h_)>xd(kd)?h_:kd,p3=lI(p3,md),La.lastInterval=Wg):(h_=md.velocity,D5=md.velocityX,NF=md.velocityY,p3=md.direction);Wg.velocity=h_;Wg.velocityX=D5;Wg.velocityY=NF;Wg.direction=p3;La=Qv.element;a:{for(D5=Wg.srcEvent.target;D5;){if(D5==La){D5=!0;break a}D5=D5.parentNode}D5=!1}D5&&(La=Wg.srcEvent.target);Wg.target=La;Qv.emit("hammer.input",Wg);Qv.recognize(Wg);
Qv.session.prevInput=Wg}
function Nr(Qv){for(var La=[],Wg=0;Wg<Qv.pointers.length;Wg++)La[Wg]={clientX:xs(Qv.pointers[Wg].clientX),clientY:xs(Qv.pointers[Wg].clientY)};return{timeStamp:MQ(),pointers:La,center:o6(La),deltaX:Qv.deltaX,deltaY:Qv.deltaY}}
function o6(Qv){var La=Qv.length;if(La===1)return{x:xs(Qv[0].clientX),y:xs(Qv[0].clientY)};for(var Wg=0,D5=0,NF=0;NF<La;NF++)Wg+=Qv[NF].clientX,D5+=Qv[NF].clientY;return{x:xs(Wg/La),y:xs(D5/La)}}
function lI(Qv,La){return Qv===La?1:xd(Qv)>=xd(La)?Qv>0?2:4:La>0?8:16}
function Zt(Qv,La,Wg){Wg||(Wg=W9);var D5=La[Wg[0]]-Qv[Wg[0]];Qv=La[Wg[1]]-Qv[Wg[1]];return Math.sqrt(D5*D5+Qv*Qv)}
function eL(Qv,La,Wg){Wg||(Wg=W9);return Math.atan2(La[Wg[1]]-Qv[Wg[1]],La[Wg[0]]-Qv[Wg[0]])*180/Math.PI}
function OM(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;W.apply(this,arguments)}
function iI(){this.evEl=Lh;this.evWin=ea;W.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function rB(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};W.apply(this,arguments)}
function Tj(){W.apply(this,arguments);var Qv=x(this.handler,this);this.touch=new rB(this.manager,Qv);this.mouse=new OM(this.manager,Qv)}
function J_(Qv,La){this.manager=Qv;this.set(La)}
function B9(Qv){if(Qv.indexOf("none")>-1)return"none";var La=Qv.indexOf("pan-x")>-1,Wg=Qv.indexOf("pan-y")>-1;return La&&Wg?"pan-x pan-y":La||Wg?La?"pan-x":"pan-y":Qv.indexOf("manipulation")>-1?"manipulation":"auto"}
function ok(Qv){this.id=DA++;this.manager=null;this.options=k(Qv||{},this.defaults);Qv=this.options.enable;this.options.enable=Qv===f?!0:Qv;this.state=1;this.simultaneous={};this.requireFail=[]}
function Ut(Qv){return Qv==16?"down":Qv==8?"up":Qv==2?"left":Qv==4?"right":""}
function wt(Qv,La){return(La=La.manager)?La.get(Qv):Qv}
function X$(){ok.apply(this,arguments)}
function Dg(){X$.apply(this,arguments);this.pY=this.pX=null}
function eQ(){X$.apply(this,arguments)}
function cg(){ok.apply(this,arguments);this._input=this._timer=null}
function qQ(){X$.apply(this,arguments)}
function t_(){X$.apply(this,arguments)}
function $s(){ok.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function P9(Qv,La){La=La||{};var Wg=La.recognizers;La.recognizers=Wg===f?P9.defaults.preset:Wg;return new $d(Qv,La)}
function $d(Qv,La){La=La||{};this.options=k(La,P9.defaults);this.options.inputTarget=this.options.inputTarget||Qv;this.handlers={};this.session={};this.recognizers=[];this.element=Qv;this.input=y(this);this.touchAction=new J_(this,this.options.touchAction);Kh(this,!0);X(La.recognizers,function(Wg){var D5=this.add(new Wg[0](Wg[1]));Wg[2]&&D5.recognizeWith(Wg[2]);Wg[3]&&D5.requireFailure(Wg[2])},this)}
function Kh(Qv,La){var Wg=Qv.element;X(Qv.options.cssProps,function(D5,NF){Wg.style[C(Wg.style,NF)]=La?D5:""})}
function yr(Qv,La){var Wg=V.createEvent("Event");Wg.initEvent(Qv,!0,!0);Wg.gesture=La;La.target.dispatchEvent(Wg)}
var gU=" webkit moz MS ms o".split(" "),rU=V.createElement("div"),xs=Math.round,xd=Math.abs,MQ=Date.now,DA=1,Eu=/mobile|tablet|ip(ad|hone|od)|android/i,EX="ontouchstart"in w,q6=C(w,"PointerEvent")!==f,W1=EX&&Eu.test(navigator.userAgent),W9=["x","y"],tO=["clientX","clientY"];W.prototype={handler:function(){},
destroy:function(){this.evEl&&e(this.element,this.evEl,this.domHandler);this.evTarget&&e(this.target,this.evTarget,this.domHandler);this.evWin&&e(w,this.evWin,this.domHandler)}};
var uQ={mousedown:1,mousemove:2,mouseup:4};l(OM,W,{handler:function(Qv){var La=uQ[Qv.type];La&1&&Qv.button===0&&(this.pressed=!0);La&2&&Qv.which!==1&&(La=4);this.pressed&&this.allow&&(La&4&&(this.pressed=!1),this.callback(this.manager,La,{pointers:[Qv],changedPointers:[Qv],pointerType:"mouse",srcEvent:Qv}))}});
var Vt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},dl={2:"touch",3:"pen",4:"mouse",5:"kinect"},Lh="pointerdown",ea="pointermove pointerup pointercancel";w.MSPointerEvent&&(Lh="MSPointerDown",ea="MSPointerMove MSPointerUp MSPointerCancel");l(iI,W,{handler:function(Qv){var La=this.store,Wg=!1,D5=Qv.type.toLowerCase().replace("ms","");D5=Vt[D5];var NF=dl[Qv.pointerType]||Qv.pointerType;D5&1&&(Qv.button===0||NF=="touch")?La.push(Qv):D5&12&&(Wg=!0);var p3=L(La,Qv.pointerId,"pointerId");
p3<0||(La[p3]=Qv,this.callback(this.manager,D5,{pointers:La,changedPointers:[Qv],pointerType:NF,srcEvent:Qv}),Wg&&La.splice(p3,1))}});
var uN={touchstart:1,touchmove:2,touchend:4,touchcancel:8};l(rB,W,{handler:function(Qv){var La=uN[Qv.type];var Wg=Array.prototype.slice.call(Qv.touches,0);var D5=this.targetIds;if(La&3&&Wg.length===1)D5[Wg[0].identifier]=!0,D5=[Wg,Wg];else{var NF,p3=Array.prototype.slice.call(Qv.targetTouches,0),md=Array.prototype.slice.call(Qv.changedTouches,0),h_=[];if(La===1)for(Wg=0,NF=p3.length;Wg<NF;Wg++)D5[p3[Wg].identifier]=!0;Wg=0;for(NF=md.length;Wg<NF;Wg++)D5[md[Wg].identifier]&&h_.push(md[Wg]),La&12&&
delete D5[md[Wg].identifier];D5=h_.length?[r(p3.concat(h_),"identifier",!0),h_]:void 0}D5&&this.callback(this.manager,La,{pointers:D5[0],changedPointers:D5[1],pointerType:"touch",srcEvent:Qv})}});
l(Tj,W,{handler:function(Qv,La,Wg){var D5=Wg.pointerType=="mouse";if(Wg.pointerType=="touch")this.mouse.allow=!1;else if(D5&&!this.mouse.allow)return;La&12&&(this.mouse.allow=!0);this.callback(Qv,La,Wg)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var hz=C(rU.style,"touchAction"),KM=hz!==f;J_.prototype={set:function(Qv){Qv=="compute"&&(Qv=this.compute());KM&&(this.manager.element.style[hz]=Qv);this.actions=Qv.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Qv=[];X(this.manager.recognizers,function(La){Q(La.options.enable,[La])&&(Qv=Qv.concat(La.getTouchAction()))});
return B9(Qv.join(" "))},
preventDefaults:function(Qv){if(!KM){var La=Qv.srcEvent;Qv=Qv.offsetDirection;if(this.manager.session.prevented)La.preventDefault();else{var Wg=this.actions,D5=Wg.indexOf("none")>-1,NF=Wg.indexOf("pan-y")>-1;Wg=Wg.indexOf("pan-x")>-1;if(D5||NF&&Wg||NF&&Qv&6||Wg&&Qv&24)return this.preventSrc(La)}}},
preventSrc:function(Qv){this.manager.session.prevented=!0;Qv.preventDefault()}};
ok.prototype={defaults:{},set:function(Qv){I(this.options,Qv);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Qv){if(U(Qv,"recognizeWith",this))return this;var La=this.simultaneous;Qv=wt(Qv,this);La[Qv.id]||(La[Qv.id]=Qv,Qv.recognizeWith(this));return this},
dropRecognizeWith:function(Qv){if(U(Qv,"dropRecognizeWith",this))return this;Qv=wt(Qv,this);delete this.simultaneous[Qv.id];return this},
requireFailure:function(Qv){if(U(Qv,"requireFailure",this))return this;var La=this.requireFail;Qv=wt(Qv,this);L(La,Qv)===-1&&(La.push(Qv),Qv.requireFailure(this));return this},
dropRequireFailure:function(Qv){if(U(Qv,"dropRequireFailure",this))return this;Qv=wt(Qv,this);Qv=L(this.requireFail,Qv);Qv>-1&&this.requireFail.splice(Qv,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Qv){return!!this.simultaneous[Qv.id]},
emit:function(Qv){function La(NF){Wg.manager.emit(Wg.options.event+(NF?D5&16?"cancel":D5&8?"end":D5&4?"move":D5&2?"start":"":""),Qv)}
var Wg=this,D5=this.state;D5<8&&La(!0);La();D5>=8&&La(!0)},
tryEmit:function(Qv){if(this.canEmit())return this.emit(Qv);this.state=32},
canEmit:function(){for(var Qv=0;Qv<this.requireFail.length;Qv++)if(!(this.requireFail[Qv].state&33))return!1;return!0},
recognize:function(Qv){Qv=I({},Qv);Q(this.options.enable,[this,Qv])?(this.state&56&&(this.state=1),this.state=this.process(Qv),this.state&30&&this.tryEmit(Qv)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
l(X$,ok,{defaults:{pointers:1},attrTest:function(Qv){var La=this.options.pointers;return La===0||Qv.pointers.length===La},
process:function(Qv){var La=this.state,Wg=Qv.eventType,D5=La&6;Qv=this.attrTest(Qv);return D5&&(Wg&8||!Qv)?La|16:D5||Qv?Wg&4?La|8:La&2?La|4:2:32}});
l(Dg,X$,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Qv=this.options.direction;if(Qv===30)return["none"];var La=[];Qv&6&&La.push("pan-y");Qv&24&&La.push("pan-x");return La},
directionTest:function(Qv){var La=this.options,Wg=!0,D5=Qv.distance,NF=Qv.direction,p3=Qv.deltaX,md=Qv.deltaY;NF&La.direction||(La.direction&6?(NF=p3===0?1:p3<0?2:4,Wg=p3!=this.pX,D5=Math.abs(Qv.deltaX)):(NF=md===0?1:md<0?8:16,Wg=md!=this.pY,D5=Math.abs(Qv.deltaY)));Qv.direction=NF;return Wg&&D5>La.threshold&&NF&La.direction},
attrTest:function(Qv){return X$.prototype.attrTest.call(this,Qv)&&(this.state&2||!(this.state&2)&&this.directionTest(Qv))},
emit:function(Qv){this.pX=Qv.deltaX;this.pY=Qv.deltaY;var La=Ut(Qv.direction);La&&this.manager.emit(this.options.event+La,Qv);this._super.emit.call(this,Qv)}});
l(eQ,X$,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Qv){return this._super.attrTest.call(this,Qv)&&(Math.abs(Qv.scale-1)>this.options.threshold||this.state&2)},
emit:function(Qv){this._super.emit.call(this,Qv);Qv.scale!==1&&this.manager.emit(this.options.event+(Qv.scale<1?"in":"out"),Qv)}});
l(cg,ok,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Qv){var La=this.options,Wg=Qv.pointers.length===La.pointers,D5=Qv.distance<La.threshold,NF=Qv.deltaTime>La.time;this._input=Qv;if(!D5||!Wg||Qv.eventType&12&&!NF)this.reset();else if(Qv.eventType&1)this.reset(),this._timer=E(function(){this.state=8;this.tryEmit()},La.time,this);
else if(Qv.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Qv){this.state===8&&(Qv&&Qv.eventType&4?this.manager.emit(this.options.event+"up",Qv):(this._input.timeStamp=MQ(),this.manager.emit(this.options.event,this._input)))}});
l(qQ,X$,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Qv){return this._super.attrTest.call(this,Qv)&&(Math.abs(Qv.rotation)>this.options.threshold||this.state&2)}});
l(t_,X$,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Dg.prototype.getTouchAction.call(this)},
attrTest:function(Qv){var La=this.options.direction;if(La&30)var Wg=Qv.velocity;else La&6?Wg=Qv.velocityX:La&24&&(Wg=Qv.velocityY);return this._super.attrTest.call(this,Qv)&&La&Qv.direction&&xd(Wg)>this.options.velocity&&Qv.eventType&4},
emit:function(Qv){var La=Ut(Qv.direction);La&&this.manager.emit(this.options.event+La,Qv);this.manager.emit(this.options.event,Qv)}});
l($s,ok,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Qv){var La=this.options,Wg=Qv.pointers.length===La.pointers,D5=Qv.distance<La.threshold,NF=Qv.deltaTime<La.time;this.reset();if(Qv.eventType&1&&this.count===0)return this.failTimeout();if(D5&&NF&&Wg){if(Qv.eventType!=4)return this.failTimeout();Wg=this.pTime?Qv.timeStamp-this.pTime<La.interval:!0;D5=!this.pCenter||Zt(this.pCenter,Qv.center)<La.posThreshold;this.pTime=Qv.timeStamp;this.pCenter=Qv.center;D5&&Wg?this.count+=1:this.count=1;this._input=Qv;if(this.count%La.taps===0)return this.hasRequireFailures()?
(this._timer=E(function(){this.state=8;this.tryEmit()},La.interval,this),2):8}return 32},
failTimeout:function(){this._timer=E(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))}});
P9.VERSION="2.0.2";P9.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[qQ,{enable:!1}],[eQ,{enable:!1},["rotate"]],[t_,{direction:6}],[Dg,{direction:6},["swipe"]],[$s],[$s,{event:"doubletap",taps:2},["tap"]],[cg]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};$d.prototype={set:function(Qv){I(this.options,Qv);return this},
stop:function(Qv){this.session.stopped=Qv?2:1},
recognize:function(Qv){var La=this.session;if(!La.stopped){this.touchAction.preventDefaults(Qv);var Wg=this.recognizers,D5=La.curRecognizer;if(!D5||D5&&D5.state&8)D5=La.curRecognizer=null;for(var NF=0,p3=Wg.length;NF<p3;NF++){var md=Wg[NF];La.stopped===2||D5&&md!=D5&&!md.canRecognizeWith(D5)?md.reset():md.recognize(Qv);!D5&&md.state&14&&(D5=La.curRecognizer=md)}}},
get:function(Qv){if(Qv instanceof ok)return Qv;for(var La=this.recognizers,Wg=0;Wg<La.length;Wg++)if(La[Wg].options.event==Qv)return La[Wg];return null},
add:function(Qv){if(U(Qv,"add",this))return this;var La=this.get(Qv.options.event);La&&this.remove(La);this.recognizers.push(Qv);Qv.manager=this;this.touchAction.update();return Qv},
remove:function(Qv){if(U(Qv,"remove",this))return this;var La=this.recognizers;Qv=this.get(Qv);La.splice(L(La,Qv),1);this.touchAction.update();return this},
on:function(Qv,La){var Wg=this.handlers;X(O(Qv),function(D5){Wg[D5]=Wg[D5]||[];Wg[D5].push(La)});
return this},
off:function(Qv,La){var Wg=this.handlers;X(O(Qv),function(D5){La?Wg[D5].splice(L(Wg[D5],La),1):delete Wg[D5]});
return this},
emit:function(Qv,La){this.options.domEvents&&yr(Qv,La);var Wg=this.handlers[Qv]&&this.handlers[Qv].slice();if(Wg&&Wg.length){La.type=Qv;La.preventDefault=function(){La.srcEvent.preventDefault()};
Qv=0;for(var D5=Wg.length;Qv<D5;Qv++)Wg[Qv](La)}},
destroy:function(){this.element&&Kh(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
I(P9,{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:$d,Input:W,TouchAction:J_,Recognizer:ok,AttrRecognizer:X$,Tap:$s,Pan:Dg,Swipe:t_,Pinch:eQ,Rotate:qQ,Press:cg,on:Z,off:e,each:X,merge:k,extend:I,inherit:l,bindFn:x,prefixed:C});
w[H]=P9})(window,document,"Hammer");
return window.Hammer}.call({});
b.DOCUMENT=Y;Y[uM9]=b}return Y[uM9]};/*

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

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

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

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var yV,O_U,t9$;yV=Element.prototype;O_U=yV.matches||yV.matchesSelector||yV.mozMatchesSelector||yV.msMatchesSelector||yV.oMatchesSelector||yV.webkitMatchesSelector;t9$=function(){};
_.dRr=function(Y){var b=RE_,w=[];return b._collectTabbableNodes(Y,w)?b._sortByTabIndex(w):w};
_.g=t9$.prototype;_.g._normalizedTabIndex=function(Y){return(O_U.call(Y,"input, select, textarea, button, object")?O_U.call(Y,":not([disabled])"):O_U.call(Y,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(Y=Y.getAttribute("tabindex")||0,Number(Y)):-1};
_.g._collectTabbableNodes=function(Y,b){if(Y.nodeType!==Node.ELEMENT_NODE||!this._isVisible(Y))return!1;var w=this._normalizedTabIndex(Y),V=w>0;w>=0&&b.push(Y);if(Y.localName==="content"||Y.localName==="slot")w=_.B1(Y).getDistributedNodes();else{var H;w=((H=_.B1(Y).shadowRoot)!=null?H:_.B1(Y.root||Y)).children}for(Y=0;Y<w.length;Y++)V=this._collectTabbableNodes(w[Y],b)||V;return V};
_.g._isVisible=function(Y){var b=Y.style;return b.visibility!=="hidden"&&b.display!=="none"?(b=window.getComputedStyle(Y),b.visibility!=="hidden"&&b.display!=="none"):!1};
_.g._sortByTabIndex=function(Y){var b=Y.length;if(b<2)return Y;var w=Math.ceil(b/2);b=this._sortByTabIndex(Y.slice(0,w));Y=this._sortByTabIndex(Y.slice(w));return this._mergeSortByTabIndex(b,Y)};
_.g._mergeSortByTabIndex=function(Y,b){for(var w=[];Y.length>0&&b.length>0;)this._hasLowerTabOrder(Y[0],b[0])?w.push(b.shift()):w.push(Y.shift());return w.concat(Y,b)};
_.g._hasLowerTabOrder=function(Y,b){Y=Math.max(Y.tabIndex,0);b=Math.max(b.tabIndex,0);return Y===0||b===0?b>Y:Y>b};
var RE_=new t9$;var FBK;var LBK;_.pV({_template:function(){if(LBK!==void 0)return LBK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-overlay-backdrop--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_overlay_backdrop.tp.yt.iron.overlay.backdrop.css.js--\x3e<slot class="style-scope tp-yt-iron-overlay-backdrop"></slot>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;FBK===void 0&&(FBK=document.createElement("template"));var V=FBK;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return LBK=Y},
is:"tp-yt-iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},
attached:function(){this.opened&&this._openedChanged(this.opened)},
prepare:function(){this.opened&&!this.parentNode&&_.B1(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.B1(this.parentNode).removeChild(this)},
_onTransitionend:function(Y){Y&&Y.target===this&&this.complete()},
_openedChanged:function(Y){Y?this.prepare():(Y=window.getComputedStyle(this),Y.transitionDuration!=="0s"&&Y.opacity!=0||this.complete());this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null;this.toggleClass("opened",this.opened)}.bind(this)))}});var $$=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;tQ(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)};
$$.prototype._bringOverlayAtIndexToFront=function(Y){var b=this._overlays[Y];if(b){var w=this._overlays.length-1,V=this._overlays[w];V&&this._shouldBeBehindOverlay(b,V)&&w--;if(!(Y>=w)){V=Math.max(this._getZ(_.Sv9(this)),this._minimumZ);for(this._getZ(b)<=V&&this._applyOverlayZ(b,V);Y<w;)this._overlays[Y]=this._overlays[Y+1],Y++;this._overlays[w]=b}}};
$$.prototype.addOverlay=function(Y){var b=this._overlays.indexOf(Y);if(b>=0)this._bringOverlayAtIndexToFront(b);else{b=this._overlays.length;var w=this._overlays[b-1],V=Math.max(this._getZ(w),this._minimumZ),H=this._getZ(Y);w&&this._shouldBeBehindOverlay(Y,w)&&(this._applyOverlayZ(w,V),b--,V=Math.max(this._getZ(this._overlays[b-1]),this._minimumZ));H<=V&&this._applyOverlayZ(Y,V);this._overlays.splice(b,0,Y)}this.trackBackdrop()};
$$.prototype.removeOverlay=function(Y){Y=this._overlays.indexOf(Y);Y!==-1&&(this._overlays.splice(Y,1),this.trackBackdrop())};
_.Sv9=function(Y){return Y._overlays[Y._overlays.length-1]};
_.g=$$.prototype;_.g.trackBackdrop=function(){var Y=this._overlayWithBackdrop();if(Y||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(Y)-1,this.backdropElement.opened=!!Y,this.backdropElement.prepare()};
_.g._overlayWithBackdrop=function(){for(var Y=this._overlays.length-1;Y>=0;Y--)if(this._overlays[Y].withBackdrop)return this._overlays[Y]};
_.g._getZ=function(Y){var b=this._minimumZ;if(Y){var w,V,H=Number(((w=Y.hostElement)!=null?w:Y).style.zIndex||window.getComputedStyle((V=Y.hostElement)!=null?V:Y).zIndex);H===H&&(b=H)}return b};
_.g._setZ=function(Y,b){var w;((w=Y.hostElement)!=null?w:Y).style.zIndex=b};
_.g._applyOverlayZ=function(Y,b){this._setZ(Y,b+2)};
_.g._overlayInPath=function(Y){Y=Y||[];for(var b=0;b<Y.length;b++){var w=void 0;if(((w=Y[b].polymerController)!=null?w:Y[b])._manager===this)return Y[b]}};
_.g._onCaptureClick=function(Y){var b=this._overlays.length-1;if(b!==-1)for(var w=_.B1(Y).path,V,H;(V=this._overlays[b])&&this._overlayInPath(w)!==((H=V.hostElement)!=null?H:V);)if(V._onCaptureClick(Y),V.allowClickThrough)b--;else break};
_.g._onCaptureFocus=function(Y){var b=_.Sv9(this);b&&b._onCaptureFocus(Y)};
_.g._onCaptureKeyDown=function(Y){var b=_.Sv9(this);b&&(_.ni.keyboardEventMatchesKeys(Y,"esc")?b._onCaptureEsc(Y):_.ni.keyboardEventMatchesKeys(Y,"tab")&&b._onCaptureTab(Y))};
_.g._shouldBeBehindOverlay=function(Y,b){return!Y.alwaysOnTop&&b.alwaysOnTop&&!b.contains(Y)};
_.up.Object.defineProperties($$.prototype,{backdropElement:{configurable:!0,enumerable:!0,get:function(){this._backdropElement||(this._backdropElement=document.createElement("tp-yt-iron-overlay-backdrop"));return this._backdropElement}},
deepActiveElement:{configurable:!0,enumerable:!0,get:function(){var Y=document.activeElement;Y&&Y instanceof Element!==!1||(Y=document.body);for(;Y.root&&_.B1(Y.root).activeElement;)Y=_.B1(Y.root).activeElement;return Y}}});
_.jc=new $$;var pYg=0,Oje=0,txv=null,RPe=[],nM=["wheel","mousewheel","DOMMouseScroll"],dhg;_.q("web_no_lock_on_touchstart_killswitch")&&(nM.push("touchstart"),nM.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;_.GQ={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:_.jc},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var Y;return this._focusedChild||_.B1((Y=this.hostElement)!=null?Y:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var Y;return _.dRr((Y=this.hostElement)!=null?Y:this)},ready:function(){this.__shouldRemoveTabIndex=
this.__isAnimating=!1;this.__firstFocusableNode=this.__lastFocusableNode=null;this.__rafs={};this.__scrollTop=this.__scrollLeft=this.__restoreFocusNode=null;this.__onCaptureScroll=this.__onCaptureScroll.bind(this);this.__rootNodes=null;this._ensureSetup()},
attached:function(){this.opened&&this._openedChanged(this.opened);var Y;this._observer=_.B1((Y=this.hostElement)!=null?Y:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var Y;_.B1((Y=this.hostElement)!=null?Y:this).unobserveNodes(this._observer)}this._observer=null;for(var b in this.__rafs)this.__rafs[b]!==null&&cancelAnimationFrame(this.__rafs[b]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(Y){this.fire("iron-overlay-canceled",Y,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},
invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},
_ensureSetup:function(){if(!this._overlaySetup){this._overlaySetup=!0;var Y;((Y=this.hostElement)!=null?Y:this).style.outline="none";var b;((b=this.hostElement)!=null?b:this).style.display="none"}},
_openedChanged:function(Y){if(Y){var b;((b=this.hostElement)!=null?b:this).removeAttribute("aria-hidden")}else{var w;((w=this.hostElement)!=null?w:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var Y;if(this.withBackdrop&&!((Y=this.hostElement)!=null?Y:this).hasAttribute("tabindex")){var b;((b=this.hostElement)!=null?b:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var w;((w=this.hostElement)!=null?w:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var Y;((Y=this.hostElement)!=null?Y:this).style.display="none";var b;((b=this.hostElement)!=null?b:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var Y,b;((Y=this.hostElement)!=null?Y:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="none";var w,V;((w=this.hostElement)!=null?w:this).style.transform=((V=this.hostElement)!=null?V:this).style.webkitTransform="none";var H;((H=this.hostElement)!=null?H:this).style.display=""},
_finishPositioning:function(){var Y;((Y=this.hostElement)!=null?Y:this).style.display="none";this.scrollTop=this.scrollTop;var b,w;((b=this.hostElement)!=null?b:this).style.transition=((w=this.hostElement)!=null?w:this).style.webkitTransition="";var V,H;((V=this.hostElement)!=null?V:this).style.transform=((H=this.hostElement)!=null?H:this).style.webkitTransform="";var f;((f=this.hostElement)!=null?f:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var Y=this._manager.deepActiveElement,b;if(!(b=Y===document.body))a:{for(;Y;Y=Y.assignedSlot||Y.parentNode||Y.host)if(Y===this){b=!0;break a}b=!1}b&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(Y){this.noCancelOnOutsideClick||this.cancel(Y)},
_onCaptureFocus:function(Y){if(this.withBackdrop){var b=_.B1(Y).path;b.indexOf(this)===-1?(Y.stopPropagation(),this._applyFocus()):this._focusedChild=b[0]}},
_onCaptureEsc:function(Y){this.noCancelOnEscKey||this.cancel(Y)},
_onCaptureTab:function(Y){if(this.withBackdrop){this.__ensureFirstLastFocusables();var b=Y.shiftKey,w=b?this.__firstFocusableNode:this.__lastFocusableNode;b=b?this.__lastFocusableNode:this.__firstFocusableNode;if(w===b)w=!0;else{var V=this._manager.deepActiveElement;w=V===w||V===this}w&&(Y.preventDefault(),this._focusedChild=b,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var Y=this._focusableNodes;this.__firstFocusableNode=Y[0];this.__lastFocusableNode=Y[Y.length-1]},
__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},
__deraf:function(Y,b){var w=this.__rafs;w[Y]!==null&&cancelAnimationFrame(w[Y]);w[Y]=requestAnimationFrame(function(){w[Y]=null;b.call(this)}.bind(this))},
__updateScrollObservers:function(Y,b,w){Y&&b&&this.__isValidScrollAction(w)?(w==="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),dhg=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager[_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length-1],_._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=
[],_._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=[])),this.__addScrollListeners()):(Y=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),Y!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(Y,1),dhg=_._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(ad)for(var Y=this;Y;)Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Y.host&&this.__rootNodes.push(Y),Y=Y.host||Y.assignedSlot||Y.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(b){b.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(Y){Y.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(Y){return Y==="lock"||Y==="refit"||Y==="cancel"},
__onCaptureScroll:function(Y){if(!(this.__isAnimating||_.B1(Y).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(Y)}},
__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},
__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}};
_.TQ=[pb8,_.Li,_.GQ];_.pV({_template:function(){if(M9j!==void 0)return M9j;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_dropdown.tp.yt.iron.dropdown.css.js--\x3e<div id="contentWrapper" class="style-scope tp-yt-iron-dropdown">\n  <slot id="content" name="dropdown-content" class="style-scope tp-yt-iron-dropdown"></slot>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;n_r===void 0&&(n_r=document.createElement("template"));var V=n_r;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return M9j=Y},
is:"tp-yt-iron-dropdown",behaviors:[_.MM,_.ni,_.TQ,hQC],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],
get containedElement(){for(var Y=_.B1(this.$.content).getDistributedNodes(),b=0,w=Y.length;b<w;b++)if(Y[b].nodeType===Node.ELEMENT_NODE)return Y[b]},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(),_.GQ._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.GQ._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.GQ._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var Y=this.containedElement,b=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),w=0;w<b.length;w++)b[w].node=Y;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(Y){this._readied&&(Y?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var Y=this.focusTarget||this.containedElement;Y&&this.opened&&!this.noAutoFocus?Y.focus():_.GQ._applyFocus.apply(this,arguments)}});var apC;var rjr;/*

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

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 c98=function(){};
_.g=c98.prototype;_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._focusedChanged=function(){};
_.g.registered=function(){};
_.g._invalidChanged=function(){};
_.g.hasValidator=function(){};
_.g.validate=function(){};
_.g._getValidity=function(){};
_.g._requiredChanged=function(){};
_.g._valueChanged=function(){};
_.g._checkedChanged=function(){};
_.g._buttonStateChanged=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
c98=_.pV({is:"tp-yt-paper-toggle-button",_template:function(){if(EE9!==void 0)return EE9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toggle-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toggle_button.tp.yt.paper.toggle.button.css.js--\x3e<div class="toggle-container style-scope tp-yt-paper-toggle-button">\n  <div id="toggleBar" class="toggle-bar style-scope tp-yt-paper-toggle-button"></div>\n  <div id="toggleButton" class="toggle-button style-scope tp-yt-paper-toggle-button"></div>\n</div>\n\n<div class="toggle-label style-scope tp-yt-paper-toggle-button"><slot class="style-scope tp-yt-paper-toggle-button"></slot></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Nv5===void 0&&(Nv5=document.createElement("template"));var V=Nv5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return EE9=Y},
behaviors:[_.wv$],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");_.TC(this,function(){_.dS(this,"pan-y")})},
_ontrack:function(Y){Y=Y.detail;Y.state==="start"?this._trackStart(Y):Y.state==="track"?this._trackMove(Y):Y.state==="end"&&this._trackEnd(Y)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(Y){Y=Y.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+Y:Y)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+Y:Y));this.translate3d(this._x+"px",0,0,this.$.toggleButton);this._isRtl?this._userActivate(this._x<-this._width/2):this._userActivate(this._x>this._width/2)},
_trackEnd:function(){this.$.toggleButton.classList.remove("dragging");this.transform("",this.$.toggleButton)},
_createRipple:function(){this._rippleContainer=this.$.toggleButton;var Y=Jx._createRipple();Y.id="ink";Y.setAttribute("recenters","");Y.classList.add("circle","toggle-ink");return Y}});var Uyj;var XTd;_.pV({_template:function(){if(XTd!==void 0)return XTd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tooltip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tooltip.tp.yt.paper.tooltip.css.js--\x3e<div id="tooltip" class="hidden style-scope tp-yt-paper-tooltip" style-target="tooltip">\n  <slot class="style-scope tp-yt-paper-tooltip"></slot>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Uyj===void 0&&(Uyj=document.createElement("template"));var V=Uyj;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return XTd=Y},
is:"tp-yt-paper-tooltip",hostAttributes:{role:"tooltip",tabindex:-1,"aria-label":"tooltip"},properties:{for:{type:String,observer:"_findTarget"},manualMode:{type:Boolean,value:!1,observer:"_manualModeChanged"},position:{type:String,value:"bottom"},fitToVisibleBounds:{type:Boolean,value:!1},offset:{type:Number,value:14},marginTop:{type:Number,value:14},alwaysDisplay:{type:Boolean,value:!1},animationDelay:{type:Number,value:500,observer:"_delayChange"},animationEntry:{type:String,value:""},animationExit:{type:String,
value:""},animationConfig:{type:Object,value:function(){return{entry:[{name:"fade-in-animation",node:this,timing:{delay:0}}],exit:[{name:"fade-out-animation",node:this}]}}},
_showing:{type:Boolean,value:!1}},listeners:{webkitAnimationEnd:"_onAnimationEnd"},get target(){var Y=_.B1(this).parentNode,b=_.B1(this).getOwnerRoot(),w;this.for?w=_.B1(b).querySelector("#"+this.for):w=Y.nodeType==Node.DOCUMENT_FRAGMENT_NODE?b.host:Y;return w},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(Y){Y==="entry"?this.show():Y==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.B1(this).textContent.trim()===""){for(var Y=!0,b=_.B1(this).getEffectiveChildNodes(),w=0;w<b.length;w++)if(b[w].textContent.trim()!==""){Y=!1;break}if(Y)return}this._showing=!0;this.$.tooltip.classList.remove("hidden");this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.updatePosition();this._animationPlaying=!0;this.$.tooltip.classList.add(this._getAnimationType("entry"))}},
hide:function(){this._showing&&(this._animationPlaying?(this._showing=!1,this._cancelAnimation()):(this._onAnimationFinish(),this._showing=!1,this._animationPlaying=!0))},
updatePosition:function(){if(this._target&&this.offsetParent){var Y=this.offset;this.marginTop!=14&&this.offset==14&&(Y=this.marginTop);var b=this.offsetParent.getBoundingClientRect(),w=this._target.getBoundingClientRect(),V=this.getBoundingClientRect(),H=(w.width-V.width)/2,f=(w.height-V.height)/2,E=w.left-b.left,U=w.top-b.top;switch(this.position){case "top":var X=E+H;var I=U-V.height-Y;break;case "bottom":X=E+H;I=U+w.height+Y;break;case "left":X=E-V.width-Y;I=U+f;break;case "right":X=E+w.width+
Y,I=U+f}this.fitToVisibleBounds?(b.left+X+V.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,X)+"px",this.style.right="auto"),b.top+I+V.height>window.innerHeight?(this.style.bottom=b.height+"px",this.style.top="auto"):(this.style.top=Math.max(-b.top,I)+"px",this.style.bottom="auto")):(this.style.left=X+"px",this.style.top=I+"px")}},
_addListeners:function(){this._target&&(this.listen(this._target,"mouseenter","show"),this.listen(this._target,"focus","show"),this.listen(this._target,"mouseleave","hide"),this.listen(this._target,"blur","hide"),this.listen(this._target,"tap","hide"));this.listen(this.$.tooltip,"animationend","_onAnimationEnd");this.listen(this,"mouseenter","hide")},
_findTarget:function(){this.manualMode||this._removeListeners();this._target=this.target;this.manualMode||this._addListeners()},
_delayChange:function(Y){Y!==500&&this.updateStyles({"--paper-tooltip-delay-in":Y+"ms"})},
_manualModeChanged:function(){this.manualMode?this._removeListeners():this._addListeners()},
_cancelAnimation:function(){this.$.tooltip.classList.remove(this._getAnimationType("entry"));this.$.tooltip.classList.remove(this._getAnimationType("exit"));this.$.tooltip.classList.remove("cancel-animation");this.$.tooltip.classList.add("hidden")},
_onAnimationFinish:function(){this._showing&&(this.$.tooltip.classList.remove(this._getAnimationType("entry")),this.$.tooltip.classList.remove("cancel-animation"),this.$.tooltip.classList.add(this._getAnimationType("exit")))},
_onAnimationEnd:function(){this._animationPlaying=!1;this._showing||(this.$.tooltip.classList.remove(this._getAnimationType("exit")),this.$.tooltip.classList.add("hidden"))},
_getAnimationType:function(Y){if(Y==="entry"&&this.animationEntry!=="")return this.animationEntry;if(Y==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[Y]&&typeof this.animationConfig[Y][0].name==="string"){if(this.animationConfig[Y][0].timing&&this.animationConfig[Y][0].timing.delay&&this.animationConfig[Y][0].timing.delay!==0){var b=this.animationConfig[Y][0].timing.delay;Y==="entry"?this.updateStyles({"--paper-tooltip-delay-in":b+"ms"}):Y==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":b+
"ms"})}return this.animationConfig[Y][0].name}},
_removeListeners:function(){this._target&&(this.unlisten(this._target,"mouseenter","show"),this.unlisten(this._target,"focus","show"),this.unlisten(this._target,"mouseleave","hide"),this.unlisten(this._target,"blur","hide"),this.unlisten(this._target,"tap","hide"));this.unlisten(this.$.tooltip,"animationend","_onAnimationEnd");this.unlisten(this,"mouseenter","hide")}});var Dy_=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Dy_,_.SQ);var my8=_.uj(Dy_,[0,_.wm]);var bG=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(bG,_.SQ);var oE_=[3,4],IH_=[5,6];var kLk=[0,oE_,IH_,_.mFU,-1,_.bV,_.os_,-1,N7G,EK6];var lH$=_.uj(bG,kLk),hXt=_.YH(kLk);var xyk=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(xyk,_.SQ);var q1K=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(q1K,_.SQ);var snk=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(snk,_.SQ);var Qn$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Qn$,_.SQ);var vE$=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(vE$,_.SQ);var wY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(wY,_.SQ);wY.prototype.getSource=function(){return _.ay(this,1)};
wY.prototype.getMessage=function(){return _.Su(this,4)};
wY.prototype.getData=function(){return _.EK(this,vE$,8)};var PJ8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(PJ8,_.SQ);var VQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(VQ,_.SQ);var Ha=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Ha,_.SQ);var gY=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(gY,_.SQ);gY.prototype.getUrl=function(){return _.Su(this,1)};
gY.prototype.setUrl=function(Y){return _.hP(this,1,Y)};
gY.prototype.hasUrl=function(){return _.WI(_.ZX(this,1))!=null};var Zxr=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Zxr,_.SQ);var Bvo=[3];var nEt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(nEt,_.SQ);var fL=function(Y){var b=new nEt;return _.cO(b,2,Y)};
nEt.prototype.getLanguage=function(){return zZ(this,4,Nm)};
var MV$=function(Y){var b=fL(1);return _.gE(b,6,Nm,Y)},Nm=[3,
4,5,6];var eX9=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(eX9,_.SQ);var Ew=function(Y){var b=new eX9;return _.cO(b,1,Y)},ca=function(Y,b){return _.gE(Y,2,pT$,b)},pT$=[2,
3,4,5];var Oxj=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Oxj,_.SQ);var Uw=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Uw,_.SQ);var tV8=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(tV8,_.SQ);var RXU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(RXU,_.SQ);var dyQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(dyQ,_.SQ);var F29=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(F29,_.SQ);var L28=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(L28,_.SQ);var XK=function(Y){return _.EK(Y,Ha,5)};var S18=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(S18,_.SQ);S18.prototype.getValue=function(){return FT(this,1)};var aHK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(aHK,_.SQ);var Dd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Dd,_.SQ);Dd.prototype.getMetadata=function(){return _.WZ(this,dyQ,7,ms)};
Dd.prototype.hasMetadata=function(){return _.nE(this,dyQ,7,ms)};
var r9I=_.bH(Dd),ms=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var oU=function(Y){this.JSC$9969_name_=Y;this.files_=[];this.directories_=[];this.directoryMap_={}};
oU.prototype.getName=function(){return this.JSC$9969_name_};var kU=function(Y,b){this.callback_=b;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new oU("");zX$(this,Y,this.rootDirectory_);IU(this)},zX$=function(Y,b,w){for(var V=0;V<b.length;V++){var H=b[V];
H.isFile?(Y.fileOps_++,H.file((0,_.nC)(Y.handleFileSuccess_,Y,w),(0,_.nC)(Y.handleFileError_,Y))):Y.unscannedDirectories_.push(new W2t(H,w))}},IU=function(Y){if(Y.unscannedDirectories_.length>0&&Y.directoryOps_<5&&!Y.hasError_){Y.directoryOps_++;
var b=Y.unscannedDirectories_.shift(),w=b.entry,V=new oU(w.name);b=b.parent;b.directoryMap_[V.getName()]=V;b.directories_.push(V);w=w.createReader();w.readEntries((0,_.nC)(Y.handleDirectorySuccess_,Y,w,V),(0,_.nC)(Y.handleDirectoryError_,Y))}Y.directoryOps_!=0||Y.fileOps_!=0||Y.unscannedDirectories_.length!=0&&!Y.hasError_||Y.callback_(Y.rootDirectory_.files_,Y.rootDirectory_.directories_,Y.hasError_)};
kU.prototype.handleDirectorySuccess_=function(Y,b,w){zX$(this,w,b);w.length==0?(this.directoryOps_--,IU(this)):Y.readEntries((0,_.nC)(this.handleDirectorySuccess_,this,Y,b),(0,_.nC)(this.handleDirectoryError_,this))};
kU.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;IU(this)};
kU.prototype.handleFileSuccess_=function(Y,b){Y.files_.push(b);this.fileOps_--;IU(this)};
kU.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;IU(this)};
var W2t=function(Y,b){this.entry=Y;this.parent=b};var lG=function(Y){_.n1.call(this);_.ez(Y,"drop",this.onObjectsDropped_,!1,this);_.ez(Y,"dragenter",this.onFilesDragged_,!1,this);_.ez(Y,"dragover",this.onFilesDragged_,!1,this);_.ez(Y,"dragleave",this.onDragLeave_,!1,this);_.ez(Y,"dragend",this.onDragLeave_,!1,this)};
_.DX(lG,_.n1);var K2K=function(Y,b){_.Q2.call(this,"f");this.files=Y;this.directories=b};
_.DX(K2K,_.Q2);var ixU=function(){_.Q2.call(this,"h")};
_.DX(ixU,_.Q2);var A9I=function(){_.Q2.call(this,"i")};
_.DX(A9I,_.Q2);var CJ_=function(){_.Q2.call(this,"g")};
_.DX(CJ_,_.Q2);lG.prototype.onObjectsDropped_=function(Y){var b=this;Y.preventDefault();var w=Y.event_.dataTransfer;if((Y=w&&w.items)&&Y.length>0&&Y[0].webkitGetAsEntry){w=[];for(var V=[],H=0;H<Y.length;H++){var f=Y[H].webkitGetAsEntry();f?w.push(f):V.push(Y[H])}new kU(w,function(E,U,X){X?b.dispatchEvent(new CJ_("Error occurred while reading from the file system.")):b.dispatchEvent(new K2K(E,U,V))})}else(Y=w&&w.files)&&this.dispatchEvent(new K2K(Array.from(Y),[]))};
lG.prototype.onFilesDragged_=function(Y){Y.type==="dragenter"&&this.dispatchEvent(new ixU);Y.preventDefault()};
lG.prototype.onDragLeave_=function(){this.dispatchEvent(new A9I)};var y9o=function(Y,b){this.JSC$9992_name_=Y;this.inputElement_=b};
y9o.prototype.getName=function(){return this.JSC$9992_name_};
y9o.prototype.getInputElement=function(){return this.inputElement_};var hI=function(Y,b,w){b=b===void 0?"single_file":b;w=w===void 0?[]:w;_.n1.call(this);this.overlayTarget_=Y;this.parentOverlay_=Y!=null?Y.parentNode:_.xG("scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=w;this.overlay_=$yI(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.P(hI,_.n1);
var $yI=function(Y,b,w,V){var H=document.createElement("input");H.setAttribute("type","file");H.setAttribute("name","Filedata");_.ez(H,"change",Y.onFilesSelected_,!1,Y);w==="multiple_file"&&(H.multiple="true");w==="single_directory"&&(H.webkitdirectory="true");V.length>0&&H.setAttribute("accept",V.join(","));H.style.position="absolute";H.style.overflow="hidden";H.style.height="0px";H.style.width="0px";H.style.opacity="0";H.setAttribute("aria-hidden","true");H.setAttribute("tabIndex",-1);if(Y.overlayTarget_!=
null)return H.style.height=b.offsetHeight+"px",H.style.width=b.offsetWidth+"px",Y.parentOverlay_&&(Y.parentOverlay_.style.position="relative"),_.Lj(H,b),Kj(H,new _.eq(b.offsetLeft,b.offsetTop)),H;Y.parentOverlay_.appendChild(H);return H};
hI.prototype.click=function(){this.overlay_.click()};
hI.prototype.onFilesSelected_=function(Y){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(I){}b=!1}if(b){var w;Y=Array.from((w=Y.target.files)!=null?w:[]);w=[];if(this.selectorType_==="single_directory"&&(_.hZ||Yr||_.lL)){w=new oU("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<Y.length;b++)for(var V=Y[b],H=V.webkitRelativePath.split("/"),f=w,E=0;E<H.length;E++){var U=H[E];if(E==H.length-1){U!="."&&f.files_.push(V);break}var X=f.directoryMap_[U];X==void 0&&(U=
X=new oU(U),f.directoryMap_[U.getName()]=U,f.directories_.push(U));f=X}w=w.directories_}this.dispatchEvent(new jnU(Y,w,null))}else Y=Y.target.value,Y.match(/^c:\\fakepath\\/i)&&(Y=Y.substring(12)),this.dispatchEvent(new jnU([],[],new y9o(Y,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=$yI(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var jnU=function(Y,b){_.Q2.call(this,"j");this.files=Y;this.directories=b};
_.P(jnU,_.Q2);var GLo=function(Y){this.uploadUrl_=Y};var TvC=function(){_.n1.call(this)};
_.DX(TvC,_.n1);var xU=function(Y){_.Q2.call(this,Y)};
_.DX(xU,_.Q2);var qm=function(Y){_.Q2.call(this,Y)};
_.DX(qm,_.Q2);var J9j=function(Y,b,w,V,H){_.n1.call(this);w=document.createElement("form");w.setAttribute("method",b);w.setAttribute("enctype","multipart/form-data");w.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",H);w.appendChild(b);w.appendChild(V);this.JSC$10009_form_=w;Y=new _.Jw(Y);_.G_(Y,"upload_protocol","multipart");this.JSC$10009_url_=Y.toString();this.JSC$10009_request_=new fi;this.state_=
"Ready";this.JSC$10009_errorDescription_=null;this.JSC$10009_eventHandler_=new _.fM(this);_.os(this,this.JSC$10009_eventHandler_);this.JSC$10009_eventHandler_.listen(this.JSC$10009_request_,"success",this.onTransferSuccess_);this.JSC$10009_eventHandler_.listen(this.JSC$10009_request_,"error",this.onTransferError_)};
_.P(J9j,TvC);_.g=J9j.prototype;_.g.run=function(){this.state_="Transferring";var Y=this.JSC$10009_request_,b=this.JSC$10009_form_;if(Y.JSC$9427_active_)throw Error("pe");var w=new _.Jw(this.JSC$10009_url_||b.action);Y.JSC$9427_form_=b;b=Y.JSC$9427_form_;w=_.M1(w.toString());w!==void 0&&(b.action=w);Br$(Y)};
_.g.getResponseCode=function(){return null};
_.g.getResponseText=function(){return this.JSC$10009_request_&&this.JSC$10009_request_.getResponseText()||null};
_.g.JSC$25950_getErrorDescription=function(){return this.JSC$10009_errorDescription_};
_.g.cancel=function(){this.JSC$10009_request_&&this.JSC$10009_request_.abort();this.state_="Cancelled";this.dispatchEvent(new xU("o"))};
_.g.pause=function(){};
_.g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new xU("l"))};
_.g.onTransferError_=function(){this.JSC$10009_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new xU("n"))};var sw=function(){_.F6.call(this)};
_.P(sw,_.F6);sw.prototype.createXhr=function(){var Y=_.F6.prototype.createXhr.call(this);Y.upload&&(Y.upload.onprogress=(0,_.nC)(this.onProgress_,this));return Y};
sw.prototype.onProgress_=function(Y){this.dispatchEvent(Y)};var uB_=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},bk_=function(Y,b){var w=Y.attempt_+1;
if(Y.maxAttempts_>0&&w>Y.maxAttempts_)return!1;w==0?b():Y.delayCallId_=tS(function(){Y.delayCallId_=null;b()},Ydt(Y),Y);
Y.attempt_=w;return!0};
uB_.prototype.reset=function(){this.delayCallId_&&_.wB.clearTimeout(this.delayCallId_);this.attempt_=-1};
var Ydt=function(Y){var b=250*Math.pow(2,Y.attempt_);Y.maxDelayMs_>=0&&(b=Math.min(b,Y.maxDelayMs_));return b};var rnM=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var QQ=function(){_.n1.call(this);this.JSC$10019_request_=this.state_=null;this.JSC$10019_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10019_bytesTransferred_=0;this.retryIterator_=new uB_;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10019_errorDescription_=null;this.JSC$10019_eventHandler_=new _.fM(this);_.os(this,this.JSC$10019_eventHandler_);this.JSC$10019_url_=this.blob_=null;this.JSC$10019_method_=void 0;this.chunkSize_=this.JSC$10019_metadata_=
this.JSC$10019_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10019_responseText_=this.JSC$10019_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.DX(QQ,TvC);_.g=QQ.prototype;_.g.run=function(){va(this)};
_.g.getResponseCode=function(){return this.JSC$10019_responseCode_};
_.g.getResponseText=function(){return this.JSC$10019_responseText_};
_.g.JSC$25950_getErrorDescription=function(){return this.JSC$10019_errorDescription_};
_.g.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10019_eventHandler_.removeAll();this.JSC$10019_request_&&this.JSC$10019_request_.abort();this.retryIterator_.reset();var Y=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(Y==="Upload"||Y==="Query")Y=new sw,Y.JSC$7833_withCredentials_=this.JSC$10019_withCredentials_,Y.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10019_bytesTransferred_=
0;this.dispatchEvent(new xU("o"))}};
_.g.pause=function(){this.pauseRequested_=!0};
var va=function(Y){var b=Y.state_;Y.pauseRequested_?(Y.pauseRequested_=!1,Y.stateAfterUnpausing_=b,Y.state_="Paused"):bk_(Y.retryIterator_,function(){switch(Y.state_){case "Start":Y.JSC$10019_request_=new sw;var w=_.BL.clone(Y.JSC$10019_headers_);Y.blob_.size!=null&&(w["Content-Length"]=Y.blob_.size);w=zPL(w);w["X-Goog-Upload-Protocol"]="resumable";w["X-Goog-Upload-Command"]="start";Y.JSC$10019_eventHandler_.removeAll();Y.JSC$10019_eventHandler_.listen(Y.JSC$10019_request_,"complete",Y.onStartComplete_);
Y.JSC$10019_request_.JSC$7833_withCredentials_=Y.JSC$10019_withCredentials_;Y.JSC$10019_request_.send(Y.JSC$10019_url_,Y.JSC$10019_method_,Y.JSC$10019_metadata_,w);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new qm("q"));break;case "Upload":w=Y.transferHandle_.uploadUrl_;var V=Y.blob_.size;if(XQC()){var H=Y.chunkSize_;var f=Y.offset_+H>=V;V=Un$(Y.blob_,Y.offset_,f?V:Y.offset_+H)}else Y.offset_=0,V=Y.blob_,f=!0;Y.JSC$10019_request_=new sw;Y.JSC$10019_request_.JSC$7833_withCredentials_=Y.JSC$10019_withCredentials_;
Y.JSC$10019_eventHandler_.removeAll();Y.JSC$10019_eventHandler_.listen(Y.JSC$10019_request_,"progress",Y.onUploadProgress_);H=(0,_.nC)(Y.JSC$10021_onUploadComplete_,Y,Y.offset_+V.size,f);Y.JSC$10019_eventHandler_.listen(Y.JSC$10019_request_,"complete",H);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new qm("q"));f=Object.assign({},Y.JSC$10019_headers_||{},{"X-Goog-Upload-Command":"upload"+(f?", finalize":""),"X-Goog-Upload-Offset":Y.offset_});Y.JSC$10019_request_.send(w,"POST",V,f);break;case "Query":Y.JSC$10019_request_=
new sw;Y.JSC$10019_eventHandler_.removeAll();Y.JSC$10019_eventHandler_.listen(Y.JSC$10019_request_,"complete",Y.onQueryComplete_);w=Object.assign({},Y.JSC$10019_headers_||{},{"X-Goog-Upload-Command":"query"});Y.JSC$10019_request_.send(Y.transferHandle_.uploadUrl_,"POST","",w);Y.lastCommandResponseCode_=null;Y.dispatchEvent(new qm("q"));break;default:throw Error("ef");}})||Pa(Y,"Transfer encountered too many consecutive failures.")},Pa=function(Y,b){Y.state_="Error";
Y.JSC$10019_errorDescription_=b;Y.dispatchEvent(new xU("n"))};
QQ.prototype.onStartComplete_=function(Y){var b=Y.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new qm("r"));if(wKr(b))VZ_(this,b);else if(Hkk(b)){Y=Yw(Y.target.getAllResponseHeaders());for(var w in Y)_.Hg(w.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new xU("m"));w=M4(Y,"X-Goog-Upload-URL");Y=(Y=M4(Y,"X-Goog-Upload-Chunk-Granularity"))?parseInt(Y,10):1;w===void 0||isNaN(Y)||Y<=0?Pa(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
Y)*Y,this.transferHandle_=new GLo(w),this.dispatchEvent(new xU("p")),this.state_="Upload",this.retryIterator_.reset(),va(this))}else va(this)};
QQ.prototype.onUploadProgress_=function(Y){this.JSC$10019_bytesTransferred_=this.offset_+Y.loaded;this.dispatchEvent(new xU("k"))};
QQ.prototype.JSC$10021_onUploadComplete_=function(Y,b,w){var V=this,H,f;return _.c(function(E){switch(E.nextAddress){case 1:H=w.target;V.lastCommandResponseCode_=H.getStatus();V.dispatchEvent(new qm("r"));if(gio(H)||H.getStatus()==404)return V.JSC$10019_bytesTransferred_=Y,VZ_(V,H),E.return();if(Hkk(H)){E.jumpTo(2);break}if(!(f=V.detectCorruptedBlobEnabled_)){E.jumpTo(3);break}return _.D(E,fzk(V),4);case 4:f=E.yieldResult;case 3:if(f)return Pa(V,"Blob has been modified or corrupted."),E.return();
V.requireUploadRequestModification_=H.getStatus()==400;V.state_="Query";va(V);return E.return();case 2:if(b)return Pa(V,"Got a non-final success response after issuing a finalize command."),E.return();V.JSC$10019_bytesTransferred_=Y;V.offset_=Y;V.retryIterator_.reset();va(V);return E.return()}})};
QQ.prototype.onQueryComplete_=function(Y){var b=Y.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new qm("r"));wKr(b)?(b.getStatus()===200&&(this.JSC$10019_bytesTransferred_=this.blob_.size),VZ_(this,b)):Hkk(b)?(Y=Yw(Y.target.getAllResponseHeaders()),Y=parseInt(M4(Y,"X-Goog-Upload-Size-Received"),10),isNaN(Y)?Pa(this,"Server did not respond with current offset."):Y<this.offset_?Pa(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
Y+"."):this.requireUploadRequestModification_&&this.offset_===Y?Pa(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<Y&&this.retryIterator_.reset(),this.offset_=this.JSC$10019_bytesTransferred_=Y,this.state_="Upload",va(this))):va(this)};
var VZ_=function(Y,b){Y.JSC$10019_responseCode_=b.getStatus();var w=Yw(b.getAllResponseHeaders());WUg(w);Y.JSC$10019_responseText_=b.getResponseText();Y.state_="Response received";Y.dispatchEvent(new xU("l"))},Hkk=function(Y){var b=Y.getStatus();
Y=Yw(Y.getAllResponseHeaders());Y=M4(Y,"X-Goog-Upload-Status");return b===200&&Y==="active"},gio=function(Y){Y=Yw(Y.getAllResponseHeaders());
return M4(Y,"X-Goog-Upload-Status")==="final"},wKr=function(Y){if(gio(Y))return!0;
Y=Y.getStatus();return Y>=400&&Y<500},fzk=function(Y){var b;
return _.c(function(w){if(w.nextAddress==1){if(!Y.blob_||Y.originalBlobSize_<=0)return w.return(!1);if(Y.blob_.size!==Y.originalBlobSize_)return w.return(!0);_.ct(w,2);if(b=Un$(Y.blob_,0,1)){var V=new i6,H=KxK(V);V.reader_.readAsBinaryString(b);w=_.D(w,H,4)}else w=w.return(!0);return w}if(w.nextAddress!=2)return w.return(Y.blob_.size!==Y.originalBlobSize_);_.mS(w);return w.return(!0)})};var Npr=function(Y,b,w,V,H,f){_.n1.call(this);this.payload_=V;this.JSC$10022_url_=Y;this.JSC$10022_method_=b;this.JSC$10022_headers_=w;this.JSC$10022_metadata_=H;this.encoding_=f||"binary";Y=new _.Mw;this.boundary_="uploader-"+y9()+"-"+Y.JSC$9276_toIsoString();this.JSC$10022_responseText_=this.JSC$10022_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10022_errorDescription_=null;this.JSC$10022_eventHandler_=new _.fM(this);_.os(this,this.JSC$10022_eventHandler_)};
_.P(Npr,TvC);_.g=Npr.prototype;
_.g.run=function(){var Y=_.BL.clone(this.JSC$10022_headers_);this.payload_.length!=null&&(Y["Content-Length"]=this.payload_.length);Y=zPL(Y);Y["X-Goog-Upload-Protocol"]="multipart";Y["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new sw;this.JSC$10022_eventHandler_.removeAll();this.JSC$10022_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10022_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10022_url_,this.JSC$10022_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10022_metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n",Y)};
_.g.getResponseCode=function(){return this.JSC$10022_responseCode_};
_.g.getResponseText=function(){return this.JSC$10022_responseText_};
_.g.JSC$25950_getErrorDescription=function(){return this.JSC$10022_errorDescription_};
_.g.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10022_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new xU("o")))};
_.g.pause=function(){};
_.g.onTransferProgress_=function(){this.dispatchEvent(new xU("k"))};
_.g.onTransferComplete_=function(Y){var b=Y.target.getStatus();b===void 0||b===-1?(this.JSC$10022_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new xU("n"))):(this.JSC$10022_responseCode_=b,Y=Y.target,b=Yw(Y.getAllResponseHeaders()),WUg(b),this.JSC$10022_responseText_=Y.getResponseText(),this.state_="Complete",this.dispatchEvent(new xU("l")))};_.Ei9=function(Y,b,w,V){V=V===void 0?!1:V;if(w instanceof y9o)return new J9j(Y,"POST",b,w.getInputElement(),"");if(typeof w==="string"||w instanceof String)return new Npr(Y,"POST",b,w,"");var H=new QQ(void 0);H.JSC$10019_url_=Y;H.JSC$10019_method_="POST";H.JSC$10019_headers_=b;H.blob_=w;H.originalBlobSize_=w.size;H.JSC$10019_metadata_="";V&&(H.JSC$10019_withCredentials_=V);H.state_="Start";return H};var Zd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Zd,_.SQ);_.g=Zd.prototype;_.g.getEnableSsEngine=function(){return _.dM(this,2)};
_.g.getEnableAwr=function(){return _.dM(this,3)};
_.g.getAlohaAutoGaRollout=function(){return _.dM(this,5)};
_.g.getEnableConfigurator=function(){return _.dM(this,6)};
_.g.getEnableMweb=function(){return _.dM(this,7)};
var Uq_=function(){var Y=cJ9();return _.pM(Y,7,!0)};
Zd.prototype.getEnableCtlConsentCheckbox=function(){return _.dM(this,8)};
Zd.prototype.getEnableIframe=function(){return _.dM(this,9)};
var cJ9=function(){var Y=new Zd;Y=_.pM(Y,5,!0);Y=_.pM(Y,2,!0);Y=_.pM(Y,4,!1);Y=_.pM(Y,8,!0);return _.pM(Y,9,!0)};
Zd.prototype.getEnableScreenshotNudge=function(){return _.dM(this,10)};
var XKd=function(){var Y=Uq_();return _.pM(Y,10,!0)};
Zd.prototype.getEnableWebStartupConfigEndpoint=function(){return _.dM(this,11)};
Zd.prototype.getEnableJunkNudge=function(){return _.dM(this,12)};
var NPb=function(){var Y=XKd();return _.pM(Y,12,!0)};
_.g=Zd.prototype;_.g.getEnableConfiguratorLocale=function(){return _.dM(this,13)};
_.g.getEnableTinyNoPointer=function(){return _.dM(this,14)};
_.g.getEnableSupportSessionLogging=function(){return _.dM(this,15)};
_.g.getEnableFileUploadForScreenshot=function(){return _.dM(this,16)};
_.g.getEnableDirectDeflectionForSingleCategory=function(){return _.dM(this,17)};
_.g.getEnableImageSanitization=function(){return _.dM(this,18)};
_.g.getEnableAlohaBinarySplit=function(){return _.dM(this,19)};
_.g.getEnableDbFeedbackIntents=function(){return _.dM(this,20)};
_.g.getEnableMarkMandatoryFieldsWithRequired=function(){return _.dM(this,21)};
_.g.getEnableFeedbackCategoryCustomUi=function(){return _.dM(this,22)};
_.g.getEnableRealtimeCtl=function(){return _.dM(this,23)};var fqM=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(fqM,_.SQ);var KU6=[/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 Anv="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 CVg=_.wM(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ynB=_.wM(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var jvq,JnG,Geb,u1B;var Dqk,mqd;
Dqk=function(Y,b,w){Y.timeOfStartCall=(new Date).getTime();var V=w||_.wB,H=V.document,f=Y.nonce||_.Lu(V.document);f&&!Y.nonce&&(Y.nonce=f);if(Y.flow=="help"){var E=_.Aq("document.location.href",V);!Y.helpCenterContext&&E&&(Y.helpCenterContext=E.substring(0,1200));E=!0;if(b&&JSON&&JSON.stringify){var U=JSON.stringify(b);(E=U.length<=1200)&&(Y.psdJson=U)}E||(b={invalidPsd:!0})}b=[Y,b,w];V.GOOGLE_FEEDBACK_START_ARGUMENTS=b;w=Y.feedbackServerUri||"//www.google.com/tools/feedback";if(E=V.GOOGLE_FEEDBACK_START)E.apply(V,b);
else{V=w+"/load.js?";for(var X in Y)b=Y[X],b==null||_.bC(b)||(V+=encodeURIComponent(X)+"="+encodeURIComponent(b)+"&");Y=la(H).createElement("SCRIPT");f&&Y.setAttribute("nonce",f);_.Ku(Y,_.Uu(V));H.body.appendChild(Y)}};
mqd=function(Y,b,w,V){var H,f;_.c(function(E){H=w||_.wB;var U=Y.serverEnvironment==="DEV",X=w||_.wB;X=Y.nonce||_.Lu(X.document);U={integrationKeys:{productId:Y.productId,feedbackBucket:Y.bucket,triggerId:Y.triggerId},callbacks:{onClose:Y.callback,onLoad:Y.onLoadCallback},formContent:{locale:Y.locale,disableScreenshot:Y.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,
defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:Y.abuseLink,additionalDataConsent:Y.additionalDataConsent},initializationData:{isLocalServer:U,nonce:X,useNightlyRelease:U,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:Y.feedbackServerUri,colorScheme:Y.colorScheme},extraData:{productVersion:Y.productVersion,authUser:Y.authuser,configuratorId:Y.configuratorId,customZIndex:Y.customZIndex,tinyNoPointer:Y.tinyNoPointer,
allowNonLoggedInFeedback:Y.allowNonLoggedInFeedback,enableAnonymousFeedback:Y.enableAnonymousFeedback}};b&&(X=new Map(Object.entries(b)),U.extraData.productSpecificData=X);f=U;return _.D(E,VOB(f,V,H),0)})};
_.oiC=function(Y,b,w){try{if(Y.flow==="help"){var V=Y.helpCenterPath.replace(/^\//,"");_.Fk(w||window,"https://support.google.com/"+V)}else Y.flow==="submit"?Dqk(Y,b,w):E5L(Y.productId,Y.feedbackServerUri).then(function(H){H=_.EK(H,Zd,1);var f=!nCM||(H==null?void 0:H.getEnableMweb()),E=!Y.tinyNoPointer||(H==null?void 0:H.getEnableTinyNoPointer());!H||H.getAlohaAutoGaRollout()&&f&&E?mqd(Y,b,w,H):Dqk(Y,b,w)},function(H){H&&H.name!=="DuplicateFormError"&&Dqk(Y,b,w)})}catch(H){mqd(Y,b,w,null)}};
_.wG("userfeedback.api.startFeedback",_.oiC);var cSb=/https?:\/\/\S+\.\S+/,UkB=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],XVt=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Utq=function(Y){var b=Y.split(""),w=[-263237435,15,b,function(V,H,f){var E=H.length;f.forEach(function(U,X,I){this.push(I[X]=H[(H.indexOf(U)-H.indexOf(this[X])+X+E--)%H.length])},V.split(""))},
function(V,H){V=(V%H.length+H.length)%H.length;H.splice(-V).reverse().forEach(function(f){H.unshift(f)})},
"response",function(){for(var V=64,H=[];++V-H.length-32;){switch(V){case 58:V-=14;case 91:case 92:case 93:continue;case 123:V=47;case 94:case 95:case 96:continue;case 46:V=95}H.push(String.fromCharCode(V))}return H},
null,12,1540023973,65941107,null,b,function(V,H){for(V=(V%H.length+H.length)%H.length;V--;)H.unshift(H.pop())},
695603893,function(V){for(var H=V.length;H;)V.push(V.splice(--H,1)[0])},
"'[;'[(",function(V,H){V.push(H)},
null,function(V,H,f,E,U){return H(f,E,U)},
"continuation",b,function(V,H){if(V.length!=0){H=(H%V.length+V.length)%V.length;var f=V[0];V[0]=V[H];V[H]=f}},
function(){for(var V=64,H=[];++V-H.length-32;){switch(V){case 91:V=44;continue;case 123:V=65;break;case 65:V-=18;continue;case 58:V=96;continue;case 46:V=95}H.push(String.fromCharCode(V))}return H},
'"),/]];'];w[7]=w;w[11]=w;w[18]=w;try{(((0,w[15])(w[21]),w[22])(w[11],w[9]),w[22])(w[new Date("1970-01-01T04:30:12.000+04:30")/1E3],w[1]),((0,w[22])(w[11],w[23]),w[4])(w[10],w[18]),(0,w[20])(w[21],w[14])<<(0,w[17])(w[18],w[1]),(0,w[4])(w[8],w[21]),(0,w[19])((0,w[19])((0,w[17])(w[7],w[9]),w[3],w[20],(0,w[6])(),w[2]),w[3],w[5],(0,w[15])(),w[2])}catch(V){return"aTlOUOubTO4AP____8P_"+Y}return b.join("")};_.Izj=new _.A("runAttestationCommand");var kit=new _.A("verifyCommand");_.Ba=new _.A("accessibilityContext");var lzj=new _.A("accessibilityData");var hst=new _.A("profileCardCommand");var scv=new _.A("signInEndpoint");var qFr=new _.A("signOutEndpoint");var qdk;_.xq_=new _.A("accountItemSectionRenderer");qdk=new _.A("accountItemRenderer");_.sMd=new _.A("saveCommandToSessionStorageAction");var QMK=new _.A("crossAccountChannelTransferEndpoint");var lxv=new _.A("getAccountMenuEndpoint");_.hFv=new _.A("getAccountSwitcherEndpoint");var kBu=new _.A("getAccountsListEndpoint");var viU=new _.A("getAccountsListInnertubeEndpoint");_.nL=new _.A("addToToastAction");var Pfd=new _.A("hideEnclosingAction");_.Mm=new _.A("replaceEnclosingAction");var Zkj=new _.A("buttonRefreshAction");var Bpo=new _.A("adsControlFlowOpportunityReceivedCommand");var nio=new _.A("openAdAllowlistInstructionCommand");var MZ5=new _.A("videoMastheadAdPrimaryVideoRenderer");var esr=new _.A("displayAdRenderer");var yWq=new _.A("instreamVideoAdRenderer");_.pKU=new _.A("inFeedAdLayoutRenderer");var OkK=new _.A("sequenceItemInPlayerAdLayoutRenderer");_.tZ8=new _.A("adSlotRenderer");var RsC=new _.A("adAvatarViewModel");var dqo=new _.A("adBadgeViewModel");var FwK=new _.A("adImageViewModel");var SoG=new _.A("reelsAdCardButtonedViewModel");var Lw9=new _.A("reelsPlayerOverlayLayoutViewModel");var SdU=new _.A("showSchedulingPanelCommand");var azk=new _.A("backstageCommentsRenderer");var rJj=new _.A("backstageImageRenderer");var zs5=new _.A("backstagePostRenderer");var Ww5=new _.A("postRenderer");var Kwt=new _.A("sharedPostRenderer");var ik9=new _.A("createBackstagePostEndpoint");var AJ_=new _.A("getPostVideoPreviewEndpoint");var Cf5=new _.A("updateBackstagePostEndpoint");var yJI=new _.A("filterChipTransformCommand");var $qK=new _.A("insertRichSectionCommand");var NdG=new _.A("talkToRecsDeselectCommand");var jM$=new _.A("talkToRecsNextCommand");var fr6=new _.A("talkToRecsSelectCommand");var Gi8=new _.A("talkToRecsUpdateTextCommand");_.QU=new _.A("browseEndpoint");_.Tpj=new _.A("confirmDialogEndpoint");var JJ5=new _.A("expandOnHoverCardRenderer");var u5o=new _.A("lumiereShelfDetailsRenderer");var Y0K=new _.A("revealBusinessEmailCommand");var bE5=new _.A("validateChannelHandleCommand");var wZk=new _.A("channelCreationFormEndpoint");var Vuj=new _.A("aboutChannelViewModel");var HEr=new _.A("channelThumbnailWithLinkRenderer");var gvt=new _.A("channelCreationServiceEndpoint");var fXd=new _.A("updateChannelPageSettingsEndpoint");var e7=function(Y){this.delegate=Y},pL=function(){e7.apply(this,arguments)};
_.P(pL,e7);_.up.Object.defineProperties(pL.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(Y){this.delegate.entityMetadata=Y}}});var NMK=function(){pL.apply(this,arguments)};
_.P(NMK,pL);NMK.prototype.getAssociations=function(){return[]};var p3q=new _.A("webThumbnailDetailsExtensionData");var lQu=new _.A("commandContext");var Evk=new _.A("addVideoLinkAction");var cZI=new _.A("createPollAction");var UX9=new _.A("hideIdentityChipAction");var XZC=new _.A("openUpdateCommentDialogAction");var Ow=new _.A("updateBackstagePollAction");var DXd=new _.A("updateCommentVoteAction");var mXj=new _.A("commentThreadRenderer");var ovo=function(){pL.apply(this,arguments)};
_.P(ovo,pL);ovo.prototype.getAssociations=function(){return[]};_.IX5=new _.A("commentDialogRenderer");var kZr=new _.A("updateCommentsSettingsEndpoint");var lXU=new _.A("commentViewModel");var h09=new _.A("triStateButtonViewModel");var xXk=new _.A("voiceReplyContainerViewModel");_.ln=new _.A("commandExecutorCommand");var Sz=new _.A("emoji");var q0j=new _.A("updateCreatorChannelInnertubeCommand");_.syU=new _.A("appendContinuationItemsAction");_.QyK=new _.A("changeEngagementPanelVisibilityAction");_.Wb=new _.A("continuationCommand");var vv_=new _.A("listMutationCommand");_.tI=new _.A("openPopupAction");var PLU=new _.A("persistSubscriptionsDisplayPreferencesCommand");var tu5;_.ZE5=new _.A("playlistRemoveVideosAction");_.BM9=new _.A("updatePlaylistAction");_.nvd=new _.A("addToPlaylistCommand");_.Muk=new _.A("endPlaylistCommand");_.e0k=new _.A("recoverPlaylistCommand");_.pZt=new _.A("refreshPlaylistCommand");_.OEU=new _.A("refreshFormCommand");tu5=new _.A("openOnePickAddVideoModalCommand");_.Peq=new _.A("reloadContinuationItemsCommand");_.R0Q=new _.A("scrollToEngagementPanelCommand");var dX8=new _.A("selectCountryCommand");var F3j=new _.A("showReloadUiCommand");var L3C=new _.A("undoFeedbackAction");var S0t=new _.A("updateButtonAction");var aXk=new _.A("updateSubscribeButtonAction");var rZ$=new _.A("updateToggleAction");var z0Q=new _.A("webNativeShareCommand");_.g5=new _.A("webCommandMetadata");_.RU=new _.A("webHandleServiceEndpointExtension");var vab=new _.A("webNavigationEndpointData");var W39=new _.A("copyLinkCommand");var K3K=new _.A("playlistVotingRefreshPopupCommand");var iEk=new _.A("selectChipCommand");var AZ9=new _.A("setCookieCommand");var CLQ=new _.A("setLocalStorageCommand");var yZ$=new _.A("setPrefStorageEntryCommand");var TMk;_.$X5=new _.A("settingsUpdateCheckboxCommand");_.jyj=new _.A("settingsUpdateTextCommand");_.GZC=new _.A("settingsUpdateOptionsCommand");TMk=new _.A("settingsUpdateSwitchCommand");_.JZU=new _.A("settingsUpdateConnectedAppRendererCommand");var uT_=new _.A("updateTextInputFormFieldRendererCommand");var YI5=new _.A("updateToggleButtonStateCommand");var bjU=new _.A("updateUrlParamCommand");var wY9=new _.A("webSubmitFormCommand");var Vxj=new _.A("channelSwitcherPageRenderer"),Hj_=new _.A("updateChannelSwitcherPageAction");_.cK=new _.A("continuationItemRenderer");_.dY=new _.A("richItemRenderer");var gSt=new _.A("richSectionRenderer");_.ffK=new _.A("richShelfRenderer");_.Nmo=new _.A("metadataBadgeRenderer");_.ESr=new _.A("multiPageMenuNotificationSectionRenderer");_.cnd=new _.A("playlistLoopButtonStateRenderer");var Uhr=new _.A("claimLegacyYoutubeChannelEndpoint");var XY$=new _.A("getNotificationMenuEndpoint");var DhC=new _.A("getSearchInVideoCommand");_.mht=new _.A("getTranscriptEndpoint");_.x7=new _.A("signalServiceEndpoint");var oS$=new _.A("verifyAgeEndpoint");var mtI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(mtI,_.SQ);mtI.prototype.getPath=function(){return _.Su(this,1)};
mtI.prototype.getValue=function(){return _.Su(this,2)};var IfK=[0,_.uL,-1];var keC=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(keC,_.SQ);var Dt6=_.uj(keC,[0,_.YS,IfK]);var lfd=new _.A("dismissalEndpoint");var hPr=new _.A("elementsCommand");_.rI=new _.A("innertubeCommand");var xhj=new _.A("multipleInlinePlaybackCommand");var NVt=new _.A("loggingDirectives");var qIt=new _.A("acknowledgeChannelTouStrikeCommand");var svd=function(){pL.apply(this,arguments)};
_.P(svd,pL);svd.prototype.getAssociations=function(){return[]};var Qv_=function(){pL.apply(this,arguments)};
_.P(Qv_,pL);Qv_.prototype.getAssociations=function(){return[]};var T9=new _.A("entityBatchUpdate");_.vSo=new _.A("entityUpdateCommand");var PVt=function(){pL.apply(this,arguments)};
_.P(PVt,pL);PVt.prototype.getAssociations=function(){var Y=[];this.delegate.alternateChannel&&Y.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&Y.push.apply(Y,_.Bt(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&Y.push(this.delegate.oneofChannelEntity);return[].concat(_.Bt(new Set(Y)))};var Zj$=function(){pL.apply(this,arguments)};
_.P(Zj$,pL);Zj$.prototype.getAssociations=function(){var Y=[];this.delegate.entryCollection&&Y.push(this.delegate.entryCollection);return[].concat(_.Bt(new Set(Y)))};
var Bmr=function(){pL.apply(this,arguments)};
_.P(Bmr,pL);Bmr.prototype.getAssociations=function(){var Y=[];this.delegate.parentPlaylist&&Y.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var b=_.N(this.delegate.entries),w=b.next();!w.done;w=b.next())Y.push.apply(Y,_.Bt((new nSU(w.value)).getAssociations()));return[].concat(_.Bt(new Set(Y)))};
var nSU=function(){e7.apply(this,arguments)};
_.P(nSU,e7);nSU.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);return[].concat(_.Bt(new Set(Y)))};var MxI=function(){pL.apply(this,arguments)};
_.P(MxI,pL);MxI.prototype.getAssociations=function(){var Y=[];this.delegate.descriptionEntity&&Y.push(this.delegate.descriptionEntity);this.delegate.creators&&Y.push.apply(Y,_.Bt(this.delegate.creators));this.delegate.theBiggestFan&&Y.push(this.delegate.theBiggestFan);return[].concat(_.Bt(new Set(Y)))};
var ePQ=function(){pL.apply(this,arguments)};
_.P(ePQ,pL);ePQ.prototype.getAssociations=function(){return[]};var pY9=new _.A("fantasyRosterViewModel");var Oj_=new _.A("addFollowUpSurveyCommand");var txr=new _.A("getSurveyCommand");var RP_=new _.A("ratingSurveyOptionRenderer");_.aM=new _.A("feedbackEndpoint");var dh9=new _.A("reportHistoryTableCellRenderer"),FUr=new _.A("reportHistoryTableTextCellRenderer"),LUU=new _.A("reportHistoryTableReasonCellRenderer");_.SI9=new _.A("flagEndpoint");var afo=new _.A("getFlowCommand");var rnt=new _.A("submitFormWithValidationFlowCommand");var zPK=function(){pL.apply(this,arguments)};
_.P(zPK,pL);zPK.prototype.getAssociations=function(){return[]};var WU9=new _.A("flowFormState");var KUk=new _.A("gameCardRenderer");var ijk=new _.A("accountLinkingStateChangedCommand");var Anr=function(){pL.apply(this,arguments)};
_.P(Anr,pL);Anr.prototype.getAssociations=function(){return[]};var CV9=new _.A("changeMiniAppPlayStateCommand");var ynU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(ynU,_.SQ);var FK=[1,2,3];var $h$=[0,FK,wWv,_.Vs6,jKt];var jv8=_.uj(ynU,$h$),Ged=_.YH($h$);var TmU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(TmU,_.SQ);var JnI=[0,_.GZ,_.uL];var u1U=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(u1U,_.SQ);var YVI=[0,_.uL,_.GZ,-1];var LL=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(LL,_.SQ);var b1j=function(Y,b){return _.cO(Y,3,b)};var wV9=_.YH([0,1,JnI,_.wm,YVI]);var VOU=new _.A("miniAppScoreChallengeViewModel");var H1k=new _.A("miniGameCardViewModel");var g5$=new _.A("teaserCardViewModel");var fqt=function(){pL.apply(this,arguments)};
_.P(fqt,pL);fqt.prototype.getAssociations=function(){return[]};_.NPd=new _.A("feedbackItemRenderer");var E5K=function(){pL.apply(this,arguments)};
_.P(E5K,pL);E5K.prototype.getAssociations=function(){return[]};_.cSd=new _.A("playerInterstitialRenderer");var UkU=new _.A("getKidsBlocklistPickerCommand");_.XV5=new _.A("updateKidsBlacklistEndpoint");_.jV=new _.A("likeEndpoint");var Dk9,mk$,o5t;Dk9=new _.A("addChatItemAction");mk$=new _.A("removeChatItemAction");o5t=new _.A("markChatItemAsDeletedAction");_.Iqr=new _.A("setLiveChatCollapsedStateAction");var khI=function(){pL.apply(this,arguments)};
_.P(khI,pL);khI.prototype.getAssociations=function(){return[]};var lqo=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(lqo,_.SQ);var hL9=_.uj(lqo,[0,1,_.GZ]);var xko=new _.A("liveChatEndpoint");var qV9=new _.A("liveChatItemContextMenuEndpoint");var s_d=new _.A("liveChatReplayEndpoint");_.Q_5=new _.A("emojiPickerRenderer");var v5Q=new _.A("liveChatAuthorBadgeViewModel");var PzI=new _.A("deleteLiveChatMessageCommand");var Z1r=new _.A("liveChatActionEndpoint");var BPI=new _.A("createLiveChatPollEndpoint");var n5r=new _.A("manageLiveChatUserEndpoint");var MOQ=new _.A("moderateLiveChatEndpoint");_.eL$=new _.A("sendLiveChatMessageEndpoint");var pV8=new _.A("sendLiveChatVoteEndpoint");var O1_=new _.A("clearLocationCommand");var tO9=new _.A("resolveLocationCommand");var RLo=new _.A("interactionLoggingCommandMetadata");var rNI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(rNI,_.SQ);var ahb=function(Y,b){return _.E2(Y,1,b)};var dko=[0,_.JZ];var Slq=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Slq,_.SQ);var LWb=function(Y,b){return Qu(Y,1,rNI,b)};Slq.prototype.JSC$10114_serializeBinary=b3q([0,_.YS,dko]);var O1e={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 FVK={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"},
LV$={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 SMG={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK"};_.$Nv=new _.A("logFlowLoggingEventCommand");_.vP=new _.A("loggingContext");var SV5=new _.A("captionLanguageSelectActionCommand");var aqd=new _.A("showCaptionLanguageSelectActionCommand");var rS$=new _.A("dismissDialogEndpoint");var zL9=new _.A("hideItemSectionVideosByIdCommand");var WVU=new _.A("showMiniplayerCommand");var KVr=function(){pL.apply(this,arguments)};
_.P(KVr,pL);KVr.prototype.getAssociations=function(){return[]};var i1_=function(){pL.apply(this,arguments)};
_.P(i1_,pL);i1_.prototype.getAssociations=function(){return[]};var ASC=function(){pL.apply(this,arguments)};
_.P(ASC,pL);ASC.prototype.getAssociations=function(){return[]};var Cz9=function(){pL.apply(this,arguments)};
_.P(Cz9,pL);Cz9.prototype.getAssociations=function(){var Y=[];this.delegate.downloadsList&&Y.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&Y.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&Y.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&Y.push(this.delegate.refresh);return[].concat(_.Bt(new Set(Y)))};var yS$=function(){pL.apply(this,arguments)};
_.P(yS$,pL);yS$.prototype.getAssociations=function(){var Y=[];this.delegate.refresh&&Y.push(this.delegate.refresh);if(this.delegate.downloads)for(var b=_.N(this.delegate.downloads),w=b.next();!w.done;w=b.next())Y.push.apply(Y,_.Bt((new $kj(w.value)).getAssociations()));return[].concat(_.Bt(new Set(Y)))};
var $kj=function(){e7.apply(this,arguments)};
_.P($kj,e7);$kj.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.playlist&&Y.push(this.delegate.playlist);this.delegate.videoItem&&Y.push(this.delegate.videoItem);this.delegate.playlistItem&&Y.push(this.delegate.playlistItem);return[].concat(_.Bt(new Set(Y)))};var j_K=function(){pL.apply(this,arguments)};
_.P(j_K,pL);j_K.prototype.getAssociations=function(){var Y=[];this.delegate.localImageEntities&&Y.push.apply(Y,_.Bt(this.delegate.localImageEntities));return[].concat(_.Bt(new Set(Y)))};var GhQ=function(){pL.apply(this,arguments)};
_.P(GhQ,pL);GhQ.prototype.getAssociations=function(){var Y=[];this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.localImageEntities&&Y.push.apply(Y,_.Bt(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bt(new Set(Y)))};var TPK=function(){pL.apply(this,arguments)};
_.P(TPK,pL);TPK.prototype.getAssociations=function(){return[]};var JSU=function(){pL.apply(this,arguments)};
_.P(JSU,pL);JSU.prototype.getAssociations=function(){var Y=[];this.delegate.fakeChildren&&Y.push.apply(Y,_.Bt(this.delegate.fakeChildren));return[].concat(_.Bt(new Set(Y)))};var u6I=function(){pL.apply(this,arguments)};
_.P(u6I,pL);u6I.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&Y.push(this.delegate.offlineVideoPolicy);return[].concat(_.Bt(new Set(Y)))};var YTK=function(){pL.apply(this,arguments)};
_.P(YTK,pL);YTK.prototype.getAssociations=function(){return[]};var bPI=function(){pL.apply(this,arguments)};
_.P(bPI,pL);bPI.prototype.getAssociations=function(){var Y=[];this.delegate.channelOwner&&Y.push(this.delegate.channelOwner);this.delegate.videos&&Y.push.apply(Y,_.Bt(this.delegate.videos));this.delegate.collaboratorChannels&&Y.push.apply(Y,_.Bt(this.delegate.collaboratorChannels));this.delegate.downloadState&&Y.push(this.delegate.downloadState);this.delegate.refresh&&Y.push(this.delegate.refresh);return[].concat(_.Bt(new Set(Y)))};var w2d=function(){pL.apply(this,arguments)};
_.P(w2d,pL);w2d.prototype.getAssociations=function(){var Y=[];this.delegate.video&&Y.push(this.delegate.video);this.delegate.channelContributor&&Y.push(this.delegate.channelContributor);return[].concat(_.Bt(new Set(Y)))};var VBr=function(){e7.apply(this,arguments)};
_.P(VBr,e7);VBr.prototype.getAssociations=function(){var Y=[];this.delegate.recommendedVideoMetadata&&Y.push.apply(Y,_.Bt((new HPj(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Bt(new Set(Y)))};
var HPj=function(){e7.apply(this,arguments)};
_.P(HPj,e7);HPj.prototype.getAssociations=function(){var Y=[];this.delegate.localImageEntities&&Y.push.apply(Y,_.Bt(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bt(new Set(Y)))};var gpt=function(){e7.apply(this,arguments)};
_.P(gpt,e7);gpt.prototype.getAssociations=function(){var Y=[];this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);return[].concat(_.Bt(new Set(Y)))};var f1I=function(){pL.apply(this,arguments)};
_.P(f1I,pL);f1I.prototype.getAssociations=function(){var Y=[];this.delegate.owner&&Y.push(this.delegate.owner);this.delegate.downloadState&&Y.push(this.delegate.downloadState);this.delegate.userState&&Y.push.apply(Y,_.Bt((new gpt(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&Y.push.apply(Y,_.Bt((new VBr(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Bt(new Set(Y)))};var Ny5=function(){pL.apply(this,arguments)};
_.P(Ny5,pL);Ny5.prototype.getAssociations=function(){var Y=[];this.delegate.userChannelDetails&&Y.push(this.delegate.userChannelDetails);return[].concat(_.Bt(new Set(Y)))};var Ep8=function(){pL.apply(this,arguments)};
_.P(Ep8,pL);Ep8.prototype.getAssociations=function(){var Y=[];this.delegate.channelOwner&&Y.push(this.delegate.channelOwner);this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&Y.push.apply(Y,_.Bt(this.delegate.localImageEntities));this.delegate.downloadStatus&&Y.push(this.delegate.downloadStatus);return[].concat(_.Bt(new Set(Y)))};var V7G=new _.A("downloadsPageSmartDownloadsOptInBannerParams");var cuC=function(){pL.apply(this,arguments)};
_.P(cuC,pL);cuC.prototype.getAssociations=function(){return[]};var Uvd=function(){pL.apply(this,arguments)};
_.P(Uvd,pL);Uvd.prototype.getAssociations=function(){return[]};var X2U=function(){pL.apply(this,arguments)};
_.P(X2U,pL);X2U.prototype.getAssociations=function(){return[]};var Dv_=function(){pL.apply(this,arguments)};
_.P(Dv_,pL);Dv_.prototype.getAssociations=function(){return[]};var mvr=function(){pL.apply(this,arguments)};
_.P(mvr,pL);mvr.prototype.getAssociations=function(){return[]};var opK=function(){pL.apply(this,arguments)};
_.P(opK,pL);opK.prototype.getAssociations=function(){return[]};var I1_=function(){pL.apply(this,arguments)};
_.P(I1_,pL);I1_.prototype.getAssociations=function(){return[]};var kV$=function(){pL.apply(this,arguments)};
_.P(kV$,pL);kV$.prototype.getAssociations=function(){return[]};var l1d=function(){pL.apply(this,arguments)};
_.P(l1d,pL);l1d.prototype.getAssociations=function(){return[]};_.Fz=new _.A("dislikeButtonViewModel");_.dK=new _.A("likeButtonViewModel");var hkd=new _.A("videoSummaryContentViewModel");var xvK=new _.A("videoSummaryParagraphViewModel");var qTI=new _.A("changeTimelyActionVisibilityCommand");var sBC=new _.A("hideEngagementPanelEndpoint");var QBU=new _.A("refreshPanelEndpoint");var vpr=new _.A("scrollToSectionEndpoint");var PYK=new _.A("seekToVideoTimestampCommand");_.SZ=new _.A("showEngagementPanelEndpoint");var ZPr=new _.A("showTransientPlayerScrimOverlayCommand");var By_=new _.A("toggleEngagementPanelCommand");_.npd=new _.A("createBroadcastCommand");var MBt=new _.A("metadataUpdateCommand");var eko=function(){pL.apply(this,arguments)};
_.P(eko,pL);eko.prototype.getAssociations=function(){return[]};var p2r=function(){pL.apply(this,arguments)};
_.P(p2r,pL);p2r.prototype.getAssociations=function(){return[]};var OPd=function(){pL.apply(this,arguments)};
_.P(OPd,pL);OPd.prototype.getAssociations=function(){return[]};_.tBU=new _.A("merchandiseShelfRenderer");var Rk9=new _.A("gridMovieRenderer");_.dvQ=new _.A("movieRenderer");var FeC=function(){pL.apply(this,arguments)};
_.P(FeC,pL);FeC.prototype.getAssociations=function(){var Y=[];this.delegate.trackDownloadMetadatas&&Y.push.apply(Y,_.Bt(this.delegate.trackDownloadMetadatas));return[].concat(_.Bt(new Set(Y)))};var LeK=function(){pL.apply(this,arguments)};
_.P(LeK,pL);
LeK.prototype.getAssociations=function(){var Y=[];this.delegate.downloadedTracks&&Y.push.apply(Y,_.Bt(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&Y.push.apply(Y,_.Bt(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&Y.push.apply(Y,_.Bt(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&Y.push.apply(Y,_.Bt(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&Y.push.apply(Y,_.Bt(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
Y.push.apply(Y,_.Bt(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&Y.push.apply(Y,_.Bt(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&Y.push.apply(Y,_.Bt(this.delegate.metadataOnlyTracks));return[].concat(_.Bt(new Set(Y)))};var STU=function(){pL.apply(this,arguments)};
_.P(STU,pL);STU.prototype.getAssociations=function(){var Y=[];this.delegate.trackDownloadMetadatas&&Y.push.apply(Y,_.Bt(this.delegate.trackDownloadMetadatas));return[].concat(_.Bt(new Set(Y)))};var a1K=function(){pL.apply(this,arguments)};
_.P(a1K,pL);a1K.prototype.getAssociations=function(){var Y=[];this.delegate.playbackData&&Y.push(this.delegate.playbackData);this.delegate.localImageEntities&&Y.push.apply(Y,_.Bt(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bt(new Set(Y)))};var ruQ=function(){pL.apply(this,arguments)};
_.P(ruQ,pL);
ruQ.prototype.getAssociations=function(){var Y=[];this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&Y.push.apply(Y,_.Bt(this.delegate.primaryArtists));this.delegate.details&&Y.push(this.delegate.details);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.tracks&&Y.push.apply(Y,_.Bt(this.delegate.tracks));this.delegate.share&&Y.push(this.delegate.share);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.refresh&&
Y.push(this.delegate.refresh);return[].concat(_.Bt(new Set(Y)))};
var zkK=function(){pL.apply(this,arguments)};
_.P(zkK,pL);zkK.prototype.getAssociations=function(){var Y=[];this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);this.delegate.tracks&&Y.push.apply(Y,_.Bt(this.delegate.tracks));return[].concat(_.Bt(new Set(Y)))};
var We5=function(){pL.apply(this,arguments)};
_.P(We5,pL);We5.prototype.getAssociations=function(){var Y=[];this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);return[].concat(_.Bt(new Set(Y)))};var Kek=function(){pL.apply(this,arguments)};
_.P(Kek,pL);Kek.prototype.getAssociations=function(){var Y=[];this.delegate.details&&Y.push(this.delegate.details);this.delegate.userDetails&&Y.push(this.delegate.userDetails);return[].concat(_.Bt(new Set(Y)))};
var iPI=function(){pL.apply(this,arguments)};
_.P(iPI,pL);iPI.prototype.getAssociations=function(){var Y=[];this.delegate.parentArtist&&Y.push(this.delegate.parentArtist);return[].concat(_.Bt(new Set(Y)))};
var AuI=function(){pL.apply(this,arguments)};
_.P(AuI,pL);AuI.prototype.getAssociations=function(){var Y=[];this.delegate.parentArtist&&Y.push(this.delegate.parentArtist);return[].concat(_.Bt(new Set(Y)))};var CY_=function(){pL.apply(this,arguments)};
_.P(CY_,pL);CY_.prototype.getAssociations=function(){return[]};var yu_=function(){pL.apply(this,arguments)};
_.P(yu_,pL);yu_.prototype.getAssociations=function(){return[]};var $v5=function(){pL.apply(this,arguments)};
_.P($v5,pL);
$v5.prototype.getAssociations=function(){var Y=[];this.delegate.tracks&&Y.push.apply(Y,_.Bt(this.delegate.tracks));this.delegate.refresh&&Y.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&Y.push(this.delegate.details);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&Y.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.entryCollection&&
Y.push(this.delegate.entryCollection);this.delegate.share&&Y.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&Y.push.apply(Y,_.Bt((new jB_(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Bt(new Set(Y)))};
var jB_=function(){e7.apply(this,arguments)};
_.P(jB_,e7);jB_.prototype.getAssociations=function(){var Y=[];this.delegate.creatorEntity&&Y.push(this.delegate.creatorEntity);return[].concat(_.Bt(new Set(Y)))};var GVQ=function(){pL.apply(this,arguments)};
_.P(GVQ,pL);GVQ.prototype.getAssociations=function(){return[]};var Tyt=function(){pL.apply(this,arguments)};
_.P(Tyt,pL);
Tyt.prototype.getAssociations=function(){var Y=[];this.delegate.musicLibraryStatusEntity&&Y.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&Y.push.apply(Y,_.Bt(this.delegate.artists));this.delegate.audioModeVersion&&Y.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&Y.push(this.delegate.videoModeVersion);this.delegate.userDetails&&Y.push(this.delegate.userDetails);this.delegate.details&&Y.push(this.delegate.details);this.delegate.albumRelease&&Y.push(this.delegate.albumRelease);this.delegate.share&&
Y.push(this.delegate.share);this.delegate.libraryEdit&&Y.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&Y.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&Y.push(this.delegate.playbackPosition);this.delegate.lyrics&&Y.push(this.delegate.lyrics);return[].concat(_.Bt(new Set(Y)))};
var JuC=function(){pL.apply(this,arguments)};
_.P(JuC,pL);JuC.prototype.getAssociations=function(){var Y=[];this.delegate.parentTrack&&Y.push(this.delegate.parentTrack);return[].concat(_.Bt(new Set(Y)))};
var uaK=function(){pL.apply(this,arguments)};
_.P(uaK,pL);uaK.prototype.getAssociations=function(){var Y=[];this.delegate.parentTrack&&Y.push(this.delegate.parentTrack);return[].concat(_.Bt(new Set(Y)))};var gp=new _.A("musicResponsiveListItemRenderer");var MeL=new _.A("addToPlaylistEndpoint");var Ygr=new _.A("captionPickerEndpoint");var b9d=new _.A("suggestStats");var wx9=new _.A("backstageImageUploadEndpoint");var Vf_=new _.A("createBackstagePostDialogEndpoint");_.H9k=new _.A("createCommentReplyDialogEndpoint");_.gWo=new _.A("updateCommentDialogEndpoint");_.f4d=new _.A("updateCommentReplyDialogEndpoint");var Nf_=new _.A("menuEndpoint");var qju=new _.A("modalEndpoint");var EW9=new _.A("playlistEditorEndpoint");var ct9=new _.A("copyTextEndpoint");var UbI,Xxo;UbI=new _.A("shareEndpoint");Xxo=new _.A("shareEntityEndpoint");_.Dbr=new _.A("shareEntityServiceEndpoint");_.zcq=new _.A("userFeedbackEndpoint");_.TG=new _.A("watchEndpoint");var HnB=new _.A("watchPlaylistEndpoint");var mb8=new _.A("addUpcomingEventReminderEndpoint");_.S7=new _.A("getCommentsFromInboxCommand");var oWd=new _.A("notificationOptOutEndpoint");var I4I=new _.A("recordNotificationInteractionsEndpoint");var kSr=new _.A("removeUpcomingEventReminderEndpoint");var Boa=new _.A("getDownloadActionCommand");_.l4r=new _.A("offlineOrchestrationActionCommand");var hAQ=function(){pL.apply(this,arguments)};
_.P(hAQ,pL);hAQ.prototype.getAssociations=function(){return[]};var xbr=function(){pL.apply(this,arguments)};
_.P(xbr,pL);xbr.prototype.getAssociations=function(){return[]};var qgt=function(){pL.apply(this,arguments)};
_.P(qgt,pL);qgt.prototype.getAssociations=function(){return[]};var s5K=function(){pL.apply(this,arguments)};
_.P(s5K,pL);s5K.prototype.getAssociations=function(){return[]};var Q5U=function(){pL.apply(this,arguments)};
_.P(Q5U,pL);Q5U.prototype.getAssociations=function(){var Y=[];this.delegate.transfer&&Y.push(this.delegate.transfer);this.delegate.adsPlaybackData&&Y.push.apply(Y,_.Bt(this.delegate.adsPlaybackData));this.delegate.drmLicense&&Y.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&Y.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&Y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bt(new Set(Y)))};var vW5=function(){pL.apply(this,arguments)};
_.P(vW5,pL);vW5.prototype.getAssociations=function(){return[]};var PxI=function(){pL.apply(this,arguments)};
_.P(PxI,pL);PxI.prototype.getAssociations=function(){var Y=[];this.delegate.offlineVideoStreams&&Y.push.apply(Y,_.Bt(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&Y.push.apply(Y,_.Bt(this.delegate.captionTrack));return[].concat(_.Bt(new Set(Y)))};var Z9I=function(){pL.apply(this,arguments)};
_.P(Z9I,pL);Z9I.prototype.getAssociations=function(){return[]};var Bfd=new _.A("showMoreDrawerCommand");var nWd=new _.A("updateEngagementPanelContentCommand");var MfQ=new _.A("getPdgBuyFlowCommand");var eA9=new _.A("liveChatPurchaseMessageEndpoint");var pxQ=new _.A("openSuperStickerBuyFlowCommand");var O9r=new _.A("updatePdgFeatureEnablementCommand");var tfQ=function(){pL.apply(this,arguments)};
_.P(tfQ,pL);tfQ.prototype.getAssociations=function(){return[]};var RAI=function(){pL.apply(this,arguments)};
_.P(RAI,pL);RAI.prototype.getAssociations=function(){return[]};_.dbI=new _.A("pdgCommentChipRenderer");_.F08=new _.A("permissionRoleBottomBarRenderer");_.L0_=new _.A("updatePermissionRoleCommand");var Sgd=new _.A("prefetchWatchCommand");var a4r=new _.A("updatePlayerErrorMessageCommand");var xKt=new _.A("toggleCaptionsVisibilityCommand");_.rtK=new _.A("quickActionsViewModel");var zAd=new _.A("playerResponse");var W05=new _.A("playlistRenderer");_.K0U=new _.A("playlistVideoListRenderer");_.aU=new _.A("playlistEditEndpoint");var i9C=new _.A("createImagePollCommand");var At8=new _.A("createQuizCommand");var Cx8=new _.A("quizRenderer");var yt$=new _.A("uploadedVideoRenderer");var $b9=new _.A("decorateMessageEndpoint");var j5Q=new _.A("lpOfferCardOptionViewModel");var GSt=new _.A("sfvAudioItemPlaybackCommand");var Tfk=function(){pL.apply(this,arguments)};
_.P(Tfk,pL);Tfk.prototype.getAssociations=function(){return[]};_.rY=new _.A("reelNonVideoContentEndpoint");_.BH=new _.A("reelWatchEndpoint");_.zk=new _.A("reelItemRenderer");_.Jtr=new _.A("reelMetapanelViewModel");_.u_o=new _.A("reelNonVideoContentRenderer");_.YGd=new _.A("reelPlayerOverlayRenderer");var by9=new _.A("shortsLockupViewModel");var wqC=new _.A("sponsorButtonViewModel");var Vw8=new _.A("reelItemWatchResponse");var HyK=new _.A("textBadgeRenderer");_.Wa=new _.A("buttonRenderer");_.KL=new _.A("toggleButtonRenderer");var ZWG=new _.A("switchButtonViewModel");_.g8K=new _.A("confirmDialogRenderer");var fW8;fW8=new _.A("menuRenderer");_.NAd=new _.A("menuFlexibleItemRenderer");var E8j=new _.A("pollRenderer");_.co9=new _.A("backgroundPromoRenderer");var Xqd;_.Uwj=new _.A("chipCloudRenderer");Xqd=new _.A("chipCloudChipRenderer");var DwK=new _.A("dropdownRenderer");var mwU=new _.A("gridVideoRenderer");_.o8C=new _.A("itemSectionRenderer");_.IW5=new _.A("messageRenderer");var kPU=new _.A("sortFilterHeaderRenderer");_.iG=new _.A("videoRenderer");var lWo=new _.A("resolveUrlCommandMetadata");var hiU=function(){pL.apply(this,arguments)};
_.P(hiU,pL);hiU.prototype.getAssociations=function(){return[]};_.xwd=new _.A("getAnswerCommand");_.vH=new _.A("searchEndpoint");var qGK=new _.A("genAiRichTextViewModel");var Zvu=new _.A("overviewAnswerViewModel");var sO8=new _.A("addToPlaylistServiceEndpoint");var QOC=new _.A("clearSearchHistoryEndpoint");var v89=new _.A("clearWatchHistoryEndpoint");var P6I=new _.A("webSerializedServiceEndpointExtension");_.ZyI=new _.A("createCommentEndpoint");var BAK=new _.A("createCommentReplyEndpoint");var n8d=new _.A("performCommentActionEndpoint");var Mw$=new _.A("updateCommentEndpoint");var eio=new _.A("updateCommentReplyEndpoint");_.AI=new _.A("createPlaylistServiceEndpoint");var pqo=new _.A("deletePlaylistEndpoint");var Oy9=new _.A("deleteVideoEndpoint");var nRa=new _.A("getReportFormEndpoint");var tw8=new _.A("modifyChannelNotificationPreferenceEndpoint");var KTr;_.lX=new _.A("offlinePlaylistEndpoint");KTr={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 iwG;_.kh=new _.A("offlineVideoEndpoint");iwG={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 RiK=new _.A("pingingEndpoint");_.ay9=new _.A("selectActiveIdentityEndpoint");var rxd=new _.A("setSettingEndpoint");var E4K=new _.A("undoFeedbackEndpoint");var zz_=new _.A("unsubscribeEndpoint");_.Wyr=new _.A("updatedMetadataEndpoint");var KyU=function(){pL.apply(this,arguments)};
_.P(KyU,pL);KyU.prototype.getAssociations=function(){return[]};_.iiC=new _.A("updateLocalAppSettingCommand");var AxK=new _.A("saveImageToDeviceEndpoint");var CMC=new _.A("shareImageCommand");var yx$=new _.A("sharingProviderDataCommand");var $Mj=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P($Mj,_.SQ);var j$C=[0,_.uL,-1];$Mj.prototype.JSC$10315_serializeBinary=b3q(j$C);var GQj=_.YH(j$C);var TLt=new _.A("userMentionSuggestionRenderer");var Jxj=new _.A("liveChatTunnelCommand");var uLd=new _.A("showSponsorshipsGiftOfferDialogCommand");var YwQ=new _.A("sponsorshipsScrollableShelfViewModel");var bLI=new _.A("updateUpcomingEventReminderButtonStateCommand");var waI=new _.A("upcomingEventReminderButtonStateRenderer");var V7I=new _.A("subscribeEndpoint");var HLt=new _.A("registerTasksCommand");var gUU=new _.A("hideSnackbarCommand");var fdj=new _.A("showDialogCommand");_.sH=new _.A("showSheetCommand");var NYd=new _.A("showSnackbarCommand");var EUI=function(){pL.apply(this,arguments)};
_.P(EUI,pL);EUI.prototype.getAssociations=function(){return[]};var cIr=function(){pL.apply(this,arguments)};
_.P(cIr,pL);cIr.prototype.getAssociations=function(){return[]};_.GI=new _.A("avatarViewModel");var UmC=new _.A("badgeViewModel");_.Bv=new _.A("buttonViewModel");_.CL=new _.A("chipViewModel");var F9L=new _.A("collectionThumbnailViewModel");var XaI=new _.A("contentPreviewImageViewModel");var Dmk=new _.A("decoratedAvatarViewModel");var G4G=new _.A("downloadButtonViewModel");_.nTM=new _.A("engagementBarViewModel");_.mmK=new _.A("imageBannerViewModel");var MDv=new _.A("lockupContentMetadataRowExtension");var oUr=new _.A("lockupMetadataViewModel");_.Idd=new _.A("lockupViewModel");var kkt=new _.A("avatarStackViewModel");var ldj=function(){pL.apply(this,arguments)};
_.P(ldj,pL);ldj.prototype.getAssociations=function(){return[]};_.hxt=new _.A("pageHeaderViewModel");var xmd=new _.A("snackbarViewModel");var qwo=new _.A("thumbnailHoverOverlayToggleActionsViewModel");_.ns=new _.A("toggleButtonViewModel");var sUI=function(){pL.apply(this,arguments)};
_.P(sUI,pL);sUI.prototype.getAssociations=function(){return[]};_.M8M=new _.A("votingViewModel");var QU9=new _.A("sectionHeaderViewModel");var vU5=new _.A("notifyDropdownOptionSelectedCommand");var FY6=new _.A("listViewModel");_.Q4=new _.A("listItemViewModel");var PGC=new _.A("dialogHeaderViewModel");var ZLU=function(){pL.apply(this,arguments)};
_.P(ZLU,pL);ZLU.prototype.getAssociations=function(){return[]};var BYQ=function(){pL.apply(this,arguments)};
_.P(BYQ,pL);BYQ.prototype.getAssociations=function(){return[]};var nUt=function(){pL.apply(this,arguments)};
_.P(nUt,pL);nUt.prototype.getAssociations=function(){return[]};_.M7o=new _.A("transcriptSubmitCaptionCorrectionCommand");var exC=function(){pL.apply(this,arguments)};
_.P(exC,pL);exC.prototype.getAssociations=function(){return[]};var Eaa=new _.A("unpluggedStringRunImage");var pa8=new _.A("tabViewModel");var OLo=new _.A("tabbedViewModel");var t7I=function(){pL.apply(this,arguments)};
_.P(t7I,pL);t7I.prototype.getAssociations=function(){return[]};_.Rxr=new _.A("updateDescriptionAction");var dm$=new _.A("updateToggleButtonTextAction");_.Fs$=new _.A("autoplaySwitchButtonRenderer");var WK;_.Ls$=new _.A("multiMarkersPlayerBarRenderer");WK=new _.A("chapterRenderer");var Sw$=new _.A("heatMarkerRenderer");var qOr=new _.A("heatmapRenderer");var ad5=new _.A("smartSkipPlayerScrimOverlayRenderer");var rI5=new _.A("timedMarkerDecorationRenderer");var IPb=new _.A("postWebToNativeMessageCommand");var zxI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(zxI,_.SQ);var WsI=_.uj(zxI,[0,_.uL,-2]);var Ksj=new _.A("whitelistEditEndpoint");var iLC=new _.A("clearUrlParamCommand");var AI8=new _.A("commerceActionCommand");_.CGj=new _.A("getPaymentInstrumentsParamsCommand");var yIU=new _.A("getPaymentsClientTokenCommand");var $m5=new _.A("googlePaymentBillingCommand");var jUK=new _.A("googlePaymentPurchaseManagerCommand");_.GkQ=new _.A("logGtmCommand");var TY_=new _.A("updateCardItemOnClickCommand");_.JIj=new _.A("ypcPauseSubscriptionCommand");_.uK_=new _.A("ypcResumeSubscriptionCommand");var YLr=function(){pL.apply(this,arguments)};
_.P(YLr,pL);YLr.prototype.getAssociations=function(){return[]};var bp8=function(){pL.apply(this,arguments)};
_.P(bp8,pL);bp8.prototype.getAssociations=function(){return[]};var wBC=function(){pL.apply(this,arguments)};
_.P(wBC,pL);wBC.prototype.getAssociations=function(){return[]};var VFI=function(){pL.apply(this,arguments)};
_.P(VFI,pL);VFI.prototype.getAssociations=function(){return[]};var Hp_=function(){pL.apply(this,arguments)};
_.P(Hp_,pL);Hp_.prototype.getAssociations=function(){return[]};var ING=new _.A("ypcOffersEndpoint");var gV$=new _.A("cardItemRenderer"),fCt=new _.A("cardItemTextRenderer");var Nwr=new _.A("commerceCartItemQuantityPickerRenderer");var EVj=new _.A("linkCardRenderer");var Eze=new _.A("quantityIncrementerButtonViewModel");var c4K=new _.A("quantityIncrementerViewModel");var UP9=new _.A("themedImageViewModel");_.XBt=new _.A("ypcCancelRecurrenceEndpoint");var DP5=new _.A("ypcCompleteTransactionEndpoint");_.mPd=new _.A("ypcGetCartEndpoint");_.cT=new _.A("ypcGetOffersEndpoint");_.yQ=new _.A("ypcHandleTransactionEndpoint");var oVd=new _.A("ypcLogWalletAnalyticDataEndpoint");_.IC$=new _.A("ypcRedeemCodeEndpoint");var kFt=new _.A("ypcUpdateFopEndpoint");ca(Ew(1),fL(4));LOL((new MessageChannel).port2);var lCK=function(){this.register=new Map},RLa=function(Y,b,w){Y=Y+"_"+b;
$U.register.has(Y)?w=$U.register.get(Y):(w=w(),$U.register.set(Y,w));return w},hJo=function(Y){Y=_.N(Y.register.values());
for(var b=Y.next();!b.done;b=Y.next())_.hJ(b.value,"ABORTED")};
lCK.prototype.clear=function(){hJo(this);this.register.clear()};
var $U=new lCK;var o5M=Date.now().toString();var khG,xPd=_.wB.ytLoggingDocDocumentNonce_;xPd||(xPd=OD(16),_.wG("ytLoggingDocDocumentNonce_",xPd));khG=xPd;var PzG={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 qLt;qLt=1;_.tw=function(Y){this.veData=Y};
_.nA=function(Y){return new _.tw({trackingParams:Y})};
_.tj=function(Y,b,w,V,H,f){var E=qLt++;return new _.tw({veType:Y,veCounter:E,elementIndex:w,dataElement:b,youtubeData:V,jspbYoutubeData:H,loggingDirectives:f})};
_.g=_.tw.prototype;
_.g.getAsJson=function(){var Y={};this.veData.trackingParams!==void 0?Y.trackingParams=this.veData.trackingParams:(Y.veType=this.veData.veType,this.veData.veCounter!==void 0&&(Y.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(Y.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(Y.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(Y.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(Y.isCounterfactual=!0);
return Y};
_.g.getAsJspb=function(){var Y=new Gr5;this.veData.trackingParams!==void 0?Y.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.KE(Y,2,this.veData.veType),this.veData.veCounter!==void 0&&_.KE(Y,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.KE(Y,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.E2(Y,5,!0));if(this.veData.dataElement!==void 0){var b=this.veData.dataElement.getAsJspb();_.HN(Y,7,b)}this.veData.youtubeData!==void 0&&_.HN(Y,8,this.veData.jspbYoutubeData);
return Y};
_.g.toString=function(){return JSON.stringify(this.getAsJson())};
_.g.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.g.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.wG("yt_logging_screen.getRootVeType",s_b);_.wG("yt_logging_screen.getCurrentCsn",_.dO);_.wG("yt_logging_screen.getCttAuthInfo",FA);_.wG("yt_logging_screen.setCurrentScreen",_.LM);var sC$=function(){this.events=new Map},QCQ=function(Y){var b=[];
Y=_.N(Y.events.values());for(var w=Y.next();!w.done;w=Y.next())b.push(w.value);return b};
sC$.prototype.clear=function(){this.events.clear()};var Pyk=function(){this.logTransport=new vVd;this.loggedEventRegister=new sC$;this.unloggedEventRegister=new sC$;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10372_flushTimer=new _.gO(this.flushInterval);this.JSC$10372_flushTimer.listen("tick",this.flush,!1,this)};
Pyk.prototype.flush=function(){if(this.eventsCount){var Y={loggedEvents:QCQ(this.loggedEventRegister),unloggedEvents:QCQ(this.unloggedEventRegister)};if(_.q("export_player_version_to_ytconfig")){var b;(b=_.zO("PLAYER_CLIENT_VERSION"))?(b=b.split("-")[0].replace(/\./g,""),b=isNaN(Number(b))?"0":b):b="";var w=_.zO("PLAYER_CLIENT_VERSION");if(w){w=w.split("-");var V="";w.length>1&&(V=w[w.length-1]);w=mku(V.startsWith("canary_experiment")?"canary":V.startsWith("canary_control")?"control":"none")}else w=
"CLIENT_CANARY_STATE_UNKNOWN";Y.dimensions={playerClientVersion:b,playerCanaryState:w}}this.logTransport.flush(Y);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10372_flushTimer.enabled&&this.JSC$10372_flushTimer.stop()}};
var Zpo=function(Y){j7==null&&(j7=new Pyk);var b=j7;var w=b.loggedEventRegister;Y.dimensions=Y.dimensions||{};Y.dimensions.csn=_.dO()||"";var V=n5v(Y.dimensions).join(";");if(Y.records!=null)if(w.events.has(V)){var H;(H=w.events.get(V).records)==null||H.push.apply(H,_.Bt(Y.records))}else w.events.set(V,Y);b.JSC$10372_flushTimer.enabled||b.JSC$10372_flushTimer.start();b.eventsCount++;b.eventsCount>=100&&b.flush()};var vVd=function(){};
vVd.prototype.flush=function(Y,b){_.q("enable_client_sli_logging")&&_.RY("sliEventBatch",Y,{sendIsolatedPayload:!!b})};var j7;var nVU;nVU=function(Y){var b=Bwk;Y=Y===void 0?{}:Y;b=b.name;var w=tOg("SUCCESS");Zpo({dimensions:Y,records:[{name:b,state:"SLI_STATE_END",status:w}]})};
_.dka=function(Y,b,w,V){this.name=Y;this.sliId=b;this.timeoutMs=w;this.statusOnTimeout=V;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.dka.prototype.getId=function(){return this.sliId};
_.lf=function(Y,b){b=b===void 0?{}:b;Y.ongoing||(Y.ongoing=!0,Y.dimensions=b,Y.logSliId=P8t(),Zpo({dimensions:Y.dimensions,records:[{name:Y.name,state:"SLI_STATE_START",sliId:Y.logSliId}]}),Y.timeoutMs>0&&(Y.timeoutHandle=setTimeout(function(){_.hJ(Y,Y.statusOnTimeout)},Y.timeoutMs)))};
_.hJ=function(Y,b){Y.ongoing&&(Y.timeoutMs>0&&clearTimeout(Y.timeoutHandle),Y.ongoing=!1,b={dimensions:Y.dimensions,records:[{name:Y.name,status:tOg(b),state:"SLI_STATE_END",sliId:Y.logSliId}]},$U.register.delete(Y.name+"_"+Y.sliId),Zpo(b))};var Bwk=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var MFC=function(){pL.apply(this,arguments)};
_.P(MFC,pL);MFC.prototype.getAssociations=function(){return[]};var $uu=new _.A("highlightTextDecoratorColorMapExtension");var Cba=new _.A("styleRunColorMapExtension");var WVB=_.wM(["data-"]),ASI={};var ySu={};var Gk=function(Y){this.wrappedPromise_=Y===void 0?null:Y;this.state_=0;this.JSC$10404_value_=null};
Gk.prototype.then=function(Y,b,w){return this.wrappedPromise_?this.wrappedPromise_.then(Y,b,w):this.state_===1&&Y?(Y=Y.call(w,this.JSC$10404_value_))&&typeof Y.then==="function"?Y:_.Tk(Y):this.state_===2&&b?(Y=b.call(w,this.JSC$10404_value_))&&typeof Y.then==="function"?Y:_.eJ$(Y):this};
Gk.prototype.getValue=function(){return this.JSC$10404_value_};
Gk.prototype.isRejected=function(){return this.state_==2};
Cjd(Gk);_.eJ$=function(Y){var b=new Gk;Y=Y===void 0?null:Y;b.state_=2;b.JSC$10404_value_=Y===void 0?null:Y;return b};
_.Tk=function(Y){var b=new Gk;Y=Y===void 0?null:Y;b.state_=1;b.JSC$10404_value_=Y===void 0?null:Y;return b};var Epq="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var pBC=["load","abort","error"],JI=function(Y,b,w){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10424_maxAspectRatio_=Y;this.disableAnimation_=b===void 0?!1:b;this.disableExifRotation_=w===void 0?!1:w;this.JSC$10424_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10424_reject_=this.resolve_=null};
JI.prototype.transform=function(Y){var b=this;this.mime_=Y.type;uz(A15(Y),this.dataUrlRead_,this.readError_,this);uz(izI(Y.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(w,V){b.resolve_=w;b.JSC$10424_reject_=V})};
JI.prototype.dataUrlRead_=function(Y){this.dataUrl_=Y;this.angle_!=null&&OpQ(this)};
JI.prototype.exifRead_=function(Y){if(this.disableExifRotation_)this.angle_=0;else{a:if(Y=new DataView(Y),Y.byteLength<2||Y.getUint16(0)!==65496)Y=-2;else{for(var b=2,w=Y.byteLength;b<w;){var V=Y.getUint16(b),H=Y.getUint16(b+2);if(V===65505){b+=4;V=Y.getUint32(b);H=Y.getUint16(b+4);if(V!==1165519206||H!==0)break;b+=6;V=Y.getUint16(b)===18761;b+=Y.getUint32(b+4,V);H=Y.getUint16(b,V);b+=2;for(var f=0;f<H;f++){if(Y.getUint16(b,V)===274){b+=8;Y=Y.getUint16(b,V);break a}b+=12}}else if(V>>8!==255)break;
else b+=H+2}Y=-1}switch(Y){case 8:this.angle_=270;break;case 3:this.angle_=180;break;case 6:this.angle_=90;break;default:this.angle_=0}}this.dataUrl_!=null&&OpQ(this)};
JI.prototype.readError_=function(){this.JSC$10424_reject_()};
var OpQ=function(Y){ZR(Y.JSC$10424_image_,pBC,Y.completeTransform_,!1,Y);Y.JSC$10424_image_.src=_.PN(Y.dataUrl_).toString();Y.JSC$10424_image_.src!=vN.toString()&&Y.JSC$10424_image_.src.substr(0,11)==="data:image/"||Y.JSC$10424_reject_()};
JI.prototype.completeTransform_=function(){if(this.JSC$10424_image_.src!=vN.toString()){var Y=_.PN(this.dataUrl_),b=this.JSC$10424_image_.naturalHeight?this.JSC$10424_image_.naturalWidth/this.JSC$10424_image_.naturalHeight:null;this.invalidAspectRatio=b>this.JSC$10424_maxAspectRatio_||b<1/this.JSC$10424_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var w=this.JSC$10424_image_.naturalWidth,V=this.JSC$10424_image_.naturalHeight,H=b=0,f=this.JSC$10424_image_.naturalHeight?this.JSC$10424_image_.naturalWidth/
this.JSC$10424_image_.naturalHeight:null;f>this.JSC$10424_maxAspectRatio_?(w=this.JSC$10424_maxAspectRatio_*V,b=(w-this.JSC$10424_image_.naturalWidth)/2,this.cropped=!0):f<1/this.JSC$10424_maxAspectRatio_?(V=this.JSC$10424_maxAspectRatio_*w,H=(V-this.JSC$10424_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)f=w,w=V,V=f,f=b,b=H,H=f;switch(this.angle_){case 90:H-=w;break;case 180:b-=w;H-=V;break;case 270:b-=
V}this.cropped||this.angle_%360!==0?(Y=document.createElement("canvas"),Y.width=w||1,Y.height=V||1,this.JSC$10424_image_.naturalWidth&&this.JSC$10424_image_.naturalHeight&&(w=Y.getContext("2d"),w.rotate(Math.PI/180*this.angle_),w.drawImage(this.JSC$10424_image_,b,H,this.JSC$10424_image_.naturalWidth,this.JSC$10424_image_.naturalHeight)),this.transformedData=_.PN(Y.toDataURL(this.mime_))):this.transformedData=Y}else this.transformedData=Y;this.resolve_(this)}};var uG=function(Y,b){_.Q2.call(this,Y);this.value=b};
_.P(uG,_.Q2);
var YV=function(Y,b,w,V,H,f,E){E=E===void 0?!1:E;_.n1.call(this);var U=this;this.JSC$10429_url_=Y;this.channelId_=b;this.maxFileSizeMb_=w;this.JSC$10429_maxAspectRatio_=V;this.dropZoneEl_=H;this.rejectInvalidAspectRatio_=E;this.selectButtonEl_=f;this.JSC$10429_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new lG(this.dropZoneEl_);this.selectOverlay_=new hI(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10429_image_=this.transfer_=null;this.handler_=new _.fM(this);_.os(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(f,"click",function(){U.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.P(YV,_.n1);YV.prototype.disposeInternal=function(){for(var Y=this.selectButtonEl_.nextSibling;Y&&Y.parentNode&&Y.tagName=="INPUT";)Y.parentNode.removeChild(Y),Y=this.selectButtonEl_.nextSibling;this.cancel();_.n1.prototype.disposeInternal.call(this)};
YV.prototype.uploadPromise=function(){if(this.JSC$10429_image_==null)return null;this.uploadPromise_||tFC(this);return this.uploadPromise_};
YV.prototype.cancel=function(){RJk(this);this.JSC$10429_image_=null};
var RJk=function(Y){Y.transfer_&&Y.transfer_.cancel();Y.transfer_=null;Y.uploadPromise_=null;Y.resolve_=null;Y.JSC$10429_reject_=null},tFC=function(Y){RJk(Y);
Y.transfer_=_.Ei9(Y.JSC$10429_url_,{"X-YouTube-ChannelId":Y.channelId_},Y.JSC$10429_image_);Y.handler_.listenOnce(Y.transfer_,"l",Y.JSC$10431_onUploadComplete_);Y.handler_.listenOnce(Y.transfer_,"n",Y.onUploadError_);Y.transfer_.run();Y.uploadPromise_=new Promise(function(b,w){Y.resolve_=b;Y.JSC$10429_reject_=w})};
_.g=YV.prototype;_.g.onChange_=function(Y){Y.files.length&&(this.JSC$10429_image_=Y.files[0],this.JSC$10429_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10429_image_=null,this.dispatchEvent(new uG("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(tFC(this),(new JI(this.JSC$10429_maxAspectRatio_)).transform(this.JSC$10429_image_).then((0,_.nC)(this.onPreview_,this),(0,_.nC)(this.onPreviewError_,this))))};
_.g.onPreview_=function(Y){if(Y.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10429_image_=null),this.dispatchEvent(new uG("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;Y.cropped&&this.dispatchEvent(new uG("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new uG("yt.comments.ImageUploadOverlay.CHANGE_EVENT",Y.transformedData))};
_.g.onPreviewError_=function(){this.JSC$10429_image_=null;this.dispatchEvent(new uG("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.g.onHover_=function(Y){Y.stopPropagation();Y.preventDefault();if(Y.type==="dragover")Y=!0;else if(Y.type==="dragleave")Y=!1;else return;this.dispatchEvent(new uG("yt.comments.ImageUploadOverlay.HOVER_EVENT",Y))};
_.g.JSC$10431_onUploadComplete_=function(){var Y=(0,_.kz_)(this.transfer_.getResponseText());this.resolve_(Y.encryptedBlobId)};
_.g.onUploadError_=function(){this.JSC$10429_reject_();RJk(this)};var dPC=function(Y){Y=Y||{};var b={},w={};this.url=Y.url||"";this.args=Y.args||_.BL.clone(b);this.assets=Y.assets||{};this.attrs=Y.attrs||_.BL.clone(w);this.fallback=Y.fallback||null;this.fallbackMessage=Y.fallbackMessage||null;this.html5=!!Y.html5;this.disable=Y.disable||{};this.loaded=!!Y.loaded;this.messages=Y.messages||{}};
dPC.prototype.clone=function(){var Y=new dPC,b;for(b in this)if(this.hasOwnProperty(b)){var w=this[b];Y[b]=_.I7(w)=="object"?_.BL.clone(w):w}return Y};var FoC,LoI,SLr,HK,r4d,zJj,Wo$,KoK,ipU,A4C,Cy9,y4d,$PU,jC$,GFk,TwQ,J4U,u9K,Yqr,bZt,w5I,VHC,HZ$,gco,fco,NW$,Ec8,cWr,Uxr,vTg,X5$,DxI,mxr,ocK,Ic_,kW5,lcU,hhj,xxr,qq9,sjI,Qj9,vcI,P48,ZZU,BWr,ncr,MH9,ehQ,p5t,OZr,tH$,Rh8,dxQ,Fgj,Lgt,by,Sq8,ack,rWI,zh_,Wgd,KgC,iZC,AW$,C4t,yW8,$x$,jjC,GWj,TWd,JWQ,uck,YSj,bnd,sNg,wzU,VoI,HnU,gXK,fiC,N9k,EX$,c0j,US$,Xz$,DSQ,mSQ,oX$,Iij,kpQ,li9,hKU,xSK,qSt,sG_,QG9,vXr,P$k,ZnQ,B9j;FoC=["account/accounts_list"];LoI=["acknowledge_channel_tou_strike"];SLr=["notification/add_upcoming_event_reminder"];
_.aCr=["att/get"];HK=["browse","music/browse","unplugged/browse"];r4d=["channel/claim_legacy_youtube_channel"];zJj=["history/clear_search_history"];Wo$=["history/clear_watch_history"];KoK=["comment/perform_comment_action"];ipU=["comment/get_comment_replies"];A4C=["ypc/commerce_action"];Cy9=["backstage/create_post"];y4d=["live/create_broadcast"];$PU=["channel/create_channel"];jC$=["comment/create_comment_reply"];GFk=["comment/create_comment"];TwQ=["live_chat/create_poll"];J4U=["playlist/create"];
u9K=["decorate_message"];Yqr=["live_chat/delete_message"];bZt=["playlist/delete"];w5I=["video/delete"];VHC=["like/dislike"];HZ$=["dismissal/dismiss"];gco=["flag/flag"];fco=["flow"];NW$=["account/account_menu"];Ec8=["playlist/get_add_to_playlist"];cWr=["get_answer"];Uxr=["channel/get_channel_creation_form"];vTg=["offline/get_download_action"];X5$=["kids/get_kids_blocklist_picker"];DxI=["live_chat/get_item_context_menu"];mxr=["live_chat/get_live_chat_message_buy_flow"];ocK=["live_chat/get_live_chat_replay"];
Ic_=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];kW5=["live_chat/get_live_chat_super_sticker_buy_flow"];lcU=["notification/get_notification_menu"];hhj=["playlist/get_settings_editor"];xxr=["backstage/get_post_video_preview"];qq9=["account/get_profile_card"];sjI=["share/get_share_panel"];Qj9=["share/get_sharing_provider_data"];vcI=["get_survey"];P48=["notification/get_unseen_count"];ZZU=["get_user_mention_suggestions"];BWr=["get_watch"];ncr=["guide"];
MH9=["feedback"];ehQ=["kids/update_blacklist"];p5t=["like/like"];OZr=["live_chat/live_chat_action"];tH$=["live_chat/manage_user"];Rh8=["video_manager/metadata_update"];dxQ=["live_chat/moderate"];Fgj=["notification/modify_channel_preference"];Lgt=["notification/opt_out"];by=["get_panel","get_posts_by_host_panel"];Sq8=["player"];ack=["browse/edit_playlist"];rWI=["notification/record_interactions"];zh_=["reel/reel_item_watch"];Wgd=["reel/reel_watch_sequence"];KgC=["like/removelike"];iZC=["notification/remove_upcoming_event_reminder"];
AW$=["flag/get_form"];C4t=["miniapp/report_value"];yW8=["navigation/resolve_url"];$x$=["channel/reveal_business_email"];jjC=["in_video/search"];GWj=["search","sfv/search","unplugged/search"];TWd=["live_chat/send_message"];JWQ=["live_chat/send_live_chat_vote"];uck=["account/set_setting"];YSj=["submit_caption_correction"];bnd=["subscription/subscribe"];sNg=["get_transcript"];wzU=["resolve_location","unplugged/resolve_location"];VoI=["subscription/unsubscribe"];HnU=["backstage/update_post"];gXK=["channel_edit/update_channel_page_settings"];
fiC=["comment/update_comment_reply"];N9k=["comment/update_comment"];EX$=["comment/update_comments_settings"];c0j=["creator/update_creator_channel"];US$=["pdg/update_enablement"];Xz$=["updated_metadata"];DSQ=["channel_edit/validate_channel_handle"];mSQ=["verify_age"];oX$=["next","unplugged/watch_next"];Iij=["whitelist/edit"];kpQ=["ypc/cancel_recurrence"];li9=["ypc/complete_transaction"];hKU=["ypc/get_cart"];xSK=["ypc/get_fix_instrument_params"];qSt=["ypc/get_offers"];sG_=["ypc/get_payment_instruments_params"];
QG9=["ypc/handle_transaction"];vXr=["ypc/log_payment_server_analytics"];P$k=["ypc/pause_subscription"];ZnQ=["ypc/redeem_code"];B9j=["ypc/resume_subscription"];var nXk=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,
49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,
5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,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,267692,267851,267577,267693,267694,267578,262801,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,82039];var q8=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.wG("yt.msgs_",q8);var ww=new _.Hx("ACTION_ROUTER_TOKEN");_.Vy=function(){this.autonavState_=_.q("kevlar_is_pupi_enabled")?2:qTG()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Vy.prototype.getState=function(){return this.autonavState_};
_.Vy.prototype.pause=function(Y){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=Y):this.autonavState_==1&&(this.disabledAutonavPauseReason_=Y)};
_.Vy.prototype.setState=function(Y,b,w){b&&(this.autoplayChangedByUser=!0);b=this.autonavState_===3||Y===3;this.autonavState_!=Y&&(this.autonavState_=Y,Y!=3&&_.sBI(Y==2),Y=_.q("kevlar_is_pupi_enabled")?w||b:!0,_.CB.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,Y,w))};
_.Vy.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.U0(_.Vy);var HB=function(){this.hasRun=!1};var gw={},tBB=(gw.auto_search="LATENCY_ACTION_AUTO_SEARCH",gw.ad_to_ad="LATENCY_ACTION_AD_TO_AD",gw.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",gw.app_startup="LATENCY_ACTION_APP_STARTUP",gw.browse="LATENCY_ACTION_BROWSE",gw.cast_splash="LATENCY_ACTION_CAST_SPLASH",gw.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",gw.channels="LATENCY_ACTION_CHANNELS",gw.chips="LATENCY_ACTION_CHIPS",gw.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",gw.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
gw.editor="LATENCY_ACTION_EDITOR",gw.embed="LATENCY_ACTION_EMBED",gw.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",gw.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",gw.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",gw.explore="LATENCY_ACTION_EXPLORE",gw.favorites="LATENCY_ACTION_FAVORITES",gw.home="LATENCY_ACTION_HOME",gw.inboarding="LATENCY_ACTION_INBOARDING",gw.landing="LATENCY_ACTION_LANDING",gw.library="LATENCY_ACTION_LIBRARY",gw.live=
"LATENCY_ACTION_LIVE",gw.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",gw.management="LATENCY_ACTION_MANAGEMENT",gw.mini_app="LATENCY_ACTION_MINI_APP_PLAY",gw.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",gw.onboarding="LATENCY_ACTION_ONBOARDING",gw.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",gw.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",gw.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",gw.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
gw.prebuffer="LATENCY_ACTION_PREBUFFER",gw.prefetch="LATENCY_ACTION_PREFETCH",gw.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",gw.profile_switcher="LATENCY_ACTION_LOGIN",gw.projects="LATENCY_ACTION_PROJECTS",gw.reel_watch="LATENCY_ACTION_REEL_WATCH",gw.results="LATENCY_ACTION_RESULTS",gw.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",gw.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",gw.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",gw.review="LATENCY_ACTION_REVIEW",gw.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",gw.search_ui="LATENCY_ACTION_SEARCH_UI",gw.search_suggest="LATENCY_ACTION_SUGGEST",gw.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",gw.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",gw.seek="LATENCY_ACTION_PLAYER_SEEK",gw.settings="LATENCY_ACTION_SETTINGS",gw.store="LATENCY_ACTION_STORE",gw.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",gw.tenx="LATENCY_ACTION_TENX",gw.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",gw.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
gw.watch="LATENCY_ACTION_WATCH",gw.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",gw["watch,watch7"]="LATENCY_ACTION_WATCH",gw["watch,watch7_html5"]="LATENCY_ACTION_WATCH",gw["watch,watch7ad"]="LATENCY_ACTION_WATCH",gw["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",gw.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",gw.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",gw.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",gw.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",gw.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",gw.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",gw.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",gw.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",gw),$vt=0;var Ygv=function(Y,b){Mb.call(this,1,arguments);this.timer=b};
_.P(Ygv,Mb);var uaL=new DVr("aft-recorded",Ygv);var LeL=_.wB.ytLoggingGelSequenceIdObj_||{};_.wG("ytLoggingGelSequenceIdObj_",LeL);var fp=_.wB.ytLoggingLatencyUsageStats_||{};_.wG("ytLoggingLatencyUsageStats_",fp);var NP=function(){this.cleanupJob=0},rur=function(){NP.instance||(NP.instance=new NP);
return NP.instance};
_.g=NP.prototype;_.g.baseline=function(Y,b,w){EL(this,"baseline_"+Y)||_.RY("latencyActionBaselined",{clientActionNonce:Y},{timestamp:b,cttAuthInfo:w})};
_.g.tick=function(Y,b,w,V){EL(this,"tick_"+Y+"_"+b)||_.RY("latencyActionTicked",{tickName:Y,clientActionNonce:b},{timestamp:w,cttAuthInfo:V})};
_.g.info=function(Y,b,w){var V=Object.keys(Y).join("");EL(this,"info_"+V+"_"+b)||(Y=Object.assign({},Y),Y.clientActionNonce=b,_.RY("latencyActionInfo",Y,{cttAuthInfo:w}))};
_.g.jspbInfo=function(Y,b,w){for(var V="",H=0;H<wX(Y).length;H++)wX(Y)[H]!==void 0&&(V=H===0?V.concat(""+H):V.concat("_"+H));EL(this,"info_"+V+"_"+b)||(_.hP(Y,2,b),b={cttAuthInfo:w},w=_.q("jspb_sparse_encoded_pivot")?new nB([{}]):new nB,_.gE(w,7,XyK,Y),STB("latencyActionInfo",w,b))};
_.g.span=function(Y,b,w){var V=Object.keys(Y).join("");EL(this,"span_"+V+"_"+b)||(Y.clientActionNonce=b,_.RY("latencyActionSpan",Y,{cttAuthInfo:w}))};
var EL=function(Y,b){fp[b]=fp[b]||{count:0};var w=fp[b];w.count++;w.time=(0,_.gG)();Y.cleanupJob||(Y.cleanupJob=_.MY(_.Lb,function(){var V=(0,_.gG)(),H;for(H in fp)fp[H]&&V-fp[H].time>6E4&&delete fp[H];Y&&(Y.cleanupJob=0)},5E3));
return w.count>5?(w.count===6&&Math.random()*1E5<1&&(w=new _.BQ("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||_.Sk(w)),!0):!1};var Mo8,eK8;Mo8=window;eK8=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.e1=Mo8.performance||Mo8.mozPerformance||Mo8.msPerformance||Mo8.webkitPerformance||new eK8;var JuI=!1,Wet=!1,b9b=(0,_.nC)(_.e1.clearResourceTimings||_.e1.webkitClearResourceTimings||_.e1.mozClearResourceTimings||_.e1.msClearResourceTimings||_.e1.oClearResourceTimings||_.vY,_.e1);var pz$=window;pz$.ytcsi&&(pz$.ytcsi.infoGel=_.Fx,pz$.ytcsi.tick=_.S1);var mbq=function(Y){Mb.call(this,1,arguments);this.csn=Y};
_.P(mbq,Mb);var l7B=new DVr("screen-created",mbq),eAg=[],Dbv=Mfr,pxr=0,Kz=new Map,oWb=new Map,I4G=new Map;var nNb=Symbol("wf"),wb=new WeakMap;var cB=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},PP=function(){cB.instance||(cB.instance=new cB);
return cB.instance};
_.g=cB.prototype;_.g.setClient=function(Y){this.client=Y};
_.g.JSC$10510_newScreen=function(){this.clear();this.csn=_.dO()};
_.g.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.g.reportShown=function(Y,b,w){var V=this.JSC$10510_getTrackingParams(Y),H=Y.visualElement?Y.visualElement:V;b=this.shownElements.has(H);var f=this.visibleState.get(H);this.shownElements.add(H);this.visibleState.set(H,!0);Y.impressionLog&&!b&&Y.impressionLog();if(V||Y.visualElement)if(w=Ono(this,Y,w))if(H=to9(this,Y),UL(this,Y)||H){V=Y.visualElement?Y.visualElement:_.nA(V);var E=Y.interactionLoggingClientData;H||b?UL(this,Y)&4?f||vWt(this.client,w,V,E):UL(this,Y)&1&&!b&&qgM(this.client,w,V,E):qgM(this.client,
w,V,E)}};
_.g.reportHidden=function(Y,b,w){var V=this.JSC$10510_getTrackingParams(Y),H=Y.visualElement?Y.visualElement:V;b=this.hiddenElements.has(H);var f=this.visibleState.get(H);this.hiddenElements.add(H);this.visibleState.set(H,!1);if(f===!1)return!0;if(!V&&!Y.visualElement)return!1;w=Ono(this,Y,w);if(!w||!UL(this,Y)&&to9(this,Y))return!1;V=Y.visualElement?Y.visualElement:_.nA(V);UL(this,Y)&8?PxG(this.client,w,V):UL(this,Y)&2&&!b&&(Y=this.client,b=W0({cttAuthInfo:FA(w)||void 0},w),V={csn:w,ve:V.getAsJson(),
eventType:2},w==="UNDEFINED_CSN"?Cz("visualElementHidden",b,V):Y?OP("visualElementHidden",V,Y,b):_.RY("visualElementHidden",V,b));return!0};
_.g.JSC$10510_getTrackingParams=function(Y){var b=this.getData(Y),w,V;if(_.q("il_use_view_model_logging_context")&&(b==null?0:(w=b.context)==null?0:(V=w.loggingContext)==null?0:V.loggingDirectives))return b.context.loggingContext.loggingDirectives.trackingParams||"";var H,f;if(b==null?0:(H=b.rendererContext)==null?0:(f=H.loggingContext)==null?0:f.loggingDirectives)return b.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams||
"";var E;return((E=Y.veContainer)==null?0:E.trackingParams)?Y.veContainer.trackingParams:(b==null?void 0:b.trackingParams)||""};
_.g.JSC$10510_elementShouldLogGesture=function(Y,b){Y=this.getData(Y);return!!((Math.floor(Number(Y&&Y.loggingDirectives&&Y.loggingDirectives.gestures&&Y.loggingDirectives.gestures.types||""))||0)&b)};
_.g.JSC$10510_getNearestParentVe=function(Y){var b=this.JSC$10510_getTrackingParams(Y);return Y.visualElement?Y.visualElement:b?_.nA(b):Y.parentElement?this.JSC$10510_getNearestParentVe(Y.parentElement):null};
var Ono=function(Y,b,w){var V=_.dO(w);return Y.csn===null||V===Y.csn||w?V:(Y=new _.BQ("VisibilityLogger called before newScreen",{caller:b.tagName,previous_csn:Y.csn,current_csn:V}),_.Sk(Y),null)};
cB.prototype.getData=function(Y){var b,w=Y.data||((b=Y.props)==null?void 0:b.data);if(!w||Y.isWebComponentWrapper){var V;w=(V=wb.get(Y))==null?void 0:V[nNb]}return w};
var to9=function(Y,b){var w;return!((w=Y.getData(b))==null||!w.loggingDirectives)},UL=function(Y,b){Y=Y.getData(b);
return Math.floor(Number(Y&&Y.loggingDirectives&&Y.loggingDirectives.visibility&&Y.loggingDirectives.visibility.types||""))||1};var X9;X9=function(){};
_.qZ=function(){X9.instance||(X9.instance=new X9);return X9.instance};
X9.prototype.setClient=function(Y){_.i1(PP().setClient).bind(PP())(Y)};
_.RKt=function(){_.qZ();_.i1(PP().JSC$10510_newScreen).bind(PP())()};
X9.prototype.clear=function(){_.i1(PP().clear).bind(PP())()};
X9.prototype.reportShown=function(Y,b,w){_.i1(PP().reportShown).bind(PP())(Y,b,w)};
X9.prototype.reportHidden=function(Y,b,w){return _.i1(PP().reportHidden).bind(PP())(Y,b,w)};
var iDG=function(Y,b){return _.i1(PP().JSC$10510_getTrackingParams).bind(PP())(b)},M$g=function(Y,b){return _.i1(PP().JSC$10510_getNearestParentVe).bind(PP())(b)};var DC,dSo;DC=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};
_.Qd=function(){DC.instance||(DC.instance=new DC);return DC.instance};
DC.prototype.setClient=function(Y){this.client=Y};
dSo=function(Y,b,w){w=w===void 0?{}:w;_.i1(function(){var V,H,f,E=((V=_.v(b==null?void 0:b.commandMetadata,_.g5))==null?void 0:V.rootVe)||((H=_.v(b==null?void 0:b.commandMetadata,RLo))==null?void 0:(f=H.screenVisualElement)==null?void 0:f.uiType);if(E){V=_.v(b==null?void 0:b.commandMetadata,lWo);if(V==null?0:V.parentTrackingParams){var U=_.nA(V.parentTrackingParams);if(V.parentCsn)var X=V.parentCsn}else w.clickedVisualElement?U=w.clickedVisualElement:b.clickTrackingParams&&(U=_.nA(b.clickTrackingParams));
a:{V=_.v(b,_.TG);H=_.v(b,HnB);if(V){if(H=QBB(V,"VIDEO")){V={token:H,videoId:V.videoId};break a}}else if(H&&(V=QBB(H,"PLAYLIST"))){V={token:V,playlistId:H.playlistId};break a}V=void 0}w=Object.assign({},{cttAuthInfo:V,parentCsn:X},w);if(_.q("expectation_logging")){var I;w.loggingExpectations=((I=_.v(b==null?void 0:b.commandMetadata,RLo))==null?void 0:I.loggingExpectations)||void 0}_.mo(Y,E,U,w)}else _.Sk(new _.BQ("Error: Trying to create a new screen without a rootVeType",b))})()};
_.mo=function(Y,b,w,V){V=V===void 0?{}:V;_.i1(function(){nXk.includes(b)||(_.Sk(new _.BQ("createClientScreen() called with a non-page VE",b)),b=83769);V.isHistoryNavigation||(Y.forwardHistoryStack=[],Y.backHistoryStack.push({rootVe:b,key:V.key||""}));Y.graftQueue=[];Y.stateChangedQueue=[];V.dataPromises?Fu8(Y,b,w,V):Lu5(Y,b,w,V)})()};
_.SS$=function(Y,b,w){w=w===void 0?0:w;_.i1(function(){b.then(function(V){Y.pendingScreenCreation.has(w)&&Y.pendingScreenFn&&Y.pendingScreenFn();var H=_.dO(w),f=_.R3(w);if(H&&f){var E;(V==null?0:(E=V.response)==null?0:E.trackingParams)&&A1(Y.client,H,f,_.nA(V.response.trackingParams));var U;(V==null?0:(U=V.playerResponse)==null?0:U.trackingParams)&&A1(Y.client,H,f,_.nA(V.playerResponse.trackingParams))}})})()};
DC.prototype.graftServerVe=function(Y,b,w){var V=this;return _.i1(function(){var H=_.nA(Y);_.oC(V,H,b,w);return H})()};
_.epg=function(Y,b,w,V){return _.q("enable_client_ve_spec")&&b.clientVeSpec?(b=_.tj(b.clientVeSpec.uiType,void 0,b.clientVeSpec.elementIndex,b.clientVeSpec.clientYoutubeData,void 0,b),_.oC(Y,b,w,V)?b:null):b.trackingParams?Y.graftServerVe(b.trackingParams,w,V):null};
_.sQ=function(Y,b,w,V){return _.i1(function(){if(!b.veType)return _.LB(new _.BQ("Error: Trying to graft a client VE without a veType.")),null;if(b.visibilityTypes){var H=b.visibilityTypes.reduce(function(f,E){return f|E});
H={visibility:{types:String(H)}}}H=_.tj(b.veType,b.visualElement,b.elementIndex,b.clientYouTubeData,void 0,H);return _.oC(Y,H,w,V)?H:null})()};
_.oC=function(Y,b,w,V){V=V===void 0?0:V;return _.i1(function(){if(Y.pendingScreenCreation.has(V))return Y.graftQueue.push([b,w]),!0;var H=_.dO(V),f=w||_.R3(V);if(H&&f){if(_.q("combine_ve_grafts")){var E=Y.cachedVisualElements.get(f.toString());E?E.push(b):(Y.cachedRootVisualElements.set(f.toString(),f),Y.cachedVisualElements.set(f.toString(),[b]));Y.attachTimeout||(Y.attachTimeout=_.MY(_.Lb,function(){ai8(Y,H)},1200))}else A1(Y.client,H,f,b);
return!0}return!1})()};
_.IC=function(Y,b,w){w=w===void 0?0:w;var V=Y.recurringGrafts.get(w)||new Map;if(_.q("smarter_ve_dedupping"))for(var H=Array.from(V.keys()),f=0;f<H.length;f++){var E=void 0,U=void 0;var X=b;var I=H[f];I.isClientVe()&&X.isClientVe()?(E=X.getAsJson(),U=I.getAsJson(),X=E.veType!==U.veType||E.elementIndex!==U.elementIndex||E.dataElement!==U.dataElement||X.getLoggingDirectives()!==I.getLoggingDirectives()?!1:!0):X=I.veData.trackingParams!==void 0&&X.veData.trackingParams!==void 0?((U=X.veData)==null?void 0:
U.trackingParams)===((E=I.veData)==null?void 0:E.trackingParams):!1;if(X)return}else if(V.has(b))return;V.set(b,void 0);Y.recurringGrafts.set(w,V);_.dO(w)==="UNDEFINED_CSN"||Y.pendingScreenCreation.has(w)||_.oC(Y,b,void 0,w)};
_.kV=function(Y,b,w,V){V=_.dO(V===void 0?0:V);if(!V)return!1;Bfb(Y.client,V,b,w);return!0};
_.ly=function(Y,b,w,V){if(!b)return!1;V=_.dO(V===void 0?0:V);if(!V)return!1;Bfb(Y.client,V,_.nA(b),w);return!0};
_.Aj=function(Y,b){var w=b.getScreenLayer&&b.getScreenLayer();if(b.visualElement)return _.kV(Y,b.visualElement,void 0,w);b=iDG(_.qZ(),b);return _.ly(Y,b,void 0,w)};
DC.prototype.clickCommand=function(Y,b,w){return _.ly(this,Y.clickTrackingParams,b,w===void 0?0:w)};
DC.prototype.stateChanged=function(Y,b,w){this.visualElementStateChanged(_.nA(Y),b,w===void 0?0:w)};
DC.prototype.visualElementStateChanged=function(Y,b,w){w=w===void 0?0:w;w===0&&this.pendingScreenCreation.has(w)?this.stateChangedQueue.push([Y,b]):this.logStateChanged(Y,b,w)};
DC.prototype.logStateChanged=function(Y,b,w){w=w===void 0?0:w;var V=_.dO(w);Y=Y||_.R3(w);return V&&Y?(nWb(this.client,V,Y,b),!0):!1};
var Fu8=function(Y,b,w,V){V=V===void 0?{}:V;Y.pendingScreenCreation.add(V.layer||0);Y.pendingScreenFn=function(){Lu5(Y,b,w,V);var E=_.R3(V.layer);if(E){for(var U=_.N(Y.graftQueue),X=U.next();!X.done;X=U.next())X=X.value,_.oC(Y,X[0],X[1]||E,V.layer);E=_.N(Y.stateChangedQueue);for(U=E.next();!U.done;U=E.next())U=U.value,Y.logStateChanged(U[0],U[1])}};
w||_.dO(V.layer)||Y.pendingScreenFn();if(V.dataPromises)for(var H=_.N(V.dataPromises),f=H.next();!f.done;f=H.next())_.SS$(Y,f.value,V.layer);else _.Ft(Error("xf"))},Lu5=function(Y,b,w,V){V=V===void 0?{}:V;
var H=void 0;V.layer||(V.layer=0);H=V.parentLayer!==void 0?V.parentLayer:V.layer;var f=_.dO(H);H=_.R3(H);var E=w||H,U;E&&(V.parentCsn!==void 0?U={clientScreenNonce:V.parentCsn,visualElement:E}:f&&f!=="UNDEFINED_CSN"&&(U={clientScreenNonce:f,visualElement:E}));var X,I=_.zO("EVENT_ID");f==="UNDEFINED_CSN"&&I&&(X={servletData:{serializedServletEventId:I}});_.q("combine_ve_grafts")&&f&&ai8(Y,f);_.q("no_client_ve_attach_unless_shown")&&E&&f&&xbv(E,f);try{var k=_.kSv(Y.client,b,U,V.csnToClone,V.cttAuthInfo,
X,V.implicitGestureType,void 0,V.loggingExpectations)}catch(Q){_.aY(Q,{rootVeType:b,rootVe:H,parentVisualElement:w,currentCsn:f,parentEl:U,csnToClone:V.csnToClone});_.Ft(Q);return}_.LM(k,b,V.layer,V.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&H&&!Z1v(f)&&PxG(Y.client,f,H,!0);Y.backHistoryStack[Y.backHistoryStack.length-1]&&!Y.backHistoryStack[Y.backHistoryStack.length-1].csn&&(Y.backHistoryStack[Y.backHistoryStack.length-1].csn=k||"");_.Fx({clientScreenNonce:k});_.RKt();var l=_.R3(V.layer);f&&f!=="UNDEFINED_CSN"&&
l&&(_.q("web_mark_root_visible")||_.q("music_web_mark_root_visible"))&&_.j1(k,l);Y.pendingScreenCreation.delete(V.layer||0);Y.pendingScreenFn=void 0;var x;(x=Y.recurringGrafts.get(V.layer))==null||x.forEach(function(Q,Z){Q?_.oC(Y,Z,Q,V.layer):l&&_.oC(Y,Z,l,V.layer)});
r0d(Y)},r0d=function(Y){for(var b=0;b<Y.afterNewScreenOneOffJobs.length;b++){var w=Y.afterNewScreenOneOffJobs[b];
try{w()}catch(V){_.Ft(V)}}for(b=Y.afterNewScreenOneOffJobs.length=0;b<Y.afterNewScreenRecurringJobs.length;b++){w=Y.afterNewScreenRecurringJobs[b];try{w()}catch(V){_.Ft(V)}}},ai8=function(Y,b){if(b===void 0)for(var w=v5r(),V=0;V<w.length;V++)w[V]!==void 0&&ai8(Y,w[V]);
else Y.cachedVisualElements.forEach(function(H,f){(f=Y.cachedRootVisualElements.get(f))&&l4v(Y.client,b,f,H)}),Y.cachedVisualElements.clear(),Y.cachedRootVisualElements.clear(),Y.attachTimeout=void 0};var h4=function(Y){Y=Y===void 0?{layer:0}:Y;this.hasRun=!1;this.createScreenConfig=Y;Y={};this.v8s=(Y.response=!1,Y.playerResponse=!1,Y)};
_.P(h4,HB);h4.prototype.validate=function(Y){return!(!Y.data||!Y.data.response&&!Y.data.playerResponse)};
h4.prototype.handle=function(Y){var b=_.Qd(),w=this.createScreenConfig.layer;Y.data.response&&Y.data.response.trackingParams&&!this.v8s.response&&(b.graftServerVe(Y.data.response.trackingParams,void 0,w),this.v8s.response=!0);Y.data.playerResponse&&Y.data.playerResponse.trackingParams&&!this.v8s.playerResponse&&(b.graftServerVe(Y.data.playerResponse.trackingParams,void 0,w),this.v8s.playerResponse=!0)};var xV=function(){this.yy=_.j9();this.nW=[];this.upm=0};
xV.prototype.processChunk=function(Y){if(Y){for(var b=_.N(this.nW),w=b.next();!w.done;w=b.next())w=w.value,w.validate(Y)&&(w.handle(Y),w.hasRun=!0);_.S1("np"+this.upm);this.upm++}};var VK;var cCG,zKj,A0r;_.l8=function(Y,b,w,V,H,f,E){E=E===void 0?[]:E;this.buildCommandPayload=Y;this.navigate=b;this.handleServiceRequest=w;this.sendAction=V;this.JSC$10551_screenManager=H;this.commandResolverMap=f;this.autoLogResolverAllowlist=E;this.pendingCommands=new Set;this.isTracingEnabled=!1;zKj(this)};
cCG=function(Y,b,w){var V=jla,H=Gya,f=_.Qd(),E=Wu9;w=w===void 0?[]:w;_.l8.instance=new _.l8(Y,b,V,H,f,E,w)};
zKj=function(Y){if(!Y.isTracingEnabled&&tfr("command")){var b=Y.resolveCommand;Y.resolveCommand=function(w,V){a:{for(H in w)if(Object.prototype.hasOwnProperty.call(w,H)){var H={commandType:H};break a}H={}}return F0q("command",H,b.bind(this,w,V))};
Y.isTracingEnabled=!0}};
A0r=function(Y,b,w){if(!Y.commandResolverMap)return!1;var V=rtL(b,Y.commandResolverMap);return V?((Y.autoLogResolverAllowlist.some(function(H){return!!_.v(b,H)})||(w==null?0:w.forceClickLogging))&&Kur(Y,b,w),V instanceof Promise?V.then(function(H){H.resolve(b,w)}):V.resolve(b,w),!0):!1};
_.l8.prototype.resolveCommand=function(Y,b){var w=this,V=C$t(Y);if(A0r(this,Y,b))return!0;if(V)return y0$(this,Y,b);if(!this.buildCommandPayload)return L0e(Y,"Unhandled command by buildCommandPayload"),!1;var H=this.buildCommandPayload(Y,b);if(b==null?0:b.commandController)H.commandController=b.commandController;if(H.type===0){if(!this.navigate)return Sgb(Y,"navigate"),!1;if(!$Sk(H.command))return L0e(Y,"Page requests need to specify a url"),!1;_.q("logging_avoid_blocking_during_navigation")&&_.YQv().transition("application_navigating");
Y=this.navigate(H)||[];uDC(Y).then(function(){w.pendingCommands.delete(H.command)});
return!0}if(H.type===1){if(!this.handleServiceRequest)return Sgb(Y,"handleServiceRequest"),!1;(b==null?0:b.forceClickLogging)&&Kur(this,H.command,b);Y=this.handleServiceRequest(H);uDC(Y).then(function(){w.pendingCommands.delete(H.command)});
return!0}if(H.type===2){if(!this.sendAction)return Sgb(Y,"sendAction"),!1;Kur(this,H.command,b);this.sendAction(H);return!0}return!1};
var Kur=function(Y,b,w){if((w==null||!w.disableClickTracking)&&Y.JSC$10551_screenManager)if(b.clickTrackingParams&&_.q("log_click_with_layer_from_element_in_command_handler")){var V;w=w==null?void 0:(V=w.form)==null?void 0:V.element;Y.JSC$10551_screenManager.clickCommand(b,null,w&&w.getScreenLayer&&w.getScreenLayer())}else b.clickTrackingParams?Y.JSC$10551_screenManager.clickCommand(b):!_.q("disable_clicked_visual_element_in_command_handler")&&(w==null?0:w.clickedVisualElement)&&_.kV(Y.JSC$10551_screenManager,
w.clickedVisualElement)},C$t=function(Y){var b=!!_.v(Y,_.ln),w;
Y=((w=_.v(Y,_.x7))==null?void 0:w.signal)==="CLIENT_SIGNAL";return b||Y},y0$=function(Y,b,w){var V=_.v(b,_.ln);
if(V)var H=(V==null?void 0:V.commands)||[];else{var f;if(((f=_.v(b,_.x7))==null?void 0:f.signal)==="CLIENT_SIGNAL"){var E;H=((E=_.v(b,_.x7))==null?void 0:E.actions)||[]}}if(H){b=_.N(H);for(H=b.next();!H.done;H=b.next()){H=H.value;try{Y.resolveCommand(H,w)}catch(U){U instanceof Error&&_.Ft(U)}}return!0}L0e(b,"Could not handle the meta command");return!1},$Sk=function(Y){var b;
return!((b=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null||!b.url)};var qP=function(){HB.apply(this,arguments)};
_.P(qP,HB);qP.prototype.validate=function(Y){var b,w;return!this.hasRun&&!!((b=Y.data.response)==null?0:(w=b.onResponseReceivedEndpoints)==null?0:w.length)};
qP.prototype.handle=function(Y){var b=_.l8.instance;Y=_.N(Y.data.response.onResponseReceivedEndpoints);for(var w=Y.next();!w.done;w=Y.next())b.resolveCommand(w.value)};var jG9,Gpj,T9t;
jG9=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=_.k7();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.sL=function(){Gpj||(Gpj=new jG9);return Gpj};
T9t=function(){var Y=_.sL();Y.miniplayerButtonActivation=!1;Y.userActivation=!1;Y.playlistWatchPageActivation=!1;Y.productDetailsPageActivation=!1;Y.miniAppPageActivation=!1;Y.playablesDestPageActivation=!1;Y.lockupActivation=!1;Y.showMiniplayerCommandActivation=!1;Y.playlistSuggestionsShelfActivation=!1;Y.mediaSessionPipActivation=!1;Y.watchPipActivation=!1;Y.watchWhileActivation=!1;Y.shortsPipActivation=!1};
_.J0k=function(){var Y=_.sL(),b=Y.mediaSessionPipActivation,w=Y.watchPipActivation,V=Y.watchWhileActivation,H=Y.playlistWatchPageActivation,f=Y.lockupActivation,E=Y.showMiniplayerCommandActivation,U=Y.navigatingAwayFromWatchDeletedVideo,X=Y.shortsPipActivation,I=Y.playlistSuggestionsShelfActivation,k=Y.productDetailsPageActivation,l=Y.miniAppPageActivation,x=Y.playablesDestPageActivation;return!Y.miniplayerButtonActivation&&!H&&!I&&!k&&!l&&!x&&!f&&!E&&!b&&!w&&!V&&!X||U};var tUu;_.Qy=gb("FEwhat_to_watch","/",3854);_.Rvg=gb("FEdownloads","/feed/downloads",42352);tUu=gb("FEmusic_offline","browse/FEmusic_offline",42352);var Jr=function(Y,b){b=b===void 0?[]:b;var w=w===void 0?[]:w;b=NML.apply(null,[Ev6.apply(null,_.Bt(b))].concat(_.Bt(w)));this.store=DXb(Y,void 0,b)};
Jr.prototype.getState=function(){return this.store.getState()};
Jr.prototype.dispatch=function(Y){return this.store.dispatch(Y)};
Jr.prototype.subscribe=function(Y){return this.store.subscribe(Y)};
Jr.prototype.replaceReducer=function(Y){return this.store.replaceReducer(Y)};
Jr.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.vB=function(Y,b,w){var V=b(Y.getState());return Y.subscribe(function(){var H=b(Y.getState());if(H!==V){var f=V;V=H;w(H,f)}})};var pqa;_.qo=function(Y,b,w){return _.Uf({type:"REPLACE_ENTITY",payload:{entityPayload:w,entityType:Y,key:b}})};
pqa=function(Y){return _.Uf({type:"REPLACE_ENTITIES",payload:Y})};
_.R1=function(Y,b,w,V){return _.Uf({type:"UPDATE_ENTITY",payload:{entityPayload:w,entityType:Y,key:b,mergeOption:V}})};var u_a=function(Y){var b=this;Y=Y===void 0?[]:Y;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;Y.forEach(function(w){b.append(w)})};
_.g=u_a.prototype;_.g.getLength=function(){return this.totalLength};
_.g.append=function(Y){var b=this.arrays.length===0?!1:(b=this.arrays[this.arrays.length-1])&&b.buffer===Y.buffer&&b.byteOffset+b.length===Y.byteOffset;b?(b=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+Y.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(Y);this.totalLength+=Y.length};
_.g.split=function(Y){for(var b=new u_a,w=new u_a,V=_.N(this.arrays),H=V.next();!H.done;H=V.next())H=H.value,Y>=H.length?(b.append(H),Y-=H.length):Y?(b.append(new Uint8Array(H.buffer,H.byteOffset,Y)),w.append(new Uint8Array(H.buffer,H.byteOffset+Y,H.length-Y)),Y=0):w.append(H);return{headView:b,tailView:w}};
_.g.extract=function(Y,b){return this.split(Y).tailView.split(b).headView};
_.g.isFocused=function(Y){return Y>=this.arrayPos&&Y<this.arrayPos+this.arrays[this.arrayIdx].length};
_.g.focus=function(Y){if(!this.isFocused(Y))for(Y<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=Y&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var uGj=function(Y,b){Y.focus(b);return Y.arrays[Y.arrayIdx][b-Y.arrayPos]};(function(){var Y=function(V){return new Uint8Array(V)},b=function(V){for(var H=new Uint8Array(V.length),f=0;f<V.length;f++)H[f]=V[f];
return H},w=new Uint8Array([1]);
return w.length===1&&w[0]===1?Y:b})();
var ytu=Array(1024),Cxq=window.TextDecoder?new TextDecoder:void 0,j5r=window.TextEncoder?new TextEncoder:void 0;var Jtv=function(Y){this.arrayView=Y;this.pos=0;this.pendingTagAndType=-1},XZ=function(Y){var b=uGj(Y.arrayView,Y.pos);
++Y.pos;if(b<128)return b;for(var w=b&127,V=1;b>=128;)b=uGj(Y.arrayView,Y.pos),++Y.pos,V*=128,w+=(b&127)*V;return w},YGb=function(Y,b){var w=Y.pendingTagAndType;
for(Y.pendingTagAndType=-1;Y.pos+1<=Y.arrayView.totalLength;){w<0&&(w=XZ(Y));var V=w>>3,H=w&7;if(V===b)return!0;if(V>b){Y.pendingTagAndType=w;break}w=-1;switch(H){case 0:XZ(Y);break;case 1:Y.pos+=8;break;case 2:V=XZ(Y);Y.pos+=V;break;case 5:Y.pos+=4}}return!1};var wqI=function(){this.pos=0;this.submessagePosStack=[];this.buf=Tf6(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},o8=function(Y,b){b=Y.pos+b;
if(!(Y.buf.length>=b)){for(var w=Y.buf.length*2;w<b;)w*=2;Y.buf=Tf6(w,Y.buf.subarray(0,Y.pos));Y.view=new DataView(Y.buf.buffer,Y.buf.byteOffset,Y.buf.byteLength)}},mR=function(Y,b){if(b>268435455){o8(Y,4);
for(var w=b&1073741823,V=0;V<4;V++)Y.view.setUint8(Y.pos,w&127|128),w>>=7,Y.pos+=1;b=Math.floor(b/268435456)}for(o8(Y,4);b>127;)Y.view.setUint8(Y.pos,b&127|128),b>>=7,Y.pos+=1;Y.view.setUint8(Y.pos,b);Y.pos+=1};for(var Vwq={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},byg={},YUr=_.N(Object.entries(Vwq)),bUK=YUr.next();!bUK.done;bUK=YUr.next()){var wwI=_.N(bUK.value),Vij=wwI.next().value,HU_=wwI.next().value,gId=Vij,fL8=HU_;fL8&&(byg[fL8]=gId)};var g8L=function(Y,b){Y=Y===void 0?{}:Y;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(V,H){var f,E=(f=H.options)==null?void 0:f.persistenceOption;if(E&&E!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&E!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return V;if(!H.entityKey)return _.Ft(Error("Bf")),V;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return H=new _.BQ("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey}),_.Ft(H),V;var U=(0,_.BL.getAnyKey)(H.payload);
return NAb(V,U,H.entityKey,H.payload[U])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var X=_.D7(H).entityType;U=NAb(V,X,H);break a}catch(l){if(l instanceof Error){H=new _.BQ("Failed to deserialize entity key",{entityKey:H,originalMessage:l.message});_.Ft(H);U=V;break a}throw l;}U=void 0}return U}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return H=new _.BQ("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey}),_.Ft(H),V;U=(0,_.BL.getAnyKey)(H.payload);
var I,k;return E8K(V,U,H.entityKey,H.payload[U],(I=H.fieldMask)==null?void 0:(k=I.mergeOptions)==null?void 0:k.repeatedFieldsMergeOption)}return V},Y);
case "REPLACE_ENTITY":var w=b.payload;return NAb(Y,w.entityType,w.key,w.entityPayload);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(V,H){var f=b.payload[H];return Object.keys(f).reduce(function(E,U){return NAb(E,H,U,f[U])},V)},Y);
case "UPDATE_ENTITY":return w=b.payload,E8K(Y,w.entityType,w.key,w.entityPayload,w.mergeOption);default:return Y}};var cog;var N0I=!1,PB,ZC,BB,np,MP,EIt=function(Y){_.BE.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!N0I){var b,w=new Uint8Array(256),V=new Uint8Array(256);var H=1;for(b=0;b<256;b++)w[H]=b,V[b]=H,H^=H<<1^(H>>7&&283);PB=new Uint8Array(256);ZC=l3(256);BB=l3(256);np=l3(256);MP=l3(256);for(var f=0;f<256;f++){H=f?V[255^w[f]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;PB[f]=H;b=H<<1^(H>>7&&283);var E=b^H;ZC[f]=b<<24|H<<16|H<<8|E;BB[f]=E<<24|ZC[f]>>>8;np[f]=H<<24|BB[f]>>>
8;MP[f]=H<<24|np[f]>>>8}N0I=!0}H=l3(44);for(w=0;w<4;w++)H[w]=Y[4*w]<<24|Y[4*w+1]<<16|Y[4*w+2]<<8|Y[4*w+3];for(V=1;w<44;w++)Y=H[w-1],w%4||(Y=(PB[Y>>16&255]^V)<<24|PB[Y>>8&255]<<16|PB[Y&255]<<8|PB[Y>>>24],V=V<<1^(V>>7&&283)),H[w]=H[w-4]^Y;this.key=H};
_.P(EIt,_.BE);
EIt.prototype.encrypt=function(Y){var b=Y.length;Y=new Uint8Array(Y.buffer.slice(Y.byteOffset,Y.byteOffset+b));for(var w=this.cipherBlock,V=0;V<b&&this.blockOffset<16;)Y[V++]^=w[this.blockOffset++];for(var H=b-(b-V)%16;V<H;)cBQ(this),Y[V++]^=w[0],Y[V++]^=w[1],Y[V++]^=w[2],Y[V++]^=w[3],Y[V++]^=w[4],Y[V++]^=w[5],Y[V++]^=w[6],Y[V++]^=w[7],Y[V++]^=w[8],Y[V++]^=w[9],Y[V++]^=w[10],Y[V++]^=w[11],Y[V++]^=w[12],Y[V++]^=w[13],Y[V++]^=w[14],Y[V++]^=w[15];if(V<b)for(cBQ(this),this.blockOffset=0;V<b;)Y[V++]^=
w[this.blockOffset++];return Y};
var cBQ=function(Y){for(var b=Y.key,w=Y.counter[0]^b[0],V=Y.counter[1]^b[1],H=Y.counter[2]^b[2],f=Y.counter[3]^b[3],E=3;E>=0&&!(Y.counter[E]=-~Y.counter[E]);E--);for(var U,X,I=4;I<40;)E=ZC[w>>>24]^BB[V>>16&255]^np[H>>8&255]^MP[f&255]^b[I++],U=ZC[V>>>24]^BB[H>>16&255]^np[f>>8&255]^MP[w&255]^b[I++],X=ZC[H>>>24]^BB[f>>16&255]^np[w>>8&255]^MP[V&255]^b[I++],f=ZC[f>>>24]^BB[w>>16&255]^np[V>>8&255]^MP[H&255]^b[I++],w=E,V=U,H=X;Y=Y.cipherBlock;E=b[40];Y[0]=PB[w>>>24]^E>>>24;Y[1]=PB[V>>16&255]^E>>16&255;Y[2]=
PB[H>>8&255]^E>>8&255;Y[3]=PB[f&255]^E&255;E=b[41];Y[4]=PB[V>>>24]^E>>>24;Y[5]=PB[H>>16&255]^E>>16&255;Y[6]=PB[f>>8&255]^E>>8&255;Y[7]=PB[w&255]^E&255;E=b[42];Y[8]=PB[H>>>24]^E>>>24;Y[9]=PB[f>>16&255]^E>>16&255;Y[10]=PB[w>>8&255]^E>>8&255;Y[11]=PB[V&255]^E&255;E=b[43];Y[12]=PB[f>>>24]^E>>>24;Y[13]=PB[w>>16&255]^E>>16&255;Y[14]=PB[V>>8&255]^E>>8&255;Y[15]=PB[H&255]^E&255};var UTt=!1;(function(){var Y=function(V){return new Uint8Array(V)},b=function(V){for(var H=new Uint8Array(V.length),f=0;f<V.length;f++)H[f]=V[f];
return H},w=new Uint8Array([1]);
return w.length===1&&w[0]===1?Y:b})();
var eF;var mTk=function(Y){a:{if(!UTt&&!Yr){if(eF){var b=eF;break a}eF=(b=window.crypto)==null?void 0:b.subtle;var w,V,H;if(((w=eF)==null?0:w.importKey)&&((V=eF)==null?0:V.sign)&&((H=eF)==null?0:H.encrypt)){b=eF;break a}eF=void 0}b=void 0}b&&(this.nativeEncryptor=new XwK(Y,b));this.encryptorPolyfill=new DTd(Y)};
mTk.prototype.encrypt=function(Y,b){var w=this,V;return _.c(function(H){switch(H.nextAddress){case 1:if(!w.nativeEncryptor){H.jumpTo(2);break}_.ct(H,3);return _.D(H,w.nativeEncryptor.encrypt(Y,b),5);case 5:return H.return(H.yieldResult);case 3:V=_.mS(H),_.Sk(V),UTt=!0,w.nativeEncryptor=void 0;case 2:return H.return(w.encryptorPolyfill.encrypt(Y,b))}})};
var XwK=function(Y,b){this.JSC$10623_aesKey=Y;this.subtleCrypto=b};
XwK.prototype.encrypt=function(Y,b){var w=this,V;return _.c(function(H){if(H.nextAddress==1)return _.ct(H,2),_.D(H,oIC(w,Y,b),4);if(H.nextAddress!=2)return H.return(H.yieldResult);V=_.mS(H);_.Sk(V);UTt=!0;throw V;})};
var oIC=function(Y,b,w){var V,H;return _.c(function(f){switch(f.nextAddress){case 1:if(Y.cryptoKey){f.jumpTo(2);break}return _.D(f,Y.subtleCrypto.importKey("raw",Y.JSC$10623_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:Y.cryptoKey=f.yieldResult;case 2:return V={name:"AES-CTR",counter:w,length:128},_.D(f,Y.subtleCrypto.encrypt(V,Y.cryptoKey,b),4);case 4:return H=f.yieldResult,f.return(new Uint8Array(H))}})},DTd=function(Y){this.JSC$10626_aesKey=Y};
DTd.prototype.encrypt=function(Y,b){this.encryptor||(this.encryptor=new EIt(this.JSC$10626_aesKey));for(var w=this.encryptor,V=0;V<4;V++)w.counter[V]=b[V*4]<<24|b[V*4+1]<<16|b[V*4+2]<<8|b[V*4+3];w.blockOffset=16;return this.encryptor.encrypt(Y)};var ILQ={},DwL=HO("yt-idb-pref-storage",{objectStores:(ILQ.prefs={addedAtVersion:1},ILQ),shared:!1,upgrade:function(Y,b){b(1)&&AE(iS(Y,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.pp=function(Y){this.token=Y};
_.pp.getInstance=function(){return _.c(function(Y){return Y.return(new Promise(function(b){_.Vn().then(function(w){w?(_.pp.instance||(_.pp.instance=new _.pp(w)),b(_.pp.instance)):b(void 0)})}))})};
_.pp.prototype.get=function(Y){var b=this,w,V,H;return _.c(function(f){if(f.nextAddress==1)return _.D(f,mwB(b.token),2);if(f.nextAddress!=3)return w=f.yieldResult,_.D(f,w.get("prefs",Y),3);V=f.yieldResult;if(!V)return f.return();H=(0,_.gG)();return V.expirationTimestampMs<=H?f.return():f.return(V.value)})};
_.pp.prototype.set=function(Y,b,w){w=w===void 0?31536E3:w;var V=this,H,f,E;return _.c(function(U){if(U.nextAddress==1)return H=(0,_.gG)(),f={key:Y,value:b,expirationTimestampMs:H+w*1E3},_.D(U,mwB(V.token),2);E=U.yieldResult;return _.D(U,E.put("prefs",f),0)})};
_.pp.prototype.remove=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,mwB(b.token),2);w=V.yieldResult;return _.D(V,w.delete("prefs",Y),0)})};var OL={},k8Q=(OL.INVALID_ENCODER_VERSION="Invalid encoder version",OL.KEY_CREATION_FAILED="Failed to create encoder key",OL.UNKNOWN_DECODE_ERROR="Failed to decode PES data",OL.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",OL.WRONG_DATA_TYPE="Encoder cannot process the data type",OL),hr=function(Y,b){b=b===void 0?{}:b;_.BQ.call(this,k8Q[Y],Object.assign({},{name:"PESEncoderError",type:Y},b));this.type=Y;this.level="WARNING";Object.setPrototypeOf(this,hr.prototype)};
_.P(hr,_.BQ);var lL$=function(){},h9d=function(Y,b,w){try{return Y.encodeImpl(b,w)}catch(V){lWa(V,IWt)}},xTU=function(Y,b,w){var V;
return _.c(function(H){if(H.nextAddress==1)return _.ct(H,2),_.D(H,Y.decodeAsyncImpl(b,w),4);if(H.nextAddress!=2)return H.return(H.yieldResult);V=_.mS(H);lWa(V,kPB);_.om(H)})};
lL$.prototype.decodeAsyncImpl=function(Y,b){return Promise.resolve(this.decodeImpl(Y,b))};var t4=function(Y,b){this.aesEncryptor=Y;this.aesEncryptorAsync=b};
_.P(t4,lL$);t4.prototype.encodeImpl=function(Y,b){b=hiB(b);Y=(new TextEncoder).encode(JSON.stringify(Y));return this.aesEncryptor.encrypt(Y,b)};
t4.prototype.decodeImpl=function(Y,b){if(!(Y instanceof Uint8Array))throw o8I(1);var w=new TextDecoder;b=hiB(b);Y=this.aesEncryptor.encrypt(Y,b);return JSON.parse(w.decode(Y))};
t4.prototype.decodeAsyncImpl=function(Y,b){var w=this,V,H,f;return _.c(function(E){if(E.nextAddress==1){if(!(Y instanceof Uint8Array))throw o8I(1);V=new TextDecoder;H=hiB(b);return _.D(E,w.aesEncryptorAsync.encrypt(Y,H),2)}f=E.yieldResult;return E.return(JSON.parse(V.decode(f)))})};var xwb={accountLinkStatusEntity:Anr,booleanEntity:svd,buttonEntity:exC,captionTrack:hAQ,channelHandle:NMK,chipEntity:EUI,commerceAcquisitionClientPayloadEntity:YLr,commerceCartListEntity:bp8,contextNoteFeedEntityPayload:ovo,continuationTokenEntity:YTK,downloadQualityPickerEntity:KVr,downloadsPageRefreshTokenEntity:ASC,downloadsPageViewConfigurationEntity:cuC,downloadStatusEntity:i1_,dismissState:cIr,sfvAudioItemCurrentlyPlayingEntity:Tfk,emojiFountainDataEntity:BYQ,emojiCustomizationSetEntity:ZLU,
fakeChannel:PVt,fakePlaylist:Zj$,fakePlaylistEntryCollection:Bmr,fakeVideo:MxI,fakeVideoDescription:ePQ,featuredProductsEntity:eko,flowStateEntity:zPK,iconBadgeEntity:wBC,interstitialInteractionStateEntity:E5K,likeButtonAnimationEntity:Uvd,liveChatPollStateEntity:khI,liveViewerLeaderboardChatEntryPointStateEntity:tfQ,liveViewerLeaderboardPointsEntity:RAI,liveReactionsDataEntity:nUt,logoEntity:fqt,macroMarkerEntity:X2U,mainDownloadsLibraryEntity:Cz9,mainDownloadsListEntity:yS$,mainPlaylistDownloadStateEntity:j_K,
mainPlaylistEntity:bPI,mainPlaylistVideoEntity:w2d,mainVideoDownloadStateEntity:GhQ,mainVideoEntity:f1I,markersEngagementPanelSyncEntity:Dv_,markersVisibilityOverrideEntity:mvr,musicAlbumReleaseDetail:zkK,musicAlbumReleaseDownloadMetadataEntity:FeC,musicAlbumRelease:ruQ,musicAlbumReleaseUserDetail:We5,musicArtistDetail:iPI,musicArtist:Kek,musicArtistUserDetail:AuI,musicDownloadsLibraryEntity:LeK,musicLibraryEdit:CY_,musicLibraryStatusEntity:yu_,musicPlaylist:$v5,musicPlaylistDownloadMetadataEntity:STU,
musicShare:GVQ,musicTrackDetail:JuC,musicTrackDownloadMetadataEntity:a1K,musicTrack:Tyt,musicTrackUserDetail:uaK,offlineOrchestrationActionWrapperEntity:xbr,offlineVideoPolicy:qgt,offlineVideoStreams:s5K,offlineabilityEntity:TPK,orchestrationWebSamplingEntity:JSU,pageHeaderEntity:ldj,pdpStateEntity:VFI,pinnedProductEntity:p2r,playbackData:Q5U,playerStateEntity:opK,quantityIncrementerEntity:Hp_,refresh:vW5,saveToPlaylistListEntity:hiU,selectedChipIndexEntityPayload:I1_,settingEntity:KyU,stringEntity:Qv_,
suggestedFeedbackChipStateEntity:kV$,transfer:PxI,trendingOfferEntity:OPd,videoDownloadContextEntity:Z9I,videoOverviewAsyncDataEntity:MFC,videoPlaybackPositionEntity:t7I,votingEntity:sUI,ytMainChannelEntity:Ny5,youchatPendingResponseEntity:l1d,ytMainDownloadedVideoEntity:u6I,ytMainVideoEntity:Ep8};var qUC,QH$,v$,n8b,Mwu,ZUU,nIK,B0r,Phr;qUC=function(Y,b){this.JSC$10645_wrapped=Y;this.JSC$10645_encoderRegistry=b;this.changedKeys={}};
QH$=function(Y,b){a:{Y=sH$(Y.JSC$10645_encoderRegistry,b.version);try{var w=Y.decodeImpl(b.data,b.key);break a}catch(V){lWa(V,kPB)}w=void 0}return w};
_.vIj=function(Y,b,w){return Y.JSC$10645_wrapped.objectStore("EntityStore").get(b).then(function(V){if(V){if(w&&V.entityType!==w)throw Error("Cf");return QH$(Y,V)}})};
v$=function(Y,b,w){return w?(w=w.map(function(V){return _.vIj(Y,V,b)}),WQ.all(w)):Y.JSC$10645_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(V){return V.map(function(H){return QH$(Y,H)})})};
_.BAL=function(Y,b,w){var V=HyL(b),H=sH$(Y.JSC$10645_encoderRegistry,1),f=Object.assign({},b);return Y.JSC$10645_wrapped.objectStore("EntityStore").get(V).then(function(E){if(E){if(E.entityType!==w)throw Error("Cf");f.entityMetadata||(E=QH$(Y,E),f.entityMetadata=E.entityMetadata)}}).then(function(){var E={key:V,
entityType:w,data:h9d(H,f,V),version:1};return WQ.all([Y.JSC$10645_wrapped.objectStore("EntityStore").put(E),Phr(Y,f,w)])}).then(function(){ZUU(Y,V,w);
return V})};
n8b=function(Y,b){var w=_.D7(b).entityType;return WQ.all([Y.JSC$10645_wrapped.objectStore("EntityStore").delete(b),B0r(Y,b)]).then(function(){ZUU(Y,b,w)})};
Mwu=function(Y,b,w,V){var H=sH$(Y.JSC$10645_encoderRegistry,1);return _.vIj(Y,b,V).then(function(f){if(f){f=Atq(f,w);var E={key:b,entityType:V,data:h9d(H,f,b),version:1};return WQ.all([Y.JSC$10645_wrapped.objectStore("EntityStore").put(E),Phr(Y,f,V)])}}).then(function(){ZUU(Y,b,V);
return b})};
ZUU=function(Y,b,w){var V=Y.changedKeys[w];V||(V=new Set,Y.changedKeys[w]=V);V.add(b)};
nIK=function(Y,b,w){var V=HyL(b);w=qGL(w);if(!w)return WQ.resolve([]);w=new w(b);Y=Y.JSC$10645_wrapped.objectStore("EntityAssociationStore");b=[];w=_.N(w.getAssociations());for(var H=w.next();!H.done;H=w.next())b.push(Y.put({parentEntityKey:V,childEntityKey:H.value}));return WQ.all(b).then(function(f){return f.map(function(E){return E[1]})})};
B0r=function(Y,b){return Y.JSC$10645_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
Phr=function(Y,b,w){var V=HyL(b);return B0r(Y,V).then(function(){return nIK(Y,b,w)})};var MiQ=function(){};
_.P(MiQ,lL$);MiQ.prototype.encodeImpl=function(Y){return Y};
MiQ.prototype.decodeImpl=function(Y){if(Y instanceof Uint8Array)throw o8I(0);return Y};var v8g=function(){this.cacheMap={};this.cacheMap[0]=new MiQ;if(!_.q("aes_pes_encoder_killswitch")){var Y=this.cacheMap;try{var b=_.PQ();var w=hiB(b);var V=new t4(new DTd(w),new mTk(w))}catch(H){throw Y=H instanceof Error?new hr("KEY_CREATION_FAILED",{originalMessage:H.message}):new hr("KEY_CREATION_FAILED"),_.Ft(Y),Y;}Y[1]=V}},sH$=function(Y,b){b=b===void 0?0:b;
Y=Y.cacheMap[b];if(!Y)throw b=new hr("INVALID_ENCODER_VERSION",{encoderVersion:b}),_.Ft(b),b;return Y};var qV=function(Y,b){_.BE.call(this);this.token=Y;this.JSC$10659_encoderRegistry=b;this.observers=[];Y=new _.wB.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.PQ());Y.onmessage=this.handleMessage.bind(this);this.channel=Y};
_.P(qV,_.BE);_.QK=function(Y,b,w){var V,H,f,E;return _.c(function(U){if(U.nextAddress==1)return _.D(U,Xqb(Y.token),2);if(U.nextAddress!=3)return V=U.yieldResult,_.D(U,_.Tr(V,["EntityStore","EntityAssociationStore"],b,function(X){H=new qUC(X,Y.JSC$10659_encoderRegistry);return w(H)}),3);
f=U.yieldResult;H&&(E=H.changedKeys,Object.keys(E).length>0&&(Y.channel.postMessage(E),e9o(Y,E)));return U.return(f)})};
qV.prototype.observe=function(Y){var b=this;this.observers.push(Y);return function(){var w=b.observers.indexOf(Y);w>=0&&b.observers.splice(w,1)}};
var F5e=function(Y){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,_.QK(Y,{mode:"readonly",enableRetries:!0},function(V){return V.JSC$10645_wrapped.objectStore("EntityStore").getAll()}),2);
b=w.yieldResult;return w.return(Promise.all(b.filter(function(V){return!!V}).map(function(V){var H,f;
return _.c(function(E){if(E.nextAddress==1){H=V.key;f=V.entityType;var U=xTU(sH$(Y.JSC$10659_encoderRegistry,V.version),V.data,V.key);return _.D(E,U,2)}return E.return({key:H,entityType:f,data:E.yieldResult})})})))})};
qV.prototype.handleMessage=function(Y){e9o(this,Y.data)};
var e9o=function(Y,b){Y=_.N(Y.observers);for(var w=Y.next();!w.done;w=Y.next())w=w.value,w(b)};
qV.prototype.disposeInternal=function(){this.channel.close()};
var sOq;var RC,OU$,waG,PMv;RC={};_.pwk=(RC.mainVideoEntity="mainVideoEntityActionMetadata",RC.mainPlaylistEntity="mainPlaylistEntityActionMetadata",RC.musicTrack="musicTrackEntityActionMetadata",RC.musicPlaylist="musicPlaylistEntityActionMetadata",RC);OU$=new _.Hx("DOWNLOADS_ENTITY_TYPE_MAP");waG=_.I8("","downloadsPageViewConfigurationEntity");PMv=_.I8("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.gUB=_.I8("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.I8("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.I8("SMART_DOWNLOADS_ENABLED","settingEntity");_.I8("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var RiL=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var zi6=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var CMI={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var dw,iLI,h3r,F6u;dw=window;_.K8=dw.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.bpq=dw.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.jl;iLI=dw.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||O1;h3r=dw.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||l8o;_.tiI=dw.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.dVI;F6u=dw.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Sfr;yK({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 Hpe=AIq(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(Y){return Y}}}),j4g=AIq(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(Y){return Y}}}),jUL=new Map;var fCM=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],YLv;var R9o=function(Y){return _.Uf({type:"SET_EPHEMERAL_ACTION",payload:Y})};var dTC={ephemeralAction:null};var FAt={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var MFI={sharedUi:function(Y,b){Y=Y===void 0?FAt:Y;switch(b.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},Y,{animatedThumbnailEnabled:b.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},Y,{inlinePreviewEnabled:b.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},Y,{currentPageType:b.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},Y,{currentPageSubType:b.payload});default:return Y}},
a11y:kL({ephemeralAction:function(Y,b){Y=Y===void 0?dTC.ephemeralAction:Y;switch(b.type){case "SET_EPHEMERAL_ACTION":return b.payload;default:return Y}}})};var DPt={playlistId:"",inviteLinkURL:""};var LA9={};var qLM=kL({continuationCommand:function(Y,b){Y=Y===void 0?LA9:Y;switch(b.type){case "SET_CONTINUATION_COMMAND":return b.payload.continuationCommand;default:return Y}}});var oVb={currentFormId:"",commandsMap:{}};var sCu=kL({isLeaderTab:function(Y,b){Y=Y===void 0?!0:Y;switch(b.type){case "SET_IS_LEADER_TAB":var w,V;return(V=b==null?void 0:(w=b.payload)==null?void 0:w.isLeaderTab)!=null?V:Y;default:return Y}}});var SUk=function(Y){return _.Uf({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:Y}})};var nVB=kL({isDesktopSmallWidth:function(Y,b){switch(b.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return b.payload.isDesktopSmallWidth;default:return Y===void 0?!1:Y}},
isShortsActive:function(Y,b){switch(b.type){case "SET_IS_SHORTS_ACTIVE":return b.payload.isShortsActive;default:return Y===void 0?!1:Y}},
isWatchWhileMode:function(Y,b){switch(b.type){case "SET_IS_WATCH_WHILE_MODE":return b.payload.isWatchWhileMode;default:return Y===void 0?!1:Y}},
playerState:function(Y,b){switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return Y===void 0?-1:Y}},
isFullscreen:function(Y,b){switch(b.type){case "SET_IS_FULLSCREEN":return b.payload.isFullscreen;default:return Y===void 0?!1:Y}},
isSmallScreenSqueezeback:function(Y,b){switch(b.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return b.payload.isSmallScreenSqueezeback;default:return Y===void 0?!1:Y}},
isShortsPipActive:function(Y,b){switch(b.type){case "SET_IS_SHORTS_PIP_ACTIVE":return b.payload.isShortsPipActive;default:return Y===void 0?!1:Y}},
isPlaybackStarted:function(Y,b){switch(b.type){case "SET_IS_PLAYBACK_STARTED":return b.payload.isPlaybackStarted;default:return Y===void 0?!1:Y}}});var pBI=function(){return function(Y){return function(b){var w=Y(b);_.Xx(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[b],!0);return w}}};var aLI,d0K;aLI=new _.mD;_.EH=new _.Hx("WATCH_PLAYER_PROMISE_TOKEN");_.rBU=new _.mD;_.z9$=new _.Hx("SHORTS_PLAYER_PROMISE_TOKEN");d0K=new _.Hx("");var Opr=function(){return function(Y){return function(b){b.type==="ENTITY_LOADED"&&_.fH().resolve(_.EH).then(function(w){var V;(V=w.dispatchReduxAction)==null||V.call(w,b)});
return Y(b)}}};var WAj={};var QCr=kL({additionalContext:function(Y,b){switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var w;return(w=b.payload)!=null?w:"";default:return Y===void 0?"":Y}},
impersonatedChannelUrl:function(Y,b){switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var w;return(w=b.payload)!=null?w:"";default:return Y===void 0?"":Y}},
selectedVideoIds:function(Y,b){Y=Y===void 0?WAj:Y;switch(b.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var w={};return Object.assign({},Y,(w[b.payload]=!0,w));case "VIDEO_UNSELECTED":return b=b.payload,Y=Object.assign({},Y),delete Y[b],Y;default:return Y}}});var vVb=kL({parentClickTrackingParams:function(Y,b){switch(b.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return b.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return Y===void 0?"":Y}}});var KAQ=function(Y){return _.Uf({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:Y})};var iUo={};var Py6=kL({stepStates:function(Y,b){Y=Y===void 0?iUo:Y;switch(b.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var w=Y,V=b.payload,H,f,E;Y={};b={selectionStates:Object.assign({},(E=(H=w[V.stepId])==null?void 0:H.selectionStates)!=null?E:{},(Y[V.token]={isSelected:V.isSelected},Y)),userQuery:(f=w[V.stepId])==null?void 0:f.userQuery};H={};return Object.assign({},w,(H[V.stepId]=b,H));case "TALK_TO_RECS_UPDATE_USER_QUERY":return H=Y,f=b.payload,E={selectionStates:Object.assign({},
(V=(w=H[f.stepId])==null?void 0:w.selectionStates)!=null?V:{}),userQuery:{userQuery:f.userQuery,token:f.userQueryToken}},w={},Object.assign({},H,(w[f.stepId]=E,w));default:return Y}}});var ABj,Ch5,$Tj;ABj=function(Y){return _.Uf({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:Y})};
Ch5=function(Y){return _.Uf({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:Y})};
_.F5=function(Y){return _.Uf({type:"SET_CURRENT_PAGE_TYPE",payload:Y})};
_.yBr=function(Y){return _.Uf({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:Y})};
$Tj=function(Y){return _.Uf({type:"SET_CHIP_BAR_IS_STICKY",payload:Y})};var kFM={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"};_.jH_=function(Y){return _.Uf({type:"SET_PLAYER_STATE",payload:{playerState:Y}})};var G8$=[],T0K={width:0,height:0};var Zpa=kL({isTheaterMode:function(Y,b){Y=Y===void 0?_.q("kevlar_disable_theater_mode_persistence")?!1:_.Wf("START_IN_THEATER_MODE"):Y;switch(b.type){case "SET_IS_THEATER_MODE":return b.payload.isTheaterMode;default:return Y}},
isWatchActive:function(Y,b){switch(b.type){case "SET_IS_WATCH_ACTIVE":return b.payload.isWatchActive;default:return Y===void 0?!1:Y}},
isLearningJourneyActive:function(Y,b){switch(b.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return b.payload.isLearningJourneyActive;default:return Y===void 0?!1:Y}},
isWatchFullscreen:function(Y,b){switch(b.type){case "SET_IS_WATCH_FULLSCREEN":return b.payload.isWatchFullscreen;default:return Y===void 0?!1:Y}},
isWatchNarrowWidth:function(Y,b){switch(b.type){case "SET_IS_WATCH_NARROW_WIDTH":return b.payload.isWatchNarrowWidth;default:return Y===void 0?!1:Y}},
isWatchRetroMode:function(Y,b){switch(b.type){case "SET_IS_WATCH_RETRO_MODE":return b.payload.isWatchRetroMode;default:return Y===void 0?!1:Y}},
isLiveChatCollapsed:function(Y,b){switch(b.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return b.payload.isLiveChatCollapsed;default:return Y===void 0?!1:Y}},
openEngagementPanels:function(Y,b){Y=Y===void 0?G8$:Y;var w=[].concat(_.Bt(Y));switch(b.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return w.push(b.payload.panelToAdd),w;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return w.splice(w.indexOf(b.payload.panelToRemove),1),w;default:return Y}},
playerState:function(Y,b){switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return Y===void 0?-1:Y}},
watchScrollTop:function(Y,b){switch(b.type){case "SET_WATCH_SCROLL_TOP":return b.payload.watchScrollTop;default:return Y===void 0?0:Y}},
watchWindowSize:function(Y,b){Y=Y===void 0?T0K:Y;switch(b.type){case "SET_WATCH_WINDOW_SIZE":return b.payload.watchWindowSize;default:return Y}}});var JBo={feedbackTokens:[]};var Bw6=kL({surveyFeedbackData:function(Y,b){Y=Y===void 0?JBo:Y;switch(b.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return b.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},Y,b.payload);default:return Y}}});var hJa={};var RJ6=void 0;_.q("web_enable_redux_store_on_demand")||(RJ6=tFI());var uXj=function(Y,b,w){var V=this;this.listId=Y;this.JSC$10793_updateCallback=b;this.isOfflineVideoCallback=w;_.u3().subscribe(function(){V.handleUpdate()})};
uXj.prototype.getPlaylistData=function(){var Y=_.u3().getState().entities;if(this.listId&&this.listId!=="PPSV"){var b=dMa(Y,this.listId,!0),w=_.I8(this.listId,"mainPlaylistEntity"),V,H;Y=Y==null?void 0:(V=Y.mainPlaylistEntity)==null?void 0:(H=V[w])==null?void 0:H.title;return dPI(b,Y,this.listId)}b=_.hzv(cIv(Y));Y=_.hzv(_.Of(Y));return dPI(b.concat(Y))};
uXj.prototype.getPlaylistId=function(){return this.listId};
uXj.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10793_updateCallback(this.listId,this.getPlaylistData(),{})};var F9=function(Y,b,w,V){V=V===void 0?[]:V;this.JSC$10796_playlistNetworkManager=Y;this.listId=b;this.JSC$10796_updateCallback=w;this.videoIds=V;this.pendingUpdates=[];this.currentIndex=0};
F9.prototype.JSC$10796_setCurrentIndex=function(Y){this.currentIndex=Y};
F9.prototype.setListId=function(Y){this.listId=Y};
var Ye_=function(Y,b){Y.currentCreateRequest&&Y.currentCreateRequest.cancel(b);Y.currentUpdateRequest&&Y.currentUpdateRequest.cancel(b);Y.currentRefreshRequest&&Y.currentRefreshRequest.cancel(b)};
F9.prototype.delete=function(){Ye_(this,"PROXY DELETED")};
F9.prototype.addVideos=function(Y,b,w){var V=this;w!==void 0?this.videoIds.splice.apply(this.videoIds,[w,0].concat(_.Bt(Y))):this.videoIds.push.apply(this.videoIds,_.Bt(Y));this.listId||this.currentCreateRequest?(Y.forEach(function(H,f){H={addedVideoId:H,action:"ACTION_ADD_VIDEO"};w&&(H.addedVideoPosition=w+f);V.pendingUpdates.push(H)}),Lp(this)):b$k(this,b.onCreateListCommand)};
var wR8=function(Y,b,w,V,H){vbe(Y.videoIds,b,w);b>Y.currentIndex&&w<=Y.currentIndex?Y.JSC$10796_setCurrentIndex(Y.currentIndex+1):b===Y.currentIndex?Y.JSC$10796_setCurrentIndex(w):b<Y.currentIndex&&w>=Y.currentIndex&&Y.JSC$10796_setCurrentIndex(Y.currentIndex-1);Y.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:V,movedSetVideoIdPredecessor:H});Lp(Y)},b$k=function(Y,b){Ye_(Y,"OBSOLETE");
Y.currentCreateRequest=VgQ(Y.JSC$10796_playlistNetworkManager,b,Y.videoIds);_.OV(Y.currentCreateRequest,function(){Y.currentCreateRequest=void 0}).then(function(w){Y.setListId(w.playlistId);
Y.pendingUpdates.length>0?Lp(Y):H$$(Y)})},Lp=function(Y){if(Y.pendingUpdates.length!==0&&(Y.currentRefreshRequest&&Y.currentRefreshRequest.cancel("OBSOLETE"),!Y.currentUpdateRequest&&!Y.currentCreateRequest)){var b=Y.pendingUpdates.splice(0,Y.pendingUpdates.length);
Y.currentUpdateRequest=Y.JSC$10796_playlistNetworkManager.updatePlaylist(Y.listId,b);_.OV(Y.currentUpdateRequest,function(){Y.currentUpdateRequest=void 0}).then(function(){Y.pendingUpdates.length>0?Lp(Y):H$$(Y)}).thenCatch(function(){Y.pendingUpdates.unshift.apply(Y.pendingUpdates,_.Bt(b))})}},H$$=function(Y){Y.currentRefreshRequest=_.g15(Y.JSC$10796_playlistNetworkManager,Y.listId,Y.currentIndex,Y.videoIds[Y.currentIndex]);
_.OV(Y.currentRefreshRequest,function(){Y.currentRefreshRequest=void 0}).then(function(b){Y.JSC$10796_updateCallback(b.playlistId,b.playlistPanelRenderer,b.autoplayRenderer)})};
F9.prototype.size=function(){return this.videoIds.length};var fa_=function(Y,b,w,V){V=V===void 0?[]:V;F9.call(this,Y,b,w,V);this.JSC$10796_playlistNetworkManager=Y;this.listId=b;this.JSC$10796_updateCallback=w;this.videoIds=V};
_.P(fa_,F9);_.SF=function(Y,b,w,V,H,f,E){H=H===void 0?[]:H;E=E===void 0?X6:E;F9.call(this,Y,b,w,H);this.JSC$10796_playlistNetworkManager=Y;this.listId=b;this.JSC$10796_updateCallback=w;this.onAuthChange=V;this.videoIds=H;this.storage=f;this.cookieReader=E;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Xl(_.Lb,this.checkLoggedInStatusChange.bind(this),1E3)};
_.P(_.SF,F9);_.g=_.SF.prototype;_.g.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Xl(_.Lb,this.checkLoggedInStatusChange.bind(this),1E3)};
_.g.JSC$10796_setCurrentIndex=function(Y){F9.prototype.JSC$10796_setCurrentIndex.call(this,Y);this.store()};
_.g.delete=function(){_.Lb.cancelJob(this.queueSapisIdJob);F9.prototype.delete.call(this)};
_.g.setListId=function(Y){F9.prototype.setListId.call(this,Y);this.store()};
_.g.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var NQ_=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],E1r=["playerResponse","videoDetails"],cmj=["response","currentVideoEndpoint","watchEndpoint","videoId"],U7I=["response","currentVideoEndpoint","watchEndpoint","playlistId"],XRI=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],D7Q=["response","contents","twoColumnWatchNextResults","playlist","playlist"],m7k=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
o1r=["response","contents","twoColumnWatchNextResults"];var aC={},r4b=(aC.WEB_UNPLUGGED="^unplugged/",aC.WEB_UNPLUGGED_ONBOARDING="^unplugged/",aC.WEB_UNPLUGGED_OPS="^unplugged/",aC.WEB_UNPLUGGED_PUBLIC="^unplugged/",aC.WEB_CREATOR="^creator/",aC.WEB_KIDS="^kids/",aC.WEB_EXPERIMENTS="^experiments/",aC.WEB_MUSIC="^music/",aC.WEB_REMIX="^music/",aC.WEB_MUSIC_EMBEDDED_PLAYER="^music/",aC.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",aC);var QGg,VgQ;QGg=function(Y,b){this.networkManager=Y;this.innertubeTransportService=b};
VgQ=function(Y,b,w){if(!_.v(b,_.AI))return _.OQ(Error("Gf"));_.v(b,_.AI).videoIds=w;w={create_playlist_title:_.sa("QUEUE",void 0,"Queue")};return SLv(_.$_(Y.innertubeTransportService,b,w),FoI)};
_.g15=function(Y,b,w,V){b={videoId:V,playlistId:b,playlistIndex:w};w=_.Yy(oX$);return SLv(_.rw(Y.innertubeTransportService,b,w),aCv)};
QGg.prototype.updatePlaylist=function(Y,b){return SLv(_.$_(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:Y,actions:b}}),LoG)};var Iad=function(Y){this.storage=Y},ksQ;
Iad.prototype.store=function(Y,b){b=b===void 0?0:b;if(this.storage&&Y.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",Y),this.storage.set("TLPQindex",String(b)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(w){}};
Iad.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Iad.prototype.getPlaylistId=function(){if(!this.storage)return null;var Y=null;try{Y=this.storage.get("TLPQplaylist")}catch(b){}return Y};var ipB=["navigationEndpoint","watchEndpoint","videoId"],KoL=["nextButtonVideo","watchEndpoint","videoId"];_.LX=new _.Hx("NETWORK_TOKEN");_.bX=new _.Hx("PAGE_TOKEN");_.zF=new _.Hx("PLAYLIST_TOKEN");var laI;laI=new _.Hx("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Sy=new _.Hx("INNERTUBE_TRANSPORT_TOKEN");var h1C,WB,qeQ,sxU,v1I,P5C;h1C=new Set(["ci","cr","carml"]);WB=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10843_parkedJobs=new Map;this.parkedProcessors=new Map};
_.Kp=function(){WB.instance||(WB.instance=new WB);return WB.instance};
WB.prototype.onAny=function(Y){return _.x7o(this,Y,2)};
WB.prototype.parkOrScheduleJob=function(Y,b,w,V,H){_.iy(this,w)?_.dp().addJob(Y,b,V):(H&&(Y=qeQ(Y),sxU(this,Y,b,w,H)),H=this.JSC$10843_parkedJobs.get(w),H||(this.JSC$10843_parkedJobs.set(w,[]),H=this.JSC$10843_parkedJobs.get(w)),H.push({job:Y,priority:b,delay:V}))};
WB.prototype.addListener=function(Y,b,w){w&&(b=qeQ(b),sxU(this,b,0,Y,w));w=this.parkedProcessors.get(Y);w||(this.parkedProcessors.set(Y,[]),w=this.parkedProcessors.get(Y));w.push(b)};
WB.prototype.processSignal=function(Y){if(!_.iy(this,Y)){this.inProgressSignals.add(Y);var b=this.JSC$10843_parkedJobs.get(Y);if(b){b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,_.dp().addJob(w.job,w.priority,w.delay);this.JSC$10843_parkedJobs.delete(Y)}if(b=this.parkedProcessors.get(Y)){b=_.N(b);for(w=b.next();!w.done;w=b.next())w=w.value,w();this.parkedProcessors.delete(Y)}this.signals.push(Y);this.inProgressSignals.delete(Y)}};
_.iy=function(Y,b){return h1C.has(b)||_.Wf("IS_HOMEPAGE_COLD")||_.Wf("IS_RESULTS_PAGE_COLD")||_.Wf("IS_WATCH_PAGE_COLD")?Y.signals.indexOf(b)>=0:!0};
qeQ=function(Y){var b=!1;return function(){b||(b=!0,Y())}};
sxU=function(Y,b,w,V,H){if(Qx8.has(V))_.dp().addJob(b,w,H);else{var f=Y.compoundSignals.get(V);f&&_.dp().addJob(function(){_.iy(Y,V)||(f.isTimeoutConditionSatisfied?_.dp().addJob(b,w):f.timeoutConditionObservers.push(function(){_.dp().addJob(b,w)}))},w,H)}};
_.x7o=function(Y,b,w){if(b.length>1){var V=[],H=Object.create(null);b=_.N(b);for(var f=b.next();!f.done;f=b.next())f=f.value,H[f]||(V.push(f),H[f]=!0);b=V}if(b.length===1)return b[0];f=b;V="";H=w===2?"|":"&";f.sort();f=_.N(f);for(var E=f.next();!E.done;E=f.next())V+=E.value+H;if(!Y.compoundSignals.get(V)){H=0;f=[];E=_.N(b);for(var U=E.next();!U.done;U=E.next())U=U.value,H++,_.iy(Y,U)||f.push(U);(w=w===2)&&H>f.length||!w&&!f.length?Y.signals.push(V):v1I(Y,V,w,b,f)}return V};
v1I=function(Y,b,w,V,H){var f=H.length,E=function(){w||--f===0?Y.processSignal(b):P5C(Y,b)};
H=_.N(H);for(var U=H.next();!U.done;U=H.next())Y.addListener(U.value,E);Y.compoundSignals.set(b,{signals:V,isOnAny:w,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});P5C(Y,b)};
P5C=function(Y,b){if(!_.iy(Y,b)){var w=Y.compoundSignals.get(b);if(w&&!w.isTimeoutConditionSatisfied){for(var V=!1,H=0,f=0,E=_.N(w.signals),U=E.next();!U.done;U=E.next()){var X=U.value;U=!_.iy(Y,X);Qx8.has(X)?V=!0:(X=Y.compoundSignals.get(X))?U&&!X.isTimeoutConditionSatisfied&&(f++,w.isInitialized||X.timeoutConditionObservers.push(function(){P5C(Y,b)})):U&&H++}w.isInitialized=!0;
w.isOnAny?V&&(w.isTimeoutConditionSatisfied=!0):H===0&&f===0&&(w.isTimeoutConditionSatisfied=!0);if(w.isTimeoutConditionSatisfied)for(w=_.N(w.timeoutConditionObservers),V=w.next();!V.done;V=w.next())V=V.value,V()}}};
WB.prototype.processSignal=WB.prototype.processSignal;WB.prototype.parkOrScheduleJob=WB.prototype.parkOrScheduleJob;WB.prototype.onAny=WB.prototype.onAny;_.wG("ytsignals.getInstance",_.Kp);WB.prototype.onAny=WB.prototype.onAny;WB.prototype.parkOrScheduleJob=WB.prototype.parkOrScheduleJob;WB.prototype.processSignal=WB.prototype.processSignal;var Qx8=new Set(["eop","eocs","dl","pcl"]);_.Ck=new _.Hx("MINIPLAYER_SERVICE");var A4,Z$_,BQt;A4=function(Y,b,w){var V=_.CB.getInstance();if(!ksQ){var H=new kGu;var f=void 0,E=_.zO("ID_TOKEN");E&&H.isAvailable()&&(f=new pH(H,"yt-queue"+E));ksQ=new Iad(f)}H=ksQ;f=_.Kp();this.JSC$10850_actionRouter=V;this.pageManager=Y;this.playlistManager=b;this.JSC$10850_playlistNetworkManager=w;this.storage=H;this.signals=f;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Cp=function(){if(!Z$_){var Y=_.fH(),b=Y.resolve(_.HQ(_.bX)),w=Y.resolve(_.HQ(_.LX)),V=Y.resolve(_.HQ(_.zF));Y=Y.resolve(_.Sy);Z$_=new A4(b,V,new QGg(w,Y))}return Z$_};
BQt=function(Y,b,w){if(w){var V;if(((V=Y.responsePlaylistData)==null?void 0:V.playlistId)!==w)return}Y.responsePlaylistData&&(w=GF6(b,Y.responsePlaylistData),Y.responsePlaylistData=(0,_.BL.unsafeClone)(Y.responsePlaylistData),J4B(Y.responsePlaylistData,w));w=Y.temporaryItems.findIndex(function(H){return H.videoId===b});
w>-1&&Y.temporaryItems.splice(w,1);_.yy(Y,_.$V(Y,Y.response?Y.response.autoplayRenderer:void 0))};
_.n19=function(Y,b){if(Y.responsePlaylistData){var w=Twr(b,Y.responsePlaylistData);J4B(Y.responsePlaylistData,w);if(Y.queueProxy){var V=Y.queueProxy;w<0||(V.videoIds.splice(w,1),w<V.currentIndex&&V.JSC$10796_setCurrentIndex(V.currentIndex-1),V.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:b}),Lp(V))}}_.yy(Y,_.$V(Y,Y.response?Y.response.autoplayRenderer:void 0))};
A4.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.yy(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
A4.prototype.setPlaylistData=function(Y,b,w){this.temporaryItems=[];this.listId=Y;this.responsePlaylistData=b;_.yy(this,_.$V(this,w))};
var Mg8=function(Y){return(Y==null?0:Y.playlistId)?Y.playlistId:"PPSV"},e1k=function(Y){return Y&&Y.playlistId?Y.playlistId==="PPSV"?!0:tce(_.u3().getState().entities,Y.playlistId):!1};
A4.prototype.isPlayingOfflineVideo=function(){return this.response?e1k(this.response):!1};
A4.prototype.closeMiniplayer=function(Y){var b=this.queueProxy&&this.queueProxy.size()<=1,w=_.fH().resolve(_.Ck);if(!this.queueProxy||b)this.queueProxy&&this.clearQueue(),w.close(!0);else{w.pipController.getWindow()&&window.focus();b=this.responsePlaylistData;var V=this.temporaryItems.length+(b&&b.contents?b.contents.length:0);b=_.sa("QUEUE_CLEARED_UNPLURALIZED")||_.QX("QUEUE_CLEARED",V);b=_.wr(b);w=_.sa("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");V=_.sa("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.QX("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",V);var H=_.sa("MINIPLAYER_CLOSE",void 0,"Close"),f=_.sa("CANCEL",void 0,"Cancel");_.a5(this.JSC$10850_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Gx(w),dialogMessages:[_.Gx(V)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gx(H),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
b]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Gx(f)}}}}}}],Y)}};
_.$V=function(Y,b){var w={},V=Y.response;w.autoplayRenderer=b;if(!Y.responsePlaylistData&&!Y.temporaryItems.length)return!V||!V.hasRelatedVideoData&&_.q("kevlar_prefetch_data_augments_network_data")||(w.playerData={rvs:V.relatedVideoArgs,endScreenRenderer:V.endScreenRenderer}),w;w.playerData={};if(Y.index===void 0)return _.Ft(Error("If")),w;w.panel=Y.responsePlaylistData?(0,_.BL.unsafeClone)(Y.responsePlaylistData):{titleText:_.Gx(_.sa("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
b=w.panel;if(b.contents)for(var H=_.N(Y.temporaryItems),f=H.next();!f.done;f=H.next())b.contents.push({playlistPanelVideoRenderer:f.value});Y.queueProxy&&V&&V.playingVideo&&V.playingVideoId&&!jCu(V.playingVideoId,w.panel)&&(b=V.playingVideo,H=w.panel,f=Y.index,H.contents&&H.contents.splice(f===void 0?0:f,0,{playlistPanelVideoRenderer:b}));V&&V.playingVideoId&&(b=Y.index,H=w.panel,b=!H.contents||b>=H.contents.length?void 0:H.contents[b].playlistPanelVideoRenderer,b&&b.videoId===V.playingVideoId||(b=
GF6(V.playingVideoId,w.panel),Y.index=b!==-1?b:Y.index?Y.index-1:0));b=$PB(Y.index+1,w.panel);H=void 0;Y.index>0&&(H=$PB(Y.index-1,w.panel));if(H||b)w.autoplayRenderer=A4I(b,H,w.autoplayRenderer);!b&&(V==null?0:V.relatedVideoArgs)&&(w.playerData.rvs=V.relatedVideoArgs);V=V?V.playlistIndexOffset:0;Y.queueProxy?bZM(w.panel,Y.index,V,y4b,!0,!0,!0):bZM(w.panel,Y.index,V);w.playerData.playlistPanelRenderer=w.panel;return w};
A4.prototype.openToast=function(Y){_.fH().resolve(_.Ck).openToast(Y,_.sa("ADDED_TO_QUEUE",void 0,"Added to queue"))};
A4.prototype.isMiniplayerActive=function(){return _.fH().resolve(_.Ck).isMiniplayerActive()};
_.yy=function(Y,b){Y.playlistManager.setAutoplayRenderer(b.autoplayRenderer||null);Y.playlistManager.setPlaylistData(b.panel||null);b.playerData&&Y.playlistManager.setPlayerPlaybackControlData(b.playerData)};var VHI="#";var pRo={},O$Q={},tg$={},R19={},d7C={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:(pRo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",pRo),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:(O$Q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",O$Q),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:(tg$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",tg$),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:(R19.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",R19),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 ac6=[{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:d7C},{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:d7C}}];var MHg;_.D8=[[["Nm5id2h2a2luZCM4ZmdnMXg=","ZXZhbHVlIzk2Y2JvbjgwMXcz"],"X1NUQVJUI25hMzludTZsYWpieEFEX1BMQUNFTUVOVF9LSU5E"]];
MHg=[[["NTl3ZnpjbW5pNXlwcmltYXJ5IzQ=",null,null],[null,["dW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2U2YnM1eXJvOHZ1N3l0ZC10d28tY29s","LXNjb3BlI3hrNW5oaWdqMWc5aXN0eWxl"],null],["ZWFkLWFkI3NuajYwdWRsODhiMW1hc3Ro",["cmVuZGVyZXIjNTlhaDMwaTRxejJyeXRkLXJpY2gtZ3JpZC0="],null],[null,["cmVuZGVyZXIjdmZpNzF2NzBydjV6eXRkLXJpY2gtZ3JpZC0=","LXNjb3BlIzdkNXgxdjQ3eDllNnN0eWxl"],null],[null,["ZXIjdmowa3Z5YW5jd3ZheXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","LXNjb3BlIzZ1ZnBpZ3k3Zng0MHN0eWxl"],null],[null,["bG90LXJlbmRlcmVyIzNtZGVpM2FqeXN0eHl0ZC1hZC1z"],
null]],[["bGF5ZXItYWRzI241amk2cTkybWZrZXA=",null,null]]];_.X2=["c25uanE4aWdsb2JhbENhbGxiYWNrcyNpY3M3Mg==","YWxpdHlEZXRlY3RlZCN0cm4xOTU5ajlld29uQWJub3Jt","dmQ3dTlyZm9uQWRTa2lwI2hmenFq","bGF5ZXJfcmVzcG9uc2UjMWdvd3YyY3VlMnVkcmF3X3A=","a2NkdTdwZ2gxdDNhZFNsb3RzI2k="];_.jF="c25uanE4aWdsb2JhbENhbGxiYWNrcyNpY3M3Mg== YWxpdHlEZXRlY3RlZCN0cm4xOTU5ajlld29uQWJub3Jt dmQ3dTlyZm9uQWRTa2lwI2hmenFq bGF5ZXJfcmVzcG9uc2UjMWdvd3YyY3VlMnVkcmF3X3A= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3Mjc2JjbnZ3aXU0YW52d2ViX3BsYQ== OHBycGRhdmFiX3NhX2VmIzlsOTZr a2NkdTdwZ2gxdDNhZFNsb3RzI2k=".split(" ");var GF;GF=function(Y,b,w){this.dU4=Y;this.isAsync=b;this.nVp=w};
_.TWb=[new GF("b.f_",!1,0),new GF("j.s_",!1,2),new GF("r.s_",!1,4),new GF("e.h_",!1,6),new GF("i.s_",!0,8),new GF("s.t_",!1,10),new GF("p.h_",!1,12),new GF("s.i_",!1,14),new GF("f.i_",!1,16),new GF("a.b_",!1,18),new GF("a.o_",!1),new GF("g.o_",!1,22),new GF("p.i_",!1,24),new GF("p.m_",!1),new GF("n.k_",!0,20),new GF("i.f_",!1),new GF("a.s_",!0),new GF("m.c_",!1),new GF("n.h_",!1,26),new GF("o.p_",!1),new GF("m.p_",!0,28),new GF("o.a_",!1),new GF("d.p_",!1),new GF("e.i_",!1)].reduce(function(Y,b){Y[b.dU4]=
b;return Y},{});var Fn9=function(){};
Fn9.prototype.flush=function(Y,b){Y=Y===void 0?[]:Y;b=b===void 0?!1:b;if(_.q("enable_client_streamz_web")){Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=Kdd(w.value),this.rootSpec&&_.HN(w,2,this.rootSpec),w={serializedIncrementBatch:_.YM(w.JSC$7644_serializeBinary())},_.RY("streamzIncremented",w,{sendIsolatedPayload:b})}};
var NWu=function(){};
_.P(NWu,Fn9);var LnQ=function(Y){var b=new Fd9;var w=new tXK;w=_.hP(w,1,"botguard");Y=_.hP(w,2,Y);this.rootSpec=_.gE(b,1,LdC,Y)};
_.P(LnQ,Fn9);var EC,Se5=new Map;var tHu,cWv,hhK,DxG,Ice,BWv,dxr,P4q;tHu=2;cWv=2;hhK=2;DxG=2;Ice=2;BWv=2;dxr=2;P4q=new alC;var rm8,z1o,Wnt;rm8=function(){this.ongoingFlowNonces=new Map};
_.ky=function(){z1o||(z1o=new rm8);return z1o};
_.oA=function(Y,b,w){return{eventType:{flowEventNamespace:Y,flowEventType:b},metadata:w,statusCode:void 0,csn:void 0,can:void 0}};
_.uc6=function(Y,b){var w=_.ky(),V=Wnt(w,b,!0);_.IA(w,Y,b,V)};
_.IA=function(Y,b,w,V){Y={flowNonce:V||Wnt(Y,w),flowType:w,flowEventType:b.eventType};b.metadata&&(Y.flowMetadata=b.metadata);b.statusCode!==void 0&&(Y.flowEventStatus=b.statusCode);b.csn&&(Y.csn=b.csn);b.can&&(Y.can=b.can);_.RY("flowEvent",Y,void 0)};
Wnt=function(Y,b,w){w=w===void 0?!1:w;var V=Y.ongoingFlowNonces.get(b);if(!V||w)V=OD(16),Y.ongoingFlowNonces.set(b,V);return V};_.Kno=new SxQ;var VoG={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var TF=function(Y,b,w,V,H,f,E){w=w===void 0?!1:w;V=V===void 0?!1:V;f=f===void 0?_.Cp():f;this.hasRun=!1;this.jnp=Y;this.h9l=b;this.ct2=w;this.fromHistory=V;this.previousVideoId=H;this.mcu=f;this.tempData=E;this.iWe=new _.rpo};
_.P(TF,HB);TF.prototype.validate=function(Y){return!(!Y.data.playerResponse||Y.data.page!=="watch"&&Y.data.page!=="learning_journey_watch"&&Y.data.page!=="shorts"||this.hasRun)};
TF.prototype.handle=function(Y){var b=this,w=_.v(Y.endpoint,_.TG),V=_.v(Y.endpoint,_.BH);if(_.q("kevlar_continue_playback_without_player_response")&&(w==null?0:w.videoId)&&this.previousVideoId&&(w==null?void 0:w.videoId)===this.previousVideoId&&(w==null?0:w.continuePlayback)&&!this.fromHistory)this.jnp.resolve();else{var H={};w?H.watch_endpoint=w:V&&(H.watch_endpoint=V,V.endTimeSeconds&&(H.end=V.endTimeSeconds));Y.data.page==="watch"?(Y.data.filler||this.ct2||(_.aP("cfg"),_.CB.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(H,i$I(this,Y.endpoint)),_.q("enable_masthead_quartile_ping_fix")&&Object.assign(H,Amo(this)),Object.assign(H,void 0),Y.data.forceExternalPlaylist&&(H.external_list=!0)):Y.data.page==="shorts"?_.CB.getInstance().triggerAction("yt-start-loading-shorts"):Y.data.page==="learning_journey_watch"&&_.CB.getInstance().triggerAction("yt-start-loading-learning-journey");if(w=this.h9l()){try{w.loadVideoWithPlayerResponse(Y.data.playerResponse,H),w.getPlayerPromise().then(this.jnp.resolve)}catch(f){_.Ft(f),
this.jnp.resolve()}this.hasRun=!0;w.getPlayerPromise().then(function(f){f.addEventListener("onAbnormalityDetected",function(){var E=Y.data.playerResponse,U=f.getVideoData().cpn;dxr=0;_.aaC=U;if(U=GWK(E))b.iWe.increment("IN_PLAYER"),_.lW(5),_.q("ab_st_vid_ks")?f.pauseVideo(!0):f.stopVideo(),E.playabilityStatus=Object.assign({},E.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:U}}),E.videoDetails=void 0,_.CB.getInstance().triggerOptionalAction("yt-updated-playability-status",
E.playabilityStatus)})})}else _.Sk(Error("Lf"))}};
var i$I=function(Y,b){var w=_.v(b,_.TG);if(b&&w&&w.playlistId&&w.videoId&&(Y=Y.mcu,Y.queueProxy?(Y=Y.queueProxy,w=Y.listId===w.playlistId?Y.attributionData.get(w.videoId):void 0):w=void 0,w))return{queue_info:w}},Amo=function(Y){var b;
if((b=Y.tempData)==null?0:b.adpings)return{adpings:Y.tempData.adpings}};var J4=function(Y,b,w){this.hasRun=!1;this.ejC=Y;this.mpj=b;this.fS6=w};
_.P(J4,HB);J4.prototype.validate=function(Y){return!!_.BL.getValueByKeys.apply(null,[Y.data].concat(_.Bt(o1r)))};
J4.prototype.handle=function(Y){var b=this;this.ejC.promise.then(function(){var w=Y.data;var V=_.BL.getValueByKeys.apply(null,[w].concat(_.Bt(NQ_))),H=_.BL.getValueByKeys.apply(null,[w].concat(_.Bt(D7Q))),f=_.BL.getValueByKeys.apply(null,[w].concat(_.Bt(cmj)));var E=(E=_.BL.getValueByKeys.apply(null,[w].concat(_.Bt(E1r))))?{videoId:E.videoId,thumbnail:E.thumbnail,title:E.title?_.Gx(E.title):void 0,shortBylineText:E.author?_.Gx(E.author):void 0}:void 0;var U=void 0;_.q("web_get_playlist_id_from_current_endpoint_ks")||
(U=_.BL.getValueByKeys.apply(null,[w].concat(_.Bt(U7I))));var X=_.BL.getValueByKeys.apply(null,[w].concat(_.Bt(m7k))),I=_.BL.getValueByKeys.apply(null,[w].concat(_.Bt(XRI))),k=!!X||!!I&&!!I.results&&I.results.length>0,l=0;H&&H.currentIndex&&H.localCurrentIndex&&(l=H.currentIndex-H.localCurrentIndex);H&&H.playlistId&&(U=H.playlistId);w={rawResponse:w,autoplayRenderer:V,hasRelatedVideoData:k,playingVideo:E,playingVideoId:f,playlistPanelRenderer:H,playlistId:U,playlistIndex:H&&H.currentIndex,relatedVideoArgs:X,
endScreenRenderer:I,playlistIndexOffset:l};a:{V=b.fS6;H=b.mpj;V.response=w;if(e1k(w))V.downloadPlaylistProxy&&V.downloadPlaylistProxy.getPlaylistId()===Mg8(w)||(V.downloadPlaylistProxy=new uXj(Mg8(w),V.setPlaylistData.bind(V),V.isPlayingOfflineVideo.bind(V))),V.responsePlaylistData=V.downloadPlaylistProxy.getPlaylistData(),V.listId=Mg8(w),V.index=0;else if(w.playlistPanelRenderer&&w.playlistId&&w.autoplayRenderer)w.playlistId.startsWith("TLPQ")?V.queueProxy?V.listId===w.playlistId?(V.index=w.playlistIndex,
V.responsePlaylistData=w.playlistPanelRenderer,V.queueProxy.JSC$10796_setCurrentIndex(V.index)):w.playingVideoId&&V.index!==void 0&&H.clientParams.autoSaveToQueue&&(V.index+=1,V.queueProxy.JSC$10796_setCurrentIndex(V.index),V.queueProxy.addVideos([w.playingVideoId],{},V.index)):(V.queueProxy=new _.SF(V.JSC$10850_playlistNetworkManager,w.playlistId,V.setPlaylistData.bind(V),V.clearQueue.bind(V),_.u9L(w.playlistPanelRenderer),V.storage),V.responsePlaylistData=w.playlistPanelRenderer,V.listId=w.playlistId,
V.index=w.playlistIndex):(V.index=w.playlistIndex,V.listId!==w.playlistId&&V.clearQueue(),V.responsePlaylistData=w.playlistPanelRenderer,V.listId=w.playlistId,V.playlistProxy=new fa_(V.JSC$10850_playlistNetworkManager,w.playlistId,V.setPlaylistData.bind(V),_.u9L(w.playlistPanelRenderer)));else if(!V.queueProxy)V.responsePlaylistData=void 0;else if(w.playingVideoId&&H.clientParams.autoSaveToQueue){if(V.index===void 0){_.Ft(Error("Hf"));V.clearQueue();break a}V.queueProxy.videoIds.includes(w.playingVideoId)||
(V.index+=1,V.queueProxy.JSC$10796_setCurrentIndex(V.index),V.queueProxy.addVideos([w.playingVideoId],{},V.index))}_.yy(V,_.$V(V,V.response.autoplayRenderer))}})};var C5U=function(Y,b){b=b===void 0?_.Cp():b;xV.call(this);this.nW.push(new J4(this.yy,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b));this.nW.push(new TF(this.yy,Y,!1,!1));_.q("web_response_commands_chunk_processor")&&this.nW.push(new qP)};
_.P(C5U,xV);C5U.prototype.processChunk=function(Y){Y&&Y.data.player===void 0&&this.yy.resolve();xV.prototype.processChunk.call(this,Y)};var uy=function(Y,b){Y=Y===void 0?{layer:0}:Y;this.hasRun=!1;this.createScreenConfig=Y;this.qk4=b};
_.P(uy,HB);uy.prototype.validate=function(Y){return!(this.hasRun||!Y.endpoint)};
uy.prototype.handle=function(Y){var b=_.Qd(),w,V,H=(V=_.v((w=Y.endpoint)==null?void 0:w.commandMetadata,_.g5))==null?void 0:V.rootVe;this.qk4&&H?_.mo(b,H,this.qk4,this.createScreenConfig):dSo(b,Y.endpoint,this.createScreenConfig);this.hasRun=!0};var Yc=function(Y,b){this.hasRun=!1;this.oul=Y;this.previousVideoId=b};
_.P(Yc,HB);Yc.prototype.validate=function(Y){return _.q("kevlar_continue_playback_without_player_response")&&(Y=_.v(Y.endpoint,_.TG),(Y==null?0:Y.videoId)&&this.previousVideoId&&(Y==null?void 0:Y.videoId)===this.previousVideoId&&(Y==null?0:Y.continuePlayback))?!1:this.oul.upm===0};
Yc.prototype.handle=function(Y){_.CB.getInstance().triggerAction("yt-stop-old-player",Y.data,!0)};var ymQ=function(Y){Y=Y===void 0?{layer:0}:Y;xV.call(this);this.nW.push(new Yc(this));this.nW.push(new uy(Y));this.nW.push(new h4(Y))};
_.P(ymQ,xV);var $7Q=function(){this.hasRun=this.hasRun=!1};
_.P($7Q,HB);$7Q.prototype.validate=function(Y){return!this.hasRun&&!(!Y.data.csn||!Y.data.rootVe)};
$7Q.prototype.handle=function(Y){this.hasRun=!0;_.LM(Y.data.csn,Y.data.rootVe,3)};var jxI=function(){HB.apply(this,arguments)};
_.P(jxI,HB);jxI.prototype.validate=function(Y){return!!Y.data.preconnect};
jxI.prototype.handle=function(Y){_.S1("bc");Y=_.N(Y.data.preconnect);for(var b=Y.next();!b.done;b=Y.next())b=b.value,(new Image).src=b};var GsK=function(Y,b,w){w=w===void 0?{layer:0}:w;xV.call(this);this.nW.push(new TF(this.yy,Y));this.nW.push(new uy(w));this.nW.push(new h4(w))};
_.P(GsK,xV);var TQ8=function(Y,b,w,V,H){w=w===void 0?{layer:0}:w;V=V===void 0?_.Cp():V;xV.call(this);var f=!!b&&!!b.clientParams&&!!b.clientParams.miniplayer;f&&this.nW.push(new $7Q);this.nW.push(new J4(this.yy,b,V));this.nW.push(new jxI);var E,U;this.nW.push(new TF(this.yy,Y,f,!((E=b.clientParams)==null||!E.fromHistory),(U=b.clientParams)==null?void 0:U.previousVideoId,V,b.tempData));var X;this.nW.push(new Yc(this,(X=b.clientParams)==null?void 0:X.previousVideoId));var I;(I=b.clientParams)!=null&&I.fromHistory||
(w.layer||(w=Object.assign({},w,{layer:f?3:0})),this.nW.push(new uy(w,H)),this.nW.push(new h4(w)));_.q("web_response_commands_chunk_processor")&&this.nW.push(new qP)};
_.P(TQ8,xV);var b4,YBQ;b4={};
_.JmC=(b4["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},b4["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},b4["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},b4["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},b4["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},b4["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},b4["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},b4);_.wW=new _.WO("yt-edu");_.usI=function(){this.JSC$10951_eduDisplayedThisLoad_={}};
YBQ=function(Y){var b=_.usI.getInstance();var w=_.cQ("kevlar_tooltip_impression_cap");b=w&&parseInt(_.wW.get(Y+"-impression")||0,10)>=w||_.wW.get(Y+"-dismissed")?!1:(w=_.JmC[Y])&&!b.JSC$10951_eduDisplayedThisLoad_[w.setKey||Y]&&(w.titleText&&_.sa(w.titleText)||w.bodyText&&_.sa(w.bodyText))?!0:!1;if(!b)return null;b=_.JmC[Y];if(!b)return null;w=b.bodyText?_.sa(b.bodyText):void 0;var V=b.titleText?_.sa(b.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:b.position,popup:{bubbleHintRenderer:{text:V?
_.Gx(V):void 0,detailsText:w?_.Gx(w):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Gx(_.sa("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:Y}}]}}}}}}}},{eduImpressionAction:{key:Y}}]};
_.U0(_.usI);var YSK=!1;for(var beU="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),w7U=[],VZ=6;VZ>=1;VZ--)w7U.push({columnCount:VZ,query:VZ==1?0:VZ*2*107-4+32,className:"grid-"+VZ+"-columns",width:VZ*2*107+"px"});_.HeK=function(Y){this.actionRouter_=Y=Y===void 0?_.CB.getInstance():Y;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.VtQ(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.VtQ=function(Y){var b=Y.miniGuideVisible_?72:0,w=Y.documentWidth_-(Y.guidePersistentAndVisible_?240:b);return w7U.find(function(V){return w>V.query})};
_.U0(_.HeK);var gg5=function(){var Y=this;this.JSC$10963_keyboardInUse=!1;document.addEventListener("keydown",function(){Y.onKeydown()});
document.addEventListener("mousedown",function(){Y.JSC$10963_keyboardInUse=!1})},fud;
gg5.prototype.isKeyBoardInUse=function(){return this.JSC$10963_keyboardInUse};
gg5.prototype.onKeydown=function(){this.JSC$10963_keyboardInUse=!0};var NiI,fZ;_.H5=new _.WO("yt-mentions");_.gW=function(){};
NiI=function(Y,b){return fZ(b,"drag-to-reorder-edu-displayed")};
fZ=function(Y,b,w,V,H,f){w=w===void 0?"OPEN_POPUP_POSITION_TOP":w;if(b){if(_.H5.get(b))return;_.H5.set(b,!0,V)}if(H&&f!==void 0){b=Number(_.H5.get(H)||0);if(b>=f)return;_.H5.set(H,b+1)}return[{openPopupAction:{popupType:"HINT",position:w,popup:{bubbleHintRenderer:{detailsText:Y,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.U0(_.gW);var Egj,cHr,UsI;Egj=function(Y,b,w,V){this.JSC$10973_taskManager_=Y;this.onFulfilled_=typeof b==="function"?b:null;this.onRejected_=typeof w==="function"?w:null;this.JSC$10973_context_=V};
cHr=function(Y,b){Y.onFulfilled_&&_.vv(Y.JSC$10973_taskManager_,function(){Y.onFulfilled_.call(Y.JSC$10973_context_,b)})};
UsI=function(Y,b){Y.onRejected_&&_.vv(Y.JSC$10973_taskManager_,function(){Y.onRejected_.call(Y.JSC$10973_context_,b)})};
_.Nx=function(Y){this.JSC$10976_taskManager_=Y;this.callbacks_=[]};
_.Nx.prototype.then=function(Y,b,w){this.callbacks_.push(new Egj(this.JSC$10976_taskManager_,Y,b,w));return this};
_.Nx.prototype.onSuccess=function(Y){this.callbacks_.forEach(function(b){cHr(b,Y)})};
_.Nx.prototype.onFailure=function(Y){this.callbacks_.forEach(function(b){UsI(b,Y)})};
_.Nx.prototype.cancel=function(){this.callbacks_.length=0};
Cjd(_.Nx);_.gXL=null;_.dn=new _.Hx("ACTIVITY_TOKEN");var Eq=function(Y,b){this.serviceId=new Ay9(Y,b)};
Eq.prototype.toString=function(){return this.serviceId.toString()};var X7I=function(){this.internalMap={}};
_.g=X7I.prototype;_.g.contains=function(Y){return Object.prototype.hasOwnProperty.call(this.internalMap,Y)};
_.g.get=function(Y){if(this.contains(Y))return this.internalMap[Y]};
_.g.set=function(Y,b){this.internalMap[Y]=b};
_.g.getKeys=function(){return Object.keys(this.internalMap)};
_.g.remove=function(Y){delete this.internalMap[Y]};var c5=function(){this.mappings=new X7I;this.errorCallbacks=new Set};
c5.prototype.getModuleId=function(Y){return Y.serviceId.getModuleId()};
c5.prototype.get=function(Y){var b=this.mappings.get(Y.toString());return Dsr(this,b,Y)};
c5.prototype.getMultipleAsync=function(){var Y=_.BN.apply(0,arguments),b=this,w=Y.map(function(X){return b.getModuleId(X)}),V=Y.map(function(X){return b.mappings.get(X.toString())}).filter(function(X){return X});
if(V.length===Y.length)return _.k7(V.map(function(X,I){return Dsr(b,X,Y[I])}));
var H=Rs().loadMultiple(w);V=_.p1(w.map(function(X){return H[X]}));
var f=document.hidden,E=-1,U=_.cQ("get_async_timeout_ms",-1);U>-1&&(E=setTimeout(function(){_.Sk(new _.BQ("Module timeout.",w,f,document.hidden))},U));
return _.OV(V.then(function(){return Y.map(function(X){return Dsr(b,b.mappings.get(X.toString()),X)})}).thenCatch(function(X){for(var I=_.N(b.errorCallbacks),k=I.next();!k.done;k=I.next())k=k.value,k(X);
throw X;}),function(){clearTimeout(E)})};
c5.prototype.registerService=function(Y,b){this.mappings.set(Y.toString(),{type:"mapping",value:b});return Y};
var Dsr=function(Y,b,w){switch(b.type){case "mapping":return b.value;case "factory":return b=b.value(),Y.mappings.set(w.toString(),{type:"mapping",value:b}),b;default:return _.cI(b)}};
c5.prototype.onLoadError=function(Y){var b=this;this.errorCallbacks.add(Y);return function(){b.errorCallbacks.delete(Y)}};
_.Uq=new c5;var USu=/^[a-zA-Z0-9_\-]{11}$/;var Xzu=_.PY(function(){var Y,b;return(b=(Y=window).matchMedia)==null?void 0:b.call(Y,"(prefers-reduced-motion: reduce)").matches});var ms9=_.PY(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var Y=_.Aq("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");Y||(Y=_.xG("VIDEO"),_.wG("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
Y));return!!(Y&&Y.canPlayType&&Y.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var lig=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var Xc;Xc=function(){this.tokenJars={};if(this.cookiesEnabled=_.vQ()){var Y=_.sJ.get("CONSISTENCY",void 0);Y&&ogd(this,{encryptedTokenJarContents:Y})}};
_.xSL=function(){Xc.instance||(Xc.instance=new Xc);return Xc.instance};
Xc.prototype.handleResponse=function(Y,b){if(!b)throw Error("Rf");var w,V;b=((w=b.innerTubeRequest.context)==null?void 0:(V=w.request)==null?void 0:V.consistencyTokenJars)||[];var H;(Y=(H=Y.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(b,Y)};
Xc.prototype.replace=function(Y,b){Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())delete this.tokenJars[w.value.encryptedTokenJarContents];ogd(this,b)};
var ogd=function(Y,b){if(b.encryptedTokenJarContents&&(Y.tokenJars[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var w=Number(b.expirationSeconds);setTimeout(function(){delete Y.tokenJars[b.encryptedTokenJarContents]},w*1E3);
Y.cookiesEnabled&&_.Qh("CONSISTENCY",b.encryptedTokenJarContents,w,void 0,!0)}};var Iuk,Dc;Iuk=window.location.hostname.split(".").slice(-2).join(".");_.dr=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var Y=_.zO("LOCATION_PLAYABILITY_TOKEN");_.zO("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=k6t(this))&&(Y=this.localStorage.get("yt-location-playability-token"));Y&&(this.locationPlayabilityToken=Y,this.mostRecentPosition=void 0)};
_.dr.getInstance=function(){Dc=_.Aq("yt.clientLocationService.instance");Dc||(Dc=new _.dr,_.wG("yt.clientLocationService.instance",Dc));return Dc};
_.dr.prototype.setLocationOnInnerTubeContext=function(Y){Y.client||(Y.client={});if(this.mostRecentPosition)Y.client.locationInfo||(Y.client.locationInfo={}),Y.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),Y.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),Y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),Y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)Y.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.dr.prototype.handleResponse=function(Y){var b;Y=(b=Y.responseContext)==null?void 0:b.locationPlayabilityToken;Y!==void 0&&(this.locationPlayabilityToken=Y,this.mostRecentPosition=void 0,_.zO("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=k6t(this))&&this.localStorage.set("yt-location-playability-token",Y,15552E3):_.Qh("YT_CL",JSON.stringify({loctok:Y}),15552E3,Iuk,!0))};
var k6t=function(Y){return Y.localStorage===void 0?new _.WO("yt-client-location"):Y.localStorage};
_.dr.prototype.clearLocationPlayabilityToken=function(Y){Y==="TVHTML5"?(this.localStorage=k6t(this))&&this.localStorage.remove("yt-location-playability-token"):_.ELu("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.dr.prototype.getCurrentPositionFromGeolocation=function(){var Y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Sf"));var b=!1,w=1E4;_.zO("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,w=15E3);return new Promise(function(V,H){navigator.geolocation.getCurrentPosition(function(f){Y.mostRecentPosition=f;V(f)},function(f){H(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:w})})};
_.dr.prototype.createUnpluggedLocationInfo=function(Y){var b={};Y=Y.coords;if(Y==null?0:Y.latitude)b.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)b.longitudeE7=Math.floor(Y.longitude*1E7);if(Y==null?0:Y.accuracy)b.locationRadiusMeters=Math.round(Y.accuracy);return b};
_.dr.prototype.createLocationInfo=function(Y){var b={};Y=Y.coords;if(Y==null?0:Y.latitude)b.latitudeE7=Math.floor(Y.latitude*1E7);if(Y==null?0:Y.longitude)b.longitudeE7=Math.floor(Y.longitude*1E7);return b};var lu5=function(){};
_.g=lu5.prototype;
_.g.JSC$11043_getRequest=function(Y,b,w){b=b===void 0?{}:b;w=w===void 0?TaC:w;var V=b;if(this.isNavigationCommand()){var H,f=(H=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:H.url;V=_.qSM(Y.clickTrackingParams,!0,!1,f,this.JSC$11043_getClientScreen(V))}else V=_.qSM(Y.clickTrackingParams,!1,this.includeCsn);V={context:V};if(H=this.getExtension(Y))return this.JSC$11043_buildRequest(V,H,b),H=this.getApiUrl(Y),f=Object.assign({},{command:Y},this.getRequestConfig(Y,b)),V={input:H,requestShell:jS(H),
innerTubeRequest:V,config:f},V.config.authStrategy?V.config.authStrategy.identity=w:V.config.authStrategy={identity:w},(Y=this.JSC$11043_getRequestKey(Y,b))&&!V.config.requestKey&&(V.config.requestKey=Y),V;Y=new _.BQ("Error: Failed to create Request from Command.",Y);_.Ft(Y)};
_.g.getApiUrl=function(Y){var b=_.Yy(this.getApiPaths(Y)),w;(Y=(w=_.v(Y.commandMetadata,_.g5))==null?void 0:w.apiUrl)&&(b=Y);return JSB(TPL(b))};
_.g.isNavigationCommand=function(){return!1};
_.g.JSC$11043_getClientScreen=function(){};
_.g.JSC$11043_getRequestKey=function(){};
_.g.getRequestConfig=function(){};
_.up.Object.defineProperties(lu5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Ij=function(){};
_.P(Ij,lu5);Ij.prototype.JSC$11050_getStoreKey=function(){};
Ij.prototype.JSC$11043_getRequestKey=function(Y,b){b=b===void 0?{}:b;return this.JSC$11050_getStoreKey(Y,b)};var xs$;_.kc=function(Y,b,w){var V=w&&w>0?w:0;w=V?Date.now()+V*1E3:0;if((V=V?(0,_.h6C)():xs$())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{V.set(Y,b,w)}catch(H){V.remove(Y)}}};
_.l4=function(Y){var b=xs$(),w=(0,_.h6C)();if(!b&&!w||!window.JSON)return null;try{var V=b.get(Y)}catch(H){}if(typeof V!=="string")try{V=w.get(Y)}catch(H){}if(typeof V!=="string")return null;try{V=JSON.parse(V,void 0)}catch(H){}return V};
_.hW=function(Y){try{var b=xs$(),w=(0,_.h6C)();b&&b.remove(Y);w&&w.remove(Y)}catch(V){}};
_.h6C=_.PY(function(){try{var Y=new Imr;var b=Y.isAvailable()?Y:null}catch(w){return null}return b?new _.ED(b):null});
xs$=_.PY(function(){var Y=new kGu;return Y.isAvailable()?new _.ED(Y):null});var oM=new _.Hx("ENTITY_STATE_TOKEN"),xc=new _.Hx("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var qB_=XMLHttpRequest.prototype.fetch,sfd=qB_&&qB_.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Yr?!0:!1;var qx=function(Y){this.JSC$11055_storeWithEntities=Y};
_.P(qx,Ij);_.g=qx.prototype;_.g.getApiPaths=function(){return Sq8};
_.g.getExtension=function(Y){return _.v(Y,_.TG)||_.v(Y,_.BH)||_.v(Y,Sgd)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$11050_getStoreKey=function(Y){if((_.q("kevlar_cache_on_ttl_player")||_.q("mweb_enable_shorts_innertube_player_prefetch")||_.q("mweb_use_new_history_manager")||_.q("web_shorts_prefetch_service_enabled"))&&(Y=this.getExtension(Y))&&Y.videoId){var b={videoId:Y.videoId};Y.playlistId&&(b.playlistId=Y.playlistId);Y.playerParams&&(b.params=Y.playerParams);return _.GG("player",b)}};
_.g.JSC$11043_getClientScreen=function(Y){var b;return((b=Y.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.g.JSC$11043_buildRequest=function(Y,b,w){if(_.q("enable_interstitial_entity_check")){var V=this.JSC$11055_storeWithEntities;if(b.videoId)for(var H=_.N(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),f=H.next();!f.done;f=H.next()){f=f.value;var E;var U=void 0,X=void 0,I=b.videoId,k=f;(E=V)?(I=_.I8(I+k,"interstitialInteractionStateEntity"),E=(U=(X=_.kt(E.getState().entities,"interstitialInteractionStateEntity",I))==null?void 0:X.primaryButtonClicked)!=null?U:!1):E=!1;if(E)switch(f){case "CONTENT_CHECK_REQUIRED":b.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":b.racyCheckOk=!0}}}b.videoId&&(Y.videoId=b.videoId);b.playlistId&&(Y.playlistId=b.playlistId);b.index!==void 0&&(Y.playlistIndex=b.index+1);b.playerParams&&(Y.params=b.playerParams);"startTimeSeconds"in b&&b.startTimeSeconds&&(_.q("enable_player_request_builder_start_time_floor")?Y.startTimeSecs=Math.floor(b.startTimeSeconds):Y.startTimeSecs=b.startTimeSeconds);w.contentPlaybackContext&&(Y.playbackContext={contentPlaybackContext:w.contentPlaybackContext});w.prefetchPlaybackContext&&
(Y.playbackContext=Object.assign({},Y.playbackContext,{prefetchPlaybackContext:w.prefetchPlaybackContext}),Y.context.request||(Y.context.request={}),Y.context.request.isPrefetch=!0);Y.playbackContext||(Y.playbackContext={});V=ms9();Y.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!V,supportXhr:sfd};w.overrideMutedAtStart&&(Y.overrideMutedAtStart=w.overrideMutedAtStart);Y.racyCheckOk=!!b.racyCheckOk;Y.contentCheckOk=!!b.contentCheckOk;!_.q("captions_prefs_killswitch")&&(w=(w=_.l4("yt-player-caption-language-preferences"))?
w:[],w==null?0:w.length)&&(Y.captionParams={viewerSelectedCaptionLangs:w})};
_.g.getRequestConfig=function(Y){Y=this.JSC$11050_getStoreKey(Y);var b;Y&&(b={storeStrategy:{storeKey:Y}});_.q("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="ps_s",b.responseTick="ps_r");return b};
qx[VS]=[oM];var sq=function(){};
_.P(sq,Ij);_.g=sq.prototype;_.g.getApiPaths=function(){return oX$};
_.g.getExtension=function(Y){return _.v(Y,_.TG)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$11050_getStoreKey=function(Y){if((Y=this.getExtension(Y))&&Y.videoId){var b={videoId:Y.videoId};Y.playlistId&&(b.playlistId=Y.playlistId);Y.index&&(b.index=Y.index);Y.params&&(b.params=Y.params);return _.GG("next",b)}};
_.g.JSC$11043_getClientScreen=function(Y){var b;return((b=Y.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.g.JSC$11043_buildRequest=function(Y,b,w){b.videoId&&(Y.videoId=b.videoId);b.playlistId&&(Y.playlistId=b.playlistId);b.params&&(Y.params=b.params);b.index!==void 0&&(Y.playlistIndex=b.index);Y.racyCheckOk=!(!w.racyCheckOk&&!b.racyCheckOk);Y.contentCheckOk=!!b.contentCheckOk;w.contentPlaybackContext&&(Y.autonavState=w.contentPlaybackContext.autonavState,Y.playbackContext={vis:w.contentPlaybackContext.vis,lactMilliseconds:w.contentPlaybackContext.lactMilliseconds});w.prefetchPlaybackContext&&(Y.context.request||
(Y.context.request={}),Y.context.request.isPrefetch=!0);_.q("captions_hats_killswitch")||(b=_.P0().getFlag(65),b=b!=null?!b:!1,w=!!_.l4("yt-player-sticky-caption"),Y.captionsRequested=b&&w)};
_.g.getRequestConfig=function(Y){Y=this.JSC$11050_getStoreKey(Y);var b;Y&&(b={storeStrategy:{storeKey:Y}});_.q("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="wn_s",b.responseTick="wn_r");return b};
var QZ=function(){};
_.P(QZ,Ij);QZ.prototype.getApiPaths=function(){return oX$};
QZ.prototype.getExtension=function(Y){return _.v(Y,_.Wb)};
QZ.prototype.JSC$11043_buildRequest=function(Y,b){b.token&&(Y.continuation=b.token)};var v5=function(Y,b){this.playerRequestBuilder=Y;this.watchNextRequestBuilder=b};
_.P(v5,Ij);v5.prototype.getApiPaths=function(){return BWr};
v5.prototype.getExtension=function(Y){return _.v(Y,_.TG)};
v5.prototype.isNavigationCommand=function(){return!0};
v5.prototype.JSC$11043_buildRequest=function(Y,b,w){Y.playerRequest={};this.playerRequestBuilder.JSC$11043_buildRequest(Y.playerRequest,b,w);_.q("web_streaming_watch")&&(Y.watchNextRequest={},this.watchNextRequestBuilder.JSC$11043_buildRequest(Y.watchNextRequest,b,w))};
v5[VS]=[qx,sq];var Qf5;_.P5=new _.Hx("SHORTS_CONTROLLER_TOKEN");Qf5=new _.Hx("SHORTS_STATE_STORE_TOKEN");var Zc=function(Y,b){var w=_.BN.apply(2,arguments);Y=Y===void 0?0:Y;_.BQ.call(this,b,w);this.errorType=Y;Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(Zc,_.BQ);var vgt,PZ$,BiU,uCG,jZ,x9v,p7d,e6Q,LLd,R6C,ttt;vgt=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(Y){return Y+"="}).join("|"));
PZ$=RegExp(".*\\?.*playnext=1.*");_.B5=function(Y,b,w,V){this.watchEndpointMap=Y;this.reelWatchEndpointMap=b;this.innerTubeTransportService=w;this.fetchPbj=V};
BiU=function(Y,b,w){var V=_.fH().resolve(_.HQ(Zet));_.B5.instance=new _.B5(Y,b,w,V)};
_.ng$=function(Y,b){var w=_.cQ("web_pbj_log_warning_rate",0);w=w>0&&Math.random()<w;var V;if((V=_.v(b.commandMetadata,_.g5))==null||!V.rootVe)return w&&_.Sk(Error("Uf")),!1;var H;V=(H=_.v(b.commandMetadata,_.g5))==null?void 0:H.url;if(!V)return w&&_.Sk(Error("Vf")),!1;if(PZ$.test(V))return!0;if(vgt.test(V))return w&&_.Sk(Error("Wf`"+V)),!1;if(_.v(b,_.TG)){if(!(Y.watchEndpointMap.watchNext&&Y.watchEndpointMap.player||_.q("kevlar_fetch_initial_data_op_watch_client")))return w&&_.Sk(Error("Nf")),!1;
Y=_.cQ("web_pbj_log_warning_rate",0);Y=Y>0&&Math.random()<Y;_.v(b,_.TG)?EXu(b)?b=!0:(Y&&_.Sk(Error("Of")),b=!1):(Y&&_.Sk(Error("Nf")),b=!1);return b}if(_.v(b,_.BH))return c0K(b);if(_.v(b,_.rY))return!0;Y=_.y_(Y.innerTubeTransportService,b);!Y&&w&&_.Ft(Error("Xf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(b)});return Y};
uCG=function(Y,b,w,V,H,f){b={url:b};if(w==null?0:w.itct)b.parentTrackingParams=w.itct;var E=_.Yy(yW8);return _.rw(Y.innerTubeTransportService,b,E).then(function(U){(U=U.endpoint)||(U=_.Qy);(w==null?0:w.itct)&&U&&!U.trackingParams&&(U.trackingParams=w.itct);var X=PH(U);return jZ(Y,U,w,V,X,H,f)})};
jZ=function(Y,b,w,V,H,f,E,U){U=U===void 0?{}:U;if(Y.fetchPbj&&!_.ng$(Y,b)&&!_.q("force_one_platform")){U=Y.fetchPbj(b);var X=_.k7(U.then(function(W){if(!W)throw Error("Yf");E(X)||f(b,W);return W}));
return X}var I,k,l={rootVe:(I=_.v(b.commandMetadata,_.g5))==null?void 0:I.rootVe,url:(k=_.v(b.commandMetadata,_.g5))==null?void 0:k.url,endpoint:b,page:H};if(_.v(b,_.TG)){var x,Q={contentPlaybackContext:_.ey(w,(x=_.v(b.commandMetadata,_.g5))==null?void 0:x.url,V)},Z=_.j9();_.q("web_streaming_watch")&&window.TextDecoderStream?(U=Mt5(Y.innerTubeTransportService,b,Q,function(W){!l.response&&W.content&&(l.response=W.content);!l.playerResponse&&W.player&&(l.playerResponse=W.player);f(b,l)}),I=u6G(b),I.length&&
(l.preconnect=I,f(b,l)),e6Q(U,Z,l).catch(function(W){W instanceof Zc&&W.errorType===2&&p7d(Y,b,Q,l,f,E,Z)})):p7d(Y,b,Q,l,f,E,Z);
return Z.promise}if(_.v(b,_.BH)){var e;if(((e=_.v(b,_.BH))==null?void 0:e.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var O=_.j9();_.OeQ(_.fH().resolve(_.P5),b).then(function(W){ttt(Y,w,V,H,f,O,W)});
return O.promise}U=_.k7();var L;I={contentPlaybackContext:_.ey(w,(L=_.v(b.commandMetadata,_.g5))==null?void 0:L.url,V)};(L=Y.reelWatchEndpointMap.player)&&(L=L().JSC$11043_getRequest(b,I))&&(U=_.rw(Y.innerTubeTransportService,L.innerTubeRequest,L.input,b.clickTrackingParams,L.config));L=_.k7();(k=Y.reelWatchEndpointMap.reelItemWatch)&&(k=k().JSC$11043_getRequest(b))&&(L=_.rw(Y.innerTubeTransportService,k.innerTubeRequest,k.input,b.clickTrackingParams,k.config));k=_.k7();(x=Y.reelWatchEndpointMap.reelWatchSequence)&&
_.v(b,_.BH).sequenceParams&&(I=x().JSC$11043_getRequest(b,I))&&(k=_.rw(Y.innerTubeTransportService,I.innerTubeRequest,I.input,b.clickTrackingParams,I.config));I=_.k7(l);x=_.j9();R6C(b,I,U,L,k,f,E,x);return x.promise}var r;if(_.v(b,HnB)&&((r=_.v(b.commandMetadata,_.g5))==null?0:r.url))return U=hKB(_.$G(pl().location.href),_.$G(_.v(b.commandMetadata,_.g5).url)).toString(),uCG(Y,U,w,V,f,function(){return!1});
if(_.v(b,_.rY))return f(b,l),_.k7(l);if(_.y_(Y.innerTubeTransportService,b)){U=Object.assign({},{tempData:w,disableCache:w.disableCache},U);var C=_.$_(Y.innerTubeTransportService,b,U).then(function(W){l.response=W;E(C)||f(b,l);return l});
return C}return _.k7(l)};
_.FLK=function(Y,b,w,V){if(_.v(b,_.TG)||_.v(b,_.BH)&&(_.q("mweb_enable_shorts_innertube_player_prefetch")||_.q("kevlar_enable_shorts_prefetch_in_sequence"))||_.v(b,Sgd)&&_.q("web_enable_prefetching_videos_on_home")){var H,f={contentPlaybackContext:_.ey(w,(H=_.v(b.commandMetadata,_.g5))==null?void 0:H.url,V),prefetchPlaybackContext:mSr(w)},E,U,X;if(((E=_.v(b,_.TG))==null?void 0:(U=E.watchEndpointSupportedPrefetchConfig)==null?void 0:(X=U.prefetchHintConfig)==null?void 0:X.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(w=
Y.watchEndpointMap.watchNext)if(f=w().JSC$11043_getRequest(b,f))return Promise.resolve(_.rw(Y.innerTubeTransportService,f.innerTubeRequest,f.input,void 0,f.config).then(function(l){return l}))}else if(_.v(b,_.BH)&&_.q("web_prefetch_riw_for_next_video")){if(w=Y.reelWatchEndpointMap.reelItemWatch)if((w=w().JSC$11043_getRequest(b,f))&&_.rw(Y.innerTubeTransportService,w.innerTubeRequest,w.input,void 0,w.config).then(function(l){return l}),w=Y.reelWatchEndpointMap.player)if(f=w().JSC$11043_getRequest(b,
f))return Promise.resolve(_.rw(Y.innerTubeTransportService,f.innerTubeRequest,f.input,void 0,f.config).then(function(l){return l}))}else if(w=Y.watchEndpointMap.player)if(f=w().JSC$11043_getRequest(b,f))return Promise.resolve(_.rw(Y.innerTubeTransportService,f.innerTubeRequest,f.input,void 0,f.config).then(function(l){return l}))}else if(_.y_(Y.innerTubeTransportService,b)){var I={tempData:w},k=dsr(Y.innerTubeTransportService,b);
return k?new Promise(function(l,x){var Q,Z;return _.c(function(e){if(e.nextAddress==1)return _.D(e,k,2);if(e.nextAddress!=4)return Q=e.yieldResult,Q.JSC$11050_getStoreKey(b,I)?_.D(e,_.$_(Y.innerTubeTransportService,b,I),4):(x(new _.BQ("Prefetching request builder with no store key.",b)),e.jumpTo(0));Z=e.yieldResult;l(Z);_.om(e)})}):Promise.reject(new _.BQ("Prefetching unregistered request builder.",b))}return Promise.reject(new _.BQ("No request builder available to prefetch endpoint.",b))};
x9v=function(Y,b){var w,V,H;if(_.v(b,_.TG)){var f=Y.watchEndpointMap.watchNext;f&&(w=f());(Y=Y.watchEndpointMap.player)&&(V=Y())}else if(_.v(b,_.BH))(f=Y.reelWatchEndpointMap.reelItemWatch)&&(w=f()),(f=Y.reelWatchEndpointMap.player)&&(V=f()),(Y=Y.reelWatchEndpointMap.reelWatchSequence)&&(H=Y());else{a:{Y=gRK(b,Y.innerTubeTransportService.endpointMap);if(Y!==void 0)if(typeof Y.then==="function")_.Ft(new _.BQ("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",b));else break a;
Y=void 0}Y&&(w=Y)}var E,U,X;return{content:(E=w)==null?void 0:E.JSC$11050_getStoreKey(b),player:(U=V)==null?void 0:U.JSC$11050_getStoreKey(b),reelSequence:(X=H)==null?void 0:X.JSC$11050_getStoreKey(b)}};
p7d=function(Y,b,w,V,H,f,E){var U=_.k7(),X=Y.watchEndpointMap.player;_.q("web_streaming_player")&&(X=MC(v5));X&&(X=X().JSC$11043_getRequest(b,w))&&(U=_.rw(Y.innerTubeTransportService,X.innerTubeRequest,X.input,b.clickTrackingParams,X.config));X=_.k7();var I=Y.watchEndpointMap.watchNext;I&&(w=I().JSC$11043_getRequest(b,w))&&(X=_.rw(Y.innerTubeTransportService,w.innerTubeRequest,w.input,b.clickTrackingParams,w.config));Y=_.k7(V);LLd(b,Y,U,X,H,f,E)};
e6Q=function(Y,b,w){return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y,2);b.resolve(w);_.om(V)})};
LLd=function(Y,b,w,V,H,f,E){var U,X,I,k,l;_.c(function(x){switch(x.nextAddress){case 1:return _.D(x,b,2);case 2:U=x.yieldResult;if(f(E.promise))return E.resolve(U),x.return();H(Y,U);X=u6G(Y);if(!X.length){x.jumpTo(3);break}return _.D(x,b,4);case 4:U.preconnect=X,H(Y,U);case 3:return _.ct(x,5),_.D(x,w,7);case 7:I=x.yieldResult;_.$u(x,6);break;case 5:return k=_.mS(x),E.reject(k),x.return();case 6:if(I===void 0)return U.reload=!0,H(Y,U),E.resolve(U),x.return();if(f(E.promise))return E.resolve(U),x.return();
U.playerResponse=I;H(Y,U);_.ct(x,8);return _.D(x,V,10);case 10:l=x.yieldResult;_.$u(x,9);break;case 8:_.mS(x);case 9:if(l===void 0)return U.response={responseContext:{}},E.resolve(U),x.return();if(f(E.promise))return E.resolve(U),x.return();U.response=l;H(Y,U);E.resolve(U);_.om(x)}})};
R6C=function(Y,b,w,V,H,f,E,U){var X,I,k,l,x,Q;_.c(function(Z){switch(Z.nextAddress){case 1:return _.D(Z,b,2);case 2:X=Z.yieldResult;if(E(U.promise))return U.resolve(X),Z.return();f(Y,X);I=u6G(Y);if(!I.length){Z.jumpTo(3);break}return _.D(Z,b,4);case 4:X.preconnect=I,f(Y,X);case 3:return _.ct(Z,5),_.D(Z,w,7);case 7:k=Z.yieldResult;_.$u(Z,6);break;case 5:return l=_.mS(Z),U.reject(l),Z.return();case 6:if(k===void 0)return X.reload=!0,f(Y,X),U.resolve(X),Z.return();if(E(U.promise))return U.resolve(X),
Z.return();X.playerResponse=k;f(Y,X);_.ct(Z,8);return _.D(Z,V,10);case 10:x=Z.yieldResult;_.$u(Z,9);break;case 8:_.mS(Z);case 9:if(x===void 0)return X.response={responseContext:{}},U.resolve(X),Z.return();if(E(U.promise))return U.resolve(X),Z.return();X.response=x;f(Y,X);_.ct(Z,11);return _.D(Z,H,13);case 13:Q=Z.yieldResult;_.$u(Z,12);break;case 11:_.mS(Z);case 12:if(E(U.promise))return U.resolve(X),Z.return();X.reelWatchSequenceResponse=Q;f(Y,X);U.resolve(X);_.om(Z)}})};
ttt=function(Y,b,w,V,H,f,E){var U,X,I,k,l,x;_.c(function(Q){if((U=E)==null||!U.replacementEndpoint)return f.reject(),Q.return();X=E.replacementEndpoint;(I=_.v(X,_.BH))?(E.sequenceContinuation&&(I.sequenceParams=E.sequenceContinuation),k=_.fH().resolve(_.P5),l=I.sequenceParams,SBd(k,X)&&delete I.sequenceParams,x=jZ(Y,X,b,w,V,H,function(){return!1}),x.then(function(Z){return _.c(function(e){if(e.nextAddress==1)return auK(k,{reelWatchEndpoint:{sequenceParams:l}},Z),_.D(e,0,2);
f.resolve(Z);_.om(e)})})):f.reject();
_.om(Q)})};_.rH_=function(Y){if(Y.validatedFragments_.length==0)return null;if(!Y.mergedPrefetchedData_){for(var b=[],w=_.N(Y.validatedFragments_),V=w.next();!V.done;V=w.next()){V=_.N(Y.fragmentConfiguration_[V.value].graftedKeys);for(var H=V.next();!H.done;H=V.next())(H=Y.prefetchedData_[H.value].trackingParams)&&b.push(H)}Y.mergedPrefetchedData_={};Object.assign(Y.mergedPrefetchedData_,Y.prefetchedData_,{clientSideGrafts:b})}return Y.mergedPrefetchedData_};var z6t;_.nZ=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
z6t=function(Y,b,w){if(_.fiI(b))return Y.prefetchCache_.get(_.N96(b,w))};_.Mx=new _.Hx("NAVIGATION_TOKEN");var WLU=function(Y){var b=this;var w=w===void 0?vXv():w;var V=V===void 0?_.fH().resolve(_.Mx):V;this.onePickCommand=Y;this.JSC$11153_playlistNetworkManager=w;this.navigationManager=V;this.videoPickerBuilder=_.sGe("yt-addtoplaylist");_.XhI(HHj(guk(V3r(this.videoPickerBuilder.setTitle(Y.modalTitle).setSize(1E3).addView(N2I()).addView(fst())).addView("youtube"),Y.selectButtonLabel)),function(H){b.handleAction(H)})};
WLU.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
WLU.prototype.handleAction=function(Y){var b=this;if(Y&&this.onePickCommand.listId&&Y.action==="picked"&&Y.docs){var w=[];Y.docs.forEach(function(V){w.push({addedVideoId:V.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11153_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,w).then(function(){_.q("playlist_add_video_hard_reload_killswitch")?b.navigationManager.reload():KL9(b.navigationManager)})}};var ieQ=function(){if(this.constructor===ieQ)throw new TypeError("Zf");};
_.g=ieQ.prototype;_.g.dispose=function(){};
_.g.disconnect=function(){};
_.g.reconnect=function(){};
_.g.observe=function(Y,b,w){return{element:Y,option:w}};
_.g.unobserveByKey=function(){};var P$6=function(Y,b){b=b===void 0?0:b;ieQ.call(this);this.viewroot=Y;this.defaultPrescanHeight=b;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),Y?{root:Y,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.P(P$6,ieQ);_.g=P$6.prototype;_.g.dispose=function(){this.disconnect();this.handlers.clear()};
_.g.disconnect=function(Y){this.isConnected=!1;this.pauseObservingUntilReconnect=Y===void 0?!1:Y;this.observer.disconnect();Y=_.N(this.prescanObservers.values());for(var b=Y.next();!b.done;b=Y.next())b.value.disconnect()};
_.g.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var Y=_.N(this.handlers),b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;var V=w.next().value;w=!1;V=_.N(V.keys());for(var H=V.next();!H.done;H=V.next())if((H=H.value)&&H.state==="prescan"){w=!0;break}w&&AHI(this,b).observe(b);this.observer.observe(b)}}};
_.g.handleObserveEvent=function(Y){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;var w=this.handlers.get(b.target);if(w){var V=b.isIntersecting;w=_.N(w);for(var H=w.next();!H.done;H=w.next()){var f=_.N(H.value);H=f.next().value;f=f.next().value;H&&(H.state==="visible"&&V||H.state==="hidden"&&!V)&&(f(b.target,H.state),H.calledOnce&&this.unobserveByKey({element:b.target,option:H}))}}}};
_.g.handlePrescanEvent=function(Y){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;var w=this.handlers.get(b.target);if(w&&b.isIntersecting){w=_.N(w);for(var V=w.next();!V.done;V=w.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;V&&V.state==="prescan"&&(H(b.target,V.state),V.calledOnce&&this.unobserveByKey({element:b.target,option:V}))}}}};
_.g.observe=function(Y,b,w){var V=(V=this.handlers.get(Y))&&V.has(w)?{element:Y,option:w}:void 0;if(V)return V;V={element:Y,option:w};this.handlers.has(Y)||this.handlers.set(Y,new Map);var H=this.handlers.get(Y);H&&!H.has(w)&&H.set(w,b);this.pauseObservingUntilReconnect||(w.state==="prescan"&&AHI(this,Y).observe(Y),this.observer.observe(Y));return V};
_.g.unobserveByKey=function(Y){var b=this.handlers.get(Y.element);if(b&&b.has(Y.option)){b.delete(Y.option);if(Y&&Y.option.state==="prescan")for(var w=_.N(this.prescanObservers.values()),V=w.next();!V.done;V=w.next())V.value.unobserve(Y.element);b.size===0&&(this.handlers.delete(Y.element),this.observer.unobserve(Y.element))}};
var AHI=function(Y,b){var w=Y.defaultPrescanHeight;b.hasAttribute("prescan-height")&&(b=Number(b.getAttribute("prescan-height")),isNaN(b)||(w=b));if(Y.prescanObservers.has(w))return Y.prescanObservers.get(w);b="-0.1px -0.1px "+w+"px -0.1px";b=new IntersectionObserver(Y.handlePrescanEvent.bind(Y),Y.viewroot?{root:Y.viewroot,rootMargin:b}:{rootMargin:b});Y.prescanObservers.set(w,b);return b};var CZ$=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],yHU=function(){var Y,b=this;this.JSC$11170_actionRouter=Y=Y===void 0?_.CB.getInstance():Y;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return b.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return b.visibilityObservedElementHandlerKeys}}},$sk,G6d,uH8;
yHU.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.q("kevlar_use_vimio_behavior")&&_.zO("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Znr())};
yHU.prototype.dispose=function(){this.visibilityMonitor&&_.BV(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
yHU.prototype.handleVisibilityRefreshed=function(){for(var Y=_.N(this.targetMap.entries()),b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;w=w.next().value;_.jft(this,b,w)}};
_.JHU=function(Y,b,w){G6d(Y,w);var V=_.Tid(Y,b);V.element=w;Y.targetedElements.set(w,b);_.jft(Y,b,V)};
G6d=function(Y,b){var w=Y.targetedElements.get(b);if(w){var V=Y.targetMap.get(w);V&&(delete V.element,Y.targetMap.set(w,V));Y.targetedElements.delete(b);Y.visibilityObserver&&Y.visibilityObservedElementHandlerKeys&&(w=Y.visibilityObservedElementHandlerKeys.get(b))&&(Y.visibilityObserver.unobserveByKey(w),Y.visibilityObservedElementHandlerKeys.delete(b))}};
_.jft=function(Y,b,w){var V=w.action,H=w.element;H&&V&&(CZ$.includes(b)||_.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||Y.visibilityMonitor&&Y.visibilityMonitor.isNodeVisible(H)?uH8(Y,b,w):Y.visibilityObserver&&(Y.visibilityObservedElementHandlerKeys||(Y.visibilityObservedElementHandlerKeys=new WeakMap),V=Y.visibilityObserver.observe(H,function(){uH8(Y,b,w);Y.visibilityObservedElementHandlerKeys.delete(H)},{calledOnce:!0,
state:"visible"}),Y.visibilityObservedElementHandlerKeys.set(H,V)))};
uH8=function(Y,b,w){var V=w.action;(w=w.element)&&V&&(_.a5(Y.JSC$11170_actionRouter,[V],w),Y.targetMap.delete(b),Y.targetedElements.delete(w),Y.triggeredTargets.add(b))};
_.Tid=function(Y,b){var w=Y.targetMap.get(b);w||(w={},Y.targetMap.set(b,w));return w};
_.eH=function(){$sk||($sk=new yHU);return $sk};var Y7Q=document.createElement("div");Y7Q.style.touchAction="pan-down";var B9K=Y7Q.style.touchAction==="pan-down";var bcI,wl8;bcI=function(){this.hammerFn=YQr();this.JSC$11178_screenManager=_.Qd();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.tj(83615);_.IC(this.JSC$11178_screenManager,this.ve);nX6()};
_.pZ=function(){wl8||(wl8=new bcI);return wl8};
bcI.prototype.registerTouchEvents=function(Y,b,w){var V=_.BN.apply(3,arguments),H=this.hammerFn(Y,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});w&&H.set({touchAction:w});this.nodeManagerMapping.set(Y,H);var f=
Moq(b);V=_.N(V);for(var E=V.next();!E.done;E=V.next()){E=E.value;if(E.includes("swipe")||E.includes("pinch")||E.includes("pan"))E.includes("swipe")?H.get("swipe").set({enable:!0,direction:f,velocity:.2}):E.includes("pinch")?H.get("pinch").set({enable:!0}):E.includes("pan")&&(H.get("pan").set({enable:!0,direction:f}),H.get("swipe").set({enable:!0,direction:f,velocity:.2}),H.get("swipe").recognizeWith("pan"));V5$(this,Y,H,E)}};
var V5$=function(Y,b,w,V){w.on(V,function(H){if(V.includes("pinch"))Y.lastPinchTime=Date.now();else if(V.includes("swipe")&&Date.now()-Y.lastPinchTime<400)return;H.pointerType!=="mouse"&&(H=V==="doubletap"?{coordinates:H.center}:V.includes("pan")?H:V.includes("swipe")?{target:H.target}:{},b.dispatchEvent(new CustomEvent(V,{bubbles:!0,composed:!0,detail:H})))})};
bcI.prototype.unregisterTouchEvents=function(Y){var b=_.BN.apply(1,arguments),w=this.nodeManagerMapping.get(Y);if(w){b=_.N(b);for(var V=b.next();!V.done;V=b.next())w.off(V.value);this.nodeManagerMapping.delete(Y);Y.style.touchAction="unset"}};var Hco=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var eKq=null;var gk8=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},$S6=function(){gk8.instance||(gk8.instance=new gk8);
return gk8.instance},jGg=function(Y){var b=Y.networkEvents;
Y.networkEvents=[];return _.q("enable_network_monitoring")?b:[]};var fS5;fS5={};_.NzU=HO("yt-serviceworker-metadata",{objectStores:(fS5.auth={addedAtVersion:1},fS5["resource-manifest-assets"]={addedAtVersion:2},fS5),shared:!0,upgrade:function(Y,b){b(1)&&iS(Y,"resource-manifest-assets");b(2)&&iS(Y,"auth")},
version:2});var Fuq=self.location.origin+"/";Lut([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);Lut([/purge_shell=1/]);var Eko=void 0;Eko=Eko===void 0?[]:Eko;for(var cfk=[],UH8=_.N(iH_),Xlt=UH8.next();!Xlt.done;Xlt=UH8.next())cfk.push({key:Xlt.value});for(var DHo=_.N(Eko),mH5=DHo.next();!mH5.done;mH5=DHo.next())cfk.push(mH5.value);var okd,aA=_.wB==null?void 0:(okd=_.wB.performance)==null?void 0:okd.memory,r0b=!1,GpK={},Kuv={},rr={},zg=navigator;var Oq=function(Y){this.JSC$11222_expiringStorage=new Mn(Y)};
Oq.prototype.set=function(Y,b,w){w=w!==void 0?Date.now()+w:void 0;this.JSC$11222_expiringStorage.set(Y,b,w)};
Oq.prototype.get=function(Y){return this.JSC$11222_expiringStorage.get(Y)};
Oq.prototype.remove=function(Y){this.JSC$11222_expiringStorage.remove(Y)};var HUe=_.wM(["https://www.youtube.com/",""]),gIb=_.wM(["https://studio.youtube.com/",""]),UTM="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",N0G=null,ILr;var ISd=_.wM(["https://www.youtube.com/iframe_api"]),tW=function(){this.playerResolver_=_.j9();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.vY;this.playbackDurationSeconds_=0},kAU=function(Y){var b=function(){return window.YT&&typeof window.YT.ready==="function"};
if(b())return _.k7(window.YT);var w=_.j9(),V=_.xG("SCRIPT");V.onload=V.onreadystatechange=function(){V.readyState&&V.readyState!="loaded"&&V.readyState!="complete"||(V.onload=_.vY,V.onreadystatechange=_.vY,V.onerror=_.vY,b()?w.resolve(window.YT):w.reject(new _.BQ("Failed to load the iframe player library","script.onload",V.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
V.onerror=function(H){V.onload=_.vY;V.onreadystatechange=_.vY;V.onerror=_.vY;w.reject(new _.BQ("Failed to load the iframe player library","script.onerror",H&&H.target&&H.target.src))};
_.Ku(V,_.HL(ISd));Y.insertBefore(V,Y.firstChild);return w.promise},lS_=function(Y,b,w){var V,H;
_.c(function(f){switch(f.nextAddress){case 1:return Y.playbackEndedCallback_=w,_.ct(f,2),_.D(f,kAU(b.parentElement||null),4);case 4:V=f.yieldResult;_.$u(f,3);break;case 2:return H=_.mS(f),H instanceof _.BQ&&H.args&&H.args[0]=="script.onerror"?_.Sk(H):_.Ft(H),f.return();case 3:V.ready(function(){return new V.Player(b,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:Y.onPlayerReady_.bind(Y),onStateChange:Y.onPlayerStateChange_.bind(Y),
onCueRangeExit:Y.onCueRangeExit_.bind(Y)}})}),_.om(f)}})};
_.g=tW.prototype;_.g.getPlayerPromise=function(){return this.playerPromise_};
_.g.onPlayerReady_=function(Y){this.playerResolver_.resolve(Y.target)};
_.g.onPlayerStateChange_=function(Y){if(Y.data==YT.PlayerState.PLAYING){Y=Y.target;var b=Y.getCurrentTime();Y.addCueRange("playback",b,b+this.playbackDurationSeconds_)}};
_.g.onCueRangeExit_=function(Y){Y.data=="playback"&&(Y.target.stopVideo(),this.playbackEndedCallback_())};
_.g.stopVideo=function(){this.playerPromise_.then(function(Y){Y.stopVideo()})};
var hWj=function(Y){Y.playerVars_&&Y.playerPromise_.then(function(b){typeof b.cueVideoByPlayerVars!="function"?_.Sk(new _.BQ("vmh: player API not ready","cueVideoByPlayerVars",typeof b.cueVideoByPlayerVars)):b.cueVideoByPlayerVars(Y.playerVars_)})};
tW.prototype.playVideo=function(){var Y=this;this.playerVars_&&this.playerPromise_.then(function(b){typeof b.loadVideoByPlayerVars!="function"?(b=new _.BQ("vmh: player API not ready","loadVideoByPlayerVars",typeof b.loadVideoByPlayerVars),_.Ft(b)):b.loadVideoByPlayerVars(Y.playerVars_)})};
var xH8=function(Y,b,w,V,H){b&&(w===void 0&&(w=0),V===void 0&&(V=0),Y.playbackDurationSeconds_=V/1E3,Y.playerVars_={adformat:"17_8",videoId:b,suggestedQuality:"hd720",startSeconds:w/1E3,player_params:H})};
tW.prototype.mute=function(){this.playerPromise_.then(function(Y){Y.mute()})};
tW.prototype.unMute=function(){this.playerPromise_.then(function(Y){Y.unMute()})};var q7j=function(Y,b){var w=zG();Y||(Y="unknown");b||(b="unknown");Y="MAIN_APP_WEB_PAGE_TYPE_"+Y.toUpperCase();Y in FVK||(Y="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");b="MAIN_APP_WEB_REQUEST_TYPE_"+b.toUpperCase();b in LV$||(b="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.lf(w,{mainAppWeb:{pageType:Y,requestType:b,isShellLoad:_.Wf("IS_SHELL_LOAD",!1)}})},sXt={start:function(){_.lf(LVu(),{mainAppWeb:_.$y()})},
success:function(){_.hJ(LVu(),"SUCCESS")},
failure:function(){_.hJ(LVu(),"FAILURE")},
cancelled:function(){_.hJ(LVu(),"CANCELLED")}};var QXI,vkt,vIK;QXI=_.wM(["/sw.js"]);vkt=_.wM(["/sw.js?0"]);_.PP5=_.HL(QXI);vIK=_.HL(vkt);var ZcU=function(){var Y=Error.apply(this,arguments);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack)};
_.P(ZcU,Error);_.Tg.prototype.load=function(Y){this.megabloxUrl_=_.zO("YPC_MB_URL");_.io(this.megabloxUrl_,(0,_.nC)(function(){Y&&Y()},this))};
_.csB=function(Y,b,w,V,H,f,E,U,X,I,k){_.ZUB(X);Y.load((0,_.nC)(function(){try{var l=f?f:_.zO("HL"),x=_.zO("SESSION_INDEX");_.I1e("client",function(){JpK("59",{helpCenterPath:"/youtube",locale:l,window:window}).JSC$8012_loadChatSupport({authuser:String(x)})})}catch(Q){throw jy(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),H&&H(Q),_.Ft(Q),Q;
}Bz_(this,b,w,V,H,f,E,U,X,I,k)},Y))};
_.Tg.prototype.openFixFlowDialog=function(Y,b,w,V){this.load((0,_.nC)(function(){try{nkU(this,_.Aq("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(Y).withIntegratorCallback(b).load(w,V)}catch(H){throw _.Ft(H),H;}},this))};
var nkU=function(Y,b,w,V){var H=b.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.q("enable_window_constrained_buy_flow_dialog")&&(H=H.usingPopupStyle(_.Aq("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));V&&(H=H.usingCloseCallback(V));b.bootstrap.fromPaymentsUrl(Y.megabloxUrl_);Y=b.bootstrap.asMashupMode(H);w=w?w:_.zO("HL");Y.usingGaiaIndex(_.zO("SESSION_INDEX")).usingLocale(w).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.q("enable_google_payments_buyflow_material2_style_web")?
Y.usingStyle(":m2;pc=#444;ac=#065fd4"):Y.usingStyle(":md;pc=#444;ac=#065fd4");return Y},Bz_=function(Y,b,w,V,H,f,E,U,X,I,k){try{var l=_.Aq("payments.business.integration");
if(!l)throw new ZcU("payments.business.integration is undefined");var x=l.standaloneContextAuthId.forUserId(),Q=U;_.q("enable_setting_app_inert_when_buy_flow_opens")&&(Q=U?function(){nIL(!1);U()}:function(){nIL(!1)});
var Z=nkU(Y,l,f,Q);E&&Z.usingServerAnalyticsEventHandler(E);var e=Z.inStandaloneContext(x).buyFlow(function(O){if(O&&(!O.integratorData||O.integratorData===""||O.error))if(O.error!=null)if(String(O.error)==="-1")_.B0v(X);else{var L=String(O.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";jy(10,k,L,O.debugCode);_.Gg(L,X,O.debugCode);L=new _.BQ("PAYMENT_ERROR_MESSAGE::"+O.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+
O.internalErrorDetails);_.Ft(L)}else jy(10,k,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Gg("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",X,"EMPTY_INTEGRATOR_DATA"),_.Ft(Error("dg"));w&&(nIL(!1),w(O))}).withEncryptedParameters(b);
I&&e.withClientParameters(ECI(_.XCG(I)));e.load(function(){jy(24,k);_.r5("ttc",void 0,"commerce_transaction");H96("commerce_transaction");V&&(nIL(!0),V())},function(O){if(O==null?0:O.debugCode)var L=O==null?void 0:O.debugCode;
else if(!O||(O==null?0:O.debugCode))L="EMPTY_LOAD_FAILURE_ERROR",_.Ft(Error(L));else{L="EMPTY_LOAD_FAILURE_DEBUG_CODE";var r=new _.BQ("LOAD_FAILURE:"+O.message," DEBUG_CODE:"+L);_.Ft(r)}jy(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",L);_.Gg("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",X,L);_.Ft(O);H&&H(O)})}catch(O){throw O instanceof ZcU&&(jy(10,k,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),H&&H(O)),_.Ft(O),O;
}};var M5Q;M5Q=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.f_I=function(Y,b){b=b===void 0?!1:b;Y=M5Q.test(Y)?_.Uu(Y):null;!b&&window.payments||!Y?(Y=_.j9(),b=Y.promise,Y.resolve()):b=_.F4j(Y,{attributes:{"data-payments-main":"",id:"payment-lib"}});return b};var eWt;eWt=_.wM(["//www.googletagmanager.com/gtm.js?id=",""]);_.Rj=function(Y,b){_.gK(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:b}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.zO("GL")}),b=_.xG("SCRIPT"),b.async=!0,_.Ku(b,_.HL(eWt,Y)),b.id="gtm",Y=document.getElementsByTagName("script"),Y.length==0?document.head.appendChild(b):(Y=Y[0],Y.parentNode.insertBefore(b,Y)))};
_.dW=function(Y){if(Y=JSON.parse(Y))window.dataLayer=window.dataLayer||[],window.dataLayer.push(Y)};var plQ,Ocj;plQ=_.wM(["https://clients2.google.com/gr/gr_sync.js"]);_.HmG=function(){};
_.HmG.prototype.init=function(){if(Ocj()){var Y=_.j9();Y.resolve();return Y.promise}return _.F4j(_.HL(plQ)).then(function(){if(!Ocj())throw Error("eg");},function(){throw Error("fg");
})};
_.gqg=function(){if(!Ocj())return"";var Y=window.google.gr;Y.init({async:{schedule:"sync"},merchantId:"youtube"});Y.start();Y=Y.finish();return Y==null?"":Y};
Ocj=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.F=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.P(_.F,PolymerFakeBaseClassWithoutHtml);_.s6=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.P(_.s6,PolymerFakeBaseClassWithoutHtml);var Mir=window.ShadyDOM;var cmK,NQe,XRG,D7r,o1v,Iab,Fc,Nl;cmK=_.q("enable_shadydom_free_scoped_query_methods");NQe=_.q("enable_shadydom_free_scoped_node_methods");XRG=_.q("enable_shadydom_free_scoped_readonly_properties_batch_one");D7r=_.q("enable_shadydom_free_parent_node");o1v=_.q("enable_shadydom_free_children");Iab=_.q("enable_shadydom_free_last_child");Fc=window.ShadyDOM;_.DT=Fc&&Fc.noPatch&&Fc.wrap?Fc.wrap:Fc?function(Y){return Fc.patch(Y)}:function(Y){return Y};
Nl=function(Y){if(Y instanceof ShadowRoot)this.host=(0,_.DT)(Y.host),this.root=Y;else if(Y.$$){this.host=(0,_.DT)(Y);var b;this.root=(b=Y.root)!=null?b:this.host}else if(Y.polymerController){this.host=(0,_.DT)(Y);var w;this.root=(w=this.host.shadowRoot)!=null?w:this.host}else this.root=this.host=(0,_.DT)(Y)};
E1v();U7G();ksr();laG();m76();var t5Q={querySelector:function(Y,b){b=pw6(b,br(Y));Y=_.w_(Y);return VC(Y).prototype.querySelector.call(Y,b)},
querySelectorAll:function(Y,b){b=pw6(b,br(Y));Y=_.w_(Y);return VC(Y).prototype.querySelectorAll.call(Y,b)}},RWU={appendChild:function(Y,b){var w=br(Y),V=_.YZ(b);
return _.g1t(_.w_(Y),w?_.g_(b,w,V):b)},
cloneNode:function(Y,b){var w=_.YZ(Y);Y=_.w_(Y);b=VC(Y).prototype.cloneNode.call(Y,b);return w?fV(b,w):b},
contains:function(Y,b){var w=br(Y),V=_.YZ(b);return w!==V?!1:fae(Y,b)},
insertBefore:function(Y,b,w){var V=br(Y),H=_.YZ(b);Y=_.w_(Y);b=V?_.g_(b,V,H):b;return VC(Y).prototype.insertBefore.call(Y,b,w)},
removeChild:function(Y,b){var w=br(Y);Y=_.w_(Y);b=w?fV(b,w):b;return VC(Y).prototype.removeChild.call(Y,b)},
replaceChild:function(Y,b,w){var V=br(Y),H=_.YZ(b);b=V?_.g_(b,V,H):H?fV(b,H):b;w=V?fV(w,V):w;Y=_.w_(Y);return VC(Y).prototype.replaceChild.call(Y,b,w)},
getRootNode:function(Y,b){b=b===void 0?{composed:!0}:b;var w;if(((w=b)!=null?w:{}).composed)Y=WAK(Y);else{b=Y;for(Y=tiG(Y);Y;)b=Y,Y=dTI(Y);Y=b}return Y}},x7a=XRG?{firstChild:uXK,
nextSibling:G8u,previousSibling:JBa,firstElementChild:Yee,lastElementChild:wRq,nextElementSibling:jHe,previousElementSibling:T0L,childNodes:Vgr}:{};D7r&&(x7a.parentNode=$TK);o1v&&(x7a.children=H$u);Iab&&(x7a.lastChild=b$6);cmK&&h1I(t5Q);NQe&&h1I(RWU);qer();var sxB=function(Y){this.node=Y instanceof ShadowRoot?Y.host:Y};
Qxq();v1G();var BQM=new WeakMap;var Mgq=Symbol("xd");var R1g=new Set(["tap","track","down","up"]),d7I=_.q("pbcm_fi_query_decorators");var LZ=function(){return _.s6.apply(this,arguments)||this};
_.P(LZ,_.s6);_.g=LZ.prototype;_.g.getState=function(){return this.store.getState()};
_.g.dispatch=function(Y){this.store.dispatch(Y)};
_.g.beforeRegister=function(){if(this&&typeof this==="object"){var Y;var b=!!this.useSignals||!((Y=this.polymerController)==null||!Y.useSignals)}else b=!1;if(!b&&this.properties)for(b=_.N(Object.keys(this.properties)),Y=b.next();!Y.done;Y=b.next()){var w=Y.value;Y=this.properties[w];if(Y.selector){if(Y.computed)throw Error("lg");w=["reduxPropertiesRecomputeTrigger",'"'+w+'"'].concat(_.Bt(Y.selectorArgs||[])).join(",");Y.computed="recomputeReduxSelector("+w+")"}}};
_.g.attached=function(){var Y=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){Y.reduxPropertiesRecomputeTrigger++}));
_.q("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.g.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.g.recomputeReduxSelector=function(Y,b){var w=_.BN.apply(2,arguments),V=this.properties[b].selector;if(!V)throw Error("jg`"+b);return V.apply(null,[this.store.getState()].concat(_.Bt(w)))};
_.g.select=function(Y){var b=_.BN.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return Y.apply(null,[this.store.getState()].concat(_.Bt(b)))};
_.up.Object.defineProperties(LZ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
LZ.prototype.recomputeReduxSelector=LZ.prototype.recomputeReduxSelector;_.z([_.R(),_.K("design:type",Number)],LZ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.z([_.QC()],LZ);var SH=[],rmq={},d_=function(){return bo.apply(this,arguments)||this};
_.P(d_,bo);d_.prototype._addPropertyEffect=function(Y,b,w){if(b==="__observeEffects"&&w){var V,H=(V=w.info.method)!=null?V:w.info.methodName;if(H){var f=this[H];this[H]=function(){SH.push(H);try{f==null||f.apply(this,arguments)}finally{SH.pop()}}}}_.ny._addPropertyEffect.apply(this,[Y,
b,w])};
d_.prototype._setPendingProperty=function(Y,b,w){if(SH.length){var V=SH[SH.length-1],H;(H=rmq[this.is])!=null&&H.has(V)||(z1a(this.is,V),_.RY("polymerPropertyChangedInObserver",{componentName:this.is,observerName:V}))}return _.ny._setPendingProperty.apply(this,[Y,b,w])};
_.z([qd6()],d_);var WnM=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),i$G,ZT={};_.q("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=ZT);var Ml=function(){return _.s6.apply(this,arguments)||this};
_.P(Ml,_.s6);Ml.prototype._setUnmanagedPropertyToNode=function(Y,b,w){Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!0);if(w!==Y[b]||typeof w==="object")Y[b]=w;Y.is&&Y.polymerController&&Y.polymerController!==Y&&BX(Y.is,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");Y.loggingStatus&&(Y.loggingStatus.isDeclarativeExternal=!1)};
_.z([_.QC()],Ml);Kna()&&(rS.prototype._setUnmanagedPropertyToNode=(new Ml)._setUnmanagedPropertyToNode);_.HeL={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(Y){},set polymerController(Y){}}]};var Ro=function(){var Y=bo.apply(this,arguments)||this;Y.json=function(){};
return Y};
_.P(Ro,bo);Ro.prototype.equals=function(Y,b){return Y===b};
Ro.prototype.isEmpty=function(Y){return!Y||_.TK(Y)&&Y.length===0};
_.z([qd6()],Ro);var dHr=function(Y){Y=keI(Y);iM.call(this,Y)};
_.P(dHr,iM);dHr.prototype.addProvider=function(Y){Y=Y.key?Y:keI([Y])[0];var b=this.keyIdToIndex.get(Y.key.id);if(b){if(jxG(Y,this.providers[b]))throw Error("mg`"+Y.key.displayName);}else iM.prototype.addProvider.call(this,Y)};
var FNC=new dHr([]);var LNk=!1;var beB={};LNk||(YBr(),LNk=!0);
beB.InjectBehavior={initializeInjection:function(){var Y=this.provide;try{if((Y=Y!=null?Y:[])&&Y.length>0)for(var b=keI(Y),w=_.N(b),V=w.next();!V.done;V=w.next())FNC.addProvider(V.value);var H=new Set;GsL(this.behaviors||[],H);b={};for(var f=_.N(H),E=f.next();!E.done;E=f.next()){var U=E.value;U.inject&&Object.assign(b,U.inject)}this.inject&&Object.assign(b,this.inject);for(var X=_.N(Object.keys(b)),I=X.next();!I.done;I=X.next()){var k=I.value,l=b[k];try{this[k]=FNC.resolve(l)}catch(x){throw x;}}}catch(x){throw Error(x.message);
}}};var Vtr;var ggt=/\bclass\b/.test(function(){}.toString()),EgK=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var S7r=function(Y){this.wasDefined=!0;Array.isArray(Y)||Y instanceof Array?(this.JSC$11351_getImpl=Y[0],this.JSC$11351_setImpl=Y[1]):this.JSC$11351_getImpl=Y};
_.g=S7r.prototype;_.g.getWithPath=function(Y){return X7G(this.JSC$11351_getImpl(),Y)};
_.g.setWithPath=function(Y,b){var w=this;if(Y.length)throw Error("ng");if(!this.JSC$11351_setImpl)throw Error("og");Qz(function(){w.JSC$11351_setImpl(b)})};
_.g.notifyPath=function(){throw Error("pg");};
_.g.notifySplices=function(){throw Error("qg");};
_.g.getChangeRecordSignal=function(Y,b){var w=this;if(Y.length)throw Error("rg");return function(){var V=w.getWithPath(Y);return{path:b!=null?b:"",base:V,value:V}}};
_.g.getSplicesSignal=function(){throw Error("sg");};
_.g.getPathMutationSignal=function(){throw Error("tg");};
_.g.pop=function(){throw Error("ug");};
_.g.push=function(){throw Error("vg");};
_.g.splice=function(){throw Error("wg");};
_.g.unshift=function(){throw Error("xg");};var aj=function(Y){var b=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(Y)||Y instanceof Array?(this.JSC$11356_getImpl=Y[0],this.JSC$11356_setImpl=Y[1]):this.JSC$11356_getImpl=Y;this.wasDefined=!1;I2(function(){b.wasDefined=b.JSC$11356_getImpl()!==void 0})};
aj.prototype.getWithPath=function(Y){return X7G(this.JSC$11356_getImpl(),Y)};
aj.prototype.setWithPath=function(Y,b){var w=this;if(Y[Y.length-1]!=="*"&&Y[Y.length-1]!=="splices"){if(Y.length===0){if(!this.JSC$11356_setImpl)throw Error("yg");this.wasDefined||(this.wasDefined=b!==void 0);Qz(function(){w.JSC$11356_setImpl(b)})}else{for(var V=I2(function(){return w.getWithPath([])}),H=0;H<Y.length-1;H++){if(!V)return;
V=V[Y[H]]}H=Y[Y.length-1];V&&(V[H]=b);this.wasDefined||(this.wasDefined=Y.length>1||b!==void 0)}aS8(this,Y,{pathComponents:Y,value:b})}};
aj.prototype.notifyPath=function(Y,b){Y.length===0?b&&this.setWithPath(Y,b.value):aS8(this,Y,{pathComponents:Y,value:b==null?void 0:b.value,fallbackWhenUndefined:b==null?void 0:b.value})};
var aS8=function(Y,b,w,V){if(Y.setMutationSignal){var H=++Y.mutationIndex,f=[Y.observedPath],E=Y.observedPath,U;b.length===0&&(U=E);for(var X=0;X<b.length;X++){var I=E.subPaths[b[X]];if(!I)break;f.push(I);E=I;X===b.length-1&&(U=I)}for(b=!1;f.length;)E=f.shift(),E.data={index:H,mutation:w,spliceMutationIndex:V},b||(b=E===U),b&&f.push.apply(f,_.Bt(Object.values(E.subPaths)));Qz(function(){Y.setMutationSignal(H)})}};
aj.prototype.notifySplices=function(Y,b){var w=this,V=I2(function(){return w.getWithPath(Y)}),H=[].concat(_.Bt(Y),["splices"]);
aS8(this,H,{pathComponents:H,value:{indexSplices:b}});if(V==null?0:V.length)b=this.mutationIndex,H=[].concat(_.Bt(Y),["length"]),aS8(this,H,{pathComponents:H,value:V.length},b)};
var rfC=function(Y,b,w,V,H,f){Y.notifySplices(w,[{index:V,addedCount:H,removed:f,object:b,type:"splice"}])},zW5=function(Y,b){Y=Y.observedPath;
for(var w=0;w<b.length;w++){var V=b[w],H=Y.subPaths[V];H||(H={pathComponents:b.slice(0,w+1),subPaths:{}},Y.subPaths[V]=H);Y=H}},KNo=function(Y,b,w){zW5(Y,b);
if(!Y.getMutationSignal){var V=_.N(_.kw(Y.mutationIndex,void 0,"HavCgf"));Y.getMutationSignal=V.next().value;Y.setMutationSignal=V.next().value}var H=Y.getMutationSignal;return _.sN(function(){H();return w(WNK(Y,b))},void 0,"BYaPo")};
aj.prototype.getChangeRecordSignal=function(Y,b){var w=this,V=this.mutationIndex,H;return KNo(this,Y,function(f){if(f&&f.index>V){var E=f.mutation;V=f.index;H=void 0}f=I2(function(){return w.getWithPath(Y)});
if(E){var U=E.pathComponents[E.pathComponents.length-1],X=[].concat(_.Bt(E.pathComponents));if(U==="splices"||U==="length")return{base:f,path:(b?[b].concat(_.Bt(X)):X).join("."),value:E.value};var I=Y.length>X.length?Y:X,k;return{base:f!=null?f:E.fallbackWhenUndefined,path:(b?[b].concat(_.Bt(I)):I).join("."),value:(k=I2(function(){return w.getWithPath(I)}))!=null?k:E.fallbackWhenUndefined}}H||(H={base:f,
path:(b?[b].concat(_.Bt(Y)):Y).join("."),value:f});return H})};
aj.prototype.getSplicesSignal=function(Y){var b=this.mutationIndex,w;return KNo(this,Y,function(V){if(V&&V.index>b&&V.spliceMutationIndex!==b){var H=V.mutation;b=V.index;w=void 0}return H&&H.pathComponents[H.pathComponents.length-1]==="splices"?w=V=H.value:w})};
aj.prototype.getPathMutationSignal=function(Y){var b=this;zW5(this,Y);if(!this.getMutationSignal){var w=_.N(_.kw(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=w.next().value;this.setMutationSignal=w.next().value}var V=this.getMutationSignal,H=this.mutationIndex,f;return _.sN(function(){V();var E=WNK(b,Y);if(E&&E.index>H&&E.mutation&&Dsv(E.mutation.pathComponents,Y)){var U=E.mutation;H=E.index}if(!f||H!==f.index){var X,I;E=(I=I2(function(){return b.getWithPath(Y)}))!=null?I:(X=U)==null?
void 0:X.fallbackWhenUndefined;
f={index:H,value:E}}return f},void 0,"Aumsyf")};
var WNK=function(Y,b){Y=Y.observedPath;b=_.N(b);for(var w=b.next();!w.done;w=b.next())Y=Y.subPaths[w.value];return Y.data};
aj.prototype.pop=function(Y){var b=this,w=I2(function(){return b.getWithPath(Y)});
if(!(w instanceof Array))throw Error("zg");var V=w.length>0,H=w.pop();V&&rfC(this,w,Y,w.length,0,[H]);return H};
aj.prototype.push=function(Y){var b=_.BN.apply(1,arguments),w=this,V=I2(function(){return w.getWithPath(Y)});
if(!(V instanceof Array))throw Error("Ag");var H=V.length,f=V.push.apply(V,_.Bt(b));b.length&&rfC(this,V,Y,H,b.length,[]);return f};
aj.prototype.splice=function(Y,b,w){var V=_.BN.apply(3,arguments),H=this,f=I2(function(){return H.getWithPath(Y)});
if(!(f instanceof Array))throw Error("Bg");b<0?b=f.length-Math.floor(-b):b&&(b=Math.floor(b));var E=f.splice.apply(f,[b,w].concat(_.Bt(V)));(V.length||E.length)&&rfC(this,f,Y,b,V.length,E);return E};
aj.prototype.unshift=function(Y){var b=_.BN.apply(1,arguments),w=this,V=I2(function(){return w.getWithPath(Y)});
if(!(V instanceof Array))throw Error("Cg");var H=V.unshift.apply(V,_.Bt(b));b.length&&rfC(this,V,Y,0,b.length,[]);return H};var icU=!0,AfI=!1,$Ha=!1,CPt=!1,rW=!1,yfo=0;CPt=!1;yfo=0;icU=!0;rW=AfI=$Ha=!1;var zW=function(Y,b,w){this.model=Y;this.unknownSignalResolver=b;this.options=w;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];b=_.N(sfb());Y=b.next().value;b=b.next().value;this.owner=Y;this.disposeImpl=b};
zW.prototype.dispose=function(){if(!this.isDisposed){for(var Y=_.N(this.childSignalProxies),b=Y.next();!b.done;b=Y.next())b.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var $Ho=function(Y,b){Y=_.Vz(Y.owner);try{b()}finally{_.Vz(Y)}};
zW.prototype.effect=function(Y){$Ho(this,function(){_.a2(Y)})};
var jXk=function(Y,b){Y.options!=null||(Y.options={});var w;(w=Y.options).immutableProps!=null||(w.immutableProps=new Set);Y.options.immutableProps.add(b)},yHB=function(Y,b){b=""+b;
GAI(Y,b);var w,V;if((w=Y.options)==null?0:(V=w.immutableProps)==null?0:V.has(b))return!0;var H;if((H=Y.model.__signalCache)==null?0:H.has(b))w=Y.model.__signalCache.get(b),Array.isArray(w)&&jXk(Y,b);var f,E,U;return(U=(f=Y.options)==null?void 0:(E=f.immutableProps)==null?void 0:E.has(b))!=null?U:!1},TzU=function(Y,b){var w;
Y.unknownSignalResolver&&(w=Y.unknownSignalResolver(b));var V,H;((V=Y.options)==null?0:(H=V.immutableProps)==null?0:H.has(b))?w!=null||(w=new S7r(_.kw(Y.model[b],void 0,"bgwlkd"))):w!=null||(w=new aj(_.kw(Y.model[b],void 0,"V1hou")));var f=Y.model.hostElement;Object.defineProperty(Y.model,b,{get:function(){C5B(f,b);return w.getWithPath([])},
set:function(E){nV(f,b);Y.setWithPath([b],E)},
configurable:!0});return w},GAI=function(Y,b){var w,V,H;
((w=Y.model.__signalCache)==null||!w.has(b))&&((V=Y.options)==null?0:(H=V.externalSignalProps)==null?0:H.has(b))&&Y.model[b]},ao=function(Y,b){b=""+b;
var w=Y.signalCache[b];if(w!==void 0)return w;w=!1;GAI(Y,b);var V;if((V=Y.model.__signalCache)==null?0:V.has(b))if(w=Y.model.__signalCache.get(b),Array.isArray(w))w=!0,jXk(Y,b);else return Y.signalCache[b]=Y.model.__signalCache.get(b).signal,Y.signalCache[b];var H,f;V=(f=(H=Y.options)==null?void 0:H.reactivityMode)!=null?f:0;var E,U;if(!((E=Y.options)==null?0:(U=E.reactiveProps)==null?0:U.has(b))&&!w&&V===1)throw Error("Dg`"+b);H=w?Jfj(Y,b):TzU(Y,b);return Y.signalCache[b]=H},Jfj=function(Y,b){var w=
Object.getOwnPropertyDescriptor(Y.model.constructor.prototype,b),V=function(){return Y.model[b]};
return new S7r(w&&w.get&&!w.set?V:[V,function(H){Y.model[b]=H}])};
zW.prototype.getWithPath=function(Y){var b=_.N(Y);Y=b.next().value;b=uO(b);C5B(this.model.hostElement,""+Y);return ao(this,Y).getWithPath(b)};
zW.prototype.setWithPath=function(Y,b){if(Y.length){nV(this.model.hostElement,Y.join("."));var w=_.N(Y);Y=w.next().value;w=uO(w);ao(this,Y).setWithPath(w,b)}};
zW.prototype.getPathMutationSignal=function(Y){var b=_.N(Y);Y=b.next().value;b=uO(b);return ao(this,Y).getPathMutationSignal(b)};
zW.prototype.notifyPath=function(Y,b){var w=_.N(Y);Y=w.next().value;w=uO(w);ao(this,Y).notifyPath(w,b)};
var ug8=function(Y,b){if(b.type==="literal")return function(){return{rootWasDefined:!0,value:b.value}};
var w=LV(b.path),V=_.N(w),H=V.next().value;V=uO(V);var f,E;if(b.type==="path"&&(w.length===1||((f=Y.options)==null?0:(E=f.immutableProps)==null?0:E.has(H))))return function(){var l=Y.getWithPath(w.slice(0,1)),x=X7G(l,w.slice(1));l=l!==void 0;rW&&(l=ao(Y,w[0]).wasDefined);return{rootWasDefined:l,value:x}};
var U=ao(Y,H);if(b.type==="path"){var X=U.getPathMutationSignal(V);return function(){var l=rW?U.wasDefined:r2(Y.owner,function(){return U.getWithPath([])})!==void 0;
var x,Q=(x=X())==null?void 0:x.value;return{rootWasDefined:l,value:Q}}}if(b.type==="splices"){var I=U.getSplicesSignal(V);
return function(){var l=I();return{rootWasDefined:rW?U.wasDefined:l!==void 0,value:l}}}var k=U.getChangeRecordSignal(V,""+H);
return function(){var l=k();return{rootWasDefined:rW?U.wasDefined:l!==void 0,value:l}}},h6I=function(Y,b,w){var V=w.map(function(U){return ug8(Y,U)}),H=w.length===0,f=[],E=w.length!==1||w[0].type!=="path"?!1:!0;
Y.effect(function(){for(var U=V.length,X=[],I=!!f.length,k=0;k<U;k++){var l=V[k](),x=l.rootWasDefined;l=l.value;H||(H=x);X[k]=l;E&&(X[k+U]=I?f[k]:X[k],f[k]=l)}H&&r2(Y.owner,function(){return void b.apply(null,_.Bt(X))})})},msg=function(Y,b,w,V,H){var f=ao(Y,b);
H!==void 0&&f.setWithPath([],H);h6I(Y,function(){var E=_.BN.apply(0,arguments);nV(Y.model.hostElement,b,!0);f.setWithPath([],w.apply(null,_.Bt(E)))},V)};
zW.prototype.arrayPush=function(Y){var b=_.BN.apply(1,arguments),w=_.N(Y),V=w.next().value;w=uO(w);V=ao(this,V);return V.push.apply(V,[w].concat(_.Bt(b)))};
zW.prototype.arraySplice=function(Y,b,w){var V=_.BN.apply(3,arguments),H=_.N(Y),f=H.next().value;H=uO(H);f=ao(this,f);return f.splice.apply(f,[H,b,w].concat(_.Bt(V)))};
zW.prototype.arrayUnshift=function(Y){var b=_.BN.apply(1,arguments),w=_.N(Y),V=w.next().value;w=uO(w);V=ao(this,V);return V.unshift.apply(V,[w].concat(_.Bt(b)))};
zW.prototype.notifySplices=function(Y,b){var w=_.N(Y);Y=w.next().value;w=uO(w);ao(this,Y).notifySplices(w,b)};var ngu=/([^\s]+?)\(([\s\S]*)\)/,PZu=/\.([^.]+)$/,e6r=/\\,/g,Qft=/&comma;/g,vgM=/\\(.)/g,Mtt=[],ZeM={"*":"wildcard",splices:"splices"};var rHe=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"),FLL=/[A-Z]/,Ybd=["class","hidden","id","on-dom-change"],WLB=new Set([].concat(_.Bt(Ybd),
["if","notify-dom-change","restamp"])),KLg=new Set([].concat(_.Bt(Ybd),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),ier=new Set(["restamp"]);var zlB=new Set(["className","id"]);var jfM=Symbol(),wlq=window;var UHq=window;var lSe=0,mHt=0,r_=[],kAB=0,DHa=!1,ISb=document.createTextNode("");(new window.MutationObserver(okb)).observe(ISb,{characterData:!0});var WX=new Map,zd=0,b4o=function(Y){this.mappedHandleId=Y},xHq=function(Y,b,w,V){this.mappedHandleId=Y;
var H=this;this.mappedHandleId=Y;this.callback=b;this.waitTime=w;this.schedulerPriority=V;this.handleId=_.Lb.addJob(function(){H.callback();WX.delete(H.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.P(xHq,b4o);xHq.prototype.cancel=function(){_.Lb.cancelJob(this.handleId);WX.delete(this.mappedHandleId)};
var q7K=function(Y,b){this.mappedHandleId=Y;var w=this;this.mappedHandleId=Y;this.callback=b;this.handleId=hWK(function(){w.callback();WX.delete(w.mappedHandleId)})};
_.P(q7K,b4o);q7K.prototype.cancel=function(){var Y=this.handleId-mHt;Y<0||r_.length<=Y||(r_[Y]=null);WX.delete(this.mappedHandleId)};var PPt=function(){};
PPt.prototype.cancel=function(){this.jobHandle!==void 0&&(sXM(this.jobHandle),this.jobHandle=void 0)};
PPt.prototype.run=function(Y,b,w){var V=this;this.cancel();this.callback=Y;this.jobHandle=_.KV(function(){Y();V.callback=void 0},b,w)};
PPt.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var QXG=new WeakMap;var wd5=Y8(function(Y){for(var b=Y,w=0;w<3;w++)b=Object.getPrototypeOf(b);delete b.prototype.connectedCallback;var V=function(){return Y.apply(this,arguments)||this};
_.P(V,Y);V.prototype._attachDom=function(H){if(!H)return null;var f=(0,_.DT)(this.hostElement);f.attachShadow({mode:"open",shadyUpgradeFragment:H});f.shadowRoot.appendChild(H);return f.shadowRoot};
V.prototype._takeAttributes=function(){for(var H=this.hostElement.attributes,f=0;f<H.length;f++){var E=H[f],U=void 0,X=void 0;(X=(U=this).__attributeReaction)==null||X.call(U,E.name,null,E.value)}};
V.prototype._readyClients=function(){Y.prototype._readyClients.call(this);this.root=this};
V.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);Y.prototype.connectedCallback.call(this)};
_.up.Object.defineProperties(V,{template:{configurable:!0,enumerable:!0,get:function(){return V.prototype._template}}});
return V}),VRr=Y8(function(Y){var b=function(){return Y.apply(this,arguments)||this};
_.P(b,Y);b.prototype.created=function(){if(this.__notifyEffects)for(var w=_.N(Object.values(this.__notifyEffects)),V=w.next();!V.done;V=w.next()){V=_.N(V.value);for(var H=V.next();!H.done;H=V.next())H.value.fn=M5r}if(this.__reflectEffects)for(w=_.N(Object.values(this.__reflectEffects)),V=w.next();!V.done;V=w.next())for(V=_.N(V.value),H=V.next();!H.done;H=V.next())H.value.fn=eWM};
b.prototype._addEventListenerToNode=function(w,V,H){w=AU(w);tQ(w,V,H)||Y.prototype._addEventListenerToNode.call(this,w,V,H)};
b.prototype._removeEventListenerFromNode=function(w,V,H){w=AU(w);Rd(w,V,H)||Y.prototype._removeEventListenerFromNode.call(this,w,V,H)};
b.prototype._propertiesChanged=function(w,V,H){if(this.__dataToNotify&&this.__notifyEffects)for(var f=_.N(Object.keys(this.__dataToNotify)),E=f.next();!E.done;E=f.next()){E=E.value;var U=nkB(E);this.__notifyEffects[U]||delete this.__dataToNotify[E]}else this.__dataToNotify=null;Y.prototype._propertiesChanged.call(this,w,V,H)};
b.prototype.fire=function(w,V,H){V=V===void 0?{}:V;var f;return _.Ua(AU((f=H==null?void 0:H.node)!=null?f:this),w,V,H)};
b.prototype._ensureAttribute=function(w,V){var H=AU(this);H.hasAttribute(w)||Sm(H,V,w)};
b.prototype.isLightDescendant=function(w){var V=AU(this);return AU(V)!==w&&_.E6(V).contains(w)&&_.E6(V).getRootNode()===_.E6(w).getRootNode()};
return b});
_.MM.ready=function(){var Y;((Y=this.hostElement)!=null?Y:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var b;((b=this.hostElement)!=null?b:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Li._subscribeIronResize=function(Y){var b;((b=Y.hostElement)!=null?b:Y).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Li._unsubscribeIronResize=function(Y){var b;((b=Y.hostElement)!=null?b:Y).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var t5r=[Array,Boolean,Date,Number,Object,String],yC=function(Y,b,w,V){this.polySiInfo=Y;this.polySiParams=b;this.polySiContext=w;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;V||this instanceof HTMLElement&&(V=this);if(!V)throw Error("Kg");this.allowedProps=b.allowedProps;this.hostElement=V;this.is=Y.is;this.upgradeDisabled=!!b.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");Y=new Set(b.reactiveSchemas.filter(function(H){return H.type!==
"observe"}).map(function(H){return H.propertyKey}));
this.signalProxy=new zW(this,void 0,{reactiveProps:Y,reactivityMode:b.reactivityMode});this.__dataHasAccessor={};b=_.N(b.reactiveSchemas);for(Y=b.next();!Y.done;Y=b.next())Y=Y.value,Y.type==="signal"&&(this.__dataHasAccessor[Y.propertyKey]=!0);this.upgradeDisabled||H4o(this)};
yC.prototype.getExtraMethodsToForward=function(){return[]};
var H4o=function(Y){Y.polySiContext.didRegister||(Y.registered(),Y.polySiContext.didRegister=!0);Y.polySiContext.finalizedTemplate||(Y.polySiContext.finalizedTemplate={},Y.polySiParams.templateGetter&&(Y.polySiContext.finalizedTemplate.processedTemplate=XlM(Y.polySiParams.templateGetter,Y.polySiParams.is)));gJ5(Y);var b=Y.hostElement;b.loggingStatus!=null||(b.loggingStatus={});b.loggingStatus.isInitializing=!0;I2(function(){return void Y.created()});
b.loggingStatus.isInitializing=!1;Y.isPolySiElementConnected&&f2r(Y)},f2r=function(Y){Y.didCallReady||(I2(function(){return void Y.ready()}),Y.didCallReady=!0);
Y.isAttached=!0;Y.attached()};
_.g=yC.prototype;_.g.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||f2r(this)};
_.g.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.g.attributeChangedCallback=function(Y,b,w){if(this.upgradeDisabled)Y==="disable-upgrade"&&w===null&&(this.upgradeDisabled=!1,H4o(this));else if(b!==w){var V=_.xL(Y),H=this.polySiContext.typesForSignals[V];if(H&&(!this.reflecting||_.q("polysi_attribute_changed_serializing_killswitch"))){switch(H){case Object:try{var f=JSON.parse(w)}catch(U){f=w}break;case Array:try{f=JSON.parse(w)}catch(U){f=null}break;case Date:f=isNaN(w)?String(w):Number(w);f=new Date(f);break;case Boolean:f=w!==null;break;case Number:f=
Number(w);break;default:f=w}this[V]=f}V=_.N(this.polySiParams.behaviors);for(H=V.next();!H.done;H=V.next())f=void 0,(f=H.value.attributeChanged)==null||f.call(this,Y,b,w);var E;(E=this.attributeChanged)==null||E.call(this,Y,b,w)}};
_.g.attributeChangedCallbackWrapper=function(Y,b,w){this.attributeChangedCallback(Y,b,w)};
_.g.setPropertiesFromInitialAttributeValues=function(){for(var Y=0;Y<this.hostElement.attributes.length;Y++){var b=this.hostElement.attributes[Y];(b.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(b.name))&&this.attributeChangedCallback(b.name,null,b.value)}};
_.g.created=function(){this.provide=this.polySiParams.provide;var Y;(Y=this.initializeInjection)==null||Y.call(this);Y=_.N(this.polySiParams.reactiveSchemas);for(var b=Y.next();!b.done;b=Y.next())b=b.value,b.type==="signal"&&(this.mutablePropNames.add(b.propertyKey),ao(this.signalProxy,b.propertyKey));OcK(this,this.polySiInfo,this.polySiParams.behaviors);Y=_.N(this.polySiParams.reactiveSchemas);for(b=Y.next();!b.done;b=Y.next())b=b.value,b.type==="signal"&&b.value!==void 0&&(this.signalProxy.model[b.propertyKey]=
typeof b.value==="function"?b.value.call(this):b.value);if(this.polySiParams.signalProperties)for(Y=_.N(this.polySiParams.signalProperties),b=Y.next();!b.done;b=Y.next()){b=b.value;var w=void 0;((w=this.__signalCache)==null?0:w.has(b))||(this.signalProxy.model[b]=void 0)}CPt||NTo(this);plr(this);Y=_.N(this.polySiParams.behaviors);for(b=Y.next();!b.done;b=Y.next())w=void 0,(w=b.value.created)==null||w.call(this);var V;(V=this.polySiInfo.created)==null||V.call(this)};
_.g.registered=function(){var Y=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var b=Object.getPrototypeOf(this);b.addReactiveSchema=function(U){Y.polySiParams.reactiveSchemas.push(U)};
for(var w=_.N(this.polySiParams.behaviors),V=w.next();!V.done;V=w.next()){var H=void 0;(H=V.value.beforeRegister)==null||H.call(b)}var f;(f=this.polySiInfo.beforeRegister)==null||f.call(b);b.addReactiveSchema=dHv;w=_.N(this.polySiParams.behaviors);for(V=w.next();!V.done;V=w.next())H=void 0,(H=V.value.registered)==null||H.call(b);var E;(E=this.polySiInfo.registered)==null||E.call(b)};
_.g.ready=function(){var Y;(Y=this.beforeReady)==null||Y.call(this);CPt&&NTo(this);var b;if(Y=(b=this.polySiContext.finalizedTemplate)==null?void 0:b.processedTemplate){Y=cf6(Y.template,Y.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:Y.hasInsertionPoint,thisCtx:this});b=Y.nodesById;Y=Y.root;var w=this.hostElement;var V=V===void 0?!1:V;w=(0,_.DT)(w);if(!w.attachShadow)throw Error("Dd");if(!w.shadowRoot||V)w.attachShadow({mode:"open",shadyUpgradeFragment:Y}),w.shadowRoot.appendChild(Y);
this.root=w.shadowRoot;this.$=b}EJ8(this);V=_.N(this.polySiParams.behaviors);for(b=V.next();!b.done;b=V.next())Y=void 0,(Y=b.value.ready)==null||Y.call(this);var H;(H=this.polySiInfo.ready)==null||H.call(this)};
_.g.attached=function(){for(var Y=_.N(this.polySiParams.behaviors),b=Y.next();!b.done;b=Y.next()){var w=void 0;(w=b.value.attached)==null||w.call(this)}var V;(V=this.polySiInfo.attached)==null||V.call(this)};
_.g.detached=function(){for(var Y=_.N(this.polySiParams.behaviors),b=Y.next();!b.done;b=Y.next()){var w=void 0;(w=b.value.detached)==null||w.call(this)}var V;(V=this.polySiInfo.detached)==null||V.call(this)};
var gJ5=function(Y){for(var b=_.N(Y.polySiParams.behaviors),w=b.next();!w.done;w=b.next())if(w=w.value,w.listeners)for(var V in w.listeners)Eka(Y,Y.hostElement,V,w.listeners[V]);if(Y.polySiInfo.listeners)for(var H in Y.polySiInfo.listeners)Eka(Y,Y.hostElement,H,Y.polySiInfo.listeners[H])},Eka=function(Y,b,w,V,H){Y=UsG(Y,V,H);
tQ(b,w,Y)||b.addEventListener(w,Y);return Y},NTo=function(Y){for(var b=_.N(Y.polySiParams.reactiveSchemas),w=b.next();!w.done;w=b.next())w=w.value,w.type==="compute"||w.type==="computeWithMethod"?ogb(Y.signalProxy,w,Y):w.type==="redux"?lut(Y.signalProxy,w,Y.store):w.type==="signal"&&w.readOnly&&k6M(Y.signalProxy,w)},EJ8=function(Y){for(var b=_.N(Y.polySiParams.reactiveSchemas),w=b.next(),V={};!w.done;V={schema$jscomp$12:void 0},w=b.next())V.schema$jscomp$12=w.value,V.schema$jscomp$12.type==="notify"?
xsu(Y.signalProxy,V.schema$jscomp$12,Y.hostElement):V.schema$jscomp$12.type==="observe"?qBe(Y.signalProxy,V.schema$jscomp$12,Y):V.schema$jscomp$12.type==="reflect"&&Y.signalProxy.effect(function(f){return function(){var E=Y.signalProxy.getWithPath([f.schema$jscomp$12.propertyKey]);
Y.reflecting=!0;Oer(Y.hostElement,f.schema$jscomp$12.propertyKey,E,!0);Y.reflecting=!1}}(V));
if(Y.reflectedAttributes)for(b=_.N(Object.entries(Y.reflectedAttributes)),V=b.next(),w={};!V.done;w={key$jscomp$881:void 0,value$jscomp$8867:void 0},V=b.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;w.key$jscomp$881=V;w.value$jscomp$8867=H;Y.signalProxy.effect(function(f){return function(){Y.reflecting=!0;Oer(Y.hostElement,f.key$jscomp$881,(0,f.value$jscomp$8867)(),!0);Y.reflecting=!1}}(w))}};
_.g=yC.prototype;_.g._setPendingProperty=function(Y,b){this.set(Y,b);return!1};
_.g._enableProperties=function(){};
_.g._setPendingPropertyOrPath=function(Y,b){this.notifyPath(Y,b);return!1};
_.g._addPropertyEffect=function(){};
_.g._stampTemplate=function(){throw Error("Lg");};
_.g.fire=function(Y,b,w){b=b===void 0?{}:b;w=w===void 0?{}:w;var V,H,f={bubbles:(V=w.bubbles)!=null?V:!0,cancelable:!!w.cancelable,composed:(H=w.composed)!=null?H:!0},E;return _.Ua(FNI((E=w.node)!=null?E:this.hostElement),Y,b,f)};
_.g.get=function(Y,b){var w=LV(Y);return b?X7G(b,w):Y==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(w)};
_.g.linkPaths=function(){};
_.g.listen=function(Y,b,w){Y=FNI(Y);this.boundListeners!=null||(this.boundListeners=new WeakMap);var V=this.boundListeners.get(Y);V||(V={},this.boundListeners.set(Y,V));var H=b+w;V[H]||(V[H]=Eka(this,Y,b,w))};
_.g.notifyPath=function(Y,b){this.signalProxy.notifyPath(LV(Y),arguments.length===2?{value:b}:void 0)};
_.g.canNotifyPath=function(Y){return this.mutablePropNames.has(Y)&&!yHB(this.signalProxy,Y)};
_.g.notifySplices=function(Y,b){this.signalProxy.notifySplices(LV(Y),b)};
_.g.pop=function(Y){var b=this.signalProxy;Y=LV(Y);var w=_.N(Y);Y=w.next().value;w=uO(w);return ao(b,Y).pop(w)};
_.g.push=function(Y){var b=_.BN.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[LV(Y)].concat(_.Bt(b)))};
_.g.set=function(Y,b,w){if(w)throw Error("Mg");Y==="hidden"?this.hostElement.hidden=!!b:this.signalProxy.setWithPath(LV(Y),b)};
_.g.setProperties=function(Y){Y=_.N(Object.entries(Y));for(var b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;w=w.next().value;this[b]=w}};
_.g.splice=function(Y,b,w){var V=_.BN.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[LV(Y),b,w].concat(_.Bt(V)))};
_.g.unlinkPaths=function(){};
_.g.unlisten=function(Y,b,w){Y=FNI(Y);if(this.boundListeners){var V=this.boundListeners.get(Y);if(V){w=b+w;var H=V[w];H&&(Rd(Y,b,H)||Y.removeEventListener(b,H),delete V[w])}}};
_.g.unshift=function(Y){var b=_.BN.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[LV(Y)].concat(_.Bt(b)))};
_.up.Object.defineProperties(yC.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 yfa=[Array,Boolean,Date,Number,Object,String];var GAG=!1;var W5=function(){var Y=HTMLElement.apply(this,arguments)||this;Y.restamp=!1;Y.notifyDomChange=!1;Y.JSC$11464_didCallConnected=!1;Y.JSC$11464_renderDebouncer=null;Y.disableTemplateUpdateSignalImpl=$Z()?void 0:_.kw(!1,void 0,"zLXz1e");var b;Y.getDisableTemplateUpdate=(b=Y.disableTemplateUpdateSignalImpl)==null?void 0:b[0];var w;Y.setDisableTemplateUpdate=(w=Y.disableTemplateUpdateSignalImpl)==null?void 0:w[1];return Y};
_.P(W5,HTMLElement);var c8I=function(Y){Y.conditionSignalImpl!=null||(Y.conditionSignalImpl=new aj(_.kw(!1,void 0,"wcuOQ")));return Y.conditionSignalImpl};
_.g=W5.prototype;_.g.showHideChildren=function(Y){UEt(this,Y,this.if)};
_.g.attributeChangedCallback=function(Y,b,w){if(this.JSC$11464_didCallConnected)throw Error("Qg`"+Y);Y==="notify-dom-change"?this.notifyDomChange=w!==null:Y==="restamp"&&(this.restamp=w!==null)};
_.g.debounceRender=function(){this.JSC$11464_renderDebouncer=_.DW(this.JSC$11464_renderDebouncer,Fy,this.JSC$11464_renderImpl.bind(this));_.mk(this.JSC$11464_renderDebouncer)};
_.g.disconnectedCallback=function(){var Y=(0,_.DT)(this).parentNode;(!Y||Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in Y&&!Y.host)&&Xdd(this)};
_.g.connectedCallback=function(){var Y=this;this.JSC$11464_didCallConnected=!0;icU?TzB():this.style.display="none";this.parentSignalProxy.effect(function(){c8I(Y).getWithPath([]);Y.debounceRender()})};
_.g.render=function(){_.l6()};
_.g.JSC$11464_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var Y=this.if;if(Y){a:{var b=(0,_.DT)(this).parentNode;if(this.hasInstance()){var w=this.instance.children;if((w==null?0:w.length)&&(0,_.DT)(this).previousSibling!==w[w.length-1])for(var V=0;V<w.length;V++)(0,_.DT)(b).insertBefore(w[V],this)}else{if(!b){b=!1;break a}DEC(this,b)}b=!0}if(!b)return}else this.restamp&&Xdd(this);UEt(this,!1,Y);Y&&mEt(this);AfI&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.g.hasInstance=function(){return!!this.instance};
var DEC=function(Y,b){var w=Y.parentSignalProxy;if($Z()){var V=_.N(_.kw(!0,void 0,"wXzgnc"));var H=V.next().value;V=V.next().value;w=Y.parentSignalProxy}else{var f;var E=new zW((f=oJK(Y))!=null?f:{},function(X){var I=ao(Y.parentSignalProxy,X).getChangeRecordSignal([]);X=_.kw(void 0,void 0,"mryEkc");var k=new aj(X);E.effect(function(){if(Y.getDisableTemplateUpdate&&!Y.getDisableTemplateUpdate()){var l=I();k.notifyPath(LV(l.path),{value:l.value})}});
return k});
Y.parentSignalProxy.childSignalProxies.push(E);var U=w=E}w=cf6(Y.templateInfo,Y.templateInfo.nodeInfoList,w,{eventListenerHost:Y.eventListenerHost,hasInsertionPoint:Y.templateInfo.hasInsertionPoint,thisCtx:Y.eventListenerHost,enabledSignal:$Z()?H:void 0,getModel:function(){return oJK(Y)}}).root;
Y.instance={root:w,children:[],hidden:!1,signalProxy:U,getTemplateUpdatesEnabled:H,setTemplateUpdatesEnabled:V};U=_.N(w.childNodes);for(H=U.next();!H.done;H=U.next())Y.instance.children.push(H.value);(0,_.DT)(b).insertBefore(Y.instance.root,Y)},oJK=function(Y){if((Y=Y.parentSignalProxy.model)&&!Y.hostElement){var b={},w;
for(w in Y)Y.hasOwnProperty(w)&&(b[w]=Y[w]);return b}},Xdd=function(Y){if(Y.instance){var b=Y.instance.children;
if(b.length){var w=(0,_.DT)(b[0]).parentNode;if(w){w=(0,_.DT)(w);for(var V=0;V<b.length;V++)w.removeChild(b[V])}}$Z()?Y.instance.setTemplateUpdatesEnabled(!1):Y.instance.signalProxy.dispose();Y.instance=void 0}},UEt=function(Y,b,w){b=b||!w;
Y.instance&&Y.instance.hidden!==b&&(Y.instance.hidden=b,jX6(b,Y.instance.children))},mEt=function(Y){if($Z()){var b=Y.instance;
b&&r2(Y.parentSignalProxy.owner,function(){return!b.getTemplateUpdatesEnabled()})&&b.setTemplateUpdatesEnabled(!0)}else Y.setDisableTemplateUpdate(!1)};
_.up.Object.defineProperties(W5.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var Y=this;return r2(this.parentSignalProxy.owner,function(){return c8I(Y).getWithPath([])})},
set:function(Y){Y||($Z()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));c8I(this).setWithPath([],!!Y)}}});
_.up.Object.defineProperties(W5,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",W5);var I29=[],KZ=function(){var Y=HTMLElement.apply(this,arguments)||this;Y.as="item";Y.indexAs="index";Y.itemsIndexAs="itemsIndex";Y.targetFramerate=20;Y.notifyDomChange=!1;Y.isDetached=!1;Y.JSC$11471_renderDebouncer=null;Y.instances=[];Y.chunkingId=null;Y.chunkCount=null;Y.shouldMeasureChunk=!1;Y.shouldContinueChunking=!1;Y.renderStartTime=null;Y.JSC$11471_didCallConnected=!1;return Y};
_.P(KZ,HTMLElement);var kmr=function(Y){Y.itemSignalImpl!=null||(Y.itemSignalImpl=new aj(_.kw(I29,void 0,"YBrqgf")));return Y.itemSignalImpl},l2r=function(Y,b){Array.isArray(b)||(b=I29);
kmr(Y).setWithPath([],b)};
_.g=KZ.prototype;_.g.showHideChildren=function(Y){for(var b=_.N(this.instances),w=b.next();!w.done;w=b.next())jX6(Y,w.value.children)};
_.g.notifyPath=function(Y,b){Y=LV(Y);Y[0]==="items"&&(Y.length===1?l2r(this,b):kmr(this).setWithPath(Y.slice(1),b))};
_.g.canNotifyPath=function(Y){return Y==="items"};
_.g.attributeChangedCallback=function(Y,b,w){if(this.JSC$11471_didCallConnected)throw Error("Rg`"+Y);Y==="as"?this.as=w:Y==="index-as"?this.indexAs=w:Y==="items-index-as"?this.itemsIndexAs=w:Y==="initial-count"?this.initialCount=Number(w):Y==="notify-dom-change"?this.notifyDomChange=w!==null:Y==="target-framerate"&&(this.targetFramerate=Number(w))};
_.g.disconnectedCallback=function(){this.isDetached=!0;for(var Y=0;Y<this.instances.length;Y++)hl_(this,Y);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.g.connectedCallback=function(){var Y=this,b=kmr(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var H=b(),f=LV(H.path);if(f[0]===void 0||f[0]==="splices"||f[0]==="length")Y.debounceRender();else{var E=f[0];if(E=Y.instances[typeof E==="string"?Math.floor(Number(E)):E])f=[Y.as].concat(_.Bt(f.slice(1))),E.signalProxy.notifyPath(f,H)}});
this.JSC$11471_didCallConnected=!0;icU?TzB():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var w=(0,_.DT)((0,_.DT)(this).parentNode),V=0;V<this.instances.length;V++)w.insertBefore(this.instances[V].root,this);this.chunkingId&&this.render()}};
_.g.debounceRender=function(){this.JSC$11471_renderDebouncer=_.DW(this.JSC$11471_renderDebouncer,Fy,this.JSC$11471_renderImpl.bind(this));_.mk(this.JSC$11471_renderDebouncer)};
_.g.render=function(){this.debounceRender();_.l6()};
_.g.JSC$11471_renderImpl=function(){var Y=this,b=this.items,w=xEt(this,b.length);qbk(this,b,w);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){Y.chunkingId=null;if(Y.shouldMeasureChunk){var V=performance.now()-Y.renderStartTime;Y.chunkCount=Math.round(Math.ceil(1E3/Y.targetFramerate)/V*Y.chunkCount)||1}Y.shouldContinueChunking&&Y.debounceRender()}));
AfI&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var xEt=function(Y,b){var w=b,V=Y.instances.length;if(Y.initialCount){if(Y.chunkCount){var H=Math.min(Math.max(b-V,0),Y.chunkCount);w=Math.min(V+H,b)}else w=Math.min(b,Y.initialCount),H=Math.max(w-V,0),Y.chunkCount=H||1;Y.shouldMeasureChunk=H===Y.chunkCount;Y.shouldContinueChunking=w<b;Y.renderStartTime=performance.now()}return w},qbk=function(Y,b,w){for(var V=0;V<w;V++){var H=Y.instances[V],f=b[V];
H?(H.signalProxy.setWithPath([Y.as],f),H.signalProxy.setWithPath([Y.indexAs],V)):siU(Y,f,V)}for(b=Y.instances.length-1;b>=V;b--)w=Y,H=b,hl_(w,H),_.N(w.instances.splice(H,1)).next().value.signalProxy.dispose()},hl_=function(Y,b){Y=Y.instances[b];
b=(0,_.DT)(Y.root);for(var w=0;w<Y.children.length;w++)b.appendChild(Y.children[w])},siU=function(Y,b,w){var V={};
b=Object.assign({},Qid(Y),(V[Y.as]=b,V[Y.indexAs]=w,V[Y.itemsIndexAs]=w,V));var H=new zW(b,function(E){if(E!==Y.as&&E!==Y.indexAs){if(E===Y.itemsIndexAs)return ao(H,Y.indexAs);var U=ao(Y.parentSignalProxy,E).getChangeRecordSignal([]);E=_.kw(void 0,void 0,"Mu2Bwb");var X=new aj(E);H.effect(function(){var I=U();X.notifyPath(LV(I.path),{value:I.value})});
return X}});
Y.parentSignalProxy.childSignalProxies.push(H);V=cf6(Y.templateInfo,Y.templateInfo.nodeInfoList,H,{eventListenerHost:Y.eventListenerHost,getModel:function(){var E={};return Object.assign({},Qid(Y),(E[Y.as]=H.model[Y.as],E[Y.indexAs]=H.model[Y.indexAs],E[Y.itemsIndexAs]=H.model[Y.indexAs],E))},
hasInsertionPoint:Y.templateInfo.hasInsertionPoint,thisCtx:Y.eventListenerHost,methodInvocationRequirement:yfo,enabledSignal:Y.stampingEnabled}).root;b={root:V,children:[],signalProxy:H};V=_.N(V.childNodes);for(var f=V.next();!f.done;f=V.next())b.children.push(f.value);V=(V=Y.instances[w+1])?V.children[0]:Y;(0,_.DT)((0,_.DT)(Y).parentNode).insertBefore(b.root,V);Y.instances[w]=b},Qid=function(Y){if((Y=Y.parentSignalProxy.model)&&!Y.hostElement){var b={},w;
for(w in Y)Y.hasOwnProperty(w)&&(b[w]=Y[w]);return b}};
KZ.prototype.itemForElement=function(Y){var b=this,w=this.instances.find(function(V){return V.children.includes(Y)});
if(w)return r2(this.parentSignalProxy.owner,function(){return w.signalProxy.getWithPath([b.as])})};
KZ.prototype.indexForElement=function(Y){var b=this.instances.findIndex(function(w){return w.children.includes(Y)});
return b>=0?b:void 0};
_.up.Object.defineProperties(KZ.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var Y=this;return r2(this.parentSignalProxy.owner,function(){return kmr(Y).getWithPath([])})},
set:function(Y){l2r(this,Y)}},
delay:{configurable:!0,enumerable:!0,set:function(){}},
filter:{configurable:!0,enumerable:!0,set:function(){}},
observe:{configurable:!0,enumerable:!0,set:function(){}},
sort:{configurable:!0,enumerable:!0,set:function(){}},
__instances:{configurable:!0,enumerable:!0,get:function(){return this.instances}}});
_.up.Object.defineProperties(KZ,{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",KZ);var vJk,PgC;_.i4=new _.Hx("STATE_STORE_TOKEN");vJk=new _.Hx("SELECT_TOKEN");PgC=new _.Hx("DISPATCH_TOKEN");var VRv={getSelectFn:function(){var Y;return(Y=_.fH().resolve(_.HQ(vJk)))!=null?Y:JfK},
getDispatchFn:function(){var Y;return(Y=_.fH().resolve(_.HQ(PgC)))!=null?Y:_.jm().dispatch.bind(_.jm())},
getAppStore:function(){return _.fH().resolve(_.i4)}},ugq,wdt=!1;var YO={traceAllComponents:_.q("web_tracing_all_components"),exportToCsi:_.q("web_tracing_export_to_csi"),exportBreadcrumbs:_.q("web_enable_tracing"),bufferSize:_.cQ("web_max_tracing_events"),enabledSpansArray:_.XO("web_tracing_enabled_spans")};var NTa=void 0;var Z4C=function(){};
Z4C.prototype.hasAttribute=function(Y){if(Y==="dir")return!1;if(Y==="disable-upgrade"){var b,w;return(w=(b=this.hostElement)==null?void 0:b.hasAttribute("disable-upgrade"))!=null?w:!1}throw Error("Sg`"+Y);};
Z4C.prototype.attributeChangedCallbackWrapper=function(Y,b,w){if(Y==="disable-upgrade"&&this.__isUpgradeDisabled&&w===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var V;((V=this.hostElement)!=null?V:this).isConnected&&this.connectedCallback()}else b===w||this.__isReflecting||this.attributeChangedCallback(Y,b,w)};
Z4C.prototype.getExtraMethodsToForward=function(){for(var Y=this,b=[],w=_.N(BTo),V=w.next(),H={};!V.done;H={tagName$jscomp$53:void 0,name$jscomp$531:void 0},V=w.next())H.name$jscomp$531=V.value,V=void 0,H.name$jscomp$531==="_setPendingProperty"?(H.tagName$jscomp$53=this.hostElement.tagName.toLowerCase(),V=function(f){return function(E,U,X){BX(f.tagName$jscomp$53,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return Y._setPendingProperty(E,U,X)}}(H)):V=function(f){return function(){return Y[f.name$jscomp$531].apply(Y,
_.Bt(_.BN.apply(0,arguments)))}}(H),b.push([H.name$jscomp$531,
V]);return b};
for(var DEI=VRr(wd5((0,_.Bq)(Z4C))),kmv=["disabled","disable-upgrade"],nJ_=(0,_.Bq)(function(){}),MRo=new Set(Object.getOwnPropertyNames(nJ_.prototype)),siB=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Bt(MRo))),hle=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),BTo=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),elr=new Set([].concat(_.Bt(hle),_.Bt(BTo),_.Bt(MRo))),pdt=_.N(elr),O4k=pdt.next();!O4k.done;O4k=pdt.next())WnM.add(O4k.value);var qb6={created:function(){plr(this);this.initializeInjection()}};var pdM=!1,gI=window.ShadyDOM,a2b=["appendChild","insertBefore","removeChild","replaceChild"],Sbt=[Node];gI&&Sbt.push(gI.Wrapper);var A8L,Cga,jiL={};var EQ=new Set,fA="",Gmv="";var NZ,cP=new Set;var gxa=new Set("context didCallReady is info params signalProxy".split(" ")),N1K="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Exe="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var tRj=kL({entities:fWq}),Rl_=new Jr(tRj);var dEd=function(){return _.s6.apply(this,arguments)||this};
_.P(dEd,_.s6);_.up.Object.defineProperties(dEd.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return Rl_}}});
_.z([_.QC()],dEd);_.AW=[LZ.prototype,dEd.prototype];_.CZ={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var Y=this,b={};setTimeout(function(){var w;return _.Ua((w=Y.hostElement)!=null?w:Y,"yt-live-chat-add-tooltip-target",b)},0);
this.handler_=b.handler},
detached:function(){if(this.handler_){var Y;this.handler_.removeElementFromSupportingTooltips((Y=this.hostElement)!=null?Y:this)}this.handler_=null}}};_.kO=new _.Hx("ICON_MANAGER_TOKEN");var FJt=[48,20,18,16,15,13,12],pmu=new Map,Pvq=new Set,sWK=new Set,vxI=new Set,q5t=new Set,QWq=new Set,B1b=new Promise(function(Y){var b=!1,w=!1,V=!1,H=[],f=function(E){if("detail"in E)if(E=E.detail,E.name==="yt-icons")ZDq(E),b=!0;else if(E.name==="yt-sys-icons")ZDq(E),w=!0;else{var U;((U=E.name)==null?0:U.includes("yt-sys-icons"))&&E.size!==24&&(ZDq(E,!0),H.push(E.size),H.length===FJt.length&&(V=!0))}b&&w&&V&&(window.removeEventListener("iron-iconset-added",f),Y())};
window.addEventListener("iron-iconset-added",f)}),Mdv=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"]]);_.yZ={};_.yZ.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Tx,computeHref_:function(Y,b){b=b===void 0?!1:b;if(!Y||Y.commandExecutorCommand)return null;var w=WQt(Y,b);return b||w!==null?w?_.q("enable_polymer_resin")?_.PN(w).toString():w:null:(_.Sk(new _.BQ("computeHref was null",this.is,Y)),null)},
computeOptionalHref_:function(Y){return this.computeHref_(Y,!0)},
computeNofollow_:function(Y){return Y?tza(Y)?"nofollow":null:null},
computeIcon_:function(Y){return Y&&Y.iconType?_.IR(Y.iconType):""},
resolveCommand:function(Y,b,w){b=b===void 0?{}:b;return _.hA(Y,this.hostElement,b,w===void 0?!1:w)}};var Sb5,$c;_.LJ8={};Sb5=null;
$c={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_=Znr(this.viewroot));_.KV(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var Y=this;this.unobserve_();if(_.q("kevlar_vimio_use_shared_monitor"))FCr(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 b=[];this.visibilityOptionVisible_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return Y.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=b}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){ODI(this,this.visibilityObserver)},
markDirtyVisibilityObserver:function(){this.localVisibilityObserver_&&this.configureVisibilityObserver_()},
getVisibilityObserverForChild:function(){return this.visibilityObserverForChild_?this.visibilityObserverForChild_:this.localVisibilityObserver_},
get visibilityObserver(){if(this.localVisibilityObserver_)return this.localVisibilityObserver_;var Y=_.FE(this.parentNode,function(w){var V,H=(V=w.polymerController)!=null?V:w;return!!H.getVisibilityObserverForChild&&H.getVisibilityObserverForChild()},!0);
if(Y){var b;this.localVisibilityObserver_=((b=Y.polymerController)!=null?b:Y).getVisibilityObserverForChild()}else Sb5||(Sb5=Znr()),this.localVisibilityObserver_=Sb5;return this.localVisibilityObserver_},visibilityCallback:function(Y){Y?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.q("kevlar_use_vimio_behavior")||($c={});$c&&!_.q("kevlar_use_vimio_behavior")&&(delete $c.attached,delete $c.detached);_.LJ8.YtVisibilityObserverBehavior=[$c];var a2d={};a2d.YtVisualElementBehavior=[_.LJ8.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.q("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.q("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var Y=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportShown(this,void 0,Y)}},
onHidden:function(){if(_.q("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.q("kevlar_vimio_use_shared_monitor")){var Y=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportHidden(this,void 0,Y)}},
getVisibilityLogger:function(){return _.q("kevlar_use_vimio_behavior")?_.qZ():null},
shouldSkipLogging:function(){if(_.zO("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var Y=this.getParentRenderer&&this.getParentRenderer();if(!Y)return!1;var b,w=(b=Y.polymerController)!=null?b:Y;if(!w.data)return!1;Y=this.data.trackingParams;Y=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:Y;var V;b=(V=w.data)==null?void 0:V.trackingParams;var H,f;b=((H=w.data)==null?0:H.loggingDirectives)?(f=w.data)==null?void 0:f.loggingDirectives.trackingParams:b;return Y&&b&&Y===
b}}];var abG=new Map,MZ;var BJa=function(Y){this.layer=Y},SP=function(Y){return Y.layer!==void 0?Y.layer:Y.parent?SP(Y.parent):Y.layer=0};var ARq;_.u={};ARq=0;_.u.YtRendererBehavior=[_.yZ.YtComponentBehavior,a2d.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_:_.q("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var Y,b;(b=(Y=this.monitorScrollElement)!=null?Y:this.hostElement)==null||b.removeEventListener("scroll",_.Io(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();LCM(this.hostElement);G6d(_.eH(),this.hostElement);wb.delete(this.hostElement)},
registerRenderer:function(Y){var b;((b=Y.polymerController)!=null?b:Y).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(Y),this.markDirty())},
unregisterRenderer_:function(Y){this.useVimio_||(this.childCache_.delete(Y),this.markDirty())},
attached:function(){var Y=this,b=this.getParentRenderer();if(b){var w,V,H;(V=(w=(H=b.polymerController)!=null?H:b).registerRenderer)==null||V.call(w,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var f,E;(E=(f=this.monitorScrollElement)!=null?f:this.hostElement)==null||E.addEventListener("scroll",_.Io(this,this.onScroll))}_.Lb.addJob(function(){rRe(Y.hostElement)},8);
w=new BJa(this.screenLayer||void 0);(b=wb.get(b))&&b.layerNode&&(w.parent=b.layerNode);b={};O9v(this.hostElement,(b.isRenderer=!0,b.layerNode=w,b[nNb]=this.data,b))},
getParentRenderer:function(){for(var Y=this.hostElement.parentNode,b,w;Y&&((b=wb.get(Y))==null||!b.isRenderer)&&!((w=Y.polymerController)!=null?w:Y).isRenderer_;)Y=Y.parentNode||Y.host;return Y},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.q("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Wf("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.q("debug_web_ve_data")&&this.data.trackingParams){var Y="";try{Y=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(w){_.Ft(w)}if(Y){var b=HMa(Y,1);b!==void 0&&(this.hostElement.dataset.veIndex=String(b));Y=HMa(Y,2);
Y!==void 0&&(this.hostElement.dataset.ve=String(Y))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.q("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.nA(this.data.loggingDirectives.trackingParams)),this.visualElement=_.sQ(_.Qd(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var Y=this.data.targetId;_.JHU(_.eH(),Y,this.hostElement)}else G6d(_.eH(),this.hostElement)},
onScroll:function(){var Y=Date.now();Y-this.lastHandledScroll_<50||(this.lastHandledScroll_=Y,this.markDirty())},
markDirty:function(){_.q("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():CvI(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var Y=this.getParentRenderer();if(Y&&(Y=wb.get(Y))&&Y.layerNode)return SP(Y.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Bt(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var Y=0;Y<this.data.impressionEndpoints.length;Y++)this.sendImpression(this.data.impressionEndpoints[Y]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(Y){Y.clickTrackingParams&&delete Y.clickTrackingParams;var b,w;(Y==null?0:(b=Y.commandMetadata)==null?0:(w=b.webCommandMetadata)==null?0:w.sendPost)?_.oP(this.hostElement,[Y,{impression:!0}]):_.IP(this.hostElement,[Y],this.hostElement)},
logExplicitClick:function(Y){var b=_.dO(this.getScreenLayer());if(b){var w,V=(w=Y.polymerController)!=null?w:Y;Y=V.visualElement;V=V.trackingParams||V.clickTrackingParams;!Y&&V&&(Y=_.nA(V));Y&&_.J1(b,Y)}}}];var r8o={},jH=function(){return _.s6.apply(this,arguments)||this};
_.P(jH,_.s6);jH.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
jH.prototype.onPdgItemBehaviorClick=jH.prototype.onPdgItemBehaviorClick;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jH.prototype,"data",void 0);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],jH.prototype,"onPdgItemBehaviorClick",null);_.z([_.QC()],jH);r8o.YtPdgLiveChatItemBehavior=[jH.prototype,_.u.YtRendererBehavior];var zlU;var WJI;_.GW={};_.GW.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var TW=function(){var Y=bo.apply(this,arguments)||this;Y.switchTemplateAtRegistration=!1;return Y};
_.P(TW,bo);TW.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||GHa(this),_.ZcB(this,"doRender"),this.doRender())};
TW.prototype.debounceRender=function(){this.templatingFn&&_.ir(this,"doRender",this.doRender)};
TW.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Ft(Error("bh"))};
TW.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.z([qd6()],TW);var KJC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,JW={},Yjg=(JW[1]={filterString:null,isUnwrappable:null,unwrap:null},JW[2]={filterString:function(Y,b,w){return Xz(w)},
isUnwrappable:function(Y){return Y instanceof pu},
unwrap:function(Y){return tz(Y)}},JW[3]={filterString:function(Y,b,w){return KJC.test(w)?w:vN.toString()},
isUnwrappable:function(Y){return kH(Y)},
unwrap:function(Y){return _.lH(Y)}},JW[4]={filterString:function(){return vN.toString()},
isUnwrappable:function(Y){return Y instanceof cN},
unwrap:function(Y){return _.Xk(Y).toString()}},JW[5]={filterString:function(Y,b,w){return w},
isUnwrappable:function(Y){return typeof Y==="string"},
unwrap:function(Y){return Y.toString()}},JW[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(Y){return Y instanceof _.ag},
unwrap:function(Y){return zz(Y)}},JW[8]={filterString:function(Y,b,w){w=String(w).toLowerCase();
return mzK(Y,b,w)?w:"zClosurez"},
isUnwrappable:null,unwrap:null},JW[10]={filterString:null,isUnwrappable:null,unwrap:null},JW);bp[KQ["default"]]=wpt;var V0L=[];var hcK=gab("A"),xIg=gab("BUTTON"),e9=gab("DIV"),q86=gab("LABEL");(function(){var Y=wx;wx=function(b){Y==null||Y(b);tA(function(){for(var w=0;w<b.length;w++)HRB(b[w])})}})();var i4K=function(){var Y=_.s6.apply(this,arguments)||this;Y.hasUnmounted=!1;return Y};
_.P(i4K,_.s6);_.g=i4K.prototype;_.g.beforeRegister=function(){var Y=this.doIdomRender;this.templatingFn?_.Ft(Error("ah")):(this.templatingFn=Y,this.switchTemplateAtRegistration=!0,uqa(this))};
_.g.attached=function(){};
_.g.detached=function(){HRB(this.hostElement)};
_.g.renderIdom=function(){throw Error("dh");};
_.g.doIdomRender=function(){var Y=this;Yva(this.hostElement,function(){Y.renderIdom()})};
_.z([_.QC()],i4K);var A8K=[TW.prototype,i4K.prototype];var Cgo,y8t=function(){return Cgo!==void 0?Cgo:Cgo=document.createElement("template")};
document.head.appendChild(y8t().content);var $Eo;var jiK,Gmr=function(){return jiK!==void 0?jiK:jiK=document.createElement("template")};
document.head.appendChild(Gmr().content);var TTU;var J8r=document.head,uJU=J8r.appendChild,Y59;if(TTU===void 0){var bDk=document.createElement("template");_.B(bDk,"\x3c!--css-build:shady--\x3e");bDk.content.insertBefore(Gmr().content.cloneNode(!0),bDk.content.firstChild);TTU=bDk}Y59=TTU;uJU.call(J8r,Y59.content);var wmU,Vdo=function(){return wmU!==void 0?wmU:wmU=document.createElement("template")};
document.head.appendChild(Vdo().content);var HD$;var gxo=document.head,fbt=gxo.appendChild,N1j;if(HD$===void 0){var Ex_=document.createElement("template");_.B(Ex_,"\x3c!--css-build:shady--\x3e");Ex_.content.insertBefore(Vdo().content.cloneNode(!0),Ex_.content.firstChild);HD$=Ex_}N1j=HD$;fbt.call(gxo,N1j.content);var cRj=document.head,UN$=cRj.appendChild,Xmo;if($Eo===void 0){var DN5=document.createElement("template");_.B(DN5,"\x3c!--css-build:shady--\x3e");DN5.content.insertBefore(y8t().content.cloneNode(!0),DN5.content.firstChild);$Eo=DN5}Xmo=$Eo;UN$.call(cRj,Xmo.content);var mNU,ox$=function(){return mNU!==void 0?mNU:mNU=document.createElement("template")};
document.head.appendChild(ox$().content);var Ibo;_.GT=new _.Hx("DARK_THEME_TOKEN");var GfL=new _.A("accessibilityProperties");var jat=new _.A("layoutProperties");var TVu=new _.A("imageType");var kHU={};if("ytAttributedStringLinkHoverColor"in kHU)throw Error("gh`ytAttributedStringLinkHoverColor");(function(Y,b){kHU[Y]="value"in b&&"unit"in b?Uuu(Y,b):function(w){try{return b(w)}catch(V){throw Error("eh`"+Y+"`"+V.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var lbI=function(Y){var b=this;this.holdTime=Y===void 0?500:Y;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(w){var V=new CustomEvent("LONG_PRESS"),H;(H=w.changedTouches[0].target)==null||H.dispatchEvent(V)};
this.ontouchstart=function(w){b.longPressTimeout=_.ps(_.Lb,function(){b.onlongpress(w);b.longPressOccurred=!0},b.holdTime)};
this.ontouchmove=function(){_.Lb.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!0};
this.ontouchend=function(w){if(b.longPressTimeout&&!b.longPressOccurred&&!b.moveOccurred){var V;(V=w.changedTouches[0].target)==null||V.dispatchEvent(new Event("click"))}_.Lb.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!1}};var ORL=function(Y,b){lbI.call(this,b);var w=this;this.callback=Y;this.onlongpress=function(V){var H;(H=w.callback)==null||H.call(w,V)}};
_.P(ORL,lbI);var t0G=function(Y,b){var w=Object.assign({},b);Y=_.N(new Map([["ontouchstart",Y.ontouchstart],["ontouchend",Y.ontouchend],["ontouchmove",Y.ontouchmove]]));for(var V=Y.next(),H={};!V.done;H={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},V=Y.next()){var f=_.N(V.value);V=f.next().value;f=f.next().value;H.eventName$jscomp$85=V;H.eventHandler$jscomp$1=f;b[H.eventName$jscomp$85]=function(E){return function(U){var X;(X=w[E.eventName$jscomp$85])==null||X.call(w,U);(0,E.eventHandler$jscomp$1)(U)}}(H)}};_.Nn=new _.Hx("COMMAND_HANDLER_TOKEN");var Duu=new _.A("parallelCommand");var Ivu=new _.A("performOnceCommand");var oaa=new _.A("serialCommand");var kfM=void 0;var h$I=function(){this.data=[];this.consumer=null};
h$I.prototype.push=function(Y){this.consumer?this.consumer(Y):this.data.push(Y)};var E1={};_.kw(E1,void 0,"sgPmTd");_.kw(null,void 0,"jypsq");var DAt=new h$I;var PbL=[ZTL,B6u,nB6,eIa,MAq,PtG,pFe,OTK];var y2K=new _.A("bracketTextDecorator");var $O=new _.A("highlightTextDecorator");_.JA=new _.Hx("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var WXu=function(){},xNo;
(xNo=window.requestIdleCallback)==null||xNo.bind(window);var iRg={calledOnce:!1,state:"visible"},KXg={calledOnce:!1,state:"hidden"};var q55=new _.Hx("ICON_WIZ_COMPONENT_TOKEN");_.n_=_.b8(function(Y){var b=Y.icon;var w=Y.active;var V=Y.className;var H=Y.style;var f=Y.dataSelected;var E=Y.dataDisabled;var U=Y.role;var X=Y.animateIcon;var I=Y.themeOverride;var k=Y.ariaHidden;var l=Y.ariaExpanded;var x=Y.ariaLabel;var Q=Y.tabindex;var Z=Y.id;var e=Y.size;var O=Y.iconFilter;return _.m(_.h,{cond:b,then:function(){var L=_.fH().resolve(q55);return _.m(L,{icon:b,dataSelected:f,dataDisabled:E,animateIcon:X,themeOverride:I,ariaExpanded:l,tabindex:Q,id:Z,active:w,size:e,role:U,className:V,
ariaHidden:k,ariaLabel:x,style:function(){return H!=null&&H()||e==null||!e()?H==null?void 0:H():"width: "+(e==null?void 0:e())+"px;height: "+((e==null?void 0:e())+"px;")},
iconFilter:O})}})},"b");
_.n_.idomCompat=!0;var mLb=window.devicePixelRatio||1;var lYu=new Map([["yt_outline_bag_black_24","bag"]]);var u4=function(Y){var b=this;this.margin=.1;this.whenInViewportWithMargin=Y;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){b.requestScan()});
window.addEventListener("touchend",function(){b.requestScan()});
window.addEventListener("updateui",function(){b.requestScan()});
var w=new _.Vm((0,_.nC)(this.requestScan,this),100);window.addEventListener("scroll",function(){w.fire()},!0);
window.addEventListener("resize",(0,_.nC)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){b.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.nC)(this.requestScan,this))};
u4.prototype.observe=function(Y){this.observationTargets.includes(Y)||this.observationTargets.push(Y)};
u4.prototype.unobserve=function(Y){this.observationTargets=this.observationTargets.filter(function(b){return b!==Y})};
u4.prototype.requestScan=function(){var Y=this;this.scanRequested||(tA(function(){sWj(Y)}),this.scanRequested=!0)};
var sWj=function(Y){var b=(1+Y.margin)*(document.documentElement.clientHeight||window.innerHeight);Y.observationTargets=Y.observationTargets.filter(function(w){var V=w.getBoundingClientRect();(V=b>V.top&&!!V.height)&&Y.whenInViewportWithMargin(w);return!V&&w.parentNode});
Y.scanRequested=!1};
u4.prototype.disconnect=function(){this.observationTargets=[]};var QW8,Pv8;QW8=_.N(_.kw(QQe(),void 0,"O3X2wd"));_.vxC=QW8.next().value;Pv8=QW8.next().value;window.addEventListener("resize",function(){Pv8(QQe())});var ZD8={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},B1d=void 0,nxQ=window.innerWidth,Mdr=window.innerHeight;window.addEventListener("resize",function(){B1d=void 0});var e$C;if("IntersectionObserver"in window)e$C=ZY6();else{if(B1d===void 0){var pm$;pm$="matchMedia"in window?window.matchMedia(ZD8.landscape+","+ZD8.portrait).matches:void 0;B1d=pm$!==void 0?pm$:nxQ>=930&&Mdr>=550||nxQ>=550&&Mdr>=930}e$C=B1d?{observe:function(Y){tA(function(){var b;(b=Y.onViewportEntered)==null||b.call(Y)})},
unobserve:function(){}}:new u4(function(Y){tA(function(){var b;
(b=Y.onViewportEntered)==null||b.call(Y)})})}var v0t=e$C;var ODC=_.b8(function(Y){var b=!1,w=_.GM("img",function(V){_.R2(function(){b=!0;V.onload=null})});
_.tl(function(){var V,H=(V=Y.data)==null?void 0:V.call(Y),f,E=(f=Y.getSrc)==null?void 0:f.call(Y).cb,U;V=(U=Y.config)==null?void 0:U.call(Y);if(U=w.value)if(f=function(I,k){if(!b)return E?E(I,k):I},Mjg(U,V),_.q("web_image_dont_reload_same_src")&&n0I(U,H,f))_.q("web_image_dont_reload_same_src_simulate_load")&&U.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var X;BqB(U,H||null,f,V,(X=Y.lazy)==null?void 0:X.call(Y))}},"v0I2p");
return _.m("img",{el:w})},"c");
ODC.idomCompat=!0;_.Y_=_.b8(function(Y){var b=function(){var w,V=Y.data(),H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G,Nr,o6,lI,Zt,eL,OM,iI,rB,Tj,J_;var B9={contentMode:(H=Y.contentMode)==null?void 0:H.call(Y),loadedClass:(f=Y.loadedClass)==null?void 0:f.call(Y),isPreloaded:(E=Y.isPreloaded)==null?void 0:E.call(Y),notifyOnLoaded:(U=Y.notifyOnLoaded)==null?void 0:U.call(Y),notifyOnUnloaded:(X=Y.notifyOnUnloaded)==null?void 0:X.call(Y),preferredThumbnail:(I=Y.preferredThumbnail)==null?void 0:I.call(Y),preserveHeight:(k=Y.preserveHeight)==
null?void 0:k.call(Y),preserveWidth:(l=Y.preserveWidth)==null?void 0:l.call(Y),objectPosition:(x=Y.objectPosition)==null?void 0:x.call(Y),targetWidth:(Q=Y.targetWidth)==null?void 0:Q.call(Y),targetHeight:(Z=Y.targetHeight)==null?void 0:Z.call(Y),shouldShowPlaceholder:(e=Y.shouldShowPlaceholder)==null?void 0:e.call(Y),useWidth:(O=Y.useWidth)==null?void 0:O.call(Y),isToggled:(L=Y.isToggled)==null?void 0:L.call(Y),alt:(r=Y.alt)==null?void 0:r.call(Y),className:(C=Y.className)==null?void 0:C.call(Y),
onerror:Y.onerror,onload:Y.onload,style$:((W=Y.style$)==null?void 0:W.call(Y))||((y=Y.style)==null?void 0:y.call(Y)),color:(G=Y.color)==null?void 0:G.call(Y),width:(Nr=Y.width)==null?void 0:Nr.call(Y),height:(o6=Y.height)==null?void 0:o6.call(Y),"aria-hidden$":(Tj=(lI=Y["aria-hidden$"])==null?void 0:lI.call(Y))!=null?Tj:(Zt=Y.ariaHidden)==null?void 0:Zt.call(Y),draggable:(eL=Y.draggable)==null?void 0:eL.call(Y),"data-disabled$":(J_=(OM=Y["data-disabled$"])==null?void 0:OM.call(Y))!=null?J_:(iI=Y.dataDisabled)==
null?void 0:iI.call(Y),size:(rB=Y.size)==null?void 0:rB.call(Y)};return OYv(V,B9,(w=Y.hideOn404)==null?void 0:w.call(Y))};
return _.m(_.e4,null,_.m(_.n7,{when:function(){var w;return((w=b())==null?void 0:w.type)==="image"}},function(){return _.m(ODC,{data:function(){return b().image},
getSrc:{cb:function(w,V){var H=b().image.sources,f=b().config.isPreloaded,E=b().config.useWidth,U=b().config.targetWidth,X=b().config.targetHeight,I=b().config.preferredThumbnail;return _.o0e(V,H,f,E,U,X,I)||""}},
config:function(){var w=b().config,V;for(V in w)w[V]===void 0&&delete w[V];return w},
lazy:Y.renderLazy})}),_.m(_.n7,{when:function(){var w;
return((w=b())==null?void 0:w.type)==="icon"}},function(){return _.m(_.n_,{icon:function(){return b().iconName},
role:function(){return b().config.role},
className:function(){return b().config.className},
style:function(){return b().config.style$+";width: "+(b().config.width+"px;height: ")+(b().config.height+"px;color: ")+(b().config.color+";")},
ariaLabel:function(){return b().config["aria-label$"]},
ariaHidden:function(){return b().config["aria-hidden$"]},
dataDisabled:function(){return b().config["data-disabled$"]},
active:function(){return b().config.isToggled},
size:function(){return b().config.size}})}))},"d");
_.Y_.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var tdr=function(Y){return function(b){return _.m(lpb,null,function(){var w=b.data(),V=_.Sa(b.config);return _.m(uF,null,function(){return void Y(w,V)})})}}(F7r),Rua=_.b8(function(Y){var b=function(V){var H,f=_.wn(function(x){H=d2(function(){for(var Q=_.N(k()),Z=Q.next();!Z.done;Z=Q.next()){Z=L7e(Z.value);
Z=typeof Z==="string"?document.createTextNode(Z):Z;if(!(Z instanceof Node)){Q=new _.BQ("Part is not a node",Z,typeof Z);_.Ft(Q);break}x.appendChild(Z)}})}),E=V_(function(){return uVB(V())},{isEqual:tjL}),U=_.JU(Y.config),X=function(){var x,Q=E();
return!((x=U())==null||!x.ariaLabel)||!(Q.commandRuns&&Q.commandRuns.length!==0||Q.paragraphStyleRuns&&Q.paragraphStyleRuns.length!==0)},I=V_(U,{isEqual:aYI}),k=function(){var x=J2M(E(),I());
bYB(x,I());return E().content?Nq6(E().content,x).parts:[]},l=!0;
_.tl(function(){E();I();if(l)l=!1;else{var x=k();Promise.resolve().then(function(){var Q=f.value;if(Q){Q.innerText="";var Z;(Z=H)==null||Z();H=_.Oz(Q,function(){return _.m(SrG,{parts:x})})}})}},"YlhjWd");
return _.m("span",{el:f,class:function(){return E()&&SjL(E(),U())},
dir:function(){var x;return((x=U())==null?0:x.userInput)?"auto":void 0},
"aria-label":function(){var x;return X()?(x=U())==null?void 0:x.ariaLabel:void 0},
role:function(){return X()?"text":void 0}})},w;
return((w=Y.config)==null?0:w.renderedFromFormattedString)?b(Y.text):_.m(_.h,{cond:Y.text,then:b})},"e");
Rua.idomCompat=!0;_.wv=_.b8(function(Y){var b=_.JU(Y.text),w=r7u(Y);Y.renderedFromFormattedString!==void 0&&(w.renderedFromFormattedString=!0);return _.q("attr_string_reactive")?_.m(Rua,{text:b,config:w}):_.m(_.h,{cond:function(){var V;return b()&&((V=uVB(b()))==null?void 0:V.content)},
then:function(){return _.m(tdr,{data:Y.text,config:w})},
debugInstance:"Apcuac"})},"f");
_.wv.idomCompat=!0;var W7L=function(Y,b,w){b=b===void 0?"unknown":b;w=w===void 0?{}:w;_.BQ.call(this,Y+" ("+b+")",Object.assign({},{name:"YtWcwError",tagName:b},w));Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(W7L,_.BQ);_.$L6=new WeakMap;_.y7e=!1;var CwL,jQK,A7I;_.YX=Symbol("ih");_.gn=Symbol("jh");CwL=Symbol("kh");jQK=new Set(Object.getOwnPropertyNames(Element.prototype));A7I=Symbol("lh");var R$k=_.b8(function(Y){return _.m("yt-attributed-string",{"aria-label":Y.ariaLabel,hidden:Y.hidden,id:Y.id,class:Y.className,"force-default-style":Y.forceDefaultStyle},_.m(_.wv,{text:Y.data,ariaLabel:Y.ariaLabel,ellipsisTruncate:Y.ellipsisTruncate,isOverlay:Y.isOverlay,linkInheritColor:Y.linkInheritColor,noPreWrap:Y.noPreWrap,noWrap:Y.noWrap,userInput:Y.userInput,noEndpoints:Y.noEndpoints,headerRuns:Y.headerRuns}))},"g");
_.q("web_wiz_attributed_string")&&_.f_(R$k,"yt-attributed-string",{props:{ariaHidden:_.YX,ariaLabel:_.YX,className:_.YX,ellipsisTruncate:_.YX,isOverlay:_.YX,linkInheritColor:_.YX,noEndpoints:_.YX,noStyleRuns:_.YX,noLinkColor:_.YX,noPreWrap:_.YX,noWrap:_.YX,skipOnClick:_.YX,userInput:_.YX,headerRuns:_.YX,id:_.YX,data:_.YX,hidden:_.YX,forceDefaultStyle:_.YX,text:_.gn,stopPropagation:_.gn,disableUpgrade:_.gn,disable:_.gn,slot:_.gn}});var b$=function(){return _.F.apply(this,arguments)||this};
_.P(b$,_.F);b$.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},F7r(this.data,this.config))};
_.z([_.n(A8K),_.K("design:type",Object)],b$.prototype,"ytIdomTemplatingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],b$.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],b$.prototype,"ariaLabel",void 0);_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"disable",void 0);_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"ellipsisTruncate",void 0);_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"isOverlay",void 0);
_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"linkInheritColor",void 0);_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"noPreWrap",void 0);_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"noWrap",void 0);_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"userInput",void 0);_.z([_.R(),_.K("design:type",Boolean)],b$.prototype,"noEndpoints",void 0);_.z([_.R(),_.K("design:type",Array)],b$.prototype,"headerRuns",void 0);
_.z([_.FM({is:"yt-attributed-string",disableElementRegistration:!0})],b$);
_.q("web_wiz_attributed_string")||_.a(b$,"yt-attributed-string",function(){if(Ibo===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-attributed-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_attributed_string.yt.attributed.string.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
Y.content.insertBefore(ox$().content.cloneNode(!0),Y.content.firstChild);Ibo=Y}Y=Ibo;return Y},{mode:2});var dN$,FCQ,wGt;dN$=function(){this.firstThumbnailLoaded=!1};
_.LCt=function(){FCQ||(FCQ=new dN$);return FCQ};
wGt=function(Y){var b=_.LCt();b.firstThumbnailLoaded||(b.firstThumbnailLoaded=!0,_.S1("ftl",Y))};
dN$.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Tqg=0,bJv=new WeakMap,ufq=0,cb=new Set;var S5d,abI=function(){return S5d!==void 0?S5d:S5d=document.createElement("template")};
document.head.appendChild(abI().content);var rR_;var fMt,E3a,w9;_.Dp=_.wB.caches;w9=function(){};
w9.prototype.open=function(Y){return _.Dp.open(z$I(Y))};
w9.prototype.has=function(Y){return _.Dp.has(z$I(Y))};
w9.prototype.delete=function(Y){return _.Dp.delete(z$I(Y))};
w9.prototype.match=function(Y,b){var w=this,V,H,f,E,U,X;return _.c(function(I){switch(I.nextAddress){case 1:return _.D(I,w.keys(),2);case 2:V=I.yieldResult,H=_.N(V),f=H.next();case 3:if(f.done){I.jumpTo(5);break}E=f.value;return _.D(I,w.open(E),6);case 6:return U=I.yieldResult,_.D(I,U.match(Y,b),7);case 7:if(X=I.yieldResult)return I.return(X);f=H.next();I.jumpTo(3);break;case 5:return I.return()}})};
var cvu=function(){};
_.P(cvu,w9);var z$I=function(Y){if(Y.includes(":"))throw Error("oh`"+Y);return Y+":"+_.PQ("CacheStorage get")};
cvu.prototype.keys=function(){var Y,b,w,V,H,f,E,U,X;return _.c(function(I){if(I.nextAddress==1)return Y=[],b=_.PQ("CacheStorage keys"),_.D(I,_.Dp.keys(),2);w=I.yieldResult;V=_.N(w);for(H=V.next();!H.done;H=V.next())f=H.value,E=_.g3L(f),U=E.originalName,X=E.datasyncId,X===b&&Y.push(U);return I.return(Y)})};var V7=function(){var Y=_.F.apply(this,arguments)||this;Y.objectURL=null;Y.loadTime=Infinity;return Y};
_.P(V7,_.F);_.g=V7.prototype;_.g.renderIdom=function(){HJg(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&eub(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.g.objectFitToContentMode=function(Y){switch(Y){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.g.logThumbnailFailureVe=function(){var Y=_.tj(197497);_.oC(_.Qd(),Y);var b=_.dO();b&&Y&&b&&_.Gu(b,[Y])};
_.g.loadImageFromCacheIfExists=function(Y){var b=this,w=Y.target;(w==null?0:w.src)&&XGL(w.src).then(function(V){b.objectURL=_.ZD(V).toString();b.setSrc(w,b.objectURL)}).catch(function(){})};
_.g.onError=function(Y){var b=this;if(_.q("web_use_cache_for_image_fallback")){var w=Y.target;w&&XGL(w.src).then(function(V){b.objectURL=_.ZD(V).toString();b.setSrc(w,b.objectURL)}).catch(function(){_.q("kevlar_woffle_log_thumbnail_failure_ve")&&b.logThumbnailFailureVe();
_.q("kevlar_woffle_fallback_image")&&b.setSrc(w,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.g.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.g.setConfig=function(){var Y=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(b){Y.loadImageFromCacheIfExists(b);Y.revokeObjectURL();Vp6(Y.hostElement)},
onerror:function(b){Y.onError(b)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.q("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.g.setSrc=function(Y,b){b&&(Y.src=b)};
_.z([_.n(A8K),_.K("design:type",Object)],V7.prototype,"ytIdomTemplatingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],V7.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],V7.prototype,"alt",void 0);_.z([_.R(),_.K("design:type",Boolean)],V7.prototype,"ftlEligible",void 0);_.z([_.R(),_.K("design:type",Number)],V7.prototype,"height",void 0);_.z([_.R(),_.K("design:type",Boolean)],V7.prototype,"notifyOnLoaded",void 0);
_.z([_.R(),_.K("design:type",Boolean)],V7.prototype,"notifyOnUnloaded",void 0);_.z([_.R(),_.K("design:type",String)],V7.prototype,"objectFit",void 0);_.z([_.R(),_.K("design:type",String)],V7.prototype,"objectPosition",void 0);_.z([_.R(),_.K("design:type",String)],V7.prototype,"preferredThumbnail",void 0);_.z([_.R(),_.K("design:type",Boolean)],V7.prototype,"preserveHeight",void 0);_.z([_.R(),_.K("design:type",Boolean)],V7.prototype,"preserveWidth",void 0);
_.z([_.R({value:!0}),_.K("design:type",Boolean)],V7.prototype,"useWidth",void 0);_.z([_.R({value:function(){return!_.Wf("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.K("design:type",Boolean)],V7.prototype,"shouldRenderLazy",void 0);_.z([_.R(),_.K("design:type",Number)],V7.prototype,"width",void 0);_.z([_.FM({is:"yt-image",disableElementRegistration:!0})],V7);
_.a(V7,"yt-image",function(){if(rR_===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.core.yt_image.yt.image.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(abI().content.cloneNode(!0),Y.content.firstChild);
rR_=Y}Y=rR_;return Y},{mode:2});var Hz=function(){return _.F.apply(this,arguments)||this};
_.P(Hz,_.F);Hz.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var Y=_.zT(this.data.onVisibleCommand);Y&&this.ytComponentBehavior.resolveCommand(Y)}};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Hz.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.GW.YtVisibilityBehavior),_.K("design:type",Object)],Hz.prototype,"ytVisibilityBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Hz.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Hz);
_.a(Hz,"yt-bumper-user-edu-content-view-model",function(){if(WJI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bumper-user-edu-content-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_bumper_user_edu_content_view_model.yt.bumper.user.edu.content.view.model.css.js--\x3e<div id="bumper-content" class="style-scope yt-bumper-user-edu-content-view-model">\n  <yt-image id="icon" data="[[data.image]]" height="16" class="style-scope yt-bumper-user-edu-content-view-model"></yt-image>\n  <div id="message-block" class="style-scope yt-bumper-user-edu-content-view-model">\n    <yt-attributed-string id="message" data="[[data.text]]" class="style-scope yt-bumper-user-edu-content-view-model"></yt-attributed-string>\n  </div>\n</div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;zlU===void 0&&(zlU=document.createElement("template"));var V=zlU;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);WJI=Y}Y=WJI;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var WC5;var KC5,iDI=function(){if(KC5!==void 0)return KC5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;WC5===void 0&&(WC5=document.createElement("template"));var V=WC5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return KC5=Y};var AR8;_.g9={};AR8=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"]);_.g9.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var Y=this.getContext_();return Y?Y.getTaskManager():_.Lb},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var Y=_.Ua(this.hostElement,"yt-get-context-provider",{});Y.detail&&Y.detail.contextProvider?this.cachedProviderNode_=Y.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return AR8.has(this.hostElement.localName)},
getNetworkManager:function(){var Y=this.getContext_();if(Y)return Y.getNetworkManager()}};var lML,CvC,$Nr,yR5;_.fn=function(Y){var b=CvC.get(Y);if(b&&(b=b.pop()))return yR5++,b;$Nr++;try{var w=document.createElement(Y)}catch(V){throw new _.BQ("ElementPool failed to create element",Y,V.message);}return w};
lML=function(Y){var b=Y.is;if(b){var w=CvC.get(b);w||(w=[],CvC.set(b,w));var V=_.zO("ELEMENT_POOL_CONFIG")||{};w.length>=(V[b]!==void 0?V[b]:_.zO("ELEMENT_POOL_DEFAULT_CAP",0))||w.push(Y)}else _.Sk(new _.BQ("Element pool should only handle custom elements:",Y.nodeName))};
CvC=new Map;$Nr=0;yR5=0;var mB=new WeakMap,k5g=new WeakMap;var GHo;_.NS=function(Y,b,w){w=w===void 0?_.dp():w;this.JSC$11735_defaultPriority=Y;this.signal=b;this.scheduler=w;this.nextJobDescriptor=0;this.JSC$11735_parkedJobs=[];this.scheduledJobs=new Map};
_.ES=function(Y,b){if(b){var w=_.Kp();Y.signal&&!_.iy(w,Y.signal)?(w.addListener(Y.signal,function(){Y.processSignal()}),Y.JSC$11735_parkedJobs.push({job:b,
priority:void 0})):jWI(Y,b)}};
GHo=function(Y,b){if(b!==Y.JSC$11735_defaultPriority){Y.JSC$11735_defaultPriority=b;for(var w=_.N(Y.scheduledJobs.values()),V=w.next();!V.done;V=w.next())V=V.value,Y.scheduler.cancelJob(V.jobId),V.jobId=Y.scheduler.addJob(V.jobWrapper,b)}};
_.NS.prototype.flushJobs=function(){GHo(this,10);this.processSignal()};
_.NS.prototype.cancel=function(){for(var Y=_.N(this.scheduledJobs),b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;w=w.next().value;this.scheduler.cancelJob(w.jobId);this.scheduledJobs.delete(b)}this.JSC$11735_parkedJobs=[]};
_.NS.prototype.processSignal=function(){for(var Y=_.N(this.JSC$11735_parkedJobs),b=Y.next();!b.done;b=Y.next())b=b.value,jWI(this,b.job,b.priority);this.JSC$11735_parkedJobs=[]};
var jWI=function(Y,b,w){w=w||Y.JSC$11735_defaultPriority;if(w===10)Uv(b);else{var V=Y.nextJobDescriptor++,H=function(){b();Y.scheduledJobs.delete(V)},f=Y.scheduler.addJob(H,w);
Y.scheduledJobs.set(V,{jobWrapper:H,jobId:f,priority:w})}};_.gS(sTK);var QTu={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};PFu({beforeVisit:function(Y){if(EQ.has(Y.type)){var b;(b=Y.props).idomKey!=null||(b.idomKey=Y.type)}else Y.type.TAG_NAME&&(fA=Y.type.TAG_NAME)},
afterRender:function(Y,b){var w;fA=(w=b==null?void 0:b.type)!=null?w:""},
didPatch:function(){fA=""}});var T19;_.cz={};T19={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.cz.YtRendererstamperBehavior=[_.g9.YtTaskEmitterBehavior,{mappings:null,stampDom:null,rendererStamperLogger_:null,beforeRegister:function(){this.configureRendererStamper&&typeof this.configureRendererStamper==="function"&&(this.stampDom?this.stampDom=Object.assign({},this.stampDom,this.configureRendererStamper()):this.stampDom=this.configureRendererStamper());this.stampDom&&this.addStampDomObservers_()},
created:function(){this.deferredBindingTasks_=[];this.renderJobsMap_=Object.create(null);this.hasDataPath_=Object.create(null);this.stampDom&&this.addStampDomObserverFns_();this.telemetry_={};this.resetTelemetry_()},
resetTelemetry_:function(){this.telemetry_.create=0;this.telemetry_.reuse=0},
addStampDomObservers_:function(){if(this.useSignals)for(var Y in this.stampDom){var b=this.stampDom[Y];b&&b.id&&this.addReactiveSchema({type:"observe",method:{methodName:mit(b.id),args:[{type:"wildcard",path:Y}]}})}else{(Y=(this.constructor.generatedFrom||this).observers)||(Y=[]);for(b in this.stampDom){var w=this.stampDom[b];w&&w.id&&Y.push(mit(w.id)+"("+b+".*)")}this.constructor.generatedFrom.observers=Y}},
addStampDomObserverFns_:function(){for(var Y in this.stampDom){var b=this.stampDom[Y];b.id?(this[mit(b.id)]=this.rendererStamperObserver_.bind(this,Y,b.id),this.hasDataPath_[Y]=!1):(b=new _.BQ("Bad rendererstamper config",this.is+":"+Y),_.Ft(b))}},
rendererStamperObserver_:function(Y,b,w){if(w.path==Y){if(w.value===void 0&&!this.hasDataPath_[Y])return;this.hasDataPath_[Y]=w.value!==void 0}this.rendererStamperApplyChangeRecord_(Y,b,w)},
rendererStamperApplyChangeRecord_:function(Y,b,w){var V=this.renderJobsMap_[b],H=null;Y==w.path?(w=w.value,_.TK(w)||(w=w===void 0||w===null?[]:[w]),Y=this.stampDom[Y],Y.mapping&&(H=this.stampDomArray_.bind(this,w,b,Y.mapping,Y.reuseComponents,Y.events,Y.stamperStableList)),V&&V.cancel(),w=Y.usePageScheduler?this.getTaskManager():void 0,V||Y.initialRenderPriority==void 0)?Y.renderPriority==void 0||V||(V=new _.NS(Y.renderPriority,Y.waitForSignal,w),this.renderJobsMap_[b]=V):(V=new _.NS(Y.initialRenderPriority,
Y.waitForSignal,w),this.renderJobsMap_[b]=V,H=function(f,E){f();GHo(E,10)}.bind(this,H,V)):H=Y+".splices"==w.path?this.stampDomArraySplices_.bind(this,Y,b,w.value):this.forwardRendererStamperChanges_.bind(this,Y,b,w);
V?_.ES(V,H):H()},
forwardRendererStamperChanges_:function(Y,b,w){var V=w.path.slice(Y.length+1),H=this.getStampContainer_(b),f=V.indexOf("."),E=V.substring(0,f),U=!1,X=0,I=parseInt(E,0);if(E[0]=="#"){U=parseInt(E.substring(1),0);I=this.get(Y);var k=this.get([Y,E]);I[U]==k?X=U:X=I.indexOf(k);U=!0}else isNaN(I)||(X=I,U=!0);U&&(V=V.substring(E.length+1),f=V.indexOf("."));E=_.B1(H).children[X];var l;if(H=(l=E==null?void 0:E.polymerController)!=null?l:E)V="data"+V.slice(f),typeof H.notifyPath!=="function"?_.Sk(new _.BQ("notifyPath missing",
this.is+": "+Y+", "+b)):w.value?H.notifyPath(V,w.value):H.notifyPath(V)},
stampDomArraySplices_:function(Y,b,w){if(w&&w.indexSplices){var V=this.getStampContainer_(b);if(V){for(var H=_.B1(V),f=IMb(this.stampDom[Y].reuseComponents),E=w.indexSplices.length,U=0;U<E;U++){for(var X=w.indexSplices[U],I=H.children[X.index],k=X.removed.length;k>0;k--)I&&I.parentElement&&(_.B1(I.parentElement).removeChild(I),f&&lML(I),I=H.children[X.index]);k=this.stampDom[Y].mapping;for(var l=X.index+X.addedCount,x=document.createDocumentFragment(),Q=f,Z=X.index;Z<l;Z++){var e=X.object[Z],O=DiI(k,
e);if(O){var L=k[O];e=e[O];O=this.getComponentName_(L,e);var r=I?mB.has(I):!1;Q&&I&&I.is==O&&r?(O=I,this.telemetry_.reuse++,I=I.nextElementSibling):Q&&I&&r?(O=this.createComponent_(L,e,f),r=_.B1(I).nextElementSibling,H.insertBefore(O,r),xiq(this.is,H,I,f),I=r):(Q=!1,O=this.createComponent_(L,e,f),x.appendChild(O));this.deferRenderStamperBinding_(O,L,e)}else L=new _.BQ("Unimplemented type",Y,b,V.tagName,Object.keys(e)[0]),_.Ft(L)}H.insertBefore(x,I)}this.flushRenderStamperComponentBindings_();this.stampDom[Y].events&&
_.Ua(this.hostElement,"yt-rendererstamper-finished",{container:V})}else Y=new _.BQ("Container object not found",b,this.hostElement?this.hostElement.is:""),_.Ft(Y)}},
stampDomArray_:function(Y,b,w,V,H,f){var E=this.getStampContainer_(b);if(E)if(b=_.B1(E),V=IMb(V),Y){var U=0,X=0,I;if(f=f===void 0?_.Wf("STAMPER_STABLE_LIST",!1):f||!1)for(I=b.firstElementChild;I&&!mB.has(I)&&Y.length>X;){f=Y[X];var k=DiI(w,f);if(k){if(this.getComponentName_(w[k],f[k])!=I.is){var l=this.createComponent_(w[k],f[k],V),x=_.B1(I).nextElementSibling;x?b.insertBefore(l,x):b.appendChild(l);xiq(this.is,b,I,V);I=l}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(I,w[k],f[k]);U++;
X++;I=_.B1(I).nextElementSibling}else X++}q4B(this.is,b,U,V);U=I;if(Y.length>X){f=document.createDocumentFragment();for(k=Y.length;X<k;X++)if(l=Y[X],x=DiI(w,l))I=this.createComponent_(w[x],l[x],V),this.deferRenderStamperBinding_(I,w[x],l[x]),f.appendChild(I);U&&_.B1(U).parentNode&&I&&!mB.has(I)?b.insertBefore(f,U):b.appendChild(f)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();H&&_.Ua(this.hostElement,"yt-rendererstamper-finished",{container:E})}else q4B(this.is,b,0,
V);else Y=new _.BQ("Container object not found",b,this.hostElement?this.hostElement.is:""),_.Ft(Y)},
getStampContainer_:function(Y){return this.$&&this.$[Y]||_.E6(this.hostElement).querySelector("#"+Y)},
getComponentName_:function(Y,b){return typeof Y==="string"?Y:Y.matcher?Y.matcher.call(this,b):Y.component},
createComponent_:function(Y,b,w){Y=this.getComponentName_(Y,b);try{var V=cP.has(Y)||EQ.has(Y);if(w&&!V){var H=_.fn(Y);try{_.m_(H)}catch(f){w="Failed to clear styles for "+Y+".",f.message&&(w+=" Original error: "+f.message),_.Sk(new _.BQ(w))}}else H=document.createElement(Y)}catch(f){return H="YtRendererStamperBehavior failed to create "+Y+".",f.message&&(H+=" Original description: "+f.message),f.message="YtRendererStamperBehavior failed to create element",_.aY(f,H),T19.hasOwnProperty(Y)?_.Sk(f):_.Ft(f),
document.createElement("SPAN")}this.telemetry_.create++;return H},
deferRenderStamperBinding_:function(Y,b,w){this.deferredBindingTasks_.push({component:Y,typeOrConfig:b,data:w})},
flushRenderStamperComponentBindings_:function(){for(var Y=0,b=this.deferredBindingTasks_.length;Y<b;Y++){var w=this.deferredBindingTasks_[Y];if(!w)break;var V=void 0,H=void 0,f=void 0,E=void 0,U=w.component,X=w.typeOrConfig;w=w.data;var I=(E=U.polymerController)!=null?E:U;E=U.loggingStatus;try{E&&(E.isRendererStamper=!0);if(typeof X!=="string"){for(f in X.attributes)X.attributes[f]===!0?U.setAttribute(f,""):X.attributes[f]===!1?U.removeAttribute(f):U.setAttribute(f,X.attributes[f]);for(H in X.params)I[H]=
X.params[H],U!==I&&BX(U.localName,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(V in X.properties){var k=X.properties[V];if(k){var l=o3K(k);I[V]=this.get(l);U!==I&&BX(U.localName,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(V==="on-tap"||V==="on-click"){var x=this.get(l);U.addEventListener("click",x);k5g.set(U,{property:V,listener:{type:"element",eventName:"click",handler:x}})}}else{var Q=new _.BQ("Undefined property binding",V);_.Ft(Q)}}}if(X.classListBinding){var Z=o3K(X.classListBinding),
e=Z?this[Z]:null;if(e)for(V=0;V<e.length;V++)_.U6(U,e[V],!0)}I.data=w}finally{E&&(E.isRendererStamper=!1)}if(V=mB.get(U))U.hidden=!1,mB.delete(U),_.Lb.cancelJob(V)}this.deferredBindingTasks_.length=0}}];_.US={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(Y){for(var b=_.CB.getInstance(),w=_.N(Object.keys(Y)),V=w.next();!V.done;V=w.next()){var H=V.value;V=Y[H];if(this&&this[V]){var f=b.actionRoutingMap.get(H);f||(f=new Map,b.actionRoutingMap.set(H,f));b.registerActionHandler(this,H,this[V].bind(this),f)}else H=Error("jd"),H.params=V,_.K7(H)}},
unregisterActionMap:function(Y){_.$P(_.CB.getInstance(),Y,this)}}]};var k_=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var IL;var lA=new Map;var diL=window.matchMedia("(forced-colors: active)").matches;var JR5;var uqo;var aML=new _.Hx("LOTTIE_LOADER_TOKEN");_.f_(_.b8(function(Y){return _.m("ytd-lottie-player",{id:Y.id,hidden:Y.hidden,class:Y.className,"aria-label":Y.ariaLabel,style:"display: block;"},_.m(_.x_,{data:Y.data,animationName:function(){var b;return((b=Y.data().animationConfig)==null?void 0:b.name)||""},
animationRef:function(){return Y.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.YX,
id:_.YX,hidden:_.YX,className:_.YX,ariaLabel:_.YX}});var XG=function(){var Y=_.F.apply(this,arguments)||this;Y.animationRef={};return Y};
_.P(XG,_.F);_.g=XG.prototype;
_.g.handlePropertyChange=function(){var Y=this.animatedIcon,b=this.active,w=this.isDarkTheme;if(Y){var V=this.previousActive!==b;this.previousActive=b;this.animationRef.lottieEl?V&&this.toggleAnimation(b,Y.totalFrames):b?this.initializeAnimationAsToggled(Y.lottiePlayerProps,Y.totalFrames):this.initializeAnimationAsUntoggled(Y.lottiePlayerProps);Y.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=Y.type;this.lottiePlayerProps=this.computeLottiePlayerProps(Y,w)}};
_.g.computeLottiePlayerProps=function(Y,b){var w=this.deepCloneLottiePlayerProps(Y);b?(b=Y.nameDarkTheme,Y=Y.pathDarkTheme):(b=Y.name,Y=Y.path);w.animationConfig.name=b;(b=lA.get(Y))?w.animationConfig.animationData=b:w.animationConfig.path=Y;return w};
_.g.initializeAnimationAsToggled=function(Y,b){Y.animationConfig.initialSegment=[b-1,b]};
_.g.initializeAnimationAsUntoggled=function(Y){Y.animationConfig.initialSegment=void 0};
_.g.toggleAnimation=function(Y,b){if(Y){var w;(w=this.animationRef.lottieEl)==null||w.playSegments([0,b],!0)}else{var V;(V=this.animationRef.lottieEl)==null||V.playSegments([0,1],!0)}};
_.g.deepCloneLottiePlayerProps=function(Y){var b=Object.assign({},Y.lottiePlayerProps.animationConfig);Y=Object.assign({},Y.lottiePlayerProps);Y.animationConfig=b;return Y};
XG.prototype.handlePropertyChange=XG.prototype.handlePropertyChange;_.z([_.R(),_.K("design:type",Object)],XG.prototype,"animatedIcon",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],XG.prototype,"active",void 0);_.z([_.R(),_.K("design:type",Boolean)],XG.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],XG.prototype,"animatedIconType",void 0);_.z([_.R(),_.K("design:type",Boolean)],XG.prototype,"previousActive",void 0);
_.z([_.R(),_.K("design:type",Object)],XG.prototype,"lottiePlayerProps",void 0);_.z([_.R(),_.K("design:type",Object)],XG.prototype,"animationRef",void 0);_.z([_.lr("animatedIcon","active","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XG.prototype,"handlePropertyChange",null);_.z([_.FM({is:"yt-animated-icon",disableElementRegistration:!0})],XG);
_.a(XG,"yt-animated-icon",function(){if(uqo===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;JR5===void 0&&(JR5=document.createElement("template"));var V=JR5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);uqo=Y}Y=uqo;return Y},{mode:2});var Yj9;var bRt;var Whg=_.b8(function(Y){var b=_.TM("span"),w=FP(function(){return{value:null}});
_.R2(function(){var H;(H=w.value)==null||H.cancel()});
var V=_.sN(Y.data,{equals:function(H,f){return H.iconName===f.iconName&&H.iconStyle===f.iconStyle&&H.iconSize===f.iconSize&&H.iconSetName===f.iconSetName&&H.iconSelected===f.iconSelected}},"aoiXAb");
_.tl(function(){var H,f=(H=Y.options)==null?void 0:H.call(Y);zru(b,w,V(),f)},"QXgxJd");
return _.m("span",{class:"yt-icon-shape",el:b})},"i");
Whg.idomCompat=!0;var OIv=["youtube_fill","youtube_outline"];var wp5=new _.tx({type:"iconset",value:void 0}),Di=function(){var Y=_.F.apply(this,arguments)||this;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.iconName="";Y.iconsetName="yt-icons";Y.iconset=null;Y.missingIconSet=!1;Y.iconType=null;Y.iconShapeDataSignal=_.kw(void 0,void 0,"RQ9kUb");Y.renderingOptionsSignal=_.kw({iconWidth:"100%",iconHeight:"100%",iconFilter:Y.iconFilter},void 0,"qtx8Ef");Y.wizHasRendered=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(Di,_.F);Di.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
Di.prototype.handlePropertyChange=function(){var Y=this,b,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L;return _.c(function(r){switch(r.nextAddress){case 1:if(b=!Y.icon&&!Y.iconName||!Y.isAttached)return r.return();w=Y;V=w.icon;H=w.size;f=w.defaultToFilled;E=w.active;U=w.targetContainer;Y.toggleContainerClass(U);_.q("kevlar_use_wil_icons")&&V&&(X=xNa(V),Y.iconType=X.length?X[1]:null);if(V){r.jumpTo(2);break}Y.iconsetName="";Y.iconName="";return _.D(r,Y.renderIcon(U,V),3);case 3:return r.return();case 2:I=V0K(V);
k=xNa(I);k.length&&(Y.iconsetName=k[0],Y.iconName=k[1]);if(!_.q("kevlar_use_wil_icons")){r.jumpTo(4);break}l=Di;x=HRU;Q=Y.iconType;Z=Y.active;e=Y.defaultToFilled;O=Y.size;L=Y.iconsetName;return _.D(r,gad(),6);case 6:return _.D(r,x.call(l,Q,Z,e,O,L,r.yieldResult),5);case 5:Y.iconShapeData=r.yieldResult;case 4:if(Y.shouldRenderIconShape(U)){r.jumpTo(7);break}return _.D(r,Y.determineIconSet(I,E,f,H,U),7);case 7:return _.D(r,Y.renderIcon(U,V),0)}})};
Di.prototype.toggleContainerClass=function(Y){Y?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var V0K=function(Y){return!_.q("default_to_innertube_icon")||Y.indexOf(":")>0?Y:_.IR(Y)};
_.g=Di.prototype;_.g.determineIconSet=function(Y,b,w,V){var H=this;return _.c(function(f){return f.nextAddress==1?_.q("kevlar_system_icons")||_.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.zO("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.D(f,H.switchToYtSysIconset(Y,b,w,V),3):f.jumpTo(2):f.nextAddress!=2?f.return():_.D(f,H.useYtSysIconsetForMissingIcons(Y,b,w,V),0)})};
_.g.switchToYtSysIconset=function(Y,b,w,V){var H=this,f,E,U,X,I,k,l;return _.c(function(x){switch(x.nextAddress){case 1:if(!Y||H.iconsetName!=="yt-icons"&&H.iconsetName!=="yt-sys-icons"){x.jumpTo(0);break}f=xNa(Y);E=f[1];E=_.e$I(E);_.q("enable_polymer_icons_replace_underscores_dash")&&E.includes("_filled")&&(E=E.replace(/_filled/g,"-filled"));return _.D(x,oR(E,!0),3);case 3:return U=x.yieldResult,_.D(x,oR(E,!1),4);case 4:if((X=x.yieldResult)||b&&U)H.iconsetName="yt-sys-icons";H.iconName=H.getIconName(E,
b,w,X,U);if(V===24){x.jumpTo(0);break}I="yt-sys-icons"+V+":"+H.iconName;return _.D(x,oR(I,!1,!0),6);case 6:return k=x.yieldResult,_.D(x,oR(I,!0,!0),7);case 7:l=x.yieldResult;H.iconName=H.getIconName(E,b,w,k,l);if(!b&&k||b&&l)H.iconsetName="yt-sys-icons"+V;_.om(x)}})};
_.g.getIconName=function(Y,b,w,V,H){Y.includes("-filled")&&(Y=Y.replace("-filled",""));return H&&(b||w)?Y+"-filled":Y};
_.g.useYtSysIconsetForMissingIcons=function(Y,b,w,V){var H=this,f,E;return _.c(function(U){if(U.nextAddress==1)return H.iconsetName!=="yt-icons"?U.jumpTo(0):_.D(U,oR(H.iconName,!1,!1,!0),3);if(U.nextAddress!=4)return f=U.yieldResult,_.D(U,oR(H.iconName,!1),4);E=U.yieldResult;if(f||!E)return U.jumpTo(0);H.iconsetName="yt-sys-icons";return _.D(U,H.switchToYtSysIconset(Y,b,w,V),0)})};
_.g.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var gad=function(){return _.c(function(Y){try{return Y.return(_.fH().resolve(_.kO))}catch(b){return Y.return(new Promise(function(w){_.Kp().parkOrScheduleJob(function(){w(_.fH().resolve(_.kO))},2,"ci")}))}})},HRU=function(Y,b,w,V,H,f){V=V===void 0?24:V;
if(Y){Y=Y.toLowerCase();var E=Y.endsWith("_filled")||Y.endsWith("-filled");b={iconName:Y,iconStyle:(b===void 0?0:b)||(w===void 0?0:w)||E?"youtube_fill":"youtube_outline",iconSize:V,iconSetName:H===void 0?"yt-icons":H};w=!!f.resolveIcon(b);w||(b.iconSize=void 0,w=!!f.resolveIcon(b));!w&&E&&(b.iconName=Y.substring(0,Y.length-7),b.iconSize=V,w=!!f.resolveIcon(b),w||(b.iconSize=void 0,w=!!f.resolveIcon(b)));w||(b.iconStyle=void 0,w=!!f.resolveIcon(b));w||_.Sk(new _.BQ("Icon not supported",{iconName:b.iconName,
iconStyle:b.iconStyle,iconSize:b.iconSize,iconType:Y}));return w?b:void 0}};
_.g=Di.prototype;_.g.shouldRenderIconShape=function(Y){if(!_.q("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;Y=this.getContainer(Y);return!Fhr(Y,this.icon)};
_.g.renderIcon=function(Y,b){var w=this,V,H,f,E,U,X,I,k;return _.c(function(l){switch(l.nextAddress){case 1:if(b&&w.icon!==b)return l.return();V=w.getContainer(Y);H=Fhr(V,w.icon);if(w.shouldRenderIconShape(Y)&&w.iconType)return w.applyIconShape(H,V),l.return();w.removeIconShape();if(!V)return l.return();w.iconName===""&&w.iconset&&V&&(w.removeStaticIcon(w.iconset,V),H&&w.removeAnimatedIcon(V));if(w.iconName===""&&w.iconset||!w.iconsetName||!wp5)return l.return();w.iconset=wp5.byKey(w.iconsetName);
if(!w.iconset)return w.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Io(w,w.onIconsetAdded)),l.return();w.missingIconSet&&(w.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Io(w,w.onIconsetAdded)));E=(f=H||w.isAnimatedIcon?Rre(w.icon):void 0)&&!f.lazyLoad;X=f&&((U=f)==null?void 0:U.lazyLoad)&&(f.lottiePlayerProps.animationConfig.animationData?!0:lA.get(w.isDarkTheme?f.pathDarkTheme:f.path)?!0:!1);if(E||X)return w.applyAnimatedIcon(V,f,w.iconset),l.return();if(X||
(I=f)==null||!I.lazyLoad){l.jumpTo(2);break}k=S46(f,w.isDarkTheme);w.applyStaticIcon(w.iconset,V,w.iconName,Y,H);return _.D(l,k,3);case 3:return _.D(l,w.renderIcon(w.targetContainer,w.icon),4);case 4:return l.return();case 2:w.applyStaticIcon(w.iconset,V,w.iconName,Y,H),_.om(l)}})};
_.g.getContainer=function(Y){var b,w=(b=WAK(this.hostElement))==null?void 0:b.host;b=!!w&&!!w.polymerController;if(!Y||b)return Y?this.getTargetContainer(Y,w):this.hostElement};
_.g.getTargetContainer=function(Y,b){var w=_.E6(b).querySelector("#"+Y);w||(Y=new _.BQ("yt-icon container missing",b.is,Y),_.Ft(Y));return w};
_.g.applyStaticIcon=function(Y,b,w,V,H){H&&this.removeAnimatedIcon(b);this.removeIconShape();H=H&&!!this.iconType&&!!this.iconShapeData&&_.q("kevlar_use_wil_icons");try{H?this.applyIconShape(!1,b):Y.applyIcon(b,w)}catch(f){this.handleError(f,V,b)}};
_.g.applyIconShape=function(Y,b){this.iconset&&b&&(this.removeStaticIcon(this.iconset,b),Y&&this.removeAnimatedIcon(b));Y={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var w=_.N(this.iconShapeDataSignal);b=w.next().value;w=w.next().value;var V=_.N(this.renderingOptionsSignal),H=V.next().value;V=V.next().value;w(this.iconShapeData);V(Y);if(!this.wizHasRendered)for(this.wizHasRendered=!0,Y=_.N(Khb(b,H)).next().value;Y.firstChild;)_.E6(this.hostElement).appendChild(Y.firstChild)};
_.g.removeIconShape=function(){if(_.q("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.g.removeStaticIcon=function(Y,b){Y.removeIcon(b)};
_.g.applyAnimatedIcon=function(Y,b,w){this.removeStaticIcon(w,Y);this.removeIconShape();var V;w=this.animatedIconElement&&((V=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:V.type)===b.type;if(this.animatedIconElement&&w){this.animatedIconElement.polymerController.animatedIcon=b;var H;((H=this.animatedIconElement)==null?void 0:H.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(Y),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=b,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.q("kevlar_use_wil_icons")?Y.insertBefore(this.animatedIconElement,Y.childNodes[0]):(Y=_.E6(Y),Y.insertBefore(this.animatedIconElement,Y.childNodes[0]))};
_.g.removeAnimatedIcon=function(Y){_.q("kevlar_use_wil_icons")?this.animatedIconElement&&Y.contains(this.animatedIconElement)&&Y.removeChild(this.animatedIconElement):(Y=_.E6(Y),this.animatedIconElement&&Y.contains(this.animatedIconElement)&&Y.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.g.handleError=function(Y,b,w){_.aY(Y,this.iconName,b,w);b=Fhr(w,this.icon);var V=!1;window.location.href.includes("JpymaW6Lh2w")?V=!0:w._svgIcon&&(w=(w=w._svgIcon.parentNode)?w.tagName:"unknown",_.aY(Y,w),w==="YT-ICON"&&Y.name==="NotFoundError"?V=!0:Y.name==="NotFoundError"&&b&&(V=!0));V?_.Sk(Y):_.Ft(Y)};
_.up.Object.defineProperties(Di,{template:{configurable:!0,enumerable:!0,get:function(){if(bRt===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_icon.yt.icon.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;
Yj9===void 0&&(Yj9=document.createElement("template"));var V=Yj9;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);bRt=Y}Y=bRt;return Y}}});
Di.prototype.handlePropertyChange=Di.prototype.handlePropertyChange;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Di.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",String)],Di.prototype,"icon",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Di.prototype,"active",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Di.prototype,"defaultToFilled",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Di.prototype,"isAnimatedIcon",void 0);
_.z([_.R({value:24}),_.K("design:type",Number)],Di.prototype,"size",void 0);_.z([_.R({value:""}),_.K("design:type",String)],Di.prototype,"targetContainer",void 0);_.z([_.R(),_.K("design:type",Object)],Di.prototype,"animatedIconElement",void 0);_.z([_.R(),_.K("design:type",Object)],Di.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Di.prototype,"ariaHidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],Di.prototype,"ariaLabel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],Di.prototype,"role",void 0);_.z([_.R(),_.K("design:type",String)],Di.prototype,"style",void 0);_.z([_.R(),_.K("design:type",String)],Di.prototype,"iconFilter",void 0);_.z([_.lr("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],Di.prototype,"handlePropertyChange",null);_.z([_.FM({is:"yt-icon",noInjection:!0})],Di);var fv_;var NV5=function(){var Y=document.body,b=Y.appendChild;if(fv_===void 0){var w=document.createElement("template");_.B(w,'\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>');
fv_=w}w=fv_;b.call(Y,w.content)};
document.body?NV5():window.addEventListener("DOMContentLoaded",NV5);var Eao,c2K=function(){return Eao!==void 0?Eao:Eao=document.createElement("template")};
document.head.appendChild(c2K().content);var Uu$,Xp$=function(){return Uu$!==void 0?Uu$:Uu$=document.createElement("template")};
document.head.appendChild(Xp$().content);var Du$;_.mu=new _.Hx("KEY_MANAGER_TOKEN");var $iI={duration:1E3,easing:"ease",fill:"forwards"};_.gS(yvG);var G5u={duration:1E3,easing:"ease",fill:"forwards"},Iv$=_.b8(function(Y){var b=_.GM("animated-rolling-character"),w=void 0,V=function(){var H,f;return uo((H=Y.character)==null?void 0:H.call(Y))||uo((f=Y.previousCharacter)==null?void 0:f.call(Y))};
_.tl(function(){if(Y.marginMultiplier()){var H;(H=w)==null||H.cancel();if(V()){var f;H=((f=Y.previousCharacter)==null?0:f.call(Y))?Number(Y.previousCharacter())+10:Y.rollUp()?0:30;var E;if((E=Y.shouldAnimate)==null||!E.call(Y)){var U,X;H-=jTG((U=Y.character)==null?void 0:U.call(Y),(X=Y.previousCharacter)==null?void 0:X.call(Y),Y.rollUp(),H)}}else{H=Y.rollUp()?0:2;var I;(I=Y.shouldAnimate)!=null&&I.call(Y)||(f=H,E=Y.rollUp()?-1:1,H=f-E)}b.value.style.marginTop="-"+H*Y.marginMultiplier()+"px";var k;
if((k=Y.shouldAnimate)==null?0:k.call(Y)){var l,x;w=TN6(b.value,(l=Y.character)==null?void 0:l.call(Y),(x=Y.previousCharacter)==null?void 0:x.call(Y),Y.rollUp(),H,V(),Y.marginMultiplier())}else{var Q;b.value.style.display=((Q=Y.character)==null?0:Q.call(Y))?"":"none"}}},"vt9b9b");
return _.m("animated-rolling-character",{el:b,class:"animated-rolling-character-wiz"},_.m(_.h,{cond:V,then:function(){return _.m(muk,null)},
else:function(){return _.m(oao,{character:Y.character})}}))},"j");
Iv$.idomCompat=!0;var Jvg=_.q("web_enable_sink_animated_rolling_character_and_number")?Iv$:yvG,kft=_.q("web_enable_sink_animated_rolling_character_and_number")?Iv$:_.sv(yvG),muk=_.b8(function(){for(var Y=[],b=1;b<30;b++)Y.push(_.m("div",null,b%10));return _.m(_.Uz,null,_.m("div",null,"\u00a0"),Y,_.m("div",null,"\u00a0"))},"k"),oao=_.b8(function(Y){var b=Y.character;
return _.m(_.Uz,null,_.m("div",null,"\u00a0"),_.m(_.h,{cond:function(){return!(b==null?0:b())||_.EM(b==null?void 0:b())},
then:function(){return _.m("div",null,"\u00a0")},
else:function(){return _.m("div",null,b)}}),_.m("div",null,"\u00a0"))},"l");_.gS(uNK);var lvt=_.b8(function(Y){var b=void 0,w=void 0,V=function(){var f;return((f=Y.fontSizeMultiplier)==null?0:f.call(Y))?Y.heightPx()*Y.fontSizeMultiplier():Y.heightPx()},H=_.sN(function(){if(!Y.numberText())return[];
var f,E,U=((f=Y.forceRollUp)==null?void 0:f.call(Y))||!w||!((E=Y.numberValue)==null?0:E.call(Y))||w<Y.numberValue(),X,I=Y.numberText();f=V();E=!((X=Y.shouldAnimate)==null||!X.call(Y));X=[];var k=0,l=0,x=(b?b.replace(/\D/g,"").length:0)-(I?I.replace(/\D/g,"").length:0),Q=b?b.split(/(\d)/).filter(Boolean):[];for(I=I.split(/(\d)/).filter(Boolean);x<0;){var Z=I[l];X.push({character:Z,rollUp:U,marginMultiplier:f,shouldAnimate:E});l++;uo(Z)&&x++}for(;k<x;)Z=Q[k],X.push({previousCharacter:Z,rollUp:U,marginMultiplier:f,
shouldAnimate:E}),k++,uo(Z)||x++;for(;l<I.length;)x=I[l],Z=Q[k],uo(x)===uo(Z)?(l++,k++):uo(x)?(k++,x=void 0):uo(Z)&&(l++,Z=void 0),X.push({character:x,previousCharacter:Z,rollUp:U,marginMultiplier:f,shouldAnimate:E});b=Y.numberText();var e;w=(e=Y.numberValue)==null?void 0:e.call(Y);return X},void 0,"B9AmNd");
return _.m("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return Y.numberText()?["height: "+V()+"px;","line-height: "+Y.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.m(_.Bf,{each:H,keyBy:"INDEX"},function(f){return _.m(kft,{character:function(){return f().character},
previousCharacter:function(){return f().previousCharacter},
marginMultiplier:function(){return f().marginMultiplier},
rollUp:function(){return f().rollUp},
shouldAnimate:function(){return f().shouldAnimate}})}))},"m");
lvt.idomCompat=!0;_.l$L=_.q("web_enable_sink_animated_rolling_character_and_number")?lvt:uNK;_.hCC=_.q("web_enable_sink_animated_rolling_character_and_number")?lvt:_.sv(uNK);var Y8b={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.oG=_.b8(function(Y){var b=_.GM("a",Y.ref),w=Y.aTagConfig?Y.aTagConfig:_.sN(function(){var V,H,f,E,U,X;var I=(X=_.zT((E=Y.command)==null?void 0:E.call(Y)))!=null?X:(U=Y.command)==null?void 0:U.call(Y);return _.KA({innertubeCommand:I,skipOnClick:(V=Y.skipOnClick)==null?void 0:V.call(Y),stopPropagation:(H=Y.dangerousStopPropagation)==null?void 0:H.call(Y),defaultTarget:(f=Y.target)==null?void 0:f.call(Y)})||{}},void 0,"gnrRge");
_.tl(function(){b.value._data=w()._data;b.value.params=w().params},"dcjvAe");
return _.m("a",{el:b,href:function(){return w().href$},
rel:function(){return w().rel$},
class:function(){var V,H;return(H=w().className)!=null?H:(V=Y.className)==null?void 0:V.call(Y)},
style:function(){var V;if((V=Y.style)==null?0:V.call(Y))return Y.style();var H;return((H=Y.disabled)==null?0:H.call(Y))?"pointer-events:none":""},
"aria-haspopup":function(){return!!w()["aria-haspopup$"]},
"force-new-state":Pb(function(){return w()["force-new-state$"]}),
title:Pb(function(){var V,H;return(H=w().title$)!=null?H:(V=Y.title)==null?void 0:V.call(Y)}),
role:Pb(function(){return w().role$}),
target:Pb(function(){return w().target$}),
dir:Pb(function(){var V;return((V=Y.dir)==null?0:V.call(Y))?Y.dir():w().dir}),
tabindex:function(){var V;return w().tabindex$?Number(w().tabindex$):(V=Y.tabIndex)==null?void 0:V.call(Y)},
"aria-hidden":function(){var V,H;return(H=w()["aria-hidden$"])!=null?H:(V=Y.ariaHidden)==null?void 0:V.call(Y)},
"aria-label":function(){var V,H;return(H=w()["aria-label$"])!=null?H:(V=Y.ariaLabel)==null?void 0:V.call(Y)},
"aria-current":Y.ariaCurrent,"aria-disabled":Y.disabled,"aria-labelledby":Y.ariaLabelledby,"aria-describedby":Y.ariaDescribedby,"aria-selected":Y.ariaSelected,"tab-identifier":Y.tabIdentifier,"on:pointerdown":_.Q_(function(V){var H,f;return void((f=(H=w()).onpointerdown)==null?void 0:f.call(H,V))}),
"on:click":_.Q_(function(V){var H,f;return void((f=(H=w()).onclick)==null?void 0:f.call(H,V))})},Y.children)},"n");var xuQ=function(Y,b){this.fillAnimation=new Animation(HGa(Y),document.timeline);this.strokeAnimation=new Animation(g9e(b),document.timeline)};
xuQ.prototype.play=function(){var Y,b;(b=(Y=this.fillAnimation).play)==null||b.call(Y);var w,V;(V=(w=this.strokeAnimation).play)==null||V.call(w)};
xuQ.prototype.cancel=function(){var Y,b;(b=(Y=this.fillAnimation).cancel)==null||b.call(Y);var w,V;(V=(w=this.strokeAnimation).cancel)==null||V.call(w)};_.p_=_.b8(function(Y){var b=Y.model;var w=Y.pointerDownEvent;var V=Y.pointerUpEvent;var H=Y.pointerLeaveEvent;Y=_.GM("div");var f=_.Bb({"border-radius":function(){return b().borderRadius}}),E=_.GM("div"),U=_.GM("div"),X=_.N(_.Zp(function(){return(V==null?0:V())||(H==null?0:H())?!1:!(w==null||!w())||!1})),I=X.next().value,k=X.next().value,l=void 0,x=function(){!l&&U.value&&E.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(l=new xuQ(U.value,E.value));
var r;(r=l)==null||r.play()},Q=function(){var r;
(r=l)==null||r.cancel()},Z=function(){var r;
(r=l)==null||r.cancel()};
_.tl(function(){(V==null?0:V())&&x()},"YjVIpd");
_.tl(function(){(w==null?0:w())&&Q()},"UrXvqb");
_.tl(function(){(H==null?0:H())&&Z()},"QK6L8b");
X=_.Q_(function(){x();k(!1)});
var e=_.Q_(function(){Q();k(!0)}),O=_.Q_(function(){Z();
k(!1)});
_.R2(function(){if(l){var r;(r=l)==null||r.cancel();l=void 0}});
var L={};I=_.hj("yt-spec-touch-feedback-shape",function(){return f$B(b().color)},(L["yt-spec-touch-feedback-shape--focused"]=function(){return!!b().focused&&!b().disabled},L["yt-spec-touch-feedback-shape--circular"]=function(){return!!b().circular},L["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!b().isExtended},L["yt-spec-touch-feedback-shape--down"]=I,L["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!b().triggerEvents},L));
return _.m("yt-touch-feedback-shape",{style:_.Bb({"border-radius":"inherit"})},_.m("div",{el:Y,class:I,style:_.Bb({"margin-top":function(){return b().customTopExtend?"-"+b().customTopExtend+"px":void 0}}),
"on:mousedown":e,"on:mouseup":X,"on:pointerleave":O,"on:touchstart":e,"on:touchend":X,"aria-hidden":!0},_.m("div",{class:"yt-spec-touch-feedback-shape__stroke",style:f,el:E}),_.m("div",{class:"yt-spec-touch-feedback-shape__fill",style:f,el:U})))},"o");
_.p_.idomCompat=!0;var qj$={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 IG=_.kb();IG=IG.toLowerCase();if(_.UM(IG,"android")){var sa_=IG.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);sa_&&parseFloat(sa_[1])<100||IG.match("("+Object.keys(qj$).join("|")+")")};var QaC=_.b8(function(Y){return _.m(_.h,{cond:Y.aTagConfig,then:function(b){return _.m(_.oG,{aTagConfig:b,disabled:Y.disabled,className:Y.className,style:Y.style,title:Y.title,ariaLabel:Y.ariaLabel,ariaCurrent:function(){var w,V;return((w=Y.toggleable)==null?void 0:w.call(Y))&&((V=Y.toggled)==null?void 0:V.call(Y))}},Y.children)},
else:function(){return _.m("button",{"on:click":_.Q_(function(b){var w;return(w=Y.onClick)==null?void 0:w.call(Y,b)}),
class:Y.className,title:Y.title,style:Y.style,disabled:Y.disabled,"aria-pressed":function(){var b,w;return((b=Y.toggleable)==null?0:b.call(Y))?!((w=Y.toggled)==null||!w.call(Y)):void 0},
"aria-label":Y.ariaLabel,"aria-disabled":Y.visiblyDisabled,"aria-hidden":Y.ariaHidden,tabindex:Y.tabIndex},Y.children)}})},"p"),PbK=_.b8(function(Y){var b=Y.data;
var w=Y.hasIconLeading;var V=Y.hasIconLeadingTrailing;var H=Y.hasIconTrailing;var f=Y.iconButton;var E=Y.iconClassName;var U=Y.secondaryIconClassName;var X=Y.icon;var I=Y.secondaryIcon;var k=Y.textContentClassName;return _.m(kX,{className:"",style:"display: inherit; justify-content: center"},_.m(_.h,{debugInstance:"V4z1Uc",cond:function(){return X&&(w()||V()||(f==null?void 0:f()))},
then:function(){return _.m(kX,null,_.m("div",{class:E,"aria-hidden":"true"},X==null?void 0:X()))}}),_.m(_.h,{debugInstance:"ok3btb",
cond:function(){return(b().buttonText||b().animatedTextProps||b().formattedButtonText)&&!(f==null?0:f())},
then:function(){return _.m(kX,null,_.m(vad,{className:k,iconPosition:function(){return b().iconPosition},
text:function(){return b().buttonText},
oneOffCustomTextWrap:function(){return b().oneOffCustomTextWrap},
formattedButtonText:function(){return b().formattedButtonText},
animatedTextProps:function(){return b().animatedTextProps}}))}}),_.m(_.h,{debugInstance:"DO5Rz",
cond:H,then:function(){return _.m(kX,null,_.m("div",{class:E},X==null?void 0:X()))}}),_.m(_.h,{debugInstance:"bnojSc",
cond:V,then:function(){return _.m(kX,null,_.m("div",{class:U},I==null?void 0:I()))}}),_.m(_.h,{debugInstance:"HN3kad",
cond:function(){return!b().disabled&&!0},
then:function(){return _.m(_.p_,{model:function(){return{color:Xev(b())}}})}}))},"q"),vad=_.b8(function(Y){var b=function(){var w,V;
return((w=Y.iconPosition)==null?void 0:w.call(Y))==="icon-with-label"||((V=Y.oneOffCustomTextWrap)==null?void 0:V.call(Y))};
return _.m("div",{class:Y.className,"aria-hidden":function(){var w,V,H;return((w=Y.ariaHidden)==null?void 0:w.call(Y))&&(!((V=Y.animatedTextProps)==null||!V.call(Y))||!((H=Y.formattedButtonText)==null||!H.call(Y)))}},_.m(_.e4,null,_.m(_.n7,{when:function(){var w;
return(w=Y.animatedTextProps)==null?void 0:w.call(Y)}},function(){return _.m(_.hCC,{numberText:function(){return Y.animatedTextProps().numberText},
numberValue:function(){return Y.animatedTextProps().numberValue},
heightPx:function(){return Y.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return Y.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return Y.animatedTextProps().shouldAnimate},
forceRollUp:function(){return Y.animatedTextProps().forceRollUp}})}),_.m(_.n7,{when:function(){var w;
return(w=Y.formattedButtonText)==null?void 0:w.call(Y)}},function(){return _.m(_.wv,{text:function(){return Object.assign({},Y.formattedButtonText(),{lineBreakMode:b()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":Y.formattedButtonText().lineBreakMode,
alignment:b()?"TEXT_ALIGNMENT_CENTER":Y.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!b()}})}),_.m(_.n7,{when:function(){var w,V;
return((w=Y.iconPosition)==null?void 0:w.call(Y))==="icon-with-label"&&((V=Y.text)==null?void 0:V.call(Y))}},function(){return _.m(_.wv,{text:function(){return{content:Y.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.m(_.M$,null,function(){return Y.text})))},"r"),ZRC=_.b8(function(Y){return _.m(_.h,{debugInstance:"kM7Sgc",
cond:Y.hasLabel,then:function(){var b;return _.m("label",{class:Y.className},Y.children,(b=Y.textContent)==null?void 0:b.call(Y))},
else:function(){return Y.children}})},"s"),kX=_.b8(function(Y){return Y.children},"t");var DRg=Hh("stamper-context");var HT=_.b8(function(Y){var b=Y.data;var w=Y.icon;var V=Y.iconName;var H=Y.secondaryIcon;var f=Y.secondaryIconName;var E=Y.focusedOverride;QJM();var U=NDG(b),X=U.size,I=U.style;Y=U.disabled;var k=U.onTap,l=U.alignByText,x=U.aTagConfig,Q=U.customColors,Z=U.segmentedPosition,e=U.toggled,O=U.toggleable,L=U.accessibilityLabel,r=U.onToggle,C=U.iconPosition,W=U.oneOffCustomTextWrap,y=U.disableTextEllipsis,G=U.disableBackdropFilter,Nr=U.tooltipText,o6=U.ariaHidden,lI=U.tabIndex,Zt=U.buttonText,eL=U.formattedButtonText,
OM=U.animatedTextProps,iI=UIg(b,w,H,V,f,E),rB=iI.type;w=iI.shouldFocus;V=iI.hasIconLeading;H=iI.hasIconTrailing;var Tj=iI.hasIconLeadingTrailing,J_=iI.hasIconOnly;f=iI.hasIconOnly40;var B9=iI.hasIconWithLabel;E=iI.iconButton;var ok=iI.visiblyDisabled;U=iI.overrideSmallSizeIcon;var Ut=iI.iconToRender;iI=iI.secondaryIconToRender;var wt={},X$={};return _.m(ZRC,{className:_.hj("yt-spec-button-shape-with-label",(wt["yt-spec-button-shape-with-label--is-overlay"]=function(){return I()==="overlay"||I()===
"overlay-dark"},wt)),
hasLabel:B9,textContent:function(){return _.m(vad,{text:Zt,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:W,iconPosition:C,formattedButtonText:eL,animatedTextProps:OM})}},_.m(QaC,{aTagConfig:x,
className:_.hj("yt-spec-button-shape-next",function(){return mIK(rB())},function(){return ok()?void 0:o9v(I())},function(){return I$M(X())},(X$["yt-spec-button-shape-next--disabled"]=ok,X$["yt-spec-button-shape-next--focused"]=w,X$["yt-spec-button-shape-next--icon-trailing"]=H,X$["yt-spec-button-shape-next--icon-leading"]=V,X$["yt-spec-button-shape-next--icon-leading-trailing"]=Tj,X$["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return Tj()&&!(Zt()||eL())},X$["yt-spec-button-shape-next--icon-button"]=
function(){return J_()||B9()},X$["yt-spec-button-shape-next--icon-only-default"]=f,X$["yt-spec-button-shape-next--align-by-text"]=l,X$["yt-spec-button-shape-next--segmented-start"]=function(){return Z()==="start"},X$["yt-spec-button-shape-next--segmented-end"]=function(){return Z()==="end"},X$["yt-spec-button-shape-next--override-small-size-icon"]=U,X$["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=W,X$["yt-spec-button-shape-next--disable-text-ellipsis"]=y,X$["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!G()&&DIt()},X$)),
style:function(){return kXg(Q()).style},
onClick:function(Dg){k==null||k(Dg);O()&&(r==null||r(Dg))},
disabled:Y,ariaLabel:L,toggleable:O,toggled:e,title:function(){var Dg;return(Dg=Nr())!=null?Dg:""},
visiblyDisabled:ok,ariaHidden:o6,tabIndex:lI},_.m(PbK,{data:b,hasIconLeading:V,hasIconLeadingTrailing:Tj,hasIconTrailing:H,iconButton:E,icon:Ut,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:iI})))},"u");
HT.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var BVK=_.b8(function(Y){var b=Y.data;var w=Y.id;var V=Y.hidden;var H=Y.className;var f=Y.iconName;var E=Y.secondaryIconName;Y=_.N(_.kw(!1,void 0,"RyKHFc"));var U=Y.next().value,X=Y.next().value,I=function(){var l=_.fH().resolve(_.HQ(_.mu));l&&X(l.isKeyBoardInUse())},k=function(){X(!1)};
Y=_.GM("yt-button-shape",function(l){if(_.fH().resolve(_.HQ(_.mu)))return l.addEventListener("focusin",I),l.addEventListener("focusout",k),function(){l.removeEventListener("focusin",I);l.removeEventListener("focusout",k)}});
return _.m("yt-button-shape",{el:Y,id:w,class:H,hidden:V},_.m(_.h,{cond:b,then:function(){return _.m(HT,{data:b,iconName:f,secondaryIconName:E,focusedOverride:U})}}))},"v");
_.q("web_wiz_button_shape")&&_.f_(BVK,"yt-button-shape",{props:{data:_.YX,id:_.YX,hidden:_.YX,className:_.YX,iconName:_.YX,secondaryIconName:_.YX},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var l$=function(){var Y=_.F.apply(this,arguments)||this;Y.keyboardFocused=!1;return Y};
_.P(l$,_.F);l$.prototype.onFocus=function(){var Y=_.fH().resolve(_.HQ(_.mu));Y&&(this.keyboardFocused=Y.isKeyBoardInUse())};
l$.prototype.onBlur=function(){this.keyboardFocused=!1};
l$.prototype.renderIdom=function(){var Y=this;if(this.data){var b=MR(this.data,!!this.iconName),w=ciL(this.data);this.data.focused=this.keyboardFocused;sJu(this.data,function(){var V;dI("yt-icon",{icon:Y.iconName,active:(V=Y.data)==null?void 0:V.toggled,size:b,style:"width: "+b+"px; height: "+b+"px;",iconFilter:w},Tl)},function(){var V;
dI("yt-icon",{icon:Y.secondaryIconName,active:(V=Y.data)==null?void 0:V.toggled,size:b,style:"width: "+b+"px; height: "+b+"px;",iconFilter:w},Tl)});
_.Ua(this.hostElement,"yt-renderidom-finished")}};
_.up.Object.defineProperties(l$,{template:{configurable:!0,enumerable:!0,get:function(){if(Du$===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(Xp$().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(c2K().content.cloneNode(!0),Y.content.firstChild);Du$=Y}Y=Du$;return Y}}});
l$.prototype.onBlur=l$.prototype.onBlur;l$.prototype.onFocus=l$.prototype.onFocus;_.z([_.n(A8K),_.K("design:type",Object)],l$.prototype,"ytIdomTemplatingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],l$.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],l$.prototype,"iconName",void 0);_.z([_.R(),_.K("design:type",String)],l$.prototype,"secondaryIconName",void 0);_.z([_.R(),_.K("design:type",Object)],l$.prototype,"keyboardFocused",void 0);
_.z([_.kZ("focusin"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],l$.prototype,"onFocus",null);_.z([_.kZ("focusout"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],l$.prototype,"onBlur",null);_.z([_.FM({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.q("web_wiz_button_shape")})],l$);_.f_(_.b8(function(Y){function b(){w().seconds&&f(adt({seconds:Number(w().seconds)-Date.now()/1E3}))}
var w=Y.targetTimestamp;Y=Y.className;var V=_.N(_.kw("",void 0,"U1Q8Ae")),H=V.next().value,f=V.next().value;_.tq(function(){b();var E=setInterval(function(){b()},1E3);
_.R2(function(){clearInterval(E)})});
return _.m("yt-countdown",{class:_.hj("ytCountDownHost",Y)},_.m("div",null,H))},"w"),"yt-countdown",{props:{targetTimestamp:_.YX,
className:_.gn}});_.a1=_.b8(function(Y){var b=Y.data;var w=Y.className;var V=Y.style;var H=Y.useOutlinedIcon;var f=Y.buttonOverrides;var E=Y.animatedTextProps;var U=Y.onClick;var X=_.GM("button-view-model",function(O){O.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var L=b().targetId;L&&_.JHU(_.eH(),L,O);return function(){G6d(_.eH(),O)}}),I=function(){return b().iconName},k,l=(k=_.fH().resolve(_.HQ(_.GT)))==null?void 0:k(),x=function(){var O=b();
var L=f==null?void 0:f(),r=E==null?void 0:E();if(O){var C=BDv(O.type);var W=!!O.title||!!O.titleFormatted;var y=!(!O.iconName&&!O.iconImage);W=y&&!W?"icon-only":y?O.iconTrailing||O.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;W==="icon-only-40"&&(C="text");var G,Nr=(G=L==null?void 0:L.disabled)!=null?G:O.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||O.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";G=Object;y=G.assign;var o6=O.title,lI=O.titleFormatted;r=r&&r.numberText&&
!isNaN(Number(r.numberValue))?r:void 0;var Zt=O.accessibilityText,eL=ZGg(O.style),OM=n9M(O.state),iI=MNr(O.buttonSize),rB=PBG(O,X,Nr,U);Nr=Nr&&!O.onDisabledTap;var Tj=_.KA({elementsCommand:O.onTap,forceNewState:!0});Tj=i8(Tj)?Tj:void 0;var J_=O.customFontColor,B9=O.customBackgroundColor;var ok=O.customBorderColor;var Ut=O.customDarkThemeFontColor,wt=O.customDarkThemeBackgroundColor,X$=O.customDarkThemeBorderColor;J_=l&&Ut?Ut:J_;B9=l&&wt?wt:B9;ok=l&&X$?X$:ok;ok={color:J_?_.KX(J_):void 0,backgroundColor:B9?
_.KX(B9):void 0,borderColor:ok?_.KX(ok):void 0};O=y.call(G,{},{buttonText:o6,formattedButtonText:lI,animatedTextProps:r,accessibilityLabel:Zt,style:eL,type:C,state:OM,size:iI,iconPosition:W,onTap:rB,disabled:Nr,aTagConfig:Tj,customColors:ok,tooltipText:O.tooltip},L)}else O={style:"mono",type:"text",state:"active",size:"M"};O.focused=e();return O},Q=function(){return MR(x(),!!b().iconName)};
Y=_.N(_.kw(!1,void 0,"vxWDPb"));k=Y.next().value;var Z=Y.next().value,e=k;Y=_.Q_(function(){var O=_.fH().resolve(_.HQ(_.mu));O&&Z(O.isKeyBoardInUse());return!1});
k=_.Q_(function(){Z(!1);return!1});
_.tl(function(){var O,L=_.v(b==null?void 0:(O=b())==null?void 0:O.onVisible,_.rI);L&&_.WP(L,{disableClickTracking:!0})},"x3DHkf");
return _.m("button-view-model",{el:X,class:_.hj("yt-spec-button-view-model",w),"on:focusin":Y,"on:focusout":k},_.m(_.h,{cond:function(){var O;return(b==null?0:(O=b())==null?0:O.iconImage)?{sources:[b().iconImage]}:void 0},
then:function(O){return _.m(HT,{data:x,icon:function(){return _.m(_.Y_,{data:O,alt:"",targetWidth:Q,targetHeight:Q,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.m(HT,{data:x,icon:function(){return _.m(_.n_,{icon:I,active:function(){return(H==null?0:H())?!1:x().toggled},
animateIcon:function(){var O;return!!(V==null?0:(O=V())==null?0:O.animateIcon)},
size:Q})}})}}))},"x");
_.a1.idomCompat={callbacks:{onClick:!0}};_.f_(_.b8(function(Y){return _.m("yt-button-view-model",{id:Y.id,class:_.hj(Y.scopingClassName,Y.classes),icon:function(){var b;return(b=Y.icon)==null?void 0:b.call(Y)},
"dialog-dismiss":function(){var b;return((b=Y.dialogDismiss)==null?0:b.call(Y))?"":void 0}},_.m(_.a1,{data:function(){var b;
return(b=Y.data)==null?void 0:b.call(Y)},
className:function(){var b;return(b=Y.className)==null?void 0:b.call(Y)},
style:function(){var b;return(b=Y.style)==null?void 0:b.call(Y)},
useOutlinedIcon:function(){var b;return(b=Y.useOutlinedIcon)==null?void 0:b.call(Y)},
buttonOverrides:function(){var b;return(b=Y.buttonOverrides)==null?void 0:b.call(Y)},
animatedTextProps:function(){var b;return(b=Y.animatedTextProps)==null?void 0:b.call(Y)},
onClick:function(b){var w;return(w=Y.onClick)==null?void 0:w.call(Y,b)}}))},"y"),"yt-button-view-model",{props:{data:_.YX,
className:_.YX,style:_.YX,useOutlinedIcon:_.YX,buttonOverrides:_.YX,animatedTextProps:_.YX,onClick:_.gn,scopingClassName:_.YX,id:_.YX,icon:_.YX,dialogDismiss:_.YX,classes:_.YX}});var h0=function(){var Y=_.F.apply(this,arguments)||this;Y.isGoalActive=!0;return Y};
_.P(h0,_.F);h0.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
h0.prototype.progressBarChanged=function(){var Y=_.E6(this.hostElement).querySelector("#progress-bar-progress"),b,w,V,H=(V=Number((b=this.creatorGoalState)==null?void 0:b.currentGoalCount)/Number((w=this.creatorGoalState)==null?void 0:w.totalGoalCount)*100)!=null?V:0,f;Y.style.width=((f=Math.min(H,100))!=null?f:0)+"%"};
h0.prototype.goalStateChanged=function(){var Y;this.isGoalActive=((Y=this.creatorGoalState)==null?void 0:Y.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var b;Y={"--yt-progress-bar-color":yRt((b=this.creatorGoalState)==null?void 0:b.progressBarColor)};_.m_(this.hostElement,Y)};
h0.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.up.Object.defineProperties(h0.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var Y;return this.isGoalActive&&!((Y=this.creatorGoalState)==null||!Y.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.creatorGoalState)==null?0:Y.endTimestampMs){var b;Y=Number((b=this.creatorGoalState)==null?void 0:b.endTimestampMs)/1E3;return{seconds:String(Y)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.creatorGoalState)==null?0:Y.themedTargetImage){var b;Y=_.v((b=this.creatorGoalState)==null?void 0:b.themedTargetImage,UP9);return this.isAppDarkTheme()?Y==null?void 0:Y.imageDark:Y==null?void 0:Y.imageLight}}}});
_.up.Object.defineProperties(h0,{template:{configurable:!0,enumerable:!0,get:function(){return iDI()}}});
h0.prototype.goalStateChanged=h0.prototype.goalStateChanged;h0.prototype.progressBarChanged=h0.prototype.progressBarChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],h0.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);
_.z([_.R({selectorArgs:["data.creatorGoalEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"creatorGoalEntity",b)}}),
_.K("design:type",Object)],h0.prototype,"creatorGoalState",void 0);_.z([_.R(),_.K("design:type",Object)],h0.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],h0.prototype,"isGoalActive",void 0);_.z([_.t("creatorGoalState","isGoalActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],h0.prototype,"shouldShowCountdown",null);_.z([_.t("creatorGoalState"),_.K("design:type",Object),_.K("design:paramtypes",[])],h0.prototype,"endTimestamp",null);
_.z([_.t("creatorGoalState"),_.K("design:type",Object),_.K("design:paramtypes",[])],h0.prototype,"targetIconThemedImage",null);_.z([_.lr("creatorGoalState.currentGoalCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h0.prototype,"progressBarChanged",null);_.z([_.lr("creatorGoalState.creatorGoalState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h0.prototype,"goalStateChanged",null);
_.z([_.FM({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],h0);_.a(h0,"yt-creator-goal-progress-flow-view-model",function(){return iDI()},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var nar;var M05;var xX=function(){return _.F.apply(this,arguments)||this};
_.P(xX,_.F);xX.prototype.attached=function(){var Y,b,w;if(this==null?0:(Y=this.data)==null?0:(b=Y.pdgPurchasedBumperLoggingDirectives)==null?0:(w=b.loggingDirectives)==null?0:w.trackingParams){var V,H,f;OGI(this==null?void 0:(V=this.data)==null?void 0:(H=V.pdgPurchasedBumperLoggingDirectives)==null?void 0:(f=H.loggingDirectives)==null?void 0:f.trackingParams)}};
xX.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],xX.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xX.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],xX);
_.a(xX,"yt-live-chat-item-bumper-view-model",function(){if(M05===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-bumper-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_item_bumper_view_model.yt.live.chat.item.bumper.view.model.css.js--\x3e<div id="bumper" class="style-scope yt-live-chat-item-bumper-view-model">\n  <div id="content" class="style-scope yt-live-chat-item-bumper-view-model"></div>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;nar===void 0&&(nar=document.createElement("template"));var V=nar;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);M05=Y}Y=M05;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var eCK;var ppI;_.Jj=function(Y,b){this.data=Y;this.actions=b;this.data=Y;this.actions=b};
_.iA=function(){};_.qS={};_.qS.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(Y,b){tNv(this.hostElement,Y,b)},
getNavigationEndpointPopupAction:function(Y){return Rce(Y,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(Y,b){dII(this.hostElement,Y,b,this.openPopupConfig)}};var AiB=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.sS={};
_.sS.YtEndpointBehavior=[_.qS.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.zO("openPopupConfig");(this.useClickHandler=_.Wf("useClickHandler",!1))?this.hostElement.addEventListener("click",oo(this,this.onEndpointClick_)):(tQ(this.hostElement,"tap",oo(this,this.onEndpointTap_)),tQ(this.hostElement,"touchend",oo(this,this.onEndpointTouchEnd_)));tQ(this.hostElement,"touchstart",oo(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
oo(this,this.onEndpointTapStart_))},
onEndpointClick_:function(Y){S8r(this.hostElement,Y,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(Y){var b=this.hostElement,w=this.openPopupConfig,V=this.disableCommandHandlerOverride;V=V===void 0?!1:V;var H=FbK(Y);if(H){H.href&&CX(H.href);var f=Y.detail;var E=f.sourceEvent;f=f.preventer;E=E.button!==void 0?E.button===0&&!RL(E):f?!RL(f):!0;H.data&&E&&LbM(b,H,Y,w,V)}},
onEndpointTouchEnd_:function(Y){RL(Y)||FbK(Y)&&Y.preventDefault()},
onEndpointTapStart_:function(Y){KbM(Y)}}];var CBG="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),$Iq=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var ORK={};ORK.YtPlaintextBehavior=[_.ni,{properties:{plaintextOnly:{type:Boolean,value:!1}},detached:function(){this.plaintextOnly&&(this.hostElement.removeEventListener("paste",this.onPaste_),this.removeOwnKeyBindings())},
attached:function(){this.plaintextOnly&&(this.hostElement.addEventListener("paste",this.onPaste_),this.addOwnKeyBinding("ctrl+b meta+b ctrl+i meta+i","preventRichTextFormatting_"))},
onPaste_:function(Y){Y.preventDefault();Y=Y.clipboardData.getData("text/plain");document.execCommand("insertText",!1,Y)},
preventRichTextFormatting_:function(Y){_.s0&&(Y=Y.detail.keyboardEvent,Y.stopImmediatePropagation(),Y.preventDefault())}}];var t0I;var RCK;var Q7=function(){var Y=_.F.apply(this,arguments)||this;Y.ignoreShadyDom=!1;Y.hasChange_=!1;Y.hasSetTitle_=!1;Y.useIOObserverForVisibilityLogging_=_.q("kevlar_use_vimio_behavior")&&_.zO("INNERTUBE_CLIENT_NAME")==="WEB";Y.ytFormattedStringObserverHandlerKeys_=void 0;return Y};
_.P(Q7,_.F);_.g=Q7.prototype;_.g.created=function(){this.useIOObserverForVisibilityLogging_=_.q("kevlar_use_vimio_behavior")&&_.zO("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.g.ready=function(){_.zO("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_()};
_.g.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.g.detached=function(){this.unobserveIOObservers_()};
_.g.clearContents_=function(){for(var Y=this.getRoot(),b=Y.lastChild;b&&b.tagName!=="STYLE";){try{Y.removeChild(b)}catch(w){break}b=Y.lastChild}};
_.g.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var Y=_.N(this.ytFormattedStringObserverHandlerKeys_),b=Y.next();!b.done;b=Y.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(b.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.g.resetForAttributedString=function(){var Y=this.getRoot();!Y.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),Y.appendChild(this.ytAttributedStringElementRef))};
_.g.resetForFormattedString=function(){var Y=this.getRoot(),b=Y.querySelector("yt-attributed-string");b&&(this.ytAttributedStringElementRef=Y.removeChild(b))};
_.g.textChanged=function(){this.textChanged_(this.text)};
_.g.textChanged_=function(Y){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!Y||!Y.runs&&!Y.simpleText;if(_.q("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var b=this.hostElement.firstChild;b&&b.nodeName==="FONT";){var w=b;b=b.nextSibling;this.hostElement.removeChild(w)}b=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
w=Y.simpleText;var V;!w&&((V=Y.runs)==null?void 0:V.length)===1&&this.isSimpleString_(Y.runs[0])&&(w=Y.runs[0].text);w!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.zO("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(w!==void 0){try{b.textContent=w}catch(H){}b.textContent||(this.isEmpty=!0)}else Y=Y.runs,w!==void 0&&(Y=[{text:w}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),Y&&this.updateText_(Y),
b.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.g.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)};
_.g.computeAriaLabel_=function(Y){return Y};
_.g.computeEllipsisTruncateStyling=function(Y,b){return Y&&!b};
_.g.computeUseAttributedString=function(Y){return _.q("web_replace_formatted_with_attributed_string")&&c2L(Y)&&!this.disableAttributedString&&!this.enableContentEditable};
_.g.setNodeStyle_=function(Y,b){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.q("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?b.removeAttribute("dir"):b.setAttribute("dir","auto");b.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");b.style.color="";var w=null;this.noStyles||(Y.bold&&(b.classList.add("bold"),w="bold"),Y.deemphasize&&(b.classList.add("deemphasize"),w="deemphasize"),Y.italics&&b.classList.add("italic"),
Y.strikethrough&&b.classList.add("strikethrough"),Y.errorUnderline&&(b.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),Y.bracket&&b.classList.add("bracket"),Y.textColor&&(b.style.color=_.WH(Y.textColor)));w!==b.getAttribute("style-target")&&(w?b.setAttribute("style-target",w):b.removeAttribute("style-target"))};
_.g.setUpVisibilityLogging_=function(Y,b){var w=this;this.setNodeTrackingParams_(Y,b);var V;((V=b.data)==null?0:V.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(Y=this.ytRendererBehavior.visibilityObserver.observe(b,function(H){var f=w.ytRendererBehavior.getVisibilityLogger();f&&f.reportShown(H)},this.ytRendererBehavior.visibilityOptionVisible_),b=this.ytRendererBehavior.visibilityObserver.observe(b,function(H){var f=w.ytRendererBehavior.getVisibilityLogger();
f&&f.reportHidden(H)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(Y),this.ytFormattedStringObserverHandlerKeys_.push(b))};
_.g.setNodeTrackingParams_=function(Y,b){b.data||(b.data={});if((Y=Y.loggingDirectives?Y.loggingDirectives.trackingParams:null)||b.data.trackingParams)b.data.trackingParams=Y};
_.g.computeHasLinkOnly_=function(Y){return!(!Y||Y.length!==1||this.noEndpoints||!Y[0].navigationEndpoint)};
_.g.getRoot=function(){var Y=this.buildScopeDomOptions();return this.enableContentEditable?_.E6(_.E6(this.hostElement,Y).querySelector("[contenteditable]")):_.E6(this.hostElement,Y)};
_.g.fixContenteditableScope=function(){var Y=function(b){b&&(b.nodeType===1&&b.classList&&(b.classList.add("style-scope"),b.classList.add("yt-formatted-string")),b.childNodes&&b.childNodes.forEach(function(w){Y(w)}))};
Y(this.getRoot())};
_.g.updateText_=function(Y){for(var b=Y.length,w=this.getRoot(),V=w.firstChild;V&&V.nodeName==="STYLE";)V=V.nextSibling;for(var H=0;H<b&&V;){var f=Y[H],E=_.q("remove_cr_char")&&f.text?f.text.replace("\r",""):f.text;if(this.isSimpleString_(f)&&!this.useMixedDirectionFormattedStrings)if(V.nodeName==="#text"){V.textContent!=E&&(V.textContent=E);H++;V=V.nextSibling;continue}else break;if(_.v(f,Sz))break;else if(!this.noEndpoints&&f.navigationEndpoint){if(V.nodeName!=="A")break;this.setDataOnAnchor_(V,
f.navigationEndpoint)}else if(V.nodeName!=="SPAN")break;this.setNodeStyle_(f,V);this.setUpVisibilityLogging_(f,V);V.textContent!=E&&(V.textContent=E);H++;V=V.nextSibling}if(V)for(f=w.lastChild,V=H?V.previousSibling:null;f&&f!=V;){try{w.removeChild(f)}catch(U){break}f=w.lastChild}H!==b&&this.addTextNodes_(Y,H)};
_.g.addTextNodes_=function(Y,b){for(var w=document.createDocumentFragment(),V=Y.length;b<V;b++){var H=Y[b],f=_.q("remove_cr_char")&&H.text?H.text.replace("\r",""):H.text;if(this.isSimpleString_(H)&&!this.useMixedDirectionFormattedStrings)w.appendChild(document.createTextNode(f));else{var E=_.v(H,Sz);if(E){if(E.image){var U=document.createElement("img");E.isCustomEmoji||U.classList.add("small-emoji");U.classList.add("emoji");E.isCustomEmoji&&(U.dataset.emojiId=E.emojiId);U.src=_.NR(E.image.thumbnails,
this.emojiSize);(H=this.get("image.accessibility.accessibilityData.label",E))?U.alt=H:E.shortcuts&&E.shortcuts.length>0?U.alt=E.shortcuts[0]:E.emojiId&&(U.alt=E.emojiId);w.appendChild(U);this.hasEmoji=!0}}else!this.noEndpoints&&H.navigationEndpoint?(U=document.createElement("a"),U.classList.add("yt-simple-endpoint"),U.setAttribute("spellcheck","false"),this.setDataOnAnchor_(U,H.navigationEndpoint)):U=document.createElement("span"),this.setNodeStyle_(H,U),this.setUpVisibilityLogging_(H,U),U.appendChild(document.createTextNode(f)),
w.appendChild(U)}}this.getRoot().appendChild(w)};
_.g.isSimpleString_=function(Y){return(this.noEndpoints||!Y.navigationEndpoint)&&!_.v(Y,Sz)&&(this.noStyles||!(Y.bold||Y.deemphasize||Y.italics||Y.strikethrough||Y.errorUnderline||Y.bracket||Y.textColor))&&!Y.loggingDirectives};
_.g.getRawText=function(){return _.Tx(this.text)};
_.g.getFirstRunText=function(){var Y;if(((Y=this.text)==null?0:Y.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.g.setFirstRunText=function(Y){var b;((b=this.text)==null?0:b.runs)&&this.text.runs[0]&&(this.text.runs[0].text=Y,this.textChanged_(this.text))};
_.g.setDataOnAnchor_=function(Y,b){var w=this;!_.q("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(b)||this.isSignalServiceEndpoint_(b)?(Y.onclick=this.serviceEndpointHandler_(b),er(Y,"#")):pPv({text:this.text,command:b},function(){KQb(Y,b,w.target)})};
_.g.isServiceEndpoint_=function(Y){var b;return!((b=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null||!b.sendPost)};
_.g.isSignalServiceEndpoint_=function(Y){return!!_.v(Y,_.x7)};
_.g.serviceEndpointHandler_=function(Y){var b=this;return function(w){_.oP(b.hostElement,[Y]);w.preventDefault()}};
_.g.overrideAriaLabelChanged_=function(){var Y=this.getRoot();this.enableContentEditable&&Y&&Y.setAttribute("aria-label",this.overrideAriaLabel)};
_.g.enableContentEditableChanged_=function(){var Y=this,b=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),b=_.E6(this.hostElement,b),!b.lastChild||b.lastChild instanceof HTMLElement&&b.lastChild.id!=="contenteditable-root"){var w=document.createElement("div");w.id="contenteditable-root";w.setAttribute("contenteditable","true");w.setAttribute("dir","auto");w.onfocus=function(){Y.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
b.appendChild(w);this.overrideAriaLabel&&w.setAttribute("aria-label",this.overrideAriaLabel)}}else w=_.cX(this.hostElement).firstChild,w instanceof HTMLElement&&w.id==="contenteditable-root"&&_.E6(this.hostElement,b).removeChild(w)};
_.g.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.g.getNodesForVisibilityLogging_=function(){return _.oy(this.getRoot().childNodes,function(Y){var b;return!((b=Y.data)==null||!b.trackingParams)})};
_.g.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.g.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var Y=this.ytRendererBehavior.getVisibilityLogger();Y&&this.getNodesForVisibilityLogging_().forEach(function(b){Y.reportShown(b)})}};
_.g.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var Y=this.ytRendererBehavior.getVisibilityLogger();Y&&this.getNodesForVisibilityLogging_().forEach(function(b){Y.reportHidden(b)})}};
_.up.Object.defineProperties(Q7.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.q("enable_mixed_direction_formatted_strings")}}});
Q7.prototype.enableContentEditableChanged_=Q7.prototype.enableContentEditableChanged_;Q7.prototype.overrideAriaLabelChanged_=Q7.prototype.overrideAriaLabelChanged_;Q7.prototype.ellipsisTruncateChanged_=Q7.prototype.ellipsisTruncateChanged_;Q7.prototype.textChanged=Q7.prototype.textChanged;_.z([_.n(ORK.YtPlaintextBehavior),_.K("design:type",Object)],Q7.prototype,"ytPlaintextBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Q7.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Q7.prototype,"text",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"noEndpoints",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"noStyles",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Q7.prototype,"isDarkTheme",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Q7.prototype,"splitLines",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Q7.prototype,"forceDefaultStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Q7.prototype,"ellipsisTruncate",void 0);_.z([_.R(),_.K("design:type",Object)],Q7.prototype,"ignoreShadyDom",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.K("design:type",Boolean)],Q7.prototype,"ellipsisTruncateStyling",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.K("design:type",String)],Q7.prototype,"ariaLabel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Q7.prototype,"isEmpty",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.K("design:type",Boolean)],Q7.prototype,"hasLinkOnly_",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"hasEmoji",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"disableAttributedString",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"isOverlay",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"linkInheritColor",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"noPreWrap",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"userInput",void 0);_.z([_.R({value:16}),_.K("design:type",Number)],Q7.prototype,"emojiSize",void 0);_.z([_.R(),_.K("design:type",String)],Q7.prototype,"target",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"enableContentEditable",void 0);_.z([_.R(),_.K("design:type",String)],Q7.prototype,"overrideAriaLabel",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"respectHtmlDir",void 0);_.z([_.R(),_.K("design:type",Boolean)],Q7.prototype,"respectLangDir",void 0);_.z([_.t("plaintextOnly"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Q7.prototype,"useMixedDirectionFormattedStrings",null);_.z([_.R({computed:"computeUseAttributedString(text)"}),_.K("design:type",Boolean)],Q7.prototype,"useYtAttributedString",void 0);
_.z([_.lr("text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q7.prototype,"textChanged",null);_.z([_.lr("ellipsisTruncate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q7.prototype,"ellipsisTruncateChanged_",null);_.z([_.lr("overrideAriaLabel"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q7.prototype,"overrideAriaLabelChanged_",null);
_.z([_.lr("enableContentEditable"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q7.prototype,"enableContentEditableChanged_",null);_.z([_.FM({is:"yt-formatted-string",disableElementRegistration:!0})],Q7);
_.a(Q7,"yt-formatted-string",function(){if(RCK===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_formatted_string.yt.formatted.string.css.js--\x3e<yt-attributed-string data="[[text]]" disable="[[!useYtAttributedString]]" disable-upgrade="[[!useYtAttributedString]]" ellipsis-truncate="[[ellipsisTruncate]]" hidden="[[!useYtAttributedString]]" is-overlay="[[isOverlay]]" link-inherit-color="[[linkInheritColor]]" no-pre-wrap="[[!splitLines]]" user-input="[[userInput]]" class="style-scope yt-formatted-string"></yt-attributed-string>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;t0I===void 0&&(t0I=document.createElement("template"));var V=t0I;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);RCK=Y}Y=RCK;return Y});var duC;var FXd;var LXU;var SjK;var vz=function(){var Y=_.F.apply(this,arguments)||this;Y.focused=!1;Y.disabled=!1;Y.isOverlay=!1;return Y};
_.P(vz,_.F);vz.prototype.triggerDown=function(){if(!this.disabled){_.U6(this.hostElement,"down",!0);var Y;(Y=this.currentAnimation)==null||Y.cancel()}};
vz.prototype.triggerUp=function(){if(!this.disabled){_.U6(this.hostElement,"down",!1);var Y=this.fillElement;var b=this.strokeElement;typeof GroupEffect==="function"?(Y=new GroupEffect([HGa(Y),g9e(b)]),Y=new Animation(Y,document.timeline)):Y=new xuQ(Y,b);this.currentAnimation=Y;var w;(w=this.currentAnimation)==null||w.play()}};
_.z([_.xZ(".stroke"),_.K("design:type",HTMLElement)],vz.prototype,"strokeElement",void 0);_.z([_.xZ(".fill"),_.K("design:type",HTMLElement)],vz.prototype,"fillElement",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vz.prototype,"focused",void 0);_.z([_.R(),_.K("design:type",Object)],vz.prototype,"disabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vz.prototype,"isOverlay",void 0);_.z([_.FM({is:"yt-interaction",disableElementRegistration:!0})],vz);
_.a(vz,"yt-interaction",function(){if(SjK===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-interaction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_interaction.yt.interaction.css.js--\x3e<div class="stroke style-scope yt-interaction"></div><div class="fill style-scope yt-interaction"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;LXU===void 0&&(LXU=document.createElement("template"));var V=LXU;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);SjK=Y}Y=SjK;return Y},{mode:2});var Pz=function(){return _.F.apply(this,arguments)||this};
_.P(Pz,_.F);_.g=Pz.prototype;_.g.ready=function(){var Y=this,b=_.E6(this.hostElement).querySelector("#button");b.addEventListener("focus",function(){fud||(fud=new gg5);Y.keyboardFocused=fud.isKeyBoardInUse()});
b.addEventListener("blur",function(){Y.keyboardFocused=!1;Y.rippleUp_()})};
_.g.computeTabIndex_=function(Y){return Y?-1:0};
_.g.computeButtonAriaPressed_=function(Y){if(this.toggleable)return Y?"true":"false"};
_.g.rippleDown_=function(){_.E6(this.hostElement).querySelector("#interaction").triggerDown()};
_.g.rippleUp_=function(){_.E6(this.hostElement).querySelector("#interaction").triggerUp()};
_.g.onPressedChanged_=function(){var Y=_.cX(_.E6(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.cX(_.E6(this.hostElement).querySelector("#button")).children[0];Y&&(Y.active=this.pressed)};
Pz.prototype.onPressedChanged_=Pz.prototype.onPressedChanged_;Pz.prototype.rippleUp_=Pz.prototype.rippleUp_;Pz.prototype.rippleDown_=Pz.prototype.rippleDown_;_.z([_.R(),_.K("design:type",String)],Pz.prototype,"label",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Pz.prototype,"disabled",void 0);_.z([_.R(),_.K("design:type",Boolean)],Pz.prototype,"pressed",void 0);_.z([_.R(),_.K("design:type",Object)],Pz.prototype,"toggleable",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Pz.prototype,"untabbable",void 0);_.z([_.R(),_.K("design:type",Boolean)],Pz.prototype,"keyboardFocused",void 0);_.z([_.kZ("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pz.prototype,"rippleDown_",null);_.z([_.kZ("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pz.prototype,"rippleUp_",null);
_.z([_.lr("pressed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pz.prototype,"onPressedChanged_",null);_.z([_.FM({is:"yt-icon-button",disableElementRegistration:!0})],Pz);
_.a(Pz,"yt-icon-button",function(){if(FXd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-icon-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_icon_button.yt.icon.button.css.js--\x3e<button id="button" aria-label$="[[label]]" aria-pressed$="[[computeButtonAriaPressed_(pressed)]]" disabled$="[[disabled]]" tabindex$="[[computeTabIndex_(untabbable)]]" class="style-scope yt-icon-button"><slot class="style-scope yt-icon-button"></slot></button><yt-interaction id="interaction" class="circular style-scope yt-icon-button" focused="[[keyboardFocused]]"></yt-interaction>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;duC===void 0&&(duC=document.createElement("template"));var V=duC;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);FXd=Y}Y=FXd;return Y},{mode:2});var av9=_.wM(["aria-"]),Zi={};Zi.YtRenderButtonBehavior=[_.u.YtRendererBehavior,_.sS.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!!_.fH().resolve(_.HQ(_.mu))&&_.q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var Y=this.computeHref_(this.endpoint,!0);Y?er(this.elements_.endpoint,Y):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){Y=this.buttonClass.split(" ");Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())b=b.value,_.U6(this.hostElement,b,!0),this.elements_.button&&_.U6(this.elements_.button,b,!0),this.elements_.text&&_.U6(this.elements_.text,b,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(Y=null,this.buttonAccessibility&&(Y=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=Y:Y?_.Az([_.wF(av9)],this.elements_.button,"aria-label",Y):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var Y=_.fH().resolve(_.HQ(_.mu));Y&&(this.keyboardFocused=Y.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.fn("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,_.B1(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.B1(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(Y,b){if(b)for(Y=b.split(" "),Y=_.N(Y),b=Y.next();!b.done;b=Y.next())b=b.value,_.U6(this.hostElement,b,!1),this.elements_.button&&_.U6(this.elements_.button,b,!1),this.elements_.text&&_.U6(this.elements_.text,b,!1)},
buttonIconChanged_:function(Y){this.elements_.icon?Y?(this.elements_.icon.icon=Y,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.B1(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.XM(this.hostElement,"is-paper-button-with-icon",!1)):Y&&this.stampType_&&this.stampType_=="paper_button"&&this.addIconElementToPaperButton_()},
addIconElementToPaperButton_:function(){this.elements_.icon=this.getIcon_();this.setIconActive_(this.elements_.icon);this.elements_.button&&(this.iconPositionType&&this.iconPositionType!="BUTTON_ICON_POSITION_TYPE_LEFT_OF_TEXT"?this.iconPositionType=="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"&&_.B1(this.elements_.button).appendChild(this.elements_.icon):_.B1(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.XM(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(Y){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,Y){var b=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(Y){case "yt_icon_button_with_label":b=!0;_.U6(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();Y=_.B1(this.elements_.button).firstElementChild;
this.elements_.icon=Y;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.B1(this.elements_.endpoint).appendChild(this.elements_.button);_.B1(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.fn("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;_.B1(this.elements_.button).appendChild(this.elements_.text);_.B1(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":b=!0,this.elements_.button=this.getYtIconButton_(),Y=_.B1(this.elements_.button).firstElementChild,this.elements_.icon=Y,this.setIconActive_(this.elements_.icon),
_.B1(this.elements_.endpoint).appendChild(this.elements_.button)}_.XM(this.hostElement,"is-icon-button",b);_.XM(this.hostElement,"is-paper-button",!b);_.XM(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 w;_.E6((w=this.container.hostElement)!=null?w:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.B1(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(Y){if(Y!=void 0||this.disabled)this.disabled=Y,this.elements_.button&&(this.elements_.button.disabled=Y)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(Y){_.q("kevlar_system_icons")&&Y&&this.data&&(this.data.isSelected!==void 0?Y.active=this.data.isSelected:this.data.isToggled!==void 0&&(Y.active=this.data.isToggled))},
observeBasicPalette_:function(Y){_.Fl(this.hostElement,Y)},
disabledChanged_:function(Y){this.data&&this.set("data.isDisabled",Y)},
onYtButtonTap_:function(Y){if(this.disabled)Y.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.oP(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(Y=this.disableCommandHandlerOverride,!this.data||!this.data.command||Y||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.q("handle_service_request_actions")||_.oP(this.hostElement,[this.serviceEndpoint]),
_.Ua(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.q("handle_service_request_actions")?(Y=[],this.serviceEndpoint&&Y.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&Y.push(this.data.command),Y.length&&_.IP(this.hostElement,Y,this.hostElement)):this.data&&this.data.command&&(Y=this.data.command,Y.accountUnlinkCommand||Y.accountLinkCommand||Y.insertAdCommand||Y.insertHighlightMarkerCommand||
Y.createLivestreamHighlightClipCommand||Y.getVideoUploadFeedbackCommand||Y.musicDeletePrivatelyOwnedEntityCommand||Y.ypcCancelRecurrenceEndpoint||Y.getMultiSelectCommandEndpoint?_.oP(this.hostElement,[Y]):_.IP(this.hostElement,[Y],this.hostElement))}},
computeStampType_:function(){return this.forceIconButton&&this.buttonText&&this.buttonIcon?"yt_icon_button_with_label":this.buttonText?"paper_button":this.buttonIcon?"yt-icon-button":null},
emptyContainer_:function(){for(var Y,b=_.E6((Y=this.container.hostElement)!=null?Y:this.container);b.lastChild&&b.lastChild.tagName!="STYLE";)try{b.removeChild(b.lastChild)}catch(w){break}},
getYtIconButton_:function(){var Y=this.reuseEnabled_()?_.fn("yt-icon-button"):document.createElement("yt-icon-button"),b=_.B1(Y).firstElementChild;if(b&&b.is!="yt-icon"){for(b=_.B1(Y);b.lastChild;)b.removeChild(b.lastChild);b=null}b||(b=this.getIcon_(),this.setIconActive_(b),_.B1(Y).appendChild(b));return Y},
reuseEnabled_:function(){return _.q("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.fn("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.fn("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.r2C={};
_.r2C.YtButtonBehavior=[Zi.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var Y=this.data;Y&&(this._setEndpoint(this.computeEndpoint_(Y)),this._setServiceEndpoint(this.computeServiceEndpoint_(Y)),this._setCommand(this.computeCommand_(Y)),this._setButtonIcon(this.computeButtonIcon_(Y)),this._setButtonText(this.computeButtonText_(Y,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(Y)),this._setButtonTooltip(this.computeTooltip_(Y)),this._setButtonClass(this.computeButtonClass_(Y)),this._setIconPositionType(this.computeIconPositionType_(Y)),this.updateRenderedElements())},
setPressedState:function(Y){var b;if((b=this.elements_)==null?0:b.button)this.elements_.button.pressed=!!Y},
computeIconPositionType_:function(Y){return Y&&Y.iconPosition||null},
computeEndpoint_:function(Y){var b=Y&&Y.navigationEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.url"),V=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:Y&&Y.command&&Y.command.modalEndpoint?Y.command:w&&!V&&Y.command?Y.command:null},
computeServiceEndpoint_:function(Y){var b=Y&&Y.serviceEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:w&&Y.command?Y.command:null},
computeCommand_:function(Y){return Y&&Y.command||null},
computeButtonIcon_:function(Y){return Y&&Y.icon&&Y.icon.iconType?_.IR(Y.icon.iconType):null},
computeButtonText_:function(Y,b){return!b&&Y&&Y.text||null},
computeAccessibility_:function(Y){return this.get("accessibilityData.accessibilityData",Y)||Y&&Y.accessibility||(Y&&Y.text?{label:this.getSimpleString(Y.text)}:null)},
computeTooltip_:function(Y){return Y?Y.isDisabled&&Y.disabledTooltip||Y.tooltip||null:null},
computeButtonClass_:function(Y){var b=Y&&Y.style?Y.style.toLowerCase().replace(/_/g,"-")+" ":"";b+=Y&&Y.size?Y.size.toLowerCase().replace(/_/g,"-")+" ":"";Y.colorData&&Y.colorData.basicColorPaletteData&&Y.colorData.basicColorPaletteData.borderColor&&(b+="palette-with-border");return b.trim()}}];var L_={};var zCt;var WX$;var KX9,iR9=function(){return KX9!==void 0?KX9:KX9=document.createElement("template")};
document.head.appendChild(iR9().content);var A2U;var Cbo,y2j=function(){return Cbo!==void 0?Cbo:Cbo=document.createElement("template")};
document.head.appendChild(y2j().content);var $u$;var ja5,GfK=function(){return ja5!==void 0?ja5:ja5=document.createElement("template")};
document.head.appendChild(GfK().content);var TV$;var J2t=document.head,uVU=J2t.appendChild,YrU;if(TV$===void 0){var bYU=document.createElement("template");_.B(bYU,"\x3c!--css-build:shady--\x3e");bYU.content.insertBefore(GfK().content.cloneNode(!0),bYU.content.firstChild);TV$=bYU}YrU=TV$;uVU.call(J2t,YrU.content);var w3Q=document.head,Vjo=w3Q.appendChild,HYC;if($u$===void 0){var g0$=document.createElement("template");_.B(g0$,"\x3c!--css-build:shady--\x3e");g0$.content.insertBefore(y2j().content.cloneNode(!0),g0$.content.firstChild);$u$=g0$}HYC=$u$;Vjo.call(w3Q,HYC.content);var fY$=document.head,Nqk=fY$.appendChild,E0$;if(A2U===void 0){var c7U=document.createElement("template");_.B(c7U,"\x3c!--css-build:shady--\x3e");c7U.content.insertBefore(iR9().content.cloneNode(!0),c7U.content.firstChild);A2U=c7U}E0$=A2U;Nqk.call(fY$,E0$.content);var ULd;_.S9("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");ULd=_.q("web_button_rework")&&_.Wf("BUTTON_REWORK")||_.q("web_button_rework_with_live");_.Bz=function(){return _.F.apply(this,arguments)||this};
_.P(_.Bz,_.F);_.Bz.prototype.created=function(){this.openPopupConfig=_.zO("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Bz.prototype.onYtNavigate_=function(Y){var b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);b&&(this.ytOpenPopupBehavior.openPopup(b),Y.stopPropagation(),Y.preventDefault())};
_.up.Object.defineProperties(_.Bz,{template:{configurable:!0,enumerable:!0,get:function(){if(WX$===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_button_renderer.yt.button.renderer.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
var b=Y.content,w=b.insertBefore;zCt===void 0&&(zCt=document.createElement("template"));var V=zCt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);WX$=Y}Y=WX$;return Y}}});
_.Bz.prototype.onYtNavigate_=_.Bz.prototype.onYtNavigate_;_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],_.Bz.prototype,"ytOpenPopupBehavior",void 0);_.z([_.n(_.r2C.YtButtonBehavior),_.K("design:type",Object)],_.Bz.prototype,"ytButtonBehavior",void 0);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],_.Bz.prototype,"onYtNavigate_",null);
_.z([_.FM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:ULd})],_.Bz);var X3I;var DLj=_.q("web_button_rework")&&_.Wf("BUTTON_REWORK")||_.q("web_button_rework_with_live"),nn=function(){var Y=_.F.apply(this,arguments)||this;Y.isPressed=!1;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.forceModernIconButton=!1;Y.skipCommandHandling=!1;Y.alignByText=!1;Y.fitToVisibleBounds=!0;Y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};Y.onTap=function(b){_.Ua(Y.hostElement,"yt-service-request-sent-button-renderer",b)};
return Y};
_.P(nn,_.F);_.g=nn.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.g.onClick=function(Y){var b,w=this.disabled||((b=this.data)==null?void 0:b.isDisabled);b=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");w&&b&&Y.stopPropagation()};
_.g.computeIcon=function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.icon)==null?void 0:b.iconType;if(w)return _.IR(w)};
_.g.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.g.handleUpdateButtonAction=function(Y){Y=_.v(Y,S0t);var b=_.v(Y==null?void 0:Y.updatedButton,_.Wa);if(this.data&&Y&&b){var w=this.data;w.targetId&&Y.targetId&&w.targetId===Y.targetId&&(this.data=b)}};
_.up.Object.defineProperties(nn.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(this.data){var b=Yiv({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Ua(Y.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Ua(Y.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});b.alignByText=this.alignByText;return b}}}});
_.up.Object.defineProperties(nn,{template:{configurable:!0,enumerable:!0,get:function(){if(X3I===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computeIcon(data)]]"></yt-button-shape><tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>');X3I=Y}Y=X3I;return Y}}});
nn.prototype.onClick=nn.prototype.onClick;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],nn.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],nn.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"isPressed",void 0);
_.z([_.R(),_.K("design:type",Object)],nn.prototype,"forceIconButton",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"forceIconOnly",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"forceModernIconButton",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"skipCommandHandling",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"alignByText",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"buttonTooltipPosition",void 0);
_.z([_.R(),_.K("design:type",Object)],nn.prototype,"fitToVisibleBounds",void 0);_.z([_.R({computed:"computeTooltip(data)"}),_.K("design:type",Object)],nn.prototype,"tooltip",void 0);_.z([_.R(),_.K("design:type",Object)],nn.prototype,"overrides",void 0);_.z([_.R(),_.K("design:type",Boolean)],nn.prototype,"disabled",void 0);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],nn.prototype,"onClick",null);
_.z([_.t("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.K("design:type",Object),_.K("design:paramtypes",[])],nn.prototype,"computedButtonShape",null);_.z([_.FM({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!DLj,cssBuildOptOut:!0}),_.FM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!DLj,cssBuildOptOut:!0})],nn);var mLd;var o0_;var MS=function(){var Y=_.F.apply(this,arguments)||this;Y.empty_=!0;Y.loadTime=Infinity;Y.pendingPaint=!1;Y.hasChange_=!1;Y.oldThumbnail_=null;Y.oldDelayedSrc_="";Y.objectURL_=null;return Y};
_.P(MS,_.F);_.g=MS.prototype;_.g.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.g.ready=function(){var Y=this.shouldShowPlaceholder_();_.U6(this.hostElement,"no-transition",!0);Y&&this.hostElement.classList.add("with-placeholder")};
_.g.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.g.isThumbPreloaded_=function(Y){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",Y)};
_.g.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||IY_};
_.g.computeThumbnailSrc_=function(Y){return Y&&Y.thumbnails?_.NR(Y.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.g.computeAlt_=function(){var Y=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&Y||""};
_.g.thumbnailChanged_=function(){var Y=_.N([this.thumbnail,this.oldThumbnail_]),b=Y.next().value;Y=Y.next().value;this.oldThumbnail_=b;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(Y=this.computeThumbnailSrc_(Y),this.computeThumbnailSrc_(b)===Y))return;_.q("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(b)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):b&&_.Wf("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.TC(this,this.onReload_):_.TC(this,this.onShow_):this.resetImage_();b&&(this.hostElement.style.opacity=""+b.opacity)}};
_.g.delayedSrcChanged_=function(){var Y=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===Y||this.resetImage_()};
_.g.setSrc_=function(Y){Y?(_.E6(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.E6(this.hostElement).querySelector("#img").src=Y):(_.E6(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.g.resetImage_=function(){HJg(this.hostElement);this.empty_=!0;this.setSrc_(IY_);this.ytRendererBehavior.invalidate(!1)};
_.g.observePlaceholderColor_=function(){var Y=this.thumbnail&&this.thumbnail.placeholderColor;Y?this.hostElement.style.backgroundColor=_.WH(Y):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.g.onLoad_=function(){_.E6(this.hostElement).querySelector("#img").src&&_.E6(this.hostElement).querySelector("#img").src!==IY_&&(Vp6(this.hostElement),this.notifyOnLoaded&&_.Ua(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.g.onError_=function(){var Y=this;if(_.q("web_use_cache_for_image_fallback"))XGL(_.E6(this.hostElement).querySelector("#img").src).then(function(b){Y.objectURL_=_.ZD(b).toString();Y.setSrc_(Y.objectURL_)}).catch(function(){_.q("kevlar_woffle_fallback_image")&&Y.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.g.onPrescanVisible=function(){this.onShow_()};
_.g.onVisible=function(){if(_.q("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.g.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var Y=this.computeSrc_();Y!==_.E6(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(Y))}};
_.g.onReload_=function(){this.empty_=!1;var Y=this.computeSrc_();Y!==_.E6(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(Y))};
_.g.shouldShowPlaceholder_=function(){return _.q("kevlar_thumbnail_bg")};
MS.prototype.observePlaceholderColor_=MS.prototype.observePlaceholderColor_;MS.prototype.delayedSrcChanged_=MS.prototype.delayedSrcChanged_;MS.prototype.thumbnailChanged_=MS.prototype.thumbnailChanged_;_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],MS.prototype,"alt",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],MS.prototype,"ariaHidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],MS.prototype,"ariaLabel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],MS.prototype,"hidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],MS.prototype,"id",void 0);_.z([_.n(_.GW.YtVisibilityBehavior),_.K("design:type",Object)],MS.prototype,"ytVisibilityBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",String)],MS.prototype,"delayedSrc",void 0);
_.z([_.R(),_.K("design:type",Object)],MS.prototype,"thumbnail",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],MS.prototype,"loaded",void 0);_.z([_.R(),_.K("design:type",Boolean)],MS.prototype,"notifyOnLoaded",void 0);_.z([_.R(),_.K("design:type",Number)],MS.prototype,"height",void 0);_.z([_.R(),_.K("design:type",Number)],MS.prototype,"width",void 0);_.z([_.R({value:function(){return"width"}}),
_.K("design:type",String)],MS.prototype,"dimension",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],MS.prototype,"fit",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],MS.prototype,"fitHeight",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],MS.prototype,"fitWidth",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],MS.prototype,"objectFit",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],MS.prototype,"objectPosition",void 0);_.z([_.R(),_.K("design:type",String)],MS.prototype,"preferredThumbnail",void 0);_.z([_.R({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.K("design:type",String)],MS.prototype,"alt_",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],MS.prototype,"sharedTooltipText",void 0);
_.z([_.R(),_.K("design:type",Boolean)],MS.prototype,"ftlEligible",void 0);_.z([_.R({value:void 0}),_.K("design:type",String)],MS.prototype,"observeHiddenOption",void 0);_.z([_.R({value:"observe_once"}),_.K("design:type",String)],MS.prototype,"observePrescanOption",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],MS.prototype,"roundedContainer",void 0);
_.z([_.vX("thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"thumbnailChanged_",null);_.z([_.vX("delayedSrc"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"delayedSrcChanged_",null);_.z([_.lr("thumbnail.placeholderColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],MS.prototype,"observePlaceholderColor_",null);
_.z([_.FM({is:"yt-img-shadow",disableElementRegistration:!0})],MS);var IY_=_.Wf("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.UQ()(MS,"yt-img-shadow",function(){if(o0_===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-shadow--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_shadow.yt.img.shadow.css.js--\x3e<img id="img" rounded-container="[[roundedContainer]]" alt$="[[alt_]]" height="[[height]]" width="[[width]]" on-load="onLoad_" on-error="onError_" draggable="false" class="style-scope yt-img-shadow">');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;mLd===void 0&&(mLd=document.createElement("template"));var V=mLd;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);o0_=Y}Y=o0_;return Y},{callbackProps:["onTap"],
allowedProps:"alt ariaHidden ariaLabel delayedSrc dimension fit fitHeight fitWidth height hidden id loaded notifyOnLoaded objectFit objectPosition preferredThumbnail roundedContainer sharedTooltipText thumbnail width".split(" "),mode:2});var bNL;_.eo=new _.Hx("SCREEN_MANAGER_TOKEN");bNL=new _.Hx("LOG_INITIAL_SCREEN_TOKEN");_.td=_.b8(function(Y){function b(Nr){return _.v(Nr,_.Bv)}
function w(){var Nr=V().isTogglingDisabled||x()?e():!e();O(Nr);r(!1);if(!V().isTogglingDisabled){var o6;(o6=E)==null||o6(!!Nr)}var lI;((lI=f)==null?0:lI())||_.ly(_.fH().resolve(_.eo),V().trackingParams);var Zt;if(!Nr||!b(V().defaultButtonViewModel)||(Zt=f)!=null&&Zt()){var eL;!b(V().toggledButtonViewModel)||((eL=f)==null?0:eL())||_.ly(_.fH().resolve(_.eo),b(V().toggledButtonViewModel).trackingParams)}else _.ly(_.fH().resolve(_.eo),b(V().defaultButtonViewModel).trackingParams)}
var V=Y.data,H=Y.buttonShapeOverrides,f=Y.disableExplicitClickLogging,E=Y.onToggle,U=Y.style,X=Y.useOutlinedIcon,I=Y.className,k=function(){var Nr,o6;return e()?(Nr=Y.animatedTextPropsToggled)==null?void 0:Nr.call(Y):(o6=Y.animatedTextPropsDefault)==null?void 0:o6.call(Y)},l=_.sN(function(){return k()?Object.assign({},k(),{shouldAnimate:L()}):void 0},void 0,"ZKEa0b"),x=function(){var Nr;
return((Nr=y())==null?void 0:Nr.isToggled)!==void 0},Q=_.N(_.Zp(function(){var Nr,o6,lI;
return x()?(Nr=y())==null?void 0:Nr.isToggled:(lI=H==null?void 0:(o6=H())==null?void 0:o6.toggled)!=null?lI:V().isToggled})),Z=Q.next().value;
Q=Q.next().value;var e=Z,O=Q;Q=_.N(_.Zp(function(){var Nr,o6;return(Nr=Y.animatedTextPropsToggled)==null?void 0:(o6=Nr.call(Y))==null?void 0:o6.shouldAnimate}));
Z=Q.next().value;Q=Q.next().value;var L=Z,r=Q;Z=_.N(_.kw(!1,void 0,"S11hid"));var C=Z.next().value,W=Z.next().value,y=_.rn(function(Nr){var o6;a:{var lI=V().entityKey,Zt=V().toggledStateEntitySelectorType;if(Zt&&lI)switch(Zt){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var eL;Nr=(eL=_.kt(Nr.entities,"sfvAudioItemCurrentlyPlayingEntity",lI))!=null?eL:void 0;eL=(o6=Nr==null?void 0:Nr.sfvAudioItemPlaybackState)!=null?o6:void 0;if(eL==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){o6={isToggled:!0};
break a}if(eL){o6={isToggled:!1};break a}break;default:_.Sk(new _.BQ("Error: entitySelectorType defined but not matched in selector.",Nr,Zt))}o6=void 0}return o6}),G=function(){return Object.assign({},H==null?void 0:H(),{onToggle:w,
toggleable:!0,toggled:e(),focused:C()})};
return _.m("toggle-button-view-model",{"on:focusin":_.Q_(function(){var Nr=_.fH().resolve(_.HQ(_.mu));Nr&&W(Nr.isKeyBoardInUse());return!1}),
"on:focusout":_.Q_(function(){W(!1);return!1}),
class:I},_.m(_.h,{cond:function(){return e()?b(V().toggledButtonViewModel):b(V().defaultButtonViewModel)},
then:function(Nr){return _.m(_.a1,{data:Nr,className:I,style:U,useOutlinedIcon:X,buttonOverrides:G,animatedTextProps:l})}}))},"z");
_.td.idomCompat={callbacks:{onToggle:!0}};_.f_(_.b8(function(Y){return _.m("yt-toggle-button-view-model",{class:function(){var b;return(b=Y.scopingClassName)==null?void 0:b.call(Y)}},_.m(_.td,{data:function(){var b;
return(b=Y.data)==null?void 0:b.call(Y)},
buttonShapeOverrides:function(){var b;return(b=Y.overrides)==null?void 0:b.call(Y)},
animatedTextPropsDefault:function(){var b;return(b=Y.animatedTextPropsDefault)==null?void 0:b.call(Y)},
animatedTextPropsToggled:function(){var b;return(b=Y.animatedTextPropsToggled)==null?void 0:b.call(Y)},
disableExplicitClickLogging:function(){var b;return(b=Y.disableExplicitClickLogging)==null?void 0:b.call(Y)},
onToggle:function(b){var w;return(w=Y.onToggle)==null?void 0:w.call(Y,b)},
style:function(){var b;return(b=Y.style)==null?void 0:b.call(Y)},
useOutlinedIcon:function(){var b;return(b=Y.useOutlinedIcon)==null?void 0:b.call(Y)},
className:function(){var b;return(b=Y.className)==null?void 0:b.call(Y)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.YX,
buttonShapeOverrides:_.YX,overrides:_.YX,animatedTextPropsDefault:_.YX,animatedTextPropsToggled:_.YX,disableExplicitClickLogging:_.YX,onToggle:_.gn,style:_.YX,useOutlinedIcon:_.YX,className:_.YX,scopingClassName:_.YX}});var pn=function(){return _.F.apply(this,arguments)||this};
_.P(pn,_.F);pn.prototype.onTap=function(Y){Y.stopPropagation();Y=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.R1("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:Y})):this.ytLiveChatReduxBehavior.dispatch(_.qo("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:Y}))};
_.up.Object.defineProperties(pn.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.engagementState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=_.v(this.data.toggleButton,_.ns),b;if(Number(((b=this.likeCountState)==null?void 0:b.likeCountIfIndifferentNumber)||"0")===0){var w;b=((w=this.data.likeCountPlaceholder)==null?void 0:w.content)||""}else{var V,H,f;b=((V=this.likeCountState)==null?void 0:(H=V.likeCountIfIndifferent)==null?void 0:H.content)||((f=this.data.likeCountPlaceholder)==null?void 0:f.content)||""}var E,U;w=((E=this.likeCountState)==null?void 0:(U=
E.likeCountIfLiked)==null?void 0:U.content)||"1";E=_.v(Y.toggledButtonViewModel,_.Bv);return Object.assign({},Y,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.v(Y.defaultButtonViewModel,_.Bv),{title:b})},toggledButtonViewModel:{buttonViewModel:Object.assign({},E,{title:w})}})}}}});
pn.prototype.onTap=pn.prototype.onTap;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],pn.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],pn.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pn.prototype,"data",void 0);
_.z([_.R({selectorArgs:["data.likeCountEntityKey"],selector:bvv}),_.K("design:type",Object)],pn.prototype,"likeCountState",void 0);_.z([_.R({selectorArgs:["data.engagementStateKey"],selector:ecv}),_.K("design:type",Object)],pn.prototype,"engagementState",void 0);_.z([_.t("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],pn.prototype,"isLiked",null);
_.z([_.t("data","likeCountState","isLiked"),_.K("design:type",Object),_.K("design:paramtypes",[])],pn.prototype,"toggleButton",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],pn.prototype,"onTap",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],pn);
_.a(pn,"yt-live-chat-like-button-view-model",function(){if(ppI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-like-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_like_button_view_model.yt.live.chat.like.button.view.model.css.js--\x3e<yt-toggle-button-view-model data="[[toggleButton]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-like-button-view-model">\n</yt-toggle-button-view-model>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;eCK===void 0&&(eCK=document.createElement("template"));var V=eCK;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ppI=Y}Y=ppI;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var kNr;var lY$;var OS=function(){return _.F.apply(this,arguments)||this};
_.P(OS,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],OS.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],OS);
_.a(OS,"yt-live-chat-paid-message-footer-renderer",function(){if(lY$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_footer_renderer.yt.live.chat.paid.message.footer.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-paid-message-footer-renderer">\n  <div id="icon" hidden$="[[!data.icon]]" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-icon>\n  </div>\n  <div id="text" class="style-scope yt-live-chat-paid-message-footer-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-paid-message-footer-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;kNr===void 0&&(kNr=document.createElement("template"));var V=kNr;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);lY$=Y}Y=lY$;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var hut;var xLo;var qrt;var sQ8,QQ_=function(){if(sQ8!==void 0)return sQ8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-reply-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_reply_button_view_model.yt.live.chat.reply.button.view.model.css.js--\x3e<yt-button-view-model data="[[buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-live-chat-reply-button-view-model">\n</yt-button-view-model>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;qrt===void 0&&(qrt=document.createElement("template"));var V=qrt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return sQ8=Y};var t0=function(){return _.F.apply(this,arguments)||this};
_.P(t0,_.F);t0.prototype.onTap=function(Y){Y.stopPropagation()};
_.up.Object.defineProperties(t0.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=_.v(this.data.replyButton,_.Bv),b,w,V,H,f,E,U,X=Number(((b=this.replyCountState)==null?void 0:b.replyCountNumber)||"0")===0?(w=this.data)==null?void 0:(V=w.replyCountPlaceholder)==null?void 0:V.content:((H=this.replyCountState)==null?void 0:(f=H.replyCount)==null?void 0:f.content)||((E=this.data)==null?void 0:(U=E.replyCountPlaceholder)==null?void 0:U.content)||"",I;return Object.assign({},
Y,{title:X,accessibilityText:(I=this.replyCountState)==null?void 0:I.replyButtonAccessibilityText})}}}});
_.up.Object.defineProperties(t0,{template:{configurable:!0,enumerable:!0,get:function(){return QQ_()}}});
t0.prototype.onTap=t0.prototype.onTap;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],t0.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],t0.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],t0.prototype,"data",void 0);
_.z([_.R({selectorArgs:["data.replyCountEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"replyCountEntity",b)}}),
_.K("design:type",Object)],t0.prototype,"replyCountState",void 0);_.z([_.t("data","replyCountState"),_.K("design:type",Object),_.K("design:paramtypes",[])],t0.prototype,"buttonViewModel",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],t0.prototype,"onTap",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],t0);
_.a(t0,"yt-live-chat-reply-button-view-model",function(){return QQ_()},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var v05;var PwC;var RG=function(){var Y=_.F.apply(this,arguments)||this;Y.ariaLabel="";return Y};
_.P(RG,_.F);
RG.prototype.dataChanged=function(){for(var Y=(0,_.DT)(_.E6(this.hostElement).querySelector("#image"));Y.firstChild;)Y.removeChild(Y.firstChild);if(this.data)if(this.data.icon){var b=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(b.polymerController.icon="yt-sys-icons:shield-filled",b.polymerController.defaultToFilled=!0):b.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();Y.appendChild(b)}else if(this.data.customThumbnail){b=document.createElement("img");
var w=_.GNu(this.data.customThumbnail.thumbnails,16);w?(b.src=w,Y.appendChild(b),b.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Sk(new _.BQ("Could not compute URL for thumbnail",this.data.customThumbnail))}};
RG.prototype.identity=function(Y){return Y};
RG.prototype.computeType=function(Y){return DR(Y||void 0)};
RG.prototype.dataChanged=RG.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],RG.prototype,"data",void 0);_.z([_.R({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.K("design:type",Object)],RG.prototype,"ariaLabel",void 0);_.z([_.R({computed:"computeType(data)",reflectToAttribute:!0}),_.K("design:type",String)],RG.prototype,"type",void 0);
_.z([_.R({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.K("design:type",String)],RG.prototype,"sharedTooltipText",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("live_chat_enable_new_moderator_badge")}}),
_.K("design:type",Boolean)],RG.prototype,"enableNewModeratorBadge",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RG.prototype,"dataChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],RG);
_.a(RG,"yt-live-chat-author-badge-renderer",function(){if(PwC===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_badge_renderer.yt.live.chat.author.badge.renderer.css.js--\x3e<div id="image" class="style-scope yt-live-chat-author-badge-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;v05===void 0&&(v05=document.createElement("template"));var V=v05;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);PwC=Y}Y=PwC;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var ZYk;var BqU;var d9=function(){return _.F.apply(this,arguments)||this};
_.P(d9,_.F);_.g=d9.prototype;_.g.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"}}}}};
_.g.computeBadgesInsideChip=function(Y){return Y?Y.filter(function(b){return DR(b.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.g.computeBadgesOutsideChip=function(Y){return this.prependChatBadges||!Y?[]:Y.filter(function(b){b=DR(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"})};
_.g.computeBadgesBeforeChip=function(Y){return this.prependChatBadges&&Y?Y.filter(function(b){b=DR(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"}):[]};
_.g.computeIsHighlighted=function(Y,b){var w=!!Xma(Y,"owner"),V=!!Xma(Y,"verified");Y=!!Xma(Y,"moderator");return(w||V&&!Y)&&!b};
_.g.computeAuthorType=function(Y){return UNu(Y)};
_.g.computeAuthorClass=function(Y,b){return b?(Y?Y+" ":"")+"single-line":Y};
_.g.onSeedColorChanged=function(){_.q("live_chat_author_name_color_usernames")||_.q("live_chat_seed_color_usernames")||_.q("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):_.q("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
d9.prototype.onSeedColorChanged=d9.prototype.onSeedColorChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],d9.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],d9.prototype,"authorName",void 0);_.z([_.R(),_.K("design:type",Array)],d9.prototype,"authorBadges",void 0);
_.z([_.R({computed:"computeAuthorType(authorBadges)"}),_.K("design:type",String)],d9.prototype,"authorType",void 0);_.z([_.R({computed:"computeAuthorClass(authorType, singleLine)"}),_.K("design:type",String)],d9.prototype,"authorClass",void 0);_.z([_.R({computed:"computeBadgesInsideChip(authorBadges)"}),_.K("design:type",Array)],d9.prototype,"badgesInsideChip",void 0);_.z([_.R({computed:"computeBadgesOutsideChip(authorBadges)"}),_.K("design:type",Array)],d9.prototype,"badgesOutsideChip",void 0);
_.z([_.R({computed:"computeBadgesBeforeChip(authorBadges)"}),_.K("design:type",Array)],d9.prototype,"badgesBeforeChip",void 0);_.z([_.R({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.K("design:type",Boolean)],d9.prototype,"isHighlighted",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],d9.prototype,"singleLine",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],d9.prototype,"disableHighlighting",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],d9.prototype,"dashboardMoneyFeed",void 0);_.z([_.R({value:_.q("live_chat_prepend_badges"),reflectToAttribute:!0}),_.K("design:type",Boolean)],d9.prototype,"prependChatBadges",void 0);_.z([_.R(),_.K("design:type",String)],d9.prototype,"authorNameColor",void 0);_.z([_.xZ("#author-name"),_.K("design:type",HTMLDivElement)],d9.prototype,"username",void 0);
_.z([_.lr("authorNameColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d9.prototype,"onSeedColorChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],d9);
_.a(d9,"yt-live-chat-author-chip",function(){if(BqU===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-author-chip--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_author_chip.yt.live.chat.author.chip.css.js--\x3e<span id="prepend-chat-badges" class="style-scope yt-live-chat-author-chip"></span><span id="author-name" dir="auto" class$="[[authorClass]] style-scope yt-live-chat-author-chip">[[getSimpleString(authorName)]]<span id="chip-badges" class="style-scope yt-live-chat-author-chip"></span></span><span id="chat-badges" class="style-scope yt-live-chat-author-chip"></span>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;ZYk===void 0&&(ZYk=document.createElement("template"));var V=ZYk;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);BqU=Y}Y=BqU;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var n0C;var Mj9;var FG=function(){var Y=_.F.apply(this,arguments)||this;Y.debounceCommand=_.Zf(function(b){Y.ytComponentBehavior.resolveCommand(b)},1500);
return Y};
_.P(FG,_.F);FG.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var Y=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",b,w,V=this.isHearted?(b=this.data)==null?void 0:b.unheartCommand:(w=this.data)==null?void 0:w.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.R1("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:Y}));(Y=_.zT(V))&&this.debounceCommand(Y)}};
_.up.Object.defineProperties(FG.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(!((Y=this.data)==null?0:(b=Y.creatorThumbnail)==null?0:b.sources))return{};Y={thumbnails:[]};b={};b.url=this.data.creatorThumbnail.sources[0].url;Y.thumbnails.push(b);return Y}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.engagementState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((w=this.engagementState)==null?void 0:w.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}}});
FG.prototype.onTap=FG.prototype.onTap;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],FG.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],FG.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],FG.prototype,"data",void 0);
_.z([_.R({selectorArgs:["data.engagementStateKey"],selector:ecv}),_.K("design:type",Object)],FG.prototype,"engagementState",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],FG.prototype,"thumbnailDetails",null);_.z([_.t("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"isHearted",null);_.z([_.t("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"isEditable",null);
_.z([_.t("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"showCreatorView",null);_.z([_.t("data","engagementState"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FG.prototype,"showButton",null);_.z([_.t("data","isHearted"),_.K("design:type",String),_.K("design:paramtypes",[])],FG.prototype,"label",null);_.z([_.t("data","isHearted"),_.K("design:type",Object),_.K("design:paramtypes",[])],FG.prototype,"heartHoverText",null);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FG.prototype,"onTap",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],FG);
_.a(FG,"yt-live-chat-creator-heart-view-model",function(){if(Mj9===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-creator-heart-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_creator_heart_view_model.yt.live.chat.creator.heart.view.model.css.js--\x3e<yt-icon-button id="creator-heart-button" hidden="[[!showButton]]" label="[[label]]" title="[[heartHoverText]]" class="style-scope yt-live-chat-creator-heart-view-model">\n  <template is="dom-if" if="[[showCreatorView]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-image id="unhearted" data="[[data.unheartedIcon]]" height="24" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n  <template is="dom-if" if="[[isHearted]]" class="style-scope yt-live-chat-creator-heart-view-model">\n    <yt-img-shadow id="creator-thumbnail" thumbnail="[[thumbnailDetails]]" class="style-scope yt-live-chat-creator-heart-view-model"></yt-img-shadow>\n    <yt-image id="hearted-border" data="[[data.heartedIcon]]" height="16" preserve-height="true" width="16" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n    <yt-image id="hearted" data="[[data.heartedIcon]]" height="14" preserve-height="true" width="14" class="style-scope yt-live-chat-creator-heart-view-model"></yt-image>\n  </template>\n</yt-icon-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;n0C===void 0&&(n0C=document.createElement("template"));var V=n0C;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Mj9=Y}Y=Mj9;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Ln=function(){};
_.P(Ln,Ij);Ln.prototype.JSC$11043_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:jS("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Ln.prototype.getApiPaths=function(){return[]};
Ln.prototype.getExtension=function(){};
Ln.prototype.JSC$11043_buildRequest=function(){};var eud={},p38=(eud.GET_DATASYNC_IDS=nX(Ln),eud);var OYr,tjK,Ruo,Mt5,So,L7_,dsr,F7Q,dL_;OYr="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");tjK=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.C_=function(Y,b,w,V,H,f,E,U,X){this.endpointMap=Y;this.networkManager=b;this.authService=w;this.responseProcessorMap=V;this.innertubeResponseStore=H;this.contextProcessors=f;this.asyncContextProcessors=E;this.localInnertubeRouter=U;this.requestSequencer=X;this.inflightRequests=new Map;Y.signalEndpointMap||(Y.signalEndpointMap={});Y.signalEndpointMap=Object.assign({},p38,Y.signalEndpointMap)};
Ruo=function(Y,b,w,V,H,f,E,U,X){if(_.C_.instance!==void 0){if(V=_.C_.instance,Y=[Y!==V.endpointMap,b!==V.networkManager,w!==V.authService,H!==V.innertubeResponseStore,f!==V.contextProcessors,E!==V.asyncContextProcessors,U!==V.localInnertubeRouter],Y.some(function(I){return I}))throw new _.BQ("InnerTubeTransportService is already initialized",Y);
}else _.C_.instance=new _.C_(Y,b,w,V,H,f,E,U,X)};
_.$_=function(Y,b,w){var V=V===void 0?TaC:V;var H=dsr(Y,b);return H?new _.hh(function(f,E){var U,X,I,k,l;return _.c(function(x){switch(x.nextAddress){case 1:return _.D(x,H,2);case 2:U=x.yieldResult;X=U.JSC$11043_getRequest(b,w,V);if(!X){E(new _.BQ("Error: Failed to build request for command.",b));x.jumpTo(0);break}CX(X.input);k=((I=X.requestShell)==null?void 0:I.mode)==="cors"?"cors":void 0;if(Y.authService.syncHeaders){l=dL_(X.config,k);x.jumpTo(4);break}return _.D(x,F7Q(X.config,k),5);case 5:l=
x.yieldResult;case 4:f(L7_(Y,X,l)),_.om(x)}})}):_.OQ(new _.BQ("Error: No request builder found for command.",b))};
Mt5=function(Y,b,w,V){var H=H===void 0?TaC:H;var f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G;return _.c(function(Nr){switch(Nr.nextAddress){case 1:f=Hvt(b,Y.endpointMap);if(!f)throw new _.BQ("Error: No streaming request builder found for command",b);E=f.JSC$11043_getRequest(b,w,H);if(!E)throw new _.BQ("Failed to build YtRequest for streaming Command",b);if((U=Y.localInnertubeRouter)==null||!U.shouldPreferLocalResponse(E.input,E.innerTubeRequest)){Nr.jumpTo(2);break}return _.D(Nr,Y.localInnertubeRouter.localInnertubeResponse(E.input,
E.innerTubeRequest),3);case 3:return X=Nr.yieldResult,I={},X.playerResponse&&(So(Y,X.playerResponse,E),I.player=X.playerResponse,(k=V)==null||k(I,X)),X.watchNextResponse&&(So(Y,X.watchNextResponse,E),I.content=X.watchNextResponse,(l=V)==null||l(I,X)),Nr.return(I);case 2:Q=((x=E.requestShell)==null?void 0:x.mode)==="cors"?"cors":void 0;if(Y.authService.syncHeaders){Z=dL_(E.config,Q);Nr.jumpTo(4);break}return _.D(Nr,F7Q(E.config,Q),5);case 5:Z=Nr.yieldResult;case 4:return L=(O=(e=E.requestShell)==null?
void 0:e.headers)!=null?O:{},E.requestShell=Object.assign({},E.requestShell,{headers:Object.assign({},L,Z)}),r=Object.assign({},E.requestShell),C=JSON.stringify(E.innerTubeRequest),E.requestShell.method==="POST"&&(r=Object.assign({},r,{body:C})),W=function(o6,lI){So(Y,lI.playerResponse||lI.watchNextResponse||lI.reelItemWatchResponse||lI.reelWatchSequenceResponse,E);V==null||V(o6,lI)},y={},_.D(Nr,SrI(Y.networkManager,E.input,r,W),6);
case 6:return y=Nr.yieldResult,((G=E.config)==null?0:G.responseTick)&&_.S1(E.config.responseTick),Nr.return(y)}})};
_.rw=function(Y,b,w,V,H){H=H===void 0?{authStrategy:{identity:TaC}}:H;var f=f===void 0?!0:f;var E=function(){};
E=Xxa(ctg(w));b.context||(b.context=_.qSM(V,f));return new _.hh(function(U){var X,I,k,l,x;return _.c(function(Q){if(Q.nextAddress==1)return X=TPL(w),I=_.$L(X),Y.authService.syncHeaders?(k=dL_(H,I),Q.jumpTo(2)):_.D(Q,F7Q(H,I),3);Q.nextAddress!=2&&(k=Q.yieldResult);l=JSB(TPL(w));x={input:l,requestShell:jS(l),innerTubeRequest:b,config:H};U(L7_(Y,x,k,E));_.om(Q)})})};
So=function(Y,b,w){var V;if(b&&!(b==null?0:(V=b.sequenceMetaData)==null?0:V.skipProcessing)&&Y.responseProcessorMap){V=_.N(OYr);for(var H=V.next();!H.done;H=V.next())H=H.value,Y.responseProcessorMap[H]&&Y.responseProcessorMap[H].handleResponse(b,w)}};
L7_=function(Y,b,w,V){V=V===void 0?function(){}:V;
var H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G,Nr,o6,lI,Zt,eL,OM,iI,rB,Tj,J_,B9,ok,Ut,wt,X$,Dg,eQ,cg,qQ,t_,$s;return _.c(function(P9){switch(P9.nextAddress){case 1:E=(H=b.config)==null?void 0:(f=H.storeStrategy)==null?void 0:f.storeKey;if(!(E&&Y.innertubeResponseStore&&Y.innertubeResponseStore.has(E))||((U=b.config)==null?0:(X=U.storeStrategy)==null?0:X.disableCache)){P9.jumpTo(2);break}return _.D(P9,Y.innertubeResponseStore.get(E),3);case 3:if((I=P9.yieldResult)&&!I.isExpired())return P9.return(Promise.resolve(_.Dz(I)));
case 2:if(!((k=b)==null?0:(l=k.innerTubeRequest)==null?0:l.context)){P9.jumpTo(4);break}x=b.innerTubeRequest.context;if(!(Y.asyncContextProcessors&&Y.asyncContextProcessors.length>0)){P9.jumpTo(5);break}Q=[];Z=_.N(Y.asyncContextProcessors);for(e=Z.next();!e.done;e=Z.next())O=e.value,L=O.processContext(b),L.wrappedPromise_&&Q.push(L.wrappedPromise_);if(!(Q.length>0)){P9.jumpTo(5);break}return _.D(P9,Promise.all(Q),5);case 5:r=_.N(Y.contextProcessors||[]),C=r.next();case 8:if(C.done){P9.jumpTo(4);break}W=
C.value;return _.D(P9,W.processContext(x),9);case 9:C=r.next();P9.jumpTo(8);break;case 4:if((y=Y.localInnertubeRouter)==null||!y.shouldPreferLocalResponse(b.input,b.innerTubeRequest)){P9.jumpTo(12);break}return _.D(P9,Y.localInnertubeRouter.localInnertubeResponse(b.input,b.innerTubeRequest),13);case 13:return G=P9.yieldResult,So(Y,G,b),P9.return(G);case 12:return(lI=(o6=b.config)==null?void 0:o6.requestKey)&&Y.inflightRequests.has(lI)?Nr=Y.inflightRequests.get(lI):(Zt=JSON.stringify(b.innerTubeRequest),
iI=(OM=(eL=b.requestShell)==null?void 0:eL.headers)!=null?OM:{},b.requestShell=Object.assign({},b.requestShell,{headers:Object.assign({},iI,w)}),rB=Object.assign({},b.requestShell),b.requestShell.method==="POST"&&(rB=Object.assign({},rB,{body:Zt})),((Tj=b.config)==null?0:Tj.requestTick)&&_.S1(b.config.requestTick),J_=function(){return Y.networkManager.fetch(b.input,rB,b.config)},Nr=Y.requestSequencer?aYC(Y.requestSequencer,b,J_):J_(),lI&&Y.inflightRequests.set(lI,Nr)),_.D(P9,Nr,14);
case 14:(B9=P9.yieldResult)&&_.q("web_streaming_player")&&Array.isArray(B9)&&(B9=B9[0].playerResponse);if(B9&&"error"in B9&&((ok=B9)==null?0:(Ut=ok.error)==null?0:Ut.details))for(wt=B9.error.details,X$=_.N(wt),Dg=X$.next();!Dg.done;Dg=X$.next())eQ=Dg.value,(cg=eQ["@type"])&&tjK.indexOf(cg)>-1&&(delete eQ["@type"],B9=eQ);lI&&Y.inflightRequests.has(lI)&&Y.inflightRequests.delete(lI);((qQ=b.config)==null?0:qQ.responseTick)&&_.S1(b.config.responseTick);if(B9||(t_=Y.localInnertubeRouter)==null||!t_.canProvideFallbackResponse(b.input,
b.innerTubeRequest)){P9.jumpTo(15);break}return _.D(P9,Y.localInnertubeRouter.localFallbackInnertubeResponse(b.input,b.innerTubeRequest),16);case 16:B9=P9.yieldResult;case 15:return So(Y,B9,b),(($s=b.config)==null?0:$s.processorTick)&&_.S1(b.config.processorTick),V(),P9.return(B9||void 0)}})};
_.y_=function(Y,b){return VeM(b,Y.endpointMap)};
dsr=function(Y,b){Y=gRK(b,Y.endpointMap);if(Y!==void 0)return Promise.resolve(Y)};
F7Q=function(Y,b){var w,V,H,f;return _.c(function(E){if(E.nextAddress==1){H=(w=Y)==null?void 0:(V=w.authStrategy)==null?void 0:V.sessionIndex;var U=_.k7(v7L({sessionIndex:H}));return _.D(E,U,2)}f=E.yieldResult;return E.return(Promise.resolve(Object.assign({},fxu(b),f)))})};
dL_=function(Y,b){var w;Y=Y==null?void 0:(w=Y.authStrategy)==null?void 0:w.sessionIndex;w=v7L({sessionIndex:Y});return Object.assign({},fxu(b),w)};var r7$,zuC,W7K,K7Q,iY9,A7C,$Lk,jQj,zp,GN$,Tq9,y7_,J7Q;r7$=0;zuC=/tone[1-5]/;W7K=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");K7Q="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
iY9=Number.MAX_SAFE_INTEGER;A7C=RegExp("\ufe0f","g");_.aG=function(Y){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;Y&&_.CwK(this,Y)};
_.CwK=function(Y,b){try{_.lc(b,{context:Y,onSuccess:function(V,H){Array.isArray(H)?Y.load(H):(V=new _.BQ("Emoji manager JSON response was not an array!",{response:H}),_.Ft(V))},
onError:function(V){V=new _.BQ("Failed to retrieve emoji manager initial JSON data!",{url:b,statusCode:_.Dj(V).toString()});_.Sk(V)}})}catch(V){var w=new _.BQ("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:b});
_.Sk(w)}};
_.aG.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.aG.prototype.load=function(Y,b){if(b)if(Y.length)Y=Y.concat(b.emojis);else{this.emojis=b.emojis;this.emojiMap=b.emojiMap;this.emojiShortcutMap=b.emojiShortcutMap;this.emojiShortcutCharMap=y7_(b);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=b.emojiRegex;return}this.emojis=[].concat(_.Bt(new Set(this.emojis.concat(Y))));this.hasInitializedShortcutCharMap=!1;Y=Array(this.emojis.length);for(b=0;b<this.emojis.length;b++){var w=this.emojis[b];if(w.emojiId){this.emojiMap[w.emojiId]=w;this.emojiMap[w.emojiId].index=
b;for(var V=0;w.shortcuts&&V<w.shortcuts.length;V++)this.emojiShortcutMap[w.shortcuts[V].toLocaleLowerCase()]=w;Y[b]=w.isCustomEmoji&&w.shortcuts?w.shortcuts[0]:w.emojiId}}Y.sort(function(H,f){return f.length-H.length});
if(Y.length)try{this.emojiRegex=new RegExp(Y.join("|").replace("*","\\*"),"gi")}catch(H){this.emojiRegex=/$./}else this.emojiRegex=/$./};
$Lk=function(Y,b){b=_.N(b);for(var w=b.next();!w.done;w=b.next()){var V=w.value;if(V.emojiId&&Y.emojiMap[V.emojiId]){w=Object.assign({},Y.emojiMap[V.emojiId],V);Y.emojiMap[V.emojiId]=w;var H=void 0;w.index&&((H=Y.emojis[w.index])==null?void 0:H.emojiId)===V.emojiId&&(Y.emojis[w.index]=w);V=void 0;if((V=w.shortcuts)==null?0:V.length)for(Y.hasInitializedShortcutCharMap=!1,V=_.N(w.shortcuts),H=V.next();!H.done;H=V.next())Y.emojiShortcutMap[H.value.toLocaleLowerCase()]=w}}};
jQj=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,_.pp.getInstance(),2);if(V.nextAddress!=3)return(b=V.yieldResult)?_.D(V,b.get("ytlc-emoji-pref"),3):V.return();(w=V.yieldResult)&&$Lk(Y,Object.keys(w).map(function(H){return{emojiId:H,stickyPrefId:w[H]}}).filter(function(H){return!!H.emojiId&&!!H.stickyPrefId}));
_.om(V)})};
_.r9=function(Y,b,w){return(Y=Y.emojiMap[b])&&(!Y.isLocked||w!==void 0&&w)?Y:void 0};
zp=function(Y,b,w){w=_.r9(Y,b,w===void 0?!1:w);var V=b.match("\u200d");w&&Y.skinTone!==0&&(Y=(V==null?void 0:V.length)===1?_.r9(Y,b.replace("\u200d",W7K[Y.skinTone]+"\u200d")):_.r9(Y,b+W7K[Y.skinTone]))&&(w=Y);return w};
GN$=function(Y,b){var w=Y.emojiMap[b];return(w==null?0:w.stickyPrefId)?Y.emojiMap[w.stickyPrefId]:zp(Y,b)};
_.PT=function(Y,b){Y=Y.emojiShortcutMap[b.toLocaleLowerCase()];return!Y||Y.isLocked?null:Y};
Tq9=function(Y,b,w){return y7_(Y,w===void 0?!1:w)[b]||{}};
y7_=function(Y,b){b=b===void 0?!1:b;if(!Y.hasInitializedShortcutCharMap){Y.hasInitializedShortcutCharMap=!0;for(var w=0;w<Y.emojis.length;w++){var V=Y.emojis[w];if(!(V.isLocked||b&&V.isCustomEmoji&&V.emojiId&&!Y.pickerCustomEmojiIds.includes(V.emojiId)))for(var H=0;V.shortcuts&&H<V.shortcuts.length;H++){var f=V.shortcuts[H];f.startsWith(":_")&&V.isCustomEmoji&&(Y.emojiShortcutCharMap[":_"]==null&&(Y.emojiShortcutCharMap[":_"]=Object.create(null)),Y.emojiShortcutCharMap[":_"][f]=V);if(!(f.length<3||
!V.isCustomEmoji&&zuC.test(f))){var E=f.substr(0,3).toLocaleLowerCase();Y.emojiShortcutCharMap[E]==null&&(Y.emojiShortcutCharMap[E]=Object.create(null));Y.emojiShortcutCharMap[E][f]=V}}}}return Y.emojiShortcutCharMap};
_.aG.prototype.createEmoji=function(Y,b){b=b===void 0?!0:b;var w=document.createElement("img");Y.isCustomEmoji||w.classList.add("small-emoji");w.classList.add("emoji");w.classList.add("yt-formatted-string");w.src=Y.image?_.NR(Y.image.thumbnails,this.emojiSize)||"":"";var V=void 0;Y.image&&Y.image.accessibility&&Y.image.accessibility.accessibilityData&&(V=Y.image.accessibility.accessibilityData.label);w.alt=V?V:(Y.isCustomEmoji&&Y.shortcuts?Y.shortcuts[0]:Y.emojiId)||"";Y.isCustomEmoji&&(w.dataset.emojiId=
Y.emojiId);_.kv&&(w.setAttribute("contenteditable","false"),w.setAttribute("unselectable","on"));b&&(Y.shortcuts&&Y.shortcuts.length&&w.setAttribute("shared-tooltip-text",Y.shortcuts[0]),w.id="emoji-"+r7$++);return w};
_.aG.prototype.createDocumentFragment=function(Y,b,w,V){b=b===void 0?!1:b;w=w===void 0?!0:w;V=V===void 0?!1:V;Y=Y.replace(A7C,"");for(var H=document.createDocumentFragment(),f=0,E,U=0;(E=this.emojiRegex.exec(Y))!=null;){var X=_.r9(this,E[0])||_.PT(this,E[0]);!X||X.isCustomEmoji&&!b||(X=this.createEmoji(X,w),f!==E.index&&H.appendChild(document.createTextNode(Y.substring(f,E.index))),H.appendChild(X),f=E.index+E[0].length,U++)}if(!V||U)return H.appendChild(document.createTextNode(Y.substr(f))),H};
J7Q=function(Y,b,w){var V,H,f,E,U,X,I,k,l;return _.c(function(x){if(x.nextAddress==1){if(!b.emojiId||!Y.emojiMap[b.emojiId])return x.return();V=Object.assign({},Y.emojiMap[b.emojiId],{stickyPrefId:w});Y.emojiMap[b.emojiId]=V;b.index&&((H=Y.emojis[b.index])==null?void 0:H.emojiId)===b.emojiId&&(Y.emojis[b.index]=V);if((f=b.shortcuts)==null?0:f.length)for(Y.hasInitializedShortcutCharMap=!1,E=_.N(b.shortcuts),U=E.next();!U.done;U=E.next())X=U.value,Y.emojiShortcutMap[X.toLocaleLowerCase()]=V;return _.D(x,
_.pp.getInstance(),2)}if(x.nextAddress!=4)return(I=x.yieldResult)?_.D(x,I.get("ytlc-emoji-pref"),4):x.jumpTo(0);l=(k=x.yieldResult)!=null?k:{};l[b.emojiId]=w;return _.D(x,I.set("ytlc-emoji-pref",l,iY9),0)})};
_.Wz=new _.aG;var bJr;_.Kn={};
bJr={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.q("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:_.q("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 $t(7),shouldSupportInlineActionButtons:function(){return!1},
shouldSupportWholeItemClick:function(){return!1},
beforeRegister:function(){if(this.supportsInlineActionButtons||this.shouldSupportInlineActionButtons())this.stampDom||(this.stampDom={}),this.stampDom["data.inlineActionButtons"]={id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}}},
ready:function(){var Y=_.E6(this.hostElement||this).querySelector("#inline-action-button-container");Y&&Y.setAttribute("aria-hidden","true");this.menuButton=_.E6(this.hostElement).querySelector("#menu-button")},
attached:function(){var Y=this.menuButton;Y&&(Y.addEventListener("focusin",_.Io(this,this.onMenuButtonFocus_)),Y.addEventListener("focusout",_.Io(this,this.onMenuButtonBlur_)))},
detached:function(){var Y=this.menuButton;Y&&(Y.removeEventListener("focusin",_.Io(this,this.onMenuButtonFocus_)),Y.removeEventListener("focusout",_.Io(this,this.onMenuButtonBlur_)))},
identity:_.a6,truthy:function(Y){return!!Y},
computeTimestampString:function(Y){return Y?Y.timestampText?this.getSimpleString(Y.timestampText):this.TIME_FORMATTER.format(new Date(Y.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(Y){return Y},
computeMenuVisible_:function(Y,b){return Y||b},
computeHasInlineActionButtons:function(Y){if(!Y)return!1;var b,w;return!((b=Y.inlineActionButtons)==null||!b.length)||!((w=Y.additionalInlineActionButtons)==null||!w.length)},
createDocumentFragmentFromString:function(Y){var b=_.Wz.createDocumentFragment.bind(_.Wz),w;if((w=this.participantsManager)==null||!w.viewerRegex)return b(Y);w=document.createDocumentFragment();for(var V=0,H;(H=this.participantsManager.viewerRegex.exec(Y))!=null;){if(H.index>0){var f=":"+H[0]+":";if((_.r9(_.Wz,f)||_.PT(_.Wz,f))&&Y.indexOf(f)===H.index-1)continue}w.appendChild(b(Y.substring(V,H.index)));V=document.createElement("span");V.appendChild(b(H[0]));V.classList.add("mention");w.appendChild(V);
V=H.index+H[0].length}w.appendChild(b(Y.substring(V)));return w},
createDocumentFragment:function(Y){var b=document.createDocumentFragment();if(Y.simpleText)return b.appendChild(this.createDocumentFragmentFromString(Y.simpleText)),b;if(!Y.runs)return b;for(var w=0;w<Y.runs.length;w++){var V=Y.runs[w];if(V.emoji)b.appendChild(_.Wz.createEmoji(V.emoji));else if(V.text)if(V.navigationEndpoint){var H=document.createElement("a");H.classList.add("yt-simple-endpoint");KQb(H,V.navigationEndpoint);_.E6(H).appendChild(this.createDocumentFragmentFromString(V.text));b.appendChild(H)}else b.appendChild(this.createDocumentFragmentFromString(V.text))}return b},
hasModerationOverlayVisible:function(){var Y;return((Y=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:Y.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(Y){Y.composedPath().some(function(b){return(b=b instanceof Element?b:null)?b.tagName&&(b.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||b.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.q("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(Y)},
colorFromDecimal:function(Y){return yRt(Y)},
markAsDeleted:function(Y,b){this.set("data.deletedStateMessage",Y);this.set("data.showOriginalContentMessage",b)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(Y){if(this.data.contextMenuEndpoint){var b=_.fH().resolve(_.LX),w=this.data.contextMenuEndpoint,V;(V=_.C_.instance)&&_.y_(V,w)?(b=uf8(b,w),V=_.rw(V,{},b)):V=_.Y4k(b,w);V.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);Y&&Y.stopPropagation()}},
handleGetContextMenuResponse_:function(Y){var b=_.C_.instance;b&&_.y_(b,{liveChatEndpoint:{}})||(Y=Y.response);Y.liveChatItemContextMenuSupportedRenderers&&Y.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(Y.liveChatItemContextMenuSupportedRenderers.menuRenderer);Y.actions&&_.Xx(this.hostElement,"yt-live-chat-actions",[Y.actions])},
handleGetContextMenuError:function(Y){if(Y instanceof Error||Y instanceof Object||Y instanceof String)var b=Y;_.Ft(new _.BQ("Error encountered calling GetLiveChatItemContextMenu",b))},
showContextMenu_:function(Y){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:Y}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Ua(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Ua(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Kn.YtLiveChatItemBehavior=[bJr,_.yZ.YtComponentBehavior,_.qS.YtOpenPopupBehavior];_.i$=function(){};var wG5;var Vpk;var HJ9;var g3K;var A0=function(){var Y=_.F.apply(this,arguments)||this;Y.active=!1;Y.identity=_.a6;return Y};
_.P(A0,_.F);A0.prototype.dataChanged=function(){this.active=!1};
A0.prototype.onClick=function(){_.Ua(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
A0.prototype.dataChanged=A0.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],A0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],A0.prototype,"active",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],A0.prototype,"dataChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],A0);
_.a(A0,"yt-live-chat-text-input-field-suggestion",function(){if(g3K===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_suggestion.yt.live.chat.text.input.field.suggestion.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-click="onClick" class="style-scope yt-live-chat-text-input-field-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[data.image.thumbnails.0.url]]" author$="[[data.author]]" class="style-scope yt-live-chat-text-input-field-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;HJ9===void 0&&(HJ9=document.createElement("template"));var V=HJ9;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);g3K=Y}Y=g3K;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});_.Cn=function(Y,b,w){return CustomEvent.call(this,Y,{detail:{value:b,path:w}})||this};
_.P(_.Cn,CustomEvent);_.y7=function(){var Y=_.F.apply(this,arguments)||this;Y.viewerName=null;Y.actionMap={"yt-live-chat-actions":"onChatMessage_"};Y.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];Y.PARTICIPANT_TIME_USEC_=3E8;return Y};
_.P(_.y7,_.F);_.g=_.y7.prototype;_.g.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.g.addParticipant=function(Y){var b=_.s6b(this.participants,Y,function(V,H){V=V[Object.keys(V)[0]];H=H[Object.keys(H)[0]];V=String(_.Tx(V.authorName)).toLowerCase();H=String(_.Tx(H.authorName)).toLowerCase();return V<H?-1:V==H?0:1}.bind(this));
if(b>=0){var w=this.participants[b];w[Object.keys(w)[0]].timestampUsec&&this.splice("participants",b,1,Y)}else this.splice("participants",-b-1,0,Y);Y=Y[Object.keys(Y)[0]];b=_.Tx(Y.authorName).toLocaleLowerCase();w=b.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(w)||(this.allParticipantsCharMap_[w]={});this.allParticipantsCharMap_[w][b]=Y};
_.g.getAuthorsFromPrefix=function(Y){return this.allParticipantsCharMap_.hasOwnProperty(Y)?this.allParticipantsCharMap_[Y]:null};
_.g.computeViewerRegex_=function(Y){if(!Y)return null;Y=Y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var b=Y.indexOf("@")===0&&_.q("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(b+Y.replace(/ /g,"\\s*")+"|^"+Y.replace(/ /g,"\\s*")+"$|^"+Y.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+Y.replace(/ /g,"\\s*")+"$|(?<=\\s)"+Y.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.g.checkForStaleParticipants_=function(){var Y=this;this.trimOldParticipants_();this.asyncHandle_&&sXM(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.KV(function(){Y.checkForStaleParticipants_()},3E4))};
_.g.onChatMessage_=function(Y){var b=this,w=Date.now()*1E3;Y.forEach(function(V){if(V=_.v(V,Dk9)){V=V.item;var H=Object.keys(V)[0];b.SUPPORTED_ITEM_TYPES_.indexOf(H)!=-1&&V[H].timestampUsec>=w-b.PARTICIPANT_TIME_USEC_&&b.addParticipant(V)}},this);
this.checkForStaleParticipants_()};
_.g.trimOldParticipants_=function(){for(var Y=Date.now()*1E3,b=this.participants.length-1;b>=0;b--){var w=this.participants[b];w=w[Object.keys(w)[0]];w.timestampUsec&&w.timestampUsec<Y-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",b,1)}};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],_.y7.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],_.y7.prototype,"viewerName",void 0);_.z([_.R({computed:"computeViewerRegex_(viewerName)"}),_.K("design:type",Object)],_.y7.prototype,"viewerRegex",void 0);_.z([_.R({value:function(){return[]},
notify:!0}),_.K("design:type",Array)],_.y7.prototype,"participants",void 0);_.z([_.FM({is:"yt-live-chat-participants-manager",noInjection:!0})],_.y7);var fM5=/.*([:@#].*?)$/,$X=/\u00a0/g,NNt=String.fromCharCode(160),E3o={placeholderTextColor:"--yt-live-chat-text-input-field-placeholder-color",activeUnderlineColor:"--yt-live-chat-text-input-field-active-underline-color",inactiveUnderlineColor:"--yt-live-chat-text-input-field-inactive-underline-color"},jo=function(){var Y=_.F.apply(this,arguments)||this;Y.disabled=!1;Y.liveChatRichMessageInput=null;Y.messageInput=null;Y.isValidWithNoInputText=!1;Y.suggestions=[];Y.emojiManager=_.Wz;Y.inputMethodEditorActive=
!1;Y.suggestionIndex=-1;Y.JSC$12041_lastSuggestionRange=null;return Y};
_.P(jo,_.F);_.g=jo.prototype;_.g.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.g.attached=function(){_.lL&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.g.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.g.dataChanged=function(){if(!this.ignoreColorMapping){var Y=!1,b={},w;for(w in E3o)this.data&&this.data.hasOwnProperty(w)&&(b[E3o[w]]=this.colorFromDecimal(this.data[w]),Y=!0);Y&&_.m_(this.hostElement,b)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.g.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.g.colorFromDecimal=function(Y){Y=Math.floor(Number(Y));return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
_.g.preventDrag=function(Y){Y.dataTransfer&&(Y.dataTransfer.dropEffect="none");Y.preventDefault()};
_.g.preventResize=function(Y){Y.returnValue=!1};
_.g.onInputChange=function(){var Y=this.characterCount,b=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&b&&b.remove();if(!b&&this.characterCount>this.maxCharacterLimit){var w=window.getSelection();if(w){var V=w.getRangeAt(0);w.removeAllRanges();w.addRange(V)}}if(w=this.getCurrentRange())V=this.calculateTextBeforeRange(w),this.completeEmojisInRange(w,V,!0)||this.updateSuggestions(w,V);V=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(V);
_.Ua(this.hostElement,"yt-live-chat-message-input-change",V);b&&this.characterCount===0&&b.remove();w&&w.commonAncestorContainer.parentElement.id==="input"&&w.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>Y):w&&!w.collapsed&&w.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(Y=this.input.childNodes.length-1;Y>=0;Y--)this.input.childNodes[Y].nodeName==="BR"&&this.input.childNodes[Y].remove()};
_.g.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.g.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var Y=this.getCurrentRange();Y&&Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.g.mergeOverflowText=function(Y){if(Y){var b=document.createRange();b.selectNodeContents(Y);b=b.extractContents();this.input.insertBefore(b,Y)}};
_.g.checkRangeAtEndOfInput=function(){var Y=this.getCurrentRange();if(Y){var b=_.E6(this.hostElement).querySelector("#overflow-text"),w=document.createRange();b&&b.previousSibling?b.previousSibling instanceof HTMLImageElement?w.selectNode(b.previousSibling):w.selectNodeContents(b.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?w.selectNode(this.input.lastChild):w.selectNodeContents(this.input.lastChild));w.collapse(!1);return w.isPointInRange(Y.startContainer,
Y.startOffset)}return!1};
_.g.handleOverflowText=function(Y){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var b=_.E6(this.hostElement).querySelector("#overflow-text"),w=this.getCurrentRange();this.input.normalize();Y=this.checkRangeAtEndOfInput()&&Y;this.mergeOverflowText(b);for(var V,H=0,f=0,E,U=this.input.childNodes,X=0;X<U.length;X++){var I=U[X];I instanceof Text?(f+=I.textContent.length,f>this.maxCharacterLimit&&(V=I,H=this.maxCharacterLimit+I.textContent.length-f)):I instanceof HTMLImageElement&&
(V=void 0,f=I.dataset.emojiId&&((V=this.data)==null?0:V.emojiCharacterCount)?f+this.data.emojiCharacterCount:f+I.alt.length,V=this.input,H=X);if(f>this.maxCharacterLimit&&V){E=document.createRange();E.collapse(!1);b?(f=this.input.lastChild.previousSibling,f instanceof Text?E.setEnd(this.input.lastChild.previousSibling,f.textContent.length):f instanceof HTMLImageElement&&E.setEnd(this.input,this.input.childNodes.length-1)):E.selectNodeContents(this.input);E.setStart(V,H);break}}E&&(V=!1,w&&(Y=E.isPointInRange(w.startContainer,
w.startOffset-1)),b||(b=document.createElement("span"),b.id="overflow-text",b.textContent="",b.setAttribute("contenteditable","true"),_.E6(_.E6(this.hostElement).querySelector("#input")).appendChild(b),V=!0),b&&(w=E.extractContents(),b.insertBefore(w,b.firstChild),Y&&b.firstChild&&(w=document.createRange(),V?w.setStartAfter(b.lastChild):w.setStartAfter(b.firstChild),w.collapse(!0),b=window.getSelection(),b.removeAllRanges(),b.addRange(w))))}};
_.g.checkForDuplicateSpans=function(){for(var Y=0;Y<this.input.childNodes.length;Y++){var b=this.input.childNodes[Y];if(b.nodeName==="SPAN"){var w=document.createRange();w.selectNodeContents(b);w=w.extractContents();this.input.insertBefore(w,b);b.remove()}}this.handleOverflowText(!0)};
_.g.getCurrentRange=function(){var Y=window.getSelection();return Y&&Y.rangeCount?Y.getRangeAt(0).cloneRange():null};
_.g.getInputRange=function(){var Y=this.getCurrentRange();if(Y){for(var b=Y.commonAncestorContainer,w=!1,V=_.E6(this.hostElement).querySelector("#input");b;){if(b===V){w=!0;break}b=b.parentNode}w||(Y=null)}Y||(Y=this.getRangeAtEnd());return Y};
_.g.getRangeAtEnd=function(){var Y=document.createRange(),b=_.E6(this.hostElement).querySelector("#input").lastChild;!b||b.nodeName!=="#text"&&b.nodeName!=="SPAN"?(Y.selectNodeContents(_.E6(this.hostElement).querySelector("#input")),Y.collapse(!1)):b.nodeName==="#text"?Y.setStart(b,b.textContent.length):Y.setStart(b,b.childNodes.length);return Y};
_.g.getChatParticipantSuggestions=function(Y,b,w,V){var H=_.q("live_chat_enable_handles_web_text_input_update");if(b)for(var f in b)if(f.indexOf(Y)===0||H&&f.indexOf(w+Y)===0){var E=b[f],U=_.Tx(E.authorName);V.push({suggestion:{author:!0,authorType:w,image:E.authorPhoto,alt:U,text:U}});if(V.length>=64)break}};
_.g.getSuggestions=function(Y){var b=[],w=Y.substring(0,3),V=Tq9(_.Wz,w,!0);if(V)for(var H in V)if(H.toLocaleLowerCase().indexOf(Y)===0){var f=V[H];if(f&&f.emojiId){if(f=GN$(_.Wz,f.emojiId)){var E=void 0,U=void 0,X=void 0,I=void 0,k=((E=f.image)==null?0:(U=E.accessibility)==null?0:(X=U.accessibilityData)==null?0:X.label)||f.isCustomEmoji?(I=f.shortcuts)==null?void 0:I[0]:f.emojiId;b.push({suggestion:{emoji:!0,image:f.image,alt:k,text:H,textToInsertWhenSelected:f.isCustomEmoji?H:k}})}if(b.length>=
64)break}}if(!this.participantsManager)return null;if(w.indexOf("@")===0||w.indexOf("#")===0)V=w.charAt(0),Y=Y.substring(1),H=_.q("live_chat_enable_handles_web_text_input_update"),w.indexOf("@")===0&&H&&(H=this.participantsManager.getAuthorsFromPrefix(w.substring(0,2)),this.getChatParticipantSuggestions(Y,H,V,b)),w=w.substring(1),w=this.participantsManager.getAuthorsFromPrefix(w),this.getChatParticipantSuggestions(Y,w,V,b);return b?b.sort(function(l,x){return x.suggestion.text<l.suggestion.text?-1:
x.suggestion.text===l.suggestion.text?0:1}):null};
_.g.insertSuggestion=function(Y){var b=_.q("live_chat_enable_handles_web_text_input_update"),w=Y.authorType;b=Y.text.indexOf(w)===0&&b?Y.text+NNt:w+Y.text+NNt;Y.emoji?this.insertTextAtRange(this.JSC$12041_lastSuggestionRange,Y.textToInsertWhenSelected||""):Y.author&&this.insertTextAtRange(this.JSC$12041_lastSuggestionRange,b)};
_.g.updateSuggestionsAtCaret=function(){var Y=this.getCurrentRange();Y&&this.updateSuggestions(Y,this.calculateTextBeforeRange(Y))};
_.g.offsetStartOfRangeBy=function(Y,b){for(;b>0;)if(Y.startOffset-b>=0){Y.setStart(Y.startContainer,Y.startOffset-b);break}else{b=Y.startContainer instanceof HTMLImageElement?b-Y.startContainer.alt.length:b-Y.startOffset;var w=Y.startContainer.previousSibling;if(!w){Y.setStart(Y.startContainer,0);break}if(_.q("live_chat_require_space_for_autocomplete_emoji")){var V=void 0,H=void 0;Y.setStart(w,((V=w)==null?void 0:(H=V.textContent)==null?void 0:H.length)||0)}else Y.setStart(w,w.childNodes.length||
0)}};
_.g.updateSuggestions=function(Y,b){var w=this;this.JSC$12041_lastSuggestionRange&&(this.JSC$12041_lastSuggestionRange.detach(),this.JSC$12041_lastSuggestionRange=null);if((b=fM5.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2&&(this.offsetStartOfRangeBy(Y,b.length),this.JSC$12041_lastSuggestionRange=Y,(Y=this.getSuggestions(b))&&Y.length))){this.suggestions=Y;_.TC(this,function(){_.E6(w.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(Y.length-1);return}this.dropdown.opened=!1};
_.g.completeEmojisInRange=function(Y,b,w){var V=b.replace(/[\s\xa0]+$/,"");b=b.length-V.length;V=V.split(" ");V=V[V.length-1].trim().toLocaleLowerCase();var H=V.lastIndexOf(":");if(w&&!b&&H!==V.length-1)return!1;H!==-1&&(w=V.lastIndexOf(":",H-1),w!==-1&&(V=V.substring(w)));if((w=_.PT(_.Wz,V))&&w.emojiId){w=GN$(_.Wz,w.emojiId)||null;this.offsetStartOfRangeBy(Y,V.length+b);var f,E,U,X;V=(((f=w)==null?0:f.isCustomEmoji)?(E=w)==null?void 0:(U=E.shortcuts)==null?void 0:U[0]:(X=w)==null?void 0:X.emojiId)||
"";b&&(V+=NNt);this.insertTextAtRange(Y,V);this.dropdown.opened=!1;return!0}return!1};
_.g.onSuggestion=function(Y){this.insertSuggestion(Y.detail);this.dropdown.opened=!1};
_.g.onKeyPress=function(Y){Y.keyCode===13&&(Y.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Ua(this.hostElement,"yt-live-chat-send-message"))};
_.g.completeEmojis=function(){var Y=document.createRange(),b=_.E6(this.hostElement).querySelector("#input").lastChild;b?Y.setStart(b,b.childNodes.length):(Y.selectNodeContents(_.E6(this.hostElement).querySelector("#input")),Y.collapse(!1));this.completeEmojisInRange(Y,this.calculateTextBeforeRange(Y),_.q("live_chat_require_space_for_autocomplete_emoji"))};
_.g.maybePreventTextFormatting=function(Y){!_.s0||!Y.ctrlKey&&!Y.metaKey||Y.keyCode!==66&&Y.keyCode!==73||(Y.stopImmediatePropagation(),Y.preventDefault())};
_.g.onKeyDown=function(Y){this.maybePreventTextFormatting(Y);if(this.dropdown.opened)switch(Y.keyCode){case 27:this.dropdown.opened=!1;Y.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;Y.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);Y.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),Y.preventDefault()}};
_.g.onKeyUp=function(Y){switch(Y.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.kv)this.onInputChange()};
_.g.changeSuggestionIndex=function(Y){if(this.dropdown.opened){var b=_.E6(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<b.children.length&&(b.children[this.suggestionIndex].active=!1);var w=this.suggestions.length;this.suggestionIndex=(Y+w)%w;Y=b.children[this.suggestionIndex];Y.active=!0;b.scrollTop=Y.offsetTop}};
_.g.onInputPaste=function(Y){Y.preventDefault();(Y=Y.clipboardData)&&Y.types&&(Y=Y.getData("text/plain")||"",Y=Y.replace(/\n/g,""),this.insertText(Y));(Y=this.getCurrentRange())&&Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.g.onFocus=function(){this._setFocused(!0)};
_.g.onBlur=function(){this._setFocused(!1)};
_.g.insertText=function(Y){this.insertTextAtRange(this.getInputRange(),Y)};
_.g.insertTextAtRange=function(Y,b){if(Y&&(Y.collapsed||Y.deleteContents(),b=_.Wz.createDocumentFragment(b,!0,!1))){for(var w=_.N((b==null?void 0:b.childNodes)||[]),V=w.next();!V.done;V=w.next()){V=V.value;var H=void 0,f=void 0,E=void 0,U=void 0,X=void 0;(E=(H=window)==null?void 0:(f=H.ShadyCSS)==null?void 0:f.ScopingShim)==null||(X=(U=E).scopeNode)==null||X.call(U,V,this.hostElement.localName)}w=b.lastChild;Y.insertNode(b);this.focused||this.input.focus();if(this.focused){Y=Y.cloneRange();Y.selectNodeContents(w);
Y.collapse(!1);if(b=window.getSelection())b.removeAllRanges(),b.addRange(Y);Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}Y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Y);_.Ua(this.hostElement,"yt-live-chat-message-input-change",Y)}};
_.g.setLiveChatRichMessageInput=function(Y){_.E6(_.E6(this.hostElement).querySelector("#input")).textContent="";if(Y&&Y.textSegments){for(var b=0;b<Y.textSegments.length;b++){var w=Y.textSegments[b];w.text?_.E6(_.E6(this.hostElement).querySelector("#input")).appendChild(_.Wz.createDocumentFragment(w.text,!0,!1)):w.emojiId&&(w=_.r9(_.Wz,w.emojiId))&&_.E6(_.E6(this.hostElement).querySelector("#input")).appendChild(_.Wz.createEmoji(w,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.g.setText=function(Y){this.setLiveChatRichMessageInput(Y?{textSegments:[{text:Y}]}:null)};
_.g.calculateTextBeforeRange=function(Y){var b="",w=Y.startContainer;if(w&&w instanceof Text){var V;b=((V=w.textContent)==null?void 0:V.substring(0,Y.startOffset))||"";w=w.previousSibling}for(;w&&w instanceof Text;)b=w.textContent+b,w=w.previousSibling;return b.replace($X," ")};
_.g.calculateLiveChatRichMessageInput=function(){for(var Y=[],b="",w=_.E6(_.E6(this.hostElement).querySelector("#input")).childNodes,V=0;V<w.length;V++){var H=w[V];H instanceof Text?b+=H.textContent:H instanceof HTMLImageElement&&(H.dataset.emojiId?(b&&(Y.push({text:b.replace($X," ")}),b=""),Y.push({emojiId:H.dataset.emojiId})):b+=H.alt)}b&&Y.push({text:b.replace($X," ")});if(w=_.E6(this.hostElement).querySelector("#overflow-text")){b="";w=w.childNodes;for(V=0;V<w.length;V++)H=w[V],H instanceof Text?
b+=H.textContent:H instanceof HTMLImageElement&&(H.dataset.emojiId?(b&&(Y.push({text:b.replace($X," ")}),b=""),Y.push({emojiId:H.dataset.emojiId})):b+=H.alt);b&&Y.push({text:b.replace($X," ")})}return{textSegments:Y}};
_.g.computeCharacterCount=function(Y){if(!Y||!Y.textSegments)return 0;for(var b=0,w=0;w<Y.textSegments.length;w++){var V=Y.textSegments[w];if(V.text)b+=V.text.length;else if(V.emojiId){var H=void 0;if((H=this.data)==null?0:H.emojiCharacterCount)b+=this.data.emojiCharacterCount;else{var f=H=void 0,E=void 0;b+=((f=_.r9(_.Wz,(H=V)==null?void 0:H.emojiId))==null?void 0:(E=f.shortcuts)==null?void 0:E[0].length)||0}}}return b};
_.g.characterCountChanged=function(){_.Ua(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.g.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Cn("focused-changed",this.focused))};
_.g.focus=function(){this.setFocus(!1)};
_.g.focusAtEnd=function(){this.setFocus(!0)};
_.g.setFocus=function(Y){Y=Y?this.getRangeAtEnd():this.getInputRange();_.E6(this.hostElement).querySelector("#input").focus();var b=window.getSelection();b&&(b.removeAllRanges(),b.addRange(Y))};
_.g.insertEmoji=function(Y){var b,w=((Y==null?0:Y.isCustomEmoji)?(b=Y.shortcuts)==null?void 0:b[0]:Y==null?void 0:Y.emojiId)||"";this.insertText(w)};
_.g.computeText=function(Y){if(!Y||!Y.textSegments)return"";for(var b="",w=0;w<Y.textSegments.length;w++){var V=Y.textSegments[w];if(V.text)b+=V.text;else if(V.emojiId){var H=void 0,f=void 0,E=void 0;b+=((f=_.r9(_.Wz,(H=V)==null?void 0:H.emojiId))==null?void 0:(E=f.shortcuts)==null?void 0:E[0])||""}}return b};
_.g.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.up.Object.defineProperties(jo.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
jo.prototype.focusedChanged=jo.prototype.focusedChanged;jo.prototype.characterCountChanged=jo.prototype.characterCountChanged;jo.prototype.onSuggestion=jo.prototype.onSuggestion;jo.prototype.onMessageSet=jo.prototype.onMessageSet;jo.prototype.dataChanged=jo.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],jo.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],jo.prototype,"disabled",void 0);_.z([_.t("disabled"),_.K("design:type",Number),_.K("design:paramtypes",[])],jo.prototype,"inputTabIndex",null);_.z([_.t("data.maxCharacterLimit"),_.R({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],jo.prototype,"maxCharacterLimit",null);
_.z([_.t("liveChatRichMessageInput"),_.R({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],jo.prototype,"characterCount",null);_.z([_.t("maxCharacterLimit, characterCount"),_.R({readOnly:!0,notify:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],jo.prototype,"remainingCharacterCount",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],jo.prototype,"isChatMessageInput",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],jo.prototype,"inputExpanded",void 0);_.z([_.R({readOnly:!0,notify:!0}),_.K("design:type",Object)],jo.prototype,"liveChatRichMessageInput",void 0);_.z([_.R(),_.K("design:type",Object)],jo.prototype,"messageInput",void 0);_.z([_.R(),_.K("design:type",Boolean)],jo.prototype,"ignoreColorMapping",void 0);_.z([_.t("characterCount"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jo.prototype,"hasText",null);
_.z([_.R(),_.K("design:type",Object)],jo.prototype,"isValidWithNoInputText",void 0);_.z([_.t("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.R(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jo.prototype,"isInputValid",null);_.z([_.R({readOnly:!0,value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],jo.prototype,"focused",void 0);_.z([_.R(),_.K("design:type",Array)],jo.prototype,"suggestions",void 0);
_.z([_.R(),_.K("design:type",_.aG)],jo.prototype,"emojiManager",void 0);_.z([_.R(),_.K("design:type",_.y7)],jo.prototype,"participantsManager",void 0);_.z([_.R(),_.K("design:type",Boolean)],jo.prototype,"noUnderline",void 0);_.z([_.R(),_.K("design:type",Object)],jo.prototype,"inputMethodEditorActive",void 0);_.z([_.xZ("#dropdown"),_.K("design:type",Object)],jo.prototype,"dropdown",void 0);_.z([_.xZ("#input"),_.K("design:type",HTMLElement)],jo.prototype,"input",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jo.prototype,"dataChanged",null);_.z([_.lr("messageInput"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jo.prototype,"onMessageSet",null);_.z([_.kZ("yt-live-chat-select-suggestion"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],jo.prototype,"onSuggestion",null);
_.z([_.lr("characterCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jo.prototype,"characterCountChanged",null);_.z([_.lr("focused"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jo.prototype,"focusedChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],jo);
_.cv$=_.a(jo,"yt-live-chat-text-input-field-renderer",function(){if(Vpk===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-input-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_input_field_renderer.yt.live.chat.text.input.field.renderer.css.js--\x3e<label id="label" class="style-scope yt-live-chat-text-input-field-renderer">[[getSimpleString(data.placeholder)]]</label>\n<div id="input" aria-label$="[[getSimpleString(data.placeholder)]]" aria-invalid$="[[!isInputValid]]" contenteditable="" tabindex$="[[inputTabIndex]]" on-blur="onBlur" on-dragenter="preventDrag" on-dragleave="preventDrag" on-dragover="preventDrag" on-drop="preventDrag" on-focus="onFocus" on-input="onInputChange" on-keydown="onKeyDown" on-keypress="onKeyPress" on-keyup="onKeyUp" on-paste="onInputPaste" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n<div id="underline" hidden$="[[noUnderline]]" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="unfocused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n  <div id="focused" class="style-scope yt-live-chat-text-input-field-renderer"></div>\n</div>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="24" class="style-scope yt-live-chat-text-input-field-renderer">\n  <div id="dropdown-content" class="dropdown-content style-scope yt-live-chat-text-input-field-renderer" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;wG5===void 0&&(wG5=document.createElement("template"));var V=wG5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Vpk=Y}Y=Vpk;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Gp=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonOverrides={style:"overlay",type:"filled"};Y.allowAnimations=!1;Y.modern=_.q("web_button_rework_with_live");Y.noPadding=!1;return Y};
_.P(Gp,_.F);_.g=Gp.prototype;_.g.shouldSupportInlineActionButtons=function(){return!0};
_.g.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"}}}}};
_.g.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.g.attached=function(){this.allowAnimations=!1};
_.g.dataChanged=function(){if(this.data){var Y={"--yt-live-chat-paid-message-primary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyBackgroundColor),"--yt-live-chat-paid-message-secondary-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerBackgroundColor),"--yt-live-chat-paid-message-header-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.headerTextColor),"--yt-live-chat-paid-message-timestamp-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.timestampColor),
"--yt-live-chat-paid-message-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.bodyTextColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.authorNameTextColor),"--yt-live-chat-text-input-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(this.data.textInputBackgroundColor)};_.m_(this.hostElement,Y);this.allowAnimations=!0}};
_.g.messageChanged=function(){var Y,b=(Y=this.data)==null?void 0:Y.message;Y=_.E6(_.E6(this.hostElement).querySelector("#message"));Y.textContent="";b&&Y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))};
_.g.computeShowOnlyHeader=function(Y,b){return!Y||Y.pdgLikeButton||Y.replyButton||Y.buyFlowButton?!1:this.isEmpty(Y,b)&&!Y.footer};
_.g.computeShowFooterDivider=function(Y,b,w){return Y?!!Y.footer&&!this.isEmpty(Y,b)&&!w:!1};
_.g.computeIsUserEditable=function(Y){return!!Y.inputField};
_.g.computeHasHeartButton=function(Y){return(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(Y==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.g.computeNoveltyImage=function(Y){if(Y.headerOverlayImage&&Y.headerOverlayImage.thumbnails.length){var b=Y.headerOverlayImage.thumbnails[0],w,V;if((w=Y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(V=w.loggingDirectives)==null?0:V.trackingParams){var H,f;OGI((H=Y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(f=H.loggingDirectives)==null?void 0:f.trackingParams)}return b.width||0}return 0};
_.g.computeAuthorPhotoSize=function(Y){return(Y==null?0:Y.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.g.inputFocus=function(){var Y=_.E6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");Y&&Y.focus()};
_.g.inputInsertEmoji=function(Y){var b=_.E6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");b&&b.insertEmoji(Y)};
_.g.inputMessage=function(){var Y=_.E6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),b;return Y&&((b=this.data)==null?0:b.inputField)?(Y.completeEmojis(),_.K_(Y.liveChatRichMessageInput)):null};
_.g.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.g.isEmpty=function(Y,b){return Y?Y.empty||!(Y.message||Y.inputField||b):!0};
_.g.onLowerBuyButtonClick=function(){var Y,b=_.v((Y=this.data)==null?void 0:Y.buyButton,_.Wa);b&&b.trackingParams&&!jWG(b.command)&&(Y=_.nA(b.trackingParams))&&(b=_.dO())&&_.J1(b,Y)};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.up.Object.defineProperties(Gp.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Gp.prototype.isDeletedChanged=Gp.prototype.isDeletedChanged;Gp.prototype.messageChanged=Gp.prototype.messageChanged;Gp.prototype.dataChanged=Gp.prototype.dataChanged;_.z([_.n(r8o.YtPdgLiveChatItemBehavior),_.K("design:type",Object)],Gp.prototype,"ytPdgLiveChatItemBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],Gp.prototype,"ytLiveChatReduxBehavior",void 0);
_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],Gp.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Gp.prototype,"data",void 0);_.z([_.R({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:ecv}),_.K("design:type",Object)],Gp.prototype,"engagementState",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.K("design:type",Boolean)],Gp.prototype,"isUserEditable",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.K("design:type",Boolean)],Gp.prototype,"hasHeartButton",void 0);_.z([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Gp.prototype,"showOnlyHeader",void 0);
_.z([_.R({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Gp.prototype,"showFooterDivider",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],Gp.prototype,"allowAnimations",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Gp.prototype,"dashboardMoneyFeed",void 0);_.z([_.R({computed:"computeNoveltyImage(data)"}),_.K("design:type",Number)],Gp.prototype,"noveltyWidth",void 0);
_.z([_.R({computed:"computeAuthorPhotoSize(data)"}),_.K("design:type",Number)],Gp.prototype,"authorPhotoSize",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gp.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gp.prototype,"noPadding",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gp.prototype,"dataChanged",null);
_.z([_.lr("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gp.prototype,"messageChanged",null);_.z([_.t("data","dashboardMoneyFeed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Gp.prototype,"hideLowerBumper",null);_.z([_.lr("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gp.prototype,"isDeletedChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Gp);
_.a(Gp,"yt-live-chat-paid-message-renderer",function(){if(xLo===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_message_renderer.yt.live.chat.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="header" class="style-scope yt-live-chat-paid-message-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="author-photo" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n    </template>\n    <template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-message-renderer">\n      <yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-message-renderer">\n      </yt-img-shadow>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="single-line" class="style-scope yt-live-chat-paid-message-renderer">\n          <div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-live-chat-author-chip>\n          </div>\n          <div id="leaderboard-badge" class="leaderboard-badge style-scope yt-live-chat-paid-message-renderer"></div>\n          <div id="purchase-amount-column" class="style-scope yt-live-chat-paid-message-renderer">\n            <yt-img-shadow id="currency-img" height="16" hidden$="[[!data.currencyImage.thumbnailDetails]]" thumbnail="[[data.currencyImage.thumbnailDetails]]" width="16" class="style-scope yt-live-chat-paid-message-renderer">\n            </yt-img-shadow>\n            <div id="purchase-amount" class="style-scope yt-live-chat-paid-message-renderer">\n              <yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n            </div>\n          </div>\n        </div>\n      </div>\n      <span id="timestamp" class="style-scope yt-live-chat-paid-message-renderer">[[timestampString]]</span>\n      <div id="gradient-container" class="style-scope yt-live-chat-paid-message-renderer">\n        <div id="gradient" class="style-scope yt-live-chat-paid-message-renderer"></div>\n      </div>\n      <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-message-renderer">\n          <yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-message-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="creator-heart-button" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-paid-message-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-paid-message-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-paid-message-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" message-input="[[messageInput]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-paid-message-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-message-renderer"></yt-formatted-string>\n    <div id="footer" class="style-scope yt-live-chat-paid-message-renderer"></div>\n    <div id="action-buttons" class="style-scope yt-live-chat-paid-message-renderer">\n      <div id="like-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="reply-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n      <div id="buy-button" class="action-button style-scope yt-live-chat-paid-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="lower-buy-button" hidden$="[[!data.buyButton]]" on-click="onLowerBuyButtonClick" class="style-scope yt-live-chat-paid-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-paid-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;hut===void 0&&(hut=document.createElement("template"));var V=hut;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);xLo=Y}Y=xLo;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Uit;var XGK;var Tp=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;return Y};
_.P(Tp,_.s6);Tp.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.zO("openPopupConfig")};
_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],Tp.prototype,"ytOpenPopupBehavior",void 0);_.z([_.QC()],Tp);_.J0=[_.qS.YtOpenPopupBehavior,Tp.prototype];var DiC;var G9=[_.QU,wZk,_.aU,_.vH,_.TG,_.mht,_.BH,_.xwd,_.aM,Boa];_.q("web_watch_get_updated_metadata_response_processing")&&G9.push(_.Wyr);_.q("web_continuation_response_processing")&&G9.push(_.Wb);var ZKg=new _.Hx("RESPONSE_RECEIVED_COMMANDS"),QpL=new _.Hx("RESPONSE_RECEIVED_COMMANDS");var Ixb="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),oRa=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],mKq=["GET_UNSEEN_NOTIFICATION_COUNT"];var u$=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;Y.serviceEndpointHandlers=[];return Y};
_.P(u$,_.s6);u$.prototype.created=function(){var Y=this;this.endpointHandlerActionMap={"yt-service-request":function(b,w,V,H){var f;return DKv(Y.hostElement,b,w,V,H,Y.serviceEndpointHandlers,(f=Y.onEntitiesUpdated)==null?void 0:f.bind(Y))}}};
u$.prototype.attached=function(){_.yu(_.CB.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
u$.prototype.detached=function(){_.$P(_.CB.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.z([_.QC()],u$);_.mi5=[u$.prototype];var o3j,IMd=function(){return o3j!==void 0?o3j:o3j=document.createElement("template")};
document.head.appendChild(IMd().content);var k59;var lMK=document.head,hrd=lMK.appendChild,xi8;if(k59===void 0){var q4U=document.createElement("template");_.B(q4U,"\x3c!--css-build:shady--\x3e");q4U.content.insertBefore(IMd().content.cloneNode(!0),q4U.content.firstChild);k59=q4U}xi8=k59;hrd.call(lMK,xi8.content);var sTj,QT$=function(){return sTj!==void 0?sTj:sTj=document.createElement("template")};
document.head.appendChild(QT$().content);var v3_;var Pkk=document.head,ZJQ=Pkk.appendChild,BNj;if(v3_===void 0){var n3d=document.createElement("template");_.B(n3d,"\x3c!--css-build:shady--\x3e");n3d.content.insertBefore(QT$().content.cloneNode(!0),n3d.content.firstChild);v3_=n3d}BNj=v3_;ZJQ.call(Pkk,BNj.content);var Mpk;_.S9("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.S9("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Mpk=_.q("web_button_rework")&&_.Wf("BUTTON_REWORK")||_.q("web_button_rework_with_live");_.YI=function(){var Y=_.F.apply(this,arguments)||this;Y.isPressed=!1;Y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return Y};
_.P(_.YI,_.F);_.g=_.YI.prototype;_.g.created=function(){this.showTooltips=!0};
_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.onHintIdChanged=function(){var Y=this,b,w,V=(b=this.ytButtonBehavior.data)==null?void 0:(w=b.hint)==null?void 0:w.hintRenderer;if(V&&V.hintId){b=_.De(this.hostElement,"yt-get-opened-popups-action");b=(b&&b.length===1?b[0]:[]).length>0;var H=null;V.hintId!=="sponsor-pre-purchase"||b?V.hintId.startsWith("sponsor-post-purchase")&&!b?H=YBQ("membership-manage"):V.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!b&&(H=YBQ("membership-freebie-join")):H=YBQ("membership-join");H&&_.Lb.addLowPriorityJob(function(){for(var f=
_.N(H),E=f.next();!E.done;E=f.next())Y.ytComponentBehavior.resolveCommand(E.value)})}};
_.g.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.g.onYtNavigate=function(Y){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);b&&(Y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.g.onYtServiceRequestSent=function(Y,b){this.handleServiceRequestActions(b);_.Ua(this.hostElement,"yt-service-request-sent-button-renderer")};
_.g.onServiceRequestCompleted=function(Y,b){this.handleServiceRequestActions(b);_.Ua(this.hostElement,"yt-service-request-completed-button-renderer")};
_.g.updateButton=function(Y){var b;if(Y=(b=_.v(Y,S0t))==null?void 0:b.updatedButton)this.ytButtonBehavior.data=_.v(Y,_.Wa)};
_.g.handleUpdateButtonAction=function(Y){var b=this.ytButtonBehavior.data;b.targetId&&Y.updateButtonAction.targetId&&b.targetId===Y.updateButtonAction.targetId&&this.updateButton(Y)};
_.g.handleServiceRequestActions=function(Y){if(Y=Y.actions)for(var b=0;b<Y.length;b++)this.updateButton(Y[b])};
_.up.Object.defineProperties(_.YI,{template:{configurable:!0,enumerable:!0,get:function(){if(DiC===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);DiC=Y}Y=DiC;return Y}}});
_.YI.prototype.onServiceRequestCompleted=_.YI.prototype.onServiceRequestCompleted;_.YI.prototype.onYtServiceRequestSent=_.YI.prototype.onYtServiceRequestSent;_.YI.prototype.onYtNavigate=_.YI.prototype.onYtNavigate;_.YI.prototype.onPressedStateChanged=_.YI.prototype.onPressedStateChanged;_.YI.prototype.onHintIdChanged=_.YI.prototype.onHintIdChanged;_.z([_.R(),_.K("design:type",Object)],_.YI.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],_.YI.prototype,"isPressed",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],_.YI.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.r2C.YtButtonBehavior),_.K("design:type",Object)],_.YI.prototype,"ytButtonBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],_.YI.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],_.YI.prototype,"ytComponentBehavior",void 0);
_.z([_.n(Zi.YtRenderButtonBehavior),_.K("design:type",Object)],_.YI.prototype,"ytRenderButtonBehavior",void 0);_.z([_.lr("data.hint.hintRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],_.YI.prototype,"onHintIdChanged",null);_.z([_.lr("isPressed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],_.YI.prototype,"onPressedStateChanged",null);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],_.YI.prototype,"onYtNavigate",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],_.YI.prototype,"onYtServiceRequestSent",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],_.YI.prototype,"onServiceRequestCompleted",null);_.z([_.S({is:"ytd-button-renderer",disableElementRegistration:Mpk})],_.YI);var bh=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.P(bh,_.F);_.g=bh.prototype;_.g.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"}}}}};
_.g.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.g.dataChanged=function(){if(this.data&&this.data.sticker){var Y=_.NR(this.data.sticker.thumbnails,this.stickerWidth);Y||_.eFL(Y).thenCatch(function(){_.Sk(new _.BQ("Failed to load Super Sticker with url",Y))})}};
_.g.computeAuthorPhotoSize=function(Y){return(Y==null?0:Y.isV2Style)?32:40};
_.g.computeIsV2Style=function(Y){return(Y==null?0:Y.isV2Style)?!0:!1};
_.g.onStickerLoaded=function(Y){var b,w,V;(b=_.uW(Y))==null||(w=b.parentNode)==null||(V=w.classList)==null||V.add("sticker-loaded")};
_.g.computeNoveltyImageWidth=function(Y){var b,w;if(Y==null?0:(b=Y.headerOverlayImage)==null?0:(w=b.thumbnails)==null?0:w.length){b=Y.headerOverlayImage.thumbnails[0];var V,H;if((V=Y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(H=V.loggingDirectives)==null?0:H.trackingParams){var f,E;OGI((f=Y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(E=f.loggingDirectives)==null?void 0:E.trackingParams)}return b.width||0}return 0};
_.g.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.g.updateStickerStyles=function(){var Y=this.data;Y&&(Y={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(Y.authorNameTextColor)},
_.m_(this.hostElement,Y))};
_.g.onBuyButtonClick=function(){var Y,b=_.v((Y=this.data)==null?void 0:Y.buyButton,_.Wa);b&&!jWG(b.command)&&this.ytRendererBehavior.logExplicitClick(b)};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.up.Object.defineProperties(bh.prototype,{stickerWidth:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
stickerHeight:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.stickerDisplayWidth||96}},
hasHeartButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.creatorHeartButton}},
hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
bh.prototype.updateStickerStyles=bh.prototype.updateStickerStyles;bh.prototype.isDeletedChanged=bh.prototype.isDeletedChanged;bh.prototype.onStickerLoaded=bh.prototype.onStickerLoaded;bh.prototype.dataChanged=bh.prototype.dataChanged;_.z([_.n(r8o.YtPdgLiveChatItemBehavior),_.K("design:type",Object)],bh.prototype,"ytPdgLiveChatItemBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],bh.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],bh.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bh.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],bh.prototype,"data",void 0);
_.z([_.R({computed:"computeAuthorPhotoSize(data)"}),_.K("design:type",Number)],bh.prototype,"authorPhotoSize",void 0);_.z([_.R(),_.K("design:type",Boolean)],bh.prototype,"isDeleted",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],bh.prototype,"dashboardMoneyFeed",void 0);_.z([_.R({computed:"computeNoveltyImageWidth(data)"}),_.K("design:type",Number)],bh.prototype,"noveltyWidth",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bh.prototype,"modern",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.K("design:type",Boolean)],bh.prototype,"isV2Style",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bh.prototype,"dataChanged",null);_.z([_.kZ("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],bh.prototype,"onStickerLoaded",null);
_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],bh.prototype,"stickerWidth",null);_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],bh.prototype,"stickerHeight",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],bh.prototype,"hasHeartButton",null);_.z([_.t("data","dashboardMoneyFeed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],bh.prototype,"hideLowerBumper",null);
_.z([_.lr("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bh.prototype,"isDeletedChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bh.prototype,"updateStickerStyles",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],bh);
_.a(bh,"yt-live-chat-paid-sticker-renderer",function(){if(XGK===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-paid-sticker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_live_chat_paid_sticker_renderer.yt.live.chat.paid.sticker.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-info" tabindex="0" class="style-scope yt-live-chat-paid-sticker-renderer"><template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-paid-sticker-renderer" height="[[authorPhotoSize]]" thumbnail="[[data.authorPhoto]]" width="[[authorPhotoSize]]"></yt-img-shadow></template><template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></template><template is="dom-if" if="[[data.headerOverlayImage]]" restamp="" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="overlay-image" thumbnail="[[data.headerOverlayImage]]" width="[[noveltyWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></template><div id="content" class="style-scope yt-live-chat-paid-sticker-renderer"><span id="timestamp" hidden$="[[!data.timestampUsec]]" class="style-scope yt-live-chat-paid-sticker-renderer">[[timestampString]]</span><div id="content-primary-column" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="author-name-chip" is-deleted$="[[isDeleted]]" hidden$="[[!data.authorName]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" dashboard-money-feed="[[dashboardMoneyFeed]]" disable-highlighting="" single-line="" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-live-chat-author-chip></div><span id="price-column" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-formatted-string id="purchase-amount-chip" text="[[data.purchaseAmountText]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string></span></div></div></div><div id="sticker-container" hidden$="[[!data.sticker]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-img-shadow id="sticker" height="[[stickerHeight]]" hidden$="[[!data.sticker]]" notify-on-loaded="" tabindex="0" thumbnail="[[data.sticker]]" width="[[stickerWidth]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-img-shadow></div><yt-formatted-string id="dashboard-deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-formatted-string><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-paid-sticker-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-paid-sticker-renderer"></yt-icon></yt-icon-button></div><div id="gradient-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="gradient" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="creator-heart-button" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div><div id="lower-bumper" hidden$="[[hideLowerBumper]]" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="buy-flow-button" hidden$="[[!data.buyButton]]" on-click="onBuyButtonClick" class="style-scope yt-live-chat-paid-sticker-renderer"></div><div id="inline-action-button-container" class="style-scope yt-live-chat-paid-sticker-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-paid-sticker-renderer"></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Uit===void 0&&(Uit=document.createElement("template"));var V=Uit;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);XGK=Y}Y=XGK;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var er5;var pG5;var OJd,tpj=function(){return OJd!==void 0?OJd:OJd=document.createElement("template")};
document.head.appendChild(tpj().content);var Rr_,diK=function(){return Rr_!==void 0?Rr_:Rr_=document.createElement("template")};
document.head.appendChild(diK().content);var FhQ;var Lho,S4k=function(){return Lho!==void 0?Lho:Lho=document.createElement("template")};
document.head.appendChild(S4k().content);var aMK;var rv$=document.head,zr$=rv$.appendChild,Wh9;if(aMK===void 0){var Khd=document.createElement("template");_.B(Khd,"\x3c!--css-build:shady--\x3e");Khd.content.insertBefore(S4k().content.cloneNode(!0),Khd.content.firstChild);aMK=Khd}Wh9=aMK;zr$.call(rv$,Wh9.content);var iJk=document.head,Avr=iJk.appendChild,CkC;if(FhQ===void 0){var w0=document.createElement("template");_.B(w0,"\x3c!--css-build:shady--\x3e");w0.content.insertBefore(diK().content.cloneNode(!0),w0.content.firstChild);w0.content.insertBefore(tpj().content.cloneNode(!0),w0.content.firstChild);FhQ=w0}CkC=FhQ;Avr.call(iJk,CkC.content);var V3=function(){var Y=_.s6.apply(this,arguments)||this;Y.focusedIndex=0;Y.verticalOffset=0;Y.verticalAlign="top";Y.dynamicAlign=!0;return Y};
_.P(V3,_.s6);V3.prototype.emojiUrl=function(Y){Y=_.r9(this.emojiManager,Y);if(!Y)return"";var b;Y=(b=Y.image)==null?void 0:b.thumbnails;return _.NR(Y,24)||""};
var yvI=function(Y){var b;Y.emojiVariants&&(b=Y.data)!=null&&b.target&&_.TC(Y,function(){Y.set("verticalOffset",-1*Y.hostElement.clientHeight);var w=_.E6(Y.hostElement).querySelector("img");w&&w.focus()})};
_.g=V3.prototype;_.g.onKeyboardEnter=function(){};
_.g.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.g.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.g.onKeyDown=function(Y){switch(Y.keyCode){case 13:this.onKeyboardEnter();Y.preventDefault();break;case 40:this.changeFocus(1);Y.preventDefault();break;case 38:this.changeFocus(-1);Y.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.g.onYtEmojiSelect=function(Y){var b=this,w,V,H,f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1)return V=(w=b.data)==null?void 0:w.emoji,E=((H=V)==null?void 0:H.stickyPrefId)||((f=V)==null?void 0:f.emojiId),X=(U=Y.detail)==null?void 0:U.emojiId,E&&X&&E!==X?_.D(k,(I=b.emojiManager)==null?void 0:J7Q(I,V,X),2):k.return();_.Xx(b.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[V,X]);_.om(k)})};
_.g.changeFocus=function(Y){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+Y+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(Y=_.E6(this.hostElement).querySelector("#variants"))&&Y.children[this.focusedIndex].focus())};
_.up.Object.defineProperties(V3.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
V3.prototype.onYtEmojiSelect=V3.prototype.onYtEmojiSelect;V3.prototype.onKeyDown=V3.prototype.onKeyDown;V3.prototype.onEmojiVariantsChanged=V3.prototype.onEmojiVariantsChanged;V3.prototype.onVerticalOffsetOrPositionTargetChanged=V3.prototype.onVerticalOffsetOrPositionTargetChanged;_.z([_.n(_.TQ),_.K("design:type",Object)],V3.prototype,"ironOverlayBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],V3.prototype,"data",void 0);_.z([_.R(),_.K("design:type",_.aG)],V3.prototype,"emojiManager",void 0);
_.z([_.R(),_.K("design:type",Object)],V3.prototype,"emojiVariants",void 0);_.z([_.R(),_.K("design:type",Object)],V3.prototype,"focusedIndex",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],V3.prototype,"positionTarget",null);_.z([_.R({reflectToAttribute:!0}),_.t("verticalOffset","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],V3.prototype,"isPositioned",null);_.z([_.R(),_.K("design:type",Object)],V3.prototype,"verticalOffset",void 0);
_.z([_.R(),_.K("design:type",Object)],V3.prototype,"verticalAlign",void 0);_.z([_.R(),_.K("design:type",Object)],V3.prototype,"dynamicAlign",void 0);_.z([_.lr("verticalOffset","positionTarget"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V3.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.z([_.lr("emojiVariants"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],V3.prototype,"onEmojiVariantsChanged",null);
_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],V3.prototype,"onKeyDown",null);_.z([_.kZ("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype",Promise)],V3.prototype,"onYtEmojiSelect",null);_.z([_.QC()],V3);var $iC=[V3.prototype];var jTI;var G5$;var TNk=/medium-light|medium-dark|light|medium|dark/,Jv9=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,uNj=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Hw=function(){var Y=_.F.apply(this,arguments)||this;Y.userSelection={left:null,right:null};Y.scrollAction="lock";Y.isEmojiDraftInProgress=!1;return Y};
_.P(Hw,_.F);_.g=Hw.prototype;_.g.onClick=function(Y){Y=_.uW(Y);Y instanceof HTMLImageElement&&this.selectOrUpdateEmoji(Y)};
_.g.selectOrUpdateEmoji=function(Y){var b=Y.getAttribute("selection");b&&(b==="default"?_.Ua(this.hostElement,"yt-emoji-select",_.r9(this.emojiManager,Y.id)):b==="left"?this.userSelection=Object.assign({},this.userSelection,{left:Y.src}):b==="right"?this.userSelection=Object.assign({},this.userSelection,{right:Y.src}):b==="user"&&this.userSelection.left&&this.userSelection.right&&_.Ua(this.hostElement,"yt-emoji-select",_.r9(this.emojiManager,Y.id)))};
_.g.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.g.onMultiSelectorThumbnailRowChanged=function(){var Y,b,w;((Y=this.data)==null?0:(b=Y.emoji)==null?0:(w=b.multiSelectorThumbnailRow)==null?0:w.length)&&this.openSelector()};
_.g.getThumbnailFromEmojiRow=function(Y){var b,w;return(Y==null?void 0:(b=Y.thumbnails)==null?void 0:(w=b[0])==null?void 0:w.url)||""};
_.g.getEmojiAltTextForPartialSelector=function(Y){var b;return((b=this.getThumbnailFromEmojiRow(Y).match(Jv9))==null?void 0:b[0])||""};
_.g.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.g.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.g.getRowSelection=function(Y){return["left","right"][Y]};
_.g.getIdFromComposedEmoji=function(Y){return(Y==null?void 0:Y.emojiId)||""};
_.g.getEmojiFromPartialSelections=function(Y,b){if(!Y&&!b)return null;var w,V,H=(w=this.data)==null?void 0:(V=w.emoji)==null?void 0:V.variantIds;if(!H||!H.length)return null;var f;Y=(f=Y.match(TNk))==null?void 0:f[0];var E;b=(E=b.match(TNk))==null?void 0:E[0];if(!Y||!b)return null;var U=uNj.get(Y);E=uNj.get(b);if(U===E){E=Array.from(uNj.values()).filter(function(I){return I!==U}).join("|");
var X=new RegExp("^((?!("+E+")).)*"+U+"$")}else X=new RegExp(U+".*"+E);return(H=H.find(function(I){return X.test(I)}))&&_.r9(this.emojiManager,H)||null};
_.g.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var Y,b=this.ytEmojiSelectorBehavior.emojiUrl(((Y=this.data.emoji)==null?void 0:Y.emojiId)||"");_.E6(this.hostElement).querySelector('[selection="user"]').src.includes(b)||(this.isEmojiDraftInProgress=!0)}};
_.g.onDomChange=function(){yvI(this.ytEmojiSelectorBehavior)};
_.g.getFocusableElements=function(){return _.E6(this.hostElement).querySelectorAll("img").filter(function(Y){return Y.getAttribute("role")==="option"})};
_.g.changeFocus=function(Y){var b=this.getFocusableElements();b!=null&&b.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+Y+b.length)%b.length,this.ytEmojiSelectorBehavior.focusedIndex<b.length&&(Y=b[this.ytEmojiSelectorBehavior.focusedIndex])&&Y.focus())};
_.g.onKeyboardEnter=function(){var Y=this.getFocusableElements();Y!=null&&Y.length&&(Y=Y[this.ytEmojiSelectorBehavior.focusedIndex])&&Y instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(Y),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.up.Object.defineProperties(Hw.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var Y=this,b,w,V;return this.emojiManager&&((b=this.data)==null?0:(w=b.emoji)==null?0:(V=w.variantIds)==null?0:V.length)?this.data.emoji.variantIds.map(function(H){return!!H&&_.r9(Y.emojiManager,H)}).filter(function(H){return!!H}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var Y,b=(Y=this.userSelection)==null?void 0:Y.left,w;Y=(w=this.userSelection)==null?void 0:w.right;return b&&Y?this.getEmojiFromPartialSelections(b,Y):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.composedEmojiSelection)==null?0:Y.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var b;Y=(b=this.userSelection)==null?void 0:b.left;var w;b=(w=this.userSelection)==null?void 0:w.right;if(!Y&&!b){var V;return this.ytEmojiSelectorBehavior.emojiUrl(((V=this.data.emoji)==null?void 0:V.emojiId)||"")}return Y&&!b?Y:!Y&&b?b:""}}});
Hw.prototype.onMultiSelectorThumbnailRowChanged=Hw.prototype.onMultiSelectorThumbnailRowChanged;Hw.prototype.onClick=Hw.prototype.onClick;_.z([_.n(_.TQ),_.K("design:type",Object)],Hw.prototype,"ironOverlayBehavior",void 0);_.z([_.n($iC),_.K("design:type",Object)],Hw.prototype,"ytEmojiSelectorBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Hw.prototype,"data",void 0);_.z([_.R(),_.K("design:type",_.aG)],Hw.prototype,"emojiManager",void 0);
_.z([_.R(),_.K("design:type",Object)],Hw.prototype,"userSelection",void 0);_.z([_.R(),_.K("design:type",Object)],Hw.prototype,"scrollAction",void 0);_.z([_.R(),_.K("design:type",Object)],Hw.prototype,"isEmojiDraftInProgress",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hw.prototype,"emojiVariants",null);_.z([_.t("data","userSelection"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hw.prototype,"composedEmojiSelection",null);
_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],Hw.prototype,"onClick",null);_.z([_.lr("data.emoji.multiSelectorThumbnailRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hw.prototype,"onMultiSelectorThumbnailRowChanged",null);_.z([_.t("data","userSelection","composedEmojiSelection"),_.K("design:type",String),_.K("design:paramtypes",[])],Hw.prototype,"draftEmojiUrl",null);
_.z([_.FM({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Hw);
_.a(Hw,"yt-emoji-multi-person-selector",function(){if(G5$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-multi-person-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_multi_person_selector.yt.emoji.multi.person.selector.css.js--\x3e<div id="options" class="style-scope yt-emoji-multi-person-selector">\n  <template is="dom-repeat" id="repeat" items="[[data.emoji.multiSelectorThumbnailRow]]" notify-dom-change="" as="row" index-as="rowIndex" on-dom-change="onDomChange" class="style-scope yt-emoji-multi-person-selector">\n    <div class="variant-thumbnail-row style-scope yt-emoji-multi-person-selector">\n      <template is="dom-repeat" id="thumbnail-row-repeat" items="[[row.thumbnails]]" as="thumbnail" class="style-scope yt-emoji-multi-person-selector">\n        \n        <img height="24" role="option" alt="[[getEmojiAltTextForPartialSelector(thumbnail)]]" src$="[[getThumbnailFromEmojiRow(thumbnail)]]" tabindex="-1" width="24" selection$="[[getRowSelection(rowIndex)]]" class="style-scope yt-emoji-multi-person-selector">\n      </template>\n    </div>\n  </template>\n</div>\n<div id="selections" class="style-scope yt-emoji-multi-person-selector">\n\n  <img id="[[data.emoji.emojiId]]" class="default-selection style-scope yt-emoji-multi-person-selector" alt="[[data.emoji.emojiId]]" height="36" role="option" src$="[[emojiUrl(data.emoji.emojiId)]]" tabindex="-1" width="36" selection="default">\n  <img id$="[[getIdFromComposedEmoji(composedEmojiSelection)]]" class="user-selection style-scope yt-emoji-multi-person-selector" is-draft$="[[isEmojiDraftInProgress]]" alt="[[getEmojiAltTextForDraftEmoji(composedEmojiSelection)]]" height="36" role$="[[getDraftEmojiAriaRole(composedEmojiSelection)]]" src$="[[draftEmojiUrl]]" selection="user" tabindex="-1" width="36" on-load="onUserSelectionSrcLoad">\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;jTI===void 0&&(jTI=document.createElement("template"));var V=jTI;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);G5$=Y}Y=G5$;return Y},{mode:2});var Y8d;var bGk;var g0=function(){var Y=_.F.apply(this,arguments)||this;Y.tooltip_=null;return Y};
_.P(g0,_.F);_.g=g0.prototype;_.g.dataChanged_=function(){var Y;if((Y=this.data)==null?0:Y.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.E6(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.DT)(this.tooltip_).textContent=this.data.tooltip};
_.g.computeTargetId=function(){var Y;return((Y=this.data)==null?void 0:Y.targetId)||""};
_.g.computeId_=function(Y){return Y};
_.g.computeIcon_=function(Y){return _.IR(Y)};
_.g.onTap_=function(){this.active=!this.active;_.Ua(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.g.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("active-changed",this.active))};
_.up.Object.defineProperties(g0.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var Y,b;if((Y=this.data)==null?0:(b=Y.icon)==null?0:b.iconType)return this.data.icon.iconType==="SUPER_STICKER";var w,V;return((w=this.data)==null?void 0:(V=w.icon)==null?void 0:V.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
g0.prototype.activeChangedForBinding=g0.prototype.activeChangedForBinding;g0.prototype.dataChanged_=g0.prototype.dataChanged_;_.z([_.n(_.CZ.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],g0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],g0.prototype,"data",void 0);_.z([_.R({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.K("design:type",String)],g0.prototype,"id",void 0);
_.z([_.R({computed:"computeTargetId(data.targetId)"}),_.K("design:type",String)],g0.prototype,"targetId",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],g0.prototype,"active",void 0);_.z([_.R({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.K("design:type",String)],g0.prototype,"icon",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g0.prototype,"dataChanged_",null);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],g0.prototype,"iconFilled",null);_.z([_.lr("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g0.prototype,"activeChangedForBinding",null);_.z([_.FM({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],g0);
_.a(g0,"yt-emoji-picker-category-button-renderer",function(){if(bGk===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_button_renderer.yt.emoji.picker.category.button.renderer.css.js--\x3e<yt-icon-button id="button" label="[[data.accessibility.accessibilityData.label]]" on-tap="onTap_" class="style-scope yt-emoji-picker-category-button-renderer">\n  <yt-icon default-to-filled="[[iconFilled]]" icon="[[icon]]" class="style-scope yt-emoji-picker-category-button-renderer"></yt-icon>\n</yt-icon-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Y8d===void 0&&(Y8d=document.createElement("template"));var V=Y8d;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);bGk=Y}Y=bGk;return Y},{mode:2});var weK;var VN9;var fU=function(){var Y=_.F.apply(this,arguments)||this;Y.ariaLabel=null;Y.ariaActivedescendant=null;Y.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};Y.JSC$12106_ignoreNextFocus_=!1;Y.longPressTimeoutId=-1;return Y};
_.P(fU,_.F);_.g=fU.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.g.emojiChanged_=function(){this.changeFocus_(0,!1);for(var Y=_.Qd(),b=0;b<this.emoji.length;b++){var w={veType:88013,elementIndex:b},V=this.emoji[b];V.isCustomEmoji&&(V=document.querySelector(("#"+V.emojiId).replace("/","\\/")))&&(w=_.sQ(Y,w))&&(V.visualElement=w)}};
_.g.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.g.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.g.emojiSkinToneChanged_=function(Y){this.skinTone=Y};
_.g.dataChanged=function(){this.data&&this.data.emojiData&&$Lk(this.emojiManager,this.data.emojiData)};
_.g.emojiUrl=function(Y){Y=this.getEmoji(Y);if(!Y)return"";var b;Y=(b=Y.image)==null?void 0:b.thumbnails;return _.NR(Y,24)||""};
_.g.emojiAlt=function(Y){var b=this.get("image.accessibility.accessibilityData.label",Y);return b?b:Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId};
_.g.emojiAriaLabel=function(Y){return Y.shortcuts?Y.shortcuts[0]:""};
_.g.emojiAriaSelected=function(Y,b,w){return Y&&w==b?"true":"false"};
_.g.getEmoji=function(Y){if(this.emojiManager)return this.shouldUseStickyPreferences?GN$(this.emojiManager,Y):zp(this.emojiManager,Y)};
_.g.computeId_=function(Y){return Y.categoryId||""};
_.g.computeEmoji=function(Y){var b=this;return this.emojiManager?Y.emojiIds?Y.emojiIds.map(function(w){return w?_.r9(b.emojiManager,w):null}).filter(pjg):Y.emojiData?Y.emojiData.map(function(w){var V=!!w.emojiId&&_.r9(b.emojiManager,w.emojiId);
return V?Object.assign({},V,w):null}).filter(pjg):[]:[]};
_.g.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.g.computeAriaLabel_=function(Y){return _.Tx(Y)};
_.g.computeAriaActivedescendant_=function(Y,b){return Y&&Y[b]?Y[b].emojiId||"":""};
_.g.handleLongPressEmojiWithVariants=function(Y,b){this.changeFocusToEmoji(Y.emojiId,!1);this.openVariantSelector(Y,b)};
_.g.onMouseDown=function(Y){var b=this;this.hostElement!==document.activeElement&&(this.JSC$12106_ignoreNextFocus_=!0);if(Y.button===0){var w=_.uW(Y);if(w instanceof HTMLImageElement){var V=_.E6(this.hostElement).querySelector("#repeat").itemForElement(w);this.emojiContainsVariants(V)&&(this.longPressTimeoutId=setTimeout(function(){b.handleLongPressEmojiWithVariants(V,w)},500))}}};
_.g.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.g.onFocus=function(){this.JSC$12106_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12106_ignoreNextFocus_=!1};
_.g.onBlur_=function(){this.showFocus=!1};
_.g.emojiContainsVariants=function(Y){return!!(Y&&Y.variantIds&&Y.variantIds.length)};
_.g.onClick=function(Y){clearTimeout(this.longPressTimeoutId);Y=_.uW(Y);if(Y instanceof HTMLImageElement){var b=Y.id;this.changeFocusToEmoji(b,!1);var w=this.getEmoji(b),V;if(V=this.shouldUseStickyPreferences&&this.emojiContainsVariants(w)){var H;V=!((H=this.emojiManager.emojiMap[b])!=null&&H.stickyPrefId)}V?(H=_.E6(this.hostElement).querySelector("#repeat").itemForElement(Y),this.openVariantSelector(H,Y)):_.Ua(this.hostElement,"yt-emoji-select",w)}};
_.g.isActiveEmojiWithVariants=function(Y,b){return Y&&b?b.stickyPrefId?Y===b.stickyPrefId:Y===b.emojiId:!1};
_.g.onCloseEmojiVariantSelector=function(Y){this.activeEmojiWithVariantsId===Y&&(this.activeEmojiWithVariantsId="")};
_.g.onMouseOver_=function(Y){Y=_.uW(Y);Y instanceof HTMLImageElement&&_.Ua(this.hostElement,"yt-emoji-hover",_.r9(this.emojiManager,Y.id))};
_.g.changeFocus_=function(Y,b){this.focusedIndex=(this.focusedIndex+Y+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(Y=this.emoji[this.focusedIndex],b&&(this.showFocus=!0,_.E6(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Ua(this.hostElement,"yt-emoji-hover",Y)))};
_.g.changeFocusToEmoji=function(Y,b){if(Y){var w=this.emoji.findIndex(function(V){return V.emojiId===Y});
w!==-1&&this.changeFocus_(w-this.focusedIndex,b)}};
_.g.onKeyDown_=function(Y){switch(Y.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var b=this.emoji[this.focusedIndex];if(b&&b.emojiId){if(this.emojiContainsVariants(b)){var w=_.E6(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(b,w)}else _.Ua(this.hostElement,"yt-emoji-select",zp(this.emojiManager,b.emojiId)),this.hostElement.focus();Y.preventDefault()}}break;case 40:this.changeFocus_(1,!0);Y.preventDefault();break;case 38:this.changeFocus_(-1,!0),
Y.preventDefault()}};
_.g.onEmojiStickyPreferenceChanged=function(Y,b){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&Y.emojiId&&Y.variantIds&&Y.variantIds.includes(b)&&this.activeEmojiWithVariantsId!==b&&this.setStickyEmojiPreference(Y.emojiId,b)};
_.g.openVariantSelector=function(Y,b){this.activeEmojiWithVariantsId=Y.stickyPrefId||Y.emojiId||"";_.Ua(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:Y,target:b})};
_.g.setStickyEmojiPreference=function(Y,b){if(this.data){var w=this.emoji.findIndex(function(H){return H.emojiId===Y});
if(w!==-1){var V=this.emoji[w];V.stickyPrefId=b;this.set("emoji."+w,Object.assign({},V));this.activeEmojiWithVariantsId=b}}};
fU.prototype.onKeyDown_=fU.prototype.onKeyDown_;fU.prototype.onMouseOver_=fU.prototype.onMouseOver_;fU.prototype.onClick=fU.prototype.onClick;fU.prototype.onBlur_=fU.prototype.onBlur_;fU.prototype.onFocus=fU.prototype.onFocus;fU.prototype.onMouseUp=fU.prototype.onMouseUp;fU.prototype.onMouseDown=fU.prototype.onMouseDown;fU.prototype.dataChanged=fU.prototype.dataChanged;fU.prototype.disableIncrementalLoadingChanged_=fU.prototype.disableIncrementalLoadingChanged_;fU.prototype.emojiManagerChanged_=fU.prototype.emojiManagerChanged_;
fU.prototype.emojiChanged_=fU.prototype.emojiChanged_;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],fU.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],fU.prototype,"data",void 0);_.z([_.R({computed:"computeId_(data)"}),_.K("design:type",String)],fU.prototype,"id",void 0);_.z([_.R({computed:"computeEmoji(data)"}),_.K("design:type",Array)],fU.prototype,"emoji",void 0);_.z([_.R(),_.K("design:type",Number)],fU.prototype,"skinTone",void 0);
_.z([_.R(),_.K("design:type",_.aG)],fU.prototype,"emojiManager",void 0);_.z([_.R(),_.K("design:type",Boolean)],fU.prototype,"disableIncrementalLoading",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],fU.prototype,"focusedIndex",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],fU.prototype,"showFocus",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.K("design:type",Object)],fU.prototype,"ariaLabel",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.K("design:type",Object)],fU.prototype,"ariaActivedescendant",void 0);_.z([_.R({value:60}),_.K("design:type",Number)],fU.prototype,"domRepeatTargetFramerate",void 0);_.z([_.R({value:1}),_.K("design:type",Number)],fU.prototype,"domRepeatInitialCount",void 0);_.z([_.R({value:""}),_.K("design:type",String)],fU.prototype,"activeEmojiWithVariantsId",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],fU.prototype,"shouldUseStickyPreferences",void 0);_.z([_.lr("emoji"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fU.prototype,"emojiChanged_",null);_.z([_.lr("emojiManager"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fU.prototype,"emojiManagerChanged_",null);
_.z([_.lr("disableIncrementalLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fU.prototype,"disableIncrementalLoadingChanged_",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fU.prototype,"dataChanged",null);_.z([_.kZ("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],fU.prototype,"onMouseDown",null);
_.z([_.kZ("mouseup"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fU.prototype,"onMouseUp",null);_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fU.prototype,"onFocus",null);_.z([_.kZ("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fU.prototype,"onBlur_",null);
_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],fU.prototype,"onClick",null);_.z([_.kZ("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],fU.prototype,"onMouseOver_",null);_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],fU.prototype,"onKeyDown_",null);
_.z([_.FM({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],fU);
_.a(fU,"yt-emoji-picker-category-renderer",function(){if(VN9===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_category_renderer.yt.emoji.picker.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-category-renderer"></yt-formatted-string><div class$="[[data.categoryType]] style-scope yt-emoji-picker-category-renderer" id="emoji" role="listbox" aria-label="[[computeAriaLabel_(data.title)]]"><template is="dom-repeat" id="repeat" items="[[emoji]]" initial-count="[[domRepeatInitialCount]]" target-framerate="[[domRepeatTargetFramerate]]" class="style-scope yt-emoji-picker-category-renderer"><img id="[[item.emojiId]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" contains-variants$="[[emojiContainsVariants(item)]]" height="24" is-active-emoji-with-variants$="[[isActiveEmojiWithVariants(activeEmojiWithVariantsId, item)]]" loading$="[[emojiLoading()]]" role="option" src$="[[emojiUrl(item.emojiId, skinTone)]]" width="24" class="style-scope yt-emoji-picker-category-renderer"></template></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;weK===void 0&&(weK=document.createElement("template"));var V=weK;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);VN9=Y}Y=VN9;return Y},{mode:2});var HGo;var g9_;var f$U;var NDI;var NT=function(){var Y=_.F.apply(this,arguments)||this;Y.ariaLabel=null;Y.ariaActivedescendant=null;Y.getFormattedStringRawText=_.Tx;Y.JSC$12112_ignoreNextFocus_=!1;return Y};
_.P(NT,_.F);_.g=NT.prototype;_.g.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")};
_.g.emojiUrl=function(Y){var b,w;Y=(b=zp(this.emojiManager,Y,!0))==null?void 0:(w=b.image)==null?void 0:w.thumbnails;return _.NR(Y,24)||""};
_.g.emojiAlt=function(Y){var b=this.get("image.accessibility.accessibilityData.label",Y);return b?b:Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId};
_.g.emojiId=function(Y){return"emoji"+Y};
_.g.computeId_=function(Y){return Y.categoryId||""};
_.g.computeAriaActivedescendant_=function(Y){return this.emoji&&Y<this.emoji.length?this.emojiId(Y):""};
_.g.emojiChanged_=function(){this.changeFocus_(0,!1);for(var Y=_.Qd(),b=0;b<this.emoji.length;b++){var w={veType:88013,elementIndex:b},V=this.emoji[b];V.isCustomEmoji&&(V=document.querySelector(("#"+V.emojiId).replace("/","\\/")))&&(w=_.sQ(Y,w))&&(V.visualElement=w)}};
_.g.computeEmoji_=function(Y){var b=this;return this.emojiManager?Y.emojiIds.map(function(w){return _.r9(b.emojiManager,w,!0)}).filter(Ovv):[]};
_.g.titleOffsetChanged_=function(){var Y=this.hostElement.getBoundingClientRect(),b=_.E6(this.hostElement).querySelector("#title").getBoundingClientRect();Y=Math.max(0,Math.min(this.titleOffset,Y.height-b.height));_.E6(this.hostElement).querySelector("#title").style.top=Y+"px"};
_.g.onEmojiMouseOver_=function(Y){_.Ua(this.hostElement,"yt-emoji-hover",Y.model.item)};
_.g.onEmojiTap_=function(Y){this.data.command&&(Y=riK(_.fH().resolve(_.HQ(iF)),this.data.command,Y),_.Ua(this.hostElement,"yt-navigate",Y))};
_.g.emojiAriaLabel=function(Y){return Y.shortcuts[0]};
_.g.emojiAriaSelected=function(Y,b,w){return Y&&w==b?"true":"false"};
_.g.changeFocus_=function(Y,b){var w=this.emoji.length;this.focusedIndex=(this.focusedIndex+Y+w)%w;Y=this.emoji[this.focusedIndex];if(b){var V;(V=_.E6(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||V.scrollIntoView(!1);_.Ua(this.hostElement,"yt-emoji-hover",Y)}};
_.g.onMouseDown_=function(){this.JSC$12112_ignoreNextFocus_=!0};
_.g.onFocus_=function(){this.JSC$12112_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12112_ignoreNextFocus_=!1};
_.g.onBlur_=function(){this.showFocus=!1};
_.g.onKeyDown_=function(Y){switch(Y.keyCode){case 13:this.onEmojiTap_(Y);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);Y.preventDefault();break;case 38:this.changeFocus_(-1,!0),Y.preventDefault()}};
NT.prototype.onKeyDown_=NT.prototype.onKeyDown_;NT.prototype.onBlur_=NT.prototype.onBlur_;NT.prototype.onFocus_=NT.prototype.onFocus_;NT.prototype.onMouseDown_=NT.prototype.onMouseDown_;NT.prototype.onEmojiTap_=NT.prototype.onEmojiTap_;NT.prototype.titleOffsetChanged_=NT.prototype.titleOffsetChanged_;NT.prototype.emojiChanged_=NT.prototype.emojiChanged_;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],NT.prototype,"ytComponentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],NT.prototype,"data",void 0);_.z([_.R({computed:"computeId_(data)"}),_.K("design:type",String)],NT.prototype,"id",void 0);_.z([_.R({computed:"computeEmoji_(data)"}),_.K("design:type",Array)],NT.prototype,"emoji",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],NT.prototype,"titleOffset",void 0);_.z([_.R({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.K("design:type",Object)],NT.prototype,"ariaLabel",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.K("design:type",Object)],NT.prototype,"ariaActivedescendant",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],NT.prototype,"showFocus",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],NT.prototype,"focusedIndex",void 0);_.z([_.R(),_.K("design:type",_.aG)],NT.prototype,"emojiManager",void 0);
_.z([_.lr("emoji"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NT.prototype,"emojiChanged_",null);_.z([_.lr("titleOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NT.prototype,"titleOffsetChanged_",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],NT.prototype,"onEmojiTap_",null);
_.z([_.kZ("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NT.prototype,"onMouseDown_",null);_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NT.prototype,"onFocus_",null);_.z([_.kZ("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NT.prototype,"onBlur_",null);
_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],NT.prototype,"onKeyDown_",null);_.z([_.FM({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],NT);
_.a(NT,"yt-emoji-picker-upsell-category-renderer",function(){if(NDI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-upsell-category-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_upsell_category_renderer.yt.emoji.picker.upsell.category.renderer.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-emoji-picker-upsell-category-renderer"></yt-formatted-string><div id="emoji" class="style-scope yt-emoji-picker-upsell-category-renderer"><template is="dom-repeat" id="repeat" items="[[emoji]]" class="style-scope yt-emoji-picker-upsell-category-renderer"><div class="style-scope yt-emoji-picker-upsell-category-renderer"><img id="[[emojiId(index)]]" on-mouseover="onEmojiMouseOver_" shared-tooltip-text$="[[data.emojiTooltip]]" src$="[[emojiUrl(item.emojiId)]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" aria-selected$="[[emojiAriaSelected(showFocus, focusedIndex, index)]]" role="option" class="style-scope yt-emoji-picker-upsell-category-renderer"><svg viewBox="0 0 24 24" class="style-scope yt-emoji-picker-upsell-category-renderer"><path id="lock-border" d="M18.3809524 6.80952784c1.6455246.45922361 2.8571428 1.97242785 2.8571428 3.76190076v9.5238095C21.2380952 22.2474266 19.4855219 24 17.3333333 24H5.9047619C3.75257336 24 2 22.2474266 2 20.0952381v-9.5238095c0-1.78947291 1.21161828-3.30267715 2.85714286-3.76190076v-.04762308C4.85714286 3.02876383 7.88590669 0 11.6190476 0c3.7331409 0 6.7619048 3.02876383 6.7619048 6.76190476v.04762308z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path><path d="M17.3333333 8.66666667c1.0476191 0 1.9047619.85714285 1.9047619 1.90476193v9.5238095c0 1.047619-.8571428 1.9047619-1.9047619 1.9047619H5.9047619C4.85714286 22 4 21.1428571 4 20.0952381v-9.5238095c0-1.04761908.85714286-1.90476193 1.9047619-1.90476193h.95238096V6.76190476C6.85714286 4.13333333 8.99047619 2 11.6190476 2c2.6285714 0 4.7619048 2.13333333 4.7619048 4.76190476v1.90476191h.9523809zm-5.7142857 8.57142853c1.0476191 0 1.9047619-.8571428 1.9047619-1.9047619 0-1.047619-.8571428-1.9047619-1.9047619-1.9047619-1.047619 0-1.90476189.8571429-1.90476189 1.9047619 0 1.0476191.85714289 1.9047619 1.90476189 1.9047619zm2.952381-8.57142853V6.76190476c0-1.62857143-1.3238096-2.95238095-2.952381-2.95238095-1.62857141 0-2.95238093 1.32380952-2.95238093 2.95238095v1.90476191h5.90476193z" class="style-scope yt-emoji-picker-upsell-category-renderer"></path></svg></div></template></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;f$U===void 0&&(f$U=document.createElement("template"));var V=f$U;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);NDI=Y}Y=NDI;return Y},{mode:2});var E9j;var ciK;var EU=function(){var Y=_.F.apply(this,arguments)||this;Y.scrollAction="lock";Y.verticalAlign="top";return Y};
_.P(EU,_.F);_.g=EU.prototype;_.g.onClick=function(Y){Y=_.uW(Y);Y instanceof HTMLImageElement&&_.Ua(this.hostElement,"yt-emoji-select",_.r9(this.emojiManager,Y.id))};
_.g.openSelector=function(){this.ironOverlayBehavior.open()};
_.g.onDomChange=function(){yvI(this.ytEmojiSelectorBehavior)};
_.g.computeIsFamilySelector=function(Y){var b;return(Y==null?void 0:(b=Y.emoji)==null?void 0:b.emojiId)==="\ud83d\udc6a"};
_.g.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var Y=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];Y&&Y.emojiId&&(_.Ua(this.hostElement,"yt-emoji-select",_.r9(this.emojiManager,Y.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.up.Object.defineProperties(EU.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var Y=this,b,w,V;return this.emojiManager&&((b=this.data)==null?0:(w=b.emoji)==null?0:(V=w.variantIds)==null?0:V.length)?this.data.emoji.variantIds.map(function(H){return!!H&&_.r9(Y.emojiManager,H)}).filter(function(H){return!!H}):[]}}});
EU.prototype.onClick=EU.prototype.onClick;_.z([_.n(_.TQ),_.K("design:type",Object)],EU.prototype,"ironOverlayBehavior",void 0);_.z([_.n($iC),_.K("design:type",Object)],EU.prototype,"ytEmojiSelectorBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],EU.prototype,"data",void 0);_.z([_.R(),_.K("design:type",_.aG)],EU.prototype,"emojiManager",void 0);_.z([_.R(),_.K("design:type",Object)],EU.prototype,"scrollAction",void 0);_.z([_.R(),_.K("design:type",Object)],EU.prototype,"verticalAlign",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.K("design:type",Boolean)],EU.prototype,"isFamilySelector",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],EU.prototype,"emojiVariants",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],EU.prototype,"onClick",null);_.z([_.FM({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],EU);
_.a(EU,"yt-emoji-variant-selector",function(){if(ciK===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-variant-selector--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_variant_selector.yt.emoji.variant.selector.css.js--\x3e<div role="listbox" id="variants" class="style-scope yt-emoji-variant-selector">\n    <template is="dom-repeat" id="repeat" items="[[emojiVariants]]" notify-dom-change="" on-dom-change="onDomChange" class="style-scope yt-emoji-variant-selector">\n      \n      <img id="[[item.emojiId]]" alt="[[item.emojiId]]" height="24" role="option" tabindex="-1" src$="[[emojiUrl(item.emojiId)]]" width="24" class="style-scope yt-emoji-variant-selector">\n    </template>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;E9j===void 0&&(E9j=document.createElement("template"));var V=E9j;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ciK=Y}Y=ciK;return Y},{mode:2});var UI9=/:/g,Xer=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],cw=function(){var Y=_.F.apply(this,arguments)||this;Y.emojiVariantSelector=null;Y.emojiMultiPersonSelector=null;Y.identity=_.a6;Y.lastAnimationTime_=0;Y.animationStart_=null;Y.animationEnd_=null;return Y};
_.P(cw,_.F);_.g=cw.prototype;
_.g.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}}};
_.g.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Wz)};
_.g.attached=function(){_.kv&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&jQj(this.emojiManager)};
_.g.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.categories){Y=this.emojiManager;var b=this.getCustomEmojiIds();Y.pickerCustomEmojiIds=[].concat(_.Bt(K7Q),_.Bt(b))}};
_.g.getCustomEmojiIds=function(){var Y,b=(Y=this.data.categories)==null?void 0:Y.find(function(f){var E;return((E=f.emojiPickerCategoryRenderer)==null?void 0:E.categoryId)&&Xer.includes(f.emojiPickerCategoryRenderer.categoryId)}),w;
Y=(w=this.data.categories)==null?void 0:w.find(function(f){return f.emojiPickerUpsellCategoryRenderer});
var V,H;return[b==null?void 0:(V=b.emojiPickerCategoryRenderer)==null?void 0:V.emojiIds,Y==null?void 0:(H=Y.emojiPickerUpsellCategoryRenderer)==null?void 0:H.emojiIds].flat().filter(function(f){return!!f})};
_.g.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.g.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.g.updateCategoriesAndPlaceholderInternal=function(Y,b){var w=this;Y&&b&&(this.categories=Y.categories||[],this.categoryButtons=Y.categoryButtons||[],this.resetPlaceholder(),this.search="",_.KV(function(){w.updateButtons_()}))};
_.g.computeId_=function(Y){return Y.id||""};
_.g.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(Y){return Y.emojiPickerCategoryRenderer&&Y.emojiPickerCategoryRenderer.emojiData}):!1};
_.g.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.g.onShowEmojiVariantSelector=function(Y){var b=Y.detail.emojiData;b.variantIds&&b.variantIds.length&&(b.multiSelectorThumbnailRow&&b.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:b,target:Y.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:b,target:Y.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.g.onIronOverlayClosed=function(Y){var b=GN$(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");b&&Y.composedPath&&(Y.composedPath().includes(_.E6(this.hostElement).querySelector("#emoji-variant-selector"))||Y.composedPath().includes(_.E6(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Xx(this.hostElement,"yt-close-emoji-variant-selector",[b.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.g.onEmojiVariantSelectorMouseup=function(Y){var b=Y.target.firstChild;this.variantSelectorOpened&&b&&_.KV(function(){b.noCancelOnOutsideClick=!1},100)};
_.g.onEmojiVariantSelectorMousedown=function(Y){Y=Y.target.firstChild;this.variantSelectorOpened&&Y&&(Y.noCancelOnOutsideClick=!1)};
_.g.onSelectCategory_=function(Y){var b=this.search!="";this.search="";for(var w=_.E6(this.hostElement).querySelector("#categories").children,V=0;V<w.length;V++){var H=w[V];if(H.id==Y.detail.categoryId){b?(_.E6(this.hostElement).querySelector("#categories").scrollTop=H.offsetTop,this.updateButtons_()):(this.animationStart_=_.E6(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=H.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.g.onEmojiHover_=function(Y){this.placeholder=Y.detail.shortcuts?Y.detail.shortcuts[0]:""};
_.g.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.g.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.g.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.g.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.g.computeSearchCategory_=function(Y){Y=Y.replace(UI9,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();Y=Y.split(" ");for(var b=[],w=this.emojiManager.emojis,V=0;V<w.length;V++){var H=w[V];if(H.searchTerms)for(var f=0;f<H.searchTerms.length;f++){for(var E=H.searchTerms[f].toLocaleLowerCase(),U=!1,X=0;X<Y.length;X++)if(E.indexOf(Y[X])!=-1){U=!0;break}if(U&&(!H.isCustomEmoji||!H.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(H.emojiId))){b.push(H.emojiId);
break}}}return{categoryId:-1,emojiIds:b}};
_.g.computeSearchEmptyMessage_=function(Y,b){return Y&&b&&b.emojiIds&&b.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.g.computeSearching_=function(Y){return this.emojiManager&&Y.replace(UI9,"").length>1};
_.g.computeSkinToneHidden=function(){var Y;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((Y=this.data)==null||!Y.hideSkinTonePicker)};
_.g.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.g.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.g.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.g.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.g.selectSkinTone_=function(Y){Y=Number(Y.target.getAttribute("tone"));this.set("emojiManager.skinTone",Y);_.Xx(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[Y]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.g.skinToneChanged_=function(){_.E6(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var Y=_.E6(this.hostElement).querySelector("#dropdown-content").children,b=0;b<Y.length;b++)b===this.skinTone?Y[b].setAttribute("selected",""):Y[b].removeAttribute("selected")};
_.g.animateScroll_=function(Y){this.lastAnimationTime_||(this.lastAnimationTime_=Y);Y-=this.lastAnimationTime_;Y<200?(_.E6(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*Y/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.E6(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.g.searchChanged_=function(){this.updateButtons_()};
_.g.updateButtons_=function(){var Y=null;if(!this.search)for(var b=_.E6(this.hostElement).querySelector("#categories").scrollTop,w=_.E6(this.hostElement).querySelector("#categories").children,V=0;V<w.length;V++){var H=w[V];H.offsetTop<=b&&(Y=H.id)}b=_.E6(this.hostElement).querySelector("#category-buttons").children;for(w=0;w<b.length;w++)V=b[w],V.active=V.id===Y};
cw.prototype.searchChanged_=cw.prototype.searchChanged_;cw.prototype.skinToneChanged_=cw.prototype.skinToneChanged_;cw.prototype.onEmojiHover_=cw.prototype.onEmojiHover_;cw.prototype.onSelectCategory_=cw.prototype.onSelectCategory_;cw.prototype.onShowEmojiVariantSelector=cw.prototype.onShowEmojiVariantSelector;cw.prototype.updateCategoriesAndPlaceholder_=cw.prototype.updateCategoriesAndPlaceholder_;cw.prototype.dataChanged=cw.prototype.dataChanged;
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],cw.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],cw.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],cw.prototype,"data",void 0);_.z([_.R({value:function(){return[]}}),
_.K("design:type",Array)],cw.prototype,"categories",void 0);_.z([_.R({value:function(){return[]}}),
_.K("design:type",Array)],cw.prototype,"categoryButtons",void 0);_.z([_.R({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.K("design:type",Boolean)],cw.prototype,"disableScroll",void 0);_.z([_.R({computed:"computeId_(data)",reflectToAttribute:!0}),_.K("design:type",String)],cw.prototype,"id",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],cw.prototype,"selected",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],cw.prototype,"disableIncrementalLoading",void 0);_.z([_.R(),_.K("design:type",String)],cw.prototype,"placeholder",void 0);_.z([_.R({value:""}),_.K("design:type",String)],cw.prototype,"search",void 0);_.z([_.R({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.K("design:type",Boolean)],cw.prototype,"searching",void 0);_.z([_.R({computed:"computeSearchCategory_(search)"}),_.K("design:type",Object)],cw.prototype,"searchCategory",void 0);
_.z([_.R({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.K("design:type",Object)],cw.prototype,"searchEmptyMessage",void 0);_.z([_.R({computed:"identity(emojiManager.skinTone)"}),_.K("design:type",Number)],cw.prototype,"skinTone",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],cw.prototype,"skinToneOpened",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],cw.prototype,"variantSelectorOpened",void 0);
_.z([_.R({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.K("design:type",Boolean)],cw.prototype,"skinToneHidden",void 0);_.z([_.R(),_.K("design:type",_.aG)],cw.prototype,"emojiManager",void 0);_.z([_.R(),_.K("design:type",Object)],cw.prototype,"emojiVariantSelector",void 0);_.z([_.R(),_.K("design:type",Object)],cw.prototype,"emojiMultiPersonSelector",void 0);
_.z([_.R({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.K("design:type",Boolean)],cw.prototype,"shouldUseStickyPreferences",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cw.prototype,"dataChanged",null);_.z([_.lr("data","selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cw.prototype,"updateCategoriesAndPlaceholder_",null);
_.z([_.kZ("yt-show-emoji-variant-selector"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],cw.prototype,"onShowEmojiVariantSelector",null);_.z([_.kZ("yt-emoji-picker-select-category"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],cw.prototype,"onSelectCategory_",null);_.z([_.kZ("yt-emoji-hover"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],cw.prototype,"onEmojiHover_",null);
_.z([_.lr("skinTone"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cw.prototype,"skinToneChanged_",null);_.z([_.lr("search"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cw.prototype,"searchChanged_",null);_.z([_.FM({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],cw);
_.a(cw,"yt-emoji-picker-renderer",function(){if(g9_===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_emoji_picker_renderer.yt.emoji.picker.renderer.css.js--\x3e<div id="search-panel" class="style-scope yt-emoji-picker-renderer"><tp-yt-paper-input id="search" no-label-float="" placeholder="[[placeholder]]" use-v2-underline="" value="{{search}}" on-blur="onSearchBoxBlur_" on-focus="onSearchBoxFocused_" class="style-scope yt-emoji-picker-renderer"></tp-yt-paper-input><yt-icon-button id="clear-search" hidden="[[!search]]" label="[[data.clearSearchLabel]]" on-tap="clearSearch" class="style-scope yt-emoji-picker-renderer"><yt-icon icon="close" class="style-scope yt-emoji-picker-renderer"></yt-icon></yt-icon-button><button id="skin-tone" aria-label$="[[getSimpleString(data.pickSkinToneText)]]" hidden="[[skinToneHidden]]" on-mouseout="resetPlaceholder" on-mouseover="showSkinTonePlaceholder" on-tap="openSkinToneSelector" selected="" class="style-scope yt-emoji-picker-renderer"></button><tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" horizontal-align="right" horizontal-offset="8" no-auto-focus="" opened="{{skinToneOpened}}" vertical-align="top" vertical-offset="8" class="style-scope yt-emoji-picker-renderer"><div id="dropdown-content" class="dropdown-content style-scope yt-emoji-picker-renderer" slot="dropdown-content"><button aria-label$="[[data.skinToneGenericLabel]]" on-tap="selectSkinTone_" tone="0" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneLightLabel]]" on-tap="selectSkinTone_" tone="1" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLightLabel]]" on-tap="selectSkinTone_" tone="2" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumLabel]]" on-tap="selectSkinTone_" tone="3" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneMediumDarkLabel]]" on-tap="selectSkinTone_" tone="4" class="style-scope yt-emoji-picker-renderer"></button><button aria-label$="[[data.skinToneDarkLabel]]" on-tap="selectSkinTone_" tone="5" class="style-scope yt-emoji-picker-renderer"></button></div></tp-yt-iron-dropdown></div><div id="category-buttons" class="style-scope yt-emoji-picker-renderer"></div><yt-emoji-picker-category-renderer id="search-category" data="[[searchCategory]]" emoji-manager="[[emojiManager]]" should-use-sticky-preferences="[[shouldUseStickyPreferences]]" skin-tone="[[skinTone]]" class="style-scope yt-emoji-picker-renderer"></yt-emoji-picker-category-renderer><yt-formatted-string id="search-empty" hidden="[[!searchEmptyMessage]]" text="[[searchEmptyMessage]]" class="style-scope yt-emoji-picker-renderer"></yt-formatted-string><div id="categories-wrapper" class="style-scope yt-emoji-picker-renderer"><div id="categories" on-mouseout="onMouseoutCategories" on-scroll="onScroll_" class="style-scope yt-emoji-picker-renderer"></div></div><div id="emoji-variant-selector" hidden="[[!emojiVariantSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div><div id="emoji-multi-person-selector" hidden="[[!emojiMultiPersonSelector]]" on-mouseup="onEmojiVariantSelectorMouseup" on-mousedown="onEmojiVariantSelectorMousedown" class="style-scope yt-emoji-picker-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;HGo===void 0&&(HGo=document.createElement("template"));var V=HGo;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);g9_=Y}Y=g9_;return Y},{mode:2});var UU=function(){var Y=_.F.apply(this,arguments)||this;Y.emojiManager=_.Wz;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.selectedIndex=1;Y.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return Y};
_.P(UU,_.F);_.g=UU.prototype;_.g.handleEmojiCustomizationVisible=function(Y){this.emojiPickerRenderer.selected=Y;this.selectedIndex=1;Y?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.g.emojiCustomizationSetChanged=function(){var Y;(Y=this.data)!=null&&Y.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.NQ(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.g.updateSaveButtonState=function(Y){var b;(b=this.data)!=null&&b.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.qo("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:Y}))};
_.g.emojiUrl=function(Y){Y=_.r9(this.emojiManager,Y);if(!Y)return"";var b;Y=(b=Y.image)==null?void 0:b.thumbnails;return _.NR(Y,24)||""};
_.g.emojiAlt=function(Y){var b=_.r9(this.emojiManager,Y);if(!b)return Y;var w,V,H,f=(b==null?void 0:(w=b.image)==null?void 0:(V=w.accessibility)==null?void 0:(H=V.accessibilityData)==null?void 0:H.label)||"";return f?f:b.isCustomEmoji?b.shortcuts[0]:b.emojiId||Y};
_.g.emojiAriaLabel=function(Y){var b,w;return((b=_.r9(this.emojiManager,Y))==null?void 0:(w=b.shortcuts)==null?void 0:w[0])||Y};
_.g.onEmojiClick=function(Y){Y.model.index!==0&&(this.selectedIndex=Y.model.index)};
_.g.onEmojiSelect=function(Y){Y=Y.detail;var b,w;((b=this.data)==null?0:b.emojiCustomizationSetEntityKey)&&((w=this.emojiCustomizationSet)==null?0:w.emojiId)&&Y.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,Y.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.qo("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,Y.emojiId,this.selectedIndex)}))};
_.g.canEditEmoji=function(Y,b,w){Y=Y.indexOf(b);return Y===w||Y===0||w===0?!1:!0};
_.g.getUpdatedEmojiIdList=function(Y,b,w){var V=Y.indexOf(b);Y=[].concat(_.Bt(Y));V>=0&&(Y[V]=Y[w]);Y[w]=b;return Y};
_.up.Object.defineProperties(UU,{template:{configurable:!0,enumerable:!0,get:function(){if(pG5===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-customization-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_customization_panel_view_model.yt.emoji.customization.panel.view.model.css.js--\x3e<yt-attributed-string id="description-text" data="[[data.descriptionText]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-attributed-string>\n<div id="fab-container" class="style-scope yt-emoji-customization-panel-view-model">\n  <div id="expanded-buttons" class="style-scope yt-emoji-customization-panel-view-model">\n    <template is="dom-repeat" id="repeat" items="[[emojiCustomizationSet.emojiId]]" class="style-scope yt-emoji-customization-panel-view-model">\n      <button class="reaction-button style-scope yt-emoji-customization-panel-view-model" emoji-selected$="[[equals(selectedIndex, index)]]" on-click="onEmojiClick" disabled$="[[equals(index, 0)]]">\n        <img id="[[index]]" alt="[[emojiAlt(item)]]" aria-label$="[[emojiAriaLabel(item)]]" height="24" role="option" src$="[[emojiUrl(item)]]" width="24" class="style-scope yt-emoji-customization-panel-view-model">\n      </button>\n    </template>\n  </div>\n</div>\n<yt-button-view-model data="[[data.resetButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-emoji-customization-panel-view-model">\n</yt-button-view-model>\n<yt-emoji-picker-renderer data="[[data.emojiPicker.emojiPickerRenderer]]" class="style-scope yt-emoji-customization-panel-view-model"></yt-emoji-picker-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;er5===void 0&&(er5=document.createElement("template"));var V=er5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);pG5=Y}Y=pG5;return Y}}});
UU.prototype.onEmojiSelect=UU.prototype.onEmojiSelect;_.z([_.n(_.AW),_.K("design:type",Object)],UU.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],UU.prototype,"ytActionHandlerBehavior",void 0);_.z([_.xZ("yt-emoji-picker-renderer"),_.K("design:type",Object)],UU.prototype,"emojiPickerRenderer",void 0);
_.z([_.R({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"emojiCustomizationSetEntity",b)},
observer:"emojiCustomizationSetChanged"}),_.K("design:type",Object)],UU.prototype,"emojiCustomizationSet",void 0);_.z([_.R(),_.K("design:type",Object)],UU.prototype,"originalEmojiSet",void 0);_.z([_.R(),_.K("design:type",_.aG)],UU.prototype,"emojiManager",void 0);_.z([_.R(),_.K("design:type",Object)],UU.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],UU.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],UU.prototype,"selectedIndex",void 0);
_.z([_.kZ("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],UU.prototype,"onEmojiSelect",null);_.z([_.FM({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],UU);var DI5;var mIj;var o9r;var I$t;var XX=function(){var Y=_.F.apply(this,arguments)||this;Y.authorBadges=[];return Y};
_.P(XX,_.F);_.g=XX.prototype;_.g.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.g.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]]"}}}}}};
_.g.dataChanged=function(){var Y=UNu(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",Y)};
_.g.updateMessage=function(){var Y=this.data.message,b=_.E6(_.E6(this.hostElement).querySelector("#message"));b.textContent="";Y&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y))};
_.g.shouldSupportWholeItemClick=function(){return!0};
_.g.onShowOriginalClick=function(Y){Y.preventDefault();this.showOriginal=!0};
_.g.computeShowBar=function(Y,b,w){return Y&&b||w};
_.g.computeAuthorBadges=function(Y){return Y.authorBadges||[]};
_.g.computeAuthorIsOwner=function(Y){return!!Xma(Y.authorBadges,"owner")};
_.g.computeAuthorNameColor=function(Y){var b;if(_.q("live_chat_author_name_color_usernames")&&(Y==null?0:(b=Y.authorName)==null?0:b.simpleText))return _.lbG(_.h$G(Y.authorName.simpleText));if(_.q("live_chat_seed_color_usernames")&&(Y==null?0:Y.authorSeedColorArgb))return _.lbG(_.mQ(Y.authorSeedColorArgb));if(_.q("live_chat_colored_usernames"))return"#cc0000";var w;return _.q("live_chat_simple_color_usernames")&&(Y==null?0:(w=Y.authorName)==null?0:w.simpleText)&&(Y==null?0:Y.authorUsernameColorLight)&&
(Y==null?0:Y.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.mQ(Y.authorUsernameColorDark):_.mQ(Y.authorUsernameColorLight):""};
XX.prototype.updateMessage=XX.prototype.updateMessage;XX.prototype.dataChanged=XX.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],XX.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],XX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],XX.prototype,"data",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],XX.prototype,"showOriginal",void 0);_.z([_.R({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.K("design:type",Boolean)],XX.prototype,"isDimmed",void 0);_.z([_.R({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.K("design:type",Boolean)],XX.prototype,"showBar",void 0);
_.z([_.R({computed:"computeAuthorBadges(data)"}),_.K("design:type",Array)],XX.prototype,"authorBadges",void 0);_.z([_.R({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],XX.prototype,"authorIsOwner",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],XX.prototype,"inCollapsedBanner",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],XX.prototype,"inBanner",void 0);
_.z([_.R({value:_.q("live_chat_hide_avatars"),reflectToAttribute:!0}),_.K("design:type",Boolean)],XX.prototype,"avatarHidden",void 0);_.z([_.R({computed:"computeAuthorNameColor(data)"}),_.K("design:type",String)],XX.prototype,"authorNameColor",void 0);_.z([_.R(),_.K("design:type",_.y7)],XX.prototype,"participantsManager",void 0);_.z([_.R({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.K("design:type",Object)],XX.prototype,"filledButtonOverrides",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XX.prototype,"dataChanged",null);_.z([_.lr("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XX.prototype,"updateMessage",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],XX);
_.a(XX,"yt-live-chat-text-message-renderer",function(){if(I$t===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_message_renderer.yt.live.chat.text.message.renderer.css.js--\x3e<yt-img-shadow id="author-photo" class="no-transition style-scope yt-live-chat-text-message-renderer" height="24" thumbnail="[[data.authorPhoto]]" width="24"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-text-message-renderer"><span id="timestamp" class="style-scope yt-live-chat-text-message-renderer">[[timestampString]]</span><yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" class="style-scope yt-live-chat-text-message-renderer"></yt-live-chat-author-chip>\u200b<div id="before-content-buttons" class="style-scope yt-live-chat-text-message-renderer"></div>\u200b<span id="message" dir="auto" class="style-scope yt-live-chat-text-message-renderer"></span><span id="deleted-state" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.deletedStateMessage)]]</span><a id="show-original" href="#" on-click="onShowOriginalClick" class="style-scope yt-live-chat-text-message-renderer">[[getSimpleString(data.showOriginalContentMessage)]]</a></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-text-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-text-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-text-message-renderer"></yt-icon></yt-icon-button></div><div id="inline-action-button-container" class="style-scope yt-live-chat-text-message-renderer"><div id="inline-action-buttons" class="style-scope yt-live-chat-text-message-renderer"></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;o9r===void 0&&(o9r=document.createElement("template"));var V=o9r;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);I$t=Y}Y=I$t;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var DL=function(){var Y=_.F.apply(this,arguments)||this;Y.tonalButtonOverrides={type:"tonal",style:"overlay"};return Y};
_.P(DL,_.F);
DL.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]]"}}}}}};
DL.prototype.shouldSupportInlineActionButtons=function(){return!0};
DL.prototype.shouldSupportWholeItemClick=function(){return!0};
_.up.Object.defineProperties(DL.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],DL.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],DL.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],DL.prototype,"data",void 0);_.z([_.R(),_.K("design:type",_.y7)],DL.prototype,"participantsManager",void 0);
_.z([_.R(),_.K("design:type",Object)],DL.prototype,"tonalButtonOverrides",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.infoDialogButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],DL.prototype,"hasInfoDialogButton",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],DL);
_.a(DL,"yt-live-chat-auto-mod-message-renderer",function(){if(mIj===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-auto-mod-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_auto_mod_message_renderer.yt.live.chat.auto.mod.message.renderer.css.js--\x3e<div id="explanation" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <yt-icon id="warning-icon" hidden$="[[hasInfoDialogButton]]" icon="warning" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-icon>\n  <div id="button" hidden$="[[!hasInfoDialogButton]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <yt-formatted-string text="[[data.headerText]]" class="style-scope yt-live-chat-auto-mod-message-renderer"></yt-formatted-string>\n</div>\n<div id="auto-moderated-item" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="moderation-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-auto-mod-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n  <div id="additional-inline-action-buttons" class="style-scope yt-live-chat-auto-mod-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;DI5===void 0&&(DI5=document.createElement("template"));var V=DI5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);mIj=Y}Y=mIj;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var kX9;var l$K;var hcj;var xI9=function(){return _.F.apply(this,arguments)||this};
_.P(xI9,_.F);_.z([_.R(),_.K("design:type",Object)],xI9.prototype,"data",void 0);_.z([_.S({is:"ytd-factoid-renderer",disableElementRegistration:!0})],xI9);
_.a(xI9,"ytd-factoid-renderer",function(){if(hcj!==void 0)return hcj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-factoid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="factoid style-scope ytd-factoid-renderer" role="text" aria-label="[[data.accessibilityText]]">\n  <yt-formatted-string class="factoid-value style-scope ytd-factoid-renderer" text="[[data.value]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="factoid-label style-scope ytd-factoid-renderer" text="[[data.label]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return hcj=Y},{mode:1});var mA=function(){return _.F.apply(this,arguments)||this};
_.P(mA,_.F);mA.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.z([_.R(),_.K("design:type",Object)],mA.prototype,"data",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],mA);
_.a(mA,"yt-live-chat-channel-activity-reputation-renderer",function(){if(l$K===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-channel-activity-reputation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_channel_activity_reputation_renderer.yt.live.chat.channel.activity.reputation.renderer.css.js--\x3e<div id="factoids" class="style-scope yt-live-chat-channel-activity-reputation-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;kX9===void 0&&(kX9=document.createElement("template"));var V=kX9;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);l$K=Y}Y=l$K;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var q8k;var sJ$;var oH=function(){return _.F.apply(this,arguments)||this};
_.P(oH,_.F);oH.prototype.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Boolean)],oH.prototype,"menuFocused",void 0);_.z([_.R(),_.K("design:type",Object)],oH.prototype,"data",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],oH.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],oH);
_.a(oH,"yt-live-chat-donation-announcement-renderer",function(){if(sJ$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-donation-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_donation_announcement_renderer.yt.live.chat.donation.announcement.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-img-shadow><div id="content" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="content-header" class="style-scope yt-live-chat-donation-announcement-renderer"><div id="author-name" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.authorName)]]</div><div id="text" class="style-scope yt-live-chat-donation-announcement-renderer">[[getSimpleString(data.text)]]</div></div><div id="timestamp" class="style-scope yt-live-chat-donation-announcement-renderer">[[timestampString]]</div><yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-formatted-string></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-donation-announcement-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-donation-announcement-renderer"></yt-icon></yt-icon-button></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;q8k===void 0&&(q8k=document.createElement("template"));var V=q8k;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);sJ$=Y}Y=sJ$;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var QJt;var v9d,PBI=function(){if(v9d!==void 0)return v9d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-empty-feed-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_empty_feed_view_model.yt.live.chat.empty.feed.view.model.css.js--\x3e<yt-image id="image" alt="empty_feed_image" data="[[data.emptyFeedImage]]" height="100" preserve-height="" preserve-width="" width="178" class="style-scope yt-live-chat-empty-feed-view-model">\n</yt-image>\n<yt-attributed-string id="message" data="[[data.message]]" class="style-scope yt-live-chat-empty-feed-view-model"></yt-attributed-string>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;QJt===void 0&&(QJt=document.createElement("template"));var V=QJt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return v9d=Y};var IH=function(){return _.F.apply(this,arguments)||this};
_.P(IH,_.F);_.up.Object.defineProperties(IH,{template:{configurable:!0,enumerable:!0,get:function(){return PBI()}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IH.prototype,"data",void 0);_.z([_.FM({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],IH);_.a(IH,"yt-live-chat-empty-feed-view-model",function(){return PBI()},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var ZG9;var BDr;var kI=function(){return _.F.apply(this,arguments)||this};
_.P(kI,_.F);kI.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"}}}}}};
_.up.Object.defineProperties(kI.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var Y,b;return{runs:[{text:(Y=this.data)==null?void 0:(b=Y.channelName)==null?void 0:b.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var Y=[],b;if((b=this.data)==null||!b.channelBadges)return Y;var w;b=_.N((w=this.data)==null?void 0:w.channelBadges);for(w=b.next();!w.done;w=b.next()){w=_.v(w.value,v5Q);var V=void 0,H=void 0;if((V=w)==null?0:(H=V.badgeImage)==null?0:H.sources)V=void 0,H={liveChatAuthorBadgeRenderer:{tooltip:w.tooltip,accessibility:{accessibilityData:{label:(V=_.v(w.rendererContext,_.Ba))==null?void 0:V.label}}}},w.badgeImage.sources[0].clientResource?H.liveChatAuthorBadgeRenderer.icon=
{iconType:w.badgeImage.sources[0].clientResource.imageName}:H.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:w.badgeImage.sources},Y.push(H)}return Y}}});
_.z([_.R(),_.K("design:type",Object)],kI.prototype,"data",void 0);_.z([_.t("data.channelName"),_.K("design:type",Object),_.K("design:paramtypes",[])],kI.prototype,"channelName",null);_.z([_.t("data.channelBadges"),_.K("design:type",Array),_.K("design:paramtypes",[])],kI.prototype,"channelBadges",null);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],kI);
_.a(kI,"yt-live-chat-identity-view-model",function(){if(BDr===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-identity-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_identity_view_model.yt.live.chat.identity.view.model.css.js--\x3e<div id="avatar" class="style-scope yt-live-chat-identity-view-model"></div>\n<div id="channel_info" class="style-scope yt-live-chat-identity-view-model">\n  <yt-live-chat-author-chip id="channel_name" author-badges="[[channelBadges]]" author-name="[[channelName]]" class="style-scope yt-live-chat-identity-view-model">\n  </yt-live-chat-author-chip>\n  <div id="channel_metadata" class="style-scope yt-live-chat-identity-view-model">\n    <yt-attributed-string id="create_time" data="[[data.channelCreateTime]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n    <yt-attributed-string id="subscriber_count" data="[[data.channelSubscriberCount]]" class="style-scope yt-live-chat-identity-view-model"></yt-attributed-string>\n  </div>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;ZG9===void 0&&(ZG9=document.createElement("template"));var V=ZG9;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);BDr=Y}Y=BDr;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var n9t;var MNQ;var ecr;var peK;var lh=function(){var Y=_.F.apply(this,arguments)||this;Y.hidden=!1;Y.supportsInlineActionButtons=!0;return Y};
_.P(lh,_.F);lh.prototype.ready=function(){var Y;((Y=document.querySelector("yt-live-chat-app"))==null?0:Y.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
lh.prototype.dataChanged=function(Y){var b=(0,_.DT)(_.E6(this.hostElement).querySelector("#detail-text"));b.textContent="";(Y==null?0:Y.detailText)&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y.detailText))};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],lh.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({observer:"dataChanged"}),_.K("design:type",Object)],lh.prototype,"data",void 0);
_.z([_.R({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.K("design:type",Object)],lh.prototype,"hidden",void 0);_.z([_.S({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],lh);
_.a(lh,"yt-live-chat-legacy-paid-message-renderer",function(){if(peK===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-legacy-paid-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_legacy_paid_message_renderer.yt.live.chat.legacy.paid.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-img-shadow>\n  <div id="content" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <div id="content-primary-column" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <div id="author-name" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.authorName)]]</div>\n      <div id="event-text" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[getSimpleString(data.eventText)]]</div>\n      <div id="detail-text" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n    </div>\n    <div id="timestamp" class="style-scope yt-live-chat-legacy-paid-message-renderer">[[timestampString]]</div>\n  </div>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n      <yt-icon icon="more_vert" class="style-scope yt-live-chat-legacy-paid-message-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-legacy-paid-message-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-legacy-paid-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;ecr===void 0&&(ecr=document.createElement("template"));var V=ecr;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);peK=Y}Y=peK;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var OGC;var tNr;var Rc_={},hB=function(){return _.s6.apply(this,arguments)||this};
_.P(hB,_.s6);hB.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
hB.prototype.onLiveChatMembershipItemBehaviorClick=hB.prototype.onLiveChatMembershipItemBehaviorClick;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hB.prototype,"data",void 0);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],hB.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.z([_.QC()],hB);
Rc_.YtLiveChatMembershipItemBehavior=[hB.prototype,_.u.YtRendererBehavior];var xI=function(){var Y=_.F.apply(this,arguments)||this;Y.supportsInlineActionButtons=!0;Y.hasPrimaryHeaderText=!1;Y.showOnlyHeader=!1;Y.authorBadges=[];Y.modern=_.q("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.P(xI,_.F);_.g=xI.prototype;_.g.shouldSupportInlineActionButtons=function(){return!0};
_.g.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.g.ready=function(){var Y=document.querySelector("yt-live-chat-app");Y&&Y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.g.messageChanged=function(){var Y=this.data.message,b=(0,_.DT)(_.E6(this.hostElement).querySelector("#message"));b.textContent="";Y&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(Y))};
_.g.computeHasPrimaryHeaderText=function(Y){return!(!Y||!Y.headerPrimaryText)};
_.g.computeShowOnlyHeader=function(Y,b){return this.isMessageEmpty(Y,b)};
_.g.computeAuthorBadges=function(Y){return Y.authorBadges||[]};
_.g.isMessageEmpty=function(Y,b){return!Y||Y.empty?!0:!Y.message&&!Y.inputField&&!b};
_.g.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.g.getInputElement=function(){return _.E6(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.g.inputFocus=function(){var Y=this.getInputElement();Y&&Y.focus()};
_.g.inputInsertEmoji=function(Y){var b=this.getInputElement();b&&b.insertEmoji(Y)};
_.g.inputMessage=function(){var Y=this.getInputElement();return Y&&this.data.inputField?(Y.completeEmojis(),_.K_(Y.liveChatRichMessageInput)):null};
_.g.onFooterButtonClick=function(){this.data.footerButton&&_.Ua(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.g.shouldSupportWholeItemClick=function(){return!0};
xI.prototype.isDeletedChanged=xI.prototype.isDeletedChanged;xI.prototype.messageChanged=xI.prototype.messageChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],xI.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(Rc_.YtLiveChatMembershipItemBehavior),_.K("design:type",Object)],xI.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xI.prototype,"data",void 0);_.z([_.R({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.K("design:type",Object)],xI.prototype,"hasPrimaryHeaderText",void 0);_.z([_.R({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.K("design:type",Object)],xI.prototype,"showOnlyHeader",void 0);
_.z([_.R({computed:"computeAuthorBadges(data)"}),_.K("design:type",Array)],xI.prototype,"authorBadges",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],xI.prototype,"modern",void 0);_.z([_.lr("data.message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xI.prototype,"messageChanged",null);_.z([_.lr("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xI.prototype,"isDeletedChanged",null);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],xI);
_.a(xI,"yt-live-chat-membership-item-renderer",function(){if(tNr===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-membership-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_membership_item_renderer.yt.live.chat.membership.item.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="header" class="style-scope yt-live-chat-membership-item-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope yt-live-chat-membership-item-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope yt-live-chat-membership-item-renderer">\n      <div id="header-content-primary-column" class="style-scope yt-live-chat-membership-item-renderer">\n        <div id="header-content-inner-column" class="style-scope yt-live-chat-membership-item-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope yt-live-chat-membership-item-renderer">\n            <yt-live-chat-author-chip author-badges="[[authorBadges]]" author-name="[[data.authorName]]" class="style-scope yt-live-chat-membership-item-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="header-primary-text" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerPrimaryText)]]</div>\n        </div>\n        <div id="header-subtext" class="style-scope yt-live-chat-membership-item-renderer">[[getSimpleString(data.headerSubtext)]]</div>\n      </div>\n      <div id="timestamp" class="style-scope yt-live-chat-membership-item-renderer">[[timestampString]]</div>\n    </div>\n    <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-membership-item-renderer">\n      <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-icon icon="more_vert" class="style-scope yt-live-chat-membership-item-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div id="content" class="style-scope yt-live-chat-membership-item-renderer">\n    <div id="message" dir="auto" class="style-scope yt-live-chat-membership-item-renderer"></div>\n    <div id="input-container" class="style-scope yt-live-chat-membership-item-renderer">\n      <template is="dom-if" if="[[data.inputField]]" class="style-scope yt-live-chat-membership-item-renderer">\n        <yt-live-chat-text-input-field-renderer id="input-field" data="[[data.inputField.liveChatTextInputFieldRenderer]]" participants-manager="[[participantsManager]]" class="style-scope yt-live-chat-membership-item-renderer">\n        </yt-live-chat-text-input-field-renderer>\n      </template>\n    </div>\n    <yt-formatted-string id="deleted-state" is-deleted$="[[isDeleted]]" text="[[data.deletedStateMessage]]" class="style-scope yt-live-chat-membership-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div id="footer-button" hidden$="[[!data.footerButton]]" on-click="onFooterButtonClick" class="style-scope yt-live-chat-membership-item-renderer"></div>\n<div id="inline-action-button-container" class="style-scope yt-live-chat-membership-item-renderer">\n  <div id="inline-action-buttons" class="style-scope yt-live-chat-membership-item-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;OGC===void 0&&(OGC=document.createElement("template"));var V=OGC;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);tNr=Y}Y=tNr;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var dIC;var Fbj;var qT=function(){return _.F.apply(this,arguments)||this};
_.P(qT,_.F);qT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qT.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],qT);
_.a(qT,"yt-live-chat-mode-change-message-renderer",function(){if(Fbj===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-mode-change-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_mode_change_message_renderer.yt.live.chat.mode.change.message.renderer.css.js--\x3e<div id="contents" class="style-scope yt-live-chat-mode-change-message-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-icon>\n  <div id="text-container" class="style-scope yt-live-chat-mode-change-message-renderer">\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope yt-live-chat-mode-change-message-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-mode-change-message-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;dIC===void 0&&(dIC=document.createElement("template"));var V=dIC;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Fbj=Y}Y=Fbj;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Lbt;var S8Q;var sU=function(){return _.F.apply(this,arguments)||this};
_.P(sU,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],sU.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sU.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],sU);
_.a(sU,"yt-live-chat-moderation-message-renderer",function(){if(S8Q===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-moderation-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_moderation_message_renderer.yt.live.chat.moderation.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-moderation-message-renderer">\n  <span id="timestamp" class="style-scope yt-live-chat-moderation-message-renderer">[[timestampString]]</span>\n  <yt-formatted-string id="message" text="[[data.message]]" class="style-scope yt-live-chat-moderation-message-renderer"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Lbt===void 0&&(Lbt=document.createElement("template"));var V=Lbt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);S8Q=Y}Y=S8Q;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var a$Q;var rij;var Q3=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_button_rework");return Y};
_.P(Q3,_.F);Q3.prototype.onClick=function(){var Y;if((Y=this.data)!=null&&Y.onClickCommand){var b;_.l8.instance.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Q3.prototype,"modern",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],Q3.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],Q3.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Q3.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Q3);
_.a(Q3,"yt-live-chat-offer-click-count-message-renderer",function(){if(rij===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-offer-click-count-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_offer_click_count_message_renderer.yt.live.chat.offer.click.count.message.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n  <div id="icon-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="icon" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-icon icon="yt-icons:trending_up" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="metadata-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n    <div id="message-title" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-live-chat-offer-click-count-message-renderer"></yt-formatted-string>\n    </div>\n    <div id="product-title-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">[[data.productTitle]]</div>\n    <div id="cta-container" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n      <a id="cta-endpoint" href$="[[computeHref_(data.onClickCommand)]]" on-click="onClick" data="[[data.onClickCommand]]" class="style-scope yt-live-chat-offer-click-count-message-renderer">\n        [[data.ctaTitle]]\n        <yt-icon class="hover-icon style-scope yt-live-chat-offer-click-count-message-renderer" icon="open_in_new"></yt-icon>\n      </a>\n    </div>\n  </div>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;a$Q===void 0&&(a$Q=document.createElement("template"));var V=a$Q;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);rij=Y}Y=rij;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var zc8;var Wb8=function(){return _.F.apply(this,arguments)||this};
_.P(Wb8,_.F);_.z([_.R(),_.K("design:type",Object)],Wb8.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Wb8);
_.a(Wb8,"yt-live-chat-placeholder-item-renderer",function(){if(zc8===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-placeholder-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);zc8=Y}Y=zc8;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Kbt;var iGr;var AiU=new $t(7),vw=function(){var Y=_.F.apply(this,arguments)||this;Y.data={};return Y};
_.P(vw,_.F);vw.prototype.dataChanged=function(){var Y;((Y=this.data)==null?0:Y.class)&&_.U6(this.hostElement,this.data.class,!0);var b;((b=this.oldData)==null?0:b.class)&&_.U6(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
vw.prototype.computeTimestampString=function(Y){return AiU.format(new Date(Y/1E3))};
vw.prototype.dataChanged=vw.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],vw.prototype,"data",void 0);_.z([_.R({computed:"computeTimestampString(data.timestampUsec)"}),_.K("design:type",String)],vw.prototype,"timestampString",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vw.prototype,"dataChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],vw);
_.a(vw,"yt-live-chat-server-error-message",function(){if(iGr===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-server-error-message--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_server_error_message.yt.live.chat.server.error.message.css.js--\x3e<span id="timestamp" class="style-scope yt-live-chat-server-error-message">[[timestampString]]</span>\n<span id="message" class="style-scope yt-live-chat-server-error-message">[[data.message]]</span>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Kbt===void 0&&(Kbt=document.createElement("template"));var V=Kbt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);iGr=Y}Y=iGr;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var CBI;var yio;var Pw=function(){var Y=_.F.apply(this,arguments)||this;Y.defaultToFilledIcon=!1;return Y};
_.P(Pw,_.F);Pw.prototype.computeHasPrimaryColorIcon=function(Y){return Y==="SPARK"||Y==="SPONSORSHIP_STAR"};
Pw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],Pw.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Pw.prototype,"defaultToFilledIcon",void 0);_.z([_.R(),_.K("design:type",Object)],Pw.prototype,"data",void 0);
_.z([_.R({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Pw.prototype,"hasPrimaryColorIcon",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Pw);
_.a(Pw,"yt-live-chat-viewer-engagement-message-renderer",function(){if(yio===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-viewer-engagement-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_viewer_engagement_message_renderer.yt.live.chat.viewer.engagement.message.renderer.css.js--\x3e<div id="card" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon id="icon" default-to-filled="[[defaultToFilledIcon]]" icon="[[data.icon.iconType]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon><div id="content" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><div id="message-container" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string></div><div id="action-button" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></div></div><div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="showContextMenu" class="style-scope yt-live-chat-viewer-engagement-message-renderer"><yt-icon icon="more_vert" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-icon></yt-icon-button></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;CBI===void 0&&(CBI=document.createElement("template"));var V=CBI;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);yio=Y}Y=yio;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var $I8;var ZL=function(){var Y=_.F.apply(this,arguments)||this;Y.modernUpdate=!1;Y.buttonStyle="overlay";Y.buttonType="filled";return Y};
_.P(ZL,_.F);ZL.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
ZL.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ZL.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ZL.prototype,"modernUpdate",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],ZL.prototype,"buttonStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],ZL.prototype,"buttonType",void 0);
_.z([_.S({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],ZL);
_.a(ZL,"ytd-ad-hover-text-button-renderer",function(){if($I8!==void 0)return $I8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-hover-text-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="info-button" data="[[data.button.buttonRenderer]]" hidden="[[!data.button]]" overrides="[[computeButtonOverride(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n</ytd-button-renderer>\n<tp-yt-paper-tooltip id="ad-info-tooltip" for="info-button" hidden="[[!data.hoverText]]" position="[[computeTooltipPosition(modernUpdate)]]" class="style-scope ytd-ad-hover-text-button-renderer">\n  [[getSimpleString(data.hoverText)]]\n</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $I8=Y},{mode:1});var jJ9;var Bw=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonOverrides={size:"XS"};Y.modern=_.q("web_button_rework");return Y};
_.P(Bw,_.F);Bw.prototype.onHelpTap=function(Y){this.data&&this.data.informationDialog&&(_.Ua(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),Y.preventDefault(),Y.stopPropagation())};
_.z([_.R(),_.K("design:type",Object)],Bw.prototype,"buttonOverrides",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bw.prototype,"modern",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Bw.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],Bw);
_.a(Bw,"ytd-live-chat-purchased-product-message-renderer",function(){if(jJ9!==void 0)return jJ9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-purchased-product-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div id="container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n  <a id="product-container" class="yt-simple-endpoint style-scope ytd-live-chat-purchased-product-message-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" data-offer-version-id$="[[data.debugOfferVersionId]]">\n    <div id="product-image" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <yt-img-shadow class="no-transition style-scope ytd-live-chat-purchased-product-message-renderer" thumbnail="[[data.thumbnail]]"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n      <div id="purchased-message" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <yt-formatted-string text="[[data.purchasedMessage]]" class="style-scope ytd-live-chat-purchased-product-message-renderer"></yt-formatted-string>\n      </div>\n      <div id="product-title-container" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n        <div id="product-title" show-icon$="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">[[data.productTitle]]\n          <template is="dom-if" if="[[data.showExternalIcon]]" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n            <yt-icon class="hover-icon style-scope ytd-live-chat-purchased-product-message-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </div>\n    </div>\n  </a>\n  <div id="information-icon" on-tap="onHelpTap" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    <ytd-button-renderer id="info-button" data="[[data.informationButton.buttonRenderer]]" hidden="[[!data.informationButton]]" overrides="[[buttonOverrides]]" role="tooltip" tab-index="1" class="style-scope ytd-live-chat-purchased-product-message-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return jJ9=Y},{mode:1});var GXK;var TD5;var nU=function(){var Y=_.F.apply(this,arguments)||this;Y.isContainerDeleted=!1;return Y};
_.P(nU,_.F);nU.prototype.onContextMenuClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
nU.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))};
nU.prototype.isContainerDeletedChanged=nU.prototype.isContainerDeletedChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],nU.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nU.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],nU.prototype,"isContainerDeleted",void 0);
_.z([_.R(),_.K("design:type",String)],nU.prototype,"deletedStateMessage",void 0);_.z([_.lr("isContainerDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nU.prototype,"isContainerDeletedChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],nU);
_.a(nU,"ytd-sponsorships-live-chat-header-renderer",function(){if(TD5!==void 0)return TD5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-img-shadow id="author-photo" height="40" thumbnail="[[data.authorPhoto]]" width="40" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-img-shadow>\n    </template>\n    <template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon id="author-photo" icon="yt-icons:avatar_anonymous" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </template>\n    <div id="header-content" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <div id="header-content-primary-column" hidden$="[[isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="header-content-inner-column" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n          <template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            <yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" single-line="" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n            </yt-live-chat-author-chip>\n          </template>\n          <div id="primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.primaryText)]]</div>\n        </div>\n        <div id="secondary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[getSimpleString(data.secondaryText)]]</div>\n      </div>\n      <div id="header-content-deleted-state" hidden$="[[!isContainerDeleted]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n        <div id="deleted-primary-text" class="style-scope ytd-sponsorships-live-chat-header-renderer">[[deletedStateMessage]]</div>\n      </div>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.image]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-img-shadow class="rhs-image style-scope ytd-sponsorships-live-chat-header-renderer" height="104" thumbnail="[[data.image]]" width="104">\n    </yt-img-shadow>\n  </template>\n  <div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n    <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-header-renderer">\n      <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-header-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return TD5=Y},{mode:1});var MT=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_button_rework_with_live");Y.buttonOverrides={style:"overlay",type:"filled"};return Y};
_.P(MT,_.F);MT.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]]"}}}}}};
MT.prototype.onCtaButtonClick=function(){var Y,b=_.v((Y=this.data)==null?void 0:Y.optInPrompt,_.Wa);if(Y=this.maybeGetButtonCommand(b)){var w;(w=_.Qd())==null||w.clickCommand(Y)}};
MT.prototype.maybeGetButtonCommand=function(Y){return!Y||!Y.command||_.v(Y.command,uLd)===void 0&&_.v(Y.command,Jxj)===void 0?null:Y.command};
MT.prototype.shouldHideOptinPrompt=function(Y,b){return!Y||b};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],MT.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],MT.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],MT.prototype,"modern",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],MT);
_.a(MT,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(GXK!==void 0)return GXK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-purchase-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-sponsorships-live-chat-header-renderer id="header" data="[[data.header.liveChatSponsorshipsHeaderRenderer]]" deleted-state-message="[[getSimpleString(data.deletedStateMessage)]]" is-container-deleted="[[isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer">\n</ytd-sponsorships-live-chat-header-renderer>\n<div id="opt-in-prompt" on-click="onCtaButtonClick" hidden="[[shouldHideOptinPrompt(data.optInPrompt, isDeleted)]]" class="style-scope ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return GXK=Y},{mode:1});var Ji9;var ei=function(){return _.F.apply(this,arguments)||this};
_.P(ei,_.F);ei.prototype.onContextMenuClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
ei.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))};
ei.prototype.isDeletedChanged=ei.prototype.isDeletedChanged;_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],ei.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ei.prototype,"data",void 0);_.z([_.lr("isDeleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ei.prototype,"isDeletedChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],ei);
_.a(ei,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Ji9!==void 0)return Ji9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Ji9=Y},{mode:1});var pU=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return Y};
_.P(pU,_.F);_.g=pU.prototype;
_.g.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"}}}};
_.g.handleLiveChatAction=function(Y){_.v(Y,o5t)?this.handleMarkChatItemAsDeletedAction(_.v(Y,o5t)):_.v(Y,mk$)&&this.handleRemoveChatItemAction(_.v(Y,mk$))};
_.g.handleLiveChatActions=function(Y){Y.forEach(this.handleLiveChatAction,this)};
_.g.handleMarkChatItemAsDeletedAction=function(Y){var b=this,w;((w=this.data)==null?0:w.items)&&this.data.items.forEach(function(V,H){var f=Object.keys(V)[0];Object.values(V)[0].id===Y.targetItemId&&b.markAsDeleted("data.items",H,f,Y.deletedStateMessage,Y.showOriginalContentMessage)})};
_.g.handleRemoveChatItemAction=function(Y){var b=this,w;((w=this.data)==null?0:w.items)&&this.data.items.forEach(function(V,H){Object.values(V)[0].id===Y.targetItemId&&b.splice("data.items",H,1)})};
_.g.markAsDeleted=function(Y,b,w,V,H){Y=[Y,b,w].join(".");this.set(Y+".deletedStateMessage",V);this.set(Y+".showOriginalContentMessage",H)};
_.z([_.R(),_.K("design:type",Object)],pU.prototype,"data",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pU.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],pU.prototype,"ytActionHandlerBehavior",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],pU);
_.a(pU,"yt-live-chat-item-display-list-renderer",function(){if(MNQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_list_renderer.yt.live.chat.item.display.list.renderer.css.js--\x3e<div id="items" class="style-scope yt-live-chat-item-display-list-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;n9t===void 0&&(n9t=document.createElement("template"));var V=n9t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);MNQ=Y}Y=MNQ;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var uv8;var Yir,bvr=function(){if(Yir!==void 0)return Yir;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-item-display-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_item_display_renderer.yt.live.chat.item.display.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-item-display-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;uv8===void 0&&(uv8=document.createElement("template"));var V=uv8;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return Yir=Y};var OU=function(){var Y=_.F.apply(this,arguments)||this;Y.isHeader=!1;return Y};
_.P(OU,_.F);OU.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.up.Object.defineProperties(OU,{template:{configurable:!0,enumerable:!0,get:function(){return bvr()}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],OU.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],OU.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],OU.prototype,"isHeader",void 0);_.z([_.FM({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],OU);_.a(OU,"yt-live-chat-item-display-renderer",function(){return bvr()},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var wj8,Vet,ERI,Nok;
wj8={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}};Vet={home:"eohps",search:"eosps",watch:"eowps"};_.Hv5=["watch","search","home"];
_.tB=function(){this.JSC$12223_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12223_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.zO("PRECONSTRUCTION_DELAY",0);this.signals_=_.Kp();this.targetPage_=""};
_.tB.prototype.init=function(Y,b){Y=Y===void 0?"":Y;b=b===void 0?null:b;if(this.JSC$12223_isInitialized_)this.abort();else if(this.JSC$12223_isInitialized_=!0,Y&&_.gRj(this,Y),b){var w=_.iy(this.signals_,"pcl")?0:10,V=function(){for(var H=0,f;f=_.Hv5[H++];)f!=Y&&f!=b&&this.pendingPages_.push(f);_.fx$(this)}.bind(this);
this.signals_.parkOrScheduleJob(V,w,"pcl")}};
_.tB.prototype.abort=function(){this.fragmentJobId_&&(_.Lb.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Nok(this)};
_.gRj=function(Y,b){Y.JSC$12223_isInitialized_&&!Y.targetPage_&&(Y.targetPage_=b,ERI(Y,b),Y.isInitialPass_=!1,ERI(Y,b),Y.signals_.processSignal(Vet[Y.targetPage_]),Nok(Y),_.fx$(Y))};
_.fx$=function(Y){Y.pendingPages_.length&&!Y.pagePreparerJobId_&&(Y.pagePreparerJobId_=_.MY(_.Lb,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.gRj(this,this.pendingPages_.shift())}.bind(Y),Y.DEFAULT_DELAY_))};
ERI=function(Y,b){if(b=wj8[b])for(var w in b){var V=!1,H=w;w.charAt(0)=="~"&&(V=!0,H=w.substring(1));var f=b[w];f=typeof f=="object"?f:{count:f};b[w]=f;f.componentName=H;f.count>0&&(Y.isInitialPass_?V||Y.isSeenDuringInitialPass_[H]||(Y.JSC$12223_queue_.push({componentName:H,count:1,signals:f.signals}),Y.isSeenDuringInitialPass_[H]=!0,f.count--):Y.JSC$12223_queue_.push(f))}};
Nok=function(Y){Y.JSC$12223_queue_.length=0;Y.targetPage_="";Y.isInitialPass_=!0;Y.signals_.processSignal("eop")};
_.tB.getInstance=function(){return _.Ud(_.tB)};var cM5=function(){this.signals=_.Kp();this.init()};
cM5.prototype.startPreconstruction=function(){_.tB.getInstance().init(_.Wf("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
cM5.prototype.init=function(){UKC(this);window.Polymer&&F$C&&bnb();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var Y=_.wB.ytcsi;if(Y&&Y.gt&&(Y=Y.gt())&&Y.tick&&(Y.tick.aft>0||Y.tick.pbs>0)&&(_.Wf("IS_HOMEPAGE_COLD")||_.Wf("IS_RESULTS_PAGE_COLD")||_.Wf("IS_WATCH_PAGE_COLD"))){XjC(this);break a}I7b(uaL,this.onNotifications,this)}};
var UKC=function(Y){var b=function(){Y.signals.processSignal("dl")};
document.readyState==="complete"?(_.C7(Error("uh"),"WARNING"),b()):_.AL6(window,"load",b)};
cM5.prototype.onNotifications=function(Y){Y.timer||(_.Wf("IS_HOMEPAGE_COLD")||_.Wf("IS_RESULTS_PAGE_COLD")||_.Wf("IS_WATCH_PAGE_COLD"))&&XjC(this)};
var XjC=function(Y){Y.signals.parkOrScheduleJob(function(){Y.signals.processSignal("eocs")},10,"eor")};
new cM5;var RH,DKr=function(){return _.s6.apply(this,arguments)||this};
_.P(DKr,_.s6);_.g=DKr.prototype;_.g.enableActiveViewMeasurement=function(Y){if(this.isActiveViewEnabled(Y)){var b=this.getUrlPrefixesFromCommand(Y.viewableCommands);Y=this.getUrlPrefixesFromCommand(Y.endOfSessionCommands);if(!RH){var w=_.cQ("custom_active_view_tos_timeout_ms");RH=w>0&&w!==36E5?new O5a(this.getVersion(),w):new O5a(this.getVersion())}R_q(RH,this.hostElement);djB(RH,this.hostElement,b,Y)}};
_.g.stopActiveViewMeasurement=function(){RH&&R_q(RH,this.hostElement)};
_.g.isActiveViewEnabled=function(Y){return!!Y&&(this.hasAtLeastOneUrl(Y.viewableCommands)||this.hasAtLeastOneUrl(Y.endOfSessionCommands))};
_.g.hasAtLeastOneUrl=function(Y){return!!Y&&Y.length>0&&Y[0].loggingUrls!=null&&Y[0].loggingUrls.length>0};
_.g.getVersion=function(){var Y=_.zO("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(Y==null?void 0:Y.length)===2?Y[1]:null};
_.g.getUrlPrefixesFromCommand=function(Y){if(!Y)return[];var b=[];Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,w.loggingUrls){w=_.N(w.loggingUrls);for(var V=w.next();!V.done;V=w.next())V=V.value,V.baseUrl&&b.push(V.baseUrl)}return b};
_.z([_.QC()],DKr);var d0=[DKr.prototype];var mK8=function(){return _.s6.apply(this,arguments)||this};
_.P(mK8,_.s6);_.up.Object.defineProperties(mK8.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_entity_store_from_dependency_injection")?_.jm():_.u3()}}});
_.z([_.QC()],mK8);_.FX=[LZ.prototype,mK8.prototype];var oRo=["ytd-rich-shelf-renderer"],LU=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;Y.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";Y.followUpDialogPromise=null;Y.followUpDialogPromiseResolve=null;Y.followUpDialogPromiseReject=null;return Y};
_.P(LU,_.s6);_.g=LU.prototype;_.g.dismissibleItemIsDismissedChanged_=function(Y){_.q("kevlar_fluid_dismiss")&&(Y?_.Ua(this.hostElement,"yt-dismissible-item-dismissed"):_.Ua(this.hostElement,"yt-dismissible-item-undismissed"))};
_.g.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.g.dismissibleItemReset_=function(){var Y=this;this.isDismissed&&(this.isHideEnclosingAction=this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0);this.followUpDialogPromiseReject&&(this.followUpDialogPromise.thenCatch(function(){}),this.followUpDialogPromiseReject());
this.followUpDialogPromise=new _.hh(function(b,w){Y.followUpDialogPromiseResolve=b;Y.followUpDialogPromiseReject=w});
_.Ua(this.hostElement,"yt-enable-lockup-interaction")};
_.g.dismissibleItemOnYtServiceRequestSent_=function(Y,b){b.actions&&this.dismissibleItemProcessActions(b.actions,Y)};
_.g.dismissibleItemOnRequestSent=function(Y){if(_.q("web_button_rework"))for(var b=_.N(Y.detail),w=b.next();!w.done;w=b.next()){var V=void 0;(w=(V=_.v(w.value,_.x7))==null?void 0:V.actions)&&this.dismissibleItemProcessActions(w,Y)}};
_.g.dismissibleItemOnCommandSent=function(Y,b){b&&this.dismissibleItemProcessActions(b,Y)};
_.g.setAndGetDismissedContentId=function(Y){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+Y};
_.g.replayDismissAction=function(Y){this.dismissibleItemProcessActions([Y])};
_.g.dismissibleItemProcessActions=function(Y,b){for(var w=0;w<Y.length;w++){var V=Y[w],H=void 0;((H=_.v(V,_.ln))==null?0:H.commands)&&this.dismissibleItemProcessActions(_.v(V,_.ln).commands,b);if(_.v(V,_.Mm)){if(H=_.v(V,_.Mm),!H.replaceParentSection||oRo.includes(this.hostElement.nodeName.toLowerCase()))_.q("web_see_fewer_shorts_reactive_dismissal")&&H.groupDismissal&&teg(this,H.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(H),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.qo("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:V})),V=void 0,(V=b)==null||V.stopPropagation()}else if(_.v(V,Pfd))this.dismissibleItemHandleHideEnclosingAction_(),V=void 0,(V=b)==null||V.stopPropagation();else if(_.v(V,L3C))_.q("web_see_fewer_shorts_reactive_dismissal")&&(V=_.v(V,L3C),H=void 0,((H=V)==null?0:H.targetGroupId)&&teg(this,{targetGroupId:V.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.qo("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),V=void 0,(V=b)==null||V.stopPropagation();else if(_.v(V,_.x7))(V=_.v(V,_.x7).actions)&&_.IP(this.hostElement,V,this.hostElement),V=void 0,(V=b)==null||V.stopPropagation();else{var f=H=void 0;((H=_.v(V,_.KB))==null?void 0:H.signal)!=="TELL_US_WHY"||((f=_.v(V,_.KB))==null?0:f.targetId)&&_.q("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),V=void 0,(V=b)==null||V.stopPropagation())}}};
_.g.dismissibleItemOnYtServiceRequestCompleted_=function(Y,b){var w=this.get("feedbackResponses.0.followUpDialog",b.data);w?this.followUpDialogPromiseResolve(w):b.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(b.actions,Y)};
_.g.dismissibleItemHandleReplaceEnclosingAction_=function(Y){this.dismissedRenderer=Y.item;this.isDismissed=!0;var b=null;(b=_.E6(this.hostElement).querySelector("#dismissed"))&&_.TC(this,function(){_.uS(b)});
_.Ua(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.g.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.g.dismissibleItemHandleUndoFeedbackAction_=function(){_.Ua(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.g.dismissibleItemHandleTellUsWhySignalAction_=function(){var Y=this;this.followUpDialogPromise.then(function(b){Y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:b}})})};
LU.prototype.dismissibleItemOnYtServiceRequestCompleted_=LU.prototype.dismissibleItemOnYtServiceRequestCompleted_;LU.prototype.dismissibleItemOnCommandSent=LU.prototype.dismissibleItemOnCommandSent;LU.prototype.dismissibleItemOnRequestSent=LU.prototype.dismissibleItemOnRequestSent;LU.prototype.dismissibleItemOnYtServiceRequestSent_=LU.prototype.dismissibleItemOnYtServiceRequestSent_;LU.prototype.dismissibleItemDataChanged_=LU.prototype.dismissibleItemDataChanged_;
LU.prototype.dismissibleItemIsDismissedChanged_=LU.prototype.dismissibleItemIsDismissedChanged_;_.z([_.n(_.J0),_.K("design:type",Object)],LU.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],LU.prototype,"ytdReduxBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],LU.prototype,"isDismissed",void 0);_.z([_.R(),_.K("design:type",Object)],LU.prototype,"dismissedRenderer",void 0);
_.z([_.lr("isDismissed"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],LU.prototype,"dismissibleItemIsDismissedChanged_",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],LU.prototype,"dismissibleItemDataChanged_",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],LU.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.z([_.kZ("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],LU.prototype,"dismissibleItemOnRequestSent",null);
_.z([_.kZ("yt-dismissible-item-action"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Array]),_.K("design:returntype")],LU.prototype,"dismissibleItemOnCommandSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],LU.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.z([_.QC()],LU);_.Si=[_.J0,_.FX,LU.prototype];var aH=function(){var Y=_.s6.apply(this,arguments)||this;Y.disableGridStateAware=!1;Y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};Y.currentGridClass="";return Y};
_.P(aH,_.s6);aH.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.TC(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var Y=this.gridStateAwareGetElement();_.U6(Y,"grid",!0)}};
aH.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
aH.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.E6(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
aH.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var Y="grid-disabled";else{Y=_.HeK.getInstance();var b=this.get("pageSubtype");Y=b&&beU.includes(b)?"grid-disabled":Y.currentSnapState_?Y.currentSnapState_.className:null}(b=this.gridStateAwareGetElement())&&Y!==this.currentGridClass&&(Y&&_.U6(b,Y,!0),this.currentGridClass&&_.U6(b,this.currentGridClass,!1),this.currentGridClass=Y)};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],aH.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",String)],aH.prototype,"gridStateAwareSizingElementSelector",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],aH.prototype,"disableGridStateAware",void 0);_.z([_.QC()],aH);_.r0=[aH.prototype,_.US.YtActionHandlerBehavior];_.z8=new _.Hx("GUIDE_TOKEN");var KU;_.Ww={};KU=function(){var Y=_.s6.apply(this,arguments)||this;Y.guideStateActionMap={"ytd-update-guide-state-action":"handleGuideStateAction","ytd-update-mini-guide-state-action":"handleMiniGuideStateAction","ytd-update-guide-opened-action":"handleGuideOpenedAction","ytd-update-active-endpoint-action":"handleActiveEndpointAction"};return Y};
_.P(KU,_.s6);_.g=KU.prototype;_.g.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var Y=_.fH().resolve(_.HQ(_.z8));Y&&(this.guidePersistentAndVisible=Y.getGuidePersistentAndVisible(),this.activeEndpoint=Y.getActiveEndpoint(),this.guideOpened=Y.getGuideOpened(),this.miniGuideVisible=Y.getMiniGuideVisible())};
_.g.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.g.handleGuideStateAction=function(Y){this.guidePersistentAndVisible=Y};
_.g.handleMiniGuideStateAction=function(Y){this.miniGuideVisible=Y};
_.g.handleGuideOpenedAction=function(Y){this.guideOpened=Y};
_.g.handleActiveEndpointAction=function(Y){this.activeEndpoint=Y};
KU.prototype.onActiveEndpointChange=KU.prototype.onActiveEndpointChange;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],KU.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],KU.prototype,"guidePersistentAndVisible",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],KU.prototype,"miniGuideVisible",void 0);_.z([_.R(),_.K("design:type",Object)],KU.prototype,"activeEndpoint",void 0);
_.z([_.lr("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KU.prototype,"onActiveEndpointChange",null);_.z([_.R(),_.K("design:type",Boolean)],KU.prototype,"guideOpened",void 0);_.z([_.QC()],KU);_.Ww.YtdGuideStateAwareBehavior=[];_.Ww.YtdGuideStateAwareBehavior.push(KU.prototype,_.US.YtActionHandlerBehavior);var Ixd=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],ih=function(){var Y=_.s6.apply(this,arguments)||this;Y.hoverJobId=0;Y.JSC$12254_touched=!1;return Y};
_.P(ih,_.s6);_.g=ih.prototype;_.g.created=function(){this.useExpandableTooltip=!Ixd.includes(this.is)};
_.g.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.g.detached=function(){this.useExpandableTooltip=!1};
_.g.lockupOnDown=function(Y){this.interactionElement&&!_.uA(_.JL(Y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.g.lockupOnUp=function(Y){this.interactionElement&&!_.uA(_.JL(Y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.g.onTouchStart=function(){this.JSC$12254_touched=!0};
_.g.lockupOnMouseEnter=function(){var Y=this,b=_.cQ("kevlar_lockup_hover_delay",-1);this.JSC$12254_touched&&b>=0?(_.Lb.cancelJob(this.hoverJobId),this.hoverJobId=_.Lb.addJob(function(){Y.lockupIsHovered=!0},8,b),this.JSC$12254_touched=!1):this.lockupIsHovered=!0};
_.g.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Lb.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.g.lockupOnPopupClosed=function(Y,b){var w;((w=b.popupRenderer)==null?void 0:w.is)==="ytd-menu-popup-renderer"&&(Y=b.popupRenderer.veData,b=_.dO(),Y&&b&&_.Tu(b,[Y]))};
_.g.lockupOnLockupRequested=function(Y){var b=Y.detail.videoIds[0],w;Y.detail&&b===((w=this.data)==null?void 0:w.videoId)&&(Y.detail.returnValue=[this.data])};
_.g.lockupOnYtServiceRequestSent=function(Y,b){if(Y=b.actions)for(var w=0;w<Y.length;w++){var V=Y[w];if(V.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&b.ajaxPromise){var H=void 0,f=(H=_.v(b.endpoint,_.aU))==null?void 0:H.playlistId;H=void 0;V=(H=V.removedVideoId)!=null?H:"";BQt(_.Cp(),V,f)}else V.action==="ACTION_REMOVE_VIDEO"&&b.ajaxPromise&&(f=void 0,V=(f=V.setVideoId)!=null?f:"",_.n19(_.Cp(),V))}};
_.g.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.g.lockupOnLockupEnabled=function(){if(!this.$){var Y=_.fH().resolve(_.bX).getCurrentPage(),b=this.getParentRenderer?this.getParentRenderer():void 0;_.Sk(new _.BQ("component not ready",this.is,this.isAttached,Y==null?void 0:Y.is,b==null?void 0:b.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
ih.prototype.lockupOnLockupEnabled=ih.prototype.lockupOnLockupEnabled;ih.prototype.lockupOnLockupDisabled=ih.prototype.lockupOnLockupDisabled;ih.prototype.lockupOnYtServiceRequestSent=ih.prototype.lockupOnYtServiceRequestSent;ih.prototype.lockupOnLockupRequested=ih.prototype.lockupOnLockupRequested;ih.prototype.lockupOnPopupClosed=ih.prototype.lockupOnPopupClosed;ih.prototype.lockupOnMouseLeave=ih.prototype.lockupOnMouseLeave;ih.prototype.lockupOnMouseEnter=ih.prototype.lockupOnMouseEnter;
ih.prototype.onTouchStart=ih.prototype.onTouchStart;ih.prototype.lockupOnUp=ih.prototype.lockupOnUp;ih.prototype.lockupOnDown=ih.prototype.lockupOnDown;_.z([_.R(),_.K("design:type",Object)],ih.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],ih.prototype,"lockupIsHovered",void 0);_.z([_.R(),_.K("design:type",Boolean)],ih.prototype,"lockupTouchTriggered",void 0);_.z([_.R(),_.K("design:type",Boolean)],ih.prototype,"useExpandableTooltip",void 0);
_.z([_.xZ("#interaction"),_.K("design:type",Object)],ih.prototype,"interactionElement",void 0);_.z([_.kZ("down"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ih.prototype,"lockupOnDown",null);_.z([_.kZ("up"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ih.prototype,"lockupOnUp",null);
_.z([_.kZ("touchstart"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ih.prototype,"onTouchStart",null);_.z([_.kZ("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ih.prototype,"lockupOnMouseEnter",null);_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ih.prototype,"lockupOnMouseLeave",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],ih.prototype,"lockupOnPopupClosed",null);_.z([_.kZ("yt-lockup-requested"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ih.prototype,"lockupOnLockupRequested",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],ih.prototype,"lockupOnYtServiceRequestSent",null);_.z([_.kZ("yt-disable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ih.prototype,"lockupOnLockupDisabled",null);
_.z([_.kZ("yt-enable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ih.prototype,"lockupOnLockupEnabled",null);_.z([_.QC()],ih);_.AB=[ih.prototype];_.kB$={YtdReduxBehavior:[]};_.kB$.YtdReduxBehavior.push.apply(_.kB$.YtdReduxBehavior,_.FX);var CU=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;Y.disableNowPlaying=!1;Y.disableTooltips=!1;Y.useHoveredProperty=!1;Y.hovered=!1;Y.isThumbnailHovered_=!1;Y.addBackground=_.q("kevlar_thumbnail_bg");Y.nowPlaying=!1;Y.disableRounding=!1;Y.size="small";return Y};
_.P(CU,_.s6);_.g=CU.prototype;_.g.computeThumbnailOverlaySidePanelWidth_=function(Y,b){return Y-b};
_.g.computeSize=function(Y,b){if(!this.disableRounding){if(!Y&&!b)return"small";Y=Math.max(Y||0,b||0);return Y>=256?"large":Y>=96?"medium":"small"}};
_.g.computeFinalHoveredState_=function(Y,b,w){return this.nowPlaying?!1:_.q("kevlar_thumbnail_fluid")&&Y?b:w};
_.g.computeHoverOverlays_=function(Y,b){return Y&&b?b:void 0};
_.g.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.g.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.g.checkMiniplayer_=function(){var Y;if(((Y=this.data)==null?0:Y.playlistSetVideoId)&&_.q("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{Y=_.sL();var b=Y.currentEndpoint;!this.disableNowPlaying&&b&&_.v(b,_.TG)&&this.data?(b=_.v(b,_.TG),this.nowPlaying=this.data.playlistId?b.playlistId===this.data.playlistId:b.videoId===this.data.videoId,this.isVideoPlaying=Y==null?void 0:Y.isVideoPlaying):this.nowPlaying=!1}};
CU.prototype.checkMiniplayer_=CU.prototype.checkMiniplayer_;CU.prototype.onMouseLeave_=CU.prototype.onMouseLeave_;CU.prototype.onMouseEnter_=CU.prototype.onMouseEnter_;CU.prototype.computeHoverOverlays_=CU.prototype.computeHoverOverlays_;CU.prototype.computeFinalHoveredState_=CU.prototype.computeFinalHoveredState_;CU.prototype.computeSize=CU.prototype.computeSize;CU.prototype.computeThumbnailOverlaySidePanelWidth_=CU.prototype.computeThumbnailOverlaySidePanelWidth_;
_.z([_.n(_.FX),_.K("design:type",Object)],CU.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CU.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],CU.prototype,"height",void 0);_.z([_.R(),_.K("design:type",Boolean)],CU.prototype,"bottomSidePanel",void 0);_.z([_.R(),_.K("design:type",Number)],CU.prototype,"width",void 0);_.z([_.R(),_.K("design:type",Object)],CU.prototype,"disableNowPlaying",void 0);
_.z([_.R({selector:_.L8}),_.K("design:type",Boolean)],CU.prototype,"miniplayerIsActive",void 0);_.z([_.R(),_.K("design:type",Object)],CU.prototype,"disableTooltips",void 0);_.z([_.R(),_.K("design:type",Object)],CU.prototype,"useHoveredProperty",void 0);_.z([_.R(),_.K("design:type",Object)],CU.prototype,"hovered",void 0);_.z([_.R(),_.K("design:type",Object)],CU.prototype,"isThumbnailHovered_",void 0);
_.z([_.R({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.K("design:type",Boolean)],CU.prototype,"finalHoveredState_",void 0);_.z([_.R({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.K("design:type",Number)],CU.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],CU.prototype,"addBackground",void 0);
_.z([_.R({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.K("design:type",Object)],CU.prototype,"hoverOverlays_",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],CU.prototype,"nowPlaying",void 0);_.z([_.R(),_.K("design:type",Boolean)],CU.prototype,"isVideoPlaying",void 0);_.z([_.R(),_.K("design:type",Object)],CU.prototype,"disableRounding",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.K("design:type",Object)],CU.prototype,"size",void 0);_.z([_.kZ("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CU.prototype,"onMouseEnter_",null);_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CU.prototype,"onMouseLeave_",null);
_.z([_.lr("data","disableNowPlaying","miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CU.prototype,"checkMiniplayer_",null);_.z([_.QC()],CU);var lxr=[CU.prototype];_.y3={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(Y,b){return Y+":"+_.wU(b)},
getPlayerListener_:function(Y,b,w){Y=this.getPlayerListenerKey_(Y,b);b=this.playerListeners_.get(Y);w&&this.playerListeners_.delete(Y);return b},
savePlayerListener_:function(Y,b){var w=b.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(Y,b),w);return w},
listenToPlayerEvent:function(Y,b,w){w=this.savePlayerListener_(b,w);Y.addEventListener(b,w)},
listenToPlayerEvents:function(Y,b){b.forEach(function(w,V){this.listenToPlayerEvent(Y,V,w)}.bind(this))},
unlistenFromPlayerEvent:function(Y,b,w){w=this.getPlayerListener_(b,w,!0);Y.removeEventListener(b,w)},
unlistenFromPlayerEvents:function(Y,b){b.forEach(function(w,V){this.unlistenFromPlayerEvent(Y,V,w)}.bind(this))}}};
_.$I=function(){};_.hFr=new _.Hx("PLAYER_API_TOKEN");var axv=!1,Kfq,zFe=!1,AMI;var fs=function(Y,b,w,V,H){_.BE.call(this);var f=this;this.playerId=b;this.webPlayerContextConfig=V;this.hVJ=H;this.naO=!1;this.api={};this.cBQ=this.s57=null;this.oai=new _.xu;this.zJ={};this.tQY=this.eum=this.elementId=this.zzL=this.config=null;this.fqT=!1;this.sV=this.wWt=null;this.eqh={};this.bpE=["onReady"];this.lastError=null;this.bm7=NaN;this.qEZ={};this.n9T=0;this.z2=this.targetElement=Y;_.os(this,this.oai);xK5(this);w?this.n9T=setTimeout(function(){f.loadNewVideoConfig(w)},0):V&&(qiC(this),
spK(this))};
_.P(fs,_.BE);fs.prototype.getId=function(){return this.playerId};
fs.prototype.loadNewVideoConfig=function(Y){if(!this.isDisposed()){this.n9T&&(clearTimeout(this.n9T),this.n9T=0);var b=Y||{};b instanceof dPC||(b=new dPC(b));this.config=b;this.setConfig(Y);spK(this);this.isReady()&&QpK(this)}};
var qiC=function(Y){var b;Y.webPlayerContextConfig?b=Y.webPlayerContextConfig.rootElementId:b=Y.config.attrs.id;Y.elementId=b||Y.elementId;Y.elementId==="video-player"&&(Y.elementId=Y.playerId,Y.webPlayerContextConfig?Y.webPlayerContextConfig.rootElementId=Y.playerId:Y.config.attrs.id=Y.playerId);var w;((w=Y.z2)==null?void 0:w.id)===Y.elementId&&(Y.elementId+="-player",Y.webPlayerContextConfig?Y.webPlayerContextConfig.rootElementId=Y.elementId:Y.config.attrs.id=Y.elementId)};
fs.prototype.setConfig=function(Y){this.zzL=Y;this.config=vRt(Y);qiC(this);if(!this.eum){var b;this.eum=Pe8(this,((b=this.config.args)==null?void 0:b.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var w;if((w=this.config)==null?0:w.attrs)Y=this.config.attrs,(b=Y.width)&&this.z2&&(this.z2.style.width=WY(Number(b)||b,!0)),(Y=Y.height)&&this.z2&&(this.z2.style.height=WY(Number(Y)||Y,!0))};
var QpK=function(Y){if(Y.config&&Y.config.loaded!==!0)if(Y.config.loaded=!0,!Y.config.args||Y.config.args.autoplay!=="0"&&Y.config.args.autoplay!==0&&Y.config.args.autoplay!==!1){var b;Y.api.loadVideoByPlayerVars((b=Y.config.args)!=null?b:null)}else Y.api.cueVideoByPlayerVars(Y.config.args)},Boo=function(Y){var b=!0,w=Y.getPlayerElement();
w&&Y.config&&(b=w.dataset.version===Zv$(Y));return b&&!!_.Aq("yt.player.Application.create")},spK=function(Y){if(!Y.isDisposed()&&!Y.fqT){var b=Boo(Y);
if(b&&(Y.getPlayerElement()?"html5":null)==="html5")Y.tQY="html5",Y.isReady()||nRo(Y);else if(MeK(Y),Y.tQY="html5",b&&Y.sV&&Y.targetElement)Y.targetElement.appendChild(Y.sV),nRo(Y);else{Y.config&&(Y.config.loaded=!0);var w=!1;Y.wWt=function(){w=!0;var V=eFK(Y,"player_bootstrap_method")?_.Aq("yt.player.Application.createAlternate")||_.Aq("yt.player.Application.create"):_.Aq("yt.player.Application.create");var H=Y.config?vRt(Y.config):void 0;V&&V(Y.targetElement,H,Y.webPlayerContextConfig,Y.hVJ);nRo(Y)};
Y.fqT=!0;b?Y.wWt():(_.io(Zv$(Y),Y.wWt),(b=pj9(Y))&&xvL(b||""),Ovr(Y)&&!w&&_.wG("yt.player.Application.create",null))}}};
fs.prototype.getPlayerElement=function(){var Y=_.gK(document,this.elementId);!Y&&this.z2&&this.z2.querySelector&&(Y=this.z2.querySelector("#"+this.elementId));return Y};
var nRo=function(Y){if(!Y.isDisposed()){var b=Y.getPlayerElement(),w=!1;b&&b.getApiInterface&&b.getApiInterface()&&(w=!0);if(w){Y.fqT=!1;if(!eFK(Y,"html5_remove_not_servable_check_killswitch")){var V;if((b==null?0:b.isNotServable)&&Y.config&&(b==null?0:b.isNotServable((V=Y.config.args)==null?void 0:V.video_id)))return}te9(Y)}else Y.bm7=setTimeout(function(){nRo(Y)},50)}},te9=function(Y){xK5(Y);
Y.naO=!0;var b=Y.getPlayerElement();if(b){Y.s57=RF8(Y,b,"addEventListener");Y.cBQ=RF8(Y,b,"removeEventListener");var w=b.getApiInterface();w=w.concat(b.getInternalApiInterface());for(var V=Y.api,H=0;H<w.length;H++){var f=w[H];V[f]||(V[f]=RF8(Y,b,f))}}for(var E in Y.zJ)Y.zJ.hasOwnProperty(E)&&Y.s57&&Y.s57(E,Y.zJ[E]);QpK(Y);Y.eum&&Y.eum(Y.api);Y.oai.publish("onReady",Y.api)},RF8=function(Y,b,w){var V=b[w];
return function(){var H=_.BN.apply(0,arguments);try{return Y.lastError=null,V.apply(b,H)}catch(f){if(w!=="sendAbandonmentPing")throw f.params=w,Y.lastError=f,H=new _.BQ("PlayerProxy error in method call",{error:f,method:w,playerId:Y.playerId}),H.level="WARNING",H;}}},xK5=function(Y){Y.naO=!1;
if(Y.cBQ)for(var b in Y.zJ)Y.zJ.hasOwnProperty(b)&&Y.cBQ(b,Y.zJ[b]);for(var w in Y.qEZ)Y.qEZ.hasOwnProperty(w)&&clearTimeout(Number(w));Y.qEZ={};Y.s57=null;Y.cBQ=null;b=Y.api;for(var V in b)b.hasOwnProperty(V)&&(b[V]=null);b.addEventListener=function(H,f){Y.addEventListener(H,f)};
b.removeEventListener=function(H,f){Y.removeEventListener(H,f)};
b.destroy=function(){Y.dispose()};
b.getLastError=function(){return Y.getLastError()};
b.getPlayerType=function(){return Y.getPlayerType()};
b.getCurrentVideoConfig=function(){return Y.zzL};
b.loadNewVideoConfig=function(H){Y.loadNewVideoConfig(H)};
b.isReady=function(){return Y.isReady()}};
fs.prototype.isReady=function(){return this.naO};
fs.prototype.addEventListener=function(Y,b){var w=this;this.isDisposed();var V=Pe8(this,b);V&&(_.Ka(this.bpE,Y)||this.zJ[Y]||(b=dKj(this,Y),this.s57&&this.s57(Y,b)),this.oai.subscribe(Y,V),Y==="onReady"&&this.isReady()&&setTimeout(function(){V(w.api)},0))};
fs.prototype.removeEventListener=function(Y,b){this.isDisposed()||(b=Pe8(this,b))&&this.oai.unsubscribe(Y,b)};
var Pe8=function(Y,b){var w=b;if(typeof b==="string"){if(Y.eqh[b])return Y.eqh[b];w=function(){var V=_.BN.apply(0,arguments),H=_.Aq(b);if(H)try{H.apply(_.wB,V)}catch(f){throw V=new _.BQ("PlayerProxy error when executing callback",{error:f}),V.level="ERROR",V;}};
Y.eqh[b]=w}return w?w:null},dKj=function(Y,b){var w=function(V){var H=function(){Y.isDisposed();
if(!Y.isDisposed())try{Y.oai.publish(b,V!=null?V:void 0)}catch(U){var E=new _.BQ("PlayerProxy error when creating global callback",{error:U.message,event:b,playerId:Y.playerId,data:V,originalStack:U.stack,componentStack:U.componentStack});E.level="WARNING";throw E;}};
if(eFK(Y,"web_player_publish_events_immediately"))H();else{var f=setTimeout(function(){H();_.BL.remove(Y.qEZ,String(f))},0);
_.BL.add(Y.qEZ,String(f),!0)}};
return Y.zJ[b]=w};
fs.prototype.getPlayerType=function(){return this.tQY||(this.getPlayerElement()?"html5":null)};
fs.prototype.getLastError=function(){return this.lastError};
var MeK=function(Y){Y.cancel();xK5(Y);Y.tQY=null;Y.config&&(Y.config.loaded=!1);var b=Y.getPlayerElement();b&&(Boo(Y)||!Ovr(Y)?Y.sV=b:(b&&b.destroy&&b.destroy(),Y.sV=null));Y.targetElement&&_.dm(Y.targetElement)};
fs.prototype.cancel=function(){this.wWt&&_.$kK(Zv$(this),this.wWt);clearTimeout(this.bm7);this.fqT=!1};
fs.prototype.disposeInternal=function(){MeK(this);if(this.sV&&this.config&&this.sV.destroy)try{this.sV.destroy()}catch(b){var Y=new _.BQ("PlayerProxy error during disposal",{error:b});Y.level="ERROR";throw Y;}this.eqh=null;for(Y in this.zJ)this.zJ.hasOwnProperty(Y)&&delete this.zJ[Y];this.zzL=this.config=this.api=null;delete this.targetElement;delete this.z2;_.BE.prototype.disposeInternal.call(this)};
var Ovr=function(Y){var b,w;Y=(b=Y.config)==null?void 0:(w=b.args)==null?void 0:w.fflags;return!!Y&&Y.indexOf("player_destroy_old_version=true")!==-1},Zv$=function(Y){return Y.webPlayerContextConfig?Y.webPlayerContextConfig.jsUrl:(Y=Y.config.assets)?Y.js:""},pj9=function(Y){return Y.webPlayerContextConfig?Y.webPlayerContextConfig.cssUrl:(Y=Y.config.assets)?Y.css:""},eFK=function(Y,b){if(Y.webPlayerContextConfig)var w=Y.webPlayerContextConfig.serializedExperimentFlags;
else{var V;if((V=Y.config)==null?0:V.args)w=Y.config.args.fflags}return(w||"").split("&").includes(b+"=true")},vRt=function(Y){for(var b={},w=_.N(Object.keys(Y)),V=w.next();!V.done;V=w.next()){V=V.value;
var H=Y[V];b[V]=typeof H==="object"?_.BL.clone(H):H}return b};var GBK={},jpe="player_uid_"+(Math.random()*1E9>>>0);var ji=function(Y,b,w,V,H,f){b=b===void 0?document.createElement("div"):b;this.webPlayerContextConfig=Y;this.container=b;this.commandResolver=w;this.apiResolver=uFb();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.mD;V||f?Ffk(this):LfC(this);this.pendingPlayerResponse=V;this.pendingWatchNextResponse=H;this.pendingPlayerVars=f;Si$(this)};
ji.prototype.loadVideoWithPlayerResponse=function(Y,b,w){this.loadVideo(Y,b,w)};
ji.prototype.loadVideoWithPlayerVars=function(Y){return this.loadVideo(void 0,void 0,Y)};
ji.prototype.destroy=function(Y){if(Y=_.gK(document,Y))Y=jpe+"_"+_.wU(Y),(Y=GBK[Y])&&Y.dispose()};
var rM5=function(Y,b){var w;_.c(function(V){if(V.nextAddress==1)return Y.pendingWatchNextResponse=b,Y.synchronousApi?(w=Y.synchronousApi,V.jumpTo(2)):_.D(V,Y.api,3);V.nextAddress!=2&&(w=V.yieldResult);axr(Y,w);Y.pendingWatchNextResponse&&(w.updateVideoData({raw_watch_next_response:Y.pendingWatchNextResponse}),Y.pendingWatchNextResponse=void 0);_.om(V)})},axr=function(Y,b){var w;
if(!(b==null?0:(w=b.isReady)==null?0:w.call(b))){var V;Y=new _.BQ("playerApi is falsey",{synchronousApi:Y.synchronousApi,apiResolved:Y.apiResolver.resolved,playerApiUndefined:b===void 0,playerApiNull:b===null,playerApiReady:(b==null?void 0:(V=b.isReady)==null?void 0:V.call(b))===!0,playerApiMethods:b?Object.keys(b):[]});_.Ft(Y)}},zF_=function(Y,b){if(typeof Y[b]==="function")return Y[b]()},WfI=function(Y){var b=window,w,V=(w=b.ytplayer)==null?void 0:w.bootstrapPlayerContainer;
if((w=V==null?void 0:V.firstElementChild)&&_.$5(w,"html5-video-player")){var H,f,E=(H=b.ytplayer)==null?void 0:(f=H.bootstrapWebPlayerContextConfig)==null?void 0:f.contextId;H=Y.webPlayerContextConfig.contextId;if(E&&E===H){V!==Y.container&&(V=!1,zF_(w,"getPlayerState")===2&&(V=!0),Y.container.appendChild(w),V||zF_(w,"playVideo"));var U;if((U=b.ytplayer)==null?0:U.bootstrapPlayerResponse)Y.bootstrapPlayerResponse=b.ytplayer.bootstrapPlayerResponse}}},Si$=function(Y){var b,w,V,H,f;
_.c(function(E){if(E.nextAddress==1)return Y.pageReadyOrDataAvailable?E.jumpTo(2):_.D(E,Y.pageReadyOrDataAvailableResolver.promise,2);if(E.nextAddress!=4)return!_.q("kevlar_player_unified_player_loading")||rMt()&&WfG()?E.jumpTo(4):_.D(E,yMG(),4);WfI(Y);if(Y.pendingPlayerResponse||Y.pendingPlayerVars)b=$Kb(Y.pendingPlayerResponse,Y.pendingWatchNextResponse,Y.pendingPlayerVars),Y.pendingPlayerResponse&&Y.pendingPlayerResponse===Y.bootstrapPlayerResponse&&(b.loaded=!0),Y.bootstrapPlayerResponse=void 0;
w=JMb(Y.container,b,Y.webPlayerContextConfig);((V=b)==null?0:V.loaded)&&Y.pendingWatchNextResponse?(rM5(Y,Y.pendingWatchNextResponse),Y.pendingPlayerResponse=void 0,Y.pendingPlayerVars=void 0):Kf8(Y);H=function(U){w.removeEventListener("onReady",H);Y.synchronousApi=U;Y.apiResolver.resolve(U)};
w.addEventListener("onReady",H);Y.commandResolver!==void 0&&(f=Y.commandResolver,w.addEventListener("innertubeCommand",function(U){f(U)}));
_.om(E)})};
ji.prototype.loadVideo=function(Y,b,w){var V=this,H,f,E,U,X,I,k,l,x;return _.c(function(Q){if(Q.nextAddress==1)return V.pendingPlayerResponse=Y,V.pendingWatchNextResponse=b,V.pendingPlayerVars=w,Ffk(V),V.synchronousApi?(H=V.synchronousApi,Q.jumpTo(2)):_.D(Q,V.api,3);Q.nextAddress!=2&&(H=Q.yieldResult);axr(V,H);E=new Promise(function(Z){f=Z});
U=function(){var Z=H.getPlayerResponse();Z&&(H.removeEventListener("onVideoDataChange",U),f(Z))};
H.addEventListener("onVideoDataChange",U);if(V.pendingPlayerResponse||V.pendingPlayerVars)V.pendingPlayerResponse&&V.pendingPlayerResponse===V.bootstrapPlayerResponse?(f(V.pendingPlayerResponse),V.pendingWatchNextResponse&&rM5(V,V.pendingWatchNextResponse)):(X=$Kb(V.pendingPlayerResponse,V.pendingWatchNextResponse,V.pendingPlayerVars),(x=(I=V.pendingPlayerResponse)==null?void 0:(k=I.playerConfig)==null?void 0:(l=k.playbackStartConfig)==null?void 0:l.startPaused)?H.cueVideoByPlayerVars(X.args):H.loadVideoByPlayerVars(X.args)),
Kf8(V),V.bootstrapPlayerResponse=void 0;return Q.return(E)})};
var LfC=function(Y){if(document.readyState==="complete"||document.readyState==="interactive")Ffk(Y);else{var b=function(){document.removeEventListener("DOMContentLoaded",b);Ffk(Y)};
document.addEventListener("DOMContentLoaded",b)}},Ffk=function(Y){Y.pageReadyOrDataAvailable=!0;
Y.pageReadyOrDataAvailableResolver.resolve()},Kf8=function(Y){Y.pendingPlayerResponse=void 0;
Y.pendingWatchNextResponse=void 0;Y.pendingPlayerVars=void 0};
_.up.Object.defineProperties(ji.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var G8=function(Y){L9.call(this,Y===void 0?"document_active":Y);var b=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(w){b.transition("document_disposed",{event:w})});
window.addEventListener("beforeunload",function(w){b.transition("document_disposed_preventable",{event:w})});
window.addEventListener("unload",function(w){b.transition("document_disposed",{event:w});b.hasRun=new Map})};
_.P(G8,L9);
G8.prototype.runPreventableDispose=function(Y,b){if(!this.hasRun.get("document_disposed_preventable")){Y(b==null?void 0:b.event);var w,V;if((b==null?0:(w=b.event)==null?0:w.defaultPrevented)||(b==null?0:(V=b.event)==null?0:V.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.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")};
G8.prototype.runDispose=function(Y,b){this.hasRun.get("document_disposed")?this.transition("document_active"):(Y(b==null?void 0:b.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
G8.prototype.runFlush=function(Y,b){Y(b==null?void 0:b.event);this.transition("document_active")};
G8.prototype.runActive=function(){};var T8=function(Y){L9.call(this,Y===void 0?"document_visibility_unknown":Y);var b=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(w){document.visibilityState==="visible"?b.transition("document_visible",{event:w}):b.transition("document_hidden",
{event:w})});
_.q("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(w){b.transition("document_backgrounded",{event:w})}),window.addEventListener("focus",function(w){b.transition("document_foregrounded",{event:w})}))};
_.P(T8,L9);T8.prototype.runVisible=function(Y,b){Y(b==null?void 0:b.event);_.q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
T8.prototype.runHidden=function(Y,b){Y(b==null?void 0:b.event);_.q("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
T8.prototype.runBackgrounded=function(Y,b){Y(b==null?void 0:b.event)};
T8.prototype.runForegrounded=function(Y,b){Y(b==null?void 0:b.event)};var JB=function(){this.teardownLifecycle=new G8;this.visibilityLifecycle=new T8};
JB.prototype.install=function(){var Y=_.BN.apply(0,arguments),b=this;Y.forEach(function(w){b.teardownLifecycle.install(w)});
Y.forEach(function(w){b.visibilityLifecycle.install(w)})};var uh=function(){JB.call(this);var Y={};this.install((Y.document_disposed={callback:this.abortSlisAndFlush},Y));_.q("combine_ve_grafts")&&(Y={},this.install((Y.document_disposed={callback:this.flushInteractionLoggingAttachVes},Y)));Y={};this.install((Y.flush_logs={callback:this.logFinalPayload},Y));_.q("web_log_cfg_cee_ks")||_.MY(_.Lb,iv5)};
_.P(uh,JB);var YFL=function(){uh.loggingInstance||(uh.loggingInstance=new uh);return uh.loggingInstance};
uh.prototype.logFinalPayload=function(){if(_.q("web_fp_via_jspb")){var Y=new UY$,b=_.dO();b&&_.hP(Y,1,b);b=_.q("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;_.gE(b,380,XyK,Y);STB("finalPayload",b);_.q("web_fp_via_jspb_and_json")&&_.RY("finalPayload",{csn:_.dO()})}else _.RY("finalPayload",{csn:_.dO()})};
uh.prototype.abortSlisAndFlush=function(){hJo($U);j7!=null&&j7.flush()};
uh.prototype.flushInteractionLoggingAttachVes=function(){ai8(_.Qd())};
var iv5=function(){var Y=_.zO("CLIENT_EXPERIMENT_EVENTS");if(Y){var b=ata();Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=w.value,b(w)&&_.RY("genericClientExperimentEvent",{eventType:w});delete _.aI.CLIENT_EXPERIMENT_EVENTS}};var AMC={};
AMC.YtPlayerBehavior=[_.y3.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var Y=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.mD;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;bw6(function(){Y.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.dS(this,"pan-down"),_.q("kevlar_pinch_fullscreen")&&_.pZ().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.q("kevlar_pinch_fullscreen")&&_.pZ().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(Y,b,w){var V=this;No(this.useUnifiedPlayer_());if(this.mainAppPlayer_)No(!1,"MainAppPlayer already created.");else{var H=_.q("kevlar_player_container_query_killswitch")?this.$.container:_.E6(this.hostElement).querySelector("#container");this.mainAppPlayer_=new ji(this.getWebPlayerContextConfig_(),H,function(f){return _.hA(f,V.hostElement)},Y,b,w);
this.mainAppPlayer_.api.then(function(f){V.player_=f;V.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&aLI.resolve(f)})}},
loadVideoWithPlayerResponse:function(Y,b){var w=this;if(this.useUnifiedPlayer_()){var V=this.watchNextData,H,f=(H=Y.videoDetails)==null?void 0:H.videoId,E,U,X;(H=(E=this.watchNextData)==null?void 0:(U=E.currentVideoEndpoint)==null?void 0:(X=U.watchEndpoint)==null?void 0:X.videoId)&&f!=H&&(V=void 0,_.q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(Y,V,b):this.createMainAppPlayer_(Y,V,b);this.mainAppPlayer_.api.then(function(){_.Ua(w.hostElement,
"yt-player-updated")})}else this.update(Ff6(Y,b))},
loadVideoWithPlayerVars:function(Y){var b=this;this.useUnifiedPlayer_()?(_.q("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(Y):this.createMainAppPlayer_(void 0,void 0,Y),this.mainAppPlayer_.api.then(function(){_.Ua(b.hostElement,"yt-player-updated")})):this.update({args:Y})},
update:function(Y){var b=this;if(this.useUnifiedPlayer_())No(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(Y);var w=VBv(Y.args);w&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==w&&Object.assign(Y.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(Y).then(function(V){_.Ua(b.hostElement,"yt-player-updated",_.q("kevlar_player_updated_obsolete_player_killswitch")?
V:void 0)})}_.LB(new _.BQ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.getPlayerPromise(),2);w=V.yieldResult;if(!w)throw Error("wh");Y&&b.updatePlayerPlaylist_(Y);_.om(V)})},
acquireApi_:function(Y){var b=this;if(this.useUnifiedPlayer_())No(!1,"Invalid method call in kevlar_unified_player.");else return _.Lb.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(No(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(w){b.shouldAutoplay_(Y)?w.loadVideoByPlayerVars(Y.args):w.cueVideoByPlayerVars(Y.args)})):this.initPlayerPromise_=this.initPlayerContainer_(Y),this.initPlayerPromise_},
initPlayerContainer_:function(Y){var b=this;if(this.useUnifiedPlayer_())No(!1,"Invalid method call in kevlar_unified_player.");else return No(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Sk(Error("xh")),No(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.q("kevlar_player_container_query_killswitch")?this.$.container:_.E6(this.hostElement).querySelector("#container"),yMG().then(function(){var w=b.initPlayer_(Y);b.playerResolver_.resolve(w);
return w})},
onPlayerReady_:function(Y,b){this.useUnifiedPlayer_()?No(!1,"Invalid method call in kevlar_unified_player."):(Y.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&aLI.resolve(Y),b(Y))},
maybeCallApiMethodOnElement_:function(Y,b){if(typeof Y[b]==="function")return Y[b]()},
maybeAdoptBootstrapPlayer_:function(){var Y=window,b,w=(b=Y.ytplayer)==null?void 0:b.bootstrapPlayerContainer;if((b=w==null?void 0:w.firstElementChild)&&b.classList.contains("html5-video-player")){var V,H,f=(V=Y.ytplayer)==null?void 0:(H=V.bootstrapWebPlayerContextConfig)==null?void 0:H.contextId;V=this.getWebPlayerContextConfig_().contextId;if(f&&f===V){w!==this.playerContainer_&&(w=!1,this.maybeCallApiMethodOnElement_(b,"getPlayerState")===2&&(w=!0),this.playerContainer_.appendChild(b),w||this.maybeCallApiMethodOnElement_(b,
"playVideo"));var E;if((E=Y.ytplayer)==null?0:E.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=Y.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(Y){var b=this;if(this.useUnifiedPlayer_())No(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(w){b.maybeAdoptBootstrapPlayer_();var V=Y?LfI(Y):void 0;V&&V==b.bootstrapPlayerResponse_&&(Y.loaded=!0);V=b.playerContainer_;var H=b.getWebPlayerContextConfig_();V=JMb(V,Y,H);b.player_=V;b.onPlayerReadyEvent_=b.onPlayerReady_.bind(b,b.player_,w);b.player_.addEventListener("onReady",b.onPlayerReadyEvent_);b.player_.addEventListener("innertubeCommand",
b.onPlayerInnerTubeCommand_.bind(b));_.q("enable_web_shorts_captions_language_command")&&(b.player_.addEventListener("captionschanged",b.storePlayerCaptionLanguage_.bind(b)),b.player_.addEventListener("captionssettingschanged",b.storePlayerCaptionLanguage_.bind(b)),b.player_.addEventListener("onCaptionsTrackListChanged",b.storePlayerCaptionLanguage_.bind(b)))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(Y){Y.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(Y){Y.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var Y=_.fH().resolve(_.bX).getCurrentPage();Y&&Y.getScrollTop()<=0?_.dS(this,"pan-down"):_.dS(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(Y){Y.isFullscreen()||Y.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(Y){Y.isFullscreen()&&Y.toggleFullscreen()})},
updatePlayerPlaylist_:function(Y){var b=this,w,V,H;return _.c(function(f){if(f.nextAddress==1)return w=_.fH().resolve(_.HQ(_.zF)),V=!!(w&&w.playlistComponent&&w.playlistComponent.loopOn),_.D(f,b.getPlayerPromise(),2);var E=H=f.yieldResult,U=E.updatePlaylist,X=[];if(_.q("kevlar_player_playlist_use_local_index")){var I,k;var l=(k=(I=Y.localCurrentIndex)!=null?I:Y.currentIndex)!=null?k:0}else{var x;l=(x=Y.currentIndex)!=null?x:0}if(Y.contents)for(I=0;I<Y.contents.length;I++)if((k=Y.contents[I])&&k.playlistPanelVideoRenderer)if(Cyg(k)){k=
k.playlistPanelVideoRenderer;x="";k.shortBylineText&&(x=_.Tx(k.shortBylineText));var Q="";k.title?Q=_.Tx(k.title):k.unplayableText&&(Q=_.Tx(k.unplayableText));X.push({author:x,title:Q,encrypted_id:k.videoId})}else I<l&&--l;U.call(E,{index:l,list:Y.playlistId?Y.playlistId:"",loop:V,playlist_title:Y.title,playlist_length:X.length,video:X,fetch:0,external_list:"1",title:Y.title?Y.title:"",playlist_author:Y.ownerName?_.Tx(Y.ownerName):void 0});_.om(f)})},
focusOnPlayer:function(){_.TC(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var Y=this.playerContainer_.querySelector(".html5-video-player");Y&&(_.Y1(_.fH().resolve(_.dn)),Y.focus())}})},
preparePlayer:function(){var Y=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(b){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")b();else{var w=function(){document.removeEventListener("DOMContentLoaded",w);b()};
document.addEventListener("DOMContentLoaded",w)}})).then(function(){return yMG()}).then(function(){Y.initPlayerPromise_||Y.preparePlayerJobId_||(Y.preparePlayerJobId_=_.MY(_.Lb,function(){Y.initPlayerPromise_||(Y.initPlayerPromise_=Y.initPlayerContainer_())}))}):_.LB(new _.BQ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(Y){this.useUnifiedPlayer_()?No(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(Y)||(Y.args.autoplay="0")},
shouldAutoplay_:function(Y){if(this.useUnifiedPlayer_())No(!1,"Invalid method call in kevlar_unified_player.");else{var b=this.get("args.el",Y);return b&&b!="detailpage"&&this.isMiniplayerActive_()||b&&(b=="sponsorshipsoffer"||b=="handlesclaiming")&&this.get("args.autoplay",Y)=="0"?!1:(Y=LfI(Y))&&this.get("playerConfig.playbackStartConfig.startPaused",Y)?!1:!0}},
isMiniplayerActive_:function(){return _.fH().resolve(_.Ck).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var Y=this.getPlayer();if(Y){var b=Y.getPlayerState();_.q("kevlar_player_check_ad_state_on_stop")&&(b=Y.getPlayerState(Y.getPresentingPlayerType()));b!=5&&Y.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(Y,b,w){w=w===void 0?!1:w;var V=this,H,f,E,U;return _.c(function(X){if(X.nextAddress==1)return b||(b=V.hostElement),H=V.useUnifiedPlayer_()?!!V.mainAppPlayer_:!!V.initPlayerPromise_,H?_.D(X,V.getPlayerPromise(),2):(w?Y.insertBefore(b,Y.firstChild):Y.appendChild(b),X.return());f=X.yieldResult;E=f.getPlayerState(f.getPresentingPlayerType());U=!1;if(E==-1||E==1||E==3)U=!0;w?Y.insertBefore(b,Y.firstChild):Y.appendChild(b);U&&f.playVideo();f.setSize(NaN,NaN);_.om(X)})},
watchNextDataChanged_:function(Y){var b=this;Y&&(this.useUnifiedPlayer_()&&_.q("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&rM5(this.mainAppPlayer_,Y):this.getPlayerPromise().then(function(w){w.updateVideoData(b.computeWatchNextPlayerVars_(Y))}))},
computeWatchNextPlayerVars_:function(Y){if(this.useUnifiedPlayer_()&&_.q("kevlar_unified_player_update_watch_next_killswitch"))No(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:Y}},
maybeSendAbandonmentPing_:function(){var Y=this.getPlayer();Y&&Y.getPlayerState()!=5&&Y.getPlayerState()!=0&&Y.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var Y=_.zO("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(Y=Object.assign({},Y),Y.rootElementId=this.playerId);Y.serializedExperimentIds&&Y.serializedExperimentFlags||_.Sk(Error("yh"));return Y},
hasWebPlayerContextConfig_:function(){return!!_.zO("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(Y){this.useUnifiedPlayer_()?No(!1,"Invalid method call in kevlar_unified_player."):_.hA(Y,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(Y){var b=_.fH().resolve(_.P5);Y=Y==null?void 0:Y.getOption("captions","track");var w=_.I8("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(Y){var V,H=(V=_.xh(_.wjq,w)())==null?void 0:V.value,f;V=typeof(Y==null?void 0:Y.translationLanguage)==="object"&&((f=Y.translationLanguage)==null?void 0:f.languageName)||Y.displayName||"";H!==V&&b.store.dispatch(_.qo("stringEntity",w,{key:w,value:V.toString()}))}else b.store.dispatch(_.qo("stringEntity",
w,{key:w,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var Y=_.q("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.q("kevlar_unified_player")||Y}}];var CeK={};CeK.YtPlaylistPanelBehavior=[_.u.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(Y){Y=Y.detail;if(Y.actions.loop!=void 0||Y.actions["yt-icons:loop"]!=void 0)this.loopOn=Y.actions.loop||Y.actions["yt-icons:loop"];if(Y.actions.shuffle!=void 0||Y.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=Y.actions.shuffle||Y.actions["yt-icons:shuffle"]},
setMenuData_:function(Y){if(!Y||!Y.playlistButtons||Y.isInfinite)return null;for(var b=Y.playlistButtons.menuRenderer.topLevelButtons,w=b.length,V=0;V<w;V++)if(b[V].toggleButtonRenderer){var H=b[V].toggleButtonRenderer;H.defaultIcon.iconType=="LOOP"&&this.loopOn?H.isToggled=this.loopOn:H.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(H.isToggled=this.shuffleOn)}return Y.playlistButtons}}];var yMI=function(Y){N4.call(this,Y,132);this.isDocument=Y===document.documentElement};
_.P(yMI,N4);yMI.prototype.calculateScrollDelta=function(Y,b,w){var V=0;Y<b?V=Y<b-100?-48:-8:Y>b+w&&(V=Y>b+w+100?48:8);return V};
yMI.prototype.JSC$9341_onMouseMove=function(Y){this.isDocument||(Y.clientX=Y.event_.pageX,Y.clientY=Y.event_.pageY);N4.prototype.JSC$9341_onMouseMove.call(this,Y)};var b5=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;Y.scrollElement=document.documentElement;Y.JSC$12313_dragListGroup=null;Y.dragScrollSupport=null;Y.onDraggerCreated=function(b){var w=b.JSC$9337_dragger;w.scrollTarget_=Y.scrollElement;b=b.draggerEl;w&&b.menuOpened&&w.setEnabled(!1)};
Y.onDragStart=function(b){var w=b.draggerEl;b=b.currDragItem;var V=Object.assign({},b==null?void 0:b.data);V.trackingParams=void 0;w.data=V;w.style.position="absolute";w.style.width=(b==null?void 0:b.clientWidth)+"px";w.style.zIndex="2030";w.onDrag&&w.onDrag();_.q("web_owner_document_fallback_killswitch")?(b=document.querySelector("ytd-app"))&&_.E6(b).appendChild(w):(b=_.Oy(w),(V=b.querySelector("ytd-app"))?_.E6(V).appendChild(w):b.body.appendChild(w));Y.dragScrollSupport=new yMI(Y.scrollElement);
Y.dragScrollSupport.horizontalScrolling_=!1;w=Y.dragScrollSupport;w.constrainScroll_=!!w.margin_&&!1};
Y.onDrop=function(b){Y.handleDrop(b);Y.dragScrollSupport&&(_.ua(Y.dragScrollSupport),Y.dragScrollSupport=null)};
Y.onReorderableScroll=function(){if(Y.JSC$12313_dragListGroup){var b=Y.JSC$12313_dragListGroup;VlK(b,b.currDragItem_)}};
return Y};
_.P(b5,_.s6);b5.prototype.detached=function(){_.$Kd(this)};
_.$Kd=function(Y){Y.JSC$12313_dragListGroup&&(_.BV(Y.JSC$12313_dragListGroup,$8C,Y.onDragStart),_.BV(Y.JSC$12313_dragListGroup,J19,Y.onDragStart),Y.JSC$12313_dragListGroup.dispose(),Y.JSC$12313_dragListGroup=null);Y.dragScrollSupport&&(_.ua(Y.dragScrollSupport),Y.dragScrollSupport=null);Y.scrollElement.removeEventListener("scroll",Y.onReorderableScroll)};
_.jp_=function(Y,b,w,V){V=V===void 0?"":V;_.$Kd(Y);w&&(Y.scrollElement=w);Y.JSC$12313_dragListGroup=new Ao;Y.JSC$12313_dragListGroup.hysteresisDistance_=2;Yf_(Y.JSC$12313_dragListGroup,b);Y.JSC$12313_dragListGroup.draggerElClasses_=Dt("dragging").split(" ");V&&b8j(Y.JSC$12313_dragListGroup,function(H){var f=H||document,E=null;f.getElementsByClassName?E=f.getElementsByClassName(V)[0]:E=CI9("*",V,H);return E||H});
_.ez(Y.JSC$12313_dragListGroup,CnQ,Y.onDraggerCreated);_.ez(Y.JSC$12313_dragListGroup,$8C,Y.onDragStart);_.ez(Y.JSC$12313_dragListGroup,J19,Y.onDrop);Y.JSC$12313_dragListGroup.init();Y.scrollElement.addEventListener("scroll",Y.onReorderableScroll,{passive:!0})};
b5.prototype.handleDrop=function(){};
_.up.Object.defineProperties(b5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.z([_.R({value:100}),_.K("design:type",Number)],b5.prototype,"scrollMargin",void 0);_.z([_.QC()],b5);_.GBj=[b5.prototype];_.wQ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(Y,b,w){var V=this.getClickTarget_(b);if(V&&this.isClickAllowed_(V)){b.preventDefault();Y=(0,_.BL.unsafeClone)(Y);var H=this.getContainerBoundingRect();b=this.getRelativeClickXy_(b,H);this.expandEndpointUrlMacros_(Y,{NX:b[0],NY:b[1],NB:V.code});w&&this.truncateWebCommendMetadataUrl_(Y);_.Ua(this.hostElement,"yt-navigate",{endpoint:Y})}},
getClickTarget_:function(Y){if(!this.clickTargetMap)return null;Y=_.JL(Y)||[];Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;if(b===_.E6(this.hostElement).querySelector("#menu"))break;if(b=this.clickTargetMap.get(b.id))return b}return null},
getRelativeClickXy_:function(Y,b){var w=Y.detail.x,V=Y.detail.y;_.q("use_on_click_for_desktop_display_ad")&&Y.clientX!=null&&Y.clientY!=null&&(w=Y.clientX,V=Y.clientY);Y=Math.round(w-b.left);b=Math.round(V-b.top);return Y<0||b<0?[null,null]:[Y,b]},
getContainerBoundingRect:function(){return _.E6(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(Y,b){for(var w=_.N(Y.loggingUrls||[]),V=w.next();!V.done;V=w.next())V=V.value,V.baseUrl&&(V.baseUrl=nl(V.baseUrl,b));Y.urlEndpoint&&Y.urlEndpoint.url&&(Y.urlEndpoint.url=nl(Y.urlEndpoint.url,b));Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url&&(Y.commandMetadata.webCommandMetadata.url=nl(Y.commandMetadata.webCommandMetadata.url,b))},
truncateWebCommendMetadataUrl_:function(Y){if(Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.url){var b=Y.commandMetadata.webCommandMetadata.url,w=b.indexOf("&pp=");if(w>0){var V=b.indexOf("&",w+1);Y.commandMetadata.webCommandMetadata.url=V>w&&V<b.length?b.slice(0,w)+b.slice(V):b.slice(0,w)}}},
configureClickTargets:function(Y,b,w){this.containerId=Y;this.clickTargetMap=new Map;Y=_.N(b);for(b=Y.next();!b.done;b=Y.next())if(b=b.value,b.location){var V=w.get(b.location);V&&(_.U6(_.E6(this.hostElement).querySelector("#"+V),"yt-simple-endpoint",this.isClickAllowed_(b)),this.clickTargetMap.set(V,b))}},
isClickAllowed_:function(Y){return Y.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||Y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.V5={};
_.V5.YtLazyListBehavior=[_.g9.YtTaskEmitterBehavior,{_noAccessors:!0,properties:{initialCount:{type:Number,value:4},targetFramerate:{type:Number,value:20},minChunkSize:{type:Number,value:1},autoFill:{type:Boolean,value:!1},disableAutoFill:{type:Boolean,value:!1},shownItems:Array,shownCount:{type:Number,value:0},canShowMore:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"onCanShowMoreUpdated_"},renderDelay:Number,targetFrameTime_:{type:Number,computed:"computeFrameTime_(targetFramerate)"},canScheduleJobs:{type:Boolean,
value:!0,observer:"canScheduleJobsChanged_"}},itemsPath:"data.items",beforeRegister:function(){if(this.itemsPath)if(this.getItemsPath&&this.getItemsPath instanceof Function&&(this.itemsPath=this.getItemsPath()),this.useSignals)this.addReactiveSchema({type:"observe",method:{methodName:"deepLazyListObserver_",args:[{type:"wildcard",path:this.itemsPath}]}});else{var Y=(this.constructor.generatedFrom||this).observers;Y||(Y=[]);Y.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
Y}},
created:function(){this.boundRenderChunk_=this.renderChunk_.bind(this);this.items_=null;this.lazyListRenderJobId_=this.chunkCount_=this.lastChunkTime_=this.length_=0;this.nonDeferredItemCount=-1;this.renderElementsOutsideVisibleArea_=null;this.partiallyRenderedItems_=new WeakSet},
fillRemainingListItems:function(){this.fillRange_(this.shownCount,this.length_)},
renderDeferredElements:function(){var Y=this.renderElementsOutsideVisibleArea_;Y&&(GHo(Y,4),Y.processSignal())},
deepLazyListObserver_:function(Y){var b=this;if(Y){var w=Y.value||[];if(this.itemsPath==Y.path){var V=this.nonDeferredItemCount;Y=0;V>-1&&w.length>V&&(Y=_.zO("REMAINING_DOVA_DEFERRED_CHUNKS",-1));Y>0?(V>0&&(V=w.slice(0,V),this.setInitialItemsOnDataChanged(V)),(V=this.renderElementsOutsideVisibleArea_)?V.cancel():(V=this.renderElementsOutsideVisibleArea_=new _.NS(2,"eocs"),_.AL6(window,"scroll",function(){return b.renderDeferredElements()})),_.ES(V,function(){b.setInitialItemsOnDataChanged(w)}),_.rx("REMAINING_DOVA_DEFERRED_CHUNKS",
Y-1)):this.setInitialItemsOnDataChanged(w)}else if(this.itemsPath+".splices"==Y.path)this.onItemsUpdated_(w);
else V="shownItems"+Y.path.substr(this.itemsPath.length),this.useSignals&&V==="shownItems.length"||this.notifyPath(V,Y.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(Y){Y&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(Y),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(Y){Y=Y.indexSplices;for(var b=0,w=Y.length;b<w;b++){var V=Y[b];if(V.index<this.shownCount&&(V.removed&&this.splice("shownItems",V.index,V.removed.length),V.addedCount)){var H=V.object.slice(V.index,V.index+V.addedCount);V=["shownItems",V.index,0];V.push.apply(V,H);this.splice.apply(this,V)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(Y){this.cancelPendingTasks_();Y||(Y=[]);this.items_=Y;this.length_=this.items_.length;this.shownItems=this.items_.slice(0,this.initialCount);this.shownCount=this.shownItems.length;this.canShowMore=this.shownCount<this.length_;this.autoFill&&(_.Wf("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.TC(this,this.tryRenderChunk_)))},
fillRange_:function(Y,b){this.canShowMore&&this.items_&&(Y=this.items_.slice(Y,b),Y.unshift("shownItems"),this.push.apply(this,Y),this.shownCount=b,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var Y=this;this.canShowMore&&_.ir(this,"renderChunk",function(){Y.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Wf("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.vv(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var Y=this.renderElementsOutsideVisibleArea_;Y&&(Y.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var Y=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(Y-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=Y;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(Y){return Math.ceil(1E3/Y)},
onCanShowMoreUpdated_:function(Y){this.data&&this.items_!==null&&(Y?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(Y){!this.shouldUseTaskManager()&&this.data&&(!Y&&this.canShowMore?(_.ZcB(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):Y&&this.partiallyRenderedItems_.has(this.items_)&&(_.q("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var f$;_.HR={};
f$=function(){var Y=_.s6.apply(this,arguments)||this;Y.atStart=!0;Y.atEnd=!0;Y.startIndex=0;Y.endIndex=0;Y.scrollCount=0;Y.initialStartIndex=0;Y.disableScrollEventListener=!1;Y.useFloorScrolling=!1;Y.isSearch=!1;Y.dragging=!1;Y.dragMouseStart=0;Y.dragOffsetStart=0;Y.disableWheelScroll=!1;Y.centerListItems=!1;Y.offset=0;Y.minComponentWidth=0;Y.marginWidthRight=0;Y.marginWidthLeft=0;Y.setButtonsStateRequested=!1;Y.itemsVisibilityObserver=null;Y.fullyVisibleItemsIndices=[];Y.JSC$12324_onWheelScroll=function(b){if(Y.isSearch&&
!Y.disableWheelScroll&&_.q("desktop_enable_dmpanel_wheel_scroll")){var w=b.shiftKey?Math.abs(b.deltaY)>Math.abs(b.deltaX)?b.deltaY:b.deltaX:b.deltaX;w!==0&&(b.preventDefault(),Y.ytLazyListBehavior.fillRemainingListItems(),Y.offset+=w,gQ(Y),Y.reposition_())}};
Y.onPointerDown=function(b){To_(Y)&&(Y.dragMouseStart=b.clientX,Y.dragOffsetStart=Y.offset,Y.dragging=!0)};
Y.onPointerMove=function(b){To_(Y)&&Y.dragging&&(Y.ytLazyListBehavior.fillRemainingListItems(),Y.offset=Y.dragOffsetStart-(b.clientX-Y.dragMouseStart),gQ(Y),Y.reposition_())};
Y.onPointerUp=function(){To_(Y)&&(Y.dragging=!1)};
return Y};
_.P(f$,_.s6);var JMd=function(Y){var b=_.E6(Y.hostElement).querySelector("#items").children;if(!b)return 0;var w=0;Y=_.N(Y.fullyVisibleItemsIndices);for(var V=Y.next();!V.done;V=Y.next())w+=b[V.value].clientWidth;return w},To_=function(Y){return Y.isSearch&&_.q("desktop_enable_dmpanel_click_drag_scroll")};
f$.prototype.created=function(){this.cachedViewportWidth=_.zO("initialInnerWidth")||window.innerWidth;this.JSC$12324_cachedViewportHeight=_.zO("initialInnerHeight")||window.innerHeight;_.zO("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.rx("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
f$.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.q("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();uFd(this)};
f$.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.q("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var Y;(Y=this.itemsVisibilityObserver)==null||Y.disconnect();this.itemsVisibilityObserver=null;var b;(b=this.itemsObserver)==null||b.disconnect()};
var uFd=function(Y){var b=_.E6(Y.hostElement).querySelector("#scroll-container");if(b){if(!Y.itemsVisibilityObserver){var w=window.getComputedStyle(b).marginRight;Y.itemsVisibilityObserver=new IntersectionObserver(function(V){YFK(Y,V)},{root:b,
rootMargin:w,threshold:.98})}if(b=_.E6(Y.hostElement).querySelector("#items"))Y.itemsObserver=new d4$(b,function(V){bwk(Y,V)})}},bwk=function(Y,b){w4U(Y)&&(Array.from(b.addedNodes).filter(function(w){return w.nodeType===Node.ELEMENT_NODE}).forEach(function(w){Y.itemsVisibilityObserver&&Y.itemsVisibilityObserver.observe(w)}),Array.from(b.removedNodes).filter(function(w){return w.nodeType===Node.ELEMENT_NODE}).forEach(function(w){Y.itemsVisibilityObserver&&Y.itemsVisibilityObserver.unobserve(w)}))},
YFK=function(Y,b){var w=new Set(Y.fullyVisibleItemsIndices);
b=_.N(b);for(var V=b.next();!V.done;V=b.next()){V=V.value;var H=V.target.parentElement;H?(H=Array.from(H.children).indexOf(V.target),V.isIntersecting?w.add(H):w.has(H)&&w.delete(H)):_.Sk(new _.BQ("Parent element not found",V.target.nodeName))}Y.fullyVisibleItemsIndices=Array.from(w).sort(function(f,E){return f-E});
w.size===0?_.Sk(new _.BQ("No visible entries in horizontal list")):(Y.startIndex=Y.fullyVisibleItemsIndices[0],Y.endIndex=Y.fullyVisibleItemsIndices[Y.fullyVisibleItemsIndices.length-1])},w4U=function(Y){Y.data?Y=(Y=Y.data)&&Y.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===Y.itemSizeConstraint:!1:Y=!1;
return Y};
_.g=f$.prototype;_.g.addScrollEventListeners=function(){var Y=_.E6(this.hostElement).querySelector("#scroll-container");Y.style.touchAction="pan-y";Y.addEventListener("wheel",this.JSC$12324_onWheelScroll);Y.addEventListener("pointerdown",this.onPointerDown);Y.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.g.removeScrollEventListeners=function(){var Y=_.E6(this.hostElement).querySelector("#scroll-container");Y.removeEventListener("wheel",this.JSC$12324_onWheelScroll);Y.removeEventListener("pointerdown",this.onPointerDown);Y.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.g.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.TC(this,this.setStartIndex,[this.initialStartIndex])};
_.g.reposition_=function(){var Y=_.zO("HTML_DIR")=="rtl"?"":"-",b=_.E6(this.hostElement).querySelector("#items");b&&(b.style.transform="translateX("+Y+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.g.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.TC(this,this.setButtonsState_))};
_.g.setButtonsState_=function(){this.setButtonsStateRequested=!1;var Y=_.E6(this.hostElement).querySelector("#items").firstElementChild;if(Y){this.minComponentWidth||(this.minComponentWidth=VEd(this,Y));Y=_.E6(this.hostElement).querySelector("#scroll-container").clientWidth;var b=_.E6(this.hostElement).querySelector("#items").clientWidth,w=this.get(this.ytLazyListBehavior.itemsPath,this);if(w){var V=Math.round(Y/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+V,w.length)-1)}this.ytLazyListBehavior.canShowMore?b+this.minComponentWidth>=this.offset+Y&&(this.atEnd=!1):this.atEnd=this.offset+Y>=b-20?!0:!1;this.atStart=this.offset<=20}};
_.g.setStartIndex=function(Y){if(!this.minComponentWidth){var b=_.E6(this.hostElement).querySelector("#items").firstElementChild;if(!b)return;this.minComponentWidth=VEd(this,b)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*Y;gQ(this);this.reposition_()};
_.g.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.l6();var Y=_.E6(this.hostElement).querySelector("#scroll-container").clientWidth;_.q("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=VEd(this,_.E6(this.hostElement).querySelector("#items").firstElementChild));Y=this.useFloorScrolling?Math.floor(Y/this.minComponentWidth)||1:Math.round(Y/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Hwj(this);this.offset+=w4U(this)?
JMd(this):Y*this.minComponentWidth;gQ(this);this.reposition_();this.scrollCount++};
_.g.prevClick_=function(){var Y=_.E6(this.hostElement).querySelector("#scroll-container").clientWidth;Y=this.useFloorScrolling?Math.floor(Y/this.minComponentWidth)||1:Math.round(Y/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=w4U(this)?JMd(this):this.minComponentWidth*this.scrollCount-1):this.offset-=w4U(this)?JMd(this):Y*this.minComponentWidth;this.centerListItems&&Hwj(this);gQ(this);this.reposition_()};
_.g.onIronResize_=function(){this.resizeSupportEnabled&&_.TC(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.g.onItemsTransitionEnd_=function(Y){_.uW(Y)===_.E6(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.g.onChildElementFocus_=function(Y){Y=Y.target.closest("#items > *");var b=_.E6(this.hostElement).querySelector("#scroll-container");if(b.contains(Y)){if(_.q("web_horizontal_list_behavior_focus_killswitch"))if(Y.offsetLeft<this.offset)this.offset=Math.abs(Y.offsetLeft)<Y.clientWidth?0:Y.offsetLeft;else if(Y.offsetLeft+Y.clientWidth>this.offset+b.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.l6(),this.offset=Y.offsetLeft+Y.clientWidth-b.clientWidth;else return;else{var w=_.E6(this.hostElement).querySelector("#items"),
V=_.zO("HTML_DIR")==="rtl",H=V?w.clientWidth-Y.offsetLeft:Y.offsetLeft;w=V?w.clientWidth-(Y.offsetLeft+Y.clientWidth):Y.offsetLeft+Y.clientWidth;var f=V?H>this.offset+b.clientWidth:H<this.offset,E=V?w<this.offset:w>this.offset+b.clientWidth,U=V?f:E;if(V?E:f)b=V?w:H,this.offset=Math.abs(b)<Y.clientWidth?0:b;else if(U)this.ytLazyListBehavior.fillRemainingListItems(),_.l6(),this.offset=(V?H:w)-b.clientWidth;else return}gQ(this);this.reposition_()}};
_.g.observeShownItems_=function(){this.reset()};
_.g.checkComponentWidthResize=function(){var Y=_.E6(this.hostElement).querySelector("#items").firstElementChild;Y&&(Y=VEd(this,Y),this.centerListItems||Y!==this.minComponentWidth)&&(this.minComponentWidth=Y,this.offset=Y*this.scrollCount,this.centerListItems&&Hwj(this),gQ(this),this.reposition_())};
var VEd=function(Y,b){var w=window.getComputedStyle(b).marginRight;w=Math.floor(Number(w.replace("px","")));var V=window.getComputedStyle(b).marginLeft;V=Math.floor(Number(V.replace("px","")));Y.centerListItems&&!Y.marginWidthRight&&(Y.marginWidthRight=w,Y.marginWidthLeft=V);return Y.resizeSupportEnabled?b.getBoundingClientRect().width+w:b.offsetWidth+w},gQ=function(Y){var b=_.E6(Y.hostElement).querySelector("#scroll-container").clientWidth,w=_.E6(Y.hostElement).querySelector("#items").clientWidth;
Y.offset<0?Y.offset=0:Y.offset+b>=w&&(Y.offset=w-b)},Hwj=function(Y){Y.offset-=(_.E6(Y.hostElement).querySelector("#scroll-container").clientWidth+Y.marginWidthRight-Y.minComponentWidth)/2-Y.marginWidthLeft};
_.up.Object.defineProperties(f$.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var Y=_.zO("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(Y==-1)Y=this.JSC$12324_cachedViewportHeight,Y=Y>1320?5:Y>1020?4:Y>730?3:Y>430?2:1;else if(Y==0)return 0;_.rx("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",Y-1);Y=_.zO("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(Y>-1)return Y;Y=this.cachedViewportWidth;Y=Y>1600?6:Y>1400?5:Y>1300?4:Y>1090?5:Y>870?4:Y>660?3:2;_.rx("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
Y);return Y},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.q("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
f$.prototype.observeShownItems_=f$.prototype.observeShownItems_;f$.prototype.onChildElementFocus_=f$.prototype.onChildElementFocus_;f$.prototype.onItemsTransitionEnd_=f$.prototype.onItemsTransitionEnd_;f$.prototype.onIronResize_=f$.prototype.onIronResize_;f$.prototype.prevClick_=f$.prototype.prevClick_;f$.prototype.nextClick_=f$.prototype.nextClick_;f$.prototype.setButtonsState_=f$.prototype.setButtonsState_;f$.prototype.requestButtonsStateUpdate_=f$.prototype.requestButtonsStateUpdate_;
f$.prototype.reposition_=f$.prototype.reposition_;f$.prototype.reset=f$.prototype.reset;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],f$.prototype,"ytLazyListBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],f$.prototype,"atStart",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],f$.prototype,"atEnd",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"startIndex",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"endIndex",void 0);_.z([_.R({value:6}),_.K("design:type",Number)],f$.prototype,"initialCount",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"scrollCount",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"initialStartIndex",void 0);
_.z([_.R(),_.K("design:type",Object)],f$.prototype,"disableScrollEventListener",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"supportComponentResize",void 0);_.z([_.R({value:function(){var Y=this;return function(){return Y.prevClick_()}}}),
_.K("design:type",Function)],f$.prototype,"boundPrevClick",void 0);_.z([_.R({value:function(){var Y=this;return function(){return Y.nextClick_()}}}),
_.K("design:type",Function)],f$.prototype,"boundNextClick",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"useFloorScrolling",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"isSearch",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"dragging",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"dragMouseStart",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"dragOffsetStart",void 0);
_.z([_.R(),_.K("design:type",Object)],f$.prototype,"disableWheelScroll",void 0);_.z([_.R(),_.K("design:type",Object)],f$.prototype,"centerListItems",void 0);_.z([_.kZ("iron-resize"),_.lr("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f$.prototype,"onIronResize_",null);_.z([_.kZ("transitionend"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],f$.prototype,"onItemsTransitionEnd_",null);
_.z([_.kZ("focusin"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],f$.prototype,"onChildElementFocus_",null);_.z([_.lr("shownItems"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],f$.prototype,"observeShownItems_",null);_.z([_.QC()],f$);_.HR.YtdHorizontalListBehavior=[];_.HR.YtdHorizontalListBehavior.push(_.Li,_.u.YtRendererBehavior,_.V5.YtLazyListBehavior,_.Ww.YtdGuideStateAwareBehavior,f$.prototype);var VEb=["APP_STATE","PI"];var gn9=_.wM(["about:blank"]),fIo={pushState:window.history.pushState,replaceState:window.history.replaceState};var N7=function(Y){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=Y;this.internalPushState=Y.pushState.bind(Y);this.internalReplaceState=Y.replaceState.bind(Y)};
N7.prototype.init=function(){this.initialized=!0};
N7.prototype.pushState=function(Y,b){this.initialized||this.init();this.internalPushState&&this.internalPushState(Y,"",b)};
N7.prototype.replaceState=function(Y,b){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(Y,"",b)};
N7.prototype.getState=function(){return this.history&&this.history.state};var NZ_=function(Y){var b=function(){var w=Y.apply(this,arguments)||this;w.boundHistoryPushState=!1;w.boundHistoryReplaceState=!1;w.debugInfo={};return w};
_.P(b,Y);b.prototype.init=function(){var w=_.xG("IFRAME");_.Rg(w,_.HL(gn9));w.sandbox="allow-same-origin";w.style.display="none";this.iframe=w;document.body.appendChild(w);this.bindHistoryStateFunctions();Y.prototype.init.call(this)};
b.prototype.bindHistoryStateFunctions=function(){var w=this,V=[],H;this.iframe&&((H=this.iframe.contentWindow)==null?0:H.history)&&(H=this.iframe.contentWindow.history)&&(V.push(H),Object.getPrototypeOf(H)&&V.push(Object.getPrototypeOf(H)));window.history&&V.push(window.history);H=window.history;Object.getPrototypeOf(H)&&V.push(Object.getPrototypeOf(H));V.push(fIo);H=function(E){for(var U=null,X=0;X<V.length;X++){var I=V[X][E];if(typeof I==="function"){U=I.bind(window.history);w.debugInfo[E]=X;break}}return U};
if(!this.boundHistoryReplaceState){var f=H("replaceState");f&&(this.internalReplaceState=f,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(H=H("pushState"))&&(this.internalPushState=H,this.boundHistoryPushState=!0)};
return b}(N7),End=function(){return NZ_.call(this,window.history)||this};
_.P(End,NZ_);End.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Ee=function(Y){this.browserHistory=Y;this.initialized=!1};
Ee.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Ee.prototype.pushState=function(Y,b){this.initialized||this.init();this.browserHistory.pushState(Y,b)};
Ee.prototype.replaceState=function(Y,b){this.initialized||this.init();this.browserHistory.replaceState(Y,b)};
Ee.prototype.handlePopstate=function(Y){return Y.state};_.cao=function(Y,b,w,V,H){this.endpoint=Y;this.forward=b;this.historyEntry=w;this.JSC$26651_savedComponentState=V;this.legacyBorder=H===void 0?!1:H};var U09=function(Y,b){this.rootData=Y;this.scrollTop=b};var Mq=new _.Hx("PAGE_REQUEST_TOKEN"),Zet=new _.Hx("FETCH_PBJ_TOKEN");_.cR=new _.Hx("EPHEMERAL_STORE_TOKEN");_.Ue=function(Y){this.data=Object.assign({},Y);var b;(b=this.data.innertubeResponse)==null||delete b.frameworkUpdates};
_.Ue.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.gG)()};
_.Dz=function(Y){return Object.assign({},Y.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var X49=function(){this.maxSize=100;this.timeToDataCache=new Map};
X49.prototype.get=function(Y){var b=this.timeToDataCache.get(Y);b&&(this.timeToDataCache.delete(Y),this.timeToDataCache.set(Y,b));if(b&&b.rootData&&(_.q("web_use_response_store_for_history_cache")||_.q("mweb_use_new_history_manager"))){var w=_.fH().resolve(_.cR),V=D0U(b),H=!!V;if(V){if(V.content){var f=Xs(w,V.content);H&&f?b.rootData.response=_.Dz(f):H=!1}V.player&&(f=Xs(w,V.player),H&&f?b.rootData.playerResponse=_.Dz(f):H=!1);V.reelSequence&&(w=Xs(w,V.reelSequence),H&&w?b.rootData.reelWatchSequenceResponse=
_.Dz(w):H=!1)}H||(this.timeToDataCache.delete(Y),b=void 0)}return b};
X49.prototype.set=function(Y,b){if(b.rootData&&(_.q("web_use_response_store_for_history_cache")||_.q("mweb_use_new_history_manager"))){var w=D0U(b),V=Object.assign({},b.rootData);w&&(w.content&&b.rootData.response&&(m08(this,w.content,b.rootData.response),V.response=null),w.player&&b.rootData.playerResponse&&(m08(this,w.player,b.rootData.playerResponse),V.playerResponse=null),w.reelSequence&&b.rootData.reelWatchSequenceResponse&&(m08(this,w.reelSequence,b.rootData.reelWatchSequenceResponse),V.reelWatchSequenceResponse=
null));b=new U09(V,b.scrollTop)}this.timeToDataCache.has(Y)?this.timeToDataCache.delete(Y):this.timeToDataCache.size>=this.maxSize&&(w=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(w.value));this.maxSize!==0&&this.timeToDataCache.set(Y,b)};
X49.prototype.clear=function(){this.timeToDataCache.clear()};
var D0U=function(Y){var b=_.fH().resolve(_.HQ(Mq)),w;if((w=Y.rootData)==null?0:w.endpoint)return b==null?void 0:x9v(b,Y.rootData.endpoint);var V;_.Sk(new _.BQ("History snapshot response data does not contain endpoint",(V=Y.rootData)==null?void 0:V.url));return null},m08=function(Y,b,w){if(Y.maxSize>0){var V;
(Y=(V=w.responseContext)==null?void 0:V.maxAgeSeconds)&&Number(Y)>0&&(V=_.fH().resolve(_.cR),w=UH(w,Y),V.put(b,new _.Ue(w)))}};var onU=function(Y,b,w){this.endpoint=b;this.JSC$26656_savedComponentState=w===void 0?null:w;this.entryTime=Y};var caa=1;var Da=function(Y){var b=function(){var w=Y.apply(this,[].concat(_.Bt(_.BN.apply(0,arguments))))||this;w.historyEntryTime=0;w.historySnapshotCache=w.createHistoryCache();return w};
_.P(b,Y);b.prototype.createHistoryCache=function(){return new X49};
b.prototype.saveAndReplace=function(w,V,H){var f=window.location.href;var E=E===void 0?{}:E;var U=(U=this.browserHistory.getState())&&U.entryTime?U.entryTime:U0g();w=this.createNewHistoryEntry(w,E,U);this.saveSnapshot(U,V,H);this.replaceState(w,f||window.location.href)};
b.prototype.saveAndPush=function(w,V,H,f,E){E=E===void 0?{}:E;this.saveSnapshot(this.historyEntryTime,H,f);H=this.historySnapshotCache;f=this.historyEntryTime;var U=H.timeToDataCache.keys();U=_.N(U);for(var X=U.next();!X.done;X=U.next())X=X.value,X>f&&H.timeToDataCache.delete(X);V=this.createNewHistoryEntry(V,E);this.pushState(V,w)};
b.prototype.saveSnapshot=function(w,V,H){this.historySnapshotCache.set(w,new U09(V,H))};
b.prototype.createNewHistoryEntry=function(w,V,H){H=H===void 0?U0g():H;return new onU(H,w,V)};
b.prototype.handlePopstate=function(w){var V=Y.prototype.handlePopstate.call(this,w),H=null,f=null,E=!1,U=null;V&&V.entryTime&&(U=this.historySnapshotCache.get(V.entryTime)||null,E=V.entryTime>this.historyEntryTime,this.historyEntryTime=V.entryTime,H=V.endpoint,f=V.JSC$26656_savedComponentState);this.handleHistoryCacheLoad(new _.cao(H,E,U,f),w);return V};
b.prototype.pushState=function(w,V){Number(w==null?void 0:w.entryTime)>=0&&(this.historyEntryTime=w.entryTime);Y.prototype.pushState.call(this,w,V)};
b.prototype.replaceState=function(w,V){Number(w==null?void 0:w.entryTime)>=0&&(this.historyEntryTime=w.entryTime);Y.prototype.replaceState.call(this,w,V)};
b.prototype.handleHistoryCacheLoad=function(){};
return b}(Ee),IIj=function(){var Y=Da.call(this,new End)||this;
Y.dispatchElement=null;Y.entryIndex=0;return Y};
_.P(IIj,Da);_.g=IIj.prototype;_.g.init=function(Y){Y=Y===void 0?!0:Y;Da.prototype.init.call(this);this.initialized||(Y||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.g.handlePopstate=function(Y){var b=null;Y.state||(b="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Da.prototype.handlePopstate.call(this,Y);var w=new CustomEvent("yt-history-pop",{cancelable:!0});_.Xx(this.dispatchElement,"yt-history-pop",[w,{errorMsg:b}]);_.De(this.dispatchElement,"yt-close-all-popups-action");if(!w.defaultPrevented){w=_.fH().resolve(_.bX);b=w.getCurrentData();var V=w.getCurrentPage();w=0;V?(V=_.Xx(this.dispatchElement,"yt-get-page-offset",
[V]),V.length>0&&(w=V[0])):_.Sk(new _.BQ("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:b?b.page:"undefined"}));b&&(b.csn=_.dO());this.saveSnapshot(this.historyEntryTime,b,w)}return Da.prototype.handlePopstate.call(this,Y)};
_.g.handleHistoryCacheLoad=function(Y,b){Y.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.N(_.De(this.dispatchElement,"yt-history-will-navigate",[b])).next().value||_.Xx(this.dispatchElement,"yt-history-load",[b,Y]))};
_.g.pushState=function(Y,b){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var w=new _.BQ("history.pushState is not a function",this.getDebugString());_.Ft(w)}Da.prototype.pushState.call(this,Y,b)};
_.g.replaceState=function(Y,b){if(!this.browserHistory.boundHistoryReplaceState){var w=new _.BQ("history.replaceState is not a function",this.getDebugString());_.Ft(w)}Da.prototype.replaceState.call(this,Y,b)};
_.g.saveAndPush=function(Y,b,w,V,H){H=H===void 0?{}:H;w&&(w.csn=_.dO());Da.prototype.saveAndPush.call(this,Y,b,w,V,H)};
_.g.getDebugString=function(){var Y=[];this.initialized&&Y.push("i");this.browserHistory.boundHistoryReplaceState&&Y.push("bhr");this.browserHistory.boundHistoryPushState&&Y.push("bhs");"replaceState"in this.browserHistory.debugInfo&&Y.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&Y.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&Y.push("ei:"+String(this.entryIndex));return Y.join(",")};
_.mn=function(Y,b){Y.init(!0);var w=Y.browserHistory.getState();Y.replaceState(w,cv(b))};
IIj.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ox=new _.Hx("DESKTOP_HISTORY_MANAGER_TOKEN");var kc$=[10,20,30,40,50,60],Ix=function(){this.currentPartitionIndex=0},lIj=function(Y){nVU({mainAppWeb:_.$y(),
survivalSli:{partitionMinute:Y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},hek=function(Y){nVU({mainAppWeb:_.$y(),
survivalSli:{partitionMinute:Y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},x0k=function(Y){return Y.currentPartitionIndex>=0&&Y.currentPartitionIndex<kc$.length?kc$[Y.currentPartitionIndex]:-1},qFQ=function(Y){return Y.currentPartitionIndex>0&&Y.currentPartitionIndex-1<kc$.length?kc$[Y.currentPartitionIndex-1]:-1};
Ix.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var Y=qFQ(this);Y>0&&hek(Y);Y=x0k(this);Y>0&&lIj(Y);scr(this)}};
var scr=function(Y){var b=x0k(Y);if(b>0){var w=qFQ(Y);w<0&&(w=0);Y.intervalId=_.Lb.addJob(function(){var V=qFQ(Y);V>0&&hek(V);V=x0k(Y);V>0&&lIj(V);scr(Y)},3,(b-w)*6E4);
Y.currentPartitionIndex+=1}else Y.currentPartitionIndex=-1};var Qcj=function(){this.skipNextNavigation=!1},vn8=function(Y,b,w){if(!b)return!1;
if(Y.skipNextNavigation)return Y.skipNextNavigation=!1;if(_.v(w,_.Ah))return!1;var V,H,f;if((V=_.v(w,_.QU))==null?0:(H=V.browseEndpointContextSupportedConfigs)==null?0:(f=H.browseEndpointContextMainConfig)==null?0:f.skipConfirmation)return!1;var E;return((E=_.v(b.commandMetadata,_.g5))==null?void 0:E.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Qcj.prototype.showConfirmationDialog=function(Y,b){this.navigateParams=b;this.customConfirmationCommand?_.fH().resolve(_.Nn).resolveCommand(this.customConfirmationCommand):(b={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Gx(_.sa("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Gx(_.sa("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Gx(_.sa("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Gx(_.sa("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.CB.getInstance().triggerAction("yt-open-popup-action",b,Y))};
Qcj.prototype.cancelPendingNavigation=function(){var Y;((Y=this.navigateParams)==null?void 0:Y.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var PmK=function(){},BZ$=function(Y,b,w,V,H,f,E){w=w===void 0?{}:w;
E=E===void 0?{}:E;var U=_.B5.instance,X,I=(X=_.v(b,_.Ah))==null?void 0:X.url;return I?uCG(U,I,w,window.location.href,function(k,l){Zwj(Y,k,l,!1,!0,w,f,V)},function(){return!1}):jZ(U,b,w,window.location.href,PH(b),function(k,l){Zwj(Y,k,l,!1,!0,w,f,V)},H,E)},Zwj=function(Y,b,w,V,H,f,E,U){if(!Y.JSC$12382_chunkHandler)if(w.page==="watch"||w.page==="learning_journey_watch")if(H||V){if(_.q("kevlar_continue_playback_without_player_response")){var X;
var I=(X=_.v(U,_.TG))==null?void 0:X.videoId}Y.JSC$12382_chunkHandler=new TQ8(_.V4,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:V,previousVideoId:I},tempData:f},E)}else Y.JSC$12382_chunkHandler=new C5U(_.V4);else w.page==="shorts"&&H&&!V?Y.JSC$12382_chunkHandler=new GsK(_.V4,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:f},E):Y.JSC$12382_chunkHandler=new ymQ(E);Y.JSC$12382_chunkHandler.processChunk({endpoint:b,data:w});return Y.JSC$12382_chunkHandler.yy.promise},
nn5=function(Y,b,w,V,H){(w=_.rH_(w))&&Zwj(Y,b,w,!1,!0,V,void 0,H)};var MEt=function(){this.pendingNavigationPromise=null};
_.g=MEt.prototype;_.g.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.g.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.g.addEventListener=function(){throw Error("zh");};
_.g.dispatchEvent=function(){throw Error("zh");};
_.g.removeEventListener=function(){throw Error("zh");};var eek=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],k1=function(){_.n1.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];p4_(this)};
_.P(k1,_.n1);k1.prototype.verifyUser=function(){var Y=p4_(this),b=Y.logout;if(!Y.sessionChange)return!0;this.dispatchEvent("ytsessionchange");b&&this.dispatchEvent("ytuserinvalid");return!1};
var p4_=function(Y){var b=eek.map(function(H){var f;return(f=_.sJ.get(H))!=null?f:""}),w=b.some(function(H,f){return Y.sessionCookies&&Y.sessionCookies[f]!==""&&H===""}),V=b.some(function(H,f){return Y.sessionCookies&&Y.sessionCookies[f]!==H});
Y.sessionCookies=b;return{logout:w,sessionChange:V}};
k1.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Lb.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var IIK=new _.Hx("POSTMESSAGE_TUNNEL_TOKEN");var D0B=["/parent_tools","/file_download","/artist_roster"],he6=[ZTL,B6u,nB6,eIa,MAq,PtG,pFe,OTK];var OwU=new _.Hx("APP_ROOT");var l5=new _.Hx("NAVIGATION_CONFIRMATION_SERVICE");var tEC="/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(" "),Re$=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
hm=function(Y,b){this.pendingNavigationPromise=null;this.JSC$12400_clientRoot=Y;this.historyManager=b;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 PmK;this.debugString=Y.is;Y={"yt-signal-action-history-back":this.handleSignalActionHistoryBack,"yt-signal-action-reload-page":this.handleSignalActionReloadPage.bind(this),
"yt-signal-action-soft-reload-page":this.handleSignalActionSoftReloadPage.bind(this),"yt-signal-action-reset-warm-loads":this.handleSignalActionResetWarmLoads.bind(this),"yt-signal-action-close-window":this.handleSignalActionCloseWindow};_.yu(_.CB.getInstance(),Y,this.JSC$12400_clientRoot)},aI9,raK,zeC,WT$,SF5;
_.P(hm,MEt);hm.prototype.reload=function(){_.yU(window.location.href)};
var KL9=function(Y){Y.currentEndpoint&&_.v(Y.currentEndpoint,_.BH)?Y.reload():Y.currentEndpoint&&Y.navigate(Y.currentEndpoint,!0,void 0,{disableCache:!0})};
hm.prototype.navigate=function(Y,b,w,V,H,f,E,U){b=b===void 0?!1:b;w=w===void 0?{}:w;V=V===void 0?{}:V;var X=_.fH().resolve(l5),I;if(!E&&vn8(X,(I=this.currentEndpoint)!=null?I:void 0,Y))return X.showConfirmationDialog(this.JSC$12400_clientRoot.parentElement,{endpoint:Y,reload:b,params:w,tempData:V,requestType:H,createScreenConfig:f}),!1;var k=_.Kp();_.iy(k,"eocs")||k.parkOrScheduleJob(function(){k.processSignal("eocs")},10,"eor");
E=PH(Y);X=V.autonav==="1";I=_.dO();k1.instance||(k1.instance=new k1);var l=k1.instance.verifyUser(),x;if(_.q("enable_dark_theme_only_on_shorts")){var Q=document.documentElement.hasAttribute("dark"),Z=_.OC(!0)==="USER_INTERFACE_THEME_DARK";if(E==="shorts"){if(!Q)if(_.q("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var e;_.yU((e=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:e.url,void 0,void 0,window.top)}}else{var O;_.yU(_.TO((O=_.v(Y==null?
void 0:Y.commandMetadata,_.g5))==null?void 0:O.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.q("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!Q){var L;_.yU(_.TO((L=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:L.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(Z!==Q){var r;_.yU(_.TO((r=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:r.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(E==="watch"){if(d0j(_.fH().resolve(_.Ck),
Y)&&(l||_.q("fix_miniplayer_navigation_killswitch")))return!1;_.q("block_all_player_prefetch_requests")||(x=z6t(_.Ud(_.nZ),Y,X))}else{var C,W=(C=_.v(this.currentEndpoint,_.TG))==null?void 0:C.videoId;W&&_.pp.getInstance().then(function(eL){eL&&eL.set("yt-miniplayer-shown-video-id",W)})}x&&(w.frags=x.missingFragments_.join(","));
e=null;var y;O=(y=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:y.ignoreNavigation;if(!O)if(_.q("kevlar_command_url")){var G;e=(G=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?void 0:G.url}else e=_.OAv(Y,w);if(e&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&e==this.lastNavigationUrl)return _.Fx({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.hJ(zG(),"CANCELLED")}e&&(this.lastNavigationUrl=e);JWr();_.rx("IS_HOMEPAGE_COLD",
!1);_.rx("IS_RESULTS_PAGE_COLD",!1);_.rx("IS_WATCH_PAGE_COLD",!1);Y.loggingUrls&&Y.loggingUrls.forEach(function(eL){eL.baseUrl&&_.yn(eL.baseUrl)});
_.QcK(Y,f?f.layer:0)&&_.q("kevlar_flush_logs_on_away_navigation")&&_.dh();if(x06(Y))return!1;q7j(E,H);if(!e)return O||_.Sk(new _.BQ("Can't construct url for endpoint",Y)),_.hJ(zG(),"FAILURE"),!1;_.X4g();y=Y&&_.v(Y,_.QU)&&_.v(Y,_.QU).browseId.startsWith("UC");w=(G=_.q("enable_dark_theme_only_on_shorts")&&E==="shorts"?!1:_.tL()&&document.documentElement.hasAttribute("dark")!==_.pX())?{themeRefresh:1}:{};G&&!_.vQ()&&_.OC()==="USER_INTERFACE_THEME_DARK"&&(w.theme="dark");y=G||FTo(e)&&!y&&!_.q("kevlar_disable_url_allowlist");
l||(y=!0);if(y||_.zO("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Nr;var o6=(Nr=window.top)==null?void 0:Nr.location.href}catch(eL){var lI;o6=(lI=eL)==null?void 0:lI.message}_.Sk(new _.BQ("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:o6}))}Y=_.q("kevlar_redirect_on_window_killswitch")?window.top:window;CX(e);_.yU(_.TO(e,w),void 0,void 0,Y);_.hJ(zG(),"ABORTED");return!1}_.q("kevlar_early_popup_close")&&_.Xx(this.JSC$12400_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12382_chunkHandler=void 0;var Zt;o6=PH((Zt=this.currentEndpoint)!=null?Zt:void 0);(Zt=E==="shorts"&&o6==="shorts")||_.Vfe();_.i1(Ke6)("nr",void 0);X&&_.Fx({webInfo:{navigationReason:"an"}});Y.clickTrackingParams&&(V.itct=Y.clickTrackingParams,V.csn=I);cBr(V);V.endpoint=JSON.stringify(Y);_.q("enable_unknown_lact_fix_on_html5")&&(_.fH().resolve(_.dn),V.lact=_.fB());_.BL.isEmpty(V)||_.VX(e,V);!_.q("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(f=Object.assign({},{layer:0},f,{parentLayer:3}));this.pendingNavigationPromise=f=BZ$(this.pageFetcher,Y,V,this.currentEndpoint,this.JSC$12400_isNetworkPromiseStale.bind(this),f,U);f=f.then(this.handleNavigateSuccess.bind(this,f,Y,x,V),this.handleNavigateFail.bind(this,f,Y));_.sL().navigationFinishPromise=f;b={endpoint:Y,pageType:E,url:cv(e),reload:!!b,noProgressBar:Zt};H&&(b.type=H);this.fireEvent("yt-navigate-start",b);x&&nn5(this.pageFetcher,Y,x,V,this.currentEndpoint);
return!0};
hm.prototype.JSC$12400_isNetworkPromiseStale=function(Y){return Y!=this.pendingNavigationPromise};
var LTj=function(Y,b,w,V,H){var f=PH(b);b={endpoint:b,pageType:f};H&&(b.errorMessage=H);_.Sk(w);b.navigationDoneMs=_.S1("nd");b.navigationErrorReason=V;Y.fireEvent("yt-navigate-error",b)};
hm.prototype.handleNavigateFail=function(Y,b,w){var V=void 0;w instanceof _.GL&&(V=w,eQv(w));if(this.JSC$12400_isNetworkPromiseStale(Y))return _.OQ(V);_.hJ(zG(),"FAILURE");LTj(this,b,w,"101");return _.OQ(w)};
hm.prototype.handleNavigateSuccess=function(Y,b,w,V,H){if(this.JSC$12400_isNetworkPromiseStale(Y))return _.k7();this.pendingNavigationPromise=null;if(!H)return b=new _.BQ("Missing data in response for navigation endpoint",b),_.OQ(b);if(H.reload)return window.location.reload(!0),_.k7();w&&(Y={},_.BL.extend(Y,_.rH_(w),H),H=Y);var f,E;w=(f=H)==null?void 0:(E=f.timing)==null?void 0:E.responseStart;w!=null&&_.S1("srt",w);_.S1("pdc");var U,X;f=(U=H)==null?void 0:(X=U.timing)==null?void 0:X.info;f!=null&&
(U=_.i1(_.yue)(f),_.Fx(U));_.hJ(zG(),"SUCCESS");SF5(this,b,H,1,V);return _.k7()};
var FTo=function(Y){var b=Y;_.q("kevlar_no_redirect_to_classic_2_ks")||(b=(new _.Jw(Y)).getPath());if(b==="/"||b==="/red")return!1;var w=!0;tEC.forEach(function(V){Y.indexOf(V)===0&&(w=!1)});
Re$.forEach(function(V){var H=V.url;_.q(V.expFlag)&&Y.indexOf(H)===0&&(w=!1)});
return w};
hm.prototype.publishPageData=function(Y){this.fireEvent("yt-page-data-fetched",{pageData:Y})};
aI9=function(Y,b,w,V,H,f){var E=null;b.page!=="watch"&&b.page!=="learning_journey_watch"||V?b.filler||_.Xx(Y.JSC$12400_clientRoot,"yt-stop-old-player",[b]):E=Zwj(Y.pageFetcher,H,b,w,!1,f,void 0,Y.currentEndpoint);if(E)return E.then(Y.publishPageData.bind(Y,b));Y.publishPageData(b);return _.k7()};
raK=function(Y,b,w){var V=null;if(!w)return V=new _.BQ("Empty data",Y.debugString,b);var H=w.response;if(!H)return V;var f={endpointType:PH(b)||"unknown"};H.responseContext?(H=H.responseContext.errors)&&(V=new _.BQ("Errors in response context",Y.debugString,b,H,f)):V=H.error||H.errorMetadata?new _.BQ("Errors in response",Y.debugString,b,H.error,H.errorMetadata,f):new _.BQ("responseContext missing",Y.debugString,b,Object.keys(H).sort().join(","),f);var E,U,X,I;if(Y=w==null?void 0:(E=w.response)==null?
void 0:(U=E.responseContext)==null?void 0:(X=U.webResponseContextExtensionData)==null?void 0:(I=X.webResponseContextDebugData)==null?void 0:I.debugErrorMessages)for(E=0;E<Y.length;E++);return V};
zeC=function(Y){var b,w,V,H;return Y==null?void 0:(b=Y.response)==null?void 0:(w=b.responseContext)==null?void 0:(V=w.errors)==null?void 0:(H=V.error)==null?void 0:H["0"]};
WT$=function(Y,b){var w;if(w=b.url&&!b.url.startsWith("/clip"))w=b.url,w=!_.q("webfe_parse_debug_param_in_resolveurl_service")&&Y.searchDebugUrlMatcher.test(w)||LHB(w)?!0:!1;if(w)LHB(b.url)&&_.GO(window.location.href).themeRefresh?(b=_.H0(b.url,"themeRefresh"),_.mn(Y.historyManager,b)):b.url&&!NZe(b.url)&&_.mn(Y.historyManager,b.url);else if(b.endpoint){var V,H,f;(w=(V=b.endpoint)==null?void 0:(H=V.commandMetadata)==null?void 0:(f=H.webCommandMetadata)==null?void 0:f.url)&&!NZe(w)&&_.mn(Y.historyManager,
w);w&&b.url&&w!=b.url&&!b.url.match("playnext=1")&&new _.BQ("Response url mismatch in response data",Y.debugString,w,b.url)}};
_.KTQ=function(Y,b,w,V,H,f,E,U){f=f===void 0?!1:f;var X=_.fH().resolve(l5),I;if(!U&&vn8(X,(I=Y.currentEndpoint)!=null?I:void 0,b))return X.showConfirmationDialog(Y.JSC$12400_clientRoot.parentElement,{endpoint:b,data:w,navigationType:V,tempData:H,isMiniplayer:f,isForwardHistoryNavigation:E==null?void 0:E.forward}),_.k7();Y.pageFetcher.JSC$12382_chunkHandler=void 0;return SF5(Y,b,w,V,H,f)};
SF5=function(Y,b,w,V,H,f){f=f===void 0?!1:f;Y.isMiniplayerExpansion=f;var E=V===2;Y.currentEndpoint=b;Y.numNavigations++;Y.numNavigations&&(GpK.navigationCount=Y.numNavigations);_.rx("NUM_NAV",Y.numNavigations);var U=raK(Y,b,w);if(U)return LTj(Y,b,U,"102",zeC(w)),_.OQ(U);var X,I,k,l;U=w.rootVe||(w==null?void 0:(X=w.response)==null?void 0:(I=X.responseContext)==null?void 0:(k=I.webResponseContextExtensionData)==null?void 0:(l=k.ytConfigData)==null?void 0:l.rootVisualElementType);!E&&w&&WT$(Y,w);var x,
Q;X=w==null?void 0:(x=w.response)==null?void 0:(Q=x.responseContext)==null?void 0:Q.maxAgeSeconds;if(!E&&!isNaN(X)){var Z;_.q("kevlar_use_response_ttl_to_invalidate_cache")?Z=(0,_.gG)()+1E3*X:_.q("kevlar_always_invalidate_cache")&&(Z=0);isNaN(Z)||(w.expirationTime=Z)}_.q("html5_enable_ssap_entity_id")&&E&&w.playerResponse&&(w.playerResponse.cacheMetadata={isCacheHit:!0});_.Ud(_.nZ).prefetchCache_.clear();E||w.page!=="watch"||w.type!=="reduced"&&V!==1?V=aI9(Y,w,E,!!f,b,H):(Y.publishPageData(w),V=_.k7());
H=V.then(function(){var e=PH(b);e={endpoint:b,pageType:e,fromHistory:E,response:w};e.navigationDoneMs=_.S1("nd");Y.fireEvent("yt-navigate-finish",e)});
w.csn&&U&&w.clientSideGrafts&&V.then(Y.attachClientSideGrafts.bind(Y,w,_.R3()));return H};
_.g=hm.prototype;_.g.attachClientSideGrafts=function(Y,b){Y.clientSideGrafts&&b&&Y.clientSideGrafts.forEach(function(w){if(b&&w){var V=_.nA(w);_.q("combine_ve_grafts")?_.Qd().graftServerVe(w,b):_.yX(Y.csn,b,V)}})};
_.g.handleSignalActionHistoryBack=function(){window.history.back()};
_.g.handleSignalActionCloseWindow=function(){window.close()};
_.g.handleSignalActionReloadPage=function(){this.reload()};
_.g.handleSignalActionSoftReloadPage=function(){KL9(this)};
_.g.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.g.fireEvent=function(Y,b){Y=new CustomEvent(Y,{bubbles:!0,cancelable:!1,composed:!0,detail:b});this.dispatchEvent(Y)};
_.g.addEventListener=function(Y,b){this.JSC$12400_clientRoot.addEventListener(Y,b)};
_.g.dispatchEvent=function(Y){return this.JSC$12400_clientRoot.dispatchEvent(Y)};
_.g.removeEventListener=function(Y,b){this.JSC$12400_clientRoot.removeEventListener(Y,b)};
hm[VS]=[OwU,_.ox];_.fJL=new Eq("browse","h8y2qb");_.NkG=new Eq("search","JzFVk");_.Ejg=new Eq("shorts","xwEKAe");_.cYr=new Eq("watchFixie","nmfa2d");_.U9G=new Eq("watchFlexy","CF909");_.XJe=new Eq("watchGrid","Tm0L3c");_.D9M=new Eq("watchLearningJourney","L3n37");var iwI;var Aad=function(){return _.F.apply(this,arguments)||this};
_.P(Aad,_.F);_.up.Object.defineProperties(Aad,{template:{configurable:!0,enumerable:!0,get:function(){if(iwI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-player">\n  \n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);iwI=Y}Y=iwI;return Y}}});
_.z([_.n(AMC.YtPlayerBehavior),_.K("design:type",Object)],Aad.prototype,"ytPlayerBehavior",void 0);_.z([_.S({is:"ytd-player"})],Aad);var CmQ;var yar;var $0j;var x1=function(){var Y=_.F.apply(this,arguments)||this;Y.forceModernIconButton=!1;Y.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return Y};
_.P(x1,_.F);x1.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]]"}}}}}};
x1.prototype.handleAccountLinkingStateChangedCommand=function(Y){if(Y=_.v(Y,ijk)){var b,w=(b=this.data)==null?void 0:b.providerKey;b=Y.providerKey;w&&b&&w.id===b.id&&w.subject===b.subject&&(Y=Y.linked,Y!==void 0&&(this.set("data.linked",Y),this.notifyPath("data.linked"),_.q("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(Y)))}};
x1.prototype.setPlayerAccountLinkState=function(Y){var b=new Slq;LWb(b,ahb(new rNI,Y));var w=_.V4();w&&w.getPlayerPromise().then(function(V){V.setAccountLinkState(_.YM(b.JSC$10114_serializeBinary(),4));V.updateAccountLinkingConfig(Y)})};
x1.prototype.handleShowAccountLinkDialog=function(){var Y=this.get("button.buttonRenderer.command");Y&&_.h1([Y],this.hostElement)};
_.up.Object.defineProperties(x1.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}}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.z([_.n([_.US.YtActionHandlerBehavior]),_.K("design:type",Object)],x1.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],x1.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],x1.prototype,"overrides",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],x1.prototype,"forceModernIconButton",void 0);_.z([_.R({value:"bottom"}),_.K("design:type",String)],x1.prototype,"buttonTooltipPosition",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],x1.prototype,"forceIconButton",void 0);_.z([_.R(),_.K("design:type",Boolean)],x1.prototype,"disableTextTransform",void 0);
_.z([_.t("data","data.linked","data.isWarning"),_.K("design:type",Object),_.K("design:paramtypes",[])],x1.prototype,"button",null);_.z([_.S({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],x1);
_.a(x1,"ytd-account-link-button-renderer",function(){if($0j!==void 0)return $0j;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-link-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-account-link-button-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return $0j=Y},{mode:1});var jc_;var Gck=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],q7=function(){return _.F.apply(this,arguments)||this};
_.P(q7,_.F);q7.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
q7.prototype.updateButtonActiveState=function(){var Y=this,b=!!Gck.find(function(w){return Y.currentState===w});
this.button&&(this.button.isPressed=b)};
_.up.Object.defineProperties(q7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.playlistLoopStateEntity)==null?void 0:Y.state)||((b=this.data)==null?void 0:b.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=void 0,b;if(this.currentState&&((b=this.data)==null?0:b.states)){b=_.N(this.data.states);for(var w=b.next();!w.done;w=b.next()){w=_.v(w.value,_.cnd);var V=void 0;if(((V=w)==null?void 0:V.state)===this.currentState){Y=w;break}}}return Y}}});
q7.prototype.updateButtonActiveState=q7.prototype.updateButtonActiveState;_.z([_.n(_.FX),_.K("design:type",Object)],q7.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.ee6}),_.K("design:type",Object)],q7.prototype,"playlistLoopStateEntity",void 0);_.z([_.R(),_.K("design:type",Object)],q7.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],q7.prototype,"forceIconOnly",void 0);_.z([_.xZ("ytd-button-renderer"),_.K("design:type",_.YI)],q7.prototype,"button",void 0);
_.z([_.t("data","playlistLoopStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],q7.prototype,"currentState",null);_.z([_.lr("currentButtonStateRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q7.prototype,"updateButtonActiveState",null);_.z([_.t("currentState"),_.K("design:type",Object),_.K("design:paramtypes",[])],q7.prototype,"currentButtonStateRenderer",null);
_.z([_.S({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],q7);
_.a(q7,"ytd-playlist-loop-button-renderer",function(){if(jc_!==void 0)return jc_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-loop-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-playlist-loop-button-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return jc_=Y},
{mode:1});var TZr;var Ja_=_.sa("DOWNLOAD",{},"Download"),uSo=_.sa("DOWNLOADING",{},"Downloading"),YA5=_.sa("DOWNLOADED",{},"Downloaded"),b0C=_.sa("RETRY",{},"Retry"),se=function(){var Y=_.F.apply(this,arguments)||this;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.overrides=!1;Y.buttonTooltipPosition=!1;Y.styleActionButton=!1;Y.disableTextTransform=!1;Y.downloadProgress=0;Y.isDownloadComplete=!1;Y.isHidden=!0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.isVideoDeletedByUser=!1;Y.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return Y};
_.P(se,_.F);_.g=se.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.text||(Y=_.a8(_.u3().getState(),this.videoId),this.updateButtonState(Y))};
_.g.computeVideoId=function(Y){return Y};
_.g.showHideButton=function(){this.updateButtonVisibility()};
_.g.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};
_.g.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.g.updateButtonState=function(Y){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==uSo||!_.Z7(Y))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(Y){case "TRANSFER_STATE_UNKNOWN":Y=Ja_;var b="OFFLINE_DOWNLOAD";var w="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":Y=b0C;b="OFFLINE_DOWNLOAD";w="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":Y=YA5;b="OFFLINE_PIN";w="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Y=
uSo;b="OFFLINE_DOWNLOADING_ZERO";w="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Y=b0C;b="OFFLINE_DOWNLOAD";w="ACTION_RETRY";break;default:Y=Ja_,b="OFFLINE_DOWNLOAD",w="ACTION_ADD"}this.isVideoDeletedByUser&&(Y=Ja_,b="OFFLINE_DOWNLOAD",w="ACTION_ADD");var V=Object.assign({},this.data);V.text=_.Gx(Y);V.tooltip=Y;V.icon={iconType:b};V.size="SIZE_DEFAULT";V.style="STYLE_DEFAULT";_.v(V.command,_.kh)&&(_.v(V.command,_.kh).action=w);this.set("data",V)}};
_.g.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var Y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?Y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?Y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?Y="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(Y="OFFLINE_PIN",this.isDownloadComplete=!0);var b;Y!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.text=_.Gx(uSo),b.tooltip=uSo,b.icon={iconType:Y},_.v(b.command,_.kh)&&(_.v(b.command,_.kh).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
se.prototype.updateProgress=se.prototype.updateProgress;se.prototype.onTransferStateChanged=se.prototype.onTransferStateChanged;se.prototype.showHideButton=se.prototype.showHideButton;se.prototype.dataChanged=se.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],se.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],se.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],se.prototype,"forceIconButton",void 0);
_.z([_.R(),_.K("design:type",Object)],se.prototype,"forceIconOnly",void 0);_.z([_.R(),_.K("design:type",Object)],se.prototype,"overrides",void 0);_.z([_.R(),_.K("design:type",Object)],se.prototype,"buttonTooltipPosition",void 0);_.z([_.R(),_.K("design:type",Object)],se.prototype,"styleActionButton",void 0);_.z([_.R(),_.K("design:type",Object)],se.prototype,"disableTextTransform",void 0);
_.z([_.R({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.K("design:type",String)],se.prototype,"videoId",void 0);_.z([_.R(),_.K("design:type",Object)],se.prototype,"data",void 0);_.z([_.R({selector:zx,selectorArgs:["videoId"]}),_.K("design:type",Object)],se.prototype,"downloadProgress",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],se.prototype,"isDownloadComplete",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],se.prototype,"isHidden",void 0);_.z([_.R({selector:_.a8,selectorArgs:["videoId"]}),_.K("design:type",String)],se.prototype,"transferState",void 0);_.z([_.R({selector:_.Rxv,selectorArgs:["videoId"]}),_.K("design:type",Object)],se.prototype,"isVideoDeletedByUser",void 0);_.z([_.R({selector:M7a,selectorArgs:["videoId"]}),_.K("design:type",Object)],se.prototype,"offlineabilityState",void 0);
_.z([_.R({value:!0}),_.K("design:type",Boolean)],se.prototype,"showTooltips",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],se.prototype,"sendCommandWhenDisabled",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],se.prototype,"disabled",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],se.prototype,"dataChanged",null);
_.z([_.vX("offlineabilityState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],se.prototype,"showHideButton",null);_.z([_.vX("transferState","isVideoDeletedByUser"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],se.prototype,"onTransferStateChanged",null);_.z([_.vX("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],se.prototype,"updateProgress",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],se);
_.a(se,"ytd-download-button-renderer",function(){if(TZr!==void 0)return TZr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-button-renderer"></ytd-button-renderer>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return TZr=Y},{mode:2});var wuC;var VTk,H0_=function(){if(VTk!==void 0)return VTk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]">\n</yt-button-shape>\n<tp-yt-paper-tooltip disable-upgrade$="[[!tooltip]]" fit-to-visible-bounds="" offset="8" position="[[buttonTooltipPosition]]">[[tooltip]]</tp-yt-paper-tooltip>\n');return VTk=Y};var gf9=_.q("web_button_rework")&&_.Wf("BUTTON_REWORK")||_.q("web_button_rework_with_live"),fV8=_.cQ("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Q5=function(){var Y=_.F.apply(this,arguments)||this;Y.isPressed=!1;Y.forceIconButton=!1;Y.forceIconOnly=!1;Y.forceModernIconButton=!1;Y.alignByText=!1;Y.isShorts=!1;Y.animatedText=!1;Y.shouldAnimate=!1;Y.JSC$12438_browserSupportsAnimation=_.q("web_supports_animations_api");Y.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};Y.onTap=function(){var b;if((b=Y.data)==null||!b.defaultNavigationEndpoint){var w;b=!((w=Y.data)==null?0:w.isToggled);var V;if((V=Y.data)==null||!V.preventAutoToggle){Y.shouldAnimate=!1;Y.disableTextUpdateJobId&&_.Lb.cancelJob(Y.disableTextUpdateJobId);Y.disableTextUpdateJobId=_.Lb.addLowPriorityJob(function(){Y.disableTextUpdateJobId=void 0},fV8);
var H;Y.set("data.isToggled",!((H=Y.data)==null?0:H.isToggled));w=Y.getInnertubeIcon();V={toggled:b,actions:{}};w&&(V.actions[w.toLowerCase()]=b);_.Ua(Y.hostElement,"yt-toggle-button",V)}}};
return Y};
_.P(Q5,_.F);_.g=Q5.prototype;_.g.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Lb.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.toggle=function(Y){var b;this.set("data.isToggled",Y!==void 0?Y:!((b=this.data)==null?0:b.isToggled))};
_.g.handleUpdateToggleButtonStateCommand=function(Y){if(this.data){Y=_.v(Y,YI5);var b,w,V,H=(b=this.data)==null?void 0:(w=b.toggleButtonSupportedData)==null?void 0:(V=w.toggleButtonIdData)==null?void 0:V.id;H&&Y&&H===(Y==null?void 0:Y.buttonId)&&this.set("data.isToggled",Y.toggled)}};
_.g.handleUpdateToggleButtonTextAction=function(Y){if(this.data){Y=_.v(Y,dm$);var b,w,V,H=(b=this.data)==null?void 0:(w=b.toggleButtonSupportedData)==null?void 0:(V=w.toggleButtonIdData)==null?void 0:V.id;H&&Y&&H===(Y==null?void 0:Y.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=Y.defaultNumericalValue,this.set("data.defaultText",Y.defaultText),this.set("data.toggledText",Y.toggledText),this.shouldAnimate=!1)}};
_.g.getInnertubeIcon=function(){var Y=this.data;if(Y){var b,w,V=((b=Y.defaultIcon)==null?0:b.iconType)?(w=Y.defaultIcon)==null?void 0:w.iconType:null,H,f;b=((H=Y.toggledIcon)==null?0:H.iconType)?(f=Y.toggledIcon)==null?void 0:f.iconType:V;return Y.isToggled?b:V}};
_.g.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.up.Object.defineProperties(Q5.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y={renderer:this.data,element:this.hostElement,toggled:!!this.data.isToggled,onTapCallback:this.onTap,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceModernIconButton:this.forceModernIconButton,forceDisabled:this.disabled,nextVersion:!0,useAnimatedText:this.animatedText&&this.JSC$12438_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var b=Y.renderer;var w=Y.element;var V=Y.toggled;var H=Y.onTapCallback;var f=Y.commandClientArgs;var E=Y.overrides;var U=Y.forceIcon;var X=Y.forceModernIconButton;var I=Y.forceDisabled;var k=Y.useAnimatedText;var l=Y.animatedTextProps;Y=Reu(b,V);U=!b.defaultIcon||!U&&b.defaultText?b.defaultIcon?"leading":void 0:X?"icon-only":"icon-only-40";U==="icon-only-40"&&(Y.type="text");var x;X=Object;var Q=X.assign,Z;a:switch((Z=
b.style)==null?void 0:Z.styleType){case "STYLE_COMPACT_GRAY":Z={size:"S"};break a;default:Z={size:"M"}}var e=!!V;var O=(O=V&&b.toggledText||b.defaultText)?_.LA(O):void 0;k?(k=_.Tx(V&&b.toggledText||b.defaultText))&&l&&!isNaN(Number(l.numberValue))?(l.numberText=k,V&&(l.numberValue+=1),k=l):k=void 0:k=void 0;var L,r,C,W;var y=(l=((r=V?b.toggledAccessibilityData||((y=b.toggledText)==null?void 0:y.accessibility):b.accessibilityData||((L=b.defaultText)==null?void 0:L.accessibility))==null?void 0:(C=r.accessibilityData)==
null?void 0:C.label)||((W=b.accessibility)==null?void 0:W.label))?l:_.Tx(V&&b.toggledText||b.defaultText);I=I===void 0?b.isDisabled:I;w=tEI(b,V,H,w,f);V=OwB(b,V);V!=null&&V.length?(V=_.KA({innertubeCommand:QaI(V),forceNewState:!0}),V=i8(V)?V:void 0):V=void 0;b=Q.call(X,{},Y,Z,{iconPosition:U},E,{focused:!1,toggled:e,toggleable:!0,formattedButtonText:O,animatedTextProps:k,accessibilityLabel:y,disabled:I,onTap:w,aTagConfig:V},jJg((x=b.colorData)==null?void 0:x.basicColorPaletteData));b.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(b.type="filled");return b}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var Y=this.getInnertubeIcon();if(Y)return _.IR(Y)}}});
Q5.prototype.resetAnimation=Q5.prototype.resetAnimation;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Q5.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Q5.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"isPressed",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"forceIconButton",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"forceIconOnly",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"forceModernIconButton",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"alignByText",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"overrides",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Q5.prototype,"disabled",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"isShorts",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"buttonTooltipPosition",void 0);_.z([_.R(),_.K("design:type",Object)],Q5.prototype,"animatedText",void 0);_.z([_.R(),_.K("design:type",String)],Q5.prototype,"textNumberValue",void 0);_.z([_.R({computed:"computeTooltip(data, data.isToggled)"}),_.K("design:type",Object)],Q5.prototype,"tooltip",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q5.prototype,"resetAnimation",null);_.z([_.t("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q5.prototype,"computedButtonShape",null);_.z([_.t("data.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q5.prototype,"computedIcon",null);
_.z([_.S({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Q5);gf9&&_.a(Q5,"ytd-toggle-button-renderer",H0_,{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var Ls=_.b8(function(Y){function b(I){var k;return _.c(function(l){if(l.nextAddress==1)return(k=!FTa(I,U())||!U().enabled)?l.jumpTo(2):_.D(l,zeI(),3);l.nextAddress!=2&&(k=l.yieldResult);if(k)return l.return();w();setTimeout(function(){E(!1)},1500);
_.om(l)})}
function w(){setTimeout(function(){E(!0);var I;(I=V.lottieEl)==null||I.goToAndPlay(0)},150)}
var V=_.o1(),H=_.N(_.kw(!1,void 0,"JJXzp")),f=H.next().value,E=H.next().value,U=_.JU(Y.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.dx(function(){var I,k;((I=Y.settings)==null?void 0:(k=I.call(Y))==null?void 0:k.uniqueId)==="this is not intended behavior"&&_.Sk(new _.BQ("Smartimation Settings is undefined"))});
_.tl(function(){U().experimentEnabled&&(U().enabled?LTK(b):(E(!1),SFt(b)),_.R2(function(){SFt(b)}))},"FRiAUe");
_.tl(function(){U().timings.join("");U().experimentEnabled&&(aIg(U()),_.R2(function(){raL(U())}))},"VKiJOe");
var X=_.sN(function(){var I=V,k=U().uniqueId+"-border",l,x;var Q="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((x=(l=_.fH().resolve(_.HQ(_.GT)))==null?void 0:l())!=null&&x?"dark":"light")+"_v2.json";return{animationRef:I,animationConfig:{name:k,autoplay:!1,loop:!1,path:Q}}},void 0,"tgykab");
H={};return _.m("yt-smartimation",{class:_.hj(Y.className,"smartimation",(H["smartimation--experiment-enabled"]=function(){return U().experimentEnabled},H["smartimation--active-border"]=f,H["smartimation--enable-masking"]=WTu(),H))},_.m(_.h,{cond:function(){return U().experimentEnabled},
then:function(){return _.m("div",{class:"smartimation__border"},_.m(_.x_,{className:"smartimation__border-gradient",data:X,animationName:function(){return X().animationConfig.name}}))}}),_.m("div",{class:"smartimation__content"},Y.children))},"B");
Ls.idomCompat=!0;_.f_(Ls,"yt-smartimation",{props:{className:_.YX,settings:_.YX}});var vR=function(){var Y=_.F.apply(this,arguments)||this;Y.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};Y.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};Y.shouldEnableSmartimation=!1;return Y};
_.P(vR,_.F);vR.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
vR.prototype.onDataChanged=function(){var Y,b;this.shouldEnableSmartimation=(((Y=this.data)==null?void 0:(b=Y.timedAnimationData)==null?void 0:b.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
vR.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var Y=_.v(this.data.likeButton,_.KL),b=_.v(this.data.dislikeButton,_.KL);return!!((Y==null?0:Y.isToggled)||(b==null?0:b.isToggled))};
vR.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]]"}}}}}};
_.up.Object.defineProperties(vR.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=((Y=this.data)==null?void 0:(b=Y.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:w,enabled:this.shouldEnableSmartimation,experimentEnabled:w.length>0}}}});
vR.prototype.onDataChanged=vR.prototype.onDataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vR.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],vR.prototype,"likeButtonOverride",void 0);_.z([_.R(),_.K("design:type",Object)],vR.prototype,"dislikeButtonOverride",void 0);
_.z([_.t("shouldEnableSmartimation"),_.K("design:type",Object),_.K("design:paramtypes",[])],vR.prototype,"smartimationSettings",null);_.z([_.lr("data"),_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vR.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],vR);
_.a(vR,"ytd-segmented-like-dislike-button-renderer",function(){if(wuC!==void 0)return wuC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-segmented-like-dislike-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-buttons-wrapper" class="style-scope ytd-segmented-like-dislike-button-renderer"><div id="segmented-like-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div><div id="segmented-dislike-button" class="style-scope ytd-segmented-like-dislike-button-renderer"></div></div></yt-smartimation>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return wuC=Y},{mode:1});var N4$;var Eft;(Eft=document.body)==null||Eft.setAttribute("rounded-container","");var c$o={};c$o.YtToggleButtonBehavior=[_.US.YtActionHandlerBehavior,Zi.YtRenderButtonBehavior,{_noAccessors:!0,properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.isToggled)","stateChanged_(data.defaultText)","stateChanged_(data.toggledText)","stateChanged_(forceIconOnly)"],created:function(){this.toggleButtonActionMap_={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction_","yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand_"}},
attached:function(){this.registerActionMap(this.toggleButtonActionMap_)},
detached:function(){this.unregisterActionMap(this.toggleButtonActionMap_)},
onYtToggleButtonTapHandler:function(){},
onYtButtonTapHandler:function(){var Y=this.data.isToggled;if(!this.isModal_(Y)){if(!this.data.preventAutoToggle){this.toggle();var b={toggled:this.data.isToggled,actions:{}};b.actions[this.buttonIcon]=this.data.isToggled;_.Ua(this.hostElement,"yt-toggle-button",b)}b=this.data.defaultServiceEndpoint||null;var w=this.data.toggledServiceEndpoint||null;if(b&&w||b&&this.data.preventAutoToggle)Y=Y?w:b,b=this.disableCommandHandlerOverride,_.q("killswitch_toggle_button_behavior_resolve_command")||b?_.oP(this.hostElement,
[Y]):_.hA(Y,this.hostElement),_.Ua(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:Y})}},
stateChanged_:function(){var Y=this.data;if(Y){var b=Y.isToggled;this._setEndpoint(this.computeEndpoint_(Y));this._setServiceEndpoint(this.computeServiceEndpoint_(Y));this._setButtonIcon(this.computeButtonIcon_(Y,b));this._setButtonText(this.computeButtonText_(Y,b));this._setButtonAccessibility(this.computeAccessibility_(Y,b));this._setButtonTooltip(this.computeTooltip_(Y,b));this._setButtonClass(this.computeButtonClass_(Y,b));this._setIconPositionType(this.computeIconPositionType_(Y));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=b):this.elements_.button.setAttribute("aria-pressed",b));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=b)}},
shouldSetIconActiveState_:function(){return _.q("kevlar_system_icons")},
toggle:function(Y){this.set("data.isToggled",Y!==void 0?Y:!this.data.isToggled);_.q("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(Y){if(Y){var b,w;return!!((b=this.data)==null?0:(w=b.toggledServiceEndpoint)==null?0:w.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(Y){return Y&&Y.defaultNavigationEndpoint||null},
computeButtonIcon_:function(Y,b){var w=Y&&Y.defaultIcon?_.IR(Y.defaultIcon.iconType):null;Y=Y&&Y.toggledIcon?_.IR(Y.toggledIcon.iconType):w;return b?Y:w},
handleUpdateToggleButtonStateCommand_:function(Y){Y=Y.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==Y.buttonId&&this.toggle(Y.toggled)},
computeButtonText_:function(Y,b){return Y?b&&Y.toggledText||Y.defaultText||null:null},
computeAccessibility_:function(Y,b){return Y?(b?this.get("toggledAccessibilityData.accessibilityData",Y):this.get("accessibilityData.accessibilityData",Y))||Y.accessibility||null:null},
computeTooltip_:function(Y,b){return Y?b&&Y.toggledTooltip||Y.defaultTooltip||null:null},
computeButtonClass_:function(Y,b){if(!Y)return"";var w="",V=Y.toggledStyle||Y.style;if(b=b?V:Y.style){b.styleType&&(b=b.styleType);try{w+=b.toLowerCase().replace(/_/g,"-")+" "}catch(H){_.aY(H,b,typeof b),_.Sk(H)}}if(Y=Y.size){Y.sizeType&&(Y=Y.sizeType);try{w+=Y.toLowerCase().replace(/_/g,"-")+" "}catch(H){_.aY(H,Y,typeof Y),_.Sk(H)}}return w.trim()},
computeIconPositionType_:function(Y){return Y&&Y.iconPosition||null},
computeServiceEndpoint_:function(Y){var b=Y&&Y.serviceEndpoint,w=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:w&&Y.command?Y.command:null},
handleUpdateToggleButtonTextAction_:function(Y){Y=Y.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==Y.buttonId&&(this.set("data.defaultText",Y.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",Y.toggledText),this.notifyPath("data.toggledText"))}}];_.S9("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var UJQ=_.q("web_button_rework")&&_.Wf("BUTTON_REWORK")||_.q("web_button_rework_with_live"),PR=function(){var Y=_.F.apply(this,arguments)||this;Y.systemIcons=_.q("kevlar_system_icons");Y.roundedContainer=!0;return Y};
_.P(PR,_.F);PR.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
PR.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var Y=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var b={toggled:!!this.data.isToggled,actions:{}};b.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var w,V;b.actions.playlistId=(w=this.data.defaultServiceEndpoint)==null?void 0:(V=w.playlistEditEndpoint)==null?void 0:V.playlistId;_.Ua(this.hostElement,"yt-toggle-button",b)}(Y=Y?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(Y)}};
PR.prototype.onYtNavigate=function(Y){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);b&&(Y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.up.Object.defineProperties(PR,{template:{configurable:!0,enumerable:!0,get:function(){if(N4$===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);N4$=Y}Y=N4$;return Y}}});
PR.prototype.onYtNavigate=PR.prototype.onYtNavigate;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],PR.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],PR.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(c$o.YtToggleButtonBehavior),_.K("design:type",Object)],PR.prototype,"ytToggleButtonBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],PR.prototype,"data",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],PR.prototype,"showTooltips",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],PR.prototype,"systemIcons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],PR.prototype,"roundedContainer",void 0);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],PR.prototype,"onYtNavigate",null);
_.z([_.S({is:"ytd-toggle-button-renderer",disableElementRegistration:UJQ})],PR);var Xur;_.Za=new _.Hx("PANEL_CONTROLLER_TOKEN");_.BR=new _.Hx("SHEET_CONTROLLER_TOKEN");_.n$=new _.Hx("DIALOG_CONTROLLER_TOKEN");Xur=new _.Hx("DIALOG_CONTAINER_TOKEN");var TZv=_.sa("DOWNLOAD",{},"Download"),Jae=_.sa("DOWNLOADING",{},"Downloading"),uSa=_.sa("DOWNLOADED",{},"Downloaded"),YAt=_.sa("RETRY",{},"Retry");var wuI=[],VT6=!1;var DJt=_.b8(function(Y){var b=DJM,w=function(){return""},V=EfM(Y.data),H=c$a(Y.data),f=UJr(Y.data),E=Xuv(Y.data);
b=function(){var U=Y.data(),X=jce(U,V(),H(),f(),E()),I=!!U.videoId,k=X.text;return{title:I?k:void 0,tooltip:I?void 0:k,accessibilityText:k,onTap:X.onTap,iconName:X.iconType,style:U.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:X.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:U.buttonSize}};
w={};w=_.hj("ytDownloadButtonViewModelHost",(w.ytDownloadButtonViewModelIsHidden=function(){var U=Y.data(),X=E();return U.playlistId||X()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||X()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},w));
return _.m("download-button-view-model",{class:w},_.m(_.a1,{data:b}))},"C");
DJt.idomCompat=!0;var ofI=_.b8(function(Y){var b=Y.backgroundLottieRef;var w=Y.foregroundLottieRef;var V=Y.children;var H=Y.wrapperClass;var f=Y.disableAnimation;Y=function(){return(_.q("web_animated_actions")||_.q("web_animated_actions_v2"))&&!(f==null?0:f())};
return _.m("yt-animated-action",{class:_.hj("animated-action__container",H)},_.m("div",{class:"animated-action__content-with-background"},_.m(_.h,{cond:Y,then:function(){return _.m(mJj,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:b==null?void 0:b(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(mJK()?"dark":"light")+"_v5.json"}}}})}}),V),_.m(_.h,{cond:Y,
then:function(){return _.m(mJj,{lottiePlayerProps:function(){return{animationRef:w==null?void 0:w(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(mJK()?"dark":"light")+"_v4.json"}}}})}}))},"D");
ofI.idomCompat=!0;var mJj=_.b8(function(Y){var b=Y.wrapperClass;var w=Y.lottieClass;var V=Y.lottiePlayerProps;return _.m("div",{class:_.hj("animated-action__lottie",b),"aria-hidden":"true"},_.m(_.x_,{className:w,data:V,animationName:function(){return V().animationConfig.name}}))},"E");var ofG={isOpen:!1};var k4b={isAllowed:!1};var hTG={errorMessage:"",title:"",privacy:"",isDisabled:!0};var qAa={isOpen:!1};var QDG={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var IVt={response:void 0};var PEa=function(Y,b){Y=Y===void 0?IVt:Y;switch(b.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},Y,{response:b.payload});default:return Y}};var k4d={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Z0M=function(Y,b){Y=Y===void 0?k4d:Y;switch(b.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},Y,{nextDisabled:b.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},Y,{nextCommand:b.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},Y,{footerSubmissionData:b.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},Y,{isImpersonationValid:b.payload});default:return Y}};var lVt={reportFormData:void 0,reportDetailsFormData:void 0};var B4L=function(Y,b){Y=Y===void 0?lVt:Y;switch(b.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},Y,{reportFormData:b.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},Y,{reportDetailsFormData:b.payload});default:return Y}};var hTI=void 0;_.q("mweb_enable_redux_store_on_demand")||(hTI=new Jr(nfI()));var xJj=_.b8(function(Y){Y=_.ur(Y,{themeOverride:void 0,animationRef:{}});var b=Y.animatedIconType,w=Y.active,V=Y.themeOverride,H=Y.animationRef;Y=Y.staticIconFn;var f=_.N(_.kw(void 0,void 0,"P5a72b")),E=f.next().value,U=f.next().value,X=function(){a:{var O=b();var L=V==null?void 0:V();var r;L=(L==null?void 0:L.useDarkTheme)||((r=_.fH().resolve(_.HQ(_.GT)))==null?void 0:r());switch(O){case "LIKE":hTI||(hTI=new Jr(nfI()));O=(O=ert(hTI.getState()))&&O.animationLightUrl&&O.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:L?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:L?O.animationDarkUrl:O.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(O){L=O;break a}L="animated_like_icon_"+(L?"dark_v4":"light_v4");L={lottiePlayerProps:{animationConfig:{name:L,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+L+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":L={lottiePlayerProps:{animationConfig:{name:L?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(L?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}L=void 0}return L},I=function(){var O,L;
return(L=(O=X())==null?void 0:O.lottiePlayerProps.animationConfig.name)!=null?L:""},k=function(){if(X()){var O=X().lottiePlayerProps.animationConfig.path;
return lA.get(O)||E()}};
f=_.N(_.kw(!1,void 0,"h6xR3c"));var l=f.next().value;f=f.next().value;var x=eTu(f),Q=function(){var O=X(),L,r,C;return(C=O==null?void 0:(L=O.lottiePlayerProps.animationConfig)==null?void 0:(r=L.rendererSettings)==null?void 0:r.className)!=null?C:""},Z=void 0,e=void 0;
_.tl(function(){var O=X(),L=I(),r=k(),C=l(),W=w();if(O&&(e!==L&&(e=L,Z=W,L=H(),x.animationConfig=O.lottiePlayerProps.animationConfig,x.animationRef=L,r&&(x.animationConfig.animationData=r,x.animationConfig.path=void 0),L=O.lottiePlayerProps.animationConfig.path,!lA.get(L)&&O.lazyLoad&&L&&MTI(L,U)),!(C||O.lazyLoad&&!r))){if(r=!H().lottieEl)W?(C=O.totalFrames,x.animationConfig.initialSegment=[C-1,C]):x.animationConfig.initialSegment=void 0;if(Z!==W&&!r)if(r=H(),W){var y;(y=r.lottieEl)==null||y.playSegments([0,
O.totalFrames],!0)}else{var G;(G=r.lottieEl)==null||G.playSegments([0,1],!0)}Z=W}},"YCYOCe");
return _.m("animated-icon",{class:"ytAnimatedIconHost"},_.m(_.h,{cond:function(){var O,L;return!((O=X())==null||!O.lottiePlayerProps.animationConfig.path||((L=X())==null?0:L.lazyLoad)&&!k()||l())},
then:function(){return _.m(_.x_,{data:x,animationName:I,className:Q,animationRef:H})},
else:Y}))},"F");_.M7=_.b8(function(Y){var b=_.GM("yt-subscribe-button-view-model"),w=_.GM("div"),V=_.GM("div"),H=_.o1(),f=_.o1(),E=_.o1(),U=_.xh(vnq,function(){return Y.data().stateEntityStoreKey}),X=_.xh(PmL,function(){var ok,Ut;
return(Ut=(ok=Y.data().notificationStateEntityStoreKeys)==null?void 0:ok.subsNotificationStateKey)!=null?Ut:""}),I=function(){return!Y.data().enableSubscribeButtonPostClickAnimation},k=_.N(_.kw(0,void 0,"eTsWvc")),l=k.next().value,x=k.next().value;
k=_.N(_.kw(0,void 0,"dniDQ"));var Q=k.next().value,Z=k.next().value;k=_.N(_.kw(!1,void 0,"EluPic"));var e=k.next().value,O=k.next().value;k=_.N(_.kw(!1,void 0,"r0jnre"));var L=k.next().value,r=k.next().value;k=_.N(_.kw(!1,void 0,"KMvoQe"));var C=k.next().value,W=k.next().value,y;k=_.N(_.kw(!1,void 0,"aSENce"));var G=k.next().value,Nr=k.next().value,o6=function(){r(!0);_.vv(_.Lb,function(){r(!1)},1500)};
_.tl(function(){var ok=L();I2(function(){ok&&!I()&&U()&&r$I(H,f,E)})},"LgmX6c");
_.tl(function(){var ok=U();I2(function(){if(!I()&&ok){var Ut;((Ut=Y.animateWidth)==null?0:Ut.call(Y))&&aVq(b.value,!!ok.subscribed,l(),Q());var wt,X$;((wt=y)==null?0:wt.subscribed)||!ok.subscribed||ok.key!==((X$=y)==null?void 0:X$.key)||o6();y=ok}})},"iZzoUb");
k=_.sN(function(){var ok,Ut,wt,X$=Y.data(),Dg=!((ok=U())==null||!ok.subscribed);ok=!((Ut=Y.isOverlay)==null||!Ut.call(Y));Ut=e()?b:void 0;var eQ=(wt=X())==null?void 0:wt.state;wt=G();SAt(X$,eQ);return tTM({model:X$,subscribed:Dg,isOverlay:ok,element:Ut,notificationState:eQ,disableTextEllipsis:!0,focused:wt})},void 0,"yGQGue");
var lI=function(){var ok;if(!I()&&((ok=Y.animateWidth)==null?0:ok.call(Y))&&(w==null?0:w.value)&&(V==null?0:V.value)&&!C()){ok=U();var Ut=_.N((ok==null?0:ok.subscribed)?[w,V]:[V,w]),wt=Ut.next().value;Ut=Ut.next().value;wt=Math.ceil(wt.value.getBoundingClientRect().width);Ut=Math.ceil(Ut.value.getBoundingClientRect().width);x(wt);Z(Ut);aVq(b.value,!(ok==null||!ok.subscribed),wt,Ut);W(!0)}},Zt=_.Q_(function(ok){lI();
var Ut=U();Ut&&(ok.detail.endpoint.subscribeEndpoint||ok.detail.endpoint.unsubscribeEndpoint)&&dJL(b.value,!Ut.subscribed,Ut)}),eL=function(){var ok=_.fH().resolve(_.HQ(_.mu));
ok&&Nr(ok.isKeyBoardInUse())},OM=function(){Nr(!1)};
_.jk("yt-player-subscribe",function(ok){var Ut=U();Ut&&ok===Y.data().channelId&&dJL(b.value,!0,Ut)});
_.jk("yt-player-unsubscribe",function(ok){var Ut=U();Ut&&ok===Y.data().channelId&&dJL(b.value,!1,Ut)});
_.jk("yt-update-subscribe-button-action",function(ok){ok=_.v(ok,aXk);var Ut=U();Ut&&ok&&ok.channelId===Y.data().channelId&&dJL(b.value,!!ok.subscribed,Ut)});
_.dx(function(){b.value&&(b.value.addEventListener("focusin",eL),b.value.addEventListener("focusout",OM));var ok=_.MY(_.Lb,function(){lI()});
O(!0);_.R2(function(){_.Lb.cancelJob(ok);b.value&&(b.value.removeEventListener("focusin",eL),b.value.removeEventListener("focusout",OM))})});
var iI=function(){var ok,Ut,wt;if(wt=!((ok=U())==null||!ok.subscribed))ok=!!Y.data().disableNotificationBell,wt=(Ut=X())==null?void 0:Ut.state,wt=!ok&&!!wt;return wt},rB=function(){var ok;
return!((ok=U())==null?0:ok.subscribed)},Tj=function(){var ok,Ut;
if(Ut=rB()){Ut=!!Y.data().disableNotificationBell;var wt=(ok=X())==null?void 0:ok.state;Ut=!Ut&&!!wt}return Ut},J_={},B9={};
return _.m("yt-subscribe-button-view-model",{class:_.hj(Y.className,"yt-subscribe-button-view-model-wiz",(J_["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var ok,Ut;return!((ok=U())==null||!ok.subscribed)&&((Ut=Y.animateWidth)==null?void 0:Ut.call(Y))&&L()},J_["yt-subscribe-button-view-model-wiz--hidden"]=function(){var ok;
return!((ok=U())==null?0:ok.subscribed)&&Y.data().hideWhenUnsubscribed},J_)),
el:b,"on:yt-service-request-sent":Zt},_.m(ofI,{backgroundLottieRef:H,foregroundLottieRef:f,wrapperClass:_.hj("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(B9["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var ok;return((ok=Y.animateWidth)==null?void 0:ok.call(Y))&&L()},B9["yt-subscribe-button-view-model-wiz__static-width"]=function(){var ok;
return!((ok=Y.animateWidth)==null?0:ok.call(Y))},B9)),
disableAnimation:I},_.m("div",{el:w,class:"yt-subscribe-button-view-model-wiz__container"},_.m(HT,{data:k,icon:function(){return _.m(_.h,{cond:iI,then:function(){var ok=function(){var Ut;return RTu((Ut=X())==null?void 0:Ut.state)};
return _.m(_.h,{cond:function(){return I()||ok()!=="NOTIFICATIONS_NONE"},
then:function(){return _.m(_.n_,{icon:ok})},
else:function(){return _.m(xJj,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:E})}})}})},
secondaryIconName:function(){return iI()?"EXPAND":void 0}}))),_.m("div",{el:V,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.m(_.h,{cond:function(){var ok;return((ok=Y.animateWidth)==null?void 0:ok.call(Y))&&!I()&&!C()},
then:function(){return _.m(HT,{data:_.sN(function(){var ok;return tTM({model:Y.data(),subscribed:rB(),isOverlay:!((ok=Y.isOverlay)==null||!ok.call(Y)),element:b,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var ok;return Tj()?RTu((ok=X())==null?void 0:ok.state):void 0},
secondaryIconName:function(){return Tj()?"EXPAND":void 0}})}})))},"G");
_.M7.idomCompat=!0;var zTv=new _.Hx("RENDERER_STAMPER_OPTIONS_TOKEN");var qAo=_.b8(function(Y){var b=Y.data;var w=_.xh(vnq,function(){return b().subscriptionStateEntityKey});
return _.m(_.h,{cond:function(){var V=b(),H=w();return!V.hideWhenUnsubscribed||(H==null?0:H.subscribed)?_.v(b().button,_.Bv):void 0},
then:function(V){return _.m("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.m(_.a1,{data:V,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
qAo.idomCompat=!0;var T4b=_.ZE({buttonViewModel:_.a1,subscribeButtonViewModel:_.M7,downloadButtonViewModel:DJt,toggleButtonViewModel:_.td,subscribePlusButtonViewModel:qAo});_.gS(unL);var eP;_.Mo=new R3j;eP=new Map;var ENI="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),U2r=["notificationTextRenderer","notificationMultiActionRenderer"],cNK="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
NJe=YlM(function(Y){return _.Sa(Y==null?void 0:Y.targetId)}).useUpdatableData;var fhg=0;_.OH.debugName="EjJbCe";var sD_=_.b8(function(Y){return _.m(_.OH,{data:function(){return Y.actionRow().actions}},{buttonViewModel:_.q("web_enable_sink_yt_flexible_actions_view_model")?function(b){var w=b.data;
b={};return _.m(_.a1,{data:w,className:_.hj("yt-flexible-actions-view-model-wiz__action",(b["yt-flexible-actions-view-model-wiz__action--row-action"]=Y.isRow,b["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=Y.useIntrinsicWidth,b["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,b["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return XoK(w())},b))})}:function(b){var w=b.data;
return _.m(eg,{isRow:Y.isRow,isIconOnlyButton:function(){return XoK(w())},
useIntrinsicWidth:Y.useIntrinsicWidth},_.m(_.a1,{data:w}))},
subscribeButtonViewModel:_.q("web_enable_sink_yt_flexible_actions_view_model")?function(b){var w=b.data;b={};return _.m(_.M7,{data:w,isOverlay:!1,animateWidth:function(){return!Y.isRow()},
className:_.hj("yt-flexible-actions-view-model-wiz__action",(b["yt-flexible-actions-view-model-wiz__action--row-action"]=Y.isRow,b["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=Y.useIntrinsicWidth,b["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,b["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return XoK(w())},b))})}:function(b){return _.m(eg,{isRow:Y.isRow},_.m(_.M7,{data:b.data,
isOverlay:!1,animateWidth:function(){return!Y.isRow()}}))},
downloadButtonViewModel:function(b){var w=b.data;return _.m(eg,{isRow:Y.isRow,isIconOnlyButton:function(){return!!w().playlistId}},_.m(DJt,{data:w}))},
toggleButtonViewModel:function(b){var w=b.data;return _.m(eg,{isRow:Y.isRow,isIconOnlyButton:function(){var V=w();return XoK(_.v(V.isToggled?V.toggledButtonViewModel:V.defaultButtonViewModel,_.Bv))}},_.m(_.td,{data:w}))},
subscribePlusButtonViewModel:function(b){return _.m(eg,{isRow:Y.isRow},_.m(qAo,{data:b.data}))}})},"I"),eg=_.b8(function(Y){var b={};
return _.m("div",{class:_.hj("yt-flexible-actions-view-model-wiz__action",(b["yt-flexible-actions-view-model-wiz__action--row-action"]=Y.isRow,b["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=Y.useIntrinsicWidth,b["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,b["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Y.isIconOnlyButton,b))},Y.children)},"J"),QDI=_.b8(function(Y){var b=function(){var V;
return((V=Y.layout)==null?void 0:V.call(Y))===1},w={};
return _.m("yt-flexible-actions-view-model",{class:_.hj("yt-flexible-actions-view-model-wiz",Y.className,(w["yt-flexible-actions-view-model-wiz--inline"]=function(){return!b()},w["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return Y.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},w))},_.m(_.Bf,{each:function(){return Y.data().actionsRows||[]}},function(V){return _.m(_.h,{cond:b,
then:function(){return _.m("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.m(sD_,{actionRow:V,isRow:b,useIntrinsicWidth:function(){return!!Y.data().respectActionIntrinsicWidth}}))},
else:function(){return _.m(sD_,{actionRow:V,isRow:b})}})}))},"K"),p$=_.q("web_enable_sink_yt_flexible_actions_view_model")?QDI:_.sv(unL);
QDI.idomCompat=!0;_.f_(p$,"yt-flexible-actions-view-model",{props:{data:_.YX,layout:_.YX,justifyContentOverride:_.YX,className:_.YX}});_.gS(D2g);var vfo,lhB;vfo=_.b8(function(Y){var b=_.xh(z9,function(){var H;return(H=Y.data().dislikeEntityKey)!=null?H:""}),w=_.sN(function(){var H=b();
return H?H.likeStatus==="DISLIKE":_.v(Y.data().toggleButtonViewModel,_.ns).isToggled},void 0,"D8oIFb"),V=_.sN(function(){return Object.assign({},_.v(Y.data().toggleButtonViewModel,_.ns),{isToggled:w()})},void 0,"shaCXe");
return _.m("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.m(_.td,{data:V,buttonShapeOverrides:Y.buttonShapeOverrideables,onToggle:function(H){var f=b();f&&H!==(f.likeStatus==="DISLIKE")&&f.key&&_.Td(_.R1("likeStatusEntity",f.key,{likeStatus:H?"DISLIKE":"INDIFFERENT",hadUserInteraction:H}))}}))},"L");
lhB=_.q("web_enable_sink_dislike_button_view_model")?vfo:D2g;_.Oe=_.q("web_enable_sink_dislike_button_view_model")?vfo:_.sv(D2g);vfo.idomCompat=!0;_.gS(oNr);var PEo,knB;PEo=_.b8(function(Y){var b=_.q("web_supports_animations_api"),w=V_(function(x){var Q=I(),Z,e=(Q==null?void 0:(Z=Q.likeCountIfIndifferent)==null?void 0:Z.content)!==x.numberText;if(U()||!e)return x;var O,L;return{numberText:(Q==null?void 0:(O=Q.likeCountIfIndifferent)==null?void 0:O.content)||"",numberValue:Number((L=Q==null?void 0:Q.likeCountIfIndifferentNumber)!=null?L:0),heightPx:36,shouldAnimate:!!Q}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),V=V_(function(x){var Q=I(),Z,e=(Q==null?void 0:(Z=Q.likeCountIfIndifferent)==null?void 0:Z.content)!==x.numberText;if(U()||!e)return x;var O,L;return{numberText:(Q==null?void 0:(O=Q.likeCountIfLiked)==null?void 0:O.content)||"",numberValue:Number((L=Q==null?void 0:Q.likeCountIfLikedNumber)!=null?L:0),heightPx:36,shouldAnimate:!!Q}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),H=_.N(_.kw(void 0,void 0,"T6jMHc")),f=H.next().value,E=H.next().value,U=f,X=_.xh(z9,function(){var x,Q;return(Q=(x=Y.data())==null?void 0:x.likeStatusEntityKey)!=null?Q:""}),I=_.xh(bvv,function(){var x,Q;
return((x=Y.likeCountEntity)==null?void 0:(Q=x.call(Y))==null?void 0:Q.key)||""}),k=_.sN(function(){var x;
return((x=X())==null?void 0:x.likeStatus)==="LIKE"},void 0,"WxQBcd"),l=function(){var x;
return b&&!((x=Y.likeCountEntity)==null||!x.call(Y))};
return _.m("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.m(_.td,{data:function(){var x=Object,Q=x.assign,Z;var e=_.v((Z=Y.data())==null?void 0:Z.toggleButtonViewModel,_.ns);return Q.call(x,{},e||{},{isToggled:k()})},
buttonShapeOverrides:Y.buttonShapeOverrideables,animatedTextPropsDefault:function(){return l()?w():void 0},
animatedTextPropsToggled:function(){return l()?V():void 0},
onToggle:function(x){IhG(x,X(),U(),E)},
style:function(){var x;return((x=Y.disableIconAnimation)==null?0:x.call(Y))?void 0:{animateIcon:"true"}}}))},"M");
knB=_.q("web_enable_sink_like_button_view_model")?PEo:oNr;_.tm=_.q("web_enable_sink_like_button_view_model")?PEo:_.sv(oNr);_.gS(hpG);var Z0t=_.b8(function(Y){var b=function(){return _.v(Y.data().likeButtonViewModel,_.dK)},w=function(){var H;
return((H=b())==null?void 0:H.likeStatusEntityKey)||""},V=_.sN(function(){var H,f;
var E=(f=_.xh(z9,w)())!=null?f:(H=b())==null?void 0:H.likeStatusEntity;H=Y.data();var U;H=(H==null?void 0:(U=H.timedAnimationData)==null?void 0:U.animationTiming)||[];return{uniqueId:"like-dislike",timings:H,enabled:(E==null?void 0:E.likeStatus)==="INDIFFERENT"&&H.length>0,experimentEnabled:H.length>0}},void 0,"e1fsz");
return _.m("segmented-like-dislike-button-view-model",{class:_.hj("ytSegmentedLikeDislikeButtonViewModelHost",Y.className),"button-renderer":!0},_.m(Ls,{settings:V},_.m("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.m(_.h,{cond:b,then:function(H){return _.m(_.tm,{data:H,likeCountEntity:function(){return Y.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.m(_.h,{cond:function(){return _.v(Y.data().dislikeButtonViewModel,_.Fz)},
then:function(H){return _.m(_.Oe,{data:H,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),B4K=_.q("web_enable_sink_segmented_like_dislike_button_view_model")?Z0t:hpG;
Z0t.idomCompat=!0;_.q("web_enable_sink_segmented_like_dislike_button_view_model")?_.f_(B4K,"segmented-like-dislike-button-view-model",{props:{data:_.YX,className:_.YX}}):_.oL(B4K,"segmented-like-dislike-button-view-model",{propNames:["data"]});var Pdg=0;_.f_(zpe,"account-link-button-view-model",{props:{data:_.YX,className:_.gn,setMinWidth:_.gn,forceIconOnly:_.gn}});_.S9("menuRenderer","menuRenderer","ytd-menu-renderer");
var nfC={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"}},
MTC=_.q("web_fix_missing_action_buttons")?100:200,Rx=function(){var Y=_.F.apply(this,arguments)||this;Y.safeArea=!_.q("kevlar_flex_menu_safe_area_killswitch");Y.tonalOverride=!1;Y.threeDotSize="M";Y.isOverlay=!1;Y.useOverlayDark=!1;Y.topLevelIconsOnly=!1;Y.JSC$12583_lastWidth=0;Y.maybeUpdateFlexibleMenu=function(){_.q("web_fix_missing_action_buttons")?requestAnimationFrame(Y.maybeUpdateFlexibleMenuImpl):Y.maybeUpdateFlexibleMenuImpl()};
Y.maybeUpdateFlexibleMenuImpl=function(){var b;if((b=Y.data)!=null&&b.flexibleItems){Y.maybeFlushDebouncer();b=Y.hostElement.clientWidth;var w=b>Y.JSC$12583_lastWidth,V,H=((V=Y.topLevelButtonsContainer)==null?void 0:V.scrollHeight)||0,f;V=((f=Y.flexibleItemButtonsContainer)==null?void 0:f.scrollHeight)||0;f=Y.hostElement.scrollHeight>Math.max(H,V)+8;w?(Y.resetFlexibleItems(),Y.JSC$12583_lastWidth=Y.hostElement.clientWidth,Y.maybeUpdateFlexibleMenu()):f&&(Y.shrinkFlexibleMenu(),Y.JSC$12583_lastWidth=
b)}};
Y.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){Y.onOverflowTap()},
iconPosition:"icon-only",style:Y.isOverlay?Y.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:Y.threeDotSize,state:"active",accessibilityLabel:Y.computeAccessibilityLabel(Y.data)},Y.threeDotButtonOverride)};
Y.onOverflowTap=function(){if(Y.data.fetchMenuCommand)_.fH().resolve(_.Nn).resolveCommand(Y.data.fetchMenuCommand,{form:{element:Y.hostElement}});else if(Y.data.isDisabled&&Y.data.disabledCommand)_.hA(Y.data.disabledCommand,Y.hostElement);else{var b=Y.createMenuRendererVe(),w={items:Y.items};Y.data.menuPopupAccessibility&&(w.menuPopupAccessibility=Y.data.menuPopupAccessibility);Y.data.footer&&(w.footer=Y.data.footer);b={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:w},veData:b}};
_.fH().resolve(_.BR).openSheet({openPopupActionCommand:b},Y.hostElement)}};
return Y};
_.P(Rx,_.F);_.g=Rx.prototype;_.g.updateButtonOverrides=function(){if(!_.q("menu_renderer_label_update_upkillswitch")){var Y=_.E6(this.hostElement).querySelector("yt-button-view-model");Y&&(Y.buttonOverrides=this.buttonOverrides)}};
_.g.computeHasItems=function(){var Y;return((Y=this.topLevelButtonData)==null?void 0:Y.length)||this.hasFlexibleItems};
_.g.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.g.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.m_(this.hostElement,{"--ytd-menu-renderer-button-color":_.WH(this.data.iconColor)}))};
_.g.onStamperFinished=function(){this.JSC$12583_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.g.setupFlexibleMenu=function(){var Y=this,b;(b=this.data)!=null&&b.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.Vm(this.maybeUpdateFlexibleMenu,MTC,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){Y.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.g.maybeFlushDebouncer=function(){if(_.q("web_replace_formatted_with_attributed_string")){var Y;(Y=this.topLevelButtons)==null||Y.forEach(function(w){var V;(w=(V=w.getElementsByTagName("yt-attributed-string"))==null?void 0:V[0])&&Bze(w)});
var b;(b=this.flexibleItemButtons)==null||b.forEach(function(w){var V;(w=(V=w.getElementsByTagName("yt-attributed-string"))==null?void 0:V[0])&&Bze(w)})}};
_.g.resetFlexibleItems=function(){var Y;if((Y=this.data)!=null&&Y.flexibleItems){_.q("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var b;this.flexAsTopLevelButtons=(b=this.data.flexibleItems)==null?void 0:b.map(function(w){return _.v(w,_.NAd).topLevelButton});
_.q("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.g.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.g.shrinkFlexibleMenu=function(){var Y;(Y=this.flexAsTopLevelButtons)!=null&&Y.length&&(this.flexAsTopLevelButtons=[].concat(_.Bt(this.flexAsTopLevelButtons.slice(0,-1))))};
_.g.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:nfC,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:nfC,events:!0}}};
_.g.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.g.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.g.detached=function(){this.icon="MORE_VERT"};
_.g.computeTopLevelButtonData=function(Y){if(!Y)return[];var b;Y=(b=Y==null?void 0:Y.topLevelButtons)!=null?b:[];return _.BL.unsafeClone([].concat(_.Bt(Y)))};
_.g.computeItems=function(Y,b){if(!Y)return[];var w=[];if(b){var V=(Y.flexibleItems||[]).map(function(E){return _.v(E,_.NAd)});
V=_.N(V);for(var H=V.next();!H.done;H=V.next())H=H.value,b.includes(H.topLevelButton)||(H=H.menuItem)&&w.push(H)}var f;Y=(f=Y==null?void 0:Y.items)!=null?f:[];return[].concat(_.Bt(w),_.Bt(Y))};
_.g.computeMenuActive=function(Y,b){return Y||b};
_.g.onPopupOpened=function(){this.overlayOpen=!0;_.Ua(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.g.onPopupClosed=function(){this.overlayOpen=!1;_.Ua(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.g.onPopupCanceled=function(){this.overlayOpen=!1;_.Ua(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.g.computeAccessibilityLabel=function(Y){return this.get("accessibility.accessibilityData.label",Y)};
_.g.isHidden=function(Y,b){return this.tonalOverride||!Y?!0:Y.fetchMenuCommand||Y.isDisabled&&Y.disabledCommand?!1:!(b==null?0:b.length)};
_.g.isModernOverflowHidden=function(Y,b){return this.tonalOverride&&Y?Y.fetchMenuCommand?!1:!(b==null?0:b.length):!0};
_.g.createMenuRendererVe=function(){var Y=this.data.trackingParams,b=_.dO(),w=_.R3();return Y&&b&&w?(Y=_.nA(Y),w=_.tj(7591),_.q("combine_ve_grafts")?_.oC(_.Qd(),w,Y):_.yX(b,Y,w),w):null};
_.up.Object.defineProperties(Rx.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.flexAsTopLevelButtons)==null||!Y.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Rx.prototype.onPopupCanceled=Rx.prototype.onPopupCanceled;Rx.prototype.onPopupClosed=Rx.prototype.onPopupClosed;Rx.prototype.onPopupOpened=Rx.prototype.onPopupOpened;Rx.prototype.tonalOverrideChanged=Rx.prototype.tonalOverrideChanged;Rx.prototype.resetFlexibleItems=Rx.prototype.resetFlexibleItems;Rx.prototype.setupFlexibleMenu=Rx.prototype.setupFlexibleMenu;Rx.prototype.iconButtonColorChanged=Rx.prototype.iconButtonColorChanged;Rx.prototype.updateButtonOverrides=Rx.prototype.updateButtonOverrides;
_.z([_.n(_.J0),_.K("design:type",Object)],Rx.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("#button-shape"),_.K("design:type",l$)],Rx.prototype,"buttonShape",void 0);_.z([_.xZ("#button"),_.K("design:type",Object)],Rx.prototype,"button",void 0);
_.z([_.R(),_.K("design:type",Object)],Rx.prototype,"data",void 0);_.z([_.R({computed:"computeTopLevelButtonData(data)"}),_.K("design:type",Array)],Rx.prototype,"topLevelButtonData",void 0);_.z([_.R(),_.K("design:type",Array)],Rx.prototype,"flexAsTopLevelButtons",void 0);_.z([_.R({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.K("design:type",Array)],Rx.prototype,"items",void 0);_.z([_.R({value:"MORE_VERT"}),_.K("design:type",String)],Rx.prototype,"icon",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Rx.prototype,"safeArea",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.K("design:type",Boolean)],Rx.prototype,"menuActive",void 0);_.z([_.R(),_.K("design:type",Boolean)],Rx.prototype,"menuFocused",void 0);_.z([_.R({value:"bottom"}),_.K("design:type",String)],Rx.prototype,"buttonTooltipPosition",void 0);_.z([_.R(),_.K("design:type",Boolean)],Rx.prototype,"overlayOpen",void 0);
_.z([_.R({value:!0}),_.K("design:type",Boolean)],Rx.prototype,"forceIconButton",void 0);_.z([_.R(),_.K("design:type",Boolean)],Rx.prototype,"styleActionButton",void 0);_.z([_.R(),_.K("design:type",Boolean)],Rx.prototype,"disableTextTransformOnButtons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Rx.prototype,"tonalOverride",void 0);_.z([_.R(),_.K("design:type",Object)],Rx.prototype,"threeDotSize",void 0);
_.z([_.R(),_.K("design:type",Object)],Rx.prototype,"threeDotButtonOverride",void 0);_.z([_.R(),_.K("design:type",Object)],Rx.prototype,"isOverlay",void 0);_.z([_.R(),_.K("design:type",Object)],Rx.prototype,"useOverlayDark",void 0);_.z([_.R({computed:"computeButtonOverride(tonalOverride)"}),_.K("design:type",Object)],Rx.prototype,"buttonOverride",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Rx.prototype,"hasCustomIconColor",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("flexAsTopLevelButtons"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rx.prototype,"hasFlexibleItems",null);_.z([_.R({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.K("design:type",Boolean)],Rx.prototype,"hasItems",void 0);_.z([_.R(),_.K("design:type",Object)],Rx.prototype,"topLevelIconsOnly",void 0);
_.z([_.lr("topLevelIconsOnly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"updateButtonOverrides",null);_.z([_.t("topLevelIconsOnly"),_.K("design:type",Object),_.K("design:paramtypes",[])],Rx.prototype,"buttonOverrides",null);_.z([_.xZ("#top-level-buttons-computed"),_.K("design:type",HTMLElement)],Rx.prototype,"topLevelButtonsContainer",void 0);_.z([_.ql(".top-level-buttons > *"),_.K("design:type",Array)],Rx.prototype,"topLevelButtons",void 0);
_.z([_.xZ("#flexible-item-buttons"),_.K("design:type",HTMLElement)],Rx.prototype,"flexibleItemButtonsContainer",void 0);_.z([_.ql("#flexible-item-buttons > *"),_.K("design:type",Array)],Rx.prototype,"flexibleItemButtons",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"iconButtonColorChanged",null);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"setupFlexibleMenu",null);_.z([_.vX("topLevelIconsOnly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"resetFlexibleItems",null);_.z([_.lr("tonalOverride"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"tonalOverrideChanged",null);
_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"onPopupOpened",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"onPopupClosed",null);_.z([_.kZ("yt-popup-canceled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rx.prototype,"onPopupCanceled",null);
_.a(Rx,"ytd-menu-renderer",function(){if(yar===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);yar=Y}Y=yar;return Y},{mode:_.Xd("kevlar_poly_si_batch_j030")?1:2});var eT$;var pur;_.YE=_.b8(function(Y){var b=Y.data;var w=function(){if(b().icon)a:{var V={iconName:b().icon};for(var H=_.fH().resolve(_.kO),f=_.N([12,24]),E=f.next();!E.done;E=f.next()){var U=E.value;E=Object.assign({},V,{iconStyle:"youtube_fill",iconSize:U});U=Object.assign({},V,{iconStyle:"youtube_outline",iconSize:U});if(H.resolveIcon(E)){V=E;break a}if(H.resolveIcon(U)){V=U;break a}}V=void 0}else V=void 0;return V};
Y={};return _.m("badge-shape",{class:_.hj("badge-shape-wiz",function(){return iqa(b().type)},(Y["badge-shape-wiz--overlay"]=function(){return b().isOverlay},Y["badge-shape-wiz--ads-include-dot"]=function(){return b().adsIncludeDot},Y["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(b().type){case 16:case 17:case 18:var V=!0;
break a;default:V=!1}return V},Y["badge-shape-wiz--status-badge"]=function(){a:switch(b().type){case 11:case 12:case 13:case 14:case 15:var V=!0;
break a;default:V=!1}return V},Y["badge-shape-wiz--no-text"]=function(){return!b().text},Y["badge-shape-wiz--modern"]=function(){return b().modern||_.q("web_modern_badge_shape")},Y)),
style:_.Bb({"background-color":function(){var V;return(V=b().customColors)==null?void 0:V.backgroundColor}}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},_.m(_.h,{cond:function(){return b().animation},
then:function(V){return _.m(_.x_,{className:"badge-shape-wiz__icon",data:V,animationName:function(){return V().animationConfig.name||""}})}}),_.m(_.h,{cond:function(){var V;
return w()&&!((V=b())==null?0:V.animation)},
then:function(){return _.m("div",{class:"badge-shape-wiz__icon"},_.m(Whg,{data:function(){return w()}}))}}),_.m("div",{class:"badge-shape-wiz__text"},function(){var V;
return(V=b())==null?void 0:V.text}))},"O");
_.YE.idomCompat=!0;_.f_(_.YE,"badge-shape",{props:{data:_.YX}});var dQ=function(){var Y=_.F.apply(this,arguments)||this;Y.systemIcons=_.q("kevlar_system_icons");Y.animated=_.q("animated_live_badge_icon");Y.useBadgeShape=_.q("web_badge_shape_defrag");return Y};
_.P(dQ,_.F);_.g=dQ.prototype;_.g.addTooltips=function(){for(var Y=_.E6(this.hostElement).querySelectorAll(".badge"),b=0,w;w=Y[b++];){var V=this.repeatElement.itemForElement(w);w=_.E6(w);w.lastChild&&w.lastChild.is==="tp-yt-paper-tooltip"&&w.removeChild(w.lastChild);if(V=V.metadataBadgeRenderer&&V.metadataBadgeRenderer.tooltip){var H=_.fn("tp-yt-paper-tooltip");(0,_.DT)(H).textContent=V;H.setAttribute("position","top");H.setAttribute("aria-hidden","true");w.appendChild(H)}}};
_.g.badgesChanged=function(){var Y=this;_.Kp().parkOrScheduleJob(function(){Y.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.g.standaloneRoundedBadgeChanged=function(){var Y=this.useRoundedBadge?this.useRoundedBadge:void 0;Y&&(this.useRoundedBadge=Y)};
_.g.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.g.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.g.computeStyle=function(Y){_.q("enable_html5_teal_ad_badge")&&Y==="BADGE_STYLE_TYPE_AD"&&(Y="badge-style-type-ad-alternate");_.q("kevlar_ytb_live_badges")&&Y==="BADGE_STYLE_TYPE_LIVE_NOW"&&(Y="badge-style-type-live-now-alternate");return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.g.computeRole=function(Y){return this.computeAriaLabel(Y)?"img":"status"};
_.g.computeAriaLabel=function(Y){var b;return(Y==null?void 0:(b=Y.accessibilityData)==null?void 0:b.label)||(Y==null?void 0:Y.label)};
_.g.computeBadgeShape=function(Y){var b;if(Y){var w,V=WWB(Y.style),H=KWL(Y.style),f=Y.label,E=((w=Y.accessibilityData)==null?void 0:w.label)||Y.label;Y=(b=Y.icon)==null?void 0:b.iconType;b={type:V,brNzRatingBadgeType:H,text:f,accessibilityText:E,icon:Y!=="PREMIUM"?Y:void 0}}else b={};return b};
_.g.updateComputedBadges=function(Y,b,w){var V=this;(b=b?[b]:w?[w]:void 0)?this.computedBadges=b:this.computedBadges=Y==null?void 0:Y.filter(function(H){var f;if((f=H.metadataBadgeRenderer)==null?0:f.groups){f=!1;H=_.N(H.metadataBadgeRenderer.groups);for(var E=H.next();!E.done;E=H.next()){E=E.value;var U=void 0;f=f||((U=V.hiddenBadgeGroups)==null?void 0:U.includes(E))}return!f}return!0})};
_.g.useFilledIcons=function(Y){return _.q("kevlar_system_icons")&&(Y==="AUDIO_BADGE"||Y==="CHECK_CIRCLE_THICK"||Y==="OFFICIAL_ARTIST_BADGE"||Y==="SPONSORSHIP_STAR"||Y==="PERSON_RADAR_FILLED"||Y==="PERSON_RADAR")};
_.g.computeIcon=function(Y){var b,w;Y=Y==null?void 0:(b=Y.metadataBadgeRenderer)==null?void 0:(w=b.icon)==null?void 0:w.iconType;if(Y!=="PREMIUM"&&Y)return _.IR(Y)};
_.g.computeStandaloneBadge=function(Y){var b;Y=Y==null?void 0:(b=Y.icon)==null?void 0:b.iconType;return Y==="PREMIUM_STANDALONE"||Y==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
dQ.prototype.hiddenBadgeGroupsChanged=dQ.prototype.hiddenBadgeGroupsChanged;dQ.prototype.standaloneBadgeChanged=dQ.prototype.standaloneBadgeChanged;dQ.prototype.standaloneRoundedBadgeChanged=dQ.prototype.standaloneRoundedBadgeChanged;dQ.prototype.badgesChanged=dQ.prototype.badgesChanged;_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"hidden",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],dQ.prototype,"componentBehavior",void 0);
_.z([_.R(),_.K("design:type",Array)],dQ.prototype,"badges",void 0);_.z([_.R(),_.K("design:type",Object)],dQ.prototype,"topStandaloneBadge",void 0);_.z([_.R(),_.K("design:type",Object)],dQ.prototype,"bottomStandaloneBadge",void 0);_.z([_.R(),_.K("design:type",Object)],dQ.prototype,"computedBadges",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"mediumFontAdBadge",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"useRoundedBadge",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"largeFontAdBadge",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"overlayAd",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"overlayPremium",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"noDotAdBadge",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"collectionTruncate",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"isThumbnailBadge",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dQ.prototype,"wrapBadges",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dQ.prototype,"systemIcons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dQ.prototype,"animated",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dQ.prototype,"useBadgeShape",void 0);_.z([_.R({value:[]}),_.K("design:type",Array)],dQ.prototype,"hiddenBadgeGroups",void 0);_.z([_.xZ("#repeat"),_.K("design:type",O6)],dQ.prototype,"repeatElement",void 0);_.z([_.vX("badges"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dQ.prototype,"badgesChanged",null);
_.z([_.vX("useRoundedBadge"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dQ.prototype,"standaloneRoundedBadgeChanged",null);_.z([_.vX("topStandaloneBadge","bottomStandaloneBadge"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dQ.prototype,"standaloneBadgeChanged",null);_.z([_.vX("hiddenBadgeGroups"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dQ.prototype,"hiddenBadgeGroupsChanged",null);
_.z([_.S({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],dQ);
var O0_=_.UQ()(dQ,"ytd-badge-supported-renderer",function(){if(pur===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);pur=Y}Y=pur;return Y},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Xd("kevlar_poly_si_batch_j053")?1:2});var Sg=function(){var Y=_.F.apply(this,arguments)||this;Y.iconType="STAR";Y.standardizeIconSize=_.q("kevlar_system_icons");Y.mediaHoverOverlayInitialVisibility=_.q("enable_top_landscape_image_button_command_web");Y.noBottomMargin=!1;Y.thumbnailObjectFit="CONTAIN";Y.thumbnailFitHeight=!0;Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.P(Sg,_.F);_.g=Sg.prototype;
_.g.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"}}}};
_.g.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",Sg.JSC$12595_DEFAULT_CLICK_LOCATION_BEHAVIOR,Sg.JSC$12595_CLICK_LOCATION_ID_MAP))};
_.g.onTap=function(Y){if(!_.q("use_on_click_for_desktop_display_ad"))this.onTapOrClick(Y)};
_.g.onClick=function(Y){if(_.q("use_on_click_for_desktop_display_ad"))this.onTapOrClick(Y)};
_.g.onTapOrClick=function(Y){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,Y,!1)};
_.g.updateMediaBackgroundImage=function(){var Y=this.get("data.image.thumbnail.thumbnails");Y&&(Y=_.NR(Y,0))&&_.m_(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+Y+")"})};
_.g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var Y=0;Y<this.data.impressionEndpoints.length;Y++){var b=this.data.impressionEndpoints[Y];b.clickTrackingParams&&delete b.clickTrackingParams;_.fH().resolve(_.Nn).resolveCommand(b,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var w;((w=this.data)==null?0:w.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.g.handleMuteAd=function(){};
_.g.attached=function(){var Y=this;_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.g.detached=function(){_.q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.up.Object.defineProperties(Sg.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.titleText)return"";var b;return _.sa("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((b=this.data)==null?void 0:b.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.fifthLine)?this.data.fifthLine:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
computePriceHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getPrice}},
computeThirdLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getThirdLine}},
computeFourthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFourthLine}},
computeFifthLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getFifthLine}},
hasEnergyIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
Sg.prototype.onClick=Sg.prototype.onClick;Sg.prototype.onTap=Sg.prototype.onTap;Sg.prototype.dataChanged=Sg.prototype.dataChanged;
Sg.JSC$12595_CLICK_LOCATION_ID_MAP=_.q("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"]]);
Sg.JSC$12595_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.q("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"}];_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.Si),_.K("design:type",Object)],Sg.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Sg.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Sg.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.n(d0),_.K("design:type",Object)],Sg.prototype,"ytdActiveViewBehavior",void 0);_.z([_.n([_.US.YtActionHandlerBehavior]),_.K("design:type",Object)],Sg.prototype,"actionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Sg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Sg.prototype,"clickCommand",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],Sg.prototype,"miniMode",void 0);_.z([_.R(),_.K("design:type",String)],Sg.prototype,"iconType",void 0);_.z([_.t("data.titleText"),_.K("design:type",String),_.K("design:paramtypes",[])],Sg.prototype,"titleAriaLabel",null);
_.z([_.t("data.rating"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"getRating",null);_.z([_.t("data.price"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"getPrice",null);_.z([_.t("data.thirdLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"getThirdLine",null);_.z([_.t("data.fourthLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"getFourthLine",null);
_.z([_.t("data.fifthLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"getFifthLine",null);_.z([_.t("getRating"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"computeRatingHidden",null);_.z([_.t("getPrice"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"computePriceHidden",null);_.z([_.t("getThirdLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"computeThirdLineHidden",null);
_.z([_.t("getFourthLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"computeFourthLineHidden",null);_.z([_.t("getFifthLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"computeFifthLineHidden",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.energyIcon"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"hasEnergyIcon",null);
_.z([_.t("computePriceHidden","computeRatingHidden"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"computeSecondaryTextHidden",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Sg.prototype,"standardizeIconSize",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Sg.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Sg.prototype,"noBottomMargin",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.layout"),_.K("design:type",String),_.K("design:paramtypes",[])],Sg.prototype,"layout",null);_.z([_.t("data.layout"),_.K("design:type",Object),_.K("design:paramtypes",[])],Sg.prototype,"mediaThumbnailWidth",null);_.z([_.t("layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Sg.prototype,"useRoundedBadge",null);_.z([_.R(),_.K("design:type",String)],Sg.prototype,"thumbnailObjectFit",void 0);
_.z([_.R(),_.K("design:type",Object)],Sg.prototype,"thumbnailFitHeight",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sg.prototype,"dataChanged",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sg.prototype,"onTap",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Sg.prototype,"onClick",null);
_.z([_.S({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Sg);
_.a(Sg,"ytd-display-ad-renderer",function(){if(eT$!==void 0)return eT$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-display-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-display-ad-renderer">\n  <div id="root" class="style-scope ytd-display-ad-renderer">\n    <div id="media-container" aria-hidden="true" class="style-scope ytd-display-ad-renderer">\n      <div id="media-background" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-badge" class="style-scope ytd-display-ad-renderer"></div>\n      <div id="media-hover-overlay" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div class="title style-scope ytd-display-ad-renderer">\n      <a class="yt-display-ad-renderer-endpoint title-link style-scope ytd-display-ad-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(clickCommand)]]">\n        <yt-formatted-string class="title-text style-scope ytd-display-ad-renderer" text="[[data.titleText]]" title="[[getSimpleString(data.titleText)]]">\n        </yt-formatted-string>\n      </a>\n      <div id="menu" class="style-scope ytd-display-ad-renderer"></div>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" title="[[getSimpleString(data.bodyText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <div id="badge" class="badge style-scope ytd-display-ad-renderer"></div>\n      <yt-formatted-string id="secondary-text" hidden="[[computeSecondaryTextHidden]]" text="[[data.secondaryText]]" title="[[getSimpleString(data.secondaryText)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-display-ad-renderer">[[getRating]]</span>\n      <yt-icon id="icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-display-ad-renderer"></yt-icon>\n      <yt-formatted-string id="price" hidden="[[computePriceHidden]]" text="[[getPrice]]" class="style-scope ytd-display-ad-renderer"></yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="third-line" hidden="[[computeThirdLineHidden]]" text="[[data.thirdLine]]" title="[[getSimpleString(data.thirdLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fourth-line" hidden="[[computeFourthLineHidden]]" text="[[data.fourthLine]]" title="[[getSimpleString(data.fourthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="support" class="style-scope ytd-display-ad-renderer">\n      <yt-formatted-string id="fifth-line" hidden="[[computeFifthLineHidden]]" text="[[data.fifthLine]]" title="[[getSimpleString(data.fifthLine)]]" class="style-scope ytd-display-ad-renderer">\n      </yt-formatted-string>\n      <yt-img-shadow id="energy-icon" height="14" hidden="[[!data.energyIcon]]" thumbnail="[[data.energyIcon]]" class="style-scope ytd-display-ad-renderer"></yt-img-shadow>\n    </div>\n    <div id="call-to-action" class="style-scope ytd-display-ad-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-display-ad-renderer">\n  <div id="dismissed-content" class="style-scope ytd-display-ad-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return eT$=Y},{mode:1});var tTt;var RT$;var dJK;var AN6=new Map;var FYk=!1;var ax=function(){var Y=_.F.apply(this,arguments)||this;Y.DEFAULT_TOOLTIP_OFFSET="10";Y.TOOLTIP_OFFSET_NO_BANNER="-8";Y.badges=null;Y.noEndpoints=!1;Y.wrapText=!1;Y.forceVerified=!1;Y.tooltipPosition="top";Y.compactStyle=!1;Y.height=0;Y.lineHeight=0;return Y};
_.P(ax,_.F);_.g=ax.prototype;_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.g.attached=function(){var Y=this;this.observer=new MutationObserver(function(b,w){Y.handleResized();w.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.g.detached=function(){this.observer&&this.observer.disconnect()};
_.g.logTooltipEvent=function(){_.q("kevlar_wiz_tooltip_event_killswitch")||FYk||(_.Cdv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),FYk=!0)};
_.g.handleWindowResized=function(){this.handleResized()};
_.g.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")))};
_.g.onHeightChanged=function(){if(this.verified){var Y=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.zO("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=Y:this.textContainerEl.style.marginRight=Y}};
_.g.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.zO("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.g.handleResized=function(){var Y=this;this.verified&&_.Lb.addLowPriorityJob(function(){Y.fitBackgroundToText();var b=getComputedStyle(Y.hostElement).lineHeight;b&&(b=b.match(/\d+/))&&b.length&&(Y.lineHeight=Number(b[0]));Y.height=Y.lineHeight&&!Y.wrapText?Y.lineHeight:Y.textEl.offsetHeight})};
_.g.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var Y=document.createRange(),b=_.E6(this.textEl).children;b.length>0?Y.selectNodeContents(b[0]):Y.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(Y.getBoundingClientRect().width)+"px"}};
_.g.computeChannelBadgeStyle=function(Y){var b;if((Y==null?0:(b=Y.runs)==null?0:b.length)&&Y.runs[0].textColor)return"--ytd-badge-icon-color:"+_.WH(Y.runs[0].textColor)+";"};
_.up.Object.defineProperties(ax.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"?_.Gx(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var Y=this.get("badges.0.metadataBadgeRenderer.tooltip");if(Y)return Y}return _.Tx(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
ax.prototype.onLineHeightChanged=ax.prototype.onLineHeightChanged;ax.prototype.onHeightChanged=ax.prototype.onHeightChanged;ax.prototype.onChannelNameChanged=ax.prototype.onChannelNameChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ax.prototype,"badges",void 0);_.z([_.R(),_.K("design:type",Object)],ax.prototype,"channelName",void 0);
_.z([_.R(),_.K("design:type",Object)],ax.prototype,"noEndpoints",void 0);_.z([_.R(),_.K("design:type",Object)],ax.prototype,"wrapText",void 0);_.z([_.R(),_.K("design:type",Object)],ax.prototype,"forceVerified",void 0);_.z([_.R(),_.K("design:type",Object)],ax.prototype,"tooltipPosition",void 0);_.z([_.R(),_.K("design:type",String)],ax.prototype,"tooltip",void 0);_.z([_.R(),_.K("design:type",Boolean)],ax.prototype,"hasChannelArt",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ax.prototype,"compactStyle",void 0);_.z([_.xZ("#text-container"),_.K("design:type",HTMLElement)],ax.prototype,"textContainerEl",void 0);_.z([_.xZ("#text"),_.K("design:type",Object)],ax.prototype,"textEl",void 0);_.z([_.xZ("#verified-tooltip"),_.K("design:type",HTMLElement)],ax.prototype,"verifiedTooltip",void 0);_.z([_.R(),_.K("design:type",Object)],ax.prototype,"height",void 0);
_.z([_.R(),_.K("design:type",Object)],ax.prototype,"lineHeight",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("badges","forceVerified"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ax.prototype,"verified",null);_.z([_.t("badges","verified"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ax.prototype,"hideBadges",null);_.z([_.t("channelName"),_.K("design:type",Object),_.K("design:paramtypes",[])],ax.prototype,"formattedName",null);
_.z([_.t("badges","verified","formattedName"),_.K("design:type",String),_.K("design:paramtypes",[])],ax.prototype,"tooltipText",null);_.z([_.t("hasChannelArt"),_.K("design:type",String),_.K("design:paramtypes",[])],ax.prototype,"tooltipOffset",null);_.z([_.lr("channelName"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ax.prototype,"onChannelNameChanged",null);
_.z([_.lr("height"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ax.prototype,"onHeightChanged",null);_.z([_.lr("lineHeight","height"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ax.prototype,"onLineHeightChanged",null);_.z([_.S({is:"ytd-channel-name",disableElementRegistration:!0})],ax);
_.a(ax,"ytd-channel-name",function(){if(dJK!==void 0)return dJK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return dJK=Y},{mode:_.Xd("kevlar_poly_si_batch_j036")?1:2});var rQ=function(){var Y=_.F.apply(this,arguments)||this;Y.standardizeIconSize=_.q("kevlar_system_icons");Y.enableModernCommentBadges=_.q("enable_modern_comment_badges");return Y};
_.P(rQ,_.F);rQ.prototype.basicPaletteChanged=function(){var Y;(Y=this.data.color)!=null&&Y.basicColorPaletteData&&_.Fl(this.hostElement,this.data.color.basicColorPaletteData)};
rQ.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var Y,b=this.get("basicColorPaletteData.backgroundColor",(Y=this.data)==null?void 0:Y.color),w;Y=this.get("basicColorPaletteData.foregroundTitleColor",(w=this.data)==null?void 0:w.color);w={};b?(b=_.WH(b),w["--ytd-author-comment-badge-background-color"]=b):(w["--ytd-author-comment-badge-icon-background-color"]="transparent",w["--ytd-author-comment-badge-background-color"]="transparent");Y?(b=_.WH(Y),w["--ytd-author-comment-badge-name-color"]=
b,w["--ytd-author-comment-badge-icon-color"]=b):w["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(w).length>0&&_.m_(this.hostElement,w)}};
rQ.prototype.useFilledIcons=function(Y){return _.q("kevlar_system_icons")&&(Y==="CHECK_CIRCLE_THICK"||Y==="OFFICIAL_ARTIST_BADGE")};
_.up.Object.defineProperties(rQ.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")}}});
rQ.prototype.colorChanged=rQ.prototype.colorChanged;rQ.prototype.basicPaletteChanged=rQ.prototype.basicPaletteChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rQ.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],rQ.prototype,"standardizeIconSize",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],rQ.prototype,"enableModernCommentBadges",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.authorUnifiedVerified"),_.K("design:type",Object),_.K("design:paramtypes",[])],rQ.prototype,"verified",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],rQ.prototype,"creator",null);_.z([_.lr("data.color.basicColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rQ.prototype,"basicPaletteChanged",null);
_.z([_.lr("data.color"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rQ.prototype,"colorChanged",null);_.z([_.S({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],rQ);
_.a(rQ,"ytd-author-comment-badge-renderer",function(){if(RT$!==void 0)return RT$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-author-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="name" class="yt-simple-endpoint style-scope ytd-author-comment-badge-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n  <ytd-channel-name id="channel-name" channel-name="[[data.authorText]]" force-verified="[[verified]]" tooltip="[[data.iconTooltip]]" class="style-scope ytd-author-comment-badge-renderer">\n  </ytd-channel-name>\n</a>\n<yt-icon id="icon" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" size="12" class="style-scope ytd-author-comment-badge-renderer">\n</yt-icon>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return RT$=Y},{mode:1});var LYd;var zs=function(){return _.F.apply(this,arguments)||this};
_.P(zs,_.F);zs.prototype.computeThumbnailWidth=function(Y){if(Y==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zs.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],zs.prototype,"icon",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],zs.prototype,"surface",void 0);
_.z([_.R({reflectToAttribute:!0,value:_.q("enable_shrink_image_size_on_web_posts_singleton")}),_.K("design:type",Boolean)],zs.prototype,"searchSxsUx",void 0);_.z([_.S({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],zs);
_.a(zs,"ytd-backstage-image-renderer",function(){if(LYd!==void 0)return LYd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[data.command]]" class="style-scope ytd-backstage-image-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-backstage-image-renderer" href$="[[computeHref_(data.command)]]" data="[[data.commmand]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.command]]" class="style-scope ytd-backstage-image-renderer">\n    <div id="image-container" class="style-scope ytd-backstage-image-renderer">\n      <yt-img-shadow thumbnail="[[data.image]]" width="[[computeThumbnailWidth(surface)]]" class="style-scope ytd-backstage-image-renderer">\n      </yt-img-shadow>\n      <div id="generated-image-identifier" class="generated-image-identifier style-scope ytd-backstage-image-renderer" hidden="[[!data.generatedImageMetadata]]">\n        <yt-icon class="generated-image-icon style-scope ytd-backstage-image-renderer" icon="[[computeIcon_(data.generatedImageMetadata.icon)]]"></yt-icon>\n        <span class="generated-image-label style-scope ytd-backstage-image-renderer">[[data.generatedImageMetadata.label]]</span>\n      </div>\n      <div id="image-icon-container" class="image-icon-container style-scope ytd-backstage-image-renderer" hidden="[[!data.icon]]">\n        <yt-icon icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-backstage-image-renderer"></yt-icon>\n      </div>\n    </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return LYd=Y},{mode:1});var SA5;var WR=function(){var Y=_.F.apply(this,arguments)||this;Y.isLoading=!1;Y.selectedItemIndex=-1;return Y};
_.P(WR,_.F);_.g=WR.prototype;_.g.computeIsChannelOwner=function(Y){if(!Y)return!0;Y=Y[0];return!(Y&&(Y.signinEndpoint||Y.selectServiceEndpoint))};
_.g.computeIsImagePoll=function(Y){return(Y==null?void 0:Y.type)==="POLL_TYPE_IMAGE"};
_.g.computeIsTotalVotesDisabled=function(Y){return!(Y==null?0:Y.totalVotes)};
_.g.thumbnailSrc=function(Y){var b,w,V,H;return(Y==null?0:(b=Y.thumbnails)==null?0:(w=b[0])==null?0:w.url)?_.PN((V=Y.thumbnails)==null?void 0:(H=V[0])==null?void 0:H.url):void 0};
_.g.progressWidth=function(Y){return"width:"+(Y?Y*100:0)+"%;"};
_.g.textAreaWidth=function(Y){return this.isImagePoll?null:"width:"+(Y?Y*100:0)+"%;"};
_.g.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.g.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var Y=this.data.choices,b=0;b<Y.length;b++)if(Y[b].selected){this.selectedItemIndex=b;break}};
_.g.onPopupClosed=function(Y,b){Y=Number(this.pollVotes.selected);b.confirmed&&(this.selectChoice(Y,!1),_.Xx(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.g.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.g.onYtCommentPollRevert=function(Y,b){b&&(this.selectChoice(b.selectedChoiceIndex,!0),this.set("data.totalVotes",b.totalVotes))};
_.g.onYtServiceRequestSent=function(Y,b){if(b.actions)for(Y=0;Y<b.actions.length;Y++){var w=b.actions[Y];_.v(w,Ow)&&this.set("data.totalVotes",_.v(w,Ow).totalVotes)}};
_.g.onYtServiceRequestCompleted=function(Y){var b=this.get("detail.data.actionResults.0.feedback",Y);Y=this.get("detail.data.actionResults.0.status",Y);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,Y==="STATUS_FAILED"?_.Ua(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.g.getEndpoint=function(Y,b){return b===Y?this.data.choices[b].deselectServiceEndpoint||null:this.data.choices[Y].selectServiceEndpoint||null};
_.g.selectChoice=function(Y,b){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var w=0;w<this.data.choices.length;w++){var V;if(Y===this.selectedItemIndex){var H=!1;var f=V=null}else V=(H=w===Y)?this.data.choices[w].voteRatioIfSelected:this.data.choices[w].voteRatioIfNotSelected,f=H?this.data.choices[w].votePercentageIfSelected:this.data.choices[w].votePercentageIfNotSelected;this.set("data.choices."+w+".voteRatio",V);
this.set("data.choices."+w+".votePercentage",f);this.set("data.choices."+w+".selected",H)}b||(this.isLoading=!0,(b=this.getEndpoint(Y,this.selectedItemIndex))&&_.fH().resolve(_.Nn).resolveCommand(b,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===Y?-1:Y};
_.up.Object.defineProperties(WR.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
WR.prototype.onYtServiceRequestCompleted=WR.prototype.onYtServiceRequestCompleted;WR.prototype.onYtServiceRequestSent=WR.prototype.onYtServiceRequestSent;WR.prototype.onYtCommentPollRevert=WR.prototype.onYtCommentPollRevert;WR.prototype.onPopupClosed=WR.prototype.onPopupClosed;WR.prototype.dataChanged=WR.prototype.dataChanged;_.z([_.n(_.YU),_.K("design:type",Object)],WR.prototype,"paperItemBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],WR.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],WR.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],WR.prototype,"isLoading",void 0);_.z([_.R({computed:"computeIsChannelOwner(data.choices)"}),_.K("design:type",Boolean)],WR.prototype,"isChannelOwner",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.K("design:type",Boolean)],WR.prototype,"isImagePoll",void 0);_.z([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.K("design:type",Boolean)],WR.prototype,"isTotalVotesDisabled",void 0);_.z([_.R(),_.K("design:type",Object)],WR.prototype,"previousPollInfo",void 0);_.z([_.R(),_.K("design:type",Object)],WR.prototype,"selectedItemIndex",void 0);_.z([_.xZ("#poll-votes"),_.K("design:type",Object)],WR.prototype,"pollVotes",void 0);
_.z([_.t("isChannelOwner"),_.K("design:type",Object),_.K("design:paramtypes",[])],WR.prototype,"endpointStyle",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WR.prototype,"dataChanged",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],WR.prototype,"onPopupClosed",null);
_.z([_.kZ("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],WR.prototype,"onYtCommentPollRevert",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],WR.prototype,"onYtServiceRequestSent",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],WR.prototype,"onYtServiceRequestCompleted",null);_.z([_.S({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],WR);
_.a(WR,"ytd-backstage-poll-renderer",function(){if(SA5!==void 0)return SA5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return SA5=Y},{mode:2});var aV8;var r$C={autoplay:!1,loop:!1},zTr={simpleText:""},K$=function(){var Y=_.F.apply(this,arguments)||this;Y.isLoading=!1;Y.usesPanelLockup=!1;Y.selectedItemIndex=-1;Y.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},r$C,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});Y.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},r$C,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});Y.correctnessAnimationProps=[];Y.correctnessAnimationRefs=[];return Y};
_.P(K$,_.F);_.g=K$.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.g.computeIsChannelOwner=function(Y){if(!Y)return!0;Y=Y[0];return!(Y&&(Y.signinEndpoint||Y.selectServiceEndpoint))};
_.g.computeIsTotalVotesDisabled=function(Y){return!(Y==null?0:Y.totalVotes)};
_.g.computeIsImageQuiz=function(Y){return(Y==null?void 0:Y.type)==="POLL_TYPE_IMAGE"};
_.g.onExplanationChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var Y=this.data.choices;if(Y){this.maybeInitializeQuizLotties(Y);for(var b=0;b<Y.length;b++)if(Y[b].isSelected||this.isChannelOwner&&Y[b].isCorrect){this.selectedItemIndex=b;return}this.selectedItemIndex=-1}}};
_.g.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var Y=this.selectedItemIndex,b=Number(this.quizVotes.selected);this.selectChoice(b);this.sendVoteAction(b,Y);this.quizVotes.selected=-1;var w;Y=!((w=this.data)==null?0:w.enableAnimation);this.maybePlayAnswerAnimations(Y)}};
_.g.onYtCommentPollRevert=function(Y,b){b&&(this.selectChoice(b.selectedChoiceIndex),this.set("data.totalVotes",b.totalVotes))};
_.g.onYtServiceRequestSent=function(Y,b){if(b.actions)for(Y=_.N(b.actions),b=Y.next();!b.done;b=Y.next())(b=_.v(b.value,Ow))&&this.set("data.totalVotes",b.totalVotes)};
_.g.onYtServiceRequestCompleted=function(Y){var b=this.get("detail.data.actionResults.0.feedback",Y);Y=this.get("detail.data.actionResults.0.status",Y);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,Y==="STATUS_FAILED"?_.Ua(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.g.getAnimationPropsForChoiceIndex=function(Y,b){return b[Y]};
_.g.maybePlayAnswerAnimations=function(Y){Y=Y===void 0?!1:Y;var b;if((b=this.data)!=null&&b.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){b=_.N(this.correctnessAnimationRefs);for(var w=b.next();!w.done;w=b.next()){var V=void 0,H=void 0;(V=w.value)==null||(H=V.lottieEl)==null||H.stop()}if(!(this.selectedItemIndex<0)){b=0;Y&&(b=this.isCorrect?37:25);var f,E;(f=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(E=f.lottieEl)==null||E.goToAndPlay(Y?b:0,!0);if(!(this.isCorrect||
(f=this.data.choices.findIndex(function(k){return k.isCorrect}),f<0))){var U,X;
(X=(U=this.correctnessAnimationRefs[f])==null?void 0:U.lottieEl)==null||X.goToAndPlay(37,!0);var I;U=(I=this.fadeContainers)==null?void 0:I.item(f);!Y&&U&&this.fadeIn(U)}}}};
_.g.thumbnailSrc=function(Y){var b,w,V,H;return(Y==null?0:(b=Y.thumbnails)==null?0:(w=b[0])==null?0:w.url)?_.PN((V=Y.thumbnails)==null?void 0:(H=V[0])==null?void 0:H.url):void 0};
_.g.a11yVotedText=function(Y,b){var w,V,H=((w=this.data)==null?void 0:(V=w.correctVotedText)==null?void 0:V.simpleText)||"",f,E;w=((f=this.data)==null?void 0:(E=f.votedText)==null?void 0:E.simpleText)||"";if(!b)return"";var U,X;if((U=this.data)==null?0:(X=U.choices)==null?0:X[Y].isCorrect)return H;var I,k;return((I=this.data)==null?0:(k=I.choices)==null?0:k[Y].isSelected)?w:""};
_.g.getEndpoint=function(Y,b){return b===Y?this.data.choices[Y].deselectServiceEndpoint||null:this.data.choices[Y].selectServiceEndpoint||null};
_.g.sendVoteAction=function(Y,b){if(Y=this.getEndpoint(Y,b))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(Y)};
_.g.selectChoice=function(Y){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++)this.set("data.choices."+b+".isSelected",Y===this.selectedItemIndex?!1:b===Y);this.selectedItemIndex=this.selectedItemIndex===Y?-1:Y};
_.g.maybeInitializeQuizLotties=function(Y){var b=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=Y.map(function(w){return{animationConfig:w.isCorrect?b.baseCorrectLottiePlayerAnimationConfig:b.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){b.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(w){return w.animationRef||{}})};
_.g.fadeIn=function(Y){Y.classList.add("fade-in");_.Xl(_.Lb,function(){Y.classList.remove("fade-in")},900)};
_.up.Object.defineProperties(K$.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Tx(this.explanation).length>0&&this.showCorrectAnswer}},
showCorrectAnswer:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
isQuizAnsweringDisabled:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner||this.isAttempted}},
endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isQuizAnsweringDisabled?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}},
isAttempted:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.choices)==null?void 0:b.some(function(w){return w.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null||!Y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?zTr:this.data.choices[this.selectedItemIndex].explanation||zTr}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null||!Y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
K$.prototype.onYtServiceRequestCompleted=K$.prototype.onYtServiceRequestCompleted;K$.prototype.onYtServiceRequestSent=K$.prototype.onYtServiceRequestSent;K$.prototype.onYtCommentPollRevert=K$.prototype.onYtCommentPollRevert;K$.prototype.dataChanged=K$.prototype.dataChanged;K$.prototype.onExplanationChanged=K$.prototype.onExplanationChanged;_.z([_.n(_.YU),_.K("design:type",Object)],K$.prototype,"paperItemBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.g9.YtTaskEmitterBehavior),_.K("design:type",Object)],K$.prototype,"ytTaskEmitterBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],K$.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],K$.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],K$.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Object)],K$.prototype,"usesPanelLockup",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.K("design:type",Boolean)],K$.prototype,"isChannelOwner",void 0);_.z([_.R({computed:"computeIsTotalVotesDisabled(data)"}),_.K("design:type",Boolean)],K$.prototype,"isTotalVotesDisabled",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.K("design:type",Boolean)],K$.prototype,"isImageQuiz",void 0);_.z([_.R(),_.K("design:type",Object)],K$.prototype,"previousQuizInfo",void 0);_.z([_.R(),_.K("design:type",Object)],K$.prototype,"selectedItemIndex",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data","usesPanelLockup"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],K$.prototype,"shouldUseModernUi",null);
_.z([_.ql(".fade-container"),_.K("design:type",Object)],K$.prototype,"fadeContainers",void 0);_.z([_.R(),_.K("design:type",Array)],K$.prototype,"correctnessAnimationProps",void 0);_.z([_.t("explanation","showCorrectAnswer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],K$.prototype,"showExplanation",null);_.z([_.t("isChannelOwner","isAttempted"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],K$.prototype,"showCorrectAnswer",null);
_.z([_.t("isChannelOwner","isAttempted","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],K$.prototype,"isQuizAnsweringDisabled",null);_.z([_.t("isQuizAnsweringDisabled"),_.K("design:type",Object),_.K("design:paramtypes",[])],K$.prototype,"endpointStyle",null);_.z([_.t("data","selectedItemIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],K$.prototype,"isAttempted",null);
_.z([_.t("data","selectedItemIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],K$.prototype,"explanation",null);_.z([_.t("data","selectedItemIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],K$.prototype,"isCorrect",null);_.z([_.xZ("ytd-expander"),_.K("design:type",Object)],K$.prototype,"expander",void 0);_.z([_.xZ("#quiz-votes"),_.K("design:type",Object)],K$.prototype,"quizVotes",void 0);
_.z([_.lr("explanation"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],K$.prototype,"onExplanationChanged",null);_.z([_.lr("data","isChannelOwner"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],K$.prototype,"dataChanged",null);_.z([_.kZ("yt-comment-quiz-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],K$.prototype,"onYtCommentPollRevert",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],K$.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],K$.prototype,"onYtServiceRequestCompleted",null);_.z([_.S({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],K$);
_.a(K$,"ytd-backstage-quiz-renderer",function(){if(aV8!==void 0)return aV8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return aV8=Y},{mode:1});var WY$;var i5=function(){return _.F.apply(this,arguments)||this};
_.P(i5,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],i5.prototype,"data",void 0);_.z([_.S({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],i5);
_.a(i5,"ytd-post-uploaded-video-renderer",function(){if(WY$!==void 0)return WY$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-uploaded-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-post-uploaded-video-renderer">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-post-uploaded-video-renderer">\n  </yt-img-shadow>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return WY$=Y},{mode:1});var KYC;var Am=function(){return _.F.apply(this,arguments)||this};
_.P(Am,_.F);Am.prototype.useFilledIcons=function(Y){return Y==="SPONSORSHIP_STAR"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Am.prototype,"data",void 0);_.z([_.S({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Am);
_.a(Am,"ytd-sponsors-only-badge-renderer",function(){if(KYC!==void 0)return KYC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsors-only-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" default-to-filled="[[useFilledIcons(data.icon.iconType)]]" class="style-scope ytd-sponsors-only-badge-renderer">\n</yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer">\n  <tp-yt-paper-tooltip for="label" class="style-scope ytd-sponsors-only-badge-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.tooltip]]" class="style-scope ytd-sponsors-only-badge-renderer"></yt-formatted-string>\n  </tp-yt-paper-tooltip>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return KYC=Y},{mode:1});var i0j;var C$=function(){return _.F.apply(this,arguments)||this};
_.P(C$,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],C$.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],C$.prototype,"data",void 0);_.z([_.S({is:"ytd-child-video-renderer",disableElementRegistration:!0})],C$);
_.a(C$,"ytd-child-video-renderer",function(){if(i0j!==void 0)return i0j;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-child-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-child-video-renderer" id="title" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"><yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-child-video-renderer"></yt-formatted-string><div id="length" class="style-scope ytd-child-video-renderer">[[getSimpleString(data.lengthText)]]</div></a>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return i0j=Y},{mode:1});var A$Q;var CE8;var y5=function(){var Y=_.F.apply(this,arguments)||this;Y.size=0;Y.enableWebModernCollectionsV2=_.q("web_modern_collections_v2");Y.fallbackImageSize={height:void 0,width:9999};Y.webModernCollections=!1;return Y};
_.P(y5,_.F);_.g=y5.prototype;_.g.computeBlurredImageSize=function(Y){return Y?{height:Y*2,width:Y*2}:this.fallbackImageSize};
_.g.computeImageSize=function(Y){return Y?{height:Y,width:Y}:this.fallbackImageSize};
_.g.computeObjectFit=function(Y){return Y?"FILL":"CONTAIN"};
_.g.computePreserve=function(Y){return Y?!0:!1};
_.g.setBackground=function(){var Y,b;_.q("web_modern_collections_v2")&&((Y=this.data)==null?0:(b=Y.thumbnail)==null?0:b.sampledThumbnailColor)&&(Y=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+Y.red+","+Y.green+","+Y.blue+",1)")};
y5.prototype.setBackground=y5.prototype.setBackground;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],y5.prototype,"watchFeedThumbnail",void 0);_.z([_.R(),_.K("design:type",Object)],y5.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],y5.prototype,"size",void 0);
_.z([_.R({computed:"computeBlurredImageSize(size)"}),_.K("design:type",Object)],y5.prototype,"blurredImageSize",void 0);_.z([_.R({computed:"computeImageSize(size)"}),_.K("design:type",Object)],y5.prototype,"imageSize",void 0);_.z([_.R({computed:"computePreserve(size)"}),_.K("design:type",String)],y5.prototype,"preserve",void 0);_.z([_.R({computed:"computeObjectFit(size)"}),_.K("design:type",String)],y5.prototype,"objectFit",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],y5.prototype,"enableWebModernCollectionsV2",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],y5.prototype,"webModernCollections",void 0);_.z([_.lr("data.thumbnail.sampledThumbnailColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y5.prototype,"setBackground",null);_.z([_.S({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],y5);
_.a(y5,"ytd-playlist-custom-thumbnail-renderer",function(){if(CE8!==void 0)return CE8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[webModernCollections]]" class="style-scope ytd-playlist-custom-thumbnail-renderer">\n    <div class="blurred-image-wrapper style-scope ytd-playlist-custom-thumbnail-renderer" style$="[[backgroundStyle]]">\n        <yt-image class="blurred-image style-scope ytd-playlist-custom-thumbnail-renderer" alt="hidden" aria-hidden="true" data="[[data.thumbnail]]" ftl-eligible="" height="[[blurredImageSize.height]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[blurredImageSize.width]]">\n        </yt-image>\n    </div>\n</template>\n<yt-image class="custom-thumbnail style-scope ytd-playlist-custom-thumbnail-renderer" alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[imageSize.height]]" object-fit="[[objectFit]]" object-position="TOP_START" preserve-height="[[preserve]]" preserve-width="[[preserve]]" width="[[imageSize.width]]">\n</yt-image>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return CE8=Y},{mode:1});var y$r;var $1=function(){return _.F.apply(this,arguments)||this};
_.P($1,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$1.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],$1.prototype,"width",void 0);_.z([_.S({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],$1);
_.a($1,"ytd-playlist-video-thumbnail-renderer",function(){if(y$r!==void 0)return y$r;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" width="[[width]]" class="style-scope ytd-playlist-video-thumbnail-renderer">\n</yt-image>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return y$r=Y},{mode:1});var $J_;var jg=function(){return _.F.apply(this,arguments)||this};
_.P(jg,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],jg.prototype,"width",void 0);_.z([_.S({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],jg);
_.a(jg,"ytd-show-custom-thumbnail-renderer",function(){if($J_!==void 0)return $J_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-custom-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-image alt="" data="[[data.thumbnail]]" width="[[width]]" class="style-scope ytd-show-custom-thumbnail-renderer">\n</yt-image>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $J_=Y},{mode:1});var jDd;var Gs=function(){return _.F.apply(this,arguments)||this};
_.P(Gs,_.F);Gs.prototype.useFilledIcons=function(Y){return Y==="MUSIC"||Y==="COURSE"};
Gs.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=iW(this.overlayColor,"0.8");else if(this.overlayColor){var Y=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+Y.red+","+Y.green+","+Y.blue+",0.8)"}};
_.up.Object.defineProperties(Gs.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)}}});
Gs.prototype.overlayColorChanged=Gs.prototype.overlayColorChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Gs.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Gs.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Gs.prototype,"overlayColor",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.icon","data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gs.prototype,"overlayStyle",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data.icon","data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gs.prototype,"overlayTextStyle",null);_.z([_.lr("overlayColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gs.prototype,"overlayColorChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],Gs);
_.a(Gs,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(jDd!==void 0)return jDd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-bottom-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[useFilledIcons(data.icon.iconType)]]" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-icon>\n<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-bottom-panel-renderer"></yt-formatted-string>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return jDd=Y},{mode:1});var G4I;var Ts=function(){var Y=_.F.apply(this,arguments)||this;Y.active=!1;return Y};
_.P(Ts,_.F);Ts.prototype.computeIsSpinnerHidden=function(Y){return(Y==null?void 0:Y.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Ts.prototype.computeOverlayIcon=function(Y){return(Y==null?void 0:Y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(Y==null?void 0:Y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ts.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Ts.prototype,"active",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Ts);
_.a(Ts,"ytd-thumbnail-overlay-downloading-renderer",function(){if(G4I!==void 0)return G4I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-downloading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[computeOverlayIcon(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[active]]" hidden="[[computeIsSpinnerHidden(data)]]" class="style-scope ytd-thumbnail-overlay-downloading-renderer"></tp-yt-paper-spinner-lite>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return G4I=Y},{mode:1});var T4d;var Jm=function(){return _.F.apply(this,arguments)||this};
_.P(Jm,_.F);_.up.Object.defineProperties(Jm.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Jm.prototype,"data",void 0);_.z([_.t("data.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],Jm.prototype,"text",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Jm);
_.a(Jm,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(T4d!==void 0)return T4d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-hover-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-hover-text-renderer"></yt-icon>\n<span class="style-scope ytd-thumbnail-overlay-hover-text-renderer">[[text]]</span>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return T4d=Y},{mode:1});var J$K,unK=function(){if(J$K!==void 0)return J$K;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-equalizer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg xmlns="http://www.w3.org/2000/svg" id="equalizer" viewBox="0 0 55 95" class="style-scope ytd-thumbnail-overlay-equalizer">\n  <g class="style-scope ytd-thumbnail-overlay-equalizer">\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="0"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="20"></rect>\n    <rect class="bar style-scope ytd-thumbnail-overlay-equalizer" x="40"></rect>\n  </g>\n</svg>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return J$K=Y};var u5=function(){return _.F.apply(this,arguments)||this};
_.P(u5,_.F);_.up.Object.defineProperties(u5,{template:{configurable:!0,enumerable:!0,get:function(){return unK()}}});
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],u5.prototype,"animateEqualizer",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],u5);_.UQ()(u5,"ytd-thumbnail-overlay-equalizer",function(){return unK()},{allowedProps:["animateEqualizer"],
mode:1});var Ylt;var Yg=function(){var Y=_.F.apply(this,arguments)||this;Y.nowPlayingBadge=_.q("web_now_playing_badge");Y.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return Y};
_.P(Yg,_.F);Yg.prototype.activeChanged=function(){var Y=this;_.q("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.TC(this,function(){_.Ua(Y.hostElement,"yt-playlist-lockup-now-playing-active",Y)})};
Yg.prototype.onMiniplayerPlayStateChanged=function(Y){var b,w=(b=_.v(_.sL().currentEndpoint,_.TG))==null?void 0:b.videoId;this.isVideoPlaying=Y&&(_.q("web_limit_now_playing_animation_killswitch")||this.videoId===w)};
Yg.prototype.activeChanged=Yg.prototype.activeChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Yg.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Yg.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Yg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],Yg.prototype,"isVideoPlaying",void 0);_.z([_.R(),_.K("design:type",String)],Yg.prototype,"videoId",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Yg.prototype,"equalizerOnly",void 0);_.z([_.R(),_.K("design:type",Boolean)],Yg.prototype,"isActive",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Yg.prototype,"nowPlayingBadge",void 0);_.z([_.lr("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yg.prototype,"activeChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Yg);
_.a(Yg,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(Ylt!==void 0)return Ylt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-now-playing-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="overlay-text" hidden="[[equalizerOnly]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">[[getSimpleString(data.text)]]</span>\n<ytd-thumbnail-overlay-equalizer animate-equalizer="[[isVideoPlaying]]" class="style-scope ytd-thumbnail-overlay-now-playing-renderer">\n</ytd-thumbnail-overlay-equalizer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Ylt=Y},{mode:1});var bqK;var bZ=function(){return _.F.apply(this,arguments)||this};
_.P(bZ,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],bZ.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],bZ);
_.a(bZ,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(bqK!==void 0)return bqK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-playback-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.texts]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-thumbnail-overlay-playback-status-renderer"></yt-formatted-string></template>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return bqK=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var woU;var wi=function(){return _.F.apply(this,arguments)||this};
_.P(wi,_.F);wi.prototype.onDurationChanged=function(){var Y,b;_.E6(this.hostElement).querySelector("#progress").style.width=((b=(Y=this.data)==null?void 0:Y.percentDurationWatched)!=null?b:0)+"%"};
wi.prototype.onDurationChanged=wi.prototype.onDurationChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],wi.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],wi.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wi.prototype,"isLive",void 0);_.z([_.lr("data.percentDurationWatched"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wi.prototype,"onDurationChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],wi);
_.a(wi,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(woU!==void 0)return woU;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-resume-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress" class="style-scope ytd-thumbnail-overlay-resume-playback-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return woU=Y},{mode:1});var V$r;var Vj=function(){var Y=_.F.apply(this,arguments)||this;Y.bottomPanel=!1;Y.richGridOverlay=!1;Y.watchFeedOverlay=!1;Y.isCompact=!1;return Y};
_.P(Vj,_.F);Vj.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.up.Object.defineProperties(Vj.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.icon)==null?void 0:b.iconType)==="PLAY_ALL"&&_.q("kevlar_system_icons")}}});
Vj.prototype.widthChanged=Vj.prototype.widthChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Vj.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],Vj.prototype,"width",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Vj.prototype,"bottomPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Vj.prototype,"richGridOverlay",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Vj.prototype,"watchFeedOverlay",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Vj.prototype,"isCompact",void 0);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vj.prototype,"isIconFilled",null);_.z([_.lr("width","watchFeedOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vj.prototype,"widthChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Vj);
_.a(Vj,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(V$r!==void 0)return V$r;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-side-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-formatted-string>\n<yt-icon default-to-filled="[[isIconFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-side-panel-renderer"></yt-icon>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return V$r=Y},{mode:1});var Hq$;var gNU=["CLIP","SHORTS"],H7=function(){var Y=_.F.apply(this,arguments)||this;Y.animated=_.q("animated_live_badge_icon");Y.hasIcon=!1;Y.updateTimerIntervalId=0;Y.timeSinceLive=0;return Y};
_.P(H7,_.F);_.g=H7.prototype;_.g.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.g.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.g.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.g.hasIconOrText=function(){var Y,b;return!!(((Y=this.data)==null?0:Y.icon)||((b=this.data)==null?0:b.text))};
_.g.initializeLiveBadgeTimer=function(){var Y=this,b,w=(b=this.liveBadgeData)==null?void 0:b.startTimestampSec;if(w&&this.canShowLiveBadgeTimer()){var V;b=Number((V=this.liveBadgeData)==null?void 0:V.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(w);this.updateTimerIntervalId=_.oV(function(){Y.canShowLiveBadgeTimer()?Y.timeSinceLive++:(Y.timeSinceLive=0,window.clearInterval(Y.updateTimerIntervalId))},b)}else this.timeSinceLive=0};
_.g.canShowLiveBadgeTimer=function(){var Y=Date.now(),b,w;return Y<(Number((b=this.liveBadgeData)==null?void 0:b.endTimestampSec)-1)*1E3&&Y>Number((w=this.liveBadgeData)==null?void 0:w.startTimestampSec)*1E3};
_.up.Object.defineProperties(H7.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data;var b=this.timeSinceLive;var w,V,H,f;a:{var E=Y.style;if(E===void 0)E=16;else switch(E){case "LIVE":E=17;break a;default:E=16}}b={type:E,text:b?adt({seconds:b}):_.Tx(Y.text),accessibilityText:(w=Y.text)==null?void 0:(V=w.accessibility)==null?void 0:(H=V.accessibilityData)==null?void 0:H.label,icon:(f=Y.icon)==null?void 0:f.iconType}}else b={};return b}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.liveBadgeData}},
overlayType:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.type)return this.data.type.replace("THUMBNAIL_OVERLAY_TIME_STATUS_TYPE_","")}},
useFilledIcon:{configurable:!0,enumerable:!0,get:function(){return gNU.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
H7.prototype.initializeLiveBadgeTimer=H7.prototype.initializeLiveBadgeTimer;H7.prototype.dataChanged=H7.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],H7.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],H7.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],H7.prototype,"icon",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],H7.prototype,"animated",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.K("design:type",Boolean)],H7.prototype,"hideTimeStatus",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],H7.prototype,"hasIcon",void 0);_.z([_.R(),_.K("design:type",Object)],H7.prototype,"timeSinceLive",void 0);_.z([_.t("data","timeSinceLive"),_.K("design:type",Object),_.K("design:paramtypes",[])],H7.prototype,"badgeShapeData",null);
_.z([_.t("data","overlayType"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],H7.prototype,"hideBadgeShape",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H7.prototype,"dataChanged",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],H7.prototype,"overlayStyle",null);
_.z([_.t("data.liveBadgeData"),_.K("design:type",Object),_.K("design:paramtypes",[])],H7.prototype,"liveBadgeData",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.type"),_.K("design:type",Object),_.K("design:paramtypes",[])],H7.prototype,"overlayType",null);_.z([_.t("overlayType","overlayStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],H7.prototype,"useFilledIcon",null);
_.z([_.vX("liveBadgeData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],H7.prototype,"initializeLiveBadgeTimer",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],H7);
_.a(H7,"ytd-thumbnail-overlay-time-status-renderer",function(){if(Hq$!==void 0)return Hq$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-time-status-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer badges="[[data.badges]]" is-thumbnail-badge="" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></ytd-badge-supported-renderer><div class="thumbnail-overlay-badge-shape style-scope ytd-thumbnail-overlay-time-status-renderer" hidden="[[hideBadgeShape]]"><badge-shape data="[[badgeShapeData]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></badge-shape></div><div id="time-status" hidden="[[hideTimeStatus]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer"><yt-icon active="[[useFilledIcon]]" disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" size="16" class="style-scope ytd-thumbnail-overlay-time-status-renderer"></yt-icon><span id="text" aria-label$="[[data.text.accessibility.accessibilityData.label]]" class="style-scope ytd-thumbnail-overlay-time-status-renderer">\n    [[getSimpleString(data.text)]]\n  </span></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Hq$=Y},{mode:_.Xd("kevlar_poly_si_batch_j035")?1:2});var fh9;var gi=function(){return _.F.apply(this,arguments)||this};
_.P(gi,_.F);gi.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"}}}}};
gi.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(Y){if(this.hasPlaybackProgressBar)return{percentDurationWatched:Y.percentDurationWatched}};
gi.prototype.computeHasPlaybackProgressBar=function(Y){return!!Y.percentDurationWatched&&Y.percentDurationWatched>0};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],gi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],gi.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.K("design:type",Boolean)],gi.prototype,"hasPlaybackProgressBar",void 0);
_.z([_.S({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],gi);
_.a(gi,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(fh9!==void 0)return fh9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-show-watch-forward-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n  <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></yt-formatted-string>\n  <div id="button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n    <div id="primary-action-button-container" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      <div id="primary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n      <ytd-thumbnail-overlay-resume-playback-renderer id="playback-progress" data="[[computeThumbnailOverlayResumePlaybackRenderer(data)]]" hidden$="[[!hasPlaybackProgressBar]]" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer">\n      </ytd-thumbnail-overlay-resume-playback-renderer>\n    </div>\n    <div id="secondary-action-button" role="button" class="style-scope ytd-tvfilm-show-watch-forward-overlay-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return fh9=Y},{mode:1});var NJ_;var ENC=_.b8(function(Y){var b=Y.data;var w=Y.children;var V=function(){return!!b().doubleStack};
return _.m("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!b().experimentEnabled}},_.m(_.h,{cond:b,
then:function(){return _.m("div",null,_.m(_.h,{cond:V,then:function(){var H={};return _.m("div",{class:_.hj("collections-stack-wiz__collection-stack2",function(){return b().customClassName2ndStack},(H["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return b().enableResponsiveMode},H)),
style:_.Bb({"background-color":function(){return $2e(b())}})})}}),_.m("div",{class:_.hj("collections-stack-wiz__collection-stack1",function(){return b().customClassName1stStack},function(){return yNL(b().thumbnailSize?b().thumbnailSize:"medium")}),
style:_.Bb({"background-color":function(){return $2e(b())}})}),w)}}))},"P");_.f_(ENC,"yt-collections-stack",{props:{data:_.YX}});var fe=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};Y.webModernCollections=!1;Y.isSearch=!1;Y.isDoubleStack=!1;Y.thumbnailSize="medium";Y.enableWebModernCollectionsV2=_.q("web_modern_collections_v2");return Y};
_.P(fe,_.F);_.g=fe.prototype;
_.g.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]]"}}}}}};
_.g.getThumbnailDetails=function(Y){if(Y!=null&&Y.thumbnailRenderer){var b=Y.thumbnailRenderer,w;if((w=b.playlistVideoThumbnailRenderer)==null?0:w.thumbnail)return b.playlistVideoThumbnailRenderer.thumbnail;var V;if((V=b.playlistCustomThumbnailRenderer)==null?0:V.thumbnail)return b.playlistCustomThumbnailRenderer.thumbnail;Y=Y.thumbnailRenderer;var H;if((H=Y.showCustomThumbnailRenderer)==null?0:H.thumbnail)return Y.showCustomThumbnailRenderer.thumbnail}};
_.g.computeOverlayColor=function(Y){var b,w;if((b=this.getThumbnailDetails(Y))==null?0:(w=b.darkColorPalette)==null?0:w.section2Color)return this.getThumbnailDetails(Y).darkColorPalette.section2Color;var V;return(V=this.getThumbnailDetails(Y))==null?void 0:V.sampledThumbnailColor};
_.g.computeWebModernCollections=function(Y){if(Y==null||!Y.thumbnailOverlays)return!1;Y=_.N(Y.thumbnailOverlays);for(var b=Y.next();!b.done;b=Y.next()){var w=void 0;if((w=b.value)==null?0:w.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.g.computeNavigationEndpoint=function(Y){return K0B(Y==null?void 0:Y.navigationEndpoint)};
_.up.Object.defineProperties(fe.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:Y==null?void 0:Y.sampledThumbnailColor,vibrantColorPalette:Y==null?void 0:Y.vibrantColorPalette,darkColorPalette:Y==null?void 0:Y.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],fe.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(lxr),_.K("design:type",Object)],fe.prototype,"ytdThumbnailBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],fe.prototype,"componentBehavior",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],fe.prototype,"watchFeedThumbnail",void 0);_.z([_.R(),_.K("design:type",Number)],fe.prototype,"customThumbnailSize",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],fe.prototype,"hideAria",void 0);_.z([_.R(),_.K("design:type",Object)],fe.prototype,"data",void 0);_.z([_.R({computed:"computeOverlayColor(data)"}),_.K("design:type",Object)],fe.prototype,"overlayColor",void 0);
_.z([_.R({computed:"computeWebModernCollections(data)"}),_.K("design:type",Object)],fe.prototype,"webModernCollections",void 0);_.z([_.R({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],fe.prototype,"computedNavigationEndpoint",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],fe.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],fe.prototype,"isDoubleStack",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],fe.prototype,"thumbnailSize",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],fe.prototype,"enableWebModernCollectionsV2",void 0);_.z([_.t("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],fe.prototype,"collectionStack",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],fe);
_.a(fe,"ytd-playlist-thumbnail",function(){if(NJ_!==void 0)return NJ_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-playlist-thumbnail"></yt-collections-stack>\n<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-playlist-thumbnail" aria-hidden="[[hideAria]]" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" tabindex="-1">\n  <div id="playlist-thumbnails" class="style-scope ytd-playlist-thumbnail"></div>\n  <yt-formatted-string id="length" hidden="[[!data.lengthText]]" text="[[data.lengthText]]" class="style-scope ytd-playlist-thumbnail">\n  </yt-formatted-string>\n  <div id="overlays" class="style-scope ytd-playlist-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-playlist-thumbnail"></div>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return NJ_=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var cNj;var Ns=function(){var Y=_.F.apply(this,arguments)||this;Y.noEndpoints=!1;Y.amsterdamPostMvp=_.q("web_amsterdam_post_mvp_playlists");Y.badges=[];Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.P(Ns,_.F);_.g=Ns.prototype;_.g.getMetadata=function(Y){if(!Y)return[];var b=[],w=Y.shortViewCountText||Y.viewCountText;w&&b.push(_.Tx(w));Y.publishedTimeText&&b.push(_.Tx(Y.publishedTimeText));Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&b.push(_.rK(_.Tx(Y.upcomingEventData.upcomingEventText),Number(Y.upcomingEventData.startTime)));return b};
_.g.observeDataForBylineSeparator=function(){this.data&&_.U6(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.g.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.WH(this.metadataColor)};
_.g.getSimpleString=function(Y){return _.Tx(Y)};
_.g.isBylineHidden=function(Y){return this.noByline||!((Y==null?0:Y.longBylineText)||(Y==null?0:Y.shortBylineText))};
_.g.isMetadataHidden=function(Y){var b;return((b=this.getMetadata(Y))==null?void 0:b.length)===0};
_.g.isBylineMetadataSeparatorHidden=function(Y){return this.isMetadataHidden(Y)||!this.shouldShowVideoInfo};
_.g.isLongByline=function(Y,b){return b&&!(Y==null||!Y.longBylineText)};
_.up.Object.defineProperties(Ns.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var Y;return this.amsterdamPostMvp&&!((Y=this.data)==null||!Y.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Ns.prototype.metadataColorChanged=Ns.prototype.metadataColorChanged;Ns.prototype.observeDataForBylineSeparator=Ns.prototype.observeDataForBylineSeparator;_.z([_.n(_.FX),_.K("design:type",Object)],Ns.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ns.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Ns.prototype,"noEndpoints",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ns.prototype,"isSlimShort",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ns.prototype,"radioMeta",void 0);_.z([_.R({selector:_.Ks}),_.K("design:type",Object)],Ns.prototype,"isGridViewEnabled",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ns.prototype,"richMeta",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ns.prototype,"amsterdamPostMvp",void 0);_.z([_.R(),_.K("design:type",Boolean)],Ns.prototype,"noByline",void 0);
_.z([_.R({computed:"isLongByline(data, radioMeta)"}),_.K("design:type",Boolean)],Ns.prototype,"longByline",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ns.prototype,"truncateMetadataLine",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ns.prototype,"miniMode",void 0);_.z([_.R(),_.K("design:type",Number)],Ns.prototype,"metadataColor",void 0);_.z([_.R(),_.K("design:type",Array)],Ns.prototype,"badges",void 0);
_.z([_.R({selector:_.a8,selectorArgs:["data.videoId"]}),_.K("design:type",String)],Ns.prototype,"transferState",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ns.prototype,"isDownloading",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Ns.prototype,"typographyBump",void 0);_.z([_.xZ("#metadata-line"),_.K("design:type",HTMLElement)],Ns.prototype,"metadataLine",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ns.prototype,"observeDataForBylineSeparator",null);_.z([_.lr("metadataColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ns.prototype,"metadataColorChanged",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ns.prototype,"shouldShowVideoInfo",null);
_.z([_.t("badges"),_.K("design:type",String),_.K("design:paramtypes",[])],Ns.prototype,"inlineBadgeClass",null);_.z([_.t("longByline"),_.K("design:type",String),_.K("design:paramtypes",[])],Ns.prototype,"longBylineClass",null);_.z([_.t("data","longByline"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ns.prototype,"bylineText",null);_.z([_.t("isGridViewEnabled","data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ns.prototype,"watchFeedBigThumbs",null);
_.z([_.S({is:"ytd-video-meta-block",disableElementRegistration:!0})],Ns);
_.a(Ns,"ytd-video-meta-block",function(){if(cNj!==void 0)return cNj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return cNj=Y},{mode:_.Xd("kevlar_poly_si_batch_j080")?1:2});_.S9("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var EB=function(){var Y=_.F.apply(this,arguments)||this;Y.displayItemCount=2;Y.isBackstagePlaylist=!1;Y.isPostCompactPlaylist=!1;Y.shouldShowChannelThumbnail=!1;Y.useModernCollectionsV2=_.q("web_modern_collections_v2");return Y};
_.P(EB,_.F);_.g=EB.prototype;_.g.computeFirstVideos=function(Y,b){return Y===void 0||b===void 0?[]:Y.slice(0,b)};
_.g.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var Y=this.data.thumbnailRenderer;Y.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",Y.playlistVideoThumbnailRenderer.thumbnail);Y.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",Y.playlistCustomThumbnailRenderer.thumbnail)}};
_.g.computeThumbnailHeight=function(Y,b,w,V,H){return V?H==="BIG"?280:H==="MASSIVE"?337:234:w?240:b?72:Y?118:138};
_.g.computeThumbnailWidth=function(Y,b,w,V,H){return V?H==="MEDIUM"?450:H==="BIG"?500:H==="MASSIVE"?600:420:w?360:b?128:Y?210:246};
_.g.computeUseBiggerThumbs=function(Y){return Y&&_.q("enable_desktop_search_bigger_thumbs")};
_.g.computeShouldShowChannelThumbnail=function(Y,b){return Y&&!(b==null||!b.channelThumbnail)};
_.up.Object.defineProperties(EB.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
EB.prototype.dataChanged=EB.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],EB.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],EB.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],EB.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],EB.prototype,"displayItemCount",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],EB.prototype,"isBackstagePlaylist",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],EB.prototype,"isPostCompactPlaylist",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],EB.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.K("design:type",Boolean)],EB.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],EB.prototype,"biggerThumbsStyle",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],EB.prototype,"isDownloads",void 0);_.z([_.R({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.K("design:type",Object)],EB.prototype,"shouldShowChannelThumbnail",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],EB.prototype,"useModernCollectionsV2",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EB.prototype,"dataChanged",null);_.z([_.t("isSearch"),_.K("design:type",String),_.K("design:paramtypes",[])],EB.prototype,"stackThumbnailSize",null);_.z([_.S({is:"ytd-playlist-renderer",disableElementRegistration:!0})],EB);
_.a(EB,"ytd-playlist-renderer",function(){if(A$Q===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch)]]" data="[[data]]" height="[[computeThumbnailHeight(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" hovered="[[lockupIsHovered]]" is-double-stack="[[isSearch]]" thumbnail-size="[[stackThumbnailSize]]" use-hovered-property="" width="[[computeThumbnailWidth(isBackstagePlaylist, isPostCompactPlaylist, isSearch, useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-playlist-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-playlist-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <template is="dom-if" if="[[shouldShowChannelThumbnail]]" restamp="" class="style-scope ytd-playlist-renderer">\n      <div id="channel-info" class="style-scope ytd-playlist-renderer">\n        <a id="channel-thumbnail" hidden="[[!data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnail.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-playlist-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnail.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-playlist-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-playlist-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </template>\n    <ytd-video-meta-block id="meta" data="[[data]]" hidden="[[shouldShowChannelThumbnail]]" class="style-scope ytd-playlist-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="allowlisted-metadata-badges style-scope ytd-playlist-renderer" badges="[[data.allowlistedMetadataBadges]]" hidden="[[!data.allowlistedMetadataBadges]]">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="description-text" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ul id="list" hidden="[[isPostCompactPlaylist]]" class="style-scope ytd-playlist-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-playlist-renderer">\n      <li class="style-scope ytd-playlist-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-playlist-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n  <yt-formatted-string id="view-more" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-playlist-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-playlist-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-playlist-renderer"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);A$Q=Y}Y=A$Q;return Y},{mode:1});var U2Q;var Xoj;var c7=function(){var Y=_.F.apply(this,arguments)||this;Y.collections=!!_.q("web_modern_collections_v2");Y.startX=0;return Y};
_.P(c7,_.F);c7.prototype.onEndpointMouseDown=function(Y){this.startX=Y.clientX};
c7.prototype.onEndpointClick=function(Y){this.startX!==Y.clientX&&(Y.preventDefault(),Y.stopPropagation())};
c7.prototype.computeObjectFit=function(Y){return Y==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||Y==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||Y==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
c7.prototype.computeCardStyle=function(Y){return Y?Y.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.up.Object.defineProperties(c7.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var Y,b;return this.collections&&((Y=this.data)==null?void 0:(b=Y.searchRefinementCardRendererStyle)==null?void 0:b.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}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],c7.prototype,"data",void 0);_.z([_.R({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.K("design:type",Number)],c7.prototype,"objectFit",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.K("design:type",String)],c7.prototype,"cardStyle",void 0);
_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],c7.prototype,"roundContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],c7.prototype,"collections",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],c7.prototype,"isAlbumCard",null);_.z([_.t("data","collections","isAlbumCard"),_.K("design:type",Object),_.K("design:paramtypes",[])],c7.prototype,"collectionStack",null);
_.z([_.S({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],c7);
_.a(c7,"ytd-search-refinement-card-renderer",function(){if(Xoj!==void 0)return Xoj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-refinement-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-search-refinement-card-renderer" data="[[data.searchEndpoint]]" href$="[[computeHref_(data.searchEndpoint)]]" on-mousedown="onEndpointMouseDown" on-click="onEndpointClick" draggable="false">\n  <div id="card-thumbnail" class="style-scope ytd-search-refinement-card-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-search-refinement-card-renderer"></yt-collections-stack>\n    <yt-img-shadow object-fit="[[objectFit]]" rounded-container="[[isAlbumCard]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-search-refinement-card-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="card-title" class="style-scope ytd-search-refinement-card-renderer">\n    <div class="style-scope ytd-search-refinement-card-renderer">[[getSimpleString(data.query)]]</div>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Xoj=Y},{mode:1});var D29;var UB=function(){var Y=_.F.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.P(UB,_.F);_.z([_.R(),_.K("design:type",Object)],UB.prototype,"data",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],UB.prototype,"componentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],UB.prototype,"ytdReduxBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],UB.prototype,"isRichGrid",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],UB.prototype,"miniMode",void 0);
_.z([_.S({is:"ytd-game-details-renderer",disableElementRegistration:!0})],UB);
_.a(UB,"ytd-game-details-renderer",function(){if(D29!==void 0)return D29;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint focus-on-expand style-scope ytd-game-details-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n  <yt-img-shadow height="290" object-fit="COVER" thumbnail="[[data.boxArt]]" width="210" class="style-scope ytd-game-details-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="auto-generated" hidden="[[!data.autoGenerated]]" text="[[data.autoGenerated]]" class="style-scope ytd-game-details-renderer"></yt-formatted-string>\n  <yt-formatted-string id="live-viewers-count" hidden="[[!data.liveViewersText]]" text="[[data.liveViewersText]]" class="style-scope ytd-game-details-renderer">\n  </yt-formatted-string>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return D29=Y},{mode:1});var m2Q;var oNQ;var XH=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return Y};
_.P(XH,_.F);_.g=XH.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.currentStateData=function(Y){var b=Y||this.data;return b&&b.states&&b.currentStateId!=null?b.states.find(function(w){return w.stateId===b.currentStateId})||null:null};
_.g.currentStateRendererData=function(Y){return(Y=this.currentStateData(Y))&&Y.state&&Y.state.buttonRenderer?Y.state.buttonRenderer:null};
_.g.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())};
_.g.computeButtonIcon=function(Y){Y=this.currentStateRendererData(Y);var b;return(Y==null?0:(b=Y.icon)==null?0:b.iconType)?Y.icon.iconType.toLowerCase():null};
_.g.computeAccessibility=function(Y){return(Y=this.currentStateRendererData(Y))&&Y.accessibilityData?Y.accessibilityData.accessibilityData||null:null};
_.g.computeButtonClass=function(Y){var b=this.currentStateRendererData(Y);if(!b)return"";Y="";var w=b.style;w&&(Y+=w.toLowerCase().replace(/_/g,"-")+" ");(b=b.size)&&(Y+=b.toLowerCase().replace(/_/g,"-")+" ");return Y.trim()};
_.g.computeServiceEndpoint=function(Y){if(!Y)return null;var b=Y&&Y.serviceEndpoint,w=this.get("command.commandMetadata.webCommandMetadata.sendPost",Y);return b?b:w&&Y.command?Y.command:null};
_.g.computeBellMenuItemParams=function(Y){var b;Y=(b=_.v(Y==null?void 0:Y.command,_.ln))==null?void 0:b.commands;if(!Y||Y.length===0)return null;b=_.v(Y[0],_.tI);var w,V;return(b==null?0:(w=b.popup)==null?0:(V=w.menuPopupRenderer)==null?0:V.items)?b.popup.menuPopupRenderer.items.map(function(H){return H.menuServiceItemRenderer.trackingParams}):null};
_.g.handleBellMenuOpenSelectedAction=function(Y){var b=Y.trackingParams,w=this.computeBellMenuItemParams(this.data);this.data&&b&&w&&w.includes(b)&&this.ytRenderButtonBehavior._setButtonIcon(Y.icon.iconType.toLowerCase())};
_.g.onYtServiceRequestCompleted=function(Y,b){(Y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))&&this.set("data",Y)};
_.g.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.g.resetState=function(){this.set("data.currentStateId",3)};
_.g.onYtButtonTapHandler=function(){if(this.data){var Y=this.currentStateRendererData(this.data);Y&&this.ytRendererBehavior.logExplicitClick(Y)}};
XH.prototype.onYtServiceRequestError=XH.prototype.onYtServiceRequestError;XH.prototype.onYtServiceRequestCompleted=XH.prototype.onYtServiceRequestCompleted;XH.prototype.stateChanged=XH.prototype.stateChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],XH.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(Zi.YtRenderButtonBehavior),_.K("design:type",Object)],XH.prototype,"ytRenderButtonBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],XH.prototype,"data",void 0);_.z([_.vX("data","data.currentStateId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XH.prototype,"stateChanged",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],XH.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],XH.prototype,"onYtServiceRequestError",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],XH);
_.a(XH,"ytd-subscription-notification-toggle-button-renderer",function(){if(oNQ!==void 0)return oNQ;var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return oNQ=Y},{mode:1});var IhI;var Du=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};Y.tapHandler=function(){if(Y.data){var b=Y.currentStateRendererData();b&&Y.ytRendererBehavior.logExplicitClick(b)}};
return Y};
_.P(Du,_.F);_.g=Du.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.currentStateData=function(){var Y=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(b){return b.stateId===Y.data.currentStateId})||null:null};
_.g.currentStateRendererData=function(){var Y=this.currentStateData();return Y&&Y.state&&Y.state.buttonRenderer?Y.state.buttonRenderer:null};
_.g.computeAccessibilityLabel=function(){var Y,b,w;return(Y=this.currentStateRendererData())==null?void 0:(b=Y.accessibilityData)==null?void 0:(w=b.accessibilityData)==null?void 0:w.label};
_.g.computeBellMenuItemParams=function(){var Y,b,w=(b=_.v((Y=this.data)==null?void 0:Y.command,_.ln))==null?void 0:b.commands;if(!w||w.length===0)return null;Y=_.v(w[0],_.tI);var V,H;return(Y==null?0:(V=Y.popup)==null?0:(H=V.menuPopupRenderer)==null?0:H.items)?Y.popup.menuPopupRenderer.items.map(function(f){return f.menuServiceItemRenderer.trackingParams}):null};
_.g.handleBellMenuOpenSelectedAction=function(Y){var b=Y.trackingParams,w=this.computeBellMenuItemParams();if(this.data&&b&&w&&w.includes(b)&&(Y==null||!Y.isDisabled)){var V;((V=_.v(Y.serviceEndpoint,_.x7))==null?void 0:V.signal)!=="CLIENT_SIGNAL"&&(this.icon=Y.icon.iconType)}};
_.g.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.g.onYtServiceRequestCompleted=function(Y,b){if(Y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))this.icon=void 0,this.set("data",Y)};
_.g.onYtServiceRequestError=function(){this.icon=void 0};
_.up.Object.defineProperties(Du.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data,b=this.textLabel,w=this.hostElement,V=this.computeAccessibilityLabel(),H=this.tapHandler,f=this.isOverlay?"overlay":"mono",E=(Y==null?0:Y.disableButton)?"disabled":"active";b=b?_.LA(b):void 0;return{style:f,type:"tonal",state:E,size:"M",focused:!1,formattedButtonText:b,iconPosition:"leading-trailing",onTap:TJK(Y,H,w),accessibilityLabel:V}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var Y=this.currentStateRendererData(),b,w,V=(w=this.icon)!=null?w:Y==null?void 0:(b=Y.icon)==null?void 0:b.iconType;if(V)return _.IR(V)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.secondaryIcon)==null?void 0:b.iconType;if(w)return _.IR(w)}}});
Du.prototype.onYtServiceRequestError=Du.prototype.onYtServiceRequestError;Du.prototype.onYtServiceRequestCompleted=Du.prototype.onYtServiceRequestCompleted;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Du.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Du.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Du.prototype,"textLabel",void 0);
_.z([_.R(),_.K("design:type",String)],Du.prototype,"icon",void 0);_.z([_.R(),_.K("design:type",Boolean)],Du.prototype,"isOverlay",void 0);_.z([_.t("data.*","textLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Du.prototype,"computedButtonShape",null);_.z([_.t("data.*","icon"),_.K("design:type",Object),_.K("design:paramtypes",[])],Du.prototype,"computedIcon",null);_.z([_.t("data.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],Du.prototype,"computedSecondaryIcon",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],Du.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Du.prototype,"onYtServiceRequestError",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Du);
_.a(Du,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(IhI!==void 0)return IhI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return IhI=Y},{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var knU;_.f_(ofI,"yt-animated-action",{props:{backgroundLottieRef:_.YX,foregroundLottieRef:_.YX,wrapperClass:_.YX,disableAnimation:_.YX},unsafeExternallySettableAttributes:new Set(["key"])});var mL=function(){var Y=_.F.apply(this,arguments)||this;Y.animatedActionEnabled=_.q("web_animated_actions");Y.foregroundLottieRef={};Y.backgroundLottieRef={};Y.forceIconOnly=!1;Y.showTextWhileAnimating=!1;Y.keyboardFocused=!1;Y.isAnimating=!1;Y.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return Y};
_.P(mL,_.F);_.g=mL.prototype;_.g.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.g.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]]"}}}}}};
_.g.attached=function(){this.keyboardFocused=!1};
_.g.onYtServiceRequestSent=function(Y,b){(this.get("endpoint.subscribeEndpoint",b)||this.get("endpoint.unsubscribeEndpoint",b))&&this.updateSubscriptionState(!this.subscribed)};
_.g.onYtServiceRequestCompleted=function(Y,b){(Y=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",b.data))&&this.bellButton&&(this.bellButton.data=Y)};
_.g.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.m_(this.hostElement)};
_.g.onPlayerSubscribe=function(Y){this.isCompactRed()||Y!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.g.onPlayerUnsubscribe=function(Y){this.isCompactRed()||Y!==this.data.channelId||this.updateSubscriptionState(!1)};
_.g.handleUpdateSubscribeButtonAction=function(Y){Y=_.v(Y,aXk);var b;Y&&Y.channelId===((b=this.data)==null?void 0:b.channelId)&&this.updateSubscriptionState(!!Y.subscribed)};
_.g.computeButtonStyle=function(Y){return this.get("style.styleType",Y)||null};
_.g.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.g.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.g.updateSubscriptionState=function(Y){if(Y!==this.subscribed){this.set("data.subscribed",Y);var b,w=(b=this.data)==null?void 0:b.subscribedEntityKey;w&&this.ytdReduxBehavior.dispatch(_.qo("subscriptionStateEntity",w,{key:w,subscribed:Y}));this.isCompactRed()||_.Ua(this.hostElement,"yt-subscription-changed",Y);Y||(_.Xx(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!Y),Y&&this.hasBellButton&&this.startAnimation())}};
_.g.startAnimation=function(){var Y=this;if(!this.isAnimating){var b=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var w;(w=this.backgroundLottieRef.lottieEl)==null||w.goToAndPlay(0);var V;(V=this.foregroundLottieRef.lottieEl)==null||V.goToAndPlay(0);_.Lb.addJob(function(){Y.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Lb.addJob(function(){Y.updateContainerToFitContent(!!Y.subscribed,!0)},2,1500);
_.Lb.addJob(function(){Y.isAnimating=!1},2,b)}};
_.g.maybeAnimateBellIcon=function(){var Y=_.cX(this.hostElement).querySelector("yt-animated-icon");if(Y){var b;(b=Y.animationRef.lottieEl)==null||b.goToAndPlay(0)}};
_.g.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.g.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.g.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var Y;this.unsubscribedWidth=(Y=this.subscribeButtonShape)==null?void 0:Y.getBoundingClientRect().width}var b;this.subscribedWidth=(b=this.bellButton)==null?void 0:b.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.g.updateContainerToFitContent=function(Y,b){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(Y?(Y=this.subscribedWidth,b=this.isAnimating&&!b,this.subscribedIconOnlyWidth===void 0||b||(Y=this.subscribedIconOnlyWidth),this.hostElement.style.width=Y+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.g.clearContainerSize=function(){this.hostElement.style.width=""};
_.g.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.g.maybeSetSubscribedButtonIconOnlyWidth=function(){var Y=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var b;Y.subscribedIconOnlyWidth=(b=Y.bellButton)==null?void 0:b.getBoundingClientRect().width;requestAnimationFrame(function(){if(Y.bellButton){var w;Y.bellButton.textLabel=
(w=Y.data)==null?void 0:w.subscribedButtonText}})})))};
_.up.Object.defineProperties(mL.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){if(this.showTextWhileAnimating&&(this.isAnimating||!this.subscribed)){var Y;return(Y=this.data)==null?void 0:Y.subscribedButtonText}var b;return this.forceIconOnly?void 0:(b=this.data)==null?void 0:b.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=((Y=this.data)==null?void 0:(b=Y.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"subscribe",timings:w,enabled:w.length>0&&!this.subscribed,experimentEnabled:w.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.subscribed&&((Y=this.data)==null?void 0:Y.hideWhenUnsubscribed)||!this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
subscribeButtonInvisible:{configurable:!0,enumerable:!0,get:function(){return this.animatedActionEnabled&&this.hasBellButton&&this.subscribed}},
unsubscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){return!this.animatedActionEnabled&&!this.subscribed}},
buttonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var b=Y.renderer;var w=Y.element;var V=Y.subscribed;var H=Y.commandController;var f=Y.isOverlay;Y=Y.stopPropagation;var E=b2e(b,V);f&&(E.style="overlay");f=Object;var U=f.assign,X;a:switch((X=b.style)==null?void 0:X.styleType){case "COMPACT_GRAY":case "COMPACT_RED":X={size:"S"};break a;default:X={size:"M"}}var I=Y9G(b,
V);var k=(k=V?b.subscribedButtonText:b.unsubscribedButtonText)?_.LA(k):void 0;return U.call(f,{},E,X,{focused:!1,toggled:V,accessibilityLabel:I,formattedButtonText:k,onTap:u8K(b,V,w,H,Y)})}}}});
mL.prototype.onMouseDown=mL.prototype.onMouseDown;mL.prototype.onDataChanged=mL.prototype.onDataChanged;mL.prototype.observedSubscribed=mL.prototype.observedSubscribed;mL.prototype.onYtServiceRequestCompleted=mL.prototype.onYtServiceRequestCompleted;mL.prototype.onYtServiceRequestSent=mL.prototype.onYtServiceRequestSent;mL.prototype.maybeUpdateBellButtonText=mL.prototype.maybeUpdateBellButtonText;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],mL.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mL.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],mL.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],mL.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mL.prototype,"data",void 0);
_.z([_.R({selectorArgs:["data.subscribedEntityKey"],selector:vnq}),_.K("design:type",Object)],mL.prototype,"subscriptionStateEntity",void 0);_.z([_.R({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.K("design:type",Boolean)],mL.prototype,"subscribed",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],mL.prototype,"branded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mL.prototype,"animatedActionEnabled",void 0);
_.z([_.R(),_.K("design:type",Object)],mL.prototype,"foregroundLottieRef",void 0);_.z([_.R(),_.K("design:type",Object)],mL.prototype,"backgroundLottieRef",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],mL.prototype,"overlayButton",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.K("design:type",Object)],mL.prototype,"buttonStyle",void 0);_.z([_.R(),_.K("design:type",Object)],mL.prototype,"forceIconOnly",void 0);
_.z([_.R(),_.K("design:type",Object)],mL.prototype,"showTextWhileAnimating",void 0);_.z([_.R({value:function(){return!!_.fH().resolve(_.HQ(_.mu))&&_.q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.K("design:type",Boolean)],mL.prototype,"useKeyboardFocused",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mL.prototype,"keyboardFocused",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mL.prototype,"isAnimating",void 0);_.z([_.t("data.notificationPreferenceButton.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],mL.prototype,"hasBellButton",null);
_.z([_.lr("subscribedButtonText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mL.prototype,"maybeUpdateBellButtonText",null);_.z([_.t("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],mL.prototype,"subscribedButtonText",null);_.z([_.t("data.timedAnimationData.animationTiming","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],mL.prototype,"smartimationSettings",null);
_.z([_.R({reflectToAttribute:!0}),_.t("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],mL.prototype,"subscribeButtonHidden",null);_.z([_.R({reflectToAttribute:!0}),_.t("subscribed","hasBellButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],mL.prototype,"subscribeButtonInvisible",null);
_.z([_.R({reflectToAttribute:!0}),_.t("subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],mL.prototype,"unsubscribeButtonHidden",null);_.z([_.xZ("ytd-subscription-notification-toggle-button-renderer-next"),_.K("design:type",Object)],mL.prototype,"bellButton",void 0);_.z([_.xZ("#subscribe-button-shape"),_.K("design:type",HTMLElement)],mL.prototype,"subscribeButtonShape",void 0);
_.z([_.t("overlayButton","subscribed","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mL.prototype,"buttonShape",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],mL.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],mL.prototype,"onYtServiceRequestCompleted",null);
_.z([_.lr("subscribed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mL.prototype,"observedSubscribed",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mL.prototype,"onDataChanged",null);_.z([_.kZ("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mL.prototype,"onMouseDown",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],mL);
_.a(mL,"ytd-subscribe-button-renderer",function(){if(knU!==void 0)return knU;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscribe-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-smartimation settings="[[smartimationSettings]]" class="style-scope ytd-subscribe-button-renderer">\n  <yt-button-shape id="subscribe-button-shape" data="[[buttonShape]]" hidden="[[subscribeButtonHidden]]" invisible$="[[subscribeButtonInvisible]]" class="style-scope ytd-subscribe-button-renderer">\n  </yt-button-shape>\n  <div id="notification-preference-toggle-button" hidden="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  <yt-animated-action background-lottie-ref="[[backgroundLottieRef]]" foreground-lottie-ref="[[foregroundLottieRef]]" key="yt-animated-action" class="style-scope ytd-subscribe-button-renderer">\n    <div id="notification-preference-button" hidden="[[unsubscribeButtonHidden]]" invisible$="[[!subscribed]]" class="style-scope ytd-subscribe-button-renderer"></div>\n  </yt-animated-action>\n</yt-smartimation>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return knU=Y},{mode:1});var of=function(){var Y=_.F.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.P(of,_.F);of.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],of.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],of.prototype,"isRichGrid",void 0);_.z([_.S({is:"ytd-game-card-renderer",disableElementRegistration:!0})],of);
_.a(of,"ytd-game-card-renderer",function(){if(m2Q!==void 0)return m2Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-game-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="game" class="style-scope ytd-game-card-renderer"></div>\n<div id="subscribe-button" class="style-scope ytd-game-card-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return m2Q=Y},{mode:1});var If={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.q("defer_menus")&&!Hco?0:void 0,waitForSignal:"eocs"};var lhU;var hpI;var kg=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return Y};
_.P(kg,_.F);_.g=kg.prototype;_.g.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.g.onSeriesReminderStateEntityChange=function(){var Y,b,w;((Y=this.eventReminderStateEntity)==null?0:Y.key)&&((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((w=this.eventReminderStateEntity)==null?void 0:w.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.qo("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.g.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.g.onYtServiceRequestError=function(){var Y;this.updateReminderStateEntitiesFromButtonState((Y=this.data)==null?void 0:Y.currentState)};
_.g.handleUpdateUpcomingEventReminderButtonStateCommand=function(Y){if(Y=_.v(Y,bLI)){var b,w=(b=this.data)==null?void 0:b.targetId;w&&Y.targetId===w&&_.KV(this.updateReminderStateEntitiesFromButtonState.bind(this,Y.state))}};
_.g.getButtonStateFromReminderState=function(){var Y;if(((Y=this.seriesReminderStateEntity)==null?void 0:Y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var b;if(((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var w,V;if(((w=this.seriesReminderStateEntity)==null?void 0:w.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((V=this.eventReminderStateEntity)==
null?void 0:V.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var H;return(H=this.data)==null?void 0:H.currentState};
_.g.updateReminderStateEntitiesFromButtonState=function(Y){if(Y){switch(Y){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":Y="UPCOMING_EVENT_REMINDER_STATE_NONE";var b="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":Y="UPCOMING_EVENT_REMINDER_STATE_SINGLE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":Y="UPCOMING_EVENT_REMINDER_STATE_NONE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var w;
((w=this.eventReminderStateEntity)==null?0:w.key)&&this.ytdReduxBehavior.dispatch(_.qo("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:Y})));var V;((V=this.seriesReminderStateEntity)==null?0:V.key)&&this.ytdReduxBehavior.dispatch(_.qo("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:b})))}};
_.up.Object.defineProperties(kg.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=this.getButtonStateFromReminderState(),b,w;if(Y&&((b=this.data)==null?0:(w=b.states)==null?0:w.length))for(b=_.N(this.data.states),w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0;if(((V=_.v(w,waI))==null?void 0:V.state)===Y)return _.v(w,waI)}}}});
kg.prototype.onYtServiceRequestError=kg.prototype.onYtServiceRequestError;kg.prototype.onYtServiceRequestCompleted=kg.prototype.onYtServiceRequestCompleted;kg.prototype.onSeriesReminderStateEntityChange=kg.prototype.onSeriesReminderStateEntityChange;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],kg.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kg.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kg.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],kg.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kg.prototype,"data",void 0);_.z([_.R({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:ZwK}),_.K("design:type",Object)],kg.prototype,"eventReminderStateEntity",void 0);
_.z([_.R({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(Y,b){return _.kt(Y.entities,"sportsSeriesReminderStateEntity",b)}}),
_.K("design:type",Object)],kg.prototype,"seriesReminderStateEntity",void 0);_.z([_.t("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],kg.prototype,"currentButtonStateRenderer",null);_.z([_.lr("seriesReminderStateEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kg.prototype,"onSeriesReminderStateEntityChange",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kg.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kg.prototype,"onYtServiceRequestError",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],kg);
_.a(kg,"ytd-upcoming-event-reminder-button-renderer",function(){if(hpI!==void 0)return hpI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-upcoming-event-reminder-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-upcoming-event-reminder-button-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return hpI=Y},{mode:1});var x2t;var lZ=function(){return _.F.apply(this,arguments)||this};
_.P(lZ,_.F);lZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.up.Object.defineProperties(lZ.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(_.q("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lZ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lZ.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],lZ.prototype,"shelfDismissal",void 0);_.z([_.t("data.responseText"),_.K("design:type",Object),_.K("design:paramtypes",[])],lZ.prototype,"text",null);
_.z([_.t("data.responseText"),_.K("design:type",Object),_.K("design:paramtypes",[])],lZ.prototype,"textAriaLabel",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],lZ);
_.a(lZ,"ytd-notification-multi-action-renderer",function(){if(x2t!==void 0)return x2t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-multi-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="text" aria-label$="[[textAriaLabel]]" class="style-scope ytd-notification-multi-action-renderer">[[text]]</span>\n<div id="buttons" class="style-scope ytd-notification-multi-action-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return x2t=Y},{mode:1});var ql$;var hH=function(){return _.F.apply(this,arguments)||this};
_.P(hH,_.F);hH.prototype.ready=function(){var Y=this;_.E6(this.hostElement).querySelector("#undo").addEventListener("tap",function(){Y.onUndoTap()})};
hH.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hH.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],hH);
_.a(hH,"ytd-notification-text-renderer",function(){if(ql$!==void 0)return ql$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.successResponseText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n<yt-formatted-string id="undo" text="[[data.undoText]]" class="style-scope ytd-notification-text-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ql$=Y},{mode:1});var s4o;var xg=function(){var Y=_.F.apply(this,arguments)||this;Y.mouseOverDelayJobId=0;Y.fadeInImageDelayJobId=0;Y.startTimeMs=-1;Y.loadingStartTimeMs=-1;Y.loadingEndTimeMs=-1;Y.hasVideoPreview=!1;return Y};
_.P(xg,_.F);_.g=xg.prototype;_.g.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.g.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.g.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.g.showThumbnail=function(){var Y=this;this.csn=_.dO();_.aP("fmth");_.Lb.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Xl(_.Lb,function(){Y.loadingStartTimeMs=(0,_.gG)();var b=_.E6(Y.hostElement).querySelector("#thumbnail");b.complete?Y.displayMouseOverImage():b.addEventListener("load",_.Io(Y,Y.displayMouseOverImage))},150):_.U6(_.E6(this.hostElement).querySelector("#play"),"show",!0)};
_.g.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.g.onTap=function(){this.removeVideoPreview()};
_.g.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var Y=this.videoId,b=this.csn,w=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,V=this.startTimeMs,H=this.hasVideoPreview,f=_.nA(this.trackingParams),E={isMovingThumbnail:H};H&&V>0&&(w>0&&(E.movingThumbnailLoadingDurationMs=Math.round(w)),E.durationHoveredMs=Math.round((0,_.gG)()-V));Y&&(E.videoId=Y);_.un(b,f,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:E});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.g.removeVideoPreview=function(){_.Lb.cancelJob(this.mouseOverDelayJobId);_.Lb.cancelJob(this.fadeInImageDelayJobId);var Y=_.E6(this.hostElement).querySelector("#thumbnail");_.U6(Y,"fade-in",!1);Y.removeEventListener("load",_.Io(this,this.displayMouseOverImage));Y=_.E6(this.hostElement).querySelector("#play");_.U6(Y,"fade-in",!1);_.U6(Y,"show",!1)};
_.g.displayMouseOverImage=function(){var Y=_.E6(this.hostElement).querySelector("#thumbnail"),b=_.E6(this.hostElement).querySelector("#play");this.isImageAvailable(Y)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.gG)(),this.startTimeMs=(0,_.gG)(),this.fadeInImageDelayJobId=_.Xl(_.Lb,function(){_.U6(Y,"fade-in",!0)},50)):_.U6(b,"fade-in",!0)};
_.g.computeThumbnail=function(Y,b){var w;Y&&Y.movingThumbnailDetails&&Y.movingThumbnailDetails.thumbnails&&b?w=_.NR(Y.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):w=b?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(w)return _.PN(w)};
_.g.isImageAvailable=function(Y){return!(!Y.src||Y.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||Y.naturalWidth===120)};
xg.prototype.onTap=xg.prototype.onTap;xg.prototype.dataChanged=xg.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],xg.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],xg.prototype,"csn",void 0);_.z([_.R(),_.K("design:type",Object)],xg.prototype,"trackingParams",void 0);
_.z([_.R(),_.K("design:type",String)],xg.prototype,"videoId",void 0);_.z([_.R(),_.K("design:type",Boolean)],xg.prototype,"isAttachedAndDataSet",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xg.prototype,"dataChanged",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xg.prototype,"onTap",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],xg);
_.a(xg,"ytd-moving-thumbnail-renderer",function(){if(s4o!==void 0)return s4o;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-moving-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img id="thumbnail" alt="" src$="[[computeThumbnail(data, isAttachedAndDataSet)]]" class="style-scope ytd-moving-thumbnail-renderer">\n<yt-icon id="play" icon="play_all" class="style-scope ytd-moving-thumbnail-renderer"></yt-icon>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return s4o=Y},{mode:1});var Q4U;_.ki=function(Y){this.hostElement=Y;this.eventSink=null;this.eventList=[]};
_.ki.prototype.shouldForward=function(){var Y,b;return(b=(Y=this.eventSink)==null?void 0:Y.isConnected)!=null?b:document.body.contains(this.eventSink)};
_.ki.prototype.start=function(Y,b){this.eventSink&&this.stop();for(var w=0;w<Y.length;w++)this.hostElement.addEventListener(Y[w],_.Io(this,this.forwardEvent));var V;this.eventSink=(V=b.hostElement)!=null?V:b;this.eventList=Y};
_.ki.prototype.stop=function(){for(var Y=0;Y<this.eventList.length;Y++)this.hostElement.removeEventListener(this.eventList[Y],_.Io(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.ki.prototype.forwardEvent=function(Y,b){this.shouldForward()&&(Y.stopPropagation(),this.eventSink instanceof Element?_.Ua(this.eventSink,Y.type,b):_.Sk(new _.BQ("eventSink is not an element")))};_.qs={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.ki(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(Y,b){this.forwarder_.start(Y,b)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var sB=function(){return _.F.apply(this,arguments)||this};
_.P(sB,_.F);_.g=sB.prototype;_.g.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=_.zO("HTML_DIR")==="rtl"?"right":"left"};
_.g.dataChanged=function(){this.popupOpen=!1};
_.g.computeAriaLabel=function(Y){return _.v(Y,lzj).label};
_.g.onTap=function(Y){Y.stopPropagation();Y.preventDefault();this.data.command&&_.fH().resolve(_.Nn).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.g.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.g.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
sB.prototype.onPopupClosed=sB.prototype.onPopupClosed;sB.prototype.onPopupOpened=sB.prototype.onPopupOpened;sB.prototype.onTap=sB.prototype.onTap;sB.prototype.dataChanged=sB.prototype.dataChanged;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],sB.prototype,"eventForwardingBehavior",void 0);_.z([_.n(_.a$),_.K("design:type",Object)],sB.prototype,"ironButtonState",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],sB.prototype,"componentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],sB.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:-1}),_.K("design:type",Number)],sB.prototype,"tabindex",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.K("design:type",Object)],sB.prototype,"ariaLabel",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],sB.prototype,"disableTooltips",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],sB.prototype,"popupOpen",void 0);
_.z([_.R(),_.K("design:type",Element)],sB.prototype,"eventSink",void 0);_.z([_.xZ("#tooltip"),_.K("design:type",Object)],sB.prototype,"tooltip",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sB.prototype,"dataChanged",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],sB.prototype,"onTap",null);
_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sB.prototype,"onPopupOpened",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sB.prototype,"onPopupClosed",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],sB);
_.a(sB,"ytd-thumbnail-overlay-button-renderer",function(){if(Q4U!==void 0)return Q4U;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Q4U=Y},{mode:1});var vNo;var Qj=function(){return _.F.apply(this,arguments)||this};
_.P(Qj,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Qj.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Qj.prototype,"disableAnimation",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Qj.prototype,"rounded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Qj.prototype,"transparentBackground",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Qj.prototype,"noPadding",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Qj);
_.a(Qj,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(vNo!==void 0)return vNo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-endorsement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="inner-background" class="style-scope ytd-thumbnail-overlay-endorsement-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></yt-formatted-string>\n  <span id="bottom-right-corner" class="style-scope ytd-thumbnail-overlay-endorsement-renderer"></span>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return vNo=Y},{mode:1});var Pd9;var v7=function(){return _.F.apply(this,arguments)||this};
_.P(v7,_.F);v7.prototype.computeIconPosition=function(Y){return this.get("iconPosition",Y)||null};
v7.prototype.computeIconStyle=function(Y){return this.get("iconStyle",Y)||null};
v7.prototype.computeIsIconStyleFilled=function(Y){if(!Y)return!1;var b;return Y.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((b=Y.icon)==null?void 0:b.iconType)==="ERROR_BLACK"};
_.z([_.R(),_.K("design:type",Object)],v7.prototype,"data",void 0);_.z([_.R({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.K("design:type",Object)],v7.prototype,"iconPosition",void 0);_.z([_.R({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.K("design:type",Object)],v7.prototype,"iconStyle",void 0);_.z([_.R({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],v7.prototype,"iconStyleFilled",void 0);
_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],v7);
_.a(v7,"ytd-thumbnail-overlay-icon-renderer",function(){if(Pd9!==void 0)return Pd9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-icon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon default-to-filled="[[iconStyleFilled]]" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-icon-renderer"></yt-icon>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Pd9=Y},{mode:1});var ZqI;var P7=function(){return _.F.apply(this,arguments)||this};
_.P(P7,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],P7.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],P7);
_.a(P7,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(ZqI!==void 0)return ZqI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-inline-unplayable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-inline-unplayable-renderer"></yt-icon>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ZqI=Y},{mode:1});var BJo;var Zu=function(){var Y=_.F.apply(this,arguments)||this;Y.isPreviewLoading=!1;return Y};
_.P(Zu,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Zu.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Zu.prototype,"isPreviewLoading",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Zu);
_.a(Zu,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(BJo!==void 0)return BJo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-loading-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="style-scope ytd-thumbnail-overlay-loading-preview-renderer">[[getSimpleString(data.text)]]</span>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return BJo=Y},{mode:1});var nNd;var B7=function(){return _.F.apply(this,arguments)||this};
_.P(B7,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],B7.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],B7);
_.a(B7,"ytd-thumbnail-overlay-pinking-renderer",function(){if(nNd!==void 0)return nNd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-pinking-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg class="pinking-left style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="left-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="0,0 1,0 5,4 1,8 0,8"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#left-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n<svg class="pinking-right style-scope ytd-thumbnail-overlay-pinking-renderer" shape-rendering="crispEdges">\n  <defs class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n    <pattern id="right-pattern" width="5" height="8" patternUnits="userSpaceOnUse" class="style-scope ytd-thumbnail-overlay-pinking-renderer">\n      <polygon class="pinking style-scope ytd-thumbnail-overlay-pinking-renderer" points="4,0 0,4 4,8 5,8 5,0"></polygon>\n    </pattern>\n  </defs>\n  <rect fill="url(#right-pattern)" width="5" height="100%" class="style-scope ytd-thumbnail-overlay-pinking-renderer"></rect>\n</svg>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return nNd=Y},{mode:1});var M$9;var ne=function(){var Y=_.F.apply(this,arguments)||this;Y.disableTooltips=!1;Y.isLoading=!1;Y.useExpandableTooltip=!1;Y.toggled=!1;Y.hovered=!1;Y.mouseoverDelayJobId=0;Y.toggleDelayJobId=0;Y.expandAnimationDelayJobId=0;return Y};
_.P(ne,_.F);_.g=ne.prototype;_.g.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");_.E6(this.hostElement).querySelector("#tooltip").position=_.zO("HTML_DIR")==="rtl"?"right":"left"};
_.g.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Lb.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Lb.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Lb.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.g.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Lb.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Lb.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Lb.cancelJob(this.expandAnimationDelayJobId)};
_.g.computeIcon=function(Y,b,w){return(Y=w?b:Y)&&Y.iconType?_.IR(Y.iconType):void 0};
_.g.computeAriaLabel=function(Y,b,w){return _.v(w?b:Y,lzj).label};
_.g.computeTooltip=function(Y,b,w){return w?b:Y};
_.g.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.g.computeIconOnHover=function(Y,b){if((Y==null?0:Y.iconType)&&!b)return _.IR(Y.iconType)};
_.g.onTap=function(Y){var b=this;Y.stopPropagation();Y.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(Y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(Y),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Xl(_.Lb,function(){b.hovered=!1;b.data&&!b.data.toggledServiceEndpoint&&(b.expandAnimationDelayJobId=_.Xl(_.Lb,function(){b.set("data.isToggled",
!1)},200))},2E3))};
_.g.onMouseenter=function(){var Y=this;this.mouseoverDelayJobId=_.Xl(_.Lb,function(){Y.hovered=!0},300)};
_.g.onMouseleave=function(){_.Lb.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.g.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.g.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.g.onServiceRequestCompleted=function(Y,b){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(b)||this.set("data.isToggled",!this.data.isToggled)};
_.g.serviceRequestWasSuccessful=function(Y){return _.v(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.aU)?Y.data.status==="STATUS_SUCCEEDED":!0};
ne.prototype.onServiceRequestCompleted=ne.prototype.onServiceRequestCompleted;ne.prototype.onPopupClosed=ne.prototype.onPopupClosed;ne.prototype.onPopupOpened=ne.prototype.onPopupOpened;ne.prototype.onMouseleave=ne.prototype.onMouseleave;ne.prototype.dataChanged=ne.prototype.dataChanged;_.z([_.n(_.a$),_.K("design:type",Object)],ne.prototype,"ironButtonState",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ne.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],ne.prototype,"ytEventForwardingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ne.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.K("design:type",Object)],ne.prototype,"ariaLabel",void 0);_.z([_.R(),_.K("design:type",Object)],ne.prototype,"disableTooltips",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],ne.prototype,"popupOpen",void 0);_.z([_.R(),_.K("design:type",Object)],ne.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Element)],ne.prototype,"eventSink",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ne.prototype,"useExpandableTooltip",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.K("design:type",Object)],ne.prototype,"toggled",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ne.prototype,"hovered",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.K("design:type",Object)],ne.prototype,"iconOnHover",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ne.prototype,"dataChanged",null);
_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ne.prototype,"onMouseleave",null);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ne.prototype,"onPopupOpened",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ne.prototype,"onPopupClosed",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],ne.prototype,"onServiceRequestCompleted",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],ne);
_.a(ne,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(M$9!==void 0)return M$9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"><div id="label" on-click="onTap" hidden="[[disableTooltips]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n    [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n  </div></div><yt-icon id="icon-on-hover-element" icon="[[iconOnHover]]" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><yt-icon id="icon" icon="[[computeIcon(data.untoggledIcon, data.toggledIcon, data.isToggled)]]" on-click="onTap" on-mouseenter="onMouseenter" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-toggle-button-renderer">\n  [[computeTooltip(data.untoggledTooltip, data.toggledTooltip, data.isToggled)]]\n</tp-yt-paper-tooltip>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return M$9=Y},{mode:_.Xd("kevlar_poly_si_batch_j053")?1:2});var ep9;var poQ=_.b8(function(Y){var b=Y.data;var w=Y.thumbnailSize;var V=function(){return b().enableSegmentView};
return _.m("yt-thumbnail-overlay-progress-bar-view-model",{class:_.hj("ytThumbnailOverlayProgressBarHost",function(){return wMG(w==null?void 0:w())})},_.m(_.h,{cond:V,
then:function(){return _.m("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.m("div",{class:_.qR("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+b().startPercent+"%"}}),_.m("div",{class:_.qR("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+b().segmentDurationPercent+"%"}},_.m("div",{class:_.qR("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.m("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.m("div",null," ",function(){return b().segmentLabel})),_.m("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.m("div",{class:_.qR("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.m(_.h,{cond:function(){return!V()&&b().startPercent},
then:function(){var H={};return _.m("div",{class:_.qR("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(H.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.q("web_enable_modern_progress_bar_overlay"),H))},_.m("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+b().startPercent+"%"}}))}}))},"Q");
poQ.idomCompat=!0;var OqC=_.b8(function(Y){var b=_.o1(),w=_.rn(function(H){var f,E,U;a:{var X=(f=Y.data())==null?void 0:f.animationActivationTargetId;f=((E=Y.data())==null?void 0:E.animationActivationEntityKey)||"";E=(U=Y.data())==null?void 0:U.animationActivationEntitySelectorType;if(f&&X)switch(E){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":H=_.kt(H.entities,"playerStateEntity",f);U=_.fH().resolve(_.HQ(_.Ck));X=!!(H&&H.videoId===X&&(U==null?0:U.isMiniplayerActive()));X={activated:X,playAnimation:X&&
H.playerState==="PLAYER_STATE_PLAYING"};break a}X=void 0}return X});
_.tl(function(){var H;if((H=w())==null?0:H.activated){var f;if((f=w())==null?0:f.playAnimation){var E;(E=b.lottieEl)==null||E.goToAndPlay(0)}else{var U;(U=b.lottieEl)==null||U.goToAndStop(0)}}},"MDTl2e");
var V=function(){var H,f=!((H=w())==null||!H.activated);if(Y.data()){H=Y.data();var E=void 0;H.icon&&(E=_.X3G(H.icon),E=huM(E));var U=void 0,X;if((X=H.backgroundColor)==null?0:X.lightTheme){var I;U={backgroundColor:iW((I=H.backgroundColor)==null?void 0:I.lightTheme,"0.8")}}if(H.text||E||f){if(f&&H.lottieData&&b){I=H.lottieData;var k,l,x;X={animationConfig:{name:I.url,path:I.url,autoplay:(k=I.settings)==null?void 0:k.autoplay,loop:(x=(l=I.settings)==null?void 0:l.loop)!=null?x:!0},animationRef:b}}else X=
void 0;if(f)k=16;else b:switch(H.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":k=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":k=18;break b;default:k=16}f={type:k,text:f&&H.animatedText?H.animatedText:H.text,icon:E,customColors:U,animation:X}}else f=void 0}else f=void 0;return f};
return _.m("yt-thumbnail-badge-view-model",{class:_.hj("yt-thumbnail-badge-view-model-wiz",Y.class)},_.m(_.h,{cond:V,then:function(){return _.m(_.YE,{data:function(){return V()}})}}))},"R");var t$j=_.b8(function(Y){var b={},w={};return _.m("yt-thumbnail-bottom-overlay-view-model",{class:_.hj("ytThumbnailBottomOverlayViewModelHost",(b.ytThumbnailBottomOverlayViewModelHostBackground=function(){return Y.data().enableGradientBackground},b))},_.m(_.OH,{data:function(){return Y.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(V){return _.m(poQ,{data:V.data,
thumbnailSize:Y.thumbnailSize})}}),_.m("div",{class:_.hj("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var V;
return V_b((V=Y.thumbnailSize)==null?void 0:V.call(Y))},(w.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var V;
return(V=Y.isClip)==null?void 0:V.call(Y)},w.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var V;
return!_.q("web_enable_modern_progress_bar_overlay")&&((V=Y.thumbnailSize)==null?void 0:V.call(Y))==="small"},w))},_.m(_.OH,{data:function(){return Y.data().badge}},{thumbnailBadgeViewModel:function(V){return _.m(OqC,{data:V.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.m(_.OH,{data:function(){return Y.data().badges}},{thumbnailBadgeViewModel:function(V){return _.m(OqC,{data:V.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"S");
t$j.idomCompat=!0;_.f_(t$j,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.gn,thumbnailSize:_.gn,isClip:_.gn}});var oAa={calledOnce:!1,state:"visible"},IQt={calledOnce:!1,state:"hidden"};var Ms=_.b8(function(Y){var b=Y.data;var w=Y.className;Y=Y.alwaysShow;var V=_.GM("thumbnail-hover-overlay-view-model");_.jP(V,function(){return b().rendererContext});
var H=_.fQu(),f={};return _.m("thumbnail-hover-overlay-view-model",{el:V,class:_.hj("ytThumbnailHoverOverlayViewModelHost",w,(f.ytThumbnailHoverOverlayViewModelHostForceHover=Y,f)),"aria-label":function(){var E;return(E=_.v(b().rendererContext,_.Ba))==null?void 0:E.label},
role:function(){return _.y4(b().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.y4(b().rendererContext)!==void 0?0:void 0},
"on:keypress":H},_.m("div",{class:_.hj("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(b().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var E="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:E="ytThumbnailHoverOverlayViewModelStyleCover"}return E})},_.m(_.h,{cond:function(){return b().icon},
then:function(E){return _.m(_.Y_,{data:E,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.m(_.h,{cond:function(){return b().text},
then:function(E){return _.m(_.wv,{text:E,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
Ms.idomCompat=!0;var RpK=_.b8(function(Y){var b=Y.data;return _.m(_.OH,{data:function(){return b==null?void 0:b().overlays}},{thumbnailHoverOverlayViewModel:Ms})},"U");
RpK.idomCompat=!0;var d2$={};var FW9=_.b8(function(Y){var b=Y.data;var w=Y.image;var V=Y.state;var H=Y.iconType;var f=Y.overlays;var E=Y.isOverlay;var U=_.TM("div");Y=_.N(_.kw(!0,void 0,"sUzEZ"));var X=Y.next().value,I=Y.next().value,k=function(){return!!b().onTap},l=_.JU(H,"LIVE");
_.tl(function(){var Q=b();requestAnimationFrame(function(){if(U.value===null)var Z=!0;else{var e=U.value;Z=Q.badgeText;var O=hja(Q.size);Z in d2$?e=d2$[Z]:(e=e.clientWidth,d2$[Z]=e);(Z=e>O)?U.value.style.display="none":U.value.style.visibility="visible"}I(Z)})},"SpVcNb");
var x=function(){var Q={};return Q["yt-spec-avatar-shape__image"]=!0,Q["yt-spec-avatar-shape__image--ads-app"]=b().type===1,Q};
return _.m("yt-avatar-shape",null,_.m("div",{el:_.wn(q9t(k,{keydown:function(Q){if(Q.key==="Enter"){var Z;(Z=Q.currentTarget)==null||Z.click()}},
click:function(Q){var Z,e;return void((e=(Z=b()).onTap)==null?void 0:e.call(Z,Q))}})),
class:function(){var Q={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},Z=b();Q=(Q[Z.clusterLayoutConfig?vAv(Z.clusterLayoutConfig):PKb(Z.size)]=!0,Q["yt-spec-avatar-shape__button--tappable"]=k(),Q);(Z=b().avatarButtonCustomClassName)&&(Q[Z]=!0);return _.qR(Q)},
"aria-label":function(){return k()?b().accessibilityText:""},
role:function(){return k()?"button":void 0},
tabindex:function(){return k()?0:void 0}},_.m("div",{class:function(){var Q,Z=b(),e=V==null?void 0:V(),O=E==null?void 0:E(),L=!((Q=Z.decorations)==null||!Q.includes(2)||Z.size!=="medium"&&Z.size!=="large"),r=Z.size==="tiny"||Z.size==="extra-small",C,W,y,G,Nr={};
Q=(Nr["yt-spec-avatar-shape--live-ring"]=!!(((C=Z.decorations)==null?0:C.includes(0))&&B$I(Z.size)),Nr["yt-spec-avatar-shape--stories-watched"]=L&&!(e==null||!e.storiesWatched),Nr["yt-spec-avatar-shape--stories-unwatched"]=L&&!(e==null?0:e.storiesWatched),Nr["yt-spec-avatar-shape--background-border"]=nAI(Z.decorations)&&!r,Nr["yt-spec-avatar-shape--background-border-thin"]=nAI(Z.decorations)&&r,Nr["yt-spec-avatar-shape__on-select-border"]=!((W=Z.decorations)==null||!W.includes(4)),Nr["yt-spec-avatar-shape__white-border"]=
!((y=Z.decorations)==null||!y.includes(5)),Nr["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((G=Z.decorations)==null?0:G.includes(5))&&r),Nr["yt-spec-avatar-shape--is-overlay"]=!!O,Nr);return _.qR(Q)},
style:function(){a:{var Q=b().clusterLayoutConfig;if(Q){b:{var Z=Q.numAvatarsInCluster;var e=Q.avatarIndex;if(e!==Z-1){switch(Q.clusterSize){case "small":Q="32";break;case "medium":Q="36";break;case "40":Q="40";break;default:Z=void 0;break b}Z="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+Q+"x"+Q+"_avatars_"+Z+"_index_"+e+".svg"}else Z=void 0}if(Z){Z=_.Bb({"-webkit-mask-image":"url("+Z+")","mask-image":"url("+Z+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}Z=void 0}return Z}},_.m("div",{class:function(){var Q={};
var Z=b();Q=(Q[Z.clusterLayoutConfig?sbB(Z.clusterLayoutConfig):QbM(Z.size)]=!0,Q["yt-spec-avatar-shape--no-margin"]=nAI(b().decorations),Q);return _.qR(Q)}},_.m(_.Y_,{data:w,
alt:function(){return!k()&&b().accessibilityText?b().accessibilityText:""},
targetWidth:function(){return Z2M(b().size)},
targetHeight:function(){return Z2M(b().size)},
className:function(){return _.qR(x())}}),_.m(_.h,{cond:function(){var Q;
return((Q=b().decorations)==null?void 0:Q.includes(0))&&B$I(b().size)},
then:function(){return _.m("div",{class:function(){var Q={};Q=(Q["yt-spec-avatar-shape__live-badge"]=!0,Q["yt-spec-avatar-shape__live-badge--badge-small"]=b().size==="small",Q["yt-spec-avatar-shape__live-badge--badge-medium"]=b().size==="medium"||b().size==="48",Q["yt-spec-avatar-shape__live-badge--badge-large"]=b().size==="large",Q["yt-spec-avatar-shape__live-badge--badge-extra-large"]=b().size==="extra-large"||b().size==="extra-extra-large"||b().size==="giant",Q);return _.qR(Q)}},_.m(_.h,{cond:function(){return b().badgeText},
then:function(Q){return _.m("div",{class:"yt-spec-avatar-shape__badge-text",el:U},Q)}}),_.m(_.h,{cond:X,
then:function(){return _.m("div",{class:"yt-spec-avatar-shape__badge-icon"},_.m(_.n_,{icon:l,size:function(){a:switch(b().size){case "extra-large":var Q=16;break a;default:Q=13}return Q}}))}}))}}),_.m(_.h,{cond:function(){var Q,Z;
return((Q=b().decorations)==null?void 0:Q.includes(1))||((Z=b().decorations)==null?void 0:Z.includes(0))&&!B$I(b().size)},
then:function(){return _.m("div",{class:function(){var Q=b(),Z,e,O={};var L=(O["yt-spec-avatar-shape__live-dot"]=!((Z=Q.decorations)==null||!Z.includes(0)||B$I(Q.size)),O["yt-spec-avatar-shape__new-content"]=!((e=Q.decorations)==null||!e.includes(1)),O);return _.qR(L)}})}}),_.m(_.h,{cond:function(){return!!f},
then:function(){return _.m("div",{class:function(){var Q={};Q=Object.assign((Q["yt-spec-avatar-shape__image-overlays"]=!0,Q),x());return _.qR(Q)}},f==null?void 0:f())}})))))},"V");
FW9.idomCompat={callbacks:{overlays:!0}};_.et=_.b8(function(Y){function b(){w().endpoint&&_.AA(w().endpoint)}
var w=Y.data;var V=Y.decorations;var H=Y.avatarButtonCustomClassName;var f=Y.isOverlay;var E=Y.clusterLayoutConfig;return _.m("avatar-view-model",null,_.m(_.h,{cond:function(){return w().image},
then:function(U){return _.m(FW9,{data:function(){return ejM({data:w(),onTap:w().endpoint?b:void 0,decorations:V==null?void 0:V(),badgeText:void 0,accessibilityText:w().accessibilityText,avatarButtonCustomClassName:H==null?void 0:H(),clusterLayoutConfig:E==null?void 0:E()})},
image:U,iconType:"RADAR_LIVE",overlays:function(){return _.m(RpK,{data:w})},
isOverlay:f})}}))},"W");
_.et.idomCompat=!0;_.pe=_.b8(function(Y){var b=Y.data;Y=Y.className;var w=_.TM("yt-decorated-avatar-view-model"),V=function(){return _.v(b().avatar,_.GI)},H=_.sN(function(){var f,E=b(),U=V(),X=_.y4(b().rendererContext),I=(f=w.value)!=null?f:void 0,k;
if(U){I={data:E,avatar:U,onTap:X,element:I};f=I.data;E=I.avatar;U=I.onTap;X=I.element;I=I.commandController;U=U?RjL(U,X,I):void 0;X=[];f.liveData&&X.push(0);var l;I=(l=f.liveData)==null?void 0:l.liveBadgeText;l=(k=_.v(f.rendererContext,_.Ba))==null?void 0:k.label;k=ejM({data:E,onTap:U,decorations:X,badgeText:I,accessibilityText:l?l:f.a11yLabel})}else k={size:"medium"};return k},void 0,"H8tk9d");
return _.m("yt-decorated-avatar-view-model",{class:_.hj("yt-decorated-avatar-view-model-wiz",Y),el:w},_.m(_.h,{cond:function(){var f;return(f=V())==null?void 0:f.image},
then:function(f){return _.m(FW9,{data:H,image:f,iconType:"RADAR_LIVE",overlays:function(){return _.m(RpK,{data:V})}})}}))},"X");
_.pe.idomCompat=!0;_.OB=_.b8(function(Y){var b=function(){var X;return Object.assign({},Y.data(),(X=Y.overrides)==null?void 0:X.call(Y))},w=_.GM("yt-avatar-stack-view-model"),V=function(){return w&&_.$h(b().rendererContext)};
_.jP(w,function(){return b().rendererContext});
var H=function(){var X=b().avatars,I,k;return(k=(I=(X==null?0:X[0])?_.v(X[0],_.GI):void 0)==null?void 0:I.avatarImageSize)!=null?k:"AVATAR_SIZE_UNKNOWN"},f=function(){return t_u(b())},E=function(){if(b().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var X=void 0;
else if((X=Y.decorations)==null?0:X.call(Y))X=Y.decorations();else{X=b();var I=0;X.avatars&&(I+=X.avatars.length);X.decoratedText&&(I+=1);X=I>1?[3]:[]}return X},U={};
return _.m("yt-avatar-stack-view-model",{el:w,class:_.hj("yt-avatar-stack-view-model-wiz",Y.className,(U["yt-avatar-stack-view-model-wiz--tappable"]=V,U["yt-avatar-stack-view-model-wiz--is-overlay"]=Y.isOverlay,U["yt-avatar-stack-view-model-wiz--medium-text"]=Y.useMediumText,U)),tabindex:function(){return V()?0:void 0},
role:function(){return V()?"link":void 0},
"aria-label":function(){var X,I;return(I=(X=_.v(b().rendererContext,_.Ba))==null?void 0:X.label)!=null?I:""}},_.m(_.h,{cond:function(){var X;
return b().avatars&&!((X=Y.hideAvatar)==null?0:X.call(Y))},
then:function(){return _.m("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.m(_.h,{cond:function(){return b().decoratedText},
then:function(X){var I={};return _.m("div",{class:_.hj("yt-avatar-stack-view-model-wiz__text-container",(I["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS"},I["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var k;
return((k=Y.isOverlay)==null?void 0:k.call(Y))&&(H()==="AVATAR_SIZE_XXS"||H()==="AVATAR_SIZE_XS")},I)),
style:_.Bb({width:function(){return f().avatarSizeInPx+"px"},
height:function(){return f().avatarSizeInPx+"px"}})},_.m(_.wv,{text:X,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.m("div",{style:function(){return _.Bb(f().avatarStackStyle)()},
class:function(){return f().avatarStackClass}},_.m(_.OH,{data:function(){return f().avatars.reverse()}},{avatarViewModel:function(X,I){return _.m("div",{style:function(){var k,l;
return _.Bb((l=(k=f()).avatarStyle)==null?void 0:l.call(k,I()))()},
class:function(){return f().avatarClass}},_.m(_.et,{data:X.data,
decorations:E,avatarButtonCustomClassName:function(){return f().avatarButtonCustomClassName},
isOverlay:Y.isOverlay,clusterLayoutConfig:function(){var k,l;return(l=(k=f()).clusterLayoutConfig)==null?void 0:l.call(k,I())}}))},
decoratedAvatarViewModel:function(X,I){return _.m("div",{style:function(){var k,l;return _.Bb((l=(k=f()).avatarStyle)==null?void 0:l.call(k,I()))()},
class:function(){return f().avatarClass}},_.m(_.pe,{data:X.data}))}})))}}),_.m(_.h,{cond:function(){return b().text},
then:function(X){return _.m(_.wv,{text:X,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.OB.idomCompat=!0;_.f_(_.b8(function(Y){var b=Y.data;var w=Y.thumbnailSize;return _.m("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.m("div",{class:_.hj("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return dBu(w==null?void 0:w())})},_.m(_.OH,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(V){return _.m(_.OB,{data:V.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.YX,
thumbnailSize:_.YX}});var LWd=_.b8(function(Y){Y=_.ur(Y,{hidden:!1});var b=Y.data;return _.m("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:Y.hidden},_.m(_.wv,{text:function(){return b().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.m(_.h,{cond:function(){return b().subtitle},
then:function(){return _.m(_.wv,{text:function(){return b().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
LWd.idomCompat=!0;_.f_(LWd,"yt-thumbnail-overlay-title-view-model",{props:{data:_.YX,hidden:_.YX}});var Sl8=_.b8(function(Y){Y=_.ur(Y,{isClip:!1});var b=Y.data,w=Y.thumbnailSize,V={};return _.m("yt-thumbnail-overlay-badge-view-model",{class:_.hj("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(b().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var H="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:H="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return H},function(){return FFr(w==null?void 0:w())},(V["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
Y.isClip,V))},_.m(_.OH,{data:function(){return b().thumbnailBadges}},{thumbnailBadgeViewModel:function(H){return _.m(OqC,{data:H.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
Sl8.idomCompat=!0;_.f_(Sl8,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.YX,thumbnailSize:_.YX,isClip:_.YX}});_.gS(LFr);_.oL(LFr,"yt-page-indicator-view-model",{propNames:["data"]});var tH=function(){var Y=_.F.apply(this,arguments)||this;Y.eventSink=function(){return Y};
Y.disableInteraction=!1;Y.noRoundedCorners=!1;Y.isPreviewLoading=!1;Y.isOriginalAspectRatio=!1;Y.computedObjectFit=!1;Y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return Y};
_.P(tH,_.F);_.g=tH.prototype;
_.g.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:_.q("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"}}};
_.g.onImageLoaded=function(){this.loaded=!0};
_.g.onImageUnloaded=function(){this.loaded=!1};
_.g.computeRichThumbnail=function(Y,b,w,V){if(Y&&b&&!V&&!_.q("disable_moving_thumbs_handling")&&!w)return b};
_.g.computeImageWidth=function(Y,b){return b||9999};
_.g.computeIsOriginalAspectRatio=function(Y){return Y};
_.g.computeIsLive=function(Y){if(Y==null?0:Y.badges)for(var b=0;b<Y.badges.length;b++){var w=Y.badges[b];if(w.metadataBadgeRenderer&&w.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(Y==null?0:Y.thumbnailOverlays)for(b=0;b<Y.thumbnailOverlays.length;b++)if(w=Y.thumbnailOverlays[b],w.thumbnailOverlayTimeStatusRenderer&&w.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.g.computeObjectFit=function(Y,b){return b||(Y?"CONTAIN":"")};
_.g.computeNavigationEndpoint=function(Y,b,w){return Y?b:w};
_.g.computeHasClip=function(Y){Y=_.N(Y||[]);for(var b=Y.next();!b.done;b=Y.next())if(b.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.g.computeOverlayColor=function(Y){var b;return(Y==null?0:(b=Y.darkColorPalette)==null?0:b.section2Color)?Y.darkColorPalette.section2Color:Y==null?void 0:Y.sampledThumbnailColor};
_.up.Object.defineProperties(tH.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return RFq(this.width)}}});
tH.prototype.onImageUnloaded=tH.prototype.onImageUnloaded;tH.prototype.onImageLoaded=tH.prototype.onImageLoaded;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],tH.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(lxr),_.K("design:type",Object)],tH.prototype,"ytdThumbnailBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],tH.prototype,"componentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],tH.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],tH.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],tH.prototype,"circular",void 0);
_.z([_.R({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.K("design:type",Object)],tH.prototype,"richThumbnail",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.K("design:type",Boolean)],tH.prototype,"hasClip",void 0);_.z([_.R(),_.K("design:type",Object)],tH.prototype,"eventSink",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],tH.prototype,"queued",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],tH.prototype,"richGridThumbnail",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],tH.prototype,"useExpandableTooltip",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],tH.prototype,"useUntranslatedNavigationEndpoint",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],tH.prototype,"disableInteraction",void 0);
_.z([_.R({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.K("design:type",Object)],tH.prototype,"computedNavigationEndpoint",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],tH.prototype,"nowPlayingEqualizerOnly",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tH.prototype,"hidePlaybackStatus",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],tH.prototype,"objectFit",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],tH.prototype,"noRoundedCorners",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],tH.prototype,"watchFeedThumbnail",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],tH.prototype,"isPreviewLoading",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.K("design:type",Object)],tH.prototype,"isOriginalAspectRatio",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.K("design:type",Object)],tH.prototype,"computedObjectFit",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.K("design:type",Boolean)],tH.prototype,"isLiveVideo",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tH.prototype,"loaded",void 0);_.z([_.R({computed:"computeOverlayColor(data.thumbnail)"}),_.K("design:type",Object)],tH.prototype,"overlayColor",void 0);_.z([_.R({selector:_.kkM}),_.K("design:type",Boolean)],tH.prototype,"inlinePreviewIsEnabled",void 0);_.z([_.R(),_.K("design:type",Number)],tH.prototype,"width",void 0);
_.z([_.t("inlinePreviewIsEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tH.prototype,"isPreviewDisabled",null);_.z([_.t("width"),_.K("design:type",String),_.K("design:paramtypes",[])],tH.prototype,"thumbnailSize",null);_.z([_.kZ("image-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tH.prototype,"onImageLoaded",null);
_.z([_.kZ("image-unloaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tH.prototype,"onImageUnloaded",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-thumbnail"})],tH);
var ahd=_.UQ()(tH,"ytd-thumbnail",function(){if(ep9===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint inline-block style-scope ytd-thumbnail" aria-hidden="true" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]" rel="[[computeNofollow_(computedNavigationEndpoint)]]" tabindex="-1">\n  <yt-image alt="" data="[[data.thumbnail]]" ftl-eligible="" height="[[height]]" notify-on-loaded="" notify-on-unloaded="" object-fit="[[computedObjectFit]]" width="[[computeImageWidth(data, width)]]" class="style-scope ytd-thumbnail">\n  </yt-image>\n  \n  <div id="overlays" class="style-scope ytd-thumbnail"></div>\n  <div id="mouseover-overlay" class="style-scope ytd-thumbnail"></div>\n  <div id="hover-overlays" class="style-scope ytd-thumbnail"></div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);ep9=Y}Y=ep9;return Y},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var zjt=function(Y){var b=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12858_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12858_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(w){rNC(b,w)};
this.onLockupMouseLeaveFn=function(w){w=w.relatedTarget;var V,H;((V=document.getElementsByTagName("ytd-video-preview"))==null?0:(H=V.item(0))==null?0:H.contains(w))||(b.terminateVideoPreview(),Rf(b))};
this.onThumbnailMouseDownFn=function(){b.terminateVideoPreview();Rf(b)};
this.onTouchStart=function(){b.JSC$12858_touched=!0};
this.mediaRenderer=Y.mediaRenderer;this.thumbnailElement=Y.thumbnailElement;this.lockupElement=Y.lockupElement;this.videoPreviewOptsInput=Y.videoPreviewOpts;zp_(this);di(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)):
_.Sk(Error("Dh")):_.Sk(Error("Eh")):WWU(this)},Ed=function(Y){WWU(Y);
var b;(b=Y.lockupElement)==null||b.removeEventListener("mouseenter",Y.onMouseMoveFn);var w;(w=Y.lockupElement)==null||w.removeEventListener("mouseleave",Y.onLockupMouseLeaveFn);var V;(V=Y.lockupElement)==null||V.removeEventListener("touchstart",Y.onTouchStart);var H;(H=Y.thumbnailElement)==null||H.removeEventListener("mousedown",Y.onThumbnailMouseDownFn);Rf(Y)},zp_=function(Y){Y.inlinePreviewIsEnabledForUser=_.u3().getState().ui.inlinePreviewIsEnabled;
Y.unsubscribeFromInlinePreviewIsEnabled=_.vB(_.u3(),_.kkM,function(b){(Y.inlinePreviewIsEnabledForUser=b)||Rf(Y)});
Y.JSC$12858_unsubscribeFromInlinePreviewIsActive=_.vB(_.u3(),_.Idb,function(b){(Y.inlinePreviewIsActive=b)||Rf(Y)})},WWU=function(Y){Y.unsubscribeFromInlinePreviewIsEnabled();
Y.unsubscribeFromInlinePreviewIsEnabled=function(){};
Y.JSC$12858_unsubscribeFromInlinePreviewIsActive();Y.JSC$12858_unsubscribeFromInlinePreviewIsActive=function(){}},rNC=function(Y,b){b.buttons>0||(b=_.cQ("kevlar_lockup_hover_delay",-1),Y.JSC$12858_touched&&b>=0?(_.Lb.cancelJob(Y.videoPreviewJobId),Y.videoPreviewJobId=_.Xl(_.Lb,function(){KWK(Y)},b),Y.JSC$12858_touched=!1):KWK(Y))},S$u=function(Y){Y.videoPreviewJobId=_.Xl(_.Lb,function(){var b,w,V,H;
return _.c(function(f){if(f.nextAddress==1){if(!di(Y))return f.return();b=Y.getVideoPreviewOpts();if(!b)return f.return();b.isAutoplay=!0;return(V=(w=_.De(Y.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&w[0])?_.D(f,w[0],3):f.jumpTo(2)}f.nextAddress!=2&&(V=f.yieldResult===1);V&&aQG((H=Y.mediaRenderer)==null?void 0:H.data);_.om(f)})})},KWK=function(Y){!Y.previewTriggered&&di(Y)&&(Y.inlinePreviewIsActive&&Y.terminateVideoPreview(),Y.previewTriggered=!0,Y.mediaRenderer.isInlinePreviewTriggered=
!0,_.Lb.cancelJob(Y.videoPreviewJobId),Y.videoPreviewJobId=_.Xl(_.Lb,function(){var b,w,V,H;
return _.c(function(f){if(f.nextAddress==1){if(!di(Y))return f.return();b=Y.getVideoPreviewOpts();return b?(V=(w=_.De(Y.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&w[0])?_.D(f,w[0],3):f.jumpTo(2):f.return()}f.nextAddress!=2&&(V=f.yieldResult===1);V&&aQG((H=Y.mediaRenderer)==null?void 0:H.data);_.om(f)})}))};
zjt.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var Y,b;if((b=(Y=this.videoPreviewOptsInput)==null?void 0:Y.videoPreviewData)!=null)Y=b;else if(Y=this.mediaRenderer.data)if(S9K(Y))Y={inlinePlaybackEndpoint:_.zT(Y.inlinePlayerData.onVisible),navigationEndpoint:_.zT(Y.onTap),thumbnail:"image"in Y?Y.image:Y.thumbnail,thumbnailOverlays:void 0,accessibilityText:rkv(Y)};else if("multipleInlinePlaybackEndpoint"in Y){var w=_.v(_.v(Y.multipleInlinePlaybackEndpoint,hPr),xhj);if(w!=
null&&w.playerDescriptors){b=[];w=_.N(w.playerDescriptors);for(var V=w.next();!V.done;V=w.next())V=V.value,b.push({inlinePlaybackEndpoint:V.inlinePlaybackEndpoint,navigationEndpoint:V.navigationEndpoint,thumbnail:V.thumbnail,thumbnailOverlays:V.thumbnailOverlays,accessibilityText:rkv(Y)});Y=b}else Y=void 0}else Y={inlinePlaybackEndpoint:Y.inlinePlaybackEndpoint,navigationEndpoint:Y.navigationEndpoint,thumbnail:Y.thumbnail,thumbnailOverlays:Y.thumbnailOverlays,accessibilityText:rkv(Y)};else Y=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:Y,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var di=function(Y){var b;if(b=Y.inlinePreviewIsEnabledForUser)b=(Y=Y.mediaRenderer.data)?"inlinePlaybackEndpoint"in Y&&Y.inlinePlaybackEndpoint||S9K(Y)&&Y.inlinePlayerData||"multipleInlinePlaybackEndpoint"in Y&&Y.multipleInlinePlaybackEndpoint?!0:!1:!1;return b};
zjt.prototype.terminateVideoPreview=function(){_.Xx(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Rf=function(Y){_.Lb.cancelJob(Y.videoPreviewJobId);Y.inlinePreviewIsActive=!1;Y.previewTriggered=!1;Y.mediaRenderer.isInlinePreviewTriggered=!1};var iqo=_.wM(["#"]),FH=function(){var Y=_.F.apply(this,arguments)||this;Y.isDisabled=!1;return Y};
_.P(FH,_.F);_.g=FH.prototype;_.g.configureRendererStamper=function(){return{"data.menu":If,"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"}}}};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.getMetadata=function(Y){var b=[];if(Y.metadataText&&Object.keys(Y.metadataText).length>0){var w=this.ytRendererBehavior.getSimpleString(Y.metadataText);Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&(w=_.rK(w,Number(Y.upcomingEventData.startTime)));b.push(w)}else Y.shortViewCountText&&b.push(this.ytRendererBehavior.getSimpleString(Y.shortViewCountText)),Y.publishedTimeText&&b.push(this.ytRendererBehavior.getSimpleString(Y.publishedTimeText)),Y.upcomingEventData&&Y.upcomingEventData.upcomingEventText&&
(w=this.ytRendererBehavior.getSimpleString(Y.upcomingEventData.upcomingEventText),b.push(_.rK(w,Number(Y.upcomingEventData.startTime))));return b};
_.g.calculateBylineText=function(Y){return Y.shortBylineText?Y.shortBylineText:Y.bylineText?Y.bylineText:null};
_.g.calculateIsDisabled=function(Y){return!!Y.isDisabled};
_.g.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y)||_.nu(iqo)};
_.g.onDetailsTap=function(Y){var b=this.data&&this.data.navigationEndpoint;b&&!_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.q("kevlar_grid_video_renderer_killswitch")?_.Ua(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.g.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12863_inlinePreviewHoverListener=TI({mediaRenderer:this,lockupElement:_.E6(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.E6(this.hostElement).querySelector("ytd-thumbnail")})};
_.g.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$12863_inlinePreviewHoverListener)==null||Ed(Y)};
_.g.computeThumbnailWidth=function(Y,b){return b&&b>0?b:Y?360:210};
_.g.computeShowChannelThumbnail=function(Y,b){var w;return b&&!!(Y==null?0:(w=Y.channelThumbnailSupportedRenderers)==null?0:w.channelThumbnailWithLinkRenderer)};
_.up.Object.defineProperties(FH.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$12863_inlinePreviewHoverListener)==null?0:di(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
FH.prototype.dataChanged=FH.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],FH.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],FH.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.AB),_.K("design:type",Object)],FH.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],FH.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],FH.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],FH.prototype,"noEndpoints",void 0);_.z([_.R({computed:"calculateBylineText(data)"}),_.K("design:type",Object)],FH.prototype,"bylineText",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],FH.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],FH.prototype,"isDownloading",void 0);_.z([_.R({reflectToAttribute:!0,value:0}),_.K("design:type",Number)],FH.prototype,"width",void 0);_.z([_.R({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.K("design:type",Object)],FH.prototype,"isDisabled",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FH.prototype,"dataChanged",null);_.z([_.t("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],FH.prototype,"isHovered",null);_.z([_.S({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],FH);
_.a(FH,"ytd-grid-video-renderer",function(){if(lhU!==void 0)return lhU;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lhU=Y},{mode:_.Xd("kevlar_poly_si_batch_j047")?1:2});var ANk;var Le=function(){var Y=_.F.apply(this,arguments)||this;Y.roundedContainer=!0;Y.skipRoundingTop=!1;Y.disableTopPadding=!1;Y.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");return Y};
_.P(Le,_.F);Le.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Le.prototype.onClick=function(Y){var b,w=(b=this.data)==null?void 0:b.sourceEndpoint;!_.uA(_.JL(Y),this.hostElement,["A".toString()])&&w&&_.Ua(this.hostElement,"yt-navigate",{endpoint:w})};
_.up.Object.defineProperties(Le.prototype,{showMetadataAtTop:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!!this.data.sourceAtTop}},
showMetadataBelowTitle:{configurable:!0,enumerable:!0,get:function(){return this.data&&!(!this.data.source&&!this.data.publishedTimeText)&&!this.data.sourceAtTop}},
hasMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=(Y=this.data)==null?void 0:Y.paragraphMaxLines)!=null?b:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Le.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Le.prototype,"showVerticalDividers",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Le.prototype,"roundedContainer",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Le.prototype,"skipRoundingTop",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Le.prototype,"disableTopPadding",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Le.prototype,"amsterdamEnabled",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Le.prototype,"showMetadataAtTop",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Le.prototype,"showMetadataBelowTitle",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],Le.prototype,"hasMenu",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.truncateParagraphs"),_.K("design:type",Object),_.K("design:paramtypes",[])],Le.prototype,"truncateParagraphs",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data.paragraphMaxLines"),_.K("design:type",Number),_.K("design:paramtypes",[])],Le.prototype,"paragraphMaxLines",null);_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.background"),_.K("design:type",Object),_.K("design:paramtypes",[])],Le.prototype,"background",null);_.z([_.S({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Le);
_.a(Le,"ytd-info-panel-content-renderer",function(){if(ANk!==void 0)return ANk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-info-panel-content-renderer" on-click="onClick">\n  <yt-icon class="inline-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <div class="text-content style-scope ytd-info-panel-content-renderer">\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataAtTop]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <a class="yt-simple-endpoint title-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.title]]" href$="[[computeHref_(data.sourceEndpoint)]]" data="[[data.sourceEndpoint]]">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-info-panel-content-renderer"></yt-formatted-string>\n      <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n      </yt-icon>\n    </a>\n    <div class="metadata-container style-scope ytd-info-panel-content-renderer" hidden="[[!showMetadataBelowTitle]]">\n      <yt-formatted-string text="[[data.source]]" class="style-scope ytd-info-panel-content-renderer">\n      </yt-formatted-string>\n      <div class="published-time style-scope ytd-info-panel-content-renderer" hidden="[[!data.publishedTimeText]]">\n        \u2022\n        <yt-formatted-string text="[[data.publishedTimeText]]" class="style-scope ytd-info-panel-content-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div class="paragraphs style-scope ytd-info-panel-content-renderer">\n      <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.runs]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-formatted-string class="paragraph style-scope ytd-info-panel-content-renderer" text="[[item]]">\n          </yt-formatted-string>\n          <div class="inline-source style-scope ytd-info-panel-content-renderer" hidden="[[!data.inlineSource]]">\n            <yt-formatted-string force-default-style="" text="[[data.inlineSource]]" class="style-scope ytd-info-panel-content-renderer">\n            </yt-formatted-string>\n            <yt-icon class="inline-link-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineLinkIcon.iconType]]" hidden="[[!data.inlineLinkIcon.iconType]]" icon="[[data.inlineLinkIcon.iconType]]">\n            </yt-icon>\n          </div>\n        </div>\n      </template>\n      <template is="dom-repeat" items="[[data.attributedParagraphs]]" class="style-scope ytd-info-panel-content-renderer">\n        <div hidden="[[!item.content]]" class="style-scope ytd-info-panel-content-renderer">\n          <yt-attributed-string id="paragraph" class="attributed-paragraph style-scope ytd-info-panel-content-renderer" data="[[item]]">\n          </yt-attributed-string>\n        </div>\n      </template>\n      <div class="disclaimer-container style-scope ytd-info-panel-content-renderer" hidden="[[!data.disclaimer]]">\n        <a class="yt-simple-endpoint style-scope ytd-info-panel-content-renderer" href$="[[computeHref_(data.sourceEndpoint)]]" target="_blank" data="[[data.sourceEndpoint]]">\n          <yt-formatted-string class="disclaimer style-scope ytd-info-panel-content-renderer" text="[[data.disclaimer]]">\n          </yt-formatted-string>\n          <yt-icon class="inline-link-icon inline-disclaimer-icon style-scope ytd-info-panel-content-renderer" disable-upgrade$="[[!data.inlineDisclaimerIcon.iconType]]" hidden="[[!data.inlineDisclaimerIcon]]" icon="[[data.inlineDisclaimerIcon.iconType]]">\n          </yt-icon>\n        </a>\n      </div>\n    </div>\n  </div>\n  <yt-img-shadow class="thumbnail style-scope ytd-info-panel-content-renderer" hidden="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n</div>\n<div id="menu" class="style-scope ytd-info-panel-content-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ANk=Y},{mode:_.Xd("kevlar_poly_si_batch_j076")?1:2});var Cdr;var yNK;var $2_;var j49;var St=function(){return _.F.apply(this,arguments)||this};
_.P(St,_.F);St.prototype.computeStyle=function(Y){return Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],St.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],St.prototype,"style_",void 0);_.z([_.FM({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],St);
_.a(St,"yt-channel-thumbnail-with-link-renderer",function(){if(j49===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-channel-thumbnail-with-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_channel_thumbnail_with_link_renderer.yt.channel.thumbnail.with.link.renderer.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" title="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope yt-channel-thumbnail-with-link-renderer">\n  </yt-img-shadow>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;$2_===void 0&&($2_=document.createElement("template"));var V=$2_;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);j49=Y}Y=j49;return Y},{mode:2});var af=function(){var Y=_.F.apply(this,arguments)||this;Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(af,_.F);af.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"}}}};
af.prototype.computeTitleStyle=function(Y){return Y||null};
af.prototype.computeAvatarStyle=function(Y){return Y||null};
af.prototype.computeShowNavigationButton=function(Y,b){return!(Y==null||!Y.navigationButton||b)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],af.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.K("design:type",String)],af.prototype,"titleStyle",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.K("design:type",String)],af.prototype,"avatarStyle",void 0);_.z([_.R(),_.K("design:type",Boolean)],af.prototype,"hideNavigationButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],af.prototype,"isModernSd",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],af.prototype,"modernTypography",void 0);
_.z([_.S({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],af);
_.a(af,"ytd-rich-list-header-renderer",function(){if(yNK!==void 0)return yNK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="title-row style-scope ytd-rich-list-header-renderer">\n  <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n  <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-rich-list-header-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n      </yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-list-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-rich-list-header-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <div id="image-container" class="style-scope ytd-rich-list-header-renderer">\n        <div id="avatar" class="style-scope ytd-rich-list-header-renderer"></div>\n        <div id="title-text" class="style-scope ytd-rich-list-header-renderer">\n          <span id="title" class="style-scope ytd-rich-list-header-renderer">[[getSimpleString(data.title)]]</span>\n          <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-rich-list-header-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </a>\n  </template>\n  <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-list-header-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="title-annotation" hidden="[[!data.titleAnnotation]]" text="[[data.titleAnnotation]]" class="style-scope ytd-rich-list-header-renderer">\n  </yt-formatted-string>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-list-header-renderer"></div>\n  <div id="navigation-button" hidden="[[!computeShowNavigationButton(data, hideNavigationButton)]]" class="style-scope ytd-rich-list-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return yNK=Y},{mode:_.Xd("kevlar_poly_si_batch_j058")?1:2});var ri=function(){return _.F.apply(this,arguments)||this};
_.P(ri,_.F);ri.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]]"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ri.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ri.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],ri.prototype,"isSearch",void 0);_.z([_.S({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],ri);
_.a(ri,"ytd-preview-card-renderer",function(){if(Cdr!==void 0)return Cdr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-preview-card-renderer"></div>\n<div id="contents" class="style-scope ytd-preview-card-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Cdr=Y},{mode:1});var Gnt;var z6=function(){return _.F.apply(this,arguments)||this};
_.P(z6,_.F);z6.prototype.configureRendererStamper=function(){return{"data.menu":If}};
z6.prototype.dataChanged=function(){var Y=this.get("colorExtractionPalette.section1Color",this.data);Y=_.WH(Y);_.m_(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":Y})};
z6.prototype.computeCardStyle=function(Y){return this.get("style.value",Y)||null};
z6.prototype.dataChanged=z6.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],z6.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],z6.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.K("design:type",String)],z6.prototype,"cardStyle",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],z6.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],z6);
_.a(z6,"ytd-compact-channel-recommendation-card-renderer",function(){if(Gnt!==void 0)return Gnt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-channel-recommendation-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="card-body" class="yt-simple-endpoint style-scope ytd-compact-channel-recommendation-card-renderer" href$="[[computeHref_(data.channelEndpoint)]]" title$="[[getSimpleString(data.channelTitle)]]" aria-label$="[[getSimpleString(data.channelTitle)]]" data="[[data.channelEndpoint]]">\n  <div id="banner" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <yt-img-shadow id="channel-art" object-fit="COVER" thumbnail="[[data.backgroundImage]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n    <svg id="avatar-protection" viewBox="0 0 210 56" preserveAspectRatio="none" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n      <path id="lower-overlay" d="M 0 -12 L 126 56 L 0 56 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n      <path id="upper-overlay" d="M 0 -12 L 74 28 L 0 68 z" class="style-scope ytd-compact-channel-recommendation-card-renderer"></path>\n    </svg>\n    <yt-img-shadow id="avatar" thumbnail="[[data.channelAvatar]]" class="style-scope ytd-compact-channel-recommendation-card-renderer"></yt-img-shadow>\n  </div>\n  <div id="channel-info" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n    <span id="title" class="style-scope ytd-compact-channel-recommendation-card-renderer">[[getSimpleString(data.channelTitle)]]</span>\n  </div>\n</a>\n<div id="subscribe-container" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  <ytd-subscribe-button-renderer id="subscribe" data="[[data.subscribeButton.subscribeButtonRenderer]]" class="style-scope ytd-compact-channel-recommendation-card-renderer">\n  </ytd-subscribe-button-renderer>\n</div>\n<div id="menu" class="style-scope ytd-compact-channel-recommendation-card-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Gnt=Y},{mode:1});var TJj;var JNC;var W7=function(){var Y=_.F.apply(this,arguments)||this;Y.alignAuto=!1;Y.collapsed=!0;Y.isToggled=!1;Y.alwaysCollapsed=!1;Y.canToggle=!0;Y.collapsedHeight=80;Y.disableToggle=!1;Y.alwaysToggleable=!1;Y.reversed=!1;Y.shouldUseNumberOfLines=!1;Y.recomputeOnResize=!1;Y.canToggleJobId=0;Y.lastReversed=!1;return Y};
_.P(W7,_.F);_.g=W7.prototype;_.g.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.g.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.g.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var Y=_.E6(this.hostElement),b=Y.childNodes,w=document.createDocumentFragment(),V=Y.childNodes.length-1;V>=0;V--)_.E6(w).appendChild(b[V]);_.q("enable_shadydom_free_scoped_node_methods")?_.cX(this.hostElement).appendChild(w):Y.appendChild(w)}};
_.g.ready=function(){var Y=this;_.KV(function(){Y.initChildrenObserver()},1)};
_.g.detached=function(){this.detachObserver()};
_.g.toggle=function(Y,b){this.canToggle&&(this.isToggled=b,_.Ua(this.hostElement,"yt-refit"),Y&&Y.stopPropagation())};
_.g.reset=function(){this.childrenChanged()};
_.g.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.g.computeIsMoreVisible=function(Y,b){return Y&&!b};
_.g.computeShouldUseNumberOfLines=function(Y){try{return!!Y&&window.CSS.supports("-webkit-line-clamp","1")}catch(b){}return!1};
_.g.computeIsLessVisible=function(Y,b){return Y&&b};
_.g.observeCollapsedHeightAndMaxLines=function(){var Y=this.collapsedHeight,b=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.m_(this.hostElement,{"--ytd-expander-max-lines":""+b,"--ytd-expander-collapsed-height":""}):_.m_(this.hostElement,{"--ytd-expander-collapsed-height":Y+"px","--ytd-expander-max-lines":""})};
_.g.handleMoreTap=function(Y){this.disableToggle||(_.Ua(this.hostElement,"yt-expander-more-tapped"),this.toggle(Y,!0))};
_.g.handleLessTap=function(Y){_.Ua(this.hostElement,"yt-expander-less-tapped");this.toggle(Y,!1)};
_.g.initChildrenObserver=function(){var Y=this;this.observer=new MutationObserver(function(){Y.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.g.childrenChanged=function(){var Y=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Uv(function(){Y.canToggleJobId=0;Y.calculateCanCollapse()})}))};
_.g.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};
_.g.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.g.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("collapsed-changed",this.collapsed))};
_.g.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("is-toggled-changed",this.isToggled))};
_.g.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("can-toggle-changed",this.canToggle))};
_.up.Object.defineProperties(W7.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
W7.prototype.canToggleChangedForBinding=W7.prototype.canToggleChangedForBinding;W7.prototype.isToggledChangedForBinding=W7.prototype.isToggledChangedForBinding;W7.prototype.collapsedChangedForBinding=W7.prototype.collapsedChangedForBinding;W7.prototype.observeCollapsedHeightAndMaxLines=W7.prototype.observeCollapsedHeightAndMaxLines;W7.prototype.onIronResize=W7.prototype.onIronResize;W7.prototype.reversedChanged=W7.prototype.reversedChanged;W7.prototype.toggledChanged=W7.prototype.toggledChanged;
W7.prototype.alwaysToggleableChanged=W7.prototype.alwaysToggleableChanged;_.z([_.n(_.Li),_.K("design:type",Object)],W7.prototype,"ironResizableBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],W7.prototype,"alignAuto",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],W7.prototype,"collapsed",void 0);_.z([_.R(),_.K("design:type",Object)],W7.prototype,"isToggled",void 0);_.z([_.R(),_.K("design:type",Object)],W7.prototype,"alwaysCollapsed",void 0);
_.z([_.R(),_.K("design:type",Object)],W7.prototype,"canToggle",void 0);_.z([_.R(),_.K("design:type",Object)],W7.prototype,"collapsedHeight",void 0);_.z([_.R(),_.K("design:type",Object)],W7.prototype,"disableToggle",void 0);_.z([_.R(),_.K("design:type",Object)],W7.prototype,"alwaysToggleable",void 0);_.z([_.R(),_.K("design:type",Object)],W7.prototype,"reversed",void 0);_.z([_.R(),_.K("design:type",Number)],W7.prototype,"maxNumberOfLines",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.K("design:type",Object)],W7.prototype,"shouldUseNumberOfLines",void 0);_.z([_.R(),_.K("design:type",Object)],W7.prototype,"recomputeOnResize",void 0);_.z([_.xZ("#content"),_.K("design:type",HTMLDivElement)],W7.prototype,"content",void 0);_.z([_.vX("alwaysToggleable"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"alwaysToggleableChanged",null);
_.z([_.vX("isToggled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"toggledChanged",null);_.z([_.t("canToggleJobId"),_.K("design:type",Object),_.K("design:paramtypes",[])],W7.prototype,"isResetting",null);_.z([_.lr("reversed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"reversedChanged",null);
_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"onIronResize",null);_.z([_.lr("maxNumberOfLines","collapsedHeight"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"observeCollapsedHeightAndMaxLines",null);_.z([_.lr("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"collapsedChangedForBinding",null);
_.z([_.lr("isToggled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"isToggledChangedForBinding",null);_.z([_.lr("canToggle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W7.prototype,"canToggleChangedForBinding",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-expander"})],W7);
_.a(W7,"ytd-expander",function(){if(JNC!==void 0)return JNC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-expander">\n  \n  <slot id="container" name="content" class="style-scope ytd-expander"></slot>\n</div>\n<slot name="sticky" class="style-scope ytd-expander"></slot>\n<tp-yt-paper-button id="less" aria-expanded="true" hidden="[[!computeIsLessVisible(canToggle, isToggled)]]" noink="" on-tap="handleLessTap" class="style-scope ytd-expander">\n  <slot name="less-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<tp-yt-paper-button id="more" aria-expanded="false" hidden="[[!computeIsMoreVisible(canToggle, isToggled)]]" noink="" on-tap="handleMoreTap" class="style-scope ytd-expander">\n  <slot name="more-button" class="style-scope ytd-expander"></slot>\n</tp-yt-paper-button>\n<slot name="sticky-secondary" class="style-scope ytd-expander"></slot>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JNC=Y},{mode:1});var Ke=function(){return _.F.apply(this,arguments)||this};
_.P(Ke,_.F);Ke.prototype.computeIsCarousel=function(Y){return!!Y.isCarousel};
Ke.prototype.observeLightsourcePalette=function(){var Y,b=(Y=this.data)==null?void 0:Y.vibrantsourceColorPaletteData;b&&_.Fl(this.hostElement,b)};
Ke.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ke.prototype.observeLightsourcePalette=Ke.prototype.observeLightsourcePalette;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ke.prototype,"data",void 0);_.z([_.R({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Ke.prototype,"isCarousel",void 0);
_.z([_.lr("data.vibrantsourceColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ke.prototype,"observeLightsourcePalette",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Ke);
_.a(Ke,"ytd-media-upsell-renderer",function(){if(TJj!==void 0)return TJj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return TJj=Y},{mode:2});var u8j;var iZ=function(){var Y=_.F.apply(this,arguments)||this;Y.JSC$12891_playerEvents=new Map;Y.listeningToPlayer=!1;Y.startX=0;Y.active=!1;Y.shouldShowButtons=_.q("web_buttons_hidden_killswitch");Y.isHighlighted=!1;Y.useHighlightStyling=_.q("web_enable_deeper_metadata_highlight_styling");Y.modern=_.q("kevlar_modern_sd");Y.enableProblemWalkthrough=_.q("problem_walkthrough_sd");return Y};
_.P(iZ,_.F);_.g=iZ.prototype;
_.g.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}}}}}};
_.g.created=function(){this.JSC$12891_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.g.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Io(this,this.onRepeatButtonToggle));_.q("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Io(this,this.onActiveUpdate))};
_.g.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Io(this,this.onRepeatButtonToggle));_.q("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Io(this,this.onActiveUpdate))};
_.g.onDataChanged=function(){this.removePlayerListeners()};
_.g.onColorPaletteChange=function(){var Y={},b;if(_.OC()==="USER_INTERFACE_THEME_DARK"&&((b=this.data)==null?0:b.darkColorPalette)){var w=this.data.darkColorPalette;Y["--ytd-macro-markers-list-item-background-color"]=_.KX(this.get("section2Color",w))}else{var V;_.OC()==="USER_INTERFACE_THEME_LIGHT"&&((V=this.data)==null?0:V.lightColorPalette)&&(w=this.data.lightColorPalette,Y["--ytd-macro-markers-list-item-background-color"]=_.KX(this.get("section3Color",w)))}w?(Y["--ytd-macro-markers-list-item-title-color"]=
_.KX(this.get("primaryTitleColor",w)),Y["--ytd-macro-markers-list-item-secondary-color"]=_.KX(this.get("secondaryTitleColor",w)),Y["--ytd-macro-markers-list-item-timestamp-background-color"]=_.KX(this.get("section1Color",w)),this.customButtonProperties={customColors:{color:_.KX(this.get("primaryTitleColor",w))}},this.useColorSampling=!0):(Y["--ytd-macro-markers-list-item-background-color"]="initial",Y["--ytd-macro-markers-list-item-title-color"]="initial",Y["--ytd-macro-markers-list-item-secondary-color"]=
"initial",Y["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.m_(this.hostElement,Y)};
_.g.onEndpointMouseDown=function(Y){this.startX=Y.clientX};
_.g.onEndpointClick=function(Y){var b=this,w,V,H;return _.c(function(f){if(f.nextAddress==1){if(b.startX!==Y.clientX)return Y.preventDefault(),f.return();b.data&&b.ytRendererBehavior.logExplicitClick(b.data);if(!b.seekWithAnimationOnClick)return f.jumpTo(0);if(Y.button!==0||Y.shiftKey||Y.altKey||Y.metaKey||Y.ctrlKey||_.uA(_.JL(Y),b.hostElement,["BUTTON".toString()]))return f.return();Y.stopPropagation();Y.preventDefault();return b.data?_.D(f,_.Hv().getPlayerPromise(),3):f.return()}w=f.yieldResult;
H=(V=_.v(b.data.onTap,_.TG))==null?void 0:V.startTimeSeconds;H!==void 0&&w.seekToTimeWithAnimation(H*1E3,_.Tx(b.data.title));_.om(f)})};
_.g.computeLayout=function(Y){return Y};
_.g.computeIsHighlighted=function(Y){return!!Y};
_.g.computeCarouselType=function(Y){return Y};
_.g.hideModernCarousel=function(Y){return this.modern&&this.hideThumbnail(Y)};
_.g.hideThumbnail=function(Y){return this.enableProblemWalkthrough&&Y!==null&&Y==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.g.onRepeatButtonToggle=function(Y){var b=this;Y.detail.toggled&&_.Hv().getPlayerPromise().then(function(w){b.ytPlayerListenerBehavior.listenToPlayerEvents(w,b.JSC$12891_playerEvents);b.listeningToPlayer=!0})};
_.g.onLoopRangeChange=function(Y){var b=_.E6(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(b){var w=b.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",b.polymerController.data);if(w){var V=Number(w.endTimeMs);if(Number(w.startTimeMs)!==(Y==null?void 0:Y.startTimeMs)||V!==(Y==null?void 0:Y.endTimeMs))b.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.g.removePlayerListeners=function(){var Y=this;this.listeningToPlayer&&_.Hv().getPlayerPromise().then(function(b){Y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,Y.JSC$12891_playerEvents);Y.listeningToPlayer=!1})};
_.g.onActiveUpdate=function(Y){this.active=Y.detail.active};
iZ.prototype.onColorPaletteChange=iZ.prototype.onColorPaletteChange;iZ.prototype.onDataChanged=iZ.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],iZ.prototype,"ytPlayerListenerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],iZ.prototype,"data",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],iZ.prototype,"useCustomColors",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iZ.prototype,"active",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],iZ.prototype,"shouldShowButtons",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.K("design:type",String)],iZ.prototype,"layout",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.K("design:type",Object)],iZ.prototype,"isHighlighted",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iZ.prototype,"useHighlightStyling",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iZ.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iZ.prototype,"enableProblemWalkthrough",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.K("design:type",String)],iZ.prototype,"carouselType",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],iZ.prototype,"useColorSampling",void 0);_.z([_.R(),_.K("design:type",Boolean)],iZ.prototype,"seekWithAnimationOnClick",void 0);_.z([_.R(),_.K("design:type",Object)],iZ.prototype,"customButtonProperties",void 0);
_.z([_.xZ("#repeat-button"),_.K("design:type",HTMLElement)],iZ.prototype,"repeatButton",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iZ.prototype,"onDataChanged",null);_.z([_.lr("data.lightColorPalette","data.darkColorPalette"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iZ.prototype,"onColorPaletteChange",null);_.z([_.S({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],iZ);
_.a(iZ,"ytd-macro-markers-list-item-renderer",function(){if(u8j!==void 0)return u8j;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return u8j=Y},{mode:1});var Y9I;var b2_;var AH=function(){var Y=_.F.apply(this,arguments)||this;Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(AH,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],AH.prototype,"modernTypography",void 0);_.z([_.R(),_.K("design:type",Object)],AH.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],AH);
_.a(AH,"ytd-title-and-button-list-header-renderer",function(){if(b2_!==void 0)return b2_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-title-and-button-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-title-and-button-list-header-renderer"></yt-formatted-string>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return b2_=Y},{mode:1});var wMI;var V_d=new _.Hx("BUTTON_RENDERER_WIZ_TOKEN"),H2U=new _.Hx("BUTTON_RENDERER_TOKEN");_.Ce=_.b8(function(Y){var b=_.fH().resolve(_.HQ(V_d));if(b)return _.m(b,Object.assign({},Y));var w=_.fH().resolve(H2U);return w?_.m(lpb,null,function(){return _.m(uF,null,function(){var V,H,f,E,U,X,I,k,l,x,Q,Z;return void w(Y.data(),{onButtonClickCallback:Y.onButtonClickCallback,shouldShowIcons:(V=Y.shouldShowIcons)==null?void 0:V.call(Y),icon:(H=Y.icon)==null?void 0:H.call(Y),processAllEndpoints:(f=Y.processAllEndpoints)==null?void 0:f.call(Y),preventDefault:(E=Y.preventDefault)==null?void 0:E.call(Y),
stopPropagation:(U=Y.stopPropagation)==null?void 0:U.call(Y),disableButtonRendererClickHandling:(X=Y.disableButtonRendererClickHandling)==null?void 0:X.call(Y),className:(I=Y.className)==null?void 0:I.call(Y),buttonOverrides:(k=Y.buttonOverrides)==null?void 0:k.call(Y),forceModernIconButton:(l=Y.forceModernIconButton)==null?void 0:l.call(Y),isSubscribe:(x=Y.isSubscribe)==null?void 0:x.call(Y),alignByText:(Q=Y.alignByText)==null?void 0:Q.call(Y),forceDisabled:(Z=Y.forceDisabled)==null?void 0:Z.call(Y)})})}):
_.m(_.Uz,null)},"ba");
_.Ce.idomCompat=!0;var gAQ=_.b8(function(Y){var b=Y.data,w=_.JU(Y.useSquareAspectRatio,!1);return _.m("dismissed-mini-game-card-view-model",null,_.m(_.h,{cond:function(){var V,H;return(V=b().responseText)==null?void 0:(H=V.runs)==null?void 0:H.length},
then:function(){var V={};return _.m("div",{class:_.hj("yt-mini-game-card-view-model__dismissed-card",(V["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!w()},V["yt-mini-game-card-view-model--dismissed-square-card"]=w,V))},_.m("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.m(_.h,{cond:function(){return b().responseText.runs[0].text},
then:function(H){return _.m("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:H},H)}}),_.m(_.OH,{data:function(){return b().buttons}},{buttonRenderer:_.Ce,
buttonViewModel:_.a1})))}}))},"ca");var XM_=_.b8(function(Y){Y=_.ur(Y,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var b=Y.data,w=Y.useFullWidth,V=Y.isDesktopWeb,H=Y.addSearchResultTopMargin,f=function(){return b().layout},E=function(){return b().title},U=function(){return b().metadataText?b().metadataText:b().genre},X=function(){return b().channelName},I=function(){return b().image},k=function(){return b().colorPalette},l=function(){return b().actionButton},x=function(){return b().overflowButton},
Q=function(){return b().avatar},Z=function(){var r={};
r=_.hj("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(r["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return V()},r));
return _.m("div",{class:r},_.m(fQ$,{imageData:I,colorPalette:k}),_.m(N$t,{onTap:function(){return b().onTap},
imageData:I,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:V}),_.m(_.h,{cond:function(){return!V()},
then:function(){return _.m(_.Uz,null,_.m(EAk,{layout:f,colorPalette:k,isDesktopWeb:V,overflowButton:x,avatar:Q,onTap:function(){return b().onTap},
genre:U,title:E,channelName:X,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.m(yj,{actionButton:l}))}}))},e=function(){var r={};
r=_.hj((r["yt-mini-game-card-view-model--search-result-desktop"]=function(){return V()},r["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!V()},r["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return H()},r));
return _.m("div",{class:r},Z(),_.m(ckr,{description:function(){return b().description},
isDesktopWeb:V,title:E,genre:U,onTap:function(){return b().onTap},
actionButton:l,overflowButton:x,avatar:Q,channelName:X}))},O=function(){var r=function(){var W;
return(W=b().entityRedesignExperiments)==null?void 0:W.changePlayablesLayoutWithCta},C={};
C=_.hj("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(C["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return r()},C["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return V()},C["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return V()&&b().width===135},C["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return V()},C["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!r()&&V()&&b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--big-metadata-font"]=function(){return b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},C["yt-mini-game-card-view-model--use-full-width"]=function(){return w()},C["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!l()},C));
return _.m("div",{class:C},_.m(_.h,{cond:function(){return r()},
then:function(){return _.m(_.Uz,null,_.m(UBj,{entityRedesignExperiments:function(){return b().entityRedesignExperiments},
colorPalette:k,isDesktopWeb:V,onTap:function(){return b().onTap},
accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
actionButton:l,imageData:I}),_.m(EAk,{layout:f,colorPalette:k,isDesktopWeb:V,overflowButton:x,avatar:Q,onTap:function(){return b().onTap},
genre:U,title:E,channelName:X,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.m(_.h,{cond:function(){return!!r()===!1&&l()},
then:function(){return _.m(yj,{actionButton:l})}}))},
else:function(){return _.m(_.Uz,null,_.m(fQ$,{imageData:I,colorPalette:k}),_.m(N$t,{onTap:function(){return b().onTap},
imageData:I,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:V}),_.m(EAk,{layout:f,colorPalette:k,isDesktopWeb:V,overflowButton:x,avatar:Q,onTap:function(){return b().onTap},
genre:U,title:E,channelName:X,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.m(yj,{actionButton:l}))}}))},L=function(){var r={};
r=_.hj("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(r["yt-mini-game-card-view-model--square-card-desktop"]=function(){return V()},r["yt-mini-game-card-view-model--use-full-width"]=function(){return w()},r));
return _.m("div",{class:r},_.m(N$t,{onTap:function(){return b().onTap},
imageData:I,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:V}),_.m(EAk,{layout:f,colorPalette:k,isDesktopWeb:V,overflowButton:x,avatar:Q,onTap:function(){return b().onTap},
genre:U,title:E,channelName:X,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}))};
return _.m("mini-game-card-view-model",{class:Y.className},_.m(_.e4,null,_.m(_.n7,{when:function(){return f()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return O()}),_.m(_.n7,{when:function(){return f()==="MINI_APP_LAYOUT_SQUARE"}},function(){return L()}),_.m(_.n7,{when:function(){return f()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return e()})))},"da");
XM_.idomCompat=!0;var yj=_.b8(function(Y){var b=_.JU(Y.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.m(_.OH,{data:Y.actionButton},{buttonViewModel:function(w){return _.m("div",{class:b},_.m(_.a1,{data:w.data}))}})},"ea"),N$t=_.b8(function(Y){var b=Y.onTap;
var w=Y.imageData;var V=Y.accessibilityText;var H=Y.overlayBadgeText;var f=Y.iconName;var E=Y.unplayableInlinePlaybackIconName;Y=Y.isDesktopWeb;return _.m(_.oG,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:b},_.m(_.Y_,{data:w,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(V==null?void 0:V())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.m(DBQ,{overlayBadgeText:H,iconName:f,unplayableInlinePlaybackIconName:E,isDesktopWeb:Y}))},"fa"),DBQ=_.b8(function(Y){var b=Y.overlayBadgeText;
var w=Y.iconName;var V=Y.unplayableInlinePlaybackIconName;var H=Y.isDesktopWeb;return _.m("div",{class:"yt-mini-game-card-view-model__badge-container"},_.m(_.h,{cond:w,then:function(f){return _.m("div",{class:"yt-mini-game-card-view-model__badge"},_.m("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.m(_.n_,{icon:f,className:"yt-mini-game-card-view-model__icon"}),_.m("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},b)))}}),_.m(_.h,{cond:function(){return!w()&&
b()},
then:function(){return _.m("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},b)}}),_.m(_.h,{cond:function(){return V()&&H()},
then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.m(_.n_,{icon:V,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),fQ$=_.b8(function(Y){var b=Y.colorPalette;
var w=Y.imageData;var V=function(){return b().vibrantColorPalette?b().vibrantColorPalette.section2Color:b().sectionTwoColor};
return _.m(_.Uz,null,_.m("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Bb({"background-color":function(){return iW(V(),"1")}})}),_.m("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Bb({"background-image":function(){return"url("+w().sources[0].url+")"}})}),_.m("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Bb({background:function(){return"linear-gradient(180deg,\n    "+iW(V(),".8")+" 0%,\n    "+iW(V(),".4")+" 25%,\n    "+iW(b().vibrantColorPalette?b().vibrantColorPalette.section4Color:b().sectionFourColor,".8")+" 100%)"}})}))},"ha"),EAk=_.b8(function(Y){var b=Y.layout;
var w=Y.colorPalette;var V=Y.overflowButton;var H=Y.avatar;var f=Y.onTap;var E=Y.title;var U=Y.channelName;var X=Y.entityRedesignExperiments;var I=Y.genre;var k=function(){var x;return b()!=="MINI_APP_LAYOUT_SQUARE"&&((x=w())==null?0:x.textPrimaryColor)?"color: "+iW(w().textPrimaryColor,".7"):""},l=function(){var x;
return X==null?void 0:(x=X())==null?void 0:x.changePlayablesLayoutWithCta};
return _.m("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.m(_.h,{cond:H,then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__avatar"},_.m(_.OH,{data:H},{avatarViewModel:_.et}))}}),_.m(_.oG,{command:f,
className:"yt-mini-game-card-view-model__metadata-details"},_.m("h3",{class:"yt-mini-game-card-view-model__title",title:E},E),_.m(_.h,{cond:H,then:function(){return _.m("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.m("span",{class:"yt-mini-game-card-view-model__genre",title:U,style:k},U),_.m("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:k},I))},
else:function(){return _.m(_.h,{cond:l,then:function(){return _.m("span",{class:"yt-mini-game-card-view-model__genre",title:I},I)},
else:function(){return _.m("span",{class:"yt-mini-game-card-view-model__genre",title:I,style:k},I)}})}})),_.m("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.m(_.OH,{data:V},{buttonViewModel:function(x){var Q=x.data;
return _.m(_.a1,{data:function(){return Object.assign({},Q(),{customFontColor:l()?void 0:Q().customFontColor})}})}})))},"ia"),UBj=_.b8(function(Y){var b=Y.entityRedesignExperiments;
var w=Y.colorPalette;var V=Y.isDesktopWeb;var H=Y.onTap;var f=Y.accessibilityText;var E=Y.overlayBadgeText;var U=Y.iconName;var X=Y.unplayableInlinePlaybackIconName;var I=Y.actionButton;Y=Y.imageData;var k=function(){var l;return b==null?void 0:(l=b())==null?void 0:l.changePlayablesLayoutWithCta};
return _.m("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.m(fQ$,{imageData:Y,colorPalette:w}),_.m(N$t,{onTap:H,imageData:Y,accessibilityText:f,overlayBadgeText:E,iconName:U,unplayableInlinePlaybackIconName:X,isDesktopWeb:V}),_.m(_.h,{cond:function(){return(k==null?void 0:k())&&(I==null?void 0:I())},
then:function(){return _.m(yj,{actionButton:I})}}))},"ja"),ckr=_.b8(function(Y){var b=Y.description;
var w=Y.isDesktopWeb;var V=Y.title;var H=Y.genre;var f=Y.onTap;var E=Y.actionButton;var U=Y.overflowButton;var X=Y.avatar;Y=Y.channelName;var I={};I=_.hj("yt-mini-game-card-view-model--search-result-metadata-wrapper",(I["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=w,I["yt-mini-game-card-view-model--show-unplayable-on-hover"]=w,I["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!w()},I));
var k={};k=_.hj("yt-mini-game-card-view-model__search-result-info-row",(k["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!w()},k));
return _.m("div",{class:I},_.m("div",{class:k},_.m(_.oG,{command:f,className:"yt-mini-game-card-view-model__metadata-details"},_.m("h3",{class:"yt-mini-game-card-view-model__title",title:V},V),_.m("span",{class:"yt-mini-game-card-view-model__genre",title:H},H)),_.m(yj,{actionButton:E,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.m("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.m(_.OH,{data:U},{buttonViewModel:_.a1}))),_.m("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.m("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.m("div",{class:"yt-mini-game-card-view-model__avatar"},_.m(_.OH,{data:X},{avatarViewModel:function(l){var x=l.data;return _.m(_.et,{data:function(){return Object.assign({},x(),{avatarImageSize:w()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.m(_.oG,{command:f,
className:"yt-mini-game-card-view-model__description"},_.m("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},Y)),_.m(_.oG,{command:f,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.m("div",null)))),_.m(_.h,{cond:w,then:function(){return _.m(_.oG,{command:f,className:"yt-mini-game-card-view-model__description"},b)}}))},"ka");_.f_(XM_,"mini-game-card-view-model",{props:{data:_.YX,className:_.YX,useFullWidth:_.YX,isDesktopWeb:_.YX,addSearchResultTopMargin:_.YX}});_.f_(gAQ,"dismissed-mini-game-card-view-model",{props:{data:_.YX,useSquareAspectRatio:_.YX}});var $g=function(){var Y=_.F.apply(this,arguments)||this;Y.isSearch=!1;Y.isRichGrid=!1;return Y};
_.P($g,_.F);_.g=$g.prototype;_.g.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.g.dismissibleItemOnYtServiceRequestSent=function(Y,b){b.actions&&this.dismissibleItemProcessActions(Y,b.actions)};
_.g.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.g.dataChanged=function(){this.dismissibleItemReset()};
_.g.dismissibleItemProcessActions=function(Y,b){for(var w=0;w<b.length;w++){var V=b[w];_.v(V,_.Mm)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.v(V,_.Mm)),Y.stopPropagation())}};
_.g.dismissibleItemHandleReplaceEnclosingAction=function(Y){this.dismissedRenderer=Y.item;this.isDismissed=!0};
_.up.Object.defineProperties($g.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var Y;return!!this.data&&!((Y=this.dismissedRenderer)==null?0:Y.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.dismissedRenderer)==null||!Y.notificationMultiActionRenderer)}}});
$g.prototype.dataChanged=$g.prototype.dataChanged;$g.prototype.dismissibleItemOnRequestSent=$g.prototype.dismissibleItemOnRequestSent;$g.prototype.dismissibleItemOnYtServiceRequestSent=$g.prototype.dismissibleItemOnYtServiceRequestSent;_.z([_.R(),_.K("design:type",Object)],$g.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$g.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],$g.prototype,"isDismissed",void 0);
_.z([_.R(),_.K("design:type",Object)],$g.prototype,"dismissedRenderer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$g.prototype,"isRichGrid",void 0);_.z([_.t("data.layout"),_.K("design:type",Object),_.K("design:paramtypes",[])],$g.prototype,"useSquareAspectRatio",null);_.z([_.t("data","dismissedRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],$g.prototype,"showCard",null);
_.z([_.t("data","dismissedRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],$g.prototype,"showDismissed",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],$g.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.z([_.kZ("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$g.prototype,"dismissibleItemOnRequestSent",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$g.prototype,"dataChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],$g);
_.a($g,"ytd-mini-game-card-view-model",function(){if(wMI!==void 0)return wMI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return wMI=Y},{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var mBj;var oAo;var jt=function(){return _.YL.apply(this,arguments)||this};
_.P(jt,_.YL);jt.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
jt.prototype.getContinuationUrl=function(Y){var b={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Jq(Y,b)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jt.prototype,"data",void 0);_.z([_.FM({is:"yt-reload-continuation",noInjection:!0})],jt);var IQ5;var k$j;var G6=function(){var Y=_.F.apply(this,arguments)||this;Y.notificationData={};return Y};
_.P(G6,_.F);_.g=G6.prototype;_.g.isMenuExpanded=function(Y){return Y&&Y.length<=1?"undefined":"false"};
_.g.dataChanged_=function(){this.selected=void 0;var Y=this.computeSelectedIndex_(this.data);Y>=0&&(this.selected=Y);Y=this.data&&this.data.length>1;_.U6(this.hostElement,"has-items",Y);_.E6(this.hostElement).querySelector("#label").tabIndex=Y?0:-1};
_.g.onDropdownOpen=function(){var Y=_.dO();if(this.parentTrackingParams&&this.data){var b=_.nA(this.parentTrackingParams);this.data.forEach(function(w){Y&&b&&w.trackingParams&&(w=_.nA(w.trackingParams),_.yX(Y,b,w),_.Gu(Y,[w]))})}else this.parentTrackingParams||_.Sk(new _.BQ("No parent tracking params passed in for yt-dropdown-menu."))};
_.g.hasNotification=function(Y){var b;if(Y.targetId&&((b=this.notificationData)==null?0:b.targetId)){var w;return Y.targetId===((w=this.notificationData)==null?void 0:w.targetId)}};
_.g.computeSelectedIndex_=function(Y){if(Y)for(var b=0,w=Y.length;b<w;b++)if(Y[b].selected)return b;return-1};
_.g.computeLabel_=function(Y){return this.data&&Y!=void 0?this.data[Y].title:""};
_.g.computeShowIcon_=function(Y,b){return!b&&!!Y};
_.g.computeVerticalOffset_=function(Y){return Y?36:0};
_.g.computeEndpoint_=function(Y){return Y.endpoint||Y.navigationEndpoint};
_.g.onLabelClick_=function(Y){this.data&&this.data.length<=1?Y.stopPropagation():this.menuExpanded="true"};
_.g.onIronActivate_=function(Y){Y=Y.detail.item;var b=_.E6(this.hostElement).querySelector("#repeat").itemForElement(Y);if(b&&b.trackingParams){var w=_.dO(),V=_.nA(b.trackingParams);w&&_.J1(w,V)}if(b&&b.serviceEndpoint)_.q("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(b.serviceEndpoint):_.oP(this.hostElement,[b.serviceEndpoint]),_.Ua(this.hostElement,"yt-playlist-reloading");else a:{if((b=Y.querySelector("yt-supported-renderers"))&&
(b=b.rendererElement)&&b.is=="yt-reload-continuation"){b.trigger();break a}(Y=Y.querySelector("yt-reload-continuation"))&&Y.trigger()}};
_.g.onTap_=function(Y){Y.preventDefault()};
_.g.onItemTap_=function(Y){this.ytEndpointBehavior.onEndpointTap_(Y)};
_.g.onLinkFocus_=function(Y){try{var b=Y.target}catch(V){}if(b){var w=b.querySelector("tp-yt-paper-item");w&&_.ir(this,"focus",function(){w.focus()})}};
_.g.onMenuClose_=function(){this.menuExpanded="false"};
_.g.isLabelIconActive_=function(Y){return Y==="true"};
_.g.computeHasSubtitle_=function(Y){return!!Y};
_.g.computeHrefForItem_=function(Y){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(Y))};
_.g.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
_.up.Object.defineProperties(G6.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
G6.prototype.onMenuClose_=G6.prototype.onMenuClose_;G6.prototype.onTap_=G6.prototype.onTap_;G6.prototype.onIronActivate_=G6.prototype.onIronActivate_;G6.prototype.onDropdownOpen=G6.prototype.onDropdownOpen;G6.prototype.dataChanged_=G6.prototype.dataChanged_;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],G6.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.sS.YtEndpointBehavior),_.K("design:type",Object)],G6.prototype,"ytEndpointBehavior",void 0);
_.z([_.R(),_.K("design:type",Array)],G6.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],G6.prototype,"parentTrackingParams",void 0);_.z([_.R(),_.K("design:type",Object)],G6.prototype,"selected",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],G6.prototype,"useLabel",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],G6.prototype,"useComputedAriaLabel",void 0);_.z([_.R(),_.K("design:type",String)],G6.prototype,"icon",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],G6.prototype,"iconLabel",void 0);_.z([_.R(),_.K("design:type",String)],G6.prototype,"ariaLabel",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],G6.prototype,"disabled",void 0);_.z([_.R({computed:"isMenuExpanded(data)"}),_.K("design:type",String)],G6.prototype,"menuExpanded",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],G6.prototype,"closeOnActivate",void 0);
_.z([_.R({reflectToAttribute:!0,value:_.q("web_modern_buttons")}),_.K("design:type",Boolean)],G6.prototype,"modernButtons",void 0);_.z([_.R(),_.K("design:type",Object)],G6.prototype,"notificationData",void 0);_.z([_.t("ariaLabel, selected"),_.R(),_.K("design:type",String),_.K("design:paramtypes",[])],G6.prototype,"computedAriaLabel",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G6.prototype,"dataChanged_",null);
_.z([_.kZ("paper-dropdown-open"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],G6.prototype,"onDropdownOpen",null);_.z([_.kZ("iron-activate"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],G6.prototype,"onIronActivate_",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],G6.prototype,"onTap_",null);
_.z([_.kZ("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],G6.prototype,"onMenuClose_",null);_.z([_.FM({is:"yt-dropdown-menu",disableElementRegistration:!0})],G6);
_.a(G6,"yt-dropdown-menu",function(){if(k$j===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;IQ5===void 0&&(IQ5=document.createElement("template"));var V=IQ5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);k$j=Y}Y=k$j;return Y},{mode:2});var T6=function(){var Y=_.F.apply(this,arguments)||this;Y.hasNotification=!1;return Y};
_.P(T6,_.F);T6.prototype.computeId=function(Y){return Y};
T6.prototype.computeHorizontalAlign=function(Y){return Y?"right":"left"};
T6.prototype.computeAccessibilityLabel=function(Y){var b,w;return((b=Y.accessibility)==null?void 0:(w=b.accessibilityData)==null?void 0:w.label)||null};
T6.prototype.notificationDataChanged=function(){var Y;this.hasNotification=!!this.notificationData&&!((Y=this.data)==null?0:Y.icon)};
T6.prototype.notificationDataChanged=T6.prototype.notificationDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.CZ.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],T6.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],T6.prototype,"data",void 0);_.z([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",String)],T6.prototype,"id",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],T6.prototype,"isRightAligned",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],T6.prototype,"disabled",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],T6.prototype,"closeOnActivate",void 0);_.z([_.R(),_.K("design:type",Object)],T6.prototype,"notificationData",void 0);_.z([_.R(),_.K("design:type",Object)],T6.prototype,"hasNotification",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],T6.prototype,"useComputedAriaLabel",void 0);_.z([_.lr("notificationData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T6.prototype,"notificationDataChanged",null);_.z([_.FM({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],T6);
_.a(T6,"yt-sort-filter-sub-menu-renderer",function(){if(oAo===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;mBj===void 0&&(mBj=document.createElement("template"));var V=mBj;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);oAo=Y}Y=oAo;return Y},{mode:2});_.gS(KFB);
var lQ$=_.b8(function(Y){var b=Y.children;var w=Y.className;var V=Y.style;var H=Y.role;var f=Y.ariaSelected;var E=Y.ariaLabel;var U=Y.ariaHidden;var X=Y.ariaLabelledby;var I=Y.ariaDescribedby;var k=Y.command;var l=Y.elementsCommand;var x=Y.forceNewState;var Q=Y.tabIdentifier;var Z=Y.target;var e=Y.tabIndex;var O=Y.stopPropagation;Y=_.sN(function(){var L=_.KA({innertubeCommand:k==null?void 0:k(),elementsCommand:l==null?void 0:l(),forceNewState:x==null?void 0:x(),stopPropagation:(O==null?void 0:O())!==
!1});L||(L={});L["aria-hidden$"]=U==null?void 0:U();var r;L.tabindex$=(r=e==null?void 0:e())!=null?r:L.tabindex$;var C;L["force-new-state$"]=(C=x==null?void 0:x())!=null?C:L["force-new-state$"];var W;L.role$=(W=H==null?void 0:H())!=null?W:L.role$;var y;L["aria-hidden$"]=(y=U==null?void 0:U())!=null?y:L["aria-hidden$"];var G;L.target$=(G=Z==null?void 0:Z())!=null?G:L.target$;return L},void 0,"SU0Mnc");
return _.m(_.oG,{aTagConfig:Y,className:w,style:V,ariaLabel:E,ariaLabelledby:X,ariaDescribedby:I,ariaSelected:f,tabIdentifier:Q},b)},"la");var hjo=_.sv(i2u);_.gS(i2u);_.f_(hjo,"place-data-view-model",{props:{data:_.YX}});var xB$=new _.Hx("INLINE_PLAYBACK_HOOK_TOKEN");var q95=function(Y){this.setActiveSlideIndex=Y;this.jobIds=[];this.isSlideshowPlaying=!1},vAr=function(Y,b){Y.isSlideshowPlaying||(Y.isSlideshowPlaying=!0,sbU(Y),Qbt(Y,b,0))},sbU=function(Y){_.Xl(_.Lb,function(){Y.setActiveSlideIndex(0)},1)},Qbt=function(Y,b,w){Y.jobIds.push(_.Xl(_.Lb,function(){var V=w<b-1?w+1:0;
Y.setActiveSlideIndex(V);Qbt(Y,b,V)},1800))};var PKd=new _.Hx("IMAGE_ON_LOAD_HANDLER_TOKEN");var Z2t=_.b8(function(Y){return _.m("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.m(_.h,{cond:function(){var b;return(b=Y.data())==null?void 0:b.thumbnail},
then:function(b){return _.m(_.Y_,{data:b,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.B$C=_.b8(function(Y){var b=Y.data;var w=Y.lockupExperiments;Y={};return _.m("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.m("div",{class:_.hj("ytThumbnailOverlayButtonViewModelButton",(Y.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var V;return w&&((V=w())==null?void 0:V.useLegacySizedIconButton)},Y))},_.m(_.OH,{data:function(){return b().overlayButton}},{buttonViewModel:function(V){return _.m(_.a1,{data:V.data,
buttonOverrides:function(){var H;return w&&((H=w())==null?0:H.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.B$C.idomCompat=!0;var nAC=_.b8(function(Y){return _.m("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Q_(function(b){b.preventDefault();return!1})},_.m(_.OH,{data:function(){return Y.data().buttons}},{toggleButtonViewModel:function(b){return _.m("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.m(_.td,{data:b.data}))}}))},"oa");
nAC.idomCompat=!0;var M_t=_.b8(function(Y){var b=function(){var w;return((w=_.v(Y.data().rendererContext,_.Ba))==null?void 0:w.label)||""};
return _.m("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.m(_.h,{cond:function(){return Y.data().image},
then:function(){return _.m("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.m(_.Y_,{data:function(){return Y.data().image},
alt:b}))}}),_.m(_.h,{cond:function(){return Y.data().text},
then:function(){return _.m("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return Y.data().text})}}))},"pa");_.JH=_.b8(function(Y){var b=[],w=function(){var x,Q;return RFq((x=Y.width)==null?void 0:x.call(Y),(Q=Y.height)==null?void 0:Q.call(Y))},V=_.fH().resolve(_.HQ(PKd)),H=_.GM("yt-thumbnail-view-model",function(){b.push("elRef.value set");
var x;(x=Y.playbackRef)==null||x.call(Y,{thumbnailElRef:H,thumbnail:Y.data().image,thumbnailOverlays:Y.data().overlays,thumbnailSize:w()})});
_.dx(function(){b.push("onInit");_.R2(function(){b.push("onCleanup")})});
var f=_.rn(CKL),E=function(){var x,Q;return(Q=(x=Y.aspectRatio)==null?void 0:x.call(Y))!=null?Q:0},U=function(){return(Y.data().image?_.ULb(Y.data().image):E())<=1&&E()===0},X=function(){return U()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},I=function(){H.value||_.Sk(new _.BQ("Thumbnail elRef.value is null",b.join("\n")));
V&&H.value&&V(H.value)},k=function(){var x,Q;
return((x=Y.hovered)==null?void 0:x.call(Y))&&w()!=="large"&&((Q=Y.data().overlays)==null?void 0:Q.some(function(Z){return _.v(Z,qwo)}))},l={};
return _.m("yt-thumbnail-view-model",{class:_.hj("yt-thumbnail-view-model",Y.className,function(){return jbb(E())},function(){var x,Q;
a:{var Z=w(),e=(x=Y.disableRounding)==null?void 0:x.call(Y);x=(Q=Y.isClip)==null?void 0:Q.call(Y);if(!e&&!x)switch(Z){case "large":Q="yt-thumbnail-view-model--large";break a;case "small":Q="yt-thumbnail-view-model--small";break a;default:Q="yt-thumbnail-view-model--medium";break a}Q=void 0}return Q},(l["yt-thumbnail-view-model--cinematic"]=U,l)),
style:_.Bb({"background-color":function(){var x,Q=U()?(x=Y.data().backgroundColor)==null?void 0:x.lightTheme:void 0;return Q?iW(Q,"1"):void 0}}),
el:H},_.m(_.h,{cond:U,then:function(){return _.m("div",{class:"yt-thumbnail-view-model__blurred-image"},_.m(_.Y_,{data:function(){return Y.data().image},
alt:"",contentMode:X,targetWidth:Y.width,onload:I}))}}),_.m("div",{class:"yt-thumbnail-view-model__image"},_.m(_.Y_,{data:function(){return Y.data().image},
alt:"",contentMode:X,targetWidth:Y.width,onload:I}),null),_.m(_.OH,{data:function(){return k()?void 0:Y.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:LWd,thumbnailOverlayBadgeViewModel:function(x){return _.m(Sl8,{data:x.data,thumbnailSize:w,isClip:Y.isClip})},
thumbnailBottomOverlayViewModel:function(x){return _.m(t$j,{data:x.data,thumbnailSize:w,isClip:Y.isClip})},
thumbnailOverlayFullViewModel:M_t,thumbnailOverlayButtonViewModel:function(x){return _.m(_.B$C,{data:x.data,lockupExperiments:Y.lockupExperiments})}}),_.m(_.OH,{data:function(){var x;
return((x=Y.hovered)==null?0:x.call(Y))?Y.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(x){return _.m(Ms,{data:x.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:nAC}),_.m(_.OH,{data:function(){var x;return((x=Y.hovered)==null?0:x.call(Y))&&f()?Y.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Z2t}),_.m(_.h,{cond:Y.isClip,then:function(){return _.m("div",{class:"yt-pinking"},_.m("svg",{class:"yt-pinking__pinking-left"},_.m("defs",null,_.m("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.m("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.m("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.m("svg",{class:"yt-pinking__pinking-right"},_.m("defs",null,_.m("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.m("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.m("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.JH.idomCompat={callbacks:{playbackRef:!0}};var ejt=_.b8(function(Y){var b=_.N(_.kw(-1,void 0,"IOLZ0b")),w=b.next().value,V=b.next().value;_.dx(function(){var H=new q95(V);vAr(H,Y.data().thumbnails.length);_.R2(function(){if(H.isSlideshowPlaying){H.isSlideshowPlaying=!1;for(var f=H.jobIds,E=0,U=f.length;E<U;E++)_.Lb.cancelJob(f[E]);H.jobIds.length=0}})});
return _.m("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.m(_.OH,{data:function(){return Y.data().thumbnails}},{thumbnailViewModel:function(H,f){return _.m("div",{class:function(){var E=!Y.data().primaryThumbnail,U=f(),X=w(),I=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
E&&U===0&&I.push("yt-collection-thumbnail-slideshow--first-slide");U<=X&&I.push("yt-collection-thumbnail-slideshow--show-slide");return I.join(" ")}},_.m(_.JH,{data:H.data,
disableRounding:Y.disableRounding}))}}))},"ra");
ejt.idomCompat=!0;var G$v=new _.Hx("DWELL_DETECTOR_REGISTRY_TOKEN");var O2o=_.b8(function(Y){var b=Jk6(Y.triggeringElement),w=function(){return!!Y.data().primaryThumbnail};
return _.m("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.m(pMC,{stackEnabled:w,thumbnailSize:function(){var V,H;return RFq((V=Y.width)==null?void 0:V.call(Y),(H=Y.height)==null?void 0:H.call(Y))},
doubleStack:Y.doubleStack,stackColor:function(){return Y.data().stackColor}},_.m("div",null,_.m(_.OH,{data:function(){return Y.data().primaryThumbnail}},{thumbnailViewModel:function(V){var H={};
return _.m(_.JH,{data:V.data,width:Y.width,height:Y.height,aspectRatio:Y.aspectRatio,disableRounding:Y.disableRounding,className:_.hj((H["yt-collection-thumbnail-view-model--has-stacks"]=w,H)),hovered:Y.hovered,playbackRef:Y.playbackRef})}}),_.m(_.h,{cond:function(){var V;
return b()&&((V=Y.data().thumbnails)==null?void 0:V.length)},
then:function(){return _.m("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.m(ejt,{data:Y.data,disableRounding:function(){return!w()}}))}}))))},"sa");
O2o.idomCompat={callbacks:{playbackRef:!0}};
var pMC=_.b8(function(Y){var b=Y.children;var w=Y.stackEnabled;var V=Y.thumbnailSize;var H=Y.doubleStack;var f=Y.stackColor;var E,U=(E=_.fH().resolve(_.HQ(_.GT)))==null?void 0:E();return _.m(_.h,{cond:w,then:function(){return _.m(ENC,{data:function(){var X,I;return{experimentEnabled:!0,thumbnailSize:V(),doubleStack:H==null?void 0:H(),color:U?f==null?void 0:(X=f())==null?void 0:X.darkTheme:f==null?void 0:(I=f())==null?void 0:I.lightTheme,enableResponsiveMode:!1}}},b)},
else:function(){return b}})},"ta");var t_$=new _.Hx("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var Yk;_.uZ={calledOnce:!0,state:"visible"};Yk={calledOnce:!0,state:"hidden"};_.bP=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;var V=Y.className;var H=Y.delayedClassName;Y=Y.animationEntityKey;var f=_.GM("ad-button-view-model"),E=_.JU(Y,""),U=_.xh(n3b,E),X=function(){var G,Nr;return(Nr=(G=U())==null?void 0:G.value)!=null?Nr:!1},I=function(){_.Td(_.qo("booleanEntity",E(),{key:E(),
value:!0}));L=void 0};
Y=_.N(_.Zp(X));var k=Y.next().value,l=Y.next().value;Y=_.N(_.Zp(X));var x=Y.next().value,Q=Y.next().value;Y=_.N(_.Zp(function(){var G;return X()?(G=b().styleTransitionConfig)==null?void 0:G.destinationStyle:void 0}));
var Z=Y.next().value,e=Y.next().value,O=function(){var G=Object.assign({},b(),Z()&&{style:Z()}),Nr,o6,lI=G.label,Zt=(Nr=G.interaction)==null?void 0:(o6=Nr.accessibility)==null?void 0:o6.label;Nr=G.iconImage?G.label&&G.label.content?G.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:lI,accessibilityLabel:Zt,style:wc6(G.style),type:VDq(G.style),state:"active",size:bFv(G.size),iconPosition:Nr,disabled:!1,aTagConfig:YEv(G,w)}},L;
_.H6(f,{visibilityCallback:function(G){var Nr,o6=(Nr=b().interaction)==null?void 0:Nr.onFirstVisible;G&&o6&&_.AA(o6)},
showOption:_.uZ});var r=function(){return MR(O(),!!b().iconImage)};
V=_.hj(function(){return"ytwAdButtonViewModelHost"},function(){return b().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var G=!!b().delayedAppearanceConfig,Nr=k();
return G?Nr?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var G=!!b().delayedAppearanceConfig,Nr=x();
return G?Nr?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!b().delayedAppearanceConfig||k()?H==null?void 0:H():""},V!=null?V:"");
var C=function(){var G,Nr=(G=b().delayedAppearanceConfig)==null?void 0:G.delayedInvisibleSeconds;Nr&&(L=_.vv(_.Lb,function(){l(!0);W()},Nr*1E3))},W=function(){var G,Nr=(G=b().delayedAppearanceConfig)==null?void 0:G.delayedVisibleSeconds;
Nr&&(L=_.vv(_.Lb,function(){Q(!0);y()},Nr*1E3))},y=function(){var G,Nr=(G=b().styleTransitionConfig)==null?void 0:G.styleTransitionSeconds,o6,lI=(o6=b().styleTransitionConfig)==null?void 0:o6.destinationStyle;
Nr&&lI?L=_.vv(_.Lb,function(){e(lI);I()},Nr*1E3):I()};
_.dx(function(){var G;((G=b().delayedAppearanceConfig)==null?0:G.transitionDurationSeconds)&&f.value.style.setProperty("transition-duration",b().delayedAppearanceConfig.transitionDurationSeconds+"s");C()});
_.R2(function(){L&&_.Lb.cancelJob(L)});
return _.m("ad-button-view-model",{class:V,el:f},_.m(_.h,{cond:O,then:function(){return _.m(HT,{data:O,icon:function(){return _.m(_.h,{cond:function(){return b().iconImage},
then:function(G){return _.m(_.Y_,{data:G,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var RjK=_.b8(function(Y){var b=Y.data;Y=_.GM("ad-button-group-view-model");_.H6(Y,{visibilityCallback:function(V){var H,f=(H=b().interaction)==null?void 0:H.onFirstVisible;V&&f&&_.AA(f)},
showOption:_.uZ});var w={};return _.m("ad-button-group-view-model",{class:_.hj("ytwAdButtonGroupViewModelHost",(w.ytwAdButtonGroupViewModelHostCompactWidth=function(){return b().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},w)),
el:Y},_.m("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.m(_.OH,{data:function(){return b().secondaryAdButton}},{adButtonViewModel:function(V){return _.m(_.bP,{data:V.data})}})),_.m("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.m(_.OH,{data:function(){return b().primaryAdButton}},{adButtonViewModel:function(V){return _.m(_.bP,{data:V.data})}})))},"va");var dB$=_.b8(function(Y){var b=function(){var w;return((w=Y.data())==null?void 0:w.answers)||[]};
return _.m("yt-survey-icons",{class:"ytSurveyIconsHost"},_.m("div",{class:"ytSurveyIconsHeader"},_.m("div",{class:"ytSurveyIconsTitle"},function(){var w;return(w=Y.data())==null?void 0:w.text}),_.m("div",null,_.m(HT,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var w;(w=Y.onDismiss)==null||w.call(Y)}}},
iconName:"DISMISSAL"}))),_.m("div",null,_.m("div",{class:"ytSurveyIconsAnswers"},_.m(_.Bf,{each:function(){return b()},
keyBy:"INDEX"},function(w,V){return _.m("div",null,_.m(HT,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var H;(H=Y.onSelect)==null||H.call(Y,w(),V)}}},
icon:function(){return _.m(_.n_,{icon:function(){var H,f;return(H=w())==null?void 0:(f=H.icon)==null?void 0:f.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.m("div",{class:"ytSurveyIconsAnswersText"},_.m("div",null,function(){return b().length?b()[0].text:""}),_.m("div",null,function(){return b().length?b()[b().length-1].text:""}))))},"wa");var FFQ=_.b8(function(Y){var b=_.N(_.kw(!1,void 0,"s8HkOb")),w=b.next().value,V=b.next().value,H=_.xh(RpL,function(){var U;return(U=Y.data().keys)==null?void 0:U.surveyEntityKey}),f=_.xh(d2u,function(){var U;
return(U=Y.data().keys)==null?void 0:U.surveyStateEntityKey});
_.jk("ytd-slimline-survey-show-action",function(){V(!1)});
var E=function(){var U,X;var I=(U=f())==null?void 0:(X=U.questionStack)==null?void 0:X[0];if(I!==void 0){var k,l;return(k=H())==null?void 0:(l=k.questions)==null?void 0:l[I]}};
b={};return _.m("yt-slimline-survey-view-model",{class:_.hj("ytSlimlineSurveyViewModelHost",(b.ytSlimlineSurveyViewModelCollapsed=function(){return w()},b))},_.m("div",{class:"ytSlimlineSurveyViewModelContainer"},_.m(_.h,{cond:function(){var U;
return((U=E())==null?void 0:U.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.m(dB$,{data:function(){return E()},
onSelect:function(U,X){var I,k;return _.c(function(l){V(!0);if(k=(I=Y.data())==null?void 0:I.onSelectRating)_.AA(k),_.Td(ABj(X));_.om(l)})},
onDismiss:function(){V(!0)}})}})))},"xa");var LFQ=_.b8(function(Y){return _.m("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.m(_.OH,{data:function(){var b;return(b=Y.data())==null?void 0:b.attachments}},{flexibleActionsViewModel:function(b){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(QDI,{data:b.data,
layout:function(){var w;return((w=Y.lockupStyle())==null?void 0:w.arrangement)===1?0:1},
justifyContentOverride:function(){var w;return((w=Y.lockupStyle())==null?void 0:w.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(b){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(FFQ,{data:b.data}))},
expandableMetadataViewModel:function(b){b=b.data;var w;return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},(w=_.fH().resolve(_.HQ(t_$)))==null?void 0:w({data:b}))},
adButtonGroupViewModel:function(b){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(RjK,{data:b.data}))},
adButtonViewModel:function(b){return _.m("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.m(_.bP,{data:b.data}))}}))},"ya");var cgu=_.cQ("rich_grid_min_item_width",310),N36=_.cQ("rich_grid_max_item_width",500);var srb=_.b8(function(Y){var b=Y.data;return _.m("br-nz-badge-shape",{class:_.hj(function(){return lBB(b().brNzRatingBadgeType)}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},function(){var w;
return(w=b())==null?void 0:w.text})},"za");_.gS(Qru);var S9j,aQI;S9j=_.b8(function(Y){var b=function(){var w=Y.data(),V,H;return w?qEI(w,!((V=Y.workaroundShortsIsThumbnailBadge)==null||!V.call(Y)),(H=Y.modern)==null?void 0:H.call(Y)):void 0};
return _.m("yt-badge-view-model",{class:_.hj("yt-badge-view-model-wiz",Y.class)},_.m(_.e4,null,_.m(_.n7,{when:function(){var w;return!((w=b())==null||!w.brNzRatingBadgeType)}},function(){return _.m(srb,{data:function(){return b()}})}),_.m(_.n7,{when:function(){return!!b()&&!b().brNzRatingBadgeType}},function(){return _.m(_.YE,{data:function(){return b()}})})))},"Aa");
aQI=_.q("web_enable_sink_yt_badge_view_model")?S9j:Qru;_.wz=_.q("web_enable_sink_yt_badge_view_model")?S9j:_.sv(Qru);S9j.idomCompat=!0;var PUe,v6G;PUe=16/9;v6G=2/3;_.V8=_.b8(function(Y){var b=Y.data;var w=Y.className;var V=Y.imageSizeConfig;var H=Y.notifyOnLoaded;Y=_.GM("yt-content-preview-image-view-model");var f=function(){return b().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},E=function(){var Q;
return _.$h((Q=b())==null?void 0:Q.rendererContext)},U={};
U=(U["yt-content-preview-image-view-model-wiz"]=!0,U["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return f()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},U["yt-content-preview-image-view-model-wiz--tappable"]=function(){return E()},U);
var X=function(){var Q,Z;return(Z=(Q=_.v(b().rendererContext,_.Ba))==null?void 0:Q.label)!=null?Z:""},I=function(){return B3I(b())},k=function(){var Q=ZFa(f(),b().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",V==null?void 0:V(),n6u(I()),b().layoutWidth,b().layoutHeight),Z=Object.assign({},Q);
Q.width&&(Z.width=Math.round(Q.width));Q.height&&(Z.height=Math.round(Q.height));Q.maxWidth&&(Z.maxWidth=Math.round(Q.maxWidth));Q.maxHeight&&(Z.maxHeight=Math.round(Q.maxHeight));return Z},l=_.sN(function(){return k().height},void 0,"QOtei"),x=_.sN(function(){return k().width},void 0,"rKpuNc");
_.jP(Y,function(){var Q;return(Q=b())==null?void 0:Q.rendererContext});
return _.m("yt-content-preview-image-view-model",{el:Y,role:function(){return E()?"link":void 0},
tabindex:function(){return E()?0:void 0},
class:_.hj(w,U,function(){var Q=f();var Z=V==null?void 0:V();Q=Q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(Z==null?void 0:Z.size)!=null&&Z.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(Z==null?void 0:Z.size)!=null&&Z.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 Q}),
style:function(){var Q=k(),Z=[];Q.width&&Z.push("width: "+Q.width+"px");Q.height&&Z.push("height: "+Q.height+"px");Q.maxWidth&&Z.push("max-width: "+Q.maxWidth+"px");Q.maxHeight&&Z.push("max-height: "+Q.maxHeight+"px");Q.fullWidth&&Z.push("width: 100%");return Z.join(";")}},_.m(_.h,{cond:I,
then:function(Q){return _.m(_.Y_,{data:Q,alt:X,"data-disabled$":function(){return!X()},
notifyOnLoaded:H,targetWidth:x,targetHeight:l,preserveWidth:function(){return!!x()},
preserveHeight:function(){return!!l()}})}}),_.m(_.OH,{data:function(){var Q;
return(Q=b())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:Ms,
thumbnailOverlayButtonViewModel:_.B$C}))},"Ba");
_.V8.idomCompat=!0;var zj5=_.b8(function(Y){var b=Y.data;var w=Y.className;var V=Y.useSmallLayout;var H=Y.useMediumText;Y=_.GM("yt-attribution-view-model");var f={};H=(f["yt-attribution-view-model-wiz"]=!0,f["yt-attribution-view-model-wiz--medium-text"]=H,f);_.jP(Y,function(){var E;return(E=b())==null?void 0:E.rendererContext});
return _.m("yt-attribution-view-model",{el:Y,class:_.hj(w,H)},_.m(_.h,{cond:function(){return _.$h(b().rendererContext)},
then:function(){return _.m("button",{class:"yt-attribution-view-model-wiz--tappable"},_.m(rkr,{data:b,useSmallLayout:V}))},
else:function(){return _.m(rkr,{data:b,useSmallLayout:V})}}))},"Ca"),rkr=_.b8(function(Y){var b=Y.data;
var w=Y.useSmallLayout;var V=function(){return{size:(w==null?0:w())?16:24}};
return _.m(_.Uz,null,_.m(_.OH,{data:function(){return b().contentPreviewImage}},{contentPreviewImageViewModel:function(H){return _.m(_.V8,{data:H.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:V})}}),_.m(_.OH,{data:function(){return b().badge}},{badgeViewModel:function(H){return _.m(_.wz,{data:H.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.m(_.h,{cond:function(){return b().text},
then:function(){return _.m(_.wv,{text:function(){return b().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.m(_.h,{cond:function(){return b().suffix},
then:function(){return _.m(_.wv,{text:function(){return b().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
zj5.idomCompat=!0;var dWq=_.ZE({avatarStackViewModel:_.OB,badgeViewModel:aQI});_.gS(SEM);var WFI,KFU,i2$,Ak8,CKK,ykU;WFI=_.b8(function(Y){var b=Y.delimiter;var w=Y.max;var V=Y.index;var H=Y.isStandalone;return _.m(_.h,{cond:function(){return w()-1>V()},
then:function(){var f={};return _.m("span",{class:_.hj("yt-content-metadata-view-model-wiz__delimiter",(f["yt-content-metadata-view-model-wiz__delimiter--standalone"]=H,f)),"aria-hidden":!0},b)}})},"Ea");
KFU=_.b8(function(Y){var b=Y.metadataPart;var w=Y.maxLines;return _.m(_.wv,{text:function(){return b().text},
linkInheritColor:!0,className:function(){return aBG(w())},
userInput:!0})},"Fa");
i2$=_.b8(function(Y){var b=Y.metadataPart;var w=Y.maxLines;return _.m(_.h,{cond:function(){return b().tooltip},
then:function(V){return _.m("span",{title:V,role:"tooltip"},_.m(KFU,{metadataPart:b,maxLines:w}))},
else:function(){return _.m(KFU,{metadataPart:b,maxLines:w})}})},"Ga");
Ak8=_.b8(function(Y){var b=Y.metadataPart;var w=Y.isOverlay;var V=Y.useMediumText;var H=Y.hideAvatar;var f=function(){return b().maxLines!==void 0?b().maxLines:1};
return _.m(_.Uz,null,_.m(_.OH,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(E){return _.m(_.OB,{data:E.data,
isOverlay:w,useMediumText:V,hideAvatar:H})},
badgeViewModel:_.wz}),_.m(_.h,{cond:function(){return b().text},
then:function(){return _.m(i2$,{metadataPart:b,maxLines:f})}}))},"Ha");
CKK=_.b8(function(Y){var b=Y.metadataRow;var w=Y.isInline;var V=Y.delimiter;var H=Y.isOverlay;var f=Y.useMediumText;var E=Y.extensions;var U=function(){var I;return ebB(E==null?void 0:(I=E())==null?void 0:I.lockupMetadata,b())},X=function(){return b().metadataParts||[]};
Y={};return _.m("div",{class:_.hj("yt-content-metadata-view-model-wiz__metadata-row",(Y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=w,Y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var I;return pcB(E==null?void 0:(I=E())==null?void 0:I.lockupMetadata,b())},Y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var I;
return!!(E==null?0:(I=E())==null?0:I.lockupMetadata)&&b().badges&&!b().metadataParts},Y))},_.m(_.OH,{data:function(){return b().badges}},{badgeViewModel:function(I){return _.m("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.m(_.wz,{data:I.data}))}}),_.m(_.Bf,{each:X},function(I,k){return _.m(_.Uz,null,_.m(Ak8,{metadataPart:I,
isOverlay:H,useMediumText:f,hideAvatar:U}),_.m(WFI,{delimiter:V,max:function(){return X().length},
index:k,isStandalone:!1}))}),_.m(_.h,{cond:function(){return b().isSpacerRow&&!w()},
then:function(){return _.m("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
ykU=_.b8(function(Y){var b=_.ur(Y,{layout:0,isOverlay:!1});Y=b.className;var w=b.data,V=b.layout,H=b.isOverlay,f=b.useMediumText,E=b.extensions;b=_.GM("yt-content-metadata-view-model");var U=function(){return V()===0};
_.jP(b,function(){return w().rendererContext});
var X=function(){return w().metadataRows||[]},I={};
return _.m("yt-content-metadata-view-model",{class:_.hj(Y,"yt-content-metadata-view-model-wiz",(I["yt-content-metadata-view-model-wiz--inline"]=U,I["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.$h(w().rendererContext)},I["yt-content-metadata-view-model-wiz--medium-text"]=f,I)),
el:b},_.m(_.Bf,{each:X},function(k,l){return _.m(_.Uz,null,_.m(CKK,{metadataRow:k,isInline:U,delimiter:function(){return w().delimiter},
isOverlay:H,useMediumText:f,extensions:E}),_.m(_.h,{cond:function(){return U()&&!k.isSpacerRow},
then:function(){return _.m(WFI,{delimiter:function(){return w().delimiter},
max:function(){return X().length},
index:l,isStandalone:!0})}}))}))},"Ja");
_.$B_=_.q("web_enable_sink_yt_content_metadata_view_model")?ykU:_.sv(SEM);ykU.idomCompat=!0;var jbd=_.b8(function(Y){var b={};return _.m("yt-lockup-metadata-view-model",{class:_.hj("yt-lockup-metadata-view-model-wiz",function(){a:{var w=Y.lockupStyle();if(w==null?0:w.isOverlay)w="yt-lockup-metadata-view-model-wiz--overlay";else switch(w==null?void 0:w.arrangement){case 1:w="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:w="yt-lockup-metadata-view-model-wiz--vertical"}}return w},function(){a:{var w=Y.lockupStyle();
if(w==null?0:w.isTiny)w="yt-lockup-metadata-view-model-wiz--tiny";else switch(w==null?void 0:w.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":w="yt-lockup-metadata-view-model-wiz--compact";break a;default:w="yt-lockup-metadata-view-model-wiz--standard"}}return w},(b["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var w;
return(w=Y.lockupStyle())==null?void 0:w.isOverlay},b["yt-lockup-metadata-view-model-wiz--card"]=function(){var w;
return(w=Y.lockupStyle())==null?void 0:w.isCard},b["yt-lockup-metadata-view-model-wiz--centered"]=function(){var w;
return(w=Y.lockupStyle())==null?void 0:w.isCentered},b["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var w;
return(w=Y.lockupStyle())==null?void 0:w.typographyBump},b["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var w;
return(w=Y.lockupStyle())==null?void 0:w.useLegacyTypography},b["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var w;
return(w=Y.lockupStyle())==null?void 0:w.useRichGridLegacyTypography},b))},_.m(_.OH,{data:function(){return Y.data().image}},{avatarStackViewModel:function(w){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.m(_.OB,{data:w.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(w){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.m(_.et,{data:w.data}))},
decoratedAvatarViewModel:function(w){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.m(_.pe,{data:w.data}))}}),_.m("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.m("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var w;return(w=Y.data().title)==null?void 0:w.content}},_.m(_.h,{cond:function(){return Y.data().title},
then:function(w){return _.m(_.oG,{command:Y.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:Y.lockupAccessibilityLabel},_.m(_.wv,{text:w}))}})),_.m("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.m(_.OH,{data:function(){return Y.data().metadata}},{contentMetadataViewModel:function(w){return _.m(_.$B_,{data:w.data,
layout:1,useMediumText:function(){var V,H;return((V=Y.lockupStyle())==null?void 0:V.typographyBump)||((H=Y.lockupStyle())==null?void 0:H.useRichGridLegacyTypography)},
extensions:function(){var V,H;return{lockupMetadata:{byline:{hideAvatar:((V=Y.lockupStyle())==null?void 0:V.arrangement)===0,addPadding:((H=Y.lockupStyle())==null?void 0:H.arrangement)===1}}}}})}})),_.m(_.OH,{data:function(){return Y.data().attribution}},{attributionViewModel:function(w){return _.m("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.m(zj5,{data:w.data,
useSmallLayout:!0}))}})),_.m("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.m(_.OH,{data:function(){return Y.data().menuButton}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
buttonOverrides:function(){var V;return((V=Y.lockupStyle())==null?0:V.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
jbd.idomCompat=!0;var G$r=_.b8(function(Y){var b=_.GM("notification-multi-action-renderer");_.tq(function(){requestAnimationFrame(function(){_.uS(b.value)})});
var w={},V={},H={};return _.m("notification-multi-action-renderer",{class:_.hj("ytNotificationMultiActionRendererHost",(w.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var f;return(f=Y.useLegacyShelfStyle)==null?void 0:f.call(Y)},w)),
el:b},_.m("span",{"aria-live":"polite",class:_.hj("ytNotificationMultiActionRendererTextContainer",(V.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var f;return(f=Y.useLegacyShelfStyle)==null?void 0:f.call(Y)},V))},_.m(_.wv,{text:function(){return Y.data().responseText}})),_.m("div",{class:_.hj("ytNotificationMultiActionRendererButtonContainer",(H.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var f;
return(f=Y.useLegacyShelfStyle)==null?void 0:f.call(Y)},H))},_.m(_.OH,{data:function(){var f;
return(f=Y.data().buttons)==null?void 0:f.map(function(E){if(E=E.buttonRenderer){var U,X=Object,I=X.assign,k=(U=E.icon)==null?void 0:U.iconType;U=(U=E.command||E.serviceEndpoint||E.navigationEndpoint)?{innertubeCommand:U}:void 0;E={buttonViewModel:I.call(X,{},{iconName:k,onTap:U,trackingParams:E.trackingParams,titleFormatted:E.text?_.LA(E.text):void 0},rgL(E))}}else E=void 0;return E}).filter(function(E){return!!E})}},{buttonViewModel:function(f,E){return _.m("div",null,_.m(_.a1,{data:f.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var U;return((U=Y.useModernStyles)==null?0:U.call(Y))?{type:E()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var T$j=_.b8(function(Y){var b=_.GM("notification-text-renderer");_.tq(function(){requestAnimationFrame(function(){_.uS(b.value)})});
return _.m("notification-text-renderer",{el:b,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.m(_.wv,{text:function(){return Y.data().successResponseText}}))},"Ma");_.Jkk=_.b8(function(Y){var b=_.xh(p4e,function(){var V;return zbB((V=Y.contentId)==null?void 0:V.call(Y))}),w=function(){var V;
return _.v((V=b())==null?void 0:V.command,_.Mm)};
return _.m(_.h,{cond:function(){var V;if(!(V=w())){var H;V=_.v((H=b())==null?void 0:H.command,Pfd)}return V},
then:function(){return _.m(_.h,{cond:w,then:function(){var V={};return _.m("div",{class:_.hj("ytDismissibleItemReplacedContent",function(){var H;return Wla((H=Y.aspectRatio)==null?void 0:H.call(Y))})},_.m("div",{class:_.hj((V.ytDismissibleItemAspectRatioContainer=function(){var H;
return((H=Y.aspectRatio)==null?void 0:H.call(Y))!==void 0},V))},_.m(_.OH,{data:function(){var H;
return(H=w())==null?void 0:H.item}},{notificationMultiActionRenderer:function(H){return _.m(G$r,{data:H.data,
useModernStyles:Y.useModernStyle,useLegacyShelfStyle:Y.useLegacyShelfStyle})},
notificationTextRenderer:T$j})))}})},
else:Y.children})},"Na");_.u7o=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;Y=_.TM("ad-avatar-view-model");var V=function(){var f;return((f=b().interaction)==null?0:f.onTap)?function(E){var U;u7a(E,(U=b().interaction)==null?void 0:U.onTap,w)}:void 0},H=function(){var f,E=b(),U=V(),X=(f=_.v(b().rendererContext,_.Ba))==null?void 0:f.label;
a:switch(E.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":f=1;break a;default:f=0}return{size:Ag6(E.size),type:f,onTap:U,accessibilityText:X}};
_.H6(Y,{visibilityCallback:function(f){var E,U=(E=b().interaction)==null?void 0:E.onFirstVisible;f&&U&&_.AA(U)},
showOption:_.uZ});return _.m("ad-avatar-view-model",{class:function(){var f;return((f=b().interaction)==null?0:f.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:Y},_.m(_.h,{cond:function(){return b().image},
then:function(f){return _.m(FW9,{data:H,image:f})}}))},"Oa");_.Hl=_.b8(function(Y){Y=_.ur(Y,{hasDot:!1});var b=Object.assign({},Y),w=Y.data,V=Y.hasDot;Y=Y.customCommandResolver;var H=(delete b.data,delete b.hasDot,delete b.customCommandResolver,b);b=function(){return w().style};
b!==void 0&&b!==null||_.C7(Error("Fh"));b=_.GM("ad-badge-view-model");_.Jd(b,function(){return w().interaction},Y);
return _.m("ad-badge-view-model",{class:_.hj(function(){var f;return((f=w().interaction)==null?0:f.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var f=H.adRenderingContextType();
w();return f==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:b},_.m(_.YE,{data:function(){var f;w();return{type:2,text:(f=w().label)==null?void 0:f.content,adsIncludeDot:V(),isOverlay:w().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var YEr;_.gz=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;var V=Y.adRenderingContextType;Y=_.GM("ad-details-line-view-model");_.Jd(Y,function(){return b().interaction},w);
_.H6(Y,{visibilityCallback:function(H){var f,E=(f=b().interaction)==null?void 0:f.onFirstVisible;H&&E&&_.AA(E)},
showOption:_.uZ});return _.m("ad-details-line-view-model",{class:function(){var H;return((H=b().interaction)==null?0:H.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:Y},_.m(_.h,{cond:function(){return b().style},
then:function(H){return _.m(_.Bf,{each:function(){var f;return((f=b())==null?void 0:f.attributes)||[]},
keyBy:"INDEX"},function(f){return _.m(YEr,{attribute:f,style:H,adRenderingContextType:function(){return V()}})})}}))},"Qa");
YEr=_.b8(function(Y){var b=Y.attribute;var w=Y.style;var V=Y.adRenderingContextType;return _.m(_.h,{cond:function(){return b().text},
then:function(H){return _.m(_.wv,{text:H,className:function(){var f=V();w();return f==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var bFr=_.b8(function(Y){var b=Y.data;var w=Y.typographyBump;var V=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
Y={};return _.m(_.Uz,null,_.m("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.m(_.wv,{text:function(){return b().headline},
className:_.hj("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return V==null?void 0:V()},Y.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(w==null?void 0:w())&&!(V==null?0:V())},Y)),
linkInheritColor:!0}),_.m(_.h,{cond:function(){return b().description},
then:function(H){var f={};return _.m(_.wv,{text:H,className:_.hj("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(f.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return V==null?void 0:V()},f.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(w==null?void 0:w())&&!(V==null?0:V())},f)),
linkInheritColor:!0})}}),_.m(_.h,{cond:function(){return b().secondaryDescription},
then:function(H){var f={};return _.m(_.wv,{text:H,className:_.hj("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(f.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return w==null?void 0:w()},f)),
linkInheritColor:!0})}}),_.m("div",{class:function(){return V()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.m(_.h,{cond:function(){return b().adAvatar},
then:function(){return _.m("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.m(_.OH,{data:function(){return b().adAvatar}},{adAvatarViewModel:_.u7o}))}}),_.m(_.OH,{data:function(){return b().adBadge}},{adBadgeViewModel:function(H){return _.m(_.Hl,{data:H.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.m(_.OH,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(H){return _.m(_.gz,{data:H.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}}))),_.m("div",{class:function(){return V()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.m(_.OH,{data:function(){return b().menu}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
buttonOverrides:function(){a:switch(b().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var f="S";break a;default:f="M"}return{size:f}}})}})))},"Sa"),wck=_.b8(function(Y){var b=Y.data;
var w=Y.noBottomMargin;var V=Y.useVideoLockupTopPadding;var H=Y.typographyBump;Y={};Y=_.hj("ytwFeedAdMetadataViewModelHostMetadata",(Y.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return w==null?void 0:w()},Y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return V==null?void 0:V()},Y));
var f=function(){return b().adBadge};
f!==void 0&&f!==null||_.C7(Error("Gh"));f={};var E={};return _.m(_.Uz,null,_.m(_.h,{cond:function(){return b().adAvatar},
then:function(){return _.m("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.m(_.OH,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(U){return _.m(_.u7o,{data:U.data})}}))}}),_.m("div",{class:Y},_.m("div",{class:_.hj("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(f.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return H==null?void 0:H()},f.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(H==
null?void 0:H())&&_.q("web_enable_typography_bump_v2")},f))},_.m(_.wv,{text:function(){return b().headline},
linkInheritColor:!0})),_.m(_.h,{cond:function(){return b().description},
then:function(U){return _.m(_.wv,{text:U,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.m("div",{class:function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.q("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.m(_.OH,{data:function(){return b().adBadge}},
{adBadgeViewModel:function(U){return _.m(_.Hl,{data:U.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.m(_.OH,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(U){return _.m(_.gz,{data:U.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}})),_.m(_.h,{cond:function(){return b().secondaryDescription},
then:function(U){return _.m(_.wv,{text:U,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.m("div",{class:_.hj("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(E.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return V==null?void 0:V()},E))},_.m(_.OH,{data:function(){return b().menu}},{buttonViewModel:_.a1})))},"Ta"),VD8=_.b8(function(Y){var b=Y.data;
var w=Y.noBottomMargin;var V=Y.listenToTapEvent;var H=Y.setTouchEndHandler;var f=Y.useVideoLockupTopPadding;var E=Y.typographyBump;var U=_.GM("feed-ad-metadata-view-model");_.Jd(U,function(){return b().interaction},void 0,function(){return V==null?void 0:V()});
Y=_.N(_.kw(!1,void 0,"qjt0Xc"));var X=Y.next().value,I=Y.next().value;Y=_.Q_(function(){(H==null?0:H())&&!X()&&(U.value.click(),I(!0),setTimeout(function(){I(!1)},100));
return!1});
_.H6(U,{visibilityCallback:function(k){var l,x=(l=b().interaction)==null?void 0:l.onFirstVisible;k&&x&&_.AA(x)},
showOption:_.uZ});return _.m("feed-ad-metadata-view-model",{class:function(){var k;return((k=b().interaction)==null?0:k.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:U,"on:touchend":Y},_.m(_.e4,null,_.m(_.n7,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.m(bFr,{data:b,
typographyBump:E})}),_.m(_.n7,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.m(wck,{data:b,
noBottomMargin:w,useVideoLockupTopPadding:f,typographyBump:E})})))},"Ua");var HF9;_.fc=_.b8(function(Y){return _.m("yt-lockup-view-model",{class:_.hj(Y.className)},_.m(_.Jkk,{contentId:function(){return Y.data().contentId},
useModernStyle:!0,aspectRatio:function(){var b,w;return((b=Y.containerType)==null?void 0:b.call(Y))!==3?IBr(Y.data().contentType,(w=Y.force16By9ThumbnailAspectRatio)==null?void 0:w.call(Y)):void 0}},function(){return _.m(HF9,Object.assign({},Y))}))},"Va");
HF9=_.b8(function(Y){Y=_.ur(Y,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var b=Y.data,w=Y.containerLayoutConfig,V=Y.containerType,H=Y.sizing,f=Y.protectBackground,E=Y.typographyBump,U=Y.force16By9ThumbnailAspectRatio,X=Y.thumbnailFixedWidth,I=Y.thumbnailTargetWidth,k=Y.lockupExperiments,l=Y.elementsPerRow;
Y=_.GM("div");_.jP(Y,function(){var OM;return(OM=b())==null?void 0:OM.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var x=_.rn(ykB),Q=_.fH().resolve(_.HQ(xB$)),Z=Q?{}:void 0,e=function(){var OM,iI,rB;return(rB=(iI=_.v((OM=b())==null?void 0:OM.rendererContext,_.Ba))==null?void 0:iI.label)!=null?rB:void 0},O=function(){var OM=w==null?void 0:w(),iI;
if(OM==null?0:OM.containerType){var rB=(iI=b())==null?void 0:iI.contentType;iI=k();var Tj=E(),J_=I(),B9=f();OM=Object.assign({},koB(DWK(OM),UWu(OM.responsiveSize),Tj,rB,OM.force16By9ThumbnailAspectRatio,J_,B9,iI),{thumbnailFixedWidth:OM.contentPreviewWidth})}else OM=koB(V(),H(),E(),(rB=b())==null?void 0:rB.contentType,U(),I(),f(),k());return OM};
Q&&Z&&Q({enabled:function(){return x()},
itemPlaybackModel:function(){return b().itemPlayback},
thumbnailElRef:function(){return Z.thumbnailElRef},
containerElRef:Y,options:function(){var OM,iI=(OM=_.v(b().metadata,oUr))==null?void 0:OM.endorsement;OM=Z.thumbnailOverlays||[];iI&&OM.push(iI);var rB,Tj;return{thumbnail:Z.thumbnail,thumbnailOverlays:OM,accessibilityText:e(),thumbnailSize:Z.thumbnailSize,enableRounding:O().isCollection,containPlayerWithinThumbnail:O().isCollection,trackingParams:(rB=_.v(b().rendererContext,_.vP))==null?void 0:(Tj=rB.loggingDirectives)==null?void 0:Tj.trackingParams}}});
var L=0;Q=_.N(_.kw(!1,void 0,"BKBkhb"));var r=Q.next().value,C=Q.next().value;Q=_.N(_.kw(!1,void 0,"GK0mq"));var W=Q.next().value,y=Q.next().value;Q=_.Q_(function(){var OM=x()&&b().itemPlayback;W()?(_.Lb.cancelJob(L),L=_.Lb.addJob(function(){C(!OM)},8,32)):C(!OM);
return!0});
var G=_.Q_(function(){L&&(_.Lb.cancelJob(L),L=0);C(!1)});
_.R2(function(){L&&(_.Lb.cancelJob(L),L=0)});
var Nr=iFL(function(){y(!0)}),o6=Nr.touchFeedbackEvents,lI=Nr.touchFeedbackOnPointerUp,Zt=Nr.touchFeedbackOnPointerDown;
Nr=Nr.touchFeedbackOnPointerLeave;var eL={};return _.m("div",{el:Y,class:_.hj("yt-lockup-view-model-wiz",function(){a:{var OM=O();if(OM.isOverlay)OM="yt-lockup-view-model-wiz--overlay";else switch(OM.arrangement){case 1:OM="yt-lockup-view-model-wiz--horizontal";break a;default:OM="yt-lockup-view-model-wiz--vertical"}}return OM},function(){a:{var OM=O();
if(OM.isOverlay)OM="yt-lockup-view-model-wiz--overlay";else{switch(OM.collectionStackNumber){case 1:OM="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:OM="yt-lockup-view-model-wiz--collection-stack-2";break a}OM=void 0}}return OM},(eL["yt-lockup-view-model-wiz--card"]=function(){return O().isCard},eL["yt-lockup-view-model-wiz--compact"]=function(){return O().isTiny||O().sizing!=="STANDARD"},eL["yt-lockup-view-model-wiz--protect-background"]=f,eL["yt-lockup-view-model-wiz--add-margins"]=
function(){return O().addMarginForFullbleed},eL["yt-lockup-view-model-wiz--centered"]=function(){return O().isCentered},eL["yt-lockup-view-model-wiz--fullbleed"]=function(){return O().fullbleed},eL["yt-lockup-view-model-wiz--single-column-grid"]=function(){return l()===1&&V()===2},eL["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var OM;
return(OM=k())==null?void 0:OM.useRichGridLegacyMargin},eL)),
"on:mousedown":Zt,"on:mouseleave":G,"on:mouseup":lI,"on:mouseover":Q,"on:touchstart":Zt,"on:touchend":lI,"on:pointerleave":Nr},_.m(_.oG,{command:function(){var OM;return _.y4((OM=b())==null?void 0:OM.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return X()&&O().arrangement===1?"width: "+X():""}},_.m(_.OH,{data:function(){var OM;
return(OM=b())==null?void 0:OM.contentImage}},{thumbnailViewModel:function(OM){return _.m(_.JH,{data:OM.data,
aspectRatio:function(){return O().aspectRatio},
disableRounding:function(){return O().disableRounding},
width:I,hovered:r,isClip:function(){var iI;return((iI=b())==null?void 0:iI.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Akq(Z),lockupExperiments:function(){return k()}})},
collectionThumbnailViewModel:function(OM){return _.m(O2o,{data:OM.data,aspectRatio:function(){return O().aspectRatio},
disableRounding:function(){return O().disableRounding},
width:I,doubleStack:function(){return O().collectionStackNumber===2},
hovered:r,playbackRef:Akq(Z)})},
decoratedAvatarViewModel:_.pe})),_.m("div",{class:"yt-lockup-view-model-wiz__metadata"},_.m(_.OH,{data:function(){var OM;return(OM=b())==null?void 0:OM.metadata}},{lockupMetadataViewModel:function(OM){return _.m(jbd,{data:OM.data,
lockupStyle:O,lockupCommand:function(){var iI;return _.y4((iI=b())==null?void 0:iI.rendererContext)},
lockupAccessibilityLabel:function(){return e()}})},
feedAdMetadataViewModel:function(OM){return _.m(VD8,{data:OM.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:E})}}),_.m(_.OH,{data:function(){var OM;
return(OM=b())==null?void 0:OM.attachmentSlot}},{lockupAttachmentsViewModel:function(OM){return _.m(LFQ,{data:OM.data,
lockupStyle:O})}})),_.m(_.p_,{model:function(){a:{switch(O().collectionStackNumber){case 1:var OM=8;
break a;case 2:OM=12;break a}OM=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:OM}},
pointerDownEvent:o6.pointerDownEvent,pointerUpEvent:o6.pointerUpEvent,pointerLeaveEvent:o6.pointerLeaveEvent}))},"Wa");
_.fc.idomCompat=!0;_.f_(_.fc,"yt-lockup-view-model",{props:{data:_.YX,containerLayoutConfig:_.YX,containerType:_.YX,sizing:_.YX,protectBackground:_.YX,typographyBump:_.YX,thumbnailFixedWidth:_.YX,thumbnailTargetWidth:_.YX,force16By9ThumbnailAspectRatio:_.YX,className:_.YX,lockupExperiments:_.YX,elementsPerRow:_.YX}});var Goq;_.gS(wrG);var g6K=_.sv(wrG,{callbacks:{onExpandClick:!0}});var EmI=_.ZE({buttonViewModel:_.a1}),fBK=_.sv(fNb);_.gS(fNb);_.gS(H5I);_.gS(gmb);_.f_(fBK,"yt-video-attribute-view-model",{props:{data:_.YX,className:_.YX}});var DS=function(){var Y=_.F.apply(this,arguments)||this;Y.useHighlightStyling=_.q("web_enable_deeper_metadata_highlight_styling");Y.isSearch=!1;Y.JSC$13094_lastScrollContainerWidth=NaN;Y.pageLoadingFromNavigation=!1;Y.currentIndex=0;Y.supportComponentResize=!1;return Y};
_.P(DS,_.F);_.g=DS.prototype;
_.g.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}}}}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.Io(this,this.onPageChange))};
_.g.detached=function(){document.removeEventListener("yt-page-type-changed",_.Io(this,this.onPageChange))};
_.g.getItemsPath=function(){return"data.cards"};
_.g.onIronResize=function(){this.updateListStyles()};
_.g.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var Y;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(Y=this.data)==null?void 0:Y.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.q("problem_walkthrough_sd")&&!!this.centerItems};
_.g.computeCardListStyle=function(Y){return Y||null};
_.g.computeEmpty=function(Y){return!this.get("cards.length",Y)};
_.g.computeThumbnailStyle=function(Y){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",Y)||null};
_.g.computeHasSubtitle=function(Y){return!!this.get("header.richListHeaderRenderer.subtitle",Y)};
_.g.computeInitialCountNumber=function(Y){return this.hasSquareMiniApp&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.g.computeUseFloorScrolling=function(Y){return Y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.g.computeHasGameCard=function(Y){return(Y=this.get("cards",Y))?Y.some(function(b){return b.gameCardRenderer}):!1};
_.g.computeCenterHeaderTitle=function(Y){return!(Y==null||!Y.centerHeaderTitle)};
_.g.computeHasPortraitMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.g.computeHasSquareMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.g.computeHasSkinnyWidthPortraitMiniApp=function(Y){return(Y=Y==null?void 0:Y.cards)?Y.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.width===135}):!1};
_.g.computeCenterItems=function(Y){return!!Y};
_.g.computeHasInfoPanel=function(Y){var b;return Y==null?void 0:(b=Y.cards)==null?void 0:b.some(function(w){return w.infoPanelContentRenderer})};
_.g.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.g.getItemByIndex=function(Y){var b=this.items.children;return b&&b.length>Y?b[Y]:void 0};
_.g.onPageChange=function(){var Y=this;this.pageLoadingFromNavigation=!0;_.Lb.addJob(function(){Y.pageLoadingFromNavigation=!1;_.De(Y.hostElement,"yt-terminate-video-preview-action")},8)};
_.g.updateListStyles=function(){if(_.q("problem_walkthrough_sd")&&this.JSC$13094_scrollContainer!==void 0){var Y=this.JSC$13094_scrollContainer.clientWidth;Y!==this.JSC$13094_lastScrollContainerWidth&&(this.JSC$13094_lastScrollContainerWidth=Y,_.m_(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(Y*.8,415)+"px"}),_.Ua(this.hostElement,"iron-resize"))}};
_.up.Object.defineProperties(DS.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.q("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!!((Y=this.data)==null?0:(b=Y.cards)==null?0:(w=b[0])==null?0:w.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!!((Y=this.data)==null?0:(b=Y.cards)==null?0:(w=b[0])==null?0:w.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return _.q("enable_desktop_amsterdam_info_panels")&&!!((Y=this.data)==null?0:(b=Y.cards)==null?0:(w=b[0])==null?0:w.infoPanelContentRenderer)}}});
DS.prototype.dataChanged=DS.prototype.dataChanged;DS.prototype.onIronResize=DS.prototype.onIronResize;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.HR.YtdHorizontalListBehavior),_.K("design:type",Object)],DS.prototype,"ytdHorizontalListBehavior",void 0);
_.z([_.n(_.Si),_.K("design:type",Object)],DS.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],DS.prototype,"data",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],DS.prototype,"useCustomColors",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],DS.prototype,"useHighlightStyling",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.K("design:type",Object)],DS.prototype,"cardListStyle",void 0);_.z([_.R({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.K("design:type",Boolean)],DS.prototype,"empty",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.K("design:type",Boolean)],DS.prototype,"hasSubtitle",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.K("design:type",Boolean)],DS.prototype,"thumbnailStyle",void 0);_.z([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.K("design:type",Boolean)],DS.prototype,"hasGameCard",void 0);_.z([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.K("design:type",Boolean)],DS.prototype,"centerHeaderTitle",void 0);
_.z([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.K("design:type",Boolean)],DS.prototype,"hasPortraitMiniApp",void 0);_.z([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.K("design:type",Boolean)],DS.prototype,"hasSquareMiniApp",void 0);_.z([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.K("design:type",Boolean)],DS.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.z([_.R({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.K("design:type",Boolean)],DS.prototype,"hasInfoPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],DS.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],DS.prototype,"inlineStructuredDescription",void 0);_.z([_.xZ("#scroll-container"),_.K("design:type",HTMLDivElement)],DS.prototype,"JSC$13094_scrollContainer",void 0);
_.z([_.R({computed:"computeInitialCountNumber(data.style.type)"}),_.K("design:type",Number)],DS.prototype,"initialCount",void 0);_.z([_.R({computed:"computeUseFloorScrolling(data.style.type)"}),_.K("design:type",Boolean)],DS.prototype,"useFloorScrolling",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.K("design:type",Boolean)],DS.prototype,"centerItems",void 0);_.z([_.R(),_.K("design:type",Object)],DS.prototype,"pageLoadingFromNavigation",void 0);
_.z([_.R(),_.K("design:type",Object)],DS.prototype,"currentIndex",void 0);_.z([_.R(),_.K("design:type",Number)],DS.prototype,"scrollCount",void 0);_.z([_.R(),_.K("design:type",Object)],DS.prototype,"supportComponentResize",void 0);_.z([_.xZ("#items"),_.K("design:type",HTMLDivElement)],DS.prototype,"items",void 0);_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DS.prototype,"onIronResize",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DS.prototype,"dataChanged",null);_.z([_.R({reflectToAttribute:!0}),_.t("inlineStructuredDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DS.prototype,"hideNavigationButton",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DS.prototype,"modernChapters",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DS.prototype,"hasVideoAttributeViewModels",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DS.prototype,"modernInfoPanels",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],DS);
_.a(DS,"ytd-horizontal-card-list-renderer",function(){if(Y9I!==void 0)return Y9I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-horizontal-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-horizontal-card-list-renderer">\n<div id="header-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <h2 id="header" hidden$="[[!data.header]]" class="style-scope ytd-horizontal-card-list-renderer"></h2>\n  <div id="sort-filter" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  <div id="header-button" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="shelf-container" class="style-scope ytd-horizontal-card-list-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atStart]]">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="prevClick_" hidden="[[data.previousButton]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="left-arrow-button" hidden="[[!data.previousButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown" class="style-scope ytd-horizontal-card-list-renderer">\n    <div id="items" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-horizontal-card-list-renderer" hidden="[[atEnd]]">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-horizontal-card-list-renderer" on-click="nextClick_" hidden="[[data.nextButton]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-horizontal-card-list-renderer"></yt-icon>\n    </div>\n    <div id="right-arrow-button" hidden="[[!data.nextButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n  </div>\n</div>\n<div id="footer-section" hidden="[[!data.footerButton]]" class="style-scope ytd-horizontal-card-list-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-horizontal-card-list-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Y9I=Y},{mode:_.Xd("kevlar_poly_si_batch_j072")?1:2});var N3k=_.b8(function(Y){var b=Y.data;var w={};return _.m("video-summary-content-view-model",{class:_.hj("video-summary-content-view-model-wiz",Y.className,(w["video-summary-content-view-model-wiz--is-search"]=Y.isSearch,w))},_.m(_.Bf,{each:function(){var V=[],H=b().paragraphs;if(H==null||!H.length)return[];for(var f=0;f<H.length;f++){var E=_.v(H[f],xvK),U=void 0;f>0&&(U=_.v(H[f-1],xvK));U&&!!U.marker===!!E.marker?V[V.length-1].paragraphs.push(E):V.push({isList:!!E.marker,paragraphs:[E]})}return V},
keyBy:"INDEX"},function(V){return _.m(_.h,{cond:function(){return V().isList},
then:function(){return _.m("ul",{class:"video-summary-content-view-model-wiz__list"},_.m(_.Bf,{each:function(){return V().paragraphs},
keyBy:"INDEX"},function(H){return _.m("li",{class:"video-summary-content-view-model-wiz__list-item"},_.m(_.wv,{text:function(){return H().text}}))}))},
else:function(){return _.m(_.Bf,{each:function(){return V().paragraphs},
keyBy:"INDEX"},function(H){return _.m("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.m(_.wv,{text:function(){return H().text}}))})}})}),_.m(_.h,{cond:function(){return!!_.v(b().likeButtonViewModel,_.dK)&&!!_.v(b().dislikeButtonViewModel,_.Fz)},
then:function(){return _.m("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.m("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.m(_.tm,{data:function(){return _.v(b().likeButtonViewModel,_.dK)},
disableIconAnimation:!0})),_.m(_.Oe,{data:function(){return _.v(b().dislikeButtonViewModel,_.Fz)}}))}}))},"Xa");
N3k.idomCompat=!0;_.f_(N3k,"video-summary-content-view-model",{props:{data:_.YX,isSearch:_.YX,className:_.YX}});var mN=function(){var Y=_.F.apply(this,arguments)||this;var b,w;Y.isExpanded=(w=(b=Y.data)==null?void 0:b.isExpanded)!=null?w:!1;Y.disableExpand=!1;Y.showProminentLabel=!1;Y.showRightSideLabel=!0;Y.toggleExpandableContent=function(V){Y.disableExpand||(V.stopPropagation(),_.Yh(_.JL(V),Y.hostElement,["info","expanded-subtitle"])||(Y.isExpanded=!Y.isExpanded,Y.ytRendererBehavior.logExplicitClick(Y.data),Y.JSC$13105_cardList&&!_.q("expandable_metadata_a11y_fix_ks")&&_.TC(Y,function(){_.JE(Y.hostElement)})))};
Y.useSquareThumbnail=!1;Y.startX=0;return Y};
_.P(mN,_.F);_.g=mN.prototype;_.g.computeUseSquareThumbnail=function(){var Y;return(Y=this.data)==null?void 0:Y.useSquareThumbnail};
_.g.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"}}}}};
_.g.dataChanged=function(){if(this.data){var Y,b;this.isExpanded=(b=(Y=this.data)==null?void 0:Y.isExpanded)!=null?b:!1;var w,V,H,f;if(Y=this.isDarkTheme()?(w=this.data)==null?void 0:(V=w.colorData)==null?void 0:V.darkColorPalette:(H=this.data)==null?void 0:(f=H.colorData)==null?void 0:f.lightColorPalette){var E,U;if((E=this.data)==null?0:(U=E.colorData)==null?0:U.vibrantColorPalette)Y.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Fl(this.hostElement,Y)}}};
_.g.isExpandedChanged=function(){this.isExpanded&&this.JSC$13105_cardList&&_.Ua(this.JSC$13105_cardList,"iron-resize")};
_.g.computeIsExpanded=function(Y){return!!Y.isExpanded};
_.g.computeShowProminentLabel=function(Y,b){var w;return!!(Y==null?0:(w=Y.header)==null?0:w.showLeadingCollapsedLabel)&&!b};
_.g.computeShowRightSideLabel=function(Y,b){var w;return!(Y==null?0:(w=Y.header)==null?0:w.showLeadingCollapsedLabel)&&!b};
_.g.captureContentClick=function(Y){if(!this.disableExpand)if(_.q("expandable_metadata_fix_killswitch")){var b=Y.target;_.kj8(b,"ytd-macro-markers-list-item-renderer")||Y.stopPropagation();(b==null?void 0:b.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Yh(_.JL(Y),this.hostElement,["items"])||_.uA(_.JL(Y),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.g.timestampClick=function(Y){Y.stopPropagation();var b,w;(Y=(b=this.data)==null?void 0:(w=b.header)==null?void 0:w.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(Y)};
_.g.onDown=function(Y){Y.stopPropagation();this.startX=Y.detail?Y.detail.x:0};
_.g.onUp=function(Y){this.skipKeyInteraction(Y)&&Y.stopPropagation()};
_.g.skipKeyInteraction=function(Y){var b=Y.target;if((b==null?void 0:b.id)==="scroll-container"||(b==null?void 0:b.id)==="items"||Y.detail&&Y.detail.x!==this.startX)return!0;Y=_.JL(Y);Y=_.N(Y);for(b=Y.next();!b.done;b=Y.next()){b=b.value;if(b===this.hostElement)break;if(b.hasAttribute&&b.hasAttribute("skip-key-interaction"))return!0}return!1};
_.g.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.up.Object.defineProperties(mN.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.expandedContent,hkd)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.expandedContent,_.Idd)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.useCustomColors)&&!((b=this.data)==null||!b.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!!((Y=this.data)==null?0:(b=Y.header)==null?0:b.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!!((Y=this.data)==null?0:(b=Y.header)==null?0:b.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!!((Y=this.data)==null?0:(b=Y.header)==null?0:b.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
mN.prototype.onUp=mN.prototype.onUp;mN.prototype.onDown=mN.prototype.onDown;mN.prototype.isExpandedChanged=mN.prototype.isExpandedChanged;mN.prototype.dataChanged=mN.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],mN.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mN.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mN.prototype,"isExpanded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mN.prototype,"disableExpand",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],mN.prototype,"isSearch",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],mN.prototype,"isWatch",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.K("design:type",Object)],mN.prototype,"showProminentLabel",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.K("design:type",Object)],mN.prototype,"showRightSideLabel",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mN.prototype,"hasVideoSummary",null);_.z([_.R({value:!1,reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mN.prototype,"hasLockupViewModel",null);_.z([_.R({reflectToAttribute:!0}),_.t("data","isWatch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mN.prototype,"useCustomColors",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mN.prototype,"showInfoButton",null);_.z([_.t("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mN.prototype,"showTimestamp",null);_.z([_.t("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mN.prototype,"showExpandedSubtitle",null);
_.z([_.t("data","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mN.prototype,"showThumbnail",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mN.prototype,"useVppShoppingDestinationStyle",null);_.z([_.R(),_.K("design:type",Object)],mN.prototype,"toggleExpandableContent",void 0);_.z([_.xZ("ytd-horizontal-card-list-renderer"),_.K("design:type",Object)],mN.prototype,"JSC$13105_cardList",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.K("design:type",Object)],mN.prototype,"useSquareThumbnail",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mN.prototype,"dataChanged",null);_.z([_.lr("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mN.prototype,"isExpandedChanged",null);
_.z([_.kZ("down"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mN.prototype,"onDown",null);_.z([_.kZ("up"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mN.prototype,"onUp",null);_.z([_.S({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],mN);
_.a(mN,"ytd-expandable-metadata-renderer",function(){if(U2Q!==void 0)return U2Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return U2Q=Y},{mode:1});var E6_,cg$=function(){if(E6_!==void 0)return E6_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return E6_=Y};_.f_(_.OB,"yt-avatar-stack-view-model",{props:{className:_.YX,data:_.YX,overrides:_.YX,isOverlay:_.YX,useMediumText:_.YX,decorations:_.YX,hideAvatar:_.YX}});_.S9("itemSectionRenderer","videoRenderer","ytd-video-renderer");var oX=function(){var Y=_.F.apply(this,arguments)||this;Y.disableExpand=!1;Y.shouldShowChannelInfo=!1;Y.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return Y};
_.P(oX,_.F);_.g=oX.prototype;_.g.computeUseSearchUi=function(){var Y,b;return this.isSearch||((Y=this.data)==null?void 0:(b=Y.style)==null?void 0:b.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.g.computeUseThreeLineTitle=function(){var Y;return((Y=this.data)==null?void 0:Y.maxTitleLines)===3};
_.g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.q("polymer_video_renderer_defer_menu")&&!Hco?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.g.attached=function(){_.U6(this.hostElement,"blue-links",_.q("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.XM(_.E6(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var Y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;Y&&((b=_.v(Y.commandMetadata,_.RU))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(Y);this.updateInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13110_inlinePreviewHoverListener=TI({mediaRenderer:this,lockupElement:this.JSC$13110_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.g.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13110_inlinePreviewHoverListener)==null||Ed(Y)};
_.g.onTextWrapperClick=function(Y){var b,w,V=this.hideTranslation?(b=this.data)==null?void 0:b.untranslatedNavigationEndpoint:(w=this.data)==null?void 0:w.navigationEndpoint;b=_.Yh(_.JL(Y),this.hostElement,["expandable-metadata"]);!V||b&&!_.q("expandable_metadata_fix_killswitch")||_.uA(_.JL(Y),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Ua(this.hostElement,"yt-navigate",{endpoint:V})};
_.g.computeThumbnailWidth=function(Y,b,w,V,H){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:V?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:w?360:b?128:Y?210:246};
_.g.computeUseBiggerThumbs=function(Y){return Y&&_.q("enable_desktop_search_bigger_thumbs")};
_.g.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.g.computeVideoStyle=function(){if(_.q("enable_video_style")){var Y,b;return(Y=this.data)==null?void 0:(b=Y.style)==null?void 0:b.value}};
_.g.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.g.handleHideItemSectionVideosByIdCommand=function(Y){var b;Y=(b=_.v(Y,zL9))==null?void 0:b.videoId;this.data&&this.data.videoId===Y&&(this.isHidden=!0)};
_.g.getMetadataSnippetContainerClass=function(Y){return Y?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.g.computeTitleText=function(Y,b,w){return Y?w:b};
_.g.computeDescriptionSnippet=function(Y,b,w){return Y?w:b};
_.g.computeSnippetText=function(Y,b,w){return Y?w:b};
_.g.computeNavigationEndpoint=function(Y,b){return Y?b==null?void 0:b.untranslatedNavigationEndpoint:b==null?void 0:b.navigationEndpoint};
_.g.hideInlineTitleIcon=function(Y,b){return Y||!b};
_.up.Object.defineProperties(oX.prototype,{hideTranslation:{configurable:!0,enumerable:!0,get:function(){return this.searchVideoResultEntity?!!this.searchVideoResultEntity.hasOptedOutTranslation:!1}},
hiddenBadgeGroups:{configurable:!0,enumerable:!0,get:function(){if(this.searchVideoResultEntity){var Y;return(Y=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?Y:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!!(this==null?0:(Y=this.data)==null?0:(b=Y.channelThumbnailSupportedRenderers)==null?0:(w=b.channelThumbnailWithLinkRenderer)==null?0:w.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.avatar,kkt)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13110_inlinePreviewHoverListener)==null?0:di(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.up.Object.defineProperties(oX,{template:{configurable:!0,enumerable:!0,get:function(){return cg$()}}});
oX.prototype.dataChanged=oX.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],oX.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],oX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],oX.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.AB),_.K("design:type",Object)],oX.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],oX.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],oX.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],oX.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],oX.prototype,"isBackstageVideo",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],oX.prototype,"isPostCompactVideo",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],oX.prototype,"isHistory",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],oX.prototype,"isRichGridVideoPost",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],oX.prototype,"isHidden",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],oX.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.K("design:type",Boolean)],oX.prototype,"useSearchUi",void 0);_.z([_.R({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.K("design:type",Boolean)],oX.prototype,"useThreeLineTitle",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.K("design:type",Boolean)],oX.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.K("design:type",Object)],oX.prototype,"videoStyle",void 0);_.z([_.R({computed:"computeDisableExpand(videoStyle)"}),_.K("design:type",Object)],oX.prototype,"disableExpand",void 0);
_.z([_.R({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.K("design:type",Object)],oX.prototype,"shouldShowChannelInfo",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],oX.prototype,"biggerThumbsStyle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.K("design:type",String)],oX.prototype,"inlineTitleIcon",void 0);_.z([_.R({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.K("design:type",Object)],oX.prototype,"computedNavigationEndpoint",void 0);_.z([_.R({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"searchVideoResultEntity",b)}}),
_.K("design:type",Object)],oX.prototype,"searchVideoResultEntity",void 0);_.z([_.xZ("ytd-thumbnail"),_.K("design:type",HTMLElement)],oX.prototype,"thumbnail",void 0);_.z([_.xZ("#dismissible"),_.K("design:type",HTMLElement)],oX.prototype,"JSC$13110_dismissibleMedia",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oX.prototype,"dataChanged",null);
_.z([_.t("searchVideoResultEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oX.prototype,"hideTranslation",null);_.z([_.t("searchVideoResultEntity"),_.K("design:type",Array),_.K("design:paramtypes",[])],oX.prototype,"hiddenBadgeGroups",null);_.z([_.t("data","useAvatar"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oX.prototype,"shouldShowChannelThumbnail",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oX.prototype,"useAvatar",null);
_.z([_.t("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oX.prototype,"isHovered",null);_.z([_.S({is:"ytd-video-renderer",disableElementRegistration:!0})],oX);_.a(oX,"ytd-video-renderer",function(){return cg$()},{mode:_.Xd("kevlar_poly_si_batch_j047")?1:2});var IX=function(){var Y=_.F.apply(this,arguments)||this;Y.editDialog=null;Y.roundedContainer=!0;Y.isLoading=!1;Y.isRichGrid=!1;Y.isRichGridRepost=!1;Y.reduceSidePaddings=_.q("reduce_side_paddings_in_shelf");Y.JSC$13117_spinnerEl=null;return Y};
_.P(IX,_.F);_.g=IX.prototype;
_.g.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"}}}};
_.g.contentTextChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){var Y=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var b=0,w=this.data.actions&&this.data.actions.length;b<w;b++)this.openEditDialog(_.v(this.data.actions[b],XZC));if((b=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(b=this.get("buttonRenderer.hint.hintRenderer.hintId",b))&&b.startsWith("share-post-hint")){var V=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(V){_.gW.getInstance();var H=fZ(_.Gx(_.sa("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Lb.addLowPriorityJob(function(){_.IP(Y.hostElement,H,V)})}}}};
_.g.updatePoll=function(Y){Y>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13117_spinnerEl||(this.JSC$13117_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E6(this.hostElement).appendChild(this.JSC$13117_spinnerEl));this.JSC$13117_spinnerEl&&(this.JSC$13117_spinnerEl.active=this.isLoading)};
_.g.onYtNavigate=function(Y){var b=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);b&&(this.openEditDialog(b),Y.stopPropagation())};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.onYtCommentPollRevert=function(Y,b){b&&this.updatePoll(b.selectedChoiceIndex)};
_.g.onYtServiceRequestSent=function(Y,b){var w;b.endpoint&&(_.v(b.endpoint,Mw$)||_.v(b.endpoint,n8d)&&((w=_.v(b.endpoint,n8d))==null||!w.clientActions))&&(this.isLoading=!0);if(b.actions)for(Y=0;Y<b.actions.length;Y++)w=b.actions[Y],_.v(w,Ow)&&(w=this.get("updateBackstagePollAction.selectedChoiceIndex",w),w==void 0&&(w=-1),this.updatePoll(w))};
_.g.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.g.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.editDialogEl.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.g.computeIsPostHidden=function(Y,b){return!!Y||b};
_.g.computeSurfaceType=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.g.computeUsesCompactLockup=function(Y){return Y==="BACKSTAGE_SURFACE_TYPE_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||Y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||Y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||Y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.g.computeShowWithoutToolbar=function(Y){return!Y.actionButtons&&!Y.actionMenu};
_.g.computePostAttachment=function(Y){if(Y.backstageAttachment){if(_.v(Y.backstageAttachment,E8j))return"poll";if(_.v(Y.backstageAttachment,Cx8))return"quiz";if(_.v(Y.backstageAttachment,_.iG))return"video";if(_.v(Y.backstageAttachment,yt$))return"uploaded-videos";if(_.v(Y.backstageAttachment,rJj))return Y.contentText?"image":"image-only";if(_.v(Y.backstageAttachment,W05))return"playlist"}return"none"};
_.g.computePostTabIndex=function(Y){return Y?0:-1};
_.g.computeButtonTooltipPosition=function(Y){return this.computeUsesCompactLockup(Y)?"top":"bottom"};
_.g.computeHasText=function(Y){return!(Y==null||!Y.contentText)};
_.g.onTap=function(Y){var b,w;if(((b=this.data)==null?0:b.navigationEndpoint)&&((w=this.data)==null?void 0:w.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var V;((V=this.data)==null?0:V.navigationEndpoint)&&!_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.up.Object.defineProperties(IX.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.Gx("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,E8j))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,yt$))}}});
IX.prototype.onYtServiceRequestCompleted=IX.prototype.onYtServiceRequestCompleted;IX.prototype.onYtServiceRequestSent=IX.prototype.onYtServiceRequestSent;IX.prototype.onYtCommentPollRevert=IX.prototype.onYtCommentPollRevert;IX.prototype.onYtCommentboxDismiss=IX.prototype.onYtCommentboxDismiss;IX.prototype.onYtNavigate=IX.prototype.onYtNavigate;IX.prototype.isLoadingChanged=IX.prototype.isLoadingChanged;IX.prototype.dataChanged=IX.prototype.dataChanged;IX.prototype.contentTextChanged=IX.prototype.contentTextChanged;
_.z([_.n(_.Si),_.K("design:type",Object)],IX.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IX.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],IX.prototype,"editDialog",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"roundedContainer",void 0);_.z([_.R(),_.K("design:type",Object)],IX.prototype,"isLoading",void 0);_.z([_.R({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.K("design:type",String)],IX.prototype,"surface",void 0);
_.z([_.R({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.K("design:type",Boolean)],IX.prototype,"usesCompactLockup",void 0);_.z([_.R({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],IX.prototype,"showWithoutToolbar",void 0);_.z([_.R({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.K("design:type",String)],IX.prototype,"attachment",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"isRichGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"isRichGridRepost",void 0);_.z([_.R({reflectToAttribute:!0,value:_.q("use_better_post_dismissals")}),_.K("design:type",Boolean)],IX.prototype,"useBetterPostDismissals",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IX.prototype,"reduceSidePaddings",void 0);
_.z([_.R({computed:"computeHasText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],IX.prototype,"hasText",void 0);_.z([_.xZ("#expander"),_.K("design:type",Object)],IX.prototype,"expander",void 0);_.z([_.xZ("#action-buttons"),_.K("design:type",Object)],IX.prototype,"actionButtons",void 0);_.z([_.xZ("#edit-dialog"),_.K("design:type",HTMLElement)],IX.prototype,"editDialogEl",void 0);
_.z([_.lr("data.contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IX.prototype,"contentTextChanged",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IX.prototype,"dataChanged",null);_.z([_.lr("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IX.prototype,"isLoadingChanged",null);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],IX.prototype,"onYtNavigate",null);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IX.prototype,"onYtCommentboxDismiss",null);_.z([_.kZ("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],IX.prototype,"onYtCommentPollRevert",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],IX.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],IX.prototype,"onYtServiceRequestCompleted",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],IX.prototype,"voteCount",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],IX.prototype,"commentCount",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IX.prototype,"hasPoll",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IX.prototype,"hasUploadedVideo",null);_.z([_.S({is:"ytd-post-renderer",disableElementRegistration:!0})],IX);
_.a(IX,"ytd-post-renderer",function(){if(tTt!==void 0)return tTt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" role="link" hidden="[[computeIsPostHidden(editDialog, isLoading)]]" tabindex="[[computePostTabIndex(data.navigationEndpoint)]]" on-tap="onTap" class="style-scope ytd-post-renderer">\n  <div id="header" class="style-scope ytd-post-renderer">\n    <div id="author-thumbnail" class="style-scope ytd-post-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" tabindex="-1">\n        <yt-img-shadow fit="" height="32" thumbnail="[[data.authorThumbnail]]" width="32" class="style-scope ytd-post-renderer">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="author" class="style-scope ytd-post-renderer">\n      <a id="author-text" class="yt-simple-endpoint style-scope ytd-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n        <span class="style-scope ytd-post-renderer">[[getSimpleString(data.authorText)]]</span>\n      </a>\n      <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-post-renderer"></span>\n    </div>\n    <span id="author-divider" class="style-scope ytd-post-renderer">\u2022</span>\n    <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-post-renderer">\n    </yt-formatted-string>\n    <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-post-renderer"></span>\n  </div>\n  <div id="body" class="style-scope ytd-post-renderer">\n    <div id="post-text" class="style-scope ytd-post-renderer">\n\n      \n      <ytd-expander id="expander" hidden="[[usesCompactLockup]]" class="style-scope ytd-post-renderer">\n        <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n        <span class="more-button style-scope ytd-post-renderer" slot="more-button">\n          [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n        </span>\n        <span class="less-button style-scope ytd-post-renderer" slot="less-button">\n          [[getSimpleString(data.collapseButton.buttonRenderer.text)]]\n        </span>\n      </ytd-expander>\n      <yt-formatted-string id="home-content-text" slot="content" hidden="[[!usesCompactLockup]]" split-lines="[[!usesCompactLockup]]" text="[[data.contentText]]" class="style-scope ytd-post-renderer">\n        </yt-formatted-string>\n    </div>\n    <div id="attachments" class="style-scope ytd-post-renderer">\n      <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-post-renderer"></div>\n      \n      <div id="answer-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.quizRenderer.totalVotes)]]\n      </div>\n      <div id="vote-count-text" class="style-scope ytd-post-renderer">\n        [[getSimpleString(data.backstageAttachment.pollRenderer.totalVotes)]]\n      </div>\n      <div id="vote-button" class="style-scope ytd-post-renderer"></div>\n      <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" role="group" class="style-scope ytd-post-renderer">\n      </ytd-backstage-poll-renderer>\n    </div>\n  </div>\n  <div id="toolbar" hidden="[[showWithoutToolbar]]" class="style-scope ytd-post-renderer">\n    <ytd-comment-action-buttons-renderer id="action-buttons" button-tooltip-position="[[computeButtonTooltipPosition(data.surface)]]" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply_]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" use-comment-icon="" vote-count="[[voteCount]]" class="style-scope ytd-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n    <div id="action-menu" class="style-scope ytd-post-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-post-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return tTt=Y},{mode:1});var UW$;var Xc8;var kk=function(){return _.F.apply(this,arguments)||this};
_.P(kk,_.F);kk.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.HR.YtdHorizontalListBehavior),_.K("design:type",Object)],kk.prototype,"ytdHorizontalListBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],kk.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kk.prototype,"data",void 0);
_.z([_.R({value:"$.items.children"}),_.K("design:type",String)],kk.prototype,"itemsPath",void 0);_.z([_.R({value:1}),_.K("design:type",Number)],kk.prototype,"initialCount",void 0);_.z([_.R(),_.K("design:type",String)],kk.prototype,"surface",void 0);_.z([_.S({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],kk);
_.a(kk,"ytd-post-multi-image-renderer",function(){if(Xc8!==void 0)return Xc8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-multi-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shelf-container" class="style-scope ytd-post-multi-image-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="prevClick_" hidden="[[atStart]]">\n         <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n      </div>\n  </div>\n  <div id="scroll-container" on-keydown="handleKeyDown_" class="style-scope ytd-post-multi-image-renderer">\n    <div id="items" class="style-scope ytd-post-multi-image-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-post-multi-image-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-post-multi-image-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-post-multi-image-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Xc8=Y},{mode:_.Xd("kevlar_poly_si_batch_j079")?1:2});var DWj={"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"}}},lP=function(){var Y=_.F.apply(this,arguments)||this;Y.hasInlineCommentSection=!1;Y.editDialog=null;Y.isLoading=!1;Y.shouldHideAuthor=!1;Y.shouldShowVideoTime=!1;
Y.isInEngagementPanel=!1;Y.hideBorder=!1;Y.usesFullLockup=!1;Y.shouldShowMenuInCompactView=!1;Y.JSC$13133_spinnerEl=null;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.P(lP,_.F);_.g=lP.prototype;_.g.configureRendererStamper=function(){return DWj};
_.g.computeIsPollHeaderEnabled=function(Y){return(Y==null?void 0:Y.pollMetadataIcon)!=null};
_.g.getPublishTimeStampString=function(Y,b){b=new Date((Number(b)-60*((new Date).getTimezoneOffset()-(new Date(Number(b)*1E3)).getTimezoneOffset()))*1E3);b=(new $t(10)).format(b);if(Y&&Y.runs&&Y.runs.length)for(var w=0;w<Y.runs.length;w++)Y.runs[w].text&&(Y.runs[w].text=Y.runs[w].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",b));return Y};
_.g.created=function(){this.JSC$13133_spinnerEl=null};
_.g.contentTextChanged=function(){this.expander.reset()};
_.g.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var Y;if((Y=this.data)==null?0:Y.actions){Y=_.N(this.data.actions);for(var b=Y.next();!b.done;b=Y.next())this.openEditDialog(_.v(b.value,XZC))}};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){_.E6(this.hostElement).querySelector("#action-buttons").reply()};
_.g.updatePoll=function(Y,b){b&&this.set("data.pollMetadataVoteCountText",b);this.hasInlineCommentSection&&(Y=Y>=0,b=_.E6(this.hostElement).querySelector("#action-buttons"),Y?b.reply():b.hideReplyDialog())};
_.g.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13133_spinnerEl||(this.JSC$13133_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E6(this.hostElement).appendChild(this.JSC$13133_spinnerEl));this.JSC$13133_spinnerEl&&(this.JSC$13133_spinnerEl.active=this.isLoading)};
_.g.onYtNavigate=function(Y){var b=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);b&&(this.openEditDialog(b),Y.stopPropagation())};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.onYtCommentPollRevert=function(Y,b){b&&this.updatePoll(b.selectedChoiceIndex,b.totalVotes)};
_.g.onYtServiceRequestSent=function(Y,b){Y.stopPropagation();Y=_.v(b.endpoint,n8d);if(_.v(b.endpoint,Mw$)||Y&&!Y.clientActions)this.isLoading=!0;if(b.actions)for(Y=0;Y<b.actions.length;Y++){var w=b.actions[Y],V=_.v(w,Ow);V&&(w=this.get("updateBackstagePollAction.selectedChoiceIndex",w),w===void 0&&(w=-1),this.updatePoll(w,V.totalVotes))}};
_.g.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.g.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.editDialogElement.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.g.computeIsBodyHidden=function(Y,b){return!!Y||b};
_.up.Object.defineProperties(lP.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var Y,b;if((Y=this.data)==null?0:(b=Y.pollMetadataIcon)==null?0:b.iconType)return _.IR(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.Gx("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,E8j))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,Cx8))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.v(this.data.backstageAttachment,yt$))}}});
lP.prototype.onYtServiceRequestCompleted=lP.prototype.onYtServiceRequestCompleted;lP.prototype.onYtServiceRequestSent=lP.prototype.onYtServiceRequestSent;lP.prototype.onYtCommentPollRevert=lP.prototype.onYtCommentPollRevert;lP.prototype.onYtCommentboxDismiss=lP.prototype.onYtCommentboxDismiss;lP.prototype.onYtNavigate=lP.prototype.onYtNavigate;lP.prototype.isLoadingChanged=lP.prototype.isLoadingChanged;lP.prototype.dataChanged=lP.prototype.dataChanged;lP.prototype.contentTextChanged=lP.prototype.contentTextChanged;
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],lP.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lP.prototype,"rendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lP.prototype,"rendererstamperBehavior",void 0);_.z([_.xZ("#contentTextExpander"),_.K("design:type",Object)],lP.prototype,"expander",void 0);
_.z([_.xZ("#edit-dialog"),_.K("design:type",Element)],lP.prototype,"editDialogElement",void 0);_.z([_.R(),_.K("design:type",Object)],lP.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],lP.prototype,"hasInlineCommentSection",void 0);_.z([_.R(),_.K("design:type",Object)],lP.prototype,"editDialog",void 0);_.z([_.R(),_.K("design:type",Object)],lP.prototype,"isLoading",void 0);
_.z([_.R({computed:"computeIsPollHeaderEnabled(data)"}),_.K("design:type",Boolean)],lP.prototype,"isPollHeaderEnabled",void 0);_.z([_.R(),_.K("design:type",Object)],lP.prototype,"shouldHideAuthor",void 0);_.z([_.R(),_.K("design:type",Object)],lP.prototype,"shouldShowVideoTime",void 0);_.z([_.R(),_.K("design:type",Object)],lP.prototype,"isInEngagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lP.prototype,"hideBorder",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lP.prototype,"usesFullLockup",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lP.prototype,"shouldShowMenuInCompactView",void 0);_.z([_.t("isInEngagementPanel"),_.K("design:type",Number),_.K("design:paramtypes",[])],lP.prototype,"postTextMaxLines",null);_.z([_.t("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],lP.prototype,"pollIcon",null);
_.z([_.lr("data.contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lP.prototype,"contentTextChanged",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lP.prototype,"dataChanged",null);_.z([_.lr("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lP.prototype,"isLoadingChanged",null);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lP.prototype,"onYtNavigate",null);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lP.prototype,"onYtCommentboxDismiss",null);_.z([_.kZ("yt-comment-poll-revert"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],lP.prototype,"onYtCommentPollRevert",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],lP.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lP.prototype,"onYtServiceRequestCompleted",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],lP.prototype,"voteCount",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],lP.prototype,"commentCount",null);_.z([_.t("data.backstageAttachment"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lP.prototype,"hasPoll",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lP.prototype,"hasQuiz",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lP.prototype,"hasUploadedVideo",null);
_.z([_.S({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],lP);
_.a(lP,"ytd-backstage-post-renderer",function(){if(UW$!==void 0)return UW$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return UW$=Y},{mode:1});var mWr;var hf=function(){var Y=_.F.apply(this,arguments)||this;Y.editDialog=null;Y.showExpandButton=!1;Y.isRichGrid=!1;Y.usesFullLockup=!1;return Y};
_.P(hf,_.F);_.g=hf.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.g.computeShowExpandButton=function(Y){return this.usesCompactLockup||Y&&Y.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.g.computeUsesCompactLockup=function(Y){return!!Y.condensedContent};
_.g.computeShowFullContentText=function(Y){return!Y};
_.g.onYtNavigate=function(Y){Y=this.get("updateCommentDialogEndpoint",Y.detail.endpoint);this.openEditDialog(Y)};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null};
_.g.openEditDialog=function(Y){Y&&Y.dialog&&(this.editDialog=Y.dialog,Y=this.repostEditDialogEl.firstElementChild)&&(Y.focus(),Y.openDialog&&Y.openDialog())};
_.g.onTap=function(Y){if(this.data){var b=null;this.usesCompactLockup&&!_.uA(_.JL(Y)||[],this.hostElement,["YT-IMG-SHADOW"])?b=this.get("navigationEndpoint",this.data):Y.target===this.moreButtonEl&&(b=this.get("navigationEndpoint",Y.target.data));b&&_.Ua(this.hostElement,"yt-navigate",{endpoint:b})}};
hf.prototype.onYtCommentboxDismiss=hf.prototype.onYtCommentboxDismiss;hf.prototype.onYtNavigate=hf.prototype.onYtNavigate;hf.prototype.dataChanged=hf.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hf.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],hf.prototype,"editDialog",void 0);_.z([_.R({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],hf.prototype,"usesCompactLockup",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],hf.prototype,"showExpandButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],hf.prototype,"isRichGrid",void 0);
_.z([_.R({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.K("design:type",Boolean)],hf.prototype,"showFullContentText",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],hf.prototype,"usesFullLockup",void 0);_.z([_.xZ("#more"),_.K("design:type",Object)],hf.prototype,"moreButtonEl",void 0);_.z([_.xZ("#repost-content-text"),_.K("design:type",HTMLElement)],hf.prototype,"repostContentTextEl",void 0);
_.z([_.xZ("#repost-edit-dialog"),_.K("design:type",HTMLElement)],hf.prototype,"repostEditDialogEl",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hf.prototype,"dataChanged",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],hf.prototype,"onYtNavigate",null);
_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hf.prototype,"onYtCommentboxDismiss",null);_.z([_.S({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],hf);
_.a(hf,"ytd-shared-post-renderer",function(){if(mWr!==void 0)return mWr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shared-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="repost-context" hidden="[[editDialog]]" on-tap="onTap" class="style-scope ytd-shared-post-renderer">\n  <div id="repost-author-thumbnail" class="style-scope ytd-shared-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-shared-post-renderer"></yt-img-shadow>\n    </a>\n  </div>\n  <div id="repost-main" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <div id="repost-header" class="style-scope ytd-shared-post-renderer">\n      <div id="repost-header-author" class="style-scope ytd-shared-post-renderer">\n        <a id="repost-author-text" class="yt-simple-endpoint style-scope ytd-shared-post-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n          <span class="style-scope ytd-shared-post-renderer">[[getSimpleString(data.displayName)]]</span>\n        </a>\n        <yt-formatted-string id="repost-published-time-text" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-shared-post-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <yt-formatted-string id="repost-content-text" force-default-style="" split-lines="[[!showFullContentText]]" text="[[data.content]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n    <tp-yt-paper-button id="more" data="[[data.expandButton.buttonRenderer]]" hidden="[[!showExpandButton]]" noink="" class="style-scope ytd-shared-post-renderer">\n      [[getSimpleString(data.expandButton.buttonRenderer.text)]]\n    </tp-yt-paper-button>\n  </div>\n  <div id="repost-main-compact" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n    <yt-formatted-string id="condensed-repost-content-text" ellipsis-truncate="" force-default-style="" text="[[data.condensedContent]]" class="style-scope ytd-shared-post-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" hidden="[[usesCompactLockup]]" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="divider-line-container" hidden="[[!usesCompactLockup]]" class="style-scope ytd-shared-post-renderer">\n  <div id="divider-line" class="style-scope ytd-shared-post-renderer"></div>\n</div>\n<div id="repost-edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post" hidden="[[data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer"></div>\n<div id="original-post-deleted-message" hidden="[[!data.originalPostDeletedMessage]]" class="style-scope ytd-shared-post-renderer">\n  [[data.originalPostDeletedMessage]]\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return mWr=Y},{mode:1});var o6t;var IBQ;var xk=function(){return _.F.apply(this,arguments)||this};
_.P(xk,_.F);xk.prototype.attached=function(){var Y=this;this.networkStatusManager||(this.networkStatusManager=new _.jI,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){Y.onlineHandler()}))};
xk.prototype.detached=function(){var Y=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){Y.onlineHandler()}),delete this.networkStatusManager)};
xk.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],xk.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xk.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],xk);
_.a(xk,"ytd-reload-page-button-renderer",function(){if(IBQ!==void 0)return IBQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reload-page-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer data="[[data]]" class="style-scope ytd-reload-page-button-renderer"></ytd-button-renderer>');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return IBQ=Y},{mode:1});var koU={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"},qH=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(qH,_.F);_.g=qH.prototype;_.g.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.g.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.g.computeHasBodyText=function(Y){return!!Y.bodyText};
_.g.computeButtons=function(Y){var b=[];Y.ctaButton&&b.push(Y.ctaButton);Y.secondaryButton&&b.push(Y.secondaryButton);return b};
_.g.computeRendererStyle=function(Y){return Y.style?Y.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():Y.icon?"":"no-icon"};
_.g.getIconName=function(Y,b){b=b===void 0?!1:b;if(Y===void 0)return"";Y=this.get("icon.iconType",Y);var w;_.q("enable_hlp_client_icon_pick")?w=this.getThemedIcon(Y,b):w=Y;(b=koU[w])||(b="yt-icons");return[b,w].join(":")};
_.g.getThemedIcon=function(Y,b){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(Y)?b?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(Y)?b?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":Y};
_.g.isThumbnail=function(Y){return!!Y.thumbnail};
_.g.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],qH.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qH.prototype,"data",void 0);
_.z([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],qH.prototype,"rendererStyle",void 0);_.z([_.R({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.K("design:type",String)],qH.prototype,"iconName",void 0);_.z([_.R({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],qH.prototype,"thumbnail",void 0);_.z([_.R({computed:"computeButtons(data)"}),_.K("design:type",Array)],qH.prototype,"buttons",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],qH.prototype,"isDarkTheme",void 0);_.z([_.R({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],qH.prototype,"hasBodyText",void 0);_.z([_.S({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],qH);
_.a(qH,"ytd-background-promo-renderer",function(){if(o6t!==void 0)return o6t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-background-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="image style-scope ytd-background-promo-renderer" hidden="[[!data.icon]]" icon="[[iconName]]"></yt-icon>\n<yt-img-shadow class="image style-scope ytd-background-promo-renderer" height="[[data.thumbnail.thumbnails.height]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnail.thumbnails.width]]">\n</yt-img-shadow>\n<div class="promo-message style-scope ytd-background-promo-renderer">\n  <div class="promo-title style-scope ytd-background-promo-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string class="promo-body-text style-scope ytd-background-promo-renderer" split-lines="" text="[[data.bodyText]]">\n  </yt-formatted-string>\n</div>\n<div id="buttons" hidden="[[!data.ctaButton]]" class="style-scope ytd-background-promo-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return o6t=Y},{mode:1});var lBU;var s7=function(){var Y=_.F.apply(this,arguments)||this;Y.collections=_.q("web_modern_collections_v2");return Y};
_.P(s7,_.F);_.up.Object.defineProperties(s7.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H,f;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(b=Y.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(V=w.thumbnail)==null?void 0:V.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(f=H.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:this.collections}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],s7.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],s7.prototype,"collections",void 0);_.z([_.t("data","collections"),_.K("design:type",Object),_.K("design:paramtypes",[])],s7.prototype,"collectionStack",null);_.z([_.S({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],s7);
_.a(s7,"ytd-compact-station-renderer",function(){if(lBU!==void 0)return lBU;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-station-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="flex-container style-scope ytd-compact-station-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-station-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-station-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" width="118" class="style-scope ytd-compact-station-renderer"></ytd-thumbnail>\n  </div>\n  <a class="yt-simple-endpoint style-scope ytd-compact-station-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.title)]]\n    </h3>\n    <div id="flex-item" class="style-scope ytd-compact-station-renderer">\n      <p id="description" title$="[[getSimpleString(data.description)]]" class="style-scope ytd-compact-station-renderer">\n        [[getSimpleString(data.description)]]\n      </p>\n    </div>\n    <p id="video-count-text" class="style-scope ytd-compact-station-renderer">\n      [[getSimpleString(data.videoCountText)]]\n    </p>\n  </a>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return lBU=Y},{mode:1});var hbr;var Q8=function(){var Y=_.F.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.P(Q8,_.F);Q8.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]]"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Q8.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Q8.prototype,"isRichGrid",void 0);_.z([_.S({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Q8);
_.a(Q8,"ytd-grid-channel-renderer",function(){if(hbr!==void 0)return hbr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel" class="style-scope ytd-grid-channel-renderer">\n  <a id="channel-info" class="yt-simple-endpoint style-scope ytd-grid-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow height="103" thumbnail="[[data.thumbnail]]" width="103" class="style-scope ytd-grid-channel-renderer"> </yt-img-shadow>\n    <span id="title" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="thumbnail-attribution" class="style-scope ytd-grid-channel-renderer">[[getSimpleString(data.subscriberCountText)]]</span>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-channel-renderer">\n    </ytd-badge-supported-renderer>\n  </a>\n  <div id="subscribe" hidden="[[!data.subscribeButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n  <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-grid-channel-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return hbr=Y},{mode:1});var xWQ;var vl=function(){return _.F.apply(this,arguments)||this};
_.P(vl,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vl.prototype,"data",void 0);_.z([_.S({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],vl);
_.a(vl,"ytd-grid-movie-playlist-renderer",function(){if(xWQ!==void 0)return xWQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail width="210" data="[[data]]" bottom-side-panel="" class="style-scope ytd-grid-movie-playlist-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-playlist-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-playlist-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-playlist-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer id="badges" badges="[[data.ownerBadges]]" hidden="[[!data.ownerBadges]]" class="style-scope ytd-grid-movie-playlist-renderer">\n</ytd-badge-supported-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return xWQ=Y},{mode:1});var qEC;var Pl=function(){var Y=_.F.apply(this,arguments)||this;Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.modernButtons=_.q("web_modern_buttons");Y.useModernCollectionsV2=_.q("web_modern_collections_v2");return Y};
_.P(Pl,_.F);Pl.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Pl.prototype.configureRendererStamper=function(){return{"data.menu":If}};
Pl.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Pl.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.q("woffle_playlist_renderer_killswitch")){var Y,b=UPg(this.entityInfo,this.transferState,this.downloadProgress,(Y=this.data)==null?void 0:Y.playlistId,this.isOnline);Y=b.viewPlaylistText;var w=b.badges;b=b.thumbnailOverlays;this.isDownloads=!!Y||!!w;this.set("data.viewPlaylistText",Y);w&&w.length>0&&this.set("data.badges",w);b&&b.length>0&&this.set("data.thumbnailOverlays",
b)}};
_.up.Object.defineProperties(Pl.prototype,{downloadState:{configurable:!0,enumerable:!0,get:function(){return this.transferState&&this.transferState!=="TRANSFER_STATE_UNKNOWN"?this.transferState==="TRANSFER_STATE_COMPLETE"?"DOWNLOADED":"DOWNLOADING":""}},
menuHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.menu)}}});
Pl.prototype.transferStateChanged=Pl.prototype.transferStateChanged;Pl.prototype.dataChanged=Pl.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],Pl.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Pl.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R({selector:_.ZLB,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],Pl.prototype,"downloadProgress",void 0);_.z([_.R({selector:_.rb,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],Pl.prototype,"transferState",void 0);_.z([_.R({selector:PGI,selectorArgs:["data.playlistId"]}),_.K("design:type",Object)],Pl.prototype,"entityInfo",void 0);_.z([_.R({selector:hxM}),_.K("design:type",Boolean)],Pl.prototype,"isOnline",void 0);
_.z([_.R(),_.K("design:type",Object)],Pl.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Pl.prototype,"downloadRenderData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Pl.prototype,"modernButtons",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Pl.prototype,"isDownloads",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Pl.prototype,"useModernCollectionsV2",void 0);
_.z([_.t("transferState"),_.R({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],Pl.prototype,"downloadState",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Pl.prototype,"menuHidden",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pl.prototype,"dataChanged",null);
_.z([_.vX("transferState","downloadProgress","isOnline"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pl.prototype,"transferStateChanged",null);_.z([_.S({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Pl);
_.a(Pl,"ytd-grid-playlist-renderer",function(){if(qEC!==void 0)return qEC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail custom-thumbnail-size="118" data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-playlist-renderer">\n</ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-playlist-renderer">\n  <h3 class="style-scope ytd-grid-playlist-renderer">\n    <a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-grid-playlist-renderer" data="[[data]]"></ytd-video-meta-block>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-playlist-renderer">\n  </ytd-badge-supported-renderer>\n  <div id="menu" class="style-scope ytd-grid-playlist-renderer"></div>\n  <yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-grid-playlist-renderer">\n  </yt-formatted-string>\n  <yt-interaction id="interaction" class="extended style-scope ytd-grid-playlist-renderer"></yt-interaction>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return qEC=Y},{mode:1});var srd;var ZS=function(){var Y=_.F.apply(this,arguments)||this;Y.collections=_.q("web_modern_collections_v2");return Y};
_.P(ZS,_.F);ZS.prototype.configureRendererStamper=function(){return{"data.menu":If,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.up.Object.defineProperties(ZS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H,f;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(b=Y.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(V=w.thumbnail)==null?void 0:V.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(f=H.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:this.collections}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],ZS.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],ZS.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ZS.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],ZS.prototype,"collections",void 0);_.z([_.t("data","collections"),_.K("design:type",Object),_.K("design:paramtypes",[])],ZS.prototype,"collectionStack",null);_.z([_.S({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],ZS);
_.a(ZS,"ytd-grid-radio-renderer",function(){if(srd!==void 0)return srd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-grid-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-grid-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="118" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div id="details" class="style-scope ytd-grid-radio-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-grid-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-grid-radio-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-radio-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-radio-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <ytd-video-meta-block class="grid style-scope ytd-grid-radio-renderer" data="[[data]]" radio-meta=""></ytd-video-meta-block>\n    </a>\n    <div id="menu" class="style-scope ytd-grid-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-grid-radio-renderer">\n  <div id="dismissed-content" class="style-scope ytd-grid-radio-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-radio-renderer"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return srd=Y},{mode:1});var Qr$;var Bl=function(){var Y=_.F.apply(this,arguments)||this;Y.useModernCollectionsV2=_.q("web_modern_collections_v2");return Y};
_.P(Bl,_.F);Bl.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Bl.prototype.computeNavigationEndpoint=function(Y){return K0B(Y==null?void 0:Y.navigationEndpoint)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],Bl.prototype,"ytdLockupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Bl.prototype,"data",void 0);_.z([_.R({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],Bl.prototype,"computedNavigationEndpoint",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bl.prototype,"useModernCollectionsV2",void 0);_.z([_.S({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Bl);
_.a(Bl,"ytd-grid-show-renderer",function(){if(Qr$!==void 0)return Qr$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="210" class="style-scope ytd-grid-show-renderer"></ytd-playlist-thumbnail>\n<div id="details" class="style-scope ytd-grid-show-renderer">\n  <a id="title" class="yt-simple-endpoint style-scope ytd-grid-show-renderer" href$="[[computeHref_(computedNavigationEndpoint)]]" data="[[computedNavigationEndpoint]]">\n    <h3 class="style-scope ytd-grid-show-renderer">\n      <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="grid style-scope ytd-grid-show-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer class="badge style-scope ytd-grid-show-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n  </ytd-badge-supported-renderer>\n  <div id="offer-button" class="style-scope ytd-grid-show-renderer"></div>\n  <div id="menu" class="style-scope ytd-grid-show-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-show-renderer"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Qr$=Y},{mode:1});var v6I;_.nc=function(Y){this.playerClient=Y};
_.PU_=function(Y,b,w){w=w===void 0?{}:w;return Y.playerClient.setOption("ad",b,w)};
_.nc.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.nc.prototype.executeCommand=function(Y,b){this.getOptions().includes("executeCommand")?_.PU_(this,"executeCommand",{command:Y,layoutId:b}):_.gv("Calling executeCommand when adModule is not loaded")};var MH=function(){return _.F.apply(this,arguments)||this};
_.P(MH,_.F);MH.prototype.getLayoutId=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
MH.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var Y=_.V4(),b=this.getLayoutId(),w=this.data.clickthroughEndpoint;Y&&b&&_.q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(V){(new _.nc(V)).executeCommand(w,b)}):_.Ua(this.hostElement,"yt-navigate",{endpoint:w})}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],MH.prototype,"data",void 0);_.z([_.S({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],MH);
_.a(MH,"ytd-shopping-companion-item-renderer",function(){if(v6I!==void 0)return v6I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="shopping-companion-item-container" on-tap="onTap" class="style-scope ytd-shopping-companion-item-renderer">\n  <div id="card" class="style-scope ytd-shopping-companion-item-renderer">\n    <yt-img-shadow id="image" thumbnail="[[data.image]]" class="style-scope ytd-shopping-companion-item-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-shopping-companion-item-renderer">\n      <span id="headline" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.headline)]]</span>\n      <span id="price" class="style-scope ytd-shopping-companion-item-renderer">[[getSimpleString(data.priceText)]]</span>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return v6I=Y},{mode:1});var ZFo;var e5=function(){var Y=_.F.apply(this,arguments)||this;Y.isExpandableContent=!1;return Y};
_.P(e5,_.F);_.up.Object.defineProperties(e5.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?void 0:Y.price)||((b=this.data)==null?void 0:(w=b.dealsData)==null?void 0:w.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var Y,b;if((Y=this.data)!=null&&Y.dealsData&&((b=this.data)==null||!b.priceReplacementText)){Y=this.data.dealsData;var w,V,H;return((w=Y.salesData)==null?void 0:w.originalPrice)||((V=Y.priceDropData)==null?void 0:V.referencePrice)||((H=Y.promotionData)==null?void 0:H.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(Y=this.data)==null?void 0:(b=Y.dealsData)==null?void 0:b.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],e5.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],e5.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],e5.prototype,"isExpandableContent",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"showCta",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"ctaText",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"hasPriceTopPosition",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"hasPriceBottomPosition",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"useNewStyle",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"showPriceReplacementText",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"priceValue",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"showDeal",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"showAffiliateDisclaimer",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"useSaleStyle",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"useFromBrandCtaStyle",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"useFromVendorCtaStyle",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],e5.prototype,"useShoppingCollectionCtaStyle",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],e5);
_.a(e5,"ytd-vertical-product-card-renderer",function(){if(ZFo!==void 0)return ZFo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-product-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a id="product-card-renderer-container" class="yt-simple-endpoint style-scope ytd-vertical-product-card-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]" aria-label="[[data.accessibilityTitle]]">\n  <div id="card-with-protection" data-offer-version-id$="[[data.debugOfferVersionId]]" class="style-scope ytd-vertical-product-card-renderer">\n    <div id="product-image" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n      <yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-vertical-product-card-renderer"></yt-img-shadow>\n    </div>\n    <div id="product-info" class="style-scope ytd-vertical-product-card-renderer">\n      <div id="product-name" class="product-info-row style-scope ytd-vertical-product-card-renderer">[[data.title]]</div>\n\n      <template is="dom-if" restamp="" if="[[hasPriceTopPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <div id="variants-description" class="product-info-row style-scope ytd-vertical-product-card-renderer">\n        [[data.variantsDescription]]\n      </div>\n\n      <template is="dom-if" restamp="" if="[[showCta]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <yt-formatted-string class="cta-row style-scope ytd-vertical-product-card-renderer" text="[[ctaText]]">\n          </yt-formatted-string>\n          <template is="dom-if" restamp="" if="[[data.showOpenInNewIcon]]" class="style-scope ytd-vertical-product-card-renderer">\n            <yt-icon class="cta-row hover-icon style-scope ytd-vertical-product-card-renderer" icon="open_in_new"></yt-icon>\n          </template>\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[hasPriceBottomPosition]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price-replacement" class="style-scope ytd-vertical-product-card-renderer">[[data.priceReplacementText]]</span>\n          </template>\n          <template is="dom-if" restamp="" if="[[!showPriceReplacementText]]" class="style-scope ytd-vertical-product-card-renderer">\n            <span id="price" class="style-scope ytd-vertical-product-card-renderer">[[priceValue]]</span>\n            <template is="dom-if" restamp="" if="[[data.additionalFeesText]]" class="style-scope ytd-vertical-product-card-renderer">\n              <span id="additional-taxes" class="style-scope ytd-vertical-product-card-renderer">[[data.additionalFeesText]]</span>\n            </template>\n          </template>\n        </div>\n        <div id="product-deal" class="product-info-row style-scope ytd-vertical-product-card-renderer" aria-label="[[data.dealsData.salesData.salesPriceAccessibilityLabel]]">\n          [[showDeal]]\n        </div>\n      </template>\n\n      <template is="dom-if" restamp="" if="[[showAffiliateDisclaimer]]" class="style-scope ytd-vertical-product-card-renderer">\n        <div class="product-info-row style-scope ytd-vertical-product-card-renderer">\n          <div id="affiliate-disclaimer" class="style-scope ytd-vertical-product-card-renderer">[[data.affiliateDisclaimer]]</div>\n        </div>\n      </template>\n    </div>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ZFo=Y},{mode:1});var B3C;var pc=function(){return _.F.apply(this,arguments)||this};
_.P(pc,_.F);pc.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],pc.prototype,"ytdLockupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pc.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],pc);
_.a(pc,"ytd-grid-movie-renderer",function(){if(B3C!==void 0)return B3C;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="210" class="style-scope ytd-grid-movie-renderer">\n</ytd-thumbnail>\n<a class="yt-simple-endpoint style-scope ytd-grid-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-grid-movie-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-movie-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-grid-movie-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <span class="grid-movie-renderer-metadata style-scope ytd-grid-movie-renderer" hidden="[[!data.metadata]]">\n    [[getSimpleString(data.metadata)]]\n  </span>\n  \n  <ytd-video-meta-block class="grid style-scope ytd-grid-movie-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n<ytd-badge-supported-renderer class="badges style-scope ytd-grid-movie-renderer" badges="[[data.badges]]" hidden="[[!data.badges]]">\n</ytd-badge-supported-renderer>\n<div id="offer-button" class="style-scope ytd-grid-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-grid-movie-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return B3C=Y},{mode:1});var n6$;var O7=function(){var Y=_.F.apply(this,arguments)||this;Y.rounded=!0;Y.itemStyle="small-item";return Y};
_.P(O7,_.F);O7.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var Y,b,w,V,H=(b=_.v((Y=this.data)==null?void 0:Y.buttonCommand,_.nL))==null?void 0:(w=b.item)==null?void 0:(V=w.notificationTextRenderer)==null?void 0:V.successResponseText;H&&_.cKq(this.hostElement,H)}};
_.up.Object.defineProperties(O7.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:Y.isProductPlaceholder)!==void 0&&((b=this.data)==null?void 0:b.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],O7.prototype,"rounded",void 0);_.z([_.R(),_.K("design:type",Object)],O7.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],O7.prototype,"itemStyle",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],O7.prototype,"hasPrice",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],O7.prototype,"hasPriceReplacementText",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],O7.prototype,"hasAdditionalFeesText",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],O7.prototype,"hasAffiliateDisclaimer",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],O7.prototype,"isProductPlaceholder",null);
_.z([_.R(),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],O7.prototype,"hideOpenInNewIcon",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],O7.prototype,"ariaLabel",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],O7);
_.a(O7,"ytd-merch-shelf-item-renderer",function(){if(n6$!==void 0)return n6$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<a class="yt-simple-endpoint style-scope ytd-merch-shelf-item-renderer" href$="[[computeHref_(data.buttonCommand)]]" data="[[data.buttonCommand]]" aria-label$="[[ariaLabel]]" data-offer-version-id$="[[data.debugOfferVersionId]]" on-click="showSnackbarIfPlaceholder">\n  <div class="product-item style-scope ytd-merch-shelf-item-renderer">\n    <yt-img-shadow class="product-item-image style-scope ytd-merch-shelf-item-renderer" height="90" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="90"></yt-img-shadow>\n    <template is="dom-if" restamp="" if="[[isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper product-placeholder-item-info-center style-scope ytd-merch-shelf-item-renderer">\n          <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[!isProductPlaceholder]]" class="style-scope ytd-merch-shelf-item-renderer">\n      <div class="product-item-info style-scope ytd-merch-shelf-item-renderer">\n        <div class="product-item-info-wrapper style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-info-wrapper-row-1 style-scope ytd-merch-shelf-item-renderer">\n            <div class="small-item-hide product-item-title style-scope ytd-merch-shelf-item-renderer">[[data.title]]</div>\n            <template is="dom-if" restamp="" if="[[hasPrice]]" class="style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-price-wrapper style-scope ytd-merch-shelf-item-renderer">\n                <template is="dom-if" restamp="" if="[[hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.priceReplacementText]]</div>\n                </template>\n                <template is="dom-if" restamp="" if="[[!hasPriceReplacementText]]" class="style-scope ytd-merch-shelf-item-renderer">\n                  <div class="product-item-price style-scope ytd-merch-shelf-item-renderer">[[data.price]]</div>\n                  <div class="product-item-additional-fees-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAdditionalFeesText]]">\n                    [[data.additionalFeesText]]\n                  </div>\n                </template>\n              </div>\n            </template>\n            <div no-price$="[[!hasPrice]]" class="cta-item-hide link-item-hide product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n              <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">\n                [[data.vendorName]]\n                <yt-icon class="product-item-merchant-icon product-item-merchant-icon--inline style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n              </div>\n              \n              <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n            </div>\n          </div>\n          <div class="small-item-hide large-item-hide product-item-info-wrapper-row-2 style-scope ytd-merch-shelf-item-renderer">\n            <div class="affiliate-disclaimer-text style-scope ytd-merch-shelf-item-renderer" hidden="[[!hasAffiliateDisclaimer]]">\n              [[data.affiliateDisclaimer]]\n            </div>\n            <div class="product-item-description style-scope ytd-merch-shelf-item-renderer">[[data.description]]</div>\n          </div>\n        </div>\n      </div>\n      <div class="small-item-hide large-item-hide link-item-hide product-item-button-wrapper style-scope ytd-merch-shelf-item-renderer" hidden="[[isProductPlaceholder]]">\n        <div class="product-item-button style-scope ytd-merch-shelf-item-renderer">[[data.buttonText]]</div>\n        <div class="product-item-merchant style-scope ytd-merch-shelf-item-renderer">\n          <div class="product-item-merchant-text style-scope ytd-merch-shelf-item-renderer">[[data.vendorName]]</div>\n          <yt-icon class="product-item-merchant-icon style-scope ytd-merch-shelf-item-renderer" hidden="[[hideOpenInNewIcon]]" icon="open_in_new" size="15"></yt-icon>\n        </div>\n      </div>\n    </template>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return n6$=Y},{mode:1});var MDr=_.b8(function(Y){var b=_.GM("button-card-view-model");_.jP(b,function(){return Y.data().rendererContext});
return _.m("button-card-view-model",{el:b,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return Y.data().title},
role:"button"},_.m(_.p_,{model:{}}),_.m("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.m("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.m(_.h,{cond:function(){return Y.data().image},
then:function(w){return _.m(_.Y_,{data:w,alt:function(){var V;return(V=Y.data().title)!=null?V:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.m("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return Y.data().title})))},"Ya");_.q("web_button_view_model_wcw_registration_killswitch")||_.f_(MDr,"button-card-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){Y=_.ur(Y,{className:void 0});var b=Y.data;Y=Y.className;var w=_.sN(function(){return b().onTapCommand},void 0,"NprDr");
return _.m("ytd-shopping-item-card",{class:_.hj("ytdShoppingItemCardHost",Y)},_.m(_.oG,{command:w,className:"ytdShoppingItemCardHostLink"},_.m("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.m(_.OH,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(V){return _.m(_.JH,{data:V.data,
aspectRatio:3})}})),_.m("div",null,_.m("p",{class:"ytdShoppingItemCardHostItemTitle"},_.m(_.wv,{text:function(){return b().itemTitle}})),_.m("p",{class:"ytdShoppingItemCardHostPrice"},_.m(_.wv,{text:function(){return b().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.YX,
className:_.YX}});var ebU={isAdsVideo:!0},pcU={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},OFk={showPlayerControls:!1,videoPreviewDurationMs:15E3},tD8={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.q("web_shorts_imp_fullwidth_killswitch")};var Ny=null,UjM={};var mja="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(" "),tf={},omq=(tf.FEwhat_to_watch="home",tf.FEhashtag="hashtag",tf.FEtrending="trending",tf.FEhistory="history",tf.SPunlimited="premium",tf.FEmemberships_and_purchases="paid_memberships",tf.SPredeem_code="redeem",tf.SPverify_location="locate",tf.SPminor_moment="minor_moment",
tf.FEmini_app_container="mini_app",tf.FEnews_destination="news",tf.SPopen_in_app="open_in_app",tf.FEexplore="explore",tf.FEsubscriptions="subscriptions",tf.FEsfv_audio_pivot="sfv_audio_pivot",tf.FEplaylist_aggregation="playlist_aggregation",tf);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");_.k7("init");var RbC=function(){},SEt=_.b8(function(Y){var b=Y.data;
var w=Y.inlineMetadata;var V=Y.aspectRatio;var H=Y.scrimStyle;var f=Y.className;var E=Y.useDefaultStyle;var U=new RbC,X=_.q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",I=_.sN(function(){return(E==null?0:E())?X==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),k=_.sN(function(){return _.Sa(w)||I()||!1},void 0,"GaU7Ef"),l=function(){return(H==null?void 0:H())!==void 0?H==null?void 0:H():1},x=_.sN(function(){return b().belowThumbnailMetadata||
!k()},void 0,"vsyhaf");
Y=_.GM("ytm-shorts-lockup-view-model",function(y){U&&(U.hostElement=y,O())});
_.H6(Y,{visibilityCallback:function(y){var G=b().onFirstVisible;y&&G&&_.AA(G)},
showOption:{calledOnce:!0,state:"visible"}});f=_.hj("shortsLockupViewModelHost",f);var Q=_.GM("div"),Z={};Z=_.hj(function(){return I(),"shortsLockupViewModelHostThumbnailContainer"},(Z.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Sa(V)===1},Z.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Sa(V)===2},Z.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!I()},Z.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.q("web_shorts_2_by_3_lockups_study")&&!_.q("desktop_search_enable_two_by_three_shorts_aspect_ratio")},Z));
var e,O=function(){if(U){var y;(y=e)==null||Ed(y);var G;U.hostElement&&((G=U.data)==null?0:G.inlinePlayerData)&&(e=TI({mediaRenderer:U,lockupElement:U.hostElement,thumbnailElement:Q.value,videoPreviewOpts:tD8}))}};
_.tl(function(){U&&(U.data=b(),O())},"zGfw4b");
var L=_.sN(function(){return b().thumbnail},void 0,"H4vZOb"),r=_.sN(function(){return b().badge},void 0,"I1QWQc"),C=_.sN(function(){return b().onTap},void 0,"eB6nuc"),W={};
return _.m("ytm-shorts-lockup-view-model",{el:Y,class:f},_.m(_.Uz,null,_.m(_.oG,{command:C,className:_.hj("shortsLockupViewModelHostEndpoint",(W.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!x()},W),"reel-item-endpoint",""),
ariaHidden:function(){return!k()},
tabIndex:function(){return k()?0:-1}},_.m("div",{el:Q,
class:Z},_.m(_.h,{cond:L,then:function(){return _.m(_.Y_,{data:function(){var y;return(y=L==null?void 0:L())!=null?y:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.m(_.h,{cond:k,
then:function(){return _.m(dW8,{data:b,scrimStyle:l,useDefaultStyle:E})}}),_.m(_.OH,{data:r},{badgeViewModel:function(y){return _.m(_.wz,{data:y.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.m(_.h,{cond:function(){return k()&&b().menuOnTap},
then:function(){return _.m(FlC,{data:b,inlineMetadata:!0})}}),_.m(_.h,{cond:x,
then:function(){return _.m(Lld,{data:b,useDefaultStyle:E})}})))},"$a"),dW8=_.b8(function(Y){var b=Y.data;
var w=Y.scrimStyle;var V=Y.useDefaultStyle;var H=_.q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",f=V&&_.q("web_hide_primary_text_for_pivot_panel"),E=_.sN(function(){return(V==null?0:V())?H==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"N1Ofye");
Y={};Y=_.hj("shortsLockupViewModelHostInlineMetadata",(Y.shortsLockupViewModelHostMetadataRounded=function(){return!E()},Y.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(w==null?void 0:w())===3&&!_.q("enable_shorts_lockup_new_scrim")},Y.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(w==null?void 0:w())===3&&_.q("enable_shorts_lockup_new_scrim")},Y.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(w==null?void 0:w())===2||(w==null?void 0:
w())===4},Y.shortsLockupViewModelHostShowOverPlayer=function(){return!0},Y),"image-overlay-text");
var U={};return _.m("div",{class:Y},_.m("h3",{class:_.hj("shortsLockupViewModelHostMetadataTitle",(U.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(w==null?void 0:w())===4},U)),
"aria-label":function(){return b().accessibilityText}},_.m(_.h,{cond:function(){var X;
return!((X=b().overlayMetadata)==null||!X.primaryText)&&!f},
then:function(){return _.m(_.wv,{text:function(){var X;return(X=b().overlayMetadata)==null?void 0:X.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.m(_.h,{cond:function(){var X;
return(X=b().overlayMetadata)==null?void 0:X.secondaryText},
then:function(){return _.m(aBI,{data:b,scrimStyle:w,className:void 0})}}))},"ab"),Lld=_.b8(function(Y){var b=Y.data;
var w=Y.useDefaultStyle;var V=_.q("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",H=_.sN(function(){return(w==null?0:w())?V==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ElFnSc");
Y=_.hj(function(){return H()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var f,E=_.Q_(function(){var l;(l=f)==null||l.click();return!1}),U=_.sN(function(){return b().belowThumbnailMetadata||b().overlayMetadata},void 0,"leqnzc"),X=function(){var l;
return(l=U())==null?void 0:l.avatar},I={},k={};
return _.m("div",{class:_.hj(Y,(I.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!X()},I)),
"on:click":E},_.m(_.OH,{data:X},{avatarViewModel:function(l){return _.m("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.m(_.et,{data:l.data}))}}),_.m("div",null,_.m("h3",{class:_.hj("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(k.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var l,x;
return!((l=U())==null?0:(x=l.primaryText)==null?0:x.content)},k)),
"aria-label":function(){return b().accessibilityText}},_.m(_.oG,{ref:function(l){return void(f=l)},
command:function(){return b().onTap},
className:_.hj("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var l,x;return(l=U())==null?void 0:(x=l.primaryText)==null?void 0:x.content}},_.m(_.h,{cond:function(){var l;
return(l=U())==null?void 0:l.primaryText},
then:function(l){return _.m(_.wv,{text:l,noEndpoints:!0,noStyleRuns:!0})}}))),_.m(_.h,{cond:function(){var l;
return(l=U())==null?void 0:l.secondaryText},
then:function(l){return _.m("div",{class:_.hj("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.m(_.wv,{text:l,noStyleRuns:!0}))}})),_.m(_.h,{cond:function(){return b().menuOnTap},
then:function(){return _.m(FlC,{data:b,inlineMetadata:!1})}}))},"bb"),aBI=_.b8(function(Y){var b=Y.data;
var w=Y.scrimStyle;Y=Y.className;var V={};return _.m("div",{class:_.hj((V.shortsLockupViewModelHostMetadataSubhead=function(){return(w==null?void 0:w())!==4},V.shortsLockupViewModelHostMetadataSubheadNew=_.q("enable_shorts_lockup_new_scrim"),V.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(w==null?void 0:w())===4},V),Y),
"aria-hidden":"true"},_.m(_.wv,{text:function(){var H;return(H=b().overlayMetadata)==null?void 0:H.secondaryText},
noStyleRuns:!0}))},"cb"),FlC=_.b8(function(Y){var b=Y.data;
var w=Y.inlineMetadata;Y={};Y=_.hj((Y.shortsLockupViewModelHostInlineMetadataMenu=function(){return w()},Y.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!w()},Y.shortsLockupViewModelHostShowOverPlayer=function(){return!0},Y),"image-overlay-text");
return _.m("div",{class:Y},_.m(HT,{data:function(){return{style:w()?"overlay":"mono",accessibilityLabel:b().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(V){V.preventDefault();V.stopPropagation();var H=_.KA({elementsCommand:b().menuOnTap,forceNewState:!0});if(H==null?0:H.onclick)H.onclick(V)}}},
iconName:"MORE_VERT"}))},"db");var rgK=_.b8(function(Y){var b=Y.data;var w=Y.inlineMetadata;var V=Y.aspectRatio;var H=Y.scrimStyle;var f=Y.className;var E=Y.useDefaultStyle;Y=_.sN(function(){var U=b().entityId;return U?U.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.m("ytm-shorts-lockup-view-model-v2",{class:_.hj("shortsLockupViewModelHost",f)},_.m(_.Jkk,{contentId:Y,aspectRatio:function(){return(V==null?void 0:V())===1?1:(V==null?void 0:V())===2?2:4}},function(){return _.m(SEt,{data:b,
inlineMetadata:w,aspectRatio:V,scrimStyle:H,className:f,useDefaultStyle:E})}))},"eb");_.f_(rgK,"ytm-shorts-lockup-view-model-v2",{props:{data:_.gn,inlineMetadata:_.gn,aspectRatio:_.gn,scrimStyle:_.gn,className:_.gn,useDefaultStyle:_.gn}});var zbU=16/9*210,RX=function(){var Y=_.F.apply(this,arguments)||this;Y.isExpandableContent=!1;Y.hideShelfHeader=!1;Y.engagementPanel=!1;Y.buttonClasses=["arrow"];Y.isSearch=!1;Y.disableScrollEventListener=!1;Y.containsLockup=!1;Y.overrideArrowPositionForProductCard=!1;Y.overrideArrowPositionForShoppingItemCard=!1;Y.overrideArrowPositionForReelItems=!1;Y.overrideArrowPositionForGridMovie=!1;Y.overrideArrowPositionToCenter=!1;Y.isSearchPostShelf=!1;Y.overrideArrowPositionForMixedShelf=!1;Y.overrideArrowPositionForMixedShelfShortsOnly=
!1;Y.hasBigThumbsReelItems=!1;Y.shouldUseMixedListHeight=!1;Y.shouldUseShortsListHeight=!1;Y.gridVideoWidth=0;Y.isSearchVodShelf=!1;Y.disableWheelScroll=!1;Y.sizing="COMPACT";Y.shortsLockupAspectRatio=0;return Y};
_.P(RX,_.F);_.g=RX.prototype;
_.g.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]]"}}}}};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.q("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.g.computeInitialCountNumber=function(Y){if(!Y)return 6;var b=Y.items.some(function(f){return!!f.topicRecommendationsChipRenderer}),w=Y.items.some(function(f){return!!f.displayAdRenderer}),V=this.computeShouldListItemsHaveEqualHeight(Y),H=Y.items.some(function(f){return!!f.gridPlaylistRenderer});
Y=Y.items.some(function(f){return!!f.shoppingItemCardViewModel});
return b?9:w?8:H||V?10:Y?7:6};
_.g.computeContainsPost=function(Y){return!!Y&&!!Y.items&&Y.items.some(function(b){return!!b.postRenderer})};
_.g.computeContainsLockup=function(){if(_.q("web_horizontal_list_lockup_arrow_killswitch"))return!1;var Y,b;return(Y=this.data)==null?void 0:(b=Y.items)==null?void 0:b.some(function(w){return!!w.lockupViewModel})};
_.g.maybeUpdateLockupAspectRatio=function(){var Y,b;if(this.computeContainsLockup()&&((Y=this.data)==null?0:(b=Y.items)==null?0:b.length)){var w;Y=IBr((w=this.data.items[0].lockupViewModel)==null?void 0:w.contentType,this.data.force16By9ThumbnailAspectRatio);w=dKK(Y);w=this.computeLockupWidth()/w;_.m_(this.hostElement,{"--yt-horizontal-list-content-height":w+"px"})}};
_.g.computeOverrideArrowPositionForProductCard=function(Y){if(this.isExpandableContent)return!1;var b;return!!(Y==null?0:(b=Y.items)==null?0:b.some(function(w){return!!w.verticalProductCardRenderer}))};
_.g.computeOverrideArrowPositionForShoppingItemCard=function(Y){var b;return!!(Y==null?0:(b=Y.items)==null?0:b.some(function(w){return!!w.shoppingItemCardViewModel}))};
_.g.computeOverrideArrowPositionForReelItemRenderer=function(Y){return this.containsReelItemRenderer(Y)};
_.g.computeHasBigThumbsReelItems=function(Y,b){return Y&&this.containsReelItemRenderer(b)};
_.g.computeShouldListItemsHaveEqualHeight=function(Y){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(Y==null?void 0:Y.itemSizeConstraint)};
_.g.computeShouldListItemsHaveShortsHeight=function(Y){return this.computeShouldListItemsHaveEqualHeight(Y)&&!this.containsGridVideoRenderer(Y)};
_.g.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.g.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.g.containsReelItemRenderer=function(Y){var b;return!!(Y==null?0:(b=Y.items)==null?0:b.some(function(w){return!(!w.reelItemRenderer&&!w.shortsLockupViewModel)}))};
_.g.containsGridVideoRenderer=function(Y){var b;return!!(Y==null?0:(b=Y.items)==null?0:b.some(function(w){return!!w.gridVideoRenderer||!!w.lockupViewModel}))};
_.g.computeContainsGridMovieRenderer=function(Y){var b;return!!(Y==null?0:(b=Y.items)==null?0:b.some(function(w){return!!w.gridMovieRenderer}))};
_.g.computeOverrideArrowPositionToCenter=function(Y){return this.computeIsSearchPostShelf(Y)};
_.g.computeIsSearchPostShelf=function(Y){var b;return!!(Y==null?0:(b=Y.items)==null?0:b.some(function(w){var V,H;return((H=(V=w.postRenderer)==null?void 0:V.surface)!=null?H:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.g.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(Y){var b;return!!(Y==null?0:(b=Y.items)==null?0:b.some(function(w){var V,H,f;return((f=(V=w.backgroundPromoRenderer)==null?void 0:(H=V.style)==null?void 0:H.value)!=null?f:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.g.computeIsSearchVodShelf=function(Y,b){return Y&&this.containsGridVideoRenderer(b)};
_.g.computeDisableWheelScroll=function(Y,b){return this.computeIsSearchVodShelf(Y,b)};
_.g.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.g.computeShortsLockupAspectRatio=function(){return 1};
_.g.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.m_(this.hostElement,{"--ytd-reel-item-thumbnail-height":zbU+"px"})};
RX.prototype.dataChanged=RX.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.HR.YtdHorizontalListBehavior),_.K("design:type",Object)],RX.prototype,"ytdHorizontalListBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],RX.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],RX.prototype,"isExpandableContent",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"hideShelfHeader",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"engagementPanel",void 0);_.z([_.R(),_.K("design:type",Array)],RX.prototype,"buttonClasses",void 0);_.z([_.R(),_.K("design:type",Object)],RX.prototype,"isSearch",void 0);
_.z([_.R(),_.K("design:type",Object)],RX.prototype,"disableScrollEventListener",void 0);_.z([_.R({computed:"computeInitialCountNumber(data)"}),_.K("design:type",Number)],RX.prototype,"initialCount",void 0);_.z([_.R({computed:"computeContainsPost(data)"}),_.K("design:type",Boolean)],RX.prototype,"supportComponentResize",void 0);_.z([_.R({computed:"computeContainsPost(data)"}),_.K("design:type",Boolean)],RX.prototype,"containsPost",void 0);
_.z([_.R({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"containsLockup",void 0);_.z([_.R({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],RX.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.z([_.R({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"overrideArrowPositionForProductCard",void 0);_.z([_.R({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.z([_.R({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"overrideArrowPositionForReelItems",void 0);_.z([_.R({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"overrideArrowPositionForGridMovie",void 0);
_.z([_.R({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"overrideArrowPositionToCenter",void 0);_.z([_.R({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"isSearchPostShelf",void 0);_.z([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.z([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.z([_.R({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"hasBigThumbsReelItems",void 0);
_.z([_.R({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"shouldUseMixedListHeight",void 0);_.z([_.R({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"shouldUseShortsListHeight",void 0);_.z([_.R({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"gridVideoWidth",void 0);
_.z([_.R({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"isSearchVodShelf",void 0);_.z([_.R({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.K("design:type",Object)],RX.prototype,"disableWheelScroll",void 0);_.z([_.R({computed:"computeSizing(isSearch)"}),_.K("design:type",Object)],RX.prototype,"sizing",void 0);
_.z([_.R({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.K("design:type",Object)],RX.prototype,"shortsLockupAspectRatio",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RX.prototype,"dataChanged",null);
_.a(RX,"yt-horizontal-list-renderer",function(){if(CmQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-horizontal-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n<div id="scroll-outer-container" class="style-scope yt-horizontal-list-renderer">\n  <div id="scroll-container" class="style-scope yt-horizontal-list-renderer">\n    <div id="items" class="style-scope yt-horizontal-list-renderer"></div>\n  </div>\n</div>\n<div id="right-arrow" class="style-scope yt-horizontal-list-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);CmQ=Y}Y=CmQ;return Y},{mode:1});var Wlo;var Kl_=[10,12,14,16,18,20,24,28,32,36],iFK=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],dz=function(){var Y=_.F.apply(this,arguments)||this;Y.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";Y.hideOverflow=!1;Y.useRoboto=!1;Y.fontClass="";Y.overflown=!1;Y.actionMap={"yt-window-resized":"resize"};return Y};
_.P(dz,_.F);_.g=dz.prototype;
_.g.attached=function(){var Y=this;switch(this.fontFamily){case "PROMO_FONT_FAMILY_ROBOTO_BOLD":this.useRoboto=!0;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD":this.useRoboto=!1;this.fontWeight=700;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_MEDIUM":this.useRoboto=!1;this.fontWeight=500;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_SEMIBOLD":this.useRoboto=!1;this.fontWeight=600;break;case "PROMO_FONT_FAMILY_YOUTUBE_SANS_LIGHT":this.useRoboto=!1;this.fontWeight=400;break;default:this.useRoboto=
!1,this.fontWeight=700}this.setParentConstraints();_.TC(this,function(){Y.resize()});
if(!_.kv){var b,w,V;(b=document)==null||(w=b.fonts)==null||(V=w.ready)==null||V.then(function(){Y.resize()})}};
_.g.dataChanged=function(){this.resize()};
_.g.guideIsExpandedChanged=function(){this.resize()};
_.g.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var Y=this.getMaxNumLines(),b=this.getMinFont(),w=this.getMaxFont(),V=this.useRoboto?Kl_:iFK;for(V=V.filter(function(f){return f<=w&&f>=b});V.length>1;){var H=Math.floor(V.length/2);
this.updateFontSize(V[H]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=Y)V=V.slice(H,V.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>Y)V=V.slice(0,H);else break}this.updateFontSize(V[V.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(Y)}};
_.g.handleOverflow=function(Y){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>Y&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",Y.toString()))};
_.g.updateFontSize=function(Y){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+Y;this.textNode.classList.add(this.fontClass)};
_.g.getMaxFont=function(){var Y=this.useRoboto?Kl_:iFK;Y=Y[Y.length-1];return this.maxFontSize&&this.maxFontSize<=Y?this.maxFontSize:Y};
_.g.getMinFont=function(){var Y=(this.useRoboto?Kl_:iFK)[0];return this.minFontSize&&this.minFontSize>=Y?this.minFontSize:Y};
_.g.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.g.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.g.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Tx(this.text).split("\n").length-1:Infinity};
_.g.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
dz.prototype.guideIsExpandedChanged=dz.prototype.guideIsExpandedChanged;dz.prototype.dataChanged=dz.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],dz.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],dz.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],dz.prototype,"text",void 0);
_.z([_.R(),_.K("design:type",String)],dz.prototype,"fontFamily",void 0);_.z([_.R(),_.K("design:type",Number)],dz.prototype,"maxWidth",void 0);_.z([_.R(),_.K("design:type",Number)],dz.prototype,"maxHeight",void 0);_.z([_.R(),_.K("design:type",Number)],dz.prototype,"maxFontSize",void 0);_.z([_.R(),_.K("design:type",Number)],dz.prototype,"minFontSize",void 0);_.z([_.R(),_.K("design:type",Number)],dz.prototype,"maxLines",void 0);_.z([_.R(),_.K("design:type",Object)],dz.prototype,"hideOverflow",void 0);
_.z([_.R({selector:_.Dm6}),_.K("design:type",Boolean)],dz.prototype,"guideIsExpanded",void 0);_.z([_.xZ("#container"),_.K("design:type",HTMLElement)],dz.prototype,"containerNode",void 0);_.z([_.xZ("#text"),_.K("design:type",HTMLElement)],dz.prototype,"textNode",void 0);_.z([_.vX("text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dz.prototype,"dataChanged",null);
_.z([_.vX("guideIsExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dz.prototype,"guideIsExpandedChanged",null);_.z([_.S({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],dz);
_.a(dz,"yt-dynamic-sizing-formatted-string",function(){if(Wlo!==void 0)return Wlo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dynamic-sizing-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="dynamic-text-container style-scope yt-dynamic-sizing-formatted-string">\n  <yt-formatted-string id="text" disable-attributed-string="" text="[[text]]" class="style-scope yt-dynamic-sizing-formatted-string"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Wlo=Y},{mode:1});var Agk;_.CUd=function(Y){_.Yb.call(this,Y)};
_.P(_.CUd,_.Yb);var ygt=function(Y){_.Yb.call(this,Y)};
_.P(ygt,_.CUd);var Fg=function(){return _.F.apply(this,arguments)||this};
_.P(Fg,_.F);Fg.prototype.onTapSuspendedChannel=function(){var Y;if((Y=this.data)!=null&&Y.serviceEndpoint){var b,w;(Y=(w=_.v((b=this.data)==null?void 0:b.serviceEndpoint,_.Ah))==null?void 0:w.url)?_.yU(Y,void 0,void 0,window.top):(b=new ygt("Did not handle suspended account tap. No appealUrl."),_.Ft(b))}else b=new ygt("Did not handle suspended account tap. No serviceEndpoint."),_.Ft(b)};
Fg.prototype.onTap=function(){var Y=this,b=_.Qd(),w,V=(w=_.sQ(b,{veType:7116}))!=null?w:void 0;_.Aj(b,{visualElement:V});_.AL();this.saveRoleText();var H;if((H=this.data)==null?0:H.youtubeSuspended)this.onTapSuspendedChannel();else{var f=!1,E,U;(b=(U=_.v((E=this.data)==null?void 0:E.serviceEndpoint,_.ay9))==null?void 0:U.supportedTokens)&&b.forEach(function(X){if(X.accountSigninToken)if(f=!0,Y.onAccountItemTap)Y.onAccountItemTap(X.accountSigninToken.signinUrl);else _.yU(X.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!f){if(E=this.get("serviceEndpoint",this.data))f=!0,this.ytComponentBehavior.resolveCommand(E);f||_.LB(new ygt("Did not handle account switch tap. No token."))}}};
Fg.prototype.saveRoleText=function(){if(this.data){var Y=this.data,b=Y.channelDelegationRole;if(b){var w,V=(w=_.v(Y==null?void 0:Y.serviceEndpoint,_.ay9))==null?void 0:w.supportedTokens;if(!V){var H,f,E,U;V=(H=_.v(Y==null?void 0:Y.serviceEndpoint,_.tI))==null?void 0:(f=H.popup)==null?void 0:(E=f.confirmDialogRenderer)==null?void 0:(U=E.confirmButton)==null?void 0:U.buttonRenderer;var X;V=(X=_.v(V==null?void 0:V.command,_.ln))==null?void 0:X.commands;if(!V)return;var I;V=(I=_.v(V[1],_.ay9))==null?
void 0:I.supportedTokens}if(V){X=void 0;I=_.N(V);for(V=I.next();!V.done;V=I.next())if(V=V.value,V.datasyncIdToken){X=V.datasyncIdToken.datasyncIdToken;break}if(X){var k;a:{if(_.wwG()&&(I=_.lmL(X+"::pom"))){I=new Oq(I);break a}I=void 0}(k=I)==null||k.set("role_text",b);if((ILr?ILr:window.location).href.indexOf("studio")!==-1&&(k=ViK())){I=k.src?(new URL(k.src)).origin:"*";var l;(l=k.contentWindow)==null||l.postMessage({action:"save_pom_role",datasyncId:X,roleText:b},I)}}}}}};
_.up.Object.defineProperties(Fg.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.accountPhoto)==null?void 0:b.thumbnails;return w&&w.length>0&&(w[0].height===36||w[0].height===48)?w[0].height:40}}});
Fg.prototype.onTap=Fg.prototype.onTap;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Fg.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Fg.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!1}),_.K("design:type",Function)],Fg.prototype,"onAccountItemTap",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Fg.prototype,"enableRingForActiveAccount",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],Fg.prototype,"thumbnailSize",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fg.prototype,"onTap",null);_.z([_.S({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Fg);
_.a(Fg,"ytd-account-item-renderer",function(){if(Agk!==void 0)return Agk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-icon-item class="style-scope ytd-account-item-renderer">\n  <yt-img-shadow slot="item-icon" height="[[thumbnailSize]]" item-icon="" thumbnail="[[data.accountPhoto]]" width="[[thumbnailSize]]" class="style-scope ytd-account-item-renderer">\n  </yt-img-shadow>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-account-item-renderer">\n    <yt-formatted-string id="channel-title" text="[[data.accountName]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string respect-lang-dir="" secondary="" text="[[data.channelHandle]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string secondary="" text="[[data.accountByline]]" class="style-scope ytd-account-item-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item-body>\n  <yt-icon id="selected" hidden="[[!data.isSelected]]" icon="yt-icons:check" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <yt-icon id="studio-redirect" aria-label$="[[getSimpleString(data.studioRedirectVisualHint)]]" hidden="[[!data.isRedirectToStudio]]" icon="yt-icons:open_in_new" class="style-scope ytd-account-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-tooltip for="studio-redirect" hidden="[[!data.isRedirectToStudio]]" position="left" class="style-scope ytd-account-item-renderer">\n    [[getSimpleString(data.studioRedirectVisualHint)]]\n  </tp-yt-paper-tooltip>\n</tp-yt-paper-icon-item>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Agk=Y},{mode:1});var $W5;var Lc=function(){return _.F.apply(this,arguments)||this};
_.P(Lc,_.F);Lc.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.fH().resolve(_.Nn).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Lc.prototype,"data",void 0);_.z([_.S({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Lc);
_.a(Lc,"ytd-identity-chip-renderer",function(){if($W5!==void 0)return $W5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-identity-chip-renderer">\n  <h3 id="header-text" class="style-scope ytd-identity-chip-renderer">[[data.headerText]]</h3>\n</div>\n<div id="content-row" class="style-scope ytd-identity-chip-renderer">\n  <div id="info-div" class="style-scope ytd-identity-chip-renderer">\n    <img id="avatar-image" alt="" src$="[[data.avatarUrl]]" class="style-scope ytd-identity-chip-renderer">\n    <div id="name-handle-div" class="style-scope ytd-identity-chip-renderer">\n      <p id="name" class="style-scope ytd-identity-chip-renderer">[[data.name]]</p>\n      <p id="handle" hidden="[[!data.handle]]" dir="auto" class="style-scope ytd-identity-chip-renderer"><span class="style-scope ytd-identity-chip-renderer">@</span>[[data.handle]]</p>\n    </div>\n  </div>\n  <div id="edit-icon" class="style-scope ytd-identity-chip-renderer">\n    <yt-icon-button id="edit-icon-button" aria-label$="[[data.onTapLabel]]" on-click="onClickEditIcon" class="style-scope ytd-identity-chip-renderer">\n      <yt-icon id="edit-icon" icon="yt-icons:edit" class="style-scope ytd-identity-chip-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $W5=Y},{mode:1});var jrd;var Go8;var T3$;var Jgt;var S5=function(){var Y=_.F.apply(this,arguments)||this;Y.richItemMinWidth=_.cQ("wn_grid_min_item_width",310);Y.isShorts=!1;Y.isWatchNext=!1;Y.isExploreHub=!1;return Y};
_.P(S5,_.F);_.up.Object.defineProperties(S5.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var Y=[],b=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.m_(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var w;if(((w=this.data)==null?0:w.rows)&&b)for(b*=this.data.rows,w=0;w<b;w++)Y.push({});return Y}}});
_.z([_.n(_.FX),_.K("design:type",Object)],S5.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],S5.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.FZ,value:3}),_.K("design:type",Number)],S5.prototype,"itemsPerRow",void 0);_.z([_.R({selector:_.XaG,value:6}),_.K("design:type",Number)],S5.prototype,"slimItemsPerRow",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Number)],S5.prototype,"richItemMinWidth",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],S5.prototype,"miniMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],S5.prototype,"isShorts",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],S5.prototype,"isWatchNext",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],S5.prototype,"isExploreHub",void 0);
_.z([_.t("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.K("design:type",Array),_.K("design:paramtypes",[])],S5.prototype,"cardItems",null);_.z([_.S({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],S5);
_.uUQ=_.UQ()(S5,"ytd-ghost-grid-renderer",function(){if(Jgt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-grid style-scope ytd-ghost-grid-renderer">\n  <template is="dom-repeat" items="[[cardItems]]" class="style-scope ytd-ghost-grid-renderer">\n    <div class="ghost-card style-scope ytd-ghost-grid-renderer">\n      <div class="rich-thumbnail skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n      <div class="details style-scope ytd-ghost-grid-renderer">\n        <div class="channel-avatar skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        <div class="details-text-shell style-scope ytd-ghost-grid-renderer">\n          <div class="rich-video-title text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n          <div class="video-meta rich-video-meta text-shell skeleton-bg-color style-scope ytd-ghost-grid-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);Jgt=Y}Y=Jgt;return Y},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.f_(_.b8(function(Y){var b=_.ur(Y,{numberOfComments:3}).numberOfComments,w=_.ur(Y,{isInitialLoad:!1}).isInitialLoad,V=_.ur(Y,{engagementPanel:!1}).engagementPanel,H=function(){return Math.min(Number(b==null?void 0:b())||20,20)};
return _.m("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.m(_.h,{cond:function(){return!(V==null?0:V())&&(w==null?void 0:w())},
then:function(){return _.m("div",{class:"ytGhostCommentsComments"},_.m("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.m("div",{class:_.hj("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.m("div",{class:_.hj("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.m("div",{class:"ytGhostCommentsGhostCard"},_.m("div",{class:"ytGhostCommentsAvatar"},_.m("div",{class:"ytGhostCommentsCircle"})),_.m("div",{class:"ytGhostCommentsComments"},_.m("div",{class:"ytGhostCommentsMeta"},
_.m("div",{class:_.hj("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.m("div",{class:_.hj("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.m("div",{class:"ytGhostCommentsComments"},_.m(_.Bf,{each:function(){return Array((H==null?void 0:H())||3)}},function(){return _.m("div",{class:"ytGhostCommentsGhostCard"},_.m("div",{class:"ytGhostCommentsAvatar"},_.m("div",{class:"ytGhostCommentsCircle"})),_.m("div",{class:"ytGhostCommentsHost"},_.m("div",{class:"ytGhostCommentsMeta"},
_.m("div",{class:_.hj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.m("div",{class:_.hj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:_.hj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:"ytGhostCommentsGhostLikeDislike"},_.m("div",{class:_.hj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.m("div",{class:_.hj("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.YX,
isInitialLoad:_.YX,engagementPanel:_.YX}});_.S9("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var aX=function(){var Y=_.F.apply(this,arguments)||this;Y.isOverridable=!1;Y.spinnerActive=!1;Y.showButton=!1;Y.isCommentsSection=!1;Y.engagementPanel=!0;Y.isShortsGrid=!1;Y.isShortsPage=!1;Y.isWatchPage=!1;Y.ghostCardExperimentEnabled=_.q("show_ghost_comments_shorts_watch")||_.q("show_ghost_comments_desktop_watch");Y.originalShowButton=!1;Y.endOfList=!1;return Y};
_.P(aX,_.F);_.g=aX.prototype;_.g.resetIntersectionObserver=function(){var Y;(Y=this.observer)==null||Y.disconnect();this.observer=void 0};
_.g.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var Y,b;((Y=this.data)==null?void 0:Y.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((b=this.data)==null?0:b.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.g.initializeIntersectionObserver=function(){var Y=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(b){b=_.N(b);for(var w=b.next();!w.done;w=b.next())w.value.isIntersecting&&(Y.triggerContinuation(),Y.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.g.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.g.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var Y;((Y=this.data)==null?0:Y.continuationEndpoint)&&(Y=_.v(this.data.continuationEndpoint,_.Wb))&&this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:Y}}))};
_.g.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.g.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.g.onServiceRequestCompleted=function(Y,b){if(!_.q("kevlar_hide_spinner_on_empty_continuation_killswitch")){var w;(w=b.actions)!=null&&w.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.g.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.g.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.g.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.g.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var Y=3;if(this.engagementPanel){var b,w,V;Y=Math.floor(((((b=this.hostElement)==null?void 0:(w=b.parentElement)==null?void 0:(V=w.parentElement)==null?void 0:V.scrollHeight)||108)-108)/108);Y=this.isInitialLoad?Math.max(Y,3):3}b=[].concat(_.Bt(this.hostElement.querySelectorAll("yt-ghost-comments")));b=_.N(b);for(w=b.next();!w.done;w=b.next())w=w.value,w.numberOfComments=Y,w.isInitialLoad=this.isInitialLoad,w.engagementPanel=
this.engagementPanel}};
_.g.detached=function(){this.resetIntersectionObserver()};
_.up.Object.defineProperties(aX.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.q("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.q("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
aX.prototype.numberOfGhostCommentsChanged=aX.prototype.numberOfGhostCommentsChanged;aX.prototype.continuationTriggerOffsetChanged=aX.prototype.continuationTriggerOffsetChanged;aX.prototype.showButtonChanged=aX.prototype.showButtonChanged;aX.prototype.onYtServiceRequestCompletedForButtonRenderer=aX.prototype.onYtServiceRequestCompletedForButtonRenderer;aX.prototype.onServiceRequestCompleted=aX.prototype.onServiceRequestCompleted;aX.prototype.onYtServiceRequestSentForButtonRenderer=aX.prototype.onYtServiceRequestSentForButtonRenderer;
aX.prototype.observeData=aX.prototype.observeData;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.GW.YtVisibilityBehavior),_.K("design:type",Object)],aX.prototype,"ytVisibilityBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],aX.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],aX.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],aX.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],aX.prototype,"isOverridable",void 0);_.z([_.R(),_.K("design:type",Object)],aX.prototype,"spinnerActive",void 0);_.z([_.R(),_.K("design:type",Object)],aX.prototype,"showButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],aX.prototype,"isCommentsSection",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],aX.prototype,"engagementPanel",void 0);_.z([_.R(),_.K("design:type",Object)],aX.prototype,"isShortsGrid",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.oUv}),_.K("design:type",Object)],aX.prototype,"isShortsPage",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.Sl}),_.K("design:type",Object)],aX.prototype,"isWatchPage",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],aX.prototype,"ghostCardExperimentEnabled",void 0);
_.z([_.R(),_.K("design:type",Number)],aX.prototype,"continuationTriggerOffset",void 0);_.z([_.R(),_.K("design:type",Object)],aX.prototype,"endOfList",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],aX.prototype,"isInitialLoad",void 0);_.z([_.xZ("ytd-button-renderer"),_.K("design:type",_.YI)],aX.prototype,"buttonRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],aX.prototype,"buttonOverrides",void 0);
_.z([_.R(),_.t("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.K("design:type",Object),_.K("design:paramtypes",[])],aX.prototype,"isShortsCommentsSection",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aX.prototype,"observeData",null);
_.z([_.kZ("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aX.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],aX.prototype,"onServiceRequestCompleted",null);
_.z([_.kZ("yt-service-request-completed-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aX.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.z([_.vX("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aX.prototype,"showButtonChanged",null);
_.z([_.vX("continuationTriggerOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aX.prototype,"continuationTriggerOffsetChanged",null);_.z([_.lr("isInitialLoad","engagementPanel"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aX.prototype,"numberOfGhostCommentsChanged",null);_.z([_.S({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],aX);
_.a(aX,"ytd-continuation-item-renderer",function(){if(T3$!==void 0)return T3$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-continuation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ghost-cards" class="style-scope ytd-continuation-item-renderer"></div>\n<div id="ghost-comment-section" class="style-scope ytd-continuation-item-renderer"></div>\n<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" hidden="[[showButton]]" class="style-scope ytd-continuation-item-renderer">\n</tp-yt-paper-spinner>\n<div id="button" hidden="[[!showButton]]" class="style-scope ytd-continuation-item-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return T3$=Y},{mode:1});var Yok;var rz=function(){var Y=_.F.apply(this,arguments)||this;Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.downloadState="DOWNLOAD_STATE_UNKNOWN";Y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";Y.offlineVideoPolicyExpirationTimestamp=0;Y.downloadedVideoPlaybackPosition=0;return Y};
_.P(rz,_.F);rz.prototype.dataChanged=function(){var Y;this.videoData=_.v((Y=this.data)==null?void 0:Y.renderer,mwU);this.transferStateChanged()};
rz.prototype.downloadProgressChanged=function(){if(this.entityInfo){var Y=Object.assign({},this.videoData),b=XBM(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),w=b.publishedTimeText,V=b.badges;Y.shortViewCountText=b.shortViewCountText;Y.publishedTimeText=w;Y.badges=V;this.set("videoData",Y)}};
rz.prototype.transferStateChanged=function(){if(this.entityInfo){var Y=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",b=_.Z7(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!P$(this.entityInfo.policyEntity),w=Object.assign({},this.videoData),V=XBM(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),H=V.publishedTimeText,f=V.badges;w.shortViewCountText=
V.shortViewCountText;w.publishedTimeText=H;w.badges=f;w.isDisabled=b;w.isWatched=this.downloadedVideoPlaybackPosition>0;w.navigationEndpoint=b?void 0:zAb(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var E;Y&&((E=this.videoData)==null?0:E.videoId)&&!_.q("dl_resume_click_killswitch")&&(w.isDisabled=!1,w.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});w.thumbnailOverlays=c4L(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",w)}};
rz.prototype.transferStateChanged=rz.prototype.transferStateChanged;rz.prototype.downloadProgressChanged=rz.prototype.downloadProgressChanged;rz.prototype.dataChanged=rz.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],rz.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rz.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],rz.prototype,"videoData",void 0);_.z([_.R({selector:zx,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],rz.prototype,"downloadProgress",void 0);_.z([_.R(),_.K("design:type",Number)],rz.prototype,"relativeDateReference",void 0);_.z([_.R({selector:_.a8,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],rz.prototype,"transferState",void 0);
_.z([_.R({selector:dmu,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],rz.prototype,"downloadState",void 0);_.z([_.R({selector:qwa,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],rz.prototype,"offlinePolicyAction",void 0);_.z([_.R({selector:sUG,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],rz.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.z([_.R({selector:W$,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],rz.prototype,"downloadedVideoPlaybackPosition",void 0);_.z([_.R({selector:vUt,selectorArgs:["videoData.videoId"]}),_.K("design:type",Object)],rz.prototype,"entityInfo",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],rz.prototype,"isDownloading",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rz.prototype,"dataChanged",null);
_.z([_.vX("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rz.prototype,"downloadProgressChanged",null);_.z([_.vX("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rz.prototype,"transferStateChanged",null);
_.z([_.S({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],rz);
_.a(rz,"ytd-downloaded-video-grid-video-renderer",function(){if(Yok!==void 0)return Yok;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-downloaded-video-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-grid-video-renderer id="video" data="[[videoData]]" is-downloading="[[isDownloading]]" class="style-scope ytd-downloaded-video-grid-video-renderer"></ytd-grid-video-renderer>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Yok=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var b5o;var zA=function(){};
zA.prototype.resolve=function(Y,b){var w=this;return _.c(function(V){return _.D(V,w.resolveCommand(Y,b),0)})};var wrI,Wl;wrI=YlM(function(Y){return Y.targetId},{shouldPersist:!1});
Wl=wrI.updateData;_.V6U=wrI.useUpdatableData;var H5C,gmd;H5C=YlM(function(Y){return Y.targetId});
gmd=H5C.updateData;_.fNd=H5C.useUpdatableData;var NHk=lNI.bind(null,Wl),EmC=lNI.bind(null,gmd);(function(Y,b,w){var V=_.v(w==null?void 0:w.updatedRenderer,_.K0U);return V?Y({targetId:b},function(){return V}):!1}).bind(null,Wl);var Kc=function(){};
_.P(Kc,zA);Kc.prototype.resolveCommand=function(Y){var b;return _.c(function(w){b=_.v(Y,_.Peq);if(!b)return w.return();NHk(b.targetId,b);_.om(w)})};var iP=function(){var Y=_.s6.apply(this,arguments)||this;Y.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return Y};
_.P(iP,_.s6);_.g=iP.prototype;_.g.configureContinuationPathMap=function(){return{}};
_.g.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.g.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.g.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.g.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.g.handleAppendContinuationItemsAction=function(Y){var b=_.v(Y,_.syU);if(this.data&&this.data.targetId&&b&&this.continuationPathMap&&b.targetId===this.data.targetId){var w=FQK(Y),V=w&&this.continuationPathMap[w];if(V&&w)if(Y=this.get(V,this.data)){a:{for(w=0;w<Y.length;w++){var H=Y[w],f=void 0,E=!!_.v((f=_.v(H,gSt))==null?void 0:f.content,_.co9);if(_.v(H,_.cK)||E)break a}w=Y.length}V="data."+V;b.continuationItems?w===Y.length-1?(this.pop(V),this.push.apply(this,[V].concat(_.Bt(b.continuationItems)))):
w===Y.length?this.push.apply(this,[V].concat(_.Bt(b.continuationItems))):this.splice.apply(this,[V,w,1].concat(_.Bt(b.continuationItems))):this.splice(V,w,1);(_.q("web_enable_voting_animation")||_.q("enable_music_web_cairo_voting_animation"))&&_.Ua(this.hostElement,"yt-append-continuation-items-action-finished");_.Ua(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Sk(new _.BQ("append continuation items does not exist",w));else _.Sk(new _.BQ("append continuation path does not exist",
w))}};
_.g.handleReloadContinuationItemsCommand=function(Y){var b=_.v(Y,_.Peq);if(this.data&&b){if(_.q("web_explore_hub")||_.q("web_client_explore_hub")||_.q("web_explore_hub_on_hover")||_.q("web_client_explore_hub_on_hover"))try{_.fH().resolve(Kc).resolveCommand(Y)}catch(f){}if(this.data.targetId&&this.continuationPathMap&&b.targetId===this.data.targetId&&(!_.q("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||b.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var w,V=
(w=b.slot)==null?void 0:w.replace("RELOAD_CONTINUATION_SLOT_","");w=(Y=FQK(Y)+"-"+(V==null?void 0:V.toLowerCase()))&&this.continuationPathMap[Y];if(!w||!Y||!V)_.Sk(new _.BQ("reload continuation path does not exist",Y));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(b)){if(b.replaceWithFirstItem){var H;this.set("data."+w,((H=b.continuationItems)==null?0:H.length)?b.continuationItems[0]:{})}else this.set("data."+w,b.continuationItems?b.continuationItems:
[]);this.continuationIsReloading=!1;_.Ua(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.g.handleShowReloadUiCommand=function(Y){Y=_.v(Y,F3j);var b;((b=this.data)==null?0:b.targetId)&&(Y==null?0:Y.targetId)&&Y.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
iP.prototype.observeData=iP.prototype.observeData;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],iP.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],iP.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],iP.prototype,"data",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],iP.prototype,"continuationIsReloading",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iP.prototype,"observeData",null);_.z([_.QC()],iP);_.Af=[_.yZ.YtComponentBehavior,_.US.YtActionHandlerBehavior,iP.prototype];_.Cc={};_.Cc.YtNextContinuationBehavior=[_.g9.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",_.Io(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Io(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(Y,b){Y.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,b,{}):(Y={locationRetrieved:function(w){this.makeNextContinuationRequest_(w,b,{})}.bind(this)},_.Ua(this.hostElement,"yt-retrieve-location",Y))},
makeNextContinuationRequest_:function(Y,b,w){_.aP("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();Y=b(Y);var V;this.canUseContextualNetworkManager_()&&(V=this.getNetworkManager());V||(V=_.fH().resolve(_.LX));b=_.C_.instance;if(_.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&b){V=_.Yy([Y.startsWith("/")?Y.substr(1):Y]);var H,f;w=_.rw(b,{},V,w==null?void 0:(H=w.context)==null?void 0:(f=H.clickTracking)==null?void 0:f.clickTrackingParams).then(function(E){return{response:E}})}else w=
this.nextContinuation.usePost?V.postData(Y,w):V.fetchData(Y);
w.then(this.updateNextContinuationData_.bind(this,Y));this.pendingContinuationRequest_=w;this.startListeningForNavigate_()},
updateNextContinuationData_:function(Y,b){var w=this;_.aP("ncl");this.pendingContinuationRequest_=void 0;if(b){var V={};this.nextContinuation&&(V=this.nextContinuation);if(b.response&&b.response.continuationContents&&b.response.continuationContents[V.continuationType]){Y=b.response.continuationContents[V.continuationType];var H=V.header||"data.header",f=Y[V.responseHeaderKey||"header"];f&&this.set(H,f);H=V.contentsArray||"data.contents";f=this.getContents_(Y,V.responseContentsKey||"contents")||[];
this.pathExists_(H)?(f.unshift(H),this.push.apply(this,f)):this.set(H,f);f&&(h_I(_.Qd(),b.response,this.hostElement,function(E){_.Xx(w.hostElement,"yt-store-grafted-ve-action",[E])}),_.Ua(this.hostElement,"yt-next-continuation-data-updated",{continuationData:b,
page:this,contentsArray:H}));this.set(V.continuationsArray||"data.continuations",Y[V.responseContinuationsKey||"continuations"]||[])}else b.reload?_.Sk(new _.BQ("Reloading from continuation is unsupported")):b.responseContext&&b.responseContext.errors||(delete b.xsrf_token,delete b.timing,delete b.endpoint,delete b.csn,b.responseContext&&delete b.responseContext.serviceTrackingParams,H={request:_.TO(Y,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(b).sort()},b.response&&(H.responseContentKeys=
Object.keys(b.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(H.continuationType=this.nextContinuation.continuationType.substr(0,256)),b=new _.BQ("Malformed continuation",H),Y.indexOf("/comment_service_ajax")==0?_.Sk(b):_.Ft(b)),this.set(V.continuationsArray||"data.continuations",[])}else _.LB(new _.BQ("Missing continuation response",Y))},
getContents_:function(Y,b){b=b.split(".");return _.BL.getValueByKeys(Y,b)},
pathExists_:function(Y){var b=this;Y=Y.toString().split(".");for(var w=0;w<Y.length;w++)if(b=b[Y[w]],b===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var cK8;var Ujt;var y8=function(){var Y=_.F.apply(this,arguments)||this;Y.triggered_=!1;return Y};
_.P(y8,_.F);_.g=y8.prototype;_.g.attached=function(){this.maybeTriggerAutoload()};
_.g.detached=function(){this.hasBeenTriggered_=!1};
_.g.onPrescanVisible=function(){this.onShow()};
_.g.onShow=function(){this.showButton||this.trigger()};
_.g.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Ua(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.g.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.g.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.g.computeLabel_=function(Y,b){return Y===void 0?null:Y.label||!b?Y.label:this.showMoreText_};
_.g.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.g.getContinuationUrl=function(Y){var b={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Jq(Y,b)};
_.g.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
y8.prototype.showButtonChanged_=y8.prototype.showButtonChanged_;y8.prototype.observeData_=y8.prototype.observeData_;_.z([_.n(_.GW.YtVisibilityBehavior),_.K("design:type",Object)],y8.prototype,"ytVisibilityBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],y8.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],y8.prototype,"showButton",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],y8.prototype,"showIcon",void 0);_.z([_.R({computed:"computeLabel_(data, showButton)"}),_.K("design:type",Object)],y8.prototype,"label",void 0);_.z([_.R({value:_.Gx(_.sa("SHOW_MORE",void 0,"Show More"))}),_.K("design:type",Object)],y8.prototype,"showMoreText_",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],y8.prototype,"spinnerActive_",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],y8.prototype,"hasBeenTriggered_",void 0);
_.z([_.R({value:void 0}),_.K("design:type",String)],y8.prototype,"observeVisibleOption",void 0);_.z([_.R({value:void 0}),_.K("design:type",String)],y8.prototype,"observeHiddenOption",void 0);_.z([_.R({value:"observe_once"}),_.K("design:type",Object)],y8.prototype,"observePrescanOption",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y8.prototype,"observeData_",null);
_.z([_.lr("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y8.prototype,"showButtonChanged_",null);_.z([_.FM({is:"yt-next-continuation",disableElementRegistration:!0})],y8);
_.a(y8,"yt-next-continuation",function(){if(Ujt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-next-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.continuations.yt_next_continuation.yt.next.continuation.css.js--\x3e\n<template is="dom-if" if="[[!showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-spinner id="spinner" active="[[spinnerActive_]]" class="style-scope yt-next-continuation"></tp-yt-paper-spinner>\n</template>\n<template is="dom-if" if="[[showButton]]" class="style-scope yt-next-continuation">\n  <tp-yt-paper-button on-tap="trigger" class="style-scope yt-next-continuation">\n    <yt-icon hidden$="[[!showIcon]]" icon="subdirectory_arrow_right" class="style-scope yt-next-continuation"></yt-icon>\n    <yt-formatted-string text="[[label]]" class="style-scope yt-next-continuation"></yt-formatted-string>\n  </tp-yt-paper-button>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;cK8===void 0&&(cK8=document.createElement("template"));var V=cK8;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Ujt=Y}Y=Ujt;return Y},{mode:2});var Xrk;var Djd;var $k=function(){return _.F.apply(this,arguments)||this};
_.P($k,_.F);$k.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$k.prototype,"data",void 0);_.z([_.FM({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],$k);
_.a($k,"yt-music-pass-small-feature-info-renderer",function(){if(Djd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-small-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_small_feature_info_renderer.yt.music.pass.small.feature.info.renderer.css.js--\x3e<yt-img-shadow thumbnail="[[data.icon]]" width="84" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-img-shadow>\n<yt-formatted-string id="header" respect-html-dir="" text="[[data.header]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" respect-html-dir="" text="[[data.description]]" class="style-scope yt-music-pass-small-feature-info-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Xrk===void 0&&(Xrk=document.createElement("template"));var V=Xrk;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Djd=Y}Y=Djd;return Y},{mode:2});_.S9("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var j5=function(){var Y=_.F.apply(this,arguments)||this;Y.isCollapsible=!1;Y.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return Y};
_.P(j5,_.F);_.g=j5.prototype;_.g.computeIsCollapsible=function(Y){return!!(((Y==null?0:Y.showMoreText)||(Y==null?0:Y.visibleRowCount))&&(Y==null?0:Y.isCollapsible))};
_.g.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"}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.g.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.g.onIronResize=function(){var Y=this;_.ir(this,"updateGridInitItems",function(){Y.maybeUpdateInitialItemsDisplayed()})};
_.g.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var Y=this.getVisibleWidth();Y!==0&&(Y=Math.floor(Y/214)*(this.data.visibleRowCount||2),Y!==this.initialCount&&(this.initialCount=Y,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.g.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.g.computeExpandVisible=function(Y,b,w,V){return Y&&b&&w&&!!V&&!!V.showMoreText};
_.g.computeShowMoreButton=function(Y){return{text:Y,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.g.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.g.initCollapsed=function(){var Y=this;this.ytLazyListBehavior.canShowMore=!1;var b;(this.collapsed=!((b=this.data)==null||!b.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.TC(this,function(){_.De(Y.hostElement,"yt-refit-popups-action")})};
_.g.fillRestIfNotCollapsible=function(){var Y=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!Y||this.ytLazyListBehavior.fillRemainingListItems()};
_.g.computeViewAllHidden=function(Y,b){return Y||!b.viewAllEndpoint};
j5.prototype.fillRestIfNotCollapsible=j5.prototype.fillRestIfNotCollapsible;j5.prototype.initCollapsed=j5.prototype.initCollapsed;j5.prototype.onIronResize=j5.prototype.onIronResize;j5.prototype.persistentGuideChanged=j5.prototype.persistentGuideChanged;_.z([_.n(_.Li),_.K("design:type",Object)],j5.prototype,"ironResizableBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],j5.prototype,"ytLazyListBehavior",void 0);_.z([_.n(_.Cc.YtNextContinuationBehavior),_.K("design:type",Object)],j5.prototype,"ytNextContinuationBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],j5.prototype,"ytdGuideStateAwareBehavior",void 0);
_.z([_.n(_.Af),_.K("design:type",Object)],j5.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],j5.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],j5.prototype,"collapsed",void 0);_.z([_.R(),_.K("design:type",Number)],j5.prototype,"initialCount",void 0);_.z([_.R({computed:"computeShowMoreButton(data.showMoreText)"}),_.K("design:type",Object)],j5.prototype,"showMoreButton",void 0);
_.z([_.R({computed:"computeIsCollapsible(data)"}),_.K("design:type",Object)],j5.prototype,"isCollapsible",void 0);_.z([_.xZ("#items"),_.K("design:type",HTMLElement)],j5.prototype,"items",void 0);_.z([_.vX("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],j5.prototype,"persistentGuideChanged",null);_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],j5.prototype,"onIronResize",null);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],j5.prototype,"initCollapsed",null);_.z([_.vX("canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],j5.prototype,"fillRestIfNotCollapsible",null);_.z([_.S({is:"ytd-grid-renderer",disableElementRegistration:!0})],j5);
_.a(j5,"ytd-grid-renderer",function(){if(b5o!==void 0)return b5o;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.title]]" class="style-scope ytd-grid-renderer">\n  <h3 class="channel-link style-scope ytd-grid-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-grid-renderer"></yt-formatted-string>\n  </h3>\n</template>\n<div id="items" class="style-scope ytd-grid-renderer"></div>\n<ytd-button-renderer id="show-more-button" align-by-text="" data="[[showMoreButton]]" hidden="[[!computeExpandVisible(isCollapsible, collapsed, canShowMore, data)]]" on-tap="onExpandTap" class="style-scope ytd-grid-renderer">\n</ytd-button-renderer>\n<yt-formatted-string id="view-all" hidden="[[computeViewAllHidden(canShowMore, data)]]" text="[[data.viewAllText]]" class="style-scope ytd-grid-renderer">\n</yt-formatted-string>\n<div id="continuations" class="style-scope ytd-grid-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return b5o=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var GA=function(){return _.F.apply(this,arguments)||this};
_.P(GA,_.F);
GA.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"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],GA.prototype,"data",void 0);_.z([_.S({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],GA);
_.a(GA,"ytd-carousel-ad-renderer",function(){if(Go8!==void 0)return Go8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-carousel-ad-renderer">\n  <div id="badge" class="style-scope ytd-carousel-ad-renderer"></div>\n  <h3 id="title-text" class="style-scope ytd-carousel-ad-renderer">\n    <yt-formatted-string text="[[data.adMetadata.displayAdRenderer.titleText]]" class="style-scope ytd-carousel-ad-renderer">\n    </yt-formatted-string>\n  </h3>\n  <div id="menu" class="style-scope ytd-carousel-ad-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-carousel-ad-renderer"></div>\n<div id="footer" class="style-scope ytd-carousel-ad-renderer">\n  <yt-formatted-string id="footer-string" text="[[data.adMetadata.displayAdRenderer.footerString]]" title="[[getSimpleString(data.adMetadata.displayAdRenderer.footerString)]]" class="style-scope ytd-carousel-ad-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Go8=Y},{mode:1});var mjo;var TA=function(){return _.F.apply(this,arguments)||this};
_.P(TA,_.F);_.g=TA.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,TA.JSC$13307_CLICK_LOCATION_ID_MAP))};
_.g.onSitelinkTap=function(Y){Y.stopPropagation();var b,w,V=Y==null?void 0:(b=Y.model)==null?void 0:(w=b.item)==null?void 0:w.onTap;V&&this.ytSparklesClickLocationBehavior.handleClick(V,Y,!1)};
_.g.onTap=function(Y){var b=this.data&&this.data.content&&this.data.content.navigationEndpoint;b&&this.ytSparklesClickLocationBehavior.handleClick(b,Y,!1)};
_.g.sendImpression=function(){if(this.data&&this.data.content)for(var Y=_.N(this.data.content.impressionEndpoints||[]),b=Y.next();!b.done;b=Y.next()){b=_.N(b.value.loggingUrls||[]);for(var w=b.next();!w.done;w=b.next())w=w.value,w.baseUrl&&$r(w.baseUrl,w.attributionSrcMode)}};
TA.prototype.onTap=TA.prototype.onTap;TA.prototype.dataChanged=TA.prototype.dataChanged;TA.JSC$13307_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"]]);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],TA.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],TA.prototype,"data",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TA.prototype,"dataChanged",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],TA.prototype,"onTap",null);_.z([_.S({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],TA);
_.a(TA,"ytd-promoted-sparkles-text-search-renderer",function(){if(mjo!==void 0)return mjo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-text-search-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n  <div id="main-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <h3 id="title" aria-label$="[[data.content.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.content.title)]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-img-shadow id="favicon" hidden="[[!data.content.favicon]]" thumbnail="[[data.content.favicon]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-img-shadow>\n        [[getSimpleString(data.content.title)]]\n    </h3>\n    <yt-formatted-string id="description" no-endpoints="[[noEndpoints]]" text="[[data.content.descriptionText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    </yt-formatted-string>\n    <div id="sitelinks-table" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <template id="sitelinks-dom-repeat" is="dom-repeat" items="[[data.content.sitelinks]]" as="item" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        <yt-formatted-string id="sitelinks" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" role="link" text="[[item.title]]" on-click="onSitelinkTap" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="format-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      <div id="ad-badge" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n      <yt-formatted-string id="display-url" ellipsis-truncate="" no-endpoints="[[noEndpoints]]" text="[[data.content.websiteText]]" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="right-container" class="style-scope ytd-promoted-sparkles-text-search-renderer">\n    <div id="menu" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n    <div id="call-to-action" class="style-scope ytd-promoted-sparkles-text-search-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return mjo=Y},{mode:1});var om8;var Jf=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.P(Jf,_.F);_.g=Jf.prototype;
_.g.configureRendererStamper=function(){return{"data.menu":{id:_.q("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]]"}}}}}};
_.g.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.g.computeHasAdBadge=function(Y){return!(Y==null||!Y.adBadge)};
_.g.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Jf.JSC$13316_DEFAULT_AD_BADGE_RENDERER),_.U6(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Jf.JSC$13316_CLICK_LOCATION_ID_MAP))};
_.g.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var Y;(((Y=this.data)==null?void 0:Y.impressionCommands)||[]).forEach(function(b){b=_.N(b.loggingUrls||[]);for(var w=b.next();!w.done;w=b.next())w=w.value,w.baseUrl&&$r(w.baseUrl,w.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.g.onTap=function(Y){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint,V;(b=(V=this.data)==null?void 0:V.thumbnailNavigationEndpoint)&&_.Yh(_.JL(Y),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(b,Y,!1):w&&this.ytSparklesClickLocationBehavior.handleClick(w,Y,!1)};
_.g.handleMuteAd=function(){this.collapsed=!0};
_.g.attached=function(){var Y=this;_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.g.detached=function(){_.q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.up.Object.defineProperties(Jf.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var Y;return!(((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var Y;return!(((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
Jf.prototype.dataChanged=Jf.prototype.dataChanged;
Jf.JSC$13316_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"]]);
Jf.JSC$13316_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.z([_.n(d0),_.K("design:type",Object)],Jf.prototype,"ytdActiveViewBehavior",void 0);
_.z([_.n([_.US.YtActionHandlerBehavior]),_.K("design:type",Object)],Jf.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Jf.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Jf.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Jf.prototype,"collapsed",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],Jf.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],Jf.prototype,"biggerThumbsStyle",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.K("design:type",Boolean)],Jf.prototype,"fixAlignmentSmallScreens",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs_square")}}),
_.K("design:type",Boolean)],Jf.prototype,"useBiggerThumbsSquare",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.mediaHoverOverlay"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jf.prototype,"hideHoverOverlay",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jf.prototype,"webSearchLayout",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jf.prototype,"webSearchLayoutLandscape",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jf.prototype,"webSearchLayoutSquare",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jf.prototype,"sparklesCtaNoBackground",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.actionButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jf.prototype,"hideActionButton",null);_.z([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.K("design:type",Object)],Jf.prototype,"buttonOverride",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.K("design:type",Boolean)],Jf.prototype,"hasNewAdBadge",void 0);_.z([_.t("data.promotedSparklesWebStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Jf.prototype,"useRoundedBadge",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jf.prototype,"dataChanged",null);_.z([_.S({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Jf);
_.a(Jf,"ytd-promoted-sparkles-web-renderer",function(){if(om8!==void 0)return om8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-sparkles-web-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sparkles-container" on-tap="onTap" class="style-scope ytd-promoted-sparkles-web-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="thumbnail-hover-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <div id="thumbnail-deep-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <yt-img-shadow id="thumbnail" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n        </yt-img-shadow>\n        <div id="media-badge-search" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n      </div>\n      <div id="media-hover-overlay" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n  </div>\n  <div id="sparkles-body-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n    <div id="sparkles-body" class="style-scope ytd-promoted-sparkles-web-renderer">\n      <h3 id="title" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.title)]]\n      </h3>\n      <div id="description" class="style-scope ytd-promoted-sparkles-web-renderer">\n        [[getSimpleString(data.description)]]\n      </div>\n      <div id="website-text-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n        <span id="ad-badge-container" class="style-scope ytd-promoted-sparkles-web-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-sparkles-web-renderer">\n          </ytd-badge-supported-renderer>\n          <div id="ad-badge-new" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n        </span>\n        <div id="website-text" class="style-scope ytd-promoted-sparkles-web-renderer">\n          [[getSimpleString(data.websiteText)]]\n        </div>\n      </div>\n      <div id="action-button" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>\n  </div>\n</div>\n<div id="old-menu" class="style-scope ytd-promoted-sparkles-web-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return om8=Y},{mode:1});var INI;var uP=function(){return _.F.apply(this,arguments)||this};
_.P(uP,_.F);_.g=uP.prototype;_.g.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]]"}}}}}};
_.g.computeShowCta=function(Y){return!(Y==null||!Y.ctaRenderer)};
_.g.onCtaClick=function(){var Y,b,w,V=(Y=this.data)==null?void 0:(b=Y.ctaRenderer)==null?void 0:(w=b.buttonRenderer)==null?void 0:w.command;V&&this.ytComponentBehavior.resolveCommand(V)};
_.g.onWatchButtonClick=function(){var Y,b,w,V=(Y=this.data)==null?void 0:(b=Y.watchButtonRenderer)==null?void 0:(w=b.buttonRenderer)==null?void 0:w.command;V&&this.ytComponentBehavior.resolveCommand(V)};
_.g.onTap=function(){};
_.g.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",uP.JSC$13319_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",uP.JSC$13319_DEFAULT_CLICK_LOCATION_BEHAVIOR,uP.JSC$13319_CLICK_LOCATION_ID_MAP),this.thumbnail)){var Y=this.thumbnail.getElementsByTagName("a");Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href")}};
_.g.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var Y=_.N(this.data.impressionUrls),b=Y.next();!b.done;b=Y.next())b=b.value,xCI(b,sAt(b));this.data.impressionsFired=!0}};
_.g.maybeComputeHref=function(){return null};
_.g.computeIsShortDR=function(Y){return!(Y==null||!Y.watchButtonRenderer)&&!(Y==null||!Y.ctaRenderer)&&!!this.enableShortDR};
_.g.computeIsNewUiOrShortDr=function(Y){return!!this.enableUiUpdate||this.computeIsShortDR(Y)};
_.g.computeIsNewUiAndNotShortDr=function(Y){return!!this.enableUiUpdate&&!this.computeIsShortDR(Y)};
_.g.computeHideAvatar=function(Y){return!((Y==null?0:Y.channelThumbnail)&&this.computeIsNewUiOrShortDr(Y))};
_.g.onClick=function(Y){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint;if(this.enableShortDR&&w&&(_.v(w,_.TG)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(w,Y,!!_.v(w,_.TG)),Y.stopPropagation();else if(w&&_.v(w,_.TG))this.ytSparklesClickLocationBehavior.handleClick(w,Y,!0),Y.stopPropagation();else if(w){var V,H;((V=this.data)==null?0:V.navigationEndpoint)&&((H=this.data)==null?0:H.adPlaybackContextParams)&&cuI(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(w)}};
_.g.computeButtonOverride=function(Y){if(this.computeIsNewUiOrShortDr(Y))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.g.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.g.onThumbnailContainerClick=function(Y){this.onClick(Y)};
_.g.computeThumbnailWidth=function(Y,b){return Y?b==="MASSIVE"?600:b==="BIG"?500:b==="MEDIUM"?450:420:360};
_.g.attached=function(){var Y=this;_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.g.detached=function(){_.q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
uP.prototype.dataChanged=uP.prototype.dataChanged;uP.prototype.onTap=uP.prototype.onTap;uP.JSC$13319_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};uP.JSC$13319_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
uP.JSC$13319_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"}];_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.z([_.n(d0),_.K("design:type",Object)],uP.prototype,"ytdActiveViewBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],uP.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],uP.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],uP.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],uP.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_video_display_compact_button_group_for_desktop_search")}}),
_.K("design:type",Boolean)],uP.prototype,"enableShortDR",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_vac_ui_update_for_desktop_search")}}),
_.K("design:type",Boolean)],uP.prototype,"enableUiUpdate",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],uP.prototype,"biggerThumbsStyle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.K("design:type",Boolean)],uP.prototype,"showCta",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.K("design:type",Boolean)],uP.prototype,"isShortDr",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.K("design:type",Boolean)],uP.prototype,"isShortDrOrNewUi",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.K("design:type",Boolean)],uP.prototype,"isNewUiAndNotShortDr",void 0);_.z([_.R({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],uP.prototype,"buttonOverride",void 0);_.z([_.R({computed:"computeSecondaryButtonOverride(data)"}),_.K("design:type",Object)],uP.prototype,"secondaryButtonOverride",void 0);_.z([_.xZ("ytd-thumbnail"),_.K("design:type",HTMLElement)],uP.prototype,"thumbnail",void 0);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uP.prototype,"onTap",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uP.prototype,"dataChanged",null);_.z([_.S({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],uP);
_.a(uP,"ytd-promoted-video-renderer",function(){if(INI!==void 0)return INI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" on-click="onThumbnailContainerClick" class="style-scope ytd-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div id="metadata-container" class="style-scope ytd-promoted-video-renderer">\n    <div id="text-container" class="style-scope ytd-promoted-video-renderer">\n      <a id="endpoint" class="yt-simple-endpoint style-scope ytd-promoted-video-renderer" data="[[data.navigationEndpoint]]" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick">\n        <div id="meta" class="style-scope ytd-promoted-video-renderer">\n          <div id="title-wrapper" class="style-scope ytd-promoted-video-renderer">\n            \n            <h3 id="video-title" aria-label$="[[data.title.accessibility.accessibilityData.label]]" title$="[[getSimpleString(data.title)]]" class="style-scope ytd-promoted-video-renderer">\n              [[getSimpleString(data.title)]]\n            </h3>\n          </div>\n          \n          <span id="description-text" hidden="[[!computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n          <div id="byline" class="style-scope ytd-promoted-video-renderer">\n            <div id="channel-thumbnail-container" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" hidden="[[computeHideAvatar(data)]]" class="style-scope ytd-promoted-video-renderer">\n                <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" class="style-scope ytd-promoted-video-renderer">\n                </yt-img-shadow>\n            </div>\n            <div id="ad-badge-container" hidden="[[!data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              <ytd-badge-supported-renderer top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-promoted-video-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <ytd-video-meta-block id="ad-badge-metablock" data="[[data]]" class="style-scope ytd-promoted-video-renderer"></ytd-video-meta-block>\n          </div>\n        </div>\n        <span id="description-text" hidden="[[computeIsNewUiOrShortDr(data)]]" class="style-scope ytd-promoted-video-renderer">[[getSimpleString(data.description)]]</span>\n        <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n      </a>\n      <div id="button-container" class="style-scope ytd-promoted-video-renderer">\n        <template is="dom-if" if="[[computeIsShortDR(data)]]" class="style-scope ytd-promoted-video-renderer">\n          <ytd-button-renderer id="secondary-button" data="[[data.watchButtonRenderer.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data)]]" on-click="onWatchButtonClick" class="style-scope ytd-promoted-video-renderer">\n          </ytd-button-renderer>\n        </template>\n        <div id="call-to-action" on-click="onCtaClick" class="style-scope ytd-promoted-video-renderer"></div>\n      </div>\n    </div>\n    <div id="menu" class="style-scope ytd-promoted-video-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return INI=Y},{mode:1});var k7U;var YJ=function(){var Y=_.F.apply(this,arguments)||this;Y.useRoundedBadge=!0;Y.sitelinkIds=[];return Y};
_.P(YJ,_.F);_.g=YJ.prototype;
_.g.configureRendererStamper=function(){return{"data.menu":{id:_.q("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]]"}}}}}};
_.g.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,YJ.JSC$13326_CLICK_LOCATION_ID_MAP)};
_.g.onTap=function(Y){var b,w=(b=this.data)==null?void 0:b.navigationCommand;w&&!_.Yh(_.JL(Y),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(w,Y,!1)};
_.g.onSitelinkTap=function(Y){var b,w,V=Y==null?void 0:(b=Y.model)==null?void 0:(w=b.item)==null?void 0:w.onTap;V&&this.ytSparklesClickLocationBehavior.handleClick(V,Y,!1)};
_.g.configureSitelinkClickTargets=function(){var Y=this,b,w,V=(b=this.data)==null?void 0:(w=b.clickLocationTargets)==null?void 0:w.find(function(H){return H.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
V&&_.E6(this.hostElement).querySelectorAll(".sitelink").forEach(function(H){_.U6(H,"yt-simple-endpoint",!0);Y.sitelinkIds.push(H.id);var f,E;(f=Y.ytSparklesClickLocationBehavior)==null||(E=f.clickTargetMap)==null||E.set(H.id,V)})};
_.g.sendImpression=function(){var Y,b,w=((Y=this.data)==null?void 0:(b=Y.impressionCommand)==null?void 0:b.loggingUrls)||[];Y=_.N(w);for(b=Y.next();!b.done;b=Y.next())b=b.value,b.baseUrl&&$r(b.baseUrl,b.attributionSrcMode)};
_.g.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.up.Object.defineProperties(YJ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
YJ.prototype.onTap=YJ.prototype.onTap;YJ.prototype.dataChanged=YJ.prototype.dataChanged;YJ.JSC$13326_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"]]);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],YJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],YJ.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],YJ.prototype,"showFavicon",null);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],YJ.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],YJ.prototype,"biggerThumbsStyle",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.K("design:type",Boolean)],YJ.prototype,"enableThumbnailScalingFix",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YJ.prototype,"dataChanged",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],YJ.prototype,"onTap",null);_.z([_.S({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],YJ);
_.a(YJ,"ytd-text-image-no-button-layout-renderer",function(){if(k7U!==void 0)return k7U;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-image-no-button-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n  <div id="text-image-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="media-hover-overlay" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n    <div id="text-image" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-img-shadow id="text-image-favicon" hidden="[[!showFavicon]]" thumbnail="[[data.favicon]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-img-shadow>\n      <h3 id="text-image-title" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.title)]]</h3>\n    </div>\n    <div id="media-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="metadata-container" class="style-scope ytd-text-image-no-button-layout-renderer">\n    <div id="metadata-body" class="style-scope ytd-text-image-no-button-layout-renderer">\n      <yt-formatted-string id="headline" ellipsis-truncate="" no-endpoints="" text="[[data.headline]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <yt-formatted-string id="description" ellipsis-truncate="" no-endpoints="" text="[[data.description]]" class="style-scope ytd-text-image-no-button-layout-renderer"></yt-formatted-string>\n      <div id="details-line" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <div id="ad-badge" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n        <div id="website-text" class="style-scope ytd-text-image-no-button-layout-renderer">[[getSimpleString(data.websiteText)]]</div>\n      </div>\n      <div id="sitelinks-carousel" class="style-scope ytd-text-image-no-button-layout-renderer">\n        <template is="dom-repeat" items="[[data.sitelinks]]" as="item" on-dom-change="configureSitelinkClickTargets" class="style-scope ytd-text-image-no-button-layout-renderer">\n          <div class="sitelink-container style-scope ytd-text-image-no-button-layout-renderer">\n            <yt-formatted-string id="sitelink-[[index]]" class="sitelink style-scope ytd-text-image-no-button-layout-renderer" ellipsis-truncate="" no-endpoints="" role="link" text="[[item.title]]" on-click="onSitelinkTap"></yt-formatted-string>\n          </div>\n        </template>\n      </div>\n    </div>\n    <div id="new-menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n  </div>\n  <div id="menu" class="style-scope ytd-text-image-no-button-layout-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return k7U=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var lNC;var bg=function(){var Y=_.F.apply(this,arguments)||this;Y.isInlinePlaybackState=!1;Y.uiUpdate=_.q("web_modern_buttons");Y.hideCta=_.q("hide_cta_for_home_web_video_ads");Y.noBottomMargin=!1;Y.animateInTimeStamp=_.cQ("hide_cta_for_home_web_video_ads_animate_in_time");Y.animateInCta=!1;Y.isHovered=!1;Y.player=null;Y.JSC$13333_playerEvents=new Map;Y.JSC$13333_preventProgressSaveTimer=null;Y.delayedCtaJobId=null;return Y};
_.P(bg,_.F);_.g=bg.prototype;_.g.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]]"}}}}}};
_.g.attached=function(){this.JSC$13333_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13333_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.q("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.g.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13333_playerEvents)};
_.g.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",bg.JSC$13332_DEFAULT_CLICK_LOCATION_BEHAVIOR,bg.JSC$13332_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.g.hoverChanged=function(){var Y=this;this.delayedCtaJobId&&(_.Lb.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.q("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.vv(_.Lb,function(){Y.buttonContainer.classList.add("show-delayed-buttons")},_.cQ("delayed_cta_on_web_delay_milliseconds")))};
_.g.setPlayer=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return(b=_.De(Y.hostElement,"yt-get-inline-preview-player-action"))&&b[0]?_.D(w,b[0].getPlayerPromise(),3):w.jumpTo(0);Y.player=w.yieldResult;Y.ytPlayerListenerBehavior.listenToPlayerEvents(Y.player,Y.JSC$13333_playerEvents);_.om(w)})};
_.g.onPlaybackStart=function(){var Y=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13333_preventProgressSaveTimer=_.Xl(_.Lb,function(){Y.JSC$13333_preventProgressSaveTimer=null},1E4))};
_.g.onVideoProgress=function(Y){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&Y>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.g.resetPreventProgressSaveTimer=function(){_.Lb.cancelJob(this.JSC$13333_preventProgressSaveTimer);this.JSC$13333_preventProgressSaveTimer=null};
_.g.getSimpleString=function(Y){return _.Tx(Y)};
_.g.onClick=function(Y){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint,V;b=(V=this.data)==null?void 0:V.channelEndpoint;var H,f;(V=(f=_.v((H=this.data)==null?void 0:H.adCtaButton,_.Wa))==null?void 0:f.command)&&_.Yh(_.JL(Y),this.hostElement,["call-to-action"])?_.q("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(V,Y,!1):b&&_.Yh(_.JL(Y),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(b,Y,!1):!_.Yh(_.JL(Y),this.hostElement,["secondary-button"])&&w&&(_.q("enable_short_dr_for_desktop_launchable")?(H=!!_.v(w,_.TG),this.isInlinePlaybackState&&H&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(w,Y,H)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(w,Y,!0)))}};
_.g.updateWatchEndpointStartTime=function(){var Y,b;this.player&&((Y=this.data)==null?0:Y.inlinePlaybackEndpoint)&&((b=this.data)==null?0:b.navigationEndpoint)&&!this.JSC$13333_preventProgressSaveTimer&&(Y=Math.floor(this.player.getCurrentTime()),_.v(this.data.navigationEndpoint,_.TG).startTimeSeconds=Y,_.v(this.data.inlinePlaybackEndpoint,_.TG).startTimeSeconds=Y)};
_.g.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.g.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.up.Object.defineProperties(bg.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.q("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.watchButton)&&!((b=this.data)==null||!b.adCtaButton)}}});
bg.prototype.hoverChanged=bg.prototype.hoverChanged;bg.prototype.dataChanged=bg.prototype.dataChanged;
bg.JSC$13332_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"]]);
bg.JSC$13332_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"}];
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],bg.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],bg.prototype,"ytSparklesClickLocationBehavior",void 0);
_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],bg.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],bg.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bg.prototype,"isInlinePlaybackState",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],bg.prototype,"miniMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bg.prototype,"uiUpdate",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bg.prototype,"hideCta",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bg.prototype,"noBottomMargin",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bg.prototype,"animateInCta",void 0);_.z([_.R({computed:"computeButtonOverride(uiUpdate)"}),_.K("design:type",Object)],bg.prototype,"buttonOverride",void 0);
_.z([_.R({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.K("design:type",Object)],bg.prototype,"secondaryButtonOverride",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bg.prototype,"isHovered",void 0);_.z([_.xZ("#button-container"),_.K("design:type",HTMLElement)],bg.prototype,"buttonContainer",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],bg.prototype,"typographyBump",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("typographyBump"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],bg.prototype,"typographyBumpV2",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bg.prototype,"dataChanged",null);_.z([_.lr("isHovered"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bg.prototype,"hoverChanged",null);
_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],bg.prototype,"isButtonGroup",null);_.z([_.S({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],bg);
_.a(bg,"ytd-ad-inline-playback-meta-block",function(){if(lNC!==void 0)return lNC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-inline-playback-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="ad-inline-playback-metadata" on-click="onClick" class="style-scope ytd-ad-inline-playback-meta-block">\n  <div id="meta-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <div id="channel-thumbnail-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <a id="avatar-link" class="yt-simple-endpoint style-scope ytd-ad-inline-playback-meta-block" hidden="[[!data.channelThumbnail]]" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" title="[[getSimpleString(data.shortBylineText)]]" aria-label$="[[data.shortBylineText.accessibility.accessibilityData.label]]" tabindex="-1">\n        <yt-img-shadow id="avatar" disable-upgrade$="[[!data.channelThumbnail]]" thumbnail="[[data.channelThumbnail]]" width="48" class="style-scope ytd-ad-inline-playback-meta-block">\n        </yt-img-shadow>\n      </a>\n    </div>\n    <div id="info-container" class="style-scope ytd-ad-inline-playback-meta-block">\n      <div id="title-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="video-title" text="[[data.title]]" title="[[getSimpleString(data.title)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="menu" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n      <div id="description-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="description" text="[[data.description]]" title="[[getSimpleString(data.description)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n      <div id="byline-container" aria-hidden="true" class="style-scope ytd-ad-inline-playback-meta-block">\n        <div id="badge" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n        <ytd-channel-name id="short-byline-text" channel-name="[[data.shortBylineText]]" no-endpoints="true" wrap-text="true" class="style-scope ytd-ad-inline-playback-meta-block"></ytd-channel-name>\n      </div>\n      <div id="secondary-description-container" aria-hidden="true" hidden="[[!data.secondaryDescription]]" "="" class="style-scope ytd-ad-inline-playback-meta-block">\n        <yt-formatted-string id="secondary-description" text="[[data.secondaryDescription]]" title="[[getSimpleString(data.secondaryDescription)]]" class="style-scope ytd-ad-inline-playback-meta-block"></yt-formatted-string>\n      </div>\n    </div>\n  </div>\n  <div id="button-container" class="style-scope ytd-ad-inline-playback-meta-block">\n    <template is="dom-if" if="[[data.watchButton.buttonRenderer]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      <ytd-button-renderer id="secondary-button" data="[[data.watchButton.buttonRenderer]]" overrides="[[computeSecondaryButtonOverride(data.watchButton.buttonRenderer)]]" class="style-scope ytd-ad-inline-playback-meta-block">\n      </ytd-button-renderer>\n    </template>\n    <div id="call-to-action" class="style-scope ytd-ad-inline-playback-meta-block"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lNC=Y},{mode:_.Xd("kevlar_poly_si_batch_j065")?1:2});var h_C;var wT=function(){var Y=_.F.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.isInlinePreviewTriggered=!1;Y.JSC$13338_activeViewMeasurementDataResolver=_.j9();return Y};
_.P(wT,_.F);_.g=wT.prototype;_.g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.attached=function(){var Y=this;this.updateInlinePreviewHoverListeners();this.JSC$13338_activeViewMeasurementDataResolver.promise.then(function(b){Y.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)});
_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.g.detached=function(){this.clearInlinePreviewHoverListeners();_.q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13338_inlinePreviewHoverListener=TI({mediaRenderer:this,lockupElement:this.JSC$13338_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ebU})};
_.g.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13338_inlinePreviewHoverListener)==null||Ed(Y)};
_.g.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.activeView)&&this.JSC$13338_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",wT.JSC$13337_DEFAULT_CLICK_LOCATION_BEHAVIOR,wT.JSC$13337_CLICK_LOCATION_ID_MAP);this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"));var b,w;if(((b=this.data)==
null?0:b.hasAutoplay)||((w=this.data)==null?0:w.forceImpAutoplay)){var V;(V=this.JSC$13338_inlinePreviewHoverListener)==null||S$u(V)}};
_.g.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.g.onThumbnailContainerClick=function(Y){if(this.data&&this.data.navigationEndpoint){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(w,Y,!!_.v(w,_.TG));Y.stopPropagation()}};
_.g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.g.impressionLog=function(){var Y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,w,V=(w=_.v((b=this.data)==null?void 0:b.onImpression,_.ln))==null?void 0:w.commands;V&&(V.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;Y.ytComponentBehavior.resolveCommand(H)}),this.data.impressionsFired=!0)}};
_.up.Object.defineProperties(wT.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13338_inlinePreviewHoverListener)==null?0:di(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wT.prototype.onTypographyBumpChanged=wT.prototype.onTypographyBumpChanged;wT.prototype.onDataChanged=wT.prototype.onDataChanged;wT.JSC$13337_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);wT.JSC$13337_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"}];
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],wT.prototype,"ytComponentBehavior",void 0);_.z([_.n(d0),_.K("design:type",Object)],wT.prototype,"ytdActiveViewBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],wT.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.AB),_.K("design:type",Object)],wT.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],wT.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],wT.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],wT.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],wT.prototype,"noBottomMargin",void 0);
_.z([_.R(),_.K("design:type",Object)],wT.prototype,"isInlinePreviewTriggered",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],wT.prototype,"miniMode",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],wT.prototype,"typographyBump",void 0);_.z([_.xZ("ytd-thumbnail"),_.K("design:type",HTMLElement)],wT.prototype,"thumbnail",void 0);_.z([_.xZ("#dismissible"),_.K("design:type",HTMLElement)],wT.prototype,"JSC$13338_dismissibleMedia",void 0);
_.z([_.xZ("ytd-ad-inline-playback-meta-block"),_.K("design:type",HTMLElement)],wT.prototype,"adInlinePlaybackMetaBlock",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wT.prototype,"onDataChanged",null);_.z([_.vX("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wT.prototype,"onTypographyBumpChanged",null);
_.z([_.t("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wT.prototype,"isHovered",null);_.z([_.S({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],wT);
_.a(wT,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(h_C!==void 0)return h_C;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return h_C=Y},{mode:1});var xjr;var Vg=function(){var Y=_.F.apply(this,arguments)||this;Y.isInlinePreviewTriggered=!1;Y.JSC$13341_activeViewMeasurementDataResolver=_.j9();return Y};
_.P(Vg,_.F);_.g=Vg.prototype;_.g.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.attached=function(){var Y=this;this.updateInlinePreviewHoverListeners();this.JSC$13341_activeViewMeasurementDataResolver.promise.then(function(b){Y.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)})};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13341_inlinePreviewHoverListener=TI({mediaRenderer:this,lockupElement:this.JSC$13341_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:ebU})};
_.g.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$13341_inlinePreviewHoverListener)==null||Ed(Y)};
_.g.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.activeView)&&this.JSC$13341_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Vg.JSC$13340_DEFAULT_CLICK_LOCATION_BEHAVIOR,Vg.JSC$13340_CLICK_LOCATION_ID_MAP);this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href"))};
_.g.onThumbnailContainerClick=function(Y){if(this.data&&this.data.navigationEndpoint){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(w,Y,!0);Y.stopPropagation()}};
_.g.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.g.impressionLog=function(){var Y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,w,V=(w=_.v((b=this.data)==null?void 0:b.onImpression,_.ln))==null?void 0:w.commands;V&&(V.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.fH().resolve(_.Nn).resolveCommand(H,{form:{element:Y.hostElement}})}),this.data.impressionsFired=!0)}};
_.up.Object.defineProperties(Vg.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$13341_inlinePreviewHoverListener)==null?0:di(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Vg.prototype.onDataChanged=Vg.prototype.onDataChanged;Vg.JSC$13340_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Vg.JSC$13340_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"}];_.z([_.n(d0),_.K("design:type",Object)],Vg.prototype,"ytdActiveViewBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],Vg.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],Vg.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Vg.prototype,"ytdReduxBehavior",void 0);
_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Vg.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Vg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Vg.prototype,"isInlinePreviewTriggered",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],Vg.prototype,"miniMode",void 0);_.z([_.xZ("ytd-thumbnail"),_.K("design:type",HTMLElement)],Vg.prototype,"thumbnail",void 0);
_.z([_.xZ("#dismissible"),_.K("design:type",HTMLElement)],Vg.prototype,"JSC$13341_dismissibleMedia",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vg.prototype,"onDataChanged",null);_.z([_.t("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Vg.prototype,"isHovered",null);_.z([_.S({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Vg);
_.a(Vg,"ytd-video-display-full-buttoned-renderer",function(){if(xjr!==void 0)return xjr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" class="style-scope ytd-video-display-full-buttoned-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return xjr=Y},{mode:1});var lJ=function(Y,b,w,V){V=V===void 0?!1:V;_.Yb.call(this,Y);this.adsClientErrorMessage=w;this.aggressivelySample=V;this.args=[];b&&this.args.push(b)};
_.P(lJ,_.Yb);var In=function(Y,b,w,V){V=V===void 0?!1:V;_.Yb.call(this,Y);this.adsClientErrorMessage=w;this.aggressivelySample=V;this.args=[];b&&this.args.push(b)};
_.P(In,_.Yb);var qod=function(Y){_.BE.call(this);var b=this;this.initializationFunction=Y;this.instance=null;this.addOnDisposeCallback(function(){_.ua(b.instance);b.instance=null})};
_.P(qod,_.BE);qod.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.gv("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var BHu=function(){var Y=new Map;[].forEach(function(b){Y.set(b.JSC$26970_getType(),b)})};new Promise(function(){});var sFq=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"]]),xjv=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"}]]),sF8=function(Y){this.experimentApiProvider=Y;Y=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=Y<.1};var Hd=function(Y,b,w,V){_.BE.call(this);this.adsControlFlowEventListeners=b;this.adEventLogger=w;this.experimentApiProvider=V;this.adsControlFlowManagerHelper=Y(this,this,this,this,this);_.os(this,this.adsControlFlowManagerHelper);Y=_.N(b);for(b=Y.next();!b.done;b=Y.next())_.os(this,b.value)};
_.P(Hd,_.BE);var QFt=function(Y,b,w,V){gT(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",b,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,V);Y=_.N(Y.adsControlFlowEventListeners);for(V=Y.next();!V.done;V=Y.next())QFt(V.value,b,w)};
_.g=Hd.prototype;_.g.onOpportunityProcessedExternallyManaged=function(Y,b,w,V){gT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",Y,w,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,V)};
_.g.onSlotReceivedExternallyManaged=function(Y,b){f4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Y,b)};
_.g.onSlotEntered=function(Y){if(NE(this.adsControlFlowManagerHelper,Y)!=null){f4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",Y);this.adsControlFlowManagerHelper.onSlotEntered(Y);for(var b=_.N(this.adsControlFlowEventListeners),w=b.next();!w.done;w=b.next())w.value.onSlotEntered(Y);if(NE(this.adsControlFlowManagerHelper,Y)!=null&&NE(this.adsControlFlowManagerHelper,Y).isOccupyingSlotType()&&Eb(this.adsControlFlowManagerHelper,Y)&&!vm_(this.adsControlFlowManagerHelper,Y)){var V;cd(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",Y,(V=Eb(this.adsControlFlowManagerHelper,Y))!=null?V:void 0);Y=NE(this.adsControlFlowManagerHelper,Y);Y.slotLifecycleStage!=="entered"&&Ub(Y.slot,Y.slotLifecycleStage,"enterLayoutForSlot");Y.slotLifecycleStage="rendering";Y.registeredLayoutRenderingAdapter.startRendering(Y.layout)}}};
_.g.onSlotExited=function(Y){if(NE(this.adsControlFlowManagerHelper,Y)!=null){f4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",Y);this.adsControlFlowManagerHelper.onSlotExited(Y);for(var b=_.N(this.adsControlFlowEventListeners),w=b.next();!w.done;w=b.next())w.value.onSlotExited(Y);NE(this.adsControlFlowManagerHelper,Y)!=null&&NE(this.adsControlFlowManagerHelper,Y).markedForUnscheduleAfterOutboundAdapterRequests&&PTC(this,Y)}};
_.g.onLayoutReceivedExternallyManaged=function(Y,b,w){Y.managerLayer!=="core"&&cd(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",Y,b,w)};
var Z5k=function(Y,b,w){if(NE(Y.adsControlFlowManagerHelper,b)!=null){cd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,w);Y=_.N(Y.adsControlFlowEventListeners);for(var V=Y.next();!V.done;V=Y.next())Z5k(V.value,b,w)}};
Hd.prototype.onLayoutExited=function(Y,b,w){if(NE(this.adsControlFlowManagerHelper,Y)!=null){cd(this.adEventLogger,qob(w),Y,b);this.adsControlFlowManagerHelper.onLayoutExited(Y,b);for(var V=_.N(this.adsControlFlowEventListeners),H=V.next();!H.done;H=V.next())H.value.onLayoutExited(Y,b,w);(w=Eb(this.adsControlFlowManagerHelper,Y))&&b.layoutId===w.layoutId&&BH$(this,Y)}};
Hd.prototype.disposeInternal=function(){var Y=nm$(this.adsControlFlowManagerHelper);Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())PTC(this,b.value);_.BE.prototype.disposeInternal.call(this)};
var PTC=function(Y,b){if(NE(Y.adsControlFlowManagerHelper,b)!=null)if(NE(Y.adsControlFlowManagerHelper,b).JSC$27001_isSlotExitRequested()||NE(Y.adsControlFlowManagerHelper,b).JSC$27001_isLayoutExitRequested())NE(Y.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(NE(Y.adsControlFlowManagerHelper,b).isOccupyingSlotType())NE(Y.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0,BH$(Y,b);else if(NE(Y.adsControlFlowManagerHelper,b).JSC$27001_isSlotFillRequested())NE(Y.adsControlFlowManagerHelper,
b).markedForUnscheduleAfterOutboundAdapterRequests=!0,NE(Y.adsControlFlowManagerHelper,b)!=null&&(f4(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=NE(Y.adsControlFlowManagerHelper,b),b.fulfillmentLifecycleStage="fill_cancel_requested",b.registeredFulfillmentAdapter.cancelSlotFilling());else{var w=Eb(Y.adsControlFlowManagerHelper,b),V;Y.experimentApiProvider.get();(V=_.q("h5_enable_layout_unscheduling_events"))&&(w?M6K(Y,b,w):_.gv(Error("Jh"),b,w,void 0,!1));f4(Y.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var H=NE(Y.adsControlFlowManagerHelper,b),f=b.slotEntryTrigger,E=H.registeredSlotEntryTriggerAdapters.get(f.triggerId);E&&(E.unregisterTrigger(f),H.registeredSlotEntryTriggerAdapters.delete(f.triggerId));f=_.N(b.slotFulfillmentTriggers);for(E=f.next();!E.done;E=f.next()){E=E.value;var U=H.registeredFulfillmentTriggerAdapters.get(E.triggerId);U&&(U.unregisterTrigger(E),H.registeredFulfillmentTriggerAdapters.delete(E.triggerId))}f=_.N(b.slotExpirationTriggers);
for(E=f.next();!E.done;E=f.next())if(E=E.value,U=H.registeredExpirationTriggerAdapters.get(E.triggerId))U.unregisterTrigger(E),H.registeredExpirationTriggerAdapters.delete(E.triggerId);H.hasLayout()&&(f=H.layout,XJ(H,f.layoutExitNormalTriggers),XJ(H,f.layoutExitSkipTriggers),XJ(H,f.layoutExitMuteTriggers),XJ(H,f.layoutExitUserInputSubmittedTriggers),XJ(H,f.layoutExitUserCancelledTriggers));H.registeredFulfillmentAdapter=void 0;H.registeredSlotAdapter!=null&&(H.registeredSlotAdapter.release(),H.registeredSlotAdapter=
void 0);H.registeredLayoutRenderingAdapter!=null&&(H.registeredLayoutRenderingAdapter.release(),H.registeredLayoutRenderingAdapter=void 0);H=Y.adsControlFlowManagerHelper;NE(H,b)&&(H=e_t(H,b.slotType+"_"+b.slotPhysicalPosition))&&H.delete(b.slotId);f4(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);Y=_.N(Y.adsControlFlowEventListeners);for(H=Y.next();!H.done;H=Y.next())H=H.value,H.onSlotUnscheduled(b),w&&!V&&M6K(H,b,w)}},M6K=function(Y,b,w){cd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
b,w);
cd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",b,w);Y=_.N(Y.adsControlFlowEventListeners);for(var V=Y.next();!V.done;V=Y.next())V=V.value,w&&M6K(V,b,w)},BH$=function(Y,b){if(NE(Y.adsControlFlowManagerHelper,b)!=null&&NE(Y.adsControlFlowManagerHelper,b).isOccupyingSlotType()){var w=Eb(Y.adsControlFlowManagerHelper,b);
if(w&&vm_(Y.adsControlFlowManagerHelper,b)){if(NE(Y.adsControlFlowManagerHelper,b)!=null){var V=Y.adEventLogger,H;var f=((H=xjv.get("abandoned"))==null?void 0:H.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";cd(V,f,b,w);Y=NE(Y.adsControlFlowManagerHelper,b);Y.slotLifecycleStage!=="rendering"&&Ub(Y.slot,Y.slotLifecycleStage,"exitLayout");Y.slotLifecycleStage="rendering_stop_requested";Y.registeredLayoutRenderingAdapter.stopRendering(w,"abandoned")}}else{f4(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
b);try{V=NE(Y.adsControlFlowManagerHelper,b);if(!V)throw new In("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");V.slotLifecycleStage!=="enter_requested"&&V.slotLifecycleStage!=="entered"&&V.slotLifecycleStage!=="rendering"&&Ub(V.slot,V.slotLifecycleStage,"exitSlot");V.slotLifecycleStage="exit_requested";if(V.registeredSlotAdapter===void 0)throw V.slotLifecycleStage="scheduled",new In("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
V.registeredSlotAdapter.exit()}catch(E){E instanceof In&&E.adsClientErrorMessage?(prK(Y.adEventLogger,E.adsClientErrorMessage,b),_.gv(E,b,void 0,void 0,E.aggressivelySample)):(prK(Y.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),_.gv(E,b))}}}};var D2=function(Y,b,w,V,H,f){_.BE.call(this);this.registry=Y;this.experimentApiProvider=f;this.slotMap=new Map};
_.P(D2,_.BE);var e_t=function(Y,b){return(Y=Y.slotMap.get(b))?Y:new Map},NE=function(Y,b){return e_t(Y,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)},nm$=function(Y){var b=[];
Y.slotMap.forEach(function(w){w=_.N(w.values());for(var V=w.next();!V.done;V=w.next())b.push(V.value.slot)});
return b};
D2.prototype.onSlotEntered=function(Y){Y=NE(this,Y);Y.slotLifecycleStage!=="enter_requested"&&Ub(Y.slot,Y.slotLifecycleStage,"onSlotEntered");Y.slotLifecycleStage="entered"};
var vm_=function(Y,b){Y=NE(Y,b);return Y.hasLayout()&&Y.isRendering()},Eb=function(Y,b){(Y=NE(Y,b))?Y.hasLayout()&&!Y.layout&&_.gv("Unexpected empty layout",b):_.gv("Unexpected undefined slotState",b);
return(Y==null?void 0:Y.layout)||null};
D2.prototype.onSlotExited=function(Y){Y=NE(this,Y);Y.slotLifecycleStage!=="exit_requested"&&Ub(Y.slot,Y.slotLifecycleStage,"onSlotExited");Y.slotLifecycleStage="scheduled"};
D2.prototype.onLayoutExited=function(Y,b){Y=NE(this,Y);Y.isPrimaryLayout(b)&&(Y.slotLifecycleStage!=="rendering_stop_requested"&&Ub(Y.slot,Y.slotLifecycleStage,"onLayoutExited"),Y.slotLifecycleStage="entered")};
var XJ=function(Y,b){b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=Y.registeredLayoutExitTriggerAdapters.get(w.triggerId);V&&(V.unregisterTrigger(w),Y.registeredLayoutExitTriggerAdapters.delete(w.triggerId))}},Ub=function(Y,b,w){_.gv("Slot stage was "+b+" when calling method "+w,Y)};var t6k=function(Y){_.BE.call(this);this.deps=Y;this.JSC$13390_adsControlFlowManager=O5o(this)};
_.P(t6k,_.BE);var O5o=function(Y){var b=new Hd(function(w,V,H,f){return new D2(Y.deps.registry,w,V,H,f,Y.deps.experimentApiProvider)},new Set(Z56(Y.deps.registry).concat(Y.deps.listeners)),Y.deps.adEventLogger,Y.deps.experimentApiProvider);
_.os(Y,b);return b};var R_8=function(Y,b){_.BE.call(this);this.experimentApiProvider=Y;this.eventLoggingSettingsProvider=b;this.eventCount=0};
_.P(R_8,_.BE);R_8.prototype.logEvent=function(Y){gT(this,Y)};
var f4=function(Y,b,w,V){gT(Y,b,void 0,void 0,void 0,w,void 0,void 0,void 0,w.adSlotLoggingData,void 0,void 0,V)},cd=function(Y,b,w,V,H){gT(Y,b,void 0,void 0,void 0,w,V?V:void 0,void 0,void 0,w.adSlotLoggingData,V?V.adLayoutLoggingData:void 0,void 0,H)},prK=function(Y,b,w){gT(Y,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,w,void 0,void 0,void 0,w.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:b})},gT=function(Y,b,w,V,H,f,E,U,X,I,k,l,x){x=x===void 0?0:x;
djU(Y.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+b,"slot:",f,"layout:",E,"ping:",U,"Opportunity:",{opportunityType:w,associatedSlotId:V,slotsFromOpportunity:H,triggerBundle:X,adSlotLoggingData:I,adLayoutLoggingData:k});try{var Q=function(){Y.experimentApiProvider.get();if(b!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){b||_.gv("Empty PACF event type",f,E);var Z=Y.eventLoggingSettingsProvider.get();var e;(e=Z.alwaysIncludeDebugData)||(Z.experimentApiProvider.get(),e=
!1);Z=e;e={eventType:b,eventOrder:++Y.eventCount};var O={};f&&(O.slotData=vme(Z,f));if(E){var L={type:E.layoutType,controlFlowManagerLayer:sFq.get(E.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Z&&(L.debugData={layoutId:E.layoutId});O.layoutData=L}U&&(O.pingData={pingDispatchStatus:U.dispatchStatus,serializedAdPingMetadata:U.ping.serializedAdPingMetadata,pingIndex:U.index});X&&(O.triggerData=QFM(X.trigger,X.category));w&&(O.opportunityData=PTI(Z,w,V,H));e.adClientData=O;I&&(e.serializedSlotAdServingData=
I.serializedSlotAdServingDataEntry);k&&(e.serializedAdServingData=k.serializedAdServingDataEntry);l&&(e.errorInfo=l);_.RY("adsClientStateChange",{adsClientEvent:e})}};
x&&x>0?_.MY(_.dp(),function(){return Q()},x):Q()}catch(Z){djU(Y.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.MY(_.dp(),function(){_.gv(Z instanceof Error?Z:String(Z),f,E,{pacf_message:"exception during pacf logging"})})}};var FMt=function(Y,b){R_8.call(this,Y,b)};
_.P(FMt,R_8);var LMt=function(){},djU=function(Y,b){return _.q(b)};var aN9=function(){var Y=new SoI;this.JSC$13409_adsControlFlowManager=(new t6k(Y)).JSC$13390_adsControlFlowManager},SoI=function(){_.BE.call(this);
var Y=this;this.experimentApiProvider=new qod(function(){return new LMt});
var b=new qod(function(){return new sF8(Y.experimentApiProvider)});
this.adEventLogger=new FMt(this.experimentApiProvider,b);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.P(SoI,_.BE);var rKU=function(){},z_o,mJ=function(){z_o||(z_o=new rKU);
return z_o},oi=function(Y){if(!Y.JSC$13420_externallyManagedSlotAdapterCallback){var b=(new aN9).JSC$13409_adsControlFlowManager;
Y.JSC$13420_externallyManagedSlotAdapterCallback=b}return Y.JSC$13420_externallyManagedSlotAdapterCallback},WM9=function(Y,b,w){var V=b.opportunityType,H=Error("Kh");
if(V!==void 0){var f=oi(Y);QFt(f,V,void 0,w)}else _.gv(H,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});f=[];if(b.adSlotAndLayoutMetadata!==void 0){b=_.N(b.adSlotAndLayoutMetadata);for(var E=b.next();!E.done;E=b.next()){var U=E.value;if(E=U.adSlotMetadata)if(f.push(E),Y.onSlotReceivedExternallyManaged(E,w),U.adLayoutMetadata){U=_.N(U.adLayoutMetadata);for(var X=U.next();!X.done;X=U.next())Y.onLayoutReceivedExternallyManaged(E,X.value,w)}else w>0&&_.gv("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else w>0&&_.gv("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else w>0&&_.gv("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(V!==void 0)Y.onOpportunityProcessedExternallyManaged(V,f,void 0,w);else _.gv(H,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
rKU.prototype.onSlotReceivedExternallyManaged=function(Y,b){Y=kE(Y);if(Y instanceof In)_.gv(Y,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else oi(this).onSlotReceivedExternallyManaged(Y,b)};
rKU.prototype.onLayoutReceivedExternallyManaged=function(Y,b,w){Y=kE(Y);b=nmu(b);if(Y instanceof In)_.gv(Y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(b instanceof lJ)_.gv(b,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else oi(this).onLayoutReceivedExternallyManaged(Y,b,w)};
rKU.prototype.onOpportunityProcessedExternallyManaged=function(Y,b,w,V){var H=[];b=_.N(b);for(var f=b.next();!f.done;f=b.next())f=kE(f.value),f instanceof In?_.gv(f,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):H.push(f);oi(this).onOpportunityProcessedExternallyManaged(Y,H,w,V)};
var KMt=function(Y,b){b=kE(b);if(b instanceof In)_.gv(b,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var w=oi(Y);f4(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);w=_.N(w.adsControlFlowEventListeners);for(var V=w.next();!V.done;V=w.next())V=NE(V.value,b),V.slotLifecycleStage!=="not_scheduled"&&Ub(V.slot,V.slotLifecycleStage,"onSlotScheduled"),V.slotLifecycleStage="scheduled";Y=oi(Y);f4(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);Y=_.N(Y.adsControlFlowEventListeners);
for(w=Y.next();!w.done;w=Y.next())w.value.onSlotEntered(b)}},i5$=function(Y,b){b=kE(b);
if(b instanceof In)_.gv(b,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var w=oi(Y);f4(w.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);w=_.N(w.adsControlFlowEventListeners);for(var V=w.next();!V.done;V=w.next())V.value.onSlotExited(b);Y=oi(Y);f4(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);Y=_.N(Y.adsControlFlowEventListeners);for(w=Y.next();!w.done;w=Y.next())w.value.onSlotUnscheduled(b)}},AKU=function(Y,b,w){b=kE(b);
w=nmu(w);if(b instanceof In)_.gv(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(w instanceof lJ)_.gv(w,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var V=oi(Y);cd(V.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,w);V=_.N(V.adsControlFlowEventListeners);for(var H=V.next();!H.done;H=V.next())H.value.onLayoutScheduled(b,w);Y=oi(Y);cd(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,w);Y=_.N(Y.adsControlFlowEventListeners);
for(V=Y.next();!V.done;V=Y.next())Z5k(V.value,b,w)}},Ii=function(Y,b,w){b=kE(b);
w=nmu(w);if(b instanceof In)_.gv(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(w instanceof lJ)_.gv(w,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var V=oi(Y);cd(V.adEventLogger,qob("normal"),b,w);V=_.N(V.adsControlFlowEventListeners);for(var H=V.next();!H.done;H=V.next())H.value.onLayoutExited(b,w,"normal");Y=oi(Y);Y=_.N(Y.adsControlFlowEventListeners);for(V=Y.next();!V.done;V=Y.next())M6K(V.value,b,w)}};_.kJ=_.b8(function(Y){var b=_.ur(Y,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});Y=Object.assign({},b);var w=b.data;b=b.customCommandResolver;var V=(delete Y.data,delete Y.customCommandResolver,Y),H=_.GM("ad-image-view-model");_.Jd(H,function(){return w().interaction},b,function(){var U;
return(U=V.listenToTapEvent)==null?void 0:U.call(V)});
_.H6(H,{visibilityCallback:function(U){var X,I=(X=w().interaction)==null?void 0:X.onFirstVisible;U&&(I&&_.AA(I),V.setOnErrorHandler()&&M6L(H))},
showOption:_.uZ});Y=_.N(_.kw(!1,void 0,"eiYvIe"));var f=Y.next().value,E=Y.next().value;return _.m("ad-image-view-model",{class:function(){var U,X=[((U=w().interaction)==null?0:U.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],I;((I=V.isGridViewEnabled)==null?0:I.call(V))&&X.push("ytwAdImageViewModelHostInGridView");return X.join(" ")},
el:H,"on:touchend":_.Q_(function(){var U;((U=V.setTouchEndHandler)==null?0:U.call(V))&&!f()&&(H.value.click(),E(!0),setTimeout(function(){E(!1)},100));
return!1})},_.m("div",{class:"ytwAdImageViewModelHostImageContainer"},_.m(_.Y_,{data:function(){var U;
return{sources:w().imageSources,contentMode:(U=w().imageProperties)==null?void 0:U.contentMode}},
alt:function(){var U,X;return((U=w().interaction)==null?void 0:(X=U.accessibility)==null?void 0:X.label)||""},
targetHeight:V.targetHeight,targetWidth:V.targetWidth,preserveHeight:V.preserveHeight,preserveWidth:V.preserveWidth,useWidth:V.useWidth,style:function(){var U,X;return"vertical-align: bottom;"+(((U=w().background)==null?0:U.color)?"background-color:"+_.WH((X=w().background)==null?void 0:X.color)+";":"")},
className:function(){return V.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var U,X;return(X=(U=V.setDraggable)==null?void 0:U.call(V))!=null?X:void 0}})))},"gb");var CTt=_.b8(function(Y){var b=Y.data,w=Y.listenToTapEvent,V=_.GM("ad-button-hover-overlay-view-model");_.q("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.Jd(V,function(){return b().interaction},void 0,function(){return w==null?void 0:w()});
_.H6(V,{visibilityCallback:function(f){var E,U=(E=b().interaction)==null?void 0:E.onFirstVisible;f&&U&&_.AA(U)},
showOption:_.uZ});var H=function(){};
return _.m("ad-button-hover-overlay-view-model",{"on:click":_.Q_(function(){if(_.q("enable_web_home_top_landscape_image_layout_legacy_click_command")){var f,E=(f=b().interaction)==null?void 0:f.onTap;E&&_.Ua(V.value,"yt-navigate",{endpoint:_.zT(E)})}}),
class:function(){var f;return((f=b().interaction)==null?0:f.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:V},function(){return _.q("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.m(_.OH,{data:function(){return b().button}},{adButtonViewModel:function(f){return _.m(_.bP,{data:f.data,
customCommandResolver:H})}}):_.m(_.OH,{data:function(){return b().button}},{adButtonViewModel:_.bP})}())},"hb");var h9;_.f_(_.b8(function(Y){var b=Y.data;var w=_.GM("compact-landscape-no-button-layout-view-model");_.q("stop_av_measurement_on_detach")&&_.R2(function(){qy(w)});
_.Jd(w,function(){return b().interaction},void 0,function(){return!0});
_.H6(w,{visibilityCallback:function(f){if(f){var E;(f=(E=b().interaction)==null?void 0:E.onFirstVisible)&&_.AA(f);var U;if(E=(U=b().adLayoutData)==null?void 0:U.activeViewData)xE(w,E),_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qy(w)})}else _.q("stop_av_measurement_on_detach")&&qy(w)},
showOption:_.uZ,hideOption:Yk});Y=_.N(_.kw(!1,void 0,"yzu6qe"));var V=Y.next().value,H=Y.next().value;return _.m("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:w,"on:mouseenter":_.Q_(function(){H(!0)}),
"on:mouseleave":_.Q_(function(){H(!1)})},_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Bb({"max-width":function(){return _.q("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.m("div",{class:function(){var f;
a:{var E;switch((f=_.v(b().thumbnailImage,FwK))==null?void 0:(E=f.imageProperties)==null?void 0:E.renderingAspect){case "RENDERING_ASPECT_SQUARE":f="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":f="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}f=void 0}return f}},_.m(_.OH,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(f){return _.m(_.kJ,
{data:f.data,
listenToTapEvent:!0,setTouchEndHandler:_.q("enable_top_landscape_image_experiment_dom_id_web")})}})),_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.m(_.h,{cond:function(){var f,E,U;
return(f=_.v(b().thumbnailImage,FwK))==null?void 0:(E=f.imageProperties)==null?void 0:(U=E.overlayIcon)==null?void 0:U.iconImage},
then:function(f){return _.m(_.Y_,{data:f,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.m("div",{class:function(){return V()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.m(_.OH,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(f){return _.m(CTt,
{data:f.data,
listenToTapEvent:!0})}}))),_.m("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.m(_.OH,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(f){return _.m(VD8,{data:f.data,
listenToTapEvent:!0,setTouchEndHandler:_.q("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=_.GM("square-image-layout-view-model");_.q("stop_av_measurement_on_detach")&&_.R2(function(){qy(w)});
var V=_.rn(_.Ks);_.Jd(w,function(){return b().interaction});
_.H6(w,{visibilityCallback:function(E){if(E){var U;(E=(U=b().interaction)==null?void 0:U.onFirstVisible)&&_.AA(E);var X;if(U=(X=b().adLayoutData)==null?void 0:X.activeViewData)xE(w,U),_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qy(w)})}else _.q("stop_av_measurement_on_detach")&&qy(w)},
showOption:_.uZ,hideOption:Yk});Y={};var H={},f={};return _.m("square-image-layout-view-model",{class:_.hj("ytwSquareImageLayoutViewModelHost",(Y.ytwSquareImageLayoutViewModelHostColumn=V,Y)),el:w},_.m("div",{class:_.hj("ytwSquareImageLayoutViewModelHostImage",(H.ytwSquareImageLayoutViewModelHostColumnImage=V,H))},function(){return _.m(_.OH,{data:function(){return b().adImage}},{adImageViewModel:function(E){return _.m(_.kJ,{data:E.data,
isGridViewEnabled:V,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.m("div",{class:_.hj("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(f.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=V,f))},_.m(_.OH,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:VD8}),function(){return _.m(_.OH,{data:function(){return b().adButton}},{adButtonViewModel:function(E){var U={};
return _.m(_.bP,{data:E.data,className:_.hj((U.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,U.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=V,U))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=Y.noBottomMargin;var V=Y.typographyBump;var H=_.GM("top-landscape-image-layout-view-model");_.q("stop_av_measurement_on_detach")&&_.R2(function(){qy(H)});
_.q("enable_web_home_top_landscape_image_layout_level_click")&&_.Jd(H,function(){return b().interaction},void 0,function(){return!0});
Y=function(){return b().interaction};
Y!==void 0&&Y!==null||_.C7(Error("Lh"));_.H6(H,{visibilityCallback:function(I){if(I){var k;(I=(k=b().interaction)==null?void 0:k.onFirstVisible)&&_.AA(I);var l;if(k=(l=b().adLayoutData)==null?void 0:l.activeViewData)xE(H,k),_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&qy(H)})}else _.q("stop_av_measurement_on_detach")&&qy(H)},
showOption:_.uZ,hideOption:Yk});var f=function(){var I,k,l;return(I=_.v(b().thumbnailImage,FwK))==null?void 0:(k=I.background)==null?void 0:(l=k.backgroundImageSource)==null?void 0:l.imageSources};
Y=_.N(_.kw(!1,void 0,"GIwTMc"));var E=Y.next().value,U=Y.next().value,X=function(){return E()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.m("top-landscape-image-layout-view-model",{class:function(){var I;return((I=b().interaction)==null?0:I.onTap)&&_.q("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:H,"on:mouseenter":_.Q_(function(){U(!0)}),
"on:mouseleave":_.Q_(function(){U(!1)})},_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.m(_.h,{cond:function(){return f()&&f().length>0},
then:function(){return _.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Bb({top:"0","background-image":function(){return"url("+String(f()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.m(_.h,{cond:function(){return!!b().adButtonHoverOverlay},
then:function(){return _.m("div",{class:X},_.m(_.OH,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:CTt}))}}),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.m(_.OH,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(I){return _.m(_.kJ,{data:I.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.q("enable_web_home_top_landscape_image_layout_level_click")})}})),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.m(_.Y_,{data:{sources:[{clientResource:{imageName:_.q("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.m("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.m(_.OH,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(I){return _.m(VD8,{data:I.data,
noBottomMargin:function(){return w==null?void 0:w()},
listenToTapEvent:function(){return _.q("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return V==null?void 0:V()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.YX,
noBottomMargin:_.YX,typographyBump:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=Y.typographyBump;var V=_.GM("video-display-button-group-layout-view-model");_.H6(V,{visibilityCallback:function(H){if(H){var f;(H=(f=b().interaction)==null?void 0:f.onFirstVisible)&&_.AA(H);var E;f=(E=b().adLayoutData)==null?void 0:E.activeViewData;!_.q("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&f&&xE(V,f)}},
showOption:_.uZ,hideOption:Yk});return _.m("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:V},_.m("div",null,_.m(_.OH,{data:function(){return b().videoLockup}},{lockupViewModel:function(H){return _.m(_.fc,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:w})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.YX,
noBottomMargin:_.YX,typographyBump:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=Y.className;var V=Y.typographyBump;var H=_.GM("video-display-compact-button-group-layout-view-model");_.H6(H,{visibilityCallback:function(f){if(f){var E;(f=(E=b().interaction)==null?void 0:E.onFirstVisible)&&_.AA(f);var U;(E=(U=b().adLayoutData)==null?void 0:U.activeViewData)&&xE(H,E)}},
showOption:_.uZ});return _.m("video-display-compact-button-group-layout-view-model",{el:H,class:_.hj("videoDisplayCompactButtonGroupLayoutViewModelHost",w)},_.m(_.OH,{data:function(){return b().videoLockup}},{lockupViewModel:function(f){return _.m(_.fc,{data:f.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:V})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.YX,
className:_.YX,typographyBump:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=Y.typographyBump;var V=_.GM("video-display-full-layout-view-model");_.H6(V,{visibilityCallback:function(H){if(H){var f;(H=(f=b().interaction)==null?void 0:f.onFirstVisible)&&_.AA(H);var E;f=(E=b().adLayoutData)==null?void 0:E.activeViewData;!_.q("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&f&&xE(V,f)}},
showOption:_.uZ,hideOption:Yk});return _.m("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:V},_.m("div",null,_.m(_.OH,{data:function(){return b().videoLockup}},{lockupViewModel:function(H){return _.m(_.fc,{data:H.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:w})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.YX,
noBottomMargin:_.YX,typographyBump:_.YX}});_.yKk=_.b8(function(Y){var b=Y.data;Y=_.GM("ad-card-badge-view-model");return _.m("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:Y},_.m(_.h,{cond:function(){return b().imageBadge},
then:function(w){return _.m(_.Y_,{data:w,alt:""})}}))},"ob");var $j9=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;Y=_.GM("carousel-ad-card-image-view-model");_.Jd(Y,function(){return b().interaction},w);
_.H6(Y,{visibilityCallback:function(V){var H,f=(H=b().interaction)==null?void 0:H.onFirstVisible;V&&f&&_.AA(f)},
showOption:_.uZ});return _.m("carousel-ad-card-image-view-model",{class:function(){var V;return((V=b().interaction)==null?0:V.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:Y,"aria-label":function(){var V,H;return(V=b().interaction)==null?void 0:(H=V.accessibility)==null?void 0:H.label}},_.m(_.OH,{data:function(){return b().adImage}},{adImageViewModel:function(V){return _.m(_.kJ,{data:V.data,
customCommandResolver:w})}}),_.m("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.m(_.OH,{data:function(){return b().badge}},{adCardBadgeViewModel:_.yKk})),_.m(_.p_,{model:{color:4}}))},"pb");var jF8=_.b8(function(Y){var b=_.N(_.kw(0,void 0,"o9Bzd")),w=b.next().value;b.next();var V=b.next().value,H=_.N(_.kw(!1,void 0,"KLdzYe"));b=H.next().value;var f=H.next().value,E;_.R2(function(){clearTimeout(E)});
H=_.Q_(function(){var I;((I=Y.animate)==null?0:I.call(Y))?(f(!0),E=setTimeout(function(){f(!1);U()},200)):U();
return!1});
var U=function(){V(function(I){return(I+Y.numShownItems())%Y.data().length})},X={};
return _.m("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.m("div",{class:_.hj("ytwHorizontalCarouselCarouselWrapper")},_.m("div",{class:_.hj("ytwHorizontalCarouselCarouselInnerWrapper",(X.ytwHorizontalCarouselAnimating=b,X))},_.m(_.Bf,{each:Y.data,keyBy:"INDEX"},function(I,k){return _.m("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Bb({"flex-basis":function(){return"calc((100% - (8px * "+(Y.numShownItems()-1)+")) / "+Y.numShownItems()+")"},
order:function(){var l=k-w();l<0&&(l+=Y.data().length);return l}})},Y.children(I,k))}))),_.m("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":H},Y.nextButton()))},"qb");var G7K=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;var V=Y.expansive;Y=_.GM("carousel-ad-card-collection-view-model");_.H6(Y,{visibilityCallback:function(H){var f,E=(f=b().interaction)==null?void 0:f.onFirstVisible;H&&E&&_.AA(E)},
showOption:_.uZ});return _.m("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:Y},_.m(jF8,{data:function(){var H;return((H=b())==null?void 0:H.carouselAdCards)||[]},
nextButton:function(){return _.m(_.OH,{data:function(){return b().nextButton}},{buttonViewModel:function(H){var f=H.data;
return _.m(_.a1,{data:function(){return(V==null?0:V())?Object.assign({},f(),{style:"mono"}):f()},
className:_.q("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(H){return _.m(_.OH,{data:H},{carouselAdCardImageViewModel:function(f){return _.m($j9,{data:f.data,customCommandResolver:w})}})}))},"rb");var TH5=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;var V=Y.className;var H=Y.buttonClassName;var f=Y.animationEntityKey;var E=Y.expansive;return _.m("carousel-button-view-model",{class:_.hj("ytwCarouselButtonViewModelHost",V)},_.m(_.OH,{data:function(){return b().carousel}},{carouselAdCardCollectionViewModel:function(U){return _.m(G7K,{data:U.data,
customCommandResolver:w,expansive:E})}}),_.m(_.OH,{data:function(){return b().button}},{adButtonViewModel:function(U){var X=U.data;
return _.m(_.bP,{data:function(){return(E==null?0:E())?Object.assign({},X(),{style:"AD_BUTTON_STYLE_TONAL"}):X()},
className:H,customCommandResolver:w,animationEntityKey:f})}}))},"sb");_.JKr=_.b8(function(Y){var b=Y.data;Y=Y.className;var w=_.GM("pivot-button-view-model");_.dx(function(){var V;((V=b())==null?0:V.backgroundColor)&&w.value.setAttribute("data-background-color",String(b().backgroundColor))});
return _.m("pivot-button-view-model",{el:w,class:_.hj("ytwPivotButtonViewModelHost",Y)},_.m(_.oG,{command:function(){var V=b();V=V.onClickCommand?_.zT(V.onClickCommand):V.contentDescription?_.wr(V.contentDescription):void 0;return V},
ariaLabel:function(){return b().contentDescription}},_.m(_.h,{cond:function(){return b().thumbnail},
then:function(V){return _.m(_.Y_,{data:V,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.m(_.h,{cond:function(){return b().icon},
then:function(V){return _.m(_.n_,{icon:function(){return V().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.u0o=_.b8(function(Y){var b=Y.data;var w=Y.buttonShapeOverrideables;return _.m("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.m(_.OH,{data:function(){return b().buttonViewModels}},{buttonViewModel:function(V){return _.m(_.a1,{data:V.data,
buttonOverrides:w})},
likeButtonViewModel:function(V){return _.m(_.tm,{data:V.data,buttonShapeOverrideables:w})},
dislikeButtonViewModel:function(V){return _.m(_.Oe,{data:V.data,buttonShapeOverrideables:w})},
toggleButtonViewModel:function(V){return _.m(_.td,{data:V.data,buttonShapeOverrides:w})}}))},"ub");var Ypt=_.b8(function(Y){var b=Y.avatar;var w=Y.headline;var V=Y.badge;var H=Y.description;var f=Y.expansive;Y={};return _.m("yt-ad-metadata-shape",{class:_.hj("ytAdMetadataShapeHost",(Y.ytAdMetadataShapeHostLarge=f,Y))},_.m("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.m(_.h,{cond:b,then:function(E){return _.m(_.u7o,{data:function(){return(f==null?0:f())?Object.assign({},E(),{size:"AD_AVATAR_SIZE_MPLUS"}):E()}})}}),_.m("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.m(_.wv,{text:w,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.m(_.h,{cond:V,then:function(E){return _.m(_.Hl,{data:function(){return(f==null?0:f())?Object.assign({},E(),{style:"AD_BADGE_STYLE_STARK"}):E()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.m("h2",{class:"ytAdMetadataShapeHostDescription"},_.m(_.wv,{text:H,
linkInheritColor:!0})))},"vb");var bfC=_.b8(function(Y){var b=Y.data;var w=Y.onShow;var V=Y.expansive;Y=_.GM("reels-ad-card-buttoned-view-model");_.Jd(Y,function(){return b().interaction});
_.dx(function(){var f,E=(f=b().animatedRenderingConfig)==null?void 0:f.delayedSecondsToVisible;if(E){var U=setTimeout(w,E*1E3);_.R2(function(){clearTimeout(U)})}});
var H={};return _.m("reels-ad-card-buttoned-view-model",{class:_.hj(function(){var f;return((f=b().interaction)==null?0:f.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(H.ytwReelsAdCardButtonedViewModelHostExpansive=V,H)),
el:Y},_.m(Ypt,{avatar:function(){return _.v(b().avatar,RsC)},
headline:function(){return b().headline},
badge:function(){return _.v(b().adBadge,dqo)},
description:function(){return b().description},
expansive:V}),_.m(_.OH,{data:function(){return b().ctaButton}},{adButtonViewModel:function(f){var E=f.data;
return _.m(_.bP,{data:function(){return(V==null?0:V())?Object.assign({},E(),{style:"AD_BUTTON_STYLE_FILLED"}):E()}})}}))},"wb");var w_8=_.b8(function(Y){var b=Y.data;Y=Y.expansive;var w=_.GM("reels-ad-metadata-view-model");_.q("web_ad_metadata_clickable")&&_.Jd(w,function(){return b().interaction});
var V={};V=_.qR("ytwReelsAdMetadataViewModelHost",(V.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.q("web_ad_metadata_clickable"),V));return _.m("reels-ad-metadata-view-model",{class:V,el:w},_.m(Ypt,{avatar:function(){return _.v(b().avatar,RsC)},
headline:function(){return b().headline},
badge:function(){return _.v(b().adBadge,dqo)},
description:function(){return b().description},
expansive:Y}))},"xb");var VUI={iconPosition:"icon-with-label",size:"L"},HfC=_.b8(function(Y){var b=Y.data;var w=Y.overlayDensity;Y=_.GM("reels-player-overlay-layout-view-model");var V=_.JU(w,0),H=function(){var l;return(l=b().reelsAdCardButtonedEntityKey)!=null?l:""},f=function(){return H()+"/ad_button"},E=_.xh(n3b,H),U=function(){var l,x;
return(x=(l=E())==null?void 0:l.value)!=null?x:!1},X=_.rn(FMM),I=function(){return Object.assign({},VUI,(X()||V()===2)&&{style:"overlay-dark"})};
w={};var k={};return _.m("reels-player-overlay-layout-view-model",{class:_.hj("ytwReelsPlayerOverlayLayoutViewModelHost",(w.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!b().extension},w.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},w)),
"overlay-density":function(){return String(V())},
el:Y},_.m("div",{class:_.hj("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(k.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},k))},_.m("div",{"aria-hidden":function(){return U()},
class:_.hj("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return U()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Bb({"transition-duration":function(){return aNg(b())}})},_.m(_.OH,{data:function(){return b().adMetadata}},{reelsAdMetadataViewModel:function(l){return _.m(w_8,{data:l.data,
expansive:function(){return V()===1}})}}),_.m(_.h,{cond:function(){return b().extension},
then:function(l){return _.m("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.m(_.OH,{data:l},{adButtonViewModel:function(x){return _.m(_.bP,{data:x.data,animationEntityKey:f,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(x){return _.m(TH5,{data:x.data,animationEntityKey:f,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return V()===1}})}}))}})),_.m("div",{"aria-hidden":function(){return!U()},
class:_.hj("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return U()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Bb({"transition-duration":function(){return aNg(b())}})},_.m(_.OH,{data:function(){return b().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(l){return _.m(bfC,{data:l.data,
onShow:function(){_.Td(_.qo("booleanEntity",H(),{key:H(),value:!0}))},
expansive:function(){return V()===1}})}}))),_.m("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.m(_.OH,{data:function(){return b().actions}},{reelActionBarViewModel:function(l){return _.m(_.u0o,{data:l.data,
buttonShapeOverrideables:I})}}),_.m(_.OH,{data:function(){return b().menu}},{buttonViewModel:function(l){return _.m(_.a1,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},I(),{type:"tonal"})}})}}),_.m(_.OH,{data:function(){return b().pivotButton}},{pivotButtonViewModel:function(l){return _.m(_.JKr,{data:l.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.f_(HfC,"reels-player-overlay-layout-view-model",{props:{data:_.YX,overlayDensity:_.YX}});var lg=function(){var Y=_.F.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.overlayDensity=0;return Y};
_.P(lg,_.F);_.g=lg.prototype;
_.g.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.q("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.g.ready=function(){var Y=this;bw6(function(){Y.isAttached&&U1(Y.JSC$13464_storedAdSlotMetadata,Y.JSC$13464_storedAdLayoutMetadata,Y.adSlotMetadata,Y.adLayoutMetadata)&&Ii(mJ(),Y.JSC$13464_storedAdSlotMetadata,Y.JSC$13464_storedAdLayoutMetadata)})};
_.g.attached=function(){U1(this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&AKU(mJ(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata)};
_.g.detached=function(){U1(this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ii(mJ(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata)};
_.g.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13464_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13464_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13464_storedAdLayoutMetadata!==void 0&&this.JSC$13464_storedAdSlotMetadata!==void 0&&Ii(mJ(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata),AKU(mJ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13464_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13464_storedAdSlotMetadata=this.adSlotMetadata)};
_.up.Object.defineProperties(lg.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.adLayoutMetadata}}});
lg.prototype.onAdMetadataChanged=lg.prototype.onAdMetadataChanged;lg.prototype.onTypographyBumpChanged=lg.prototype.onTypographyBumpChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lg.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lg.prototype,"rendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],lg.prototype,"ytComponentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],lg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],lg.prototype,"noBottomMargin",void 0);_.z([_.R(),_.K("design:type",Object)],lg.prototype,"overlayDensity",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],lg.prototype,"typographyBump",void 0);_.z([_.t("data.adLayoutMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],lg.prototype,"adLayoutMetadata",null);_.z([_.R(),_.K("design:type",Object)],lg.prototype,"adSlotMetadata",void 0);
_.z([_.xZ("ytd-video-display-full-buttoned-and-button-group-renderer"),_.K("design:type",HTMLElement)],lg.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.z([_.lr("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lg.prototype,"onTypographyBumpChanged",null);_.z([_.lr("adLayoutMetadata","adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lg.prototype,"onAdMetadataChanged",null);
_.z([_.S({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],lg);
_.a(lg,"ytd-in-feed-ad-layout-renderer",function(){if(jrd!==void 0)return jrd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-in-feed-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-in-feed-ad-layout-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return jrd=Y},
{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var gY9;var fOd;var h8=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return Y};
_.P(h8,_.F);_.g=h8.prototype;_.g.computeHasLiveDescription=function(Y){return!(Y==null||!Y.liveDescription)};
_.g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.g.onYtToggleButton=function(Y){var b,w=(b=this.data)==null?void 0:b.videoReminderEntityKey;w&&this.ytdReduxBehavior.dispatch(_.qo("upcomingEventReminderStateEntity",w,{key:w,state:Y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.g.attached=function(){this.updateChannelBanner()};
_.g.dataChanged=function(){this.updateChannelBanner()};
_.g.videoReminderStateChanged=function(){var Y;this.videoReminderState&&_.v((Y=this.data)==null?void 0:Y.cta,_.KL)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.g.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var Y=_.NR(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);Y&&(Y.startsWith("//")&&(Y="https:"+Y),this.hostElement.classList.add("channel-banner"),_.m_(this.hostElement,{"--ytvmh-channel-banner":"url("+Y+")"}))}else _.q("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.g.onPlayerReady=function(){this.onIronResize()};
_.g.maybeFlushDebouncer=function(){_.q("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(Y){var b;Y=(b=Y.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0];Bze(Y==null?void 0:Y.polymerController)})};
_.g.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var Y=_.E6(this.hostElement).querySelector("#live-description"),b;Y&&((b=this.data)==null?0:b.shortLiveDescription)&&Y.clientWidth<Y.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
h8.prototype.onIronResize=h8.prototype.onIronResize;h8.prototype.videoReminderStateChanged=h8.prototype.videoReminderStateChanged;h8.prototype.dataChanged=h8.prototype.dataChanged;h8.prototype.onYtToggleButton=h8.prototype.onYtToggleButton;_.z([_.n(_.Li),_.K("design:type",Object)],h8.prototype,"ironResizableBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],h8.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],h8.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],h8.prototype,"data",void 0);_.z([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:ZwK}),_.K("design:type",Object)],h8.prototype,"videoReminderState",void 0);
_.z([_.R({reflectToAttribute:!0,value:_.q("web_modern_buttons")}),_.K("design:type",Boolean)],h8.prototype,"rounded",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.K("design:type",Boolean)],h8.prototype,"hasLiveDescription",void 0);_.z([_.R({reflectToAttribute:!0,value:_.q("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.K("design:type",Boolean)],h8.prototype,"resizableAdBannerSafariFix",void 0);
_.z([_.R({reflectToAttribute:!0,value:_.q("align_three_dot_menu_with_title_description")}),_.K("design:type",Boolean)],h8.prototype,"menuFix",void 0);_.z([_.ql("yt-formatted-string"),_.K("design:type",Array)],h8.prototype,"formattedStrings",void 0);_.z([_.xZ("#cta-button"),_.K("design:type",HTMLElement)],h8.prototype,"ctaButton",void 0);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],h8.prototype,"onYtToggleButton",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h8.prototype,"dataChanged",null);_.z([_.lr("videoReminderState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h8.prototype,"videoReminderStateChanged",null);_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h8.prototype,"onIronResize",null);
_.z([_.S({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],h8);
_.a(h8,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(fOd!==void 0)return fOd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return fOd=Y},{mode:1});var Nc8;var xJ=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};Y.isLocked=!1;return Y};
_.P(xJ,_.F);_.g=xJ.prototype;_.g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.g.onExpandedChanged=function(){this.expanded&&_.De(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.g.onMouseOver=function(){this.maybeExpand()};
_.g.onTap=function(){this.maybeExpand()};
_.g.onExpandableTileExpanding=function(Y){Y!==this&&(this.expanded=!1)};
_.g.onExpandableTileLockAndCollapse=function(Y){this.isLocked=!0;Y!==this&&(this.expanded=!1)};
_.g.onExpandableTileUnlock=function(){this.isLocked=!1};
xJ.prototype.onTap=xJ.prototype.onTap;xJ.prototype.onMouseOver=xJ.prototype.onMouseOver;xJ.prototype.onExpandedChanged=xJ.prototype.onExpandedChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],xJ.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xJ.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],xJ.prototype,"expanded",void 0);_.z([_.vX("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xJ.prototype,"onExpandedChanged",null);_.z([_.kZ("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xJ.prototype,"onMouseOver",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xJ.prototype,"onTap",null);
_.z([_.S({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],xJ);
_.a(xJ,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Nc8!==void 0)return Nc8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-thumbnail-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a href="[[computeHref_(data.navigationEndpoint)]]" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" data="[[data.navigationEndpoint]]" aria-hidden="true" tabindex="-1" id="endpoint">\n <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n   <div id="play-button" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n     \n     <svg width="100%" height="100%" viewBox="0 0 68 48" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n       <path id="play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,0.13,34,0,34,0S12.21,0.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" class="ytp-large-play-button-bg style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer" fill="#212121" fill-opacity="0.8"></path>\n       <path d="M 45,24 27,14 27,34" fill="#FFFFFF" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer"></path>\n     </svg>\n   </div>\n </div>\n <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="424" class="style-scope ytd-video-masthead-ad-expandable-thumbnail-tile-renderer">\n </yt-img-shadow>\n    </a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Nc8=Y},{mode:1});var EY5;var qE=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonOverrides={style:"overlay"};Y.useYtdPlayer=_.q("use_ytd_player_for_desktop_masthead");Y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};Y.playbackFinished=!1;Y.JSC$13476_playerManager=null;Y.JSC$13476_mastheadCounter=new FSd;return Y};
_.P(qE,_.F);_.g=qE.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$13476_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13476_playerManager=new tW)};
_.g.ready=function(){var Y=this;this.JSC$13476_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var b=_.E6(this.hostElement).querySelector("#player");this.useYtdPlayer?b.style.display="none":(this.ytdPlayer.style.display="none",lS_(this.JSC$13476_playerManager,b,function(){Y.onPlaybackEnded()}),_.E6(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var w;
((w=Y.data)==null?0:w.navigationEndpoint)&&_.Ua(Y.hostElement,"yt-navigate",{endpoint:Y.data.navigationEndpoint})}))};
_.g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13476_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.g.attached=function(){var Y=this;_.KV(function(){Y.maybePlayVideo()})};
_.g.maybePlayVideo=function(){var Y=this;!(this.expanded&&this.isAttached&&this.data&&this.data.videoId)||this.playbackFinished||this.useYtdPlayer&&this.data.disableAutoPlayback||(this.hostElement.classList.add("video-playing"),this.lockAndCollapseExpandableTiles(),this.useYtdPlayer?this.ytdPlayer.play():(this.JSC$13476_playerManager.playVideo(),this.getPlayerPromise().then(function(){Y.JSC$13476_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.g.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13476_playerManager.stopVideo()};
_.g.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var Y,b={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((Y=this.data.playbackStartMs)!=null?Y:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else xH8(this.JSC$13476_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(hWj(this.JSC$13476_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.g.getPlayerPromise=function(){return this.JSC$13476_playerManager.getPlayerPromise()};
_.g.onYtToggleButton=function(Y){this.useYtdPlayer?this.toggleMute(Y.detail.toggled):Y.detail.toggled?this.JSC$13476_playerManager.mute():this.JSC$13476_playerManager.unMute()};
_.g.onYtNavigate=function(Y){var b=h9b(Y.detail.endpoint),w=xTB(this.data.clickthroughReportingData);b&&w&&(Y.detail.endpoint.watchEndpoint?Y.detail.tempData=w:_.VX(b,w,30))};
_.g.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.g.onExpandedChanged=function(){this.expanded?(_.De(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.g.onMouseOver=function(){this.maybeExpand()};
_.g.onTap=function(){this.maybeExpand()};
_.g.onExpandableTileExpanding=function(Y){Y!==this&&(this.stopVideo(),this.expanded=!1)};
_.g.onExpandableTileLockAndCollapse=function(Y){Y!==this&&(this.isLocked=!0,this.expanded=!1)};
_.g.onExpandableTileUnlock=function(){this.isLocked=!1};
_.g.lockAndCollapseExpandableTiles=function(){_.Xx(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.g.unlockExpandableTiles=function(){_.Xx(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.g.setupYtdPlayer=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.ytdPlayer.getPlayerPromise(),2);b=w.yieldResult;b.addEventListener("onStateChange",function(V){Y.onPlayerStateChange(V)});
b.addEventListener("onCueRangeExit",function(V){Y.onCueRangeExit(V)});
_.om(w)})};
_.g.onPlayerStateChange=function(Y){if(Y===1&&(Y=this.ytdPlayer.getPlayer())){var b=Y.getCurrentTime(),w,V,H=b+((V=(w=this.data)==null?void 0:w.playbackDurationMs)!=null?V:0)/1E3;Y.addCueRange("playback",b,H);this.JSC$13476_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.g.onCueRangeExit=function(Y){Y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.g.toggleMute=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.ytdPlayer.getPlayerPromise(),2);w=V.yieldResult;Y?w.mute():w.unMute();_.om(V)})};
qE.prototype.onTap=qE.prototype.onTap;qE.prototype.onMouseOver=qE.prototype.onMouseOver;qE.prototype.onExpandedChanged=qE.prototype.onExpandedChanged;qE.prototype.onYtNavigate=qE.prototype.onYtNavigate;qE.prototype.onYtToggleButton=qE.prototype.onYtToggleButton;qE.prototype.dataChanged=qE.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qE.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],qE.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qE.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],qE.prototype,"expanded",void 0);_.z([_.R(),_.K("design:type",Object)],qE.prototype,"buttonOverrides",void 0);
_.z([_.R(),_.K("design:type",Object)],qE.prototype,"useYtdPlayer",void 0);_.z([_.xZ("#ytd-player"),_.K("design:type",Object)],qE.prototype,"ytdPlayer",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qE.prototype,"dataChanged",null);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],qE.prototype,"onYtToggleButton",null);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],qE.prototype,"onYtNavigate",null);_.z([_.vX("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qE.prototype,"onExpandedChanged",null);_.z([_.kZ("mouseover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qE.prototype,"onMouseOver",null);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qE.prototype,"onTap",null);_.z([_.S({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],qE);
_.a(qE,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(EY5!==void 0)return EY5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-expandable-video-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n  <div id="overlay" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <div id="mute-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="replay-button" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="player-container" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-expandable-video-tile-renderer" data="[[data.navigationEndpoint]]"></a>\n    <div id="player" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer"></div>\n    <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-expandable-video-tile-renderer">\n    </ytd-player>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return EY5=Y},{mode:1});var cG8;var sb=function(){return _.F.apply(this,arguments)||this};
_.P(sb,_.F);sb.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
sb.prototype.onShow=function(){var Y=_.E6(this.hostElement).querySelector("#live-description"),b;Y&&((b=this.data)==null?0:b.shortLiveDescription)&&Y.clientWidth<Y.scrollWidth&&this.hostElement.classList.add("short-live-description")};
sb.prototype.onYtToggleButton=function(Y){var b,w=(b=this.data)==null?void 0:b.videoReminderEntityKey;w&&this.ytdReduxBehavior.dispatch(_.qo("upcomingEventReminderStateEntity",w,{key:w,state:Y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
sb.prototype.videoReminderStateChanged=function(){var Y;this.videoReminderState&&_.v((Y=this.data)==null?void 0:Y.cta,_.KL)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
sb.prototype.videoReminderStateChanged=sb.prototype.videoReminderStateChanged;sb.prototype.onYtToggleButton=sb.prototype.onYtToggleButton;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],sb.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sb.prototype,"data",void 0);
_.z([_.R({selectorArgs:["data.videoReminderEntityKey"],selector:ZwK}),_.K("design:type",Object)],sb.prototype,"videoReminderState",void 0);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],sb.prototype,"onYtToggleButton",null);_.z([_.lr("videoReminderState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sb.prototype,"videoReminderStateChanged",null);
_.z([_.S({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],sb);
_.a(sb,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(cG8!==void 0)return cG8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="advertiser-info" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n  </yt-formatted-string>\n  <div id="byline-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" overlay-ad="true" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-badge-supported-renderer>\n    <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n      <div id="live-description-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="cta-container" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer">\n    </ytd-toggle-button-renderer>\n  </div>\n</div>\n<div id="menu" class="style-scope ytd-video-masthead-ad-primary-video-overlay-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return cG8=Y},{mode:_.Xd("kevlar_poly_si_batch_j065")?1:2});var Ugd;var Qg=function(){var Y=_.F.apply(this,arguments)||this;Y.useYtdPlayer=_.q("use_ytd_player_for_desktop_masthead");Y.buttonOverrides={style:"overlay"};Y.JSC$13484_playerManager=null;Y.JSC$13484_mastheadCounter=new FSd;Y.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return Y};
_.P(Qg,_.F);_.g=Qg.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13484_playerManager=new tW)};
_.g.ready=function(){var Y=this;this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var b;(b=this.embeddedPlayer)==null||b.remove()}else{var w;(w=this.ytdPlayer)==null||w.remove();lS_(this.JSC$13484_playerManager,this.embeddedPlayer,function(){Y.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){Y.data&&Y.data.navigationEndpoint&&_.Ua(Y.hostElement,"yt-navigate",{endpoint:Y.data.navigationEndpoint})})}};
_.g.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13484_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.g.dataChanged=function(){var Y=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var b=!this.data.disableAutoPlayback,w,V={autoplay:b,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.hostElement.classList.add(b?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(V);this.setupYtdPlayer()}else xH8(this.JSC$13484_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(hWj(this.JSC$13484_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13484_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Xx(Y.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");Y.JSC$13484_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.g.getPlayerPromise=function(){return this.JSC$13484_playerManager.getPlayerPromise()};
_.g.onYtToggleButton=function(Y){this.useYtdPlayer?this.toggleMute(Y.detail.toggled):Y.detail.toggled?this.JSC$13484_playerManager.mute():this.JSC$13484_playerManager.unMute()};
_.g.onYtNavigate=function(Y){var b=h9b(Y.detail.endpoint),w=xTB(this.data.clickthroughReportingData);b&&w&&(Y.detail.endpoint.watchEndpoint?Y.detail.tempData=w:_.VX(b,w,30))};
_.g.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13484_playerManager.stopVideo()};
_.g.setupYtdPlayer=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.ytdPlayer.getPlayerPromise(),2);b=w.yieldResult;b.addEventListener("onStateChange",function(V){Y.onPlayerStateChange(V)});
b.addEventListener("onCueRangeExit",function(V){Y.onCueRangeExit(V)});
_.om(w)})};
_.g.onPlayerStateChange=function(Y){if(Y===1&&(Y=this.ytdPlayer.getPlayer())){var b=Y.getCurrentTime(),w,V,H=b+((V=(w=this.data)==null?void 0:w.playbackDurationMs)!=null?V:0)/1E3;Y.addCueRange("playback",b,H);_.Xx(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13484_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.g.onCueRangeExit=function(Y){Y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.g.toggleMute=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.ytdPlayer.getPlayerPromise(),2);w=V.yieldResult;Y?w.mute():w.unMute();_.om(V)})};
_.up.Object.defineProperties(Qg.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(!((Y=this.data)==null?0:(b=Y.accessibilityData)==null?0:b.label))return"Ad primary link";var w,V;return _.sa("AD_TITLE",{title:(w=this.data)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label})}}});
Qg.prototype.onYtMastheadHidden=Qg.prototype.onYtMastheadHidden;Qg.prototype.onYtNavigate=Qg.prototype.onYtNavigate;Qg.prototype.onYtToggleButton=Qg.prototype.onYtToggleButton;Qg.prototype.dataChanged=Qg.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Qg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Qg.prototype,"useYtdPlayer",void 0);_.z([_.xZ("ytd-toggle-button-renderer"),_.K("design:type",Object)],Qg.prototype,"muteButton",void 0);_.z([_.R(),_.K("design:type",Object)],Qg.prototype,"buttonOverrides",void 0);
_.z([_.t("data.accessibilityData.label"),_.K("design:type",String),_.K("design:paramtypes",[])],Qg.prototype,"titleAriaLabel",null);_.z([_.xZ("#replay-button"),_.K("design:type",Object)],Qg.prototype,"replayButton",void 0);_.z([_.xZ("#player-container"),_.K("design:type",Object)],Qg.prototype,"playerContainer",void 0);_.z([_.xZ("#player"),_.K("design:type",Object)],Qg.prototype,"embeddedPlayer",void 0);_.z([_.xZ("#ytd-player"),_.K("design:type",Object)],Qg.prototype,"ytdPlayer",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qg.prototype,"dataChanged",null);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Qg.prototype,"onYtToggleButton",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Qg.prototype,"onYtNavigate",null);
_.z([_.kZ("yt-masthead-hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qg.prototype,"onYtMastheadHidden",null);_.z([_.S({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Qg);
_.a(Qg,"ytd-video-masthead-ad-primary-video-renderer",function(){if(Ugd!==void 0)return Ugd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-primary-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="overlay" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <div id="mute-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="replay-button" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <div id="thumbnail-overlays" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <template is="dom-if" if="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    <yt-formatted-string id="live-badge" text="[[data.liveBadgeLabel]]" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<div id="player-container" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  <a id="click-target" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-primary-video-renderer" aria-label$="[[titleAriaLabel]]" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]"></a>\n  <div id="player" class="style-scope ytd-video-masthead-ad-primary-video-renderer"></div>\n  <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_MASTHEAD_AD" class="style-scope ytd-video-masthead-ad-primary-video-renderer">\n  </ytd-player>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ugd=Y},{mode:2});var X_I;var vd=function(){var Y=_.F.apply(this,arguments)||this;Y.collapsed=!1;Y.impressionResolver=_.j9();Y.JSC$13488_activeViewMeasurementDataResolver=_.j9();Y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return Y};
_.P(vd,_.F);_.g=vd.prototype;_.g.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"}}}};
_.g.ready=function(){var Y=this;_.E6(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){Y.expandAd()});
this.hostElement.addEventListener("yt-action",function(b){if(b.detail.actionName==="yt-service-request"){var w=b.detail.args[1];w.videoMastheadAdMuteCommand&&(Y.collapseAd(w.videoMastheadAdMuteCommand.encryptedMastheadId),b.stopPropagation())}})};
_.g.attached=function(){var Y=this;_.KV(function(){Y.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(b){if(!Y.collapsed){b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,$r(w.baseUrl,w.attributionSrcMode);Y.data.impressionCommand=void 0}});
this.JSC$13488_activeViewMeasurementDataResolver.promise.then(function(b){Y.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)});
_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.g.dataChanged=function(){var Y;((Y=this.data.impressionCommand)==null?0:Y.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var b;((b=this.data)==null?0:b.activeView)&&this.JSC$13488_activeViewMeasurementDataResolver.resolve(this.data.activeView);(Y=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(Y.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.g.computeWidescreen=function(Y){var b;return!!(Y&&((b=_.v(Y,MZ5))==null?0:b.isWidescreen))};
_.g.computeExpandable=function(Y){return!!(Y&&Y.length>0)};
_.g.onIronResize=function(){if(this.expandable){var Y=_.E6(this.hostElement).querySelector("#expandable-tile-container :first-child");Y&&!Y.expanded&&(Y.expanded=!0)}};
_.g.handleMuteAd=function(){this.collapseAd(null)};
_.g.restoreCollapsedState=function(Y){this.collapsed=_.P0().get("HIDDEN_MASTHEAD_ID")===Y};
_.g.collapseAd=function(Y){if(Y){var b=_.P0();b.set("HIDDEN_MASTHEAD_ID",Y);b.save()}(Y=_.E6(this.hostElement).querySelector("#video"))&&_.Ua(Y,"yt-masthead-hidden");this.collapsed=!0};
_.g.expandAd=function(){var Y=_.P0();Y.set("HIDDEN_MASTHEAD_ID",!1);Y.save();location.reload()};
_.g.detached=function(){_.q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
vd.prototype.onIronResize=vd.prototype.onIronResize;vd.prototype.dataChanged=vd.prototype.dataChanged;_.z([_.n(_.Li),_.K("design:type",Object)],vd.prototype,"ironResizableBehavior",void 0);_.z([_.n(d0),_.K("design:type",Object)],vd.prototype,"ytdActiveViewBehavior",void 0);_.z([_.n(_.r0),_.K("design:type",Object)],vd.prototype,"ytdGridStateAwareBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],vd.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vd.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.K("design:type",Boolean)],vd.prototype,"widescreen",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.K("design:type",Boolean)],vd.prototype,"expandable",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vd.prototype,"collapsed",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vd.prototype,"dataChanged",null);
_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vd.prototype,"onIronResize",null);_.z([_.S({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],vd);
_.a(vd,"ytd-video-masthead-ad-v3-renderer",function(){if(X_I!==void 0)return X_I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-v3-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n  <div id="video-overlay" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-primary-video-overlay-renderer data="[[data.primaryVideoOverlay.videoMastheadAdPrimaryVideoOverlayRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-primary-video-overlay-renderer>\n  </div>\n  <template is="dom-if" if="[[data.primaryVideo]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <div id="video-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <ytd-video-masthead-ad-primary-video-renderer id="video" data="[[data.primaryVideo.videoMastheadAdPrimaryVideoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      </ytd-video-masthead-ad-primary-video-renderer>\n    </div>\n  </template>\n  <div id="expandable-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    <ytd-video-masthead-ad-advertiser-info-renderer data="[[data.advertiserInfo.videoMastheadAdAdvertiserInfoRenderer]]" class="style-scope ytd-video-masthead-ad-v3-renderer">\n    </ytd-video-masthead-ad-advertiser-info-renderer>\n    <div id="compact-tile-container" class="style-scope ytd-video-masthead-ad-v3-renderer">\n      <template is="dom-repeat" items="[[data.compactVideoTiles]]" as="tile" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        <ytd-thumbnail data="[[tile.videoMastheadAdCompactVideoTileRenderer]]" width="210" class="style-scope ytd-video-masthead-ad-v3-renderer">\n        </ytd-thumbnail>\n      </template>\n    </div>\n  </div>\n  <div id="show-ad" class="style-scope ytd-video-masthead-ad-v3-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return X_I=Y},{mode:2});var Pd=function(){return _.F.apply(this,arguments)||this};
_.P(Pd,_.F);_.g=Pd.prototype;_.g.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.g.ready=function(){var Y=this;bw6(function(){Y.isAttached&&U1(Y.JSC$13493_storedAdSlotMetadata,Y.JSC$13493_storedAdLayoutMetadata,Y.adSlotMetadata,Y.adLayoutMetadata)&&Ii(mJ(),Y.JSC$13493_storedAdSlotMetadata,Y.JSC$13493_storedAdLayoutMetadata)})};
_.g.attached=function(){U1(this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&AKU(mJ(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata)};
_.g.detached=function(){U1(this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Ii(mJ(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata)};
_.g.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13493_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13493_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13493_storedAdLayoutMetadata!==void 0&&this.JSC$13493_storedAdSlotMetadata!==void 0&&Ii(mJ(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata),AKU(mJ(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13493_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13493_storedAdSlotMetadata=this.adSlotMetadata)};
_.up.Object.defineProperties(Pd.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.adLayoutMetadata}}});
Pd.prototype.onAdMetadataChanged=Pd.prototype.onAdMetadataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Pd.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Pd.prototype,"data",void 0);_.z([_.t("data.adLayoutMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],Pd.prototype,"adLayoutMetadata",null);
_.z([_.R(),_.K("design:type",Object)],Pd.prototype,"adSlotMetadata",void 0);_.z([_.lr("adLayoutMetadata","adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pd.prototype,"onAdMetadataChanged",null);_.z([_.S({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Pd);
_.a(Pd,"ytd-page-top-ad-layout-renderer",function(){if(gY9!==void 0)return gY9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-top-ad-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="rendering-content" class="style-scope ytd-page-top-ad-layout-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return gY9=
Y},{mode:_.Xd("kevlar_poly_si_batch_j070")?1:2});var Dgk;var Z2=function(){var Y=_.F.apply(this,arguments)||this;Y.noBottomMargin=!1;Y.overlayDensity=0;Y.typographyBump=!1;return Y};
_.P(Z2,_.F);_.g=Z2.prototype;
_.g.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.g.ready=function(){var Y=this;bw6(function(){Y.isAttached&&Y.adSlotMetadata&&i5$(mJ(),Y.adSlotMetadata)})};
_.g.attached=function(){if(this.adSlotMetadata){var Y;if(this.adSlotMetadata===((Y=this.data)==null?void 0:Y.adSlotMetadata))KMt(mJ(),this.adSlotMetadata);else{var b;_.Sk(Error("Mh`"+this.adSlotMetadata+"`"+((b=this.data)==null?void 0:b.adSlotMetadata)))}}};
_.g.detached=function(){this.adSlotMetadata&&i5$(mJ(),this.adSlotMetadata)};
_.g.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.g.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&i5$(mJ(),this.adSlotMetadata),KMt(mJ(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.up.Object.defineProperties(Z2.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=_.v((Y=this.data)==null?void 0:(b=Y.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.pKU),V;return(Y=(V=_.v(w==null?void 0:w.renderingContent,esr))==null?void 0:V.layout)?Y.toLowerCase().replace(/_/g,"-"):""}}});
Z2.prototype.onAdSlotMetadataChanged=Z2.prototype.onAdSlotMetadataChanged;Z2.prototype.onTypographyBumpChanged=Z2.prototype.onTypographyBumpChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Z2.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Z2.prototype,"rendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Z2.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Z2.prototype,"noBottomMargin",void 0);_.z([_.R(),_.K("design:type",Object)],Z2.prototype,"overlayDensity",void 0);_.z([_.R(),_.K("design:type",Object)],Z2.prototype,"typographyBump",void 0);_.z([_.xZ("ytd-in-feed-ad-layout-renderer"),_.K("design:type",HTMLElement)],Z2.prototype,"inFeedAdLayoutRenderer",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],Z2.prototype,"layout",null);_.z([_.lr("typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z2.prototype,"onTypographyBumpChanged",null);_.z([_.lr("data.adSlotMetadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z2.prototype,"onAdSlotMetadataChanged",null);
_.z([_.S({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Z2);
_.a(Z2,"ytd-ad-slot-renderer",function(){if(Dgk!==void 0)return Dgk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="fulfilled-layout" class="style-scope ytd-ad-slot-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Dgk=Y},{mode:_.Xd("kevlar_poly_si_batch_j077")?
1:2});var mg$;var Bd=function(){return _.F.apply(this,arguments)||this};
_.P(Bd,_.F);_.g=Bd.prototype;_.g.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"}}}};
_.g.maybeComputeHref=function(Y){return _.q("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(Y)};
_.g.onTap=function(){_.q("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&cuI(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.g.onThumbnailContainerClick=function(Y){this.onClick(Y)};
_.g.onClick=function(Y){if(_.q("enable_handle_watch_endpoint_click_for_vdc")){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint;w&&_.v(w,_.TG)&&(this.ytSparklesClickLocationBehavior.handleClick(w,Y,!1),Y.stopPropagation())}};
_.g.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var Y=_.N(this.data.impressionUrls),b=Y.next();!b.done;b=Y.next())b=b.value,xCI(b,sAt(b));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.q("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Bd.JSC$13501_DEFAULT_CLICK_LOCATION_BEHAVIOR,Bd.JSC$13501_CLICK_LOCATION_ID_MAP),this.thumbnail&&(Y=this.thumbnail.getElementsByTagName("a"),
Y.length>0&&(Y=Y.namedItem("thumbnail"))&&Y.removeAttribute("href")))}};
_.g.attached=function(){var Y=this;_.q("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.g.detached=function(){_.q("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.up.Object.defineProperties(Bd.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Bd.prototype.dataChanged=Bd.prototype.dataChanged;Bd.prototype.onTap=Bd.prototype.onTap;Bd.JSC$13501_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Bd.JSC$13501_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"}];_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.z([_.n(d0),_.K("design:type",Object)],Bd.prototype,"ytdActiveViewBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Bd.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Bd.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Bd.prototype,"ytSparklesClickLocationBehavior",void 0);
_.z([_.R({selector:_.Ks}),_.K("design:type",Object)],Bd.prototype,"isGridViewEnabled",void 0);_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Bd.prototype,"watchFeedBigThumbs",null);_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],Bd.prototype,"thumbnailWidth",null);_.z([_.R(),_.K("design:type",Object)],Bd.prototype,"data",void 0);
_.z([_.xZ("ytd-thumbnail"),_.K("design:type",HTMLElement)],Bd.prototype,"thumbnail",void 0);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bd.prototype,"onTap",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bd.prototype,"dataChanged",null);_.z([_.S({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Bd);
_.a(Bd,"ytd-compact-promoted-video-renderer",function(){if(mg$!==void 0)return mg$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return mg$=Y},{mode:1});var oY8;_.S9("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var n4=function(){return _.F.apply(this,arguments)||this};
_.P(n4,_.F);n4.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],n4.prototype,"data",void 0);_.z([_.S({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],n4);
_.a(n4,"ytd-search-pyv-renderer",function(){if(oY8!==void 0)return oY8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-pyv-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-search-pyv-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return oY8=Y},{mode:1});var IOt;_.S9("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var ME=function(){var Y=_.F.apply(this,arguments)||this;Y.roundedContainer=!0;Y.JSC$13509_handleOpenPostCommentDialogActionAfterStamp=!1;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.P(ME,_.F);_.g=ME.prototype;
_.g.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}}};
_.g.onStampFinished=function(){this.JSC$13509_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){var Y=_.E6(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");Y?Y.openDialog():this.JSC$13509_handleOpenPostCommentDialogActionAfterStamp=!0};
_.g.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.g.computeHideBorder=function(){return this.isInEngagementPanel};
_.g.computeIsCompact=function(){return this.isInEngagementPanel};
_.g.computeUsesCompactLockup=function(Y){return Y==="BACKSTAGE_SURFACE_TYPE_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||Y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||Y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||Y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||Y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.g.computeUsesFullLockup=function(){var Y,b=(Y=this.data)==null?void 0:Y.post,w;Y=(w=_.v(b,zs5))==null?void 0:w.surface;var V;w=(V=_.v(b,Kwt))==null?void 0:V.originalPost;var H;if(V=Y||((H=_.v(w,zs5))==null?void 0:H.surface))return!this.computeUsesCompactLockup(V)&&this.useUpdatedRepostUi;var f;return((f=_.v(b,Kwt))==null?void 0:f.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.up.Object.defineProperties(ME.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((b=_.v((Y=this.data)==null?void 0:Y.post,zs5))==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.useUpdatedRepostUi}}});
ME.prototype.onYtCommentModerationPanelEmpty=ME.prototype.onYtCommentModerationPanelEmpty;ME.prototype.onStampFinished=ME.prototype.onStampFinished;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],ME.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],ME.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ME.prototype,"roundedContainer",void 0);_.z([_.R({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ME.prototype,"hideBorder",void 0);_.z([_.R({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ME.prototype,"isCompact",void 0);
_.z([_.R({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ME.prototype,"usesFullLockup",void 0);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ME.prototype,"onStampFinished",null);
_.z([_.kZ("ytd-comment-moderation-panel-empty"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ME.prototype,"onYtCommentModerationPanelEmpty",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ME.prototype,"isInEngagementPanel",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ME.prototype,"useUpdatedRepostUi",null);
_.z([_.S({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],ME);
_.a(ME,"ytd-backstage-post-thread-renderer",function(){if(IOt!==void 0)return IOt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return IOt=Y},{mode:1});var kRI;var eR=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(eR,_.F);eR.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
eR.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var Y=this.data.thumbnail.thumbnails;this.isDarkTheme&&(Y=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(Y=_.NR(Y,24,void 0,"height"))?Y:void 0}};
eR.prototype.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
eR.prototype.computeHasText=function(){var Y;return!((Y=this.data)==null||!Y.text)};
_.up.Object.defineProperties(eR.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.PN(this.bannerImageUrl))+'");'}}});
eR.prototype.computeHasText=eR.prototype.computeHasText;eR.prototype.computeBannerImageUrl=eR.prototype.computeBannerImageUrl;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],eR.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],eR.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],eR.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],eR.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",String)],eR.prototype,"bannerImageUrl",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.K("design:type",Boolean)],eR.prototype,"hasText",void 0);_.z([_.lr("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eR.prototype,"computeBannerImageUrl",null);
_.z([_.lr("data.text"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eR.prototype,"computeHasText",null);_.z([_.t("bannerImageUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],eR.prototype,"bannerStyle",null);_.z([_.S({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],eR);
_.a(eR,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(kRI!==void 0)return kRI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-prefilled-post-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" hidden="[[!bannerImageUrl]]" style$="[[bannerStyle]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n</div>\n<div id="message" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">\n  <p id="title" hidden="[[!getSimpleString(data.title)]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.title)]]</p>\n  <p id="text" hidden="[[!hasText]]" class="style-scope ytd-backstage-prefilled-post-dialog-header-renderer">[[getSimpleString(data.text)]]</p>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return kRI=Y},{mode:1});var lO8;var p4=function(){return _.F.apply(this,arguments)||this};
_.P(p4,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],p4.prototype,"data",void 0);_.z([_.S({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],p4);
_.a(p4,"ytd-backstage-zero-state-renderer",function(){if(lO8!==void 0)return lO8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="backstage:artwork" class="style-scope ytd-backstage-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<span id="text" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.text)]]</span>\n<yt-formatted-string id="link" force-default-style="" text="[[data.link]]" class="style-scope ytd-backstage-zero-state-renderer"></yt-formatted-string>\n<span id="footer" class="style-scope ytd-backstage-zero-state-renderer">[[getSimpleString(data.footer)]]</span>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lO8=Y},{mode:1});var hvU;var Ob=function(){return _.F.apply(this,arguments)||this};
_.P(Ob,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ob.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],Ob.prototype,"icon",void 0);_.z([_.S({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],Ob);
_.a(Ob,"ytd-post-filter-zero-state-renderer",function(){if(hvU!==void 0)return hvU;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-filter-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-container" class="style-scope ytd-post-filter-zero-state-renderer"><yt-icon id="icon" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-filter-zero-state-renderer"></yt-icon></div>\n<div id="title" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-post-filter-zero-state-renderer">[[getSimpleString(data.subtitle)]]</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return hvU=Y},{mode:1});var xg9;var qpk={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},t8=function(){return _.F.apply(this,arguments)||this};
_.P(t8,_.F);t8.prototype.configureRendererStamper=function(){return qpk};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],t8.prototype,"rendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],t8.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],t8.prototype,"icon",void 0);_.z([_.S({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],t8);
_.a(t8,"ytd-post-scheduling-zero-state-renderer",function(){if(xg9!==void 0)return xg9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-scheduling-zero-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="image" icon="[[computeIcon_(data.icon)]]" class="style-scope ytd-post-scheduling-zero-state-renderer"></yt-icon>\n<span id="title" class="style-scope ytd-post-scheduling-zero-state-renderer">[[getSimpleString(data.title)]]</span>\n<div id="schedule-button" class="style-scope ytd-post-scheduling-zero-state-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return xg9=Y},{mode:1});var se5;var Ri=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return Y};
_.P(Ri,_.F);Ri.prototype.onTabsActivate=function(Y){this.data&&this.data.tabs&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[Y.detail.selected].navigationEndpoint})};
Ri.prototype.shouldShowTotalCount=function(Y){return Y&&Y.totalCount!==void 0};
Ri.prototype.handleUpdatePostsTotalCountAction=function(Y){var b=this.get(["data.tabs",1,"totalCount"]),w=this.get("updatePostsTotalCountAction.updateType",Y);Y=this.get("updatePostsTotalCountAction.number",Y);b!==void 0&&w!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&Y&&(w==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(b)+Y):w==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(b)-Y))};
_.up.Object.defineProperties(Ri.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var Y=0,b=this.data.tabs.length;Y<b;Y++)if(this.data.tabs[Y].selected)return Y;return 0}}});
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ri.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ri.prototype,"rendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ri.prototype,"data",void 0);_.z([_.t("data.tabs"),_.K("design:type",Number),_.K("design:paramtypes",[])],Ri.prototype,"selected",null);_.z([_.S({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Ri);
_.a(Ri,"ytd-post-stream-filter-renderer",function(){if(se5!==void 0)return se5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-stream-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-container" class="style-scope ytd-post-stream-filter-renderer">\n  <tp-yt-paper-tabs selected="[[selected]]" on-iron-activate="onTabsActivate" class="style-scope ytd-post-stream-filter-renderer">\n    <template is="dom-repeat" items="[[data.tabs]]" class="style-scope ytd-post-stream-filter-renderer">\n      <tp-yt-paper-tab class="style-scope ytd-post-stream-filter-renderer">\n        [[getSimpleString(item.title)]]\n        <template is="dom-if" if="[[shouldShowTotalCount(item)]]" class="style-scope ytd-post-stream-filter-renderer">\n          <span class="posts-count style-scope ytd-post-stream-filter-renderer">[[item.totalCount]]</span>\n        </template>\n      </tp-yt-paper-tab>\n    </template>\n  </tp-yt-paper-tabs>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return se5=Y},{mode:1});var QeQ;var dT=function(){return _.F.apply(this,arguments)||this};
_.P(dT,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dT.prototype,"kevlarBehaviors",void 0);_.z([_.R(),_.K("design:type",Object)],dT.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],dT);
_.a(dT,"ytd-channel-age-gate-renderer",function(){if(QeQ!==void 0)return QeQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-age-gate-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-age-gate-renderer">\n  <div id="channel-container" class="style-scope ytd-channel-age-gate-renderer">\n    <div id="channel" class="style-scope ytd-channel-age-gate-renderer">[[data.channelTitle]]</div>\n    <yt-img-shadow thumbnail="[[data.avatar]]" width="144" class="style-scope ytd-channel-age-gate-renderer"></yt-img-shadow>\n  </div>\n  <div id="info" class="style-scope ytd-channel-age-gate-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <yt-formatted-string text="[[data.mainText]]" class="style-scope ytd-channel-age-gate-renderer"></yt-formatted-string>\n    <ytd-button-renderer align-by-text="" data="[[data.signInButton.buttonRenderer]]" class="style-scope ytd-channel-age-gate-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string text="[[data.secondaryText]]" class="style-scope ytd-channel-age-gate-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return QeQ=Y},{mode:1});var vYr;_.S9("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var FJ=function(){var Y=_.F.apply(this,arguments)||this;Y.data=null;return Y};
_.P(FJ,_.F);FJ.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.up.Object.defineProperties(FJ.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?0:(b=Y.title)==null?0:(w=b.runs)==null?0:w.length)?147:160}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],FJ.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],FJ.prototype,"imageSizePx",null);_.z([_.S({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],FJ);
_.a(FJ,"ytd-channel-owner-empty-state-renderer",function(){if(vYr!==void 0)return vYr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-owner-empty-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container ytd-channel-owner-empty-state-renderer style-scope ytd-channel-owner-empty-state-renderer">\n  <div class="illustration style-scope ytd-channel-owner-empty-state-renderer">\n    <yt-img-shadow height="[[imageSizePx]]" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-owner-empty-state-renderer">\n    <div class="header style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.title]]">\n      <h2 class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string id="title" class="header-title style-scope ytd-channel-owner-empty-state-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="description style-scope ytd-channel-owner-empty-state-renderer">\n      <yt-formatted-string id="description" class="description-text style-scope ytd-channel-owner-empty-state-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n      <div class="button-layer style-scope ytd-channel-owner-empty-state-renderer" hidden="[[!data.uploadVideoButton]]">\n        <span id="upload-video-button" class="style-scope ytd-channel-owner-empty-state-renderer"></span>\n      </div>\n    <div class="learn-more style-scope ytd-channel-owner-empty-state-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-owner-empty-state-renderer">\n        <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-owner-empty-state-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return vYr=Y},{mode:1});var Ps8;var Zft;var L4=function(){var Y=_.F.apply(this,arguments)||this;Y.boundSubmitSearch=function(){Y.submitSearch()};
Y.boundClearSearch=function(){Y.clearSearch()};
return Y};
_.P(L4,_.F);_.g=L4.prototype;_.g.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]]"}}}}}};
_.g.toggleClearButton=function(){this.hideClearButton=BRr||!this.input.value};
_.g.submitOnEnterKeyUp=function(Y){Y.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.g.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.g.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.g.submit=function(){_.Ua(this.hostElement,"search-query-changed",this.input.value)};
L4.prototype.toggleClearButton=L4.prototype.toggleClearButton;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],L4.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],L4.prototype,"hideClearButton",void 0);_.z([_.R(),_.K("design:type",Object)],L4.prototype,"boundSubmitSearch",void 0);_.z([_.R(),_.K("design:type",Object)],L4.prototype,"boundClearSearch",void 0);_.z([_.xZ("#input"),_.K("design:type",Object)],L4.prototype,"input",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],L4.prototype,"toggleClearButton",null);
_.z([_.S({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],L4);
_.a(L4,"ytd-channel-switcher-search-box-renderer",function(){if(Zft!==void 0)return Zft;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="input" auto-validate="true" autocomplete="off" error-message="[[getSimpleString(data.invalidQueryErrorMessage)]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="100" minlength="3" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-channel-switcher-search-box-renderer">\n  <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n  <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-channel-switcher-search-box-renderer"></div>\n</tp-yt-paper-input>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Zft=Y},{mode:1});var Bc5;var SR=function(){var Y=_.F.apply(this,arguments)||this;Y.boundSubmit=function(){Y.submit()};
return Y};
_.P(SR,_.F);_.g=SR.prototype;_.g.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"}}}}};
_.g.ready=function(){var Y=this;this.form.addEventListener("submit",function(b){return Y.onSubmit(b)})};
_.g.onSubmit=function(Y){Y.preventDefault();return!1};
_.g.toggleClearButton=function(){this.hideClearButton=BRr||!this.input.value};
_.g.submitOnEnterKeyUp=function(Y){Y.keyCode===13&&this.submit()};
_.g.submit=function(){var Y=this.data.endpoint,b=(0,_.BL.unsafeClone)(Y);_.v(b,_.QU)?_.v(b,_.QU).query=this.input.value:_.v(b,_.vH)&&(_.v(b,_.vH).query=this.input.value);var w=_.v(b.commandMetadata,_.g5);(w==null?0:w.url)?(w.url=_.zM(w.url,"query",this.input.value),_.Ua(this.hostElement,"yt-navigate",{endpoint:b})):_.v(b,viU)?(_.v(b,viU).channelSwitcherQuery=this.input.value,_.fH().resolve(_.Nn).resolveCommand(b,{form:{element:this.hostElement}})):(Y=Error("Nh`"+JSON.stringify(Y)),_.Ft(Y))};
_.g.getUrl=function(Y){return this.get("commandMetadata.webCommandMetadata.url",Y)};
SR.prototype.toggleClearButton=SR.prototype.toggleClearButton;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],SR.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],SR.prototype,"hideClearButton",void 0);
_.z([_.R(),_.K("design:type",Object)],SR.prototype,"boundSubmit",void 0);_.z([_.xZ("#form"),_.K("design:type",HTMLFormElement)],SR.prototype,"form",void 0);_.z([_.xZ("#input"),_.K("design:type",Object)],SR.prototype,"input",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],SR.prototype,"toggleClearButton",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],SR);
_.a(SR,"ytd-search-box-renderer",function(){if(Bc5!==void 0)return Bc5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Bc5=Y},{mode:2});var ai=function(){var Y=_.F.apply(this,arguments)||this;Y.showSearchBox=!0;return Y};
_.P(ai,_.F);ai.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ai.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ai.prototype,"showSearchBox",void 0);_.z([_.S({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],ai);
_.a(ai,"ytd-channel-switcher-header-renderer",function(){if(Ps8!==void 0)return Ps8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-channel-switcher-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-channel-switcher-header-renderer"></yt-formatted-string>\n</h2>\n<div id="search-box" hidden="[[!showSearchBox]]" class="style-scope ytd-channel-switcher-header-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Ps8=Y},{mode:1});var nYk;var MUQ;var rT=function(){var Y=_.F.apply(this,arguments)||this;Y.isDisplayed=!0;return Y};
_.P(rT,_.F);_.g=rT.prototype;_.g.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.dataChanged=function(){this.isDisplayed=!0};
_.g.computeType=function(Y){return Y||"UNKNOWN"};
_.g.onYtServiceRequestCompleted=function(Y){Y.stopPropagation();this.isDisplayed=!1};
_.g.onClose=function(){this.isDisplayed=!1};
rT.prototype.onYtServiceRequestCompleted=rT.prototype.onYtServiceRequestCompleted;rT.prototype.dataChanged=rT.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],rT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rT.prototype,"data",void 0);
_.z([_.R({computed:"computeType(data.type)",reflectToAttribute:!0}),_.K("design:type",String)],rT.prototype,"type",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],rT.prototype,"isDisplayed",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rT.prototype,"dataChanged",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],rT.prototype,"onYtServiceRequestCompleted",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],rT);
_.a(rT,"ytd-alert-with-button-renderer",function(){if(MUQ!==void 0)return MUQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-alert-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-alert-with-button-renderer"></yt-formatted-string>\n<div id="buttons" class="style-scope ytd-alert-with-button-renderer">\n  <div id="button" class="style-scope ytd-alert-with-button-renderer"></div>\n  <div id="dismiss-button" on-click="onClose" class="style-scope ytd-alert-with-button-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return MUQ=Y},{mode:1});var zm=function(){var Y=_.F.apply(this,arguments)||this;Y.noResult=!1;Y.enableAlertBanner=!1;Y.dismissedAlertBanner=!1;Y.hideCreateChannelButton=!1;Y.boundDismissAlertBanner=function(){Y.dismissAlertBanner()};
Y.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return Y};
_.P(zm,_.F);_.g=zm.prototype;_.g.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.g.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.g.updateChannelSwitcherAction=function(Y){var b;Y=(b=_.v(Y,Hj_))==null?void 0:b.page;_.v(Y,Vxj)!==void 0&&(this.data=_.v(Y,Vxj))};
_.g.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]]"}}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.g.searchQueryChanged=function(Y,b){if(this.data&&this.data.contents&&this.data.contents.length){Y=[];var w=[];this.hideCreateChannelButton=this.noResult=!1;for(var V=document.querySelectorAll("ytd-account-item-renderer"),H=_.N(V),f=H.next();!f.done;f=H.next())f=f.value,w.push(f),f.style.display="block";this.resetRightBorder(w);if(b){this.hideCreateChannelButton=!0;for(w=1;w<this.data.contents.length;w++)if(f=this.data.contents[w],_.v(f,qdk)){var E=void 0,U=void 0;H=(E=_.v(f,qdk))==null?void 0:(U=
E.accountName)==null?void 0:U.simpleText;U=E=void 0;f=(E=_.v(f,qdk))==null?void 0:(U=E.channelHandle)==null?void 0:U.simpleText;(E=V[w-1])&&H&&_.Xu(H,b)?Y.push(E):_.q("enable_handle_search_on_channel_switcher")&&E&&f&&_.Xu(f.toString(),b.toString())?Y.push(E):E.style.display="none"}Y.length===0&&(this.noResult=!0);this.resetRightBorder(Y)}}};
_.g.resetRightBorder=function(Y){for(var b=0;b<Y.length;b++)Y[b].style.borderRight=!this.hideCreateChannelButton&&(b+2)%3===0||this.hideCreateChannelButton&&(b+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.g.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.g.setShowSearchBox=function(Y){if(Y&&Y.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var b=0;b<Y.contents.length;b++)_.v(Y.contents[b],_.cK)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.g.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.up.Object.defineProperties(zm.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.contents)}}});
zm.prototype.onContinuationItemsUpdated=zm.prototype.onContinuationItemsUpdated;zm.prototype.searchQueryChanged=zm.prototype.searchQueryChanged;zm.prototype.onDataChanged=zm.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],zm.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],zm.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zm.prototype,"data",void 0);_.z([_.xZ("ytd-channel-switcher-header-renderer"),_.K("design:type",Object)],zm.prototype,"channelSwitcherHeaderRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],zm.prototype,"noResult",void 0);
_.z([_.R(),_.K("design:type",Object)],zm.prototype,"enableAlertBanner",void 0);_.z([_.R(),_.K("design:type",Object)],zm.prototype,"dismissedAlertBanner",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],zm.prototype,"hideCreateChannelButton",void 0);_.z([_.t("data.contents"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],zm.prototype,"isLoading",null);_.z([_.R(),_.K("design:type",Object)],zm.prototype,"boundDismissAlertBanner",void 0);
_.z([_.R({computed:"computeButtonOverride()"}),_.K("design:type",Object)],zm.prototype,"buttonOverride",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zm.prototype,"onDataChanged",null);_.z([_.kZ("search-query-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],zm.prototype,"searchQueryChanged",null);
_.z([_.kZ("yt-next-continuation-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],zm.prototype,"onContinuationItemsUpdated",null);_.z([_.S({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],zm);
_.a(zm,"ytd-channel-switcher-page-renderer",function(){if(nYk!==void 0)return nYk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-page-renderer"></div>\n<div id="body" class="style-scope ytd-channel-switcher-page-renderer">\n  <div class="spinner-container style-scope ytd-channel-switcher-page-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-switcher-page-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n  <div id="alert" hidden="[[!enableAlertBanner]]" class="style-scope ytd-channel-switcher-page-renderer">\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-channel-switcher-page-renderer"></yt-formatted-string>\n      <div id="dismiss-button" class="style-scope ytd-channel-switcher-page-renderer"></div>\n  </div>\n  <div id="contents" class="style-scope ytd-channel-switcher-page-renderer"></div>\n</div>\n<yt-formatted-string id="no-result" hidden="[[!noResult]]" text="[[data.noResult]]" class="style-scope ytd-channel-switcher-page-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return nYk=Y},{mode:1});var evo;var p_U;var Wd=function(){var Y=_.F.apply(this,arguments)||this;Y.images=[];Y.selectedImageIndex=0;return Y};
_.P(Wd,_.F);_.g=Wd.prototype;
_.g.ready=function(){_.ez(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.ez(this.JSC$13554_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.ez(this.JSC$13554_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.ez(this.JSC$13554_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.g.onThumbnailClick=function(Y){if(Y=Y.event_.detail)this.selectedImageIndex=this.images.indexOf(Y)};
_.g.updateImageThumbnails=function(Y){Y=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:Y.event_.detail});this.images.splice(this.selectedImageIndex,1,Y);this.images=[].concat(_.Bt(this.images))};
_.g.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Ua(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.g.saveImageRepositions=function(){this.selectedImageIndex=0;_.Ua(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.up.Object.defineProperties(Wd.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var Y=this;return(this.images||[]).map(function(b,w){return{image:b,selected:w===Y.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("ytd-backstage-image-preview-renderer"),_.K("design:type",Object)],Wd.prototype,"JSC$13554_imagePreviewContainer",void 0);_.z([_.xZ(".thumbnail-images-container"),_.K("design:type",HTMLElement)],Wd.prototype,"thumbnailImagesContainer",void 0);_.z([_.R(),_.K("design:type",Array)],Wd.prototype,"images",void 0);
_.z([_.R(),_.K("design:type",Object)],Wd.prototype,"repositionInstructions",void 0);_.z([_.R(),_.K("design:type",Object)],Wd.prototype,"selectedImageIndex",void 0);_.z([_.t("images","selectedImageIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],Wd.prototype,"thumbnailRendererDatas",null);_.z([_.t("images","selectedImageIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wd.prototype,"selectedImageData",null);
_.z([_.S({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Wd);
_.a(Wd,"ytd-backstage-multi-image-reposition-renderer",function(){if(p_U!==void 0)return p_U;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-reposition-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="image-reposition-container style-scope ytd-backstage-multi-image-reposition-renderer">\n  <div class="thumbnail-images-container style-scope ytd-backstage-multi-image-reposition-renderer">\n    <template is="dom-repeat" items="[[thumbnailRendererDatas]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n      <div class="image-thumbnail style-scope ytd-backstage-multi-image-reposition-renderer">\n        <ytd-backstage-multi-image-thumbnail-renderer id="thumbnail-renderer" data="[[item]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n        </ytd-backstage-multi-image-thumbnail-renderer>\n      </div>\n    </template>\n  </div>\n  <div class="image-reposition style-scope ytd-backstage-multi-image-reposition-renderer">\n    <ytd-backstage-image-preview-renderer edit-only-mode="" image-data="[[selectedImageData]]" instruction="[[repositionInstructions]]" class="style-scope ytd-backstage-multi-image-reposition-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return p_U=Y},{mode:1});var K4=function(Y,b){_.n1.call(this);this.uploadUrl=Y;this.channelId=b;this.imagesUploadData=[]};
_.P(K4,_.n1);K4.prototype.getAllUploadStatuses=function(){var Y=this,b,w,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,Ofo(Y),2);b=H.yieldResult;w=b.get("succeed");V=b.get("failed");return H.return(w.concat(V))})};
var Rv9=function(Y){var b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Ofo(Y),2);b=V.yieldResult;w=b.get("failed");w.length>0&&tU$(Y,w);return V.return(Y.getAllUploadStatuses())})},Ofo=function(Y){var b,w,V,H,f,E,U;
return _.c(function(X){if(X.nextAddress==1)return b=new Map,_.D(X,Promise.allSettled(Y.imagesUploadData.map(function(I){return I.uploadPromise})),2);
w=X.yieldResult;V=[];H=_.N(w);for(f=H.next();!f.done;f=H.next())E=f.value,E.status==="fulfilled"&&V.push(E.value);U=Y.imagesUploadData.map(function(I){return I.image}).filter(function(I){return V.every(function(k){return k.id!==I.id})});
b.set("succeed",V);b.set("failed",U);return X.return(b)})},tU$=function(Y,b){b=_.N(b);
for(var w=b.next();!w.done;w=b.next()){var V=Y;w=w.value;dgt(V,w.id)>=0&&V.cancel(w.id);var H=new F8K(w),f=_.Ei9(V.uploadUrl,{"X-YouTube-ChannelId":V.channelId},w.imageBlob);H.transfer=f;H.uploadPromise=L8d(f,w);V.imagesUploadData.push(H);f.run()}};
K4.prototype.cancel=function(Y){var b=dgt(this,Y);b!==-1&&((b=this.imagesUploadData[b].transfer)&&b.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(w){return w.image.id!==Y}))};
var dgt=function(Y,b){return Y.imagesUploadData.findIndex(function(w){return w.image.id===b})},L8d=function(Y,b){return new Promise(function(w,V){Y.listen("l",function(){var H=Y.getResponseText();
H?(H=JSON.parse(H).encryptedBlobId,b.encryptedBlobId=H,w(b)):V("upload failed")});
Y.listen("n",function(){V("upload failed")})})},F8K=function(Y){this.image=Y};var rKB=function(Y,b,w,V,H){this.id=Y;this.imageBlob=b;this.localImageSrc=w;this.naturalWidth=V;this.naturalHeight=H;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 Spr=[".jpeg",".jpg",".png"],ig=function(){var Y=_.F.apply(this,arguments)||this;Y.showImagesPreview=!1;Y.pollOptions=[];Y.errorMessage="";Y.optionPlaceholderText="";Y.optionDefaultText="";Y.JSC$13565_imageId=0;Y.maxFileSizeMb=0;Y.maxAspectRatio=0;Y.invalidFileSizeError="";Y.invalidAspectRatioError="";Y.invalidFileTypeError="";Y.imageSelector=new hI(null,"single_file",Spr);return Y};
_.P(ig,_.F);_.g=ig.prototype;_.g.ready=function(){_.ez(this.imageSelector,"j",this.onImageSelect,!1,this);_.ez(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.ez(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.g.dataChanged=function(){var Y,b,w=_.v((Y=this.data)==null?void 0:(b=Y.cellTemplate)==null?void 0:b.onEmptyCellTap,wx9);if(w&&w.uploadUrl&&w.channelId){var V;this.maxFileSizeMb=((V=w.imageValidationInfo)==null?void 0:V.maxFileSizeMb)||0;var H;this.maxAspectRatio=((H=w.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0;var f;this.invalidFileSizeError=this.getSimpleString((f=this.data)==null?void 0:f.invalidFileSizeError);var E;this.invalidAspectRatioError=this.getSimpleString((E=this.data)==
null?void 0:E.invalidAspectRatioError);var U;this.invalidFileTypeError=this.getSimpleString((U=this.data)==null?void 0:U.invalidFileTypeError);this.uploadManager=new K4(w.uploadUrl,w.channelId)}};
_.g.onEditorInfoChange=function(){this.optionPlaceholderText=_.Tx(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Tx(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.g.observeAddImageError=function(){this.errorMessage!==""&&_.Ua(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.g.onPollOptionsChange=function(){for(var Y=!1,b=[],w=0;w<this.pollOptions.length;w++){var V=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(w+1);this.pollOptions[w].placeholderText!==V?(Y=!0,b.push(Object.assign({},this.pollOptions[w],{placeholderText:V}))):b.push(this.pollOptions[w])}Y&&(this.pollOptions=b);this.isValid()?_.Ua(this.hostElement,"yt-commentbox-post-enable"):_.Ua(this.hostElement,"yt-commentbox-post-disable")};
_.g.createPollOptions=function(Y){var b=[],w;Y=(w=Y==null?void 0:Y.minPollOptions)!=null?w:0;for(w=0;w<Y;w++)b.push(this.createPollOption());return b};
_.g.onImageSelect=function(Y){var b=this,w,V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1){if(b.selectedImageIndex===void 0)return X.jumpTo(0);w=Y.files[0];b.errorMessage="";V=b.validateImage(w);if(V!=="")return b.errorMessage=V,X.return();H=new JI(b.maxAspectRatio,!1,!0);return _.D(X,H.transform(w),3)}if(X.nextAddress!=4)return f=X.yieldResult,f.transformedData?f.invalidAspectRatio?(b.errorMessage=b.invalidAspectRatioError,X.return()):_.D(X,z_a(b.JSC$13565_imageId,Y.files[0],f.transformedData),
4):(b.errorMessage=b.invalidFileTypeError,X.return());E=X.yieldResult;b.JSC$13565_imageId++;tU$(b.uploadManager,[E]);U=Object.assign({},b.pollOptions[b.selectedImageIndex],{image:E});b.pollOptions.splice(b.selectedImageIndex,1,U);b.refreshPollOptions();_.Ua(b.hostElement,"yt-backstage-poll-image-select");_.om(X)})};
_.g.validateImage=function(Y){return Y.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.g.refreshPollOptions=function(){this.pollOptions=[].concat(_.Bt(this.pollOptions))};
_.g.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Bt(this.pollOptions),[this.createPollOption()]))};
_.g.onRemovePollOption=function(Y){var b=this.pollOptions[Y.model.index];b&&b.image&&this.uploadManager.cancel(b.image.id);this.pollOptions.splice(Y.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Ua(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.g.onTextInput=function(){this.refreshPollOptions()};
_.g.onImageButtonClick=function(Y){this.selectedImageIndex=Y.model.index;this.imageSelector.click()};
_.g.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.g.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.g.saveImageRepositions=function(Y){Y=Y.event_.detail;for(var b=0,w=[],V=_.N(this.pollOptions),H=V.next();!H.done;H=V.next())H=H.value,H.image!==void 0?(H=Object.assign({},H,{image:Y[b]}),w.push(H),b++):w.push(H);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Bt(w))};
_.g.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var Y=0,b=_.N(this.pollOptions),w=b.next();!w.done;w=b.next())if(w=w.value,w.optionText.trim()!==""||w.image!==void 0){if(!w.image||this.hasCustomOptionText&&w.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;Y++}return Y>=Number(this.editorInfo.minPollOptions)};
_.g.getAllUploadStatuses=function(){var Y=this,b,w,V,H;return _.c(function(f){if(f.nextAddress==1)return _.D(f,Y.uploadManager.getAllUploadStatuses(),2);b=f.yieldResult;w=_.N(b);for(V=w.next();!V.done;V=w.next())if(H=V.value,H.encryptedBlobId===void 0)return f.return(Rv9(Y.uploadManager));return f.return(b)})};
_.g.getPostCreateOptions=function(){for(var Y=[],b=_.N(this.pollOptions),w=b.next();!w.done;w=b.next())w=w.value,w.image!==void 0&&Y.push({text:this.hasCustomOptionText?w.optionText:w.placeholderText,image:w.image});return Y};
_.g.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.g.createButtonRenderer=function(Y,b){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleString(Y)}},isDisabled:b}};
_.g.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.g.computeThumbnailRendererData=function(Y){return Y?{image:Y,selected:!1}:void 0};
_.g.getSimpleString=function(Y){return _.Tx(Y)};
_.g.updateOptionTextFromBinding=function(Y){if(Y.target){var b=Array.from(_.E6(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(Y.target);if(b>=0){var w;this.pollOptions[b].optionText=(w=Y.detail.value)!=null?w:""}}};
_.up.Object.defineProperties(ig.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var Y,b;return this.pollOptions.length<((b=(Y=this.editorInfo)==null?void 0:Y.maxPollOptions)!=null?b:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(Y){return Y.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(Y){return Y.image}).map(function(Y){return Y.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(Y){return Y.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.data)==null?void 0:Y.addOptionButtonText;return b?this.createButtonRenderer(b,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.data)==null?void 0:Y.repositionImagesButtonLabel;return b?this.createButtonRenderer(b,!this.hasImages):void 0}}});
ig.prototype.onPollOptionsChange=ig.prototype.onPollOptionsChange;ig.prototype.observeAddImageError=ig.prototype.observeAddImageError;ig.prototype.onEditorInfoChange=ig.prototype.onEditorInfoChange;ig.prototype.dataChanged=ig.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ig.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("ytd-backstage-multi-image-reposition-renderer"),_.K("design:type",Object)],ig.prototype,"imageRepositionContainer",void 0);
_.z([_.R(),_.K("design:type",Object)],ig.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],ig.prototype,"editorInfo",void 0);_.z([_.R(),_.K("design:type",K4)],ig.prototype,"uploadManager",void 0);_.z([_.R(),_.K("design:type",Object)],ig.prototype,"showImagesPreview",void 0);_.z([_.R(),_.K("design:type",Array)],ig.prototype,"pollOptions",void 0);_.z([_.R(),_.K("design:type",Object)],ig.prototype,"errorMessage",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ig.prototype,"dataChanged",null);_.z([_.vX("editorInfo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ig.prototype,"onEditorInfoChange",null);_.z([_.lr("errorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ig.prototype,"observeAddImageError",null);
_.z([_.vX("pollOptions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ig.prototype,"onPollOptionsChange",null);_.z([_.t("pollOptions","editorInfo"),_.K("design:type",Object),_.K("design:paramtypes",[])],ig.prototype,"isAllowedToAddOption",null);_.z([_.t("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],ig.prototype,"hasImages",null);
_.z([_.t("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],ig.prototype,"imagesToReposition",null);_.z([_.t("pollOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],ig.prototype,"hasCustomOptionText",null);_.z([_.t("data","isAllowedToAddOption"),_.K("design:type",Object),_.K("design:paramtypes",[])],ig.prototype,"addOptionButton",null);_.z([_.t("data","hasImages"),_.K("design:type",Object),_.K("design:paramtypes",[])],ig.prototype,"repositionImagesButton",null);
_.z([_.S({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ig);
_.a(ig,"ytd-backstage-image-poll-editor-renderer",function(){if(evo!==void 0)return evo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-poll-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[showImagesPreview]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  <template is="dom-repeat" items="[[pollOptions]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n    <div class="poll-option style-scope ytd-backstage-image-poll-editor-renderer">\n      <div class="image-thumbnail-container style-scope ytd-backstage-image-poll-editor-renderer">\n        <div class="image-thumbnail style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!item.image]]">\n          <ytd-backstage-multi-image-thumbnail-renderer data="[[computeThumbnailRendererData(item.image)]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n          </ytd-backstage-multi-image-thumbnail-renderer>\n        </div>\n        <div class="image-select-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[item.image]]">\n          <yt-icon-button class="add-image-icon-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onImageButtonClick">\n            <yt-icon class="add-image-icon style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:image"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <tp-yt-paper-input-container class="poll-option-input style-scope ytd-backstage-image-poll-editor-renderer" no-label-float="">\n        <tp-yt-iron-autogrow-textarea class="paper-input-input poll-option-input-text style-scope ytd-backstage-image-poll-editor-renderer" slot="input" maxlength$="[[editorInfo.maxPollOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onTextInput" on-value-changed="updateOptionTextFromBinding">\n        </tp-yt-iron-autogrow-textarea>\n        <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-backstage-image-poll-editor-renderer"></tp-yt-paper-input-char-counter>\n      </tp-yt-paper-input-container>\n      <yt-icon-button class="remove-button style-scope ytd-backstage-image-poll-editor-renderer" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-backstage-image-poll-editor-renderer" icon="yt-icons:delete"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </template>\n  <div class="button-container style-scope ytd-backstage-image-poll-editor-renderer">\n    <yt-button-renderer class="add-option style-scope ytd-backstage-image-poll-editor-renderer" data="[[addOptionButton]]" on-click="onAddPollOption">\n    </yt-button-renderer>\n    <yt-button-renderer class="reposition-images style-scope ytd-backstage-image-poll-editor-renderer" data="[[repositionImagesButton]]" on-click="onRepositionImages">\n    </yt-button-renderer>\n  </div>\n</div>\n\n\n<div class="image-reposition-container style-scope ytd-backstage-image-poll-editor-renderer" hidden="[[!showImagesPreview]]">\n  <ytd-backstage-multi-image-reposition-renderer images="[[imagesToReposition]]" reposition-instructions="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-image-poll-editor-renderer">\n  </ytd-backstage-multi-image-reposition-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return evo=Y},{mode:2});var aO5={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 rGd;var A8=function(){var Y=_.F.apply(this,arguments)||this;Y.a11yConfig=aO5;Y.imageDisplayOffsetTop=0;Y.imageDisplayOffsetLeft=0;Y.pickerDisplayOffsetTop=0;Y.pickerDisplayOffsetLeft=0;Y.showPreviewContainer=!0;Y.startPicker=!1;Y.repositionOptional=!1;Y.editOnlyMode=!1;Y.savedImageDisplayOffsetTop=0;Y.savedImageDisplayOffsetLeft=0;return Y};
_.P(A8,_.F);_.g=A8.prototype;_.g.created=function(){_.Ci.requestAvailability()};
_.g.ready=function(){};
_.g.onArrowKeysDown=function(Y){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){Y.detail.keyboardEvent.preventDefault();var b=0,w=0,V="";switch(Y.detail.keyboardEvent.key){case "ArrowUp":WMg(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?V=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":WMg(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?V=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":WMg(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?V=this.a11yConfig.reachRightOfImage:w=this.imageWidth*.05*-1;break;case "ArrowRight":WMg(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?V=this.a11yConfig.reachLeftOfImage:w=this.imageWidth*.05}V&&_.sa(V)&&_.Ua(this.hostElement,"iron-announce",{text:_.sa(V)});if(w||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),Y=_.sa(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+w)),Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),Y=_.sa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})),Y&&_.Ua(this.hostElement,"iron-announce",{text:Y})}};
_.g.getPreviewPosition=function(Y,b,w,V){return Math.round(100*(Y+b*.5-w)/V)};
_.g.calculateDisplayPosition=function(){var Y=this.imageData.naturalWidth,b=this.imageData.naturalHeight;this.displayScale=Math.max(200/Y,200/b);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var w=Y*this.displayScale*this.imageData.previewCoordinates.left,V=b*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=b>Y?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-w;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=Y>b?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-V;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=Y*this.displayScale;this.imageHeight=b*this.displayScale};
_.g.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.g.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.g.getSignedPosition=function(Y,b,w){return b==="X"&&_.zO("HTML_DIR")==="rtl"?w==="-"?Y+"px":Y*-1+"px":w==="-"?Y*-1+"px":Y+"px"};
_.g.pickerMove=function(Y){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-Y.clientX,w=this.pickerOffsetY-Y.clientY;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
w)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.g.pickerMoveStart=function(Y){this.startPicker=!0;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY};
_.g.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var Y=this.generateCropPreview();Y&&_.Ua(this.hostElement,"ytd-backstage-image-preview-coordinates-update",Y)};
_.g.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Ua(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.g.deleteImage=function(){_.Ua(this.hostElement,"ytd-backstage-image-preview-delete")};
_.g.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.g.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var Y=this.generateCropPreview();Y&&_.Ua(this.hostElement,"ytd-backstage-image-preview-coordinates-save",Y)};
_.g.getPreviewOffset=function(Y,b,w){return b&&Y?(w==="X"&&_.zO("HTML_DIR")==="rtl"?300/b*Y:300/b*Y*-1)+"px":"0px"};
_.g.getSimpleText=function(Y){return Y?_.Tx(Y):""};
_.g.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}};
_.up.Object.defineProperties(A8.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.sa(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.sa(this.a11yConfig.verticalRepositionInstruction)}Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.sa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.sa(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.instruction)==null?void 0:(b=Y.previewInstruction)==null?void 0:b.editButtonLabel;return w?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H=this.editOnlyMode?(Y=this.instruction)==null?void 0:(b=Y.editInstruction)==null?void 0:b.saveImagesButtonLabel:(w=this.instruction)==null?void 0:(V=w.editInstruction)==null?void 0:V.saveButtonLabel;return H?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleText(H)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.instruction)==null?void 0:(b=Y.previewInstruction)==null?void 0:b.deleteButtonLabel;return w?{size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.instruction)==null?void 0:(b=Y.editInstruction)==null?void 0:b.cancelButtonLabel;Y=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return w?{style:Y,size:"SIZE_SMALL",text:w,accessibilityData:{accessibilityData:{label:this.getSimpleText(w)}}}: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"}}});
A8.prototype.onEditOnlyModeUpdate=A8.prototype.onEditOnlyModeUpdate;A8.prototype.onImageChange=A8.prototype.onImageChange;_.z([_.R(),_.K("design:type",rKB)],A8.prototype,"imageData",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"instruction",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"a11yConfig",void 0);_.z([_.R(),_.K("design:type",Number)],A8.prototype,"imageWidth",void 0);_.z([_.R(),_.K("design:type",Number)],A8.prototype,"imageHeight",void 0);
_.z([_.R(),_.K("design:type",Number)],A8.prototype,"displayScale",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"imageDisplayOffsetTop",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"imageDisplayOffsetLeft",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"pickerDisplayOffsetTop",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"pickerDisplayOffsetLeft",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"showPreviewContainer",void 0);
_.z([_.R(),_.K("design:type",Object)],A8.prototype,"startPicker",void 0);_.z([_.R(),_.K("design:type",Number)],A8.prototype,"pickerOffsetX",void 0);_.z([_.R(),_.K("design:type",Number)],A8.prototype,"pickerOffsetY",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"repositionOptional",void 0);_.z([_.R(),_.K("design:type",Object)],A8.prototype,"editOnlyMode",void 0);_.z([_.xZ("#picker-container"),_.K("design:type",HTMLElement)],A8.prototype,"JSC$13578_pickerContainer",void 0);
_.z([_.xZ("#picker"),_.K("design:type",HTMLElement)],A8.prototype,"picker",void 0);_.z([_.xZ("#preview-clipper"),_.K("design:type",HTMLElement)],A8.prototype,"previewClipper",void 0);_.z([_.xZ("#image-in-picker-background"),_.K("design:type",HTMLImageElement)],A8.prototype,"JSC$13578_imageInBackground",void 0);_.z([_.xZ("#image-in-picker"),_.K("design:type",HTMLImageElement)],A8.prototype,"JSC$13578_imageInPicker",void 0);
_.z([_.xZ("#image-in-preview-clipper"),_.K("design:type",HTMLImageElement)],A8.prototype,"JSC$13578_imageInPreviewClipper",void 0);_.z([_.t("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],A8.prototype,"altLabelForImage",null);_.z([_.t("imageHeight","imageWidth"),_.K("design:type",Number),_.K("design:paramtypes",[])],A8.prototype,"pickerSize",null);
_.z([_.t("imageHeight","imageWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],A8.prototype,"imageOrientationStyle",null);_.z([_.t("instruction"),_.K("design:type",Object),_.K("design:paramtypes",[])],A8.prototype,"editButton",null);_.z([_.t("instruction","editOnlyMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],A8.prototype,"saveButton",null);_.z([_.t("instruction"),_.K("design:type",Object),_.K("design:paramtypes",[])],A8.prototype,"deleteButton",null);
_.z([_.t("instruction","editOnlyMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],A8.prototype,"cancelButton",null);_.z([_.t("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.K("design:type",Number),_.K("design:paramtypes",[])],A8.prototype,"cropOffsetTop",null);_.z([_.t("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.K("design:type",Number),_.K("design:paramtypes",[])],A8.prototype,"cropOffsetLeft",null);
_.z([_.t("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],A8.prototype,"pickerBackgroundStyle",null);_.z([_.t("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],A8.prototype,"pickerDisplayStyle",null);_.z([_.t("cropOffsetLeft","cropOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],A8.prototype,"imageInPickerStyle",null);
_.z([_.t("cropOffsetLeft","cropOffsetTop","pickerSize"),_.K("design:type",String),_.K("design:paramtypes",[])],A8.prototype,"previewClipperStyle",null);_.z([_.vX("imageData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],A8.prototype,"onImageChange",null);_.z([_.vX("editOnlyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],A8.prototype,"onEditOnlyModeUpdate",null);
_.z([_.t("showPreviewContainer"),_.K("design:type",String),_.K("design:paramtypes",[])],A8.prototype,"pickerModeStyle",null);_.z([_.S({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],A8);
_.a(A8,"ytd-backstage-image-preview-renderer",function(){if(rGd!==void 0)return rGd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[pickerModeStyle]] style-scope ytd-backstage-image-preview-renderer">\n  <div id="preview-container" hidden="[[!showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="preview-clipper" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" style$="[[previewClipperStyle]]">\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="delete-button" data="[[deleteButton]]" on-click="deleteImage" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="edit-button" data="[[editButton]]" on-click="editCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n  <div id="edit-container" hidden="[[showPreviewContainer]]" class="style-scope ytd-backstage-image-preview-renderer">\n    <div id="picker-container" class="style-scope ytd-backstage-image-preview-renderer">\n      <img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" alt="[[altLabelForImage]]">\n      <div id="overlay" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope ytd-backstage-image-preview-renderer">\n      </div>\n      <div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope ytd-backstage-image-preview-renderer">\n        <img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope ytd-backstage-image-preview-renderer" src$="[[imageData.localImageSrc]]" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt="">\n      </div>\n    </div>\n    <div class="buttons-container style-scope ytd-backstage-image-preview-renderer">\n      <yt-button-renderer id="cancel-button" data="[[cancelButton]]" on-click="cancelReposition" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="save-button" data="[[saveButton]]" on-click="saveCropCoordinates" class="style-scope ytd-backstage-image-preview-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope ytd-backstage-image-preview-renderer">\n</iron-a11y-keys>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return rGd=Y},{mode:1});var zvd;var W8U={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 K8t;var ifk;var C4=function(){var Y=_.F.apply(this,arguments)||this;Y.a11yConfig=W8U;Y.imageDisplayOffsetTop=0;Y.imageDisplayOffsetLeft=0;Y.pickerDisplayOffsetTop=0;Y.pickerDisplayOffsetLeft=0;Y.cropCoordinatesSaved=!1;Y.previewSize=0;Y.startPicker=!1;Y.repositionOptional=!1;return Y};
_.P(C4,_.F);_.g=C4.prototype;_.g.created=function(){_.Ci.requestAvailability()};
_.g.ready=function(){};
_.g.onArrowKeysDown=function(Y){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){Y.detail.keyboardEvent.preventDefault();var b=0,w=0,V="";switch(Y.detail.keyboardEvent.key){case "ArrowUp":KMM(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?V=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":KMM(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?V=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":KMM(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?V=this.a11yConfig.reachRightOfImage:w=this.imageWidth*.05*-1;break;case "ArrowRight":KMM(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?V=this.a11yConfig.reachLeftOfImage:w=this.imageWidth*.05}V&&_.sa(V)&&_.Ua(this.hostElement,"iron-announce",{text:_.sa(V)});if(w||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),Y=_.sa(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+w)),Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),Y=_.sa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})),Y&&_.Ua(this.hostElement,"iron-announce",{text:Y})}};
_.g.getPreviewPosition=function(Y,b,w,V){return Math.round(100*(Y+b*.5-w)/V)};
_.g.displayImage=function(){var Y=this.JSC$13589_pickerContainer.getBoundingClientRect().width,b=this.JSC$13589_pickerContainer.getBoundingClientRect().height,w=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),V=this.JSC$13589_imageInBackground.naturalWidth,H=this.JSC$13589_imageInBackground.naturalHeight;this.displayScale=Math.max(w/V,w/H);this.imageWidth=V*this.displayScale;this.imageHeight=H*this.displayScale;this.pickerDisplayOffsetLeft=(Y-w)/2;this.pickerDisplayOffsetTop=
(b-w)/2;this.imageDisplayOffsetLeft=H>V?this.pickerDisplayOffsetLeft:(Y-this.imageWidth)/2;this.imageDisplayOffsetTop=V>H?this.pickerDisplayOffsetTop:(b-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.g.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13589_imageInBackground.src=this.imageData.toString(),this.JSC$13589_imageInPicker.src=this.imageData.toString(),this.JSC$13589_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.g.getSignedPosition=function(Y,b,w){return b==="X"&&_.zO("HTML_DIR")==="rtl"?w==="-"?Y+"px":Y*-1+"px":w==="-"?Y*-1+"px":Y+"px"};
_.g.pickerMove=function(Y){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-Y.clientX,w=this.pickerOffsetY-Y.clientY;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
w)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.g.pickerMoveStart=function(Y){this.startPicker=!0;this.pickerOffsetX=Y.clientX;this.pickerOffsetY=Y.clientY};
_.g.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.g.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Ua(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.g.getPreviewOffset=function(Y,b,w,V){return b&&Y&&w?(V==="X"&&_.zO("HTML_DIR")==="rtl"?w/b*Y:w/b*Y*-1)+"px":"0px"};
_.g.getSimpleText=function(Y){return Y?_.Tx(Y):""};
_.g.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var Y=this.cropOffsetTop/this.imageHeight,b=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,w=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,V=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.E6(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Ua(this.hostElement,"yt-img-crop-coordinates-update",{top:Y,right:b,bottom:w,left:V})}};
_.up.Object.defineProperties(C4.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var Y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.sa(this.a11yConfig.imageVerticalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.sa(this.a11yConfig.verticalRepositionInstruction)}Y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.sa(this.a11yConfig.imageHorizontalPosition,{x_percent:""+Y,y_percent:""+(100-Y)})+"\n"+_.sa(this.a11yConfig.horizontalRepositionInstruction)}},
pickerSize:{configurable:!0,enumerable:!0,get:function(){return this.imageHeight&&this.imageWidth?this.imageHeight>this.imageWidth?this.imageWidth:this.imageHeight:0}},
imageOrientationStyle:{configurable:!0,enumerable:!0,get:function(){if(this.imageHeight&&this.imageWidth)return this.imageHeight===this.imageWidth?"SQUARE":this.imageHeight>this.imageWidth?"PORTRAIT":"LANDSCAPE"}},
editButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.previewInstruction&&this.instruction.previewInstruction.editButtonLabel)return{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:this.instruction.previewInstruction.editButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.previewInstruction.editButtonLabel)}}}}},
saveButton:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction&&this.instruction.editInstruction.saveButtonLabel)return{style:"STYLE_PRIMARY",size:"SIZE_SMALL",text:this.instruction.editInstruction.saveButtonLabel,accessibilityData:{accessibilityData:{label:this.getSimpleText(this.instruction.editInstruction.saveButtonLabel)}}}}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,this.previewSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,this.previewSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.cropCoordinatesSaved?"preview":"edit"}},
learnMore:{configurable:!0,enumerable:!0,get:function(){if(this.instruction&&this.instruction.editInstruction)return this.instruction.editInstruction.learnMore}},
learnMoreUrl:{configurable:!0,enumerable:!0,get:function(){if(this.learnMore&&this.learnMore.runs&&this.learnMore.runs[0]){var Y,b=(Y=this.learnMore.runs[0])==null?void 0:Y.navigationEndpoint,w;return((w=_.v(b,_.Ah))==null?void 0:w.url)||void 0}}}});
C4.prototype.onImageDataChange=C4.prototype.onImageDataChange;_.z([_.R(),_.K("design:type",Object)],C4.prototype,"imageData",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"instruction",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"a11yConfig",void 0);_.z([_.R(),_.K("design:type",Number)],C4.prototype,"imageWidth",void 0);_.z([_.R(),_.K("design:type",Number)],C4.prototype,"imageHeight",void 0);_.z([_.R(),_.K("design:type",Number)],C4.prototype,"displayScale",void 0);
_.z([_.R(),_.K("design:type",Object)],C4.prototype,"imageDisplayOffsetTop",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"imageDisplayOffsetLeft",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"pickerDisplayOffsetTop",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"pickerDisplayOffsetLeft",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"cropCoordinatesSaved",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"previewSize",void 0);
_.z([_.R(),_.K("design:type",Object)],C4.prototype,"startPicker",void 0);_.z([_.R(),_.K("design:type",Number)],C4.prototype,"pickerOffsetX",void 0);_.z([_.R(),_.K("design:type",Number)],C4.prototype,"pickerOffsetY",void 0);_.z([_.R(),_.K("design:type",Object)],C4.prototype,"repositionOptional",void 0);_.z([_.xZ("#picker-container"),_.K("design:type",HTMLElement)],C4.prototype,"JSC$13589_pickerContainer",void 0);_.z([_.xZ("#picker"),_.K("design:type",HTMLElement)],C4.prototype,"picker",void 0);
_.z([_.xZ("#image-in-picker-background"),_.K("design:type",HTMLImageElement)],C4.prototype,"JSC$13589_imageInBackground",void 0);_.z([_.xZ("#image-in-picker"),_.K("design:type",HTMLImageElement)],C4.prototype,"JSC$13589_imageInPicker",void 0);_.z([_.xZ("#image-in-preview-clipper"),_.K("design:type",HTMLImageElement)],C4.prototype,"JSC$13589_imageInPreviewClipper",void 0);_.z([_.xZ("#full-image-as-preview"),_.K("design:type",HTMLImageElement)],C4.prototype,"imageAsPreview",void 0);
_.z([_.t("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],C4.prototype,"altLabelForImage",null);_.z([_.t("imageHeight","imageWidth"),_.K("design:type",Number),_.K("design:paramtypes",[])],C4.prototype,"pickerSize",null);_.z([_.t("imageHeight","imageWidth"),_.K("design:type",Object),_.K("design:paramtypes",[])],C4.prototype,"imageOrientationStyle",null);
_.z([_.t("instruction.previewInstruction.editButtonLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],C4.prototype,"editButton",null);_.z([_.t("instruction.editInstruction.saveButtonLabel"),_.K("design:type",Object),_.K("design:paramtypes",[])],C4.prototype,"saveButton",null);_.z([_.t("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.K("design:type",Number),_.K("design:paramtypes",[])],C4.prototype,"cropOffsetTop",null);
_.z([_.t("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.K("design:type",Number),_.K("design:paramtypes",[])],C4.prototype,"cropOffsetLeft",null);_.z([_.t("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],C4.prototype,"pickerBackgroundStyle",null);_.z([_.t("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],C4.prototype,"pickerDisplayStyle",null);
_.z([_.t("cropOffsetLeft","cropOffsetTop"),_.K("design:type",String),_.K("design:paramtypes",[])],C4.prototype,"imageInPickerStyle",null);_.z([_.t("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.K("design:type",String),_.K("design:paramtypes",[])],C4.prototype,"previewClipperStyle",null);_.z([_.lr("imageData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],C4.prototype,"onImageDataChange",null);
_.z([_.t("cropCoordinatesSaved"),_.K("design:type",String),_.K("design:paramtypes",[])],C4.prototype,"pickerModeStyle",null);_.z([_.t("instruction.editInstruction.learnMore"),_.K("design:type",Object),_.K("design:paramtypes",[])],C4.prototype,"learnMore",null);_.z([_.t("learnMore"),_.K("design:type",Object),_.K("design:paramtypes",[])],C4.prototype,"learnMoreUrl",null);_.z([_.FM({is:"yt-img-crop-picker",disableElementRegistration:!0})],C4);
_.a(C4,"yt-img-crop-picker",function(){if(ifk===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-img-crop-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_img_crop_picker.yt.img.crop.picker.css.js--\x3e<div id="left-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="picker-container" class="style-scope yt-img-crop-picker"><img id="image-in-picker-background" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[pickerBackgroundStyle]]" on-load="displayImage" tabindex="0" alt="[[altLabelForImage]]"><div id="overlay" hidden="[[cropCoordinatesSaved]]" on-mousemove="pickerMove" on-mousedown="pickerMoveStart" on-mouseup="pickerMoveComplete" on-mouseleave="pickerMoveComplete" class="style-scope yt-img-crop-picker"></div><div id="picker" style$="[[pickerDisplayStyle]]" class="style-scope yt-img-crop-picker"><img id="image-in-picker" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" width$="[[imageWidth]]" height$="[[imageHeight]]" style$="[[imageInPickerStyle]]" alt=""></div></div><div id="preview-container" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.previewDetails]]"></yt-formatted-string><div id="preview-clipper" class="style-scope yt-img-crop-picker"><img id="image-in-preview-clipper" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" style$="[[previewClipperStyle]]" alt="[[getSimpleText(instruction.previewInstruction.previewHeader)]]"></div><yt-button-renderer id="edit-button" data="[[editButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div></div><div id="right-container" class$="[[pickerModeStyle]] style-scope yt-img-crop-picker"><div id="edit-instruction" hidden="[[cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.editInstruction.header]]"></yt-formatted-string><div class="details style-scope yt-img-crop-picker"><yt-formatted-string text="[[instruction.editInstruction.details]]" class="style-scope yt-img-crop-picker"></yt-formatted-string></div><div class="details style-scope yt-img-crop-picker" id="learnmore-text"><a class="yt-simple-endpoint style-scope yt-img-crop-picker" target="_blank" href$="[[learnMoreUrl]]"><span class="style-scope yt-img-crop-picker">[[getSimpleText(learnMore)]]</span><yt-icon id="open-in-new" icon="yt-icons:open_in_new" class="style-scope yt-img-crop-picker"></yt-icon></a></div></div><yt-button-renderer id="save-button" data="[[saveButton]]" on-tap="saveCropCoordinates" class="style-scope yt-img-crop-picker"></yt-button-renderer></div><div id="preview-instruction" hidden="[[!cropCoordinatesSaved]]" class="style-scope yt-img-crop-picker"><div class="instruction-container style-scope yt-img-crop-picker"><yt-formatted-string class="header style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageHeader]]"></yt-formatted-string><yt-formatted-string class="details style-scope yt-img-crop-picker" text="[[instruction.previewInstruction.fullImageDetails]]"></yt-formatted-string></div><div id="full-image-container" class="style-scope yt-img-crop-picker"><img id="full-image-as-preview" class$="[[imageOrientationStyle]] style-scope yt-img-crop-picker" alt="[[getSimpleText(instruction.previewInstruction.fullImageHeader)]]"></div></div></div><iron-a11y-keys keys="up down left right" target="[[keyboardInterfaceTarget]]" on-keys-pressed="onArrowKeysDown" class="style-scope yt-img-crop-picker"></iron-a11y-keys>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;K8t===void 0&&(K8t=document.createElement("template"));var V=K8t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ifk=Y}Y=ifk;return Y},{mode:2});var yg=function(){var Y=_.F.apply(this,arguments)||this;Y.errorMessage="";Y.hasPreview=!1;Y.isBackstagePost=!1;Y.dismissButtonOverrides={size:"XS"};return Y};
_.P(yg,_.F);_.g=yg.prototype;_.g.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"}}}};
_.g.detached=function(){this.removeOverlay()};
_.g.setPreview=function(Y){_.E6(this.hostElement).querySelector("#preview-picker").imageData=Y;this.hasPreview=!0;_.Ua(this.hostElement,"yt-backstage-image-select-preview")};
_.g.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var Y=_.E6(this.hostElement).querySelector("#dropzone");Y.classList.remove("dragover");Y.classList.remove("error");_.Ua(this.hostElement,"yt-backstage-image-select-cancel")};
_.g.setupOverlay=function(){var Y=this.imageUploadEndpoint;this.removeOverlay();if(Y&&Y.imageValidationInfo){var b=_.E6(this.hostElement).querySelector("#dropzone"),w=_.E6(this.hostElement).querySelector("#select");this.overlay=new YV(Y.uploadUrl,Y.channelId,Y.imageValidationInfo.maxFileSizeMb,Y.imageValidationInfo.allowedMaxAspectRatio,b,w,!0);_.ez(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.ez(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.ez(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.ez(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.ez(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.g.removeOverlay=function(){this.overlay&&(_.BV(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.BV(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.BV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.BV(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.BV(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.g.onDragOver=function(Y){var b=_.E6(this.hostElement).querySelector("#dropzone");_.U6(b,"dragover",Y.value)};
_.g.onPreview=function(Y){this.setPreview(Y.value)};
_.g.onImageError=function(Y){if(Y.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var b;Y=(b=this.data)==null?void 0:b.fileSizeError}else if(Y.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var w;Y=(w=this.data)==null?void 0:w.invalidError}else if(Y.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var V;Y=(V=this.data)==null?void 0:V.invalidAspectRatioError}else return;this.errorMessage=_.Tx(Y);_.E6(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.g.onImageAlert=function(Y){this.onImageError(Y)};
_.g.uploadPromise=function(){var Y=this,b=this.overlay&&this.overlay.uploadPromise();if(b)return b.catch(function(){throw Error(Y.data?_.Tx(Y.data.uploadFailureError):"");})};
_.up.Object.defineProperties(yg.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var Y,b;if((Y=this.data)==null?0:(b=Y.icon)==null?0:b.iconType)return _.IR(this.data.icon.iconType)}}});
yg.prototype.setupOverlay=yg.prototype.setupOverlay;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],yg.prototype,"rendererStamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yg.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],yg.prototype,"imageUploadEndpoint",void 0);_.z([_.R(),_.K("design:type",Object)],yg.prototype,"errorMessage",void 0);
_.z([_.R(),_.K("design:type",YV)],yg.prototype,"overlay",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yg.prototype,"hasPreview",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yg.prototype,"isBackstagePost",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],yg.prototype,"selectionCancel",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],yg.prototype,"previewCancel",null);
_.z([_.t("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],yg.prototype,"icon",null);_.z([_.R(),_.K("design:type",Object)],yg.prototype,"dismissButtonOverrides",void 0);_.z([_.lr("imageUploadEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yg.prototype,"setupOverlay",null);_.z([_.S({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],yg);
_.a(yg,"ytd-backstage-image-select-renderer",function(){if(zvd!==void 0)return zvd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dropzone" hidden="[[hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-icon id="drop-icon" icon="[[icon]]" class="style-scope ytd-backstage-image-select-renderer"></yt-icon>\n  <span id="prompt" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <div id="select" class="style-scope ytd-backstage-image-select-renderer"></div>\n  <div class="messages style-scope ytd-backstage-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-image-select-renderer">\n      [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n<div id="image-preview" hidden="[[!hasPreview]]" class="style-scope ytd-backstage-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-image-select-renderer" on-tap="cancel"></div>\n  <yt-img-crop-picker id="preview-picker" instruction="[[data.imagePreviewSelectMetadata]]" reposition-optional="true" class="style-scope ytd-backstage-image-select-renderer">\n  </yt-img-crop-picker>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return zvd=Y},{mode:1});var AG$;var Csk;var $J=function(){var Y=_.F.apply(this,arguments)||this;Y.selected=!1;return Y};
_.P($J,_.F);_.g=$J.prototype;_.g.computeSelected=function(Y){return Y==null?void 0:Y.selected};
_.g.computeTransform=function(Y,b,w){var V,H,f=(H=(V=this.imageContainer)==null?void 0:V.getBoundingClientRect())!=null?H:{width:0,height:0};V=Math.max(f.width/b,f.height/w);w=w*V*Y.top;return"translateX("+this.getSignedPosition(b*V*Y.left,"X","-")+") translateY("+this.getSignedPosition(w,"Y","-")+")"};
_.g.getSignedPosition=function(Y,b,w){return b==="X"&&_.zO("HTML_DIR")==="rtl"?w==="-"?Y+"px":Y*-1+"px":w==="-"?Y*-1+"px":Y+"px"};
_.g.onClick=function(){var Y;_.Ua(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(Y=this.data)==null?void 0:Y.image)};
_.g.onKeyPress=function(Y){if(Y.keyCode===13)this.onClick()};
_.up.Object.defineProperties($J.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.image)==null?void 0:b.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.image){var b;Y=(b=this.data)==null?void 0:b.image;return Y.previewCoordinates.top!==0||Y.previewCoordinates.left!==0?(b=this.computeTransform(Y.previewCoordinates,Y.naturalWidth,Y.naturalHeight),Y.naturalHeight>=Y.naturalWidth?"width:inherit;transform:"+b+";":"height:inherit;transform:"+b+";"):Y.naturalHeight>=Y.naturalWidth?"width:inherit;":"height:inherit;"}}}});
$J.prototype.onKeyPress=$J.prototype.onKeyPress;_.z([_.xZ(".image-container"),_.K("design:type",HTMLElement)],$J.prototype,"imageContainer",void 0);_.z([_.R(),_.K("design:type",Object)],$J.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.K("design:type",Object)],$J.prototype,"selected",void 0);_.z([_.t("data.image"),_.K("design:type",Object),_.K("design:paramtypes",[])],$J.prototype,"thumbnailUrl",null);
_.z([_.t("data.image","data.image.previewCoordinates"),_.K("design:type",Object),_.K("design:paramtypes",[])],$J.prototype,"thumbnailStyle",null);_.z([_.kZ("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],$J.prototype,"onKeyPress",null);_.z([_.S({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],$J);
_.a($J,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Csk!==void 0)return Csk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-backstage-multi-image-thumbnail-renderer">\n  <div class="image-container style-scope ytd-backstage-multi-image-thumbnail-renderer" role="button" tabindex="0" on-click="onClick">\n    <img class="thumbnail-image style-scope ytd-backstage-multi-image-thumbnail-renderer" style$="[[thumbnailStyle]]" src$="[[thumbnailUrl]]" alt="">\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Csk=Y},{mode:2});var jR=function(Y,b,w){w=w===void 0?!1:w;_.n1.call(this);var V=this;this.dropZoneOverlay=new lG(Y);this.selectOverlay=w?new hI(b,"multiple_file",["image/*"]):new hI(b,"single_file",["image/*"]);this.handler=new _.fM(this);_.os(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(b,"click",function(){V.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.P(jR,_.n1);jR.prototype.onChange=function(Y){var b;(b=Y.files)!=null&&b.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:Y.files}))};var Gm=function(){var Y=_.F.apply(this,arguments)||this;Y.addImageErrorMessage="";Y.errorMessage="";Y.images=[];Y.selectedImageIndex=0;Y.modern=_.q("web_modern_buttons");Y.maxNumImagesPerPost=_.cQ("max_num_images_per_post_web_ui");Y.JSC$13604_imageId=0;return Y};
_.P(Gm,_.F);_.g=Gm.prototype;_.g.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Ua(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.g.observeDragToReorder=function(){var Y=this;if(this.showImagesPreview){var b,w=NiI(_.gW.getInstance(),(b=this.data)==null?void 0:b.dragToReorderTooltip);_.Lb.addLowPriorityJob(function(){_.IP(Y.hostElement,w,Y.thumbnailDragDropArea)})}};
_.g.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}}};
_.g.computeThumbnail=function(Y){return(Y==null?void 0:Y.localImageSrc)||void 0};
_.g.onRendererstamperFinished=function(){_.jp_(this.ytReorderableBehavior,_.E6(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.E6(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.g.handleDrop=function(Y){var b=Y.currDragItem;if(b!=null&&b.data){Y=this.images[this.selectedImageIndex];var w=b.data.image,V=this.images.indexOf(w)||0;b=_.zK(b.parentNode.children,b);this.images.splice(V,1);this.images.splice(b,0,w);this.images=[].concat(_.Bt(this.images));this.selectedImageIndex=this.images.indexOf(Y)}};
_.g.setUpImagePicker=function(){var Y=this.imageUploadEndpoint;Y&&Y.imageValidationInfo&&(this.uploadManager=new K4(Y.uploadUrl,Y.channelId),this.initialPicker||(this.initialPicker=new jR(this.dropzone,this.selectLink,!0),_.ez(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new jR(this.addImageButtonContainer,this.addImageSelectButton),_.ez(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.ez(this.JSC$13604_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.ez(this.JSC$13604_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.ez(_.E6(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.g.detached=function(){this.initialPicker&&(_.BV(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.BV(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.g.onInitialSelectImages=function(Y){var b=this;return _.c(function(w){return _.D(w,b.onSelectImages(Y,!1),0)})};
_.g.onAddImage=function(Y){var b=this;return _.c(function(w){return _.D(w,b.onSelectImages(Y,!0),0)})};
_.g.onSelectImages=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G;return _.c(function(Nr){switch(Nr.nextAddress){case 1:b?w.addImageErrorMessage="":(w.images=[],w.errorMessage="");V=Y.detail;H=w.validateImages([].concat(_.Bt(V)));if(H!=="")return b?w.addImageErrorMessage=H:w.errorMessage=H,Nr.return();f=[].concat(_.Bt(V)).map(function(o6){return(new JI(w.maxAspectRatio,!1,!0)).transform(o6)});
return _.D(Nr,Promise.allSettled(f),2);case 2:E=Nr.yieldResult,U=_.N(E.entries()),X=U.next();case 3:if(X.done){Nr.jumpTo(5);break}I=X.value;k=_.N(I);l=k.next().value;x=k.next().value;Q=l;Z=x;if(Z.status!=="fulfilled"){L=O=e=void 0;b?w.addImageErrorMessage=_.Tx((e=w.data)==null?void 0:e.invalidError):w.errorMessage=w.errorMessage===""?_.Tx((O=w.data)==null?void 0:O.invalidError):_.Tx((L=w.data)==null?void 0:L.multiFileError);Nr.jumpTo(4);break}r=Z.value;r.cropped&&_.Ua(w.hostElement,"yt-backstage-multi-image-cropped");
if(r.invalidAspectRatio){y=W=C=void 0;b?w.addImageErrorMessage=_.Tx((C=w.data)==null?void 0:C.invalidAspectRatioError):w.errorMessage=w.errorMessage===""?_.Tx((W=w.data)==null?void 0:W.invalidAspectRatioError):_.Tx((y=w.data)==null?void 0:y.multiFileError);Nr.jumpTo(4);break}return _.D(Nr,z_a(w.JSC$13604_imageId,Y.detail[Q],r.transformedData),8);case 8:G=Nr.yieldResult,w.images.push(G),w.JSC$13604_imageId++;case 4:X=U.next();Nr.jumpTo(3);break;case 5:if(w.errorMessage!==""||w.addImageErrorMessage!==
"")return Nr.return();b?tU$(w.uploadManager,[w.images[w.images.length-1]]):tU$(w.uploadManager,w.images);w.images=[].concat(_.Bt(w.images));w.selectedImageIndex=b?Math.max(w.images.length-1,0):0;_.Ua(w.hostElement,"yt-backstage-multi-image-select");_.om(Nr)}})};
_.g.onThumbnailClick=function(Y){if(Y=Y.event_.detail)this.selectedImageIndex=this.images.indexOf(Y)};
_.g.validateImages=function(Y){if(Y.length>this.maxNumImagesPerPost){var b;return _.Tx((b=this.data)==null?void 0:b.multiImageExceedMaxImageCountError)}var w=1048576*this.maxFileSizeMb;Y=Y.filter(function(f){return f.size>w}).length;
if(Y===0)return"";var V,H;Y=Y>1?(V=this.data)==null?void 0:V.multiFileError:(H=this.data)==null?void 0:H.fileSizeError;return _.Tx(Y)};
_.g.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Bt(this.images));this.selectedImageIndex=0};
_.g.repositionImage=function(Y){this.images[this.selectedImageIndex].previewCoordinates=Y.event_.detail;this.images=[].concat(_.Bt(this.images))};
_.g.getAllUploadStatuses=function(){var Y=this,b,w,V,H;return _.c(function(f){if(f.nextAddress==1)return _.D(f,Y.uploadManager.getAllUploadStatuses(),2);b=f.yieldResult;w=_.N(b);for(V=w.next();!V.done;V=w.next())if(H=V.value,H.encryptedBlobId===void 0)return f.return(Rv9(Y.uploadManager));return f.return(b)})};
_.g.hasImages=function(){return this.images.length>0};
_.g.cancel=function(){for(var Y=this.uploadManager,b=_.N(Y.imagesUploadData),w=b.next();!w.done;w=b.next())Y.cancel(w.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Ua(this.hostElement,"yt-backstage-multi-image-cancel")};
_.up.Object.defineProperties(Gm.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.imageUploadEndpoint)==null?void 0:(b=Y.imageValidationInfo)==null?void 0:b.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.imageUploadEndpoint)==null?void 0:(b=Y.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var Y,b;if((Y=this.data)==null?0:(b=Y.icon)==null?0:b.iconType)return _.IR(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=this.maxNumImagesPerPost}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var Y=this;return(this.images||[]).map(function(b,w){return{renderer:{image:b,selected:w===Y.selectedImageIndex}}})}}});
Gm.prototype.setUpImagePicker=Gm.prototype.setUpImagePicker;Gm.prototype.onRendererstamperFinished=Gm.prototype.onRendererstamperFinished;Gm.prototype.observeDragToReorder=Gm.prototype.observeDragToReorder;Gm.prototype.observeAddImageError=Gm.prototype.observeAddImageError;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Gm.prototype,"rendererStamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.GBj),_.K("design:type",Object)],Gm.prototype,"ytReorderableBehavior",void 0);_.z([_.xZ("#dropzone"),_.K("design:type",HTMLElement)],Gm.prototype,"dropzone",void 0);_.z([_.xZ("#select-link"),_.K("design:type",HTMLElement)],Gm.prototype,"selectLink",void 0);_.z([_.xZ("#thumbnail-drag-drop-area"),_.K("design:type",HTMLElement)],Gm.prototype,"thumbnailDragDropArea",void 0);_.z([_.xZ("#add-image-button-container"),_.K("design:type",HTMLElement)],Gm.prototype,"addImageButtonContainer",void 0);
_.z([_.xZ("#add-image-button"),_.K("design:type",HTMLElement)],Gm.prototype,"addImageSelectButton",void 0);_.z([_.xZ("#image-preview-container"),_.K("design:type",Object)],Gm.prototype,"JSC$13604_imagePreviewContainer",void 0);_.z([_.R(),_.K("design:type",Object)],Gm.prototype,"addImageErrorMessage",void 0);_.z([_.R(),_.K("design:type",Object)],Gm.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Gm.prototype,"errorMessage",void 0);
_.z([_.R(),_.K("design:type",Object)],Gm.prototype,"imageUploadEndpoint",void 0);_.z([_.R(),_.K("design:type",Array)],Gm.prototype,"images",void 0);_.z([_.R(),_.K("design:type",jR)],Gm.prototype,"initialPicker",void 0);_.z([_.R(),_.K("design:type",jR)],Gm.prototype,"addImagePicker",void 0);_.z([_.R(),_.K("design:type",K4)],Gm.prototype,"uploadManager",void 0);_.z([_.R(),_.K("design:type",Object)],Gm.prototype,"selectedImageIndex",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gm.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gm.prototype,"maxNumImagesPerPost",void 0);_.z([_.t("imageUploadEndpoint"),_.K("design:type",Number),_.K("design:paramtypes",[])],Gm.prototype,"maxAspectRatio",null);_.z([_.t("imageUploadEndpoint"),_.K("design:type",Number),_.K("design:paramtypes",[])],Gm.prototype,"maxFileSizeMb",null);
_.z([_.t("data.icon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gm.prototype,"dropIcon",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gm.prototype,"selectionCancel",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gm.prototype,"previewCancel",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gm.prototype,"dataForAddImageButton",null);
_.z([_.t("errorMessage"),_.K("design:type",String),_.K("design:paramtypes",[])],Gm.prototype,"dropzoneClass",null);_.z([_.t("images"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Gm.prototype,"showImagesPreview",null);_.z([_.t("images"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Gm.prototype,"containMaxImages",null);_.z([_.lr("addImageErrorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gm.prototype,"observeAddImageError",null);
_.z([_.lr("showImagesPreview"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gm.prototype,"observeDragToReorder",null);_.z([_.t("images","selectedImageIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gm.prototype,"selectedImageData",null);_.z([_.t("images","selectedImageIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],Gm.prototype,"thumbnailRenderers",null);
_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gm.prototype,"onRendererstamperFinished",null);_.z([_.lr("imageUploadEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gm.prototype,"setUpImagePicker",null);_.z([_.S({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Gm);
_.a(Gm,"ytd-backstage-multi-image-select-renderer",function(){if(AG$!==void 0)return AG$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-multi-image-select-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="dropzone" class$="[[dropzoneClass]] style-scope ytd-backstage-multi-image-select-renderer" hidden="[[showImagesPreview]]">\n  <div id="selection-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="drop-icon-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <yt-icon id="drop-icon" icon="[[dropIcon]]" class="style-scope ytd-backstage-multi-image-select-renderer"></yt-icon>\n  </div>\n  <span id="prompt" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.dragLabel)]]</span>\n  <a id="select-link" class="style-scope ytd-backstage-multi-image-select-renderer">\n     [[getSimpleString(data.selectButton)]]\n  </a>\n  <div class="messages style-scope ytd-backstage-multi-image-select-renderer">\n    <span id="aspect-ratio-message" class="style-scope ytd-backstage-multi-image-select-renderer">\n       [[getSimpleString(data.aspectRatioRequirement)]]\n    </span>\n    <span id="license-text" class="style-scope ytd-backstage-multi-image-select-renderer">[[getSimpleString(data.licenseText)]]</span>\n    <span id="error-message" hidden="[[!errorMessage]]" class="style-scope ytd-backstage-multi-image-select-renderer">[[errorMessage]]</span>\n  </div>\n</div>\n\n\n<div id="multi-image-container" hidden="[[!showImagesPreview]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n  <div id="preview-cancel-button" class="cancel style-scope ytd-backstage-multi-image-select-renderer" on-click="cancel"></div>\n  <div id="thumbnail-images-container" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <div id="thumbnail-drag-drop-area" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    <div id="add-image-button-container" hidden="[[containMaxImages]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n       <div id="add-image-button" class="style-scope ytd-backstage-multi-image-select-renderer"></div>\n    </div>\n  </div>\n  <div id="preview" class="style-scope ytd-backstage-multi-image-select-renderer">\n    <ytd-backstage-image-preview-renderer id="image-preview-container" image-data="[[selectedImageData]]" instruction="[[data.imagePreviewSelectMetadata]]" class="style-scope ytd-backstage-multi-image-select-renderer">\n    </ytd-backstage-image-preview-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return AG$=Y},{mode:1});var yGk;var $gk;var jeC;var Tm=function(){var Y=_.F.apply(this,arguments)||this;Y.boundCaptureFocus=function(b){Y.onCaptureFocus(b)};
return Y};
_.P(Tm,_.F);_.g=Tm.prototype;_.g.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.g.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.g.onCaptureFocus=function(Y){_.JL(Y).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.g.getIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.g.onSelect=function(){var Y;if((Y=this.data)==null?0:Y.onSelectCommand)if(_.q("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var b;((b=_.v(this.data.onSelectCommand.commandMetadata,_.g5))==null?0:b.url)?_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.fH().resolve(_.Nn).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.up.Object.defineProperties(Tm.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Tx(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}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Tm.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Tm.prototype,"data",void 0);_.z([_.xZ("#item"),_.K("design:type",HTMLElement)],Tm.prototype,"item",void 0);_.z([_.t("data.label"),_.K("design:type",String),_.K("design:paramtypes",[])],Tm.prototype,"label",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Tm.prototype,"value",null);_.z([_.S({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Tm);
_.a(Tm,"ytd-privacy-dropdown-item-renderer",function(){if(jeC!==void 0)return jeC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-privacy-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" on-click="onSelect" class="style-scope ytd-privacy-dropdown-item-renderer">\n  <yt-icon id="dropdown-icon" hidden="[[!data.icon.iconType]]" icon="[[getIconType(data.icon.iconType)]]" class="style-scope ytd-privacy-dropdown-item-renderer">\n  </yt-icon>\n  <tp-yt-paper-item-body two-line="" class="style-scope ytd-privacy-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-privacy-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item-body>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return jeC=Y},{mode:1});var J8=function(){var Y=_.F.apply(this,arguments)||this;Y.value="";Y.label="";Y.disabled=!1;return Y};
_.P(J8,_.F);_.g=J8.prototype;_.g.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"}}}};
_.g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.g.dataChanged=function(){this.reset()};
_.g.valueChanged=function(){var Y;if(this.value&&(Y=this.data)!=null&&Y.entries){Y=_.N(this.data.entries);for(var b=Y.next();!b.done;b=Y.next())if((b=this.getRendererForEntry(b.value))&&this.getItemRendererValue(b)===this.value){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}}};
_.g.setInitialLabel=function(){if(this.data&&this.data.entries)for(var Y=_.N(this.data.entries),b=Y.next();!b.done;b=Y.next())if(b=this.getRendererForEntry(b.value)){if(b.isSelected){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}this.data.label&&(this.label=this.data.label)}};
_.g.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var Y=_.N(this.data.entries),b=Y.next();!b.done;b=Y.next()){b=this.getRendererForEntry(b.value);var w=void 0;if((w=b)==null?0:w.isSelected)return this.getItemRendererValue(b)||-1}return-1};
_.g.getItemRendererValue=function(Y){return"stringValue"in Y||"int32Value"in Y?Y.stringValue||Y.int32Value||null:null};
_.g.getRendererForEntry=function(Y){return Y.dropdownItemRenderer||Y.privacyDropdownItemRenderer||Y.navigationDropdownItemRenderer||null};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("value-changed",this.value))};
_.g.updateValueFromBinding=function(Y){this.value=Y.detail.value};
J8.prototype.valueChangedForBinding=J8.prototype.valueChangedForBinding;J8.prototype.valueChanged=J8.prototype.valueChanged;J8.prototype.dataChanged=J8.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],J8.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],J8.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],J8.prototype,"value",void 0);_.z([_.R(),_.K("design:type",Object)],J8.prototype,"label",void 0);_.z([_.xZ("#entries"),_.K("design:type",Object)],J8.prototype,"entries",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],J8.prototype,"disabled",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J8.prototype,"dataChanged",null);
_.z([_.vX("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J8.prototype,"valueChanged",null);_.z([_.lr("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J8.prototype,"valueChangedForBinding",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],J8);
_.a(J8,"ytd-flat-dropdown-renderer",function(){if($gk!==void 0)return $gk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $gk=Y},{mode:1});var GRk;var ug=function(){var Y=_.F.apply(this,arguments)||this;Y.quizOptions=[];Y.explanationPlaceholderText="";Y.optionPlaceholderText="";Y.correctAnswerIndex=-1;Y.isMarkAnswerTooltipShown=!1;Y.timer=0;return Y};
_.P(ug,_.F);_.g=ug.prototype;_.g.dataChanged=function(){this.optionPlaceholderText=_.Tx(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Tx(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.g.onMarkCorrectAnswer=function(Y){var b,w=((b=this.quizOptions[this.correctAnswerIndex])==null?void 0:b.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[Y.model.index]=Object.assign({},this.quizOptions[Y.model.index],{explanationText:w,isCorrect:!0});this.correctAnswerIndex=Y.model.index;this.quizOptions=[].concat(_.Bt(this.quizOptions))};
_.g.updatePlaceholderTexts=function(){for(var Y=!1,b=[],w=0;w<this.quizOptions.length;w++){var V=this.optionPlaceholderText+" "+(w+1),H=void 0;((H=this.quizOptions[w])==null?void 0:H.placeholderText)!==V?(Y=!0,b.push(Object.assign({},this.quizOptions[w],{placeholderText:V}))):b.push(this.quizOptions[w])}Y&&(this.quizOptions=b);this.isValid()?_.Ua(this.hostElement,"yt-commentbox-post-enable"):_.Ua(this.hostElement,"yt-commentbox-post-disable")};
_.g.getSimpleString=function(Y){return _.Tx(Y)};
_.g.createQuizOptions=function(Y){var b=[],w;Y=(w=Y==null?void 0:Y.minQuizOptions)!=null?w:0;for(w=0;w<Y;w++)b.push(this.createQuizOption());return b};
_.g.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Bt(this.quizOptions),[this.createQuizOption()]))};
_.g.onInput=function(){this.quizOptions=[].concat(_.Bt(this.quizOptions))};
_.g.onExplanationInput=function(){_.Ua(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.g.onRemoveQuizOption=function(Y){this.quizOptions.splice(Y.model.index,1);Y.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:Y.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Bt(this.quizOptions));this.quizOptions.length===0&&_.Ua(this.hostElement,"yt-quiz-attachment-dismiss")};
_.g.updateHintRenderer=function(){var Y=this;clearTimeout(this.timer);this.timer=setTimeout(function(){Y.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.g.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var Y=0,b=0,w=_.N(this.quizOptions),V=w.next();!V.done;V=w.next()){V=V.value;var H=void 0;if(((H=V.optionText)==null?void 0:H.trim())!==""||V.isCorrect){V.isCorrect&&b++;H=void 0;if(this.hasCustomOptionText&&((H=V.optionText)==null?void 0:H.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;Y++}}return Y>=
Number(this.editorInfo.minQuizOptions)&&b===1};
_.g.getPostCreateOptions=function(){for(var Y=[],b=_.N(this.quizOptions),w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0;((V=w.optionText)==null?void 0:V.trim())!==""&&Y.push({pollOption:{text:w.optionText,explanation:w.explanationText},isCorrect:w.isCorrect})}return Y};
_.g.getExplanationText=function(){var Y;return((Y=this.quizOptions[this.correctAnswerIndex])==null?void 0:Y.explanationText)||""};
_.g.maybeDisplayMarkAnswerEduToolTip=function(){var Y,b,w,V,H,f,E;this.shouldShowMarkAnswerTooltip()&&((Y=this.editorInfo)==null?0:(b=Y.markAnswerButton)==null?0:(w=b.buttonRenderer)==null?0:(V=w.hint)==null?0:(H=V.hintRenderer)==null?0:(f=H.content)==null?0:(E=f.bubbleHintRenderer)==null?0:E.text)&&(_.gW.getInstance(),Y=fZ(this.editorInfo.markAnswerButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,void 0,"OPEN_POPUP_POSITION_TOP",void 0,"mark-answer-button-edu-displayed-impression"),
this.isMarkAnswerTooltipShown=!0,(Y==null?void 0:Y.length)>0&&this.optionSelectors&&_.hA(Y[0],this.optionSelectors[0]))};
_.g.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var Y=0,b=_.N(this.quizOptions),w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0;((V=w.optionText)==null?void 0:V.trim())!==""&&Y++;if(w.isCorrect)return!1}return Y<2?!1:!0};
_.g.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.g.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.g.updateOptionTextFromBinding=function(Y){if(Y.target){var b=Array.from(_.E6(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(Y.target);if(b>=0){var w;this.quizOptions[b].optionText=(w=Y.detail.value)!=null?w:""}}};
_.up.Object.defineProperties(ug.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.editorInfo)==null?void 0:(b=Y.addOptionButton)==null?void 0:b.buttonRenderer;w&&(w.style="STYLE_SUGGESTIVE",w.size="SIZE_SMALL",w.isDisabled=!this.isAllowedToAddOption);return(w==null?0:w.text)?w:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var Y,b;return this.quizOptions.length<((b=(Y=this.editorInfo)==null?void 0:Y.maxQuizOptions)!=null?b:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(Y){var b;return(b=Y.optionText)==null?void 0:b.trim()})}}});
ug.prototype.updatePlaceholderTexts=ug.prototype.updatePlaceholderTexts;ug.prototype.dataChanged=ug.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],ug.prototype,"editorInfo",void 0);_.z([_.R(),_.K("design:type",Array)],ug.prototype,"quizOptions",void 0);_.z([_.R(),_.K("design:type",Object)],ug.prototype,"explanationPlaceholderText",void 0);_.z([_.ql(".option-selector-button"),_.K("design:type",Array)],ug.prototype,"optionSelectors",void 0);
_.z([_.vX("editorInfo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ug.prototype,"dataChanged",null);_.z([_.t("editorInfo","isAllowedToAddOption","quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],ug.prototype,"addAnswerButton",null);_.z([_.t("editorInfo","quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],ug.prototype,"isAllowedToAddOption",null);
_.z([_.vX("quizOptions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ug.prototype,"updatePlaceholderTexts",null);_.z([_.t("quizOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],ug.prototype,"hasCustomOptionText",null);_.z([_.S({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],ug);
_.a(ug,"ytd-backstage-quiz-editor-renderer",function(){if(GRk!==void 0)return GRk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return GRk=Y},{mode:2});var Tc_;var JGC=(O1.FIRSTDAYOFWEEK+1)%7;var uw8;var Yn8=[],bW9=0,wSK=0;bW9=0;wSK=24;if(.25*(wSK-bW9)<0)uw8=[];else{for(var Vb$=bW9;Vb$<wSK;Vb$+=.25)Yn8.push(Vb$);uw8=Yn8}var HWo=uw8.map(function(Y){Y=Y*60*60;return{secondsSinceMidnight:Y,text:(new $t(7)).format(new Date(0,0,0,0,0,Y))}});var ge$;var Yx=function(){var Y=_.F.apply(this,arguments)||this;Y.skipNextOpenDialog=!1;Y.errorMessage="";return Y};
_.P(Yx,_.F);_.g=Yx.prototype;_.g.attached=function(){var Y=this,b=new MutationObserver(function(){Y.JSC$13647_calendarMain.scrollHeight>0&&(b.disconnect(),Y.calendarConfig&&Y.calendarConfig.selectedDate&&Y.scrollToDate())});
b.observe(this.JSC$13647_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){b.disconnect()},1E3)};
_.g.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.g.onDateTextChange=function(){if(this.calendarConfig){var Y=this.validateDateText();Y.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(Y.details)):this.textbox.setAttribute("invalid","")}};
_.g.handleDayClick=function(Y){Y.model.day.date&&(this.commitDate(Y.model.day.date),this.dialog.close())};
_.g.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var Y=JKv(this.calendarConfig.selectedDate,this.renderData);Y!==void 0&&this.JSC$13647_calendarMain.scrollToIndex(Y)}};
_.g.scrollToNextMonth=function(){this.JSC$13647_calendarMain.scrollToIndex(this.JSC$13647_calendarMain.firstVisibleIndex+1)};
_.g.scrollToPrevMonth=function(){this.JSC$13647_calendarMain.firstVisibleIndex===0&&this.JSC$13647_calendarMain.scrollTo(0,0);this.JSC$13647_calendarMain.scrollToIndex(this.JSC$13647_calendarMain.firstVisibleIndex-1)};
_.g.onFormSubmit=function(Y){Y.preventDefault();this.calendarConfig&&(Y=this.validateDateText(),Y.isValid&&(this.commitDate(Y.details),this.dialog.close()))};
_.g.onEscOrClickingOutside=function(Y){Y=Y.detail.path&&!!Y.detail.path.length&&Y.detail.path[0];if(Y.classList.contains("ytd-calendar-date-picker")){Y===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var b=0;b<this.dropdownButton.children.length;b++)this.dropdownButton.children[b]===Y&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}Y=this.textbox.value!==this.dateText;b=this.validateDateText();Y&&b.isValid&&this.commitDate(b.details);this.dialog.close();this.textbox.value=
this.dateText};
_.g.commitDate=function(Y){this.calendarConfig&&(this.set("calendarConfig.selectedDate",Y),_.Ua(this.hostElement,"ytd-calendar-date-selected",Y))};
_.g.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var Y=this.textbox.value;var b=new Date;Y=(new lOq(2)).parse(Y,b,{validate:!0})===Y.length?G7L(b):void 0;if(!Y)return this.errorMessage=_.sa("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};b=this.calendarConfig.start;var w=this.calendarConfig.end;if(AKB(Y,b))return this.errorMessage=_.sa("ENTER_DATE_OR_LATER",{allowed_date:jFq(b)}),{isValid:!1,details:void 0};if(AKB(w,Y))return this.errorMessage=
_.sa("ENTER_DATE_OR_EARLIER",{allowed_date:jFq(w)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:Y}};
_.up.Object.defineProperties(Yx.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?jFq(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var Y=this.calendarConfig,b=[],w=0;w<7;w++)b.push(O1.NARROWWEEKDAYS[(w+JGC)%7]);w=[];for(var V=new Date(Y.start.year,Y.start.month);V.getFullYear()<Y.end.year||V.getFullYear()===Y.end.year&&V.getMonth()<=Y.end.month;){var H=w,f=H.push,E=V.getFullYear(),U=V.getMonth(),X=Y,I=void 0,k=[],l=Object.freeze({extraCssClass:"invisible",debugClass:""}),x=new Date(E,U),Q=G7L(x);x=x.getDay();for(var Z=G7L(new Date);Q.month===
U;){x!==JGC&&I||(I=Array.from({length:7}).fill(l),k.push(I));var e={date:{year:E,month:U,day:Q.day},extraCssClass:"",debugClass:""};X.selectedDate&&e.date&&i5u(e.date,X.selectedDate)&&(e.extraCssClass+=" selected");if(AKB(Q,X.start)||AKB(X.end,Q))e.extraCssClass+=" disabled";i5u(Q,Z)&&(e.extraCssClass+=" today");e.extraCssClass=e.extraCssClass.trim();I[(x-JGC+7)%7]=e;Q=yK6(Q);x=(x+1)%7}f.call(H,{weeks:k,monthLabel:O1.SHORTMONTHS[U]+" "+E,year:E,month:U,monthLabelExtraCssClass:k[0][2]===l?"shift-down-label":
""});V.setMonth(V.getMonth()+1)}return{months:w,daysOfWeekLabel:b}}}}});
Yx.prototype.onEscOrClickingOutside=Yx.prototype.onEscOrClickingOutside;Yx.prototype.scrollToDate=Yx.prototype.scrollToDate;_.z([_.R(),_.K("design:type",Object)],Yx.prototype,"calendarConfig",void 0);_.z([_.R(),_.K("design:type",Object)],Yx.prototype,"skipNextOpenDialog",void 0);_.z([_.R(),_.K("design:type",Object)],Yx.prototype,"errorMessage",void 0);_.z([_.xZ("#textbox"),_.K("design:type",HTMLInputElement)],Yx.prototype,"textbox",void 0);
_.z([_.xZ("#calendar-dialog"),_.K("design:type",Object)],Yx.prototype,"dialog",void 0);_.z([_.xZ("#calendar-main"),_.K("design:type",Object)],Yx.prototype,"JSC$13647_calendarMain",void 0);_.z([_.xZ("#date-picker"),_.K("design:type",HTMLElement)],Yx.prototype,"dropdownButton",void 0);_.z([_.t("calendarConfig.selectedDate"),_.K("design:type",String),_.K("design:paramtypes",[])],Yx.prototype,"dateText",null);
_.z([_.t("calendarConfig","calendarConfig.selectedDate"),_.K("design:type",Object),_.K("design:paramtypes",[])],Yx.prototype,"renderData",null);_.z([_.lr("renderData","calendarConfig.selectedDate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yx.prototype,"scrollToDate",null);_.z([_.kZ("iron-overlay-canceled"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Yx.prototype,"onEscOrClickingOutside",null);
_.z([_.FM({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Yx);
_.a(Yx,"ytd-calendar-date-picker",function(){if(ge$!==void 0)return ge$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ge$=Y},{mode:2});var fnr=_.sa("UTC_OFFSET_FORMAT",{utc_offset:(new $t("Z")).format(new Date)}),Nuk=(new Date).getTimezoneOffset()*-60,Ee_=new Date,cb9,Uer=yK(Ee_.getTimezoneOffset());cb9=oto(kx$(Uer,Ee_));var XS$=_.sa("LOCAL_TIME_GMT_LABEL",{gmt_text:cb9.replace("+0","+").replace("-0","-").replace(":00","")}),bv=function(){var Y=_.F.apply(this,arguments)||this;Y.selectedTimeIndex=0;Y.selectedTimezoneIndex=0;Y.timeOfDayOptions=HWo;return Y};
_.P(bv,_.F);_.g=bv.prototype;_.g.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var Y=$jg();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=Y,this.selectedTimeIndex=0;else{var b=THt(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},Y,{selectedDate:b.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(w){return w.secondsSinceMidnight===b.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.g.onDatePicked=function(Y){this.selectedDate=Y.detail};
_.g.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Ua(this.hostElement,"ytd-date-time-selection-cancelled")};
_.g.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var Y=this.selectedDate;Y=new Date(Y.year,Y.month,Y.day);_.Ua(this.hostElement,"ytd-date-time-selection-update",Math.floor(Y.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+Y.getTimezoneOffset()*60))}};
_.g.getTimezoneFormat=function(Y){return Y.localizedDisplayText?Y.localizedDisplayText:_.sa("TIMEZONE_FORMAT",{utc_offset_text:""+Y.localizedUtcOffset,city_name:""+Y.localizedName})};
_.g.updateSelectedTimeIndexFromBinding=function(Y){this.selectedTimeIndex=Y.detail.value};
_.g.updateSelectedTimezoneIndexFromBinding=function(Y){this.selectedTimezoneIndex=Y.detail.value};
_.up.Object.defineProperties(bv.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y=this.data.timezoneOptions;var b={name:"Etc/Unknown",localizedName:_.sa("LOCAL_TIME_LABEL"),localizedUtcOffset:fnr,utcOffsetSec:""+Nuk,localizedDisplayText:XS$};Y?Y.length&&Y[0].name!==b.name&&(Y[0].localizedDisplayText||(b.localizedDisplayText=""),Y.unshift(b)):Y=[b];return Y}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
bv.prototype.onDateTimeTimezoneChange=bv.prototype.onDateTimeTimezoneChange;bv.prototype.onDatePicked=bv.prototype.onDatePicked;bv.prototype.updateDefaultSelectedValue=bv.prototype.updateDefaultSelectedValue;_.z([_.R(),_.K("design:type",Object)],bv.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],bv.prototype,"calendarConfig",void 0);_.z([_.R(),_.K("design:type",Object)],bv.prototype,"selectedDate",void 0);_.z([_.R(),_.K("design:type",Object)],bv.prototype,"selectedTimeIndex",void 0);
_.z([_.R(),_.K("design:type",Object)],bv.prototype,"selectedTimezoneIndex",void 0);_.z([_.xZ("#time-listbox"),_.K("design:type",Object)],bv.prototype,"timeListBox",void 0);_.z([_.xZ("#timezone-listbox"),_.K("design:type",Object)],bv.prototype,"timezoneListBox",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bv.prototype,"rendererStamperBehavior",void 0);_.z([_.t("data.timezoneOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],bv.prototype,"timeZones",null);
_.z([_.vX("data","timeZones"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bv.prototype,"updateDefaultSelectedValue",null);_.z([_.t("selectedTimezoneIndex","timeZones"),_.K("design:type",Object),_.K("design:paramtypes",[])],bv.prototype,"selectedTimezone",null);_.z([_.t("selectedTimeIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],bv.prototype,"selectedTime",null);
_.z([_.kZ("ytd-calendar-date-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],bv.prototype,"onDatePicked",null);_.z([_.lr("selectedTimezone","selectedTime","selectedDate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bv.prototype,"onDateTimeTimezoneChange",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],bv);
_.a(bv,"ytd-date-time-picker-renderer",function(){if(Tc_!==void 0)return Tc_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Tc_=Y},{mode:1});var Dej;var w1=function(){var Y=_.F.apply(this,arguments)||this;Y.boundOnTapDismissButton=function(){Y.dismissTapHandler()};
Y.dismissButtonOverrides={size:"XS"};return Y};
_.P(w1,_.F);w1.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}}}}}};
w1.prototype.dismissTapHandler=function(){_.Ua(this.hostElement,"yt-backstage-attachment-dismissed")};
w1.prototype.computeAttachmentType=function(Y){return Y?Y.backstageImageRenderer?"image":Y.videoRenderer?"video":"none":"none"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],w1.prototype,"attachmentPreview",void 0);_.z([_.R(),_.K("design:type",Object)],w1.prototype,"dismissButton",void 0);_.z([_.R(),_.K("design:type",Object)],w1.prototype,"boundOnTapDismissButton",void 0);
_.z([_.R(),_.K("design:type",Object)],w1.prototype,"dismissButtonOverrides",void 0);_.z([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.K("design:type",String)],w1.prototype,"attachmentType",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],w1);
_.a(w1,"ytd-backstage-dismissable-attachment",function(){if(Dej!==void 0)return Dej;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-dismissable-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="attachment-preview-container" class="style-scope ytd-backstage-dismissable-attachment">\n  <div id="attachment-preview" class="style-scope ytd-backstage-dismissable-attachment"></div>\n  <div id="dismiss-button" class="style-scope ytd-backstage-dismissable-attachment"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Dej=Y},{mode:1});var meK;var Vw=function(){var Y=_.F.apply(this,arguments)||this;Y.selectedVideoId=void 0;Y.picker=void 0;Y.dismissButtonOverrides={size:"XS"};Y.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return Y};
_.P(Vw,_.F);_.g=Vw.prototype;_.g.onServiceRequestCompleted=function(Y){Y.stopPropagation()};
_.g.handleAddVideoPreviewAction=function(Y){Y=this.get("addVideoPreviewAction",Y);this.onGetVideoPreviewSuccess(Y)};
_.g.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}}}}}};
_.g.onLaunchVideoPicker=function(Y){var b=this,w=_.Tx(this.get("addVideoLinkAction.title",Y)),V=this.get("addVideoLinkAction.onePickHostId",Y);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",Y);V&&(this.picker||(w=_.XhI(_.sGe(V).setTitle(w).addView(N2I()).addView(fst()),function(H){b.onPickVideo(H)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",Y)||w.addView("youtube"),this.picker=w.build()),this.picker.setVisible(!0))};
_.g.onPickVideo=function(Y){if(Y)if(Y.action==="cancel")_.Ua(this.hostElement,"yt-video-link-button-cancel");else if(Y.action==="picked"){Y=Y.docs;if(!Y||Y.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(Y=(Y==null?0:Y.length)?Y[0]:void 0)?Y.id:void 0;this.setVideoPreview()}};
_.g.setVideoPreview=function(){var Y=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){Y.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.g.onGetVideoPreviewSuccess=function(Y){if(Y&&Y.videoPreview&&Y.cancelButton)this.videoPreview=Y.videoPreview,this.cancelButton=Y.cancelButton,_.Ua(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.g.onGetVideoPreviewError=function(){this.cancel()};
_.g.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Ua(this.hostElement,"yt-video-link-cancel")};
_.g.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Vw.prototype.onServiceRequestCompleted=Vw.prototype.onServiceRequestCompleted;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Vw.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Vw.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Vw.prototype,"videoPreview",void 0);_.z([_.R(),_.K("design:type",Object)],Vw.prototype,"cancelButton",void 0);_.z([_.R(),_.K("design:type",Object)],Vw.prototype,"getVideoPreviewCommand",void 0);_.z([_.R(),_.K("design:type",Object)],Vw.prototype,"dismissButtonOverrides",void 0);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Vw.prototype,"onServiceRequestCompleted",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Vw);
_.a(Vw,"ytd-backstage-video-link-attachment",function(){if(meK!==void 0)return meK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-video-link-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview" class="style-scope ytd-backstage-video-link-attachment"></div>\n<div id="cancel-button" on-tap="cancel" class="style-scope ytd-backstage-video-link-attachment"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return meK=Y},{mode:1});var oeo;var kq8;var lno;var Hm=function(){return _.F.apply(this,arguments)||this};
_.P(Hm,_.F);Hm.prototype.dataChanged=function(){this.active=!1};
Hm.prototype.onTap=function(){_.Ua(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Hm.prototype.identity=function(Y){return Y};
_.up.Object.defineProperties(Hm.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;if((Y=this.data)==null?0:(b=Y.image)==null?0:(w=b.thumbnails)==null?0:(V=w[0])==null?0:V.url)return Y=this.data.image.thumbnails[0].url,Y.startsWith("data:image/svg+xml")?Ig(Y):_.PN(Y)}}});
Hm.prototype.dataChanged=Hm.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],Hm.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Hm.prototype,"active",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hm.prototype,"dataChanged",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Hm.prototype,"imageSrc",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Hm);
_.a(Hm,"ytd-emoji-suggestion",function(){if(lno!==void 0)return lno;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-suggestion--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item active="[[active]]" on-tap="onTap" class="style-scope ytd-emoji-suggestion">\n  <img alt="[[data.alt]]" hidden$="[[!identity(data.image)]]" src$="[[imageSrc]]" author$="[[data.author]]" class="style-scope ytd-emoji-suggestion">\n  [[data.text]]\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lno=Y},{mode:1});var h2I=/.*([:@#].*?)$/,g1=function(){var Y=_.F.apply(this,arguments)||this;Y.suggestions=[];Y.suggestionIndex=-1;Y.JSC$13675_lastSuggestionRange=null;return Y};
_.P(g1,_.F);_.g=g1.prototype;_.g.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.g.getSuggestions=function(Y){var b=[],w=Tq9(this.emojiManager,Y.substr(0,3));if(w)for(var V in w)if(V.toLocaleLowerCase().indexOf(Y)===0){var H=w[V];if(H&&H.emojiId){H=zp(this.emojiManager,H.emojiId);var f=void 0,E=void 0,U=void 0,X=void 0,I=((f=H)==null?0:f.isCustomEmoji)?(E=H)==null?void 0:(U=E.shortcuts)==null?void 0:U[0]:(X=H)==null?void 0:X.emojiId;f=void 0;b.push({suggestion:{image:(f=H)==null?void 0:f.image,alt:I,text:V}});if(b.length>=64)break}}return b?b.sort(function(k,l){return l.suggestion.text<
k.suggestion.text?-1:l.suggestion.text===k.suggestion.text?0:1}):null};
_.g.insertSuggestion=function(Y){_.Ua(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13675_lastSuggestionRange,text:Y.alt});this.dropdown.opened=!1};
_.g.updateSuggestionsAtCaret=function(Y){this.updateSuggestions(Y,this.retrieveTextBeforeRange(Y))};
_.g.offsetStartOfRangeBy=function(Y,b){Y.startOffset>=b&&Y.setStart(Y.startContainer,Y.startOffset-b)};
_.g.updateSuggestions=function(Y,b){var w=this;this.JSC$13675_lastSuggestionRange&&(this.JSC$13675_lastSuggestionRange.detach(),this.JSC$13675_lastSuggestionRange=null);if((b=h2I.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2||b===":_")&&(this.offsetStartOfRangeBy(Y,b.length),this.JSC$13675_lastSuggestionRange=Y,(Y=this.getSuggestions(b))&&Y.length)){this.suggestions=Y;_.TC(this,function(){w.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(Y.length-1);return}this.dropdown.opened=!1};
_.g.onKeyDown=function(Y){if(this.dropdown.opened)switch(Y.key){case "Escape":this.dropdown.opened=!1;Y.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);Y.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);Y.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),Y.preventDefault()}};
_.g.onKeyUp=function(Y,b){switch(Y.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(b);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(b)}};
_.g.onKeyPress=function(Y){Y.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),Y.preventDefault())};
_.g.changeSuggestionIndex=function(Y){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(Y+this.suggestions.length)%this.suggestions.length,Y=this.dropdownContent.children[this.suggestionIndex],Y.active=!0,this.dropdownContent.scrollTop=Y.offsetTop)};
_.g.retrieveTextBeforeRange=function(Y){var b=Y.startContainer;return b&&b.nodeType===Node.TEXT_NODE?b.textContent.substr(0,Y.startOffset):""};
g1.prototype.onKeyPress=g1.prototype.onKeyPress;g1.prototype.onKeyUp=g1.prototype.onKeyUp;g1.prototype.onKeyDown=g1.prototype.onKeyDown;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Array)],g1.prototype,"suggestions",void 0);_.z([_.R(),_.K("design:type",_.aG)],g1.prototype,"emojiManager",void 0);_.z([_.R(),_.K("design:type",Number)],g1.prototype,"verticalSuggestionsOffset",void 0);
_.z([_.xZ("#dropdown"),_.K("design:type",Object)],g1.prototype,"dropdown",void 0);_.z([_.xZ("#dropdown-content"),_.K("design:type",HTMLDivElement)],g1.prototype,"dropdownContent",void 0);_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],g1.prototype,"onKeyDown",null);_.z([_.kZ("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent,Range]),_.K("design:returntype")],g1.prototype,"onKeyUp",null);
_.z([_.kZ("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],g1.prototype,"onKeyPress",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-emoji-input"})],g1);
_.a(g1,"ytd-emoji-input",function(){if(kq8!==void 0)return kq8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emoji-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<slot name="input" class="style-scope ytd-emoji-input"></slot>\n<tp-yt-iron-dropdown id="dropdown" allow-outside-scroll="" no-auto-focus="" vertical-align="bottom" vertical-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-emoji-input">\n  <div id="dropdown-content" class="dropdown-content style-scope ytd-emoji-input" slot="dropdown-content">\n  </div>\n</tp-yt-iron-dropdown>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return kq8=Y},{mode:2});var xeU;var fD=function(){var Y=_.F.apply(this,arguments)||this;Y.hasMaxOptions=!1;return Y};
_.P(fD,_.F);_.g=fD.prototype;_.g.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.g.setPrefilledChoices=function(Y){var b=this;this.set("pollOptions",[]);var w;for(w=0;w<Math.min(Y.length,this.data.maxPollOptions);w++)this.push("pollOptions",Y[w].substring(0,this.data.maxPollOptionChars));for(;w<this.data.minPollOptions;w++)this.push("pollOptions","");this.hasMaxOptions=w>=this.data.maxPollOptions;_.TC(this,function(){for(var V=b.pollOptions,H=_.E6(b.hostElement).querySelectorAll(".poll-option-input"),f=0;f<H.length;f++)H[f].value=V[f]})};
_.g.focusChanged=function(){_.m_(this.hostElement)};
_.g.onInput=function(){var Y=this;_.ir(this,"onInput",function(){Y.isValid()?_.Ua(Y.hostElement,"yt-commentbox-post-enable"):_.Ua(Y.hostElement,"yt-commentbox-post-disable")},300)};
_.g.setPollOptions=function(){var Y=[],b,w=((b=this.data)==null?0:b.minPollOptions)?this.data.minPollOptions:0;for(b=0;b<w;b++)Y.push("");return Y};
_.g.addPollOption=function(){var Y=this;_.Ua(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Lb.addLowPriorityJob(function(){var b;(b=_.E6(Y.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||b.focus()})};
_.g.onRemovePollOption=function(Y){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Ua(this.hostElement,"yt-poll-attachment-dismiss")):(Y=this.repeat.indexForElement(Y.target.parentNode),Y!==null&&(this.splice("pollOptions",Y,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Ua(this.hostElement,"yt-commentbox-post-enable"))))};
_.g.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.g.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var Y=0,b=this.pollOptions.length;Y<b;Y++)if(this.pollOptions[Y].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.g.getPollOptions=function(){return this.pollOptions};
_.g.setPollOptionsFromInputs=function(){for(var Y=_.E6(this.hostElement).querySelectorAll(".poll-option-input"),b=0;b<Y.length;b++)this.pollOptions[b]=Y[b].value.trim()};
_.g.clearPollOptions=function(){var Y=_.E6(this.hostElement).querySelectorAll(".poll-option-input");Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())b.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.g.getSimpleString=function(Y){return _.Tx(Y)};
_.g.updateValueFromBinding=function(Y){if(Y.target&&this.pollOptions){var b=Array.from(_.E6(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(Y.target);if(b>=0){var w;this.pollOptions[b]=(w=Y.detail.value)!=null?w:"";this.notifyPath("pollOptions."+b)}}};
fD.prototype.dataChanged=fD.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],fD.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Array)],fD.prototype,"pollOptions",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],fD.prototype,"hasMaxOptions",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],fD.prototype,"enableCreationBox",void 0);
_.z([_.xZ("#repeat"),_.K("design:type",O6)],fD.prototype,"repeat",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fD.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-poll-attachment"})],fD);
_.a(fD,"ytd-poll-attachment",function(){if(xeU!==void 0)return xeU;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-poll-attachment--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="poll-options" class="style-scope ytd-poll-attachment">\n  <template is="dom-repeat" id="repeat" items="[[pollOptions]]" class="style-scope ytd-poll-attachment">\n    <div class="poll-option style-scope ytd-poll-attachment">\n      <yt-icon-button class="remove-button style-scope ytd-poll-attachment" on-click="onRemovePollOption">\n        <yt-icon class="remove-option style-scope ytd-poll-attachment" icon="yt-icons:close"></yt-icon>\n      </yt-icon-button>\n      <tp-yt-paper-input class="poll-option-input style-scope ytd-poll-attachment" char-counter="" maxlength$="[[data.maxPollOptionChars]]" no-label-float="" placeholder="[[getSimpleString(data.optionPlaceholderText)]]" use-v2-underline="" value="[[item]]" on-focused-changed="focusChanged" on-input="onInput" on-value-changed="updateValueFromBinding">\n      </tp-yt-paper-input>\n    </div>\n  </template>\n</div>\n<div id="add-option" hidden="[[hasMaxOptions]]" on-click="addPollOption" class="style-scope ytd-poll-attachment"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return xeU=Y},{mode:2});var qn_;var sSt;var QSC;var veQ;var NN=function(){return _.F.apply(this,arguments)||this};
_.P(NN,_.F);_.up.Object.defineProperties(NN.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],NN.prototype,"rendererBehaviors",void 0);_.z([_.R(),_.K("design:type",Object)],NN.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],NN.prototype,"focused",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("focused"),_.K("design:type",Object),_.K("design:paramtypes",[])],NN.prototype,"ariaSelected",null);_.z([_.FM({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],NN);
_.a(NN,"yt-user-mention-suggestion-renderer",function(){if(veQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestion_renderer.yt.user.mention.suggestion.renderer.css.js--\x3e<yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-user-mention-suggestion-renderer">\n</yt-img-shadow>\n<div id="info" class="style-scope yt-user-mention-suggestion-renderer">\n  <div id="display-name" aria-label="[[data.displayName]]" class="style-scope yt-user-mention-suggestion-renderer">[[data.displayName]]</div>\n  <yt-formatted-string id="channel-info" text="[[data.details]]" class="style-scope yt-user-mention-suggestion-renderer">\n  </yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;QSC===void 0&&(QSC=document.createElement("template"));var V=QSC;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);veQ=Y}Y=veQ;return Y},{mode:2});var P0o;var ZWI;var E5=function(){var Y=_.F.apply(this,arguments)||this;Y.focusedSuggestionIndex=-1;return Y};
_.P(E5,_.F);_.g=E5.prototype;_.g.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.g.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.g.setFocusedSuggestionIndex=function(Y){!this.data||!this.data.suggestions||Y<0||Y>=this.data.suggestions.length||(this.focusedSuggestionIndex=Y,Y=this.getSuggestionId(Y),this._setFocusedSuggestionId(Y))};
_.g.advanceSuggestion=function(Y){this.focusedSuggestionIndex===-1||Y!==-1&&Y!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+Y),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.g.ensureSuggestionVisible=function(Y){Y=this.getSuggestionId(Y);Y=_.E6(this.hostElement).querySelector("[id="+Y+"]");Y!=null&&(Y.offsetTop<this.hostElement.scrollTop?Y.scrollIntoView(!0):Y.offsetTop+Y.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&Y.scrollIntoView(!1))};
_.g.getSuggestionId=function(Y){return"user-mention-suggestion-"+Y};
_.g.onSuggestionTap=function(Y){var b=_.v(Y.model.item,TLt);this.ytRendererBehavior.logExplicitClick(b);_.Ua(this.hostElement,"yt-user-mention-suggestion-selected",{data:b,index:Y.model.index})};
_.g.onSuggestionMouseMove=function(Y){Y.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(Y.model.index)};
_.g.isSuggestionFocused=function(Y,b){return Y===b};
_.g.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.g.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("focused-suggestion-id-changed",this.focusedSuggestionId))};
E5.prototype.focusedSuggestionIdChangedForBinding=E5.prototype.focusedSuggestionIdChangedForBinding;E5.prototype.onDomChange=E5.prototype.onDomChange;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],E5.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],E5.prototype,"focusedSuggestionIndex",void 0);_.z([_.R({readOnly:!0}),_.K("design:type",String)],E5.prototype,"focusedSuggestionId",void 0);
_.z([_.kZ("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],E5.prototype,"onDomChange",null);_.z([_.lr("focusedSuggestionId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],E5.prototype,"focusedSuggestionIdChangedForBinding",null);_.z([_.FM({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],E5);
_.a(E5,"yt-user-mention-suggestions-dropdown",function(){if(ZWI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-suggestions-dropdown--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_suggestions_dropdown.yt.user.mention.suggestions.dropdown.css.js--\x3e\n<template is="dom-repeat" items="[[data.suggestions]]" index-as="index" notify-dom-change="" class="style-scope yt-user-mention-suggestions-dropdown">\n  <yt-user-mention-suggestion-renderer data="[[item.userMentionSuggestionRenderer]]" focused="[[isSuggestionFocused(index, focusedSuggestionIndex)]]" id$="[[getSuggestionId(index)]]" role="option" on-mousemove="onSuggestionMouseMove" on-tap="onSuggestionTap" class="style-scope yt-user-mention-suggestions-dropdown">\n  </yt-user-mention-suggestion-renderer>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;P0o===void 0&&(P0o=document.createElement("template"));var V=P0o;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ZWI=Y}Y=ZWI;return Y},{mode:2});var cm=function(){var Y=_.F.apply(this,arguments)||this;Y.suggestionsResponse=null;Y.activeMention=null;Y.selectionChangeListener=Y.onSelectionChange.bind(Y);Y.handlesEnabled=_.q("enable_handles_in_mention_suggest_posts");Y.handlesInMentionSuggestionsEnabled=_.q("handles_in_mention_suggest_posts");Y.zeroPrefixMentionSuggestionEnabled=_.q("enable_zero_prefix_mention_suggestion_web");Y.pendingQuery=null;Y.flowNonce=null;return Y};
_.P(cm,_.F);_.g=cm.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.g.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.g.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.g.hasSuggestions=function(Y){return!!(Y&&Y.suggestions&&Y.suggestions.length>0)};
_.g.onInput=function(){var Y=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var b=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),w=this.activeMention.JSC$9293_getText().slice(-1)===" ",V=this.activeMention.JSC$9293_getText().slice(-2,-1)===" ",H="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9293_getText().slice(-2,-1))>=
0;H=this.zeroPrefixMentionSuggestionEnabled&&H;if(this.activeMention.isCollapsed()||(b||V||H)&&w)this.cancelActiveMention();else{var f=this.activeMention.JSC$9293_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.ir(this,"requestSuggestions",function(){Y.requestSuggestions(f)},100)}}}};
_.g.onServiceRequestSent=function(Y){Y.stopPropagation()};
_.g.onServiceRequestCompleted=function(Y){Y.stopPropagation();Y=Y.detail.data;Y.query&&(!this.pendingQuery||this.pendingQuery!==Y.query)||!this.zeroPrefixMentionSuggestionEnabled&&Y.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=Y,this.hasSuggestions(Y)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.g.onServiceRequestError=function(Y){Y.stopPropagation()};
_.g.onUserMentionSuggestionSelected=function(Y){this.selectSuggestion(Y.detail.data,Y.detail.index)};
_.g.onSelectionChange=function(){if(this.activeMention){var Y=_.BT(),b=this.activeMention.JSC$9293_containsRange(Y);Y=Y&&this.containsHelper(this.dropdown,Y.getContainer());b||Y||this.cancelActiveMention()}};
_.g.containsHelper=function(Y,b){var w;if(((w=window.ShadyDOM)==null?void 0:w.noPatch)===!0)return Y.contains(b);for(;b;){if(b===Y)return!0;b=b instanceof ShadowRoot?b.host:b.parentNode}return!1};
_.g.maybeStartSuggest=function(){var Y=_.BT();if(Y&&Y.isCollapsed()){var b=Y.JSC$9293_getStartNode(),w=Y.JSC$9293_getStartOffset();if(b instanceof Text&&!(w<1)){var V=b.textContent;!(V=V&&V.charAt(w-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(V)<0||(this.activeMention=_.Ky(b,w-1,Y.JSC$9293_getEndNode(),Y.JSC$9293_getEndOffset()),this.flowNonce=OD(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.g.updateActiveMention=function(){if(this.activeMention){var Y=_.BT();Y&&Y.isCollapsed()&&(this.activeMention=_.Ky(this.activeMention.JSC$9293_getStartNode(),this.activeMention.JSC$9293_getStartOffset(),Y.JSC$9293_getEndNode(),Y.JSC$9293_getEndOffset()))}};
_.g.requestSuggestions=function(Y){if(this.activeMention){var b={suggestions_query:Y};this.pendingQuery=Y;_.oP(this.hostElement,[this.suggestionsEndpoint,b])}};
_.g.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()};
_.g.focusPreviousSuggestion=function(Y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),Y.preventDefault())};
_.g.focusNextSuggestion=function(Y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),Y.preventDefault())};
_.g.selectFocusedSuggestion=function(Y){if(this.hasSuggestions(this.suggestionsResponse)){var b=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.v(b,TLt)&&(this.selectSuggestion(_.v(b,TLt),this.dropdown.focusedSuggestionIndex),Y.preventDefault())}};
_.g.selectSuggestion=function(Y,b){if(Y){var w=this.activeMention;if(w){var V=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&Y.handle?_.av(V,"\u00a0\u2068@"+Y.handle+"\u2069\u00a0"):this.handlesEnabled?_.av(V,"\u00a0"+Y.displayName+"\u00a0"):_.av(V,"\u00a0@"+Y.displayName+"\u00a0");er(V,"/channel/"+Y.channelId);V.classList.add("yt-formatted-string","yt-simple-endpoint");V.setAttribute("spellcheck","false");w.isCollapsed()||w.JSC$9293_removeContents();w.insertNode(V,!0);Y=document.createTextNode(" ");
V.parentNode.insertBefore(Y,V.nextSibling);window.getSelection().collapse(Y,1);b={suggestionSelected:{suggestionIndex:b}};if(this.zeroPrefixMentionSuggestionEnabled){var H;b.suggestionSelected.isZeroPrefix=((H=this.suggestionsResponse)==null?void 0:H.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",b);this.cancelActiveMention();_.Ua(this.hostElement,"yt-mention-inserted")}}};
_.g.getPositionTarget=function(Y){return Y&&Y.getBrowserRangeObject()};
_.g.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.g.onFocusedSuggestionIdChanged=function(Y){var b=_.Z$e(this.hostElement)[0];b&&(Y.detail.value?b.setAttribute("aria-activedescendant",Y.detail.value):b.removeAttribute("aria-activedescendant"))};
_.g.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.g.logGELEvent=function(Y,b){Y={eventType:Y,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};b&&(Y=Object.assign(Y,b));_.RY("userMentionAutoCompleteBoxEvent",Y)};
cm.prototype.onDomChange=cm.prototype.onDomChange;cm.prototype.onUserMentionSuggestionSelected=cm.prototype.onUserMentionSuggestionSelected;cm.prototype.onServiceRequestError=cm.prototype.onServiceRequestError;cm.prototype.onServiceRequestCompleted=cm.prototype.onServiceRequestCompleted;cm.prototype.onServiceRequestSent=cm.prototype.onServiceRequestSent;cm.prototype.onInput=cm.prototype.onInput;_.z([_.n(_.ni),_.K("design:type",Object)],cm.prototype,"ironA11yKeysBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],cm.prototype,"suggestionsEndpoint",void 0);_.z([_.R(),_.K("design:type",Object)],cm.prototype,"suggestionsResponse",void 0);_.z([_.R(),_.K("design:type",Object)],cm.prototype,"activeMention",void 0);_.z([_.xZ("#dropdown"),_.K("design:type",Object)],cm.prototype,"dropdown",void 0);_.z([_.xZ("#iron-dropdown"),_.K("design:type",Object)],cm.prototype,"ironDropdown",void 0);
_.z([_.kZ("input"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],cm.prototype,"onInput",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cm.prototype,"onServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cm.prototype,"onServiceRequestCompleted",null);
_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cm.prototype,"onServiceRequestError",null);_.z([_.kZ("yt-user-mention-suggestion-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cm.prototype,"onUserMentionSuggestionSelected",null);
_.z([_.kZ("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],cm.prototype,"onDomChange",null);_.z([_.FM({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],cm);
_.a(cm,"yt-user-mention-autosuggest-input",function(){if(sSt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-user-mention-autosuggest-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.social.yt_user_mention_autosuggest_input.yt.user.mention.autosuggest.input.css.js--\x3e<slot name="input" class="style-scope yt-user-mention-autosuggest-input"></slot>\n<tp-yt-iron-dropdown id="iron-dropdown" horizontal-align="auto" no-auto-focus="" no-overlap="true" opened="[[hasSuggestions(suggestionsResponse)]]" position-target="[[getPositionTarget(activeMention)]]" on-iron-overlay-opened="onDropdownOpened" class="style-scope yt-user-mention-autosuggest-input">\n  <yt-user-mention-suggestions-dropdown id="dropdown" class="dropdown-content style-scope yt-user-mention-autosuggest-input" slot="dropdown-content" data="[[suggestionsResponse]]" role="listbox" on-focused-suggestion-id-changed="onFocusedSuggestionIdChanged">\n  </yt-user-mention-suggestions-dropdown>\n</tp-yt-iron-dropdown>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;qn_===void 0&&(qn_=document.createElement("template"));var V=qn_;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);sSt=Y}Y=sSt;return Y},{mode:2});var U5=null;
_.pV({is:"ytd-commentbox",_template:function(){if(oeo!==void 0)return oeo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return oeo=Y},
behaviors:[_.HeL.YtHostElementBehavior,_.ni,_.US.YtActionHandlerBehavior,_.yZ.YtComponentBehavior,_.cz.YtRendererstamperBehavior,_.kB$.YtdReduxBehavior],keyBindings:{left:"leftKeyPressed_",right:"rightKeyPressed_",end:"endKeyPressed_",backspace:"maybeBackspaceChip_","delete":"maybeDeleteChip_","ctrl+enter meta+enter":"submitIfNotBackstagePost_","ctrl+backspace alt+backspace":"maybeBackspaceChipWordMode_","ctrl+delete alt+delete":"maybeDeleteChipWordMode_"},properties:{data:{type:Object,observer:"dataChanged_"},
placeholderFormattedText_:{type:Object,computed:"computePlaceholderText_(data, addedAttachment, prefilledAttachment_)"},aadcGuidelinesState_:{type:Object,selectorArgs:["data.aadcGuidelinesStateEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"aadcGuidelinesStateEntityPayload",b)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(Y,b){return _.kt(Y.entities,"commentboxStateEntity",b)},
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 _.Wz}},
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:_.q("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.q("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",_.Io(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(Y){this.fire(Y?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(Y){this.set("submitButtonDisabled",void 0);this.clear();Y&&this.computeIsEmojiButtonDisplayed_(Y)&&(Y=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&Y.updateEmojiCategories()},
observePrefilledImage_:function(Y,b,w){this.isValidPrefilledImage_(Y,b,w)&&(this.prefilledAttachment_="image",this.prefilledImageData_=b,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(Y,b){this.isValidPrefilledVideo_(Y,b)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(Y){Y&&Y.pollData&&Y.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(Y.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.l6();this.focus()},
detached:function(){document.removeEventListener("tap",_.Io(this,this.onTap_))},
created:function(){this.scheduledPublishTimeSec_=this.prefilledImageData_=this.imagePreviewCoordinates_=this.taggedVideoId_=this.selectedVideoId_=void 0;document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1;this.TEST_ONLY=void 0},
onEmojiButtonTap_:function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.$$("#emoji-picker > yt-emoji-picker-renderer").selected=!this.$$("#emoji-picker > yt-emoji-picker-renderer").selected},
onEmojiSelect_:function(Y){Y=Y.detail;Y=Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,Y);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var Y=_.BT();if(Y){Y=Y.getBrowserRangeObject();for(var b=Y.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return Y;b=b.parentNode}}Y=this.getEditableTextArea_();Y=_.Wq(Y,Y.childNodes.length);Y.select();return Y.getBrowserRangeObject()},
insertTextWithEmojis_:function(Y,b,w){(b=this.emojiManager.createDocumentFragment(b,!0,!1,w===void 0?!0:w))&&b.childNodes.length!==0&&(Y.collapsed||Y.deleteContents(),w=b.lastChild,Y.insertNode(b),_.Fx5(w).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var Y=_.BT();if(Y){var b=Y.JSC$9293_getStartNode(),w=Y.JSC$9293_getEndNode();if(u0a(b)&&u0a(w)){var V=Y.JSC$9293_getStartOffset(),H;if(_.qX&&b.nodeType===Node.ELEMENT_NODE&&(H=_.ye_(b)))_.Wq(H,0).select();else{H=vT(b)?b:_.FE(b,vT);var f=vT(w)?w:_.FE(w,vT);if(H||f)if(Y.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){Y=!0;V===b.length&&(Y=!1);if(U5==="end"||U5==="right")Y=!1;b=b.parentNode;Y=[].concat(_.Bt(b.parentNode.childNodes)).indexOf(b)+(Y?0:1);_.Wq(b.parentNode,Y).select()}}else H?
H.previousSibling&&H.previousSibling.length>0?_.Ky(w,Y.JSC$9293_getEndOffset(),H.previousSibling,H.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),H.parentNode.insertBefore(b,H),_.Ky(w,Y.JSC$9293_getEndOffset(),b,0).select()):f&&(f.nextSibling&&f.nextSibling.length>0?_.Ky(b,Y.JSC$9293_getStartOffset(),f.nextSibling,1).select():(w=document.createTextNode("\u200b"),f.parentNode.insertBefore(w,f.nextSibling),_.Ky(b,Y.JSC$9293_getStartOffset(),w,w.length).select()));U5=null}}else U5=
null}else U5=null},
leftKeyPressed_:function(){U5="left"},
rightKeyPressed_:function(){U5="right"},
endKeyPressed_:function(){U5="end"},
maybeDeleteChip_:function(){var Y=gYg(!0);if(Y){var b=_.BT(),w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();_.Ly(w,b,Y,Y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var Y=gYg(!1);if(Y){var b=_.BT(),w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();_.Ly(w,b,Y,0).select()}},
maybeBackspaceChipWordMode_:function(Y){var b=_.BT();if(b.isCollapsed()){var w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();var V=fOb(w,b,!0);V&&(_.Ly(w,b,V,0).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(Y){var b=_.BT();if(b.isCollapsed()){var w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();var V=fOb(w,b,!1);V&&(_.Ly(w,b,V,V.childNodes.length).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
onTap_:function(Y){if(!Y.defaultPrevented&&(Y.currentTarget.tagName==="YTD-COMMENTBOX"&&vT(Y.target)&&Y.preventDefault(),this.isEmojiPickerDisplayed)){var b=this.$$("#emojis"),w=this.$$("#emoji-button"),V=this.getEditableTextArea_();if((Y=Y.path?Y.path:Y.composedPath&&Y.composedPath())&&!Y.includes(b)&&!Y.includes(V)&&!Y.includes(w))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(Y,b,w){return Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b!==void 0&&b.encryptedBlobId!==null&&b.sourceExternalVideoId!==null&&w!==void 0&&w.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(Y,b){return Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!b&&!!b.videoRenderer&&!!b.videoRenderer.videoId},
isValidPrefilledAttachment_:function(Y,b,w){return this.isValidPrefilledImage_(Y,b,w)||this.isValidPrefilledVideo_(Y,w)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.q("enable_multi_image_post_creation")){var Y=this.$$("ytd-backstage-multi-image-select-renderer");Y&&Y.hasImages()&&Y.cancel()}else(Y=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&Y.cancel();(Y=this.$["poll-attachment"])&&this.hasPoll_&&Y.clearPollOptions();(Y=this.$["image-poll-attachment"])&&this.hasImagePoll_&&Y.resetPollOptions();(Y=this.$["quiz-attachment"])&&this.hasQuiz_&&Y.resetQuizOptions();
(Y=this.$["video-link-attachment"])&&this.hasVideo_&&Y.cancel();(Y=this.$["access-restrictions-selector"].firstElementChild)&&Y.reset();this.prefilledAttachment_!=="none"&&this.dismissPrefilledContent_();this.addedAttachment="none";this.prefilledImageData_=this.scheduledPublishTimeSec_=this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.submitButtonDisabled=!0;this.setTextAreaValue_(this.data.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.isExternalLinksBannerDisplayed=
this.isEmojiPickerDisplayed=this.receivedFocusPreviously_=!1;if(this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")this.onDateTimeSelectionCancelled_()},
getEditableTextArea_:function(){return _.E6(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E6(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(Y,b){Y=bfI(Y,this.emojiManager,b).cloneNode(!0);for(b=Y.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var w=_.tn();_.bo$(w,b);b=w.nextSibling;break;case "DIV":(w=b.lastChild)&&b.nextSibling&&_.Lj(_.tn(),w);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.F1(_.tn(),b);w&&w.nodeName==="BR"&&_.qf(w);w=b;b.hasChildNodes()?(b=b.firstChild,
_.w9r(w)):(b=b.nextSibling,_.qf(w));break;default:b=b.nextSibling}return Ncq(Y)},
onAddImageError_:function(Y){Y.stopPropagation();this.errorMessage_=_.Gx(Y.detail)},
setTextAreaValue_:function(Y){Y||(Y="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof Y==="string"&&(Y={runs:[{text:Y}]});b.text=Y},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();U5=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var Y=this.getEditableTextArea_();Y&&(_.Wq(Y,Y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.zO("HTML_DIR")==="rtl"){var Y=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";Y.setAttribute("dir",b)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var Y;return Dkg((Y=this.$["quiz-attachment"])==null?void 0:Y.getExplanationText())||Dkg(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var Y=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(Y=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(Y,!0);this.updateCharCount_();this.setSubmitButton_();Y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=Y.scrollHeight>Y.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var Y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:Y})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount_=this.getTextLength();this.aboveCharLimit_=!!this.charLimit_&&this.charCount_>this.charLimit_},
onPaste_:function(Y){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(Y)},
onPasteEmoji_:function(Y){Y.preventDefault();Y.stopImmediatePropagation();Y=Y.clipboardData.getData("text/plain");this.insertText_(Y,!1,!1)},
insertText_:function(Y,b,w){b=b===void 0?!1:b;w=w===void 0?!0:w;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&Y){var V=this.getInputRange_().cloneRange();this.emojiManager&&V&&(b&&this.emojiInput.offsetStartOfRangeBy(V,Y.length),this.insertTextWithEmojis_(V,Y,w),YpM(this.getEditableTextArea_().lastChild)||(V=this.getInputRange_().cloneRange()),V&&(this.emojiInput.updateSuggestions(V,Y),this.updateSuggestionOffset_(V)))}},
setSubmitButton_:function(){if(this.data){var Y=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",b=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(Y||b){var w=this.getTextAreaValue().trim();b=w===this.previousText_;w=!w||this.aboveCharLimit_;Y&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(w=this.aboveCharLimit_);this.submitButtonDisabled=
b||w||!this.getTextLength();Y&&_.q("enable_post_scheduling")&&(this.submitButtonDisabled=b&&!this.scheduledPublishTimeSec_||w)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Tx,computeCreationBoxClass_:function(Y){return Y?"focused":"not-focused"},
computeFooterMessageClass_:function(Y,b){return b?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(Y,b){return b?b:Y},
computeFooterMessageHidden_:function(Y,b){return!b&&!Y},
computePlaceholderText_:function(Y,b,w){return(w==="video"||w==="image")&&(Y==null?0:Y.prefilledPlaceholderText)?Y==null?void 0:Y.prefilledPlaceholderText:b==="poll"||b==="image-poll"?Y==null?void 0:Y.pollPostPlaceholderText:b==="quiz"?Y==null?void 0:Y.quizPostPlaceholderText:b==="image"?Y==null?void 0:Y.imagePostPlaceholderText:Y==null?void 0:Y.placeholderText},
computeHideAttachmentButtons_:function(Y,b,w,V){return Y===void 0?!1:V&&this.getSimpleString(V)===this.getSimpleString(Y.rateLimitErrorMessage)?!0:b!=="none"||w!=="none"||!Y.videoLinkButton&&!Y.pollButton&&!Y.imagePollButton&&!Y.quizButton&&!Y.imageButton},
computeHideDismissableAttachment_:function(Y){return Y!=="image"&&Y!=="video"},
computeHasVideo_:function(Y){return Y==="video"},
computeHasImage_:function(Y){return Y==="image"},
computeHasPoll_:function(Y){return Y==="poll"},
computeHasImagePoll_:function(Y){return Y==="image-poll"},
computeHasQuiz_:function(Y){return Y==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(Y){return Y&&Y.backstageAttachment?Y.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!Y.backstageAttachment.quizRenderer&&!Y.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(Y){if(this.isValidPrefilledAttachment_(Y.purpose,Y.prefilledImageData,Y.backstageAttachment))return Y.backstageAttachment},
computeEditAttachment_:function(Y){if(this.computePrefilledContent_(Y)===void 0)return Y.backstageAttachment},
computeAuthorThumbnailDimension_:function(Y,b){return Y&&!b?24:40},
computeImageUploadEndpoint_:function(Y){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",Y)},
computeRateLimitErrorCommands_:function(Y){var b,w;return Y==null?void 0:(b=Y.advancedTierFeatures)==null?void 0:(w=b.rateLimit)==null?void 0:w.rateLimitCommands},
computeIsBackstageComment_:function(Y){return!(!Y||Y!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(Y){return this.get("submitButton.buttonRenderer.serviceEndpoint",Y)||this.get("replyButton.buttonRenderer.serviceEndpoint",Y)||this.get("postButton.buttonRenderer.serviceEndpoint",Y)},
computeSubmitButtonOverride:function(){if(_.q("web_modern_buttons")){var Y,b;return{segmentedPosition:this.dropdownSchedulePanel_||!((Y=this.data)==null?0:(b=Y.postOptionsMenu)==null?0:b.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.q("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(Y,b){Y=this.get("submitButton.buttonRenderer",Y)||this.get("replyButton.buttonRenderer",Y)||this.get("postButton.buttonRenderer",Y);b&&(Y=b);Y&&(Y=Object.assign({},Y),Y.serviceEndpoint=void 0,Y.isDisabled=this.submitButtonDisabled);return Y},
computeHasExternalLinksAccess_:function(Y){if(_.q("enable_rfa_external_links")){var b,w,V;return(V=Y==null?void 0:(b=Y.advancedTierFeatures)==null?void 0:(w=b.externalLinks)==null?void 0:w.allowExternalLinks)!=null?V:!0}return!0},
computeIsEmojiButtonDisplayed_:function(Y){return Y.emojiButton&&Y.emojiPicker&&Y.emojiPicker.emojiPickerRenderer&&Y.emojiPicker.emojiPickerRenderer.categories?Y.emojiPicker.emojiPickerRenderer.categories.find(function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(Y){return Y.charLimit?Y.charLimit:null},
computeDropdownSchedulingPanel_:function(Y,b){if(Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b)return b},
computeInlineSchedulingPanel_:function(Y,b){if(Y==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&b)return b},
computeHideAuthorThumbnail_:function(Y,b){return Y||this.computeUseIdentityChip_(b)},
computeHideIdentityChipRenderer_:function(Y,b){return Y||!this.computeUseIdentityChip_(b)},
computeUseIdentityChip_:function(Y){return!!Y&&!!Y.identityChipRenderer},
getSharedPostId_:function(){return this.data.backstageAttachment&&this.data.backstageAttachment.postRenderer&&this.data.backstageAttachment.postRenderer.postId?this.data.backstageAttachment.postRenderer.postId:void 0},
onYtNavigate_:function(Y){var b,w,V,H;(Y==null?0:(b=Y.detail)==null?0:(w=b.endpoint)==null?0:w.ypcGetOffersEndpoint)||(Y==null?0:(V=Y.detail)==null?0:(H=V.endpoint)==null?0:H.ypcOffersEndpoint)?(Y.stopPropagation(),_.oP(this,[Y.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",Y)&&(Y.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(Y){this.addedAttachment="video";this.selectedVideoId_=Y.detail.videoId},
commentboxStateEntityChanged_:function(Y){var b=this;(Y==null?void 0:Y.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(Y==null?void 0:Y.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){b.focus()})},
onYtServiceRequestSent_:function(Y,b){if(b.actions)for(Y=_.N(b.actions),b=Y.next();!b.done;b=Y.next())b.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(Y){this.isLoading=!1;var b=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",Y),w,V,H,f=Y==null?void 0:(w=Y.detail)==null?void 0:(V=w.data)==null?void 0:(H=V.actionResult)==null?void 0:H.commentboxStateEntityKey;if(b)this.errorMessage_=b;else if(f){var E;this.dismissData_=Y==null?void 0:(E=Y.detail)==null?void 0:E.data;this.commentboxStateKey_=f}else{this.clear();var U;this.fire("yt-commentbox-dismiss",Y==null?void 0:(U=Y.detail)==
null?void 0:U.data)}},
onYtServiceRequestError_:function(Y){Y.stopPropagation();this.isLoading=!1;var b,w;if(((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((w=this.data)==null?void 0:w.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(b=this.get("detail.error.args",Y)||[],b.length>1&&b[1].message){this.handlePostsServiceRequestError_(b[1].message);return}(Y=this.get("detail.error.message",Y))?this.errorMessage_=this.data.errorMessage||_.Gx(Y):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(Y){if(_.q("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var b=_.N(this.rateLimitErrorCommands),w=b.next();!w.done;w=b.next())if(w=w.value,w.errorLabel===Y){_.hA(w.command,this.hostElement);return}this.errorMessage_=_.Gx(Y)},
submitIfNotBackstagePost_:function(Y){if(!this.isBackstagePost)this.onSubmit_(Y)},
onSubmit_:function(Y){var b=this,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O;return _.c(function(L){switch(L.nextAddress){case 1:Y.stopPropagation();if(!b.serviceEndpoint||!b.isValidInput_())return L.return();if(b.shouldShowPostAadcNotice_())return b.showPostAadcNotice_(),L.return();if(b.shouldShowCommentAadcNotice_())return b.showCommentAadcNotice_(),L.return();if(!(b.$$("ytd-backstage-multi-image-select-renderer")&&b.hasImage_&&_.q("enable_multi_image_post_creation"))){L.jumpTo(2);break}w=b.$$("ytd-backstage-multi-image-select-renderer");
return _.D(L,w.getAllUploadStatuses(),3);case 3:V=L.yieldResult;if(!V)return L.return();H=_.N(V);for(f=H.next();!f.done;f=H.next())if(E=f.value,E.encryptedBlobId===void 0)return b.isLoading=!1,X=U=void 0,b.errorMessage_=(X=(U=b.imageUploadEndpoint_)==null?void 0:U.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?X:null,L.return();return L.return(b.submitForm_(void 0,void 0,void 0,void 0,w.images,b.taggedVideoId_));case 2:if(!b.hasImagePoll_||!b.$["image-poll-attachment"]){L.jumpTo(4);
break}return _.D(L,b.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:I=L.yieldResult;if(!I)return L.return();k=_.N(I);for(l=k.next();!l.done;l=k.next())if(x=l.value,!x.encryptedBlobId)return b.isLoading=!1,Q=void 0,b.errorMessage_=(Q=b.data.errorMessage)!=null?Q:null,L.return();case 4:e=(Z=b.$$("ytd-backstage-image-select-renderer"))&&Z.uploadPromise(),O=b.getSharedPostId_(),e?e.then(function(){b.submitForm_.apply(b,_.Bt(_.BN.apply(0,arguments)))}).catch(function(r){b.isLoading=!1;
b.errorMessage_=_.Gx(r.message)}):b.selectedVideoId_?b.submitForm_(void 0,b.selectedVideoId_):b.prefilledAttachment_==="image"?b.submitForm_(b.prefilledImageData_.encryptedBlobId,void 0,void 0,b.prefilledImageData_.sourceExternalVideoId,void 0,b.taggedVideoId_):b.prefilledAttachment_==="video"?b.submitForm_(void 0,b.data.backstageAttachment.videoRenderer.videoId):O?b.submitForm_(void 0,void 0,O):b.taggedVideoId_!==void 0?b.submitForm_(void 0,void 0,void 0,void 0,void 0,b.taggedVideoId_):b.submitForm_(),
_.om(L)}})},
openSchedulingPanel:function(Y){Y&&Y.scheduleButton&&Y.scheduleButton.buttonRenderer&&(this.scheduleButton_=Y.scheduleButton.buttonRenderer);Y&&Y.dateTimePicker&&this.set("data.schedulingDateTimePicker",Y.dateTimePicker)},
openImagePollComponent:function(){this.addedAttachment="image-poll";this.$["image-poll-attachment"]&&this.$["image-poll-attachment"].resetPollOptions()},
openQuizComponent:function(){this.addedAttachment="quiz";this.$["quiz-attachment"]&&this.$["quiz-attachment"].resetQuizOptions()},
onCancel_:function(Y){Y.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(Y){Y.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(Y){Y.stopPropagation();Y.detail.alertMessage&&(this.alertMessage_=Y.detail.alertMessage)},
onImageSelected_:function(Y){Y.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(Y){Y.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(Y){Y.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(Y.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(Y){Y.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(Y){var b=this.$["video-link-attachment"];b&&b.onLaunchVideoPicker(Y)},
onAttachmentDismiss_:function(Y){Y.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.q("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.q("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var Y;if(this.addedAttachment==="image-poll"&&((Y=this.$["image-poll-attachment"])==null||!Y.isValid()))return!1;var b;if(this.addedAttachment==="quiz"&&((b=this.$["quiz-attachment"])==null||!b.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;Y=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(Y=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")Y=!0;return Y||!!this.getTextAreaValue().trim()},
submitForm_:function(Y,b,w,V,H,f){var E=this.getTextAreaValue().trim(),U={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&E===this.previousText_&&(E=void 0);E!==void 0&&(U.comment_text=E);this.isLoading=!0;f!=void 0&&(U.tagged_video_id=f);Y?(U.image_blob_id=Y,this.imagePreviewCoordinates_&&(U.image_preview_coordinates=this.imagePreviewCoordinates_)):b?U.attached_video_id=b:w?U.shared_post_id=w:H&&H.length>0&&(U.images_data=H.map(function(X){return{encryptedBlobId:X.encryptedBlobId,
previewCoordinates:X.previewCoordinates}}));
V&&(U.source_video_id=V);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(U.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(U.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(U.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.q("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(U.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.q("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(U.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.oP(this,[this.serviceEndpoint,U])},
onIsInputFocusChanged_:function(Y,b){Y?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(Y){var b=this.getEditableTextArea_();[].concat(_.Bt(Y.dataTransfer.items)).forEach(function(w){w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(V){b.appendChild(document.createTextNode(V))})});
Y.preventDefault()},
preventDefault_:function(Y){Y.preventDefault()},
onSuggestionInsert_:function(Y){this.insertTextWithEmojis_(Y.detail.range,Y.detail.text)},
onEmojiSuggestionClick_:function(Y){this.emojiInput.insertSuggestion(Y.detail)},
computeSubmitButtonClass_:function(Y,b){return!b||Y?"":"with-options"},
updateSuggestionOffset_:function(Y){if(this.emojiInput&&_.E6(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,w=Y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-w)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;Y=Y.getBoundingClientRect().left-b;_.E6(this.emojiInput).querySelector("#dropdown").style.marginLeft=Y+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(Y){if(_.q("enable_post_scheduling")&&this.data&&this.data.purpose){Y=Y.detail;if(Math.floor(Date.now()/1E3)>=Y)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var b=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(b)||b!==Y?this.scheduledPublishTimeSec_=Y:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=Y;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var Y=["image-button","image-poll-button","poll-button"];_.q("enable_quiz_creation")&&Y.push("quiz-button");_.q("auto_convert_posts_video_tag")||Y.push("video-link-button");return Y},
getButtonRenderer:function(Y,b){if(Y)switch(b){case "video-link-button":var w;return((w=Y.videoLinkButton)==null?void 0:w.buttonRenderer)||void 0;case "image-button":var V;return((V=Y.imageButton)==null?void 0:V.buttonRenderer)||void 0;case "poll-button":var H;return((H=Y.pollButton)==null?void 0:H.buttonRenderer)||void 0;case "image-poll-button":var f;return((f=Y.imagePollButton)==null?void 0:f.buttonRenderer)||void 0;case "quiz-button":var E;return((E=Y.quizButton)==null?void 0:E.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var Y;return(Y=this.data)==null||!Y.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var Y,b;return!((Y=this.data)==null||!Y.openAadcDialog)&&!((b=this.aadcGuidelinesState_)==null||!b.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.zO("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var Y;((Y=this.data)==null?0:Y.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.WO("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(Y){Y.clickTrackingParams&&_.Qd().clickCommand(Y);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Xx(this,"yt-close-popup-action")},
onHideIdentityChip:function(Y){var b;this.set("data.placeholderText",(b=Y.hideIdentityChipAction)==null?void 0:b.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Xq=function(){var Y=_.F.apply(this,arguments)||this;Y.isOpen=!1;Y.modern=_.q("web_modern_buttons");Y.roundedContainer=!0;Y.dropdownButtonOverride=_.q("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;Y.inPopupContainer=!1;Y.isCommentboxLoading=!1;var b=["image-button","image-poll-button","poll-button"];_.q("enable_quiz_creation")&&b.push("quiz-button");_.q("auto_convert_posts_video_tag")||b.push("video-link-button");Y.attachmentButtonIds=b;Y.actionMap={"yt-create-comment-action":"onCreateCommentAction",
"yt-create-poll-action":"onCreatePollAction","yt-add-video-link-action":"onAddVideoLinkAction","yt-show-scheduling-panel-command":"onShowSchedulingPanelCommand","yt-create-image-poll-command":"onCreateImagePollCommand","yt-create-quiz-command":"onCreateQuizCommand"};return Y};
_.P(Xq,_.F);_.g=Xq.prototype;_.g.computeButtonOverride=function(){var Y;return((Y=this.data)==null?0:Y.postOptionsMenu)&&_.q("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.g.configureRendererStamper=function(){var Y={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.q("auto_convert_posts_video_tag")||(Y["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return Y};
_.g.ready=function(){var Y=this,b=_.E6(this.hostElement).querySelector("#placeholder-area"),w=function(V){Y.onOpen(V)};
b.addEventListener("tap",w);b.addEventListener("keypress",w)};
_.g.showButtonEduTooltip=function(){var Y,b,w,V,H,f,E;if(_.q("enable_quiz_creation")&&((Y=this.data)==null?0:(b=Y.quizButton)==null?0:(w=b.buttonRenderer)==null?0:(V=w.hint)==null?0:(H=V.hintRenderer)==null?0:(f=H.content)==null?0:(E=f.bubbleHintRenderer)==null?0:E.text)&&(_.gW.getInstance(),Y=fZ(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(Y==null?void 0:
Y.length)>0)){this.ytComponentBehavior.resolveCommand(Y[0],{form:{element:this.quizButton}});return}var U;if((U=this.data)==null?0:U.imagePollButtonTooltip)if(_.gW.getInstance(),U=fZ(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(U==null?void 0:U.length)>0){this.ytComponentBehavior.resolveCommand(U[0],{form:{element:this.imagePollButton}});return}var X;_.q("enable_multi_image_post_creation")&&
((X=this.data)==null?0:X.multiImageButtonTooltip)&&(_.gW.getInstance(),X=fZ(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}}))};
_.g.onCreatePollAction=function(Y){_.v(Y,cZI)&&(this.JSC$13730_commentbox.addedAttachment="poll",this.openDialog())};
_.g.onAddVideoLinkAction=function(Y){if(_.v(Y,Evk))this.JSC$13730_commentbox.onAddVideoLink(Y)};
_.g.onShowSchedulingPanelCommand=function(Y){(Y=_.v(Y,SdU))&&this.openSchedulingPanel(Y)};
_.g.onCreateImagePollCommand=function(Y){_.v(Y,i9C)&&(this.JSC$13730_commentbox.openImagePollComponent(),this.openDialog())};
_.g.onCreateQuizCommand=function(Y){_.v(Y,At8)&&(this.JSC$13730_commentbox.openQuizComponent(),this.openDialog())};
_.g.openSchedulingPanel=function(Y){_.q("enable_post_scheduling")&&(this.openDialog(),this.JSC$13730_commentbox.openSchedulingPanel(Y))};
_.g.onCreateCommentAction=function(Y){this.get("createCommentAction.contents",Y)&&(this.JSC$13730_commentbox.clear(),this.closeDialog())};
_.g.onOpen=function(Y){Y instanceof KeyboardEvent&&Y.type==="keypress"&&Y.keyCode!==13&&Y.keyCode!==32||(this.data.prepareAccountEndpoint?_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.g.onYtCommentboxDismiss=function(){this.closeDialog()};
_.g.onYtCommentboxLoadingStart=function(Y){Y.stopPropagation();this.isCommentboxLoading=!0};
_.g.onYtCommentboxLoadingEnd=function(Y){Y.stopPropagation();this.isCommentboxLoading=!1};
_.g.onYtVideoLinkButtonCancel=function(Y){Y.stopPropagation();this.onOpen(Y)};
_.g.onYtVideoLinkSelected=function(Y){Y.stopPropagation();this.onOpen(Y)};
_.g.onIronSelect=function(Y){Y.stopPropagation();Y.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=Y.detail.item.value&&(this.accessRestriction?(this.accessRestriction=Y.detail.item.value,this.onOpen(Y)):this.accessRestriction=Y.detail.item.value)};
_.g.onYtNavigate=function(Y){this.get("detail.endpoint.backstageImageUploadEndpoint",Y)&&(this.JSC$13730_commentbox.addedAttachment="image",this.JSC$13730_commentbox.submitButtonDisabled=!0,this.onOpen(Y))};
_.g.onRequestSent=function(Y){if(_.q("web_button_rework"))for(var b=_.N(Y.detail),w=b.next();!w.done;w=b.next())_.v(w.value,wx9)&&(this.JSC$13730_commentbox.addedAttachment="image",this.JSC$13730_commentbox.submitButtonDisabled=!0,this.onOpen(Y))};
_.g.openDialog=function(){this.JSC$13730_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13730_commentbox.focus()};
_.g.onPopupClosed=function(){_.gW.getInstance()};
_.g.computeCreationDisabled=function(Y){return!!Y};
_.g.computeIsCreationDialog=function(Y){return!!Y&&Y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.g.computeDisabledPostButton=function(Y){if(!Y)return null;Y.isDisabled=!0;return Y};
_.g.computeIsCreationDialogWithHeader=function(Y){return!this.inPopupContainer&&!!Y&&!!Y.authorText&&Y.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.g.computeIsHeaderHidden=function(Y,b){return!Y||b};
_.g.computeDropdownRendererClasses=function(Y){return Y?["text-secondary-style"]:[]};
_.g.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var Y=_.E6(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;Y&&Y.reset()};
Xq.prototype.onPopupClosed=Xq.prototype.onPopupClosed;Xq.prototype.onRequestSent=Xq.prototype.onRequestSent;Xq.prototype.onYtNavigate=Xq.prototype.onYtNavigate;Xq.prototype.onIronSelect=Xq.prototype.onIronSelect;Xq.prototype.onYtVideoLinkSelected=Xq.prototype.onYtVideoLinkSelected;Xq.prototype.onYtVideoLinkButtonCancel=Xq.prototype.onYtVideoLinkButtonCancel;Xq.prototype.onYtCommentboxLoadingEnd=Xq.prototype.onYtCommentboxLoadingEnd;Xq.prototype.onYtCommentboxLoadingStart=Xq.prototype.onYtCommentboxLoadingStart;
Xq.prototype.onYtCommentboxDismiss=Xq.prototype.onYtCommentboxDismiss;Xq.prototype.showButtonEduTooltip=Xq.prototype.showButtonEduTooltip;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Xq.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Xq.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Xq.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Xq.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xq.prototype,"isOpen",void 0);_.z([_.R({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],Xq.prototype,"buttonOverride",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xq.prototype,"modern",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xq.prototype,"roundedContainer",void 0);_.z([_.R(),_.K("design:type",Object)],Xq.prototype,"dropdownButtonOverride",void 0);_.z([_.R({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.K("design:type",Boolean)],Xq.prototype,"creationDisabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Xq.prototype,"enableCreationBox",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.K("design:type",Boolean)],Xq.prototype,"isCreationDialog",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xq.prototype,"inPopupContainer",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.K("design:type",Boolean)],Xq.prototype,"isCreationDialogWithHeader",void 0);_.z([_.R(),_.K("design:type",Object)],Xq.prototype,"accessRestriction",void 0);
_.z([_.R({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.K("design:type",Array)],Xq.prototype,"dropdownRendererClasses",void 0);_.z([_.R(),_.K("design:type",Object)],Xq.prototype,"isCommentboxLoading",void 0);_.z([_.R(),_.K("design:type",Array)],Xq.prototype,"attachmentButtonIds",void 0);_.z([_.xZ("#image-button"),_.K("design:type",HTMLElement)],Xq.prototype,"imageButton",void 0);
_.z([_.xZ("#image-poll-button"),_.K("design:type",HTMLElement)],Xq.prototype,"imagePollButton",void 0);_.z([_.xZ("#quiz-button"),_.K("design:type",HTMLElement)],Xq.prototype,"quizButton",void 0);_.z([_.xZ("#commentbox"),_.K("design:type",Object)],Xq.prototype,"JSC$13730_commentbox",void 0);_.z([_.lr("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xq.prototype,"showButtonEduTooltip",null);
_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onYtCommentboxDismiss",null);_.z([_.kZ("yt-commentbox-loading-start"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onYtCommentboxLoadingStart",null);
_.z([_.kZ("yt-commentbox-loading-end"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onYtCommentboxLoadingEnd",null);_.z([_.kZ("yt-video-link-button-cancel"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onYtVideoLinkButtonCancel",null);
_.z([_.kZ("yt-video-link-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onYtVideoLinkSelected",null);_.z([_.kZ("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onIronSelect",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onYtNavigate",null);
_.z([_.kZ("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Xq.prototype,"onRequestSent",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xq.prototype,"onPopupClosed",null);_.z([_.S({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Xq);
_.a(Xq,"ytd-backstage-post-dialog-renderer",function(){if(yGk!==void 0)return yGk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return yGk=Y},{mode:1});var Bur;var neI;var Db=function(){return _.F.apply(this,arguments)||this};
_.P(Db,_.F);_.g=Db.prototype;_.g.computeHeartButtonStyle=function(Y){return(Y==null?0:Y.styleType)?Y.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.g.onYtButtonTap=function(){if(this.data.isEnabled){var Y=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(Y=this.getEndpoint(Y))&&_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})}else(Y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(Y)};
_.g.toggle=function(Y){this.set("data.isHearted",Y!==void 0?Y:!this.data.isHearted)};
_.g.getEndpoint=function(Y){var b,w=(b=this.data)==null?void 0:b.heartEndpoint,V;b=(V=this.data)==null?void 0:V.unheartEndpoint;if(w&&b)return Y?b:w};
_.g.computeButtonAccessibility=function(Y,b){var w,V,H=Y==null?void 0:(w=Y.heartedAccessibility)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label,f,E;Y=Y==null?void 0:(f=Y.unheartedAccessibility)==null?void 0:(E=f.accessibilityData)==null?void 0:E.label;return b?H:Y};
_.up.Object.defineProperties(Db.prototype,{heartTooltip:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.data.isHearted?this.data.heartedTooltip:this.data.unheartedTooltip}},
iconFilled:{configurable:!0,enumerable:!0,get:function(){var Y;return _.q("kevlar_system_icons")&&!((Y=this.data)==null||!Y.isHearted)}}});
Db.prototype.onYtButtonTap=Db.prototype.onYtButtonTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],Db.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Db.prototype,"data",void 0);_.z([_.t("data.isHearted"),_.K("design:type",Object),_.K("design:paramtypes",[])],Db.prototype,"heartTooltip",null);
_.z([_.t("data.isHearted"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Db.prototype,"iconFilled",null);_.z([_.R({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.K("design:type",String)],Db.prototype,"buttonAccessibility",void 0);_.z([_.R({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],Db.prototype,"heartButtonStyle",void 0);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Db.prototype,"onYtButtonTap",null);_.z([_.S({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Db);
_.a(Db,"ytd-creator-heart-renderer",function(){if(neI!==void 0)return neI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-creator-heart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="creator-heart-button" disabled="[[!data.isEnabled]]" label="[[buttonAccessibility]]" class="style-scope ytd-creator-heart-renderer">\n  <template is="dom-if" if="[[data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-img-shadow id="hearted-thumbnail" thumbnail="[[data.creatorThumbnail]]" class="style-scope ytd-creator-heart-renderer"></yt-img-shadow>\n    <yt-icon id="hearted-border" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n    <yt-icon id="hearted" default-to-filled="[[iconFilled]]" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n  <template is="dom-if" if="[[!data.isHearted]]" class="style-scope ytd-creator-heart-renderer">\n    <yt-icon id="unhearted" icon="[[data.heartIcon.iconType]]" class="style-scope ytd-creator-heart-renderer"></yt-icon>\n  </template>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-creator-heart-renderer">[[heartTooltip]]</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return neI=Y},{mode:1});var mC=function(){var Y=_.F.apply(this,arguments)||this;Y.hasCreatorReply=!1;Y.buttonOverrides={size:"S",iconPosition:"icon-only"};Y.replyButtonOverrides={size:"S",type:"text"};Y.forceIconButton=!_.q("web_modern_buttons");Y.modern=_.q("web_modern_buttons");Y.buttonTooltipPosition="bottom";Y.systemIcons=_.q("kevlar_system_icons");Y.replyDialog=null;return Y};
_.P(mC,_.F);_.g=mC.prototype;
_.g.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]]"}}}}}};
_.g.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.g.dataChange=function(){this.replyDialog&&_.E6(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var Y,b,w;this.isLiked=this.systemIcons&&!!((Y=this.data)==null?0:(b=Y.likeButton)==null?0:(w=b.toggleButtonRenderer)==null?0:w.isToggled)};
_.g.computeShowVoteCountBeginning=function(Y,b){return Y===void 0||b===void 0?!0:Y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.g.computeShowVoteCountEnd=function(Y,b){return Y===void 0||b===void 0?!0:Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.g.computeShowCommentCount=function(Y,b){return Y===void 0||b===void 0?!0:Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.g.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.g.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.g.showReplyDialog=function(Y){Y&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.E6(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=Y,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.g.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.g.onRequestSent=function(Y){if(_.q("web_button_rework")){Y=_.N(Y.detail);for(var b=Y.next();!b.done;b=Y.next())(b=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",b.value))&&this.showReplyDialog(b)}};
_.g.onYtNavigate=function(Y){var b,w;(Y=(b=_.v(Y.detail.endpoint,_.H9k))==null?void 0:(w=b.dialog)==null?void 0:w.commentReplyDialogRenderer)&&this.showReplyDialog(Y)};
_.g.onYtServiceRequestSent=function(Y,b){Y.stopPropagation();if(b.actions)for(Y=0;Y<b.actions.length;Y++){var w=_.v(b.actions[Y],DXd);w&&this.handleUpdateCommentVoteAction(w)}};
_.g.handleUpdateCommentVoteAction=function(Y){this.voteCount=Y.voteCount||_.Gx("0");Y.voteStatus==="LIKE"?this.JSC$13741_ytdDislikeToggleButtonRenderer.toggle(!1):Y.voteStatus==="DISLIKE"?this.JSC$13741_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13741_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13741_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.g.computeReplyButtonHidden=function(Y){return Y};
_.g.computeReplyButtonBeginning=function(Y){return(Y==null?0:Y.replyButton)&&Y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?Y.replyButton:void 0};
_.g.computeReplyButtonEnd=function(Y){return(Y==null?0:Y.replyButton)&&Y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?Y.replyButton:void 0};
_.g.computeActionButtonStyle=function(Y){return(Y==null?0:Y.style)?Y.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.g.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.g.onYtToggleButton=function(Y){var b,w;this.isLiked=this.systemIcons&&!!((b=Y.detail)==null?0:(w=b.actions)==null?0:w.like)};
mC.prototype.onYtToggleButton=mC.prototype.onYtToggleButton;mC.prototype.onButtonTooltipPositionChanged=mC.prototype.onButtonTooltipPositionChanged;mC.prototype.onYtServiceRequestSent=mC.prototype.onYtServiceRequestSent;mC.prototype.onYtNavigate=mC.prototype.onYtNavigate;mC.prototype.onRequestSent=mC.prototype.onRequestSent;mC.prototype.onYtCommentboxDismiss=mC.prototype.onYtCommentboxDismiss;mC.prototype.dataChange=mC.prototype.dataChange;
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mC.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"voteCount",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"commentCount",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"replyThumbnail",void 0);
_.z([_.R(),_.K("design:type",Object)],mC.prototype,"hasCreatorReply",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],mC.prototype,"enableCreationBox",void 0);_.z([_.R({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],mC.prototype,"actionButtonsStyle",void 0);_.z([_.R({computed:"computeReplyButtonBeginning(data)"}),_.K("design:type",Object)],mC.prototype,"replyButtonBeginning",void 0);
_.z([_.R({computed:"computeReplyButtonEnd(data)"}),_.K("design:type",Object)],mC.prototype,"replyButtonEnd",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"buttonOverrides",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"replyButtonOverrides",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"forceIconButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],mC.prototype,"useCommentIcon",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mC.prototype,"modern",void 0);_.z([_.R(),_.K("design:type",Object)],mC.prototype,"buttonTooltipPosition",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mC.prototype,"systemIcons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],mC.prototype,"isLiked",void 0);_.z([_.xZ("ytd-button-renderer"),_.K("design:type",Object)],mC.prototype,"ytdReplyButtonRenderer",void 0);
_.z([_.xZ("#like-button"),_.K("design:type",Object)],mC.prototype,"JSC$13741_ytdLikeToggleButtonRenderer",void 0);_.z([_.xZ("#dislike-button"),_.K("design:type",Object)],mC.prototype,"JSC$13741_ytdDislikeToggleButtonRenderer",void 0);_.z([_.xZ("#reply-dialog"),_.K("design:type",HTMLElement)],mC.prototype,"replyDialogElement",void 0);_.z([_.xZ("#reply-button"),_.K("design:type",HTMLElement)],mC.prototype,"replyButtonElement",void 0);
_.z([_.xZ("#reply-button-end"),_.K("design:type",HTMLElement)],mC.prototype,"replyButtonEndElement",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mC.prototype,"dataChange",null);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mC.prototype,"onYtCommentboxDismiss",null);
_.z([_.kZ("yt-service-request-sent-button-renderer"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mC.prototype,"onRequestSent",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mC.prototype,"onYtNavigate",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],mC.prototype,"onYtServiceRequestSent",null);_.z([_.lr("buttonTooltipPosition"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mC.prototype,"onButtonTooltipPositionChanged",null);
_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mC.prototype,"onYtToggleButton",null);_.z([_.S({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],mC);
_.a(mC,"ytd-comment-action-buttons-renderer",function(){if(Bur!==void 0)return Bur;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-action-buttons-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-action-buttons-renderer">\n  <div id="reply-button" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <span id="vote-count-left" hidden="[[!computeShowVoteCountBeginning(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.likeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!computeShowVoteCountEnd(data, voteCount)]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(voteCount)]]\n  </span>\n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.dislikeButton.toggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </ytd-toggle-button-renderer>\n  <div id="creator-heart" class="style-scope ytd-comment-action-buttons-renderer"></div>\n  <div id="share-button" hidden="[[!data.shareButton]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  <div id="reply-button-end" hidden="[[computeReplyButtonHidden(hasCreatorReply)]]" class="style-scope ytd-comment-action-buttons-renderer">\n  </div>\n  \n  <span id="comment-count" hidden="[[!computeShowCommentCount(data, commentCount)]]" class="style-scope ytd-comment-action-buttons-renderer">\n    [[getSimpleString(commentCount)]]\n  </span>\n</div>\n<div id="reply-dialog" class="style-scope ytd-comment-action-buttons-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Bur=Y},{mode:1});var MbK;var oW=function(){return _.F.apply(this,arguments)||this};
_.P(oW,_.F);oW.prototype.focus=function(){_.E6(this.hostElement).querySelector("#commentbox").focus()};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],oW.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],oW.prototype,"zeroStepChannelCreationRenderer",void 0);_.z([_.S({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],oW);
_.a(oW,"ytd-comment-dialog-renderer",function(){if(MbK!==void 0)return MbK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" zero-step-channel-creation-renderer="[[zeroStepChannelCreationRenderer]]" class="style-scope ytd-comment-dialog-renderer">\n</ytd-commentbox>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return MbK=Y},{mode:1});var e2C;var IW=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonOverrides={size:"S",iconPosition:"icon-only"};Y.replyButtonOverrides={size:"S",type:"text"};return Y};
_.P(IW,_.F);_.g=IW.prototype;_.g.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.g.detached=function(){this.replyBox&&this.replyBox.remove()};
_.g.showReplyDialog=function(Y){if(Y){var b=this.replyBox;b||(b=document.createElement("ytd-comment-reply-dialog-renderer"),b.id="replybox",_.E6(this.replyDialogDiv).appendChild(b));b.data=Y;this.replyDialogDiv.hidden=!1;b.openDialog()}};
_.g.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.g.onYtServiceRequestSent=function(Y,b){Y.stopPropagation();if(b.actions)for(var w=0;w<b.actions.length;w++){var V=_.v(b.actions[w],DXd);V?this.handleUpdateCommentVoteAction(V):Y.target===this.heartButton&&this.toggleHeartState()}};
_.g.handleUpdateCommentVoteAction=function(Y){var b;(b=this.toolbarState)!=null&&b.key&&this.ytdReduxBehavior.dispatch(_.R1("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:Y.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":Y.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.g.toggleHeartState=function(){var Y;(Y=this.toolbarState)!=null&&Y.key&&this.ytdReduxBehavior.dispatch(_.R1("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.up.Object.defineProperties(IW.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return(((Y=this.toolbarState)==null?void 0:Y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(b=this.toolbarData)==null?void 0:b.likeCountLiked:(w=this.toolbarData)==null?void 0:w.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand)!==void 0&&!_.q("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,b=_.v((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand,_.rI),w,V,H,f,E,U,X,I,k;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((w=this.toolbarSharedData)==null||!w.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((V=this.toolbarState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:b!=null?b:_.v((H=this.toolbarSurface)==null?void 0:H.likeCommand,_.rI),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.v((f=this.toolbarSurface)==null?void 0:f.unlikeCommand,_.rI),defaultCommand:this.isVisiblyDisabled?_.v((E=this.toolbarSurface)==null?void 0:E.commentDisabledActionCommand,_.rI):void 0,defaultTooltip:(U=this.toolbarData)==null?void 0:U.likeInactiveTooltip,toggledTooltip:(X=this.toolbarData)==null?void 0:X.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(I=this.toolbarData)==null?void 0:I.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,b=_.v((Y=this.toolbarSurface)==null?void 0:Y.prepareAccountCommand,_.rI),w,V,H,f,E,U,X,I,k,l;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((w=this.toolbarSharedData)==null||!w.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((V=this.toolbarState)==null?void 0:V.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.v((H=this.toolbarSurface)==null?void 0:H.dislikeCommand,_.rI),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.v((f=this.toolbarSurface)==null?void 0:f.undislikeCommand,_.rI),defaultCommand:this.isVisiblyDisabled?_.v((E=this.toolbarSurface)==null?void 0:E.commentDisabledActionCommand,_.rI):void 0,defaultTooltip:(U=this.toolbarData)==null?void 0:U.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?(I=this.toolbarSharedData)==null?void 0:I.dislikeReplyButtonA11y:(k=this.toolbarSharedData)==null?void 0:k.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(l=this.toolbarSharedData)==null?void 0:l.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;if(((Y=this.toolbarState)==null?void 0:Y.heartState)!==void 0&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((w=this.toolbarState)==null?void 0:w.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var V,H,f,E,U,X,I,k,l,x,Q,Z,e,O;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(V=this.toolbarData)==null?void 0:V.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((H=this.toolbarState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((f=this.toolbarState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((U=this.toolbarState)==null?void 0:U.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.v((X=this.toolbarSurface)==null?void 0:X.heartCommand,
_.rI),unheartEndpoint:this.isVisiblyDisabled?void 0:_.v((I=this.toolbarSurface)==null?void 0:I.unheartCommand,_.rI),disabledEndpoint:this.isVisiblyDisabled?_.v((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.rI):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(l=this.toolbarData)==null?void 0:l.heartActiveTooltip,unheartedTooltip:(x=this.toolbarData)==null?void 0:x.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((Q=
this.toolbarState)==null?void 0:Q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(Z=this.toolbarSharedData)==null?void 0:Z.unheartButtonA11y:(e=this.toolbarSharedData)==null?void 0:e.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(O=this.toolbarSharedData)==null?void 0:O.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.toolbarSurface)==null||!Y.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(Y=this.commentStrings)==null?void 0:Y.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.v((b=this.toolbarSurface)==null?void 0:b.replyCommand,_.rI),command:this.isVisiblyDisabled?_.v((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,
_.rI):this.isSubscribersOnlyComments?_.v((V=this.toolbarSurface)==null?void 0:V.subscribersOnlySnackbarCommand,_.rI):void 0}}}});
IW.prototype.onYtServiceRequestSent=IW.prototype.onYtServiceRequestSent;IW.prototype.hideReplyDialogDiv=IW.prototype.hideReplyDialogDiv;_.z([_.R(),_.K("design:type",Object)],IW.prototype,"commentStrings",void 0);_.z([_.R(),_.K("design:type",Boolean)],IW.prototype,"isReply",void 0);_.z([_.R(),_.K("design:type",Object)],IW.prototype,"toolbarData",void 0);_.z([_.R(),_.K("design:type",Object)],IW.prototype,"toolbarSharedData",void 0);
_.z([_.R(),_.K("design:type",String)],IW.prototype,"toolbarStateKey",void 0);_.z([_.R(),_.K("design:type",String)],IW.prototype,"toolbarSurfaceKey",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],IW.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],IW.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.xZ("#reply-dialog"),_.K("design:type",HTMLElement)],IW.prototype,"replyDialogDiv",void 0);_.z([_.xZ("#replybox"),_.K("design:type",Object)],IW.prototype,"replyBox",void 0);_.z([_.xZ("ytd-creator-heart-renderer"),_.K("design:type",Object)],IW.prototype,"heartButton",void 0);_.z([_.R({selector:function(Y,b){return _.kt(Y.entities,"engagementToolbarStateEntityPayload",b)},
selectorArgs:["toolbarStateKey"]}),_.K("design:type",Object)],IW.prototype,"toolbarState",void 0);_.z([_.R({selector:BZu,selectorArgs:["toolbarSurfaceKey"]}),_.K("design:type",Object)],IW.prototype,"toolbarSurface",void 0);_.z([_.R(),_.K("design:type",Object)],IW.prototype,"buttonOverrides",void 0);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IW.prototype,"hideReplyDialogDiv",null);
_.z([_.t("toolbarData","toolbarState"),_.K("design:type",String),_.K("design:paramtypes",[])],IW.prototype,"likeCount",null);_.z([_.t("likeCount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IW.prototype,"showLikeCount",null);_.z([_.t("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IW.prototype,"isVisiblyDisabled",null);_.z([_.t("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IW.prototype,"isSubscribersOnlyComments",null);
_.z([_.t("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IW.prototype,"hasPrepareAccountCommand",null);_.z([_.t("toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],IW.prototype,"likeToggleButtonRenderer",null);_.z([_.t("isReply","toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],IW.prototype,"dislikeToggleButtonRenderer",null);
_.z([_.t("toolbarData","toolbarState","toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],IW.prototype,"creatorHeartSupportedRenderer",null);_.z([_.t("toolbarSurface"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],IW.prototype,"hasReplyCommand",null);_.z([_.t("toolbarSurface","commentStrings","isVisiblyDisabled"),_.K("design:type",Object),_.K("design:paramtypes",[])],IW.prototype,"replyButtonRenderer",null);
_.z([_.R(),_.K("design:type",Object)],IW.prototype,"replyButtonOverrides",void 0);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],IW.prototype,"onYtServiceRequestSent",null);_.z([_.S({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],IW);
_.a(IW,"ytd-comment-engagement-bar",function(){if(e2C!==void 0)return e2C;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return e2C=Y},{mode:1});var pSI;var kx=function(){return _.F.apply(this,arguments)||this};
_.P(kx,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kx.prototype,"data",void 0);_.z([_.S({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],kx);
_.a(kx,"ytd-comment-inline-thumbnail-renderer",function(){if(pSI!==void 0)return pSI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-inline-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-comment-inline-thumbnail-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumbnail-container style-scope ytd-comment-inline-thumbnail-renderer" hidden="[[!data.thumbnail]]">\n    <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" object-fit="COVER" thumbnail="[[data.thumbnail]]" class="style-scope ytd-comment-inline-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</a>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return pSI=Y},{mode:1});var OWo;var tb9=function(){return _.F.apply(this,arguments)||this};
_.P(tb9,_.F);_.z([_.R(),_.K("design:type",Object)],tb9.prototype,"data",void 0);_.z([_.S({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],tb9);
_.a(tb9,"ytd-comment-pause-composer-renderer",function(){if(OWo!==void 0)return OWo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return OWo=Y},{mode:1});var R2t;var deC;var lv=function(){var Y=_.F.apply(this,arguments)||this;Y.isOpen=!1;return Y};
_.P(lv,_.F);_.g=lv.prototype;_.g.dataChanged=function(){this.isOpen=!1};
_.g.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.g.focus=function(){this.JSC$13767_commentbox.focus()};
_.g.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.g.openDialog=function(){this.isOpen=!0;this.JSC$13767_commentbox.focus();this.JSC$13767_commentbox.maybeHeightChanged()};
lv.prototype.onYtCommentboxDismiss=lv.prototype.onYtCommentboxDismiss;lv.prototype.dataChanged=lv.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lv.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],lv.prototype,"isOpen",void 0);_.z([_.xZ("#commentbox"),_.K("design:type",Object)],lv.prototype,"JSC$13767_commentbox",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lv.prototype,"dataChanged",null);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lv.prototype,"onYtCommentboxDismiss",null);_.z([_.S({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],lv);
_.a(lv,"ytd-comment-reply-dialog-renderer",function(){if(deC!==void 0)return deC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-reply-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-reply="" class="style-scope ytd-comment-reply-dialog-renderer">\n</ytd-commentbox>\n<div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-comment-reply-dialog-renderer">\n  <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-reply-dialog-renderer">\n  </yt-img-shadow>\n  <div id="placeholder-area" on-tap="onTap" on-keydown="onTap" class="style-scope ytd-comment-reply-dialog-renderer">\n    <yt-formatted-string id="placeholder-text" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-reply-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return deC=Y},{mode:1});var F9K;var hR=function(){return _.F.apply(this,arguments)||this};
_.P(hR,_.F);_.up.Object.defineProperties(hR.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.icon)==null?void 0:b.iconType;return w?"yt-icons:"+w.toLowerCase():null}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hR.prototype,"data",void 0);_.z([_.R(),_.t("data.icon"),_.K("design:type",Object),_.K("design:paramtypes",[])],hR.prototype,"icon",null);_.z([_.S({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],hR);
_.a(hR,"ytd-pinned-comment-badge-renderer",function(){if(F9K!==void 0)return F9K;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pinned-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon hidden="[[!icon]]" icon="[[icon]]" size="12" class="style-scope ytd-pinned-comment-badge-renderer"></yt-icon>\n<yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-pinned-comment-badge-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return F9K=Y},{mode:1});var L9C;var Snr={},anQ={input:!0,meta:!0,br:!0,link:!0,img:!0},xx=null;Snr.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(){xx==null&&(xx=document.createElement("tp-yt-paper-tooltip"),xx.offset=8,xx.fitToVisibleBounds=!0)},
onMouseOver_:function(Y){if(Y=_.FE(Y.target,function(H){return H==this||H.getAttribute&&H.getAttribute("shared-tooltip-text")}.bind(this),!0)){var b=Y.getAttribute("shared-tooltip-text");
if(b){var w=this,V=null;Y!=this&&(Y.tagName.toLowerCase()in anQ?w=Y.parentElement:w=Y,Y.id&&(V=Y.id));this.polymerController.createTooltipIfRequired_();if(xx.parentElement!=w||xx.for!=V)(0,_.DT)(xx).textContent=b,_.E6(w).appendChild(xx),xx.for=V,xx.animationDelay=this.polymerController.sharedTooltipAnimationDelay,xx.position=this.polymerController.sharedTooltipPosition}}}};var qN=function(){return _.F.apply(this,arguments)||this};
_.P(qN,_.F);qN.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]]"}}}}}};
qN.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
qN.prototype.colorChanged=function(){var Y,b,w,V=(Y=this.data)==null?void 0:(b=Y.color)==null?void 0:(w=b.basicColorPaletteData)==null?void 0:w.foregroundBodyColor;V&&(this.rgbBadgeColor=_.WH(V));_.E6(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
qN.prototype.tooltipChanged=function(){var Y;((Y=this.data)==null?0:Y.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
qN.prototype.tooltipChanged=qN.prototype.tooltipChanged;qN.prototype.colorChanged=qN.prototype.colorChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(Snr.YtSharedTooltipBehavior),_.K("design:type",Object)],qN.prototype,"ytSharedTooltipBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qN.prototype,"data",void 0);
_.z([_.R({value:"#4285F4"}),_.K("design:type",String)],qN.prototype,"rgbBadgeColor",void 0);_.z([_.lr("data.color"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qN.prototype,"colorChanged",null);_.z([_.lr("data.tooltip"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qN.prototype,"tooltipChanged",null);_.z([_.S({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],qN);
_.a(qN,"ytd-sponsor-comment-badge-renderer",function(){if(L9C!==void 0)return L9C;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsor-comment-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n<div id="custom-badge" aria-hidden="true" class="style-scope ytd-sponsor-comment-badge-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return L9C=Y},{mode:1});var rbQ;var z28;var s5=function(){return _.F.apply(this,arguments)||this};
_.P(s5,_.F);s5.prototype.computeState=function(Y){switch(Y==null?void 0:Y.stateIdentifier){case "TRI_STATE_IDENTIFIER_UNTOGGLED_STATE":return"untoggled";case "TRI_STATE_IDENTIFIER_TOGGLING_STATE":return"toggling";case "TRI_STATE_IDENTIFIER_TOGGLED_STATE":return"toggled";default:return"unknown"}};
s5.prototype.updateStateIdentifier=function(Y){if(this.viewModel.triStateKey){var b=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.R1("triStateButtonStateEntityPayload",b,{key:b,stateIdentifier:Y}))}};
s5.prototype.onClick=function(){var Y=this;if(this.data)switch(this.ytRendererBehavior.logExplicitClick(this.data),this.state){case "toggled":this.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE");break;case "untoggled":this.viewModel.transitionCommand?(this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLING_STATE"),this.ytComponentBehavior.resolveCommand(this.viewModel.transitionCommand,{commandController:{onSuccess:function(){Y.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){Y.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.up.Object.defineProperties(s5.prototype,{data:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case "untoggled":return this.viewModel.untoggledStateData;case "toggling":return this.viewModel.togglingStateData;case "toggled":return this.viewModel.toggledStateData}}},
buttonText:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.buttonText)||""}}});
_.z([_.R(),_.K("design:type",Object)],s5.prototype,"viewModel",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],s5.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],s5.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.z([_.R({selector:nnt,selectorArgs:["viewModel.triStateKey"]}),_.K("design:type",Object)],s5.prototype,"triStateButtonStateEntity",void 0);
_.z([_.R({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.K("design:type",String)],s5.prototype,"state",void 0);_.z([_.t("viewModel","state"),_.K("design:type",Object),_.K("design:paramtypes",[])],s5.prototype,"data",null);_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],s5.prototype,"buttonText",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],s5);
_.a(s5,"ytd-tri-state-button-view-model",function(){if(z28!==void 0)return z28;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tri-state-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button noink="" on-click="onClick" class="style-scope ytd-tri-state-button-view-model">\n  [[buttonText]]\n</tp-yt-paper-button>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return z28=Y},{mode:1});var W99;var K9U;var Qw=function(){var Y=_.F.apply(this,arguments)||this;Y.defaultIconToFilled=!_.q("kevlar_fill_comment_chip_icon_killswitch");return Y};
_.P(Qw,_.F);Qw.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Qw.prototype.dataChanged=function(){if(this.data){var Y,b;((Y=this.data.chipColorPalette)==null?0:Y.backgroundColor)&&((b=this.data.chipColorPalette)==null?0:b.foregroundTitleColor)&&_.m_(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.KX(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.KX(this.data.chipColorPalette.foregroundTitleColor)});var w;((w=this.data)==null?0:w.command)?(_.m_(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.m_(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}};
Qw.prototype.onTap=function(){var Y;if(this.data&&(Y=this.data)!=null&&Y.command){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.command)}};
Qw.prototype.getIconSize=function(){return _.q("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Qw.prototype.onTap=Qw.prototype.onTap;Qw.prototype.dataChanged=Qw.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Qw.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.ni),_.K("design:type",Object)],Qw.prototype,"ironA11yKeysBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Qw.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],Qw.prototype,"basePriceText",void 0);_.z([_.R(),_.K("design:type",Object)],Qw.prototype,"chipIcon",void 0);_.z([_.R(),_.K("design:type",Object)],Qw.prototype,"defaultIconToFilled",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qw.prototype,"dataChanged",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qw.prototype,"onTap",null);
_.z([_.FM({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Qw);
_.a(Qw,"yt-pdg-comment-chip-renderer",function(){if(K9U===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-comment-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.pdg.yt_pdg_comment_chip_renderer.yt.pdg.comment.chip.renderer.css.js--\x3e<div id="comment-chip-container" class="style-scope yt-pdg-comment-chip-renderer"><yt-icon default-to-filled="[[defaultIconToFilled]]" icon="[[chipIcon.iconType]]" size="[[getIconSize()]]" class="style-scope yt-pdg-comment-chip-renderer"></yt-icon><span id="comment-chip-price" class="style-scope yt-pdg-comment-chip-renderer"> [[getSimpleString(basePriceText)]] </span></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;W99===void 0&&(W99=document.createElement("template"));var V=W99;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);K9U=Y}Y=K9U;return Y},{mode:2});var vm=function(){var Y=_.F.apply(this,arguments)||this;Y.useSmallAvatars=_.q("small_avatars_for_comments");Y.webWatchCompactComments=_.q("web_watch_compact_comments");Y.editDialog=null;return Y};
_.P(vm,_.F);_.g=vm.prototype;_.g.onShow=function(){_.aP("cmv",void 0,"wn_comments")};
_.g.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"}}}};
_.g.detached=function(){this.editDialog=null;this.expander.reset()};
_.g.updateBackgroundColor=function(){if(this.backgroundColor){var Y={"--ytd-comment-paid-background-color":_.KX(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.m_(this.hostElement,Y)}else _.m_(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.g.resetExpander=function(){var Y;(Y=this.expander)==null||Y.reset()};
_.g.openEditDialog=function(Y){Y.dialog&&(this.editDialog=Y.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.g.onYtNavigate=function(Y){var b=Y.detail.endpoint;if(b=_.v(b,_.gWo)||_.v(b,_.f4d))Y.stopPropagation(),this.openEditDialog(b)};
_.g.onYtCommentboxDismiss=function(){this.editDialog=null;_.m_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.g.onAuthorThumbnailClicked=function(){var Y=this;_.q("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(b,w){Y.onAuthorThumbnailEndpointSuccess(w)},
onServerError:function(b,w){_.Sk(new _.BQ("Failed to resolve the command",w))}}})};
_.g.onAuthorThumbnailEndpointSuccess=function(Y){if((Y=Y==null?void 0:Y.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(Y,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();Y=Y==null?void 0:Y.clickTrackingParams;var b=_.R3();Y&&b&&_.Qd().graftServerVe(Y,b)}};
_.g.logScreenVe=function(){_.mo(_.Qd(),66557)};
_.g.onYtCommentboxResize=function(Y){var b;(Y==null?0:(b=Y.detail)==null?0:b.height)&&_.m_(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":Y.detail.height+"px"})};
_.up.Object.defineProperties(vm.prototype,{linked:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.linkedCommentText}},
linkedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.linked?{metadataBadgeRenderer:{label:this.viewModel.linkedCommentText,style:"BADGE_STYLE_TYPE_SIMPLE"}}:null}},
pinned:{configurable:!0,enumerable:!0,get:function(){return!!this.viewModel.pinnedText}},
pinnedCommentBadge:{configurable:!0,enumerable:!0,get:function(){return this.viewModel&&this.pinned?{renderer:{icon:{iconType:"KEEP"},label:{runs:[{text:this.viewModel.pinnedText}]}}}:null}},
authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.commentEntity)==null?void 0:Y.author;return b&&(b.isCreator||b.isVerified||b.isArtist)?{renderer:{authorEndpoint:b.channelPageEndpoint?_.v(b.channelPageEndpoint,_.rI):_.v(b.channelCommand,_.rI),authorText:{runs:[{text:b.displayName}]},color:b.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:b.isArtist?{iconType:"AUDIO_BADGE"}:
b.isVerified?{iconType:b.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:b.isArtist||b.isVerified?b.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.commentEntity)==null?void 0:Y.author;return b!=null&&b.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:b.sponsorBadgeUrl}]},tooltip:b.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return _.v((Y=this.commentSurfaceEntity)==null?void 0:Y.pdgCommentChip,_.dbI)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var Y;return this.voiceReplyContainerViewModel&&((Y=this.voiceReplyContainerViewModel)==null?void 0:Y.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return _.v((Y=this.commentSurfaceEntity)==null?void 0:Y.voiceReplyContainerViewModel,xXk)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.voiceReplyContainerViewModel&&(Y=this.voiceReplyContainerViewModel)!=null&&Y.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=(Y=this.commentSurfaceEntity)==null?void 0:Y.commentBackgroundColor)!=null?b:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.q("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(((Y=this.commentEntity)==null?void 0:(b=Y.properties)==null?void 0:b.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(_.q("enable_profile_cards_on_comments")&&((Y=this.commentEntity)==null?0:(b=Y.author)==null?0:b.profileCardEndpoint)&&this.viewModel.allowProfileCard){var w,V;return _.v((w=this.commentEntity)==null?void 0:(V=w.author)==null?void 0:V.profileCardEndpoint,_.rI)}var H,f;return _.v((H=this.commentEntity)==null?void 0:(f=H.avatar)==null?void 0:f.endpoint,_.rI)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(_.q("enable_profile_cards_on_comments")&&((Y=this.commentEntity)==null?0:(b=Y.author)==null?0:b.channelPageEndpoint)){var w,V;return _.v((w=this.commentEntity)==null?void 0:(V=w.author)==null?void 0:V.channelPageEndpoint,_.rI)}var H,f;return _.v((H=this.commentEntity)==null?void 0:(f=H.avatar)==null?void 0:f.endpoint,_.rI)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H=(Y=this.commentEntity)==null?void 0:(b=Y.avatar)==null?void 0:(w=b.image)==null?void 0:(V=w.sources)==null?void 0:V[0];return H?{thumbnails:[{url:H.url,width:H.width,height:H.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.commentEntity)==null?0:(b=Y.author)==null?0:b.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.commentEntity)==null?void 0:(b=Y.author)==null?void 0:b.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.commentEntity)==null?void 0:(b=Y.properties)==null?void 0:b.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return _.v((Y=this.commentSurfaceEntity)==null?void 0:Y.publishedTimeCommand,_.rI)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(((Y=this.commentEntity)==null?0:Y.translatedContent)&&((b=this.translateButtonState)==null?void 0:b.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var w;if((w=this.voiceReplyContainerViewModel)==null?0:w.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var V,H;return((V=this.commentEntity)==null?void 0:(H=V.properties)==null?void 0:H.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.commentSharedEntity)==null?void 0:(b=Y.strings)==null?void 0:b.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.commentSharedEntity)==null?void 0:(b=Y.strings)==null?void 0:b.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.commentEntity)==null||!Y.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var Y,b,w=(b=_.v((Y=this.viewModel)==null?void 0:Y.translateButton,h09))!=null?b:{},V,H,f,E,U,X,I,k,l,x,Q;return Object.assign({},w,{untoggledStateData:Object.assign({},w.untoggledStateData,{buttonText:(V=this.commentEntity)==null?void 0:(H=V.translateData)==null?void 0:H.text}),togglingStateData:Object.assign({},w.togglingStateData,{buttonText:(f=this.commentSharedEntity)==null?
void 0:(E=f.strings)==null?void 0:E.translatingText}),toggledStateData:Object.assign({},w.toggledStateData,{buttonText:(U=this.commentSharedEntity)==null?void 0:(X=U.strings)==null?void 0:X.seeOriginalText}),transitionCommand:((I=this.commentEntity)==null?0:I.translatedContent)?void 0:_.v((k=this.commentEntity)==null?void 0:(l=k.translateData)==null?void 0:l.translateComment,_.rI),triStateKey:(x=this.commentEntity)==null?void 0:(Q=x.properties)==null?void 0:Q.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((b=_.v(_.v((Y=this.toolbarSurface)==null?void 0:Y.menuCommand,_.rI),Nf_))==null?void 0:(w=b.menu)==null?void 0:w.menuRenderer)||null}}});
vm.prototype.onYtCommentboxResize=vm.prototype.onYtCommentboxResize;vm.prototype.onYtCommentboxDismiss=vm.prototype.onYtCommentboxDismiss;vm.prototype.onYtNavigate=vm.prototype.onYtNavigate;vm.prototype.resetExpander=vm.prototype.resetExpander;vm.prototype.updateBackgroundColor=vm.prototype.updateBackgroundColor;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],vm.prototype,"ytdReduxBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],vm.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vm.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("#author-thumbnail > button"),_.K("design:type",HTMLElement)],vm.prototype,"authorThumbnailAnchor",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vm.prototype,"linked",null);
_.z([_.t("viewModel","linked"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"linkedCommentBadge",null);_.z([_.R({reflectToAttribute:!0}),_.t("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vm.prototype,"pinned",null);_.z([_.t("viewModel","pinned"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"pinnedCommentBadge",null);
_.z([_.t("commentEntity","commentSharedEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"authorCommentBadge",null);_.z([_.R({reflectToAttribute:!0}),_.t("authorCommentBadge"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"hasAuthorBadge",null);_.z([_.t("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"sponsorCommentBadge",null);
_.z([_.R({reflectToAttribute:!0}),_.t("sponsorCommentBadge"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"hasSponsorBadge",null);_.z([_.t("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"pdgCommentChipRenderer",null);_.z([_.R({reflectToAttribute:!0}),_.t("voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"hasVoiceReply",null);
_.z([_.t("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"voiceReplyContainerViewModel",null);_.z([_.t("voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"voiceReplyUnavailableText",null);_.z([_.R(),_.K("design:type",Object)],vm.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"viewModel",null);
_.z([_.R({selector:function(Y,b){return _.kt(Y.entities,"commentSharedEntityPayload",b)},
selectorArgs:["viewModel.sharedKey"]}),_.K("design:type",Object)],vm.prototype,"commentSharedEntity",void 0);_.z([_.R({selector:function(Y,b){return _.kt(Y.entities,"commentEntityPayload",b)},
selectorArgs:["viewModel.commentKey"]}),_.K("design:type",Object)],vm.prototype,"commentEntity",void 0);_.z([_.R({selector:function(Y,b){return _.kt(Y.entities,"commentSurfaceEntityPayload",b)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.K("design:type",Object)],vm.prototype,"commentSurfaceEntity",void 0);_.z([_.R({selector:BZu,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.K("design:type",Object)],vm.prototype,"toolbarSurface",void 0);_.z([_.R({selector:nnt,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.K("design:type",Object)],vm.prototype,"translateButtonState",void 0);
_.z([_.t("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"backgroundColor",null);_.z([_.R({reflectToAttribute:!0}),_.t("viewModel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vm.prototype,"optimalReadingWidthComments",null);_.z([_.xZ("ytd-expander"),_.K("design:type",Object)],vm.prototype,"expander",void 0);
_.z([_.lr("backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vm.prototype,"updateBackgroundColor",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vm.prototype,"useSmallAvatars",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vm.prototype,"webWatchCompactComments",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"isReply",null);
_.z([_.t("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"authorThumbnailEndpoint",null);_.z([_.t("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"authorNameEndpoint",null);_.z([_.t("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"authorThumbnail",null);_.z([_.t("commentEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],vm.prototype,"authorTextClass",null);
_.z([_.t("commentEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],vm.prototype,"authorChannelName",null);_.z([_.t("commentEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"publishedTime",null);_.z([_.t("commentSurfaceEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"publishedTimeCommand",null);
_.z([_.t("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"contentText",null);_.z([_.lr("contentText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vm.prototype,"resetExpander",null);_.z([_.t("commentEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vm.prototype,"shouldShowReadMoreInitially",null);
_.z([_.t("commentSharedEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],vm.prototype,"expandText",null);_.z([_.t("commentSharedEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],vm.prototype,"collapseText",null);_.z([_.t("commentEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vm.prototype,"shouldShowTranslateButton",null);
_.z([_.t("commentEntity","commentSharedEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"translateButton",null);_.z([_.t("toolbarSurface"),_.K("design:type",Object),_.K("design:paramtypes",[])],vm.prototype,"overflowMenuRenderer",null);_.z([_.R(),_.K("design:type",Object)],vm.prototype,"editDialog",void 0);_.z([_.xZ("ytd-comment-dialog-renderer"),_.K("design:type",Object)],vm.prototype,"editCommentDialogContainer",void 0);
_.z([_.xZ("ytd-comment-reply-dialog-renderer"),_.K("design:type",Object)],vm.prototype,"editReplyDialogContainer",void 0);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],vm.prototype,"onYtNavigate",null);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],vm.prototype,"onYtCommentboxDismiss",null);
_.z([_.kZ("yt-commentbox-resize"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],vm.prototype,"onYtCommentboxResize",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-comment-view-model"})],vm);
_.a(vm,"ytd-comment-view-model",function(){if(rbQ!==void 0)return rbQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return rbQ=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var Pm=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_modern_buttons");Y.isWatchGrid=_.q("kevlar_watch_grid");Y.buttonOverrides={style:"call-to-action"};Y.JSC$13813_spinnerEl=null;return Y};
_.P(Pm,_.F);_.g=Pm.prototype;_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.g.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.g.attached=function(){this.isShowRepliesVisible=!0};
_.g.dataChanged=function(){var Y=this.expanderContents;Y&&(Y.hidden=!0);this.isLoading=!1};
_.g.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.g.isLoadingChanged=function(){this.isLoading&&!this.JSC$13813_spinnerEl&&(this.JSC$13813_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E6(this.expanderContents).appendChild(this.JSC$13813_spinnerEl));this.JSC$13813_spinnerEl&&(this.JSC$13813_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var Y;(Y=this.contents)==null||Y.classList.remove("reloading")}};
_.g.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var Y=_.v(this.data.viewReplies,_.Wa);Y&&this.ytRendererBehavior.logExplicitClick(Y)};
_.g.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var Y=_.v(this.data.hideReplies,_.Wa);Y&&this.ytRendererBehavior.logExplicitClick(Y)};
_.g.isShowMoreChanged=function(){var Y=_.E6(this.hostElement).querySelector("#expander-contents");Y&&(Y.hidden=this.isShowRepliesVisible)};
_.g.computeAlign=function(){if(this.modern){var Y;return!((Y=this.data)==null?0:Y.viewRepliesCreatorThumbnail)}};
_.up.Object.defineProperties(Pm.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.data)==null?void 0:Y.contents;return!!b&&b.length>0&&!!b[b.length-1].continuationItemRenderer}}});
Pm.prototype.isShowMoreChanged=Pm.prototype.isShowMoreChanged;Pm.prototype.isLoadingChanged=Pm.prototype.isLoadingChanged;Pm.prototype.triggerFirstContinuation=Pm.prototype.triggerFirstContinuation;Pm.prototype.dataChanged=Pm.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.Af),_.K("design:type",Object)],Pm.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Pm.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Pm.prototype,"modern",void 0);_.z([_.R(),_.K("design:type",Boolean)],Pm.prototype,"isLoading",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Pm.prototype,"isShowRepliesVisible",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Pm.prototype,"useNewFormatting",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Pm.prototype,"isWatchGrid",void 0);_.z([_.R(),_.K("design:type",Object)],Pm.prototype,"buttonOverrides",void 0);_.z([_.xZ("#expander-contents"),_.K("design:type",HTMLElement)],Pm.prototype,"expanderContents",void 0);_.z([_.xZ("ytd-continuation-item-renderer"),_.K("design:type",Object)],Pm.prototype,"continuationItemRenderer",void 0);_.z([_.xZ("#contents"),_.K("design:type",HTMLElement)],Pm.prototype,"contents",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pm.prototype,"dataChanged",null);_.z([_.t("data.contents"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Pm.prototype,"hasContinuation",null);_.z([_.kZ("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pm.prototype,"triggerFirstContinuation",null);
_.z([_.lr("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pm.prototype,"isLoadingChanged",null);_.z([_.lr("isShowRepliesVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pm.prototype,"isShowMoreChanged",null);_.z([_.S({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Pm);
_.a(Pm,"ytd-comment-replies-renderer",function(){if(R2t!==void 0)return R2t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return R2t=Y},{mode:1});var iWI;var Zb=function(){var Y=_.F.apply(this,arguments)||this;Y.isOpen=!1;Y.commentDialog=null;Y.useSmallAvatars=_.q("small_avatars_for_comments");Y.useSmallAvatarsEngagementPanelOnly=_.q("small_avatars_for_comments_ep");Y.placeholderFocusListener=null;Y.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return Y};
_.P(Zb,_.F);_.g=Zb.prototype;_.g.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]]"}}}}}};
_.g.ready=function(){var Y=this,b=_.E6(this.hostElement).querySelector("#placeholder-area"),w=_.E6(this.hostElement).querySelector("#simplebox-placeholder"),V=function(H){H.stopPropagation();H instanceof KeyboardEvent&&H.type==="keypress"&&H.keyCode!==13&&H.keyCode!==32||Y.openDialog()};
this.placeholderFocusListener=V;w.addEventListener("focus",this.placeholderFocusListener);b.addEventListener("tap",V);b.addEventListener("keypress",V)};
_.g.maybeRemoveFocusEventListener=function(){var Y;(Y=this.data)!=null&&Y.prepareAccountEndpoint&&!_.q("web_comments_simplebox_modal_focus_on_tap_ks")&&(Y=_.E6(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(Y.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.g.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.g.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.q("web_comment_simplebox_resolve_polymer_command_ks")?_.l8.instance.resolveCommand(this.data.prepareAccountEndpoint):_.hA(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.E6(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.g.onYtCommentboxDismiss=function(Y){Y.stopPropagation();this.isOpen=!1};
_.g.onCreateCommentAction=function(Y){this.get("createCommentAction.contents",Y)&&(this.isOpen=!1)};
_.g.computeCommentDialog=function(Y){return{placeholderText:Y.placeholderText,authorThumbnail:Y.authorThumbnail,submitButton:Y.submitButton,imageButton:Y.imageButton,cancelButton:Y.cancelButton,emojiButton:Y.emojiButton,emojis:Y.emojis,emojiPicker:Y.emojiPicker,aadcGuidelinesStateEntityKey:Y.aadcGuidelinesStateEntityKey,openAadcDialog:Y.openAadcDialog,unicodeEmojisUrl:Y.unicodeEmojisUrl}};
_.g.onHideIdentityChip=function(Y){_.v(Y,UX9)&&this.set("data.placeholderText",_.v(Y,UX9).placeholderText)};
Zb.prototype.onYtCommentboxDismiss=Zb.prototype.onYtCommentboxDismiss;Zb.prototype.dataChanged=Zb.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Zb.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Zb.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Zb.prototype,"isOpen",void 0);_.z([_.R(),_.K("design:type",Object)],Zb.prototype,"commentDialog",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Zb.prototype,"engagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Zb.prototype,"useSmallAvatars",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Zb.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Zb.prototype,"enableCreationBox",void 0);_.z([_.R(),_.K("design:type",Boolean)],Zb.prototype,"showCreateDialog",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zb.prototype,"dataChanged",null);
_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Zb.prototype,"onYtCommentboxDismiss",null);_.z([_.S({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Zb);
_.a(Zb,"ytd-comment-simplebox-renderer",function(){if(iWI!==void 0)return iWI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="author-thumbnail" fit="" height="40" hidden="[[isOpen]]" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-simplebox-renderer">\n</yt-img-shadow>\n<div id="placeholder-area" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <yt-formatted-string id="simplebox-placeholder" role="textbox" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-comment-simplebox-renderer">\n  </yt-formatted-string>\n</div>\n<div id="attachments" hidden="[[isOpen]]" class="style-scope ytd-comment-simplebox-renderer">\n  <div id="image-button" class="style-scope ytd-comment-simplebox-renderer"></div>\n</div>\n<div id="comment-dialog" hidden="[[!isOpen]]" class="style-scope ytd-comment-simplebox-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return iWI=Y},{mode:1});var AbI;_.S9("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Bm=function(){var Y=_.F.apply(this,arguments)||this;Y.addHoverEffect=_.q("swatcheroo_comments_hover_effect");return Y};
_.P(Bm,_.F);Bm.prototype.onTap=function(Y){if(this.addHoverEffect&&!this.engagementPanel&&!_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||_.hA({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Bm.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.up.Object.defineProperties(Bm.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.commentViewModel)return _.v(this.data.commentViewModel,lXU)}}});
Bm.prototype.onTap=Bm.prototype.onTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bm.prototype,"addHoverEffect",void 0);_.z([_.R(),_.K("design:type",Object)],Bm.prototype,"data",void 0);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Bm.prototype,"commentViewModel",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Bm.prototype,"engagementPanel",void 0);_.z([_.kZ("tap"),_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Bm.prototype,"onTap",null);_.z([_.S({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Bm);
_.a(Bm,"ytd-comment-thread-renderer",function(){if(AbI!==void 0)return AbI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return AbI=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var C0C;var nD=function(){var Y=_.F.apply(this,arguments)||this;Y.modernTypography=_.q("web_modern_typography");Y.compactHeader=_.q("web_watch_compact_comments_header");Y.hidePanelButton=!1;Y.isPostSchedulingEnabled=_.q("enable_post_scheduling");Y.hasFinishedStamping=!1;Y.JSC$13831_handleOpenPostCommentDialogActionAfterStamp=!1;Y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return Y};
_.P(nD,_.F);_.g=nD.prototype;
_.g.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"}}}};
_.g.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.g.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13831_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.g.onYtServiceRequestSent=function(Y,b){if(!_.q("kevlar_command_handler")&&b.actions)for(Y=0;Y<b.actions.length;Y++){var w=b.actions[Y];_.v(w,SdU)&&_.E6(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.v(w,SdU))}};
_.g.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var Y;if(this.getPrefilledBackstagePostDialog((Y=this.data)==null?void 0:Y.actions)){_.E6(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var b=_.E6(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;b&&_.TC(this,function(){b.focus();b.openDialog&&b.openDialog()})}}else this.hasActionsChange=!0};
_.g.computeIsBackstage=function(Y){return Y};
_.g.onYtCommentboxDismiss=function(){_.E6(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.g.removePrefilledDialog=function(Y){if(Y==null?0:Y.actions){for(var b=Y.actions.length-1;b>=0;b--){var w=void 0;((w=_.v(Y.actions[b],Vf_))==null?0:w.dialog)&&delete Y.actions[b]}this.set("data",void 0);this.set("data",Y)}};
_.g.getPrefilledBackstagePostDialog=function(Y){if(Y)for(var b=0;b<Y.length;b++){var w=Y[b],V=void 0;if((V=_.v(w,Vf_))==null?0:V.dialog)return _.v(w,Vf_).dialog}return null};
_.g.computeBackstagePostDialog=function(Y){return Y&&(this.getPrefilledBackstagePostDialog(Y.actions)||Y.createRenderer)};
_.g.dataChanged=function(){if(this.data){var Y=this.data.customEmojis,b=this.data.unicodeEmojisUrl;_.Wz.clear();b&&_.CwK(_.Wz,b);Y&&_.Wz.load(Y)}};
_.g.handleSignalActionOpenPostCommentDialogAction=function(){var Y=_.E6(this.hostElement).querySelector("ytd-comment-simplebox-renderer");Y?Y.openDialog():this.JSC$13831_handleOpenPostCommentDialogActionAfterStamp=!0};
_.up.Object.defineProperties(nD.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.q("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H,f,E;return!this.hidePanelButton&&_.q("kevlar_watch_comments_panel_button")&&((E=_.v((Y=this.data)==null?void 0:(b=Y.sortMenu)==null?void 0:(w=b.sortFilterSubMenuRenderer)==null?void 0:(V=w.subMenuItems)==null?void 0:(H=V[0])==null?void 0:(f=H.serviceEndpoint)==null?void 0:f.commandMetadata,_.g5))==null?void 0:E.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.sa("MINIPLAYER_EXPAND_LABEL"),text:_.Gx(_.sa("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
nD.prototype.dataChanged=nD.prototype.dataChanged;nD.prototype.onYtCommentboxDismiss=nD.prototype.onYtCommentboxDismiss;nD.prototype.observePrefilledBackstagePostDialog=nD.prototype.observePrefilledBackstagePostDialog;nD.prototype.onYtServiceRequestSent=nD.prototype.onYtServiceRequestSent;nD.prototype.onStampFinished=nD.prototype.onStampFinished;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],nD.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nD.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nD.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nD.prototype,"modernTypography",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nD.prototype,"compactHeader",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],nD.prototype,"engagementPanel",void 0);_.z([_.R(),_.K("design:type",Object)],nD.prototype,"hidePanelButton",void 0);_.z([_.R({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.K("design:type",Boolean)],nD.prototype,"isBackstage",void 0);_.z([_.R({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.K("design:type",Object)],nD.prototype,"backstagePostDialog",void 0);
_.z([_.R(),_.K("design:type",Object)],nD.prototype,"isPostSchedulingEnabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data","showCommentsPanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],nD.prototype,"useSpaceBetween",null);_.z([_.R({reflectToAttribute:!0}),_.t("data","hidePanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],nD.prototype,"showCommentsPanelButton",null);
_.z([_.t("data","showCommentsPanelButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],nD.prototype,"commentsPanelButtonData",null);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nD.prototype,"onStampFinished",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],nD.prototype,"onYtServiceRequestSent",null);
_.z([_.lr("data.actions"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nD.prototype,"observePrefilledBackstagePostDialog",null);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],nD.prototype,"onYtCommentboxDismiss",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nD.prototype,"dataChanged",null);
_.z([_.S({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],nD);
_.a(nD,"ytd-comments-header-renderer",function(){if(C0C!==void 0)return C0C;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return C0C=Y},{mode:1});var ybt;var MN=function(){return _.F.apply(this,arguments)||this};
_.P(MN,_.F);_.z([_.R(),_.K("design:type",Object)],MN.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.z([_.S({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],MN);
_.a(MN,"ytd-destination-button-renderer",function(){if(ybt!==void 0)return ybt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="destination-content-root" class="yt-simple-endpoint style-scope ytd-destination-button-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n  <yt-img-shadow id="destination-icon" height="32" thumbnail="[[data.iconImage]]" width="32" class="style-scope ytd-destination-button-renderer"></yt-img-shadow>\n  <div id="destination-label-wrapper" class="style-scope ytd-destination-button-renderer">\n     <yt-formatted-string id="destination-label" text="[[data.label]]" class="style-scope ytd-destination-button-renderer"></yt-formatted-string>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ybt=Y},{mode:1});var $eK;var ed=function(){var Y=_.F.apply(this,arguments)||this;Y.isRichGrid=!1;Y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(ed,_.F);_.g=ed.prototype;_.g.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.g.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.g.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.g.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var Y;if((Y=this.data)==null||!Y.isExpanded){Y=this.hostElement.clientWidth;var b;if(Y&&(b=this.data)!=null&&b.destinationButtons){b=Math.floor((Y+4)/214);Y=this.data.destinationButtons.length;var w=Math.ceil(Y/b);this.fullyVisibleRows=Y%b===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}}}};
_.g.updateRichGridDestinationButtonsVisibility=function(){var Y,b;if(this.isRichGrid&&((Y=this.data)==null||!Y.isExpanded)&&(b=this.data)!=null&&b.destinationButtons){Y=this.richGridItemsPerRow+1;b=this.data.destinationButtons.length;var w=Math.ceil(b/Y);this.fullyVisibleRows=b%Y===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}};
_.g.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ed.prototype.updateRichGridDestinationButtonsVisibility=ed.prototype.updateRichGridDestinationButtonsVisibility;_.z([_.R(),_.K("design:type",Object)],ed.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Number)],ed.prototype,"fullyVisibleRows",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ed.prototype,"isShowMoreVisible",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ed.prototype,"isRichGrid",void 0);
_.z([_.R({selector:_.FZ,value:0}),_.K("design:type",Number)],ed.prototype,"richGridItemsPerRow",void 0);_.z([_.R(),_.K("design:type",Object)],ed.prototype,"gridStateActionMap",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],ed.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],ed.prototype,"ytdReduxBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ed.prototype,"modernTypography",void 0);_.z([_.lr("data","richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ed.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.z([_.S({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],ed);
_.a(ed,"ytd-destination-shelf-renderer",function(){if($eK!==void 0)return $eK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-destination-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-destination-shelf-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-destination-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="destination-buttons" class="style-scope ytd-destination-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-destination-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-destination-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $eK=Y},{mode:1});var jS9;var pD=function(){return _.F.apply(this,arguments)||this};
_.P(pD,_.F);pD.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pD.prototype,"data",void 0);_.z([_.S({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],pD);
_.a(pD,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(jS9!==void 0)return jS9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-cta-shelf-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="cta-renderer style-scope ytd-brandconnect-cta-shelf-card-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-brandconnect-cta-shelf-card-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-brandconnect-cta-shelf-card-renderer">\n    <p id="header-line" hidden="[[!data.headline]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.headline)]]\n    </p>\n    <p id="brand-name" hidden="[[!data.brandName]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.brandName)]]\n    </p>\n    <p id="description" hidden="[[!data.description]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer">\n      [[getSimpleString(data.description)]]\n    </p>\n    <div id="action-button" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n  </div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-brandconnect-cta-shelf-card-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return jS9=Y},{mode:1});var Gq8;var O5=function(){var Y=_.F.apply(this,arguments)||this;Y.disableAnimation=!1;Y.isSlimlineSurvey=!1;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;return Y};
_.P(O5,_.F);O5.prototype.onTap=function(Y){Y.preventDefault();this.data&&_.Ua(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.up.Object.defineProperties(O5.prototype,{isAnimatedIcon:{configurable:!0,enumerable:!0,get:function(){return!this.disableAnimation&&(this.isSlimlineSurveyFollowUp||this.isShortsStyle)}},
iconSize:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle?36:24}},
isDarkTheme:{configurable:!0,enumerable:!0,get:function(){return this.isShortsStyle||document.documentElement.hasAttribute("dark")}},
icon:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H;return((Y=this.data)==null?0:Y.checked)?(b=this.data)==null?void 0:(w=b.onStateIcon)==null?void 0:w.iconType:(V=this.data)==null?void 0:(H=V.defaultStateIcon)==null?void 0:H.iconType}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],O5.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],O5.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],O5.prototype,"disableAnimation",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],O5.prototype,"isSlimlineSurvey",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],O5.prototype,"isSlimlineSurveyFollowUp",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],O5.prototype,"isShortsStyle",void 0);_.z([_.t("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],O5.prototype,"isAnimatedIcon",null);
_.z([_.t("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Number),_.K("design:paramtypes",[])],O5.prototype,"iconSize",null);_.z([_.t("isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],O5.prototype,"isDarkTheme",null);_.z([_.t("data.checked"),_.K("design:type",Object),_.K("design:paramtypes",[])],O5.prototype,"icon",null);_.z([_.S({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],O5);
_.a(O5,"ytd-rating-survey-option-renderer",function(){if(Gq8!==void 0)return Gq8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="rating-survey-button" label="[[getSimpleString(data.responseText)]]" pressed="[[data.checked]]" toggleable="" on-tap="onTap" class="style-scope ytd-rating-survey-option-renderer">\n    <yt-icon icon="[[icon]]" is-animated-icon="[[isAnimatedIcon]]" is-dark-theme="[[isDarkTheme]]" size="[[iconSize]]" class="style-scope ytd-rating-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Gq8=Y},{mode:2});var Tu5;var tR=function(){var Y=_.F.apply(this,arguments)||this;Y.firstResponseText=null;Y.lastResponseText=null;Y.selectedNonStarOption=null;Y.hideOptions=!1;Y.hideUndoButton=!0;Y.disableAnimation=!1;Y.showResponseRangeText=!1;Y.selectedRatingIndex=-1;Y.isSlimlineSurvey=!1;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;Y.slimlineSurveyRatingSelectedIndex=-1;return Y};
_.P(tR,_.F);_.g=tR.prototype;_.g.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.g.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.g.onOptionChange=function(Y,b){var w=this;Y=b.onStateIcon&&b.defaultStateIcon&&b.onStateIcon.iconType===b.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(E,U){E.responseText===b.responseText?w.isSlimlineSurvey?(w.selectedRatingIndex=U,w.ytdReduxBehavior.dispatch(ABj(U))):(w.setSurveyOptionValue(U,!0,"checked"),w.setSurveyOptionValue(U,!0,"selected")):(w.setSurveyOptionValue(U,!1,"checked"),w.setSurveyOptionValue(U,
!1,"selected"))});
else if(Y)this.selectedNonStarOption=b,this.hideOptions=!0;else{var V=this.ytRendererBehavior.getSimpleString(b.responseText),H=!0;this.getOptionRenderers().forEach(function(E,U){w.setSurveyOptionValue(U,H,"checked");w.setSurveyOptionValue(U,!1,"selected");w.ytRendererBehavior.getSimpleString(E.responseText)===V&&(H=!1,w.setSurveyOptionValue(U,!0,"selected"))})}Y=b.responseEndpoint;
var f;b.followUpCommand&&(f=_.v(b.followUpCommand,Oj_));this.isSlimlineSurvey?(this.resetComponent(),_.Xx(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Xx(this.hostElement,"ytd-inline-survey-rating-select-action",[Y,f])};
_.g.showSelectedOption=function(){var Y=this;_.Lb.addJob(function(){var b=Y.getOptionRenderers()[Y.slimlineSurveyRatingSelectedIndex];Y.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),b)},8,100)};
_.g.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(Y){var b;return(b=_.v(Y,RP_))!=null?b:{}}):[]};
_.g.onUndoClick=function(){this.resetComponent();_.Xx(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.g.setSurveyOptionValue=function(Y,b,w){this.notifyPath("data.ratings."+Y+".ratingSurveyOptionRenderer."+w);this.set("data.ratings."+Y+".ratingSurveyOptionRenderer."+w,b)};
_.g.resetComponent=function(){var Y=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var b=this.getOptionRenderers(),w,V;this.firstResponseText=(V=(w=b[0])==null?void 0:w.responseText)!=null?V:null;var H,f;this.lastResponseText=(f=(H=b[b.length-1])==null?void 0:H.responseText)!=null?f:null;b.forEach(function(E,U){Y.setSurveyOptionValue(U,!1,"checked");Y.setSurveyOptionValue(U,!1,"selected")})};
_.up.Object.defineProperties(tR.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
tR.prototype.onOptionChange=tR.prototype.onOptionChange;tR.prototype.dataChanged=tR.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],tR.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],tR.prototype,"firstResponseText",void 0);_.z([_.R(),_.K("design:type",Object)],tR.prototype,"lastResponseText",void 0);_.z([_.R(),_.K("design:type",Object)],tR.prototype,"selectedNonStarOption",void 0);_.z([_.R(),_.K("design:type",Object)],tR.prototype,"hideOptions",void 0);_.z([_.R(),_.K("design:type",Object)],tR.prototype,"hideUndoButton",void 0);_.z([_.R(),_.K("design:type",Object)],tR.prototype,"disableAnimation",void 0);
_.z([_.R(),_.K("design:type",Object)],tR.prototype,"showResponseRangeText",void 0);_.z([_.R(),_.K("design:type",Object)],tR.prototype,"selectedRatingIndex",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],tR.prototype,"isSlimlineSurvey",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],tR.prototype,"isSlimlineSurveyFollowUp",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],tR.prototype,"isShortsStyle",void 0);_.z([_.R({selector:function(Y){return Y.ui.slimlineSurveyRatingSelectedIndex}}),
_.K("design:type",Object)],tR.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.z([_.t("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],tR.prototype,"isSingleSelect",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tR.prototype,"dataChanged",null);
_.z([_.kZ("ytd-rating-survey-option-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],tR.prototype,"onOptionChange",null);_.z([_.S({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],tR);
_.a(tR,"ytd-rating-survey-renderer",function(){if(Tu5!==void 0)return Tu5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rating-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selection-panel" class="style-scope ytd-rating-survey-renderer">\n  <div id="options" class="style-scope ytd-rating-survey-renderer">\n    <div id="ratings" hidden="[[hideOptions]]" class="style-scope ytd-rating-survey-renderer"></div>\n  </div>\n  <div id="selected-response-icon" hidden="[[!selectedNonStarOption]]" class="style-scope ytd-rating-survey-renderer">\n    <yt-icon icon="[[selectedNonStarOption.onStateIcon.iconType]]" class="style-scope ytd-rating-survey-renderer"></yt-icon>\n  </div>\n  <div id="bottom-text-container" hidden="[[!showResponseRangeText]]" class="style-scope ytd-rating-survey-renderer">\n    <div id="first-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[firstResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n    <div id="last-response-text" class="style-scope ytd-rating-survey-renderer">\n      <yt-formatted-string text="[[lastResponseText]]" class="style-scope ytd-rating-survey-renderer"></yt-formatted-string>\n    </div>\n  </div>\n</div>\n<ytd-button-renderer id="undo-button" data="[[data.undoButton.buttonRenderer]]" hidden="[[hideUndoButton]]" on-click="onUndoClick" class="style-scope ytd-rating-survey-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Tu5=Y},{mode:1});var JbC;var uYC;var Ymk;var oYq=(O1.FIRSTDAYOFWEEK+1)%7,br8=function(Y,b,w,V){var H="";if(V.selection&&Ugb(V.selection))My(Y,V.selection)&&(H+=" selected");else if(V.selection&&X_G(V.selection)){var f=V.selection.selectionState||"START_DATE";My(Y,V.selection.start)&&(H+=" period-start ",f==="START_DATE"&&(H+="selected"));My(Y,V.selection.end)&&(H+=" period-end ",f==="END_DATE"&&(H+="selected"));eV(Y,V.selection.start)||eV(V.selection.end,Y)||(H+=" highlighted")}if(eV(b,V.start)||eV(V.end,b))H+=" disabled";V.circleToday&&
My(b,w)&&(H+=" today");return H};var RW=function(){return _.F.apply(this,arguments)||this};
_.P(RW,_.F);_.g=RW.prototype;_.g.attached=function(){var Y=this;_.TC(this,function(){Y.JSC$13865_calendarMain.scrollHeight>0&&(Y.calendarConfig.selection?Y.scrollToDate(Dg6(Y.calendarConfig.selection)):Y.scrollToDate(Y.calendarConfig.end))})};
_.g.updateSelection=function(Y){Y=IOM(Object.assign({},this.calendarConfig,{selection:Y}),br8);this.splice.apply(this,["renderData.months",0,Y.length].concat(_.Bt(Y)))};
_.g.scrollToDate=function(Y){this.renderData&&(Y=kRG(Y,this.renderData),Y!==void 0&&this.JSC$13865_calendarMain.scrollToIndex(Y))};
_.g.scrollToNextMonth=function(){this.JSC$13865_calendarMain.scrollToIndex(this.JSC$13865_calendarMain.firstVisibleIndex+1)};
_.g.scrollToPrevMonth=function(){this.JSC$13865_calendarMain.firstVisibleIndex===0&&this.JSC$13865_calendarMain.scrollTo(0,0);this.JSC$13865_calendarMain.scrollToIndex(this.JSC$13865_calendarMain.firstVisibleIndex-1)};
_.g.handleDayClick=function(Y){_.Xx(this.hostElement,"ytd-calendar-date-clicked",[Y.model.day.date])};
_.g.handleDayMouseDown=function(Y){Y.preventDefault();_.Xx(this.hostElement,"ytd-calendar-date-mousedown",[Y.model.day.date])};
_.g.handleDayMouseUp=function(Y){_.Xx(this.hostElement,"ytd-calendar-date-mouseup",[Y.model.day.date])};
_.g.handleDayMouseEnter=function(Y){Y.preventDefault();_.Xx(this.hostElement,"ytd-calendar-date-mouseenter",[Y.model.day.date])};
_.g.handleDayMouseLeave=function(Y){_.Xx(this.hostElement,"ytd-calendar-date-mouseleave",[Y.model.day.date])};
_.up.Object.defineProperties(RW.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var Y=this.calendarConfig,b=br8;b=b===void 0?br8:b;for(var w=[],V=0;V<7;V++)w.push(O1.NARROWWEEKDAYS[(V+oYq)%7]);return{months:IOM(Y,b),daysOfWeekLabel:w}}}});
_.z([_.R(),_.K("design:type",Object)],RW.prototype,"calendarConfig",void 0);_.z([_.xZ("#calendar-main"),_.K("design:type",Object)],RW.prototype,"JSC$13865_calendarMain",void 0);_.z([_.t("calendarConfig"),_.K("design:type",Object),_.K("design:paramtypes",[])],RW.prototype,"renderData",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],RW);
_.a(RW,"ytd-scrollable-calendar",function(){if(Ymk!==void 0)return Ymk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-scrollable-calendar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="calendar-container style-scope ytd-scrollable-calendar">\n  <div class="calendar-header style-scope ytd-scrollable-calendar">\n    <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-scrollable-calendar">\n      <span class="calendar-header-day style-scope ytd-scrollable-calendar">[[dayLabel]]</span>\n    </template>\n  </div>\n\n  <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-scrollable-calendar">\n    <template class="style-scope ytd-scrollable-calendar">\n      <div class="calendar-month style-scope ytd-scrollable-calendar">\n        <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-scrollable-calendar">\n          [[month.monthLabel]]\n        </div>\n        <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-scrollable-calendar">\n          <div class="calendar-week style-scope ytd-scrollable-calendar">\n            <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-scrollable-calendar">\n              <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-scrollable-calendar" on-tap="handleDayClick" on-mouseenter="handleDayMouseEnter" on-mouseleave="handleDayMouseLeave" on-mousedown="handleDayMouseDown" on-mouseup="handleDayMouseUp">\n                [[day.date.day]]\n              </span>\n            </template> \n          </div>\n        </template> \n      </div>\n    </template>\n  </tp-yt-iron-list> \n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ymk=Y},{mode:2});var ws_;var VJQ;var d1=function(){var Y=_.F.apply(this,arguments)||this;Y.hideCharCounter=!1;Y.hideLabel=!1;Y.noLabelFloat=!1;Y.autoValidate=!0;Y.invalid=!1;Y.disabled=!1;Y.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return Y};
_.P(d1,_.F);_.g=d1.prototype;_.g.reset=function(Y){this.value=Y&&this.data?this.data.value=Y:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.g.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.g.focusTextInput=function(){this.input.focus()};
_.g.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()};
_.g.valueChanged=function(){var Y,b;if(((Y=this.data)==null?0:Y.value)||((b=this.data)==null?void 0:b.value)==="")this.value=this.data.value;else{var w;((w=this.data)==null?void 0:w.value)!==void 0||this.value||(this.value="")}};
_.g.computeLabel=function(Y,b){return b?"":_.Tx(Y)};
_.g.computeAriaLabel=function(Y,b){return b?_.Tx(Y):""};
_.g.computeErrorMessage=function(Y,b,w,V){!Y&&b?Y=w||this.strings.REQUIRED_LABEL:(Y=_.Tx(V),Y=_.UM(Y,"&")?"document"in _.wB?a3M(Y):rDg(Y):Y);return Y};
_.g.computeType=function(Y){return Y==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.g.onTextValueChanged=function(Y){this.value=Y.detail.value;var b;(b=this.onValueChanged)==null||b.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.g.handleUpdateTextInputFormFieldRendererCommand=function(Y){(Y=_.v(Y,uT_))&&this.data&&this.data.id===Y.id&&(Y.invalid!==void 0&&(this.invalid=Y.invalid),Y.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",Y.invalidValueErrorMessage))};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("value-changed",this.value))};
_.g.updateInvalidFromBinding=function(Y){this.invalid=Y.detail.value};
_.up.Object.defineProperties(d1.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var Y;return!((Y=this.data)==null||!Y.isMultiline)}}});
d1.prototype.valueChangedForBinding=d1.prototype.valueChangedForBinding;d1.prototype.valueChanged=d1.prototype.valueChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],d1.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],d1.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],d1.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],d1.prototype,"value",void 0);_.z([_.R(),_.K("design:type",String)],d1.prototype,"pattern",void 0);_.z([_.R(),_.K("design:type",String)],d1.prototype,"errorMessage",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],d1.prototype,"componentStyle",void 0);_.z([_.R(),_.K("design:type",Object)],d1.prototype,"hideCharCounter",void 0);
_.z([_.R(),_.K("design:type",Object)],d1.prototype,"hideLabel",void 0);_.z([_.R(),_.K("design:type",Object)],d1.prototype,"noLabelFloat",void 0);_.z([_.R(),_.K("design:type",Function)],d1.prototype,"onValueChanged",void 0);_.z([_.R(),_.K("design:type",Boolean)],d1.prototype,"isMultilineOverride",void 0);_.z([_.R(),_.K("design:type",Object)],d1.prototype,"autoValidate",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],d1.prototype,"invalid",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],d1.prototype,"disabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],d1.prototype,"enableOverlayTheme",void 0);_.z([_.R({value:{REQUIRED_LABEL:_.sa("REQUIRED_LABEL",void 0,"Required")}}),_.K("design:type",Object)],d1.prototype,"strings",void 0);_.z([_.xZ("#input"),_.K("design:type",Object)],d1.prototype,"input",void 0);
_.z([_.t("data","isMultilineOverride"),_.K("design:type",Object),_.K("design:paramtypes",[])],d1.prototype,"isMultiline",null);_.z([_.vX("data.value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d1.prototype,"valueChanged",null);_.z([_.lr("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d1.prototype,"valueChangedForBinding",null);_.z([_.FM({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],d1);
_.a(d1,"yt-text-input-form-field-renderer",function(){if(VJQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;ws_===void 0&&(ws_=document.createElement("template"));var V=ws_;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);VJQ=Y}Y=VJQ;return Y},{mode:2});var Fq=function(){var Y=_.F.apply(this,arguments)||this;Y.data=void 0;Y.selectionState="START_DATE";Y.isStartDateInvalid=!1;Y.isEndDateInvalid=!1;Y.autoapply=!1;Y.actionMap={"ytd-calendar-date-clicked":"handleCalendarDateClicked","ytd-calendar-date-mousedown":"handleCalendarDateMouseDown","ytd-calendar-date-mouseup":"handleCalendarDateMouseUp","ytd-calendar-date-mouseenter":"handleCalendarDateMouseEnter","ytd-calendar-date-mouseleave":"handleCalendarDateMouseLeave","yt-signal-action-submit-form":"handleCalendarSubmitDateRange"};
return Y};
_.P(Fq,_.F);_.g=Fq.prototype;_.g.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"}}}}};
_.g.focus=function(){this.startDateInput.focus()};
_.g.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:px(this.data.selection.start),end:px(this.data.selection.end)})};
_.g.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.g.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.cI(this.selectionState)}};
_.g.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.g.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.g.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.g.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var Y=this.calendar.calendarConfig,b=Y.end;Y=hvB({start:Y.start,end:this.endDate||b},this.startDateInput.value||"");this.isStartDateInvalid=!Y.isValid;Y.isValid&&(Y=Y.value,this.selection=this.endDate?{start:Y,end:this.endDate}:Y,this.calendar.scrollToDate(Y));this.updateInvalidState()}};
_.g.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var Y=this.calendar.calendarConfig,b=Y.start;Y=hvB({start:this.startDate||b,end:Y.end},this.endDateInput.value||"");this.isEndDateInvalid=!Y.isValid;Y.isValid&&(Y=Y.value,this.selection={start:this.startDate,end:Y},this.calendar.scrollToDate(Y));this.updateInvalidState()}};
_.g.handleCalendarDateClicked=function(Y){var b=this.selection&&Dg6(this.selection),w=this.selection&&mgu(this.selection);b&&!eV(Y,b)&&this.selectionState==="END_DATE"?(this.selection={start:b,end:Y},this.selectionState="START_DATE"):(w&&!eV(w,Y)?this.selection={start:Y,end:w}:this.selection=Y,this.selectionState="END_DATE")};
_.g.handleCalendarDateMouseDown=function(Y){this.selection&&!Ugb(this.selection)&&(this.dragPivot=My(Y,this.selection.start)?this.selection.end:My(Y,this.selection.end)?this.selection.start:Y)};
_.g.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.g.handleCalendarDateMouseEnter=function(Y){this.dragPivot&&(this.selection={start:function(b,w){return eV(b,w)?b:w}(this.dragPivot,Y),
end:function(b,w){return eV(b,w)?w:b}(this.dragPivot,Y)},this.dragPivot||(this.selectionState="START_DATE"))};
_.g.handleCalendarDateMouseLeave=function(){};
_.g.handleCalendarSubmitDateRange=function(){this.selection&&!Ugb(this.selection)&&_.Xx(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.g.updateInvalidState=function(){var Y=function(b,w){w?b.setAttribute("invalid",""):b.removeAttribute("invalid")};
Y(this.startDateInput,this.isStartDateInvalid);Y(this.endDateInput,this.isEndDateInvalid)};
_.g.updateDateStrings=function(){this.selection&&(Ugb(this.selection)?cGq(this.selection):(cGq(this.selection.start),cGq(this.selection.end)))};
_.g.updateCalendarSelection=function(Y){this.calendar.updateSelection(Object.assign({},Y,{selectionState:this.selectionState}))};
_.g.updateIsStartDateInvalidFromBinding=function(Y){this.isStartDateInvalid=Y.detail.value};
_.g.updateIsEndDateInvalidFromBinding=function(Y){this.isEndDateInvalid=Y.detail.value};
_.g.updateStartDateStringFromBinding=function(){};
_.g.updateEndDateStringFromBinding=function(){};
_.up.Object.defineProperties(Fq.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:px(this.data.dateRangeStart),end:px(this.data.dateRangeEnd),selection:{start:px(this.data.selection.start),end:px(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&Dg6(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&mgu(this.selection)}}});
Fq.prototype.resetTextboxes=Fq.prototype.resetTextboxes;Fq.prototype.observeSelection=Fq.prototype.observeSelection;Fq.prototype.dataChanged=Fq.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Fq.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("#calendar"),_.K("design:type",Object)],Fq.prototype,"calendar",void 0);
_.z([_.xZ("#start-date"),_.K("design:type",Object)],Fq.prototype,"startDateInput",void 0);_.z([_.xZ("#end-date"),_.K("design:type",Object)],Fq.prototype,"endDateInput",void 0);_.z([_.R(),_.K("design:type",Object)],Fq.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Fq.prototype,"selection",void 0);_.z([_.R(),_.K("design:type",String)],Fq.prototype,"selectionState",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Fq.prototype,"calendarConfig",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Fq.prototype,"errorMessage",null);_.z([_.t("selection"),_.K("design:type",Object),_.K("design:paramtypes",[])],Fq.prototype,"startDate",null);_.z([_.t("selection"),_.K("design:type",Object),_.K("design:paramtypes",[])],Fq.prototype,"endDate",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fq.prototype,"dataChanged",null);
_.z([_.lr("selection","selectionState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fq.prototype,"observeSelection",null);_.z([_.lr("selectionState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fq.prototype,"resetTextboxes",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Fq);
_.a(Fq,"ytd-date-period-picker-renderer",function(){if(uYC!==void 0)return uYC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-period-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="control-area" class="style-scope ytd-date-period-picker-renderer">\n  <form id="form" class="style-scope ytd-date-period-picker-renderer">\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="start-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.startDateField.textInputFormFieldRenderer]]" invalid="[[isStartDateInvalid]]" value="[[startDateString]]" on-blur="onDateInputBlur" on-focusin="onStartDateTapOrFocus" on-input="onStartDateTextChange" on-invalid-changed="updateIsStartDateInvalidFromBinding" on-tap="onStartDateTapOrFocus" on-value-changed="updateStartDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isStartDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="separator" class="style-scope ytd-date-period-picker-renderer">\u2013</div>\n    <div class="input-and-error style-scope ytd-date-period-picker-renderer">\n      <yt-text-input-form-field-renderer id="end-date" auto-validate="[[autoValidate]]" component-style="BOLD_INPUT_TEXT" data="[[data.endDateField.textInputFormFieldRenderer]]" invalid="[[isEndDateInvalid]]" value="[[endDateString]]" on-blur="onDateInputBlur" on-focusin="onEndDateTapOrFocus" on-input="onEndDateTextChange" on-invalid-changed="updateIsEndDateInvalidFromBinding" on-tap="onEndDateTapOrFocus" on-value-changed="updateEndDateStringFromBinding" class="style-scope ytd-date-period-picker-renderer">\n      </yt-text-input-form-field-renderer>\n      <div class="error-message style-scope ytd-date-period-picker-renderer" role="alert">\n        <yt-formatted-string hidden="[[!isEndDateInvalid]]" text="[[data.errorMessage]]" class="style-scope ytd-date-period-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n  </form>\n</div>\n\n<ytd-scrollable-calendar id="calendar" calendar-config="[[calendarConfig]]" class="style-scope ytd-date-period-picker-renderer">\n</ytd-scrollable-calendar>\n\n<div id="buttons" class="style-scope ytd-date-period-picker-renderer">\n  <div id="cancel-button" class="style-scope ytd-date-period-picker-renderer"></div>\n  <div id="apply-button" class="style-scope ytd-date-period-picker-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return uYC=Y},{mode:1});var LD=function(){var Y=_.F.apply(this,arguments)||this;var b={};Y.actionMap=(b["ytd-date-period-picker-apply"]="handleDateRangeUpdated",b);return Y};
_.P(LD,_.F);LD.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
LD.prototype.handleDateRangeUpdated=function(){};
_.z([_.R(),_.K("design:type",Object)],LD.prototype,"data",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],LD.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],LD.prototype,"rendererstamperBehavior",void 0);_.z([_.S({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],LD);
_.a(LD,"ytd-report-history-section-header-renderer",function(){if(JbC!==void 0)return JbC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="header-content style-scope ytd-report-history-section-header-renderer">\n  <div id="time-range-dropdown" class="filter style-scope ytd-report-history-section-header-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return JbC=Y},{mode:1});var Hrr;var gz8;var fP8;var Sd=function(){return _.F.apply(this,arguments)||this};
_.P(Sd,_.F);_.up.Object.defineProperties(Sd.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?0:(b=Y.icon)==null?0:b.iconType)?_.IR(this.data.icon.iconType):""}}});
_.z([_.R(),_.K("design:type",Object)],Sd.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],Sd.prototype,"icon",null);_.z([_.S({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Sd);
_.a(Sd,"ytd-report-history-table-text-cell-renderer",function(){if(fP8!==void 0)return fP8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-text-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="icon-wrapper style-scope ytd-report-history-table-text-cell-renderer" hidden="[[!icon]]">\n  <yt-icon icon="[[icon]]" class="style-scope ytd-report-history-table-text-cell-renderer"></yt-icon>\n</div>\n<div class="text style-scope ytd-report-history-table-text-cell-renderer">\n  <yt-formatted-string class="main-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.text]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="sub-text style-scope ytd-report-history-table-text-cell-renderer" split-lines="" text="[[data.shortByLineText]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return fP8=Y},{mode:1});var aW=function(){return _.F.apply(this,arguments)||this};
_.P(aW,_.F);aW.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],aW.prototype,"data",void 0);_.z([_.S({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],aW);
_.a(aW,"ytd-report-history-table-reason-cell-renderer",function(){if(gz8!==void 0)return gz8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-reason-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="latest-reason" class="style-scope ytd-report-history-table-reason-cell-renderer"></div>\n<div id="show-all-reasons" hidden="[[!data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer">\n  <yt-formatted-string text="[[data.showAllReasons]]" class="style-scope ytd-report-history-table-reason-cell-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return gz8=Y},{mode:1});var r1=function(){return _.F.apply(this,arguments)||this};
_.P(r1,_.F);r1.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"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],r1.prototype,"rendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],r1.prototype,"data",void 0);_.z([_.S({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],r1);
_.a(r1,"ytd-report-history-table-cell-renderer",function(){if(Hrr!==void 0)return Hrr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-cell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cell-container" class="style-scope ytd-report-history-table-cell-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return Hrr=Y},{mode:1});var Ned;var zH=function(){var Y=_.F.apply(this,arguments)||this;Y.columnType={type:"REPORT_HISTORY_COLUMN_TYPE",content:"REPORT_HISTORY_COLUMN_CONTENT",reason:"REPORT_HISTORY_COLUMN_REASON",status:"REPORT_HISTORY_COLUMN_STATUS",date:"REPORT_HISTORY_COLUMN_DATE"};return Y};
_.P(zH,_.F);zH.prototype.onDataChanged=function(){var Y;if((Y=this.data)==null?0:Y.style)this.componentStyle=this.getStyleName(this.data.style)};
zH.prototype.getCellForColumn=function(Y){return this.cells.find(function(b){var w;return((w=_.v(b==null?void 0:b.cell,LUU)||_.v(b==null?void 0:b.cell,FUr))==null?void 0:w.columnId)===Y.type})};
zH.prototype.getClassForColumn=function(Y){switch(Y){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
zH.prototype.getStyleName=function(Y){switch(Y){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.up.Object.defineProperties(zH.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.cells)||[]).map(function(b){return _.v(b,dh9)})}}});
zH.prototype.onDataChanged=zH.prototype.onDataChanged;_.z([_.R(),_.K("design:type",Object)],zH.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Array)],zH.prototype,"columnRenderData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],zH.prototype,"componentStyle",void 0);_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],zH.prototype,"cells",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zH.prototype,"onDataChanged",null);_.z([_.S({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],zH);
_.a(zH,"ytd-report-history-table-row-renderer",function(){if(Ned!==void 0)return Ned;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-table-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="row-container" class="style-scope ytd-report-history-table-row-renderer">\n  <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-report-history-table-row-renderer">\n    <div class$="[[column.classes]] cell-body style-scope ytd-report-history-table-row-renderer" role="cell" style$="[[column.style]]">\n      <ytd-report-history-table-cell-renderer class$="[[getClassForColumn(column.type)]] style-scope ytd-report-history-table-row-renderer" data="[[getCellForColumn(column)]]"></ytd-report-history-table-cell-renderer>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ned=Y},{mode:1});var Ez_;var cTd;var xgg={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},qp6={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var Wm=function(){return _.F.apply(this,arguments)||this};
_.P(Wm,_.F);Wm.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"}}}}}};
Wm.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.up.Object.defineProperties(Wm.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.columns)?ZfM(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return vYv(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var Y=this.tableSpec,b=xgg;b=b===void 0?qp6:b;b=Psq(Y.columnDimensions,Y.columnsToShow||[],b);Y=0;b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,Y+=w.minWidth+w.paddingLeft+w.paddingRight;return Y}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.z([_.n(_.Af),_.K("design:type",Object)],Wm.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Wm.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Wm.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wm.prototype,"tableSpec",null);_.z([_.t("tableSpec"),_.K("design:type",Array),_.K("design:paramtypes",[])],Wm.prototype,"columnRenderData",null);
_.z([_.t("tableSpec"),_.K("design:type",Number),_.K("design:paramtypes",[])],Wm.prototype,"totalMinWidth",null);_.z([_.t("totalMinWidth"),_.K("design:type",String),_.K("design:paramtypes",[])],Wm.prototype,"tableWidthStyle",null);_.z([_.S({is:"ytd-table-renderer",disableElementRegistration:!0})],Wm);
_.a(Wm,"ytd-table-renderer",function(){if(cTd!==void 0)return cTd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-table-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="table-content" role="table" style$="[[tableWidthStyle]]" class="style-scope ytd-table-renderer">\n  <div id="table-header" role="row" class="style-scope ytd-table-renderer">\n    <template is="dom-repeat" items="[[columnRenderData]]" as="column" class="style-scope ytd-table-renderer">\n      <div class$="[[column.classes]] cell-header style-scope ytd-table-renderer" style$="[[column.style]]" role="columnheader">\n        <h4 id="[[column.type]]-header-name" class="header-name style-scope ytd-table-renderer">\n          <span class="style-scope ytd-table-renderer">[[column.headerName]]</span>\n        </h4>\n        <div class="cell-header-icon style-scope ytd-table-renderer" hidden="[[!column.headerIcon]]">\n          <yt-icon icon="[[column.headerIcon]]" class="style-scope ytd-table-renderer"></yt-icon>\n        </div>\n      </div>\n    </template> \n  </div>\n  <div id="table-body" class="style-scope ytd-table-renderer">\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return cTd=Y},{mode:1});var KD=function(){return _.F.apply(this,arguments)||this};
_.P(KD,_.F);KD.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}}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],KD.prototype,"data",void 0);_.z([_.S({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],KD);
_.a(KD,"ytd-report-reason-history-modal-renderer",function(){if(Ez_!==void 0)return Ez_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-reason-history-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="report-history-modal-body" class="style-scope ytd-report-reason-history-modal-renderer">\n  <h4 class="title style-scope ytd-report-reason-history-modal-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-report-reason-history-modal-renderer"></yt-formatted-string>\n  </h4>\n  <div id="content-info" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-report-reason-history-modal-renderer">\n    <div id="reasons-table" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div id="report-history-modal-footer" class="style-scope ytd-report-reason-history-modal-renderer">\n  <div id="done-button" class="style-scope ytd-report-reason-history-modal-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ez_=Y},{mode:1});var UA$;var XsQ;var DA5;var iv=function(){return _.F.apply(this,arguments)||this};
_.P(iv,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],iv.prototype,"data",void 0);_.z([_.S({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],iv);
_.a(iv,"ytd-profile-column-stats-entry-renderer",function(){if(DA5!==void 0)return DA5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.label)]]</div>\n<div id="value" class="style-scope ytd-profile-column-stats-entry-renderer">[[getSimpleString(data.value)]]</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return DA5=Y},{mode:1});var mAI;var AR=function(){return _.F.apply(this,arguments)||this};
_.P(AR,_.F);AR.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],AR.prototype,"data",void 0);_.z([_.S({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],AR);
_.a(AR,"ytd-profile-column-stats-renderer",function(){if(mAI!==void 0)return mAI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-stats-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-stats-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return mAI=Y},{mode:1});var oz8;var CD=function(){return _.F.apply(this,arguments)||this};
_.P(CD,_.F);_.up.Object.defineProperties(CD.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.useThumbnailSize)return 80;var b,w;Y=(b=this.data)==null?void 0:(w=b.thumbnail)==null?void 0:w.thumbnails;var V;return Y&&((V=Y[0])==null?void 0:V.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.useThumbnailSize)return 80;var b,w;Y=(b=this.data)==null?void 0:(w=b.thumbnail)==null?void 0:w.thumbnails;var V;return Y&&((V=Y[0])==null?void 0:V.height)||80}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CD.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],CD.prototype,"componentStyle",void 0);_.z([_.t("data.useThumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],CD.prototype,"thumbnailWidth",null);
_.z([_.t("data.useThumbnailSize"),_.K("design:type",Object),_.K("design:paramtypes",[])],CD.prototype,"thumbnailHeight",null);_.z([_.S({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],CD);
_.a(CD,"ytd-profile-column-user-info-renderer",function(){if(oz8!==void 0)return oz8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-user-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="thumbnail" height="[[thumbnailHeight]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-profile-column-user-info-renderer">\n</yt-img-shadow>\n<div id="title" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.title)]]</div>\n<div id="subtitle" class="style-scope ytd-profile-column-user-info-renderer">[[getSimpleString(data.subtitle)]]</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return oz8=Y},{mode:1});var yw=function(){return _.F.apply(this,arguments)||this};
_.P(yw,_.F);yw.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]]"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yw.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],yw.prototype,"componentStyle",void 0);_.z([_.S({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],yw);
_.a(yw,"ytd-profile-column-renderer",function(){if(XsQ!==void 0)return XsQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-profile-column-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-profile-column-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return XsQ=Y},{mode:1});var $x=function(){var Y=_.F.apply(this,arguments)||this;Y.componentStyle="NON_CENTERED_PROFILE";return Y};
_.P($x,_.F);$x.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
$x.prototype.getIcon=function(Y){return Y?"settings:"+Y.toLowerCase():null};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$x.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],$x.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$x.prototype,"data",void 0);_.z([_.S({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],$x);
_.a($x,"ytd-page-introduction-renderer",function(){if(UA$!==void 0)return UA$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-introduction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-content" class="style-scope ytd-page-introduction-renderer">\n  <div id="introduction-text" class="style-scope ytd-page-introduction-renderer">\n    <div id="name" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.pageTitle)]]</div>\n    <div id="title" class="style-scope ytd-page-introduction-renderer">[[getSimpleString(data.headerText)]]</div>\n    <yt-formatted-string id="text" split-lines="" text="[[data.bodyText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n    <ul class="introduction-bullet-items style-scope ytd-page-introduction-renderer" hidden="[[!data.bulletMessages]]">\n      <template is="dom-repeat" items="[[data.bulletMessages]]" as="bullet" class="style-scope ytd-page-introduction-renderer">\n        <li class="style-scope ytd-page-introduction-renderer">\n          <yt-formatted-string id="text" text="[[bullet]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string>\n        </li>\n      </template>\n    </ul>\n    <div class="introduction-additional-lines style-scope ytd-page-introduction-renderer" hidden="[[!data.additionalLines]]">\n      <template is="dom-repeat" items="[[data.additionalLines]]" as="line" class="style-scope ytd-page-introduction-renderer">\n        <p class="style-scope ytd-page-introduction-renderer"> <yt-formatted-string id="text" text="[[line]]" class="style-scope ytd-page-introduction-renderer"></yt-formatted-string> </p>\n      </template>\n    </div>\n    <yt-formatted-string id="text" force-default-style="" text="[[data.footerText]]" class="style-scope ytd-page-introduction-renderer">\n    </yt-formatted-string>\n  </div>\n  <yt-icon hidden="[[!data.headerIcon]]" icon="[[getIcon(data.headerIcon.iconType)]]" class="style-scope ytd-page-introduction-renderer"></yt-icon>\n  <yt-img-shadow height="160" hidden="[[!data.headerImage]]" thumbnail="[[data.headerImage]]" class="style-scope ytd-page-introduction-renderer">\n  </yt-img-shadow>\n</div>\n<div id="report-stats" hidden="[[!data.reportStats]]" class="style-scope ytd-page-introduction-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return UA$=Y},{mode:1});var IPd;var jd=function(){return _.F.apply(this,arguments)||this};
_.P(jd,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jd.prototype,"data",void 0);_.z([_.S({is:"ytd-report-description-renderer",disableElementRegistration:!0})],jd);
_.a(jd,"ytd-report-description-renderer",function(){if(IPd!==void 0)return IPd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-description-vertical-line style-scope ytd-report-description-renderer"></div>\n<div class="report-description style-scope ytd-report-description-renderer">\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-upper-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-receipt style-scope ytd-report-description-renderer" text="[[data.receipt]]">\n    </yt-formatted-string>\n  </div>\n  <div class="report-description-item style-scope ytd-report-description-renderer">\n    <div class="report-description-lower-bullet report-description-bullet style-scope ytd-report-description-renderer"></div>\n    <yt-formatted-string class="report-state style-scope ytd-report-description-renderer" text="[[data.state]]">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return IPd=Y},{mode:1});var k0r;var lPk;var GH=function(){return _.F.apply(this,arguments)||this};
_.P(GH,_.F);GH.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],GH.prototype,"data",void 0);_.z([_.S({is:"ytd-video-report-renderer",disableElementRegistration:!0})],GH);
_.a(GH,"ytd-video-report-renderer",function(){if(lPk!==void 0)return lPk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-report-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="report-thumbnail style-scope ytd-video-report-renderer"></div>\n<div class="report-info style-scope ytd-video-report-renderer">\n  <yt-formatted-string class="report-title style-scope ytd-video-report-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="report-subtitle style-scope ytd-video-report-renderer" text="[[data.shortBylineText]]">\n  </yt-formatted-string>\n</div>\n<div id="description" class="style-scope ytd-video-report-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lPk=Y},{mode:1});var hNo;_.S9("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.S9("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var TH=function(){return _.F.apply(this,arguments)||this};
_.P(TH,_.F);TH.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
TH.prototype.computeMessageStyle=function(Y){return Y};
TH.prototype.computeButtonOverride=function(Y){var b;if((Y==null?0:(b=Y.style)==null?0:b.value)&&Y.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],TH.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],TH.prototype,"shelf",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],TH.prototype,"panel",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.K("design:type",Boolean)],TH.prototype,"componentStyle",void 0);_.z([_.R({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],TH.prototype,"buttonOverride",void 0);_.z([_.S({is:"ytd-message-renderer",disableElementRegistration:!0})],TH);
_.a(TH,"ytd-message-renderer",function(){if(hNo!==void 0)return hNo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return hNo=Y},{mode:1});var JR=function(){return _.F.apply(this,arguments)||this};
_.P(JR,_.F);JR.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"}}}};
JR.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
JR.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.up.Object.defineProperties(JR.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!!(((Y=this.data)==null?0:Y.header)&&((b=this.data)==null?0:b.table))}}});
JR.prototype.onRequestError=JR.prototype.onRequestError;_.z([_.n(_.Af),_.K("design:type",Object)],JR.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JR.prototype,"data",void 0);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JR.prototype,"isUnifiedReportHistory",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JR.prototype,"onRequestError",null);_.z([_.S({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],JR);
_.a(JR,"ytd-report-history-section-renderer",function(){if(k0r!==void 0)return k0r;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-history-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" hidden="[[isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer"></div>\n\n\n<div id="unified-report-history" hidden="[[!isUnifiedReportHistory]]" class="style-scope ytd-report-history-section-renderer">\n  <div id="header" class="style-scope ytd-report-history-section-renderer"></div>\n  <div class="table-container style-scope ytd-report-history-section-renderer">\n    <div id="history-table" class="style-scope ytd-report-history-section-renderer"></div>\n    <div class="spinner-container style-scope ytd-report-history-section-renderer" hidden="[[!continuationIsReloading]]">\n      <tp-yt-paper-spinner active="" class="style-scope ytd-report-history-section-renderer"></tp-yt-paper-spinner>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return k0r=Y},{mode:1});var xA_;var uv=function(){var Y=_.F.apply(this,arguments)||this;Y.answerExpanded=!1;return Y};
_.P(uv,_.F);uv.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],uv.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],uv.prototype,"answerExpanded",void 0);_.z([_.S({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],uv);
_.a(uv,"ytd-handles-claiming-faq-renderer",function(){if(xA_!==void 0)return xA_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="head style-scope ytd-handles-claiming-faq-renderer" on-click="toggleAnswer">\n  <span class="question style-scope ytd-handles-claiming-faq-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope ytd-handles-claiming-faq-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope ytd-handles-claiming-faq-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope ytd-handles-claiming-faq-renderer">\n    <yt-formatted-string class="answer style-scope ytd-handles-claiming-faq-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return xA_=Y},{mode:1});var qmr;var s9k=function(){return _.F.apply(this,arguments)||this};
_.P(s9k,_.F);_.z([_.R(),_.K("design:type",Object)],s9k.prototype,"data",void 0);_.z([_.S({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],s9k);
_.a(s9k,"ytd-handles-claiming-faq-section-renderer",function(){if(qmr!==void 0)return qmr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-faq-section-renderer">\n  <yt-formatted-string id="title" text="[[data.header]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.faqs]]" class="style-scope ytd-handles-claiming-faq-section-renderer">\n    <ytd-handles-claiming-faq-renderer data="[[item]]" class="style-scope ytd-handles-claiming-faq-section-renderer"></ytd-handles-claiming-faq-renderer>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return qmr=Y},{mode:1});var Q9j;var Ya=function(){var Y=_.F.apply(this,arguments)||this;Y.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";Y.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";Y.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";Y.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";Y.leftSquiggly=Y.leftSquigglyLight;Y.rightSquiggly=Y.rightSquigglyLight;
Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return Y};
_.P(Ya,_.F);_.g=Ya.prototype;_.g.updateLeftSquigglyStyle=function(){_.m_(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.g.updateRightSquigglyStyle=function(){_.m_(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.g.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
_.g.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),Y?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Ya.prototype.updateRightSquigglyStyle=Ya.prototype.updateRightSquigglyStyle;Ya.prototype.updateLeftSquigglyStyle=Ya.prototype.updateLeftSquigglyStyle;_.z([_.R(),_.K("design:type",Object)],Ya.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Ya.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",String)],Ya.prototype,"leftSquiggly",void 0);_.z([_.R(),_.K("design:type",String)],Ya.prototype,"rightSquiggly",void 0);
_.z([_.lr("leftSquiggly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ya.prototype,"updateLeftSquigglyStyle",null);_.z([_.lr("rightSquiggly"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ya.prototype,"updateRightSquigglyStyle",null);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ya.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ya.prototype,"actionButtonOverride",void 0);_.z([_.S({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Ya);
_.a(Ya,"ytd-handles-claiming-header-renderer",function(){if(Q9j!==void 0)return Q9j;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="left-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n<div id="outer-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <yt-img-shadow id="profile-picture" height="150" thumbnail="[[data.profilePicture]]" width="150" class="style-scope ytd-handles-claiming-header-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-header-renderer"></yt-formatted-string>\n  <div id="action-button" class="style-scope ytd-handles-claiming-header-renderer">\n  </div>\n</div>\n<div id="right-container" class="style-scope ytd-handles-claiming-header-renderer">\n  <div id="right-image" class="style-scope ytd-handles-claiming-header-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Q9j=Y},{mode:1});var vzC;var bb=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";Y.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";Y.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";Y.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
Y.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";Y.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";Y.image0SquigglyBackground=Y.image0LightSquigglyBackground;Y.image1SquigglyBackground=Y.image1LightSquigglyBackground;Y.image3SquigglyBackground=Y.image3LightSquigglyBackground;return Y};
_.P(bb,_.F);_.g=bb.prototype;_.g.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.g.onDataChanged=function(){this.updateTitleAndImages()};
_.g.onThemeChanged=function(){this.updateTitleAndImages()};
_.g.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
_.g.updateImage0SquigglyBackground=function(){_.m_(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.g.updateImage1SquigglyBackground=function(){_.m_(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.g.updateImage3SquigglyBackground=function(){_.m_(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.g.updateTitleAndImages=function(){var Y,b;((Y=this.data)==null?void 0:(b=Y.titleImages)==null?void 0:b.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))};
bb.prototype.updateImage3SquigglyBackground=bb.prototype.updateImage3SquigglyBackground;bb.prototype.updateImage1SquigglyBackground=bb.prototype.updateImage1SquigglyBackground;bb.prototype.updateImage0SquigglyBackground=bb.prototype.updateImage0SquigglyBackground;bb.prototype.onThemeChanged=bb.prototype.onThemeChanged;bb.prototype.onDataChanged=bb.prototype.onDataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],bb.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],bb.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"title0",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"title1",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"title2",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"title3",void 0);
_.z([_.R(),_.K("design:type",Object)],bb.prototype,"title4",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"image0",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"image1",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"image2",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"image3",void 0);_.z([_.R(),_.K("design:type",Object)],bb.prototype,"image4",void 0);_.z([_.R(),_.K("design:type",String)],bb.prototype,"image0SquigglyBackground",void 0);
_.z([_.R(),_.K("design:type",String)],bb.prototype,"image1SquigglyBackground",void 0);_.z([_.R(),_.K("design:type",String)],bb.prototype,"image3SquigglyBackground",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bb.prototype,"onDataChanged",null);_.z([_.lr("isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bb.prototype,"onThemeChanged",null);
_.z([_.lr("image0SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bb.prototype,"updateImage0SquigglyBackground",null);_.z([_.lr("image1SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bb.prototype,"updateImage1SquigglyBackground",null);
_.z([_.lr("image3SquigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bb.prototype,"updateImage3SquigglyBackground",null);_.z([_.S({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],bb);
_.a(bb,"ytd-handles-claiming-title-images-section-renderer",function(){if(vzC!==void 0)return vzC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-title-images-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-title-images-section-renderer"></yt-formatted-string>\n<div id="image-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n  <div id="left-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image0" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <div id="background-image1" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title0" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title0]]"></yt-formatted-string>\n    <yt-img-shadow id="image0" height="802.21" thumbnail="[[image0]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title1" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title1]]"></yt-formatted-string>\n    <yt-img-shadow id="image1" height="436.87" thumbnail="[[image1]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="right-container" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    <div id="background-image3" class="style-scope ytd-handles-claiming-title-images-section-renderer"></div>\n    <yt-formatted-string id="title2" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title2]]"></yt-formatted-string>\n    <yt-img-shadow id="image2" height="439.5" thumbnail="[[image2]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title3" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title3]]"></yt-formatted-string>\n    <yt-img-shadow id="image3" height="334.9" thumbnail="[[image3]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="title4" class="image-title style-scope ytd-handles-claiming-title-images-section-renderer" text="[[title4]]"></yt-formatted-string>\n    <yt-img-shadow id="image4" height="334.9" thumbnail="[[image4]]" width="421.6" class="style-scope ytd-handles-claiming-title-images-section-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return vzC=Y},{mode:1});var P9K;var wV=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(wV,_.F);wV.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
wV.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y)};
wV.prototype.onCopyButtonClick=function(){var Y=this,b,w,V;return _.c(function(H){return(b=Y.data)!=null&&b.primaryChannelUrl?_.D(H,navigator.clipboard.writeText(((w=Y.data)==null?0:w.encodedChannelUrl)?Y.data.encodedChannelUrl:"https://"+_.Tx((V=Y.data)==null?void 0:V.primaryChannelUrl)),0):H.jumpTo(0)})};
_.z([_.R(),_.K("design:type",Object)],wV.prototype,"data",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],wV.prototype,"ytComponentBehavior",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],wV.prototype,"isDarkTheme",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],wV.prototype,"ytActionHandlerBehavior",void 0);_.z([_.S({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],wV);
_.a(wV,"ytd-handles-claiming-update-social-renderer",function(){if(P9K!==void 0)return P9K;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-update-social-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-update-social-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <yt-formatted-string id="channel-info" text="[[data.primaryChannelInfoText]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="primary-url" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <yt-formatted-string id="primary-channel-url" text="[[data.primaryChannelUrl]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n    <yt-icon-button id="copy-icon-button" label="[[data.copyText]]" on-click="onCopyButtonClick" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <yt-icon id="copy-icon" icon="yt-icons:copy" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <yt-formatted-string id="social-title" text="[[data.socialTitle]]" class="style-scope ytd-handles-claiming-update-social-renderer"></yt-formatted-string>\n  <div id="socials-container" class="style-scope ytd-handles-claiming-update-social-renderer">\n    <template is="dom-repeat" items="[[data.socialIcons]]" class="style-scope ytd-handles-claiming-update-social-renderer">\n      <a id="social-icon" class="yt-simple-endpoint style-scope ytd-handles-claiming-update-social-renderer" href$="[[computeHref_(item.onTap)]]" data="[[item.onTap]]" tabindex="-1">\n        <yt-img-shadow height="48" thumbnail="[[item.icon]]" width="48" class="style-scope ytd-handles-claiming-update-social-renderer">\n        </yt-img-shadow>\n      </a>\n    </template>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return P9K=Y},{mode:1});var ZrI;var VA=function(){var Y=_.F.apply(this,arguments)||this;Y.JSC$13960_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";Y.JSC$13960_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};Y.squigglyBackground=Y.JSC$13960_squigglyBackgroundLight;return Y};
_.P(VA,_.F);VA.prototype.updateSquigglyBackgroundStyle=function(){_.m_(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
VA.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.squigglyBackground=Y?this.JSC$13960_squigglyBackgroundDark:this.JSC$13960_squigglyBackgroundLight};
VA.prototype.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),this.squigglyBackground=Y?this.JSC$13960_squigglyBackgroundDark:this.JSC$13960_squigglyBackgroundLight)};
VA.prototype.updateSquigglyBackgroundStyle=VA.prototype.updateSquigglyBackgroundStyle;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],VA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],VA.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],VA.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],VA.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",String)],VA.prototype,"squigglyBackground",void 0);_.z([_.lr("squigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],VA.prototype,"updateSquigglyBackgroundStyle",null);_.z([_.S({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],VA);
_.a(VA,"ytd-handles-claiming-vanity-info-renderer",function(){if(ZrI!==void 0)return ZrI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-vanity-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="pic-container" class="style-scope ytd-handles-claiming-vanity-info-renderer"></div>\n    <div id="text-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="info-title" text="[[data.infoTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n    <div id="vanity-container" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n      <yt-formatted-string id="vanity-title" text="[[data.vanityTitle]]" class="style-scope ytd-handles-claiming-vanity-info-renderer"></yt-formatted-string>\n      <div id="vanities" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n        <template is="dom-repeat" items="[[data.vanities]]" class="style-scope ytd-handles-claiming-vanity-info-renderer">\n          <yt-formatted-string class="vanity style-scope ytd-handles-claiming-vanity-info-renderer" force-default-style="" link-inherit-color="" split-lines="" text="[[item]]"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n  </template>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ZrI=Y},{mode:1});var BeI;var Hp=function(){var Y=_.F.apply(this,arguments)||this;Y.JSC$13963_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";Y.JSC$13963_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";Y.squigglyBackground=Y.JSC$13963_squigglyBackgroundLight;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(Hp,_.F);_.g=Hp.prototype;_.g.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(Y)};
_.g.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.set("isDarkTheme",Y),this.squigglyBackground=Y?this.JSC$13963_squigglyBackgroundDark:this.JSC$13963_squigglyBackgroundLight)};
_.g.updateSquigglyBackgroundStyle=function(){_.m_(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.g.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.g.detached=function(){this.stop()};
_.g.stop=function(){this.playerElement.stop()};
_.g.setupVideoPlayer=function(){var Y=this,b,w;return _.c(function(V){b=Y.data.videoId;w="http://i1.ytimg.com/vi/"+b+"/maxresdefault.jpg";Y.playerElement.loadVideoWithPlayerVars({video_id:b,iurlhq:w});_.om(V)})};
Hp.prototype.onDataChanged=Hp.prototype.onDataChanged;Hp.prototype.updateSquigglyBackgroundStyle=Hp.prototype.updateSquigglyBackgroundStyle;_.z([_.R({value:!1}),_.K("design:type",Boolean)],Hp.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",String)],Hp.prototype,"squigglyBackground",void 0);_.z([_.xZ("#player"),_.K("design:type",Object)],Hp.prototype,"playerElement",void 0);_.z([_.R(),_.K("design:type",Object)],Hp.prototype,"data",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Hp.prototype,"ytActionHandlerBehavior",void 0);_.z([_.lr("squigglyBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hp.prototype,"updateSquigglyBackgroundStyle",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hp.prototype,"onDataChanged",null);
_.z([_.S({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Hp);
_.a(Hp,"ytd-handles-claiming-video-item-renderer",function(){if(BeI!==void 0)return BeI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-video-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-video-item-renderer">\n  <div id="player-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_HANDLES_CLAIMING" player-id="handlesclaiming" class="style-scope ytd-handles-claiming-video-item-renderer">\n    </ytd-player>\n  </div>\n  <div id="text-pic-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n    <div id="text-container" class="style-scope ytd-handles-claiming-video-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-handles-claiming-video-item-renderer"></yt-formatted-string>\n    </div>\n    <div id="pic-container" class="style-scope ytd-handles-claiming-video-item-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return BeI=Y},{mode:1});var nzj;var fR=function(){var Y=_.s6.apply(this,arguments)||this;Y.dragging=!1;Y.dragMouseStart=0;Y.dragOffsetStart=0;Y.containerWidthDiff=0;Y.boundPrevClick=function(){Y.set("offset",gV(Y,Y.offset-(Y.scrollDistance||320)))};
Y.boundNextClick=function(){Y.set("offset",gV(Y,Y.offset+(Y.scrollDistance||320)))};
Y.boundScrollContainerMouseDown=function(b){Y.dragMouseStart=b.clientX;Y.dragOffsetStart=Y.offset;Y.dragging=!0};
Y.boundScrollContainerDrag=function(b){Y.dragging&&Y.set("offset",gV(Y,Y.dragOffsetStart-(b.clientX-Y.dragMouseStart)))};
Y.boundMouseUp=function(){Y.onMouseUp()};
Y.boundWheelScroll=function(b){var w=0;Math.abs(b.deltaX)>=Math.abs(b.deltaY)?w=b.deltaX:b.shiftKey&&(w=b.deltaY);w!==0&&(Y.offset+=w,b.stopPropagation(),b.preventDefault())};
Y.boundChipCloudChipScrollIntoView=function(b){(b=b.detail)&&Y.scrollChipIntoView(b)};
return Y};
_.P(fR,_.s6);fR.prototype.attached=function(){var Y=_.E6(this.hostElement).querySelector("#scroll-container");Y.addEventListener("wheel",this.boundWheelScroll);Y.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);Y.style.touchAction="pan-y";Y.addEventListener("pointerdown",this.boundScrollContainerMouseDown);Y.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
fR.prototype.detached=function(){var Y=_.E6(this.hostElement).querySelector("#scroll-container");Y.removeEventListener("wheel",this.boundWheelScroll);Y.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);Y.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);Y.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
fR.prototype.reset=function(){this.set("offset",0);_.TC(this,this.setContainerWidthDiff);Nu(this)};
var gV=function(Y,b){return Math.min(Math.max(b,0),Y.containerWidthDiff)};
fR.prototype.onMouseUp=function(){this.dragging=!1};
fR.prototype.transformContainer=function(){this.offset=gV(this,this.offset);var Y=_.zO("HTML_DIR")==="rtl"?"":"-";_.E6(this.hostElement).querySelector("#chips").style.transform="translateX("+Y+this.offset+"px)";Nu(this)};
var Nu=function(Y){_.TC(Y,Y.setButtonsState)};
fR.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=gV(this,this.offset));this.atStart=this.offset<=0};
fR.prototype.setContainerWidthDiff=function(){var Y=_.E6(this.hostElement).querySelector("#scroll-container"),b=_.E6(this.hostElement).querySelector("#chips");Y&&b&&(this.containerWidthDiff=b.clientWidth-Y.clientWidth)};
fR.prototype.scrollChipIntoView=function(Y){var b=_.E6(this.hostElement).querySelector("#scroll-container");if(b){var w=this.atStart?0:106,V=this.atEnd?0:106;Y.offsetLeft<this.offset+w?this.offset=gV(this,Y.offsetLeft-w):Y.offsetLeft+Y.clientWidth>this.offset+b.clientWidth-V&&(this.offset=gV(this,Y.offsetLeft+Y.clientWidth+V-b.clientWidth))}};
fR.prototype.transformContainer=fR.prototype.transformContainer;_.z([_.R({value:0}),_.K("design:type",Number)],fR.prototype,"offset",void 0);_.z([_.R({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],fR.prototype,"atStart",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],fR.prototype,"atEnd",void 0);_.z([_.R(),_.K("design:type",Number)],fR.prototype,"scrollDistance",void 0);
_.z([_.lr("offset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fR.prototype,"transformContainer",null);_.z([_.QC()],fR);var MJQ;var eNo;var tJI=_.b8(function(Y){var b=Y.data;Y=_.N(_.kw(!1,void 0,"icHmSe"));var w=Y.next().value,V=Y.next().value;Y={};Y=_.hj("ytChipShapeChip",function(){a:switch(b==null?void 0:b().state){case 0:var f="ytChipShapeActive";break a;case 1:f="ytChipShapeDisabled";break a;default:f="ytChipShapeInactive"}return f},function(){var f=b().type===1||b().type===2,E=b();
return f||E!=null&&E.startIcon?E==null||!E.startIcon||E!=null&&E.text?f?"ytChipShapeEndIconPadding":(E==null?0:E.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(Y.ytChipShapeFocused=function(){var f;
return w()&&((f=b())==null?void 0:f.state)!==1},Y));
var H=function(f){if((b==null?void 0:b().state)!==1){var E,U;(U=(E=b()).onTap)==null||U.call(E,f)}};
return _.m("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Q_(function(){var f=_.fH().resolve(_.HQ(_.mu));if(f){V(f.isKeyBoardInUse());var E,U;(U=(E=b()).onFocusIn)==null||U.call(E)}return!1}),
"on:focusout":_.Q_(function(){V(!1);return!1})},_.m(psU,{shouldWrapInButton:function(){return b().type!==2},
selected:function(){return b().state===0},
onClick:H,isDropdown:function(){return b().type===1},
accessibilityLabel:function(){return b().accessibilityLabel}},_.m("div",{class:Y},_.m(_.h,{cond:function(){return b().startIcon},
then:function(){return _.m(_.n_,{icon:function(){var f;return(f=b())==null?void 0:f.startIcon},
className:function(){return b().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return b().text},_.m(OrC,{shape:b,
onClick:H}))))},"zb");
tJI.idomCompat=!0;var psU=_.b8(function(Y){var b=_.Q_(function(w){Y.onClick(w);return!1});
return _.m(_.h,{cond:Y.shouldWrapInButton,then:function(){return _.m("button",{class:"ytChipShapeButtonReset","on:click":b,role:function(){return Y.isDropdown()?"combobox":"tab"},
"aria-label":Y.accessibilityLabel,"aria-selected":Y.selected},Y.children)},
else:function(){return Y.children}})},"Ab"),OrC=_.b8(function(Y){var b=Y.shape;
var w=Y.onClick;var V=_.Q_(function(H){w(H);return!1});
return _.m(_.e4,null,_.m(_.n7,{when:function(){return b().type===1}},function(){return _.m(_.n_,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.m(_.n7,{when:function(){return b().type===2}},function(){return _.m("button",{class:"ytChipShapeButtonReset",
"on:click":V},_.m(_.n_,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.m(_.n7,{when:function(){return b().type===0}},function(){return _.m(_.Uz,null)}))},"Bb");_.f_(tJI,"chip-shape",{props:{data:_.YX}});var Ej=function(){var Y=_.F.apply(this,arguments)||this;Y.disableDeselectEvent=!1;Y.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return Y};
_.P(Ej,_.F);_.g=Ej.prototype;_.g.onSelectChipCommand=function(Y){if(!this.selected&&this.data&&(Y=_.v(Y,iEk),Y.targetId&&Y.targetId===this.data.targetId))this.onTap()};
_.g.onFilterChipTransformCommand=function(Y){if(!this.selected&&this.data){var b;(Y=(b=_.v(Y,yJI))==null?void 0:b.chipUniqueId)&&Y===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.g.dataChanged=function(){var Y=this;_.TC(this,function(){Y.data&&Y.data.isSelected&&!Y.selected&&(Y.scrollChipIntoView(),Y.onTap())})};
_.g.computeChipStyle=function(Y){return Y!=null?Y:"STYLE_DEFAULT"};
_.g.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Xx(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Xx(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.g.onFocus=function(){var Y=_.fH().resolve(_.HQ(_.mu));Y&&Y.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.g.scrollChipIntoView=function(){_.Ua(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.up.Object.defineProperties(Ej.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Ofa({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Ej.prototype.onFocus=Ej.prototype.onFocus;Ej.prototype.onTap=Ej.prototype.onTap;Ej.prototype.dataChanged=Ej.prototype.dataChanged;_.z([_.n(_.pi),_.K("design:type",Object)],Ej.prototype,"ironButtonState",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ej.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ej.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.ni),_.K("design:type",Object)],Ej.prototype,"ironA11yKeysBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ej.prototype,"disableDeselectEvent",void 0);_.z([_.R(),_.K("design:type",Object)],Ej.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.icon"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ej.prototype,"hasIcon",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data.uniqueId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ej.prototype,"isGnomeChip",null);_.z([_.R({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.K("design:type",String)],Ej.prototype,"chipStyle",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Ej.prototype,"selected",void 0);
_.z([_.t("data","selected"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ej.prototype,"chipShapeData",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ej.prototype,"dataChanged",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ej.prototype,"onTap",null);
_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ej.prototype,"onFocus",null);_.z([_.FM({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Ej);
_.a(Ej,"yt-chip-cloud-chip-renderer",function(){if(eNo===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;MJQ===void 0&&(MJQ=document.createElement("template"));var V=MJQ;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);eNo=Y}Y=eNo;return Y},{mode:2});var cp=function(){var Y=_.F.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.notSticky=!1;Y.transparentBackground=!1;Y.shouldHide=!1;Y.disableSticky=!1;Y.fluidWidth=!1;Y.isClipList=!1;Y.defaultChipIndex=0;Y.isPlaylist=!1;Y.playlistVotingAnimationEnabled=_.q("web_enable_voting_animation");Y.toolbarHeight=0;Y.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return Y};
_.P(cp,_.F);_.g=cp.prototype;
_.g.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}}}}}};
_.g.attached=function(){var Y=this;document.addEventListener("scroll",_.Io(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var b;this.toolbarHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(w){Y.handleIntersect(w)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){Y.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.g.detached=function(){var Y;(Y=this.intersectionObserver)==null||Y.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect();document.removeEventListener("scroll",_.Io(this,this.updateChipBarWidthAndTop))};
_.g.dataChanged=function(){var Y=this,b,w,V;((V=_.v((b=this.data)==null?void 0:(w=b.contents)==null?void 0:w[0],Xqd))==null?void 0:V.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var H=this.findSelectedChipIndex();this.selectedIndex!==H&&(this.selectedIndex=-1);_.TC(this,function(){Y.selectedIndex=H;Y.updating=!1;Y.ytScrollableChipCloudBehavior.reset()})};
_.g.findSelectedChipIndex=function(){var Y;if((Y=this.data)==null||!Y.contents)return 0;Y=this.data.contents;for(var b=0;b<Y.length;b++){var w=void 0;if((w=_.v(Y[b],Xqd))==null?0:w.isSelected)return b}return 0};
_.g.computeStyle=function(Y){return Y};
_.g.handleChipCloudChipSelectAction=function(Y){Y=this.JSC$13982_chipsSelector.indexOf(Y);Y>-1&&this.JSC$13982_chipsSelector.selectIndex(Y)};
_.g.handleChipCloudChipDeselectAction=function(){if(_.q("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],Xqd))==null?void 0:w.navigationEndpoint;V&&_.Xx(this.hostElement,"yt-browse-section-list-reload-endpoint",[V]);this.JSC$13982_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.g.onGuideIsExpandedChanged=function(){var Y=this.ytScrollableChipCloudBehavior;_.TC(Y,Y.setContainerWidthDiff);Nu(this.ytScrollableChipCloudBehavior)};
_.g.onResize=function(){var Y=this.ytScrollableChipCloudBehavior;_.TC(Y,Y.setContainerWidthDiff);Nu(this.ytScrollableChipCloudBehavior)};
_.g.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.g.handleIntersect=function(Y){this.notSticky=this.isChannelPageGrid||this.disableSticky||Y[0].intersectionRatio===1};
_.g.updateDimensions=function(){var Y=this.ytRendererBehavior.parentComponent;if(Y){var b,w=(b=Y.headerElement)!=null?b:Y;_.m_(this.hostElement,{"--ytd-rich-grid-chips-bar-width":w.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.g.updateSelectedIndexFromBinding=function(Y){this.selectedIndex=Y.detail.value};
_.g.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var Y;(Y=this.sortFilterHeaderRendererElement)==null||Y.setAttribute("is-playlist-page-with-filters","")}};
_.g.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch($Tj(!this.notSticky))};
_.up.Object.defineProperties(cp.prototype,{isChannelPageGrid:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_CHANNEL_PAGE_GRID"}},
isHashtagLandingPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_HASHTAG_LANDING_PAGE"}},
isPlaylistPage:{configurable:!0,enumerable:!0,get:function(){return this.componentStyle==="FEED_FILTER_CHIP_BAR_STYLE_TYPE_PLAYLIST_PAGE"}},
isDisableDeselectEvent:{configurable:!0,enumerable:!0,get:function(){return this.isChannelPageGrid||this.isHashtagLandingPage||this.isPlaylistPage}},
sortFilterHeaderRendererData:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b.find(function(V){return _.v(V,kPU)});
return{sortFilterHeaderRenderer:_.v(w,kPU)}}}});
cp.prototype.dispatchChipBarIsSticky=cp.prototype.dispatchChipBarIsSticky;cp.prototype.isPlaylistPageChanged=cp.prototype.isPlaylistPageChanged;cp.prototype.updateChipBarWidthAndTop=cp.prototype.updateChipBarWidthAndTop;cp.prototype.onResize=cp.prototype.onResize;cp.prototype.onGuideIsExpandedChanged=cp.prototype.onGuideIsExpandedChanged;cp.prototype.dataChanged=cp.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],cp.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.Li),_.K("design:type",Object)],cp.prototype,"ironResizableBehavior",void 0);_.z([_.n(),_.K("design:type",fR)],cp.prototype,"ytScrollableChipCloudBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],cp.prototype,"ytdReduxBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],cp.prototype,"data",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],cp.prototype,"selectedIndex",void 0);_.z([_.R({value:320}),_.K("design:type",Number)],cp.prototype,"scrollDistance",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"notSticky",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"transparentBackground",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.K("design:type",String)],cp.prototype,"componentStyle",void 0);_.z([_.R({selector:_.Dm6}),_.K("design:type",Boolean)],cp.prototype,"guideIsExpanded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"shouldHide",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"disableSticky",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"fluidWidth",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"isClipList",void 0);_.z([_.R(),_.K("design:type",Object)],cp.prototype,"defaultChipIndex",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cp.prototype,"isPlaylist",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cp.prototype,"playlistVotingAnimationEnabled",void 0);_.z([_.xZ("#chips"),_.K("design:type",Object)],cp.prototype,"JSC$13982_chipsSelector",void 0);_.z([_.xZ("ytd-sort-filter-header-renderer"),_.K("design:type",HTMLElement)],cp.prototype,"sortFilterHeaderRendererElement",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],cp.prototype,"updating",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cp.prototype,"dataChanged",null);_.z([_.lr("guideIsExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cp.prototype,"onGuideIsExpandedChanged",null);_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cp.prototype,"onResize",null);
_.z([_.vX("isChannelPageGrid","disableSticky","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cp.prototype,"updateChipBarWidthAndTop",null);_.z([_.t("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cp.prototype,"isChannelPageGrid",null);_.z([_.t("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cp.prototype,"isHashtagLandingPage",null);
_.z([_.lr("isPlaylistPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cp.prototype,"isPlaylistPageChanged",null);_.z([_.t("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cp.prototype,"isPlaylistPage",null);_.z([_.t("componentStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],cp.prototype,"isDisableDeselectEvent",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],cp.prototype,"sortFilterHeaderRendererData",null);_.z([_.R({reflectToAttribute:!0,selector:_.xmb}),_.K("design:type",String)],cp.prototype,"frostedGlassMode",void 0);_.z([_.lr("notSticky"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cp.prototype,"dispatchChipBarIsSticky",null);_.z([_.S({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],cp);
_.a(cp,"ytd-feed-filter-chip-bar-renderer",function(){if(nzj!==void 0)return nzj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return nzj=Y},{mode:1});var RNj;var dA$=_.b8(function(Y){var b=Y.data;var w=Y.buttonIndex;var V=Y.selectedIndex;var H=Y.onSelect;var f=function(){return w()===V()},E=function(){var U,X;
return(X=(U=b().text)==null?void 0:U.content)!=null?X:""};
Y=_.gAr();return _.m("yt-toggleable-image-button-view-model",{class:function(){var U={};U=(U["toggleable-image-button-view-model-wiz"]=!0,U[""]=!0,U["toggleable-image-button-view-model-wiz__semi-transparent"]=V()!==-1&&!f(),U);return _.qR(U)},
tabindex:0,"aria-label":E,"aria-pressed":f,role:"button","on:keydown":Y,"on:click":_.Q_(function(){H(b().onSubmitCommand);return!1})},_.m(_.h,{cond:function(){return b().logo},
then:function(U){return _.m(_.Y_,{data:U,className:function(){var X={};X=(X["toggleable-image-button-view-model-wiz__image"]=!0,X["toggleable-image-button-view-model-wiz__circular-radius"]=!(!b().backgroundColor||!b().backgroundColorDarkMode),X["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(f()&&b().backgroundColor&&b().backgroundColorDarkMode),X);return _.qR(X)},
alt:E,useWidth:!1,style:function(){if(f()&&b().backgroundColor&&b().backgroundColorDarkMode){var X=iW(Number(b().backgroundColorDarkMode),"1");var I=iW(Number(b().backgroundColor),"1");X="background: linear-gradient(180deg,"+X+","+I+") border-box;"}else X="";return X}})}}),_.m(_.p_,{model:{borderRadius:"16px"}}),_.m("p",{class:function(){var U={};
U=(U["toggleable-image-button-view-model-wiz__label"]=!0,U["toggleable-image-button-view-model-wiz__bold-text"]=f(),U);return _.qR(U)}},_.m(_.wv,{text:function(){return b().text}})))},"Cb");
dA$.idomCompat=!0;var L68=_.b8(function(Y){var b=Y.data;Y=_.N(_.kw({index:-1,command:{}},void 0,"Zcqtsb"));var w=Y.next().value,V=Y.next().value;return _.m("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.m("div",{class:"nudge-form-view-model-wiz__form-options"},_.m(_.OH,{data:function(){return b().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(H,f){return _.m(dA$,{data:H.data,buttonIndex:f,selectedIndex:function(){return w().index},
onSelect:function(E){V({index:f(),command:E})}})}})),_.m(_.wv,{text:function(){return b().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.m("div",{class:"nudge-form-view-model-wiz__submit"},_.m(_.OH,{data:function(){return b().submitButton}},{buttonViewModel:function(H){return _.m(F6$,{data:H.data,
isDisabled:function(){return w().index===-1},
onClick:function(){_.AA(w().command)}})}})))},"Db");
L68.idomCompat=!0;var F6$=_.b8(function(Y){var b=_.sN(function(){return Object.assign({},Y.data(),{state:Y.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.m(_.a1,{data:b,onClick:Y.onClick})},"Eb");_.f_(L68,"yt-nudge-form-view-model",{props:{data:_.YX}});var Uj=function(){var Y=_.F.apply(this,arguments)||this;Y.roundedContainer=!0;Y.buttonUpdate=_.q("web_modern_buttons");Y.isDarkMode=!1;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return Y};
_.P(Uj,_.F);_.g=Uj.prototype;_.g.computeNudgeStyle=function(Y){return Y?"modernized-nudge":""};
_.g.handleDarkModeToggledAction=function(Y){this.isDarkMode=Y};
_.g.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.g.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"}}}};
_.g.computeIsHorizontalButtons=function(Y){return Y?!!Y.applyModernizedStyle&&!!Y.enableHorizontalButtons&&!!Y.secondaryButton:!1};
_.up.Object.defineProperties(Uj.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=(Y=this.data)==null?void 0:Y.backgroundStyle)!=null?b:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=(Y=this.data)==null?void 0:Y.contentsLocation)!=null?b:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.lightIconImage)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],Uj.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Uj.prototype,"actionHandlerBehavior",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("isHideEnclosingAction"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Uj.prototype,"isHidden",null);_.z([_.R(),_.K("design:type",Object)],Uj.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Uj.prototype,"roundedContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Uj.prototype,"buttonUpdate",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.K("design:type",String)],Uj.prototype,"nudgeStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.trimStyle"),_.K("design:type",String),_.K("design:paramtypes",[])],Uj.prototype,"trimStyle",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.backgroundStyle"),_.K("design:type",String),_.K("design:paramtypes",[])],Uj.prototype,"backgroundStyle",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data.contentsLocation"),_.K("design:type",String),_.K("design:paramtypes",[])],Uj.prototype,"contentsLocation",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.disableDropShadow"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Uj.prototype,"noShadow",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.lightIconImage"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Uj.prototype,"noIcon",null);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.K("design:type",Boolean)],Uj.prototype,"isHorizontalButtons",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],Uj.prototype,"isDarkMode",void 0);_.z([_.S({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Uj);
_.a(Uj,"ytd-feed-nudge-renderer",function(){if(RNj!==void 0)return RNj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-nudge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismiss-button" class="style-scope ytd-feed-nudge-renderer"></div>\n  <div id="content-wrapper" class="style-scope ytd-feed-nudge-renderer">\n    <div id="header-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="image-container" hidden="[[!data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        <yt-img-shadow id="nudge-image" height="32" thumbnail="[[data.lightIconImage]]" class="style-scope ytd-feed-nudge-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="text-container" class="style-scope ytd-feed-nudge-renderer">\n      <div id="title-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n      <div id="subtitle-container" class="style-scope ytd-feed-nudge-renderer">\n        <yt-formatted-string id="subtitle" split-lines="" text="[[data.subtitle]]" class="style-scope ytd-feed-nudge-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="contents" hidden="[[!data.contents]]" class="style-scope ytd-feed-nudge-renderer"></div>\n    <div id="button-container" hidden="[[!data.primaryButton]]" class="style-scope ytd-feed-nudge-renderer">\n      <div id="primary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n      <div id="secondary-button" class="style-scope ytd-feed-nudge-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-feed-nudge-renderer">\n  <div id="dismissed-content" class="style-scope ytd-feed-nudge-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return RNj=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var Sm8;var aP_;var XV=function(){var Y=_.F.apply(this,arguments)||this;Y.collapsed=!1;Y.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return Y};
_.P(XV,_.F);XV.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"}}}};
XV.prototype.handleRatingSelect=function(){var Y;((Y=this.data)==null?0:Y.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
XV.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],XV.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],XV.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.Si),_.K("design:type",Object)],XV.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],XV.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],XV.prototype,"collapsed",void 0);_.z([_.S({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],XV);
_.a(XV,"ytd-slimline-survey-renderer",function(){if(aP_!==void 0)return aP_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slimline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-slimline-survey-renderer">\n  <div id="content-wrapper" class="style-scope ytd-slimline-survey-renderer">\n    <div id="header-container" class="style-scope ytd-slimline-survey-renderer">\n      <div id="title-container" class="style-scope ytd-slimline-survey-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-slimline-survey-renderer"></yt-formatted-string>\n      </div>\n      <div id="dismiss-button" class="style-scope ytd-slimline-survey-renderer"></div>\n    </div>\n    <div id="rating-survey" class="style-scope ytd-slimline-survey-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-slimline-survey-renderer">\n  <div id="dismissed-content" class="style-scope ytd-slimline-survey-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return aP_=Y},{mode:1});var rTr;var Dv=function(){return _.F.apply(this,arguments)||this};
_.P(Dv,_.F);Dv.prototype.maybeGetBackgroundColor=function(Y){return this.isDarkMode?Y.section2Color:Y.section3Color};
Dv.prototype.colorPaletteChanged=function(){var Y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;Y&&(Y==null?0:Y.secondaryTitleColor)&&this.maybeGetBackgroundColor(Y)?(this.hostElement.style.backgroundColor=_.WH(this.maybeGetBackgroundColor(Y)),this.hostElement.style.color=_.WH(Y.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Dv.prototype.colorPaletteChanged=Dv.prototype.colorPaletteChanged;_.z([_.n(_.FX),_.K("design:type",Object)],Dv.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Dv.prototype,"data",void 0);_.z([_.R({selector:function(Y){return Y.ui.darkModeIsEnabled}}),
_.K("design:type",Boolean)],Dv.prototype,"isDarkMode",void 0);_.z([_.R(),_.K("design:type",Object)],Dv.prototype,"lightColorPalette",void 0);_.z([_.R(),_.K("design:type",Object)],Dv.prototype,"darkColorPalette",void 0);_.z([_.lr("darkColorPalette","lightColorPalette","data","isDarkMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Dv.prototype,"colorPaletteChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Dv);
_.a(Dv,"ytd-endorsement-header-renderer",function(){if(rTr!==void 0)return rTr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-endorsement-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope ytd-endorsement-header-renderer"></yt-icon>\n<yt-formatted-string id="text" text="[[data.title]]" class="style-scope ytd-endorsement-header-renderer"></yt-formatted-string>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return rTr=Y},{mode:1});_.f_(_.pe,"yt-decorated-avatar-view-model",{props:{data:_.YX,className:_.YX}});var mX=function(){var Y=_.F.apply(this,arguments)||this;Y.fullHeight=_.q("web_rich_grid_media_full_height");Y.showChannelAvatar=!0;Y.hasPlaylistThumbnail=!1;Y.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};Y.prepareThumbnailForPageTransition=function(){_.q("web_thumbnail_to_watch_transition")&&(Y.thumbnail.style.viewTransitionName="thumbnail-to-watch",Y.cleanupThumbnailAfterPageTransition(Y.thumbnail))};
return Y};
_.P(mX,_.F);_.g=mX.prototype;
_.g.configureRendererStamper=function(){return{lazyLoadMenu:If,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.shouldLazyLoadMenu=function(){var Y=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.q("kevlar_modern_downloads_page")||!Y};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14008_inlinePreviewHoverListener=TI({mediaRenderer:this,lockupElement:this.JSC$14008_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.g.getVideoPreviewOpts=function(){var Y={},b;if((b=this.data)==null?0:b.multipleInlinePlaybackEndpoint)Y=OFk;this.isRadio&&(Y=pcU);return _.q("web_thumbnail_to_watch_transition")?Object.assign({},Y,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):Y};
_.g.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$14008_inlinePreviewHoverListener)==null||Ed(Y)};
_.g.getOwner=function(){var Y,b,w;return((Y=this.data)==null?void 0:(b=Y.channelThumbnailSupportedRenderers)==null?void 0:b.channelThumbnailWithLinkRenderer)||_.v((w=this.data)==null?void 0:w.showProviderChannelThumbnail,HEr)};
_.g.updateLockupSize=function(){var Y;((Y=this.getOwner())==null?0:Y.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.g.getFeedbackEndpoint=function(Y){if(_.v(Y,_.aM))return Y;var b,w;Y=(w=(b=_.v(Y,_.ln))==null?void 0:b.commands)!=null?w:[];b=_.N(Y);for(w=b.next();!w.done;w=b.next())if(w=this.getFeedbackEndpoint(w.value))return w;return null};
_.g.computeNavigationEndpoint=function(Y){return K0B(Y==null?void 0:Y.navigationEndpoint)};
_.g.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var Y=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(Y)!==JSON.stringify(this.data)&&this.set("data",Y)}};
_.g.onDataChanged=function(){var Y=this,b=this.getOwner();if(b){this.set("data.owner",b);var w,V,H,f,E,U=((w=this.data)==null?void 0:(V=w.shortBylineText)==null?void 0:(H=V.runs)==null?void 0:(f=H[0])==null?void 0:f.text)||((E=b.name)==null?void 0:E.simpleText);this.set("data.owner.title",U)}var X,I,k,l,x,Q;b=((X=this.data)==null?void 0:(I=X.thumbnailRenderer)==null?void 0:I.playlistVideoThumbnailRenderer)||((k=this.data)==null?void 0:(l=k.thumbnailRenderer)==null?void 0:l.playlistCustomThumbnailRenderer)||
((x=this.data)==null?void 0:(Q=x.thumbnailRenderer)==null?void 0:Q.showCustomThumbnailRenderer);var Z;((Z=this.data)==null?0:Z.thumbnail)||!b||this.set("data.thumbnail",b.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){Y.updateLockupSize()});
var e;if(X=((e=this.data)==null?void 0:e.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(X);var O;((O=this.dismissActionToReplayEntity)==null?0:O.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.g.onHiddenChanged=function(){this.updateLockupSize()};
_.g.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Xx(this.hostElement,"yt-terminate-video-preview-action");else{var Y;(Y=this.videoTitleLink)==null||Y.focus()}};
_.g.metadataColorChanged=function(){var Y;if(this.metadataColor&&((Y=this.videoTitle)==null?0:Y.style))this.videoTitle.style.color=_.WH(this.metadataColor);else{var b,w;!this.metadataColor&&((b=this.videoTitle)==null?0:(w=b.style)==null?0:w.color)&&(this.videoTitle.style.color="")}};
_.g.onDetailsClick=function(Y){var b=this.computedNavigationEndpoint;b&&(_.uA(_.JL(Y),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Ua(this.hostElement,"yt-navigate",{endpoint:b}))};
_.g.cleanupThumbnailAfterPageTransition=function(Y){_.AL6(document,"yt-page-type-changed",function(){Y.style.viewTransitionName=""})};
_.g.onRendererTap=function(){this.prepareThumbnailForPageTransition();var Y,b,w=((Y=this.data)==null?void 0:Y.serviceEndpoint)||this.getFeedbackEndpoint((b=this.data)==null?void 0:b.navigationEndpoint);w&&_.v(w,_.aM)&&this.ytComponentBehavior.resolveCommand(w)};
_.g.onMouseDown=function(Y){var b=Y.target,w=this.computedNavigationEndpoint,V;Y=b.href||((V=_.v(w==null?void 0:w.commandMetadata,_.g5))==null?void 0:V.url);V=b.data||w;Y&&V&&iGv(Y,V)};
_.g.computeVideoTitleText=function(){var Y;if((Y=this.data)==null?0:Y.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.g.computeHasPlaylistThumbnail=function(Y){var b,w,V,H,f;if((((b=Y.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((w=Y.thumbnailRenderer)==null?0:w.playlistCustomThumbnailRenderer)||((V=Y.thumbnailRenderer)==null?0:V.showCustomThumbnailRenderer)||((H=Y.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((f=Y.thumbnailRenderer)==null?0:f.playlistCustomThumbnailRenderer))&&Y.thumbnailOverlays)for(b=0;b<Y.thumbnailOverlays.length;b++)if(w=void 0,(w=Y.thumbnailOverlays[b])==
null?0:w.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.up.Object.defineProperties(mX.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.q("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var Y;return(Y=this.data)==null?void 0:Y.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var Y;return(Y=this.data)==null?void 0:Y.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$14008_inlinePreviewHoverListener)==null?0:di(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.hL(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:Y.videoId)||((b=this.data)==null?void 0:b.playlistId)||""}}});
mX.prototype.onMouseDown=mX.prototype.onMouseDown;mX.prototype.metadataColorChanged=mX.prototype.metadataColorChanged;mX.prototype.onIsDismissedChanged=mX.prototype.onIsDismissedChanged;mX.prototype.onHiddenChanged=mX.prototype.onHiddenChanged;mX.prototype.onDataChanged=mX.prototype.onDataChanged;mX.prototype.handleReloadDownloadsInfo=mX.prototype.handleReloadDownloadsInfo;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],mX.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],mX.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],mX.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],mX.prototype,"ytdReduxBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],mX.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],mX.prototype,"entitySelectorType",void 0);_.z([_.R(),_.K("design:type",Boolean)],mX.prototype,"noEndpoints",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],mX.prototype,"isRadio",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],mX.prototype,"miniMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mX.prototype,"fullHeight",void 0);
_.z([_.R(),_.K("design:type",Boolean)],mX.prototype,"showDarkVideoMetadata",void 0);_.z([_.R(),_.K("design:type",Boolean)],mX.prototype,"showLightVideoMetadata",void 0);_.z([_.R(),_.K("design:type",Number)],mX.prototype,"metadataColor",void 0);_.z([_.R(),_.K("design:type",Object)],mX.prototype,"showChannelAvatar",void 0);_.z([_.R(),_.K("design:type",Boolean)],mX.prototype,"hidden",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],mX.prototype,"showYtInteraction",void 0);
_.z([_.R(),_.K("design:type",String)],mX.prototype,"dismissedContentId",void 0);_.z([_.R({selectorArgs:["dismissedContentId"],selector:p4e}),_.K("design:type",Object)],mX.prototype,"dismissActionToReplayEntity",void 0);
_.z([_.R({selectorArgs:["entitySelectorType","mediaId"],selector:function(Y,b,w){if(_.q("kevlar_modern_downloads_page")&&w&&b&&b!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var V=vUt(Y,w);if(V){b=_.a8(Y,w);var H=zx(Y,w),f=dmu(Y,w);Y=W$(Y,w);var E=XBM(V,b,H,f);H=E.shortViewCountText;var U=E.publishedTimeText;E=E.badges;var X=Y>0;f=c4L(V,b,f,Y);V=_.Z7(b)||b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!P$(V.policyEntity)?
void 0:zAb(w,Y,V.videoEntity.lengthSeconds);b==="TRANSFER_STATE_PAUSED_BY_USER"&&w&&!_.q("dl_resume_click_killswitch")&&(V={offlineVideoEndpoint:{videoId:w,action:"ACTION_RESUME"}});w={shortViewCountText:H,publishedTimeText:U,badges:E,isWatched:X,navigationEndpoint:V,thumbnailOverlays:f}}else w=void 0;return w;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(b=PGI(Y,w))if(V=_.rb(Y,w),f=_.ZLB(Y,w),V!=="TRANSFER_STATE_UNKNOWN"){w=UPg(b,V,f,w,hxM(Y));break a}w=void 0}return w;default:_.Sk(new _.BQ("Error: entitySelectorType defined but not matched in selector.",
Y,b))}}}),
_.K("design:type",Object)],mX.prototype,"entityDrivenState",void 0);_.z([_.R({computed:"computeVideoTitleText(data)"}),_.K("design:type",Object)],mX.prototype,"videoTitleText",void 0);_.z([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.K("design:type",Object)],mX.prototype,"hasPlaylistThumbnail",void 0);_.z([_.R({computed:"computeNavigationEndpoint(data)"}),_.K("design:type",Object)],mX.prototype,"computedNavigationEndpoint",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],mX.prototype,"typographyBump",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("typographyBump"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mX.prototype,"typographyBumpV2",null);_.z([_.xZ("#video-title"),_.K("design:type",HTMLElement)],mX.prototype,"videoTitle",void 0);_.z([_.xZ("#video-title-link"),_.K("design:type",HTMLElement)],mX.prototype,"videoTitleLink",void 0);
_.z([_.xZ("#thumbnail"),_.K("design:type",HTMLElement)],mX.prototype,"thumbnail",void 0);_.z([_.xZ("#dismissible"),_.K("design:type",HTMLElement)],mX.prototype,"JSC$14008_dismissibleMedia",void 0);_.z([_.t("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],mX.prototype,"lazyLoadMenu",null);_.z([_.t("data.menu"),_.K("design:type",Object),_.K("design:paramtypes",[])],mX.prototype,"immediateLoadMenu",null);
_.z([_.vX("entityDrivenState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mX.prototype,"handleReloadDownloadsInfo",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mX.prototype,"onDataChanged",null);_.z([_.vX("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mX.prototype,"onHiddenChanged",null);
_.z([_.lr("isDismissed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mX.prototype,"onIsDismissedChanged",null);_.z([_.lr("metadataColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mX.prototype,"metadataColorChanged",null);_.z([_.kZ("mousedown"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],mX.prototype,"onMouseDown",null);
_.z([_.t("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mX.prototype,"isHovered",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],mX.prototype,"useAvatar",null);_.z([_.t("data","entitySelectorType"),_.K("design:type",String),_.K("design:paramtypes",[])],mX.prototype,"mediaId",null);_.z([_.S({is:"ytd-rich-grid-media",disableElementRegistration:!0})],mX);
var zNj=_.UQ()(mX,"ytd-rich-grid-media",function(){if(Sm8!==void 0)return Sm8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Sm8=Y},{mode:_.Xd("kevlar_poly_si_batch_j072")?1:2});var W6o;var oa=function(){var Y=_.F.apply(this,arguments)||this;Y.removeMaxWidth=!0;Y.insetMetadata=!1;return Y};
_.P(oa,_.F);_.g=oa.prototype;_.g.configureRendererStamper=function(){return{innerMenu:If,outerMenu:Object.assign({},If,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.onDataChanged=function(){var Y,b=((Y=this.data)==null?void 0:Y.trackingParams)||"";b&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b));var w;((w=this.dismissActionToReplayEntity)==null?0:w.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14013_inlinePreviewHoverListener=TI({mediaRenderer:this,lockupElement:this.JSC$14013_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:tD8})};
_.g.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$14013_inlinePreviewHoverListener)==null||Ed(Y)};
_.g.onRendererTap=function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.serviceEndpoints)==null?void 0:b[0];_.v(w,_.aM)&&this.componentBehavior.resolveCommand(w)};
_.g.onDetailsClick=function(Y){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint;w&&(_.uA(_.JL(Y),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(w))};
_.g.onShow=function(){var Y=this.data;Y.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(Y.onFirstVisibleCommand),delete Y.onFirstVisibleCommand)};
_.up.Object.defineProperties(oa.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return this.insetMetadata?void 0:(Y=this.data)==null?void 0:Y.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var Y;return this.insetMetadata?(Y=this.data)==null?void 0:Y.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var Y=this.data;if(Y!=null&&Y.badge&&(Y=_.v(Y.badge,HyK))){var b,w,V;return[{metadataBadgeRenderer:{label:((b=Y.label)==null?void 0:(w=b.runs)==null?void 0:w[0].text)||((V=Y.label)==null?void 0:V.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var Y=this.data;return Object.assign({},Y.headline,{accessibility:Y.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return this.isSlimShort?(Y=this.computedTitle)==null?void 0:(b=Y.accessibility)==null?void 0:(w=b.accessibilityData)==null?void 0:w.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.q("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$14013_inlinePreviewHoverListener)==null?0:di(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
oa.prototype.onDataChanged=oa.prototype.onDataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],oa.prototype,"componentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],oa.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.Si),_.K("design:type",Object)],oa.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],oa.prototype,"ytdReduxBehavior",void 0);_.z([_.xZ("ytd-thumbnail"),_.K("design:type",HTMLElement)],oa.prototype,"thumbnail",void 0);_.z([_.xZ("#dismissible"),_.K("design:type",HTMLElement)],oa.prototype,"JSC$14013_dismissibleMedia",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],oa.prototype,"removeMaxWidth",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],oa.prototype,"insetMetadata",void 0);_.z([_.R(),_.K("design:type",String)],oa.prototype,"dismissedContentId",void 0);_.z([_.R({selectorArgs:["dismissedContentId"],selector:p4e}),_.K("design:type",Object)],oa.prototype,"dismissActionToReplayEntity",void 0);_.z([_.t("insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],oa.prototype,"thumbnailObjectFit",null);
_.z([_.t("data","insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],oa.prototype,"innerMenu",null);_.z([_.t("data","insetMetadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],oa.prototype,"outerMenu",null);_.z([_.R(),_.K("design:type",Object)],oa.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],oa.prototype,"miniMode",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oa.prototype,"onDataChanged",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],oa.prototype,"shortsBadges",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oa.prototype,"isShort",null);
_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oa.prototype,"isSlimShort",null);_.z([_.t("data","isShort"),_.K("design:type",Object),_.K("design:paramtypes",[])],oa.prototype,"computedTitle",null);_.z([_.t("isSlimShort","computedTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],oa.prototype,"computedAccessibilityLabel",null);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oa.prototype,"shouldForce2By3",null);_.z([_.t("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oa.prototype,"isHovered",null);_.z([_.S({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],oa);
_.a(oa,"ytd-rich-grid-slim-media",function(){if(W6o!==void 0)return W6o;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-slim-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-click="onRendererTap" class="style-scope ytd-rich-grid-slim-media">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" no-rounded-corners="[[isSlimShort]]" object-fit="[[thumbnailObjectFit]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-slim-media">\n  </ytd-thumbnail>\n  <div id="details" on-click="onDetailsClick" role="heading" aria-label$="[[computedAccessibilityLabel]]" class="style-scope ytd-rich-grid-slim-media">\n    <h3 class="style-scope ytd-rich-grid-slim-media">\n      <a class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-slim-media" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(computedTitle)]]" aria-label$="[[computedTitle.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">\n        <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-rich-grid-slim-media">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" class="style-scope ytd-rich-grid-slim-media">[[getSimpleString(computedTitle)]]</span>\n      </a>\n    </h3>\n    <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-rich-grid-slim-media"> [[getSimpleString(data.metadata)]] </span>\n    <ytd-video-meta-block class="grid style-scope ytd-rich-grid-slim-media" data="[[data]]" is-slim-short="[[isSlimShort]]" rich-meta="">\n    </ytd-video-meta-block>\n    <div id="menu" class="style-scope ytd-rich-grid-slim-media"></div>\n  </div>\n  <div id="menu-outer" class="style-scope ytd-rich-grid-slim-media"></div>\n  \n  <template is="dom-if" if="[[!isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[data.badges]]" hidden="[[!data.badges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n  <template is="dom-if" if="[[isShort]]" class="style-scope ytd-rich-grid-slim-media">\n    <ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-slim-media" badges="[[shortsBadges]]" hidden="[[!shortsBadges]]">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-grid-slim-media">\n  <div id="dismissed-content" class="style-scope ytd-rich-grid-slim-media"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-slim-media"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return W6o=Y},{mode:_.Xd("kevlar_poly_si_batch_j063")?1:2});var K6$;var irK;var Ia=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(Ia,_.F);Ia.prototype.computeIcon=function(Y){return Y&&Y.iconType?"yt-sys-icons:"+Y.iconType.toLowerCase():""};
Ia.prototype.onMouseEnter=function(){this.isHovered=!0};
Ia.prototype.onMouseLeave=function(){this.isHovered=!1};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ia.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ia.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Ia.prototype,"isHovered",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ia.prototype,"darkerDarkTheme",void 0);_.z([_.S({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Ia);
_.a(Ia,"ytd-expand-on-hover-card-renderer",function(){if(irK!==void 0)return irK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expand-on-hover-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="card" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline" on-mouseenter="onMouseEnter"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string></div></div><div id="overlay" hidden="[[!isHovered]]" on-mouseleave="onMouseLeave" class="style-scope ytd-expand-on-hover-card-renderer"><div class="content style-scope ytd-expand-on-hover-card-renderer"><div class="icon-line style-scope ytd-expand-on-hover-card-renderer"><yt-icon class="icon style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.icon]]" icon="[[computeIcon(data.icon)]]"></yt-icon><yt-icon class="info style-scope ytd-expand-on-hover-card-renderer" icon="info_outline"></yt-icon></div><yt-formatted-string class="title style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.title]]" text="[[data.title]]"></yt-formatted-string><yt-formatted-string class="subtitle style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.subtitle]]" text="[[data.subtitle]]"></yt-formatted-string><yt-formatted-string class="details style-scope ytd-expand-on-hover-card-renderer" hidden="[[!data.details]]" text="[[data.details]]"></yt-formatted-string></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return irK=Y},{mode:1});var AT9,C9C=function(){if(AT9!==void 0)return AT9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="channel-user-state" hidden="[[!data.channelUserStateDescription]]" text="[[data.channelUserStateDescription]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><div id="content-section" class="style-scope ytd-channel-renderer"><div id="avatar-section" class="style-scope ytd-channel-renderer"><a class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="avatar" class="style-scope ytd-channel-renderer"><yt-img-shadow height="[[computeIconSize(compactStyle)]]" thumbnail="[[data.thumbnail]]" width="[[computeIconSize(compactStyle)]]" class="style-scope ytd-channel-renderer"></yt-img-shadow></div></a></div><div id="info-section" class="style-scope ytd-channel-renderer"><a id="main-link" class="channel-link yt-simple-endpoint style-scope ytd-channel-renderer" on-tap="onTap" href$="[[computeHrefEndpoint(data.navigationEndpoint)]]" data="[[computeChannelEndpoint(data.navigationEndpoint)]]"><div id="info" class="style-scope ytd-channel-renderer"><ytd-channel-name id="channel-title" badges="[[data.ownerBadges]]" channel-name="[[getSimpleString(data.title)]]" compact-style="[[compactStyle]]" wrap-text="" class="style-scope ytd-channel-renderer"></ytd-channel-name><div id="metadata" class="style-scope ytd-channel-renderer"><yt-formatted-string id="subscribers" respect-lang-dir="" text="[[data.subscriberCountText]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><span id="dot" hidden="[[computeHideDot(data)]]" class="style-scope ytd-channel-renderer">\u2022</span><span id="video-count" class="style-scope ytd-channel-renderer">[[getSimpleString(data.videoCountText)]]</span></div><yt-formatted-string id="description" hidden="[[compactStyle]]" text="[[data.descriptionSnippet]]" class="style-scope ytd-channel-renderer"></yt-formatted-string><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-channel-renderer"></ytd-badge-supported-renderer></div><div id="navigation-icon" hidden="[[!data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"><yt-icon disable-upgrade$="[[!data.navigationIcon.iconType]]" icon="[[data.navigationIcon.iconType]]" class="style-scope ytd-channel-renderer"></yt-icon></div></a><div id="buttons" class="style-scope ytd-channel-renderer"><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-channel-renderer"></div><div id="subscribe-button" hidden="[[!data.subscribeButton]]" class="style-scope ytd-channel-renderer"></div></div><div id="channel-memberships-button" hidden="[[!data.channelMembershipsButton]]" class="style-scope ytd-channel-renderer"></div></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return AT9=Y};_.S9("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var ka=function(){var Y=_.F.apply(this,arguments)||this;Y.compactStyle=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(ka,_.F);_.g=ka.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.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"}}}};
_.g.computeHideDot=function(Y){return!(Y&&Y.subscriberCountText&&Y.videoCountText)||this.compactStyle};
_.g.hasDualButtons=function(Y){return Y&&Y.purchaseButton&&Y.subscribeButton};
_.g.backgroundColorChanged=function(){if(this.data!==void 0){var Y=this.data.backgroundColor;this.isDarkTheme&&(Y=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=Y!=null?_.WH(Y):"transparent"}};
_.g.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.onTap=function(Y){var b,w,V=((b=this.data)==null?void 0:b.navigationEndpoint)||((w=this.data)==null?void 0:w.serviceEndpoint);_.v(V,_.cT)&&(V&&_.fH().resolve(_.Nn).resolveCommand(V,{form:{element:this.hostElement}}),Y.preventDefault())};
_.g.computeChannelEndpoint=function(Y){return _.v(Y,_.cT)?null:Y};
_.g.computeHrefEndpoint=function(Y){return _.v(Y,_.cT)?null:this.componentBehavior.computeHref_(Y)};
_.g.computeChannelRendererStyle=function(Y){return Y};
_.g.computeIconSize=function(Y){return Y?108:136};
_.up.Object.defineProperties(ka,{template:{configurable:!0,enumerable:!0,get:function(){return C9C()}}});
ka.prototype.backgroundColorChanged=ka.prototype.backgroundColorChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],ka.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ka.prototype,"componentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],ka.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],ka.prototype,"isDarkTheme",void 0);_.z([_.R({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.K("design:type",String)],ka.prototype,"channelRendererStyle",void 0);_.z([_.R({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ka.prototype,"dualButtons",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],ka.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],ka.prototype,"biggerThumbStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ka.prototype,"compactStyle",void 0);_.z([_.lr("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ka.prototype,"backgroundColorChanged",null);_.z([_.S({is:"ytd-channel-renderer",disableElementRegistration:!0})],ka);_.a(ka,"ytd-channel-renderer",function(){return C9C()},{mode:1});var yTd;var $Ao;_.S9("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var lb=function(){var Y=_.F.apply(this,arguments)||this;Y.displayItemCount=2;Y.collections=_.q("web_modern_collections_v2");Y.hasPlaylistThumbnail=!1;Y.stackThumbnailSize="large";return Y};
_.P(lb,_.F);_.g=lb.prototype;_.g.attached=function(){this.updateInlinePreviewHoverListeners()};
_.g.detached=function(){this.clearInlinePreviewHoverListeners()};
_.g.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.g.computeFirstVideos=function(Y,b){return Y&&b?Y.slice(0,b):[]};
_.g.computeThumbnailWidth=function(Y,b){return Y?b==="BIG"?500:b==="MASSIVE"?600:b==="MEDIUM"?450:420:360};
_.g.computeThumbnailHeight=function(Y,b){return Y?b==="BIG"?280:b==="MASSIVE"?337:234:202};
_.g.clearInlinePreviewHoverListeners=function(){var Y;(Y=this.JSC$14026_inlinePreviewHoverListener)==null||Ed(Y)};
_.g.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14026_inlinePreviewHoverListener=TI({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:OFk,thumbnailElement:this.thumbnail})};
_.g.computeHasPlaylistThumbnail=function(Y){var b,w;if((((b=Y.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((w=Y.thumbnailRenderer)==null?0:w.playlistCustomThumbnailRenderer))&&Y.thumbnailOverlays)for(b=0;b<Y.thumbnailOverlays.length;b++)if(w=void 0,(w=Y.thumbnailOverlays[b])==null?0:w.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.up.Object.defineProperties(lb.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.JSC$14026_inlinePreviewHoverListener)==null?0:di(Y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
lb.prototype.dataChanged=lb.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],lb.prototype,"ytdLockupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lb.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],lb.prototype,"displayItemCount",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],lb.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],lb.prototype,"biggerThumbsStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],lb.prototype,"collections",void 0);_.z([_.R({computed:"computeHasPlaylistThumbnail(data)"}),_.K("design:type",Object)],lb.prototype,"hasPlaylistThumbnail",void 0);_.z([_.R(),_.K("design:type",String)],lb.prototype,"stackThumbnailSize",void 0);_.z([_.xZ("ytd-thumbnail"),_.K("design:type",HTMLElement)],lb.prototype,"thumbnail",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lb.prototype,"dataChanged",null);_.z([_.t("lockupIsHovered"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lb.prototype,"isHovered",null);_.z([_.S({is:"ytd-radio-renderer",disableElementRegistration:!0})],lb);
_.a(lb,"ytd-radio-renderer",function(){if($Ao!==void 0)return $Ao;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-thumbnail>\n<ytd-playlist-thumbnail data="[[data]]" height="[[computeThumbnailHeight(useBiggerThumbs, biggerThumbsStyle)]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="true" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(useBiggerThumbs, biggerThumbsStyle)]]" class="style-scope ytd-radio-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-radio-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-radio-renderer" href="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-radio-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-radio-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-radio-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block id="meta" data="[[data]]" radio-meta="" class="style-scope ytd-radio-renderer"></ytd-video-meta-block>\n  </a>\n  <ul id="list" class="style-scope ytd-radio-renderer">\n    <template is="dom-repeat" items="[[computeFirstVideos(data.videos, displayItemCount)]]" as="video" class="style-scope ytd-radio-renderer">\n      <li class="style-scope ytd-radio-renderer">\n        <ytd-child-video-renderer data="[[video.childVideoRenderer]]" class="style-scope ytd-radio-renderer">\n        </ytd-child-video-renderer>\n      </li>\n    </template>\n  </ul>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-radio-renderer"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $Ao=Y},{mode:_.Xd("kevlar_poly_si_batch_j058")?1:2});var j9k;_.S9("itemSectionRenderer","showRenderer","ytd-show-renderer");var h2=function(){return _.F.apply(this,arguments)||this};
_.P(h2,_.F);h2.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
h2.prototype.computeThumbnailWidth=function(Y){return Y?360:246};
h2.prototype.computeUseProminentThumbs=function(Y){return Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],h2.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],h2.prototype,"isSearch",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.K("design:type",Boolean)],h2.prototype,"useProminentThumbs",void 0);_.z([_.S({is:"ytd-show-renderer",disableElementRegistration:!0})],h2);
_.a(h2,"ytd-show-renderer",function(){if(j9k!==void 0)return j9k;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-show-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail data="[[data]]" width="[[computeThumbnailWidth(useProminentThumbs)]]" class="style-scope ytd-show-renderer">\n</ytd-playlist-thumbnail>\n<div id="content" class="style-scope ytd-show-renderer">\n<a id="logo-container" class="yt-simple-endpoint style-scope ytd-show-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-show-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-show-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-show-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block data="[[data]]" class="style-scope ytd-show-renderer"></ytd-video-meta-block>\n  </a>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-badge-supported-renderer id="bottom-standalone-badge" bottom-standalone-badge="[[data.bottomStandaloneBadge]]" hidden="[[!data.bottomStandaloneBadge]]" class="style-scope ytd-show-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n<div id="menu" class="style-scope ytd-show-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return j9k=Y},{mode:1});_.S9("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var xa=function(){var Y=_.F.apply(this,arguments)||this;Y.isRichGrid=!1;return Y};
_.P(xa,_.F);xa.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"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xa.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],xa.prototype,"isRichGrid",void 0);_.z([_.S({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],xa);
_.a(xa,"ytd-feed-entry-renderer",function(){if(yTd!==void 0)return yTd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[isRichGrid]]" thumbnail="[[data.ownerThumbnail]]" width="48" class="style-scope ytd-feed-entry-renderer"></yt-img-shadow>\n<div class="info style-scope ytd-feed-entry-renderer">\n  <div id="title-container" hidden="[[isRichGrid]]" class="style-scope ytd-feed-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="post" text="[[data.postText]]" class="style-scope ytd-feed-entry-renderer"></yt-formatted-string>\n  <div id="contents" class="style-scope ytd-feed-entry-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return yTd=Y},{mode:1});var G0r;var qu=function(){return _.F.apply(this,arguments)||this};
_.P(qu,_.F);qu.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.z([_.n(_.FX),_.K("design:type",Object)],qu.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],qu.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qu.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.FZ,value:3}),_.K("design:type",Number)],qu.prototype,"itemsPerRow",void 0);
_.z([_.S({is:"ytd-link-card-renderer",disableElementRegistration:!0})],qu);
_.a(qu,"ytd-link-card-renderer",function(){if(G0r!==void 0)return G0r;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-link-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-link-card-renderer">\n  <a id="card-link" class="yt-simple-endpoint style-scope ytd-link-card-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n    <yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-link-card-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-link-card-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-link-card-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon id="chevron" hidden="[[!showChevronIcon(itemsPerRow)]]" icon="chevron_right" class="style-scope ytd-link-card-renderer">\n    </yt-icon>\n  </a>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return G0r=Y},{mode:1});var Tej;var sj=function(){return _.F.apply(this,arguments)||this};
_.P(sj,_.F);_.g=sj.prototype;_.g.configureRendererStamper=function(){return{"data.menu":If,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.g.onRendererTap=function(Y){if(!this.ytdDismissibleItemBehavior.isDismissed){var b,w=(b=this.data)==null?void 0:b.navigationEndpoint;w&&!_.uA(_.JL(Y),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(w)?_.uA(_.JL(Y),this.hostElement,["A"])||_.Ua(this.hostElement,"yt-navigate",{endpoint:w}):this.ytComponentBehavior.resolveCommand(w,{}))}};
_.g.maybeComputeHref=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)};
_.g.getNavigationCommand=function(Y){return this.isNavigationCommand(Y)?Y:null};
_.g.isNavigationCommand=function(Y){return Y?_.v(Y,_.QU)||_.v(Y,_.TG)||_.v(Y,_.Ah)?!0:!1:!1};
sj.prototype.onRendererTap=sj.prototype.onRendererTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],sj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],sj.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],sj.prototype,"ytComponentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],sj.prototype,"data",void 0);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],sj.prototype,"onRendererTap",null);_.z([_.S({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],sj);
_.a(sj,"ytd-lumiere-promo-item-image-renderer",function(){if(Tej!==void 0)return Tej;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-promo-item-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="thumbnail-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-img-shadow thumbnail="[[data.thumbnail]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-img-shadow></a><div id="metadata" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="item-details" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="title" class="style-scope ytd-lumiere-promo-item-image-renderer"><h3 class="style-scope ytd-lumiere-promo-item-image-renderer"><a id="title-link" class="yt-simple-endpoint style-scope ytd-lumiere-promo-item-image-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[getNavigationCommand(data.navigationEndpoint)]]" rel="[[computeNofollow_(data.navigationEndpoint)]]"><yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string><yt-icon class="hover-icon style-scope ytd-lumiere-promo-item-image-renderer" hidden="[[!data.showLauncherIcon]]" icon="open_in_new"></yt-icon></a></h3></div><yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-promo-item-image-renderer"></yt-formatted-string></div><div id="menu" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div></div><div id="dismissed" class="style-scope ytd-lumiere-promo-item-image-renderer"><div id="dismissed-content" class="style-scope ytd-lumiere-promo-item-image-renderer"></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Tej=Y},{mode:1});var JTC;var QA=function(){return _.F.apply(this,arguments)||this};
_.P(QA,_.F);QA.prototype.computeLandscapeThumbnail=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],QA.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],QA.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],QA.prototype,"miniMode",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.FZ}),_.K("design:type",Number)],QA.prototype,"itemsPerRow",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.K("design:type",Boolean)],QA.prototype,"landscapeThumbnail",void 0);_.z([_.S({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],QA);
_.a(QA,"ytd-lumiere-shelf-details-renderer",function(){if(JTC!==void 0)return JTC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-lumiere-shelf-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-lumiere-shelf-details-renderer">\n  <div id="lumiere-shelf-details" class="style-scope ytd-lumiere-shelf-details-renderer">\n    <div id="title" class="style-scope ytd-lumiere-shelf-details-renderer">\n       <yt-formatted-string id="item-title" text="[[data.title]]" class="style-scope ytd-lumiere-shelf-details-renderer"></yt-formatted-string>\n    </div>\n    <div id="subtitle" class="style-scope ytd-lumiere-shelf-details-renderer">\n      <yt-formatted-string id="item-subtitle" text="[[data.subtitle]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-badge-supported-renderer id="badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-lumiere-shelf-details-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JTC=Y},{mode:_.Xd("kevlar_poly_si_batch_j076")?1:2});var uo9;var vp=function(){return _.F.apply(this,arguments)||this};
_.P(vp,_.F);vp.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vp.prototype,"data",void 0);_.z([_.S({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],vp);
_.a(vp,"ytd-primetime-promo-details-renderer",function(){if(uo9!==void 0)return uo9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" hidden="[[!data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><div id="centered-container" class="style-scope ytd-primetime-promo-details-renderer"><yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string><div id="action-button" class="style-scope ytd-primetime-promo-details-renderer"></div></div></div><div id="header" hidden="[[data.headline]]" class="style-scope ytd-primetime-promo-details-renderer"><ytd-badge-supported-renderer top-standalone-badge="[[data.priceText]]" class="style-scope ytd-primetime-promo-details-renderer"></ytd-badge-supported-renderer><yt-formatted-string id="detail-text" text="[[data.detailText]]" class="style-scope ytd-primetime-promo-details-renderer"></yt-formatted-string></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return uo9=Y},{mode:1});var Y$k;var Pp=function(){return _.F.apply(this,arguments)||this};
_.P(Pp,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Pp.prototype,"data",void 0);_.z([_.S({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Pp);
_.a(Pp,"ytd-panel-show-style-metadata-renderer",function(){if(Y$k!==void 0)return Y$k;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-panel-show-style-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-panel-show-style-metadata-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Y$k=Y},{mode:1});var bIK;var Zv=function(){return _.F.apply(this,arguments)||this};
_.P(Zv,_.F);_.g=Zv.prototype;_.g.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.g.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.g.computeThumbnail=function(Y){if(Y)return Y.smallFormFactorBackgroundThumbnail||Y.largeFormFactorBackgroundThumbnail};
_.g.maybeComputeHref=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)};
_.g.isNavigationCommand=function(Y){return Y?_.v(Y,_.QU)||_.v(Y,_.TG)||_.v(Y,_.Ah)?!0:!1:!1};
_.g.getNavigationCommand=function(Y){return this.isNavigationCommand(Y)?Y:null};
Zv.prototype.onPanelTap=Zv.prototype.onPanelTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Zv.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Zv.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Zv.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Zv.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Zv.prototype,"roundedContainer",void 0);_.z([_.R({reflectToAttribute:!0,value:_.q("web_modern_buttons")}),_.K("design:type",Boolean)],Zv.prototype,"modernButtons",void 0);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zv.prototype,"onPanelTap",null);_.z([_.S({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Zv);
_.a(Zv,"ytd-primetime-promo-panel-renderer",function(){if(bIK!==void 0)return bIK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="thumbnail" class="yt-simple-endpoint style-scope ytd-primetime-promo-panel-renderer" href$="[[maybeComputeHref(data.command)]]" data="[[getNavigationCommand(data.command)]]" rel="[[computeNofollow_(data.command)]]"><yt-img-shadow thumbnail="[[computeThumbnail(data)]]" width="420" class="style-scope ytd-primetime-promo-panel-renderer"></yt-img-shadow><div id="action-button" class="style-scope ytd-primetime-promo-panel-renderer"><yt-formatted-string text="[[data.buttonText]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-formatted-string><yt-icon icon="[[data.contentIcon.iconType]]" class="style-scope ytd-primetime-promo-panel-renderer"></yt-icon></div></a><div id="panel-metadata" class="style-scope ytd-primetime-promo-panel-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return bIK=Y},{mode:1});_.f_(_.b8(function(Y){Y=_.ur(Y,{data:{},useFullWidth:!1});var b=Y.data,w=Y.useFullWidth,V=function(){return b().caption},H=function(){return b().image},f=function(){return _.zT(b().onTap)};
Y={};Y=_.hj("ytTeaserCardViewModelHost",(Y.ytTeaserCardViewModelUseFullWidth=function(){return w()},Y));
return _.m("teaser-card-view-model",{class:Y},_.m(_.h,{cond:function(){return f()},
then:function(){return _.m(lQ$,{className:"ytTeaserCardViewModelLink",command:f,forceNewState:!0,useATagConfig:!0},_.m("div",{class:"ytTeaserCardViewModelImageContainer"},_.m(_.h,{cond:H,then:function(E){return _.m(_.Y_,{data:E,className:"ytTeaserCardViewModelImage",alt:""})}})),_.m("p",{class:"ytTeaserCardViewModelCaption"},V))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.YX,
useFullWidth:_.YX}});var wC_=new _.Hx("RICH_GRID_VIDEO_RENDERER_TOKEN");_.f_(_.b8(function(Y){var b=Y.data;var w=Y.showYtInteractionInContent;var V=function(){return!!b().selectableFeedback};
Y=_.N(_.kw(!1,void 0,"nblDw"));var H=Y.next().value,f=Y.next().value;_.dx(function(){var x=_.v(b().primaryButton,_.ns);(x==null?0:x.isToggled)&&f(x.isToggled)});
Y=_.Q_(function(x){if(!V())return!1;if(H()){var Q;var Z=(Q=b().selectableFeedback)==null?void 0:Q.onDeselect}else{var e;Z=(e=b().selectableFeedback)==null?void 0:e.onSelect}Z&&_.AA(Z,{form:{element:x.target}});f(!H());if(x=_.v(b().primaryButton,_.ns))x.isToggled=H();return!1});
var E=function(){if(!V()){var x,Q=(x=b().loggingDirectives)==null?void 0:x.trackingParams;Q&&_.ly(_.fH().resolve(_.eo),Q)}},U=_.fQu(),X=function(){var x;
return V()?(x=b().selectableFeedback)==null?void 0:x.a11yLabel:void 0},I=function(){return V()?{toggled:H()}:{}},k=_.fH().resolve(_.HQ(wC_)),l={};
return _.m("yt-feedback-item-renderer",{class:_.hj("ytFeedbackItemRendererHost",(l.ytFeedbackItemRendererSelectableFeedback=V,l)),"on:click":Y,"on:keydown":U,title:X,"aria-label":X,"aria-pressed":function(){return V()?H():void 0},
tabindex:function(){return V()?0:void 0},
role:function(){return V()?"button":void 0}},_.m("div",{class:"ytFeedbackItemRendererContentContainer"},_.m(_.OH,{data:function(){return b().content}},{videoRenderer:function(x){return _.m(k,{data:x.data,
showYtInteraction:w})},
lockupViewModel:function(x){return _.m(_.fc,{data:x.data,containerType:2})}})),_.m("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.m(_.OH,{data:function(){return b().primaryButton}},{toggleButtonViewModel:function(x){return _.m(_.td,{data:x.data,
buttonShapeOverrides:I,disableExplicitClickLogging:!0,onToggle:E})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.YX,
showYtInteractionInContent:_.YX}});var Bp=function(){var Y=_.F.apply(this,arguments)||this;Y.isShortsGrid=!1;Y.isCompactGrid=!1;Y.isShortsPanelGrid=!1;Y.renderedFromRichGrid=!1;Y.isInFirstColumn=!1;Y.noGutterMargins=!1;Y.isInlineGroupItem=!1;Y.insetMetadata=!1;Y.noBottomMarginInAds=_.q("web_no_bottom_margin_for_home_ad_buttons");Y.force16By9ThumbnailAspectRatio=!1;Y.useCompactList=!1;Y.containerType=2;Y.thumbnailTargetWidth=9999;Y.isResponsiveGrid=!1;Y.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};Y.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};Y.hoverListener=Y.hover.bind(Y);Y.leaveListener=Y.leave.bind(Y);Y.highlighted=!1;Y.JSC$14061_unsubscribeFromInlinePreviewIsActive=function(){};
return Y};
_.P(Bp,_.F);_.g=Bp.prototype;_.g.computeContainerType=function(){return this.useCompactList?3:2};
_.g.computeThumbnailTargetWidth=function(){var Y;return(Y=this.itemWidth)!=null?Y:9999};
_.g.updateIsInFirstColumn=function(){var Y;this.isInFirstColumn=((Y=this.data)==null?void 0:Y.colIndex)===0};
_.g.observerContainerType=function(){if(this.lockup){var Y=this.lockup;Y.containerType=this.containerType;Y.sizing=this.sizing;Y.typographyBump=this.typographyBump;Y.itemWidth=this.itemWidth}this.richGridMedia&&_.q("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.q("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.g.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.g.leave=function(Y){Y=Y.relatedTarget;var b=document.querySelector("ytd-video-preview");Y&&b&&_.cX(b).contains(Y)||this.removeAndCleanupHighlight()};
_.g.hover=function(){var Y;if(!this.highlighted&&(!_.q("web_enable_rich_item_on_focus_effect")||(Y=this.data)!=null&&Y.onFocusEffect)){var b,w;((b=this.data)==null?void 0:(w=b.onFocusEffect)==null?void 0:w.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(Y=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:Y,boxShadow:"0 0 0 10px "+Y}));var V,H;((V=this.data)==null?void 0:(H=V.onFocusEffect)==null?void 0:
H.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.g.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};
_.g.registerHoverHighlightListeners=function(){var Y=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14061_unsubscribeFromInlinePreviewIsActive=_.vB(_.u3(),_.Idb,function(b){Y.highlighted&&!b&&Y.removeAndCleanupHighlight()})};
_.g.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14061_unsubscribeFromInlinePreviewIsActive()};
_.g.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.g.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.g.getBackgroundColor=function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.onFocusEffect)==null?void 0:b.onFocusColor;if(w){if(document.documentElement.hasAttribute("dark")&&(w==null?0:w.darkTheme))return _.WH(w==null?void 0:w.darkTheme);if(w==null?0:w.lightTheme)return _.WH(w==null?void 0:w.lightTheme)}};
_.g.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var Y=_.dO(),b,w,V;Y&&((b=this.data)==null?0:b.trackingParams)&&((w=this.data)==null?void 0:w.colIndex)!=null&&((V=this.data)==null?void 0:V.rowIndex)!=null&&_.b3(Y,_.nA(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.g.isSlimMediaRenderer=function(Y){return!!_.v(Y==null?void 0:Y.content,_.dvQ)||!!_.v(Y==null?void 0:Y.content,Rk9)||!!_.v(Y==null?void 0:Y.content,_.zk)||!!_.v(Y==null?void 0:Y.content,by9)};
_.g.isPostRenderer=function(){var Y,b;return!!_.v((Y=this.data)==null?void 0:Y.content,Ww5)||!!_.v((b=this.data)==null?void 0:b.content,Kwt)};
_.g.computeIsGameCardShelf=function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.content,KUk)};
_.g.computeIsMiniGameCardShelf=function(){var Y,b;return!!_.v((Y=this.data)==null?void 0:Y.content,H1k)||!!_.v((b=this.data)==null?void 0:b.content,g5$)};
_.g.computeIsTeaserCard=function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.content,g5$)};
_.g.computeIsSelectableFeedbackItem=function(){var Y,b;return!((b=_.v((Y=this.data)==null?void 0:Y.content,_.NPd))==null||!b.selectableFeedback)};
_.g.computeContainsLumierePosters=function(){var Y,b;return((b=_.v((Y=this.data)==null?void 0:Y.content,u5o))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.g.computeIsExpandOnHoverCardShelf=function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.content,JJ5)};
_.g.computeIsLinkCardShelf=function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.content,EVj)};
_.g.computeIsReelItemStyleAvatarCircle=function(Y){var b;return((b=_.v(Y==null?void 0:Y.content,_.zk))==null?void 0:b.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.g.computeIsLinkCardFullWidth=function(Y,b){var w;return((w=_.v(Y==null?void 0:Y.content,EVj))==null?void 0:w.useFullWidth)||b<=2};
_.up.Object.defineProperties(Bp.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.q("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.q("web_enable_rich_item_on_focus_effect")||_.q("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
Bp.prototype.richGridHoverHighlightChanged=Bp.prototype.richGridHoverHighlightChanged;Bp.prototype.observerContainerType=Bp.prototype.observerContainerType;Bp.prototype.updateIsInFirstColumn=Bp.prototype.updateIsInFirstColumn;_.z([_.n(_.FX),_.K("design:type",Object)],Bp.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Bp.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],Bp.prototype,"ytdLockupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Bp.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isPost",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.K("design:type",Boolean)],Bp.prototype,"containsLumierePosters",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isSlimMedia",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isGameCardShelf",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isMiniGameCardShelf",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isTeaserCard",void 0);_.z([_.R({computed:"computeIsSelectableFeedbackItem(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isSelectableFeedbackItem",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"isShortsGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Bp.prototype,"isSlimGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"isCompactGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"isShortsPanelGrid",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isExpandOnHoverCardShelf",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isLinkCardShelf",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.FZ,value:3}),_.K("design:type",Number)],Bp.prototype,"itemsPerRow",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"renderedFromRichGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"isInFirstColumn",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"noGutterMargins",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"isInlineGroupItem",void 0);_.z([_.R(),_.K("design:type",Object)],Bp.prototype,"insetMetadata",void 0);
_.z([_.R(),_.K("design:type",Object)],Bp.prototype,"noBottomMarginInAds",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Bp.prototype,"isShelfItem",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.K("design:type",Boolean)],Bp.prototype,"isReelItemStyleAvatarCircle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.K("design:type",Boolean)],Bp.prototype,"isLinkCardFullWidth",void 0);
_.z([_.R(),_.K("design:type",Object)],Bp.prototype,"force16By9ThumbnailAspectRatio",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"useCompactList",void 0);_.z([_.R(),_.K("design:type",String)],Bp.prototype,"sizing",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Bp.prototype,"typographyBump",void 0);_.z([_.R(),_.K("design:type",Number)],Bp.prototype,"itemWidth",void 0);_.z([_.R(),_.K("design:type",Boolean)],Bp.prototype,"isHomeShelf",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Bp.prototype,"isHomeGrid",void 0);_.z([_.xZ("yt-lockup-view-model"),_.K("design:type",HTMLElement)],Bp.prototype,"lockup",void 0);_.z([_.xZ("ytd-rich-grid-media"),_.K("design:type",HTMLElement)],Bp.prototype,"richGridMedia",void 0);_.z([_.xZ("ytd-ad-slot-renderer"),_.K("design:type",HTMLElement)],Bp.prototype,"adSlotRenderer",void 0);_.z([_.R({computed:"computeContainerType(useCompactList)"}),_.K("design:type",Object)],Bp.prototype,"containerType",void 0);
_.z([_.R({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.K("design:type",Object)],Bp.prototype,"thumbnailTargetWidth",void 0);_.z([_.t("showYtInteractionOnRichItem"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Bp.prototype,"showYtInteractionOnRichGridMedia",null);_.z([_.t("isSelectableFeedbackItem","richGridHoverHighlight"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Bp.prototype,"showYtInteractionOnRichItem",null);
_.z([_.t("typographyBump","isHomeGrid"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Bp.prototype,"richTypographyBump",null);_.z([_.R({reflectToAttribute:!0}),_.t("isShortsGrid","isCompactGrid"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Bp.prototype,"richGridHoverHighlight",null);_.z([_.t("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.K("design:type",Number),_.K("design:paramtypes",[])],Bp.prototype,"shortsLockupViewModelAspectRatio",null);
_.z([_.t("isInlineGroupItem"),_.K("design:type",Number),_.K("design:paramtypes",[])],Bp.prototype,"shortsLockupViewModelScrimStyle",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bp.prototype,"updateIsInFirstColumn",null);_.z([_.lr("containerType","sizing","typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bp.prototype,"observerContainerType",null);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Bp.prototype,"isResponsiveGrid",void 0);_.z([_.R(),_.K("design:type",Object)],Bp.prototype,"lockupExperiments",void 0);_.z([_.lr("richGridHoverHighlight"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bp.prototype,"richGridHoverHighlightChanged",null);_.z([_.S({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Bp);
_.V8I=_.UQ()(Bp,"ytd-rich-item-renderer",function(){if(K6$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-item-renderer"></div>\n<yt-interaction id="interaction" class="extended rounded-large style-scope ytd-rich-item-renderer" hidden="[[!showYtInteractionOnRichItem]]"></yt-interaction>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);K6$=Y}Y=K6$;return Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var rGb={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var $g6=_.Gx(_.sa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var HII;var nR=function(){var Y=_.F.apply(this,arguments)||this;Y.useResponsiveGrid=!1;Y.hidden=!1;Y.standardShelfMargins=_.q("web_rich_grid_standard_shelf_margins");Y.isShowMoreHidden=!1;Y.isExpanded=!1;Y.isInnerShelf=!1;Y.allVideosCount=0;Y.allPlaylistCount=0;Y.haveSmartDownloadsCompleted=!1;Y.isShowLessHidden=!0;Y.restrictContentsOverflow=!1;Y.firstShownIndex=0;Y.horizontalOffset=0;Y.atEnd=!0;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};Y.nextClick=function(){var b;(b=Y.data)!=null&&b.contents&&(Y.firstShownIndex+=Y.currentElementsPerRow,Y.updateHorizontalOffset(),Y.updateHorizontalItemVisibility())};
Y.previousClick=function(){var b;(b=Y.data)!=null&&b.contents&&(Y.firstShownIndex-=Y.currentElementsPerRow,Y.updateHorizontalOffset(),Y.updateHorizontalItemVisibility())};
return Y};
_.P(nR,_.F);_.g=nR.prototype;
_.g.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:_.zO("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.g.attached=function(){this.requestElementsPerRow()};
_.g.refreshGridLayoutNew=function(){var Y;if((Y=this.data)!=null&&Y.contents&&this.containerWidth){var b;((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize)?(Y=_.Tce(this.data.responsiveContainerConfiguration,this.containerWidth),Y=_.uX(Object.assign({},Y,{standardUnitMinWidth:this.standardUnitMinWidth}))):Y=_.uX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=Y.typographyBump;if(this.elementsPerRow!==
Y.numItems||this.gutter!==Y.gutter)this.elementsPerRow=Y.numItems,this.gutter=Y.gutter,this.itemWidth=Y.itemWidth,_.m_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":Y.gutter+"px"})}};
_.g.computeSizing=function(){if(!this.isLumiere){var Y=_.Xcq(this.data);if(Y)return Y;if(_.q("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.g.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.g.computeButton=function(Y){var b=_.v(Y,_.Wa);Y=Object.assign({},_.v(Y,_.Wa));return b?(Y.text||(Y.text={simpleText:Y.tooltip}),Y.style="STYLE_MONO_OUTLINE",Y.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",Y):b};
_.g.onRowIndexChange=function(){var Y=_.dO(),b,w;((b=this.data)==null?0:b.trackingParams)&&((w=this.data)==null?void 0:w.rowIndex)!=null&&Y&&_.b3(Y,_.nA(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.g.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var Y,b=((Y=this.getRichItemRenderers()[0])==null?void 0:Y.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*b;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.g.requestElementsPerRow=function(){_.Ua(this.hostElement,"yt-request-elements-per-row")};
_.g.onUpdateElementsPerRowAction=function(Y,b,w,V,H,f){if(this.containerWidth!==f&&(this.containerWidth=f,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&Y&&b&&w&&V&&H&&(this.elementsPerRow!==Y||this.postsPerRow!==b||this.slimItemsPerRow!==w||this.gameCardsPerRow!==V||this.miniGameCardsPerRow!==H)&&(this.elementsPerRow=Y,this.postsPerRow=b,this.slimItemsPerRow=w,this.gameCardsPerRow=V,this.miniGameCardsPerRow=H,this.updateItemVisibility())};
_.g.getRichItemRenderers=function(){return _.E6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.g.updateItemVisibility=function(){var Y=this;if(this.data&&this.data.contents){var b=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(V,H){var f;((f=Y.data)==null?0:f.isExpanded)?(V.hidden=H>b-1,V.ytRendererBehavior.markDirty()):V.hidden=H>Y.currentElementsPerRow-1||H>b-1});
var w=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||w||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||w||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.g.setHeightToSingleRow=function(){var Y=this.getRichItemRenderers(),b=Number.parseInt(getComputedStyle(Y[0]).marginBottom,10)||0;Y=Y.slice(0,this.currentElementsPerRow).reduce(function(w,V){return Math.max(w,V.getBoundingClientRect().height+b)},0);
this.contents.style.height=Y+"px"};
_.g.focusNextExpandedItem=function(){var Y;((Y=this.data)==null?0:Y.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.g.focusItem=function(Y,b){var w=this.getRichItemRenderers();if(w[Y]&&(Y=w[Y].querySelector(".focus-on-expand"))){if(b){var V;(V=w[this.currentElementsPerRow])==null||V.scrollIntoView({behavior:"smooth",block:"center"})}Y.focus({preventScroll:!0})}};
_.g.onDataChange=function(){var Y=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var b;if((b=this.data)==null?0:b.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.TC(this,function(){Y.updateItemVisibility()});
var w;if((w=this.data)==null?0:w.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.m_(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),b=0;b<this.data.contents.length;b++)w=_.v(this.data.contents[b],_.dY)||{},w.colIndex=b,w.rowIndex=this.data.rowIndex};
_.g.handleRerenderDownloadsData=function(){_.q("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())};
_.g.blockInlinePreview=function(Y){var b=this,w;return _.c(function(V){(w=b.inlinePreviewIsEnabled)&&b.ytdReduxBehavior.dispatch(_.yBr(!1));return V.return(new Promise(function(H){Y(function(){w&&b.ytdReduxBehavior.dispatch(_.yBr(!0));H()})}))})};
_.g.expandShelf=function(){var Y=this;if(this.data){var b,w=(b=_.v(this.data.showMoreButton,_.Wa))==null?void 0:b.trackingParams;w&&_.ly(_.Qd(),w);this.data.isExpanded=!0;this.blockInlinePreview(function(V){Y.setHeightToSingleRow();Y.updateItemVisibility();Y.contents.style.height=Y.contents.scrollHeight+"px";_.Lb.addJob(function(){Y.contents.style.height="auto";Y.focusNextExpandedItem();V()},2,200)})}};
_.g.collapseShelf=function(){var Y=this;return _.c(function(b){if(b.nextAddress==1){if(!Y.data)return b.return();Y.data.isExpanded=!1;return _.D(b,Y.blockInlinePreview(function(w){Y.contents.style.height=Y.contents.scrollHeight+"px";Y.setHeightToSingleRow();_.Lb.addJob(function(){Y.updateItemVisibility();Y.contents.style.height="auto";w()},2,200)}),2)}_.Ua(Y.hostElement,"yt-rich-shelf-renderer-collapse",Y.data.trackingParams);
Y.focusItem(0,!1);_.om(b)})};
_.g.updateArrowButtonStatus=function(){var Y=this.getRichItemRenderers().length;if(!_.q("web_rich_shelf_renderer_use_data_contents_killswitch")){var b,w;Y=((b=this.data)==null?void 0:(w=b.contents)==null?void 0:w.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=Y};
_.g.onChildElementFocus=function(Y){this.hasChevronButtons&&(Y=Y.target.closest("#contents > *"),this.contents.contains(Y)&&(Y.offsetLeft<this.horizontalOffset?this.previousClick():Y.offsetLeft+Y.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.g.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.zO("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.g.updateHorizontalOffset=function(){var Y=this.getRichItemRenderers(),b=Y.length;if(!_.q("web_rich_shelf_renderer_use_data_contents_killswitch")){var w,V;b=((w=this.data)==null?void 0:(V=w.contents)==null?void 0:V.length)||0}var H;Y=((H=Y[0])==null?void 0:H.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>b?this.firstShownIndex=b-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*Y};
_.g.isSlimMediaShelfRenderer=function(){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY))==null?void 0:w.content;return!!(_.v(V,_.dvQ)||_.v(V,Rk9)||_.v(V,_.zk)||_.v(V,by9))};
_.g.isGameCardShelf=function(){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY))==null?void 0:w.content;return!!_.v(V,KUk)};
_.g.isGnomeShelf=function(){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY))==null?void 0:w.content;return!!_.v(V,_.NPd)};
_.g.isMiniGameCardShelf=function(){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY))==null?void 0:w.content;return!!_.v(V,H1k)||!!_.v(V,g5$)};
_.g.hasGameBoxArtAvatarStyle=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.g.hasRoundedGameBoxArtAvatarStyle=function(){var Y;return((Y=this.data)==null?void 0:Y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.g.isShortsShelf=function(){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY))==null?void 0:w.content;return!!_.v(V,_.zk)||!!_.v(V,by9)};
_.g.isPostShelfRenderer=function(){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY))==null?void 0:w.content;return!(!_.v(V,Ww5)&&!_.v(V,Kwt))};
_.g.isLumiereShelf=function(){var Y,b,w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY);return!!_.v(w==null?void 0:w.content,u5o)};
_.g.isLumiereShelfWithPosters=function(){var Y,b,w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY),V;return((V=_.v(w==null?void 0:w.content,u5o))==null?void 0:V.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.g.isExpandOnHoverCardShelf=function(){var Y,b,w,V=(w=_.v((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:b[0],_.dY))==null?void 0:w.content;return!!_.v(V,JJ5)};
_.g.computeHasFeaturedBadge=function(){var Y,b,w=_.v((Y=this.data)==null?void 0:(b=Y.badges)==null?void 0:b[0],_.Nmo);return w?w.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.g.computeHasPaygatedFeaturedBadge=function(){var Y,b,w=_.v((Y=this.data)==null?void 0:(b=Y.badges)==null?void 0:b[0],_.Nmo);return w?(w==null?void 0:w.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.g.computeHeaderHidden=function(){var Y,b,w,V,H,f;return!((Y=this.data)==null?0:Y.icon)&&!((b=this.data)==null?0:b.title)&&!((w=this.data)==null?0:w.subtitle)&&!((V=this.data)==null?0:V.thumbnail)&&!((H=this.data)==null?0:H.badges)&&!((f=this.data)==null?0:f.menu)};
_.g.showCtaButton=function(){var Y;return!((Y=this.data)==null||!Y.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.g.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.g.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.g.computeForce16By9ThumbnailAspectRatio=function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.responsiveContainerConfiguration)==null?void 0:b.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.g.onSectionReactiveDismissal=function(Y,b,w){var V,H;var f=(V=this.data)==null?void 0:(H=V.targetingContext)==null?void 0:H.targetGroupId;this&&f&&b.targetGroupId&&f.includes(b.targetGroupId)?(V=this.rowIndex,Y=V===void 0?!1:!(b.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&V<=Y)):Y=!1;Y&&(this.hidden=w)};
_.up.Object.defineProperties(nR.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var Y=this.elementsPerRow;this.isPostShelfRenderer()?Y=this.postsPerRow:this.isSlimMediaShelfRenderer()?Y=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?Y=this.slimItemsPerRow-1:this.isGameCardShelf()?Y=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(Y=this.miniGameCardsPerRow);return Y}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.q("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.previousButton)&&!((b=this.data)==null||!b.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.fH().resolve(_.bX).getCurrentPage())==null?void 0:Y.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return!((Y=this.data)==null?0:(b=Y.thumbnail)==null?0:(w=b.accessibility)==null?0:(V=w.accessibilityData)==null?0:V.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
nR.prototype.onChildElementFocus=nR.prototype.onChildElementFocus;nR.prototype.handleRerenderDownloadsData=nR.prototype.handleRerenderDownloadsData;nR.prototype.onDataChange=nR.prototype.onDataChange;nR.prototype.onRowIndexChange=nR.prototype.onRowIndexChange;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.Si),_.K("design:type",Object)],nR.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],nR.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],nR.prototype,"ytdReduxBehavior",void 0);_.z([_.R({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.K("design:type",Object)],nR.prototype,"useResponsiveGrid",void 0);_.z([_.R(),_.K("design:type",Object)],nR.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Number)],nR.prototype,"standardUnitMinWidth",void 0);_.z([_.R({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],nR.prototype,"elementsPerRow",void 0);_.z([_.R({value:3}),_.K("design:type",Number)],nR.prototype,"postsPerRow",void 0);_.z([_.R({value:6}),_.K("design:type",Number)],nR.prototype,"slimItemsPerRow",void 0);_.z([_.R({value:6}),_.K("design:type",Number)],nR.prototype,"gameCardsPerRow",void 0);
_.z([_.R({value:6}),_.K("design:type",Number)],nR.prototype,"miniGameCardsPerRow",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nR.prototype,"hidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nR.prototype,"standardShelfMargins",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nR.prototype,"isShowMoreHidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nR.prototype,"isExpanded",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nR.prototype,"isInnerShelf",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.K("design:type",Boolean)],nR.prototype,"isShorts",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.K("design:type",Boolean)],nR.prototype,"isLumiere",void 0);_.z([_.R({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.K("design:type",Boolean)],nR.prototype,"hasBoxArtThumbnailStyle",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.K("design:type",Boolean)],nR.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.K("design:type",Boolean)],nR.prototype,"hasFeaturedBadge",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.K("design:type",Boolean)],nR.prototype,"hasPaygatedFeaturedBadge",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.K("design:type",Boolean)],nR.prototype,"isHeaderHidden",void 0);_.z([_.R({selector:_.QUg}),_.K("design:type",Object)],nR.prototype,"allVideosCount",void 0);_.z([_.R({selector:GR6}),_.K("design:type",Object)],nR.prototype,"allPlaylistCount",void 0);_.z([_.R({selector:t7G}),_.K("design:type",Object)],nR.prototype,"haveSmartDownloadsCompleted",void 0);
_.z([_.R({selectorArgs:["entitySelectorType"],selector:function(Y,b){if(_.q("kevlar_modern_downloads_page")&&b&&b!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var w=Y.entities;switch(b){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":b=_.Of(w);Y=Rn(b);var V=_.B$(b);w=_.R8(w);w=_.NV(W8B(V,w,b.length));return{contents:Y,subtitle:w};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return w=_.Of(w),{contents:Rn(w)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return w=
_.tr(w),{contents:Rn(w)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return w=_.Ywr(w),{contents:Rn(w)};default:_.Sk(new _.BQ("Error: entitySelectorType defined but not matched in selector.",Y,b))}}}}),
_.K("design:type",Object)],nR.prototype,"entityDrivenRichShelfData",void 0);_.z([_.R({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.K("design:type",Boolean)],nR.prototype,"hasTopCtaButton",void 0);_.z([_.R({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.K("design:type",Boolean)],nR.prototype,"hasBottomCtaButton",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.K("design:type",Boolean)],nR.prototype,"force16By9ThumbnailAspectRatio",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nR.prototype,"isShowLessHidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nR.prototype,"restrictContentsOverflow",void 0);_.z([_.R({selector:_.kkM}),_.K("design:type",Boolean)],nR.prototype,"inlinePreviewIsEnabled",void 0);
_.z([_.R({computed:"computeSizing(data)"}),_.K("design:type",String)],nR.prototype,"sizing",void 0);_.z([_.R(),_.K("design:type",Boolean)],nR.prototype,"typographyBump",void 0);_.z([_.R(),_.K("design:type",Number)],nR.prototype,"itemWidth",void 0);_.z([_.R(),_.K("design:type",Object)],nR.prototype,"firstShownIndex",void 0);_.z([_.R(),_.K("design:type",Object)],nR.prototype,"horizontalOffset",void 0);_.z([_.R(),_.K("design:type",Object)],nR.prototype,"atEnd",void 0);
_.z([_.xZ("#contents"),_.K("design:type",HTMLElement)],nR.prototype,"contents",void 0);_.z([_.lr("data.rowIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nR.prototype,"onRowIndexChange",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nR.prototype,"onDataChange",null);
_.z([_.lr("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nR.prototype,"handleRerenderDownloadsData",null);_.z([_.kZ("focusin"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],nR.prototype,"onChildElementFocus",null);_.z([_.R({reflectToAttribute:!0}),_.t("data","isHomePage"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],nR.prototype,"isTruncated",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],nR.prototype,"hideBottomDivider",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],nR.prototype,"hasChevronButtons",null);_.z([_.t("firstShownIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],nR.prototype,"previousButtonOverride",null);
_.z([_.t("atEnd"),_.K("design:type",Object),_.K("design:paramtypes",[])],nR.prototype,"nextButtonOverride",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],nR.prototype,"isHomePage",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],nR.prototype,"thumbnailAriaHidden",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],nR.prototype,"initiallyIsExpanded",null);
_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],nR.prototype,"entitySelectorType",null);_.z([_.S({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],nR);
_.gTk=_.UQ()(nR,"ytd-rich-shelf-renderer",function(){if(HII===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-rich-shelf-renderer">\n  <div id="rich-shelf-header-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="rich-shelf-header" class="style-scope ytd-rich-shelf-renderer">\n      <h2 class="style-scope ytd-rich-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n            <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n              <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n              <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-rich-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-rich-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" aria-hidden="[[thumbnailAriaHidden]]" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-rich-shelf-renderer">\n              </yt-img-shadow>\n            </a>\n            <div id="title-container" class="style-scope ytd-rich-shelf-renderer">\n              <div id="title-text" class="style-scope ytd-rich-shelf-renderer">\n                <a class="yt-simple-endpoint style-scope ytd-rich-shelf-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n                  <span id="title" class="style-scope ytd-rich-shelf-renderer">[[getSimpleString(data.title)]]</span>\n                </a>\n                <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!hasFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n              <div id="subtitle-text" class="style-scope ytd-rich-shelf-renderer">\n                <ytd-badge-supported-renderer id="paygated-featured-badge" badges="[[data.badges]]" hidden="[[!hasPaygatedFeaturedBadge]]" class="style-scope ytd-rich-shelf-renderer">\n                </ytd-badge-supported-renderer>\n                <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-rich-shelf-renderer"> </yt-formatted-string>\n              </div>\n            </div>\n          </div>\n        </template>\n      </h2>\n      <div id="menu-container" class="style-scope ytd-rich-shelf-renderer">\n        <div class="cta-button-container style-scope ytd-rich-shelf-renderer" hidden="[[!hasTopCtaButton]]">\n          <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n        <div id="menu" hidden="[[isDismissedButtonHidden]]" class="style-scope ytd-rich-shelf-renderer"></div>\n        <yt-button-view-model id="previous-button" button-overrides="[[previousButtonOverride]]" data="[[data.previousButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="previousClick" class="style-scope ytd-rich-shelf-renderer">\n        </yt-button-view-model>\n        <yt-button-view-model id="next-button" button-overrides="[[nextButtonOverride]]" data="[[data.nextButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="nextClick" class="style-scope ytd-rich-shelf-renderer">\n      </yt-button-view-model>\n      </div>\n    </div>\n    <div id="cta-bottom-button-container" hidden="[[!hasBottomCtaButton]]" class="style-scope ytd-rich-shelf-renderer">\n      <ytd-button-renderer class="cta-button style-scope ytd-rich-shelf-renderer" data="[[data.ctaButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="contents-container" class="style-scope ytd-rich-shelf-renderer">\n    <div id="contents" class="style-scope ytd-rich-shelf-renderer"></div>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowMoreHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showMoreButton)]]" on-click="expandShelf">\n    </ytd-button-renderer>\n  </div>\n  <div class="button-container style-scope ytd-rich-shelf-renderer" hidden="[[isShowLessHidden]]">\n    <ytd-button-renderer class="expand-collapse-button style-scope ytd-rich-shelf-renderer" data="[[computeButton(data.showLessButton)]]" on-click="collapseShelf">\n    </ytd-button-renderer>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-rich-shelf-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);HII=Y}Y=HII;return Y},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var f08;_.f_(FFQ,"yt-slimline-survey-view-model",{props:{data:_.YX}});var Mu=function(){var Y=_.F.apply(this,arguments)||this;Y.tileLottieAnimationRef={};Y.backgroundLottieAnimationRef={};Y.isOnHoverBehaviorForLottieEnabled=!0;Y.useBiggerShowcaseImage=_.q("enable_desktop_search_bigger_thumbs");Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return Y};
_.P(Mu,_.F);_.g=Mu.prototype;_.g.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.g.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.g.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var Y=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);Y!==this.hasTile&&this.set("hasTile",Y);Y=this.hasLogo(this.data)||!!this.data.badgeText;Y!==this.hasMetadata&&this.set("hasMetadata",Y);Y=this.data.overflowButton?!1:Y;Y!==this.showLogoImage&&this.set("showLogoImage",Y);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.g.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.g.currentColorChanged=function(){this.updateButtonPalette()};
_.g.computeBackgroundStyle=function(Y){if(Y&&this.data){var b=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var w=_.Ev((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);w&&b.push('background-image: url("'+w+'");')}var V;((V=Y.basicColorData)==null?void 0:V.backgroundColor)!==void 0&&b.push("background-color: "+_.KX(Y.basicColorData.backgroundColor)+";");return b.join("")}};
_.g.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y)};
_.g.getCurrentLogo=function(Y,b){if(Y)return b?Y.darkLogoImage:Y.lightLogoImage};
_.g.getCurrentStaticTileImage=function(Y,b){if(this.hasStaticTile(Y))return Y.darkTileImage?b?Y.darkTileImage:Y.tileImage:Y.tileImage};
_.g.computeTitleStyle=function(Y){if(this.data&&this.data.title&&Y&&Y.basicColorData&&Y.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.WH(Y.basicColorData.foregroundTitleColor)+";"};
_.g.computeSubtitleStyle=function(Y){if(this.data&&this.data.subtitle&&Y&&Y.basicColorData&&Y.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.WH(Y.basicColorData.foregroundBodyColor)+";"};
_.g.computeSupplementalStyle=function(Y){if(this.data&&this.data.supplementalText&&Y&&Y.supplementalTextColor!==void 0)return Y=_.WH(Y.supplementalTextColor),"color:"+Y+";--yt-endpoint-color:"+Y+";--yt-endpoint-hover-color:"+Y+";--yt-endpoint-visited-color:"+Y+";--yt-formatted-string-bold-font-weight:700;"};
_.g.computeBadgeStyle=function(Y){if(this.data&&this.data.badgeText&&Y&&Y.basicColorData&&Y.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.WH(Y.basicColorData.foregroundActivatedColor)+";"};
_.g.computeDismissIconStyle=function(Y){var b,w;if((Y==null?0:(b=Y.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(Y==null?0:(w=Y.dismissButtonColorData)==null?0:w.backgroundColor))return"--yt-button-color:"+_.KX(Y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.KX(Y.dismissButtonColorData.backgroundColor)+";"};
_.g.computeOverflowIconStyle=function(Y){var b,w;if((Y==null?0:(b=Y.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(Y==null?0:(w=Y.dismissButtonColorData)==null?0:w.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.KX(Y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.KX(Y.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.KX(Y.dismissButtonColorData.foregroundTitleColor)+";"};
_.g.computeBannerStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.g.computeLocation=function(Y){switch(Y==null?void 0:Y.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.g.shouldShowTileSection=function(Y,b,w){return!this.shouldExpandLogo(Y,b,w)&&b};
_.g.shouldShowExpandedLogoSection=function(Y,b,w){return this.shouldExpandLogo(Y,b,w)&&Y!==void 0&&this.hasLogo(Y)};
_.g.shouldExpandLogo=function(Y,b,w){return Y&&b?!1:w>=2};
_.g.hasStaticTile=function(Y){return!(Y==null||!Y.tileImage)};
_.g.hasTileLottie=function(Y){var b;return!!(Y==null?0:(b=Y.tileLottie)==null?0:b.url)};
_.g.hasLogo=function(Y){return this.getCurrentLogo(Y,this.isDarkTheme)!==void 0};
_.g.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"26":"20"};
_.g.getExpandedLogoHeight=function(Y){return this.logoWithPadding(Y)?"31":"24"};
_.g.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"logo-image-with-padding":"logo-image"};
_.g.hasBackgroundLottie=function(Y){var b;return!!(Y==null?0:(b=Y.backgroundLottie)==null?0:b.url)};
_.g.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var Y,b;(Y=this.tileLottieAnimationRef)==null||(b=Y.lottieEl)==null||b.play();var w,V;(w=this.backgroundLottieAnimationRef)==null||(V=w.lottieEl)==null||V.play()}};
_.g.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var Y,b;(Y=this.tileLottieAnimationRef)==null||(b=Y.lottieEl)==null||b.pause();var w,V;(w=this.backgroundLottieAnimationRef)==null||(V=w.lottieEl)==null||V.pause()}};
_.g.pauseLottie=function(){var Y,b;(Y=this.tileLottieAnimationRef)==null||(b=Y.lottieEl)==null||b.pause();var w,V;(w=this.backgroundLottieAnimationRef)==null||(V=w.lottieEl)==null||V.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.g.performPrimaryButtonAction=function(){var Y,b,w;((Y=this.data)==null?0:(b=Y.primaryButton)==null?0:(w=b.buttonRenderer)==null?0:w.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.g.requestElementsPerRow=function(){_.Ua(this.hostElement,"yt-request-elements-per-row")};
_.g.updateButtonPalette=function(){if(this.data&&this.currentColorData){var Y;((Y=this.data.dismissButton)==null?0:Y.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var b;if((b=this.data.primaryButton)==null?0:b.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 w;if((w=this.data.secondaryButton)==
null?0:w.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 V;((V=this.data.primaryButton)==null?0:V.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var H;((H=this.data.secondaryButton)==null?0:H.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.g.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var Y=this.getTileLottieDataBasedOnTheme(),b,w;if(Y.url!==((b=this.tileLottiePlayerProps)==null?void 0:(w=b.animationConfig)==null?void 0:w.path)){var V,H;(V=this.tileLottieAnimationRef)==null||(H=V.lottieEl)==null||H.destroy();var f;this.isOnHoverBehaviorForLottieEnabled=!((f=Y.settings)==null?0:f.autoplay);var E,U;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(U=(E=Y.settings)==null?void 0:E.autoplay)!=null?U:!1,loop:this.getLottieLoopValue(Y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof Y.url==="string"?this.tileLottiePlayerProps.animationConfig.path=Y.url:this.tileLottiePlayerProps.animationConfig.animationData=Y.url}}};
_.g.getOverflowButton=function(Y){return _.v(Y.overflowButton,fW8)};
_.g.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var Y=this.getBackgroundLottieDataBasedOnTheme(),b,w;if(Y.url!==((b=this.backgroundLottiePlayerProps)==null?void 0:(w=b.animationConfig)==null?void 0:w.path)){var V,H;(V=this.backgroundLottieAnimationRef)==null||(H=V.lottieEl)==null||H.destroy();var f;this.isOnHoverBehaviorForLottieEnabled=!((f=Y.settings)==null?0:f.autoplay);var E,U;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(U=(E=Y.settings)==null?void 0:E.autoplay)!=null?U:!1,loop:this.getLottieLoopValue(Y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof Y.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=Y.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
Y.url}}};
_.g.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var Y;((Y=this.tileLottieAnimationRef)==null?void 0:Y.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var b;((b=this.backgroundLottieAnimationRef)==null?void 0:b.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.g.getTileLottieDataBasedOnTheme=function(){var Y;if(this.isDarkTheme&&((Y=this.data)==null?0:Y.darkThemeTileLottie))return this.data.darkThemeTileLottie;var b;return((b=this.data)==null?0:b.tileLottie)?this.data.tileLottie:{}};
_.g.getBackgroundLottieDataBasedOnTheme=function(){var Y;if(this.isDarkTheme&&((Y=this.data)==null?0:Y.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var b;return((b=this.data)==null?0:b.backgroundLottie)?this.data.backgroundLottie:{}};
_.g.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
_.g.getLottieLoopValue=function(Y){return Y?Y.loop!==void 0?Y.loop:Y.loopCount?Y.loopCount-1:!0:!0};
_.g.logoWithPadding=function(Y){var b,w,V;return(Y=(b=this.getCurrentLogo(Y,this.isDarkTheme))==null?void 0:(w=b.thumbnails)==null?void 0:(V=w[0])==null?void 0:V.height)&&Y%31===0?!0:!1};
Mu.prototype.currentColorChanged=Mu.prototype.currentColorChanged;Mu.prototype.themeChanged=Mu.prototype.themeChanged;Mu.prototype.dataChanged=Mu.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Mu.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],Mu.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Mu.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Mu.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"primaryButton",void 0);_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"secondaryButton",void 0);
_.z([_.R({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],Mu.prototype,"elementsPerRow",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Mu.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Mu.prototype,"hasTile",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Mu.prototype,"hasMetadata",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Mu.prototype,"showLogoImage",void 0);_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"currentColorData",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.K("design:type",String)],Mu.prototype,"bannerStyle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.K("design:type",String)],Mu.prototype,"location",void 0);
_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"tileLottiePlayerProps",void 0);_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"tileLottieAnimationRef",void 0);_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"backgroundLottiePlayerProps",void 0);_.z([_.R(),_.K("design:type",Object)],Mu.prototype,"backgroundLottieAnimationRef",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Mu.prototype,"useBiggerShowcaseImage",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Mu.prototype,"isHideEnclosingAction",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mu.prototype,"dataChanged",null);_.z([_.vX("isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mu.prototype,"themeChanged",null);
_.z([_.vX("currentColorData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mu.prototype,"currentColorChanged",null);_.z([_.S({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Mu);
_.a(Mu,"ytd-statement-banner-renderer",function(){if(f08!==void 0)return f08;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return f08=Y},{mode:1});var Njo;var e0=function(){var Y=_.F.apply(this,arguments)||this;Y.isSearch=!1;Y.hideShelfHeader=!1;Y.engagementPanel=!1;Y.disableMouseScroll=!0;Y.useFloorScrolling=!0;Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(e0,_.F);e0.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.sa("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.sa("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
e0.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
e0.prototype.onDataChanged=e0.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],e0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],e0.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],e0.prototype,"hideShelfHeader",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],e0.prototype,"engagementPanel",void 0);_.z([_.R(),_.K("design:type",Object)],e0.prototype,"disableMouseScroll",void 0);_.z([_.R(),_.K("design:type",Object)],e0.prototype,"useFloorScrolling",void 0);_.z([_.R(),_.K("design:type",Object)],e0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],e0.prototype,"modernTypography",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],e0.prototype,"onDataChanged",null);_.z([_.S({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],e0);
_.a(e0,"ytd-reel-shelf-renderer",function(){if(Njo!==void 0)return Njo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Njo=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var ETr;var c59=_.b8(function(Y){var b=Y.data;Y=Y.useSmallFont;var w={},V={};return _.m("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.m(_.h,{cond:function(){return b().favicon},
then:function(H){return _.m(_.Y_,{data:H,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.m("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.m(_.wv,{text:function(){return b().title},
className:_.hj("yt-channel-external-link-view-model-wiz__title",(w["yt-channel-external-link-view-model-wiz__title--title-small-font"]=Y,w)),ellipsisTruncate:!0,userInput:!0}),_.m(_.wv,{text:function(){return b().link},
className:_.hj("yt-channel-external-link-view-model-wiz__link",(V["yt-channel-external-link-view-model-wiz__link--link-small-font"]=Y,V)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
c59.idomCompat=!0;_.f_(c59,"yt-channel-external-link-view-model",{props:{data:_.YX,useSmallFont:_.YX}});_.S9("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var pR=function(){var Y=_.F.apply(this,arguments)||this;Y.revealButtonClass="button";Y.businessEmailDisplayState="HIDE_SECTION";return Y};
_.P(pR,_.F);_.g=pR.prototype;_.g.refit=function(){var Y=this;_.KV(function(){_.De(Y.hostElement,"yt-refit-popups-action")});
_.TC(this,function(){_.De(Y.hostElement,"yt-refit-popups-action")})};
_.g.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.io("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.g.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"};
_.g.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.g.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"}}}};
_.g.computeEmailHref=function(Y){return"mailto:"+Y};
_.g.computeSafeUrl=function(Y){if(Y)return _.PN(Y)};
_.g.linkEndpoint=function(Y){return _.v(Y.onTap,_.rI)};
_.g.linkEndpointToHref=function(Y){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(Y))};
_.g.onYtServiceRequestCompleted=function(Y){var b;if((b=Y.detail.data)==null?0:b.businessEmail)this.businessEmail=Y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var w;if((w=Y.detail.data)==null?0:w.errorMessage)this.businessEmailErrorMessage=Y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.g.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var Y=this.JSC$14165_captchaTextarea.value;if(Y){Y={recaptcha_response_token:Y,channel_id:this.metadata.channelId};var b=_.v(this.metadata.onBusinessEmailRevealClickCommand,_.rI);b&&this.ytComponentBehavior.resolveCommand(b,{form:Y})}}};
_.g.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.up.Object.defineProperties(pR.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var Y;return _.v((Y=this.data)==null?void 0:Y.metadata,Vuj)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.v(this.metadata.businessEmailRevealButton,_.Bv)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var Y=new URL(this.metadata.canonicalChannelUrl);return Y.host+Y.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.v(this.metadata.learnMoreOnTap,_.rI)}}});
pR.prototype.onYtServiceRequestCompleted=pR.prototype.onYtServiceRequestCompleted;pR.prototype.businessEmailMetadataChanged=pR.prototype.businessEmailMetadataChanged;pR.prototype.refit=pR.prototype.refit;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],pR.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("#g-recaptcha-response"),_.K("design:type",HTMLTextAreaElement)],pR.prototype,"JSC$14165_captchaTextarea",void 0);_.z([_.R(),_.K("design:type",Object)],pR.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],pR.prototype,"revealButtonClass",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],pR.prototype,"metadata",null);
_.z([_.t("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],pR.prototype,"revealButton",null);_.z([_.t("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],pR.prototype,"channelDisplayUrl",null);_.z([_.vX("metadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pR.prototype,"refit",null);_.z([_.t("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],pR.prototype,"formattedDescription",null);
_.z([_.t("metadata","learnMoreCommand"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],pR.prototype,"shouldRendereVerifiedPhoneStatus",null);_.z([_.t("metadata"),_.K("design:type",Object),_.K("design:paramtypes",[])],pR.prototype,"learnMoreCommand",null);_.z([_.R(),_.K("design:type",String)],pR.prototype,"businessEmailDisplayState",void 0);_.z([_.R(),_.K("design:type",String)],pR.prototype,"businessEmail",void 0);
_.z([_.R(),_.K("design:type",String)],pR.prototype,"businessEmailErrorMessage",void 0);_.z([_.vX("metadata"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pR.prototype,"businessEmailMetadataChanged",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],pR.prototype,"onYtServiceRequestCompleted",null);_.z([_.S({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],pR);
_.a(pR,"ytd-about-channel-renderer",function(){if(ETr!==void 0)return ETr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ETr=Y},{mode:1});var Ut8;var Oj=function(){return _.F.apply(this,arguments)||this};
_.P(Oj,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Oj.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Oj);
_.a(Oj,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(Ut8!==void 0)return Ut8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-avatar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-list-sub-menu-avatar-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="80" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-channel-list-sub-menu-avatar-renderer">[[getSimpleString(data.title)]]</div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ut8=Y},{mode:1});var XCI;var t2=function(){return _.F.apply(this,arguments)||this};
_.P(t2,_.F);t2.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],t2.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],t2.prototype,"aligment",void 0);_.z([_.S({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],t2);
_.a(t2,"ytd-channel-list-sub-menu-renderer",function(){if(XCI!==void 0)return XCI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-list-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-list-sub-menu-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return XCI=
Y},{mode:1});var Dtk;var Ra=function(){return _.F.apply(this,arguments)||this};
_.P(Ra,_.F);Ra.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}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ra.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Ra);
_.a(Ra,"ytd-channel-sub-menu-renderer",function(){if(Dtk!==void 0)return Dtk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-items" class="style-scope ytd-channel-sub-menu-renderer">\n  <yt-dropdown-menu class="content-sub-menu style-scope ytd-channel-sub-menu-renderer" data="[[data.contentTypeSubMenuItems]]" parent-tracking-params="[[data.trackingParams]]" use-label="">\n  </yt-dropdown-menu>\n  <div id="play-all" class="style-scope ytd-channel-sub-menu-renderer"></div>\n</div>\n<div id="sort-menu" class="style-scope ytd-channel-sub-menu-renderer"></div>\n<div id="right-buttons" class="style-scope ytd-channel-sub-menu-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Dtk=Y},{mode:1});var mtC;var oTr;var dV=function(){var Y=_.F.apply(this,arguments)||this;Y.isCompact=!1;return Y};
_.P(dV,_.F);_.up.Object.defineProperties(dV.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((b=_.v((Y=this.data)==null?void 0:Y.endpoint,_.Ah))==null?void 0:b.target)==="TARGET_NEW_WINDOW"}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],dV.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],dV.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dV.prototype,"isCompact",void 0);_.z([_.t("isCompact"),_.K("design:type",Number),_.K("design:paramtypes",[])],dV.prototype,"thumbnailWidth",null);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],dV.prototype,"openNewWindow",null);_.z([_.S({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],dV);
_.a(dV,"ytd-media-lockup-renderer",function(){if(oTr!==void 0)return oTr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-media-lockup-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n  <div id="thumbnail-container" class="style-scope ytd-media-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" fit-width="" thumbnail="[[data.thumbnailDetails]]" width="[[thumbnailWidth]]" class="style-scope ytd-media-lockup-renderer">\n    </yt-img-shadow>\n  </div>\n  <div id="description" class="style-scope ytd-media-lockup-renderer">\n    <div id="title" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-media-lockup-renderer">\n      <span id="subtitle-text" class="style-scope ytd-media-lockup-renderer">[[getSimpleString(data.subtitle)]]</span>\n      \n      <yt-icon class="media-lockup-icon style-scope ytd-media-lockup-renderer" default-to-filled="true" hidden="[[!openNewWindow]]" icon="open_in_new" size="15"></yt-icon>\n    </div>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return oTr=Y},{mode:1});var I0K;var FV=function(){return _.F.apply(this,arguments)||this};
_.P(FV,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],FV.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],FV.prototype,"data",void 0);_.z([_.S({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],FV);
_.a(FV,"ytd-structured-description-channel-lockup-renderer",function(){if(I0K!==void 0)return I0K;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-channel-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="thumbnail-container" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  <ytd-thumbnail data="[[data]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-channel-lockup-renderer">\n  </ytd-thumbnail>\n</div>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-channel-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-channel-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-channel-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subscriber-count" class="style-scope ytd-structured-description-channel-lockup-renderer">\n      [[getSimpleString(data.subscriberCountText)]]\n    </div>\n  </div>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return I0K=Y},{mode:1});var kbo;var LR=function(){var Y=_.F.apply(this,arguments)||this;Y.isCompact=!1;Y.collections=_.q("web_modern_collections_v2");Y.collectionsStackColor=_.q("modernize_structured_description_playlist_lockups_v2");return Y};
_.P(LR,_.F);LR.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:_.q("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.up.Object.defineProperties(LR.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H,f;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(Y=this.data)==null?void 0:(b=Y.thumbnail)==null?void 0:b.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(w=this.data)==null?void 0:(V=w.thumbnail)==null?void 0:V.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(H=this.data)==null?void 0:(f=H.thumbnail)==
null?void 0:f.vibrantColorPalette:void 0}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],LR.prototype,"componentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],LR.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],LR.prototype,"showSidePanelThumbnailOverlay",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],LR.prototype,"isCompact",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],LR.prototype,"collections",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],LR.prototype,"collectionsStackColor",void 0);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],LR.prototype,"twoLineTitle",null);
_.z([_.t("data","collections","collectionsStackColor"),_.K("design:type",Object),_.K("design:paramtypes",[])],LR.prototype,"collectionStack",null);_.z([_.S({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],LR);
_.a(LR,"ytd-structured-description-playlist-lockup-renderer",function(){if(kbo!==void 0)return kbo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return kbo=Y},{mode:1});var l0$;var S0=function(){return _.F.apply(this,arguments)||this};
_.P(S0,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],S0.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],S0.prototype,"data",void 0);_.z([_.S({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],S0);
_.a(S0,"ytd-structured-description-video-lockup-renderer",function(){if(l0$!==void 0)return l0$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-video-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" hovered="[[lockupIsHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n</ytd-thumbnail>\n<a id="text-wrapper" class="yt-simple-endpoint style-scope ytd-structured-description-video-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <div id="description" class="style-scope ytd-structured-description-video-lockup-renderer">\n    <div id="title" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" class="style-scope ytd-structured-description-video-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n    <yt-formatted-string id="metadata-details" disable-upgrade$="[[!data.metadataDetails]]" hidden="[[!data.metadataDetails]]" no-endpoints="" text="[[data.metadataDetails]]" class="style-scope ytd-structured-description-video-lockup-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return l0$=Y},{mode:2});var aa=function(){return _.F.apply(this,arguments)||this};
_.P(aa,_.F);
aa.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}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],aa.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],aa.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],aa.prototype,"data",void 0);_.z([_.S({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],aa);
_.a(aa,"ytd-compact-infocard-renderer",function(){if(mtC!==void 0)return mtC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-infocard-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-compact-infocard-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return mtC=Y},{mode:1});var h5r;var rV=function(){var Y=_.F.apply(this,arguments)||this;Y.useModernCollectionsV2=_.q("web_modern_collections_v2");return Y};
_.P(rV,_.F);rV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.up.Object.defineProperties(rV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],rV.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],rV.prototype,"ytdReduxBehavior",void 0);_.z([_.R({selector:_.Ks}),_.K("design:type",Object)],rV.prototype,"isGridViewEnabled",void 0);
_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],rV.prototype,"watchFeedBigThumbs",null);_.z([_.t("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"168"}),_.K("design:type",String),_.K("design:paramtypes",[])],rV.prototype,"thumbnailWidth",null);_.z([_.t("isGridViewEnabled","data"),_.R({reflectToAttribute:!0,value:"94"}),_.K("design:type",String),_.K("design:paramtypes",[])],rV.prototype,"customThumbnailSize",null);
_.z([_.R(),_.K("design:type",Object)],rV.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],rV.prototype,"useModernCollectionsV2",void 0);_.z([_.S({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],rV);
_.a(rV,"ytd-compact-playlist-renderer",function(){if(h5r!==void 0)return h5r;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-playlist-renderer">\n  <ytd-playlist-thumbnail custom-thumbnail-size="[[customThumbnailSize]]" data="[[data]]" height="94" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-playlist-renderer">\n  </ytd-playlist-thumbnail>\n  <div class="details style-scope ytd-compact-playlist-renderer">\n    <div class="metadata style-scope ytd-compact-playlist-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-playlist-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-playlist-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-playlist-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-playlist-renderer">\n          <ytd-video-meta-block class="compact style-scope ytd-compact-playlist-renderer" data="[[data]]" no-endpoints="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n          </ytd-video-meta-block>\n          <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-compact-playlist-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-playlist-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-playlist-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return h5r=Y},{mode:1});var xt8;var zf=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.roundedContainer=!0;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return Y};
_.P(zf,_.F);_.g=zf.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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"}}}};
_.g.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.g.computeViewStyle=function(Y){return Y.style?Y.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.g.onUpdateElementsPerRowAction=function(Y){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&Y===1};
_.g.requestElementsPerRow=function(){_.Ua(this.hostElement,"yt-request-elements-per-row")};
zf.prototype.dataChanged=zf.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],zf.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],zf.prototype,"actionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],zf.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],zf.prototype,"hideThumbnail",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.K("design:type",String)],zf.prototype,"viewStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],zf.prototype,"darkerDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],zf.prototype,"roundedContainer",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],zf.prototype,"dataChanged",null);_.z([_.S({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],zf);
_.a(zf,"ytd-compact-promoted-item-renderer",function(){if(xt8!==void 0)return xt8;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-promoted-item-renderer">\n<ytd-thumbnail data="[[data]]" hidden$="[[hideThumbnail]]" width="100" class="style-scope ytd-compact-promoted-item-renderer"></ytd-thumbnail>\n  <div id="content" class="style-scope ytd-compact-promoted-item-renderer">\n    <div id="info" class="style-scope ytd-compact-promoted-item-renderer">\n      <h3 class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n      </h3>\n      <div id="subtitle-container" class="style-scope ytd-compact-promoted-item-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-promoted-item-renderer"></yt-formatted-string>\n        <ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-promoted-item-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n    </div>\n    <div id="button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-compact-promoted-item-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-promoted-item-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return xt8=Y},{mode:1});var q$d;var Wp=function(){var Y=_.F.apply(this,arguments)||this;Y.collections=_.q("web_modern_collections_v2");return Y};
_.P(Wp,_.F);Wp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Wp.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Wp.prototype.onYtNavigate=function(Y,b){var w=this;if(b.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",b)){var V=this.get("watchEndpoint.videoId",b.endpoint),H=_.De(this.hostElement,"yt-get-current-video-id-action")[0];_.q("kevlar_mix_handle_first_endpoint_different")&&V&&H&&V!==H||(Y.stopPropagation(),_.Hv().getPlayerPromise().then(function(f){if(f.getPlayerState()===0&&w.data.secondaryNavigationEndpoint)var E=w.data.secondaryNavigationEndpoint;else{E=
Object.assign({},b.endpoint);var U=_.v(E.commandMetadata,_.g5);U&&(f=Math.floor(f.getCurrentTime()),U.url=_.Jq(U.url,{t:f}),!_.q("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(U=_.v(E,_.TG)))&&(U.startTimeSeconds=f)}_.Ua(w.hostElement,"yt-navigate",{endpoint:E})}))}};
_.up.Object.defineProperties(Wp.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H,f;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(Y=this.data)==null?void 0:(b=Y.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(w=this.data)==null?void 0:(V=w.thumbnail)==null?void 0:V.vibrantColorPalette,darkColorPalette:(H=this.data)==null?void 0:(f=H.thumbnail)==null?void 0:f.darkColorPalette,experimentEnabled:this.collections}}}});
Wp.prototype.onYtNavigate=Wp.prototype.onYtNavigate;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.sS.YtEndpointBehavior),_.K("design:type",Object)],Wp.prototype,"ytEndpointBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],Wp.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.AB),_.K("design:type",Object)],Wp.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Wp.prototype,"ytdReduxBehavior",void 0);_.z([_.R({selector:_.Ks}),_.K("design:type",Object)],Wp.prototype,"isGridViewEnabled",void 0);_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wp.prototype,"watchFeedBigThumbs",null);
_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],Wp.prototype,"thumbnailWidth",null);_.z([_.R(),_.K("design:type",Object)],Wp.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Wp.prototype,"collections",void 0);_.z([_.t("data","collections"),_.K("design:type",Object),_.K("design:paramtypes",[])],Wp.prototype,"collectionStack",null);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Wp.prototype,"onYtNavigate",null);_.z([_.S({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Wp);
_.a(Wp,"ytd-compact-radio-renderer",function(){if(q$d!==void 0)return q$d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-radio-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-radio-renderer">\n  <div class="modern-collection-parent style-scope ytd-compact-radio-renderer">\n    <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-compact-radio-renderer"></yt-collections-stack>\n    <ytd-thumbnail data="[[data]]" height="94" hovered="[[lockupIsHovered]]" use-hovered-property="" watch-feed-thumbnail="[[watchFeedBigThumbs]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-radio-renderer">\n    </ytd-thumbnail>\n  </div>\n  <div class="details style-scope ytd-compact-radio-renderer">\n    <div class="metadata style-scope ytd-compact-radio-renderer">\n      <a id="title" class="yt-simple-endpoint style-scope ytd-compact-radio-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <h3 class="style-scope ytd-compact-radio-renderer">\n          <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-radio-renderer">\n          </ytd-badge-supported-renderer>\n          <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-radio-renderer">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <ytd-video-meta-block class="compact style-scope ytd-compact-radio-renderer" data="[[data]]" no-endpoints="" radio-meta="">\n        </ytd-video-meta-block>\n      </a>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-radio-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-radio-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-radio-renderer"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return q$d=Y},{mode:1});var sN9;var KR=function(){return _.F.apply(this,arguments)||this};
_.P(KR,_.F);KR.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
KR.prototype.computeRendererStyle=function(Y){return Y.style?Y.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.z([_.R(),_.K("design:type",Object)],KR.prototype,"data",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],KR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],KR.prototype,"rendererBehavior",void 0);_.z([_.R({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.K("design:type",String)],KR.prototype,"rendererStyle",void 0);_.z([_.S({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],KR);
_.a(KR,"ytd-compact-text-promo-renderer",function(){if(sN9!==void 0)return sN9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-text-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="featured-badge" hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-compact-text-promo-renderer">\n</ytd-badge-supported-renderer>\n<yt-formatted-string class="title style-scope ytd-compact-text-promo-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-compact-text-promo-renderer" force-default-style="" text="[[data.subTitle]]">\n</yt-formatted-string>\n<div id="action-button" class="style-scope ytd-compact-text-promo-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return sN9=Y},{mode:1});var QNk;var ib=function(){var Y=_.F.apply(this,arguments)||this;Y.isShortsStyle=!1;return Y};
_.P(ib,_.F);_.g=ib.prototype;_.g.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"}}}};
_.g.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Ua(this.hostElement,"yt-disable-lockup-interaction"):_.Ua(this.hostElement,"yt-enable-lockup-interaction"))};
_.g.isMetaBlockEmpty=function(Y){return!Y||!Y.longBylineText&&!Y.shortBylineText&&!Y.shortViewCountText&&!Y.viewCountText};
_.g.computeHasOneLineTitle=function(Y){return this.forceOneLineTitle||!(Y==null||!Y.buttons)};
_.g.computeDisableInteraction=function(){var Y;return!((Y=this.data)==null?0:Y.navigationEndpoint)};
_.g.hasSingularTopStandaloneBadge=function(){var Y;return!((Y=this.data)==null||!Y.topStandaloneBadge)};
_.up.Object.defineProperties(ib.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return this.hasSingularTopStandaloneBadge()?[(Y=this.data)==null?void 0:Y.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return this.shouldShowTopBadges?((Y=this.data)==null?void 0:Y.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
ib.prototype.disableInteractionChanged=ib.prototype.disableInteractionChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],ib.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],ib.prototype,"ytdLockupBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],ib.prototype,"ytdReduxBehavior",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.K("design:type",Boolean)],ib.prototype,"metaBlockEmpty",void 0);_.z([_.R({selector:_.Ks}),_.K("design:type",Object)],ib.prototype,"isGridViewEnabled",void 0);_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ib.prototype,"watchFeedBigThumbs",null);
_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],ib.prototype,"thumbnailWidth",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ib.prototype,"isShortsStyle",void 0);_.z([_.R(),_.K("design:type",Object)],ib.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.K("design:type",Boolean)],ib.prototype,"hasOneLineTitle",void 0);
_.z([_.R(),_.K("design:type",Boolean)],ib.prototype,"hideThumbnail",void 0);_.z([_.R(),_.K("design:type",Boolean)],ib.prototype,"forceOneLineTitle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.K("design:type",Boolean)],ib.prototype,"disableInteraction",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],ib.prototype,"musicMetadataVideoLockup",void 0);
_.z([_.lr("disableInteraction"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ib.prototype,"disableInteractionChanged",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ib.prototype,"shouldShowTopBadges",null);_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],ib.prototype,"topBadges",null);
_.z([_.t("shouldShowTopBadges","data"),_.K("design:type",Array),_.K("design:paramtypes",[])],ib.prototype,"inlineMetadataBadges",null);_.z([_.t("shouldShowTopBadges"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ib.prototype,"shouldShowBadgesBelowMetadata",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ib.prototype,"compactTitleClass",null);_.z([_.S({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],ib);
_.a(ib,"ytd-compact-video-renderer",function(){if(QNk!==void 0)return QNk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" disable-interaction="[[disableInteraction]]" hidden$="[[hideThumbnail]]" hovered="[[lockupIsHovered]]" queued="[[queued]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[thumbnailWidth]]" class="style-scope ytd-compact-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-video-renderer">\n    <div class="metadata style-scope ytd-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" rel="[[computeNofollow_(data.navigationEndpoint)]]">\n        <h3 class="style-scope ytd-compact-video-renderer">\n          \n          <ytd-badge-supported-renderer class="top-badge style-scope ytd-compact-video-renderer" badges="[[topBadges]]" collection-truncate="" hidden="[[!shouldShowTopBadges]]">\n          </ytd-badge-supported-renderer>\n          <span class$="[[compactTitleClass]] style-scope ytd-compact-video-renderer" id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]">\n            [[getSimpleString(data.title)]]\n          </span>\n        </h3>\n        <div class="secondary-metadata style-scope ytd-compact-video-renderer">\n          \n          <ytd-video-meta-block class="compact style-scope ytd-compact-video-renderer" badges="[[inlineMetadataBadges]]" data="[[data]]" inline-badges="" no-endpoints="" truncate-metadata-line="" watch-feed-big-thumbs="[[watchFeedBigThumbs]]"></ytd-video-meta-block>\n          \n          <ytd-badge-supported-renderer class="badges style-scope ytd-compact-video-renderer" badges="[[data.badges]]" hidden="[[!shouldShowBadgesBelowMetadata]]" wrap-badges="">\n          </ytd-badge-supported-renderer>\n        </div>\n      </a>\n      <div id="buttons" class="style-scope ytd-compact-video-renderer"></div>\n    </div>\n    <div id="menu" class="style-scope ytd-compact-video-renderer"></div>\n    <div id="queue-button" class="style-scope ytd-compact-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-video-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return QNk=Y},{mode:_.Xd("kevlar_poly_si_batch_j067")?1:2});var vT9;_.S9("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var A2=function(){return _.F.apply(this,arguments)||this};
_.P(A2,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],A2.prototype,"data",void 0);_.z([_.S({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],A2);
_.a(A2,"ytd-counterfactual-renderer",function(){if(vT9!==void 0)return vT9;var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-counterfactual-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return vT9=Y},{mode:1});var Puk;var CR=function(){var Y=_.F.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.P(CR,_.F);CR.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.fH().resolve(_.Nn).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
CR.prototype.computeHidden=function(Y){return!!Y};
_.up.Object.defineProperties(CR.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}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CR.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.K("design:type",Object)],CR.prototype,"hidden",void 0);_.z([_.t("data.label"),_.K("design:type",String),_.K("design:paramtypes",[])],CR.prototype,"label",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],CR.prototype,"value",null);
_.z([_.S({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],CR);
_.a(CR,"ytd-dropdown-item-renderer",function(){if(Puk!==void 0)return Puk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item id="item" aria-label$="[[data.accessibility.label]]" on-tap="onSelect" class="style-scope ytd-dropdown-item-renderer">\n  <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-dropdown-item-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Puk=Y},{mode:1});var ZI9;var BjK;var yA=function(){return _.F.apply(this,arguments)||this};
_.P(yA,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yA.prototype,"data",void 0);_.z([_.R({computed:"getSimpleString(data.label)"}),_.K("design:type",String)],yA.prototype,"label",void 0);_.z([_.S({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],yA);
_.a(yA,"ytd-navigation-dropdown-item-renderer",function(){if(BjK!==void 0)return BjK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-navigation-dropdown-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <a class="yt-simple-endpoint style-scope ytd-navigation-dropdown-item-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" aria-label$="[[data.accessibility.accessibilityData.label]]">\n  <tp-yt-paper-item id="item" class="style-scope ytd-navigation-dropdown-item-renderer">\n    <yt-formatted-string id="label" text="[[data.label]]" class="style-scope ytd-navigation-dropdown-item-renderer"></yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return BjK=Y},{mode:1});var $a=function(){var Y=_.F.apply(this,arguments)||this;Y.disabled=!1;Y.value="";Y.noLabelFloat=!1;Y.noUnderline=!1;Y.usePrimaryColor=!1;Y.hasBackground=!1;Y.verticalAlign="top";Y.autosize=!1;Y.minAutosizeWidth=100;Y.autosizeFont="14px Roboto";return Y};
_.P($a,_.F);_.g=$a.prototype;_.g.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"}}}};
_.g.open=function(){this.inputEl.open()};
_.g.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.g.dataChanged=function(){this.reset()};
_.g.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("value-changed",this.value))};
_.g.stopPropagation=function(Y){Y.stopPropagation()};
_.g.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var Y=this.canvas.getContext("2d");Y&&(Y.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(Y.measureText(this.inputEl.value).width)+24)+"px")}};
_.g.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var Y=0,b=this.data.entries.length;Y<b;Y++){var w=this.data.entries[Y],V;for(V in w)if(w.hasOwnProperty(V)){var H=w[V];if("isSelected"in H&&H.isSelected)return"stringValue"in H?H.stringValue||"":"int32Value"in H?H.int32Value||0:0}}return null};
_.g.updateValueFromBinding=function(Y){this.value=Y.detail.value};
_.up.Object.defineProperties($a.prototype,{label:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.entries)return null;if(this.data.label)return this.data.label;for(var Y=0,b=this.data.entries.length;Y<b;Y++){var w=this.data.entries[Y],V;for(V in w)if(w.hasOwnProperty(V)){var H=w[V];if("isSelected"in H&&H.isSelected&&"label"in H)return this.ytRendererBehavior.getSimpleString(H.label)}}return null}}});
$a.prototype.autoSizeLabel=$a.prototype.autoSizeLabel;$a.prototype.stopPropagation=$a.prototype.stopPropagation;$a.prototype.valueChangedForBinding=$a.prototype.valueChangedForBinding;$a.prototype.dataChanged=$a.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],$a.prototype,"ytRendererStamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],$a.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$a.prototype,"disabled",void 0);_.z([_.R(),_.K("design:type",Object)],$a.prototype,"value",void 0);_.z([_.R(),_.K("design:type",Object)],$a.prototype,"noLabelFloat",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$a.prototype,"noUnderline",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],$a.prototype,"theme",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$a.prototype,"usePrimaryColor",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$a.prototype,"hasBackground",void 0);_.z([_.R(),_.K("design:type",Object)],$a.prototype,"verticalAlign",void 0);_.z([_.R(),_.K("design:type",Object)],$a.prototype,"autosize",void 0);_.z([_.R(),_.K("design:type",Object)],$a.prototype,"minAutosizeWidth",void 0);_.z([_.R(),_.K("design:type",Object)],$a.prototype,"autosizeFont",void 0);
_.z([_.xZ("#entries"),_.K("design:type",Object)],$a.prototype,"entries",void 0);_.z([_.xZ("#input"),_.K("design:type",Object)],$a.prototype,"inputEl",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$a.prototype,"dataChanged",null);_.z([_.vX("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$a.prototype,"valueChangedForBinding",null);
_.z([_.kZ("iron-overlay-opened"),_.kZ("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$a.prototype,"stopPropagation",null);_.z([_.kZ("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$a.prototype,"autoSizeLabel",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],$a.prototype,"label",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],$a);
_.a($a,"ytd-dropdown-renderer",function(){if(ZI9!==void 0)return ZI9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dropdown-menu-light id="input" aria-label$="[[label]]" disabled="[[disabled]]" horizontal-align="left" label="[[label]]" no-label-float="[[noLabelFloat]]" vertical-align="[[verticalAlign]]" class="style-scope ytd-dropdown-renderer">\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-dropdown-menu-light>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ZI9=Y},{mode:1});var nTt;var j0=function(){var Y=_.F.apply(this,arguments)||this;Y.isConstrainedList=!1;return Y};
_.P(j0,_.F);j0.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"}}}};
j0.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
j0.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
j0.prototype.computeViewAllHidden=function(Y,b){return Y||!b.viewAllEndpoint};
j0.prototype.fillRestIfNoShowMore=j0.prototype.fillRestIfNoShowMore;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],j0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],j0.prototype,"ytLazyListBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],j0.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],j0.prototype,"isConstrainedList",void 0);_.z([_.vX("data","canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],j0.prototype,"fillRestIfNoShowMore",null);_.z([_.S({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],j0);
_.a(j0,"ytd-expanded-shelf-contents-renderer",function(){if(nTt!==void 0)return nTt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expanded-shelf-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="grid-container" class="style-scope ytd-expanded-shelf-contents-renderer"></div>\n<yt-formatted-string aria-role="button" hidden="[[!canShowMore]]" text="[[data.showMoreText]]" on-click="onShowMoreClick" class="style-scope ytd-expanded-shelf-contents-renderer">\n</yt-formatted-string>\n  <a class="yt-simple-endpoint style-scope ytd-expanded-shelf-contents-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[computeViewAllHidden(canShowMore,data)]]">\n  <yt-formatted-string text="[[data.viewAllText]]" class="style-scope ytd-expanded-shelf-contents-renderer"></yt-formatted-string>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return nTt=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var M8t;var Gf=function(){return _.F.apply(this,arguments)||this};
_.P(Gf,_.F);Gf.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}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Gf.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Gf.prototype,"data",void 0);_.z([_.S({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Gf);
_.a(Gf,"ytd-feed-channel-filter-header-renderer",function(){if(M8t!==void 0)return M8t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-channel-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 class="style-scope ytd-feed-channel-filter-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-feed-channel-filter-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-img-shadow id="avatar" height="56" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="56" class="style-scope ytd-feed-channel-filter-header-renderer">\n    </yt-img-shadow>\n    <div id="channel" class="style-scope ytd-feed-channel-filter-header-renderer">\n      <span id="title" class="style-scope ytd-feed-channel-filter-header-renderer">[[getSimpleString(data.title)]]</span>\n      <div id="view-channel-button" aria-hidden="" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n    </div>\n  </a>\n</h2>\n<div id="buttons" class="style-scope ytd-feed-channel-filter-header-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return M8t=Y},{mode:1});var e5k;var pCj;var OIr;var Tf=function(){return _.F.apply(this,arguments)||this};
_.P(Tf,_.F);_.g=Tf.prototype;_.g.onClick=function(Y){var b,w=(b=this.data)==null?void 0:b.sectionEndpoint;!_.uA(_.JL(Y),this.hostElement,["A".toString()])&&w&&_.Ua(this.hostElement,"yt-navigate",{endpoint:w})};
_.g.computeHasSectionEndpoint=function(Y){return(Y==null?void 0:Y.sectionEndpoint)!==void 0};
_.g.computeShowHeaderAsLink=function(Y){return(Y==null?void 0:Y.header)!==void 0&&(Y==null?void 0:Y.sectionEndpoint)!==void 0};
_.g.computeShowSubheaderAsLink=function(Y){return(Y==null?void 0:Y.subheader)!==void 0&&(Y==null?void 0:Y.sectionEndpoint)!==void 0&&(Y==null?void 0:Y.header)===void 0};
_.g.getHeaderAsLinkClass=function(Y){var b=[],w;(Y==null?0:(w=Y.headerIcon)==null?0:w.iconType)&&b.push("header-link-active");return b.join(" ")};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Tf.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Tf.prototype,"data",void 0);
_.z([_.R({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Tf.prototype,"hasSectionEndpoint",void 0);_.z([_.R({computed:"computeShowHeaderAsLink(data)"}),_.K("design:type",Boolean)],Tf.prototype,"showHeaderAsLink",void 0);_.z([_.R({computed:"computeShowSubheaderAsLink(data)"}),_.K("design:type",Boolean)],Tf.prototype,"showSubheaderAsLink",void 0);_.z([_.S({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Tf);
_.a(Tf,"ytd-medical-panel-section-renderer",function(){if(OIr!==void 0)return OIr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" on-click="onClick" class="style-scope ytd-medical-panel-section-renderer">\n  <div id="header" hidden="[[!data.header]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showHeaderAsLink]]" text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    <a id="header-link" class$="yt-simple-endpoint [[getHeaderAsLinkClass(data)]] style-scope ytd-medical-panel-section-renderer" hidden="[[!showHeaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.header]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      <yt-icon class="icons style-scope ytd-medical-panel-section-renderer" hidden="[[!data.headerIcon.iconType]]" icon="[[data.headerIcon.iconType]]">\n      </yt-icon>\n    </a>\n  </div>\n\n  <div id="subheader" hidden="[[!data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string hidden="[[showSubheaderAsLink]]" text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer">\n    </yt-formatted-string>\n    <a id="subheader-link" class="yt-simple-endpoint style-scope ytd-medical-panel-section-renderer" hidden="[[!showSubheaderAsLink]]" href$="[[computeHref_(data.sectionEndpoint)]]" data="[[data.sectionEndpoint]]">\n      <yt-formatted-string text="[[data.subheader]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n    </a>\n  </div>\n  <div id="paragraphs" class="style-scope ytd-medical-panel-section-renderer">\n    <template is="dom-repeat" items="[[data.paragraphs]]" class="style-scope ytd-medical-panel-section-renderer">\n      <div class="paragraph style-scope ytd-medical-panel-section-renderer">\n        <yt-formatted-string split-lines="" text="[[item]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n  <div id="footer" hidden="[[!data.footer]]" class="style-scope ytd-medical-panel-section-renderer">\n    <yt-formatted-string link-inherit-color="" text="[[data.footer]]" class="style-scope ytd-medical-panel-section-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return OIr=Y},{mode:1});var J2=function(){var Y=_.F.apply(this,arguments)||this;Y.isExpanded=!1;Y.roundedContainer=!0;Y.skipRoundingTop=!1;Y.toggleExpandableSection=function(){Y.isExpanded=!Y.isExpanded};
return Y};
_.P(J2,_.F);
J2.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]]"}}}}}};
J2.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
J2.prototype.dataChanged=J2.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],J2.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],J2.prototype,"isExpanded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],J2.prototype,"roundedContainer",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],J2.prototype,"skipRoundingTop",void 0);_.z([_.R(),_.K("design:type",Object)],J2.prototype,"toggleExpandableSection",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J2.prototype,"dataChanged",null);_.z([_.S({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],J2);
_.a(J2,"ytd-medical-panel-content-renderer",function(){if(pCj!==void 0)return pCj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-medical-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-medical-panel-content-renderer">\n  <div id="sections" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="expand" hidden="[[isExpanded]]"></div>\n  <div id="expandable-sections" hidden="[[!isExpanded]]" class="style-scope ytd-medical-panel-content-renderer"></div>\n  <div class="footer style-scope ytd-medical-panel-content-renderer" id="collapse" hidden="[[!isExpanded]]"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return pCj=Y},{mode:1});_.S9("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var ub=function(){var Y=_.F.apply(this,arguments)||this;Y.roundedContainer=!0;Y.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");Y.hasTitle=!1;Y.linkIcon="OPEN_IN_NEW";Y.isDismissed=!1;return Y};
_.P(ub,_.F);
ub.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"}}}};
ub.prototype.computeHasTitle=function(Y){return!(Y==null||!Y.title)};
ub.prototype.onClick=function(Y){var b,w=(b=this.data)==null?void 0:b.headerEndpoint;!_.uA(_.JL(Y),this.hostElement,["BUTTON".toString()])&&w&&this.ytComponentBehavior.resolveCommand(w)};
_.up.Object.defineProperties(ub.prototype,{background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTAINER_BACKGROUND_",""):""}},
titleStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.titleStyle?this.data.titleStyle.replace("INFO_PANEL_CONTAINER_TITLE_STYLE_",""):""}},
showLinkIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:Y.disableBottomDivider)||!((b=this.data)==null?0:b.title)}}});
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ub.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],ub.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ub.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ub.prototype,"roundedContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],ub.prototype,"amsterdamEnabled",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.K("design:type",Object)],ub.prototype,"hasTitle",void 0);
_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.background"),_.K("design:type",Object),_.K("design:paramtypes",[])],ub.prototype,"background",null);_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.titleStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],ub.prototype,"titleStyle",null);
_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.t("data.titleStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],ub.prototype,"showLinkIcon",null);_.z([_.R(),_.K("design:type",String)],ub.prototype,"linkIcon",void 0);_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ub.prototype,"hideDivider",null);
_.z([_.R({selectorArgs:["data.dismissStateEntityKey"],selector:function(Y,b){Y=_.kt(Y.entities,"dismissState",b);return(Y==null?void 0:Y.isDismissed)||(Y==null?void 0:Y.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(Y==null?void 0:Y.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.K("design:type",Object)],ub.prototype,"isDismissed",void 0);_.z([_.S({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],ub);
_.a(ub,"ytd-info-panel-container-renderer",function(){if(e5k!==void 0)return e5k;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-panel-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div hidden="[[isDismissed]]" class="style-scope ytd-info-panel-container-renderer">\n  <div class="header style-scope ytd-info-panel-container-renderer" hidden="[[!data.title]]" on-click="onClick">\n    <h2 class="header-left-items style-scope ytd-info-panel-container-renderer">\n      <yt-icon class="header-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]">\n      </yt-icon>\n      <yt-formatted-string class="title style-scope ytd-info-panel-container-renderer" text="[[data.title]]"></yt-formatted-string>\n      <yt-icon class="link-icon style-scope ytd-info-panel-container-renderer" disable-upgrade$="[[!linkIcon]]" hidden="[[!showLinkIcon]]" icon="[[linkIcon]]">\n      </yt-icon>\n    </h2>\n    <div id="header-menu" class="style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div class="divider-container style-scope ytd-info-panel-container-renderer" hidden="[[hideDivider]]">\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider style-scope ytd-info-panel-container-renderer"></div>\n    <div class="divider-offset style-scope ytd-info-panel-container-renderer"></div>\n  </div>\n  <div id="content" class="style-scope ytd-info-panel-container-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return e5k=Y},{mode:1});var t8$;_.S9("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var Y0=function(){var Y=_.F.apply(this,arguments)||this;Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(Y0,_.F);Y0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Y0.prototype.computeStyle=function(Y){return Y?Y:""};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Y0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.K("design:type",String)],Y0.prototype,"titleStyle",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Y0.prototype,"modernTypography",void 0);_.z([_.S({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Y0);
_.a(Y0,"ytd-item-section-header-renderer",function(){if(t8$!==void 0)return t8$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-item-section-header-renderer">\n  <div id="title" class="style-scope ytd-item-section-header-renderer">[[getSimpleString(data.title)]]</div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-item-section-header-renderer"></yt-formatted-string>\n</div>\n<div id="buttons" class="style-scope ytd-item-section-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return t8$=Y},{mode:1});var R5r;var dt5,FP9=function(){return dt5!==void 0?dt5:dt5=document.createElement("template")};
document.head.appendChild(FP9().content);var LP9;_.bw=new _.Hx("VOTING_ANIMATION_CONTROLLER_TOKEN");var a0t=_.b8(function(Y){var b=Y.data;var w=_.GM("div"),V=_.GM("div");Y=_.N(_.kw("VOTE_STATUS_NONE",void 0,"FVF7mc"));var H=Y.next().value,f=Y.next().value,E=_.xh(JGI,function(){var x;return(x=b())==null?void 0:x.entityKey}),U=_.q("web_enable_voting_animation")||_.q("enable_music_web_cairo_voting_animation");
_.dx(function(){var x;((x=b().initialState)==null?0:x.status)&&f(b().initialState.status)});
var X=function(){var x,Q,Z=(Q=(x=b().initialState)==null?void 0:x.votes)!=null?Q:0,e;x=(e=b().initialState)==null?void 0:e.status;return x==="VOTE_STATUS_UPVOTED"?Z-1:x==="VOTE_STATUS_DOWNVOTED"?Z+1:Z},I=function(){return H()==="VOTE_STATUS_UPVOTED"?X()+1:H()==="VOTE_STATUS_DOWNVOTED"?X()-1:X()},k=function(x){var Q=x?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
f(Q);var Z=I(),e=_.fH().resolve(_.HQ(_.bw)),O=E();O&&(x&&(O==null?0:O.upvoteDefaultButtonOnTap)?_.AA(O.upvoteDefaultButtonOnTap,{form:{element:w.value},disableClickTracking:!0}):(O==null?0:O.upvoteToggledButtonOnTap)&&_.AA(O.upvoteToggledButtonOnTap,{form:{element:w.value},disableClickTracking:!0}));var L;x=(L=O==null?void 0:O.enableOptimisticReordering)!=null?L:b().enableOptimisticReordering;U&&e&&b().itemId&&x&&S$$(e,b().itemId,Z,Q)},l=function(x){var Q=x?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
f(Q);var Z=I(),e=_.fH().resolve(_.HQ(_.bw)),O=E();O&&(x&&(O==null?0:O.downvoteDefaultButtonOnTap)?_.AA(O.downvoteDefaultButtonOnTap,{form:{element:V.value},disableClickTracking:!0}):(O==null?0:O.downvoteToggledButtonOnTap)&&_.AA(O.downvoteToggledButtonOnTap,{form:{element:V.value},disableClickTracking:!0}));var L;x=(L=O==null?void 0:O.enableOptimisticReordering)!=null?L:b().enableOptimisticReordering;U&&e&&b().itemId&&x&&S$$(e,b().itemId,Z,Q)};
Y={};Y=_.hj("ytVotingViewModelVoteCount",(Y.ytVotingViewModelVoteCountDisabled=function(){return b().isDisabled},Y));
return _.m("voting-view-model",{class:"ytVotingViewModelHost"},_.m("div",{el:w},_.m(_.OH,{data:function(){var x=_.v(b().upvoteButton,_.ns);return{toggleButtonViewModel:Object.assign({},x,{isToggled:H()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(x){return _.m(_.td,{data:x.data,
onToggle:k})}})),_.m("div",{class:Y},function(){var x,Q,Z;
return H()==="VOTE_STATUS_UPVOTED"?(x=b().initialState)==null?void 0:x.compactVotesUpvoted:H()==="VOTE_STATUS_DOWNVOTED"?(Q=b().initialState)==null?void 0:Q.compactVotesDownvoted:(Z=b().initialState)==null?void 0:Z.compactVotes}),_.m("div",{el:V},_.m(_.OH,{data:function(){var x=_.v(b().downvoteButton,_.ns);
return{toggleButtonViewModel:Object.assign({},x,{isToggled:H()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(x){return _.m(_.td,{data:x.data,
onToggle:l})}})))},"Ib");_.f_(_.b8(function(Y){var b=Y.data;return _.m("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.m("div",{class:_.hj("ytEngagementBarViewModelEngagementBarWrapper",Y.className)},_.m(_.OH,{data:function(){return b().actions}},{votingViewModel:a0t})))},"Jb"),"engagement-bar-view-model",{props:{data:_.YX,
className:_.YX}});var wq=function(){var Y=_.F.apply(this,arguments)||this;Y.playlistVotingAnimationEnabled=_.q("web_enable_voting_animation");Y.downloadProgress=0;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.downloadState="DOWNLOAD_STATE_UNKNOWN";Y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";Y.offlineVideoPolicyExpirationTimestamp=0;return Y};
_.P(wq,_.F);_.g=wq.prototype;_.g.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"}}}};
_.g.canReorderChanged=function(){this.persistentDragHandle=_.q("kevlar_playlist_drag_handles")&&this.canReorder};
_.g.onDrag=function(){if(this.thumbnail){var Y=_.E6(this.thumbnail).querySelector("yt-image");Y&&(Y.shouldRenderLazy=!1)}};
_.g.onMenuOverlayChanged=function(Y,b){this.menuOpened=b};
_.g.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.g.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.g.onContentsTap=function(Y){var b,w=(b=this.data)==null?void 0:b.serviceEndpoints;if(w&&w.length===1&&_.v(w[0],ING)&&!_.uA(_.JL(Y),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(w[0]);else{var V;(b=(V=this.data)==null?void 0:V.navigationEndpoint)&&_.q("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?r5C(_.fH().resolve(_.Ck),b):(_.sL().playlistSuggestionsShelfActivation=
!0,_.z5d(_.fH().resolve(_.Ck),b)):b&&!_.uA(_.JL(Y),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.q("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Ua(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))}};
_.g.computeStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.g.computeThumbnailWidth=function(Y){return Y==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.g.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=XBM(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))}};
_.g.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.g.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.g.dataChanged=function(){if(this.data){var Y,b,w,V=((Y=this.downloadRenderData)==null?void 0:Y.badges)&&((b=this.downloadRenderData)==null?void 0:b.badges)!==((w=this.data)==null?void 0:w.badges),H,f,E;Y=((H=this.downloadRenderData)==null?void 0:H.thumbnailOverlays)&&((f=this.downloadRenderData)==null?void 0:f.thumbnailOverlays)!==((E=this.data)==null?void 0:E.thumbnailOverlays);(!this.downloadRenderData||V||Y)&&this.downloadStateChanged()}};
_.g.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var Y,b,w=(Y=this.data.menu)==null?void 0:(b=Y.menuRenderer)==null?void 0:b.items;if(w)for(Y=_.N(w),b=Y.next();!b.done;b=Y.next())if(b=b.value,w=void 0,_.v((w=b.menuServiceItemRenderer)==null?void 0:w.serviceEndpoint,_.aU)){var V=w=void 0,H=void 0;b=(w=b)==null?void 0:(V=w.menuServiceItemRenderer)==null?void 0:(H=V.serviceEndpoint)==null?void 0:H.playlistEditEndpoint;H=V=void 0;if(w=(V=b)==null?void 0:(H=V.actions)==null?void 0:
H[0])V=void 0,w.setVideoId=(V=this.data)==null?void 0:V.setVideoId;H=V=w=void 0;if(b=(w=b)==null?void 0:(V=w.clientActions)==null?void 0:(H=V[0])==null?void 0:H.playlistRemoveVideosAction)w=void 0,b.setVideoIds=[(w=this.data)==null?void 0:w.setVideoId]}}};
_.up.Object.defineProperties(wq.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
wq.prototype.setVideoIdChanged=wq.prototype.setVideoIdChanged;wq.prototype.dataChanged=wq.prototype.dataChanged;wq.prototype.downloadStateChanged=wq.prototype.downloadStateChanged;wq.prototype.onMenuOverlayChanged=wq.prototype.onMenuOverlayChanged;wq.prototype.canReorderChanged=wq.prototype.canReorderChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],wq.prototype,"ytdReduxBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],wq.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],wq.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],wq.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],wq.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wq.prototype,"canReorder",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wq.prototype,"menuOpened",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wq.prototype,"handleIsHovered",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wq.prototype,"persistentDragHandle",void 0);_.z([_.R(),_.K("design:type",Object)],wq.prototype,"downloadRenderData",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],wq.prototype,"styleType",void 0);_.z([_.R({computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],wq.prototype,"thumbnailWidth",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],wq.prototype,"isDownloads",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wq.prototype,"playlistVotingAnimationEnabled",void 0);
_.z([_.R({selector:zx,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],wq.prototype,"downloadProgress",void 0);_.z([_.R(),_.K("design:type",Number)],wq.prototype,"relativeDateReference",void 0);_.z([_.R({selector:_.a8,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],wq.prototype,"transferState",void 0);_.z([_.R({selector:dmu,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],wq.prototype,"downloadState",void 0);
_.z([_.R({selector:qwa,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],wq.prototype,"offlinePolicyAction",void 0);_.z([_.R({selector:sUG,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],wq.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.z([_.R({selector:vUt,selectorArgs:["data.videoId"]}),_.K("design:type",Object)],wq.prototype,"entityInfo",void 0);_.z([_.R({selector:_.L8}),_.K("design:type",Boolean)],wq.prototype,"miniplayerIsActive",void 0);
_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],wq.prototype,"playlistVideoId",null);_.z([_.xZ("#thumbnail"),_.K("design:type",Object)],wq.prototype,"thumbnail",void 0);_.z([_.vX("canReorder"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wq.prototype,"canReorderChanged",null);
_.z([_.kZ("yt-menu-overlay-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Boolean]),_.K("design:returntype")],wq.prototype,"onMenuOverlayChanged",null);_.z([_.vX("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wq.prototype,"downloadStateChanged",null);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wq.prototype,"dataChanged",null);_.z([_.vX("data.setVideoId"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wq.prototype,"setVideoIdChanged",null);_.z([_.S({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],wq);
_.a(wq,"ytd-playlist-video-renderer",function(){if(LP9!==void 0)return LP9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.main_desktop.ui.renderers.sections.ytd_playlist_video_renderer.ytd.playlist.video.renderer.transition.css.js--\x3e<div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n  <yt-icon id="reorder" icon="yt-icons:drag_handle" class="style-scope ytd-playlist-video-renderer"></yt-icon>\n  <yt-formatted-string id="index" text="[[data.index]]" class="style-scope ytd-playlist-video-renderer"></yt-formatted-string>\n</div>\n<div id="content" on-click="onContentsTap" class="style-scope ytd-playlist-video-renderer">\n  <div id="container" class="style-scope ytd-playlist-video-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" hide-playback-status="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-video-renderer">\n    </ytd-thumbnail>\n    <div id="meta" class="style-scope ytd-playlist-video-renderer">\n      <h3 aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-video-renderer">\n        <ytd-badge-supported-renderer id="top-standalone-badge" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n        </ytd-badge-supported-renderer>\n        <a id="video-title" title$="[[getSimpleString(data.title)]]" class="yt-simple-endpoint style-scope ytd-playlist-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <ytd-video-meta-block class="playlist style-scope ytd-playlist-video-renderer" data="[[data]]" is-downloading="[[isDownloads]]"></ytd-video-meta-block>\n      <ytd-badge-supported-renderer id="bottom-badges" badges="[[data.bottomBadges]]" hidden="[[!data.bottomBadges]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-badge-supported-renderer id="bottom-standalone-badge" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]" class="style-scope ytd-playlist-video-renderer">\n      </ytd-badge-supported-renderer>\n      <div id="engagement-bar" class="style-scope ytd-playlist-video-renderer"></div>\n    </div>\n  </div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-video-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="contributor" hidden="[[!data.contributorName]]" link-inherit-color="" text="[[data.contributorName]]" class="style-scope ytd-playlist-video-renderer">\n  </yt-formatted-string>\n  <div id="offer-button" class="style-scope ytd-playlist-video-renderer"></div>\n</div>\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-playlist-video-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);Y.content.insertBefore(FP9().content.cloneNode(!0),Y.content.firstChild);return LP9=Y},{mode:1});var WPk;var VP=function(){return _.F.apply(this,arguments)||this};
_.P(VP,_.F);_.z([_.R(),_.K("design:type",Object)],VP.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],VP.prototype,"rendererBehavior",void 0);_.z([_.S({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],VP);
_.a(VP,"ytd-premium-browse-footer-renderer",function(){if(WPk!==void 0)return WPk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-premium-browse-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="title style-scope ytd-premium-browse-footer-renderer" text="[[data.title]]">\n</yt-formatted-string>\n<yt-formatted-string class="subtitle style-scope ytd-premium-browse-footer-renderer" text="[[data.subtitle]]">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return WPk=Y},{mode:1});var KPt;var H3=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return Y};
_.P(H3,_.F);_.g=H3.prototype;_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.handleDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.computeHeaderLogoThumbnail=function(Y,b){if(Y)return b?Y.darkLogo:Y.lightLogo};
_.g.computeHeaderLogoHeight=function(Y,b){var w,V,H;return(Y=(w=this.computeHeaderLogoThumbnail(Y,b))==null?void 0:(V=w.thumbnails)==null?void 0:(H=V[0])==null?void 0:H.height)&&Y%31===0?"31":"24"};
_.g.computeHeaderLogoMarginBottom=function(Y,b){return this.computeHeaderLogoHeight(Y,b)==="24"?"0":"-7"};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],H3.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],H3.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],H3.prototype,"isDarkTheme",void 0);_.z([_.R({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.K("design:type",Object)],H3.prototype,"themeLogo",void 0);
_.z([_.R({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.K("design:type",String)],H3.prototype,"logoHeight",void 0);_.z([_.R({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.K("design:type",String)],H3.prototype,"logoMarginBottom",void 0);_.z([_.S({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],H3);
_.a(H3,"ytd-primetime-promo-header-renderer",function(){if(KPt!==void 0)return KPt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="logo" class="style-scope ytd-primetime-promo-header-renderer"><yt-img-shadow dimension="height" height$="[[logoHeight]]" margin-bottom$="[[logoMarginBottom]]" thumbnail="[[themeLogo]]" class="style-scope ytd-primetime-promo-header-renderer"></yt-img-shadow><ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-primetime-promo-header-renderer"></ytd-badge-supported-renderer></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return KPt=Y},{mode:1});var iIo;var Cut=_.b8(function(Y){var b=_.Q_(function(H){var f;(f=Y.onClick)==null||f.call(Y,H)}),w={},V={};
return _.m("yt-shelf-header-layout",{class:_.hj("shelf-header-layout-wiz",(w["shelf-header-layout-wiz--disable-horizontal-padding"]=Y.disableHorizontalPadding,w["shelf-header-layout-wiz--disable-vertical-padding"]=Y.disableVerticalPadding,w["shelf-header-layout-wiz--responsive"]=Y.useResponsiveLayout,w["shelf-header-layout-wiz--narrow"]=function(){var H,f;return((H=Y.useResponsiveLayout)==null?void 0:H.call(Y))&&((f=Y.forceSmallLayout)==null?void 0:f.call(Y))},w["shelf-header-layout-wiz--is-overlay"]=
Y.isOverlay,w["shelf-header-layout-wiz--tappable"]=!!Y.onClick,w)),
"on:click":b,tabindex:Y.onClick?0:void 0},_.m(_.h,{cond:Y.leadingIcon,then:function(H){return _.m("div",{class:"shelf-header-layout-wiz__leading-icon"},_.m(_.n_,{icon:H}))},
else:function(){return _.m(_.h,{cond:Y.hasLeadingImage,then:function(){var H,f={};return _.m("div",{class:_.hj("shelf-header-layout-wiz__leading-image",(f["shelf-header-layout-wiz__leading-image--circular-image"]=Y.circularImage,f))},(H=Y.leadingImage)==null?void 0:H.call(Y))}})}}),_.m("div",{class:"shelf-header-layout-wiz__label-container"},_.m(_.h,{cond:Y.hasSuperlabel,
then:function(){var H;return _.m("div",{class:"shelf-header-layout-wiz__superlabel"},(H=Y.superlabel)==null?void 0:H.call(Y))}}),_.m("div",{class:"shelf-header-layout-wiz__title-row"},_.m(A5C,{text:Y.title,
className:_.hj("shelf-header-layout-wiz__title",(V["shelf-header-layout-wiz__title--small-title"]=Y.forceSmallLayout,V)),tagLevel:Y.tagLevel}),_.m(_.h,{cond:Y.hasDetail,then:function(){var H;return _.m("div",{class:"shelf-header-layout-wiz__detail"},(H=Y.detail)==null?void 0:H.call(Y))}})),_.m(_.h,{cond:Y.hasSublabel,
then:function(){var H;return _.m("div",{class:"shelf-header-layout-wiz__sublabel"},(H=Y.sublabel)==null?void 0:H.call(Y))}})),_.m(_.h,{cond:Y.hasTrailingActions,
then:function(){var H;return _.m("div",{class:"shelf-header-layout-wiz__trailing-actions"},(H=Y.trailingActions)==null?void 0:H.call(Y))}}))},"Kb");
Cut.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var A5C=_.b8(function(Y){var b=Y.text;var w=Y.className;var V=Y.tagLevel;return _.m(_.e4,null,_.m(_.n7,{when:function(){return(V==null?void 0:V())===0}},function(){return _.m("h2",{class:w},b())}),_.m(_.n7,{when:function(){return(V==null?void 0:V())===1}},function(){return _.m("h3",{class:w},b())}),_.m(_.n7,{when:function(){return(V==null?void 0:V())===2}},function(){return _.m("h4",{class:w},b())}),_.m(_.M$,null,function(){return _.m("h2",{class:w},b())}))},"Lb");var jNr,y5o,$t8;_.gq=_.b8(function(Y){var b=Y.data;return _.m("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.Bb({"background-color":function(){return uwq(b().backgroundColor)?_.KX(uwq(b().backgroundColor)):void 0}})},_.m(Cut,{hasDetail:!1,
title:function(){return _.m(_.wv,{text:function(){return b().headline}})},
hasTitle:!0,sublabel:function(){return _.m(y5o,{data:b})},
hasSublabel:function(){return!!b().sublabel||!!b().bottomBadge},
superlabel:function(){return _.m($t8,{data:b})},
hasSuperlabel:function(){return!!b().superlabel||!!b().topBadge},
leadingImage:function(){return _.m(jNr,{leadingAccessory:function(){return b().leadingAccessory}})},
hasLeadingImage:function(){return!!b().leadingAccessory},
trailingActions:function(){return _.m(_.OH,{data:function(){return b().trailingActions}},{flexibleActionsViewModel:p$})},
hasTrailingActions:function(){return!!b().trailingActions},
disableHorizontalPadding:Y.disableHorizontalPadding,disableVerticalPadding:Y.disableVerticalPadding,forceSmallLayout:Y.forceSmallLayout,useResponsiveLayout:Y.useResponsiveLayout,isOverlay:Y.isOverlay,onClick:function(w){if(_.$h(b().rendererContext)){var V=_.y4(b().rendererContext);V&&_.WP(V,{form:{element:w.target,event:w}})}}}))},"Mb");
jNr=_.b8(function(Y){var b=Y.leadingAccessory;return _.m(_.Uz,null,_.m(_.h,{cond:function(){var w;return(w=b().image)!=null?w:_.bJ(b().themedImage)},
then:function(w){return _.m(_.Y_,{data:w,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.m(_.h,{cond:function(){return _.v(b().avatar,_.GI)},
then:function(w){return _.m(_.et,{data:w})}}))},"Nb");
y5o=_.b8(function(Y){var b=Y.data;return _.m(_.Uz,null,_.m(_.h,{cond:function(){return _.v(b().bottomBadge,UmC)},
then:function(w){var V={};return _.m(_.wz,{data:w,class:_.hj((V.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!w()&&!!b().sublabel},V))})}}),_.m(_.h,{cond:function(){return b().sublabel},
then:function(w){return _.m(_.wv,{text:w})}}))},"Ob");
$t8=_.b8(function(Y){var b=Y.data;return _.m(_.Uz,null,_.m(_.h,{cond:function(){return _.v(b().topBadge,UmC)},
then:function(w){var V={};return _.m(_.wz,{data:w,class:_.hj((V.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!w()&&!!b().superlabel},V))})}}),_.m(_.h,{cond:function(){return b().superlabel},
then:function(w){return _.m(_.wv,{text:w})}}))},"Pb");_.f_(_.gq,"yt-section-header-view-model",{props:{data:_.YX,className:_.YX,disableHorizontalPadding:_.YX,disableVerticalPadding:_.YX,forceSmallLayout:_.YX,useResponsiveLayout:_.YX,isOverlay:_.YX}});_.S9("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var fY=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return Y};
_.P(fY,_.F);_.g=fY.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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"}}}};
_.g.onDataChange=function(){var Y=this;_.TC(this,function(){Y.updateItemVisibility()})};
_.g.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y,this.updateItemVisibility())};
_.g.updateItemVisibility=function(){var Y=this;this.data&&this.data.panels&&_.E6(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(b,w){b.hidden=w>Y.elementsPerRow-1})};
_.g.requestElementsPerRow=function(){_.Ua(this.hostElement,"yt-request-elements-per-row")};
fY.prototype.onDataChange=fY.prototype.onDataChange;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],fY.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],fY.prototype,"actionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],fY.prototype,"data",void 0);_.z([_.R({value:3}),_.K("design:type",Number)],fY.prototype,"elementsPerRow",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fY.prototype,"onDataChange",null);_.z([_.S({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],fY);
_.a(fY,"ytd-primetime-promo-renderer",function(){if(iIo!==void 0)return iIo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-primetime-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-primetime-promo-renderer">\n  <div id="header" class="style-scope ytd-primetime-promo-renderer">\n    <div id="header-contents" hidden="[[data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="shelf-header-container" hidden="[[!data.sectionHeader]]" class="style-scope ytd-primetime-promo-renderer">\n      <div id="section-header-container" class="style-scope ytd-primetime-promo-renderer"></div>\n      <div id="details-panel" hidden="[[!data.details]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" class="style-scope ytd-primetime-promo-renderer"></div>\n  </div>\n  <div id="panels" class="style-scope ytd-primetime-promo-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-primetime-promo-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return iIo=Y},{mode:1});var Gb_;var NL=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return Y};
_.P(NL,_.F);NL.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
NL.prototype.handleButtonRefreshAction=function(Y){if(Y=_.v(Y,Zkj))this.set("data.button",Y.membershipButton),this.notifyPath("data.button")};
_.up.Object.defineProperties(NL.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.avatars)==null?void 0:b.slice(0,8))||[]}}});
_.z([_.R(),_.K("design:type",Object)],NL.prototype,"data",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],NL.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],NL.prototype,"rendererBehavior",void 0);_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],NL.prototype,"avatars",null);
_.z([_.S({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],NL);
_.a(NL,"ytd-recognition-shelf-renderer",function(){if(Gb_!==void 0)return Gb_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-recognition-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-recognition-shelf-renderer">\n  <div id="text-container" class="style-scope ytd-recognition-shelf-renderer">\n    <yt-formatted-string class="title style-scope ytd-recognition-shelf-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-recognition-shelf-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n  </div>\n  <div id="avatars-container" class="style-scope ytd-recognition-shelf-renderer">\n    <template is="dom-repeat" items="[[avatars]]" as="avatar" class="style-scope ytd-recognition-shelf-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-recognition-shelf-renderer" thumbnail="[[avatar]]"></yt-img-shadow>\n    </template>\n  </div>\n  <div id="action-button" class="style-scope ytd-recognition-shelf-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Gb_=Y},{mode:1});var Tjk;var J5j;var Er=function(){var Y=_.F.apply(this,arguments)||this;Y.modernButtons=_.q("web_modern_buttons");return Y};
_.P(Er,_.F);_.g=Er.prototype;
_.g.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.g.dataChanged=function(){this.collapsed=!0};
_.g.computeVisibleItems=function(Y,b){return Y!==void 0&&Y.items?b?Y.items.slice(0,this.data.collapsedItemCount):Y.items:[]};
_.g.computeHideShowMore=function(Y,b,w){return Y>=b||!w};
_.g.computeHideShowAll=function(Y,b,w){return!(Y&&b)||w};
_.g.onMoreClick=function(){this.collapsed=!1};
_.up.Object.defineProperties(Er.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.q("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.UJ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.q("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Er.prototype.dataChanged=Er.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Er.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Er.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Er.prototype,"isSearch",void 0);
_.z([_.R({computed:"computeVisibleItems(data,collapsed)"}),_.K("design:type",Array)],Er.prototype,"visibleItems",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Er.prototype,"collapsed",void 0);_.z([_.R({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.K("design:type",Boolean)],Er.prototype,"hideShowMore",void 0);
_.z([_.R({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.K("design:type",Boolean)],Er.prototype,"hideShowAll",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Er.prototype,"modernButtons",void 0);_.z([_.t("isSearch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Er.prototype,"typographyBump",null);
_.z([_.t("isSearch"),_.K("design:type",Object),_.K("design:paramtypes",[])],Er.prototype,"lockupExperiments",null);_.z([_.t("isSearch"),_.K("design:type",String),_.K("design:paramtypes",[])],Er.prototype,"thumbnailWidth",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Er.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Er);
_.a(Er,"ytd-vertical-list-renderer",function(){if(J5j!==void 0)return J5j;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-list-renderer"></div>\n<div id="more" hidden="[[hideShowMore]]" class="style-scope ytd-vertical-list-renderer">\n  <yt-formatted-string text="[[data.collapsedStateButtonText]]" on-tap="onMoreClick" class="style-scope ytd-vertical-list-renderer">\n  </yt-formatted-string>\n</div>\n<div id="all" hidden="[[hideShowAll]]" class="style-scope ytd-vertical-list-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-vertical-list-renderer" href$="[[computeHref_(data.expandedStateButtonEndpoint]]" data="[[data.expandedStateButtonEndpoint]]">\n    <yt-formatted-string text="[[data.expandedStateButtonText]]" class="style-scope ytd-vertical-list-renderer">\n    </yt-formatted-string>\n  </a>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return J5j=Y},{mode:1});var upd=_.wM(["#"]);_.S9("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var c3=function(){var Y=_.F.apply(this,arguments)||this;Y.isConstrainedList=!1;Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(c3,_.F);_.g=c3.prototype;
_.g.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"}}}};
_.g.computeThumbnailStyle=function(Y){return Y||""};
_.g.computePlaceAnnotationUnderTitle=function(){var Y;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((Y=this.data)==null?void 0:Y.thumbnailStyle)||"")};
_.g.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y)||_.nu(upd)};
_.g.computeIsPromoShelf=function(Y){var b;return(Y=Y==null?void 0:(b=Y[0])==null?void 0:b.metadataBadgeRenderer)?Y.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.g.computePlaceBadgeBesideTitle=function(Y){var b;return(Y==null?0:(b=Y[0])==null?0:b.metadataBadgeRenderer)?!this.computeIsPromoShelf(Y):!1};
_.g.computeMenuIcon=function(Y){return this.computeIsPromoShelf(Y)?"yt-icons:more_vert":"yt-icons:more"};
_.g.onDataChange=function(){var Y,b;((Y=this.data)==null?0:(b=Y.content)==null?0:b.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.g.onLockupRequested=function(Y){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&Y.detail&&Y.detail.videoIds){for(var b=this.data.content.gridRenderer.items,w=new Set,V=_.N(Y.detail.videoIds),H=V.next();!H.done;H=V.next())w.add(H.value);Y.detail.returnValue=b.filter(function(f){return f.gridVideoRenderer&&f.gridVideoRenderer.videoId&&w.has(f.gridVideoRenderer.videoId)}).map(function(f){return f.gridVideoRenderer})}};
_.g.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
c3.prototype.onLockupRequested=c3.prototype.onLockupRequested;c3.prototype.onDataChange=c3.prototype.onDataChange;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],c3.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],c3.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.Li),_.K("design:type",Object)],c3.prototype,"ironResizableBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],c3.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],c3.prototype,"isSearch",void 0);_.z([_.R(),_.K("design:type",Object)],c3.prototype,"isConstrainedList",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("kevlar_fluid_dismiss")}}),
_.K("design:type",Boolean)],c3.prototype,"enableFluidDismiss",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.K("design:type",String)],c3.prototype,"thumbnailStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],c3.prototype,"modernTypography",void 0);_.z([_.R({computed:"computeMenuIcon(data.badges)"}),_.K("design:type",String)],c3.prototype,"menuIcon",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c3.prototype,"onDataChange",null);_.z([_.kZ("yt-lockup-requested"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],c3.prototype,"onLockupRequested",null);_.z([_.S({is:"ytd-shelf-renderer",disableElementRegistration:!0})],c3);
_.a(c3,"ytd-shelf-renderer",function(){if(Tjk!==void 0)return Tjk;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Tjk=Y},{mode:1});var YhQ;var Ur=function(){return _.F.apply(this,arguments)||this};
_.P(Ur,_.F);Ur.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.up.Object.defineProperties(Ur.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ur.prototype,"data",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Ur.prototype,"isPlaylist",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Ur.prototype,"isClipList",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Ur.prototype,"isPlaylistPageWithFilters",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ur.prototype,"hasTitle",null);_.z([_.R(),_.t("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ur.prototype,"isRightAligned",null);
_.z([_.S({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Ur);
_.a(Ur,"ytd-sort-filter-header-renderer",function(){if(YhQ!==void 0)return YhQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sort-filter-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-sort-filter-header-renderer">\n  <div id="headings" hidden="[[!data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-sort-filter-header-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="filter-menu" class="style-scope ytd-sort-filter-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return YhQ=Y},{mode:1});var bm$;var Xf=function(){var Y=_.F.apply(this,arguments)||this;Y.enableRightArrowHidden=_.q("channel_details_shelf_resize_observer");return Y};
_.P(Xf,_.F);Xf.prototype.attached=function(){var Y=this;this.enableRightArrowHidden&&(this.JSC$14296_throttledOnResize=new _.Vm(function(){Y.ytdHorizontalListBehavior.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var b;
(b=Y.JSC$14296_throttledOnResize)==null||b.fire()}),this.resizeObserver.observe(this.hostElement))};
Xf.prototype.detached=function(){if(this.enableRightArrowHidden){var Y;(Y=this.resizeObserver)==null||Y.disconnect();var b;(b=this.JSC$14296_throttledOnResize)==null||b.dispose()}};
Xf.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]]"}}}}}};
Xf.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.up.Object.defineProperties(Xf.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.q("enable_creator_details_shelf_m2")){var Y=[],b;((b=this.data)==null?0:b.creatorVideosButton)&&Y.push(this.data.creatorVideosButton);var w;((w=this.data)==null?0:w.creatorAboutButton)&&Y.push(this.data.creatorAboutButton);b=_.N(this.data.creatorCustomUrlButtons||[]);for(w=b.next();!w.done;w=b.next())Y.push(w.value);return Y}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.q("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.HR.YtdHorizontalListBehavior),_.K("design:type",Object)],Xf.prototype,"ytdHorizontalListBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Xf.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Xf.prototype,"engagementPanel",void 0);
_.z([_.R(),_.K("design:type",Object)],Xf.prototype,"enableRightArrowHidden",void 0);_.z([_.t("enableRightArrowHidden","atEnd"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Xf.prototype,"hideRightArrow",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xf.prototype,"creatorCustomUrlButtons",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data","creatorCustomUrlButtons"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Xf.prototype,"showCreatorCustomUrlButtons",null);_.z([_.t("showCreatorCustomUrlButtons"),_.K("design:type",Number),_.K("design:paramtypes",[])],Xf.prototype,"channelAvatarSize",null);_.z([_.S({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Xf);
_.a(Xf,"ytd-video-description-infocards-section-renderer",function(){if(bm$!==void 0)return bm$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return bm$=Y},{mode:_.Xd("kevlar_poly_si_batch_j067")?1:2});var wko;var DY=function(){return _.F.apply(this,arguments)||this};
_.P(DY,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],DY.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.infoIcon)"}),_.K("design:type",Object)],DY.prototype,"infoIcon",void 0);_.z([_.S({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],DY);
_.a(DY,"ytd-eom-settings-disclaimer-renderer",function(){if(wko!==void 0)return wko;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-eom-settings-disclaimer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="app" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  <yt-icon id="info" disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-icon>\n  <yt-formatted-string id="label" text="[[data.disclaimer]]" class="style-scope ytd-eom-settings-disclaimer-renderer">\n  </yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return wko=Y},{mode:1});var VYC;var m7=function(){return _.F.apply(this,arguments)||this};
_.P(m7,_.F);_.up.Object.defineProperties(m7.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.suppressPaddingDisclaimer)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],m7.prototype,"componentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],m7.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],m7.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],m7.prototype,"suppressPaddingDisclaimer",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],m7);
_.a(m7,"ytd-product-list-header-renderer",function(){if(VYC!==void 0)return VYC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-product-list-header-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.title]]" class="style-scope ytd-product-list-header-renderer">\n    </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return VYC=Y},{mode:1});var HmI;var oQ=function(){return _.F.apply(this,arguments)||this};
_.P(oQ,_.F);oQ.prototype.computeThumbnailStyle=function(Y){if(Y&&(Y=_.WH(Y)))return"background-color:"+Y+";"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oQ.prototype,"rendererBehaviors",void 0);_.z([_.R(),_.K("design:type",Object)],oQ.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],oQ);
_.a(oQ,"ytd-hashtag-tile-renderer",function(){if(HmI!==void 0)return HmI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-section" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-section" class="style-scope ytd-hashtag-tile-renderer"><a class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="thumbnail" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-spacing-wrapper" class="style-scope ytd-hashtag-tile-renderer"><div id="thumbnail-color-wrapper" style="[[computeThumbnailStyle(data.hashtagBackgroundColor)]]" class="style-scope ytd-hashtag-tile-renderer"><yt-img-shadow height="64" thumbnail="[[data.hashtagThumbnail]]" width="64" class="style-scope ytd-hashtag-tile-renderer"></yt-img-shadow></div></div></div></a></div><div id="info-section" class="style-scope ytd-hashtag-tile-renderer"><a id="main-link" class="hashtag-link yt-simple-endpoint style-scope ytd-hashtag-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]"><div id="info" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag" text="[[data.hashtag]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string><div id="metadata" class="style-scope ytd-hashtag-tile-renderer"><yt-formatted-string id="hashtag-info-text" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-tile-renderer"></yt-formatted-string></div></div></a></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return HmI=Y},{mode:1});var gq9;var IQ=function(){return _.F.apply(this,arguments)||this};
_.P(IQ,_.F);IQ.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}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IQ.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],IQ);
_.a(IQ,"ytd-sponsorships-alert-renderer",function(){if(gq9!==void 0)return gq9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope ytd-sponsorships-alert-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-sponsorships-alert-renderer">\n  <div id="action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n  <div id="secondary-action-button" class="style-scope ytd-sponsorships-alert-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return gq9=Y},{mode:1});var f_C;var k0=function(){return _.F.apply(this,arguments)||this};
_.P(k0,_.F);k0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.up.Object.defineProperties(k0.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.q("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.q("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.z([_.n(_.Si),_.K("design:type",Object)],k0.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],k0.prototype,"ytdLockupBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.z([_.R({selector:_.Ks}),_.K("design:type",Object)],k0.prototype,"isGridViewEnabled",void 0);
_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],k0.prototype,"watchFeedBigThumbs",null);_.z([_.t("isGridViewEnabled"),_.R({reflectToAttribute:!0}),_.K("design:type",String),_.K("design:paramtypes",[])],k0.prototype,"thumbnailWidth",null);_.z([_.R(),_.K("design:type",Object)],k0.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],k0);
_.a(k0,"ytd-compact-movie-renderer",function(){if(f_C!==void 0)return f_C;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-compact-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-movie-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-movie-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-compact-movie-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <template is="dom-if" if="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.topStandaloneBadges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n      <h3 id="movie-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-movie-renderer">\n        [[getSimpleString(data.title)]]\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-movie-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-movie-renderer" data="[[data]]" no-endpoints="">\n        </ytd-video-meta-block>\n        <span class="movie-metadata style-scope ytd-compact-movie-renderer">[[getSimpleString(data.topMetadataItems.0)]]</span>\n      </div>\n      <template is="dom-if" if="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-compact-movie-renderer">\n        </ytd-badge-supported-renderer>\n      </template>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-movie-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-compact-movie-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-compact-movie-renderer"></yt-interaction>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return f_C=Y},{mode:1});var Nsj;var Eq$;var csU=_.zO("HTML_DIR")==="rtl",lw=function(){var Y=_.F.apply(this,arguments)||this;Y.engagementPanel=!1;Y.maxLines=2;Y.expandButtonOffset=0;Y.showExpandButton=!1;Y.isTruncated=!1;Y.isExpanded=!1;Y.currentSnippetType=2;Y.alwaysShowExpandButton=!1;Y.JSC$14313_lastWidth=NaN;Y.observer=null;Y.left=0;Y.right=0;Y.mid=0;Y.longestSnippetLength=0;Y.isFinalSnippet=!1;Y.isFirstMutation=!1;Y.isResetMutation=!1;Y.OVERFLOW_THRESHOLD=5;return Y};
_.P(lw,_.F);_.g=lw.prototype;_.g.onClick=function(Y){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;if((b=window.getSelection())==null||!b.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.g.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.g.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.g.updateTextOnSnippetTypeChange=function(){_.q("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.g.setUpBinarySearch=function(Y){Y=Y*this.maxLines/8;this.left=0;var b,w;this.right=Math.min(Y*2,(w=(b=this.simpleText)==null?void 0:b.length)!=null?w:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.g.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.g.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Sk(new _.BQ("AttributedSnippet is empty when the description is not empty",this.text))};
_.g.mutationCallback=function(){if(this.observer!=null){var Y=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var b=Math.floor(Y*this.maxLines/8);this.setSnippetText(this.text,b);b!==0||this.attributedTextIsEmpty()||_.Sk(new _.BQ("Estimated visible character count is 0 for AttributedString description",this.text));this.isFinalSnippet=!0;return}if(this.isResetMutation){this.isResetMutation=!1;this.observer.disconnect();this.attributedTextIsEmpty()?
this.maybeLogWarningForEmptyAttributedSnippet():this.resize(!0);return}}if(this.isFinalSnippet)this.expandButtonOffset=this.computeExpandButtonOffset(),this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else if(this.isFirstMutation)if(this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;Y=Y*this.maxLines/8;this.left=0;var w;this.right=Math.min(Y*2,(w=(b=this.simpleText)==null?void 0:b.length)!=null?w: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)}}};
_.g.mutationObserve=function(Y){var b=this;this.observer||(this.observer=new MutationObserver(function(){b.mutationCallback()}));
this.observer.observe(Y,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.g.attached=function(){var Y=this;_.TC(this,function(){Y.resize()})};
_.g.isExpandedChanged=function(){_.Ua(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.g.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)};
_.g.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var Y="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((csU?"left":"right")+",\n        #000 0%,\n        #000 "+(this.expandButtonOffset-24)+"px,\n        transparent "+this.expandButtonOffset+"px,\n        transparent 100%)");this.snippetContainer.style.setProperty("-webkit-mask-image",Y);this.snippetContainer.style.setProperty("mask-image",
Y)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(csU?"right":"left",this.expandButtonOffset+"px")};
_.g.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.g.setSnippetText=function(Y,b){Y||(Y={});if(_.TT(Y)){var w=jz(Y,b);w.attachmentRuns||w.commandRuns||w.decorationRuns||w.styleRuns||w.alignment||w.lineBreakMode?this.attributedSnippetTextEl?(_.q("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=jz(Y,b),this.attributedSnippetTextEl.headerRuns=zCM(b,this.headerRuns)):this.attributedSnippetText={data:jz(Y,b),headerRuns:zCM(b,this.headerRuns)},this.currentSnippetType=0):_.Sk(new _.BQ("Tried to set snippet text when HTML element was null",
Y)):(this.plainSnippetText.textContent=yd(Y.content||"",b),this.currentSnippetType=2)}else{a:{w=Ynq(Y,b);if(w.runs){w=_.N(w.runs);for(var V=w.next();!V.done;V=w.next())if(V=V.value,V.bold||V.deemphasize||V.italics||V.strikethrough||V.textColor||V.navigationEndpoint||_.v(V,Sz)){w=!0;break a}}w=!1}w?this.formattedSnippetText?(this.formattedSnippetText.text=Ynq(Y,b),this.currentSnippetType=1):_.Sk(new _.BQ("Tried to set snippet text when HTML element was null",Y)):(this.plainSnippetText.textContent=
yd(_.Tx(Y),b),this.currentSnippetType=2)}};
_.g.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.g.attributedTextIsEmpty=function(){var Y=this.text;if(!_.TT(Y))return!0;var b;return((b=Y.content)==null?void 0:b.length)===0?!0:!1};
_.g.resize=function(Y){if(this.snippetText){if(Y===void 0?0:Y)this.JSC$14313_lastWidth=NaN;var b=this.hostElement.offsetWidth;if(b!==this.JSC$14313_lastWidth&&!this.isExpanded)if(this.JSC$14313_lastWidth=b,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;Y=0;var w,V;b=Math.min(b*this.maxLines/8*2,(V=(w=this.simpleText)==null?void 0:w.length)!=null?V:0)-1;for(w=0;Y<=b;)V=Math.floor(Y+(b-Y)/2),this.setSnippetText(this.text,V),this.isOverflowing()?b=V-1:(Y=V+1,w=V);this.setSnippetText(this.text,w);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.g.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.g.onExpandClick=function(){var Y=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.q("inline_expander_reset_focus_killswitch")||_.TC(this,function(){var b;((b=_.fH().resolve(_.HQ(_.mu)))==null?0:b.isKeyBoardInUse())&&_.JE(Y.hostElement)});
_.Ua(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.g.onCollapseClick=function(){this.collapse();_.Ua(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.g.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.g.computeExpandButtonOffset=function(){var Y=this.expandSizer;return Y?csU?Y.offsetParent?Y.offsetParent.offsetWidth-Y.offsetWidth-Y.offsetLeft:0:Y.offsetLeft:0};
_.up.Object.defineProperties(lw.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.TT(this.text)?this.text.content||"":_.Tx(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 _.TT(this.text)?!0:this.text&&_.q("web_replace_formatted_with_attributed_string")&&c2L(this.text)?(this.text=_.LA(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}}});
lw.prototype.onTextChanged=lw.prototype.onTextChanged;lw.prototype.updateMaskAndExpandButtonOffset=lw.prototype.updateMaskAndExpandButtonOffset;lw.prototype.updateSnippetContainerMaxHeight=lw.prototype.updateSnippetContainerMaxHeight;lw.prototype.isExpandedChanged=lw.prototype.isExpandedChanged;lw.prototype.updateTextOnSnippetTypeChange=lw.prototype.updateTextOnSnippetTypeChange;lw.prototype.updateIsFormattedExpanded=lw.prototype.updateIsFormattedExpanded;lw.prototype.updateIsAttributedExpanded=lw.prototype.updateIsAttributedExpanded;
lw.prototype.onClick=lw.prototype.onClick;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],lw.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lw.prototype,"text",void 0);_.z([_.R(),_.K("design:type",Array)],lw.prototype,"headerRuns",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lw.prototype,"engagementPanel",void 0);_.z([_.R(),_.K("design:type",Object)],lw.prototype,"maxLines",void 0);
_.z([_.R(),_.K("design:type",String)],lw.prototype,"expandLabel",void 0);_.z([_.R(),_.K("design:type",String)],lw.prototype,"collapseLabel",void 0);_.z([_.R(),_.K("design:type",Object)],lw.prototype,"expandCommand",void 0);_.z([_.R(),_.K("design:type",Object)],lw.prototype,"expandButtonOffset",void 0);_.z([_.t("text"),_.K("design:type",String),_.K("design:paramtypes",[])],lw.prototype,"simpleText",null);
_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],lw.prototype,"onClick",null);_.z([_.t("text","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],lw.prototype,"expandedText",null);_.z([_.t("headerRuns","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],lw.prototype,"expandedHeaderRuns",null);
_.z([_.t("text"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],lw.prototype,"hasAttributedStringText",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lw.prototype,"showExpandButton",void 0);_.z([_.t("collapseLabel","isExpanded"),_.K("design:type",Object),_.K("design:paramtypes",[])],lw.prototype,"showCollapseButton",null);_.z([_.R(),_.K("design:type",Object)],lw.prototype,"isTruncated",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lw.prototype,"isExpanded",void 0);_.z([_.R(),_.K("design:type",Boolean)],lw.prototype,"isAttributedExpanded",void 0);_.z([_.lr("isExpanded","hasAttributedStringText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lw.prototype,"updateIsAttributedExpanded",null);_.z([_.R(),_.K("design:type",Boolean)],lw.prototype,"isFormattedExpanded",void 0);
_.z([_.lr("isExpanded","hasAttributedStringText"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lw.prototype,"updateIsFormattedExpanded",null);_.z([_.R(),_.K("design:type",Number)],lw.prototype,"currentSnippetType",void 0);_.z([_.t("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],lw.prototype,"useAttributedSnippet",null);
_.z([_.t("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],lw.prototype,"useFormattedSnippet",null);_.z([_.t("currentSnippetType"),_.K("design:type",Object),_.K("design:paramtypes",[])],lw.prototype,"usePlainSnippet",null);_.z([_.R(),_.K("design:type",Object)],lw.prototype,"alwaysShowExpandButton",void 0);_.z([_.lr("currentSnippetType"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lw.prototype,"updateTextOnSnippetTypeChange",null);
_.z([_.R(),_.K("design:type",Object)],lw.prototype,"attributedSnippetText",void 0);_.z([_.xZ("#snippet"),_.K("design:type",HTMLElement)],lw.prototype,"snippetContainer",void 0);_.z([_.xZ("#snippet-text"),_.K("design:type",HTMLElement)],lw.prototype,"snippetText",void 0);_.z([_.xZ("#plain-snippet-text"),_.K("design:type",HTMLElement)],lw.prototype,"plainSnippetText",void 0);_.z([_.xZ("#formatted-snippet-text"),_.K("design:type",Object)],lw.prototype,"formattedSnippetText",void 0);
_.z([_.xZ("#attributed-snippet-text"),_.K("design:type",Object)],lw.prototype,"attributedSnippetTextEl",void 0);_.z([_.xZ("#expand"),_.K("design:type",HTMLElement)],lw.prototype,"expandButton",void 0);_.z([_.xZ("#expand-sizer"),_.K("design:type",HTMLElement)],lw.prototype,"expandSizer",void 0);_.z([_.vX("isExpanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lw.prototype,"isExpandedChanged",null);
_.z([_.lr("isExpanded","maxLines"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lw.prototype,"updateSnippetContainerMaxHeight",null);_.z([_.lr("isTruncated","showExpandButton","expandButtonOffset"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lw.prototype,"updateMaskAndExpandButtonOffset",null);
_.z([_.vX("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lw.prototype,"onTextChanged",null);_.z([_.S({is:"ytd-text-inline-expander",disableElementRegistration:!0})],lw);
_.a(lw,"ytd-text-inline-expander",function(){if(Eq$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);Eq$=Y}Y=Eq$;return Y},{mode:2});var h7=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return Y};
_.P(h7,_.F);h7.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
h7.prototype.handleUpdateDescriptionAction=function(Y){if(Y=_.v(Y,_.Rxr))if(Y.attributedDescription)this.set("data.attributedDescriptionBodyText",Y.attributedDescription);else if(Y.description){var b;((b=this.data)==null?0:b.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.LA(Y.description)):this.set("data.descriptionBodyText",Y.description)}};
_.up.Object.defineProperties(h7.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.attributedDescriptionBodyText)||!((b=this.data)==null||!b.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.collapsedLineCount){var b;return(b=this.data)==null?void 0:b.collapsedLineCount}Y=_.cQ("web_watch_description_collapsed_default_lines",12);if(_.q("ww_desc_line_page_size_ks"))return Y;b=Math.round(_.Z8().height*_.cQ("web_watch_description_screen_height_percentage",.5)/20);return Math.max(b,Y)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return(w=(Y=this.data)==null?void 0:Y.descriptionBodyText)!=null?w:(b=this.data)==null?void 0:b.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.sourceAttributions}}});
h7.prototype.panelContentVisibleChanged=h7.prototype.panelContentVisibleChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],h7.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],h7.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],h7.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Boolean)],h7.prototype,"panelContentVisible",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],h7.prototype,"engagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],h7.prototype,"shortsPanel",void 0);_.z([_.xZ("#inline-expander"),_.K("design:type",Object)],h7.prototype,"inlineExpander",void 0);
_.z([_.lr("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h7.prototype,"panelContentVisibleChanged",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],h7.prototype,"hasDescriptionText",null);_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],h7.prototype,"collapsedLines",null);
_.z([_.t("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.K("design:type",Object),_.K("design:paramtypes",[])],h7.prototype,"descriptionText",null);_.z([_.t("data","data.headerRuns"),_.K("design:type",Object),_.K("design:paramtypes",[])],h7.prototype,"headerRuns",null);_.z([_.t("data","data.sourceAttributions"),_.K("design:type",Object),_.K("design:paramtypes",[])],h7.prototype,"sourceAttributions",null);
_.z([_.S({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],h7);
_.a(h7,"ytd-expandable-video-description-body-renderer",function(){if(Nsj!==void 0)return Nsj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Nsj=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var U3o;var Xkj=_.b8(function(Y){var b=Y.data;return _.m("factoid-renderer",{class:"ytwFactoidRendererHost"},_.m("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return b().accessibilityText}},_.m("span",{class:"ytwFactoidRendererValue"},_.m(_.wv,{text:function(){return b().value}})),_.m("span",{class:"ytwFactoidRendererLabel"},_.m(_.wv,{text:function(){return b().label}}))))},"Qb");_.f_(Xkj,"factoid-renderer",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;return _.m("upload-time-factoid-renderer",null,_.m(_.OH,{data:function(){return b().factoid}},{factoidRenderer:Xkj}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.gn}});_.f_(_.b8(function(Y){var b=Y.data;return _.m("view-count-factoid-renderer",null,_.m(_.OH,{data:function(){return b().factoid}},{factoidRenderer:Xkj}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.gn}});var x0=function(){var Y=_.F.apply(this,arguments)||this;Y.shortsPanel=!1;Y.engagementPanel=!1;Y.watchWhileSdp=_.q("shorts_desktop_watch_while_sdp");return Y};
_.P(x0,_.F);x0.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"}}}}};
_.up.Object.defineProperties(x0.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var Y;return(Y=this.data)==null?void 0:Y.channel}}});
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],x0.prototype,"componentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],x0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],x0.prototype,"shortsPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],x0.prototype,"engagementPanel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],x0.prototype,"watchWhileSdp",void 0);_.z([_.t("shortsPanel","engagementPanel","data.channel"),_.K("design:type",Object),_.K("design:paramtypes",[])],x0.prototype,"showChannelInfo",null);_.z([_.S({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],x0);
_.a(x0,"ytd-video-description-header-renderer",function(){if(U3o!==void 0)return U3o;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.title]]" class="style-scope ytd-video-description-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-video-description-header-renderer"></yt-formatted-string>\n</div>\n<template is="dom-if" if="[[showChannelInfo]]" class="style-scope ytd-video-description-header-renderer">\n    <div id="channel-info" class="style-scope ytd-video-description-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-video-description-header-renderer" href$="[[computeHref_(data.channelNavigationEndpoint)]]" data="[[data.channelNavigationEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="avatar" alt="[[getSimpleString(data.channel)]]" fit="" thumbnail="[[data.channelThumbnail]]" width="36" class="style-scope ytd-video-description-header-renderer">\n      </yt-img-shadow>\n    </a>\n    <ytd-channel-name id="channel-name" channel-name="[[getSimpleString(data.channel)]]" wrap-text="" class="style-scope ytd-video-description-header-renderer">\n    </ytd-channel-name>\n  </div>\n</template>\n\n<div id="factoids" class="style-scope ytd-video-description-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return U3o=Y},{mode:1});var D35;var qL=function(){return _.F.apply(this,arguments)||this};
_.P(qL,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],qL.prototype,"noPadding",void 0);_.z([_.R(),_.K("design:type",Object)],qL.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],qL);
_.a(qL,"ytd-list-item-view-model",function(){if(D35!==void 0)return D35;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-list-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="list-item" class="style-scope ytd-list-item-view-model">\n  <template is="dom-if" if="[[data.leadingImage]]" class="style-scope ytd-list-item-view-model">\n    <div id="leading-image-container" class="style-scope ytd-list-item-view-model">\n      <yt-image alt="Leading image for [[data.title]]" data="[[data.leadingImage]]" height="24" class="style-scope ytd-list-item-view-model">\n        </yt-image>\n    </div>\n  </template>\n  <div id="content" class="style-scope ytd-list-item-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-list-item-view-model">\n     </yt-attributed-string>\n      <yt-attributed-string id="subtitle" data="[[data.subtitle]]" class="style-scope ytd-list-item-view-model">\n      </yt-attributed-string>\n  </div>\n  <yt-button-view-model data="[[data.iconButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope ytd-list-item-view-model">\n  </yt-button-view-model>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return D35=Y},{mode:1});var m3t;var oq5;var I_t;var k3U;var sr=function(){var Y=_.F.apply(this,arguments)||this;Y.adaptiveFullWidth=!1;Y.modernButtons=_.q("web_modern_buttons");Y.buttonOverrides={style:"call-to-action",type:"filled"};Y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return Y};
_.P(sr,_.F);sr.prototype.handleSetTimestamp_=function(Y){this.data&&this.data.shortUrl&&(_.E6(this.hostElement).querySelector("#share-url").value=Y.isSet?_.yk(this.data.shortUrl,"t",Y.timestamp):this.data.shortUrl)};
sr.prototype.handleSignalActionCopyShareUrl_=function(Y,b){(_.q("killswitch_copy_link_target_check")||_.E6(this.hostElement).querySelector("#copy-button")===b)&&this.copyUrlToClipboard()};
sr.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.E6(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
sr.prototype.computeStyle_=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],sr.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sr.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.K("design:type",String)],sr.prototype,"rendererStyle",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sr.prototype,"adaptiveFullWidth",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sr.prototype,"modernButtons",void 0);_.z([_.R(),_.K("design:type",Object)],sr.prototype,"buttonOverrides",void 0);_.z([_.FM({is:"yt-copy-link-renderer",disableElementRegistration:!0})],sr);
_.a(sr,"yt-copy-link-renderer",function(){if(k3U===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-copy-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_copy_link_renderer.yt.copy.link.renderer.css.js--\x3e<div id="bar" class="style-scope yt-copy-link-renderer">\n  <input id="share-url" dir="ltr" readonly="" size="45" value="[[data.shortUrl]]" class="style-scope yt-copy-link-renderer">\n  <yt-button-renderer id="copy-button" data="[[data.copyButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope yt-copy-link-renderer"></yt-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;I_t===void 0&&(I_t=document.createElement("template"));var V=I_t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);k3U=Y}Y=k3U;return Y},{mode:2});_.S9("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var QP=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return Y};
_.P(QP,_.F);_.g=QP.prototype;_.g.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.g.attached=function(){this.keyboardFocused=!1};
_.g.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var Y=_.fH().resolve(_.HQ(_.mu));Y&&(this.keyboardFocused=Y.isKeyBoardInUse())}};
_.g.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.g.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}};
_.g.onChange_=function(){if(this.data){var Y=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;Y&&this.ytComponentBehavior.resolveCommand(Y);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.g.handleUpdateToggleAction_=function(Y){(Y=_.v(Y,rZ$))&&this.data&&Y.targetId==this.data.targetId&&this.set("data.toggled",Y.toggled)};
_.g.toBoolean_=function(Y){return!!Y};
_.g.reset=function(){};
_.g.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("data-changed",this.data))};
_.g.updateDataToggledFromBinding=function(Y){this.set("data.toggled",Y.detail.value)};
QP.prototype.dataChangedForBinding=QP.prototype.dataChangedForBinding;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],QP.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],QP.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],QP.prototype,"data",void 0);_.z([_.R({computed:"computeDescription_(data.*)"}),_.K("design:type",Object)],QP.prototype,"description_",void 0);_.z([_.R({value:function(){return!!_.fH().resolve(_.HQ(_.mu))&&_.q("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"useKeyboardFocused",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],QP.prototype,"keyboardFocused",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QP.prototype,"dataChangedForBinding",null);_.z([_.FM({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],QP);
_.a(QP,"yt-toggle-form-field-renderer",function(){if(oq5===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-toggle-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_toggle_form_field_renderer.yt.toggle.form.field.renderer.css.js--\x3e<div id="toggle-container" class="style-scope yt-toggle-form-field-renderer">\n  <div id="caption" class="style-scope yt-toggle-form-field-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button id="input" checked="[[data.toggled]]" disabled="[[toBoolean_(data.isDisabled)]]" noink="" on-change="onChange_" on-checked-changed="updateDataToggledFromBinding" on-focusin="onToggleButtonFocusin_" on-focusout="onToggleButtonFocusout_" class="style-scope yt-toggle-form-field-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<yt-formatted-string id="description" hidden="[[!description_]]" text="[[description_]]" class="style-scope yt-toggle-form-field-renderer">\n</yt-formatted-string>\n<div id="footer-container" class="style-scope yt-toggle-form-field-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;m3t===void 0&&(m3t=document.createElement("template"));var V=m3t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);oq5=Y}Y=oq5;return Y},{mode:2});var l_9;var hOo;var v3=function(){var Y=_.F.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.isSearch=!1;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.noTopMargin=_.q("kevlar_watch_no_top_margin");Y.maskFade=_.q("web_watch_chips_mask_fade");Y.actionMap={"yt-related-chip-command":"handleRelatedChipCommand","yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(v3,_.F);_.g=v3.prototype;_.g.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}}}}}};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.g.dataChanged=function(){var Y=this.getSelectedIndex();if(Y>0)this.selected=Y;else{this.selected=0;var b,w;(b=this.ytScrollableChipCloudBehavior)==null||(w=b.reset)==null||w.call(b)}};
_.g.getSelectedIndex=function(){var Y;if((Y=this.data)==null||!Y.chips)return-1;Y=-1;for(var b,w=0;w<((b=this.data)==null?void 0:b.chips.length);w++){var V=void 0,H=void 0;if((V=this.data)==null?0:(H=V.chips[w].chipCloudChipRenderer)==null?0:H.isSelected){Y=w;break}}return Y};
_.g.onResize=function(){var Y=this.ytScrollableChipCloudBehavior;_.TC(Y,Y.setContainerWidthDiff);Nu(this.ytScrollableChipCloudBehavior)};
_.g.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.handleRelatedChipCommand=function(Y,b){Y=this.JSC$14340_chipsSelector.indexOf(b);Y!==-1&&this.JSC$14340_chipsSelector.selectIndex(Y)};
_.g.handleChipCloudChipSelectAction=function(Y){Y=this.JSC$14340_chipsSelector.indexOf(Y);Y>-1&&this.JSC$14340_chipsSelector.selectIndex(Y)};
_.g.handleChipCloudChipDeselectAction=function(){var Y=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14340_chipsSelector&&((Y==null?0:Y.continuationCommand)?_.oP(this.hostElement,[Y]):(Y==null?0:Y.searchEndpoint)?this.ytComponentBehavior.resolveCommand(Y):Y&&_.IP(this.hostElement,[Y],this.hostElement),this.JSC$14340_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.g.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
v3.prototype.onResize=v3.prototype.onResize;v3.prototype.dataChanged=v3.prototype.dataChanged;v3.prototype.isSearchChanged=v3.prototype.isSearchChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],v3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],v3.prototype,"actionHandlerBehavior",void 0);
_.z([_.n(_.Li),_.K("design:type",Object)],v3.prototype,"ironResizableBehavior",void 0);_.z([_.n(),_.K("design:type",fR)],v3.prototype,"ytScrollableChipCloudBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],v3.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],v3.prototype,"data",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],v3.prototype,"selected",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],v3.prototype,"isDarkTheme",void 0);_.z([_.R({value:160}),_.K("design:type",Number)],v3.prototype,"scrollDistance",void 0);_.z([_.R(),_.K("design:type",Object)],v3.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],v3.prototype,"darkerDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],v3.prototype,"noTopMargin",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],v3.prototype,"maskFade",void 0);_.z([_.xZ("#chips"),_.K("design:type",Object)],v3.prototype,"JSC$14340_chipsSelector",void 0);_.z([_.lr("isSearch"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v3.prototype,"isSearchChanged",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v3.prototype,"dataChanged",null);
_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v3.prototype,"onResize",null);_.z([_.FM({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],v3);
_.a(v3,"yt-chip-cloud-renderer",function(){if(hOo===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_renderer.yt.chip.cloud.renderer.css.js--\x3e<div id="container" class="style-scope yt-chip-cloud-renderer">\n  <div id="left-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="left-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n  <div id="scroll-container" class="style-scope yt-chip-cloud-renderer">\n    <iron-selector id="chips" activate-event="" role="tablist" selected="[[selected]]" selected-attribute="selected" on-selected-changed="updateSelectedFromBinding" class="style-scope yt-chip-cloud-renderer">\n    </iron-selector>\n  </div>\n  <div id="right-arrow" class="style-scope yt-chip-cloud-renderer">\n    <div id="right-arrow-button" class="style-scope yt-chip-cloud-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;l_9===void 0&&(l_9=document.createElement("template"));var V=l_9;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);hOo=Y}Y=hOo;return Y},{mode:2});var x3j,qhI=function(){return x3j!==void 0?x3j:x3j=document.createElement("template")};
document.head.appendChild(qhI().content);var s0U;var Q0I=document.head,vqo=Q0I.appendChild,Pq$;if(s0U===void 0){var Zm$=document.createElement("template");_.B(Zm$,"");Zm$.content.insertBefore(qhI().content.cloneNode(!0),Zm$.content.firstChild);s0U=Zm$}Pq$=s0U;vqo.call(Q0I,Pq$.content);var Bso=_.b8(function(Y){var b=Y.data;return _.m("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.m("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.m("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.m(_.h,{cond:function(){return _.bJ(b().image)},
then:function(w){return _.m("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.m(_.Y_,{data:w,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.m("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.m(_.wv,{text:function(){return b().title}})),_.m("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.m(_.wv,{text:function(){return b().subtitle}})))),_.m(_.h,{cond:function(){var w;
return(w=b())==null?void 0:w.hasBottomDivider},
then:function(){return _.m("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var nq8=_.b8(function(Y){var b=Y.data;return _.m("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.m(_.OH,{data:function(){var w;return(w=b().offerPlanDetailsItem)!=null?w:[]}},{offerPlanDetailsItemViewModel:function(w){return _.m("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.m(Bso,{data:w.data}))}})),_.m("div",null,_.m(_.h,{cond:function(){return b().hasBottomDivider},
then:function(){return _.m("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.m("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.m("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.m("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var MY8=_.b8(function(Y){var b=Y.data;Y=_.N(_.kw(!1,void 0,"SpEGQd"));var w=Y.next().value,V=Y.next().value,H=_.Q_(function(){V(!w());return!1}),f=function(){var E;
return(E=b().offerPlanDetailsContainer)!=null?E:[]};
return _.m("lp-complex-offer-card-details-view-model",null,_.m("div",null,_.m(_.h,{cond:function(){return w()},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.m("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":H,"aria-expanded":w},_.m(_.wv,{text:function(){return b().expandedTitle}})),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.m(_.OH,{data:f},{offerPlanDetailsContainerViewModel:function(E){return _.m("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.m(nq8,{data:E.data}))}})),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.m(_.wv,{text:function(){return b().legalText}})))},
else:function(){return _.m("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":H,"aria-expanded":w},_.m(_.wv,{text:function(){return b().collapsedTitle}}),_.m("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.m(_.n_,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var eOU=_.b8(function(Y){var b=Y.data;return _.m("lp-complex-offer-card-option-view-model",null,_.m("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.m(_.h,{cond:function(){return b().topDividerText},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.m("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.m(_.wv,{text:function(){return b().topDividerText}}))))}}),_.m(_.h,{cond:function(){return b().planPricingPrimary},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.m(_.wv,{text:function(){return b().planPricingPrimary}}))}}),_.m(_.h,{cond:function(){return b().planPricingSecondary},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.m(_.wv,{text:function(){return b().planPricingSecondary}}))}}),_.m(_.h,{cond:function(){return b().primaryButton},
then:function(){return _.m("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.m(_.OH,{data:function(){return b().primaryButton}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var pk$=_.b8(function(Y){var b=Y.data;var w=function(){var f;return((f=b())==null?void 0:f.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
Y={};var V={},H={};return _.m("ytm-lp-complex-offer-card-view-model",null,_.m("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.m("div",{class:_.hj((Y.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=w,Y),"ytmLpComplexOfferCardViewModelCardContainer")},_.m(_.h,{cond:function(){var f;return(f=b())==null?void 0:f.bannerText},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.m("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.m(_.wv,{text:function(){return b().bannerText}})))}}),_.m(_.h,{cond:function(){return _.bJ(b().logo)},
then:function(f){var E={};return _.m("div",{class:_.hj((E.ytmLpComplexOfferCardViewModelLogoAlignLeft=w,E),"ytmLpComplexOfferCardViewModelLogo")},_.m(_.Y_,{data:f,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.m("div",{class:_.hj((V.ytmLpComplexOfferCardViewModelTitleAlignLeft=w,V),"ytmLpComplexOfferCardViewModelTitle")},_.m(_.wv,{text:function(){return b().title}})),_.m(_.h,{cond:function(){var f;
return(f=b())==null?void 0:f.subtitle},
then:function(){var f={};return _.m("div",{class:_.hj((f.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=w,f),"ytmLpComplexOfferCardViewModelSubtitle")},_.m(_.wv,{text:function(){return b().subtitle}}))}}),_.m(_.h,{cond:function(){return b().planPricingPrimary},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.m(_.wv,{text:function(){return b().planPricingPrimary}}))}}),_.m(_.h,{cond:function(){return b().planPricingSecondary},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.m(_.wv,{text:function(){return b().planPricingSecondary}}))}}),_.m(_.h,{cond:function(){return b().purchaseButton},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.m(_.OH,{data:function(){return b().purchaseButton}},{buttonViewModel:function(f){return _.m(_.a1,{data:f.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.m(_.h,{cond:function(){var f;
return(f=b())==null?void 0:f.offerOptions},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.m(_.OH,{data:function(){return b().offerOptions}},{lpComplexOfferCardOptionViewModel:eOU}))}}),_.m("div",{class:_.hj((H.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=w,H),"ytmLpComplexOfferCardViewModelLegalText")},_.m(_.wv,{text:function(){return b().legalText}})),_.m(_.h,{cond:function(){var f;
return(f=b())==null?void 0:f.offerCardDetails},
then:function(){return _.m("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.m(_.OH,{data:function(){return b().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:MY8}))}}))))},"Xb");var Omd=_.b8(function(Y){var b=Y.data;var w=function(){var E;return((E=b())==null?void 0:E.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
Y={};var V={},H={},f={};return _.m("ytm-lp-complex-offer-card-section-view-model",null,_.m("div",{class:_.hj("ytmLpComplexOfferCardSectionViewModelHost")},_.m("div",{class:_.hj((Y.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=w,Y),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.m("div",{class:_.hj((V.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=w,V),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.m("h2",{class:_.hj((H.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
w,H),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.m(_.wv,{text:function(){return b().title}}))),_.m(_.h,{cond:function(){var E;
return(E=b())==null?void 0:E.subtitle},
then:function(){var E={},U={};return _.m("div",{class:_.hj((E.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=w,E),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.m("div",{class:_.hj((U.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=w,U),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.m(_.wv,{text:function(){return b().subtitle}})))}}),_.m("div",{class:_.hj((f.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=w,f),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.m(_.OH,{data:function(){var E;
return(E=b().offerPlans)!=null?E:[]}},{lpComplexOfferCardViewModel:function(E){return _.m("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.m(pk$,{data:E.data}))}})))))},"Yb");var tY_=_.b8(function(Y){return _.m("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.m("div",{class:"ytLpCouponBannerViewModelIcon"},_.m(_.n_,{icon:function(){return"price_tag"}})),_.m("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.m("div",{class:"ytLpCouponBannerViewModelContent"},_.m("div",{class:"ytLpCouponBannerViewModelHeading"},_.m(_.wv,{text:function(){var b;
return(b=Y.data())==null?void 0:b.title}})),_.m("div",{class:"ytLpCouponBannerViewModelBody"},_.m(_.wv,{text:function(){var b;
return(b=Y.data())==null?void 0:b.subtitle}})))))},"Zb");
tY_.idomCompat=!0;_.P3=YzQ.getInstance();var RO5=_.b8(function(Y){return _.m("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":Y.shouldAriaHideContent},_.m("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:Y.questionId},_.m(_.wv,{text:Y.question})))},"$b"),d3r=_.b8(function(Y){var b=Y.data;
var w=Y.themeOverride;Y=_.N(_.kw(!1,void 0,"ljTVPd"));var V=Y.next().value,H=Y.next().value;Y=_.Q_(function(){H(!V());return!1});
var f=function(){return V()?"EXPAND_LESS":"EXPAND_MORE"},E=("faq-container"+_.SB(_.P3)).toString(),U="faq-question-and-answers-section-question"+_.SB(_.P3),X={},I={};
return _.m("faq-entry-view-model-c3",null,_.m("div",{class:_.hj("yt-lp-faq-entry-view-model",(X["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return w==null?void 0:w().useDarkTheme},X))},_.m("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":Y,role:"button","aria-expanded":V,"aria-labelledby":U.toString(),"tab-index":"0"},_.m(RO5,{question:function(){return b().question},
questionId:U,shouldAriaHideContent:!0}),_.m(_.h,{cond:function(){return V()!==void 0},
then:function(){return _.m("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.m(_.n_,{icon:f,ariaHidden:!0}),_.m("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.m("div",{class:_.hj("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(I["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!V()},I))},_.m("div",{id:E},_.m(_.Bf,{each:function(){return b().answers||[]}},function(k){return _.m("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.m(_.wv,{text:k}))})))))},"ac");
d3r.idomCompat=!0;var F5_=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;Y={};return _.m("lp-faq-section-view-model-c3",null,_.m("div",{class:_.hj("yt-lp-faq-section-view-model",(Y["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},Y["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},Y))},_.m("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.m(_.h,{cond:function(){return b().header},
then:function(V){return _.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.m(_.wv,{text:V}))}}),_.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.m(_.OH,{data:function(){return b().faqs}},{faqEntryViewModel:function(V){return _.m(d3r,{data:V.data,
themeOverride:w})}})),_.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.m(_.Bf,{each:function(){return b().footers||[]}},function(V){return _.m(_.wv,{text:V})})),_.m(_.h,{cond:function(){return b().legal},
then:function(V){return _.m("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.m(_.wv,{text:V}))}}))))},"bc");
F5_.idomCompat=!0;var L5I=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;_.dx(function(){var E=b().gtmId;E&&_.Rj(E,_.zO("GL",""))});
var V={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var E,U,X;return(X=(E=b().logo)==null?void 0:(U=E.accessibilityData)==null?void 0:U.label)!=null?X:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},H=_.fH().resolve(_.HQ(_.GT)),f=function(){return H&&H()||(w==null?void 0:w().useDarkTheme)};
return _.m("lp-header-section-view-model",null,_.m("div",{class:function(){var E=b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",U=b().marginType==="LP_SECTION_MARGIN_TYPE_TOP",X=w==null?void 0:w().useDarkTheme,I=["lp-header-section-view-model"];E&&I.push("lp-header-section-view-model--ptc-layout-type");U&&I.push("lp-header-section-view-model__lp-header-section-margin");X&&I.push("lp-header-section-view-model--premium-force-dark-mode");return I.join(" ")}},_.m(_.h,{cond:function(){return b().logo},
then:function(){return _.m("div",null,_.m(_.h,{cond:f,then:function(){return _.m(_.h,{cond:function(){var E;return(E=b().logo)==null?void 0:E.imageDark},
then:function(E){return _.m(_.Y_,Object.assign({},{data:E},V))}})},
else:function(){return _.m(_.h,{cond:function(){var E;return(E=b().logo)==null?void 0:E.imageLight},
then:function(E){return _.m(_.Y_,Object.assign({},{data:E},V))}})}}))}}),_.m(_.h,{cond:function(){return b().title},
then:function(E){return _.m("div",{class:"lp-header-section-view-model__lp-header-title"},_.m(_.wv,{text:E}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.m(_.h,{cond:function(){return b().subtitles},
then:function(E){return _.m(_.Bf,{each:E},function(U){return _.m("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.m(_.wv,{text:U}))})}})),_.m(_.h,{cond:function(){return b().additionalInfo},
then:function(E){return _.m("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.m(_.wv,{text:E}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.m(_.h,{cond:function(){return b().primaryButton},
then:function(E){return _.m("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.m(_.OH,{data:E},{buttonViewModel:_.a1}))}}),_.m(_.h,{cond:function(){return b().secondaryButton},
then:function(E){return _.m("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.m(_.OH,{data:E},{buttonViewModel:_.a1}))}})),_.m(_.h,{cond:function(){return b().otherOffersInfo},
then:function(E){return _.m("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.m(_.wv,{text:E}))}}),_.m("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.m(_.h,{cond:function(){return b().billingInfo},
then:function(E){return _.m(_.Bf,{each:E},function(U){return _.m("div",null,_.m(_.wv,{text:U}))})}}))))},"cc");
L5I.idomCompat=!0;var ShK=_.b8(function(Y){var b=Y.data;var w=_.JU(Y.themeOverride,{useDarkTheme:!1});Y={};Y=_.hj("ytm-lp-headline-section-view-model",(Y["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return w().useDarkTheme},Y));
return _.m("lp-headline-section-view-model",null,_.m("div",{class:Y},_.m("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.m(_.wv,{text:function(){return b().title}})),_.m(_.h,{cond:function(){return b().subtitle},
then:function(V){return _.m("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.m(_.wv,{text:V}))}})))},"dc");var a_r=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;var V=_.fH().resolve(_.HQ(_.GT)),H=function(){return V&&V()||(w==null?void 0:w().useDarkTheme)},f=function(){var I,k;
var l=H()?(I=b().textBackgroundImage)==null?void 0:I.imageDark:(k=b().textBackgroundImage)==null?void 0:k.imageLight;return c7B((l==null?void 0:l.sources)||[])},E=function(){var I,k;
return H()?(I=b().featureImage)==null?void 0:I.imageDark:(k=b().featureImage)==null?void 0:k.imageLight},U=function(){return b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},X=function(){var I,k;
return H()?(I=b().logo)==null?void 0:I.imageDark:(k=b().logo)==null?void 0:k.imageLight};
return _.m("ytm-lp-large-feature-section-view-model",null,_.m("div",{class:function(){var I=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",k=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",l=(b().index||0)%2===1,x=w==null?void 0:w().useDarkTheme,Q=["yt-lp-large-feature-section-view-model"];I?Q.push("yt-lp-large-feature-section-view-model--music-feature-type"):k?Q.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):l||Q.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
x&&Q.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return Q.join(" ")}},_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.m(_.h,{cond:E,
then:function(){return _.m(_.Y_,{data:function(){return E()},
alt:function(){var I,k,l;return(l=(I=b().featureImage)==null?void 0:(k=I.accessibilityData)==null?void 0:k.label)!=null?l:""},
contentMode:U})}})),_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var I;return((I=f())==null?0:I.url)?"background-image: url("+_.PN(f().url)+");":""}},_.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.m(_.h,{cond:X,
then:function(){return _.m(_.Y_,{data:function(){return X()},
alt:function(){var I,k,l;return(l=(I=b().logo)==null?void 0:(k=I.accessibilityData)==null?void 0:k.label)!=null?l:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.m(_.h,{cond:function(){return b().eyebrowText},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.m(_.wv,{text:function(){return b().eyebrowText}}))}}),_.m(_.h,{cond:function(){return b().title},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.m(_.wv,{text:function(){return b().title}}))}}),_.m(_.h,{cond:function(){return b().subtitles},
then:function(){return _.m("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.m(_.Bf,{each:function(){return b().subtitles||[]}},function(I){return _.m(_.wv,{text:I})}))}})))))},"ec");
a_r.idomCompat=!0;var rst=_.b8(function(Y){return _.m("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.m("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.m(_.n_,{icon:function(){var b;return(b=Y.data())==null?void 0:b.iconType},
className:function(){var b;switch((b=Y.data())==null?void 0:b.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var b;return((b=Y.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.m("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.m(_.wv,{text:function(){var b;
return(b=Y.data())==null?void 0:b.text},
className:function(){var b;return((b=Y.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"fc");var zOt=_.b8(function(Y){Y=_.ur(Y,{config:void 0,themeOverride:void 0});var b=Y.data,w=Y.config,V=Y.themeOverride;Y={};Y=_.hj("ytm-lp-offer-card-option-view-model",(Y["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var U;return(U=V())==null?void 0:U.useDarkTheme},Y));
var H=_.Q_(function(){var U,X;(U=w())==null||(X=U.handleRadioButtonClick)==null||X.call(U,b());return!1}),f=function(){var U;
return(U=w())==null?void 0:U.shouldDisplayRadioButton},E=function(){var U;
return(U=b().featureListItems)!=null?U:[]};
return _.m("ytm-lp-offer-card-option-view-model",null,_.m("div",{class:Y,"on:click":_.Q_(function(){if(f()){var U,X;(U=w())==null||(X=U.handleRadioButtonClick)==null||X.call(U,b())}return!1})},_.m(_.h,{cond:f,
then:function(){return _.m("div",null,_.m("input",{type:"radio","on:click":H,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var U;return!((U=w())==null||!U.isOptionSelected)}}))}}),_.m("div",null,_.m("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.m(_.wv,{text:function(){return b().eyebrowText}})),_.m("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.m(_.wv,{text:function(){return b().title}})),_.m("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.m(_.wv,{text:function(){return b().subtitle}})),_.m(_.h,{cond:function(){return E().length>0},
then:function(){return _.m("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.m(_.OH,{data:E},{lpFeatureListItemViewModel:rst}))}}),_.m("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.m(_.wv,{text:function(){return b().description}})))))},"gc");
zOt.idomCompat=!0;var W55=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;Y=_.N(_.Zp(function(){var f,E=(f=b().offerOptions)==null?void 0:f[0];return _.v(E,j5Q)||{}}));
var V=Y.next().value,H=Y.next().value;Y={};return _.m("ytm-lp-offer-card-view-model",null,_.m("div",{class:_.hj("ytm-lp-offer-card-view-model",(Y["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},Y))},_.m("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.m(_.h,{cond:function(){return b().titleIconType},
then:function(){return _.m("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.m(_.n_,{icon:function(){var f;return((f=b().titleIconType)==null?void 0:f.toString())||""}}))}}),_.m("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.m(_.wv,{text:function(){return b().title}})),_.m(_.OH,{data:function(){return b().titleBadge}},{badgeViewModel:function(f){return _.m("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.m(_.wz,{data:f.data}))}})),_.m("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.m(_.OH,{data:function(){return b().offerOptions}},{lpOfferCardOptionViewModel:function(f){var E=f.data;
return _.m(_.Uz,null,_.m("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.m(zOt,{data:E,config:function(){var U;return{shouldDisplayRadioButton:(b().offerOptions||[]).length>1,isOptionSelected:E().id===((U=V())==null?void 0:U.id),handleRadioButtonClick:function(X){return void H(X)}}},
themeOverride:w}))}})),_.m("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.m(_.OH,{data:function(){var f;
return(f=V())==null?void 0:f.purchaseButtonOverride}},{buttonViewModel:_.a1}))))},"hc");
W55.idomCompat=!0;var K5K=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;Y={};Y=_.hj("ytm-lp-offer-card-section-view-model",(Y["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var V;return w==null?void 0:(V=w())==null?void 0:V.useDarkTheme},Y));
return _.m("ytm-lp-offer-card-section-view-model",null,_.m("div",{class:Y},_.m(_.h,{cond:function(){return b().title!==void 0},
then:function(){return _.m("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.m("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.m(_.wv,{text:function(){return b().title}})),_.m(_.h,{cond:function(){return b().subtitle},
then:function(){return _.m("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.m(_.wv,{text:function(){return b().subtitle}}))}}))}}),_.m("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.m(_.OH,{data:function(){return b().offerCards}},{lpOfferCardViewModel:function(V){return _.m("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.m(W55,{data:V.data,
themeOverride:w}))}})),_.m(_.h,{cond:function(){return b().footer},
then:function(){return _.m("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.m(_.wv,{text:function(){return b().footer}}))}})))},"ic");var imU=_.b8(function(Y){var b=Y.data;return _.m("lp-offer-table-cell-content-view-model",null,_.m("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.m(_.e4,null,_.m(_.n7,{when:function(){return b().title}},function(){return _.m(_.wv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return b().title}})}),_.m(_.n7,{when:function(){return b().subTitle}},function(){return _.m(_.wv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return b().subTitle}})}),_.m(_.n7,{when:function(){return b().featureDescription}},function(){return _.m(_.wv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return b().featureDescription}})}),_.m(_.n7,{when:function(){return b().description}},function(){return _.m(_.wv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return b().description}})}),_.m(_.n7,{when:function(){return b().iconType}},function(){return _.m("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.m(_.n_,{icon:function(){return b().iconType.toString()}}))}),_.m(_.n7,{when:function(){return b().purchaseButton}},function(){return _.m(_.OH,{data:function(){return b().purchaseButton}},{buttonViewModel:function(w){return _.m("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.m(_.a1,{data:w.data}))}})}),_.m(_.n7,{when:function(){return b().note}},function(){return _.m(_.wv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return b().note}})}),_.m(_.n7,{when:function(){return b().featureDetail}},function(){return _.m(_.wv,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return b().featureDetail}})}),_.m(_.n7,{when:function(){return b().badge}},function(){return _.m(_.OH,{data:function(){return b().badge}},{badgeViewModel:_.wz})}))))},"jc");
imU.idomCompat=!0;var AsK=_.b8(function(Y){var b=Y.data;return _.m("lp-offer-table-cell-view-model",null,_.m("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(b().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.m(_.OH,{data:function(){return b().contents}},{lpOfferTableCellContentViewModel:imU})))},
"kc");
AsK.idomCompat=!0;var Cq$=_.b8(function(Y){var b=Y.data;var w=Y.lpTableIsFirstRow;var V=Y.lpTableIsLastRow;var H=function(){return(w==null?0:w())?"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"},f=function(){return(w==null?0:w())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(V==null?0:V())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.m("ytm-lp-offer-table-row-view-model",null,_.m("div",{class:"yt-lp-offer-table-row-view-model"},_.m(_.OH,{data:function(){return b().rowHeaderCell}},{lpOfferTableCellViewModel:function(E){return _.m("div",{class:H},_.m(AsK,{data:E.data}))}}),_.m(_.OH,{data:function(){return b().contentCells}},{lpOfferTableCellViewModel:function(E){return _.m("div",{class:f},_.m(AsK,{data:E.data}))}})))},"lc");
Cq$.idomCompat=!0;var ysC=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;var V=_.fH().resolve(_.HQ(_.GT)),H=function(){return _.v(b().logo,UP9)||{}};
Y={};return _.m("ytm-lp-offer-table-section-view-model",null,_.m("div",{class:"yt-lp-offer-table-view-model"},_.m(_.h,{cond:function(){var f,E;return V&&V()||(w==null?0:w().useDarkTheme)?(f=H())==null?void 0:f.imageDark:(E=H())==null?void 0:E.imageLight},
then:function(f){return _.m(_.Y_,{data:f,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var E,U,X;return(X=(E=H())==null?void 0:(U=E.accessibilityData)==null?void 0:U.label)!=null?X:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.m("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.m(_.wv,{text:function(){return b().title}})),_.m("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.m(_.wv,{text:function(){return b().subtitle}})),_.m(_.h,{cond:function(){return b().disclaimers},
then:function(f){return _.m("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.m(_.Bf,{each:f},function(E){return _.m("div",null,_.m(_.wv,{text:E}))}))}}),_.m("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.m(_.OH,{data:function(){return b().rows}},{lpOfferTableRowViewModel:function(f,E){return _.m(Cq$,{data:f.data,
lpTableIsFirstRow:function(){return E()===0},
lpTableIsLastRow:function(){return E()===b().rows.length-1}})}})),_.m("div",{class:_.hj((Y["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return b().hasFooterBackground},Y))},_.m(_.h,{cond:function(){return b().footer},
then:function(){return _.m("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.m(_.wv,{text:function(){return b().footer}}))}}),_.m(_.h,{cond:function(){return b().footerTitle},
then:function(){return _.m("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.m(_.wv,{text:function(){return b().footerTitle}}))}}),_.m(_.h,{cond:function(){return b().footerDescription},
then:function(){return _.m("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.m(_.wv,{text:function(){return b().footerDescription}}))}}))))},"mc");
ysC.idomCompat=!0;var $3C=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;var V=_.fH().resolve(_.HQ(_.GT)),H=function(){var U;return w==null?void 0:(U=w())==null?void 0:U.useDarkTheme},f=function(){var U,X;
return V&&V()||H()?(U=b().image)==null?void 0:U.imageDark:(X=b().image)==null?void 0:X.imageLight};
Y={};Y=_.hj("ytm-lp-small-feature-section-view-model",(Y["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=H,Y));var E=function(){var U,X,I;return(I=(U=b().image)==null?void 0:(X=U.accessibilityData)==null?void 0:X.label)!=null?I:""};
return _.m("ytm-lp-small-feature-section-view-model",{class:Y},_.m(_.h,{cond:function(){return f()&&!jrb},
then:function(){return _.m("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.m(_.Y_,{data:function(){return f()},
alt:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.m("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.m("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.m(_.h,{cond:function(){return b().title},
then:function(U){return _.m(_.wv,{text:U})}})),_.m("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.m(_.wv,{text:function(){return b().description}}))))},"nc");
$3C.idomCompat=!0;var j0C=_.b8(function(Y){var b=Y.data;var w=Y.themeOverride;Y={};return _.m("ytm-lp-small-feature-section-group-view-model",null,_.m("div",{class:_.hj("ytm-lp-small-feature-section-group-view-model",(Y["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(w==null||!w().useDarkTheme)},Y))},_.m("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.m(_.OH,{data:function(){return b().smallFeatures}},{lpSmallFeatureSectionViewModel:function(V){return _.m("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.m($3C,{data:V.data,
themeOverride:w}))}}))))},"oc");
j0C.idomCompat=!0;_.f_(_.b8(function(Y){var b=Y.data;var w=function(){return b().forcedTheme==="USER_INTERFACE_THEME_DARK"},V=function(){return b().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},H=function(){var E="",U,X;
var I=_.fH().resolve(_.HQ(_.GT));I=w()||(I==null?0:I())?(U=b().themedImageViewModel)==null?void 0:U.imageDark:(X=b().themedImageViewModel)==null?void 0:X.imageLight;(U=c7B((I==null?void 0:I.sources)||[]))&&U.url&&(E=V()?"background-image: linear-gradient(to bottom, transparent, "+(b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.PN(U.url)+");":"background-image: url("+_.PN(U.url)+");");return E},f=function(){return{useDarkTheme:w()}};
Y={};return _.m("yt-section-group-view-model",null,_.m("div",{class:_.hj("yt-lp-section-group-view-model",(Y["yt-lp-section-group-view-model--premium-force-dark-mode"]=w,Y["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},Y))},_.m(_.h,{cond:function(){return H().length},
then:function(){var E={};return _.m("div",{class:_.hj("yt-lp-section-group-view-model__bg-image",(E["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=V,E)),style:H})}}),_.m("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.m(_.OH,{data:function(){return b().sections}},{lpFaqSectionViewModel:function(E){return _.m(F5_,{data:E.data,
themeOverride:f})},
lpHeaderSectionViewModel:function(E){return _.m(L5I,{data:E.data,themeOverride:f})},
lpHeadlineSectionViewModel:function(E){return _.m(ShK,{data:E.data,themeOverride:f})},
lpLargeFeatureSectionViewModel:function(E){return _.m(a_r,{data:E.data,themeOverride:f})},
lpOfferCardSectionViewModel:function(E){return _.m(K5K,{data:E.data,themeOverride:f})},
lpComplexOfferCardSectionViewModel:function(E){return _.m(Omd,{data:E.data})},
lpOfferTableSectionViewModel:function(E){return _.m(ysC,{data:E.data,themeOverride:f})},
lpSmallFeatureSectionGroupViewModel:function(E){return _.m(j0C,{data:E.data,themeOverride:f})},
lpCouponBannerViewModel:function(E){return _.m(tY_,{data:E.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.YX}});var Vbu=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.G3k=_.b8(function(Y){function b(){if(Vbu.has(Y.data().displayType)){var I=!V(),k;if((k=Y.disableDeselection)==null||!k.call(Y)||I){Y.data().selected=I;k=Object.assign({},E(),{selected:I});U(k);var l;(l=Y.callback)==null||l.call(Y,k,I)}}}
var w=_.GM("chip-view-model"),V=function(){var I,k;return!!(((I=Y.selected)==null?void 0:I.call(Y))!==void 0?(k=Y.selected)==null?0:k.call(Y):E().selected)},H=_.N(_.Zp(Y.data)),f=H.next().value;
H=H.next().value;var E=f,U=H,X=_.xh(wSL,function(){return Y.data().chipEntityKey||""});
return _.m("chip-view-model",{class:"ytChipViewModelHost",el:w},_.m(tJI,{data:function(){var I,k=Object.assign({},E(),{selected:V()}),l=X(),x=(I=Y.disableDeselection)==null?void 0:I.call(Y);a:switch(k.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":I=1;break a;default:I=0}return{text:(l==null?void 0:l.text)||k.text,state:k.disabled?1:k.selected?0:2,type:I,onTap:HWa(k,w,b,x),accessibilityLabel:k.accessibilityLabel||k.text}}}))},"qc");
_.G3k.idomCompat={callbacks:{callback:!0}};_.Tso=_.b8(function(Y){var b=_.xh(bWg,function(){var E;return(E=Y.data())==null?void 0:E.chipBarStateEntityKey}),w=function(){return Y.data().disableDeselection},V=_.N(_.Zp(function(){var E;
if(((E=b())==null?void 0:E.selectedIndex)!=void 0)return b().selectedIndex;var U,X;E=_.N(((U=Y.data())==null?void 0:(X=U.chips)==null?void 0:X.entries())||[]);for(U=E.next();!U.done;U=E.next()){U=_.N(U.value);X=U.next().value;U=U.next().value;var I=void 0;if((I=_.v(U,_.CL))==null?0:I.selected)return X}return-1})),H=V.next().value,f=V.next().value;
return _.m("chip-bar-view-model",{class:_.hj("ytChipBarViewModelHost",Y.className),role:"tablist"},_.m(_.OH,{data:function(){return Y.data().chips}},{chipViewModel:function(E,U){return _.m("div",{class:"ytChipBarViewModelChipWrapper"},_.m(_.G3k,{data:E.data,
selected:function(){return U()===H()},
callback:function(X,I){X=!!I;I=U();f(X?I:-1);var k,l=(k=Y.data())==null?void 0:k.chipBarStateEntityKey;l&&X&&_.Td(_.qo("chipBarStateEntity",l,{key:l,selectedIndex:I}))},
disableDeselection:Y.disableDeselection||w}))}}))},"rc");_.f_(_.Tso,"chip-bar-view-model",{props:{data:_.gn,className:_.gn,disableDeselection:_.gn}});_.Jsr=_.b8(function(Y){var b=Y.data;Y={};return _.m("divider-view-model",{class:_.hj("divider-view-model-wiz",(Y["divider-view-model-wiz__inset-thin-padding"]=function(){return b().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},Y))},_.m("div",{class:_.hj("divider-view-model-wiz__base-divider",function(){return geu(b().dividerStyle)}),
style:_.Bb({"background-color":function(){return b().backgroundColor?_.WH(b().backgroundColor):void 0}})}))},"sc");
_.Jsr.idomCompat=!0;_.f_(_.Jsr,"divider-view-model",{props:{data:_.YX}});var FB=new Map,dv=new Map,Eee=0,Lx;var In6=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],h2G={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var urr,YYU;urr=function(Y){return function(b){return function(){return String(b())+Y}}};
_.ZY=urr("px");YYU=urr("s");var wnd=_.b8(function(Y){function b(y){return function(){var G=Q().numItemsPerGridRow,Nr=y()*G;G=Nr+G;var o6,lI;return(lI=(o6=V().contents)==null?void 0:o6.slice(Nr,G))!=null?lI:[]}}
var w=_.ur(Y,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),V=w.data,H=w.layoutContainerWidth,f=w.shouldUseOwnContainerSize,E=w.marginSettings;w=_.N(_.kw(!0,void 0,"qgr2Je"));var U=w.next().value,X=w.next().value,I=function(){var y,G=(y=_.v(V().showMoreButton,_.Bv))==null?void 0:y.trackingParams;G&&_.ly(_.Qd(),G);X(!1)},k=function(){var y,G=(y=_.v(V().showLessButton,_.Bv))==null?void 0:y.trackingParams;
G&&_.ly(_.Qd(),G);X(!0)};
w=_.GM("grid-shelf-view-model");var l=_.qne(w,{canHaveZeroSize:!1}),x=function(){var y;return(y=V().contentAspectRatio)!=null?y:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},Q=_.sN(function(){var y=_.uX({containerWidth:f()&&l.width()>0?l.width()||H():H(),
sizing:"EXTRA_COMPACT",marginSettings:E(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:y.maxContainerWidth,numItemsPerGridRow:y.numItems,contentPadding:f()?y.margin:y.contentMargin,itemWidth:y.itemWidth,itemMargin:y.gutter/2}},void 0,"pqVdjc"),Z=function(){if(V().enableVerticalExpansion){if(U())return e();
var y,G,Nr=(G=(y=V().contents)==null?void 0:y.length)!=null?G:0;return Math.ceil(Nr/Q().numItemsPerGridRow)}return Q().numItemsPerGridRow<=2?2:1},e=function(){var y;
return Math.ceil(((y=V().minCollapsedItemCount)!=null?y:1)/Q().numItemsPerGridRow)},O=function(){return V().enableVerticalExpansion&&V().showLessButton&&!U()&&Z()>e()},L=function(){var y,G;
return V().enableVerticalExpansion&&V().showMoreButton&&U()&&((G=(y=V().contents)==null?void 0:y.length)!=null?G:0)>Q().numItemsPerGridRow*e()},r=function(){return!O()},C=function(){return!L()},W={};
return _.m("grid-shelf-view-model",{class:_.hj("ytGridShelfViewModelHost",Y.className,(W.ytGridShelfViewModelHostHasBottomButton=function(){return O()||L()},W)),
el:w,style:_.Bb({"margin-left":(0,_.ZY)(function(){return Q().contentPadding}),
"margin-right":(0,_.ZY)(function(){return Q().contentPadding})})},_.m(_.h,{cond:function(){return _.v(V().header,QU9)},
then:function(y){return _.m(_.gq,{data:y,disableHorizontalPadding:!0})}}),_.m("div",null,_.m(_.Bf,{each:function(){return Array(Z())}},function(y,G){return _.m(bOk,{className:Y.className,
items:b(G),responsiveGridShelfLayout:Q,contentAspectRatio:x})})),_.m("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.m(_.OH,{data:function(){return V().showMoreButton}},{buttonViewModel:function(y){return _.m("div",{hidden:C},_.m(_.a1,{data:y.data,
onClick:I}))}}),_.m(_.OH,{data:function(){return V().showLessButton}},{buttonViewModel:function(y){return _.m("div",{hidden:r},_.m(_.a1,{data:y.data,
onClick:k}))}})))},"tc");
wnd.idomCompat=!0;var bOk=_.b8(function(Y){var b=Y.items;var w=Y.responsiveGridShelfLayout;var V=Y.contentAspectRatio;Y=Y.className;var H=_.GM("div");Nu6(H,function(){a:{var E=H.value;for(var U=b(),X=[],I=0;I<U.length;I++){var k=_.v(U[I],by9);if(!k||k==null||!k.inlinePlayerData){E=null;break a}var l=E.children.item(I);if(!l){E=null;break a}X.push({thumbnailElement:l,videoData:k})}E={gridVideoPreviewData:{gridItems:X}}}return E});
var f=(0,_.ZY)(function(){return-w().itemMargin});
return _.m("div",{el:H,class:_.hj("ytGridShelfViewModelGridShelfRow",Y),style:_.Bb({"margin-left":f,"margin-right":f})},_.m(_.OH,{data:b,replacementWrapper:function(E){return _.m(Vvo,{responsiveGridShelfLayout:w},E)}},{shortsLockupViewModel:function(E){return _.m(Vvo,{responsiveGridShelfLayout:w},_.m(rgK,{data:E.data,
aspectRatio:function(){return V()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),Vvo=_.b8(function(Y){return _.m("div",{style:_.Bb({width:(0,_.ZY)(function(){return Y.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+Y.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},Y.children)},"vc");
wnd.idomCompat=!0;_.f_(wnd,"grid-shelf-view-model",{props:{data:_.YX,layoutContainerWidth:_.YX,shouldUseOwnContainerSize:_.YX,marginSettings:_.YX,className:_.YX}});_.HOU=_.b8(function(Y){var b=_.N(_.kw(!1,void 0,"YYtxR")),w=b.next().value,V=b.next().value;b={};return _.m("yt-alert-banner-view-model",{class:_.hj("ytAlertBannerViewModelHost",Y.className,function(){var H;a:switch((H=Y.data())==null?void 0:H.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":H="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":H="ytAlertBannerViewModelWarning";break a;default:H="ytAlertBannerViewModelInformational"}return H},(b.ytAlertBannerViewModelDismissed=
w,b.ytAlertBannerViewModelFullbleed=Y.fullbleed,b.ytAlertBannerViewModelNarrow=Y.narrow,b.ytAlertBannerViewModelIsInRichGrid=Y.isInRichGrid,b))},_.m(_.h,{cond:function(){var H;
return!((H=Y.data())==null?0:H.hideIcon)},
then:function(){return _.m("div",{class:"ytAlertBannerViewModelIcon"},_.m(_.n_,{icon:function(){return"info_circle"}}))}}),_.m("div",{class:"ytAlertBannerViewModelOuterContainer"},_.m("div",{class:"ytAlertBannerViewModelContainer"},_.m("div",{class:"ytAlertBannerViewModelContent"},_.m("div",{class:"ytAlertBannerViewModelHeading"},_.m(_.wv,{text:function(){var H;
return(H=Y.data())==null?void 0:H.heading}})),_.m("div",{class:"ytAlertBannerViewModelBody"},_.m(_.wv,{text:function(){var H;
return(H=Y.data())==null?void 0:H.body}})))),_.m(_.OH,{data:function(){var H;
return(H=Y.data())==null?void 0:H.actionButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.m(_.OH,{data:function(){var H;
return(H=Y.data())==null?void 0:H.dismissButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var f;((f=Y.data())==null?0:f.disableLocalDismissBehavior)||V(!0)}})}}))},"wc");_.f_(_.HOU,"yt-alert-banner-view-model",{props:{data:_.YX,fullbleed:_.YX,narrow:_.YX,isInRichGrid:_.YX,className:_.YX}});var sSM;sSM=_.ZE({chipViewModel:_.G3k,buttonViewModel:_.a1});_.go$=_.sv(QSI,{callbacks:{callback:!0}});_.gS(QSI);_.f_(_.go$,"chips-shelf-view-model",{props:{data:_.YX,callback:_.gn,enableSingleChipSelection:_.YX,disableChipsScrollAnimation:_.YX}});var f6$=_.b8(function(Y){Y=_.ur(Y,{disabled:!1});var b=Y.active,w=Y.disabled;Y={};Y=_.hj("ytSwitchShapeTrack",(Y.ytSwitchShapeTrackActive=function(){return b()},Y.ytSwitchShapeTrackDisabled=function(){return w()},Y));
var V={};V=_.hj("ytSwitchShapeKnob",(V.ytSwitchShapeKnobActive=function(){return b()},V));
return _.m("switch-shape",{class:"ytSwitchShapeHost"},_.m("div",{class:Y}),_.m("div",{class:V}))},"xc");var N89=_.b8(function(Y){var b=_.ur(Y,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),w=b.data;Y=b.className;var V=b.handleOnTapEventInParent,H=b.parentActive;b=_.N(_.Zp(function(){var l;return(l=H())!=null?l:w().switchedOnByDefault||!1}));
var f=b.next().value,E=b.next().value,U=function(){return w().isDisabled},X=_.GM("button");
b=_.Q_(function(l){return l.key==="Enter"?(l.preventDefault(),X.value.click(),!1):!0});
var I=_.Q_(function(l){if(w().handleOnTapEventInParent||V())return!0;if(U())return!1;P0a(w(),f(),l);E(!f());return!1}),k={};
k=_.hj("ytSwitchButtonViewModelButton",(k.ytSwitchButtonViewModelTappable=function(){return!U()},k));
return _.m("switch-button-view-model",{class:_.hj("ytSwitchButtonViewModelHost",Y)},_.m("button",{el:X,class:k,"on:click":I,"on:keydown":b,"aria-label":function(){return f()?w().a11yLabelSwitchedOn:w().a11yLabelSwitchedOff},
"aria-checked":f,"aria-disabled":U,role:"switch"},_.m(f6$,{active:f,disabled:U})))},"yc");var cVU=_.b8(function(Y){var b=_.ur(Y,{checked:!1});Y=b.name;var w=b.onChange,V=b.onClick,H=b.checked,f=b.labelRenderable,E=b.hasLeadingLabel,U=b.labelClass,X=b.isCompact,I=b.selectElementClass;b=b.disableHorizontalPadding;var k="checkbox"+_.SB(_.P3),l=_.Q_(function(Z){V==null||V(Z);return!1}),x=_.Q_(function(Z){w==null||w(Z);
return!1}),Q={};
return _.m("checkbox-shape",null,_.m("label",{class:_.hj("checkbox-shape-wiz",U,(Q["checkbox-shape-wiz--compact"]=X,Q["checkbox-shape-wiz--disable-horizontal-padding"]=b,Q))},_.m("input",{class:"checkbox-shape-wiz__input",id:k,checked:H,name:Y,type:"checkbox","prop:checked":H,"on:change":x,"on:click":l}),_.m(_.h,{cond:function(){return!(E==null?0:E())},
then:function(){return _.m(EoQ,{isLeading:!0,selectElementClass:I})}}),_.m(_.h,{cond:function(){return!!f},
then:function(){return _.m("div",{class:"checkbox-shape-wiz__label"},f==null?void 0:f())}}),_.m(_.h,{cond:E,
then:function(){return _.m(EoQ,{isLeading:!1,selectElementClass:I})}})))},"zc");
cVU.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var EoQ=_.b8(function(Y){var b=Y.selectElementClass;Y={};return _.m("div",{class:_.hj("checkbox-shape-wiz__checkbox",b,(Y["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(b==null?0:b())},Y)),
"aria-hidden":"true"},_.m(_.n_,{icon:_.q("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.m(_.n_,{icon:_.q("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.B3=_.b8(function(Y){var b=Y.name;var w=Y.onChange;var V=Y.onClick;var H=Y.checked;var f=Y.labelRenderable;var E=Y.useCheckIcon;var U=Y.hasLeadingLabel;var X=Y.labelClass;var I=Y.isCompact;var k=Y.selectElementClass;var l=Y.ariaLabel;Y=Y.className;var x="radio"+_.SB(_.P3),Q=_.GM("input"),Z=_.Q_(function(y){Q.value.checked=!(H==null||!H());w==null||w(y);return!1}),e=_.Q_(function(y){V==null||V(y);
return!1}),O=_.N(_.kw(!1,void 0,"v5AMrb")),L=O.next().value,r=O.next().value;
O=_.Q_(function(){var y;((y=_.fH().resolve(_.HQ(_.mu)))==null?0:y.isKeyBoardInUse())&&r(!0)});
var C=_.Q_(function(){r(!1)}),W={};
return _.m("radio-shape",{class:_.hj("radio-shape-wiz",Y)},_.m("input",{el:Q,class:"radio-shape-wiz__input",id:x,"prop:checked":H,name:b,type:"radio","on:change":Z,"on:click":e,"aria-label":l,"on:focusin":O,"on:focusout":C}),_.m("label",{class:_.hj("radio-shape-wiz__label-container",X,(W["radio-shape-wiz--compact"]=I,W["radio-shape-wiz__label-container--keyboard-focused"]=L,W)),for:x},_.m(_.h,{cond:function(){return!(U==null?0:U())},
then:function(){return _.m(UO_,{checked:H,useCheckIcon:E,isLeading:!0,selectElementClass:k})}}),_.m(_.h,{cond:function(){return!!f},
then:function(){return _.m("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(l==null?0:l())?"true":"false"}},f==null?void 0:f())}}),_.m(_.h,{cond:U,
then:function(){return _.m(UO_,{checked:H,useCheckIcon:E,isLeading:!1,selectElementClass:k})}})))},"Bc");
_.B3.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var UO_=_.b8(function(Y){var b=Y.useCheckIcon;var w=Y.selectElementClass;Y=function(){return(b==null?0:b())?"CHECK":_.q("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var V={};return _.m("div",{class:_.hj("radio-shape-wiz__radio",w,(V["radio-shape-wiz__radio--check-icon"]=b,V["radio-shape-wiz__radio--radio-default-style"]=function(){return!(w==null?0:w())},V)),
"aria-hidden":"true"},_.m(_.n_,{icon:Y}),_.m(_.n_,{icon:Y,active:function(){return!(b==null?0:b())}}))},"Cc");_.nY=_.b8(function(Y){function b(){var J_;((J_=_.fH().resolve(_.HQ(_.mu)))==null?0:J_.isKeyBoardInUse())&&Tj(!0)}
function w(){Tj(!1)}
var V=Y.data;var H=Y.isMenuItem;var f=Y.isCompact;var E=Y.onTap;var U=Y.trailingAccessory;var X=Y.hideSelectionTextChevron;var I=Y.disabled;var k=Y.inPopup;var l=Y.disableHorizontalPadding;var x=Y.isOverlay;var Q=Y.isToggled;var Z=_.q("apply_button_role_to_list_item"),e=_.rn(function(J_){a:{var B9=V();if((B9==null?0:B9.entitySelectorType)&&(B9==null?0:B9.entityKey))switch(B9.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":J_=_.wjq(J_,B9.entityKey);
J_=J_==null?void 0:J_.value;B9=!1;J_==="CAPTIONS_UNAVAILABLE"&&(B9=!0,J_="");J_=Object.assign({},!!J_&&{selectionText:{content:J_}},{isSelected:!!J_},!!J_&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:B9});break a;default:J_={}}else J_={}}return J_}),O=function(){return _.q("enable_web_shorts_captions_language_command")?Object.assign({},V(),e()):V()},L=function(){return!(O().isSelected===void 0||!O().selectionStyle||O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
r=function(){return(_.$h(O().rendererContext)||E)&&!L()},C=function(){return _.$h(O().rendererContext)||L()};
Y={};x=_.hj("yt-list-item-view-model-wiz",(Y["yt-list-item-view-model-wiz--is-overlay"]=x,Y["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!Z&&rB()},Y));
Y={};var W=_.hj("yt-list-item-view-model-wiz__label",(Y["yt-list-item-view-model-wiz__container"]=function(){return!L()},Y["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!O().isDisabled||!(I==null||!I())},Y["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!O().subtitle},Y["yt-list-item-view-model-wiz__container--compact"]=f,Y["yt-list-item-view-model-wiz__container--tappable"]=r,Y["yt-list-item-view-model-wiz__container--in-popup"]=k,Y["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return Z&&rB()},Y["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(l==null?void 0:l())&&!L()},Y));
Y={};var y=_.hj("yt-list-item-view-model-wiz__container",(Y["yt-list-item-view-model-wiz__container--tappable"]=C,Y["yt-list-item-view-model-wiz__container--compact"]=f,Y["yt-list-item-view-model-wiz__container--in-popup"]=k,Y["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(l==null?void 0:l())&&L()},Y)),G=function(){return O().leadingImage||O().leadingAccessory},Nr=_.hj("yt-list-item-view-model-wiz__image-container",function(){return G()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
k=_.GM("yt-list-item-view-model");var o6=_.GM("div"),lI=Z?o6:k,Zt=_.b8(function(){return _.m(_.h,{cond:function(){return Z},
then:function(){return _.m("div",{class:W,el:o6,role:function(){return C()||r()?"button":void 0},
tabindex:function(){return E||r()?0:void 0},
"on:keydown":OM,"on:click":eL},_.m(Xnk,{data:O,hideSelectionTextChevron:X,trailingAccessory:U,isToggled:Q}))},
else:function(){return _.m("div",{class:W,el:o6},_.m(Xnk,{data:O,hideSelectionTextChevron:X,trailingAccessory:U,isToggled:Q}))}})},"Dc");
Zt.idomCompat=!0;_.jP(k,function(){return O().rendererContext});
var eL=_.Q_(function(J_){return void(E==null?void 0:E(J_))}),OM=_.gAr(),iI=_.N(_.kw(!1,void 0,"kFezJc"));
Y=iI.next().value;iI=iI.next().value;var rB=Y,Tj=iI;_.dx(function(){r()&&(lI.value.addEventListener("focusin",b),lI.value.addEventListener("focusout",w));_.R2(function(){lI.value&&r()&&(lI.value.removeEventListener("focusin",b),lI.value.removeEventListener("focusout",w))})});
Y=_.Q_(function(){return!0});
return _.m("yt-list-item-view-model",{el:k,class:x,role:function(){return(H==null?0:H())?"menuitem":"listitem"},
tabindex:function(){var J_=r();J_=Z?void 0:E||J_?0:void 0;return J_},
"on:keydown":Z?Y:OM,"on:click":Z?Y:eL},_.m(_.h,{cond:L,then:function(){return _.m(_.e4,null,_.m(_.n7,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.m(cVU,{labelRenderable:function(){return _.m(Zt,null)},
isCompact:f,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!G()},
labelClass:y,selectElementClass:Nr,disableHorizontalPadding:l})}),_.m(_.n7,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.m(_.B3,{labelRenderable:function(){return _.m(Zt,null)},
isCompact:f,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!G()},
labelClass:y,selectElementClass:Nr})}),_.m(_.n7,{when:function(){return O().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.m(_.B3,{labelRenderable:function(){return _.m(Zt,null)},
isCompact:f,checked:function(){return O().isSelected},
hasLeadingLabel:function(){return!!G()},
labelClass:y,selectElementClass:Nr,useCheckIcon:!0})}),_.m(_.M$,null,function(){return _.m(Zt,null)}))},
else:function(){return _.m(Zt,null)}}))},"Ec");
_.nY.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var Xnk=_.b8(function(Y){var b=Y.data;var w=Y.hideSelectionTextChevron;var V=Y.trailingAccessory;var H=Y.isToggled;return _.m(_.Uz,null,_.m(DOQ,{data:b,isLeading:!0,hideSelectionTextChevron:function(){return!(w==null||!w())},
isToggled:H}),_.m(mOo,{data:b}),_.m(_.h,{cond:function(){return!!V},
then:function(){return _.m("div",{class:"yt-list-item-view-model-wiz__trailing"},V==null?void 0:V())},
else:function(){return _.m(DOQ,{data:b,isLeading:!1,hideSelectionTextChevron:function(){return!(w==null||!w())},
isToggled:H})}}))},"Fc"),DOQ=_.b8(function(Y){var b=Y.data;
var w=Y.isLeading;var V=Y.hideSelectionTextChevron;var H=Y.isToggled;var f=_.hj("yt-list-item-view-model-wiz__button-container");Y={};var E=_.hj("yt-list-item-view-model-wiz__image-container",(Y["yt-list-item-view-model-wiz__leading"]=w,Y["yt-list-item-view-model-wiz__trailing"]=function(){return!w()},Y)),U=function(){return w()?b().leadingImage:b().trailingImage},X=_.hj("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
Y={};var I=_.hj("yt-list-item-view-model-wiz__accessory",(Y["yt-list-item-view-model-wiz__leading"]=w,Y["yt-list-item-view-model-wiz__trailing"]=function(){return!w()},Y)),k=function(){a:switch(b().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var l="expand_more";
break a;default:l="chevron_right"}return l};
return _.m(_.h,{cond:function(){var l=b(),x=w();return!!(x&&(l.leadingImage||l.leadingAccessory)||!x&&(l.trailingImage||l.trailingButton||l.trailingButtons||l.selectionText))},
then:function(){return _.m(_.Uz,null,_.m(_.h,{cond:U,then:function(l){return _.m("div",{class:E,"aria-hidden":"true"},_.m(_.Y_,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0,className:X,isToggled:H}))}}),_.m(_.h,{cond:function(){return w()&&b().leadingAccessory},
then:function(){return _.m("div",{class:E},_.m(_.OH,{data:function(){return b().leadingAccessory}},{avatarViewModel:function(l){return _.m(_.et,{data:l.data,
avatarButtonCustomClassName:X})},
collectionThumbnailViewModel:O2o}))}}),_.m(_.h,{cond:function(){return!w()&&b().trailingButton},
then:function(){return _.m("div",{class:f},_.m(_.OH,{data:function(){return b().trailingButton}},{buttonViewModel:function(l){return _.m(_.a1,{data:l.data,
className:I})}}))}}),_.m(_.h,{cond:function(){var l;
return!w()&&((l=b().trailingButtons)==null?void 0:l.buttons)},
then:function(){return _.m("div",{class:f},_.m(_.OH,{data:function(){var l;return(l=b().trailingButtons)==null?void 0:l.buttons}},{buttonViewModel:function(l){return _.m(_.a1,{data:l.data,
className:I})},
accountLinkButtonViewModel:function(l){return _.m(zpe,{data:l.data,className:I})},
switchButtonViewModel:function(l){return _.m(N89,{data:l.data,className:I})},
subscribeButtonViewModel:function(l){return _.m(_.M7,{data:l.data,isOverlay:!1,animateWidth:!1,className:I})},
toggleButtonViewModel:function(l){return _.m(_.td,{data:l.data,className:I})}}))}}),_.m(_.h,{cond:function(){return!w()&&!!b().selectionText},
then:function(){return _.m(_.Uz,null,_.m(_.wv,{text:function(){return b().selectionText},
className:_.hj("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.m(_.h,{cond:function(){return!V()},
then:function(){return _.m(_.n_,{icon:k,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),mOo=_.b8(function(Y){var b=Y.data;
return _.m(_.h,{cond:function(){return b().title||b().subtitle},
then:function(){return _.m("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.m("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.m(_.h,{cond:function(){return b().title},
then:function(w){return _.m(_.wv,{text:w,className:"yt-list-item-view-model-wiz__title"})}})),_.m(_.h,{cond:function(){return b().subtitle},
then:function(w){return _.m(_.wv,{text:w,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.ooC=_.b8(function(Y){var b=Y.data;var w=Y.onTap;var V=Y.onSwitch;var H=Y.overrideDisabled;Y=Y.disableHorizontalPadding;var f=_.N(_.Zp(function(){var l;return((l=Buv(k()))==null?void 0:l.switchedOnByDefault)||!1})),E=f.next().value,U=f.next().value;
f=_.N(_.kw(!1,void 0,"ZHBkbb"));var X=f.next().value,I=f.next().value,k=function(){var l;if(!(l=b().switchButton)){var x=b();l=H==null?void 0:H();x={switchOnCommand:x.switchOnCommand,switchOffCommand:x.switchOffCommand,switchedOnByDefault:x.switchedOnByDefault,isDisabled:x.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:x.a11yLabelSwitchedOn,a11yLabelSwitchedOff:x.a11yLabelSwitchedOff};l!==void 0&&(x.isDisabled=l);l={switchButtonViewModel:x}}return l};
return _.m("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.m(_.nY,{data:function(){return{title:b().title,subtitle:b().attributedSubtitle,leadingImage:b().leadingImage,leadingAccessory:b().leadingAccessory,isDisabled:b().isDisabled}},
onTap:function(l){var x=Buv(k());!x||x.isDisabled||b().ignoreTapUntilCommandCompletes&&X()||(w==null||w(l),P0a(x,E(),l,b().ignoreTapUntilCommandCompletes,I),U(!E()),V==null||V(E()))},
trailingAccessory:function(){return _.m(_.OH,{data:k},{switchButtonViewModel:function(l){return _.m(N89,{data:l.data,parentActive:E,handleOnTapEventInParent:!!w})}})},
disableHorizontalPadding:Y}))},"Ic");var I69=_.b8(function(Y){var b=_.GM("toggleable-list-item-view-model"),w=_.N(_.Zp(function(){var f,E;return!!((f=Y.data())==null?0:(E=f.initialState)==null?0:E.isToggled)})),V=w.next().value,H=w.next().value;
_.jP(b,function(){return Y.data().rendererContext});
w=_.Q_(function(){H(!V())});
return _.m("toggleable-list-item-view-model",{el:b,class:_.hj("toggleableListItemViewModelHost",Y.className),"on:click":w},_.m(_.h,{cond:V,then:function(){return _.m(_.OH,{data:function(){return Y.data().toggledListItem}},{listItemViewModel:function(f){return _.m(_.nY,{data:f.data,
isToggled:V})}})},
else:function(){return _.m(_.OH,{data:function(){return Y.data().defaultListItem}},{listItemViewModel:_.nY})}}))},"Jc");var kyK=_.sa("DOWNLOAD",{},"Download"),l6k=_.sa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),hZU=_.sa("RETRY",{},"Retry"),xO_=_.sa("PAUSE_DOWNLOADING",{},"Pause downloading"),qYI=_.sa("RESUME_DOWNLOAD",{},"Resume download"),neG={text:kyK,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},SV={text:l6k,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},pSG={text:hZU,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
MbL={text:xO_,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},e2I={text:qYI,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var sld=_.b8(function(Y){var b=function(){var U=Y.data();U=_.y4(U.rendererContext);var X;return(X=_.v(U,_.kh))==null?void 0:X.videoId},w=_.rn(function(U){var X=b(),I=R2M(Y.data());
return X?_.a8(U,X):I?_.rb(U,I):"TRANSFER_STATE_UNKNOWN"}),V=_.xh(_.Rxv,b),H=_.rn(function(U){return _.nUM(U,b(),R2M(Y.data()))}),f=function(){return tbg(w(),V(),_.y4(Y.data().rendererContext),!!R2M(Y.data()))},E=function(){return H()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.m("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:E},_.m(_.h,{cond:function(){return!E()},
then:function(){return _.m(_.h,{cond:f,then:function(U){return _.m(_.Bf,{each:U},function(X){return _.m(_.nY,{data:X,isCompact:Y.isCompact,isMenuItem:Y.isMenuItem,inPopup:Y.inPopup,disableHorizontalPadding:Y.disableHorizontalPadding})})}})}}))},"Kc");
sld.idomCompat=!0;_.Qlt=_.b8(function(Y){var b=Y.data;var w=Y.isCompact;var V=Y.hideSelectionTextChevron;var H=Y.inPopup;var f=Y.isOverlay;var E=Y.disableHorizontalPadding;var U=function(){return deI(b())&&(H==null?void 0:H())};
Y={};return _.m("yt-list-view-model",{class:_.hj("yt-list-view-model-wiz",(Y["yt-list-view-model-wiz--kaios-spat-nav"]=jrb&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",Y)),role:function(){return U()?"menu":"list"},
style:_.Bb({"max-height":function(){var X,I=(X=b())==null?void 0:X.visibleElementCount;if(I)return L9I(b())?(I+.5)*48+"px":(I+.5)*40+"px"}})},_.m(_.OH,{data:function(){return b().listItems}},{listItemViewModel:function(X){return _.m(_.nY,{data:X.data,
isMenuItem:U,isCompact:w,hideSelectionTextChevron:V,inPopup:H,isOverlay:f,disableHorizontalPadding:E})},
toggleableListItemViewModel:function(X){return _.m(I69,{data:X.data})},
downloadListItemViewModel:function(X){return _.m(sld,{data:X.data,isMenuItem:U,isCompact:w,inPopup:H,disableHorizontalPadding:E})},
switchListItemViewModel:function(X){return _.m(_.ooC,{data:X.data,disableHorizontalPadding:E})}}))},"Lc");
_.Qlt.idomCompat=!0;var vor=_.b8(function(Y){var b=Y.data;var w=Y.isOverlay;Y={};return _.m("yt-course-perks-view-model",{class:_.hj("ytwCoursePerksViewModelHost",(Y.ytwCoursePerksViewModelHostOverlay=w,Y))},_.m("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.m(_.wv,{text:function(){return b().title}})),_.m("div",null,_.m(_.h,{cond:function(){return b().perks},
then:function(V){return _.m(_.Qlt,{data:function(){return{listItems:V()}},
isCompact:!0,isOverlay:w})}})))},"Mc");_.f_(vor,"yt-course-perks-view-model",{props:{data:_.gn,isOverlay:_.gn}});_.f_(_.b8(function(Y){var b=Y.data;return _.m("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.m("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.m(_.wv,{text:function(){return b().title}})),_.m("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.m(_.wv,{text:function(){return b().progressSummary}})),_.m("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.m("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Bb({width:function(){return b().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.YX}});var PDQ=_.b8(function(Y){var b={};return _.m("yt-progress-view-model",{class:_.hj("ytwProgressViewModelHost",(b.ytwProgressViewModelHostOverlay=_.JU(Y.isOverlay,!1),b))},_.m(_.h,{cond:function(){return Y.data().progressSummary},
then:function(w){return _.m("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.m(_.wv,{text:w}))}}),_.m("div",{class:"ytwProgressViewModelHostProgressContainer"},_.m(_.h,{cond:function(){return Y.data().leadingLabel},
then:function(w){return _.m("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.m(_.wv,{text:w}))}}),_.m("div",{class:"ytwProgressViewModelHostProgressBar"},_.m("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(Y.data().progressPercentage||0)*100+"%"}}))))},"Oc");var ML=_.b8(function(Y){var b=Y.starNumber;var w=Y.data;var V=function(){var H;return((H=w())==null?void 0:H.rating)||0};
return _.m(_.h,{cond:function(){return b()},
then:function(H){return _.m(_.e4,null,_.m(_.n7,{when:function(){return V()>=H()-.25}},function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.n_,{icon:"STAR_FILLED"}))}),_.m(_.n7,{when:function(){return V()>=H()-.75}},function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.n_,{icon:"STAR_HALF"}))}),_.m(_.M$,null,function(){return _.m("div",{class:"ytStarRatingViewModelHostStar"},_.m(_.n_,{icon:"STAR_BORDER"}))}))}})},"Pc"),ZO5=_.b8(function(Y){Y=Y.data;
return _.m("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.m(ML,{starNumber:1,data:Y}),_.m(ML,{starNumber:2,data:Y}),_.m(ML,{starNumber:3,data:Y}),_.m(ML,{starNumber:4,data:Y}),_.m(ML,{starNumber:5,data:Y}))},"Qc");_.f_(_.b8(function(Y){var b=_.ur(Y,{}).data;return _.m("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.m("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.m(_.wv,{text:function(){var w;return(w=b())==null?void 0:w.title}})),_.m("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.m(_.h,{cond:function(){return b().starProgressViewModels},
then:function(w){return _.m("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.m(_.OH,{data:w},{progressViewModel:PDQ}))}}),_.m("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.m("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.m(_.wv,{text:function(){var w;
return(w=b())==null?void 0:w.averageRatingLabel}})),_.m(_.h,{cond:function(){return b().zeroStateText},
then:function(w){return _.m("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.m(_.wv,{text:w}))}}),_.m(_.h,{cond:function(){return b().starRatingViewModel},
then:function(w){return _.m("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.m(_.OH,{data:w},{starRatingViewModel:ZO5}))}}),_.m("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.m(_.wv,{text:function(){var w;
return(w=b())==null?void 0:w.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.gn}});var B8Q;B8Q={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"}};_.noU=_.b8(function(Y){var b=_.GM("yt-learning-journey-loader-view-model"),w=_.o1();_.tq(function(){requestAnimationFrame(function(){var H;(H=w.lottieEl)==null||H.addEventListener("DOMLoaded",function(){var f;(f=Y.onLottieLoaded)==null||f.call(Y)})});
var V=Y.data().browseEndpoint;V&&_.AA(V)});
return _.m("yt-learning-journey-loader-view-model",{class:_.hj("learningJourneyLoaderViewModelHost",Y.className),"data-target-id":function(){var V;return((V=Y.data)==null?void 0:V.call(Y).targetId)||""},
el:b},_.m(_.x_,{className:_.hj("learningJourneyLoaderViewModelLoader",Y.className),animationName:function(){return B8Q.animationConfig.name},
data:B8Q,animationRef:w}))},"Sc");_.f_(_.noU,"yt-learning-journey-loader-view-model",{props:{data:_.YX,className:_.gn,onLottieLoaded:_.gn}});_.MvI=_.b8(function(Y){var b=function(){return Y.data()},w=_.N(_.kw(-1,void 0,"vug48")),V=w.next().value,H=w.next().value,f=function(l){return V()===l},E=function(l){return b().correctAnswerIndex===l},U=function(){return V()!==-1},X=function(){return V()===b().correctAnswerIndex},I=_.Q_(function(){H(-1);
return!1}),k=function(l){return X()&&E(l)};
return _.m("learning-journey-quiz-view-model",{class:_.hj("learningJourneyQuizViewModelHost",Y.className),style:_.Bb({background:function(){return zL(an(b())).backgroundColor}})},_.m(_.h,{cond:function(){return!!b().video},
then:function(){return _.m("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Bb({background:function(){return zL(an(b())).videoBackgroundColor}})},_.m(_.OH,{data:function(){return b().video}},{lockupViewModel:function(l){return _.m(_.fc,{data:l.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.m("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.m("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.m("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Bb({"align-items":function(){return b().overflowMenu?"start":"center"}})},_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Bb({"min-height":function(){return b().overflowMenu?"48px":"26px"}})},_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Bb({color:function(){return zL(an(b())).primaryTextColor}}),
"client-ve-type":function(){var l=U(),x=X();return l?x?264685:264684:264683}},_.m(_.wv,{text:function(){var l=b(),x=U(),Q=X();
return x?Q?l.successTitle:l.failureTitle:l.questionHeaderText}}))),_.m("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.m(_.h,{cond:U,
then:function(){return _.m("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":I,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.m("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Bb({fill:function(){return zL(an(b())).primaryTextColor}})},_.m("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.m(_.OH,{data:function(){return b().overflowMenu}},{buttonViewModel:function(l){return _.m(_.a1,{data:l.data})}}))),_.m("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Bb({color:function(){return zL(an(b())).secondaryTextColor}}),
"client-ve-type":264688},_.m(_.wv,{text:function(){var l=b();return U()?l.explanationText:l.questionSubheaderText}}))),_.m("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.m(_.Bf,{each:function(){return b().optionsData||[]}},function(l,x){var Q={};
return _.m("div",{class:_.hj("learningJourneyQuizViewModelHostQuizOptions",(Q.learningJourneyQuizViewModelHostQuizHover=function(){return!U()},Q.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return k(x())},Q.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!X()&&f(x())},Q.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return U()&&!f(x())},Q)),
"on:click":_.Q_(function(){if(U())return!1;H(x());return!1}),
style:_.Bb({background:function(){return U()&&f(x())?"":zL(an(b())).optionColor}}),
role:"button","aria-disabled":U,"tab-index":"0","client-ve-type":264686},_.m(_.h,{cond:U,then:function(){var Z={};return _.m("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var e=x();return E(e)?"0 0 24 24":"0 -960 960 960"},
class:_.hj("learningJourneyQuizViewModelHostQuizOptionIcon",(Z.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return k(x())},Z)),
style:_.Bb({fill:function(){return zL(an(b())).primaryTextColor}})},_.m("path",{d:function(){var e=x();
return E(e)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.m(_.wv,{text:l.optionText}))})))))},"Tc");
_.MvI.idomCompat=!0;_.f_(_.MvI,"learning-journey-quiz-view-model",{props:{data:_.YX,className:_.YX}});var eZo=_.b8(function(Y){var b=_.GM("yt-macro-marker-list-item-view-model");_.jP(b,function(){return Y.data().rendererContext});
var w=_.ur(Y,{palette:void 0,isLastItem:!1}),V=w.palette,H=w.isLastItem,f=function(){return Y.data().isHighlighted},E=function(){var I;
return Snv((I=V())==null?void 0:I.iconDisabledColor)},U=function(){var I;
return Snv((I=V())==null?void 0:I.primaryTitleColor)},X=function(){var I;
return Snv((I=V())==null?void 0:I.secondaryTitleColor)};
w={};return _.m("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:b},_.m(_.OH,{data:function(){return Y.data().thumbnail}},{thumbnailViewModel:_.JH}),_.m("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.m("div",{class:_.hj("ytMacroMarkerListItemViewModelTimeDescription",(w.ytMacroMarkerListItemViewModelHighlighted=f,w)),
style:_.Bb({"background-color":function(){return f()?U():E()},
color:function(){return f()?"":X()}})},_.m(_.wv,{text:function(){return Y.data().timestamp}})),_.m("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Bb({"background-color":function(){return H()?"transparent":E()}})}),_.m("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(f()?U():X())}},_.m(_.wv,{text:function(){return Y.data().title}}))))},"Uc");_.ej=_.b8(function(Y){function b(Ut){L("transform:translateX("+(_.zO("HTML_DIR")==="rtl"?"":"-")+Ut+"px)")}
function w(Ut){return Math.min(Math.max(Ut,0),O()-G())}
function V(){var Ut=W()+Zt();return H()?(Math.round(G()/Ut)||1)*Ut:0}
var H=function(){return Y.data().items||[]},f=function(){return Y.data().previousButton},E=function(){return Y.data().nextButton},U=function(){var Ut,wt;
return(wt=(Ut=Y.disableArrows)==null?void 0:Ut.call(Y))!=null?wt:!1},X=function(){var Ut;
return!((Ut=Y.forceNarrowLayout)==null||!Ut.call(Y))},I=_.GM("horizontal-shelf-view-model"),k=_.GM("div"),l=_.N(_.kw(0,void 0,"D4aXB")),x=l.next().value,Q=l.next().value;
l=_.N(_.kw(0,void 0,"GQlHRc"));var Z=l.next().value,e=l.next().value,O=Z;Z=_.N(_.kw("",void 0,"Bw1Yz"));l=Z.next().value;var L=Z.next().value;Z=_.N(_.kw(0,void 0,"buTjVb"));var r=Z.next().value,C=Z.next().value,W=r;Z=_.N(_.kw(0,void 0,"GIAWN"));r=Z.next().value;var y=Z.next().value,G=r;Z=_.N(_.kw(!1,void 0,"cenvwc"));var Nr=Z.next().value,o6=Z.next().value;Z=_.N(_.kw(0,void 0,"LSY2Ub"));r=Z.next().value;var lI=Z.next().value,Zt=r;Z=_.N(_.kw(0,void 0,"oS46jc"));var eL=Z.next().value,OM=Z.next().value,
iI=function(){var Ut,wt=(Ut=Y.data())==null?void 0:Ut.responsiveContainerConfiguration,X$,Dg;return wt?UWu(wt==null?void 0:wt.responsiveSize):(Dg=(X$=Y.sizing)==null?void 0:X$.call(Y))!=null?Dg:"STANDARD"};
Z=_.sN(function(){return!U()&&x()>0},void 0,"KINjJe");
r=_.sN(function(){return!U()&&x()<O()-G()},void 0,"Ea00Ib");
var rB=function(){Q(w(x()-V()));b(x())},Tj=function(){Q(w(x()+V()));
b(x())},J_=function(){I.value!==null&&ok()},B9;
_.dx(function(){ok();window.ResizeObserver?(B9=new ResizeObserver(_.Zf(J_,0)),B9.observe(I.value)):window.addEventListener("resize",J_)});
_.R2(function(){if(window.ResizeObserver){var Ut;(Ut=B9)==null||Ut.disconnect()}else window.removeEventListener("resize",J_)});
var ok=function(){var Ut=I.value.clientWidth,wt=Y.includeMargin!==void 0?Y.includeMargin():!1,X$;var Dg=Y.hasPeek!==void 0?Y.hasPeek():!((X$=Y.data())==null||!X$.hasPeek);Ut=_.uX({containerWidth:Ut,hasPeek:Dg,sizing:iI(),marginSettings:wt?X()?4:1:0});lI(Ut.gutter);OM(Ut.margin);C(Ut.itemWidth);o6(Ut.maxContainerWidth<528||X());y(Ut.maxContainerWidth);H()&&e((Ut.itemWidth+Ut.gutter)*H().length-Ut.gutter)};
return _.m("horizontal-shelf-view-model",{class:_.hj("ytwHorizontalShelfViewModelHost",Y.className),el:I},_.m(_.h,{cond:function(){var Ut;return Y.data().header&&!((Ut=Y.horizontalShelfExperiments)==null?0:Ut.call(Y).hideHeader)},
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Bb({width:function(){return G()+"px"},
padding:function(){return"0 "+eL()+"px"}})},_.m(_.OH,{data:function(){return Y.data().header}},{sectionHeaderViewModel:function(Ut){return _.m(_.gq,{data:Ut.data,
disableHorizontalPadding:!0,forceSmallLayout:Nr,useResponsiveLayout:!0})}}))}}),_.m("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.Bb({"margin-top":function(){var Ut,wt=Y.data().header&&!((Ut=Y.horizontalShelfExperiments)==null?0:Ut.call(Y).hideHeader),X$;return(((X$=Y.ensureMarginTop)==null?0:X$.call(Y))&&!wt?12:0)+"px"}})},_.m("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Bb({width:function(){return G()+"px"},
padding:function(){return"0 "+eL()+"px"},
overflow:function(){return U()?"auto":"hidden"}})},_.m("div",{class:"ytwHorizontalShelfViewModelItems",
el:k,style:l},_.m(_.OH,{data:H},{macroMarkerListItemViewModel:function(Ut,wt){return _.m("div",{style:_.Bb({width:function(){return W()+"px"},
"margin-right":function(){return(wt()===H().length-1?0:Zt())+"px"}})},_.m(eZo,{data:Ut.data,
palette:_.JU(Y.palette),isLastItem:function(){return wt()===H().length-1}}))},
lockupViewModel:function(Ut,wt){var X$=Ut.data;return _.m("div",{style:_.Bb({width:function(){return W()+"px"},
"margin-right":function(){return(wt()===H().length-1?0:Zt())+"px"}})},_.m(_.fc,{data:X$,
containerType:4,sizing:iI,protectBackground:Y.protectBackground,thumbnailFixedWidth:function(){return anr(X$())+"px"},
thumbnailTargetWidth:function(){return anr(X$())}}))}}))),_.m(_.h,{cond:Z,
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.m(_.OH,{data:f},{buttonViewModel:function(Ut){return _.m(_.a1,{data:Ut.data,onClick:rB})}}))}}),_.m(_.h,{cond:r,
then:function(){return _.m("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.m(_.OH,{data:E},{buttonViewModel:function(Ut){return _.m(_.a1,{data:Ut.data,onClick:Tj})}}))}})))},"Vc");
_.ej.idomCompat=!0;var pnC=_.b8(function(Y){var b=function(){return Y.data().targetId||""},w=function(){var Z;
return((Z=Y.data())==null?void 0:Z.expansionEntityKey)||""},V=_.xh(_.wjq,w),H=!0,f=function(){var Z;
return((Z=V())==null?void 0:Z.value)===b()},E=function(Z){_.Td(_.qo("stringEntity",w(),{key:w(),
value:Z?b():""}))};
_.tq(function(){H=!1;Y.data().isExpanded&&E(!0)});
var U=function(){if(f()){var Z=!0;Y.onCollapse!==void 0&&(Z=Y.onCollapse());Z&&E(!1)}else E(!0)},X=_.Q_(U),I=function(){var Z;
return(((Z=Y.accordionStyle)==null?void 0:Z.call(Y))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},k=_.GM("div"),l=function(){var Z,e;
return(e=(Z=_.v(Y.data().rendererContext,_.Ba))==null?void 0:Z.label)!=null?e:""},x={},Q={};
return _.m("yt-accordion-item-view-model",{class:_.hj("ytAccordionItemViewModelHost",Y.className,(x.ytAccordionItemViewModelExpanded=function(){return f()},x.ytAccordionItemViewModelHidden=function(){var Z;
return(Z=Y.hideIfNotExpanded)==null?void 0:Z.call(Y)},x.ytAccordionItemViewModelMini=I,x)),
"data-target-id":b},_.m("div",{class:"ytAccordionItemViewModelContainer"},_.m("div",{class:"ytAccordionItemViewModelLeftSection","on:click":X,title:l},_.m(_.wv,{text:function(){return Y.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:l})),_.m("div",{class:"ytAccordionItemViewModelRightSection"},_.m(_.OH,{data:function(){return f()?Y.data().expandButton:Y.data().collapseButton}},{buttonViewModel:function(Z){return _.m(_.a1,{data:Z.data,
className:"ytAccordionItemViewModelToggleButton",onClick:U})}}))),_.m("div",{class:"ytAccordionItemViewModelContainer"},_.m("div",{class:_.hj("ytAccordionItemViewModelContent",(Q.ytAccordionItemViewModelExpandedSubtitle=function(){return f()},Q)),
el:k,style:_.Bb({"max-height":function(){return H?"auto":f()?k.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!f()}},_.m(_.h,{cond:function(){return!I()},
then:function(){return _.m(_.wv,{text:function(){return Y.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.m(_.OH,{data:function(){return Y.data().content}},{horizontalShelfViewModel:function(Z){return _.m(_.ej,{data:Z.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.OOo=_.b8(function(Y){var b=_.N((0,_.V6U)(Y.data)).next().value,w=function(){return Y.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},V=function(){return w()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},H=_.N(_.kw(!0,void 0,"FVec2e")),f=H.next().value,E=H.next().value,U=function(){return V()&&f()},X=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){E(!f())}}},I=_.Q_(function(){b().onTitleTap&&_.AA(b().onTitleTap||{})});
H={};return _.m("yt-accordion-view-model",{class:_.hj("ytAccordionViewModelHost",(H.ytAccordionViewModelMinimized=function(){return U()},H)),
"data-target-id":function(){return Y.data().targetId||""}},_.m(_.h,{cond:function(){return V()||!!b().title},
then:function(){return _.m("div",{class:"ytAccordionViewModelHeader"},_.m("div",{class:"ytAccordionViewModelTitleSection"},_.m("div",{class:"ytAccordionViewModelTitleWrapper"},_.m(_.h,{cond:function(){return!!Y.data().headerIcon},
then:function(){return _.m(_.n_,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var k;return(k=Y.data().headerIcon)==null?void 0:k.iconType}})}}),_.m("div",{class:"ytAccordionViewModelTitle",
"on:click":I},_.m(_.wv,{className:"ytAccordionViewModelTitleText",text:function(){return b().title}})))),_.m("div",{class:"ytAccordionViewModelButtonSection"},_.m(_.h,{cond:V,
then:function(){return _.m(HT,{data:X,iconName:function(){return U()?"chevron_down":"chevron_collapse"}})}})))}}),_.m("div",{class:"ytAccordionViewModelContent"},_.m(_.OH,{data:function(){return b().contents}},{accordionItemViewModel:function(k){return _.m(pnC,{data:k.data,
className:"ytAccordionViewModelRow",accordionStyle:w,hideIfNotExpanded:U,onCollapse:function(){return V()?(E(!0),!1):!0}})}})),_.m("div",null,_.m(_.h,{cond:function(){return!V()&&(!!b().disclaimerFooter||!!b().footer)},
then:function(){return _.m("div",{class:"ytAccordionViewModelFooter"},_.m(_.wv,{text:function(){return b().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.m(_.OH,{data:function(){return Y.data().footer}},{flexibleActionsViewModel:function(k){return _.m(p$,{data:k.data,
layout:0})}}))}})))},"Xc");_.f_(_.OOo,"yt-accordion-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b,w=(b=_.fH().resolve(_.HQ(_.GT)))==null?void 0:b(),V=_.N(_.kw(!1,void 0,"BxguL"));b=V.next().value;var H=V.next().value;V=_.N(_.kw(!0,void 0,"WTCeFf"));var f=V.next().value,E=V.next().value,U=_.GM("textarea"),X=function(Z){H(!0);Z={learningJourneyFormData:{query:Z}};_.AA(Y.data().searchEndpoint||{},{form:{formData:Z}});return!1},I=_.Q_(function(Z){Z.target.closest("button-view-model")&&H(!0)});
V=_.Q_(function(){E(U.value.value.length===0)});
var k=_.Q_(function(Z){if(Z.key==="Enter"&&!Z.shiftKey&&!f()){var e=Z.target;Z.preventDefault();X(e.value)}}),l={},x={},Q={};
return _.m("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.m("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.m(_.Y_,{data:function(){return Y.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.m("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.m("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.m("div",{class:_.hj("ytLearningJourneyZeroStateSearchBar",(l.ytLearningJourneyZeroStateSearchBarDark=w,l))},_.m("textarea",{class:_.hj("ytLearningJourneyZeroStateTextInput",(x.ytLearningJourneyZeroStateTextInputDark=w,x)),el:U,"on:keyup":V,"on:keydown":k,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.m("div",{class:_.hj("ytLearningJourneyZeroStateSearchButtonContainer",(Q.ytLearningJourneyZeroStateSearchButtonContainerDark=w,Q))},_.m(_.a1,{data:function(){return _.v(Y.data().searchButton,_.Bv)},
className:"search-button",onClick:function(){return X(U.value.value)},
buttonOverrides:function(){return{disabled:f(),style:w?"mono-inverse":"mono",size:"XL"}}}))),_.m(_.h,{cond:function(){return!!Y.data().errorBanner},
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.m(_.OH,{data:function(){return Y.data().errorBanner}},{alertBannerViewModel:function(Z){return _.m(_.HOU,{data:Z.data,
"client-ve-type":264617})}}))}})),_.m(_.h,{cond:b,
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.m(_.OH,{data:function(){return Y.data().loader}},{learningJourneyLoaderViewModel:function(Z){return _.m(_.noU,{data:Z.data})}}))},
else:function(){return _.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.m(_.h,{cond:function(){return!!Y.data().learningJourneyShelf},
then:function(){return _.m("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.m("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return Y.data().learningJourneySectionTitle}),_.m(_.OH,{data:function(){return Y.data().learningJourneyShelf}},{horizontalShelfViewModel:_.ej}))}}),_.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.m("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return Y.data().suggestedJourneySectionTitle}),
_.m("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":I},_.m(_.OH,{data:function(){return Y.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(Z){return _.m(p$,{data:Z.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.YX}});var tv_=_.b8(function(Y){var b=Y.data;return _.m("ytvl-live-leaderboard-item-action-content-view-model",{class:_.hj("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.m(_.wv,{text:function(){var w;return(w=b())==null?void 0:w.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.m(_.OH,{data:function(){return b().actionButton}},{buttonViewModel:function(w){return _.m(_.a1,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:w.data})}}))},"Zc");var RZ$=_.b8(function(Y){var b=Y.data;return _.m("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.hj("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.m(_.wv,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var w;return(w=b())==null?void 0:w.displayName},
ellipsisTruncate:!0}),_.m(_.OH,{data:function(){return b().badge}},{buttonViewModel:function(w){return _.m(_.a1,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:w.data})}}))},"$c");_.f_(_.b8(function(Y){var b=Y.data;return _.m("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.m("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.m(_.wv,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var w;return(w=b())==null?void 0:w.rank}})),_.m("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.m(_.OH,{data:function(){return b().avatar}},{avatarViewModel:_.et})),_.m("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.m(_.OH,{data:function(){return b().content}},{liveLeaderboardItemChannelContentViewModel:RZ$,
liveLeaderboardItemActionContentViewModel:tv_})),_.m(_.wv,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var w;return(w=b())==null?void 0:w.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;return _.m("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.m(_.wv,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var w,V;return(w=b())==null?void 0:(V=w.ranking)==null?void 0:V.rank}}),_.m("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.m(_.OH,{data:function(){return b().avatar}},{avatarViewModel:_.et})),_.m(_.wv,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var w,V;return(w=b())==null?void 0:(V=w.channelContent)==null?void 0:V.channelName}}),_.m(_.wv,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var w;return(w=b())==null?void 0:w.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.YX}});var dOr=_.b8(function(Y){Y=_.ur(Y,{wrapper:!1}).wrapper;return _.m(_.h,{cond:Y,then:function(){return _.m("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.m("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.m("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
dOr.idomCompat=!0;var Fa8=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],LaC=_.b8(function(Y){var b=Y.data;var w=_.GM("div"),V=_.sN(function(){return b().command},void 0,"tJY20c");
_.tl(function(){V()&&_.WP(V(),{form:{element:w.value}})},"qs6Sof");
return _.m("div",{el:w,class:"YtQrCodeRendererHostContainer"},_.m(_.h,{cond:function(){return b().qrCodeImage},
then:function(H){return _.m(_.Y_,{data:H,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.m(_.h,{cond:function(){return b().spinner},
then:function(){return _.m(dOr,null)}})}}),_.m(_.h,{cond:function(){return b().label},
then:function(H){return _.m(_.wv,{text:H,className:"YtQrCodeRendererHostLabel"})}}),_.m(_.h,{cond:function(){return b().labels},
then:function(H){return _.m("div",{class:"YtQrCodeRendererHostLabels"},_.m(_.Bf,{each:H},function(f){return _.m(_.wv,{text:f})}))}}))},"ed");_.f_(_.b8(function(Y){var b=Y.data;var w=_.sN(function(){return b().qrEntityKey},void 0,"joYCxd"),V=_.sN(function(){return b().deleteEntityOnDismiss},void 0,"x3yAde"),H=_.sN(function(){return b().command},void 0,"dJe1Re"),f=_.xh(Mp6,w);
Y=_.sN(function(){return b().qrCodeImage},void 0,"qM5dZe");
var E=_.sN(function(){return b().style&&Fa8.includes(b().style)},void 0,"CaNEkf"),U=_.GM("yt-qr-code-renderer");
_.H6(U,{visibilityCallback:function(X){X&&H()&&_.WP(H())},
showOption:{calledOnce:!0,state:"visible"}});_.dx(function(){_.R2(function(){V()&&w()&&_.jm().dispatch(_.qo("qrCodeEntity",w()))})});
return _.m("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:U},_.m(_.h,{cond:E,then:function(){return _.m(_.h,{cond:f,then:function(X){return _.m(LaC,{data:X})}})}}),_.m(_.h,{cond:Y,
then:function(X){return _.m(_.Y_,{data:X,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.YX}});_.SYt=_.b8(function(Y){var b=Y.data;var w=Y.topbarOffset;var V,H=((V=_.fH().resolve(_.HQ(_.GT)))==null?void 0:V())||!1;return _.m("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var f=b();var E,U,X=H?(E=f.config)==null?void 0:E.darkThemeBackgroundColor:(U=f.config)==null?void 0:U.lightThemeBackgroundColor;f=X?_.WH(X):void 0;f="background-color: "+f+";";w!==void 0&&(f+="top: -"+w()+"px;");return f},
"aria-hidden":!0},_.m(_.h,{cond:function(){var f,E,U;return!!((f=b().backgroundImageConfig)==null?0:(E=f.image)==null?0:(U=E.sources)==null?0:U.length)},
then:function(){return _.m(_.Y_,{data:function(){var f;return(f=b().backgroundImageConfig)==null?void 0:f.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.m("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+rbr(H,b().gradientColorConfig)+";"}}))},"fd");
_.SYt.idomCompat=!0;var pY=_.b8(function(Y){var b=Y.className;var w=Y.data;var V=Y.isOverlay;var H=Y.maxLinesOverride;var f=Y.useMediumText;Y=_.GM("yt-description-preview-view-model");var E=function(){return w().alwaysShowTruncationText},U=function(){return w().truncationText},X=function(){return f!==void 0&&f()?"medium":"small"},I=function(){return V!==void 0&&V()?"overlay":"default"},k=function(){var e,O;
return(O=(e=_.v(w().rendererContext,_.Ba))==null?void 0:e.label)!=null?O:""},l=_.N(_.kw(!1,void 0,"mkuWzb")),x=l.next().value,Q=l.next().value;
_.jP(Y,function(){return w().rendererContext});
l=_.Q_(function(){w().expandOnTap&&Q(!x());return!1});
var Z={};return _.m("yt-description-preview-view-model",{el:Y,class:_.hj("yt-description-preview-view-model-wiz",b,(Z["yt-description-preview-view-model-wiz--clickable"]=function(){var e;return!((e=_.v(w().rendererContext,lQu))==null||!e.onTap)},Z["yt-description-preview-view-model-wiz--is-overlay"]=V,Z)),
"on:click":l},_.m(_.h,{cond:function(){return w().description},
then:function(e){return _.m(_.h,{cond:x,then:function(){var O={};return _.m("div",{class:_.hj("yt-description-preview-view-model-wiz__description",(O["yt-description-preview-view-model-wiz__description--medium-text"]=f,O))},_.m(_.wv,{text:e}))},
else:function(){return _.m(g6K,{text:e,alwaysShowTruncationText:E,truncationText:U,maxLines:function(){var O;return(O=H==null?void 0:H())!=null?O:w().maxLines},
textStyle:I,accessibilityLabel:k,textSize:X})}})}}))},"gd");
pY.idomCompat=!0;var a6t=_.b8(function(Y){var b=Y.data;var w=Y.isOverlay;return _.m("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.m("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.m(_.OH,{data:function(){return b().header}},{sectionHeaderViewModel:function(V){return _.m(_.gq,{data:V.data,
isOverlay:w})}})),_.m("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.m(_.OH,{data:function(){return b().channelInfoButtons}},{flexibleActionsViewModel:p$})),_.m("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.m(_.OH,{data:function(){return b().description}},{descriptionPreviewViewModel:function(V){return _.m(pY,{data:V.data,
isOverlay:w})}})))},"hd");
a6t.idomCompat=!0;var rVt=_.b8(function(Y){var b=Y.data;var w={};return _.m("factoid-view-model",{class:_.hj("ytwFactoidViewModelHost",(w.ytwFactoidViewModelHostOverlay=Y.isOverlay,w))},_.m(_.wv,{text:function(){return b().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.m(_.wv,{text:function(){return b().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
rVt.idomCompat=!0;var zZr=_.b8(function(Y){var b=Y.data;var w=Y.isOverlay;return _.m("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.m(_.OH,{data:function(){return b().factoids}},{factoidViewModel:function(V){return _.m(rVt,{data:V.data,
isOverlay:w})}}))},"jd");
zZr.idomCompat=!0;_.Wat=_.b8(function(Y){var b=Y.data;var w=Y.isOverlay;return _.m("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.m(_.OH,{data:function(){return b().items}},{channelInfoViewModel:function(V){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(a6t,{data:V.data,
isOverlay:w}))},
coursePerksViewModel:function(V){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(vor,{data:V.data,isOverlay:w}))},
descriptionPreviewViewModel:function(V){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(pY,{data:V.data,isOverlay:w}))},
factoidsRowViewModel:function(V){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(zZr,{data:V.data,isOverlay:w}))},
progressViewModel:function(V){return _.m("div",{class:"ytwCourseMetadataViewModelHostItem"},_.m(PDQ,{data:V.data,isOverlay:w}))}}))},"kd");var Kad=_.b8(function(Y){return _.m("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.m(_.OH,{data:function(){return Y.data().content}},{courseMetadataViewModel:function(b){return _.m(_.Wat,{data:b.data,
isOverlay:Y.isOverlay})},
progressViewModel:function(b){return _.m(PDQ,{data:b.data})}}))},"ld");var iO5=_.b8(function(Y){var b=Y.data;Y=Y.className;var w=_.GM("yt-dynamic-text-view-model"),V=function(){var f;return _.$h((f=b())==null?void 0:f.rendererContext)},H={};
H=(H["dynamic-text-view-model-wiz"]=!0,H["dynamic-text-view-model-wiz--tappable"]=function(){return V()},H);
_.jP(w,function(){var f;return(f=b())==null?void 0:f.rendererContext});
return _.m("yt-dynamic-text-view-model",{el:w,role:function(){return V()?"link":void 0},
tabindex:function(){return V()?0:void 0},
class:_.hj(Y,H)},_.m("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var f,E,U;return(U=(E=_.v((f=b())==null?void 0:f.rendererContext,_.Ba))==null?void 0:E.label)!=null?U:""}},_.m(_.wv,{text:function(){return b().text},
userInput:!0})))},"md");
iO5.idomCompat=!0;_.AVj=_.b8(function(Y){var b=Y.data;var w=Y.isPositionRelative;var V=_.TM("yt-image-banner-view-model"),H=_.W9g("(max-width: 527.9px)"),f=function(){var E,U;return(U=(E=b())==null?void 0:E.style)!=null?U:"IMAGE_BANNER_STYLE_FULL_BLEED"};
Y={};Y=(Y["yt-image-banner-view-model-wiz"]=!0,Y["yt-image-banner-view-model-wiz--inset"]=function(){return K9B(f())},Y["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Sa(!0)&&!(w==null?0:w())},Y["yt-image-banner-view-model-wiz--small-inset"]=function(){return K9B(f())&&H()},Y["yt-image-banner-view-model-wiz--tappable"]=function(){var E;
return _.Sa(V.value)&&_.$h((E=b())==null?void 0:E.rendererContext)},Y);
_.jP(V,function(){var E;return(E=b())==null?void 0:E.rendererContext});
return _.m("yt-image-banner-view-model",{el:V,class:_.hj(Y)},_.m(_.h,{cond:function(){var E;return(E=b())==null?void 0:E.image},
then:function(){return _.m(_.Y_,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.m(_.OH,{data:function(){var E;
return(E=b())==null?void 0:E.overlays}},{thumbnailHoverOverlayViewModel:Ms}))},"nd");
_.AVj.idomCompat=!0;var CDU;CDU=_.b8(function(Y){var b=Y.condition;var w=Y.content;return _.m(_.h,{cond:b,then:function(){return _.m("div",{class:"page-header-view-model-wiz__scroll-container"},w())},
else:function(){return w()}})},"od");
_.yVo=_.b8(function(Y){var b=Y.data;var w=Y.noPadding;var V=Y.enableBanner;var H=Y.cinematicContainerTopbarOffset;var f=Y.allowCinematicContainerOverflow;var E=Y.displayAsSidebar;var U=Y.displayAsPanel;var X=iWG(),I=function(){return!!b().image||!!b().animatedImage},k=function(){return!!b().background},l=function(){return(E==null?0:E())||(U==null?0:U())?1:X()},x=function(){return l()===1},Q=function(){return x()||l()===2},Z=function(){return l()===4},e=function(){var eL=b();
var OM=!!b().heroImage;var iI=l(),rB=AbG(b()),Tj=E==null?void 0:E(),J_=!eL.metadata,B9;if(B9=OM?_.v(eL.heroImage,XaI):_.v(eL.animatedImage||eL.image,XaI)){eL=B9.style;var ok=B9.layoutMode;if(ok!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(B9=n6u(B3I(B9)),OM)OM=z2q(iI,eL,ok,B9,Tj);else b:if(J_)OM=iI===1?{size:48}:{size:72};else switch(iI){case 1:OM={size:72};break b;case 2:OM={size:120};break b;default:OM=rB<4?{size:120}:{size:160}}else OM=void 0}else OM={size:0};return OM};
Y={};Y=_.hj((Y["page-header-view-model-wiz"]=!0,Y["page-header-view-model-wiz--no-padding"]=function(){return!(w==null||!w())},Y["page-header-view-model-wiz--small-top-padding"]=function(){return x()&&!b().actions&&!(U==null?0:U())||l()===2&&!(I()||b().heroImage)},Y["page-header-view-model-wiz--small-bottom-padding"]=function(){return Q()&&!b().actions&&!(U==null?0:U())},Y["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(f==null?0:f())},Y["page-header-view-model-wiz--display-as-sidebar"]=
E,Y));
var O={},L=_.hj((O["page-header-view-model-wiz__page-header-headline"]=!0,O["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var eL;return(eL=e())==null?void 0:eL.allowFullWidth},O)),r=function(){var eL;
return Q()&&!((eL=e())==null?0:eL.allowFullWidth)},C=function(){return x()&&(!!b().heroImage||I())&&AbG(b())>0},W=function(){return C()&&(U==null?void 0:U())};
O={};var y=_.hj((O["page-header-view-model-wiz__page-header-title"]=!0,O["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!C()},O["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return C()&&!W()},O["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=W,O["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=k,O));
O={};var G=_.hj((O["page-header-view-model-wiz__page-header-headline-image"]=!0,O["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!b().heroImage&&Q()},O));
O={};var Nr=_.hj((O["page-header-view-model-wiz__page-header-banner-container"]=V,O["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var eL;return(V==null?void 0:V())&&((eL=_.v(b().banner,_.mmK))==null?void 0:eL.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},O));
O={};var o6=_.hj((O["page-header-view-model-wiz__page-header-content-metadata"]=!0,O["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=k,O));O={};var lI=_.hj((O["page-header-view-model-wiz__page-header-flexible-actions"]=!0,O["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!b().metadata||Q()},O["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!Q()},O));
O={};var Zt=_.hj((O["page-header-view-model-wiz__page-header-attribution"]=!0,O["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=k,O));return _.m("yt-page-header-view-model",{class:Y},_.m(_.h,{cond:k,then:function(){return _.m("div",{class:"page-header-view-model-wiz__page-header-background"},_.m(_.OH,{data:function(){return b().background}},{cinematicContainerViewModel:function(eL){return _.m(_.SYt,{data:eL.data,
topbarOffset:H})}}))}}),_.m(CDU,{condition:function(){return!(E==null||!E())},
content:function(){return _.m("div",{class:"page-header-view-model-wiz__page-header-content"},_.m(_.h,{cond:function(){return(V==null?void 0:V())&&b().banner},
then:function(){return _.m("div",{class:Nr},_.m(_.OH,{data:function(){return b().banner}},{imageBannerViewModel:_.AVj}))}}),_.m("div",{class:L},_.m(_.h,{cond:I,
then:function(){return _.m(_.OH,{data:function(){var eL;if(!(eL=b().animatedImage)){eL=b();if(I()){var OM=eL=Object.assign({},eL),iI=l(),rB=AbG(b()),Tj=OM.image,J_=_.v(Tj,Dmk),B9=J_==null?void 0:J_.avatar,ok=_.v(B9,_.GI);if(Tj&&B9&&ok){switch(iI){case 1:ok.avatarImageSize="AVATAR_SIZE_XL";break;case 2:ok.avatarImageSize="AVATAR_SIZE_XXL";break;default:rB<4?ok.avatarImageSize="AVATAR_SIZE_XXL":ok.avatarImageSize="AVATAR_SIZE_XXXL"}_.q("web_enable_sink_page_header_view_model")&&(_.Fd(B9,_.GI,Object.assign({},
ok)),J_.avatar=Object.assign({},B9),_.Fd(Tj,Dmk,Object.assign({},J_)),OM.image=Object.assign({},Tj))}}eL=eL.image}return eL}},{contentPreviewImageViewModel:function(eL){return _.m(_.V8,{data:eL.data,
className:G,imageSizeConfig:e})},
decoratedAvatarViewModel:function(eL){return _.m(_.pe,{data:eL.data,className:G})}})}}),_.m(_.h,{cond:function(){return!!b().heroImage&&!r()},
then:function(){return _.m(_.OH,{data:function(){return b().heroImage}},{contentPreviewImageViewModel:function(eL){return _.m(_.V8,{data:eL.data,
className:G,imageSizeConfig:e})}})}}),_.m("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.m(_.h,{cond:function(){return!!b().heroImage&&r()},
then:function(){return _.m("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.m(_.OH,{data:function(){return b().heroImage}},{contentPreviewImageViewModel:function(eL){return _.m(_.V8,{data:eL.data,
className:G,imageSizeConfig:e})}}))}}),_.m(_.OH,{data:function(){return b().title}},{dynamicTextViewModel:function(eL){return _.m(iO5,{data:eL.data,
className:y})}}),_.m(_.OH,{data:function(){return b().metadata}},{contentMetadataViewModel:function(eL){return _.m(_.$B_,{data:eL.data,
layout:function(){return x()?1:0},
className:o6,isOverlay:k,useMediumText:Z})}}),_.m(_.h,{cond:function(){return b().description&&!x()},
then:function(){return _.m(_.OH,{data:function(){return b().description}},{descriptionPreviewViewModel:function(eL){return _.m(pY,{data:eL.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:k,maxLinesOverride:function(){return x()?void 0:1},
useMediumText:Z})}})}}),_.m(_.h,{cond:function(){return b().attribution&&!Q()},
then:function(){return _.m(_.OH,{data:function(){return b().attribution}},{attributionViewModel:function(eL){return _.m(zj5,{data:eL.data,
className:Zt,useMediumText:Z})}})}}),_.m(_.h,{cond:function(){return b().actions&&!Q()},
then:function(){return _.m(_.OH,{data:function(){return b().actions}},{flexibleActionsViewModel:function(eL){return _.m(p$,{data:eL.data,
layout:function(){return C0I(l())},
className:lI})}})}}))),_.m("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.m(_.h,{cond:function(){return b().description&&x()},
then:function(){return _.m(_.OH,{data:function(){return b().description}},{descriptionPreviewViewModel:function(eL){return _.m(pY,{data:eL.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:k,maxLinesOverride:function(){return x()?void 0:1},
useMediumText:Z})}})}}),_.m(_.h,{cond:function(){return b().attribution&&Q()},
then:function(){return _.m(_.OH,{data:function(){return b().attribution}},{attributionViewModel:function(eL){return _.m(zj5,{data:eL.data,
className:Zt,useMediumText:Z})}})}}),_.m(_.h,{cond:function(){return b().actions&&Q()},
then:function(){return _.m(_.OH,{data:function(){return b().actions}},{flexibleActionsViewModel:function(eL){return _.m(p$,{data:eL.data,
layout:function(){return C0I(l())},
className:lI})}})}})),_.m("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.m(_.OH,{data:function(){return b().bottomMetadataFlexibleContainer}},{flexibleContainer:function(eL){return _.m(Kad,{data:eL.data,
isOverlay:k})}})))}}))},"pd");
_.yVo.idomCompat=!0;_.f_(_.b8(function(Y){var b=_.N(_.kw(!1,void 0,"vVRl3b")),w=b.next().value,V=b.next().value;return _.m("yt-official-card-view-model",{class:_.hj("ytOfficialCardViewModelHost",Y.className),style:_.Bb({"background-color":function(){var H,f=uwq((H=Y.data())==null?void 0:H.backgroundColor);return f?_.KX(f):void 0}})},_.m(_.OH,{data:function(){return Y.data().header}},{pageHeaderViewModel:function(H){return _.m(_.yVo,{data:H.data,
noPadding:!0})}}),_.m(_.OH,{data:function(){return Y.data().contents}},{horizontalShelfViewModel:function(H){return _.m(_.ej,{data:H.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.m(_.h,{cond:w,
then:function(){return _.m("div",{class:"ytOfficialCardViewModelExpandedContent"},_.m(_.OH,{data:function(){return Y.data().expandedContents}},{horizontalShelfViewModel:function(H){return _.m(_.ej,{data:H.data,
sizing:"MINI"})}}),_.m("div",{class:"ytOfficialCardViewModelCollapseButton"},_.m(_.OH,{data:function(){return Y.data().collapseButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
onClick:function(){V(!w())}})}})))},
else:function(){return _.m("div",{class:"ytOfficialCardViewModelExpandButton"},_.m(_.OH,{data:function(){return Y.data().expandButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
onClick:function(){V(!w())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.YX,
className:_.YX}});var ybM=_.ZE({buttonViewModel:_.a1});_.gS($eL);_.oL($eL,"ytw-search-friction-view-model",{propNames:["data"]});_.Or=_.b8(function(Y){var b=_.GM("markdown-div"),w,V=(w=_.fH().resolve(_.HQ(_.GT)))==null?void 0:w();_.tl(function(){var H=b.value;var f=new FGC,E=new Map(f.JSC$7338_sanitizerTable.globalAttributePolicies);E.set("style",{policyAction:4});f.JSC$7338_sanitizerTable=new BY(f.JSC$7338_sanitizerTable.allowedElements,f.JSC$7338_sanitizerTable.elementPolicies,f.JSC$7338_sanitizerTable.allowedGlobalAttributes,E,f.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes);var U=["data-time"];if(U===void 0)E=
new Set(f.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes),E.add("data-"),f.JSC$7338_sanitizerTable=new BY(f.JSC$7338_sanitizerTable.allowedElements,f.JSC$7338_sanitizerTable.elementPolicies,f.JSC$7338_sanitizerTable.allowedGlobalAttributes,f.JSC$7338_sanitizerTable.globalAttributePolicies,E);else{E=new Set(f.JSC$7338_sanitizerTable.allowedGlobalAttributes);U=_.N(U);for(var X=U.next();!X.done;X=U.next()){X=X.value;if(X.indexOf("data-")!==0)throw Error("ra`"+X);E.add(X)}f.JSC$7338_sanitizerTable=
new BY(f.JSC$7338_sanitizerTable.allowedElements,f.JSC$7338_sanitizerTable.elementPolicies,E,f.JSC$7338_sanitizerTable.globalAttributePolicies,f.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes)}E=new Set(f.JSC$7338_sanitizerTable.allowedGlobalAttributes);E.add("class");f.JSC$7338_sanitizerTable=new BY(f.JSC$7338_sanitizerTable.allowedElements,f.JSC$7338_sanitizerTable.elementPolicies,E,f.JSC$7338_sanitizerTable.globalAttributePolicies,f.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes);
_.iH(H,_.pgk(f.build(),Gqq(Y.text())));Tut(b.value)},"FI2gYe");
w={};return _.m("div",null,_.m("markdown-div",{class:_.hj("ytwMarkdownDivHost",(w.ytwMarkdownDivDark=V,w.ytwMarkdownDivHostSmall=function(){var H;return((H=Y.isSmallText)==null?void 0:H.call(Y))||!1},w)),
el:b}))},"rd");
_.Or.idomCompat=!0;var $O9=_.b8(function(Y){var b=Y.imageData;var w=_.JU(Y.isInList,!1),V=function(){return w()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.m("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.m(_.h,{cond:function(){return b().image},
then:function(H){return _.m(_.Y_,{data:H,alt:function(){return V().alt},
contentMode:function(){return V().contentMode},
targetWidth:function(){return V().targetWidth},
targetHeight:function(){return V().targetHeight},
className:function(){return V().className}})}}),_.m("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.m("div",{class:_.hj("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.m(_.wv,{text:function(){return b().title}})),_.m(_.Bf,{each:function(){var H;
return(H=b().description)!=null?H:[]}},function(H){return _.m("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.m(t7,{content:H}))})))},"sd"),jlo=_.b8(function(Y){var b=Y.list;
var w=function(){var V;return(V=b().items)!=null?V:[]};
return _.m("div",{class:"ytwGenAiRichTextViewModelListContent"},_.m(_.h,{cond:function(){return b().title},
then:function(V){return _.m("div",{class:_.hj("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.m(_.wv,{text:V}))}}),_.m(_.h,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.m("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.m(_.Bf,{each:w},function(V){return _.m("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.m(t7,{content:V,isInList:!0}))}))}}),_.m(_.h,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.m("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.m(_.Bf,{each:w},function(V){return _.m("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.m(t7,{content:V,isInList:!0}))}))}}),_.m(_.h,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.m("div",{class:"ytwGenAiRichTextViewModelImageList"},_.m(_.Bf,{each:w},function(V){return _.m("div",{class:"ytwGenAiRichTextViewModelListItem"},_.m(t7,{content:V,isInList:!0}))}))}}))},"td"),Gyo=_.b8(function(Y){var b=Y.table;
return _.m("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.m("thead",null,_.m("tr",null,_.m(_.Bf,{each:function(){var w,V;return(V=(w=b().header)==null?void 0:w.cells)!=null?V:[]}},function(w){return _.m("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.m(_.Bf,{each:function(){return w.contents}},function(V){return _.m(t7,{content:V})}))}))),_.m("tbody",null,_.m(_.Bf,{each:function(){var w;
return(w=b().rows)!=null?w:[]}},function(w){return _.m("tr",null,_.m(_.Bf,{each:function(){return w.cells}},function(V){return _.m("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.m(_.Bf,{each:function(){return V.contents}},function(H){return _.m(t7,{content:H})}))}))})))},"ud"),t7=_.b8(function(Y){var b=Y.content;
var w=_.JU(Y.isInList,!1),V=function(){var H,f;return(f=(H=b().contentBlock)==null?void 0:H.contents)!=null?f:[]};
return _.m("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.m(_.h,{cond:function(){return b().text},
then:function(H){return _.m(_.wv,{className:"ytwGenAiRichTextViewModelText",text:H})}}),_.m(_.h,{cond:function(){return b().image},
then:function(H){return _.m($O9,{imageData:H,isInList:w})}}),_.m(_.h,{cond:function(){return b().list},
then:function(H){return _.m(jlo,{list:H})}}),_.m(_.h,{cond:function(){return b().contentBlock},
then:function(){return _.m("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.m(_.Bf,{each:V},function(H){return _.m(t7,{content:H,isInList:!1})}))}}),_.m(_.h,{cond:function(){return b().table},
then:function(H){return _.m(Gyo,{table:H})}}))},"vd"),T8$=_.b8(function(Y){var b={};
b=_.qR("ytwGenAiRichTextViewModelHost",(b.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.UJ("search_overview_link_style")),b));return _.m("gen-ai-rich-text-view-model",{class:b},_.m(t7,{content:function(){return Y.data().content}}))},"wd");_.gS(JbI);_.gS(WT);_.JVt=_.b8(function(Y){var b=Y.data;var w=function(){var e;return((e=b().loadingUi)!=null?e:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},V=function(){return b().isLoading&&(w()==="UNSPECIFIED"||w()==="GHOST_CARD")},H=function(){return!b().isLoading},f=function(){return!!b().content&&!b().contents},E=function(){return!!b().contents},U=function(){return!!b().nextQueryButtons},X=function(){return b().isLoading&&w()==="INVISIBLE"},I=function(){var e,O;
return(O=(e=b().headerIcon)==null?void 0:e.iconType)!=null?O:""},k=function(){var e;
return(e=b().content)!=null?e:""},l=function(){return!!b().sourcesSection},x,Q=!((x=_.fH().resolve(_.HQ(_.GT)))==null||!x()),Z=_.sN(function(){var e=[],O=b().contents;
if(O)for(var L=0;L<O.length;L++){var r=_.v(O&&O[L],qGK);r&&e.push(r)}return e},void 0,"ycU97e");
_.dx(function(){b().isLoading||_.S1("so_re",void 0,"search_overview_answer")});
return _.m("ytd-overview-answer-view-model",{class:function(){var e={};e=(e.ytdOverviewAnswerViewModelHost=!0,e.ytdOverviewAnswerViewModelDarkBackground=Q&&!X(),e.ytdOverviewAnswerViewModelLightBackground=!Q&&!X(),e);return _.qR(e)}},_.m(_.h,{cond:function(){return!X()},
then:function(){return _.m(_.Uz,null,_.m("h2",null,_.m("div",{class:"ytdOverviewAnswerViewModelHeader"},_.m(_.h,{cond:I,then:function(e){return _.m("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.m(_.n_,{icon:e}))}}),_.m("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.m("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return b().headerText}),_.m("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.m(_.wv,{text:function(){return b().headerSubtext}}))))),_.m(_.h,{cond:V,
then:function(){return JbI()}}),_.m(_.h,{cond:H,
then:function(){return _.m(_.Uz,null,_.m(_.h,{cond:f,then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelText"},_.m(_.Or,{text:k,isSmallText:!0}))}}),_.m(_.h,{cond:E,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelRichText"},_.m(_.Bf,{each:Z},function(e){return _.m(T8$,{data:e})}))}}),_.m(_.h,{cond:U,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.m(_.OH,{data:function(){return b().nextQueryButtons}},{buttonViewModel:function(e){return _.m(_.a1,{data:e.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.ej}))}}),_.m("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.m("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.m(_.h,{cond:function(){return!!_.v(b().likeButtonViewModel,_.dK)&&!!_.v(b().dislikeButtonViewModel,_.Fz)},
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.m(_.tm,{data:function(){return _.v(b().likeButtonViewModel,_.dK)},
disableIconAnimation:!0}),_.m(_.Oe,{data:function(){return _.v(b().dislikeButtonViewModel,_.Fz)}}))}})),_.m(_.h,{cond:function(){var e;
return(e=b().sourcesSection)==null?void 0:e.headerText},
then:function(e){return _.m("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.m(_.wv,{text:e}))}})),_.m(_.h,{cond:l,
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelSources"},_.m(_.OH,{data:function(){var e;return(e=b().sourcesSection)==null?void 0:e.sourcesShelf}},{buttonViewModel:_.a1,
horizontalShelfViewModel:function(e){return _.m(_.ej,{data:e.data,includeMargin:!0,hasPeek:!0})}}))}}),_.m(_.h,{cond:function(){return b().disclaimerText},
then:function(){return _.m("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.m(_.wv,{text:function(){return b().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var uCI=_.b8(function(Y){var b=Y.data;var w=Y.active;var V=_.GM("transcript-segment-view-model");_.tl(function(){var H,f,E,U=((H=_.fH().resolve(_.HQ(_.GT)))==null?0:H())?(f=b())==null?void 0:f.darkThemeColorPalette:(E=b())==null?void 0:E.lightThemeColorPalette;U&&(U.additiveBackground&&V.value.style.setProperty("--timestamp-active-background-color",_.KX(U.additiveBackground)),U.textSecondary&&V.value.style.setProperty("--timestamp-active-color",_.WH(U.textSecondary)))},"KHcbwb");
Y={};return _.m("transcript-segment-view-model",{class:_.hj("ytwTranscriptSegmentViewModelHost",(Y.ytwTranscriptSegmentViewModelHostActive=w,Y.ytwTranscriptSegmentViewModelHostModern=_.q("enable_timeline_view_modern_transcript")||_.q("enable_timeline_view_modern_transcript_fe"),Y)),el:V},_.m(_.h,{cond:function(){var H;return(H=b())==null?void 0:H.timestamp},
then:function(H){var f={};return _.m("div",{class:_.hj("ytwTranscriptSegmentViewModelTimestamp",(f.ytwTranscriptSegmentViewModelTimestampActive=w,f))},H)}}),_.m(_.wv,{text:function(){var H,f,E;
return(E=(H=b())==null?void 0:H.attributedText)!=null?E:{content:(f=b())==null?void 0:f.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yd");var YOC=_.b8(function(Y){var b=Y.data;return _.m("div",{class:"yt-video-attributes-section-view-model__header"},_.m("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return b().headerTitle}),_.m(_.h,{cond:function(){return b().headerSubtitle},
then:function(){return _.m("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return b().headerSubtitle})}}))},"zd"),bNK=_.b8(function(Y){function b(e){return Math.max(Math.min(e,0),I()-U())}
var w=Y.data;var V,H=_.GM("div",function(e){if(_.q("web_metadata_carousel_elref_bugfix")){var O=function(){k(e.clientWidth)};
O();window.ResizeObserver&&(V=new ResizeObserver(O),V.observe(e))}}),f=_.GM("div",function(e){X(e.scrollWidth)}),E=_.N(_.kw(0,void 0,"I9GbH"));
Y=E.next().value;E=E.next().value;var U=Y,X=E;E=_.N(_.kw(0,void 0,"eQAn5b"));Y=E.next().value;E=E.next().value;var I=Y,k=E;Y=_.N(_.kw(0,void 0,"VU3lg"));var l=Y.next().value,x=Y.next().value;_.dx(function(){if(!_.q("web_metadata_carousel_elref_bugfix")){var e=function(){X(f.value.scrollWidth);k(H.value.clientWidth)};
e();if(window.ResizeObserver){var O=new ResizeObserver(e);O.observe(H.value);_.R2(function(){O.disconnect()})}}});
_.R2(function(){if(_.q("web_metadata_carousel_elref_bugfix")){var e;(e=V)==null||e.disconnect()}});
var Q=function(){x(b(l()+I()))},Z=function(){x(b(l()-I()))};
return _.m("yt-video-attributes-section-view-model",null,_.m("div",{class:"yt-video-attributes-section-view-model"},_.m(_.h,{cond:function(){return w().headerTitle},
then:function(){return _.m(YOC,{data:w})}}),_.m("div",{class:_.hj("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:H},_.m("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Bb({transform:function(){var e=l();_.zO("HTML_DIR")==="rtl"&&(e*=-1);return"translateX("+e+"px)"}}),
el:f},_.m(_.OH,{data:function(){return w().videoAttributeViewModels}},{videoAttributeViewModel:fBK}))),_.m(_.OH,{data:function(){return w().footerButton}},{buttonViewModel:function(e){return _.m(_.a1,{data:e.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.m(_.h,{cond:function(){return l()<0&&w().previousButton},
then:function(){return _.m("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.m(_.OH,{data:function(){return w().previousButton}},{buttonViewModel:function(e){return _.m(_.a1,{data:e.data,
onClick:Q})}}))}}),_.m(_.h,{cond:function(){return l()>I()-U()&&w().nextButton},
then:function(){return _.m("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.m(_.OH,{data:function(){return w().nextButton}},{buttonViewModel:function(e){return _.m(_.a1,{data:e.data,
onClick:Z})}}))}})))},"Ad");
bNK.idomCompat=!0;var wAQ=_.b8(function(Y){var b=Y.data;var w=Y.active;var V={},H={};return _.m("timeline-item-view-model",{class:_.hj("ytwTimelineItemViewModelHost",(V.ytwTimelineItemViewModelHostChapterChild=Y.chapterChild,V.ytwTimelineItemViewModelModern=_.q("enable_timeline_view_modern_transcript")||_.q("enable_timeline_view_modern_transcript_fe"),V))},_.m("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.m("div",{class:_.hj("ytwTimelineItemViewModelTimestamp",(H.ytwTimelineItemViewModelTimestampActive=
w,H))},function(){return b().timestamp})),_.m("div",{class:"ytwTimelineItemViewModelContentItems"},_.m(_.OH,{data:function(){return b().contentItems}},{transcriptSegmentViewModel:function(f){return _.m(uCI,{data:f.data,
active:w})},
videoAttributesSectionViewModel:bNK})))},"Bd");var V2C=_.b8(function(Y){var b=Y.data;Y={};return _.m("timeline-chapter-view-model",{class:_.hj("ytwTimelineChapterViewModelHost")},_.m("div",{class:_.hj("ytwTimelineChapterViewModelTitle",(Y.ytwTimelineChapterViewModelModern=_.q("enable_timeline_view_modern_transcript")||_.q("enable_timeline_view_modern_transcript_fe"),Y))},function(){return b().title}),_.m(_.OH,{data:function(){return b().contents}},{timelineItemViewModel:function(w){return _.m(wAQ,{data:w.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(w){return _.m(bNK,{data:w.data})}}))},"Cd");var HN9=_.b8(function(Y){var b=Y.data;var w=_.GM("macro-markers-panel-item-view-model"),V=_.xh(_.v3e,function(){var f;return(f=b().markersEngagementPanelSyncEntityKey)!=null?f:""}),H=function(){var f;
return((f=V())==null?void 0:f.activeItemIndex)===b().index};
Y=_.Q_(function(f){var E,U,X,I,k;return _.c(function(l){if(l.nextAddress==1)return f.stopPropagation(),_.Cs(_.Ad(f),w.value,["A".toString(),"BUTTON".toString()])?l.return():(E=_.zT(b().onTap))?_.D(l,_.DE(),2):l.return();U=l.yieldResult;I=(X=_.v(E,_.TG))==null?void 0:X.startTimeSeconds;I===void 0||(k=U)!=null&&k.seekTo(I,!0);_.om(l)})});
return _.m("macro-markers-panel-item-view-model",{class:_.hj("ytwMacroMarkersPanelItemViewModelHost",{"is-active":H}),el:w,"on:click":Y,tabindex:0},_.m(_.OH,{data:function(){var f;return(f=b())==null?void 0:f.item}},{timelineChapterViewModel:function(f){return _.m(V2C,{data:f.data,
active:H})},
timelineItemViewModel:function(f){return _.m(wAQ,{data:f.data,active:H})},
videoAttributeViewModel:fBK}))},"Dd");
HN9.idomCompat=!0;_.f_(HN9,"macro-markers-panel-item-view-model",{props:{data:_.YX}});_.f_(bNK,"yt-video-attributes-section-view-model",{props:{data:_.YX}});var g4r=_.b8(function(Y){var b=function(){var w,V,H;return(H=(w=Y.data().leadingLogoAccessibility)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label)!=null?H:""};
return _.m("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.m(_.h,{cond:function(){return Y.data().leadingLogo},
then:function(w){return _.m(_.Y_,{className:"ytwFantasySectionHeaderViewModelLogo",data:w,alt:b})}}),_.m("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.m(_.wv,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return Y.data().title}}),_.m(_.wv,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return Y.data().subtitle}})),_.m(_.OH,{data:function(){return Y.data().trailingButton}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var frk=_.b8(function(Y){var b={};b=_.hj("ytwFantasyTeamViewModelHost",(b.ytwFantasyTeamViewModelCompact=function(){var H;return!((H=Y.compact)==null||!H.call(Y))},b.ytwFantasyTeamViewModelUser=function(){return Y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},b.ytwFantasyTeamViewModelOpponent=function(){return Y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},b));
var w=function(){var H,f,E;return(E=(H=Y.data().teamLogoAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)!=null?E:""},V=_.xh(ZJr,function(){return Y.data().teamEntityKey});
return _.m("ytw-fantasy-team-view-model",{class:b},_.m(_.h,{cond:function(){return Y.data().teamLogo},
then:function(H){return _.m(_.Y_,{className:"ytwFantasyTeamViewModelLogo",data:H,alt:w})}}),_.m("div",{class:"ytwFantasyTeamViewModelMetadata"},_.m("div",{class:"ytwFantasyTeamViewModelHeader"},_.m(_.wv,{className:"ytwFantasyTeamViewModelScore",
text:function(){var H;return(H=V())==null?void 0:H.score}}),_.m(_.n_,{icon:function(){var H;
return(H=V())==null?void 0:H.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.m(_.wv,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var H;return(H=V())==null?void 0:H.projectedScore}})),_.m(_.wv,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return Y.data().primaryText}}),_.m(_.wv,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return Y.data().secondaryText}}),_.m(_.wv,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return Y.data().tertiaryText}})),_.m(_.wv,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var H;return(H=V())==null?void 0:H.score}}))},"Fd");_.f_(_.b8(function(Y){return _.m("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.m("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.m(_.OH,{data:function(){return Y.data().summaryHeader}},{fantasySectionHeaderViewModel:g4r})),_.m(_.OH,{data:function(){return Y.data().userTeam}},{fantasyTeamViewModel:frk}),_.m(_.OH,{data:function(){return Y.data().opponentTeam}},{fantasyTeamViewModel:frk}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.YX}});var NdI=_.b8(function(Y){var b=_.ur(Y,{shape:{},useCustomTabRenderable:!1}),w=b.shape;b=b.useCustomTabRenderable;var V=Y.customTabRenderable,H=function(){return w().disabled},f=function(){return w().selected},E=function(){return w().title},U=function(){return w().icon},X=_.GM("yt-tab-shape");
Y=_.Q_(function(l){var x;if(!H()&&((x=w().aTagConfig)==null?0:x.onclick))w().aTagConfig.onclick(l);return!1});
var I=_.Q_(function(l){if(l.key==="Enter"||l.key==="ArrowUp"||l.key==="ArrowDown")l.preventDefault(),X.value.click();return!1}),k={};
return _.m("yt-tab-shape",{class:_.hj("yt-tab-shape-wiz",function(){return w().className},(k["yt-tab-shape-wiz__tab--last-tab"]=function(){return w().isLastTab},k["yt-tab-shape-wiz--host-disabled"]=H,k["yt-tab-shape-wiz--host-clickable"]=!V,k)),
role:V?void 0:"tab","aria-selected":f!=null?f:!1,"aria-disabled":H,tabindex:V?void 0:0,"on:click":Y,"on:keydown":I,el:X,"tab-identifier":function(){return w().identifier},
"tab-title":E},_.m(_.h,{cond:b,then:function(){return V()},
else:function(){var l={},x={};return _.m(_.Uz,null,_.m("div",{class:_.hj("yt-tab-shape-wiz__tab",(l["yt-tab-shape-wiz__tab--tab-selected"]=f,l))},_.m(_.h,{cond:U,then:function(Q){return _.m(_.n_,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return Q().iconType}})}}),E),_.m("div",{class:_.hj("yt-tab-shape-wiz__tab-bar",(x["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=f,x))}))}}))},"Hd");
NdI.idomCompat={callbacks:{customTabRenderable:!0}};_.cCI=_.b8(function(Y){var b=Y.shape;Y=_.N(_.kw(48,void 0,"r9IBlb"));var w=Y.next().value,V=Y.next().value;Y=_.N(_.kw(0,void 0,"Bd7rmd"));var H=Y.next().value,f=Y.next().value,E=function(){return b().tabs},U=_.GM("yt-tab-group-shape"),X=function(){var I,k;
return(k=(I=E())==null?void 0:I.findIndex(function(l){return l.selected}))!=null?k:-1};
_.dx(function(){var I=U.value.querySelectorAll("yt-tab-shape"),k=X()>-1?I[X()]:void 0;_.Lb.addJob(function(){V((k==null?void 0:k.getBoundingClientRect().width)||0)},8,0)});
_.tl(function(){var I=X(),k=_.Lb.addJob(function(){var l,x=((l=U.value)==null?void 0:l.querySelectorAll("yt-tab-shape"))||[],Q;V(((Q=I>-1?x[I]:void 0)==null?void 0:Q.getBoundingClientRect().width)||0);for(Q=l=0;Q<I;Q++)l+=x[Q].offsetWidth+24;_.zO("HTML_DIR")==="rtl"&&(l=-l);f(l)},8,0);
_.R2(function(){_.Lb.cancelJob(k)})},"EHixkc");
Y={};return _.m("yt-tab-group-shape",{class:_.hj("yt-tab-group-shape-wiz",(Y["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return b().isOverflowHidden},Y)),
el:U},_.m(_.h,{cond:E,then:function(I){return _.m(_.Uz,null,_.m("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.m(_.Bf,{each:I},function(k,l){return _.m(NdI,{shape:function(){return Object.assign({},k,{isLastTab:l()===I().length-1})},
customTabRenderable:k.customTabRenderable,useCustomTabRenderable:!!k.customTabRenderable})})),_.m(E4j,{width:w,
sliderOffset:H}))}}))},"Id");
_.cCI.idomCompat=!0;var E4j=_.b8(function(Y){var b=_.JU(Y.sliderOffset,0),w=Y.width;return _.m("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Bb({width:function(){return w()+"px"},
transform:function(){return"translateX("+b()+"px)"}})})},"Jd");var Udk=_.b8(function(Y){var b=function(){var f,E,U;return(U=(f=Y.data().playerLogoAccessibility)==null?void 0:(E=f.accessibilityData)==null?void 0:E.label)!=null?U:""},w=_.xh(BNK,function(){return Y.data().playerEntityKey}),V={};
V=_.hj("ytwFantasyPlayerViewModelHost",(V.ytwFantasyPlayerViewModelPlaying=function(){var f;return!((f=w())==null||!f.isPlayerPlaying)},V.ytwFantasyPlayerViewModelOnField=function(){var f;
return((f=w())==null?void 0:f.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},V.ytwFantasyPlayerViewModelRedZone=function(){var f;
return((f=w())==null?void 0:f.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},V));
var H=function(){var f,E,U,X=((f=_.fH().resolve(_.HQ(_.GT)))==null?0:f())?(E=Y.data().playerLogoBackgroundColor)==null?void 0:E.darkTheme:(U=Y.data().playerLogoBackgroundColor)==null?void 0:U.lightTheme;return X===void 0?"":_.KX(X)};
return _.m("ytw-fantasy-player-view-model",{class:V},_.m(_.h,{cond:function(){return Y.data().playerLogo},
then:function(f){return _.m("div",{class:"ytwFantasyPlayerViewModelLogo"},_.m("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.m(_.Y_,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Bb({"background-color":H}),data:f,alt:b})),_.m("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.m(_.n_,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.m("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.m("div",{class:"ytwFantasyPlayerViewModelHeader"},_.m(_.wv,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var f;return(f=Y.data())==null?void 0:f.playerNameText}}),_.m(_.wv,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var f;return(f=Y.data())==null?void 0:f.playerDescriptionText}})),_.m("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.m(_.wv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var f;return(f=w())==null?void 0:f.gamePeriodText}}),_.m(_.wv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var f;return(f=Y.data())==null?void 0:f.opponentTeamText}}),_.m(_.wv,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var f;return(f=w())==null?void 0:f.gameStatusText}}),_.m(_.wv,{className:_.hj("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var f;return(f=w())==null?void 0:f.playerStatusText}})),_.m("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.m(_.wv,{text:function(){var f;
return(f=w())==null?void 0:f.playerStatsText}}))),_.m(_.wv,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var f;return(f=w())==null?void 0:f.fantasyScore}}))},"Kd");var XA8=_.b8(function(Y){return _.m("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.m(_.h,{cond:function(){return Y.data().players},
then:function(b){return _.m(_.OH,{data:b},{fantasyPlayerViewModel:Udk})}}))},"Ld");var DdI=_.b8(function(Y){var b=_.N(_.Zp(function(){var H;return(H=Y.data().selectedTabIdentifierKey)!=null?H:""})),w=b.next().value,V=b.next().value;
_.tq(function(){var H;(H=Y.setSelectedTabSignal)==null||H.call(Y,w)});
return _.m("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.m("div",{class:"ytTabbedViewModelTabGroup"},_.m(_.cCI,{shape:function(){var H=Y.data(),f=[],E={tabs:f};if(!H.tabs)return E;H=_.N(H.tabs);for(var U=H.next(),X={};!U.done;X={tabViewModel:void 0},U=H.next())if(X.tabViewModel=_.v(U.value,pa8),X.tabViewModel){var I=U=void 0;f.push({aTagConfig:{onclick:function(k){return function(){var l;V((l=k.tabViewModel.tabIdentifier)!=null?l:"")}}(X)},
identifier:X.tabViewModel.tabIdentifier,selected:w()===X.tabViewModel.tabIdentifier,title:(I=(U=X.tabViewModel.title)==null?void 0:U.content)!=null?I:""})}return E}})),_.m(_.OH,{data:function(){var H,f=_.N((H=Y.data().tabs)!=null?H:[]);
for(H=f.next();!H.done;H=f.next())if((H=_.v(H.value,pa8))&&H.tabIdentifier===w())return H.content}},{fantasyRosterViewModel:XA8}))},"Md");_.f_(_.b8(function(Y){var b=_.N(uYI()),w=b.next().value,V=b.next().value;return _.m("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.m(_.wv,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return Y.data().title}}),_.m(_.h,{cond:function(){return Y.data().tabbedViewModel},
then:function(H){return _.m(_.OH,{data:H},{tabbedViewModel:function(f){return _.m(DdI,{data:f.data,setSelectedTabSignal:V})}})}}),_.m(_.h,{cond:function(){var H,f=(H=_.v(Y.data().tabbedViewModel,OLo))==null?void 0:H.tabs;
H=_.v(f==null?void 0:f[0],pa8);f=_.v(f==null?void 0:f[1],pa8);var E=H==null?void 0:H.tabIdentifier;if(w()===E){var U,X;if(!((U=_.v(H==null?void 0:H.content,pY9))==null?0:(X=U.players)==null?0:X.length))return Y.data().noUserTeamPlayersText}else{var I,k;if(!((I=_.v(f==null?void 0:f.content,pY9))==null?0:(k=I.players)==null?0:k.length))return Y.data().noOpponentTeamPlayersText}},
then:function(H){return _.m(_.wv,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:H})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){return _.m("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.m(_.wv,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return Y.data().title}}),_.m(_.h,{cond:function(){return Y.data().matchupTeamPairs},
then:function(b){return _.m(_.Bf,{each:b,keyBy:"INDEX"},function(w){return _.m("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.m(_.OH,{data:function(){return[w().firstTeam,w().secondTeam]}},{fantasyTeamViewModel:function(V){return _.m(frk,{data:V.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=function(){var H,f,E;return(E=(H=Y.data().userLogoAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)!=null?E:""},w=function(){var H,f,E;
return(E=(H=Y.data().opponentLogoAccessibility)==null?void 0:(f=H.accessibilityData)==null?void 0:f.label)!=null?E:""},V=_.xh(Pk6,function(){return Y.data().entityKey});
return _.m("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.m("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.m(_.h,{cond:function(){return Y.data().userLogo},
then:function(H){return _.m(_.Y_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:H,alt:b})}}),_.m("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.m(_.wv,{text:function(){return Y.data().title}})),_.m(_.h,{cond:function(){return Y.data().opponentLogo},
then:function(H){return _.m(_.Y_,{className:"ytwFantasyWinProbabilityViewModelLogo",data:H,alt:w})}})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.m("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.m(_.wv,{text:function(){var H;
return(H=V())==null?void 0:H.userWinNumberLabel}})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.m("div",{class:_.hj("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Bb({flex:function(){var H,f;return(f=(H=V())==null?void 0:H.userWinNumber)!=null?f:50}})}),_.m("div",{class:_.hj("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Bb({flex:function(){var H,f;return(f=(H=V())==null?void 0:H.opponentWinNumber)!=null?f:50}})})),_.m("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.m(_.wv,{text:function(){var H;
return(H=V())==null?void 0:H.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.YX}});_.S9("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var RQ=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerPanels=_.q("web_watch_darker_panels");Y.commentsHidePanelButton=!1;Y.isWatchGrid=!1;Y.continuationShowButton=!1;Y.isSearch=!1;Y.isConstrainedList=!1;Y.isWatch=!1;Y.eligibleToSwitchToGrid=!1;Y.notSticky=!1;Y.epRestyle=!1;Y.isCarouselInFeed=!0;Y.topSpacingZero=!1;Y.continuationIsInitialLoad=!0;Y.enableSqueezebackPanels=_.q("web_shorts_enable_squeezeback_panels");Y.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");Y.mastheadHeight=
0;Y.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};Y.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return Y};
_.P(RQ,_.F);_.g=RQ.prototype;_.g.updateLockupContainerTypes=function(Y){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||b.forEach(function(w){w.containerType=Y})}};
_.g.getItemsPath=function(){return"data.contents"};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.q("kevlar_low_priority_continuation")}}};
_.g.created=function(){this.JSC$14547_cachedViewportHeight=_.zO("initialInnerHeight")||window.innerHeight};
_.g.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.g.handleIntersect=function(Y){this.notSticky=Y[0].intersectionRatio===1};
_.g.attached=function(){var Y=this;document.addEventListener("scroll",_.Io(this,this.updateHeaderState));var b;this.mastheadHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(w){Y.handleIntersect(w)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){Y.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.g.detached=function(){document.removeEventListener("scroll",_.Io(this,this.updateHeaderState));var Y;(Y=this.intersectionObserver)==null||Y.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect()};
_.g.updated=function(Y){Y.has("data")&&this.updateHeaderState()};
_.g.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch($Tj(!this.notSticky))};
_.g.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var Y=_.E6(this.hostElement).querySelector("ytd-comments-header-renderer");Y&&(Y.hidePanelButton=this.commentsHidePanelButton)}};
_.g.onRetrieveLocation=function(Y,b){this.containsComments()&&(this.firstCommentsLoaded=b.hasComments=!0)};
_.g.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.g.onLoadReloadContinuation=function(Y,b){var w=this;Y.stopPropagation();this.isReloading=!0;_.Ua(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(V){var H=_.fH().resolve(_.LX);V=b(V);H.postData(V).then(function(f){w.onReloadContinuationData(f)})}})};
_.g.onReloadContinuationData=function(Y){if(Y=this.get("response.continuationContents.itemSectionContinuation",Y)||this.get("response.contents.itemSectionRenderer",Y)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",Y)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",Y))this.set("data.contents",Y.contents||Y.results),Y.header&&this.set("data.header",Y.header),this.set("data.continuations",
Y.continuations||[]);this.isReloading=!1};
_.g.computeContentsClass=function(Y){return Y?"reloading":""};
_.g.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.g.computeSectionIdentifier=function(Y){return Y==null?void 0:Y.sectionIdentifier};
_.g.computeFitContainer=function(Y){return(Y==null?void 0:Y.sectionIdentifier)==="youchat-item-section"};
_.g.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.q("kevlar_disable_comments_auto_load")};
_.g.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.g.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.g.computeHasDestinationShelfRenderer=function(Y){var b,w;return!!(Y==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:w.destinationShelfRenderer)};
_.g.computeHasSectionGroupViewModel=function(Y){var b,w;return!!(Y==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:w.sectionGroupViewModel)};
_.g.computeHasQrCodeRenderer=function(Y){var b,w;return!!(Y==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:w.qrCodeRenderer)};
_.g.computeStaticCommentsHeader=function(Y){return Y&&this.containsComments()};
_.g.computeEpRestyle=function(Y){return _.q("web_ep_restyling")&&Y&&this.containsComments()};
_.g.computeIsContinuationCommentSection=function(Y){return(Y==null?void 0:Y.targetId)==="shorts-engagement-panel-comments-section"||(Y==null?void 0:Y.targetId)==="comments-section"||(Y==null?void 0:Y.targetId)==="engagement-panel-comments-section"};
_.g.computeSuppressPaddingDisclaimer=function(){var Y,b,w,V;return!!((Y=this.data)==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:(V=w.productListHeaderRenderer)==null?0:V.suppressPaddingDisclaimer)};
_.g.computeHeaderStyle=function(Y){switch(Y==null?void 0:Y.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.g.dataChanged=function(){this.firstCommentsLoaded=!1};
_.g.observeDataContentsLength=function(){var Y,b;((Y=this.data)==null?0:(b=Y.contents)==null?0:b.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.g.onYtDismissibleItemDismissedChange=function(Y){this._setItemDismissed(Y.type==="yt-dismissible-item-dismissed")};
_.g.triggerContinuations=function(){for(var Y=_.E6(this.hostElement).querySelector("#continuations").children,b=0;b<Y.length;b++)Y[b].trigger()};
_.g.triggerInitialContinuations=function(){for(var Y=_.E6(this.hostElement).querySelector("#continuations").children,b=0;b<Y.length;b++)Y[b].triggerIfNotPreviouslyTriggered()};
_.g.handleYtItemSectionContinuation=function(Y,b){var w;b&&((w=this.data)==null?void 0:w.sectionIdentifier)!==b||(this.set("data.continuations",[Y]),this.triggerContinuations())};
_.g.handleYtItemSectionReplace=function(Y,b){var w;b&&((w=this.data)==null?void 0:w.sectionIdentifier)!==b||(this.set("data.contents",Y),this.set("data.continuations",[]))};
_.g.computeUseHeightHack=function(Y){return Y&&!_.q("kevlar_disable_height_hack")};
_.g.computeTopSpacingZero=function(Y){return Y};
_.g.continuationShowButtonChanged=function(){var Y=_.E6(this.hostElement).querySelector("ytd-continuation-item-renderer");Y&&(Y.showButton=this.continuationShowButton)};
_.g.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("data-changed",this.data))};
_.up.Object.defineProperties(RQ.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.q("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!!((Y=this.data)==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:w.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V,H,f,E;return!!((Y=this.data)==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:(V=w.shelfRenderer)==null?0:(H=V.content)==null?0:(f=H.gridRenderer)==null?0:(E=f.targetId)==null?0:E.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!!((Y=this.data)==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:w.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!!((Y=this.data)==null?0:(b=Y.contents)==null?0:(w=b[0])==null?0:w.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.UJ("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.q("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.q("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14547_cachedViewportHeight-130)/150)},
set:function(){}}});
RQ.prototype.dataChangedForBinding=RQ.prototype.dataChangedForBinding;RQ.prototype.continuationShowButtonChanged=RQ.prototype.continuationShowButtonChanged;RQ.prototype.onYtDismissibleItemDismissedChange=RQ.prototype.onYtDismissibleItemDismissedChange;RQ.prototype.observeDataContentsLength=RQ.prototype.observeDataContentsLength;RQ.prototype.dataChanged=RQ.prototype.dataChanged;RQ.prototype.onServiceRequestCompleted=RQ.prototype.onServiceRequestCompleted;RQ.prototype.onLoadReloadContinuation=RQ.prototype.onLoadReloadContinuation;
RQ.prototype.onRetrieveLocation=RQ.prototype.onRetrieveLocation;RQ.prototype.commentsHidePanelButtonChanged=RQ.prototype.commentsHidePanelButtonChanged;RQ.prototype.dispatchChipBarIsSticky=RQ.prototype.dispatchChipBarIsSticky;RQ.prototype.updateLockupContainerTypes=RQ.prototype.updateLockupContainerTypes;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],RQ.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],RQ.prototype,"ytLazyListBehavior",void 0);_.z([_.n(_.Cc.YtNextContinuationBehavior),_.K("design:type",Object)],RQ.prototype,"ytNextContinuationBehavior",void 0);
_.z([_.n(_.Af),_.K("design:type",Object)],RQ.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],RQ.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],RQ.prototype,"ytdReduxBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],RQ.prototype,"darkerPanels",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Boolean)],RQ.prototype,"engagementPanel",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"commentsHidePanelButton",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"isWatchGrid",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"continuationShowButton",void 0);_.z([_.R({computed:"computeIsContinuationCommentSection(data)"}),_.K("design:type",Boolean)],RQ.prototype,"continuationIsCommentsSection",void 0);
_.z([_.R({value:!0}),_.K("design:type",Boolean)],RQ.prototype,"autoFill",void 0);_.z([_.R(),_.K("design:type",Boolean)],RQ.prototype,"continuationDisablePrescanVisibility",void 0);_.z([_.R(),_.K("design:type",Boolean)],RQ.prototype,"isReloading",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"isSearch",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"isConstrainedList",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"isWatch",void 0);
_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"eligibleToSwitchToGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],RQ.prototype,"notSticky",void 0);_.z([_.R({selector:_.Ks}),_.K("design:type",Object)],RQ.prototype,"isGridViewEnabled",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.K("design:type",Object)],RQ.prototype,"epRestyle",void 0);
_.z([_.t("isWatch"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RQ.prototype,"hideShortsShelfHeader",null);_.z([_.t("isSearch","isWatch"),_.K("design:type",String),_.K("design:paramtypes",[])],RQ.prototype,"thumbnailWidth",null);_.z([_.t("isSearch","isWatch"),_.K("design:type",String),_.K("design:paramtypes",[])],RQ.prototype,"sizing",null);
_.z([_.t("isWatch","isGridViewEnabled","data"),_.R({reflectToAttribute:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],RQ.prototype,"lockupContainerType",null);_.z([_.lr("lockupContainerType","data"),_.K("design:type",Function),_.K("design:paramtypes",[Number]),_.K("design:returntype")],RQ.prototype,"updateLockupContainerTypes",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],RQ.prototype,"pageSubtype",void 0);
_.z([_.R({computed:"computeContainerWidth()"}),_.K("design:type",Number)],RQ.prototype,"containerWidth",void 0);_.z([_.R(),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RQ.prototype,"isPlaylist",null);_.z([_.R(),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RQ.prototype,"isClipList",null);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"isCarouselInFeed",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RQ.prototype,"isPlaylistVideoContainer",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RQ.prototype,"isSearchFrictionPage",null);_.z([_.R({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.K("design:type",Boolean)],RQ.prototype,"useHeightHack",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.K("design:type",Object)],RQ.prototype,"topSpacingZero",void 0);_.z([_.R({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.K("design:type",Boolean)],RQ.prototype,"showButton",void 0);_.z([_.R(),_.K("design:type",Boolean)],RQ.prototype,"firstCommentsLoaded",void 0);_.z([_.R(),_.K("design:type",Object)],RQ.prototype,"continuationIsInitialLoad",void 0);
_.z([_.R(),_.K("design:type",Boolean)],RQ.prototype,"isSearchDova",void 0);_.z([_.R({reflectToAttribute:!0,readOnly:!0}),_.K("design:type",Boolean)],RQ.prototype,"itemDismissed",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.K("design:type",String)],RQ.prototype,"sectionIdentifier",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.K("design:type",String)],RQ.prototype,"fitContainer",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.K("design:type",Boolean)],RQ.prototype,"hasDestinationShelfRenderer",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.K("design:type",Boolean)],RQ.prototype,"staticCommentsHeader",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],RQ.prototype,"enableSqueezebackPanels",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],RQ.prototype,"enableAnchoredPanel",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.K("design:type",Boolean)],RQ.prototype,"hasSectionGroupViewModel",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.K("design:type",Boolean)],RQ.prototype,"hasQrCodeRenderer",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.K("design:type",Boolean)],RQ.prototype,"suppressDisclaimerSeparator",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.K("design:type",String)],RQ.prototype,"headerStyle",void 0);_.z([_.t("isSearch"),_.K("design:type",Object),_.K("design:paramtypes",[])],RQ.prototype,"lockupExperiments",null);
_.z([_.t("isSearch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],RQ.prototype,"typographyBump",null);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],RQ.prototype,"header",void 0);_.z([_.lr("notSticky"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RQ.prototype,"dispatchChipBarIsSticky",null);
_.z([_.lr("commentsHidePanelButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RQ.prototype,"commentsHidePanelButtonChanged",null);_.z([_.kZ("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],RQ.prototype,"onRetrieveLocation",null);
_.z([_.kZ("yt-load-reload-continuation"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Function]),_.K("design:returntype")],RQ.prototype,"onLoadReloadContinuation",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RQ.prototype,"onServiceRequestCompleted",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RQ.prototype,"dataChanged",null);
_.z([_.vX("data.contents.length"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RQ.prototype,"observeDataContentsLength",null);_.z([_.kZ("yt-dismissible-item-dismissed"),_.kZ("yt-dismissible-item-undismissed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],RQ.prototype,"onYtDismissibleItemDismissedChange",null);
_.z([_.lr("continuationShowButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RQ.prototype,"continuationShowButtonChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RQ.prototype,"dataChangedForBinding",null);_.z([_.S({is:"ytd-item-section-renderer",disableElementRegistration:!0})],RQ);
_.a(RQ,"ytd-item-section-renderer",function(){if(R5r!==void 0)return R5r;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-item-section-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading(isReloading, continuationIsReloading)]]" class="style-scope ytd-item-section-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-item-section-renderer"></div>\n<div id="continuations" class="style-scope ytd-item-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return R5r=Y},{mode:1});var mdt;var Hrv=_.Gx(_.sa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Ym6={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var o4I={},VJr=(o4I[0]={title:_.NV(_.sa("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NV(_.sa("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:gb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},o4I[1]={title:_.NV(_.sa("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:gb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},o4I);_.S9("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var dq=function(){var Y=_.F.apply(this,arguments)||this;Y.allVideosCount=0;Y.allPlaylistCount=0;Y.shouldRenderDownloadsBanner=!1;Y.hasOptedIntoSmartDownloads=!1;Y.areAllSmartDownloadsDeleted=!1;Y.smartDownloadsCompleted=!1;return Y};
_.P(dq,_.F);dq.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
dq.prototype.attached=function(){this.downloadsToRenderChanged()};
dq.prototype.detached=function(){this.set("renderableData",{})};
dq.prototype.downloadsToRenderChanged=function(){var Y=_.u3().getState().entities,b=_.Of(Y),w=_.q("kevlar_playlist_dl_page_killswitch")?cIv(Y):_.tr(Y),V=_.HLM(Y),H=_.B$(b);Y=_.R8(Y);this.set("renderableData",fPq(w,b,V,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,H,Y))};
dq.prototype.downloadsToRenderChanged=dq.prototype.downloadsToRenderChanged;_.z([_.n(_.FX),_.K("design:type",Object)],dq.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],dq.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],dq.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],dq.prototype,"renderableData",void 0);_.z([_.R({selector:_.QUg}),_.K("design:type",Object)],dq.prototype,"allVideosCount",void 0);_.z([_.R({selector:GR6}),_.K("design:type",Object)],dq.prototype,"allPlaylistCount",void 0);_.z([_.R({selector:_.exI}),_.K("design:type",Object)],dq.prototype,"shouldRenderDownloadsBanner",void 0);_.z([_.R({selector:_.paq}),_.K("design:type",Object)],dq.prototype,"hasOptedIntoSmartDownloads",void 0);
_.z([_.R({selector:_.OLa}),_.K("design:type",Object)],dq.prototype,"areAllSmartDownloadsDeleted",void 0);_.z([_.R({selector:t7G}),_.K("design:type",Object)],dq.prototype,"smartDownloadsCompleted",void 0);_.z([_.vX("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dq.prototype,"downloadsToRenderChanged",null);
_.z([_.S({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],dq);
_.a(dq,"ytd-offline-item-section-renderer",function(){if(mdt!==void 0)return mdt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-offline-item-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return mdt=Y},
{mode:1});var Irj;var kJQ;var Ff=function(){return _.F.apply(this,arguments)||this};
_.P(Ff,_.F);
Ff.prototype.onDataChanged=function(){if(this.JSC$14573_lastData){var Y=this.getFilterClass(this.JSC$14573_lastData.status);Y&&this.hostElement.classList.remove(Y)}var b;(Y=this.getFilterClass((b=this.data)==null?void 0:b.status))&&this.hostElement.classList.add(Y);Y==="selected"?_.E6(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.E6(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");Y==="disabled"?_.E6(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.E6(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14573_lastData=this.data};
Ff.prototype.getFilterClass=function(Y){switch(Y){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Ff.prototype.onDataChanged=Ff.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ff.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ff.prototype,"onDataChanged",null);_.z([_.S({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Ff);
_.a(Ff,"ytd-search-filter-renderer",function(){if(kJQ!==void 0)return kJQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-search-filter-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<div id="label" title="[[data.tooltip]]" class="style-scope ytd-search-filter-renderer">\n    <yt-formatted-string text="[[data.label]]" class="style-scope ytd-search-filter-renderer"></yt-formatted-string>\n    <yt-icon id="dismiss-x" hidden="[[!data.navigationEndpoint]]" icon="yt-icons:dismissal" class="style-scope ytd-search-filter-renderer">\n    </yt-icon>\n  </div>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return kJQ=Y},{mode:_.Xd("kevlar_poly_si_batch_j075")?1:2});var LY=function(){return _.F.apply(this,arguments)||this};
_.P(LY,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],LY.prototype,"data",void 0);_.z([_.S({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],LY);
_.a(LY,"ytd-search-filter-group-renderer",function(){if(Irj!==void 0)return Irj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="filter-group-name" class="style-scope ytd-search-filter-group-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-search-filter-group-renderer"></yt-formatted-string>\n</h4>\n<template is="dom-repeat" items="[[data.filters]]" class="style-scope ytd-search-filter-group-renderer">\n  <template is="dom-if" if="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    <ytd-search-filter-renderer data="[[item.searchFilterRenderer]]" class="style-scope ytd-search-filter-group-renderer">\n    </ytd-search-filter-renderer>\n  </template>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Irj=Y},{mode:_.Xd("kevlar_poly_si_batch_j075")?1:2});var lrd;var Sj=function(){return _.F.apply(this,arguments)||this};
_.P(Sj,_.F);Sj.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.l6());this.isCollapsed=!this.isCollapsed};
Sj.prototype.navigateToAboutTheseResultsPage=function(){var Y=su("https://www.youtube.com/howyoutubeworks/product-features/search/");Y?_.Fk(window,Y,"_blank"):_.K7(Error("Sh"))};
Sj.prototype.dataChanged=function(){this.isCollapsed=!0};
Sj.prototype.computeShowBottomBorder=function(){var Y,b,w;return!!((Y=this.data)==null?0:(b=Y.button)==null?0:b.toggleButtonRenderer)||!((w=this.data)==null||!w.aboutTheseResultsButton)};
Sj.prototype.dataChanged=Sj.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Sj.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.K("design:type",Boolean)],Sj.prototype,"showBottomBorder",void 0);_.z([_.R(),_.K("design:type",Boolean)],Sj.prototype,"renderCollapsibleMenu",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Sj.prototype,"isCollapsed",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sj.prototype,"dataChanged",null);_.z([_.S({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Sj);
_.a(Sj,"ytd-search-sub-menu-renderer",function(){if(lrd!==void 0)return lrd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="filter-menu" class="style-scope ytd-search-sub-menu-renderer">\n  <div id="container" class="style-scope ytd-search-sub-menu-renderer">\n    <ytd-toggle-button-renderer align-by-text="" data="[[data.button.toggleButtonRenderer]]" on-click="toggleFilters" class="style-scope ytd-search-sub-menu-renderer">\n    </ytd-toggle-button-renderer>\n    <template is="dom-if" if="[[data.aboutTheseResultsButton]]" class="style-scope ytd-search-sub-menu-renderer">\n      <ytd-button-renderer align-by-text="" data="[[data.aboutTheseResultsButton.buttonRenderer]]" on-click="navigateToAboutTheseResultsPage" class="style-scope ytd-search-sub-menu-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <template is="dom-if" if="[[renderCollapsibleMenu]]" class="style-scope ytd-search-sub-menu-renderer">\n    <tp-yt-iron-collapse id="collapse" opened="[[!isCollapsed]]" class="style-scope ytd-search-sub-menu-renderer">\n      <div id="collapse-content" class="style-scope ytd-search-sub-menu-renderer">\n        <template is="dom-repeat" items="[[data.groups]]" class="style-scope ytd-search-sub-menu-renderer">\n          <ytd-search-filter-group-renderer data="[[item.searchFilterGroupRenderer]]" class="style-scope ytd-search-sub-menu-renderer">\n          </ytd-search-filter-group-renderer>\n        </template>\n      </div>\n    </tp-yt-iron-collapse>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lrd=Y},{mode:1});var ht_;var xd$=new _.Hx("SECTION_LIST_RENDERER_TOKEN");var qOQ;var aQ=function(){return _.F.apply(this,arguments)||this};
_.P(aQ,_.F);aQ.prototype.computeStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],aQ.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],aQ.prototype,"headerStyle",void 0);_.z([_.S({is:"ytd-text-header-renderer",disableElementRegistration:!0})],aQ);
_.a(aQ,"ytd-text-header-renderer",function(){if(qOQ!==void 0)return qOQ;var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e[[getSimpleString(data.title)]]\n");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return qOQ=Y},{mode:1});var sh9;var rq=function(){return _.F.apply(this,arguments)||this};
_.P(rq,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rq.prototype,"data",void 0);_.z([_.S({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],rq);
_.a(rq,"ytd-minor-moment-header-renderer",function(){if(sh9!==void 0)return sh9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<img src$="[[data.imageUrl]]" alt="" class="minormoment-header-img style-scope ytd-minor-moment-header-renderer">\n<yt-formatted-string id="title" respect-html-dir="" text="[[data.title]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n<yt-formatted-string id="caption" respect-html-dir="" text="[[data.caption]]" class="style-scope ytd-minor-moment-header-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return sh9=Y},{mode:1});var Qht;var zN=function(){return _.F.apply(this,arguments)||this};
_.P(zN,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zN.prototype,"data",void 0);_.z([_.S({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],zN);
_.a(zN,"ytd-minor-moment-setting-alert-renderer",function(){if(Qht!==void 0)return Qht;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.details]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n  <yt-formatted-string class="detail-text style-scope ytd-minor-moment-setting-alert-renderer" text="[[item]]">\n  </yt-formatted-string>\n</template>\n<yt-formatted-string id="link" text="[[data.link]]" class="style-scope ytd-minor-moment-setting-alert-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Qht=Y},{mode:1});var v4C;var PRj;var W3=function(){var Y=_.F.apply(this,arguments)||this;Y.booleanSettingById=!1;Y.smartDownloadsEnabledVE=_.tj(128287);Y.smartDownloadsDisabledVE=_.tj(128286);Y.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return Y};
_.P(W3,_.F);_.g=W3.prototype;_.g.attachSmartDownloadsSettingVes=function(){var Y;this.activeVeForLogging||((Y=this.data)==null?void 0:Y.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.oC(_.Qd(),this.smartDownloadsEnabledVE),_.oC(_.Qd(),this.smartDownloadsDisabledVE))};
_.g.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Ua(this.hostElement,"yt-settings-switch-ready")};
_.g.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.g.onSwitchChange=function(Y){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(Y=_.uW(Y).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.q("kevlar_settings_switch_resolve_command_killswitch")?_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(Y)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.g.handleUpdateSettingsSwitch=function(Y){(Y=_.v(Y,TMk))&&this.data&&this.data.id===Y.id&&this.set("data.enabled",!!Y.enabled)};
_.g.onToggleSettingsSwitch=function(Y,b){this.data&&this.data.id===Y&&this.set("data.enabled",b!=null?b:!this.data.enabled)};
_.g.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Vy.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.g.maybeLogSmartDownloadsSettingVisibility=function(){var Y=_.dO(),b;Y&&((b=this.data)==null?void 0:b.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Gu(Y,[this.smartDownloadsEnabledVE]),_.Tu(Y,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Gu(Y,[this.smartDownloadsDisabledVE]),_.Tu(Y,[this.smartDownloadsEnabledVE])))};
_.g.maybeLogSmartDownloadsSettingClick=function(){var Y;((Y=this.data)==null?void 0:Y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.kV(_.Qd(),this.activeVeForLogging)};
_.g.updateDataEnabledFromBinding=function(Y){this.set("data.enabled",Y.detail.value)};
_.up.Object.defineProperties(W3.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!Y&&(Y=this.ytRendererBehavior.getSimpleString(this.data.title));return Y}}});
W3.prototype.dataChanged=W3.prototype.dataChanged;_.z([_.n(_.FX),_.K("design:type",Object)],W3.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],W3.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],W3.prototype,"ytComponentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],W3.prototype,"data",void 0);_.z([_.R({selector:function(Y,b){if(Object.keys(Y==null?void 0:Y.entities).length)switch(b){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return UmI(Y.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.K("design:type",Object)],W3.prototype,"booleanSettingById",void 0);_.z([_.R(),_.K("design:type",_.tw)],W3.prototype,"activeVeForLogging",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],W3.prototype,"toggleAriaLabel",null);_.z([_.vX("data"),_.vX("booleanSettingById"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W3.prototype,"dataChanged",null);
_.z([_.S({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],W3);
_.a(W3,"ytd-settings-switch-renderer",function(){if(PRj!==void 0)return PRj;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-switch-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-toggle-button id="toggle" aria-label$="[[toggleAriaLabel]]" checked="[[data.enabled]]" noink="" on-change="onSwitchChange" on-checked-changed="updateDataEnabledFromBinding" class="style-scope ytd-settings-switch-renderer">\n  <div id="toggle-container" class="style-scope ytd-settings-switch-renderer"></div>\n</tp-yt-paper-toggle-button>\n<div class="style-scope ytd-settings-switch-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  <div id="icon" hidden="[[!data.thumbnail]]" class="style-scope ytd-settings-switch-renderer">\n    <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-settings-switch-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-settings-switch-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return PRj=Y},{mode:1});var KY=function(){return _.F.apply(this,arguments)||this};
_.P(KY,_.F);KY.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}}}}};
_.up.Object.defineProperties(KY.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var Y=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(Y+=" remove-left-margin");this.data.extraBottomSpace&&(Y+=" extra-bottom-space");return Y}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],KY.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],KY.prototype,"contentsClassName",null);_.z([_.S({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],KY);
_.a(KY,"ytd-minor-moment-setting-section-renderer",function(){if(v4C!==void 0)return v4C;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-minor-moment-setting-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class$="[[contentsClassName]] style-scope ytd-minor-moment-setting-section-renderer">\n  <div id="title" hidden="[[!data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-minor-moment-setting-section-renderer"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="header" hidden="[[!data.header]]" text="[[data.header]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="summary" hidden="[[!data.summary]]" text="[[data.summary]]" class="style-scope ytd-minor-moment-setting-section-renderer">\n  </yt-formatted-string>\n  <div id="settings" hidden="[[!data.settings]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n  <div id="alerts" hidden="[[!data.alerts]]" class="style-scope ytd-minor-moment-setting-section-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return v4C=Y},{mode:1});var ZNK;var iw=function(){return _.F.apply(this,arguments)||this};
_.P(iw,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],iw.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],iw.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],iw);
_.a(iw,"ytd-empty-product-details-renderer",function(){if(ZNK!==void 0)return ZNK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-empty-product-details-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-empty-product-details-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ZNK=Y},{mode:1});var Bdo;var n4o;var A7=function(){var Y=_.F.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.P(A7,_.F);A7.prototype.getBadgeRowClass=function(Y,b,w){for(var V=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),H=V.next();!H.done;H=V.next())H.value.onShow();Y=Y.selected;return w?Y!==-1?Y===b?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(Y!==void 0?Y:0)===b?"badge-line":"badge-hidden"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],A7.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],A7.prototype,"expanded",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],A7);
_.a(A7,"ytd-sponsorships-loyalty-badges-renderer",function(){if(n4o!==void 0)return n4o;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-loyalty-badges-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="description-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <yt-formatted-string class="description style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div class="badge-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n  <template is="dom-repeat" items="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-loyalty-badges-renderer">\n    <div class$="[[getBadgeRowClass(data, index, expanded)]] style-scope ytd-sponsorships-loyalty-badges-renderer">\n      <div class="badge-title-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-formatted-string class="badge-title style-scope ytd-sponsorships-loyalty-badges-renderer" text="[[item.sponsorshipsLoyaltyBadgeRenderer.title]]">\n        </yt-formatted-string>\n      </div>\n      <div class="icon-container style-scope ytd-sponsorships-loyalty-badges-renderer">\n        <yt-img-shadow class="badge-icon style-scope ytd-sponsorships-loyalty-badges-renderer" thumbnail="[[item.sponsorshipsLoyaltyBadgeRenderer.icon]]">\n        </yt-img-shadow>\n      </div>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return n4o=Y},{mode:1});var M2I;var CY=function(){var Y=_.F.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.P(CY,_.F);CY.prototype.getContainerClasses=function(Y,b){Y=Y?"expanded":"collapsed";b&&(Y+=" item");return Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CY.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],CY.prototype,"expanded",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],CY);
_.a(CY,"ytd-sponsorships-perk-renderer",function(){if(M2I!==void 0)return M2I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perk-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class$="[[getContainerClasses(expanded, data.title)]] style-scope ytd-sponsorships-perk-renderer">\n  <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n  <div id="expandable" hidden$="[[!expanded]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <template is="dom-if" if="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n    <template is="dom-if" if="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer">\n      <div id="fulfillment-instructions" class="style-scope ytd-sponsorships-perk-renderer"><yt-formatted-string split-lines="1" text="[[data.fulfillmentInstructions]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string></div>\n    </template>\n  </div>\n  <template is="dom-if" if="[[data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <ytd-sponsorships-loyalty-badges-renderer data="[[data.loyaltyBadges.sponsorshipsLoyaltyBadgesRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></ytd-sponsorships-loyalty-badges-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.loyaltyBadges]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <div id="images-line" class="style-scope ytd-sponsorships-perk-renderer">\n      <yt-formatted-string id="image-description" text="[[data.imageDescription]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-formatted-string>\n      <template is="dom-if" if="[[data.images]]" class="style-scope ytd-sponsorships-perk-renderer">\n        <template is="dom-repeat" items="[[data.images]]" as="image" class="style-scope ytd-sponsorships-perk-renderer">\n          <yt-img-shadow class="images style-scope ytd-sponsorships-perk-renderer" thumbnail="[[image]]"></yt-img-shadow>\n        </template>\n      </template>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.loyaltyMessage]]" class="style-scope ytd-sponsorships-perk-renderer">\n    <yt-live-chat-membership-item-renderer data="[[data.loyaltyMessage.liveChatMembershipItemRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perk-renderer"></yt-live-chat-membership-item-renderer>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return M2I=Y},{mode:1});var etd;var yP=function(){var Y=_.F.apply(this,arguments)||this;Y.expanded=!0;return Y};
_.P(yP,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yP.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],yP.prototype,"expanded",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],yP);
_.a(yP,"ytd-sponsorships-perks-renderer",function(){if(etd!==void 0)return etd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="perks-title" hidden="[[!data.perksTitle]]" text="[[data.perksTitle]]" class="style-scope ytd-sponsorships-perks-renderer">\n</yt-formatted-string>\n<template is="dom-repeat" items="[[data.perks]]" class="style-scope ytd-sponsorships-perks-renderer">\n  <div class="item style-scope ytd-sponsorships-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-perks-renderer">\n    </ytd-sponsorships-perk-renderer>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return etd=Y},{mode:1});var $0=function(){var Y=_.F.apply(this,arguments)||this;Y.isCollapsed=!1;return Y};
_.P($0,_.F);$0.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
$0.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
$0.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var Y;this.expandCollapseButton=_.v((Y=this.data)==null?void 0:Y.expandButton,_.Wa)}else{var b;this.expandCollapseButton=_.v((b=this.data)==null?void 0:b.collapseButton,_.Wa)}};
$0.prototype.updateExpandCollapseButton=$0.prototype.updateExpandCollapseButton;$0.prototype.onDataChanged=$0.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$0.prototype,"isCollapsed",void 0);_.z([_.R(),_.K("design:type",Object)],$0.prototype,"expandCollapseButton",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$0.prototype,"onDataChanged",null);_.z([_.vX("data","isCollapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$0.prototype,"updateExpandCollapseButton",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],$0);
_.a($0,"ytd-sponsorships-expandable-perks-renderer",function(){if(Bdo!==void 0)return Bdo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-perks-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="badged-title style-scope ytd-sponsorships-expandable-perks-renderer">\n  <yt-img-shadow thumbnail="[[data.badge]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-img-shadow>\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string class="subtitle style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n<hr class="style-scope ytd-sponsorships-expandable-perks-renderer">\n<yt-formatted-string class="expandable-heading style-scope ytd-sponsorships-expandable-perks-renderer" text="[[data.expandableHeader]]"></yt-formatted-string>\n<ytd-button-renderer class="end-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.endButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="bottom-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[data.bottomButton.buttonRenderer]]"></ytd-button-renderer>\n<ytd-button-renderer class="expand-collapse-button style-scope ytd-sponsorships-expandable-perks-renderer" data="[[expandCollapseButton]]" noink="" on-click="onExpandCollapse"></ytd-button-renderer>\n\n<div class="expandable-content style-scope ytd-sponsorships-expandable-perks-renderer">\n  <template is="dom-repeat" items="[[data.expandableItems]]" as="item" class="style-scope ytd-sponsorships-expandable-perks-renderer">\n    <ytd-sponsorships-perk-renderer data="[[item.sponsorshipsPerkRenderer]]" class="style-scope ytd-sponsorships-expandable-perks-renderer"></ytd-sponsorships-perk-renderer>\n  </template>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Bdo=Y},{mode:1});var pAo;var jj=function(){return _.F.apply(this,arguments)||this};
_.P(jj,_.F);jj.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],jj.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jj.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],jj);
_.a(jj,"ytd-sponsorships-actionable-message-renderer",function(){if(pAo!==void 0)return pAo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-actionable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<button on-click="handleAction" class="style-scope ytd-sponsorships-actionable-message-renderer">\n  <yt-img-shadow id="icon" height="24" thumbnail="[[data.icon]]" width="24" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-img-shadow>\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-actionable-message-renderer"></yt-formatted-string>\n</button>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return pAo=Y},{mode:1});var ONK;var GN=function(){return _.F.apply(this,arguments)||this};
_.P(GN,_.F);_.g=GN.prototype;_.g.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.g.getExpansionIcon=function(Y){return Y?"COLLAPSE":"EXPAND"};
_.g.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.g.computeMessageContainerStyle=function(Y){var b=Y.expandableItems?" style-clickable":"";return Y.messageContainerStyle?Y.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+b:"style-unspecified"+b};
_.g.isSinglePerk=function(Y){return!!Y.messageContainerStyle&&(Y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||Y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.g.onExpandedChanged=function(){var Y=this;if(this.expanded)for(var b=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),w=b.next();!w.done;w=b.next())w.value.onShow();_.TC(this,function(){_.Ua(Y.hostElement,"yt-refit")})};
_.g.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
GN.prototype.onDataChanged=GN.prototype.onDataChanged;GN.prototype.onExpandedChanged=GN.prototype.onExpandedChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],GN.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],GN.prototype,"expanded",void 0);
_.z([_.lr("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GN.prototype,"onExpandedChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GN.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],GN);
_.a(GN,"ytd-sponsorships-expandable-message-renderer",function(){if(ONK!==void 0)return ONK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-expandable-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class$="[[computeMessageContainerStyle(data)]] style-scope ytd-sponsorships-expandable-message-renderer">\n  <button id="message-container" on-tap="onToggleExpand" class="style-scope ytd-sponsorships-expandable-message-renderer">\n    <template is="dom-if" if="[[isSinglePerk(data)]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="check-icon" icon="yt-icons:check" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n    <yt-formatted-string class="text style-scope ytd-sponsorships-expandable-message-renderer" text="[[data.text]]"></yt-formatted-string>\n    <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-expandable-message-renderer">\n      <yt-icon id="expand-icon" icon="[[getExpansionIcon(expanded)]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></yt-icon>\n    </template>\n  </button>\n  <div id="content-container" hidden="[[!expanded]]" class="style-scope ytd-sponsorships-expandable-message-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ONK=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var t2$;var TN=function(){return _.F.apply(this,arguments)||this};
_.P(TN,_.F);TN.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"}}}}};
TN.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.v(this.data.endButton,_.Wa).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
TN.prototype.onDataChanged=TN.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],TN.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],TN.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TN.prototype,"onDataChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],TN);
_.a(TN,"ytd-sponsorships-heading-renderer",function(){if(t2$!==void 0)return t2$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-heading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-heading-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  <div id="subtitle-content" hidden="[[!data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer">\n    <yt-img-shadow id="subtitle-icon" hidden="[[!data.subtitleIcon]]" thumbnail="[[data.subtitleIcon]]" class="style-scope ytd-sponsorships-heading-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-sponsorships-heading-renderer"></yt-formatted-string>\n  </div>\n  <div id="bottom-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n</div>\n<div id="end-button" class="style-scope ytd-sponsorships-heading-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return t2$=Y},{mode:1});var Rt$;var J7=function(){return _.F.apply(this,arguments)||this};
_.P(J7,_.F);_.z([_.R(),_.K("design:type",Object)],J7.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],J7);
_.a(J7,"ytd-sponsorships-links-renderer",function(){if(Rt$!==void 0)return Rt$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-links-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-sponsorships-links-renderer">\n  <yt-formatted-string class="link style-scope ytd-sponsorships-links-renderer" link-inherit-color="" text="[[item]]">\n</yt-formatted-string></template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Rt$=Y},{mode:1});var ddI;var uw=function(){return _.F.apply(this,arguments)||this};
_.P(uw,_.F);_.g=uw.prototype;_.g.onDataChanged=function(){if(this.data&&this.data.expandableItems){var Y;(Y=_.E6(this.hostElement).querySelector("tp-yt-paper-button"))==null||Y.setAttribute("role","button")}else{var b;(b=_.E6(this.hostElement).querySelector("tp-yt-paper-button"))==null||b.removeAttribute("role")}};
_.g.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.g.getExpansionIcon=function(Y){return Y?"COLLAPSE":"EXPAND"};
_.g.getTileClasses=function(Y){return Y?"tile expandable-tile":"tile"};
_.g.getButtonDisabled=function(Y){return Y?void 0:""};
uw.prototype.onDataChanged=uw.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],uw.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],uw.prototype,"expanded",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uw.prototype,"onDataChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],uw);
_.a(uw,"ytd-sponsorships-list-tile-renderer",function(){if(ddI!==void 0)return ddI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-list-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="tile" class="tile style-scope ytd-sponsorships-list-tile-renderer" class$="[[getTileClasses(data.expandableItems)]]" disabled$="[[getButtonDisabled(data.expandableItems)]]" noink="" on-tap="onToggleExpand">\n  <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[data.icon]]"></yt-img-shadow>\n  <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[data.title]]"></yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[data.subtitle]]"></yt-formatted-string>\n    <yt-formatted-string class="detail style-scope ytd-sponsorships-list-tile-renderer" text="[[data.detail]]"></yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-list-tile-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </template>\n</tp-yt-paper-button>\n\n<template is="dom-if" if="[[expanded]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n  <div class="tiles-container style-scope ytd-sponsorships-list-tile-renderer">\n    <template is="dom-repeat" items="[[data.expandableItems]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n      <template is="dom-if" if="[[item.sponsorshipsLoyaltyBadgesRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <ytd-sponsorships-loyalty-badges-renderer class="sponsorships-loyalty-badges-renderer style-scope ytd-sponsorships-list-tile-renderer" data="[[item.sponsorshipsLoyaltyBadgesRenderer]]"></ytd-sponsorships-loyalty-badges-renderer>\n      </template>\n      <template is="dom-if" if="[[item.sponsorshipsListTileRenderer]]" class="style-scope ytd-sponsorships-list-tile-renderer">\n        <div class="tile style-scope ytd-sponsorships-list-tile-renderer">\n          <yt-img-shadow class="icon style-scope ytd-sponsorships-list-tile-renderer" thumbnail="[[item.sponsorshipsListTileRenderer.icon]]">\n          </yt-img-shadow>\n          <div class="titles style-scope ytd-sponsorships-list-tile-renderer">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-list-tile-renderer" text="[[item.sponsorshipsListTileRenderer.subtitle]]">\n            </yt-formatted-string>\n          </div>\n        </div>\n      </template>\n    </template>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ddI=Y},{mode:1});var F1t;var L1j;var Y3=function(){return _.F.apply(this,arguments)||this};
_.P(Y3,_.F);Y3.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Y3.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],Y3);
_.a(Y3,"ytd-sponsorships-promotion-renderer",function(){if(L1j!==void 0)return L1j;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-promotion-renderer">\n  <div id="above-button" class="style-scope ytd-sponsorships-promotion-renderer">\n    <yt-formatted-string class="above-redeem-button-text style-scope ytd-sponsorships-promotion-renderer" text="[[data.aboveRedeemButtonText]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-promotion-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n  <div id="redeem-button" class="style-scope ytd-sponsorships-promotion-renderer"></div>\n  <yt-formatted-string class="redeem-disclaimer style-scope ytd-sponsorships-promotion-renderer" split-lines="true" text="[[data.redeemDisclaimer]]"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return L1j=Y},{mode:1});var SOd;var bk=function(){return _.F.apply(this,arguments)||this};
_.P(bk,_.F);bk.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],bk.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],bk);
_.a(bk,"ytd-sponsorships-purchase-option-renderer",function(){if(SOd!==void 0)return SOd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-purchase-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-purchase-option-renderer">\n  <div id="purchase-info" class="style-scope ytd-sponsorships-purchase-option-renderer">\n    <div id="header" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      <yt-formatted-string class="purchase-text style-scope ytd-sponsorships-purchase-option-renderer" text="[[data.text]]"></yt-formatted-string>\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-sponsorships-purchase-option-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-purchase-option-renderer" split-lines="true" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div id="purchase-button" class="style-scope ytd-sponsorships-purchase-option-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return SOd=Y},{mode:1});var arC;var rCI;var ztC=function(){return _.F.apply(this,arguments)||this};
_.P(ztC,_.F);_.z([_.R(),_.K("design:type",Object)],ztC.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],ztC);
_.a(ztC,"ytd-ypc-offer-promo-renderer",function(){if(rCI!==void 0)return rCI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offer-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ypc-offer-promo-renderer">\n  <yt-icon id="icon" icon="[[data.icon.iconType]]" class="style-scope ytd-ypc-offer-promo-renderer"></yt-icon>\n  <div id="benefit-info" class="style-scope ytd-ypc-offer-promo-renderer">\n    <div id="header" class="style-scope ytd-ypc-offer-promo-renderer">\n      <yt-formatted-string class="title style-scope ytd-ypc-offer-promo-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </div>\n    <div id="badge-section" class="style-scope ytd-ypc-offer-promo-renderer">\n      <ytd-badge-supported-renderer id="badge" top-standalone-badge="[[data.badge]]" class="style-scope ytd-ypc-offer-promo-renderer">\n        </ytd-badge-supported-renderer>\n    <yt-formatted-string class="subtitle style-scope ytd-ypc-offer-promo-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n    </div>\n  </div>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return rCI=Y},{mode:1});var wN=function(){return _.F.apply(this,arguments)||this};
_.P(wN,_.F);_.g=wN.prototype;
_.g.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"}}}}};
_.g.expansionCTA=function(Y,b){return Y&&(b?Y.collapseCallToAction:Y.expansionCallToAction)};
_.g.getExpansionIcon=function(Y){return Y?"COLLAPSE":"EXPAND"};
_.g.expansionCallToActionTap=function(){var Y=this;this.expanded=!this.expanded;_.TC(this,function(){_.Ua(Y.hostElement,"yt-refit")})};
_.g.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var Y,b=(Y=this.data)==null?void 0:Y.onVisible;b&&this.ytComponentBehavior.resolveCommand(b)};
_.g.computeDisplayTitle=function(Y){return!(!Y||this.titledisplaystatus!=="show")};
_.g.computeDisplaySeparator=function(){return!1};
_.g.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
wN.prototype.onDataChanged=wN.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],wN.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],wN.prototype,"data",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],wN.prototype,"expanded",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],wN.prototype,"purchaseButtonClicked",void 0);_.z([_.R({reflectToAttribute:!0,value:"show"}),_.K("design:type",String)],wN.prototype,"titledisplaystatus",void 0);_.z([_.R({computed:"computeDisplayTitle(data.title)"}),_.K("design:type",Boolean)],wN.prototype,"displayTitle",void 0);
_.z([_.R({computed:"computeDisplaySeparator(data)"}),_.K("design:type",Boolean)],wN.prototype,"displaySeparator",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wN.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],wN);
_.a(wN,"ytd-sponsorships-tier-renderer",function(){if(arC!==void 0)return arC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-tier-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="title" hidden="[[!displayTitle]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n</div>\n<div id="offer-promo" hidden="[[!data.offerPromoCard]]" class="style-scope ytd-sponsorships-tier-renderer">\n</div>\n<div id="purchase-with-options" hidden="[[!data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!data.alternativePurchaseOption]]"></div>\n  <div id="alternative-purchase-option" class="style-scope ytd-sponsorships-tier-renderer"></div>\n</div>\n<div id="default-purchase-view" hidden="[[data.purchaseOption]]" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="above-purchase-button" hidden="[[!data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string id="above-purchase-button-text" text="[[data.abovePurchaseButtonText]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-formatted-string id="above-purchase-button-text-subtitle" class="subtitle style-scope ytd-sponsorships-tier-renderer" text="[[data.abovePurchaseButtonTextSubtitle]]"></yt-formatted-string>\n  </div>\n  <div id="premium-freebie-promo" class="style-scope ytd-sponsorships-tier-renderer"></div>\n  <div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n  <div id="header" class="style-scope ytd-sponsorships-tier-renderer">\n    <div id="purchase-button" on-tap="onPurchaseButtonTap" class="style-scope ytd-sponsorships-tier-renderer"></div>\n    \n    <yt-formatted-string id="purchase-text" force-default-style="" hidden="[[!data.purchaseText]]" text="[[data.purchaseText]]" class="style-scope ytd-sponsorships-tier-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.disclaimer]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="separator style-scope ytd-sponsorships-tier-renderer" hidden="[[!displaySeparator]]"></div>\n<div id="expandable-message" class="style-scope ytd-sponsorships-tier-renderer"></div>\n<div id="content" class="style-scope ytd-sponsorships-tier-renderer">\n  <div id="perks_section" class="style-scope ytd-sponsorships-tier-renderer">\n    <ytd-sponsorships-perks-renderer id="perks" data="[[data.perks.sponsorshipsPerksRenderer]]" expanded="[[expanded]]" class="style-scope ytd-sponsorships-tier-renderer"></ytd-sponsorships-perks-renderer>\n  </div>\n  <button id="expansion_call_to_action" on-tap="expansionCallToActionTap" hidden="[[!data.expansionCallToAction]]" class="style-scope ytd-sponsorships-tier-renderer">\n    <yt-formatted-string text="[[expansionCTA(data, expanded)]]" class="style-scope ytd-sponsorships-tier-renderer"></yt-formatted-string>\n    <yt-icon class="expand-icon style-scope ytd-sponsorships-tier-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </button>\n</div>\n<div id="footer" class="style-scope ytd-sponsorships-tier-renderer">\n  <yt-formatted-string id="bottom-disclaimer" class="disclaimer style-scope ytd-sponsorships-tier-renderer" split-lines="true" text="[[data.bottomDisclaimer]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return arC=Y},{mode:2});var Vp=function(){return _.F.apply(this,arguments)||this};
_.P(Vp,_.F);
Vp.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"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Vp.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Vp);
_.a(Vp,"ytd-sponsorships-management-renderer",function(){if(F1t!==void 0)return F1t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-management-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-renderer" class="style-scope ytd-sponsorships-management-renderer"></div>\n<div id="main-section" class="style-scope ytd-sponsorships-management-renderer">\n  <div id="content" class="style-scope ytd-sponsorships-management-renderer"></div>\n  <div id="sidebar" class="style-scope ytd-sponsorships-management-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return F1t=Y},{mode:1});var W1_;var HG=function(){return _.F.apply(this,arguments)||this};
_.P(HG,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],HG.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],HG);
_.a(HG,"ytd-open-in-native-app-view-model",function(){if(W1_!==void 0)return W1_;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-open-in-native-app-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string id="title" data="[[data.title]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-image id="image" data="[[data.image]]" ftl-eligible="" height="162" width="200" class="style-scope ytd-open-in-native-app-view-model">\n</yt-image>\n<yt-attributed-string id="text" data="[[data.detailsText]]" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n<yt-attributed-string id="link" data="[[data.learnMoreLink]]" force-default-style="" class="style-scope ytd-open-in-native-app-view-model">\n</yt-attributed-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return W1_=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var K1K;var iNC;var ACK=_.wM(["top-"]),CR_=_.wM(["bottom-"]),yC$=_.wM(["left-"]),$dd=_.wM(["right-"]),jh8={},GJQ=function(Y,b,w){Y.removeAttribute("top-"+w);Y.removeAttribute("bottom-"+w);Y.removeAttribute("left-"+w);Y.removeAttribute("right-"+w);b&&(b.top&&_.Az([_.wF(ACK)],Y,"top-"+w,b.top),b.bottom&&_.Az([_.wF(CR_)],Y,"bottom-"+w,b.bottom),b.left&&_.Az([_.wF(yC$)],Y,"left-"+w,b.left),b.right&&_.Az([_.wF($dd)],Y,"right-"+w,b.right))};
jh8.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(Y){var b,w=_.E6((b=this.hostElement)!=null?b:this),V;b=this.cardItemBoxBehaviorMarginTargetId&&w?w.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(V=this.hostElement)!=null?V:this;GJQ(b,Y,"margin")},
cardItemContainerPaddingChanged_:function(Y){var b,w=_.E6((b=this.hostElement)!=null?b:this),V;b=this.cardItemBoxBehaviorPaddingTargetId&&w?w.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(V=this.hostElement)!=null?V:this;GJQ(b,Y,"padding")}}];var gN={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 Tdr;var JC$;var fJ=function(){return _.F.apply(this,arguments)||this};
_.P(fJ,_.F);fJ.prototype.textColorChanged_=function(){this.hostElement.style.color=gN[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
fJ.prototype.textColorChanged_=fJ.prototype.textColorChanged_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(jh8.YtCardItemBoxBehavior),_.K("design:type",Object)],fJ.prototype,"ytCardItemBoxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],fJ.prototype,"data",void 0);_.z([_.lr("data.textColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fJ.prototype,"textColorChanged_",null);
_.z([_.FM({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],fJ);
_.a(fJ,"yt-card-item-text-renderer",function(){if(JC$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_renderer.yt.card.item.text.renderer.css.js--\x3e<yt-formatted-string id="card-text" force-default-style="" split-lines="1" text="[[data.text]]" text-style$="[[data.style]]" class="style-scope yt-card-item-text-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Tdr===void 0&&(Tdr=document.createElement("template"));var V=Tdr;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);JC$=Y}Y=JC$;return Y},{mode:2});var ujC;var YWk;var Ni=function(){return _.F.apply(this,arguments)||this};
_.P(Ni,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ni.prototype,"data",void 0);_.z([_.FM({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Ni);
_.a(Ni,"yt-card-item-badge-renderer",function(){if(YWk===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_badge_renderer.yt.card.item.badge.renderer.css.js--\x3e<div id="card-block" class="style-scope yt-card-item-badge-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden$="[[!data.badges]]" class="style-scope yt-card-item-badge-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" split-lines="1" text="[[data.text]]" class="style-scope yt-card-item-badge-renderer">\n  </yt-formatted-string>\n</div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;ujC===void 0&&(ujC=document.createElement("template"));var V=ujC;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);YWk=Y}Y=YWk;return Y},{mode:2});var bK9;var wJC;var E4=function(){return _.F.apply(this,arguments)||this};
_.P(E4,_.F);E4.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],E4.prototype,"data",void 0);_.z([_.FM({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],E4);
_.a(E4,"yt-card-item-text-collection-renderer",function(){if(wJC===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-collection-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_collection_renderer.yt.card.item.text.collection.renderer.css.js--\x3e<div id="text-renderers" text-alignment$="[[data.textAlignment]]" class="style-scope yt-card-item-text-collection-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;bK9===void 0&&(bK9=document.createElement("template"));var V=bK9;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);wJC=Y}Y=wJC;return Y},{mode:2});var VnQ;var HK_;var cG=function(){return _.F.apply(this,arguments)||this};
_.P(cG,_.F);cG.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]]"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],cG.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Number)],cG.prototype,"iconSize",void 0);_.z([_.FM({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],cG);
_.a(cG,"yt-card-item-text-with-button-renderer",function(){if(HK_===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_button_renderer.yt.card.item.text.with.button.renderer.css.js--\x3e<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-button-renderer"></div>\n<div id="primary-button" aria-hidden="true" class="style-scope yt-card-item-text-with-button-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;VnQ===void 0&&(VnQ=document.createElement("template"));var V=VnQ;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);HK_=Y}Y=HK_;return Y},{mode:2});var U4=function(){return _.F.apply(this,arguments)||this};
_.P(U4,_.F);U4.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],U4.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],U4.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],U4);
_.a(U4,"ytd-commerce-cart-summary-line-item-renderer",function(){if(iNC!==void 0)return iNC;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-line-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="summary-content" class="style-scope ytd-commerce-cart-summary-line-item-renderer">\n  <div id="summary-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n  <div id="additional-metadata-text" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n</div>\n<div id="price" class="style-scope ytd-commerce-cart-summary-line-item-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return iNC=Y},{mode:1});_.S9("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var XN=function(){var Y=_.F.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.P(XN,_.F);_.g=XN.prototype;_.g.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"}}}}};
_.g.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.g.updateSummary=function(){var Y=this.commerceCartCheckoutButtonEntity,b;if(((b=this.data)==null?0:b.cartButton)&&Y.checkoutSummaryText){var w,V=Kx((w=this.data)==null?void 0:w.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",iJ(Y.checkoutSummaryText));if(Y.checkoutDetailText){var H;w=Kx((H=this.data)==null?void 0:H.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+w+".cardItemTextRenderer.text",iJ(Y.checkoutDetailText))}if(Y.checkoutAdditionalMetadataText){var f;
H=Kx((f=this.data)==null?void 0:f.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",iJ(Y.checkoutAdditionalMetadataText))}}else Y.estimatedTotalPrice&&(f=Kx((V=this.data)==null?void 0:V.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",iJ(Y.estimatedTotalPrice)))};
_.g.updateIsHidden=function(){var Y,b=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isHidden;b!==void 0&&(this.hidden=b)};
_.g.updateCheckoutButton=function(){var Y,b=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isDisabled;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",b);var w;Y=(w=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:w.innertubeCommand;Y!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",Y);var V;w=(V=this.commerceCartCheckoutButtonEntity)==null?void 0:V.checkoutButtonText;w!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:w})};
XN.prototype.entityChanged=XN.prototype.entityChanged;_.z([_.n(_.FX),_.K("design:type",Object)],XN.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],XN.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],XN.prototype,"fullWidth",void 0);_.z([_.R(),_.K("design:type",Object)],XN.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],XN.prototype,"compact",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],XN.prototype,"hidden",void 0);
_.z([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:MEM}),_.K("design:type",Object)],XN.prototype,"commerceCartCheckoutButtonEntity",void 0);_.z([_.lr("commerceCartCheckoutButtonEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XN.prototype,"entityChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],XN);
_.a(XN,"ytd-commerce-cart-checkout-button-renderer",function(){if(K1K!==void 0)return K1K;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-checkout-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="estimated-total-line-item" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n<div id="cart-button" class="style-scope ytd-commerce-cart-checkout-button-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return K1K=Y},{mode:2});var gj5;_.fJK={};
_.fJK.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",_.Io(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Io(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(Y){!this.tappableItemBehaviorTapEnabled||Y.keyCode!==13&&Y.keyCode!==32||Y.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var Y=this.data.onTap;Y.ypcGetCartEndpoint?(_.oP(this.hostElement,[Y]),this.tappableItemBehaviorTapEnabled=!1):Y.ypcOffersEndpoint?_.oP(this.hostElement,[Y]):_.IP(this.hostElement,[Y],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(Y){this.tappableItemBehaviorTapEnabled=!!Y},
tappableItemBehaviorOnTapEnabledChanged_:function(){var Y=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(Y.setAttribute("tabIndex",0),Y.setAttribute("role","button")):(Y.removeAttribute("tabIndex"),Y.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(Y){Y.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var NkI;var Ej9;var DM=function(){return _.F.apply(this,arguments)||this};
_.P(DM,_.F);DM.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.aL("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.aL("sharingToggleButtonAndDefaultButton")}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],DM.prototype,"data",void 0);_.z([_.FM({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],DM);
_.a(DM,"yt-card-item-actions-renderer",function(){if(Ej9===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_actions_renderer.yt.card.item.actions.renderer.css.js--\x3e<div id="secondary-button-renderer" hidden$="[[!data.secondaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n<div id="primary-button-renderer" hidden$="[[!data.primaryButtonRenderer]]" class="style-scope yt-card-item-actions-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;NkI===void 0&&(NkI=document.createElement("template"));var V=NkI;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Ej9=Y}Y=Ej9;return Y},{mode:2});var cYQ;var U9I;var XJ_;var D9t;var m9C;var ojt;var mh=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return Y};
_.P(mh,_.F);mh.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
mh.prototype.handleDarkModeToggledAction_=function(Y){this.isDarkTheme_=Y};
mh.prototype.computeThemeImage_=function(Y,b){if(!Y||!Y.imageLight)return!1;this.isCircular_=Y.isCircular;Y.imageWidth&&(this.hostElement.style.width=Y.imageWidth+"px");Y.imageHeight&&(this.hostElement.style.height=Y.imageHeight+"px");Y.borderWidth&&(this.image.style.borderWidth=Y.borderWidth+"px",this.image.style.borderStyle="solid");Y.borderColor&&(this.image.style.borderColor=_.KX(Y.borderColor));return b&&Y.imageDark?Y.imageDark:Y.imageLight};
mh.prototype.computeThemeIcon_=function(Y){var b,w;if(!(Y==null?0:(b=Y.themedIcon)==null?0:(w=b.icon)==null?0:w.iconType))return!1;this.icon.style.color=gN[Y.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(Y.imageWidth||18)+"px";this.icon.style.height=(Y.imageHeight||18)+"px";return _.IR(Y.themedIcon.icon.iconType)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(jh8.YtCardItemBoxBehavior),_.K("design:type",Object)],mh.prototype,"ytCardItemBoxBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],mh.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mh.prototype,"data",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],mh.prototype,"fit",void 0);_.z([_.R(),_.K("design:type",Boolean)],mh.prototype,"isDarkTheme_",void 0);_.z([_.R({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.K("design:type",Object)],mh.prototype,"themeImage_",void 0);_.z([_.R({computed:"computeThemeIcon_(data)"}),_.K("design:type",Object)],mh.prototype,"themeIcon_",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Object)],mh.prototype,"isCircular_",void 0);
_.z([_.xZ("#image"),_.K("design:type",Object)],mh.prototype,"image",void 0);_.z([_.xZ("#icon"),_.K("design:type",Object)],mh.prototype,"icon",void 0);_.z([_.FM({is:"yt-themed-image-renderer",disableElementRegistration:!0})],mh);
_.a(mh,"yt-themed-image-renderer",function(){if(ojt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-themed-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_themed_image_renderer.yt.themed.image.renderer.css.js--\x3e<yt-img-shadow id="image" fit="[[fit]]" height="[[data.imageHeight]]" hidden="[[!themeImage_]]" thumbnail="[[themeImage_]]" width="[[data.imageWidth]]" class="style-scope yt-themed-image-renderer">\n</yt-img-shadow>\n<yt-icon id="icon" hidden="[[!themeIcon_]]" icon="[[themeIcon_]]" class="style-scope yt-themed-image-renderer">\n</yt-icon>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;m9C===void 0&&(m9C=document.createElement("template"));var V=m9C;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ojt=Y}Y=ojt;return Y},{mode:2});var oT=function(){return _.F.apply(this,arguments)||this};
_.P(oT,_.F);oT.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"}}}}};
oT.prototype.computeImagePlacement_=function(Y){return Y||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],oT.prototype,"data",void 0);_.z([_.R({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.K("design:type",String)],oT.prototype,"imagePlacement",void 0);
_.z([_.FM({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],oT);
_.a(oT,"yt-card-item-text-with-image-renderer",function(){if(D9t===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-text-with-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_text_with_image_renderer.yt.card.item.text.with.image.renderer.css.js--\x3e<div id="themed-image-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n<div id="card-item-text-collection-renderer" class="style-scope yt-card-item-text-with-image-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;XJ_===void 0&&(XJ_=document.createElement("template"));var V=XJ_;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);D9t=Y}Y=D9t;return Y},{mode:2});var IT=function(){return _.F.apply(this,arguments)||this};
_.P(IT,_.F);IT.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"}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IT.prototype,"data",void 0);_.z([_.FM({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],IT);
_.a(IT,"yt-card-item-error-renderer",function(){if(U9I===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-error-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_error_renderer.yt.card.item.error.renderer.css.js--\x3e<div id="triangle-up-container" class="style-scope yt-card-item-error-renderer">\n  <div id="triangle-up" class="style-scope yt-card-item-error-renderer"></div>\n</div>\n<div id="error-text-renderer" class="style-scope yt-card-item-error-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;cYQ===void 0&&(cYQ=document.createElement("template"));var V=cYQ;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);U9I=Y}Y=U9I;return Y},{mode:2});var IJK;var kE_;_.S9("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var k3=function(){return _.F.apply(this,arguments)||this};
_.P(k3,_.F);_.g=k3.prototype;
_.g.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"}}}}};
_.g.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.g.backgroundColorChanged_=function(){var Y,b=(Y=this.data)==null?void 0:Y.backgroundColor;Y=gN[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E6(this.hostElement).querySelector("#main-content").style.backgroundColor=Y};
_.g.headerPromoBackgroundColorChanged_=function(){var Y,b=(Y=this.data)==null?void 0:Y.headerPromoBackgroundColor;Y=gN[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E6(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=Y};
_.g.errorRendererVisibilityChanged_=function(){var Y=this.isExpanded_,b;this.isErrorRendererVisible_=!((b=this.data)==null||!b.errorRenderer)&&!Y};
_.g.onYtToggleButton_=function(Y,b){this.isExpanded_=b.toggled};
k3.prototype.onYtToggleButton_=k3.prototype.onYtToggleButton_;k3.prototype.errorRendererVisibilityChanged_=k3.prototype.errorRendererVisibilityChanged_;k3.prototype.headerPromoBackgroundColorChanged_=k3.prototype.headerPromoBackgroundColorChanged_;k3.prototype.backgroundColorChanged_=k3.prototype.backgroundColorChanged_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],k3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(jh8.YtCardItemBoxBehavior),_.K("design:type",Object)],k3.prototype,"ytCardItemBoxBehavior",void 0);_.z([_.n(_.fJK.YtTappableItemBehavior),_.K("design:type",Object)],k3.prototype,"ytTappableItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],k3.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],k3.prototype,"isExpanded_",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],k3.prototype,"isErrorRendererVisible_",void 0);_.z([_.lr("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k3.prototype,"backgroundColorChanged_",null);_.z([_.lr("data.headerPromoBackgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k3.prototype,"headerPromoBackgroundColorChanged_",null);
_.z([_.lr("data.errorRenderer","isExpanded_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],k3.prototype,"errorRendererVisibilityChanged_",null);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],k3.prototype,"onYtToggleButton_",null);_.z([_.FM({is:"yt-card-item-renderer",disableElementRegistration:!0})],k3);
_.a(k3,"yt-card-item-renderer",function(){if(kE_===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_renderer.yt.card.item.renderer.css.js--\x3e<div id="main-content" primary-container-placement$="[[data.primaryContainerPlacement]]" box-style$="[[data.cardItemBoxStyle]]" aria-label="[[data.accessibilityData.label]]" class="style-scope yt-card-item-renderer">\n  <div id="main-content-negative-margin-wrapper" content-placement$="[[data.contentPlacement]]" class="style-scope yt-card-item-renderer">\n    <div id="heading-description-container" class="style-scope yt-card-item-renderer">\n       <div id="header-promo-container" class="style-scope yt-card-item-renderer">\n          <div id="heading-renderer" hidden$="[[!data.headingRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n          <div id="header-promo-renderer" hidden$="[[!data.headerPromoRenderer]]" class="style-scope yt-card-item-renderer">\n          </div>\n      </div>\n      <div id="description-renderer" hidden$="[[!data.descriptionRenderer]]" class="style-scope yt-card-item-renderer">\n      </div>\n    </div>\n    <div id="additional-info-renderer" additional-info-placement$="[[data.additionalInfoPlacement]]" hidden$="[[!data.additionalInfoRenderer]]" class="style-scope yt-card-item-renderer">\n    </div>\n    <div id="footer-renderer" hidden$="[[!data.footerRenderer]]" class="style-scope yt-card-item-renderer"></div>\n  </div>\n</div>\n<div id="error-renderer" hidden$="[[!isErrorRendererVisible_]]" class="style-scope yt-card-item-renderer"></div>\n<div id="divider" divider-style$="[[data.dividerStyle]]" hidden$="[[!data.dividerStyle]]" class="style-scope yt-card-item-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;IJK===void 0&&(IJK=document.createElement("template"));var V=IJK;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);kE_=Y}Y=kE_;return Y},{mode:2});_.S9("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var lk=function(){var Y=_.F.apply(this,arguments)||this;Y.hidden=!1;return Y};
_.P(lk,_.F);_.g=lk.prototype;_.g.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.g.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.g.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var Y,b=(Y=this.commerceCartHeaderEntity)==null?void 0:Y.isHidden;b!==void 0&&(this.hidden=b)}};
_.g.updateTitle=function(){var Y=this.commerceCartHeaderEntity.isDisabled,b,w,V=(w=_.v((b=this.data)==null?void 0:b.item,gV$))==null?void 0:w.headingRenderer;V&&(b=Kx(V,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".0.cardItemTextRenderer.textColor",Y?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.g.updateSummaryText=function(){var Y=this.commerceCartHeaderEntity;if(this.compact){var b,w,V=(w=_.v((b=this.data)==null?void 0:b.item,gV$))==null?void 0:w.headingRenderer;V&&(b=Kx(V,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".1.cardItemTextRenderer.text",Y.shortHeaderSummaryText?iJ(Y.shortHeaderSummaryText):Y.headerSummaryText?iJ(Y.headerSummaryText):""))}else{var H;if(b=(H=_.v((V=this.data)==null?void 0:V.item,gV$))==null?void 0:H.additionalInfoRenderer)b=Kx(b,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".text",Y.headerSummaryText?iJ(Y.headerSummaryText):"")}};
_.g.updateCheckoutButton=function(){var Y=this.commerceCartHeaderEntity,b,w,V=(w=_.v((b=this.data)==null?void 0:b.item,gV$))==null?void 0:w.additionalInfoRenderer;b=Kx(V,"buttonRenderer");var H;w=(H=this.commerceCartHeaderEntity)==null?void 0:H.isButtonDisabled;var f;H=(f=this.commerceCartHeaderEntity)==null?void 0:f.isButtonHidden;w!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.isDisabled",w);H!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
H);var E;Y=(E=Y.checkoutButtonCommand)==null?void 0:E.innertubeCommand;Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.command",Y)};
lk.prototype.entityChanged=lk.prototype.entityChanged;_.z([_.n(_.FX),_.K("design:type",Object)],lk.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lk.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],lk.prototype,"compact",void 0);_.z([_.R({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"commerceCartHeaderEntity",b)}}),
_.K("design:type",Object)],lk.prototype,"commerceCartHeaderEntity",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lk.prototype,"hidden",void 0);_.z([_.lr("commerceCartHeaderEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lk.prototype,"entityChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],lk);
_.a(lk,"ytd-commerce-cart-header-renderer",function(){if(gj5!==void 0)return gj5;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="item" class="style-scope ytd-commerce-cart-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return gj5=Y},{mode:1});var lJd;var hD5=_.Zf(function(Y,b){var w;return(w=Y.onChangeCallback)==null?void 0:w.call(Y,b)},1E3),x9r=_.b8(function(Y){var b=Y.data;
var w=Y.iconMinus;Y=Y.iconPlus;var V=function(){return!!b().disabled},H=_.N(_.kw(0,void 0,"r56zNb")),f=H.next().value,E=H.next().value;
H={};H=_.hj("yt-spec-quantity-incrementer-shape__icon",(H["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return V()||f()===(b().onRemoveCommand?0:1)},H));
var U={};U=_.hj("yt-spec-quantity-incrementer-shape__icon",(U["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return f()>=b().maxValue||V()},U));
var X={};X=_.hj("yt-spec-quantity-incrementer-shape__text",(X["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return f()>b().maxValue},X["yt-spec-quantity-incrementer-shape__text--text-disabled"]=V,X));
var I=_.Q_(function(){if(f()===1){var l,x;(x=(l=b()).onRemoveCommand)==null||x.call(l)}l=f()>b().maxValue?b().maxValue:f()-1;E(l);hD5(b(),l);return!1}),k=_.Q_(function(){if(f()===b().maxValue)return!1;
var l=f()+1;E(l);hD5(b(),l);return!1});
_.tq(function(){E(b().value)});
return _.m("quantity-incrementer-shape",null,_.m("div",{class:"yt-spec-quantity-incrementer-shape"},_.m("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return f()===(b().onRemoveCommand?0:1)||V()},
"aria-label":function(){return f()!==1?b().minusLabel:b().minimumReachedLabel},
"on:click":I},_.m(_.p_,{model:{circular:!0}}),_.m("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.m("div",{class:H},w()))),_.m("div",{class:X},f),_.m("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return f()>=b().maxValue||V()},
"aria-label":function(){return f()!==b().maxValue?b().plusLabel:b().maximumReachedLabel},
"on:click":k},_.m(_.p_,{model:{circular:!0}}),_.m("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.m("div",{class:U},Y())))))},"Qd");_.f_(_.b8(function(Y){function b(){w().onRemoveCommand&&_.AA(w().onRemoveCommand)}
var w=Y.data;var V=_.xh(FWg,function(){return w().quantityIncrementerEntityKey});
return _.m("yt-quantity-incrementer-view-model",null,_.m(x9r,{data:function(){var H=w(),f;var E=V()?!((f=V())==null||!f.disabled):!1;var U;f=V()?(U=V())==null?void 0:U.quantity:w().quantity;return cTb(H,E,b,f)},
iconMinus:function(){return _.m(_.n_,{icon:"BAR_HORIZONTAL",className:_.qR("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.m(_.n_,{icon:"ADD",className:_.qR("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.YX}});var hv=function(){var Y=_.F.apply(this,arguments)||this;Y.compact=!1;Y.hasQuantityIncrementer=!1;return Y};
_.P(hv,_.F);hv.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"}}}};
hv.prototype.computeHasQuantityIncrementer=function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.picker,c4K)};
hv.prototype.onLabelClick=function(){var Y;(Y=this.dropdownEl)==null||Y.open()};
_.z([_.xZ("ytd-dropdown-renderer"),_.K("design:type",Object)],hv.prototype,"dropdownEl",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hv.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],hv.prototype,"quantityColor",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],hv.prototype,"compact",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.K("design:type",Object)],hv.prototype,"hasQuantityIncrementer",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],hv);
_.a(hv,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(lJd!==void 0)return lJd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-quantity-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="picker-label" on-click="onLabelClick" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer">[[getSimpleString(data.pickerLabel)]]</div>\n<div id="picker" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n<div id="price" class="style-scope ytd-commerce-cart-item-quantity-picker-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lJd=Y},{mode:1});var qWK;var sE9;var x3=function(){return _.F.apply(this,arguments)||this};
_.P(x3,_.F);x3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x3.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
x3.prototype.updateTitle=function(){var Y=this.disabledCartItemEntity;Y.disableActionName&&this.set("data.title",iJ(Y.disableActionName))};
x3.prototype.updateButton=function(){var Y,b=(Y=this.disabledCartItemEntity.undoCommand)==null?void 0:Y.innertubeCommand;b!==void 0&&(this.set("data.actionButton.buttonRenderer.command",b),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
x3.prototype.entityChanged=x3.prototype.entityChanged;_.z([_.n(_.FX),_.K("design:type",Object)],x3.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"disabledCartItemEntity",b)}}),
_.K("design:type",Object)],x3.prototype,"disabledCartItemEntity",void 0);_.z([_.R(),_.K("design:type",Object)],x3.prototype,"data",void 0);_.z([_.lr("disabledCartItemEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],x3.prototype,"entityChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],x3);
_.a(x3,"ytd-disabled-cart-item-renderer",function(){if(sE9!==void 0)return sE9;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-disabled-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope ytd-disabled-cart-item-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n  <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-disabled-cart-item-renderer"></yt-formatted-string>\n</div>\n<div id="action-button" class="style-scope ytd-disabled-cart-item-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return sE9=Y},{mode:1});_.S9("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var qi=function(){var Y=_.F.apply(this,arguments)||this;Y.compact=!1;Y.hidden=!1;Y.errorHidden=!1;Y.noOnTap=!1;return Y};
_.P(qi,_.F);_.g=qi.prototype;
_.g.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"}}}};
_.g.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.g.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var Y=this.firstButtonElement;Y.alignByText=!0;Y.iconAlignByText=!0}};
_.g.computeNoOnTap=function(Y){return!Y};
_.g.updateQuantityColor=function(){if(this.pickerElement){var Y,b=(Y=this.commerceCartItemEntity)==null?void 0:Y.quantityColor;this.pickerElement.quantityColor=b}};
_.g.updateTotalPriceColor=function(){var Y,b=(Y=this.commerceCartItemEntity)==null?void 0:Y.totalPriceColor;if(b){var w;Y=_.v((w=this.data)==null?void 0:w.quantityPicker,Nwr);if(w=_.v(Y==null?void 0:Y.price,fCt))w.textColor=b}};
_.g.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var Y,b=(Y=this.commerceCartItemEntity)==null?void 0:Y.isHidden;b!==void 0&&(this.hidden=b)}};
_.g.updateHideErrorMessage=function(){var Y,b=(Y=this.commerceCartItemEntity)==null?void 0:Y.hideErrorMessage;b!==void 0&&(this.errorHidden=b)};
_.g.updateQuantity=function(){var Y=this,b,w=(b=this.commerceCartItemEntity)==null?void 0:b.quantity,V;b=(V=this.commerceCartItemEntity)==null?void 0:V.totalPrice;if(w){this.updateTotalPriceColor();this.updateQuantityColor();var H;V=_.v((H=this.data)==null?void 0:H.quantityPicker,Nwr);if(H=_.v(V==null?void 0:V.price,fCt))H.text=b?{simpleText:b.content}:void 0;if(b=_.v(V==null?void 0:V.picker,c4K))b.quantity=w;var f;if(H=(f=_.v(V==null?void 0:V.picker,DwK))==null?void 0:f.entries){f=!1;b=void 0;H=
_.N(H);for(V=H.next();!V.done;V=H.next())V=V.value,V.dropdownItemRenderer&&(b||(b=V.dropdownItemRenderer),V.dropdownItemRenderer.isSelected=!1,w===V.dropdownItemRenderer.int32Value&&(f=!0,V.dropdownItemRenderer.isSelected=!0));!f&&b&&(b.isSelected=!0)}_.TC(this,function(){var E;Y.set("data.quantityPicker",_.BL.unsafeClone((E=Y.data)==null?void 0:E.quantityPicker))})}};
qi.prototype.onYtRendererstamperFinished=qi.prototype.onYtRendererstamperFinished;qi.prototype.entityChanged=qi.prototype.entityChanged;_.z([_.R(),_.K("design:type",Object)],qi.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qi.prototype,"compact",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],qi.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],qi.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"commerceCartItemEntity",b)}}),
_.K("design:type",Object)],qi.prototype,"commerceCartItemEntity",void 0);_.z([_.R(),_.K("design:type",Object)],qi.prototype,"quantityPicker",void 0);_.z([_.R(),_.K("design:type",Object)],qi.prototype,"compactQuantityPicker",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qi.prototype,"hidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qi.prototype,"errorHidden",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.K("design:type",Object)],qi.prototype,"noOnTap",void 0);_.z([_.xZ("ytd-commerce-cart-item-quantity-picker-renderer"),_.K("design:type",Object)],qi.prototype,"pickerElement",void 0);_.z([_.xZ("yt-button-renderer"),_.K("design:type",Element)],qi.prototype,"firstButtonElement",void 0);
_.z([_.lr("commerceCartItemEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qi.prototype,"entityChanged",null);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qi.prototype,"onYtRendererstamperFinished",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],qi);
_.a(qi,"ytd-commerce-cart-item-renderer",function(){if(qWK!==void 0)return qWK;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" hidden="[[commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer">\n  <a id="img-container" class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]" tabindex="-1">\n    <yt-img-shadow id="image" object-fit="CONTAIN" thumbnail="[[data.cartItemImage]]" width="200" class="style-scope ytd-commerce-cart-item-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="content" class="style-scope ytd-commerce-cart-item-renderer">\n    <div id="item" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="info" class="style-scope ytd-commerce-cart-item-renderer">\n        <div id="cart-item-notification" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <h3 class="style-scope ytd-commerce-cart-item-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-commerce-cart-item-renderer" href$="[[computeHref_(data.onTap)]]" data="[[data.onTap]]">\n              <div id="title" class="style-scope ytd-commerce-cart-item-renderer"></div>\n            </a>\n        </h3>\n        <div id="text-metadata" class="style-scope ytd-commerce-cart-item-renderer"></div>\n        <div id="merchant-update-text" class="style-scope ytd-commerce-cart-item-renderer"></div>\n      </div>\n      <div id="quantity-picker" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n    <div id="actions" class="style-scope ytd-commerce-cart-item-renderer">\n      <div id="cart-item-actions" class="style-scope ytd-commerce-cart-item-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="disabled-cart-item" hidden="[[!commerceCartItemEntity.isDisabled]]" class="style-scope ytd-commerce-cart-item-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return qWK=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var QEt;var vjt;var s4=function(){return _.F.apply(this,arguments)||this};
_.P(s4,_.F);s4.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}}}}}};
s4.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
s4.prototype.updateCheckoutLineItems=function(){var Y,b=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.checkoutLineItems;b&&(Y=b.map(function(w){a:{var V=w.price,H=w.description;switch(w.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":w={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:iJ(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:iJ(V),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:w={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:iJ(H),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:iJ(V),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return w}),this.set("data.summaryLineItems",Y))};
s4.prototype.updateIsHidden=function(){var Y,b=(Y=this.commerceCartCheckoutButtonEntity)==null?void 0:Y.isHidden;b!==void 0&&(this.hostElement.hidden=b)};
s4.prototype.entityChanged=s4.prototype.entityChanged;_.z([_.n(_.FX),_.K("design:type",Object)],s4.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],s4.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],s4.prototype,"data",void 0);_.z([_.R({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:MEM}),_.K("design:type",Object)],s4.prototype,"commerceCartCheckoutButtonEntity",void 0);_.z([_.lr("commerceCartCheckoutButtonEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s4.prototype,"entityChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],s4);
_.a(s4,"ytd-commerce-cart-summary-renderer",function(){if(vjt!==void 0)return vjt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-summary-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-commerce-cart-summary-renderer">[[getSimpleString(data.title)]]</div>\n<div id="summary-line-items" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n<div id="checkout-button" class="style-scope ytd-commerce-cart-summary-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return vjt=Y},{mode:1});var Plj={};Plj.InjectBehavior=[beB.InjectBehavior];var ZK9;var Bkt;var Qp=function(){return _.F.apply(this,arguments)||this};
_.P(Qp,_.F);
Qp.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:_.aL("menuRenderer")}}};
Qp.prototype.onMenuTap=function(Y){Y.stopPropagation()};
_.up.Object.defineProperties(Qp.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityData&&this.data.accessibilityData.label?this.data.accessibilityData.label:""}},
sectionHeadingVisible:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!(((Y=this.data)==null||!Y.sectionHeading)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!(((Y=this.data)==null||!Y.image)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!(((Y=this.data)==null||!Y.menu)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Qp.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.fJK.YtTappableItemBehavior),_.K("design:type",Object)],Qp.prototype,"ytTappableItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Qp.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.accessibilityData"),_.K("design:type",String),_.K("design:paramtypes",[])],Qp.prototype,"ariaLabel",null);_.z([_.t("data.sectionHeading","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Qp.prototype,"sectionHeadingVisible",null);_.z([_.t("data.image","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Qp.prototype,"imageVisible",null);
_.z([_.t("data.menu","data.layout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Qp.prototype,"menuVisible",null);_.z([_.FM({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Qp);
_.a(Qp,"yt-activity-item-renderer",function(){if(Bkt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-activity-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_activity_item_renderer.yt.activity.item.renderer.css.js--\x3e<div class="activity-item-contents style-scope yt-activity-item-renderer">\n  <div id="section-heading" tabindex="-1" aria-hidden="[[!sectionHeadingVisible]]" hidden="[[!sectionHeadingVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  <div id="section-contents" class="style-scope yt-activity-item-renderer">\n    <div id="image" hidden="[[!imageVisible]]" class="style-scope yt-activity-item-renderer"></div>\n    <div id="content-activity-container" tabindex="-1" divider-style$="[[data.dividerStyle]]" class="style-scope yt-activity-item-renderer">\n      <div id="content" class="style-scope yt-activity-item-renderer">\n        <div id="title" class="style-scope yt-activity-item-renderer"></div>\n        <div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-activity-item-renderer"></div>\n        <div id="additional-metadata" hidden="[[!data.additionalMetadata]]" class="style-scope yt-activity-item-renderer"></div>\n      </div>\n      <div id="activity-metadata" class="style-scope yt-activity-item-renderer"></div>\n    </div>\n    <div id="menu" on-click="onMenuTap" tabindex="0" hidden="[[!menuVisible]]" class="style-scope yt-activity-item-renderer"></div>\n  </div>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;ZK9===void 0&&(ZK9=document.createElement("template"));var V=ZK9;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Bkt=Y}Y=Bkt;return Y},{mode:2});var nj5;var Mn$;var eDj;var pJj;var vG=function(){return _.F.apply(this,arguments)||this};
_.P(vG,_.F);
vG.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"}}}}};
vG.prototype.backgroundColorChanged_=function(){var Y,b=(Y=this.data)==null?void 0:Y.backgroundColor;this.hostElement.style.backgroundColor=gN[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
vG.prototype.backgroundColorChanged_=vG.prototype.backgroundColorChanged_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vG.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vG.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vG.prototype,"data",void 0);
_.z([_.lr("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vG.prototype,"backgroundColorChanged_",null);_.z([_.FM({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],vG);
_.a(vG,"yt-offer-item-upsell-renderer",function(){if(pJj===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_upsell_renderer.yt.offer.item.upsell.renderer.css.js--\x3e<div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-offer-item-upsell-renderer"></div>\n<div id="heading-price-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="heading-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="price-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n<div id="description-actions-container" class="style-scope yt-offer-item-upsell-renderer">\n  <div id="description-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n  <div id="actions-renderer" class="style-scope yt-offer-item-upsell-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;eDj===void 0&&(eDj=document.createElement("template"));var V=eDj;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);pJj=Y}Y=pJj;return Y},{mode:2});_.S9("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var PG=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};Y.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return Y};
_.P(PG,_.F);_.g=PG.prototype;
_.g.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:_.aL("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.g.computeContainerStyle_=function(Y){return Y};
_.g.computeContainerIsHidden_=function(Y){return Y&&!!Y.isHidden};
_.g.computeShowSpinner_=function(Y,b){return Y&&b==="in-progress"};
_.g.computeShowMoreContentsButton_=function(Y,b,w,V,H){return!(!(V&&V.length||H&&H.length&&w)||!Y||b)};
_.g.onToggleButton_=function(Y){var b=this;Y.stopPropagation();this.isExpanded_=Y.detail&&Y.detail.toggled;var w,V;this.isExpanded_&&!this.data.continuationSection.length&&((w=this.data)==null?0:(V=w.continuation)==null?0:V.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Ua(this.hostElement,"yt-load-next-continuation",function(H){return b.getContinuationUrl_(b.data.continuation.onClickContinuationData,H)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.oP(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.g.onShowMoreContentsButtonClicked_=function(Y){var b=this;Y.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Ua(this.hostElement,"yt-load-next-continuation",function(w){return b.getContinuationUrl_(b.data.continuations[0].nextContinuationData,w)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.oP(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.g.getContinuationUrl_=function(Y,b){var w=Y.continuation;Y=Y.clickTrackingParams;var V=_.dO();Y&&V&&_.J1(V,_.nA(Y));return _.Jq(b,{continuation:w})};
_.g.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var Y=_.E6(this.hostElement).querySelector("#continuation-section");Y&&(Y=Y.querySelectorAll("ytmusic-item-section-renderer"))&&Y.forEach(function(b){return b.classList.add("memberships-and-purchases")})};
_.g.dataChanged_=function(){var Y;this.isExpanded_=!((Y=this.data)==null||!Y.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.g.updateCardOnClickCommand_=function(Y){Y=_.v(Y,TY_);var b,w;this.data&&((b=this.data)==null?0:b.targetId)&&Y&&Y.targetId===((w=this.data)==null?void 0:w.targetId)&&Y.onClickCommand&&(this.data.onClickCommand=Y.onClickCommand,this.isOnClickCommand_=!0)};
_.g.backgroundColorChanged_=function(){var Y,b=(Y=this.data)==null?void 0:Y.backgroundColor;this.hostElement.style.backgroundColor=gN[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
PG.prototype.backgroundColorChanged_=PG.prototype.backgroundColorChanged_;PG.prototype.dataChanged_=PG.prototype.dataChanged_;PG.prototype.nextContinuationDataUpdated_=PG.prototype.nextContinuationDataUpdated_;PG.prototype.onToggleButton_=PG.prototype.onToggleButton_;_.z([_.n(_.Af),_.K("design:type",Object)],PG.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],PG.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],PG.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Cc.YtNextContinuationBehavior),_.K("design:type",Object)],PG.prototype,"ytNextContinuationBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],PG.prototype,"ytRendererBehavior",void 0);_.z([_.n(Plj.InjectBehavior),_.K("design:type",Object)],PG.prototype,"injectBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],PG.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],PG.prototype,"compact",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],PG.prototype,"isExpanded_",void 0);_.z([_.R({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.K("design:type",String)],PG.prototype,"containerStyle_",void 0);_.z([_.R({value:"not-started"}),_.K("design:type",String)],PG.prototype,"continuationStatus_",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.K("design:type",Boolean)],PG.prototype,"showSpinner_",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],PG.prototype,"isOnClickCommand_",void 0);_.z([_.R({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.K("design:type",Boolean)],PG.prototype,"showMoreContentsButton_",void 0);
_.z([_.R({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(Y,b){return!b||Y.entities?null:_.kt(Y.entities,"cardItemContainerEntity",b)}}),
_.K("design:type",Object)],PG.prototype,"cardItemContainerEntity_",void 0);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],PG.prototype,"onToggleButton_",null);_.z([_.kZ("yt-next-continuation-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PG.prototype,"nextContinuationDataUpdated_",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PG.prototype,"dataChanged_",null);_.z([_.lr("data.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PG.prototype,"backgroundColorChanged_",null);_.z([_.FM({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],PG);
_.a(PG,"yt-card-item-container-renderer",function(){if(Mn$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-card-item-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_card_item_container_renderer.yt.card.item.container.renderer.css.js--\x3e<div id="container" hidden="[[computeContainerIsHidden_(cardItemContainerEntity_)]]" class="style-scope yt-card-item-container-renderer">\n  <div id="base" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="divider" hidden="[[!isExpanded_]]" container-style_$="[[containerStyle_]]" class="style-scope yt-card-item-container-renderer"></div>\n  <div id="contents-section" hidden="[[!isExpanded_]]" class="style-scope yt-card-item-container-renderer">\n    <div id="contents" class="style-scope yt-card-item-container-renderer"></div>\n    <div id="continuation-section" class="style-scope yt-card-item-container-renderer"></div>\n    <tp-yt-paper-spinner id="spinner" active="[[showSpinner_]]" class="style-scope yt-card-item-container-renderer"></tp-yt-paper-spinner>\n    <div id="more-contents-button" hidden="[[!showMoreContentsButton_]]" on-click="onShowMoreContentsButtonClicked_" class="style-scope yt-card-item-container-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;nj5===void 0&&(nj5=document.createElement("template"));var V=nj5;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Mn$=Y}Y=Mn$;return Y},{mode:2});var ZM=function(){return _.F.apply(this,arguments)||this};
_.P(ZM,_.F);ZM.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"}}}};
ZM.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
ZM.prototype.computeLoadingHidden=function(){var Y;return!((Y=this.commerceCartPageStateEntity)==null?0:Y.cartActionInProgress)};
ZM.prototype.updateNotification=function(){var Y,b=(Y=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:Y.summaryText;b&&this.set("data.cartNotification",iJ(b))};
ZM.prototype.notificationEntityChanged=ZM.prototype.notificationEntityChanged;_.z([_.n(_.FX),_.K("design:type",Object)],ZM.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ZM.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ZM.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],ZM.prototype,"data",void 0);_.z([_.R({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"commerceCartExpandableNotificationEntity",b)}}),
_.K("design:type",Object)],ZM.prototype,"commerceCartExpandableNotificationEntity",void 0);_.z([_.R({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"commerceCartPageStateEntity",b)}}),
_.K("design:type",Object)],ZM.prototype,"commerceCartPageStateEntity",void 0);_.z([_.xZ("#spinner"),_.K("design:type",HTMLElement)],ZM.prototype,"spinner",void 0);_.z([_.lr("commerceCartExpandableNotificationEntity","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZM.prototype,"notificationEntityChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],ZM);
_.a(ZM,"ytd-commerce-cart-renderer",function(){if(QEt!==void 0)return QEt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commerce-cart-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-commerce-cart-renderer">\n  <div id="title" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="notification" class="style-scope ytd-commerce-cart-renderer">[[getSimpleString(data.cartNotification)]]</div>\n</div>\n<div id="body" class="style-scope ytd-commerce-cart-renderer">\n  <div id="primary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="items" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n  <div id="secondary-column" class="style-scope ytd-commerce-cart-renderer">\n    <div id="cart-summary" class="style-scope ytd-commerce-cart-renderer"></div>\n  </div>\n</div>\n<div id="loading-overlay" hidden="[[computeLoadingHidden(data, commerceCartPageStateEntity)]]" class="style-scope ytd-commerce-cart-renderer">\n  <div id="positioning-container" class="style-scope ytd-commerce-cart-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="[[commerceCartPageStateEntity.cartActionInProgress]]" class="style-scope ytd-commerce-cart-renderer">\n    </tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return QEt=Y},{mode:1});var OKo;var BG=function(){var Y=_.F.apply(this,arguments)||this;Y.bigImage=!1;return Y};
_.P(BG,_.F);_.up.Object.defineProperties(BG.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.placeholderImageUrl}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],BG.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],BG.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],BG.prototype,"bigImage",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BG.prototype,"placeholderImageUrl",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],BG);
_.a(BG,"ytd-empty-product-shelf-renderer",function(){if(OKo!==void 0)return OKo;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-empty-product-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-empty-product-shelf-renderer">\n  <template is="dom-if" if="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n    <img id="placeholder-image" alt="icon" src$="[[placeholderImageUrl]]" class="style-scope ytd-empty-product-shelf-renderer">\n  </template>\n  <yt-formatted-string id="image-text" text="[[data.imageText]]" class="style-scope ytd-empty-product-shelf-renderer"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return OKo=Y},{mode:1});var tnU;var nJ=function(){var Y=_.F.apply(this,arguments)||this;Y.itemStyle="link-item";Y.watchMetadataRefresh=!1;Y.skinnyMode=!1;Y.metaPanel=!1;Y.inStructuredDescription=!1;Y.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};Y.updateOnResizeDebouncer=null;return Y};
_.P(nJ,_.F);_.g=nJ.prototype;_.g.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.g.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"}}}}};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.g.attachVEs=function(Y){Y.trackingParams&&_.Qd().graftServerVe(Y.trackingParams)};
_.g.handleUpdateMerchShelfAction=function(Y){var b=this,w=_.v(Y.updateMerchandiseShelfAction.merchandiseShelf,_.tBU);w&&(w.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){b.attachVEs(w);b.data=w},Number(w.renderDelayMs))):(this.attachVEs(w),this.data=w))};
_.g.updateOnResize=function(){if(this.JSC$14741_scrollContainer!==void 0&&this.JSC$14741_scrollContainer.clientWidth!==0&&this.items!==void 0){var Y=this.JSC$14741_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-Y));this.ytdHorizontalListBehavior.reposition_();var b;switch((b=this.data)==null?void 0:b.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var w,
V;((w=this.data)==null?void 0:(V=w.items)==null?void 0:V.length)===1?this.itemStyle="cta-item":this.itemStyle=Y>=740?"large-item":"small-item"}}};
_.g.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.DW(this.updateOnResizeDebouncer,_.ux.after(100),this.updateOnResize)};
nJ.prototype.debouncedUpdateOnResize=nJ.prototype.debouncedUpdateOnResize;nJ.prototype.dataChanged=nJ.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.HR.YtdHorizontalListBehavior),_.K("design:type",Object)],nJ.prototype,"ytdHorizontalListBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],nJ.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],nJ.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nJ.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nJ.prototype,"itemStyle",void 0);_.z([_.R({value:6}),_.K("design:type",Number)],nJ.prototype,"initialCount",void 0);
_.z([_.R({value:"data.items"}),_.K("design:type",String)],nJ.prototype,"itemsPath",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nJ.prototype,"watchMetadataRefresh",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nJ.prototype,"skinnyMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nJ.prototype,"metaPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nJ.prototype,"inStructuredDescription",void 0);
_.z([_.xZ("#items"),_.K("design:type",HTMLDivElement)],nJ.prototype,"items",void 0);_.z([_.xZ("#scroll-container"),_.K("design:type",HTMLDivElement)],nJ.prototype,"JSC$14741_scrollContainer",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nJ.prototype,"dataChanged",null);_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nJ.prototype,"debouncedUpdateOnResize",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],nJ);
_.a(nJ,"ytd-merch-shelf-renderer",function(){if(tnU!==void 0)return tnU;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-merch-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-merch-shelf-renderer">\n  <div id="banner" class="style-scope ytd-merch-shelf-renderer">\n    <div id="title" hidden="[[!data.title]]" role="heading" class="style-scope ytd-merch-shelf-renderer">[[data.title]]</div>\n    <yt-formatted-string id="title" hidden="[[!data.titleFormatted]]" role="heading" text="[[data.titleFormatted]]" class="style-scope ytd-merch-shelf-renderer">\n    </yt-formatted-string>\n    <div id="action-button" class="style-scope ytd-merch-shelf-renderer"></div>\n  </div>\n  <div id="empty-product" class="style-scope ytd-merch-shelf-renderer"></div>\n  <div id="item-list" class="style-scope ytd-merch-shelf-renderer">\n    <div id="left-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="left-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="prevClick_" hidden="[[atStart]]">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n    <div id="scroll-container" class="style-scope ytd-merch-shelf-renderer">\n      <div id="items" item-style$="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n        \n        <template is="dom-repeat" items="[[shownItems]]" class="style-scope ytd-merch-shelf-renderer">\n          <ytd-merch-shelf-item-renderer data="[[item.merchandiseItemRenderer]]" item-style="[[itemStyle]]" class="style-scope ytd-merch-shelf-renderer">\n          </ytd-merch-shelf-item-renderer>\n        </template>\n      </div>\n    </div>\n    <div id="right-arrow-container" class="center-aligned style-scope ytd-merch-shelf-renderer">\n      <div id="right-arrow" class="arrow center-aligned style-scope ytd-merch-shelf-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-merch-shelf-renderer"></yt-icon>\n      </div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return tnU=Y},{mode:2});var RDr;var Mi=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-add-backstage-comment-action":"addBackstageCommentAction","yt-add-backstage-post-action":"addBackstagePostAction","yt-add-backstage-reply-action":"addBackstageReplyAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-replace-backstage-comment-action":"replaceBackstageCommentAction","yt-replace-backstage-post-action":"replaceBackstagePostAction",
"yt-replace-backstage-reply-action":"replaceBackstageReplyAction"};return Y};
_.P(Mi,_.F);_.g=Mi.prototype;
_.g.addBackstagePostAction=function(Y){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(Y=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",Y))&&(this.get("header.commentsHeaderRenderer.zeroStateMessage.backstageZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{}),this.get("header.commentsHeaderRenderer.schedulingZeroStateMessage.postSchedulingZeroStateRenderer",this.data)&&this.set("data.header.commentsHeaderRenderer.schedulingZeroStateMessage",
{}),this.get("data.contents")?this.splice("data.contents",0,0,{backstagePostThreadRenderer:Y}):this.set("data.contents",[{backstagePostThreadRenderer:Y}]))};
_.g.addBackstageCommentAction=function(Y){var b=this.get("addBackstageCommentAction.parentId",Y);Y=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",Y);if(b&&Y){b=this.postIdToIndices(b);for(var w=0;w<b.length;w++){var V=b[w];if(V<0)break;V="data.contents."+V+".backstagePostThreadRenderer.comments";this.get(V)&&(this.get(V+".backstageCommentsRenderer.contents")&&this.push(V+".backstageCommentsRenderer.contents",{commentThreadRenderer:Y}),this.get(V+".backstageCommentsRenderer.teaserContents")?
this.push(V+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:Y}):this.set(V+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:Y}]))}}};
_.g.addBackstageReplyAction=function(Y){var b=this.get("addBackstageReplyAction.parentId",Y);Y=this.get("addBackstageReplyAction.renderer.commentRenderer",Y);b&&Y&&this.setCreatorReply(b,Y)};
_.g.banAuthorAction=function(Y){var b=this.get("banAuthorAction.commentId",Y);b&&(Y=this.get("banAuthorAction.parentCommentId",Y)||this.getParentPostId(b),this.removeFromStream(b,Y))};
_.g.hideReportedCommentAction=function(Y){var b=this.get("hideReportedCommentAction.commentId",Y);b&&((Y=this.get("hideReportedCommentAction.parentCommentId",Y))||(Y=this.getParentPostId(b)),this.removeFromStream(b,Y))};
_.g.replaceBackstageCommentAction=function(Y){var b=this.get("replaceBackstageCommentAction.commentId",Y),w=this.get("replaceBackstageCommentAction.parentId",Y);Y=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",Y);if(b&&w&&Y){w=this.postIdToIndices(w);for(var V=0;V<w.length;V++){var H=w[V];if(H<0)break;var f=this.commentIdToIndex(b,H,!1);if(f>=0){var E=this.get("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+f+".commentThreadRenderer.replies.commentRepliesRenderer");
E&&(Y.replies={commentRepliesRenderer:E});this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",f,1,{commentThreadRenderer:Y})}f=this.commentIdToIndex(b,H,!0);if(f>=0){if(E=this.get("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(f+".commentThreadRenderer.replies.commentRepliesRenderer")))Y.replies={commentRepliesRenderer:E};this.splice("data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
f,1,{commentThreadRenderer:Y})}}}};
_.g.replaceBackstagePostAction=function(Y){var b=this.get("replaceBackstagePostAction.itemId",Y);if(b){b=this.postIdToIndices(b);for(var w=0;w<b.length;w++){var V=b[w];if(V<0)break;var H=this.getPostRendererType(V),f=this.get("replaceBackstagePostAction.renderer."+H,Y);if(!f&&H!=="sharedPostRenderer")break;var E=!1;f||(E=!0,f=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",Y));if(!f)break;var U={};E?(_.Fd(U,zs5,f),this.set("data.contents."+V+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
U)):(_.Fd(U,new _.A(H),f),this.set("data.contents."+V+".backstagePostThreadRenderer.post",U))}}};
_.g.replaceBackstageReplyAction=function(Y){var b=this.get("replaceBackstageReplyAction.replyId",Y),w=this.get("replaceBackstageReplyAction.parentId",Y);Y=this.get("replaceBackstageReplyAction.renderer.commentRenderer",Y);b&&Y&&w&&this.setCreatorReply(w,Y)};
_.g.removeCommentAction=function(Y){var b=this.get("removeCommentAction.commentId",Y);if(b){var w=this.get("removeCommentAction.parentCommentId",Y);w&&this.get("removeCommentAction.isCreatorReply",Y)?this.setCreatorReply(w,void 0):(w||(w=this.getParentPostId(b)),this.removeFromStream(b,w))}};
_.g.setCreatorReply=function(Y,b){var w=this.getParentPostId(Y);if(w){w=this.postIdToIndices(w);for(var V=0;V<w.length;V++){var H=w[V];if(H<0)break;var f=this.commentIdToIndex(Y,H,!1);if(f>=0){var E="data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+f;f=E+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";E+=".commentThreadRenderer.replies";b==void 0?(this.set(E,{}),this.set(f,!1)):(this.set(E,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),
this.set(E+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(f,!0))}f=this.commentIdToIndex(Y,H,!0);f>=0&&(f="data.contents."+H+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+f,H=f+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",f+=".commentThreadRenderer.replies",b==void 0?(this.set(f,{}),this.set(H,!1)):(this.set(f,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),this.set(H,!0)))}}};
_.g.removeFromStream=function(Y,b){if(b){b=this.postIdToIndices(b);for(var w=0;w<b.length;w++){var V=b[w];if(V<0)break;var H=this.commentIdToIndex(Y,V,!1);H>=0&&this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",H,1);H=this.commentIdToIndex(Y,V,!0);H>=0&&this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",H,1);V="data.contents."+V+".backstagePostThreadRenderer.post.backstagePostRenderer";
H=V+".backstageAttachment.pollRenderer.votedCommentId";this.get(H)===Y&&(this.set(H,null),this.set(V+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(b=this.postIdToIndices(Y).reverse(),w=0;w<b.length;w++){V=b[w];if(V<0)break;H=this.getPostRendererType(V);var f=this.get("backstagePostThreadRenderer.post."+H,this.data.contents[V]);f.postId===Y?this.splice("data.contents",V,1):H==="sharedPostRenderer"&&this.set("data.contents."+V+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);f.scheduledPublishTimeSec&&_.Xx(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.g.postIdToIndices=function(Y){for(var b=[],w=0;w<this.data.contents.length;w++){var V=this.getPostRendererType(w);this.get("backstagePostThreadRenderer.post."+V+".postId",this.data.contents[w])===Y&&b.push(w);if(V==="sharedPostRenderer"){var H=this.get("backstagePostThreadRenderer.post."+V+".originalPost.backstagePostRenderer.postId",this.data.contents[w]);V=this.get("backstagePostThreadRenderer.post."+V+".originalPost.postRenderer.postId",this.data.contents[w]);H!==Y&&V!==Y||b.push(w)}}return b};
_.g.commentIdToIndex=function(Y,b,w){if(b<0)return-1;var V,H,f,E,U=_.v((V=this.data)==null?void 0:(H=V.contents)==null?void 0:(f=H[b])==null?void 0:(E=f.backstagePostThreadRenderer)==null?void 0:E.comments,azk);return(b=w?U==null?void 0:U.teaserContents:U==null?void 0:U.contents)&&b.length?b.findIndex(function(X){return _.v(X,mXj).comment.commentRenderer.commentId===Y}):-1};
_.g.getParentPostId=function(Y){Y=Y.split(".");if(Y[1])return Y[0]};
_.g.getPostRendererType=function(Y){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[Y])?"sharedPostRenderer":"backstagePostRenderer"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Mi.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Mi.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-backstage-items"})],Mi);
_.a(Mi,"ytd-backstage-items",function(){if(RDr!==void 0)return RDr;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer data="[[data]]" class="style-scope ytd-backstage-items"></ytd-item-section-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return RDr=
Y},{mode:1});var d9o;_.pV({is:"ytd-comments",_template:function(){if(d9o!==void 0)return d9o;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return d9o=Y},
behaviors:[_.HeL.YtHostElementBehavior,_.y3.YtPlayerListenerBehavior,_.u.YtRendererBehavior,_.US.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(Y){Y&&Y.value&&Y.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(Y){Y&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.Lz("wn_comments");var Y=_.dO();Y&&_.Fx({clientScreenNonce:Y},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(Y){Y=UAu(Y);var b,w,V;if(Y=(b=Y)==null?void 0:(w=b.createCommentAction)==null?void 0:(V=w.contents)==null?void 0:V.commentThreadRenderer){var H,f,E,U,X,I;!this.isBackstage&&((H=this.data)==null?0:(f=H.header)==null?0:(E=f.commentsHeaderRenderer)==null?0:(U=E.createRenderer)==null?0:(X=U.commentSimpleboxRenderer)==null?0:(I=X.zeroStep)==null?0:I.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var k,l,x,Q;this.isBackstage&&((k=this.data)==null?0:(l=k.header)==null?0:(x=l.commentsHeaderRenderer)==null?0:(Q=x.zeroStateMessage)==null?0:Q.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(Y)}},
doReplyInsert_:function(Y,b,w,V){V?this.splice(Y,V,0,b):this.push(Y,b)},
getRepliesPath_:function(Y){return"data.contents."+Y+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(Y,b){Y=this.getRepliesPath_(Y);return b?Y+".commentRepliesRenderer.teaserContents":Y+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(Y){Y=UAu(Y);var b,w,V=(b=Y)==null?void 0:(w=b.createCommentReplyAction)==null?void 0:w.parentCommentId,H,f;if(b=(H=Y)==null?void 0:(f=H.createCommentReplyAction)==null?void 0:f.contents)if(V=this.commentIdToIndex_(V),!(V<0))if(H=this.getRepliesPath_(V),this.get(H)){var E,U;Y=(E=Y)==null?void 0:(U=E.createCommentReplyAction)==null?void 0:U.replyToCommentId;E=this.getRepliesContentsPath_(V,!1);this.get(E)&&(U=this.get(E).length,H=E+"."+(U-1)+".continuationItemRenderer",
this.get(H+".button")?(H=this.replyIdToIndex_(Y,V,!1),this.doReplyInsert_(E,b,H,U-1)):this.get(H)||(U=this.replyIdToIndex_(Y,V,!1),this.doReplyInsert_(E,b,U,null)));E=this.getRepliesContentsPath_(V,!0);this.get(E)?(V=this.replyIdToIndex_(Y,V,!0),(!Y||V>=0)&&this.doReplyInsert_(E,b,V,null)):this.set(E,[b])}else this.set(H,{commentRepliesRenderer:{teaserContents:[b]}})},
hideReportedCommentAction_:function(Y){var b,w=Y==null?void 0:(b=Y.hideReportedCommentAction)==null?void 0:b.commentId;if(w){var V;Y=Y==null?void 0:(V=Y.hideReportedCommentAction)==null?void 0:V.parentCommentId;w=w.replace("#",".");Y||(Y=this.getParentCommentId_(w));this.remove_(w,Y)}},
getParentCommentId_:function(Y){Y=Y.split(".");if(Y[1])return Y[0]},
removeCommentAction_:function(Y){var b,w=Y==null?void 0:(b=Y.removeCommentAction)==null?void 0:b.commentId;if(w){var V;Y=Y==null?void 0:(V=Y.removeCommentAction)==null?void 0:V.parentCommentId;w=w.replace("#",".");Y||(Y=this.getParentCommentId_(w));this.remove_(w,Y)}},
pinCommentAction_:function(Y){Y=UAu(Y);var b,w,V=(b=Y)==null?void 0:(w=b.pinCommentAction)==null?void 0:w.commentId;V&&(Y=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",Y))&&(this.remove_(V),this.insert_(Y,!0))},
unpinCommentAction_:function(Y){Y=UAu(Y);var b,w,V=(b=Y)==null?void 0:(w=b.unpinCommentAction)==null?void 0:w.commentId;if(V){var H,f,E;if(Y=(H=Y.unpinCommentAction)==null?void 0:(f=H.actionResult)==null?void 0:(E=f.update)==null?void 0:E.commentThreadRenderer)this.remove_(V),this.insert_(Y)}},
banAuthorAction_:function(Y){var b,w=Y==null?void 0:(b=Y.banAuthorAction)==null?void 0:b.commentId;if(w){var V;Y=Y==null?void 0:(V=Y.banAuthorAction)==null?void 0:V.parentCommentId;w=w.replace("#",".");Y||(Y=this.getParentCommentId_(w));this.remove_(w,Y)}},
commentIdToIndex_:function(Y){var b;return Y&&(b=this.data)!=null&&b.contents?this.data.contents.findIndex(function(w){var V,H;return Y===((w==null?void 0:(V=w.commentThreadRenderer)==null?void 0:V.commentViewModel)&&((H=_.v(w.commentThreadRenderer.commentViewModel,lXU))==null?void 0:H.commentId))}):-1},
insert_:function(Y,b){var w,V;if((w=this.data)==null?0:(V=w.contents)==null?0:V.some(function(f){return!(f==null||!f.commentThreadRenderer)}))for(w=0,V=this.data.contents.length;w<V;w++){var H=this.data.contents[w].commentThreadRenderer;
if(this.RenderingPriority[Y.renderingPriority]>=this.RenderingPriority[H.renderingPriority]){b&&this.RenderingPriority[Y.renderingPriority]==this.RenderingPriority[H.renderingPriority]?this.splice("data.contents",w,1,{commentThreadRenderer:Y}):this.splice("data.contents",w,0,{commentThreadRenderer:Y});break}}else this.set("data.contents",[{commentThreadRenderer:Y}])},
doReplyRemove_:function(Y,b,w){Y=this.replyIdToIndex_(Y,b,w);Y<0||(b=this.getRepliesContentsPath_(b,w),this.splice(b,Y,1))},
remove_:function(Y,b){b=this.commentIdToIndex_(b);b<0?(b=this.commentIdToIndex_(Y),b<0||this.splice("data.contents",b,1)):(this.doReplyRemove_(Y,b,!1),this.doReplyRemove_(Y,b,!0))},
replyIdToIndex_:function(Y,b,w){if(b<0)return-1;b=this.getRepliesContentsPath_(b,w);b=this.get(b);if(!b||!b.length)return-1;w=0;for(var V=b.length;w<V;w++){var H=void 0,f=void 0;if(((H=b[w])==null?void 0:(f=H.commentViewModel)==null?void 0:f.commentId)===Y)return w}return-1},
computeIsBackstage_:function(Y){return!!Y},
tickForCommentsTimer_:function(Y){_.aP(Y,void 0,"wn_comments")},
reloadComments_:function(Y){Y&&Y.reloadCommentsCommand&&Y.reloadCommentsCommand.command&&Y.reloadCommentsCommand.command.continuationCommand&&_.oP(this,[Y.reloadCommentsCommand.command])}});var ep=function(){return _.s6.apply(this,arguments)||this};
_.P(ep,_.s6);_.g=ep.prototype;_.g.bindIf=function(Y,b,w){return Y?b:w};
_.g.bindIfDefined=function(Y,b){return Y!==void 0?Y:b};
_.g.booleanString=function(Y){return(!!Y).toString()};
_.g.equals=function(){for(var Y=_.BN.apply(0,arguments),b=Y[0],w=1;w<Y.length;w++)if(b!=Y[w])return!1;return!0};
_.g.isGreaterThan=function(Y,b){return Y>b};
_.g.isLessThan=function(Y,b){return Y<b};
_.g.logicalAND=function(){for(var Y=_.BN.apply(0,arguments),b=!!Y[0],w=1;w<Y.length;w++)b=b&&!!Y[w];return b};
_.g.logicalOR=function(){for(var Y=_.BN.apply(0,arguments),b=!!Y[0],w=1;w<Y.length;w++)b=b||!!Y[w];return b};
_.g.toBool=function(Y){return!!Y};
ep.prototype.toBool=ep.prototype.toBool;ep.prototype.logicalOR=ep.prototype.logicalOR;ep.prototype.logicalAND=ep.prototype.logicalAND;ep.prototype.isLessThan=ep.prototype.isLessThan;ep.prototype.isGreaterThan=ep.prototype.isGreaterThan;ep.prototype.equals=ep.prototype.equals;ep.prototype.booleanString=ep.prototype.booleanString;ep.prototype.bindIfDefined=ep.prototype.bindIfDefined;ep.prototype.bindIf=ep.prototype.bindIf;_.z([_.QC()],ep);_.Fjr=[ep.prototype];var LjK;var SW$;var pJ=function(){return _.F.apply(this,arguments)||this};
_.P(pJ,_.F);pJ.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
pJ.prototype.onBackIconTap_=function(){window.history.back()};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pJ.prototype,"data",void 0);_.z([_.FM({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],pJ);
_.a(pJ,"yt-header-with-back-renderer",function(){if(SW$===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-header-with-back-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_header_with_back_renderer.yt.header.with.back.renderer.css.js--\x3e<div id="header-wrapper" class="style-scope yt-header-with-back-renderer">\n  <yt-icon-button id="back-button" label="Back" on-tap="onBackIconTap_" class="style-scope yt-header-with-back-renderer">\n    <yt-icon icon="yt-icons:arrow-back" class="style-scope yt-header-with-back-renderer"></yt-icon>\n  </yt-icon-button>\n  <div id="image-renderer" hidden="[[!data.imageRenderer]]" class="style-scope yt-header-with-back-renderer"></div>\n  <div id="header-container" class="style-scope yt-header-with-back-renderer">\n    <yt-formatted-string id="header-title" text="[[data.title]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n    <yt-formatted-string id="header-subtitle" text="[[data.subtitle]]" class="style-scope yt-header-with-back-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;LjK===void 0&&(LjK=document.createElement("template"));var V=LjK;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);SW$=Y}Y=SW$;return Y},{mode:2});var aJt;var rYU;var O4=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(O4,_.F);_.g=O4.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.g.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y,this.setUrl())};
_.g.dataChanged=function(){var Y=this;if(this.data){var b=this.setUrl();b&&_.gm({destination:window,iframe:this.iframe,origin:_.z8d(b.toString()),channelName:"yt-iframe",onMessage:function(w){(w=Y.getCommunicationCommand(w.data))&&Y.ytComponentBehavior.resolveCommand(w)},
onEstablished:function(){}})}};
_.g.setUrl=function(){if(this.data&&this.data.iframeUrl){var Y=_.SI(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(Y)return _.Rg(this.iframe,Y),Y}};
_.g.getCommunicationCommand=function(Y){var b;if((b=this.data)!=null&&b.onCommunicationCommandsMap){b=this.data.onCommunicationCommandsMap.find(function(H){return H.key===Y});
if(b==null?0:b.value)return b==null?void 0:b.value;try{var w=WsI(_.c9(Y)),V=this.data.onCommunicationCommandsMap.find(function(H){return H.key===(w==null?void 0:_.Su(w,1))});
if(V==null?0:V.value)return V==null?void 0:V.value}catch(H){}}};
O4.prototype.dataChanged=O4.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],O4.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],O4.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],O4.prototype,"data",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],O4.prototype,"isDarkTheme",void 0);_.z([_.xZ("#iframe"),_.K("design:type",HTMLIFrameElement)],O4.prototype,"iframe",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O4.prototype,"dataChanged",null);_.z([_.FM({is:"yt-iframe-renderer",disableElementRegistration:!0})],O4);
_.a(O4,"yt-iframe-renderer",function(){if(rYU===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-iframe-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_iframe_renderer.yt.iframe.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-iframe-renderer"></iframe>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;aJt===void 0&&(aJt=document.createElement("template"));var V=aJt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);rYU=Y}Y=rYU;return Y},{mode:2});_.tv=function(Y){_.BE.call(this);this.callback=Y;this.bezier=new qCU(0,0,.4,0,.2,1,1,1);this.delay=new _.wO(this.next,window,this);this.JSC$14772_animating=!1;_.os(this,this.delay)};
_.P(_.tv,_.BE);_.tv.prototype.isAnimating=function(){return this.JSC$14772_animating};
_.tv.prototype.start=function(Y,b,w){this.config={from:Y,to:b,duration:w,startTime:(0,_.gG)()};this.JSC$14772_animating=!0;this.next()};
_.tv.prototype.stop=function(){this.delay.stop();this.JSC$14772_animating=!1;this.config=void 0};
_.tv.prototype.next=function(){if(this.config){var Y=this.config,b=Y.from,w=Y.to,V=Y.duration;Y=Y.startTime;var H=(0,_.gG)()-Y;Y=this.bezier;V=QAK(Y,H/V);if(V==0)Y=Y.y0;else if(V==1)Y=Y.y3;else{H=nj(Y.y0,Y.y1,V);var f=nj(Y.y1,Y.y2,V);Y=nj(Y.y2,Y.y3,V);H=nj(H,f,V);f=nj(f,Y,V);Y=nj(H,f,V)}Y=_.rp(Y,0,1);this.callback(b+(w-b)*Y);Y<1?this.delay.start():this.JSC$14772_animating=!1}};_.RT=new _.Hx("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var zD9={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},KjQ=function(Y,b,w,V){_.BE.call(this);this.JSC$14780_miniAppId=Y;this.localReleaseId=b;this.derivedDeviceInterface=w;this.isForeground=V;this.JSC$14780_playNonceResolver=new _.mD;this.playPingTimerId=NaN;this.playPingIntervalMs=_.cQ("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.cQ("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.q("enable_displaying_ppn");this.JSC$14780_miniAppClientDataProvider=_.fH().resolve(_.RT);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Wj9(this);var H=setTimeout(function(){_.Sk(new _.BQ("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14780_playNonceResolver.promise.then(function(){clearTimeout(H)})};
_.P(KjQ,_.BE);var AYC=function(Y,b){Y.JSC$14780_playNonceResolver.resolve(b!=null?b:OD(8));Y.enableDisplayingPpn&&iKK(Y).then(function(w){Y.JSC$14780_miniAppClientDataProvider.clientData.set("post_play_nonce",w)})},iKK=function(Y){return _.c(function(b){return b.nextAddress==1?_.D(b,Y.JSC$14780_playNonceResolver.promise,2):b.return(b.yieldResult)})},Wj9=function(Y){var b,w;
_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$14780_playNonceResolver.promise,2);b=V.yieldResult;w={miniAppInfo:{externalPostId:Y.JSC$14780_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:b,derivedDeviceInterface:Y.derivedDeviceInterface}};_.Fx(w);_.om(V)})},yY5=function(Y){Y.state!==0?_.Sk(new _.BQ("[MiniAppPlayLogger] recordPlayStart failed with state "+zD9[Y.state])):(Y.state=1,dN(Y,"ma_cl"),FN(Y,"PLAY_EVENT_TYPE_PLAY_START"),Cl5(Y))},$9r=function(Y){Y.isForeground=!1;
FN(Y,"PLAY_EVENT_TYPE_PLAY_PAUSE")},jEo=function(Y){Y.state!==1&&Y.state!==2?_.Sk(new _.BQ("[MiniAppPlayLogger] recordPlayEnd failed with state "+zD9[Y.state])):(Y.state=3,window.clearInterval(Y.playPingTimerId),Y.playPingTimerId=NaN,gWa(),FN(Y,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},GEd=function(Y,b){Y.state===2&&Y.gameReady&&(Y.firstClickRecorded?Date.now()-Y.clickRecordedMs<Y.playClickIntervalMs||(Y.clickRecordedMs=Date.now(),FN(Y,"PLAY_EVENT_TYPE_PLAY_CLICK")):b&&(dN(Y,"ma_fua"),FN(Y,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),Y.firstClickRecorded=!0,Y.clickRecordedMs=Date.now()))};
KjQ.prototype.logError=function(Y){var b=this,w;_.c(function(V){if(V.nextAddress==1)return Y.metadata.externalPostId=b.JSC$14780_miniAppId,w=Y.metadata,_.D(V,Promise.race([b.JSC$14780_playNonceResolver.promise,new Promise(function(H){setTimeout(function(){H("")},3E4)})]),2);
w.postPlayNonce=V.yieldResult;Y.metadata.localReleaseId=b.localReleaseId;Y.loggingError.level="WARNING";_.Ft(Y.loggingError,Y.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:Y.metadata});_.om(V)})};
var Tkt=function(Y,b,w,V){var H,f,E,U,X,I;_.c(function(k){if(k.nextAddress==1)return _.D(k,Y.JSC$14780_playNonceResolver.promise,2);H=k.yieldResult;f={externalPostId:Y.JSC$14780_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:H,sdkVersion:w,api:b};V!==void 0&&(f.networkRequestsMeasurement={networkRequests:_.HE(V,1),cachedRequests:_.HE(V,2),transferredBytes:_.HE(V,3)},(E=V)==null?0:_.BZ(E,VQ,6))&&(f.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((U=_.EK(V,
VQ,6))==null?void 0:rM(U,1))||"0",cacheHits:((X=_.EK(V,VQ,6))==null?void 0:rM(X,2))||"0",cachedBytes:((I=_.EK(V,VQ,6))==null?void 0:rM(I,3))||"0"});_.RY("miniAppSdkUsage",f);_.om(k)})},uek=function(Y,b,w){var V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r;
_.c(function(C){if(C.nextAddress==1)return _.D(C,Y.JSC$14780_playNonceResolver.promise,2);V=C.yieldResult;H={externalPostId:Y.JSC$14780_miniAppId,localReleaseId:Y.localReleaseId,postPlayNonce:V,sdkVersion:w,measurementWindow:{startTimestampMs:String(FT(b,1)),endTimestampMs:String(FT(b,2))},frameRate:{averageFrameTimeDeltaMs:LE(b,3),averageFrameIdleTimeMs:LE(b,4)}};_.BZ(b,Ha,5)&&(H.networkRequests={networkRequests:(f=XK(b))==null?void 0:_.HE(f,1),cachedRequests:(E=XK(b))==null?void 0:_.HE(E,2),transferredBytes:(U=
XK(b))==null?void 0:_.HE(U,3),sameOriginStatusCodeToCounts:JYj((X=XK(b))==null?void 0:bgr(X,4)),crossOriginStatusCodeToCounts:JYj((I=XK(b))==null?void 0:bgr(I,5))},(k=XK(b))==null?0:_.BZ(k,VQ,6))&&(H.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((l=XK(b))==null?void 0:(x=_.EK(l,VQ,6))==null?void 0:rM(x,1))||"0",cacheHits:((Q=XK(b))==null?void 0:(Z=_.EK(Q,VQ,6))==null?void 0:rM(Z,2))||"0",cachedBytes:((e=XK(b))==null?void 0:(O=_.EK(e,VQ,6))==null?void 0:rM(O,3))||"0"});_.BZ(b,
F29,7)&&(H.gameCapture={averageFrameTimeDeltaMs:(L=_.EK(b,F29,7))==null?void 0:LE(L,1),averageFrameIdleTimeMs:(r=_.EK(b,F29,7))==null?void 0:LE(r,2)});_.RY("miniAppPerformanceMetrics",H);_.om(C)})},Yc5=function(Y,b,w){var V,H;
return _.c(function(f){if(f.nextAddress==1)return _.D(f,Y.JSC$14780_playNonceResolver.promise,2);V=f.yieldResult;H={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:Y.JSC$14780_miniAppId,postPlayNonce:V,miniAppReleaseId:Y.localReleaseId},derivedDeviceInterface:Y.derivedDeviceInterface,adTriggerType:b};H.rejectedReason=w||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.RY("miniAppAdEvent",H);_.om(f)})};
KjQ.prototype.disposeInternal=function(){_.BE.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var FN=function(Y,b,w,V){w=w===void 0?{}:w;V=V===void 0?!1:V;var H,f,E,U;_.c(function(X){if(X.nextAddress==1)return H=Y.isForeground,f=Y.beforeReady,_.D(X,Y.JSC$14780_playNonceResolver.promise,2);E=X.yieldResult;U={externalPostId:Y.JSC$14780_miniAppId,localReleaseId:Y.localReleaseId,derivedDeviceInterface:Y.derivedDeviceInterface,postPlayNonce:E,type:b};w.sequenceGroup=E;U.playState=f?"PLAY_STATE_NOT_READY":H?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.RY("miniAppPlayEvent",U,w);
V&&_.dh();_.om(X)})},dN=function(Y,b){var w;
_.c(function(V){if(V.nextAddress==1)return w=(0,_.gG)(),_.D(V,Y.JSC$14780_playNonceResolver.promise,2);_.S1(b,w);_.om(V)})},Cl5=function(Y){isNaN(Y.playPingTimerId)&&(Y.playPingTimerId=_.oV(function(){Y.state!==1&&Y.state!==2?_.Sk(new _.BQ("[MiniAppPlayLogger] reportPlayPing failed with state "+zD9[Y.state])):FN(Y,"PLAY_EVENT_TYPE_PLAY_PING")},Y.playPingIntervalMs))},JYj=function(Y){return Array.from(Y.entries()).map(function(b){var w=_.N(b);
b=w.next().value;w=w.next().value;return{key:b,value:w}})};var bdr=_.cQ("show_mini_app_ad_frequency_cap_ms",0),w8k=function(){this.showAdIntervalMs=bdr;this.isRateLimited=!0},VWC=function(Y,b){setTimeout(function(){return Y.isRateLimited=!1},Y.showAdIntervalMs);
Y.showMiniAppAdCommand=b.showMiniAppAdCommand;Y.isEmbeddedInWebview=b.isEmbeddedInWebview;Y.playLogger=b.playLogger},gC_=function(Y,b){var w;
return _.c(function(V){if(V.nextAddress==1){if(!Y.showMiniAppAdCommand||!Y.isEmbeddedInWebview)return V.return(HdC(Y,b,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(Y.isRateLimited)return V.return(HdC(Y,b,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));Y.adResolver=new _.mD;w=b1j(new LL,b);Cx(Y.showMiniAppAdCommand,wV9(w));Y.isRateLimited=!0;setTimeout(function(){return Y.isRateLimited=!1},Y.showAdIntervalMs);
return _.D(V,Y.adResolver.promise,2)}return V.return(V.yieldResult)})};
w8k.prototype.onAdFinished=function(Y){Y=my8(Y);var b;(b=this.adResolver)==null||b.resolve(Y)};
var HdC=function(Y,b,w){var V;return _.c(function(H){if(H.nextAddress==1)H=_.D(H,(V=Y.playLogger)==null?void 0:Yc5(V,k0v(b),w),2);else{var f=H.return;var E=new Dy_;E=_.cO(E,1,2);H=f.call(H,E)}return H})};var fUj=new _.Hx("INNERTUBE_MANAGER_TOKEN");var NR5=function(){this.callbacks={}};
NR5.prototype.initialize=function(Y){var b=this;this.callbacks=Y;window.youtubewebview?window.youtubewebview.onmessage=function(w){ECC(b,w)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(w){ECC(b,w)})};
var ECC=function(Y,b){if(b.data)try{var w=WsI(b.data);if(_.WI(_.ZX(w,1))!=null){var V=jv8(_.Su(w,2));switch(_.Su(w,1)){case "yt-mini-app-load-audio-state":var H,f;(f=(H=Y.callbacks).onAudioStateLoaded)==null||f.call(H,_.dM(V,Py(V,FK,1)));break;case "yt-mute-mini-app":var E,U;(U=(E=Y.callbacks).onMuteMiniApp)==null||U.call(E);break;case "yt-unmute-mini-app":var X,I;(I=(X=Y.callbacks).onUnmuteMiniApp)==null||I.call(X);break;case "yt-playable-exit":var k,l;(l=(k=Y.callbacks).onExit)==null||l.call(k);
break;case "yt-post-play-nonce":var x,Q;(Q=(x=Y.callbacks).onPostPlayNonceReceived)==null||Q.call(x,zZ(V,2,FK));break;case "yt-confirm-exit-mini-app":var Z,e;(e=(Z=Y.callbacks).confirmExitMiniApp)==null||e.call(Z);break;case "yt-confirm-exit-mini-app-edu":var O,L;(L=(O=Y.callbacks).confirmExitMiniAppEdu)==null||L.call(O);break;case "yt-benchmarking-response":var r,C;(C=(r=Y.callbacks).onNativeBenchmarkingMessageReceived)==null||C.call(r,zZ(V,2,FK));break;case "yt-mini-app-load-3p-consent-state":var W,
y;(y=(W=Y.callbacks).multiplayer3pAckStateLoaded)==null||y.call(W,_.dM(V,Py(V,FK,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var G,Nr;(Nr=(G=Y.callbacks).exitMiniAppSeenStateLoaded)==null||Nr.call(G,_.dM(V,Py(V,FK,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var o6,lI;(lI=(o6=Y.callbacks).onNavigateToNewMiniApp)==null||lI.call(o6);break;case "yt-game-data-available":var Zt,eL;(eL=(Zt=Y.callbacks).onGameDataAvailable)==null||eL.call(Zt,zZ(V,2,FK));break;case "yt-pause-mini-app":var OM,
iI;(iI=(OM=Y.callbacks).onPauseMiniApp)==null||iI.call(OM);break;case "yt-resume-mini-app":var rB,Tj;(Tj=(rB=Y.callbacks).onResumeMiniApp)==null||Tj.call(rB);break;case "yt-playable-ad-finished":var J_,B9;(B9=(J_=Y.callbacks).onAdFinished)==null||B9.call(J_,zZ(V,2,FK))}}else _.Sk(Error("Th"))}catch(ok){_.Ft(Error("Uh"))}else _.Sk(Error("Vh"))};var hNa=function(Y){this.rpcErrorCode=Y};var LJ=function(Y,b,w){this.intervalMs=Y;this.apiFunc=b;this.type=w;this.schedulerReady=!0};
LJ.prototype.call=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1){if(b.type!==1&&Y===b.cachedValue)return V.return();b.pendingApiRequestResolver||(b.pendingApiRequestResolver=new _.mD);w=b.pendingApiRequestResolver.promise;b.cachedValue=Y;return _.D(V,cXk(b),2)}return V.return(w)})};
LJ.prototype.flush=function(Y){Y=Y===void 0?!1:Y;var b=this;return _.c(function(w){return b.cachedValue===void 0?w.return():_.D(w,b.apiFunc(b.cachedValue,Y),0)})};
var cXk=function(Y){var b,w,V;return _.c(function(H){switch(H.nextAddress){case 1:if(!Y.schedulerReady||!Y.pendingApiRequestResolver)return H.return();Y.schedulerReady=!1;b=Y.pendingApiRequestResolver;Y.pendingApiRequestResolver=void 0;_.ct(H,2);if(Y.cachedValue===void 0){H.jumpTo(4);break}return _.D(H,Y.apiFunc(Y.cachedValue),5);case 5:w=H.yieldResult,b.resolve(w);case 4:_.$u(H,3);break;case 2:V=_.mS(H),b.reject(V);case 3:setTimeout(function(){return _.c(function(f){Y.schedulerReady=!0;return _.D(f,
cXk(Y),0)})},Y.intervalMs),_.om(H)}})};var s96=window.location.origin+"/miniapp_cloudsaves",xAe=[400,401],Ua$=_.cQ("cloud_save_game_data_rate_limit_ms",3E3),maK=function(Y){var b=this;this.JSC$14824_miniAppId=Y;this.loadAttempts=0;this.cloudSaveIntervalMs=Ua$;this.initialDownloadDataSucceeded=!1;this.JSC$14824_playNonceResolver=new _.mD;this.scottyUploadRateLimiter=new LJ(this.cloudSaveIntervalMs,function(w,V){return X8d(b,w,V)},2);
this.downloadDataPromise=DaU(this);this.downloadDataPromise.then(function(){b.initialDownloadDataSucceeded=!0}).catch(function(){})},oCd=function(Y,b){b.then(function(w){return Y.JSC$14824_playNonceResolver.resolve(w)})},IUt=function(Y){return _.c(function(b){return Y.cachedData===void 0?b.return(Y.downloadDataPromise):b.return(Y.cachedData)})},kv8=function(Y,b){return _.c(function(w){Y.cachedData=b;
if(!Y.initialDownloadDataSucceeded)throw Error("Wh");return _.D(w,Y.scottyUploadRateLimiter.call(b),0)})},lUU=function(){return new Promise(function(Y){setTimeout(Y,1E3,"")})},hVk=function(Y,b){var w,V;
return _.c(function(H){if(H.nextAddress==1)return w=Y.JSC$14824_miniAppId,_.D(H,Promise.race([Y.JSC$14824_playNonceResolver.promise,lUU()]),2);V={"X-YouTube-MiniAppId":w,"X-YouTube-PostPlayNonce":H.yieldResult};"DELEGATED_SESSION_ID"in _.aI&&akB(b,V);return H.return(V)})},X8d=function(Y,b,w){w=w===void 0?!1:w;
return _.c(function(V){return lP6()?_.q("enable_cloud_save_error_popup_after_retry")?V.return(new Promise(function(H,f){var E,U,X,I,k;return _.c(function(l){switch(l.nextAddress){case 1:E=0,U=!0,I=X=null;case 2:if(!(U&&E++<2)){l.jumpTo(4);break}_.ct(l,5);return _.D(l,xa_(Y,b,w),7);case 7:X=l.yieldResult;U=X.ok?!1:!xAe.includes(X.status);_.$u(l,2);break;case 5:I=k=_.mS(l);U=qmv(I);l.jumpTo(2);break;case 4:X?X.ok?(Sp(Y,Ua$),H()):(Sp(Y,Y.cloudSaveIntervalMs*2),f(Error("Xh`"+String(X.status),{cause:{rpcErrorCode:X.status}}))):
(Sp(Y,Y.cloudSaveIntervalMs*2),f(I||Error("Yh"))),_.om(l)}})})):V.return(new Promise(function(H,f){var E,U;
return _.c(function(X){if(X.nextAddress==1){if(Y.JSC$14824_miniAppId==="")return f(Error("Zh")),X.return();_.ct(X,2);return _.D(X,xa_(Y,b,w),4)}if(X.nextAddress!=2)return E=X.yieldResult,E.ok?(Sp(Y,Ua$),H()):(Sp(Y,Y.cloudSaveIntervalMs*2),f(Error("Xh`"+String(E.status),{cause:{rpcErrorCode:E.status}}))),_.$u(X,0);U=_.mS(X);Sp(Y,Y.cloudSaveIntervalMs*2);f(U);_.om(X)})})):V.return()})},xa_=function(Y,b,w){w=w===void 0?!1:w;
var V,H,f;return _.c(function(E){if(E.nextAddress==1)return V=_.YM((new TextEncoder).encode(b)),H=Q9K(),_.D(E,hVk(Y,H),2);f=E.yieldResult;return E.return(fetch(H,{method:"POST",body:new Blob([V]),headers:f,keepalive:w}))})},DaU=function(Y){var b,w;
return _.c(function(V){if(V.nextAddress==1){if(!lP6())return V.return("");if(Y.JSC$14824_miniAppId==="")throw Error("Zh");if(Y.loadAttempts>2)return V.return(Y.downloadDataPromise);_.ct(V,2);return _.D(V,qcK(Y),4)}if(V.nextAddress!=2)return b=V.yieldResult,V.return(b);w=_.mS(V);if(qmv(w)&&++Y.loadAttempts<2)return V.return(DaU(Y));throw w;})},qcK=function(Y){var b,w,V,H,f;
return _.c(function(E){switch(E.nextAddress){case 1:return _.ct(E,2),b=Q9K(),_.D(E,hVk(Y,b),4);case 4:return w=E.yieldResult,_.D(E,fetch(b,{method:"GET",headers:w}),5);case 5:return V=E.yieldResult,V.ok?_.D(E,V.text(),6):E.return(Promise.reject(Error("$h`"+String(V.status),{cause:new hNa(V.status)})));case 6:return H=E.yieldResult,E.return((new TextDecoder).decode(_.c9(H)));case 2:return f=_.mS(E),E.return(Promise.reject(f))}})},Sp=function(Y,b){Y.cloudSaveIntervalMs=b;
Y.scottyUploadRateLimiter.intervalMs=Y.cloudSaveIntervalMs};
maK.prototype.flush=function(){var Y=this;return _.c(function(b){return Y.initialDownloadDataSucceeded?_.D(b,Y.scottyUploadRateLimiter.flush(!0),0):b.return()})};var stC=ca(Ew(1),fL(1)),Qtj=ca(Ew(1),fL(3)),aT=function(Y){this.callbacks=Y};
_.g=aT.prototype;_.g.onAudioToggled=function(Y,b){(b===void 0||b)&&_.kc("yt-mini-app-is-audio-enabled",Y,2592E3)};
_.g.onPause=function(){this.onAudioToggled(!1,!1)};
_.g.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.g.returnNativeBenchmarkingMessage=function(){};
_.g.sendGameData=function(){};
_.g.sendStartGameFrameCapture=function(){};
var vzI=function(Y,b,w){this.callbacks=Y;var V=this;this.sdkVersion=new _.mD;this.channel=new AFg(_.gm({destination:window,iframe:b,origin:(new URL(w.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var H=rN;var f=Ew(5);var E=new Qn$;E=_.KE(E,1,1E4);f=_.gE(f,4,pT$,E);H(V,f);V.onAudioToggled(V.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){V.sdkVersion.resolve("")},1E4)};
_.P(vzI,aT);_.g=vzI.prototype;_.g.onAudioToggled=function(Y,b){aT.prototype.onAudioToggled.call(this,Y,b===void 0?!0:b);b=rN;var w=Ew(2),V=new q1K;Y=_.E2(V,1,Y);Y=_.gE(w,3,pT$,Y);b(this,Y)};
_.g.onPause=function(){aT.prototype.onPause.call(this);rN(this,Ew(3))};
_.g.onResume=function(){aT.prototype.onResume.call(this);rN(this,Ew(4))};
_.g.returnNativeBenchmarkingMessage=function(Y){var b=rN,w=Ew(6);var V=fL(_.BZ(Y,Jn,1)?1:2);Y=_.BZ(Y,Jn,1)?Y:null;V=_.gE(V,5,Nm,Y);b(this,ca(w,V))};
_.g.sendGameData=function(Y){var b=rN,w=Ew(7);Y=_.gE(w,5,pT$,Y);b(this,Y)};
_.g.sendStartGameFrameCapture=function(){rN(this,Ew(9))};
var z5=function(Y,b,w){var V,H,f;return _.c(function(E){if(E.nextAddress==1)return V=Y.callbacks,H=V.onSdkCalled,f=b,_.D(E,Y.sdkVersion.promise,2);H.call(V,f,E.yieldResult,w);_.om(E)})};
vzI.prototype.onMessage=function(){var Y=this;return $pI(Dd,function(b){var w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G,Nr,o6,lI,Zt,eL,OM,iI,rB,Tj,J_,B9,ok,Ut,wt,X$,Dg,eQ,cg,qQ,t_,$s,P9,$d,Kh,yr;return _.c(function(gU){switch(gU.nextAddress){case 1:if(!r9I(b.data))return _.Sk(Error("ai")),gU.return();w=_.ay(b.data,1);_.q("enable_iframe_message_get_type_via_fields")&&(V=b.data,w=H=_.ay(V,1));switch(w){case 8:if(b.data.hasMetadata()){var rU=Y.sdkVersion,xs=rU.resolve;var xd=b.data.getMetadata();xd=_.Su(xd,
1);xs.call(rU,xd);clearTimeout(Y.sdkVersionTimeoutId)}break;case 6:return gU.jumpTo(2);case 16:if(!_.nE(b.data,RXU,14,ms))return gU.return();f=_.WZ(b.data,RXU,14,ms);(U=(E=Y.callbacks).onGameFrameReceived)==null||U.call(E,f);return gU.return();case 17:if(!_.nE(b.data,tV8,15,ms))return gU.return();(I=(X=Y.callbacks).onGameAudioReceived)==null||I.call(X,_.WZ(b.data,tV8,15,ms));return gU.return();case 1:if(rU=_.WZ(b.data,Zxr,2,ms))switch(_.ay(rU,1)){case 1:Y.callbacks.onFirstFrameReady();if(_.q("enable_network_request_logging_on_game_events")&&
_.BZ(rU,Ha,4)){z5(Y,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.EK(rU,Ha,4));break}z5(Y,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(xd=(xs=Y.callbacks).onGameReady)==null||xd.call(xs);if(_.q("enable_network_request_logging_on_game_events")&&_.BZ(rU,Ha,4)){z5(Y,"MINI_APP_SDK_API_GAME_READY",_.EK(rU,Ha,4));break}z5(Y,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.nE(rU,gY,3,Bvo))Y.callbacks.onResourceLoaded(_.WZ(rU,gY,3,Bvo))}return gU.return();case 3:return gU.jumpTo(3);case 4:return gU.jumpTo(4);
case 2:return gU.jumpTo(5);case 9:return gU.jumpTo(6);case 10:return Y.callbacks.onClick(),gU.return();case 5:return gU.jumpTo(7);case 11:if(!_.nE(b.data,bG,9,ms))return gU.return();k=_.WZ(b.data,bG,9,ms);(x=(l=Y.callbacks).onBenchmarkingMessageReceived)==null||x.call(l,k);rU=b.reply;xs=Ew(1);xd=fL(1);var MQ=new bG;var DA=new Uint8Array(olM(k,Py(k,IH_,6))|0);MQ=xP(MQ,5,IH_,_.Lo(DA,!1));xd=_.gE(xd,5,Nm,MQ);rU.call(b,ca(xs,xd));return gU.return();case 12:return gU.jumpTo(8);case 13:return gU.jumpTo(9);
case 15:if(!_.q("enable_open_yt_content"))return b.reply(Qtj),gU.return();if(!_.nE(b.data,Oxj,12,ms))return b.reply(ca(Ew(1),fL(2))),gU.return();rU=_.WZ(b.data,Oxj,12,ms);Q=_.Su(rU,1);Y.callbacks.onOpenYTContent(Q);b.reply(stC);return gU.return();case 14:return gU.jumpTo(10);default:return gU.return()}gU.jumpTo(0);break;case 2:if(!_.nE(b.data,Uw,5,ms))return gU.return();xs=b.data;rU=Py(xs,ms,5);xs=xs.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(rU=M_(xs,xs[_.Qr]|0,Uw,rU))||(rU=Uw[AO])||
(rU=new Uw,no(rU.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),rU=Uw[AO]=rU);Z=rU;rU=_.wl(Z,wY,1,_.V9());e=_.N(rU);O=e.next();case 12:if(O.done){gU.jumpTo(14);break}L=O.value;r=new _.BQ;r.level=_.ay(L,2)===1?"WARNING":"ERROR";C=ZrG(L.getSource());return _.D(gU,Y.sdkVersion.promise,15);case 15:W={source:C,sdkVersion:gU.yieldResult};_.QN(_.ZX(L,6))!=null?(r.message=L.getMessage(),r.stack=_.Su(L,5),W.sdkErrorType=BeG(_.ay(L,6)),_.QN(_.ZX(L,7))!=null&&(W.sdkApi=nzK(_.ay(L,7)))):r.stack=void 0;
G=y=void 0;(G=(y=Y.callbacks).onError)==null||G.call(y,{loggingError:r,metadata:W});O=e.next();gU.jumpTo(12);break;case 14:return gU.return();case 3:return _.ct(gU,16),rU=Y.callbacks,xs=rU.onSave,xd=_.WZ(b.data,snk,4,ms),xd=_.Su(xd,1),_.D(gU,xs.call(rU,xd),18);case 18:b.reply(stC);_.$u(gU,17);break;case 16:return Nr=_.mS(gU),o6=ym,lI=Nr,Zt=Y.callbacks,eL="MINI_APP_SDK_API_SAVE_DATA",_.D(gU,Y.sdkVersion.promise,19);case 19:o6(lI,Zt,eL,gU.yieldResult),b.reply(Qtj);case 17:return _.D(gU,z5(Y,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return gU.return();case 4:return _.ct(gU,21),_.D(gU,Y.callbacks.onLoad(),23);case 23:OM=gU.yieldResult;rU=b.reply;xs=Ew(1);xd=fL(1);MQ=new snk;MQ=_.hP(MQ,1,OM);xd=_.gE(xd,3,Nm,MQ);rU.call(b,ca(xs,xd));_.$u(gU,22);break;case 21:return iI=_.mS(gU),rB=ym,Tj=iI,J_=Y.callbacks,B9="MINI_APP_SDK_API_LOAD_DATA",_.D(gU,Y.sdkVersion.promise,24);case 24:rB(Tj,J_,B9,gU.yieldResult),b.reply(Qtj);case 22:return _.D(gU,z5(Y,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return gU.return();case 5:_.ct(gU,
26);Y.callbacks.onSendHighScore(Sh(_.WZ(b.data,S18,3,ms).getValue()));b.reply(ca(Ew(1),fL(1)));_.$u(gU,27);break;case 26:return ok=_.mS(gU),Ut=ym,wt=ok,X$=Y.callbacks,Dg="MINI_APP_SDK_API_SEND_SCORE",_.D(gU,Y.sdkVersion.promise,28);case 28:Ut(wt,X$,Dg,gU.yieldResult),b.reply(Qtj);case 27:return _.D(gU,z5(Y,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return gU.return();case 6:if(!_.nE(b.data,aHK,8,ms)){gU.jumpTo(30);break}rU=_.WZ(b.data,aHK,8,ms);rU=_.ay(rU,1);return _.D(gU,z5(Y,nzK(rU)),30);case 30:return gU.return();
case 7:return rU=b.reply,xs=Ew(1),xd=fL(1),MQ=Y.callbacks.getLanguage(),xd=xP(xd,4,Nm,zt(MQ)),rU.call(b,ca(xs,xd)),_.D(gU,z5(Y,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return gU.return();case 8:if(!_.nE(b.data,L28,10,ms))return gU.return();eQ=_.WZ(b.data,L28,10,ms);cg=Y.callbacks;qQ=cg.onSdkPerformanceUpdate;return _.D(gU,Y.sdkVersion.promise,33);case 33:return qQ.call(cg,eQ,gU.yieldResult),gU.return();case 9:rU=b.data;xs=Py(rU,ms,11);if(_.WI(_.ZX(rU,xs))==null)return b.reply(ca(Ew(1),fL(2))),
gU.return();t_=zZ(b.data,11,ms);Y.callbacks.onShareInviteCode(t_);b.reply(stC);return _.D(gU,z5(Y,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return gU.return();case 10:if(_.nE(b.data,xyk,13,ms)){gU.jumpTo(35);break}return _.D(gU,Y.callbacks.onShowMiniAppAd(2),36);case 36:return $s=gU.yieldResult,b.reply(ca(Ew(1),MV$($s))),_.D(gU,z5(Y,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return gU.return();case 35:rU=_.WZ(b.data,xyk,13,ms);a:switch(_.ay(rU,1)){case 1:rU={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:rU={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:rU={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}P9=rU;$d=P9.adType;Kh=P9.sdkApi;rU=Y.callbacks;xs=rU.onShowMiniAppAd;xd=_.WZ(b.data,xyk,13,ms);xd=_.Su(xd,2);return _.D(gU,xs.call(rU,$d,xd||void 0),38);case 38:return yr=gU.yieldResult,b.reply(ca(Ew(1),MV$(yr))),_.D(gU,z5(Y,Kh),39);case 39:return gU.return()}})})};
var rN=function(Y,b){_.c(function(w){Y.channel.send(b);_.om(w)})},$E=function(Y,b,w){this.callbacks=Y;
var V=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;Y=fgg(b,(new URL(w.toString())).origin);this.gameSnacks=new N6M(Y);this.gameSnacks.page.onReady(function(){V.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){V.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var H,f;(f=(H=V.callbacks).onGameReady)==null||f.call(H)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(H,f){try{V.callbacks.onSendHighScore(f)}catch(E){ym(E,V.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(H,f){var E;return _.c(function(U){if(U.nextAddress==1)return _.ct(U,2),_.D(U,V.callbacks.onSave(V.decoder.decode(f)),4);if(U.nextAddress!=2)return _.$u(U,0);E=_.mS(U);ym(E,V.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return U.return()})});
this.gameSnacks.storage.onLoad(function(){var H,f;return _.c(function(E){if(E.nextAddress==1)return _.ct(E,2),_.D(E,V.callbacks.onLoad(),4);if(E.nextAddress!=2)return H=E.yieldResult,E.return(V.encoder.encode(H));f=_.mS(E);ym(f,V.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return E.return(V.encoder.encode(""))})});
this.gameSnacks.init()};
_.P($E,aT);$E.prototype.onAudioToggled=function(Y,b){aT.prototype.onAudioToggled.call(this,Y,b===void 0?!0:b);var w;(w=this.gameSnacks)==null||w.audio.update(Y)};
$E.prototype.onPause=function(){aT.prototype.onPause.call(this);var Y;(Y=this.gameSnacks)==null||Y.game.pause()};
$E.prototype.onResume=function(){aT.prototype.onResume.call(this);var Y;(Y=this.gameSnacks)==null||Y.game.resume()};var vCI=MJr,Pi5=_.b8(function(Y){var b=Y.data;var w=Y.loadingProgress;Y=_.N(_.kw("",void 0,"LYYTdd"));var V=Y.next().value,H=Y.next().value;Y=_.N(_.kw(!1,void 0,"K0waae"));var f=Y.next().value,E=Y.next().value,U=[],X=function(){return"transform: scaleX("+(_.Sa(w)||0)+")"},I=null,k=function(){var Z;
return(Z=b()&&I)!=null?Z:I=b().showAnniversaryAnimation?6:vCI()};
_.tl(function(){var Z;if(b().timeOutMessages&&((Z=b().timeOutMessages)==null?0:Z.length)){I=null;Z=_.N(U);for(var e=Z.next();!e.done;e=Z.next())clearTimeout(e.value);U.length=0;eNa(b().timeOutMessages,U,H,E)}},"hrKvCe");
var l=function(){return!!b().persistentErrorMessageTitle},x=function(){return w!==void 0},Q=function(){return b().title};
return _.m("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.m("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.m("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.m("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var Z,e=(Z=b().backgroundImage)==null?void 0:Z.sources,O;return(e==null?0:e.length)?"background-image: url("+((O=e[0])==null?void 0:O.url)+")":
""}}),_.m("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.m(_.h,{cond:function(){return!l()},
then:function(){var Z={};return _.m("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.m("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.m(_.x_,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+k()},
data:function(){var e="loading_animation_"+k();return{animationConfig:{name:e,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+e+".json",loop:!0,autoplay:!0}}}})),_.m("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.m(_.h,{cond:Q,
then:function(){return _.m("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},Q)}}),_.m("p",{class:_.hj("mini-app-splash-screen-view-model-wiz__timeout-message",(Z["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return f()},Z)),
"aria-live":"polite"},V),_.m(_.h,{cond:x,then:function(){return _.m("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.m("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:X}))}})))}}),_.m(_.h,{cond:l,
then:function(){return _.m("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.m("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return b().persistentErrorMessageTitle}),_.m(_.h,{cond:function(){return!!b().persistentErrorMessageDescription},
then:function(){return _.m("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return b().persistentErrorMessageDescription})}}))}})))},"Sd");var ZdU=new _.Hx("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var BRQ=wx;wx=function(Y){function b(w){if(w){var V,H;(V=w.__spec)==null||(H=V.didUnmount)==null||H.call(V);for(V=0;V<w.childNodes.length;V++)b(w.childNodes[V])}}
BRQ==null||BRQ(Y);tA(function(){for(var w=0;w<Y.length;w++)b(Y[w])})};var nCt=_.b8(function(Y){var b=Y.data;var w=Y.score;var V=Y.formattedScore;var H=Y.onScoreChanged;var f=Y.isEmbeddedInWebview;var E=_.TM("yt-mini-app-score-button-view-model"),U=function(){var Q;return _.v(b==null?void 0:(Q=b())==null?void 0:Q.buttonViewModel,_.Bv)},X=function(){var Q;
return(w==null?void 0:w())||Number(b==null?void 0:(Q=b())==null?void 0:Q.lastScore)||0},I=function(){var Q;
return(V==null?void 0:V())||((Q=U())==null?void 0:Q.title)||""},k,l=1;
if(Y=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))Y=Number(Y),l=isNaN(Y)?1:Y/100;_.tl(function(){H==null||H(X());var Q;var Z=_.zT((Q=U())==null?void 0:Q.onTap);if(Z){Q=_.v(Z,fdj);var e,O,L;Q=_.v(Q==null?void 0:(e=Q.panelLoadingStrategy)==null?void 0:(O=e.inlineContent)==null?void 0:(L=O.dialogViewModel)==null?void 0:L.customContent,VOU)}else Q=void 0;if(e=Q)e.score=I()},"KZFi5e");
Y=_.Q_(function(){var Q,Z,e=b==null?void 0:(Q=b())==null?void 0:(Z=Q.loggingDirectives)==null?void 0:Z.trackingParams;e&&_.ly(_.fH().resolve(_.eo),e);return!1});
_.dx(function(){if(E.value){var Q=E.value.querySelector("button"),Z=U();Q&&Z&&psB(Q,Z);wS("yt-share-playable-with-high-score",function(){var e=X().toString(),O=b==null?void 0:b().onShareHighScoreCommand,L=b==null?void 0:b().highScoreShareClientParamIdentifier,r=f==null?void 0:f();O&&(r?(L=new $Mj,e=_.hP(L,2,e),Cx(O,e.JSC$10315_serializeBinary())):L&&(_.fH().resolve(ZdU).clientParams.set(L,{miniAppClientParams:{highScore:e}}),mAG(O,!1)))})}});
var x=function(){var Q=U();Q&&(w==null?0:w())&&Q.accessibilityText&&(Q.accessibilityText=Q.accessibilityText.replace(k,I()));k=I();return{numberValue:X(),numberText:I(),heightPx:36,fontSizeMultiplier:l,shouldAnimate:!(w==null||!w())&&!0}};
return _.m("yt-mini-app-score-button-view-model",{class:function(){var Q={};return _.qR("mini-app-score-button-view-model-wiz",(Q["mini-app-score-button-view-model-wiz--is-visible"]=X()!==0,Q))},
el:E,"on:click":Y},bN(!1,function(){return _.m("span",{style:"display:none;"},X)}),_.m(_.OH,{data:function(){var Q;
return b==null?void 0:(Q=b())==null?void 0:Q.buttonViewModel}},{buttonViewModel:function(Q){return _.m(_.a1,{data:Q.data,
animatedTextProps:x})}}))},"Td");var tWt=_.b8(function(Y){var b,w=(b=_.l4("yt-mini-app-is-theater-mode-enabled"))!=null?b:!1,V=_.q("enable_playable_container_save_button"),H=_.q("enable_play_next_destination_page_in_toolbar");b={};return _.m("ytm-mini-app-top-bar-view-model",null,_.m("div",{class:_.hj("yt-mini-app-top-bar-view-model",(b["yt-mini-app-top-bar-view-model--mobile"]=!1,b["yt-mini-app-top-bar-view-model--desktop"]=!0,b))},_.m("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.m(_.h,{cond:function(){var f;
return!!Y.data().backButtonEdu&&!((f=Y.isExitMiniAppSeen)==null?0:f.call(Y))},
then:function(){return _.m(_.OH,{data:function(){return Y.data().backButtonEdu}},{buttonViewModel:_.a1})},
else:function(){return _.m(_.OH,{data:function(){return Y.data().backButton}},{buttonViewModel:_.a1})}}),_.m(_.h,{cond:function(){return Y.data().viewAllButton&&!0},
then:function(){return _.m(_.OH,{data:function(){return Y.data().viewAllButton}},{buttonViewModel:_.a1})}}),_.m(_.h,{cond:function(){return Y.data().title&&!0},
then:function(){return _.m("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return Y.data().title})}})),_.m("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.m(_.h,{cond:function(){var f;
return(f=Y.isDesktopPlayPage)==null?void 0:f.call(Y)},
then:function(){return _.m(_.Uz,null,_.m(MWt,{highScoreButton:function(){return Y.data().highScoreButton},
score:Y.score,formattedScore:Y.formattedScore,onScoreChanged:Y.onScoreChanged,isEmbeddedInWebview:Y.isEmbeddedInWebview}),_.m(eVK,{enableSaveButton:function(){return _.Sa(V)},
saveButton:function(){return Y.data().saveButton},
isSaved:Y.isSaved,onSaveToggled:function(){return Y.onSaveToggled}}),_.m(p8t,{menuButton:function(){return Y.data().menuButton}}))},
else:function(){return _.m(_.h,{cond:function(){return!1},
then:function(){return _.m(_.OH,{data:function(){return Y.data().playPageButton}},{buttonViewModel:function(f){return _.m(_.a1,{data:f.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.m(MWt,{highScoreButton:function(){return Y.data().highScoreButton},
score:Y.score,formattedScore:Y.formattedScore,onScoreChanged:Y.onScoreChanged,isEmbeddedInWebview:Y.isEmbeddedInWebview})}})}})),_.m("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.m(_.OH,{data:function(){return Y.data().muteButton}},{toggleButtonViewModel:function(f){var E=f.data;
return _.m(_.td,{data:function(){var U,X;return Object.assign({},E(),{isToggled:(X=(U=Y.isAudioEnabled)==null?void 0:U.call(Y))!=null?X:!0})},
onToggle:Y.onAudioToggled,useOutlinedIcon:!0})}}),_.m(_.OH,{data:function(){return Y.data().theatreModeButton}},{toggleButtonViewModel:function(f){var E=f.data;
return _.m("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.m(_.td,{data:function(){return Object.assign({},E(),{isToggled:w})},
useOutlinedIcon:!0}))}}),_.m(Od5,{fullscreenButton:function(){return Y.data().fullscreenButton}}),_.m(_.h,{cond:function(){return _.Sa(H)&&Y.data().viewAllButton&&!1},
then:function(){return _.m(_.OH,{data:function(){return Y.data().viewAllButton}},{buttonViewModel:_.a1})}}),_.m(_.h,{cond:function(){var f;
return!((f=Y.isDesktopPlayPage)==null?0:f.call(Y))},
then:function(){return _.m(_.Uz,null,_.m(eVK,{enableSaveButton:function(){return _.Sa(V)},
saveButton:function(){return Y.data().saveButton},
isSaved:Y.isSaved,onSaveToggled:function(){return Y.onSaveToggled}}),_.m(p8t,{menuButton:function(){return Y.data().menuButton}}))}}))))},"Ud");
tWt.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var p8t=_.b8(function(Y){return _.m(_.OH,{data:Y.menuButton},{buttonViewModel:_.a1})},"Vd"),eVK=_.b8(function(Y){var b=Y.enableSaveButton;
var w=Y.saveButton;var V=Y.isSaved;var H=Y.onSaveToggled;return _.m(_.h,{cond:function(){return b()&&!(w==null||!w())},
then:function(){return _.m(_.OH,{data:function(){var f=_.v(w==null?void 0:w(),_.ns),E;return{toggleButtonViewModel:Object.assign({},f,{isToggled:(E=V==null?void 0:V())!=null?E:!(f==null||!f.isToggled)})}}},{toggleButtonViewModel:function(f){return _.m(_.td,{data:f.data,
onToggle:H})}})}})},"Wd"),MWt=_.b8(function(Y){var b=Y.highScoreButton;
var w=Y.score;var V=Y.formattedScore;var H=Y.onScoreChanged;var f=Y.isEmbeddedInWebview;return _.m(_.OH,{data:b},{miniAppScoreButtonViewModel:function(E){return _.m(nCt,{data:E.data,score:w,formattedScore:V,onScoreChanged:H,isEmbeddedInWebview:f})}})},"Xd"),Od5=_.b8(function(Y){Y=Y.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.m(_.Uz,null):_.m(_.OH,{data:Y},{buttonViewModel:_.a1})},"Yd");_.RVI=new _.Hx("DESKTOP_CURRENT_PAGE");var rXk=_.b8(function(Y){var b=Y.data;var w=_.q("force_active_time_logging_webview"),V=!1,H=new NR5,f=void 0,E=void 0,U=_.fH().resolve(fUj),X=new w8k,I=void 0,k=void 0,l=[],x=void 0,Q=void 0,Z=!1,e=!1,O=!1,L=!1,r=new _.mD,C=_.fH().resolve(ZdU),W=_.fH().resolve(_.RT),y=_.fH().resolve(_.HQ(l5)),G,Nr=(G=_.fH().resolve(_.HQ(_.RVI)))==null?void 0:G.getCurrentPage(),o6=!1,lI=0,Zt=function(Ae){Ae.preventDefault();return Ae.returnValue=""},eL;
Y=_.N(_.kw(!((eL=_.l4("yt-mini-app-is-audio-enabled"))!=null&&!eL),void 0,"uFSsEd"));var OM=Y.next().value,iI=Y.next().value,rB;eL=_.N(_.kw(!((rB=_.l4("exit-mini-app-seen-state"))==null||!rB),void 0,"CVZNXc"));var Tj=eL.next().value,J_=eL.next().value;rB=_.N(_.kw(!1,void 0,"N46A8c"));var B9=rB.next().value,ok=rB.next().value;rB=_.N(_.kw(void 0,void 0,"qhL0Nd"));var Ut=rB.next().value,wt=rB.next().value;rB=_.N(_.kw(void 0,void 0,"oOXpte"));var X$=rB.next().value,Dg=rB.next().value;rB=_.N(_.kw(!0,void 0,
"u4kGne"));var eQ=rB.next().value,cg=rB.next().value;rB=_.N(_.kw(!1,void 0,"HoQxGc"));var qQ=rB.next().value,t_=rB.next().value;rB=_.N(_.kw(void 0,void 0,"lWcQie"));var $s=rB.next().value,P9=rB.next().value;rB=_.N(_.kw(0,void 0,"yw8Rmf"));var $d=rB.next().value,Kh=rB.next().value,yr=_.GM("mini-app-container-view-model"),gU=function(){return b().isEmbeddedInWebview},rU=function(){return b().hasPlayNextShelf};
wS("yt-page-type-changed",function(Ae){if(_.q("enable_is_mini_app_page_active_bugfix"))Ae.detail.newPageSubtype==="mini_app"&&Ae.detail.newPageType==="ytd-browse"||!eQ()||MQ();else if(Ae=_.k7B()==="mini_app",Ae!==eQ())if(cg(Ae),Ae){var gt;Ae=(gt=b().playableId)==null?void 0:gt.toString();Ae!==void 0&&window.location.href.includes(Ae)&&!e&&(L=!0,xs(),mv(kd.value))}else Ae||MQ()});
wS("yt-action",function(Ae){Ae.detail.actionName==="yt-engagement-panel-visible-changed"&&Ae.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Ae.detail.args[2]==="PAmini_app_panel"&&MQ();_.q("enable_is_mini_app_page_active_bugfix")?Ae.detail.actionName==="yt-history-load"&&!eQ()&&(Nr==null?0:Nr.active)?(cg(!0),xs(),mv(kd.value)):Ae.detail.actionName==="yt-history-load"&&eQ()&&!b().isEmbeddedInWebview&&q6():eQ()&&Ae.detail.actionName==="yt-history-load"&&(L?L=!1:b().isEmbeddedInWebview||q6())});
_.R2(function(){xd()});
_.tl(function(){xs()},"IGuu2e");
var xs=function(){var Ae=b().playableId,gt=b().localReleaseId,a7=b().derivedDeviceInterface;if(e)_.Sk(new _.BQ("[MiniAppContainerViewModel] onEnter was called more than once"));else{e=!0;f=new KjQ(Ae,gt,a7,document.visibilityState==="visible");yY5(f);E=new maK(Ae);dao(U,Ae);VWC(X,{showMiniAppAdCommand:b().showMiniAppAdCommand,isEmbeddedInWebview:b().isEmbeddedInWebview,playLogger:f});Pou()&&(Q=document.body.style.backgroundColor,_.ze(document.body,"background-color","black"));Y2();h_();r=new _.mD;
if(b().isEmbeddedInWebview){if(Ae=(new URLSearchParams(window.location.search)).get("postPlayNonce"))AYC(f,Ae),o6=!0;H.initialize({onAudioStateLoaded:function(rt){EX(rt)},
onMuteMiniApp:function(){EX(!1)},
onUnmuteMiniApp:function(){EX(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(rt){o6||(AYC(f,rt),o6=!0)},
confirmExitMiniApp:function(){var rt,YF,Qe;return _.c(function(ow){if(ow.nextAddress==1)return b().confirmExitMiniAppCommand?_.D(ow,Promise.race([r.promise,Promise.resolve(!1)]),2):ow.return();(rt=ow.yieldResult)?!b().confirmExitMiniAppCommandEdu||(Qe=(YF=Tj)==null?void 0:YF())!=null&&Qe?sx(b().confirmExitMiniAppCommand):(sx(b().confirmExitMiniAppCommandEdu),_.kc("exit-mini-app-seen-state","true",2592E6)):sx(b().closeMiniAppCommand);_.om(ow)})},
onNativeBenchmarkingMessageReceived:function(rt){rt=lH$(_.XCG(rt));if(_.nE(rt,_.A9,3,oE_)){var YF=_.WZ(rt,_.A9,3,oE_),Qe=ozq();var ow=Sh(Qe.getSeconds())-Sh(YF.getSeconds());YF=_.HE(Qe,2)-_.HE(YF,2);ow<0&&YF>0?(ow+=1,YF-=1E9):ow>0&&YF<0&&(--ow,YF+=1E9);ow=(new Jn).setSeconds(ow);ow=_.Zg(ow,2,_.vI(YF),0);_.HN(rt,1,ow)}var pk;(pk=k)==null||pk.returnNativeBenchmarkingMessage(rt)},
multiplayer3pAckStateLoaded:function(rt){q6(rt)},
exitMiniAppSeenStateLoaded:function(rt){b().confirmExitMiniAppCommandEdu&&J_(rt)},
onNavigateToNewMiniApp:function(){sx(b().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(rt){rt=new URLSearchParams(rt);var YF=void 0;rt.has("invite_code")&&(YF=new PJ8,rt=rt.get("invite_code"),YF=_.hP(YF,1,rt));if(rt=YF){var Qe;(Qe=k)==null||Qe.sendGameData(rt)}},
onPauseMiniApp:function(){V=!0;DA()},
onResumeMiniApp:function(){V=!0;Eu()},
onAdFinished:function(rt){X.onAdFinished(rt)}});
b().showMultiplayer3pConsentDialogCommand||r.resolve(!0);sx(b().onContainerReadyCommand)}else AYC(f),r.resolve(!0);oCd(E,iKK(f));iKK(f).then(function(rt){rt={miniAppPlayData:{postPlayNonce:rt}};var YF,Qe=(YF=b().loggingDirectives)==null?void 0:YF.trackingParams;Qe&&_.Qd().stateChanged(Qe,rt)});
Ae=b().showSignInDialogCommand;!lP6()&&Ae&&(_.kc("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),sx(Ae));b().confirmExitMiniAppCommand&&y&&(Ae=Xsr(b().confirmExitMiniAppCommand))&&(y.customConfirmationCommand=Ae)}},xd=function(){Q&&_.ze(document.body,"background-color",Q);
Z=!1;x&&x.release();E.flush().catch(function(Ae){_.Sk(Ae)});
U.flush().catch(function(Ae){_.Sk(Ae)});
jEo(f);FD();k=void 0;Fir(C)},MQ=function(){cg(!1);
xd();ok(!1);P9(void 0);wt(void 0);Dg(void 0);lI=0;Kh(0);e=!1},DA=function(){var Ae;
(Ae=k)==null||Ae.onPause();x&&x.release();E.flush().catch(function(gt){_.Sk(gt)});
U.flush().catch(function(gt){_.Sk(gt)});
$9r(f)},Eu=function(){var Ae;
(Ae=k)==null||Ae.onResume();h_();Ae=f;Ae.isForeground=!0;FN(Ae,"PLAY_EVENT_TYPE_PLAY_RESUME")},EX=function(Ae){var gt;
(gt=k)==null||gt.onAudioToggled(Ae);iI(Ae)},q6=function(Ae){b().showMultiplayer3pConsentDialogCommand&&(b().isEmbeddedInWebview&&Ae!==void 0&&r.resolve(Ae),!Ae&&_.k7B()==="mini_app"&&sx(b().showMultiplayer3pConsentDialogCommand))},W1=function(){var Ae,gt,a7,rt;
return _.c(function(YF){if(YF.nextAddress==1){!b().isLivestream||b().disableVideoCapture||(Ae=k)!=null&&Ae.sendStartGameFrameCapture();gt=(new URL(window.location.href)).searchParams;if(gt.has("invite_code")){var Qe=new PJ8,ow=gt.get("invite_code");a7=_.hP(Qe,1,ow);(rt=k)==null||rt.sendGameData(a7)}B9()||(ok(!0),Qe=f,Qe.state!==1?_.Sk(new _.BQ("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+zD9[Qe.state])):(_.XO("mini_app_ids_without_game_ready").includes(Qe.JSC$14780_miniAppId)&&(Qe.gameReady=
!0),Qe.state=2,Qe.beforeReady=!1,dN(Qe,"ma_ffr"),FN(Qe,"PLAY_EVENT_TYPE_PLAY_READY")));return _.D(YF,r.promise,2)}sx(b().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();b().isEmbeddedInWebview||q6();_.om(YF)})},W9=function(){var Ae=f;
Ae.gameReady=!0;dN(Ae,"ma_gr")},tO=function(Ae){var gt;
return _.c(function(a7){if(a7.nextAddress==1)return _.ct(a7,2),_.D(a7,kv8(E,Ae),4);if(a7.nextAddress!=2)return _.$u(a7,0);gt=_.mS(a7);sx(b().showSavingErrorPopupCommand);throw gt;})},uQ=function(){var Ae,gt;
return _.c(function(a7){if(a7.nextAddress==1)return _.ct(a7,2),_.D(a7,IUt(E),4);if(a7.nextAddress!=2)return Ae=a7.yieldResult,a7.return(Ae);gt=_.mS(a7);sx(b().showLoadingErrorDialogCommand);throw gt;})},Vt=function(Ae){f.logError(Ae)},dl=function(Ae,gt,a7){Tkt(f,Ae,gt,a7)},Lh=function(Ae,gt){uek(f,Ae,gt)},ea=function(){!w&&b().isEmbeddedInWebview||_.gh();
GEd(f,!0);Z||(window.addEventListener("beforeunload",Zt,{capture:!0}),Z=!0)},uN=function(Ae){var gt,a7,rt,YF,Qe,ow,pk;
return _.c(function(Od){if(Od.nextAddress==1)return U&&(!I||I<Ae)&&Ae>0?_.D(Od,LiK(U,Ae),3):Od.jumpTo(0);gt=Od.yieldResult;a7=_.N(gt);rt=a7.next().value;YF=a7.next().value;Qe=rt;ow=YF;((pk=Qe)==null?0:pk.displayString)&&ow&&(wt(ow),Dg(Qe.displayString));_.om(Od)})},hz=function(Ae){var gt=b().onBenchmarkingMessageReceivedCommand;
if(gt){var a7=ozq();_.gE(Ae,3,oE_,a7);Cx(gt,hXt(Ae))}},KM=function(Ae){var gt=b().onGameFrameReceivedCommand;
if(gt){var a7=new LL;var rt=new TmU;var YF=FT(Ae,1);rt=_.By(rt,1,YF);Ae=_.Su(Ae,2);Ae=_.hP(rt,2,Ae);a7=_.HN(a7,2,Ae);Cx(gt,wV9(a7))}},Qv=function(Ae){var gt=b().onGameAudioDataReceivedCommand;
if(gt){var a7=new LL;var rt=new u1U;Ae=_.Su(Ae,1);rt=_.hP(rt,1,Ae);a7=_.HN(a7,4,rt);Cx(gt,wV9(a7))}},La=function(){var Ae=new URLSearchParams(window.location.search);
if(b().isEmbeddedInWebview&&Ae&&Ae.get("override_hl")==="true"&&Ae.get("hl"))return Ae.get("hl");Ae=document.documentElement.lang;return Ae!==""?Ae:_.K8},Wg=function(Ae){var gt=b().onShareInviteCodeCommand;
if(gt)if(b().isEmbeddedInWebview){var a7=new $Mj;Ae=_.hP(a7,1,Ae);Cx(gt,GQj(Ae))}else a7=b().inviteCodeShareClientParamIdentifier,C.clientParams.set(a7,{miniAppClientParams:{inviteCode:Ae}}),sx(gt)},D5=function(Ae){var gt,a7,rt;
return _.c(function(YF){if(YF.nextAddress==1)return gt=b().onMiniAppOpenYtContentRequested,U&&_.q("enable_open_yt_content")&&gt?_.D(YF,Sco(U,Ae),3):YF.jumpTo(0);a7=YF.yieldResult;if(a7==="OK")if(b().isEmbeddedInWebview){var Qe=new ynU;rt=xP(Qe,2,FK,zt(Ae));Cx(gt,Ged(rt))}else W.clientData.set("video_id",Ae),sx(gt);_.om(YF)})},NF=function(Ae){lI+=_.HE(Ae,3);
Ae=Math.min(Math.log(1+lI/15E6*9)/Math.log(10),.99);Kh(Ae);p3(Ae)},p3=_.Zf(function(Ae){var gt=b().updateLoadingProgressCommand;
if(gt){var a7=new ynU;Ae=xP(a7,3,FK,_.UX(Ae));Cx(gt,Ged(Ae))}},100),md=function(Ae){return gC_(X,Ae)},h_=function(){var Ae,gt;
((Ae=_.zOM())==null?void 0:(gt=Ae.wakeLock)==null?void 0:gt.request)!=null&&_.zOM().wakeLock.request("screen").then(function(a7){x=a7}).catch(function(){})},kd=_.GM("iframe");
_.tl(function(){b().isSupportedCountry&&(lP6()||_.q("enable_sign_in_promo")||!b().showSignInDialogCommand?mv(kd.value):sx(b().onMiniAppReadyCommand))},"B7Lcnd");
var qF=function(){return _.m("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return B9()?0:-1},
el:kd})},mv=function(Ae,gt){gt=gt===void 0?!1:gt;
var a7=fo();a7&&(gt||a7.toString()!==Ae.getAttribute("src"))&&(k=P9L(b().source,{isAudioEnabled:OM,onFirstFrameReady:W1,onGameReady:W9,onSave:tO,onLoad:uQ,onError:Vt,onSdkCalled:dl,onSdkPerformanceUpdate:Lh,onClick:ea,onSendHighScore:uN,onBenchmarkingMessageReceived:hz,getLanguage:La,onShareInviteCode:Wg,onResourceLoaded:NF,onOpenYTContent:D5,onShowMiniAppAd:md,onGameFrameReceived:KM,onGameAudioReceived:Qv},Ae,a7),ZR(Ae,"load",function(){dN(f,"ma_il");ZR(Ae,"load",function(){mv(Ae,!0)})}),_.Rg(Ae,
a7))},fo=function(){var Ae=b().url;
if(Ae&&(Ae=_.SI(Ae),Ae!==null)){if(b().source&&b().source==="MINI_APP_SOURCE_GAMESNACKS")Ae=_.gF(Ae,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.q("enable_origin_query_parameter_bugfix")){var gt=_.RM(_.Enb(Ae.toString()));gt=new URLSearchParams(gt||"");gt.set("origin",window.location.origin);gt=gt.toString();Ae=_.Xk(Ae).toString();Ae=_.Uu(LG5.exec(Ae)[0]+(gt.trim()?"#"+gt:""))}return Ae}},xH=function(){var Ae={};
Ae=_.hj("yt-mini-app-container-view-model__loading-screen",(Ae["yt-mini-app-container-view-model__loading-screen--fade-out"]=B9,Ae));var gt=function(){return B9()?1:$d()};
return _.m("div",{class:Ae},_.m(_.OH,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function(a7){return _.m(Pi5,{data:a7.data,
loadingProgress:gt})}}))},Y2=function(){l=[];
l.push(_.ez(window,"visibilitychange",function(){O||V&&gU()||(document.visibilityState==="visible"?Eu():DA())}));
l.push(_.ez(window,"pagehide",function(){xd()}));
l.push(_.ez(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&yr.value.dispatchEvent(new Event("tap"))},0)}));
l.push(_.ez(yr.value,"pointerdown",function(){GEd(f,!1)},!0));
l.push(_.ez(yr.value,"pause",function(){O=!0;DA()}));
l.push(_.ez(yr.value,"play",function(){O=!1;Eu()}));
l.push(_.ez(yr.value,"exit",function(){xd()}));
var Ae=navigator.keyboard,gt=Ae&&Ae.lock;l.push(_.ez(window,ae$,function(){t_(zw8());zw8()?(b().hasPlayNextShelf&&eZ("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),A6("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),gt&&Ae.lock(["Escape"])):(b().hasPlayNextShelf&&A6("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),eZ("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),gt&&Ae.unlock())}));
b().showMultiplayer3pConsentDialogCommand&&l.push(_.ez(window,"yt-playables-ack-3p-data-usage",function(){aU8(U)}));
b().confirmExitMiniAppCommandEdu&&l.push(_.ez(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.kc("exit-mini-app-seen-state","true",2592E6)}));
b().onGameAudioDataReceivedCommand&&l.push(_.ez(window,"message",function(a7){a7=a7.event_;var rt=kd.value.src;if(rt&&a7.origin===(new URL(rt)).origin&&a7.data&&a7.data.type==="GAME_AUDIO"&&a7.data.audio&&a7.data.audio.length>0){var YF=new FileReader;YF.onload=function(){var Qe=new LL;var ow=new u1U;ow=_.hP(ow,1,YF.result);Qe=_.HN(Qe,4,ow);Cx(b().onGameAudioDataReceivedCommand,wV9(Qe))};
YF.readAsDataURL(new Blob([a7.data.audio]))}}))},FD=function(){l.forEach(function(Ae){BP(Ae)});
window.removeEventListener("beforeunload",Zt,{capture:!0})},sx=function(Ae){Ae&&mAG(Ae,b().isEmbeddedInWebview||!1)},A6=function(Ae,gt){Ae=_.N(yr.value.getElementsByClassName(Ae));
for(var a7=Ae.next();!a7.done;a7=Ae.next())a7.value.classList.add(gt)},eZ=function(Ae,gt){Ae=_.N(yr.value.getElementsByClassName(Ae));
for(var a7=Ae.next();!a7.done;a7=Ae.next())a7.value.classList.remove(gt)};
return function(){var Ae={};Ae=_.hj("yt-mini-app-container-view-model",(Ae["yt-mini-app-container-view-model--desktop"]=!0,Ae["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ae["yt-mini-app-container-view-model--ios-web-view"]=Pou(),Ae["yt-mini-app-container-view-model--no-top-bar"]=function(){return!b().topBar},Ae["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return b().hasPlayNextShelf},Ae["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return b().hasPlayNextShelf},Ae["yt-mini-app-container-view-model--show-peek-below"]=function(){return!qQ()&&b().hasPlayNextShelf},Ae));
var gt={};gt=_.hj("yt-mini-app-container-view-model__content",(gt["yt-mini-app-container-view-model__content--desktop-content"]=!0,gt["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},gt["yt-mini-app-container-view-model--desktop-play-page"]=function(){return b().hasPlayNextShelf},gt));
return _.m("mini-app-container-view-model",{el:yr},_.m("div",{class:Ae},_.m(_.h,{cond:function(){return b().topBar&&!qQ()},
then:function(){return _.m(_.OH,{data:function(){return b().topBar}},{miniAppTopBarViewModel:function(a7){return _.m(tWt,{data:a7.data,
isAudioEnabled:OM,onAudioToggled:function(rt){EX(rt)},
score:Ut,formattedScore:X$,onScoreChanged:function(rt){I=rt},
isEmbeddedInWebview:gU,isSaved:$s,onSaveToggled:function(rt){P9(rt)},
isExitMiniAppSeen:Tj,isDesktopPlayPage:rU})}})}}),_.m("div",{class:gt},_.m(_.h,{cond:eQ,
then:function(){return qF()}}),_.m(_.h,{cond:function(){return!b().isEmbeddedInWebview},
then:function(){return xH()}}))))}()},"Zd");
rXk.idomCompat=!0;_.f_(rXk,"mini-app-container-view-model",{props:{data:_.YX}});var zVQ=_.b8(function(Y){var b=Y.data;return _.m("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.m("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Q_(function(){var w=b().onTap;w&&_.AA(w)})},_.m(_.h,{cond:function(){return b().icon},
then:function(w){return _.m(_.n_,{icon:function(){return w().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.m("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return b().title})))},"$d");
zVQ.idomCompat=!0;var Wi9=_.b8(function(Y){var b=_.GM("div"),w=_.N(_.kw(void 0,void 0,"kFCJ0c")),V=w.next().value,H=w.next().value;w=_.N(_.kw(void 0,void 0,"PIPgWd"));var f=w.next().value,E=w.next().value;w=_.N(_.kw(void 0,void 0,"rV66ob"));var U=w.next().value,X=w.next().value,I=function(){var L=V();return L!==void 0?Math.abs(L):void 0},k=function(){var L=I();
return L===void 0||L<=3},l=function(){var L=I();
var r=f(),C=U();L=L!==void 0&&r!==void 0&&C!==void 0?r-C-L:void 0;return L===void 0||L<=3},x=function(L){b.value&&b.value.scrollBy({top:0,
left:(_.zO("HTML_DIR")==="rtl"?-1:1)*L*b.value.clientWidth,behavior:"smooth"})},Q=function(){var L;
H((L=b.value)==null?void 0:L.scrollLeft);var r;E((r=b.value)==null?void 0:r.scrollWidth);var C;X((C=b.value)==null?void 0:C.clientWidth)},Z=function(){x(-.5)},e=function(){x(.5)};
w=_.Q_(function(){Q()});
_.tq(function(){Q();if(b.value){var L=new ResizeObserver(Q);L.observe(b.value);_.R2(function(){L.disconnect()})}});
var O={};return _.m("yt-sponsorships-scrollable-shelf",{class:_.hj("ytdSponsorshipsScrollableShelfHost",Y.className)},_.m("div",{class:_.hj("ytdSponsorshipsScrollableShelfContent",(O.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return Y.data().previousButton&&Y.data().nextButton&&!k()&&!l()},O.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return Y.data().previousButton&&!k()&&l()},O.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return Y.data().nextButton&&
k()&&!l()},O)),
el:b,"on:scroll":w},Y.children),_.m(_.h,{cond:function(){return!k()},
then:function(){return _.m(_.OH,{data:function(){return Y.data().previousButton}},{buttonViewModel:function(L){return _.m(_.a1,{data:L.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:Z})}})}}),_.m(_.h,{cond:function(){return!l()},
then:function(){return _.m(_.OH,{data:function(){return Y.data().nextButton}},{buttonViewModel:function(L){return _.m(_.a1,{data:L.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:e})}})}}))},"ae");
Wi9.idomCompat=!0;var ido=_.b8(function(Y){var b=Y.data;Y={};return _.m("yt-sponsorships-hub",{class:_.hj("ytdSponsorshipsHubHost",(Y.ytdSponsorshipsHubHostIndented=function(){return b().indented},Y))},_.m("div",{class:"ytdSponsorshipsHubHeader"},_.m("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.m("div",{class:"ytdSponsorshipsHubAvatar"},_.m(_.OH,{data:function(){return b().avatar}},{avatarViewModel:_.et})),_.m(_.h,{cond:function(){return b().badgeImage},
then:function(w){return _.m("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.m("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.m("div",{class:"ytdSponsorshipsHubBadge"},_.m(_.Y_,{data:w,targetWidth:24,targetHeight:24,alt:""}))))}})),_.m("div",{class:"ytdSponsorshipsHubDetails"},_.m("div",{class:"ytdSponsorshipsHubTierName"},function(){return b().tierName}),_.m("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return b().membershipType}),_.m("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return b().membershipDurationOrExpiry})),_.m("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.m(_.OH,{data:function(){return b().manageButton}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.m(_.OH,{data:function(){return b().actionMenuButton}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.m("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return b().perksTitle}),_.m(Wi9,{data:function(){return{previousButton:b().previousPerkButton,
nextButton:b().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.m("div",{class:"ytdSponsorshipsHubPerkCards"},_.m(_.OH,{data:function(){return b().perkCards}},{sponsorshipsHubPerkCardViewModel:zVQ}),_.m(_.h,{cond:function(){return b().viewAllPerksButton},
then:function(w){return _.m(Kir,{data:w})}}))))},"be");
ido.idomCompat=!0;var Kir=_.b8(function(Y){var b=Y.data;return _.m("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.m(_.OH,{data:function(){return b().button}},{buttonViewModel:_.a1}),_.m("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.m("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return b().title}),_.m("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return b().subtitle})))},"ce");
Kir.idomCompat=!0;_.f_(ido,"yt-sponsorships-hub",{props:{data:_.YX}});_.AXC=_.b8(function(Y){var b=Y.data;return _.m("yt-dual-avatar-view-model",{class:_.hj("ytDualAvatarViewModelHost",Y.className),style:_.Bb({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var w;return((w=b().badgeCutoutRadius)!=null?w:14)+"px"}})},_.m("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.m(_.OH,{data:function(){return b().startAvatar}},{avatarViewModel:_.et}),_.m(_.OH,{data:function(){return b().endAvatar}},{avatarViewModel:_.et})),_.m(_.OH,{data:function(){return b().badge}},
{contentPreviewImageViewModel:function(w){return _.m("div",{class:"ytDualAvatarViewModelBadge"},_.m(_.V8,{data:w.data}))}}))},"de");
_.AXC.idomCompat=!0;var yX8=_.b8(function(Y){var b=Y.data;var w,V=!((w=_.fH().resolve(_.HQ(_.GT)))==null||!w());Y=_.sN(function(){var k,l,x=V?(k=b().header)==null?void 0:k.backgroundColorDarkMode:(l=b().header)==null?void 0:l.backgroundColorLightMode;if(x!==void 0)return _.KX(x)},void 0,"UX2G6c");
w=_.sN(function(){var k,l;return V?(k=b().header)==null?void 0:k.backgroundImagePart1Dark:(l=b().header)==null?void 0:l.backgroundImagePart1Light},void 0,"GPAi1d");
var H=_.sN(function(){var k,l;return V?(k=b().header)==null?void 0:k.backgroundImagePart2Dark:(l=b().header)==null?void 0:l.backgroundImagePart2Light},void 0,"nboJld"),f=_.sN(function(){return _.zO("HTML_DIR")==="rtl"},void 0,"LGJceb"),E=_.GM("yt-sponsorships-perks-list"),U=!1,X=function(){var k=E.value;
if(k&&!U){var l,x=(l=k.parentElement)==null?void 0:l.parentElement;if(x)for(k=k.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),l=0;l<k.length;++l){var Q=k[l];if(Q instanceof HTMLElement){x.scrollTo({top:Q.offsetTop+Q.clientHeight/2-x.clientHeight/2,behavior:"smooth"});U=!0;break}}}};
_.dx(function(){var k=E.value;if(k){var l=new ResizeObserver(X);l.observe(k);_.R2(function(){l.disconnect()})}});
var I={};return _.m("yt-sponsorships-perks-list",{el:E,class:_.hj("ytdSponsorshipsPerksListHost",(I.ytdSponsorshipsPerksListHorizontalPadding=function(){return b().horizontalPaddingEnabled},I))},_.m("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.m("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Bb({"background-color":Y})},_.m("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.m(_.h,{cond:w,then:function(k){var l={};return _.m("div",{class:_.hj((l.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=V,l.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!V,l.ytdSponsorshipsPerksListFlipped=f,l))},_.m(_.Y_,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.m("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.m(_.h,{cond:H,
then:function(k){var l={};return _.m("div",{class:_.hj((l.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=V,l.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!V,l.ytdSponsorshipsPerksListFlipped=f,l))},_.m(_.Y_,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.m("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.m(_.OH,{data:function(){var k;
return(k=b().header)==null?void 0:k.dualAvatar}},{dualAvatarViewModel:_.AXC})))),_.m("div",{class:"ytdSponsorshipsPerksListBody"},_.m("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return b().title}),_.m(_.h,{cond:function(){return b().perks},
then:function(k){return _.m(_.Bf,{each:k},function(l,x){var Q={};return _.m("div",{class:_.hj("ytdSponsorshipsPerksListPerkContainer",(Q.ytdSponsorshipsPerksListSelectedPerk=function(){var Z=x(),e=b().selectedPerkIndex;return Z===e},Q))},_.m(_.h,{cond:function(){return x()>0},
then:function(){return _.m("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.m("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.m(_.h,{cond:function(){return l.icon},
then:function(Z){return _.m(_.n_,{icon:function(){return Z().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.m("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.m("div",{class:"ytdSponsorshipsPerksListPerkTitle"},l.title),_.m("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.m(_.wv,{text:l.description})),_.m(_.h,{cond:function(){return l.instructions},
then:function(){var Z,e;return _.m("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.m("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(Z=l.instructions)==null?void 0:Z.title),_.m("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.m(_.wv,{text:(e=l.instructions)==null?void 0:e.text})))}}))),_.m(_.h,{cond:function(){return l.emoji},
then:function(Z){return _.m("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.m(_.Bf,{each:function(){return Z()}},function(e){return _.m(_.Y_,{data:e,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.m(Cij,{data:l}))})}})))},"ee");
yX8.idomCompat=!0;var Cij=_.b8(function(Y){var b=Y.data;var w=function(E,U){return E===U},V=function(){var E=b();
E=_.v(E==null?void 0:E.badgesShelf,YwQ);return E!==void 0&&E!==null?E:{previousButton:{},nextButton:{}}},H=_.TM("div"),f=function(){var E=H.value;
if(E){var U=E.parentElement;if(U){E=E.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var X=0;X<E.length;++X){var I=E[X];if(I instanceof HTMLElement){U.scrollTo({left:I.offsetLeft+I.clientWidth/2-U.clientWidth/2,behavior:"instant"});break}}}}};
_.dx(function(){var E=H.value;if(E){var U=new ResizeObserver(f);U.observe(E);_.R2(function(){U.disconnect()})}});
return _.m("div",null,_.m(_.h,{cond:function(){return b().badges},
then:function(E){return _.m(Wi9,{data:V},_.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:H},_.m(_.Bf,{each:function(){return E()}},function(U,X){var I={},k={},l={};
return _.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.m(_.h,{cond:function(){return X()>0},
then:function(){return _.m("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.m("div",{class:_.hj("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(I.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return w(X(),b().currentBadgeIndex)},I.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!w(X(),b().currentBadgeIndex)},I))},_.m("div",{class:_.hj("ytdSponsorshipsPerksListLoyaltyBadge",(k.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return w(X(),
b().currentBadgeIndex)},k.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!w(X(),b().currentBadgeIndex)},k))},_.m(_.h,{cond:function(){return U.image},
then:function(x){var Q={};return _.m("div",{class:_.hj((Q.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return w(X(),b().currentBadgeIndex)},Q.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!w(X(),b().currentBadgeIndex)},Q))},_.m(_.Y_,{data:x,
alt:""}))}})),_.m("div",{class:_.hj("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(l.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return w(X(),b().currentBadgeIndex)},l))},U.title)))})))}}))},"fe");
Cij.idomCompat=!0;_.f_(yX8,"yt-sponsorships-perks-list",{props:{data:_.YX}});_.f_(_.b8(function(Y){return _.m("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.m(_.h,{cond:function(){return Y.data().image},
then:function(b){return _.m(_.Y_,{className:"ytwFantasyEmptyStateViewModelImage",data:b,ariaHidden:!0,alt:""})}}),_.m(_.wv,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return Y.data().title}}),_.m(_.wv,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return Y.data().subtitle}}),_.m(_.OH,{data:function(){return Y.data().primaryButton}},{buttonViewModel:function(b){return _.m(_.a1,{data:b.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.YX}});var $aU;var OrI=_.ZE({buttonRenderer:_.Ce});_.gS(tJG);_.oL(tJG,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var WG=function(){var Y=_.F.apply(this,arguments)||this;Y.hideJoinButtonBeforeSubscribed=_.q("hide_join_button_before_subscribed");Y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return Y};
_.P(WG,_.F);_.g=WG.prototype;_.g.hasShowDialogCommand=function(Y){return!!_.v(Y,fdj)};
_.g.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"}}}};
_.g.updateJoinButtonOverrides=function(){var Y,b;(Y=_.E6(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(b=Y.polymerController)==null||b.set("overrides",this.joinButtonOverrides);if(Y=_.E6(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))Y.overrides=this.joinButtonOverrides};
_.g.handleButtonRefreshAction=function(Y){if(Y=_.v(Y,Zkj))this.set("data.membershipButton",Y.membershipButton),this.notifyPath("data.membershipButton")};
_.g.onYtServiceRequestError=function(Y){_.fx(this.hostElement,Y.detail.error.message)};
_.g.onTap=function(){var Y;(Y=this.data)!=null&&Y.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.g.handleUnsubscribeAction=function(){var Y,b,w;((Y=this.data)==null?void 0:(b=Y.membershipButton)==null?void 0:(w=b.buttonRenderer)==null?void 0:w.style)==="STYLE_PRIMARY"&&_.E6(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.up.Object.defineProperties(WG.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.subscriptionStateEntity)==null||!Y.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.data)==null?void 0:Y.membershipButton,w;Y=(b==null?void 0:b.buttonRenderer)||_.v(b==null?void 0:(w=b.timedAnimationButtonRenderer)==null?void 0:w.buttonRenderer,_.Wa);return(Y==null?void 0:Y.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(Y==null?void 0:Y.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(Y==null?void 0:Y.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var Y;if(this.hasShowDialogCommand((Y=this.data)==null?void 0:Y.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var Y;if(this.hasShowDialogCommand((Y=this.data)==null?void 0:Y.navigationEndpoint))return"button"}}});
WG.prototype.onTap=WG.prototype.onTap;WG.prototype.onYtServiceRequestError=WG.prototype.onYtServiceRequestError;WG.prototype.updateJoinButtonOverrides=WG.prototype.updateJoinButtonOverrides;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],WG.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],WG.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],WG.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.a$),_.K("design:type",Object)],WG.prototype,"ironButtonState",void 0);_.z([_.R(),_.K("design:type",Object)],WG.prototype,"data",void 0);
_.z([_.t("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.K("design:type",Object),_.K("design:paramtypes",[])],WG.prototype,"hideJoin",null);_.z([_.R(),_.K("design:type",String)],WG.prototype,"subscribeKey",void 0);_.z([_.R({selectorArgs:["subscribeKey"],selector:vnq}),_.K("design:type",Object)],WG.prototype,"subscriptionStateEntity",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],WG.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.z([_.t("subscriptionStateEntity"),_.R({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],WG.prototype,"subscribed",null);_.z([_.t("subscribed","data.membershipButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],WG.prototype,"joinButtonOverrides",null);_.z([_.t("data.navigationEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],WG.prototype,"channelNameTabIndex",null);
_.z([_.t("data.navigationEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],WG.prototype,"channelNameRole",null);_.z([_.lr("joinButtonOverrides"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WG.prototype,"updateJoinButtonOverrides",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],WG.prototype,"onYtServiceRequestError",null);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],WG.prototype,"onTap",null);_.z([_.S({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],WG);
var jtQ=_.UQ()(WG,"ytd-video-owner-renderer",function(){if($aU===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);$aU=Y}Y=$aU;return Y},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.f_(_.b8(function(Y){var b=Y.data;var w;Y=_.N(_.kw(!((w=_.l4("yt-mini-app-is-theater-mode-enabled"))==null||!w),void 0,"LUeOgf"));var V=Y.next().value,H=Y.next().value,f;w=(f=_.fH().resolve(_.HQ(xd$)))!=null?f:function(){return _.m("div",null)};
_.jk("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){H(!0);_.kc("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.jk("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){H(!1);_.kc("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
f={};Y={};var E={};return _.m("mini-app-play-page-renderer",{class:_.hj("miniAppPlayPageRendererHost",(f.miniAppPlayPageRendererHostDetailsView=function(){return!V()},f))},_.m("div",{class:_.hj("miniAppPlayPageRendererGameContainer",(Y.miniAppPlayPageRendererGameContainerDetailsView=function(){return!V()},Y))},_.m(_.OH,{data:function(){return b().containerViewModel}},{miniAppContainerViewModel:rXk}),_.m(_.h,{cond:function(){return b().channel&&b().subscribeButton},
then:function(){return _.m("div",{class:"miniAppPlayPageRendererChannelContainer"},_.m(_.OH,{data:function(){return b().channel}},{videoOwnerRenderer:function(U){return _.m(jtQ,{data:U.data})}}),_.m(_.OH,{data:function(){return b().subscribeButton}},{subscribeButtonViewModel:function(U){return _.m(_.M7,{data:U.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.m(_.h,{cond:function(){return!V()&&b().description},
then:function(){return _.m("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.m("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return b().description}))}})),_.m("div",{class:_.hj("miniAppPlayPageRendererPlayNextContainer",(E.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!V()},E))},_.m(_.OH,{data:function(){return b().sectionList}},{sectionListRenderer:w})))},"he"),"mini-app-play-page-renderer",{props:{data:_.YX}});var KJ=function(){var Y=_.F.apply(this,arguments)||this;Y.isSearch=!1;Y.isConstrainedList=!1;Y.hasChipsBar=!1;Y.inReplyPanel=!1;Y.scrollUpButtonData={buttonViewModel:{iconName:"UP_ARROW",style:"BUTTON_VIEW_MODEL_STYLE_UNKNOWN",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_COMPACT"}};Y.monitorScroll=!0;Y.SCROLL_ANIMATION_DURATION_MS=300;Y.nextContinuation={continuationType:"sectionListContinuation"};return Y};
_.P(KJ,_.F);_.g=KJ.prototype;
_.g.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(Y){switch(Y.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.q("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.q("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.g.created=function(){var Y=this;this.JSC$14918_scrollAnimation=new _.tv(function(b){Y.hostElement.scrollTop=b})};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.g.getItemsPath=function(){return"data.contents"};
_.g.replacePrimaryContent=function(Y){this.set("data.contents",Y)};
_.g.computeHasSortFilter=function(Y){return!!Y&&!!Y.sortFilterSubMenuRenderer};
_.g.computeShouldScrollInPanel=function(Y){var b;return!!(Y==null?0:(b=Y.scrollPaneStyle)==null?0:b.scrollable)};
_.g.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.U6(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.g.scrollToTop=function(){this.hostElement.scrollTop=0};
_.g.scrollToItemSection=function(Y){if(Y=this.getItemByIdentifier(Y))Y=this.getScrollPositionForItem(Y),this.hostElement.scrollTop!==Y&&this.JSC$14918_scrollAnimation.start(this.hostElement.scrollTop,Y,this.SCROLL_ANIMATION_DURATION_MS)};
_.g.getItemByIdentifier=function(Y){var b=this.contents.querySelectorAll("ytd-item-section-renderer");if(b&&b.length!==0){var w=Array.from(b).findIndex(function(V){return V.sectionIdentifier===Y});
return b[w===-1?0:w]}};
_.g.getScrollPositionForItem=function(Y){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===Y)return 0;Y=_.Rz(Y).y+this.hostElement.scrollTop-_.Rz(this.hostElement).y;return Math.min(Y,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.up.Object.defineProperties(KJ.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.targetId)==="browse-feedFEclips"}}});
KJ.prototype.onScroll=KJ.prototype.onScroll;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],KJ.prototype,"ytLazyListBehavior",void 0);_.z([_.n(_.Cc.YtNextContinuationBehavior),_.K("design:type",Object)],KJ.prototype,"ytNextContinuationBehavior",void 0);
_.z([_.n(_.Fjr),_.K("design:type",Object)],KJ.prototype,"ytBooleanLogicBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],KJ.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],KJ.prototype,"data",void 0);_.z([_.R({value:2}),_.K("design:type",Number)],KJ.prototype,"initialCount",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],KJ.prototype,"autoFill",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.K("design:type",Boolean)],KJ.prototype,"hasSortFilter",void 0);_.z([_.R({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.K("design:type",Boolean)],KJ.prototype,"hideBottomSeparator",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.K("design:type",Boolean)],KJ.prototype,"shouldScrollInPanel",void 0);
_.z([_.R(),_.K("design:type",Object)],KJ.prototype,"isSearch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],KJ.prototype,"isConstrainedList",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],KJ.prototype,"responsiveSizing",void 0);_.z([_.R(),_.K("design:type",Object)],KJ.prototype,"hasChipsBar",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],KJ.prototype,"pageSubtype",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],KJ.prototype,"engagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],KJ.prototype,"liveChatEngagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],KJ.prototype,"inReplyPanel",void 0);_.z([_.xZ("#action-button"),_.K("design:type",HTMLElement)],KJ.prototype,"actionButton",void 0);_.z([_.R(),_.K("design:type",Object)],KJ.prototype,"scrollUpButtonData",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],KJ.prototype,"engagementPanelDropdown",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],KJ.prototype,"engagementPanelDialog",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],KJ.prototype,"isClipList",null);_.z([_.xZ("#contents"),_.K("design:type",HTMLElement)],KJ.prototype,"monitorScrollElement",void 0);_.z([_.xZ("#contents"),_.K("design:type",HTMLElement)],KJ.prototype,"contents",void 0);
_.z([_.kZ("scroll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KJ.prototype,"onScroll",null);_.z([_.S({is:"ytd-section-list-renderer",disableElementRegistration:!0})],KJ);
var GvK=_.UQ()(KJ,"ytd-section-list-renderer",function(){if(ht_===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-container" class="style-scope ytd-section-list-renderer">\n  <div id="header" class="style-scope ytd-section-list-renderer"></div>\n  <div id="sub-menu" class="style-scope ytd-section-list-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-section-list-renderer"></div>\n<div id="action-button" on-click="scrollToTop" class="style-scope ytd-section-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-section-list-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);ht_=Y}Y=ht_;return Y},{mode:1});var TRo;var JXI;var uQ$;var YRt;var ik=function(){return _.F.apply(this,arguments)||this};
_.P(ik,_.F);ik.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
ik.prototype.onLikeButtonClick=function(Y){Y.stopPropagation();Y.preventDefault()};
_.up.Object.defineProperties(ik.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)!=null&&Y.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ik.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],ik.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ik.prototype,"ytRendererStamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ik.prototype,"data",void 0);
_.z([_.R({selectorArgs:["data.likeStatusEntityKey"],selector:z9}),_.K("design:type",Object)],ik.prototype,"likeStatusEntity",void 0);_.z([_.t("data","likeStatusEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],ik.prototype,"likeButtonRenderer",null);_.z([_.S({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],ik);
_.a(ik,"ytd-slim-metadata-toggle-button-renderer",function(){if(YRt!==void 0)return YRt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-slim-metadata-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-slim-metadata-toggle-button-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return YRt=Y},{mode:1});var Av=function(){var Y=_.F.apply(this,arguments)||this;Y.minimizePipBreakages=_.q("web_pip_minimize_breakages");Y.showEqualizer=_.q("web_enable_playlist_video_lockup_equalizer");Y.watchColorUpdate=_.q("kevlar_watch_color_update");Y.actionMap={};return Y};
_.P(Av,_.F);_.g=Av.prototype;_.g.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"}}}};
_.g.computeEditableClass=function(Y){return Y&&Y.menu?"editable":""};
_.g.computeSelected=function(Y){return!(Y==null||!Y.selected)};
_.g.computeUseColorPalette=function(Y){return!!((Y==null?0:Y.lightColorPalette)&&(Y==null?0:Y.darkColorPalette))};
_.g.computeLargerPlaylistThumbs=function(Y,b){return _.q("web_enable_playlist_bigger_thumbnails")&&!b};
_.g.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.g.onYtServiceRequestSent=function(Y,b){b.endpoint&&this.isHideEnclosingAction(b.endpoint)&&!this.selected&&BQt(_.Cp(),this.data.videoId)};
_.g.isHideEnclosingAction=function(Y){var b=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",Y);Y=this.get("likeEndpoint.status",Y)==="INDIFFERENT";return b||Y};
_.g.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.g.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.up.Object.defineProperties(Av.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(this.withinMiniplayer&&((Y=this.data)==null?0:Y.actionButtons))}}});
Av.prototype.onYtServiceRequestSent=Av.prototype.onYtServiceRequestSent;Av.prototype.canReorderChanged=Av.prototype.canReorderChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Av.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.AB),_.K("design:type",Object)],Av.prototype,"ytdLockupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Av.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Av.prototype,"withinMiniplayer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Av.prototype,"minimizePipBreakages",void 0);_.z([_.R({computed:"computeSelected(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Av.prototype,"selected",void 0);
_.z([_.R({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Av.prototype,"useColorPalette",void 0);_.z([_.R({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Av.prototype,"largerPlaylistThumbs",void 0);_.z([_.R(),_.K("design:type",Object)],Av.prototype,"showEqualizer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Av.prototype,"canReorder",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Av.prototype,"touchPersistentDragHandle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Av.prototype,"handleIsHovered",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Av.prototype,"watchColorUpdate",void 0);_.z([_.R(),_.K("design:type",String),_.K("design:paramtypes",[])],Av.prototype,"reorderIcon",null);
_.z([_.t("largerPlaylistThumbs"),_.K("design:type",Number),_.K("design:paramtypes",[])],Av.prototype,"thumbnailWidth",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Av.prototype,"showActionButtons",null);_.z([_.vX("canReorder"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Av.prototype,"canReorderChanged",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],Av.prototype,"onYtServiceRequestSent",null);_.z([_.S({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Av);
_.a(Av,"ytd-playlist-panel-video-renderer",function(){if(uQ$!==void 0)return uQ$;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return uQ$=Y},{mode:2});var CJ=function(){return _.F.apply(this,arguments)||this};
_.P(CJ,_.F);CJ.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CJ.prototype,"data",void 0);_.z([_.S({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],CJ);
_.a(CJ,"ytd-playlist-panel-supported-items",function(){if(JXI!==void 0)return JXI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-supported-items--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-playlist-panel-supported-items"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return JXI=
Y},{mode:1});rr9=!0;wbI("\\P{N}");var RNK;var b69=_.sa("END_OF_PLAYLIST",void 0,"End of playlist"),wid=_.sa("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),yp=function(){var Y=_.F.apply(this,arguments)||this;Y.minimizePipBreakages=_.q("web_pip_minimize_breakages");Y.updatedCoursePanel=_.q("move_three_dot_menu_to_playlist_panel_header_for_courses");Y.hideHeaderText=!1;Y.useColorPalette=!1;Y.collapsed=!1;Y.collapsedPreServerOverride="not_tracked";Y.isHovered=!1;Y.modernPanels=_.q("kevlar_watch_modern_panels");
Y.expandLabel=_.sa("MINIPLAYER_EXPAND_LABEL");Y.collapseLabel=_.sa("MINIPLAYER_COLLAPSE_LABEL");Y.isFloating=!1;Y.metaPanel=!1;Y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};Y.currentIndex=void 0;return Y};
_.P(yp,_.F);_.g=yp.prototype;
_.g.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"}}}};
_.g.created=function(){this.scrollThrottle=new _.Vm(this.onThrottledScroll,1E3,this)};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
_.g.computeOverflowMenuData=function(Y){return Y&&Y.menu?Y.menu:null};
_.g.computeCollapsible=function(Y){return!Y};
_.g.computeHasPlaylistButtons=function(Y){return!(!Y||!Y.playlistButtons)};
_.g.computeHasSeparateSaveButton=function(Y){return!(!Y||!Y.saveButton)};
_.g.computeHasToolbarButton=function(Y,b){return!(!Y||!(b||Y.saveButton||Y.menu))};
_.g.computePlaylistType=function(Y){if(Y&&Y.playlistId)return Y.playlistId.substring(0,4)};
_.g.computeCanReorder=function(Y){return Y?Y.playlistId&&Y.playlistId.startsWith("TLPQ")?!0:!!Y.isEditable&&!Y.isInfinite:!1};
_.g.attached=function(){var Y=this;try{_.fH().resolve(_.zF).setPlaylistComponent(this.hostElement)}catch(b){if(_.q("kevlar_park_on_playlist_token_killswitch"))throw b;_.Kp().parkOrScheduleJob(function(){_.fH().resolve(_.zF).setPlaylistComponent(Y.hostElement)},2,"ci")}_.Ea(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.g.detached=function(){_.c0(this.hostElement)};
_.g.computeTrailingIcon=function(Y,b,w){return w?b?"yt-icons:collapse":"yt-icons:close":b?"yt-icons:expand":_.q("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.g.computeIndexMessage=function(Y,b){return L6q(Y+1)+" / "+L6q(b)};
_.g.onRenderStamperFinished=function(){if(this.scrollForStampDom){var Y=!0;this.isHovered&&(Y=!1);if(this.collapsed||this.hidden)Y=!1;Y&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.g.collapseChanged=function(){var Y=this;this.collapsed||(_.ps(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.g.hiddenChanged=function(){var Y=this;this.hidden||_.ps(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.scrollToCurrentVideo()})};
_.g.setupReordering=function(){var Y=_.E6(this.hostElement).querySelector("#items");Hco?_.jp_(this.ytReorderableBehavior,Y,Y,"playlist-drag-handle"):_.jp_(this.ytReorderableBehavior,Y,Y)};
_.g.scrollToCurrentVideo=function(){var Y=this;_.Lb.addJob(function(){var b=_.E6(Y.hostElement).querySelector("#items");if(b){b.style.setProperty("padding-bottom","");var w=_.E6(Y.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(w){b=w.parentElement||_.pj(document);var V=b||_.pj(document);var H=_.Rz(w),f=_.Rz(V),E=_.nd8(V);if(V==_.pj(document)){var U=H.x-V.scrollLeft;H=H.y-V.scrollTop}else U=H.x-f.x-E.left,H=H.y-f.y-E.top;w=vdj(w);f=V.clientHeight-
w.height;E=V.scrollLeft;var X=V.scrollTop;E+=U-(V.clientWidth-w.width)/2;V=new _.eq(E,X+(H-f/2));b.scrollLeft=V.x;b.scrollTop=V.y}}},8)};
_.g.dataChanged=function(){var Y=this;_.$Kd(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.TC(this,function(){_.MY(Y.ytTaskEmitterBehavior.getTaskManager(),function(){Y.ytRendererBehavior.markDirty();Y.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.g.onTheaterModeChanged=function(){_.q("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.g.onFullscreenChanged=function(){_.q("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.g.updateNowPlayingOverlay=function(){_.q("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.g.onPlaylistLockupNowPlaying=function(Y,b){b&&(this.activeNowPlayingRenderer=b);this.updateNowPlayingOverlay()};
_.g.onScroll=function(){this.scrollThrottle.fire()};
_.g.onThrottledScroll=function(){var Y=this;_.MY(this.ytTaskEmitterBehavior.getTaskManager(),function(){Y.ytRendererBehavior.markDirty()})};
_.g.onToggleExpanded=function(Y){!this.collapsible||Y&&(_.uW(Y).tagName==="A"||_.uA(_.JL(Y),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.g.setCollapsed=function(Y){this.collapsible&&(this.collapsed=Y,_.De(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.g.handleCollapsedFromData=function(Y){if(Y){var b=Y.playlistPanelCollapseState;b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||b==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),b=b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==b&&this.setCollapsed(b)):this.currentPlaylistId!==Y.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(b=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==b&&this.setCollapsed(b),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=Y.playlistId}};
_.g.handleDrop=function(Y){var b=Y.currDragItem;Y=b.data.playlistSetVideoId;var w=_.zK(b.parentNode.childNodes,b),V=void 0;w>0&&(V=b.parentNode.childNodes[w-1].data.playlistSetVideoId);b=_.Cp();if(b.responsePlaylistData&&b.responsePlaylistData.contents){var H=Twr(Y,b.responsePlaylistData);b.responsePlaylistData=(0,_.BL.unsafeClone)(b.responsePlaylistData);vbe(b.responsePlaylistData.contents,H,w);b.queueProxy?wR8(b.queueProxy,H,w,Y,V):b.playlistProxy&&wR8(b.playlistProxy,H,w,Y,V);_.yy(b,_.$V(b,b.response?
b.response.autoplayRenderer:void 0))}};
_.g.handleDarkModeChange=function(Y){Y!==this.isDarkTheme&&(this.isDarkTheme=Y)};
_.g.colorPaletteChanged=function(){var Y,b=((Y=this.data)==null?void 0:Y.contents)||[],w;Y=_.N(b);for(b=Y.next();!b.done;b=Y.next()){b=b.value;var V=void 0;if((V=b.playlistPanelVideoRenderer)==null?0:V.selected){Y=b.playlistPanelVideoRenderer;V=b=void 0;(w=this.isDarkTheme?(b=Y)==null?void 0:b.darkColorPalette:(V=Y)==null?void 0:V.lightColorPalette)&&_.Fl(this.hostElement,w);break}}this.useColorPalette=!!w};
_.up.Object.defineProperties(yp.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.playlistId)&&!((b=this.data)==null||!b.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var Y=_.fH().resolve(_.HQ(_.zF)),b;if(((b=this.data)==null?0:b.contents)&&(Y==null?0:Y.hasAutoplayData())){var w;if(((w=this.playlistLoopStateEntity)==null?void 0:w.state)==="PLAYLIST_LOOP_STATE_ONE"){if(Y=this.data.currentIndex,Y!==void 0){var V,H;var f=(V=this.data.contents[Y])==null?void 0:(H=V.playlistPanelVideoRenderer)==null?void 0:H.title}}else{var E,U=(E=_.v(Y.getAutoplayEndpoint(),_.TG))==null?void 0:E.videoId,X,I;f=(X=this.data.contents.find(function(k){var l;
return((l=k.playlistPanelVideoRenderer)==null?void 0:l.videoId)===U}))==null?void 0:(I=X.playlistPanelVideoRenderer)==null?void 0:I.title}return f}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)!=null&&Y.nextVideoLabel?this.nextVideoTitle?_.Tx(this.data.nextVideoLabel)+":":b69:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?0:Y.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Gx(wid);var b;return(b=this.data)==null?void 0:b.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V=(Y=this.data)==null?void 0:(b=Y.playlistButtons)==null?void 0:(w=b.menuRenderer)==null?void 0:w.topLevelButtons;if(V)for(Y=_.N(V),b=Y.next();!b.done;b=Y.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(this.collapsed&&((Y=this.data)==null?0:Y.nextVideoLabel))}}});
yp.prototype.colorPaletteChanged=yp.prototype.colorPaletteChanged;yp.prototype.onPlaylistLockupNowPlaying=yp.prototype.onPlaylistLockupNowPlaying;yp.prototype.updateNowPlayingOverlay=yp.prototype.updateNowPlayingOverlay;yp.prototype.onFullscreenChanged=yp.prototype.onFullscreenChanged;yp.prototype.onTheaterModeChanged=yp.prototype.onTheaterModeChanged;yp.prototype.dataChanged=yp.prototype.dataChanged;yp.prototype.hiddenChanged=yp.prototype.hiddenChanged;yp.prototype.collapseChanged=yp.prototype.collapseChanged;
yp.prototype.onRenderStamperFinished=yp.prototype.onRenderStamperFinished;yp.prototype.onMouseLeave=yp.prototype.onMouseLeave;yp.prototype.onMouseEnter=yp.prototype.onMouseEnter;_.z([_.n(_.Li),_.K("design:type",Object)],yp.prototype,"ironResizableBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(CeK.YtPlaylistPanelBehavior),_.K("design:type",Object)],yp.prototype,"ytPlaylistPanelBehavior",void 0);_.z([_.n(_.g9.YtTaskEmitterBehavior),_.K("design:type",Object)],yp.prototype,"ytTaskEmitterBehavior",void 0);_.z([_.n(_.GBj),_.K("design:type",Object)],yp.prototype,"ytReorderableBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],yp.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],yp.prototype,"ytdReduxBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],yp.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yp.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],yp.prototype,"autoplayData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],yp.prototype,"withinMiniplayer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"minimizePipBreakages",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"updatedCoursePanel",void 0);_.z([_.R({computed:"setMenuData_(data)"}),_.K("design:type",Object)],yp.prototype,"menuRendererData",void 0);_.z([_.R({computed:"computeOverflowMenuData(data)"}),_.K("design:type",Object)],yp.prototype,"overflowMenuDataTopRow",void 0);_.z([_.R({computed:"computeOverflowMenuData(data)"}),_.K("design:type",Object)],yp.prototype,"overflowMenuData",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"hideHeaderText",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"useColorPalette",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.K("design:type",Boolean)],yp.prototype,"collapsible",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"collapsed",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],yp.prototype,"hidden",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.K("design:type",Boolean)],yp.prototype,"hasPlaylistButtons",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.K("design:type",Boolean)],yp.prototype,"hasSeparateSaveButton",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.K("design:type",Boolean)],yp.prototype,"hasToolbar",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.K("design:type",String)],yp.prototype,"playlistType",void 0);_.z([_.R(),_.K("design:type",Object)],yp.prototype,"isHovered",void 0);_.z([_.R({selectorArgs:["playlistLoopStateEntityKey"],selector:_.ee6}),_.K("design:type",Object)],yp.prototype,"playlistLoopStateEntity",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"modernPanels",void 0);_.z([_.R({value:56}),_.K("design:type",Number)],yp.prototype,"scrollMargin",void 0);_.z([_.R({computed:"computeCanReorder(data)"}),_.K("design:type",Boolean)],yp.prototype,"canReorder",void 0);_.z([_.R(),_.K("design:type",Object)],yp.prototype,"expandLabel",void 0);_.z([_.R(),_.K("design:type",Object)],yp.prototype,"collapseLabel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"isFloating",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],yp.prototype,"metaPanel",void 0);_.z([_.R({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.K("design:type",String)],yp.prototype,"trailingIcon",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],yp.prototype,"isDarkTheme",void 0);
_.z([_.R({selector:_.L8}),_.K("design:type",Boolean)],yp.prototype,"miniplayerIsActive",void 0);_.z([_.R({selector:function(Y){return Y.watch.playerState}}),
_.K("design:type",Number)],yp.prototype,"playerState",void 0);_.z([_.R({selector:_.Wv}),_.K("design:type",Boolean)],yp.prototype,"isFullscreen",void 0);_.z([_.R({selector:_.zI}),_.K("design:type",Boolean)],yp.prototype,"isTheaterMode",void 0);_.z([_.R(),_.K("design:type",Object)],yp.prototype,"activeNowPlayingRenderer",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yp.prototype,"moveThreeDotMenuToTopRow",null);
_.z([_.t("data","autoplayData","playlistLoopStateEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],yp.prototype,"nextVideoTitle",null);_.z([_.t("data","nextVideoTitle"),_.K("design:type",String),_.K("design:paramtypes",[])],yp.prototype,"nextVideoLabel",null);_.z([_.t("collapsed"),_.K("design:type",String),_.K("design:paramtypes",[])],yp.prototype,"buttonAriaLabel",null);
_.z([_.t("data","playlistId","longBylineText"),_.K("design:type",Object),_.K("design:paramtypes",[])],yp.prototype,"mixLongByLine",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],yp.prototype,"playlistLoopStateEntityKey",null);_.z([_.kZ("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"onMouseEnter",null);
_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"onMouseLeave",null);_.z([_.R({reflectToAttribute:!0}),_.t("data","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],yp.prototype,"showNextVideoHeader",null);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"onRenderStamperFinished",null);
_.z([_.lr("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"collapseChanged",null);_.z([_.lr("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"hiddenChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"dataChanged",null);
_.z([_.lr("isTheaterMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"onTheaterModeChanged",null);_.z([_.lr("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"onFullscreenChanged",null);_.z([_.lr("playerState","miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"updateNowPlayingOverlay",null);
_.z([_.kZ("yt-playlist-lockup-now-playing-active"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],yp.prototype,"onPlaylistLockupNowPlaying",null);_.z([_.lr("data","isDarkTheme"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],yp.prototype,"colorPaletteChanged",null);_.z([_.S({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],yp);
_.VG$=_.UQ()(yp,"ytd-playlist-panel-renderer",function(){if(TRo===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" data-collapsed="[[collapsed]]" class="style-scope ytd-playlist-panel-renderer"><div class="header style-scope ytd-playlist-panel-renderer" on-tap="onToggleExpanded"><div id="header-contents" class="style-scope ytd-playlist-panel-renderer"><div id="header-top-row" class="style-scope ytd-playlist-panel-renderer"><div id="header-description" class="style-scope ytd-playlist-panel-renderer"><h3 hidden="[[showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[data.titleText]]"></yt-formatted-string></h3><h3 id="next-video-title" hidden="[[!showNextVideoHeader]]" class="style-scope ytd-playlist-panel-renderer"><span id="next-label" class="style-scope ytd-playlist-panel-renderer">[[nextVideoLabel]]</span><yt-formatted-string ellipsis-truncate="" text="[[nextVideoTitle]]" class="style-scope ytd-playlist-panel-renderer"></yt-formatted-string></h3><div id="publisher-container" class="style-scope ytd-playlist-panel-renderer"><yt-formatted-string class="byline-title style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" hidden="[[!showNextVideoHeader]]" text="[[data.titleText]]"></yt-formatted-string><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-panel-renderer"></ytd-badge-supported-renderer><yt-formatted-string class="publisher style-scope ytd-playlist-panel-renderer" ellipsis-truncate="" link-inherit-color="" text="[[mixLongByLine]]"></yt-formatted-string><div class="index-message-wrapper style-scope ytd-playlist-panel-renderer" hidden="[[data.isInfinite]]"><span class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[data.videoCountText]]">[[computeIndexMessage(data.currentIndex,\n                data.totalVideos)]]</span><yt-formatted-string class="index-message style-scope ytd-playlist-panel-renderer" hidden="[[!data.videoCountText]]" respecthtmldir="" text="[[data.videoCountText]]"></yt-formatted-string></div></div></div><div id="end-actions-in-header" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu-top-row" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="top-row-buttons" class="style-scope ytd-playlist-panel-renderer"></div><yt-icon-button id="trailing-button" label="[[buttonAriaLabel]]" pressed="[[!collapsed]]" toggleable="" class="style-scope ytd-playlist-panel-renderer"><yt-icon id="trailing-icon" icon="[[trailingIcon]]" class="style-scope ytd-playlist-panel-renderer"></yt-icon></yt-icon-button></div><div id="playlist-actions" class="style-scope ytd-playlist-panel-renderer"><div id="start-actions" class="style-scope ytd-playlist-panel-renderer"><div id="playlist-action-menu" class="style-scope ytd-playlist-panel-renderer"></div><div id="save-button" class="style-scope ytd-playlist-panel-renderer"></div></div><div id="end-actions" class="style-scope ytd-playlist-panel-renderer"><div id="overflow-menu" class="style-scope ytd-playlist-panel-renderer"></div></div></div></div></div><div id="content-header" hidden="[[!data.contentHeader]]" class="style-scope ytd-playlist-panel-renderer"></div><div id="items" class="playlist-items style-scope ytd-playlist-panel-renderer" on-scroll="onScroll"></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);TRo=Y}Y=TRo;return Y},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var H6o;var $3=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_button_rework");return Y};
_.P($3,_.F);$3.prototype.computeShouldButtonBeVertical=function(Y,b){return Y||b};
$3.prototype.onYtServiceRequestSent=function(Y,b){(Y=_.v(b.endpoint,_.jV))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.qo("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:Y.status})):this.handleLikeEndpoint(Y))};
$3.prototype.computelikeStatusEntityKey=function(Y){return Y==null?void 0:Y.likeStatusEntityKey};
$3.prototype.handleLikeEndpoint=function(Y){Y.status==="LIKE"?this.JSC$14943_ytdDislikeToggleButtonRenderer.toggle(!1):Y.status==="DISLIKE"?this.JSC$14943_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14943_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14943_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.up.Object.defineProperties($3.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var Y;return zNK(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(Y=this.likeStatusEntity)==null?void 0:Y.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var Y;if(this.data&&((Y=this.data)==null||!Y.hideDislikeButton)){var b;return zNK(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(b=this.likeStatusEntity)==null?void 0:b.likeStatus)}}}});
$3.prototype.onYtServiceRequestSent=$3.prototype.onYtServiceRequestSent;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],$3.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$3.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],$3.prototype,"vertical",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],$3.prototype,"textTransform",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],$3.prototype,"useShortsIcon",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],$3.prototype,"underIconLabel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$3.prototype,"modern",void 0);_.z([_.R({value:"left"}),_.K("design:type",String)],$3.prototype,"buttonTooltipPosition",void 0);
_.z([_.R(),_.K("design:type",Object)],$3.prototype,"overrides",void 0);_.z([_.xZ("#like-button"),_.K("design:type",Object)],$3.prototype,"JSC$14943_ytdLikeToggleButtonRenderer",void 0);_.z([_.xZ("#dislike-button"),_.K("design:type",Object)],$3.prototype,"JSC$14943_ytdDislikeToggleButtonRenderer",void 0);_.z([_.t("data","likeStatusEntity.likeStatus"),_.K("design:type",Object),_.K("design:paramtypes",[])],$3.prototype,"likeButton",null);
_.z([_.t("data","likeStatusEntity.likeStatus"),_.K("design:type",Object),_.K("design:paramtypes",[])],$3.prototype,"dislikeButton",null);_.z([_.R({computed:"computelikeStatusEntityKey(data)"}),_.K("design:type",String)],$3.prototype,"likeStatusEntityKey",void 0);_.z([_.R({selectorArgs:["likeStatusEntityKey"],selector:z9}),_.K("design:type",Object)],$3.prototype,"likeStatusEntity",void 0);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],$3.prototype,"onYtServiceRequestSent",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],$3);
var gl$=_.UQ()($3,"ytd-like-button-renderer",function(){if(H6o===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);H6o=Y}Y=H6o;return Y},{mode:1});_.fGI={};
_.fGI.YtConditionalRendererBehavior=[_.u.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(Y,b){var w=this,V,H;return _.c(function(f){switch(f.nextAddress){case 1:if(!b)return w.hidden=!0,w.showSpinner=!1,f.return();if((V=Y)==null?0:(H=V.visibilityCondition)==null?0:H.mode)switch(Y.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return f.jumpTo(5);default:return f.jumpTo(6)}w.showSpinner=
!1;w.hidden=!0;return _.D(f,w.shouldShow_(Y),4);case 4:w.hidden=!f.yieldResult;f.jumpTo(0);break;case 5:return _.D(f,w.shouldShow_(Y),8);case 8:w.showSpinner=f.yieldResult;w.hidden=!1;f.jumpTo(0);break;case 6:return w.showSpinner=!1,_.D(f,w.shouldShow_(Y),9);case 9:w.hidden=!f.yieldResult,_.om(f)}})},
shouldShow_:function(Y){return Y&&Y.supportedDatas&&Y.supportedDatas.rendererVisibilityConditionData&&Y.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(Y.supportedDatas.rendererVisibilityConditionData.showIf):Y&&Y.visibilityCondition&&Y.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(Y.visibilityCondition.showIf):Y&&Y.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(Y.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(Y){switch(Y){case "VISIBILITY_CONDITION_TYPE_MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_MDX_DISCONNECTED":return Promise.resolve(!this.isMdxConnected_());case "VISIBILITY_CONDITION_TYPE_LOCATION_PERMISSION_GRANTED":return this.isLocationPermissionGranted_();default:return Promise.resolve(!1)}},
isLegacyVisibilityConditionSatisfied_:function(Y){switch(Y){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var Y=_.Xx(this.hostElement,"yt-get-mdx-status");return Y.length==1&&Y[0].connected},
isLocationPermissionGranted_:function(){var Y;return _.c(function(b){return b.nextAddress==1?navigator.permissions?_.D(b,navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2):b.nextAddress!=2?(Y=b.yieldResult,b.return(Promise.resolve(Y.state==="granted"))):b.return(Promise.resolve(!1))})}}];var Ngt=function(Y,b){b=b===void 0?{}:b;return function(w){var V=document.createElement(Y),H;var f=(H=V.polymerController)!=null?H:V;i4L(V,f,w,b);return V}}("yt-icon"),El_=_.q("web_bypass_polymer_yt_icon")&&_.q("kevlar_use_wil_icons")?_.b8(function(Y){var b=Y.icon;
var w=Y.active;var V=Y.className;var H=Y.style;var f=Y.dataSelected;var E=Y.dataDisabled;var U=Y.role;var X=Y.themeOverride;var I=Y.animateIcon;var k=Y.ariaHidden;var l=Y.ariaExpanded;var x=Y.ariaLabel;var Q=Y.tabindex;var Z=Y.id;var e=Y.iconFilter;var O=function(){var C=b==null?void 0:b(),W=null,y=void 0;C&&(C=V0K(C),C=xNa(C),C.length&&(W=C[1],y=C[0]));return{iconName:W,iconSetName:y}},L=function(){return HRU(O().iconName,w==null?void 0:w(),void 0,void 0,O().iconSetName,_.fH().resolve(_.kO))},r=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:e==null?void 0:e()}};
return _.m(_.h,{cond:I,then:function(){return _.m(Ngt,{icon:b,active:w,className:V,style:H,dataSelected:f,dataDisabled:E,role:U,themeOverride:X,ariaHidden:k,ariaExpanded:l,ariaLabel:x,tabindex:Q,id:Z,iconFilter:e})},
else:function(){return _.m(_.h,{cond:L,then:function(C){return _.m(Whg,{data:C,options:r})}})}})},"ie"):Ngt;var c3$=function(Y){var b=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];yLt();_.wG("ytglobal.ytUtilActivityCallback_",function(){_.De(Y,"yt-user-activity")});
new Hy(function(){return b.JSC$14957_onMouseMove});
document.addEventListener("scroll",function(){return b.onScroll});
window.addEventListener("resize",function(){return b.onResize})},UUj=function(Y,b,w){b in Y.eventJobIds||(w=_.dp().addLowPriorityJob(function(){_.gh();
delete Y.eventJobIds[b]},w),Y.eventJobIds[b]=w)};
c3$.prototype.onScroll=function(Y){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):Y.target===document&&UUj(this,"scroll",200)};
c3$.prototype.onResize=function(){UUj(this,"resize",200)};
c3$.prototype.JSC$14957_onMouseMove=function(){UUj(this,"mousemove",100)};
_.Y1=function(Y){Y.scrollEventsToIgnore+=1;Y.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){Y.scrollEventsToIgnore--},500))};var Xi_=function(Y){this.element=Y;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Xi_.prototype.showFeedbackDialog=function(Y,b,w,V){var H=DU_();if(!H)return!1;var f=JTI();f.productId=H;b&&(f.flow="submit",f.report={description:b});w&&(DU_()==="59"?f.callback=_.i1(function(){_.RY("userFeedbackEvent",{});w()}):f.callback=_.i1(w));
f.bucket=V||_.zO("GOOGLE_FEEDBACK_BUCKET","Other");mUt(f);Y=olt(this,"GFEEDBACK",Y);try{_.oiC(f,Y)}catch(E){return _.K7(E),!1}return!0};
Xi_.prototype.showHelpDialog=function(Y,b,w){var V=this,H=DU_();if(!H)return!1;var f={helpCenterPath:"/youtube",productData:olt(this,"GUIDED_HELP",w)};mUt(f);var E=JTI();E.context=Y||f.productData.context||"default";E.defaultHelpArticleId=b;E.enableSendFeedback=!0;(_.Aq("gapi.load")||function(U,X){return X()})("client",function(){try{var U=JpK(H,f);
if(_.q("web_always_load_chat_support")&&!V.chatSupportLoaded)try{U.JSC$8012_loadChatSupport(E),V.chatSupportLoaded=!0}catch(X){}U.startHelp(E)}catch(X){_.K7(X)}})};
var DU_=function(){var Y=_.zO("GOOGLE_FEEDBACK_PRODUCT_ID");Y||_.K7(Error("ei"));return Y},mUt=function(Y){Y&&(Y.locale=_.q("kevlar_help_use_locale")?_.zO("INNERTUBE_CONTEXT_HL","en"):_.zO("HTML_LANG","en"))},olt=function(Y,b,w){var V=Y.productData;
delete V.origin;V.device=_.kb();var H;a:{if(H=document.createElement("canvas")){var f=H.getContext("experimental-webgl",{stencil:!0});if(f){var E=f.getExtension("WEBGL_debug_renderer_info");if(E){H=f.getParameter(E.UNMASKED_RENDERER_WEBGL);break a}}if(f=H.getContext("webgl")){H=f.getParameter(f.RENDERER);break a}}H=null}V.gpu=H;V.isSDC=!!_.zO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(H=_.zO("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.BL.extend(V,H);_.G0v(b,V);_.TeK(V);(Y=_.De(Y.element,"yt-get-autonav-pause-debug-state"))&&
Y.length&&(V.autonav_pause_state=Y[0]);Y=_.Iz();V.browser_resolution=Y.width+"\u00d7"+Y.height+"@"+(window.devicePixelRatio||1)+"x";w&&_.BL.extend(V,w);return V};
Xi_.prototype.resetProductData=function(){this.productData={}};var IGt=function(Y){this.feedbackManager=new Xi_(Y)};
IGt.prototype.showFeedbackDialog=function(Y,b,w,V){return this.feedbackManager.showFeedbackDialog(Y,b,w,V)};
IGt.prototype.showHelpDialog=function(Y,b,w){return this.feedbackManager.showHelpDialog(Y,b,w)};var kYr=function(){this.baseUrl="";this.aTag=document.createElement("a")},uf8=function(Y,b,w){w=w===void 0?{}:w;
w.pbj||(w.pbj=1);w=_.OAv(b,w);Y.baseUrl&&w&&!_.u1(w)[1]&&!_.Yu(w)&&(b=Y.baseUrl,fa(b,"/")&&(b=b.slice(0,-1)),_.Hg(w,"/")&&(w=w.slice(1)),w=b+"/"+w);er(Y.aTag,su(w||""));return Y.aTag.href};
kYr.prototype.fetchData=function(Y){return _.irL(Y)};
kYr.prototype.postData=function(Y,b){var w={method:"POST"};if(b){for(var V=_.N(Object.keys(b)),H=V.next();!H.done;H=V.next()){H=H.value;var f=b[H];_.bC(f)&&(b[H]=JSON.stringify(f))}w.postParams=b}return _.irL(Y,w)};
_.Y4k=function(Y,b,w,V,H){Y=uf8(Y,b,w);if(!Y)throw V=Error("fi"),Object.assign(V,{params:b}),V;return _.irL(Y,H,V)};
kYr.prototype.requestDataForServiceEndpoint=function(Y,b){if(_.v(Y,_.hFv))return this.fetchData("/getAccountSwitcherEndpoint");b=b||{};var w=_.v(Y,P6I);w?b.se=w.base64EncodedServiceEndpoint:b.sej=JSON.stringify(Y);(w=_.dO())&&_.q("enable_service_ajax_csn")&&(b.csn=w);b.theme=_.OC();_.v(Y,kBu)&&_.zO("DELEGATION_CONTEXT")&&(b.delegation_context=JSON.stringify(_.zO("DELEGATION_CONTEXT")));w=null;for(var V in Y)if(fa(V,"Endpoint")||fa(V,"Command")){w=V;break}if(!w){var H=Error("gi");Object.assign(H,{params:Y});
_.Mze(H,"WARNING");return new _.hh(function(E,U){U(H)})}V={name:w};
var f;(w=(f=_.v(Y,_.x7))==null?void 0:f.signal)&&(V.signal=w);(f=_.GO(window.location.href))&&f.internalcountrycode&&(V.internalcountrycode=f.internalcountrycode);f="/service_ajax";_.q("debug_forward_web_query_parameters")&&(f=_.KHG(f,window.location.search));f=_.Jq(f,V);Y.clickTrackingParams&&_.VX(f,{itct:Y.clickTrackingParams});return this.postData(f,b)};_.lGt=new _.Hx("GFEEDBACK_TOKEN");var hat;var xUr;var qRU;var sK_;var jp=function(){var Y=_.F.apply(this,arguments)||this;Y.compact=!1;return Y};
_.P(jp,_.F);jp.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jp.prototype.computeHasIcon_=function(Y){return!!Y};
jp.prototype.isSignInIcon_=function(Y){return Y=="yt-icons:prompted_sign_in"};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.fGI.YtConditionalRendererBehavior),_.K("design:type",Object)],jp.prototype,"ytConditionalRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jp.prototype,"data",void 0);
_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],jp.prototype,"icon_",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.K("design:type",Boolean)],jp.prototype,"hasIcon_",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.K("design:type",Boolean)],jp.prototype,"signInIcon_",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],jp.prototype,"compact",void 0);
_.z([_.FM({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],jp);
_.a(jp,"yt-player-error-message-renderer",function(){if(sK_===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;qRU===void 0&&(qRU=document.createElement("template"));var V=qRU;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);sK_=Y}Y=sK_;return Y},{mode:2});var QKC;var vlU;var G5=function(){return _.F.apply(this,arguments)||this};
_.P(G5,_.F);G5.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
G5.prototype.computeIcon_=function(Y){return Y?"yt-icons:"+Y.iconType.toLowerCase():"error_outline"};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],G5.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],G5.prototype,"icon_",void 0);_.z([_.FM({is:"yt-player-kav-renderer",disableElementRegistration:!0})],G5);
_.a(G5,"yt-player-kav-renderer",function(){if(vlU===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-kav-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_kav_renderer.yt.player.kav.renderer.css.js--\x3e<yt-icon icon="[[icon_]]" class="style-scope yt-player-kav-renderer"></yt-icon>\n<div id="info" class="style-scope yt-player-kav-renderer">\n  <div class="reason style-scope yt-player-kav-renderer">[[getSimpleString(data.reason)]]</div>\n  <div class="subreason style-scope yt-player-kav-renderer">[[getSimpleString(data.subreason)]]</div>\n  <yt-formatted-string class="more style-scope yt-player-kav-renderer" text="[[data.learnMore]]"></yt-formatted-string>\n  <div id="button" class="style-scope yt-player-kav-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;QKC===void 0&&(QKC=document.createElement("template"));var V=QKC;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);vlU=Y}Y=vlU;return Y},{mode:2});_.f_(_.b8(function(Y){var b=_.GM("div"),w=_.N(_.kw(0,void 0,"gCmSbf")),V=w.next().value,H=w.next().value;w=_.N(_.kw(null,void 0,"Rj9zMe"));var f=w.next().value,E=w.next().value;_.dx(function(){bIL(b.value,H,E);b.value.scrollIntoView()});
w=wCe.bind(null,Y.data,V);wS("resize",function(){var U=f();if(V()===1&&U!==null){var X;(X=window.grecaptcha)==null||X.reset(U)}});
return _.m("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.m("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.m("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var U,X;return(U=Y.data().accessibility)==null?void 0:(X=U.accessibilityData)==null?void 0:X.label}),_.m(_.wv,{text:w,
className:_.hj("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.m("div",{el:b,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.gn}});var V8G=!1;_.P__=_.b8(function(Y){var b=Y.data;return _.m("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.m(_.h,{cond:function(){return b().icon},
then:function(w){return _.m("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.m(_.Y_,{data:w,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.m(_.h,{cond:function(){return b().title},
then:function(w){return _.m("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.m(_.wv,{text:w}))}}),_.m(_.h,{cond:function(){return b().description},
then:function(w){return _.m("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.m(_.wv,{text:w}))}}),_.m(_.OH,{data:function(){return b().primaryButton}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.m(_.OH,{data:function(){return b().secondaryButton}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.P__.idomCompat=!0;var Z6r=_.b8(function(Y){var b=Y.data;_.uJ();return _.m("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.m("div",{class:"player-interstitial-renderer-wiz__scrim"},_.m(_.OH,{data:function(){return b().content}},{interstitialViewModel:_.P__})))},"le");
Z6r.idomCompat=!0;_.f_(Z6r,"yt-player-interstitial-renderer",{props:{data:_.YX}});var T5=function(){var Y=_.F.apply(this,arguments)||this;Y.noBackground=!1;Y.compact=!1;Y.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return Y};
_.P(T5,_.F);T5.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"}}}};
T5.prototype.onUpdatePlayerErrorMessageCommand_=function(Y){if(_.v(Y,a4r)){var b;if(Y=(b=_.v(Y,a4r))==null?void 0:b.newPlayerErrorMessageRenderer)this.data=Y}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],T5.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],T5.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],T5.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],T5.prototype,"status",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],T5.prototype,"noBackground",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],T5.prototype,"compact",void 0);_.z([_.FM({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],T5);
var BgU=_.UQ()(T5,"yt-playability-error-supported-renderers",function(){if(xUr===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-playability-error-supported-renderers--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_playability_error_supported_renderers.yt.playability.error.supported.renderers.css.js--\x3e<div id="container" class="style-scope yt-playability-error-supported-renderers"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;hat===void 0&&(hat=document.createElement("template"));var V=hat;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);xUr=Y}Y=xUr;return Y},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var HIG=void 0,f0q=void 0;var c5g=new LS5;var nl5=function(Y){this.store=Y;this.mVk=new _.rpo},vjM=function(Y,b,w){var V,H;
if(!(H=((V=b.playabilityStatus)==null?void 0:V.status)!=="OK")){Y=Y.store;var f;H=b.offlineState&&((f=b.videoDetails)==null?0:f.videoId)?_.q("enable_pl_r_c_cd")?n$q(Y.getState().entities,b.videoDetails.videoId):!!bLG(Y.getState().entities,b.videoDetails.videoId):!1}if(H)return!0;H=oTv(b);if(H===1){if(_.q("ab_v_vid_sig")){var E,U=(E=b.videoDetails)==null?void 0:E.videoId;if(!U||!w||U!==w){var X;b=new _.BQ("282054944_vid",{zYm:w,uTm:(X=b.videoDetails)==null?void 0:X.videoId});_.Ft(b)}}return!0}tHu=
0;var I,k;X=(U=b.auxiliaryUi)==null?void 0:(I=U.messageRenderers)==null?void 0:(k=I.bkaEnforcementMessageViewModel)==null?void 0:k.displayType;if(H!==3&&(X==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||X==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;X={reason:_.NV(_.sa("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.q("ks_something_wrong_learn_more")?F8L("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.NV(_.sa("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:_.NV("282054944")};MGI(b,{playerErrorMessageRenderer:X});return!1},PlK=function(Y,b){if(GWK(b)){_.lW(1,!0);
var w=(w=GWK(b))&&_.gT6()?w:void 0;w?(MGI(b,{enforcementMessageViewModel:w}),Y.mVk.increment("IN_PLAYER"),_.lW(5)):(Y.mVk.increment("SKIP_DISPLAY"),_.lW(2))}},MGI=function(Y,b){Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",
errorScreen:b});Y.videoDetails=void 0};
nl5.prototype.handleResponse=function(Y,b){if(Y.playabilityStatus){var w,V,H,f=(b==null?void 0:(w=b.innerTubeRequest)==null?void 0:w.videoId)||(b==null?void 0:(V=b.innerTubeRequest)==null?void 0:(H=V.playerRequest)==null?void 0:H.videoId);vjM(this,Y,f)&&PlK(this,Y)}};
nl5[VS]=[oM];var sEg=new _.Hx("ADBLOCK_DETECTION_SERVICE_TOKEN");var VY=function(Y){this.wKt=Y};
VY.prototype.bindInnertubeChallengeFetcher=function(Y){this.wKt.bicf(Y)};
VY.prototype.registerChallengeFetchedCallback=function(Y){this.wKt.bcr(Y)};
VY.prototype.getLatestChallengeResponse=function(){return this.wKt.blc()};var tGo;_.Jv=function(Y,b,w){var V=this;this.network=Y;this.options=b;this.networkStatusManager=w;this.zl=null;if(b.useBotguardEverywhere){var H=new _.mD;this.zl=H.promise;_.wB.ytAtRC&&_.vv(_.Lb,function(){var f,E;return _.c(function(U){if(U.nextAddress==1){if(!_.wB.ytAtRC)return U.return();f=eaK(null);return _.D(U,V.sv(f),2)}E=U.yieldResult;_.wB.ytAtRC&&_.wB.ytAtRC(JSON.stringify(E));_.om(U)})});
xtq().then(function(f){var E,U,X,I;return _.c(function(k){if(k.nextAddress==1)return f.bindInnertubeChallengeFetcher(function(l){return V.sv(eaK(l))}),_.D(k,Mh6(),2);
E=k.yieldResult;U=f.getLatestChallengeResponse();X=U.challenge;if(!X)throw Error("hi");I={challenge:X,yn:wp(X),nj:E,bgChallenge:new Yi};H.resolve(I);f.registerChallengeFetchedCallback(function(l){l=l.challenge;if(!l)throw Error("ii");l={challenge:l,yn:wp(l),nj:E,bgChallenge:new Yi};V.zl=Promise.resolve(l)});
_.om(k)})})}else b.preload&&pi9(this,new Promise(function(f){_.MY(_.Lb,function(){f(O6C(V))},0)}))};
tGo=function(Y){var b={preload:!0,useBotguardEverywhere:!0},w=!1;if(typeof b==="boolean")var V={preload:b};else typeof b==="undefined"?V={preload:!0}:(V=b,w=!!b.hci);b=w?void 0:new _.jI;_.Jv.instance=new _.Jv(Y,V,b);return _.Jv.instance};
_.Jv.prototype.yXE=function(){var Y=this;return _.c(function(b){return b.nextAddress==1?_.D(b,Promise.race([Y.zl,null]),2):b.return(!!b.yieldResult)})};
_.Jv.prototype.az5=function(Y,b,w){var V=this,H,f,E;return _.c(function(U){V.zl===null&&pi9(V,O6C(V));H=!1;f={};E=function(){var X,I,k;return _.c(function(l){switch(l.nextAddress){case 1:return _.D(l,V.zl,2);case 2:X=l.yieldResult;f.challenge=X.challenge;if(!X.nj){"c1a"in X.yn&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");l.jumpTo(3);break}I=Object.assign({},{c:X.challenge,e:Y},b);_.ct(l,4);H=!0;if(_.q("attbs")&&!V.options.useBotguardEverywhere){k=_.Lm8(X.nj,{sR:I});l.jumpTo(6);break}return _.D(l,
X.nj.snapshot({sR:I}),7);case 7:k=l.yieldResult;case 6:k?f.webResponse=k:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.$u(l,3);break;case 4:_.mS(l),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(Y==="ENGAGEMENT_TYPE_PLAYBACK"){var x=X.yn,Q={};if(x.c6a){var Z=Number(_.zO("DCLKSTAT",0));Q.reportingStatus=String(Number(x.c)^(isNaN(Z)?0:Z))}x.c6b&&(Q.broadSpectrumDetectionResult=String(Number(x.c)^Number(_.zO("CATSTAT",0))));f.adblockReporting=Q}return l.return(f)}})};
return U.return(Promise.race([E(),RaI(w,function(){var X=Object.assign({},f);H&&(X.error="ATTESTATION_ERROR_VM_TIMEOUT");return X})]))})};
var eaK=function(Y){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Y&&(b.interpreterHash=Y);return b},O6C=function(Y,b){b=b===void 0?0:b;
var w,V,H,f,E,U,X,I,k,l,x,Q;return _.c(function(Z){switch(Z.nextAddress){case 1:w=eaK(rzt().rO7);if(_.q("att_fet_ks"))return _.ct(Z,7),_.D(Z,Y.sv(w),9);_.ct(Z,4);return _.D(Z,dUU(Y,w),6);case 6:E=Z.yieldResult;H=E.hwC;f=E.sXC;V=E;_.$u(Z,3);break;case 4:return _.mS(Z),_.Sk(Error("ji`"+b)),Fr8(Y,864E5),Z.return({challenge:"",yn:{},nj:void 0,bgChallenge:void 0});case 9:V=Z.yieldResult;if(!V)throw Error("ki");if(!V.challenge)throw Error("li");H=V.challenge;f=wp(H);if("c1a"in f&&(!V.bgChallenge||!V.bgChallenge.program))throw Error("mi");
_.$u(Z,3);break;case 7:U=_.mS(Z);_.Sk(U);b++;if(b>=5)return _.Sk(Error("ji`"+b)),Fr8(Y,864E5),Z.return({challenge:"",yn:{},nj:void 0,bgChallenge:void 0});X=1E3*Math.pow(2,b-1)+Math.random()*1E3;return Z.return(new Promise(function(e){_.MY(_.Lb,function(){e(O6C(Y,b))},X)}));
case 3:I=h5v(f);Fr8(Y,I*1E3);k=void 0;if(!("c1a"in f&&V.bgChallenge)){Z.jumpTo(10);break}l=l0u(V.bgChallenge);_.ct(Z,11);return _.D(Z,WmI(rzt(),l),13);case 13:_.$u(Z,12);break;case 11:return x=_.mS(Z),_.Sk(x),Z.return({challenge:H,yn:f,nj:k,bgChallenge:l});case 12:return _.ct(Z,14),k=new _.rP({challenge:l,tN:{wC:"aGIf"}}),_.D(Z,k.uds,16);case 16:_.$u(Z,10);break;case 14:Q=_.mS(Z),_.Sk(Q),k=void 0;case 10:return Z.return({challenge:H,yn:f,nj:k,bgChallenge:l})}})};
_.Jv.prototype.sv=function(Y){var b=this,w;return _.c(function(V){w=b.networkStatusManager;if(!w||w.isNetworkAvailable())return V.return(b.network.sv(Y));_.r5("att_pna",void 0,"attestation_challenge_fetch");return V.return(new Promise(function(H){w.listenOnce("publicytnetworkstatus-online",function(){b.network.sv(Y).then(H)})}))})};
var Lr5=function(Y){if(!Y)throw Error("ki");if(!Y.challenge)throw Error("li");var b=Y.challenge,w=wp(b);if("c1a"in w&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("mi");return Object.assign({},Y,{hwC:b,sXC:w})},dUU=function(Y,b){var w,V,H,f,E;
return _.c(function(U){switch(U.nextAddress){case 1:w=void 0,V=0,H={};case 2:if(!(V<5)){U.jumpTo(4);break}if(!(V>0)){U.jumpTo(5);break}H.qsp=1E3*Math.pow(2,V-1)+Math.random()*1E3;return _.D(U,new Promise(function(X){return function(I){_.MY(_.Lb,function(){I(void 0)},X.qsp)}}(H)),5);
case 5:return _.ct(U,7),_.D(U,Y.sv(b),9);case 9:return f=U.yieldResult,U.return(Lr5(f));case 7:w=E=_.mS(U),E instanceof Error&&_.Sk(E);case 8:V++;H={qsp:void 0};U.jumpTo(2);break;case 4:throw w;}})},pi9=function(Y,b){Y.zl=b},SRo=function(Y){var b,w,V;
return _.c(function(H){if(H.nextAddress==1)return _.D(H,Promise.race([Y.zl,null]),2);b=H.yieldResult;var f=O6C(Y);Y.zl=f;(w=b)==null||(V=w.nj)==null||V.dispose();_.om(H)})},Fr8=function(Y,b){var w=Date.now()+b,V=function(){var H;
return _.c(function(f){H=w-Date.now();return H<1E3?_.D(f,SRo(Y),0):(_.MY(_.Lb,V,Math.min(H,6E4)),f.jumpTo(0))})};
V()},RaI=function(Y,b){return new Promise(function(w){_.MY(_.Lb,function(){w(b())},Y)})};var aG5=function(){};
aG5.prototype.processContext=function(Y){var b=_.Jv.instance;if(!b)return _.Tk();var w=Pu6(Y);return w?new Gk(b.az5(w,QN6(Y),500).then(function(V){var H;(Y==null?0:(H=Y.innerTubeRequest)==null?0:H.context)||(Y.innerTubeRequest.context={});H=Y.innerTubeRequest.context;H.request||(H.request={});H.request.attestationResponseData=V})):_.Tk()};var r39=function(Y){this.innertubeTransportService=Y};
r39.prototype.sv=function(Y){_.r5("att_fsr",void 0,"attestation_challenge_fetch");return _.rw(this.innertubeTransportService,Y,_.Yy(_.aCr)).then(function(b){_.r5("att_frr",void 0,"attestation_challenge_fetch");return b})};_.za_=function(Y){this.innertubeTransportService=Y};var Wr$=new _.Hx("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Krj=function(){},A3r=function(Y,b,w,V,H){var f=_.zO("YPC_MB_URL");
_.f_I(f).then(function(){i6$(f,Y,b,w,V,H)})},i6$=function(Y,b,w,V,H,f){try{var E=payments.business.integration,U=payments.business.integration.Style.create().withMaterialDesignStyle(),X=E.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.q("enable_window_constrained_buy_flow_dialog")&&(X=X.usingPopupStyle("windowConstrained"));f&&(X=X.usingCloseCallback(f));var I=w?w:_.zO("YPC_GB_LANGUAGE"),k=_.zO("SESSION_INDEX");E.bootstrap.fromPaymentsUrl(Y);E.bootstrap.asMashupMode(X).usingGaiaIndex(k).usingLocale(I).usingStyle(U).usingDefaultActivityStatusChangeHandler().inStandaloneContext(E.standaloneContextAuthId.forGaia()).purchaseManager(b,function(l){V&&V(l)}).load(void 0,H)}catch(l){throw H&&H(l),_.Ft(l),l;
}};var C_5=new _.Hx("PURCHASE_MANAGER_TOKEN");var y3U=function(){var Y=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return Y.videos},
getContinuationsPresent:function(){return Y.continuationsPresent},
setVideos:function(b){Y.videos=b},
getRecommendedVideos:function(){return Y.recommendedVideos},
setRecommendedVideos:function(b){Y.recommendedVideos=b}}};
y3U.prototype.addVideos=function(Y){Y&&(this.videos=Y.filter(function(b){return!!_.BjL(b)}).map(function(b){var w=_.BjL(b);
a:{var V;if(b.playlistVideoRenderer&&((V=b.playlistVideoRenderer)==null?0:V.voteSortTiebreaker))var H=b.playlistVideoRenderer.voteSortTiebreaker;else{if(_.v(b,gp)){var f;if(V=(H=_.v(b,gp))==null?void 0:(f=H.playlistItemData)==null?void 0:f.voteSortTiebreaker){H=V;break a}}H=""}}return{itemId:w,videoId:_.e56(b),voteCount:_.pCK(b),voteSortTiebreaker:H}}),this.continuationsPresent=!!_.v(Y[Y.length-1],_.cK))};
var $U8=function(Y,b){return Y.videos.findIndex(function(w){return w.itemId===b})},jK5=function(Y,b){return Y.recommendedVideos.findIndex(function(w){return w.itemId===b})},GY5=function(Y){Y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:Y}}}}};_.fH().resolve(_.Nn).resolveCommand(Y)};var Tg_=function(){y3U.apply(this,arguments)};
_.P(Tg_,y3U);
var S$$=function(Y,b,w,V){if(!Y.parentElem)throw Error("ri");var H=$U8(Y,b);H===-1&&(H=jK5(Y,b),H=H!==-1?H+Y.videos.length:-1);if(H===-1)throw Error("si");var f=H>=Y.videos.length?Y.recommendedVideos[H-Y.videos.length]:Y.videos[H];f.voteCount=w;f.voteSortTiebreaker=Date.now().toString();H>=Y.videos.length?Y.recommendedVideos.splice(H-Y.videos.length,1):Y.videos.splice(H,1);var E=Y.videos;for(var U=0,X=E.length-1;U<=X;){var I=Math.floor((U+X)/2);if(E[I].voteCount<f.voteCount)X=I-1;else if(E[I].voteCount>f.voteCount)U=
I+1;else{a:{var k=f.voteSortTiebreaker;var l=E[I].voteSortTiebreaker;if(k.length!==l.length)k=k.length>l.length;else{for(var x=0;x<k.length;x++){var Q=k.charCodeAt(x),Z=l.charCodeAt(x);if(Q>Z){k=!0;break a}if(Q<Z)break}k=!1}}k?X=I-1:U=I+1}}E=U;if(E===-1)throw Error("ti");Y.videos.splice(E,0,f);H!==E&&J3_(Y,H,E,b,w,V)},J3_=function(Y,b,w,V,H,f){var E,U=(E=Y.parentElem)==null?void 0:E.children,X=Math.min(b,w),I=Math.max(b,w);
if(U)for(E=X;E<=I;E++)U[E].style.viewTransitionName="item-"+String(E);document.startViewTransition(function(){if(Y.parentElem){var k=Y.parentElem.children;if(!(!k||b<0||b>=k.length||w<0||w>=k.length)){var l=k[b];if(l){l.remove();Y.showRefreshPill=w>=Y.videos.length-1&&Y.continuationsPresent;if(!Y.showRefreshPill){k=k[w]||null;var x;(x=Y.parentElem)==null||x.insertBefore(l,k)}_.Ua(Y.parentElem,"yt-update-video-data-voting-animation",{toIdx:w,itemId:V,newVoteCount:H,voteStatus:f,hideItem:Y.showRefreshPill})}}}}).finished.then(function(){if(U)for(var k=
X;k<=I;k++)U[k].style.viewTransitionName="";
if(Y.showRefreshPill)GY5(_.sa("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var l;if(l=k=(l=Y.parentElem)==null?void 0:l.children[w])l=k.getBoundingClientRect(),k=l.bottom,l=!(l.top>=0&&k<=Y.clientHeight);l&&(l=_.QX(b>w?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(b-w)),GY5(l))}})};var btI=function(Y,b){var w=this;Y?this.innertubeTransportServicePromise=Promise.resolve(Y):b&&(this.innertubeTransportServicePromise=b(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new LJ(3E3,function(V){return uir(w,V)},0);
this.validateMiniAppVideoIdRateLimiter=new LJ(3E3,function(V){return YkI(w,V)},1)},dao=function(Y,b){Y.JSC$15069_miniAppId=b;
Y.reportMiniAppValueRateLimiter=new LJ(3E3,function(w){return uir(Y,w)},0);
Y.validateMiniAppVideoIdRateLimiter=new LJ(3E3,function(w){return YkI(Y,w)},1)},LiK=function(Y,b){var w;
return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.reportMiniAppValueRateLimiter.call(b),2);w=V.yieldResult;return V.return([w,b])})},uir=function(Y,b){var w,V,H,f,E,U,X;
return _.c(function(I){switch(I.nextAddress){case 1:return _.D(I,Y.innertubeTransportServicePromise,2);case 2:return w=I.yieldResult,V=_.Yy(C4t),H=Date.now(),f={externalPostId:Y.JSC$15069_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(H/1E3),nanos:Math.round(H%1E3*1E6)},intValue:""+b}},_.ct(I,3),_.D(I,_.rw(w,f,V),5);case 5:E=I.yieldResult;_.$u(I,4);break;case 3:throw U=_.mS(I),U;case 4:if(E){if("error"in E&&E.error)throw E.error;if(E.errorMetadata)throw Error("ui`"+
E.errorMetadata.status);if(X=E.userStatResult)return I.return(X);throw Error("vi");}throw Error("wi");}})},aU8=function(Y){var b,w,V,H,f;
_.c(function(E){switch(E.nextAddress){case 1:return _.D(E,Y.innertubeTransportServicePromise,2);case 2:return b=E.yieldResult,w=_.Yy(C4t),V={externalPostId:Y.JSC$15069_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.ct(E,3),_.D(E,_.rw(b,V,w),5);case 5:H=E.yieldResult;_.$u(E,4);break;case 3:throw f=_.mS(E),f;case 4:if(H==null)throw Error("wi");if("error"in H&&H.error)throw H.error;if(H.errorMetadata)throw Error("ui`"+H.errorMetadata.status);_.om(E)}})};
btI.prototype.flush=function(){var Y=this;return _.c(function(b){return b.nextAddress==1?_.D(b,Y.reportMiniAppValueRateLimiter.flush(),2):_.D(b,Y.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Sco=function(Y,b){return _.c(function(w){return w.nextAddress==1?_.D(w,Y.validateMiniAppVideoIdRateLimiter.call(b),2):w.return(w.yieldResult)})},YkI=function(Y,b){var w,V,H,f,E,U;
return _.c(function(X){switch(X.nextAddress){case 1:return _.D(X,Y.innertubeTransportServicePromise,2);case 2:return w=X.yieldResult,V=_.Yy(Sq8),H={videoId:b},_.ct(X,3),_.D(X,_.rw(w,H,V),5);case 5:f=X.yieldResult;_.$u(X,4);break;case 3:throw E=_.mS(X),E;case 4:if(f){if("error"in f&&f.error)throw f.error;if(f.errorMetadata)throw Error("ui`"+f.errorMetadata.status);if(U=f.playabilityStatus)return X.return(U.status);throw Error("xi");}throw Error("wi");}})};
btI[VS]=[_.HQ(_.Sy),_.HQ(laI)];var wWr=function(){this.clientData=new Map};
wWr.prototype.getData=function(Y){return this.clientData.get(Y)};var Vsk=function(Y){this.store=Y};
Vsk.prototype.handleResponse=function(Y){(Y=_.v(Y.frameworkUpdates,T9))&&_.sf(Y,this.store)};
Vsk[VS]=[_.i4];var HtK=new _.Hx("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var gKo={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_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 fo_=new _.Hx("ICON_SET_TOKEN"),N7I=new _.Hx("ICON_URL_PROVIDER_TOKEN"),EKk=new _.Hx("PREFETCH_ICONS_TOKEN"),cF9=new _.Hx("ICON_MAP_FN_TOKEN");var uk={},Up9=(uk.ACCESS_TIME="clock",uk.ACCOUNT_BOX="person_account",uk.ACCOUNT_BOX_CAIRO="person_account_cairo",uk.ACCOUNT_CIRCLE="person_circle",uk.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",uk.ACCOUNT_LINKED="account_link_success",uk.ACCOUNT_UNLINKED="account_link",uk.ADD_FRIEND="people",uk.ADD_MODERATOR="shield_add",uk.ADD_TO_LIBRARY=Nq("add"),uk.ADD_TO_PLAYLIST="add",uk.ADD_TO_QUEUE_TAIL="list_queue",uk.ADD_TO_REMOTE_QUEUE="list_music",uk.ADD_TO_WATCH_LATER="clock",uk.ADD_VIDEO_LINK="film_strip_add",
uk.ALERT_WARN_RED="alert_triangle",uk.ARROW_BACK="arrow_left",uk.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",uk.ARROW_DROP_DOWN="chevron_down",uk.ARROW_DROP_UP="chevron_up",uk.ARROW_FORWARD="arrow_right",uk.AUDIOTRACK="audio",uk.AUTO_AWESOME="sparkle",uk.AVATAR_ANONYMOUS="person_circle",uk.AVATAR_LOGGED_OUT="person_circle",uk.BACK="arrow_left",uk.BAR_CHART="bar_graph",uk.BLOCK="slash_circle_left",uk.BLOCK_USER="slash_circle_left",uk.BOOKMARK_BORDER="bookmark",uk.BREAKING_NEWS_ALT_1="article_alert",
uk.BROADCAST_CAIRO="podcast_cairo",uk.BUG_REPORT="bug",uk.CAMERA_ALT="camera",uk.CAMPAIGN="megaphone",uk.CANCEL="x_circle",uk.CAPTIONS="closed_caption",uk.CAST_OUTLINE="chromecast",uk.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",uk.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",uk.CHAT="message_bubble_left",uk.CHAT_BUBBLE="message_bubble_empty",uk.CHAT_SPARK="spark_message_bubble_left",uk.CHECK_BOX_OUTLINE_BLANK="box_empty",uk.CHECK_CIRCLE_OUTLINE="check_circle",uk.CHECK_CIRCLE_THICK="check_circle",uk.CLARIFY=
"article_clarify",uk.CLOSED_CAPTION_SELECTED="closed_caption",uk.CLOSE="x_mark",uk.CLOUD_UPLOAD="cloud_arrow_up",uk.COLLAPSE="chevron_up",uk.COLLAPSE_CAIRO="chevron_up_cairo",uk.COLLECTION="layers",uk.COLOR_LENS="palette",uk.COMMENT="message_bubble_right",uk.CONSENT_SHIELD="person_shield",uk.CONTENT_CUT="scissors",uk.CONTENT_CUT_CAIRO="scissors_cairo",uk.COURSE=_.q("web_enable_course_icon_update")?"creator_academy":"lightbulb",uk.COURSE_CAIRO=_.q("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",uk.CREATION_LIVE="radar_live",uk.CREATION_POST="box_pencil",uk.CREATION_UPLOAD="my_videos",uk.CREATION_UPLOAD_RED="upload",uk.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",uk.CREATOR_STUDIO="youtube_studio",uk.DASHBOARD="grid_asymmetrical",uk.DELETE="trash_can",uk.DELETE_SWEEP="trash_can",uk.DESKTOP="laptop",uk.DISLIKE="thumb_down",uk.DISLIKE_SELECTED="thumb_down",uk.DISMISSAL="x_mark",uk.DISMISS_QUEUE="list_remove",uk.DONE_ALL="check_double",uk.DOWN_ARROW="arrow_down",uk.DO_NOT_DISTURB=
"slash_circle_left",uk.DRAFT="paper_corner_folded",uk.DRAG_HANDLE="bars_2",uk.EDIT="pencil",uk.EMOJI="face_very_happy",uk.EMOJI_FLAGS="flag",uk.EMOJI_OBJECTS="lightbulb",uk.EMOJI_PEOPLE="face_very_happy",uk.EMOJI_RECENT="clock",uk.EMPTY_HEART="heart",uk.EMPTY_LIKE="thumb_up",uk.ERROR_BLACK="alert_circle",uk.ERROR_OUTLINE="alert_circle",uk.EXIT_APP="arrow_in",uk.EXIT_TO_APP="arrow_in",uk.EXPAND="chevron_down",uk.EXPAND_ALL="chevron_expand",uk.EXPAND_CAIRO="chevron_down_cairo",uk.EXPAND_LESS="chevron_up",
uk.EXPAND_MORE="chevron_down",uk.EXPLORE="compass",uk.EXPLORE_DESTINATION="compass",uk.EXTERNAL_LINK="open_new",uk.FAB_UPLOAD="upload",uk.FACE_HAPPY_OUTLINE="face_happy",uk.FACT_CHECK="article_check",uk.FASHION_LOGO="fashion",uk.FASHION_LOGO_CAIRO="fashion_cairo",uk.FAVORITE="heart",uk.FEEDBACK="message_bubble_alert",uk.FEEDBACK_CAIRO="message_bubble_alert_cairo",uk.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",uk.FILL_ARROW_SOLID_UP_16="arrow_solid_up",uk.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
uk.FILTER="menu_filter",uk.FIRST_PAGE="chevron_first",uk.FLAG="flag",uk.FULL_HEART="heart",uk.GAME_CONSOLE_DPAD="game_console_dpad",uk.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",uk.GAMING_LOGO="gaming",uk.GAMING_LOGO_CAIRO="gaming_cairo",uk.GO_TO_PAGE="arrow_right",uk.GROUPS="people_group",uk.HAPPY="face_happy",uk.HEALTH_AND_SAFETY="shield_plus",uk.HELP="question_circle",uk.HELP_CAIRO="question_circle_cairo",uk.HELP_OUTLINE="question_circle",uk.HIDE="slash_circle_left",uk.IMAGE="image",
uk.INFINITY_ICON="infinity",uk.INFO="info_circle",uk.INFO_OUTLINE="info_circle",uk.INSERT_CHART_OUTLINED="bar_graph_box_vertical",uk.INSERT_PHOTO="image",uk.KEEP="pin",uk.KEEP_OFF="pin_off",uk.KEYBOARD="keyboard",uk.KEYBOARD_ARROW_DOWN="chevron_down",uk.KEYBOARD_ARROW_UP="chevron_up",uk.KIDS_BLOCK="slash_circle_left",uk.LANGUAGE="globe",uk.LAST_PAGE="chevron_last",uk.LAUNCH="open_new",uk.LEARNING="lightbulb",uk.LEARNING_CAIRO="lightbulb_cairo",uk.LIBRARY_ADD=Nq("library_add"),uk.LIBRARY_OUTLINE="library",
uk.LIBRARY_REMOVE=Nq(),uk.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",uk.LIKES_PLAYLIST="thumb_up",uk.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",uk.LIKE="thumb_up",uk.LIKE_SELECTED="thumb_up",uk.LIVE="radar_live",uk.LIVE_CAIRO="radar_live_cairo",uk.LIVE_UNLISTED="link",uk.LOCATION_ON="location_point",uk.LOCATION_PIN="location_point",uk.LOOP="arrow_repeat",uk.LOOP_ACTIVE="arrow_repeat",uk.LOOP_ONE="arrow_repeat_1",uk.LOOP_ONE_ACTIVE="arrow_repeat_1",uk.MEH="face_meh",uk.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
uk.MESSAGE="message_bubble_left",uk.MICROPHONE_ON="mic",uk.MIX="youtube_mix",uk.MONETIZATION_ON="dollar_sign_circle",uk.MONEY_FILL="dollar_sign_container",uk.MONEY_FILL_JPY="yen_sign_container",uk.MONEY_HEART="dollar_sign_heart",uk.MORE_HORIZ="overflow_horizontal",uk.MORE_VERT="overflow_vertical",uk.MUSIC="audio",uk.MUSIC_CAIRO="audio_cairo",uk.MUSIC_NOTE_SYMBOL="music",uk.MUSIC_SHUFFLE="arrow_shuffle",uk.MY_CHANNEL="person_circle",uk.MY_LOCATION="location_point",uk.NEWS_STORY="news",uk.NEXT="chevron_right",
uk.NOTIFICATIONS="bell",uk.NOTIFICATIONS_ACTIVE="bell_on",uk.NOTIFICATIONS_CAIRO="bell_cairo",uk.NOTIFICATIONS_DONE_CHECKMARK="check",uk.NOTIFICATIONS_INBOX="bell",uk.NOTIFICATIONS_NONE="bell",uk.NOTIFICATIONS_OFF="bell_off",uk.NOT_INTERESTED="slash_circle_left",uk.OFFICIAL_ARTIST_BADGE="audio",uk.OFFLINE_CLOUD="cloud_off",uk.OFFLINE_DOWNLOAD="download",uk.OFFLINE_DOWNLOAD_CAIRO="download_cairo",uk.OFFLINE_PAUSE="pause",uk.OPEN_IN_NEW="open_new",uk.OUTLINE_ADJUST="adjust",uk.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",uk.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",uk.OUTLINE_BAG="bag",uk.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",uk.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",uk.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",uk.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",uk.PAID="dollar_sign",uk.PAUSE_OUTLINED="pause",uk.PAYMENT="credit_card",uk.PERSON_RADAR_FILLED="person_radar",uk.PHONE_DOWNLOAD="mobile_download",uk.PLAYABLES_LOGO="tic_tac_toe",uk.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
uk.PLAYLISTS="list_play_arrow",uk.PLAYLISTS_CAIRO="list_play_arrow_cairo",uk.PLAYLIST_ADD=Nq("list_add"),uk.PLAYLIST_ADD_CHECK=Nq("list_check"),uk.PLAYLIST_PLAY="list_play_arrow",uk.PLAY_ALL="play_arrow",uk.PLAY_CIRCLE="play_arrow_circle",uk.PLAY_OUTLINED="play_arrow_circle",uk.PRIVACY_INFO="shield",uk.PRIVACY_PRIVATE="lock",uk.PRIVACY_PUBLIC="earth",uk.PRIVACY_UNLISTED="link",uk.PROMOTE="megaphone",uk.PURCHASES="price_tag",uk.PURCHASE_SUPER_CHAT="super_chat",uk.PURCHASE_SUPER_STICKER="super_sticker",
uk.QUESTION_ANSWER="message_bubble_question",uk.QUEUE_PLAY_LAST="list_queue_last",uk.QUEUE_PLAY_NEXT="list_play_arrow",uk.REMIX_FILLED="youtube_shorts_remix",uk.REMOVE="bar_circle",uk.REMOVE_CIRCLE="bar_circle",uk.REMOVE_CIRCLE_OUTLINE="bar_circle",uk.REMOVE_DONE="check_double_off",uk.REMOVE_FROM_HISTORY="bar_circle",uk.REMOVE_FROM_PLAYLIST="bar_circle",uk.REMOVE_MODERATOR="shield_off",uk.REPLAY="arrow_circle",uk.REPLAY_10="skip_back_10",uk.REPORT_PROBLEM="alert_triangle",uk.SAD="face_sad",uk.SAVE_PLAYLIST=
Nq("library_add"),uk.SCHEDULE="clock",uk.SCHOOL="creator_academy",uk.SCREEN_FULLSCREEN="screen_full",uk.SEARCH_HISTORY="arrow_time",uk.SELL="price_tag",uk.SETTINGS="gear",uk.SETTINGS_CAIRO="gear_cairo",uk.SETTINGS_LIGHT="gear",uk.SETTINGS_MATERIAL="gear",uk.SHARE_ARROW="share",uk.SHIELD_WITH_AVATAR="person_shield",uk.SHOPPING_BAG="bag",uk.SHOPPING_BAG_CAIRO="bag_cairo",uk.SHOPPING_CART="cart",uk.SHORTS_COMMENT="youtube_shorts_message_bubble_right",uk.SHORTS_DISLIKE="youtube_shorts_thumb_down",uk.SHORTS_LIKE=
"youtube_shorts_thumb_up",uk.SHORTS_SHARE="youtube_shorts_share",uk.SHUFFLE="arrow_shuffle",uk.SLOW_MODE_OFF="message_bubble_left",uk.SOCIAL="people",uk.SORT="menu_sort",uk.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",uk.SPEED_1X="1x",uk.SPEED_1_POINT_2X="1_point_2x",uk.SPEED_1_POINT_5X="1_point_5x",uk.SPEED_1_POINT_8X="1_point_8x",uk.SPEED_2X="2x",uk.SPEED_POINT_2X="point_2x",uk.SPEED_POINT_8X="point_8x",uk.SPONSORSHIP_STAR=_.q("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",uk.STAFF_PICK=
"spotlight",uk.START_DVR="add",uk.STAR_BORDER="star",uk.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",uk.STICKER_EMOTICON="face_happy",uk.STOP_DVR="stop",uk.SUBSCRIBE="youtube_logo_icon",uk.SUBSCRIBE_PLUS="add_cairo",uk.SUBSCRIPTION_MANAGER="gear",uk.SUPERVISOR_ACCOUNT="people",uk.SUPER_CHAT_FOR_GOOD="hands_heart",uk.SWAP_HORIZ="arrow_swap_horizontal",uk.SWITCH_ACCOUNTS="person_account",uk.TAB_ACCOUNT="person",uk.TAB_ACTIVITY="bell",uk.TAB_BOOKMARK="bookmark",uk.TAB_EXPLORE="compass",uk.TAB_HOME=
"home",uk.TAB_HOME_CAIRO="home_cairo",uk.TAB_INBOX="mail",uk.TAB_LIKED="thumb_up",uk.TAB_MUSIC_PREMIUM="youtube_music",uk.TAB_SHORTS="youtube_shorts",uk.TAB_SHORTS_CAIRO="youtube_shorts_cairo",uk.TAB_SUBSCRIPTIONS="subscriptions",uk.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",uk.TAB_TRENDING="fire",uk.TIMER="stopwatch",uk.TRAILER="youtube_originals",uk.TRENDING="fire",uk.TRENDING_CAIRO="fire_cairo",uk.TRENDING_UP="rating_up",uk.TROPHY="trophy",uk.TROPHY_CELEBRATIONS="fireworks",uk.TUNE="adjust",
uk.UNBLOCK_USER="bar_circle",uk.UNLIMITED="youtube_logo_icon",uk.UNPLUGGED_LIVE_GUIDE="radar_live",uk.UNPLUGGED_SPORTS="eye_off",uk.UPLOADS="library",uk.UP_ARROW="arrow_up",uk.VERTICAL_ALIGN_BOTTOM="download",uk.VERY_HAPPY="face_very_happy",uk.VERY_SAD="face_very_sad",uk.VIDEOGAME_ASSET="gaming",uk.VIDEOS="play_arrow_circle",uk.VIDEO_CALL="video_camera_add",uk.VIDEO_LIBRARY_WHITE="library",uk.VIDEO_YOUTUBE="youtube_logo_icon",uk.VIEW_LIST="list_view",uk.VIEW_LIST_CAIRO="list_view_cairo",uk.VISIBILITY=
"eye",uk.VISIBILITY_OFF="eye_off",uk.VOLUME_MUTE="volume_off",uk.VOLUME_UP="volume_on",uk.WALLPAPER="image",uk.WARNING="alert_triangle",uk.WATCH_HISTORY="arrow_time",uk.WATCH_HISTORY_CAIRO="arrow_time_cairo",uk.WATCH_LATER="clock",uk.WATCH_LATER_CAIRO="clock_cairo",uk.WATCH_RELATED_MIX="youtube_mix",uk.WHAT_TO_WATCH="home",uk.YOUTUBE_MUSIC_MONOCHROME="youtube_music",uk.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",uk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",uk.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",uk.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",uk.YT_OUTLINE_MUSIC_24="music",uk);var Y9={},XWr=(Y9.ACCESS_TIME="clock",Y9.ACCOUNT_BOX="person_square",Y9.ACCOUNT_BOX_CAIRO="person_square",Y9.ACCOUNT_CIRCLE="person_circle",Y9.ACCOUNT_CIRCLE_CAIRO="person_circle",Y9.ACCOUNT_LINKED="account_link",Y9.ACCOUNT_UNLINKED="account_link",Y9.ADD_CIRCLE="add_circle",Y9.ADD_FRIEND="person_child",Y9.ADD_TO_LIBRARY="bookmark",Y9.ADD_TO_PLAYLIST="add",Y9.ADD_TO_QUEUE_TAIL="queue",Y9.ADD_TO_REMOTE_QUEUE="playlist_audio",Y9.ADD_TO_WATCH_LATER="clock",Y9.ADD_VIDEO_LINK="film_strip_add",Y9.ADMIN_PANEL_SETTINGS=
"gear",Y9.ALERT_WARN_RED="alert_triangle",Y9.ALIGN_LEFT="text_align_left",Y9.ARROWS_ALERT="arrow_split_alert",Y9.ARROW_BACK="arrow_left",Y9.ARROW_CIRCLE="arrow_counterclockwise",Y9.ARROW_CIRCLE_PLAY="replay",Y9.ARROW_CIRCLE_RIGHT="arrow_clockwise",Y9.ARROW_DIAGONAL="arrow_up_left",Y9.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Y9.ARROW_DROP_DOWN="triangle_down",Y9.ARROW_DROP_UP="triangle_up",Y9.ARROW_FORWARD="arrow_right",Y9.ARROW_PAUSE="pause_history",Y9.ARROW_UNDO="undo",Y9.ARTICLE="text_page",Y9.ARTICLE_ALERT=
"text_page_alert",Y9.ARTICLE_CHECK="text_page_check",Y9.ARTICLE_CLARIFY="text_page_info",Y9.AUDIOTRACK="audio",Y9.AUDIO_BADGE="audio_badge",Y9.AUDIO_SURROUND="surround_sound",Y9.AVATAR_ANONYMOUS="person_circle",Y9.AVATAR_LOGGED_OUT="person_circle",Y9.BACK="arrow_left",Y9.BAR_CHART="chart_bar",Y9.BAR_CIRCLE="minus_circle",Y9.BAR_HORIZONTAL="minus",Y9.BLOCK="circle_slash",Y9.BLOCK_USER="circle_slash",Y9.BOOKMARK_BORDER="bookmark",Y9.BOX_OPEN_CHECK="quiz",Y9.BOX_PENCIL="square_pencil",Y9.BREAKING_NEWS_ALT_1=
"text_page_alert",Y9.BROADCAST="podcast",Y9.BROADCAST_CAIRO="podcast",Y9.BUG_REPORT="bug",Y9.CAMERA_ALT="camera",Y9.CAMPAIGN="megaphone",Y9.CANCEL="x_circle",Y9.CAPTIONS="closed_captions",Y9.CAST_ICON="chromecast",Y9.CAST_OUTLINE="chromecast",Y9.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Y9.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Y9.CHAT="text_bubble",Y9.CHAT_BUBBLE="bubble",Y9.CHECK_BOX="check_square",Y9.CHECK_BOX_OUTLINE_BLANK="square",Y9.CHECK_CIRCLE_FILLED="check_circle",Y9.CHECK_CIRCLE_OUTLINE=
"check_circle",Y9.CHECK_CIRCLE_THICK="check_circle",Y9.CHECK_DOUBLE="check_done",Y9.CHECK_DOUBLE_OFF="check_done_slash",Y9.CHEVRON_LEFT="chevron_left",Y9.CHEVRON_RIGHT="chevron_right",Y9.CHEVRON_RIGHT_CAIRO="chevron_right",Y9.CIRCLES_OVERLAP="account_link",Y9.CLAPPERBOARD_CAIRO="clapperboard",Y9.CLARIFY="text_page_info",Y9.CLOCK_ARROWS="clock_split",Y9.CLOCK_ARROWS_ALERT="clock_split_alert",Y9.CLOSED_CAPTION="closed_captions",Y9.CLOSED_CAPTION_SELECTED="closed_captions",Y9.CLOSE="x",Y9.CLOUD_UPLOAD=
"cloud_arrow_up",Y9.COLLAPSE="chevron_up",Y9.COLLAPSE_CAIRO="chevron_up",Y9.COLLECTION="square3d_stack",Y9.COLOR_LENS="paint_palette",Y9.COMMENT="text_bubble",Y9.CONSENT_SHIELD="person_shield",Y9.CONTENT_CUT="scissors",Y9.CONTENT_CUT_CAIRO="scissors",Y9.COURSE="graduation_cap",Y9.COURSE_CAIRO="graduation_cap",Y9.CREATION_LIVE="live",Y9.CREATION_POST="square_pencil",Y9.CREATION_UPLOAD="video",Y9.CREATION_UPLOAD_RED="upload",Y9.CREATOR_ACADEMY="graduation_cap",Y9.CREATOR_STUDIO="youtube_studio",Y9.DARK_THEME=
"theme",Y9.DELETE="trash_can",Y9.DELETE_SWEEP="trash_can",Y9.DESKTOP="laptop",Y9.DISLIKE="thumb_down",Y9.DISLIKE_SELECTED="thumb_down",Y9.DISMISSAL="x",Y9.DISMISS_QUEUE="playlist_x",Y9.DOGFOOD="pawprint",Y9.DOLLAR_SIGN="dollar_sign_circle",Y9.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Y9.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Y9.DOWN_ARROW="arrow_down",Y9.DO_NOT_DISTURB="circle_slash",Y9.DRAFT="document",Y9.EARTH="globe",Y9.EDIT="pencil",Y9.EMOJI="face_very_happy",Y9.EMOJI_FLAGS="flag",Y9.EMOJI_OBJECTS=
"lightbulb",Y9.EMOJI_PEOPLE="face_very_happy",Y9.EMOJI_RECENT="clock",Y9.EMPTY_HEART="heart",Y9.EMPTY_LIKE="thumb_up",Y9.ERROR_BLACK="alert_circle",Y9.ERROR_OUTLINE="alert_circle",Y9.ERROR_WHITE="alert_circle",Y9.EXIT_APP="arrow_in",Y9.EXIT_TO_APP="arrow_in",Y9.EXPAND="chevron_down",Y9.EXPAND_ALL="chevron_expand",Y9.EXPAND_CAIRO="chevron_down",Y9.EXPAND_LESS="chevron_up",Y9.EXPAND_MORE="chevron_down",Y9.EXPLORE="compass",Y9.EXPLORE_DESTINATION="compass",Y9.EXTERNAL_LINK="arrow_up_right",Y9.EYE_OFF=
"eye_slash",Y9.FAB_UPLOAD="upload",Y9.FACE_HAPPY_OUTLINE="face_happy",Y9.FACE_MEH="face_neutral",Y9.FACT_CHECK="text_page_check",Y9.FASHION_LOGO="fashion",Y9.FASHION_LOGO_CAIRO="fashion",Y9.FAVORITE="thumb_up",Y9.FEEDBACK="alert_bubble",Y9.FEEDBACK_CAIRO="alert_bubble",Y9.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Y9.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Y9.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Y9.FLAG_CAIRO="flag",Y9.FLASH_OFF="flash_slash",Y9.FLASH_ON="flash",Y9.FULL_HEART="heart",Y9.GAMING_LOGO=
"gaming",Y9.GAMING_LOGO_CAIRO="gaming",Y9.GO_TO_PAGE="arrow_right",Y9.GROUPS="person3",Y9.HAND_SWIPE_LEFT="gesture_swipe_left",Y9.HAND_SWIPE_RIGHT="gesture_swipe_right",Y9.HAPPY="face_happy",Y9.HEALTH_AND_SAFETY="shield_health",Y9.HEART_BOX="heart_cube",Y9.HELP="help_circle",Y9.HELP_CAIRO="help_circle",Y9.HELP_OUTLINE="help_circle",Y9.HIDE="circle_slash",Y9.INCOGNITO_CAIRO="incognito",Y9.INFINITY_ICON="infinity",Y9.INFO="info_circle",Y9.INFO_OUTLINE="info_circle",Y9.INSERT_CHART_OUTLINED="chart_bar_square",
Y9.INSERT_PHOTO="image",Y9.KEEP="pin",Y9.KEEP_OFF="pin_slash",Y9.KEYBOARD="keyboard",Y9.KEYBOARD_ARROW_DOWN="chevron_down",Y9.KEYBOARD_ARROW_UP="chevron_up",Y9.KIDS_BLOCK="circle_slash",Y9.LANGUAGE="globe",Y9.LAUNCH="arrow_up_right",Y9.LEARNING="lightbulb",Y9.LEARNING_CAIRO="lightbulb",Y9.LIBRARY_ADD="bookmark",Y9.LIBRARY_IMAGE="image_stack",Y9.LIBRARY_MUSIC="audio_square_stack",Y9.LIBRARY_OUTLINE="play_square_stack",Y9.LIBRARY_REMOVE="bookmark",Y9.LIBRARY_SAVED="check_square_stack",Y9.LIKES_PLAYLIST=
"thumb_up",Y9.LIKES_PLAYLIST_CAIRO="thumb_up",Y9.LIKE="thumb_up",Y9.LIKE_SELECTED="thumb_up",Y9.LIST_QUEUE="queue",Y9.LIVE_CAIRO="live",Y9.LIVE_UNLISTED="link",Y9.LOCATION_ON="location_pin",Y9.LOCATION_PIN="location_pin",Y9.LOCATION_POINT="location_pin",Y9.LOOP="repeat",Y9.LOOP_ACTIVE="repeat",Y9.LOOP_ONE="repeat1",Y9.LOOP_ONE_ACTIVE="repeat1",Y9.MEET="google_meet",Y9.MEH="face_neutral",Y9.MEMBERSHIPS="memberships",Y9.MEMBERS_ONLY_MODE_OFF="text_bubble",Y9.MENU_FILTER="filter",Y9.MESSAGE="text_bubble",
Y9.MESSAGE_BUBBLE_GEAR="bubble_gear",Y9.MESSAGE_BUBBLE_LEFT="text_bubble",Y9.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Y9.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Y9.MESSAGE_BUBBLE_QUESTION="help_bubble",Y9.MICROPHONE_ON="mic",Y9.MONETIZATION_ON="dollar_sign_circle",Y9.MONEY_FILL="dollar_sign_rectangle",Y9.MONEY_FILL_JPY="yen_sign_rectangle",Y9.MONEY_HAND="dollar_sign_circle_hand",Y9.MONEY_HEART="dollar_sign_heart",Y9.MOON_Z="sleep_timer",Y9.MORE_HORIZ="overflow_horizontal",Y9.MORE_VERT="overflow_vertical",
Y9.MUSIC="audio",Y9.MUSIC_CAIRO="audio",Y9.MUSIC_EXPLICIT_BADGE="explicit",Y9.MUSIC_NEW_RELEASE="audio_badge",Y9.MUSIC_NOTE_SYMBOL="audio",Y9.MUSIC_SCISSORS="audio_scissors",Y9.MUSIC_SHUFFLE="shuffle",Y9.MY_CHANNEL="person_circle",Y9.MY_LOCATION="location_pin",Y9.MY_VIDEOS="video",Y9.MY_VIDEOS_CAIRO="video",Y9.NEWS_CAIRO="news",Y9.NEWS_STORY="news",Y9.NEXT="chevron_right",Y9.NOTE_ADD="bubble_pencil",Y9.NOTIFICATIONS="bell",Y9.NOTIFICATIONS_ACTIVE="bell_waves",Y9.NOTIFICATIONS_CAIRO="bell",Y9.NOTIFICATIONS_DONE_CHECKMARK=
"check",Y9.NOTIFICATIONS_INBOX="bell",Y9.NOTIFICATIONS_NONE="bell",Y9.NOTIFICATIONS_OFF="bell_slash",Y9.NOT_INTERESTED="circle_slash",Y9.OFFICIAL_ARTIST_BADGE="audio",Y9.OFFLINE_CLOUD="cloud_slash",Y9.OFFLINE_DOWNLOAD="download",Y9.OFFLINE_DOWNLOAD_CAIRO="download",Y9.OFFLINE_PAUSE="pause",Y9.OPEN_IN_NEW="arrow_up_right",Y9.OUTLINE_ADJUST="adjust",Y9.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Y9.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Y9.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Y9.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",Y9.OUTLINE_BAG="bag",Y9.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Y9.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Y9.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Y9.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Y9.PAID="dollar_sign_circle",Y9.PAUSE_OUTLINED="pause",Y9.PAYMENT="credit_card",Y9.PEOPLE="person_child",Y9.PEOPLE_2="person2_rectangle",Y9.PEOPLE_GROUP="person3",Y9.PEOPLE_NOTE="bubble_asterisk",Y9.PERSON_2="person2",Y9.PERSON_ACCOUNT="person_square_stack",Y9.PERSON_MINUS=
"person_x",Y9.PERSON_MUSIC="person_audio",Y9.PERSON_RADAR="person_waves",Y9.PERSON_RADAR_FILLED="person_waves",Y9.PERSON_SETTING="person_gear",Y9.PHONE="phone",Y9.PHONE_DOWNLOAD="mobile_arrow_down",Y9.PICTURE_IN_PICTURE="picture_in_picture",Y9.PLAYABLES_LOGO="playables",Y9.PLAYABLES_LOGO_CAIRO="playables",Y9.PLAYLISTS="playlist",Y9.PLAYLISTS_CAIRO="playlist",Y9.PLAYLIST_ADD_CHECK="bookmark",Y9.PLAY_ALL="play",Y9.PLAY_ARROW="play",Y9.PLAY_ARROW_CIRCLE="play_circle",Y9.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
Y9.PLAY_CIRCLE="play_circle",Y9.PLAY_OUTLINED="play_circle",Y9.PODCAST_ADD="podcast_add",Y9.PODCAST_CHECK="podcast_check",Y9.PRIVACY_INFO="shield_x",Y9.PRIVACY_PRIVATE="lock",Y9.PRIVACY_PUBLIC="globe",Y9.PRIVACY_UNLISTED="link",Y9.PROMOTE="megaphone",Y9.PURCHASES="price_tag",Y9.PURCHASE_SUPER_CHAT="super_chat",Y9.PURCHASE_SUPER_STICKER="super_sticker",Y9.QUESTION_ANSWER="help_bubble",Y9.QUESTION_CIRCLE="help_circle",Y9.QUEUE_PLAY_LAST="queue_last",Y9.QUEUE_PLAY_NEXT="playlist",Y9.QUOTATION_MARK="quote",
Y9.RADAR_LIVE="live",Y9.REMOVE="minus_circle",Y9.REMOVE_CIRCLE="minus_circle",Y9.REMOVE_CIRCLE_OUTLINE="minus_circle",Y9.REMOVE_FROM_HISTORY="minus_circle",Y9.REMOVE_FROM_PLAYLIST="minus_circle",Y9.REPLAY="arrow_counterclockwise",Y9.REPLAY_10="skip10_back",Y9.REPLAY_ARROW="replay",Y9.REPORT_PROBLEM="alert_triangle",Y9.RSS_OFF="rss_slash",Y9.SAD="face_sad",Y9.SAVE_PLAYLIST="bookmark",Y9.SCHEDULE="clock",Y9.SCHOOL="graduation_cap",Y9.SCREEN_DEFAULT="player_default",Y9.SCREEN_FULLSCREEN="player_full_enter",
Y9.SCREEN_LIGHT="ambient_mode",Y9.SCREEN_ROTATION="rotate_portrait",Y9.SCREEN_SWITCH="player_switch",Y9.SEARCH_CAIRO="search",Y9.SEARCH_HISTORY="history",Y9.SELL="price_tag",Y9.SETTINGS="gear",Y9.SETTINGS_CAIRO="gear",Y9.SETTINGS_LIGHT="gear",Y9.SETTINGS_MATERIAL="gear",Y9.SETTINGS_REMOTE="remote_waves",Y9.SHARE="share",Y9.SHARE_ARROW="share",Y9.SHARE_CAIRO="share",Y9.SHIELD="shield_x",Y9.SHIELD_OFF="shield_slash",Y9.SHIELD_WITH_AVATAR="person_shield",Y9.SHOPPING_BAG="bag",Y9.SHOPPING_BAG_CAIRO="bag",
Y9.SHOPPING_CART="cart",Y9.SHORTS_COMMENT="text_bubble",Y9.SHORTS_DISLIKE="thumb_down",Y9.SHORTS_LIKE="thumb_up",Y9.SHORTS_SHARE="share",Y9.SKIP_FORWARD_30="skip30_forward",Y9.SLASH_CIRCLE_RIGHT="circle_slash",Y9.SLOW_MODE_OFF="text_bubble",Y9.SOCIAL="person_child",Y9.SPARKLE="sparkles",Y9.SPARK_IMAGE="image_spark",Y9.SPARK_RADAR="spark_waves",Y9.SPARK_VIDEO="video_spark",Y9.SPEAKER_GROUP="speaker_stack",Y9.SPEAKER_OFF="speaker_slash",Y9.SPEED_1X="n1x",Y9.SPEED_1_POINT_2X="n1point2x",Y9.SPEED_1_POINT_5X=
"n1point5x",Y9.SPEED_1_POINT_8X="n1point8x",Y9.SPEED_2X="n2x",Y9.SPONSORSHIP_STAR="memberships",Y9.SPORTS="basketball",Y9.SPOTLIGHT="spotlight",Y9.STAFF_PICK="spotlight",Y9.START_DVR="add",Y9.STAR_BORDER="star",Y9.STAR_HALF="star_half_filled",Y9.STAR_SHOOTING="hype",Y9.STICKER="sticker",Y9.STICKER_EMOTICON="face_happy",Y9.STOP_DVR="stop",Y9.SUBSCRIBE="youtube",Y9.SUBSCRIBE_PLUS="add",Y9.SUBSCRIPTION_MANAGER="gear",Y9.SUPERSTAR="super_star",Y9.SUPERVISOR_ACCOUNT="person_child",Y9.SWAP_HORIZ="arrow_swap_horizontal",
Y9.SWITCH_ACCOUNTS="person_square_stack",Y9.TAB_ACCOUNT="person",Y9.TAB_ACTIVITY="bell",Y9.TAB_BOOKMARK="bookmark",Y9.TAB_EXPLORE="compass",Y9.TAB_HOME="home",Y9.TAB_HOME_CAIRO="home",Y9.TAB_INBOX="mail",Y9.TAB_LIKED="thumb_up",Y9.TAB_MUSIC_PREMIUM="youtube_music",Y9.TAB_SHORTS="shorts",Y9.TAB_SHORTS_CAIRO="shorts",Y9.TAB_SUBSCRIPTIONS="subscriptions",Y9.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Y9.TAB_TRENDING="trending",Y9.TARGET="target",Y9.TARGET_ADD="target_add",Y9.TEMPLATE_ADD="template_add",
Y9.TEXT="font",Y9.TIMER="stopwatch",Y9.TRENDING_CAIRO="trending",Y9.TRENDING_UP="arrow_trend_up",Y9.TROPHY_CAIRO="trophy",Y9.TROPHY_CELEBRATIONS="fireworks",Y9.TROPHY_STAR="star_trophy",Y9.TUNE="adjust",Y9.UNBLOCK_USER="minus_circle",Y9.UNFAVORITE="thumb_down",Y9.UNLIMITED="youtube",Y9.UNPLUGGED_LIVE_GUIDE="live",Y9.UNPLUGGED_SPORTS="eye_slash",Y9.UPLOADS="play_square_stack",Y9.UP_ARROW="arrow_up",Y9.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Y9.VERTICAL_ALIGN_TOP="chevron_up_end",Y9.VERY_HAPPY="face_very_happy",
Y9.VERY_SAD="face_very_sad",Y9.VIDEOS="play_circle",Y9.VIDEO_CALL="video_camera_add",Y9.VIDEO_LIBRARY_WHITE="play_square_stack",Y9.VIDEO_QUALITY_4K="n4k",Y9.VIDEO_QUALITY_8K="n8k",Y9.VIDEO_YOUTUBE="youtube",Y9.VIEW_LIST_CAIRO="view_list",Y9.VIEW_MODULE="view_column3_row2",Y9.VISIBILITY="eye",Y9.VISIBILITY_OFF="eye_slash",Y9.VOLUME_DOWN="volume_min",Y9.VOLUME_MUTE="volume_mute",Y9.VOLUME_OFF="volume_mute",Y9.VOLUME_STABLE="stable_volume",Y9.VOLUME_UP="volume_max",Y9.WALLPAPER="image",Y9.WARNING="alert_triangle",
Y9.WATCH_HISTORY="history",Y9.WATCH_HISTORY_CAIRO="history",Y9.WATCH_LATER="clock",Y9.WATCH_LATER_CAIRO="clock",Y9.WATCH_RELATED_MIX="mix",Y9.WHAT_TO_WATCH="home",Y9.YOUTUBE_LINKED_TV="tv_mobile",Y9.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Y9.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Y9.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Y9.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Y9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Y9.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Y9.YOUTUBE_SHORTS_OUTLINE_24=
"shorts",Y9);var Dpj={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,18],[1,8,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],
face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],
filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],
gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,
24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,13],[0,17,24],[1,17,16],[1,17,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,2,16],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,
1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],
library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,7,18],[1,7,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],
live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,
3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,
1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,
3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,
2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,
8,18],[1,8,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],
person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,
24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,
1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,12],[0,7,24],
[1,7,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,11,24],[1,11,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,
1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,
1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,5,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],
[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,8,12],[0,8,16],[0,8,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],
speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,
1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,
1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,
4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,
6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],
youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],
[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var mpr={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,
3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,
2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,
1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,
2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,
1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,
2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],
subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,
1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,
2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,
2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,
24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var oKQ={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",
PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},bB=function(Y){this.iconUrlProvider=Y};
bB.prototype.resolveIcon=function(Y,b){var w=oKQ[Y.iconName.toUpperCase()];w&&(Y.iconName=w);var V=Y.iconName;V=V.replace(/-/g,"_");Y=Object.assign({},Y,{iconName:this.mapIconTypeToStandardName(V,!!w)||V.toLowerCase()});if(_.q("enable_web_delhi_icons")||w){var H;return t8u(mpr,Y,((H=this.iconUrlProvider)==null?void 0:H.getYtStandardUrl)||FPg,b)}var f;return t8u(Dpj,Y,((f=this.iconUrlProvider)==null?void 0:f.getYtStandardUrl)||dtt,b)};
bB.prototype.mapIconTypeToStandardName=function(Y,b){return _.q("enable_web_delhi_icons")||b?XWr[Y.toUpperCase()]:Up9[Y.toUpperCase()]};
bB[VS]=[_.HQ(N7I)];var Ioj=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),kU_=function(Y){this.urlProvider=this.iconUrlProvider=Y};
_.P(kU_,bB);
kU_.prototype.resolveIcon=function(Y,b){Y.iconName==="youtube_logo"&&(Y.iconName="yt-logo-updated");if(Y.iconName==="youtube_premium_logo"||Y.iconName==="youtube_red_logo")Y.iconName="yt-logo-red-updated";var w=Object.assign({},Y);Y.iconName==="menu"&&(_.q("enable_web_delhi_icons")||(w.iconName="bars_3"),w.iconStyle="youtube_outline");Y.iconSetName==="socialNetworksRound"&&(Y.iconName==="mail"&&(w.iconName="email"),Y.iconName==="embed"&&(w.iconSize=60));Y.iconName==="more"&&(w.iconName="overflow_horizontal");
Y.iconName==="fullscreen"&&(w.iconName="screen_full");Y.iconName==="premium_standalone"&&(w.iconName="premium_standalone_cairo");_.q("enable_connect_icon_update_web")&&Y.iconName==="account_linked"&&(w.iconName="circles_overlap_check",w.iconStyle="youtube_fill");_.q("enable_connect_icon_update_web")&&Y.iconName==="account_unlinked"&&(w.iconName="circles_overlap",w.iconStyle="youtube_outline");Ioj.has(Y.iconName)&&(w.iconStyle="youtube_fill");_.q("enable_web_delhi_icons")&&Y.iconName==="playlist_add"&&
(w.iconName="bookmark");Y=Object.assign({},w,{iconName:(bB.prototype.mapIconTypeToStandardName.call(this,w.iconName)||w.iconName).toLowerCase()});var V;return(Y=t8u(gKo,Y,((V=this.urlProvider)==null?void 0:V.getUrl)||LPg,b))?Y:bB.prototype.resolveIcon.call(this,w,b)};
kU_[VS]=[_.HQ(N7I)];_.lor=1;var wD=function(){};
_.P(wD,zA);wD.prototype.resolveCommand=function(Y){var b,w;return _.c(function(V){b=_.v(Y,Bpo);if(!b)return V.return();w=Number(b.enableDelayedPacfLoggingTvMs);if(isNaN(w)){var H=mJ();WM9(H,b,0)}else WM9(mJ(),b,w);_.om(V)})};_.VM=function(){};
_.P(_.VM,zA);
_.VM.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I;return _.c(function(k){V=_.v(Y,nio);f=(H=b.form)==null?void 0:H.element;U=(E=f)==null?void 0:E.closest("ytd-enforcement-message-view-model");if(!V||!U)return k.return();w.allowAdsAction||(X=V.fundingChoiceInstructionPageUrl,w.allowAdsAction=new Y2I(window,_.SI(X)));var l=w.allowAdsAction;l.wallElement=U;l.allowAdsPopup.style.setProperty("display","flex","important");var x=l.scrollManager;x.originalBodyOverflow=x.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow;x.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow=
"hidden";l.wallElement.style.setProperty("display","none","important");DD9(l.accessibilityManager,l.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((I=w.allowAdsAction.allowAdsPopup)&&I instanceof HTMLElement)for(l=_.N(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),x=l.next();!x.done;x=l.next()){var Q=_.N(x.value);x=Q.next().value;Q=Q.next().value;I.style.setProperty(x,Q)}_.om(k)})};
_.VM.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var He=function(){};
_.P(He,zA);He.prototype.resolveCommand=function(Y){var b;return _.c(function(w){b=_.v(Y,RiK);if(!b)return w.return();BVL(Y);_.om(w)})};var gD=function(Y){this.JSC$15109_commandHandler=Y};
_.P(gD,zA);
gD.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1){w=_.v(Y,ct9);if((V=w)==null||!V.text||!navigator.clipboard)return k.return();_.ct(k,2);return _.D(k,navigator.clipboard.writeText(w.text),4)}if(k.nextAddress!=2){if(!w.successActions||w.successActions.length===0)return k.return();H=_.N(w.successActions);for(f=H.next();!f.done;f=H.next())E=f.value,b.JSC$15109_commandHandler.resolveCommand(E);return _.$u(k,0)}_.mS(k);if(!w.failureActions||w.failureActions.length===
0)return k.return();U=_.N(w.failureActions);for(X=U.next();!X.done;X=U.next())I=X.value,b.JSC$15109_commandHandler.resolveCommand(I);_.om(k)})};
gD[VS]=[_.Nn];var fG=function(Y){this.JSC$15113_commandHandler=Y};
_.P(fG,zA);
fG.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x;return _.c(function(Q){switch(Q.nextAddress){case 1:V=_.v(Y,AxK);if(!V)return Q.return();_.ct(Q,2);if(!V.imageBytes&&!V.imageUrl)throw Error("yi");if(!V.imageUrl){if(V.imageBytes){f=V.imageBytes;E=f.replace(/-/g,"+").replace(/_/g,"/");var Z=r5I(E);H=_.ZD(Z)}Q.jumpTo(4);break}return _.D(Q,fetch(V.imageUrl),5);case 5:return U=Q.yieldResult,_.D(Q,U.blob(),6);case 6:X=Q.yieldResult,H=_.ZD(X);case 4:l=(I=b)==null?void 0:(k=I.form)==
null?void 0:k.element;x=document.createElement("a");er(x,H);l.appendChild(x);x.download="";x.click();l.removeChild(x);URL.revokeObjectURL(_.lH(H));V.successCommand&&w.JSC$15113_commandHandler.resolveCommand(V.successCommand);_.$u(Q,0);break;case 2:_.mS(Q),V.errorCommand&&w.JSC$15113_commandHandler.resolveCommand(V.errorCommand),_.om(Q)}})};
fG[VS]=[_.Nn];var NI=function(Y){this.store=Y};
_.P(NI,zA);NI.prototype.resolveCommand=function(Y){var b=this,w,V,H;return _.c(function(f){V=(w=_.v(Y,_.vSo))==null?void 0:w.entityBatchUpdate;if(!V)return f.jumpTo(0);H=Object.assign({},V,{mutations:[].concat(_.Bt(V.mutations||[]))});return _.D(f,_.sf(H,b.store),0)})};var hfk=function(Y){this.JSC$15120_commandHandler=Y;this.feedbackDialogMap=new Map};
hfk.prototype.openDialog=function(Y,b){(Y=this.feedbackDialogMap.get(Y))&&this.JSC$15120_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:Y}},b)};
hfk[VS]=[_.Nn];var E8=new _.Hx("FEEDBACK_CONTROLLER_TOKEN");var ce=new _.Hx("APP_STORE_TOKEN");var U8=function(Y,b){this.store=Y;this.controller=b};
_.P(U8,zA);U8.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C;return _.c(function(W){if(W.nextAddress==1){V=_.v(Y,_.aM);if(f=(H=V)==null?void 0:H.contentId)for(U=_.N(((E=V)==null?void 0:E.actions)||[]),X=U.next();!X.done;X=U.next())I=X.value,xpt(w,I,f);x=(k=b)==null?void 0:(l=k.form)==null?void 0:l.element;return _.D(W,_.oP(x,[Y]).catch(function(){}),2)}Q=W.yieldResult;
((Z=Q)==null?0:(e=Z.data)==null?0:(O=e.feedbackResponses)==null?0:O.length)&&(r=(L=Q.data.feedbackResponses[0])==null?void 0:L.followUpDialog)&&f&&(C=w.controller)!=null&&C.feedbackDialogMap.set(f,r);_.om(W)})};
var xpt=function(Y,b,w){var V=_.v(b,_.ln);if(V){V=_.N(V.commands||[]);for(var H=V.next();!H.done;H=V.next())xpt(Y,H.value,w)}_.v(b,_.Mm)&&Y.store.dispatch(_.qo("commandEntity",zbB(w),{key:w,command:b}));_.v(b,Pfd)&&Y.store.dispatch(_.qo("commandEntity",zbB(w),{key:w,command:b}))};
U8[VS]=[ce,E8];var Xv=function(Y){this.controller=Y};
_.P(Xv,zA);Xv.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E;return _.c(function(U){V=_.v(Y,_.KB);f=(H=V)==null?void 0:H.targetId;if(((E=V)==null?void 0:E.signal)!=="TELL_US_WHY"||!f)return U.return();w.controller.openDialog(f,b);_.om(U)})};
Xv[VS]=[E8];var D$=function(Y){this.store=Y};
_.P(D$,zA);D$.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I;return _.c(function(k){V=_.v(Y,E4K);f=(H=V)==null?void 0:H.contentId;X=(E=b)==null?void 0:(U=E.form)==null?void 0:U.element;I=_.oP(X,[Y]);f&&w.undo(f);return _.D(k,I,0)})};
D$.prototype.undo=function(Y){this.store.dispatch(_.qo("commandEntity",zbB(Y),{key:Y,command:void 0}))};
D$[VS]=[ce];var mb=function(Y){this.JSC$15135_commandHandler=Y};
_.P(mb,zA);mb.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I;return _.c(function(k){w=_.v(Y,rnt);V=w.flowStateKey;H=w.validationFailureCommand;f=w.submitValidFormCommand;E=Gd(_.fk,[V||""]);U=_.v(E,WU9);((X=U)==null?0:X.isValid)&&f&&b.JSC$15135_commandHandler.resolveCommand(f);((I=U)==null?0:I.isValid)||!H||b.JSC$15135_commandHandler.resolveCommand(H);_.om(k)})};
mb[VS]=[_.Nn];var oJ=function(Y){this.innertubeTransportService=Y};
_.P(oJ,zA);oJ.prototype.resolveCommand=function(Y,b){var w=this,V;return _.c(function(H){return _.D(H,_.$_(w.innertubeTransportService,Y,(V=b)==null?void 0:V.form).then(function(f){var E,U;b==null||(E=b.commandController)==null||(U=E.onSuccess)==null||U.call(E,Y,f)},function(f){var E,U;
b==null||(E=b.commandController)==null||(U=E.onServerError)==null||U.call(E,Y,f)}),0)})};
oJ[VS]=[_.Sy];var IJ=function(){};
_.P(IJ,zA);IJ.prototype.resolveCommand=function(Y){var b,w,V,H;return _.c(function(f){if(b=_.v(Y,_.GkQ)){if(w=b.gtmId)V=_.zO("GL",""),_.Rj(w,V);(H=b.gtmData)&&_.dW(H)}_.om(f)})};var k9=function(Y,b){this.innertubeTransportService=Y;this.JSC$15146_actionRouter=b};
_.P(k9,zA);k9.prototype.resolveCommand=function(Y){var b=this,w,V;return _.c(function(H){w=_.v(Y,$qK);if(!w)return H.return();V=w.command;if(!V)return H.return();b.JSC$15146_actionRouter.triggerAction("yt-insert-rich-section-action",w);return _.D(H,_.$_(b.innertubeTransportService,V,{disableCache:!0}),0)})};
k9[VS]=[_.Sy,ww];WP6.bind(null,Wl);var qkU=WP6.bind(null,gmd);iIa.bind(null,Wl);var suk=iIa.bind(null,gmd);CuM.bind(null,Wl);var Qur=CuM.bind(null,gmd);var lB=function(){};
_.P(lB,zA);
lB.prototype.resolveCommand=function(Y){var b,w,V,H,f,E,U,X,I,k;return _.c(function(l){b=_.v(Y,vv_);if(!b)return l.return();V=((w=b.operations)==null?void 0:w.operations)||[];H=_.N(V);for(f=H.next();!f.done;f=H.next())if(E=f.value,E.insertItemSectionContent){var x=E.insertItemSectionContent,Q=x.contents||[];x.insertByPositionInSection?qkU(x.insertByPositionInSection.sectionTargetId,Q,x.insertByPositionInSection.position):x.insertByRelativePositionInSection&&x.insertByRelativePositionInSection.sectionTargetId&&x.insertByRelativePositionInSection.itemTargetId&&
suk(x.insertByRelativePositionInSection.sectionTargetId,x.insertByRelativePositionInSection.itemTargetId,Q,x.insertByRelativePositionInSection.relativePosition)}else E.replaceSection?(x=E.replaceSection,Q={},x.replaceByTargetId?Q=x.replaceByTargetId:x.replaceByGroupId&&(Q={targetId:x.replaceByGroupId.groupId,newContent:x.replaceByGroupId.newContent,undoKey:""}),Q.newContent&&EmC(Q.targetId,{continuationItems:[Q.newContent]})):E.removeItem?(x=E.removeItem,x.removeByTargetId&&x.sectionTargetId&&Qur(x.sectionTargetId,
x.removeByTargetId.targetIds||[])):E.removeSection&&(E.removeSection.removeByTargetId?(U=void 0,vKj(((U=E.removeSection)==null?void 0:U.removeByTargetId.targetIds)||[])):E.removeSection.removeByGroupId&&(X=void 0,vKj(((X=E.removeSection)==null?void 0:X.removeByGroupId.groupIds)||[])));k=((I=b.operations)==null?void 0:I.scrollConfig)||{};P2o(k);_.om(l)})};
var vKj=function(Y){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())EmC(b.value,{continuationItems:[]})},P2o=function(Y){if(Y.scrollToItem){var b=Y.scrollToItem.item||{},w=b.itemTargetId;
b=b.sectionTargetId;if(w&&b){var V=document.querySelector("[data-target-id="+b+"]"),H=V==null?void 0:V.querySelector("[data-target-id="+w+"]");V&&H&&setTimeout(function(){var f=H.offsetTop-V.offsetTop,E;if(((E=Y.scrollToItem)==null?void 0:E.scrollPosition)==="SCROLL_POSITION_CENTER")f-=V.offsetHeight/2,f+=H.offsetHeight/2;else{var U;((U=Y.scrollToItem)==null?void 0:U.scrollPosition)==="SCROLL_POSITION_END"&&(f-=V.offsetHeight,f+=H.offsetHeight)}V.scroll({top:f,behavior:"smooth"})},100)}}};var hi=new _.Hx("CLIENT_NAME_TOKEN");var Zt9=new _.Hx("DEFAULT_STORE_EXPIRATION_TOKEN");var QEM=new _.Hx("CLIENT_LOCATION_SERVICE_TOKEN");var x9=function(Y,b,w){this.clientName=Y||_.zO("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=b||_.dr.getInstance();this.JSC$15174_commandHandler=w||_.l8.instance};
_.P(x9,zA);x9.prototype.resolveCommand=function(Y){var b=this,w,V;return _.c(function(H){V=(w=_.v(Y,O1_))==null?void 0:w.onComplete;b.clientLocationService.clearLocationPlayabilityToken(b.clientName);V&&b.JSC$15174_commandHandler.resolveCommand(V);_.om(H)})};
x9[VS]=[hi,QEM,_.Nn];var qI=function(Y){this.innertubeTransportService=Y};
_.P(qI,zA);qI.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E;return _.c(function(U){f=(V=b)==null?void 0:(H=V.form)==null?void 0:H.element;return _.D(U,_.$_(w.innertubeTransportService,Y,(E=b)==null?void 0:E.form).then(function(X){dII(f,new CustomEvent("yt-service-request-completed"),{data:X},_.zO("openPopupConfig"))}),0)})};
qI[VS]=[_.Sy];var s8=function(){};
_.P(s8,zA);s8.prototype.resolveCommand=function(Y){var b,w;return _.c(function(V){b=_.v(Y,CV9);w=document.querySelector("mini-app-container-view-model");if(!b||!w)return V.return();b.isPlaying?w.dispatchEvent(new Event("play")):w.dispatchEvent(new Event("pause"));_.om(V)})};var QM=function(){};
_.P(QM,zA);QM.prototype.resolveCommand=function(Y){var b,w,V,H,f,E,U;return _.c(function(X){b=_.v(Y,iLC);if((w=b)==null||!w.paramKeys)return X.return();V=b.paramKeys;H=_.$G(window.location.href);f=_.N(V);for(E=f.next();!E.done;E=f.next())U=E.value,H.JSC$8068_queryData_.remove(U);window.history.replaceState(window.history.state,document.title,H.toString());_.om(X)})};var B7j=function(){this.dropdownMap=new Map};_.nKQ=new _.Hx("DROPDOWN_CONTROLLER_TOKEN");var ve=function(Y){this.controller=Y};
_.P(ve,zA);ve.prototype.resolveCommand=function(Y){var b=this,w,V,H,f;return _.c(function(E){w=_.v(Y,vU5);if(!w)return E.return();V=w;H=V.dropdownId;f=V.selectedOptionIndex;if(H===void 0||f===void 0)return E.return();var U=b.controller.dropdownMap.get(H);U&&U(f);_.om(E)})};
ve[VS]=[_.nKQ];var Pe=function(Y){this.controller=Y};
_.P(Pe,zA);Pe.prototype.resolveCommand=function(Y){var b=this,w;return _.c(function(V){return(w=_.v(Y,rS$))?_.D(V,b.controller.closeDialog(),0):V.return()})};
Pe[VS]=[_.n$];var Z$=function(Y){this.controller=Y};
_.P(Z$,zA);Z$.prototype.resolveCommand=function(Y){var b=this,w,V;return _.c(function(H){w=_.v(Y,sBC);if(!w)return H.return();var f,E=w.panelIdentifier||((f=w.identifier)==null?void 0:f.tag);if(!E)throw Error("zi");return(V=E)?_.D(H,b.controller.hidePanel(V),0):H.jumpTo(0)})};
Z$[VS]=[_.Za];var Be=function(Y,b){this.innertubeTransportService=Y;this.controller=b};
_.P(Be,zA);Be.prototype.resolveCommand=function(Y){var b=this,w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return w=_.v(Y,QBU),(V=w)!=null&&V.panelId?_.D(E,b.controller.getReloadContinuation(w.panelId),2):E.return();if(E.nextAddress!=3)return(H=E.yieldResult)?_.D(E,_.$_(b.innertubeTransportService,Y,{continuation:H}),3):E.return();f=E.yieldResult;return _.D(E,b.controller.updatePanel(w.panelId,f.content,!1),0)})};
Be[VS]=[_.Sy,_.Za];var nG=function(Y,b,w){this.innertubeTransportService=Y;this.JSC$15210_screenManager=b;this.JSC$15210_commandHandler=w};
_.P(nG,zA);
nG.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1){w=_.v(Y,_.Dbr);if(!w)return X.return();if(w.commands)for(V=_.N(w.commands),H=V.next();!H.done;H=V.next())f=H.value,b.JSC$15210_commandHandler.resolveCommand(f,{disableClickTracking:!0});E=_.nA(Y.clickTrackingParams);_.mo(b.JSC$15210_screenManager,21760,E,{layer:7,parentLayer:0});return _.D(X,_.$_(b.innertubeTransportService,Y),2)}U=X.yieldResult;if(!U)return X.return();b.JSC$15210_screenManager.graftServerVe(U.trackingParams,E,
7);_.om(X)})};
nG[VS]=[_.Sy,_.eo,_.Nn];var MI=new _.Hx("PANEL_LOADING_STRATEGY_TOKEN");var eN=function(Y,b){this.controller=Y;this.panelLoadingStrategy=b};
_.P(eN,zA);
eN.prototype.resolveCommand=function(Y,b){var w=this,V,H,f;return _.c(function(E){V=_.v(Y,fdj);if((H=V)==null||!H.panelLoadingStrategy)return E.return();f=function(U){var X,I,k,l,x,Q,Z,e,O;return _.c(function(L){I=_.v((X=U.dialogViewModel)==null?void 0:X.header,PGC);k={viewModel:U.dialogViewModel};l={};if(Z=_.q("web_enable_dialog_header_label")?(x=I)==null?void 0:(Q=x.headline)==null?void 0:Q.content:void 0)l.ariaLabel=Z;V.dismissOnBackgroundTap===!1&&(l.isModal=!0);return U.dialogViewModel?_.D(L,
w.controller.openDialog(k,(e=b)==null?void 0:(O=e.form)==null?void 0:O.element,l),0):L.return()})};
return _.D(E,w.panelLoadingStrategy.execute({command:Y,data:V.panelLoadingStrategy,renderFn:f,createScreenConfig:{layer:4}}),0)})};
eN[VS]=[_.n$,MI];var pG=function(Y,b,w){this.innertubeTransportService=Y;this.controller=b;this.JSC$15230_screenManager=w};
_.P(pG,zA);
pG.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x,Q,Z;return _.c(function(e){switch(e.nextAddress){case 1:V=_.v(Y,_.SZ);if(!V)return e.return();var O,L=V.panelIdentifier||((O=V.identifier)==null?void 0:O.tag);if(!L)throw Error("zi");H=L;return _.D(e,w.controller.isVisible(H,!0),2);case 2:if((f=e.yieldResult)&&V.blockIfPanelOpen)return e.return();X=(U=(E=w.controller).getPanelContent)==null?void 0:U.call(E,H);if(!(O=X))if(V){var r;O=((r=V.globalConfiguration)==null?void 0:r.initialState)||
V.engagementPanel;if(r=!O)r=!!(V==null?0:(L=V.engagementPanelPresentationConfigs)==null?0:L.engagementPanelPopupPresentationConfig);r&&(O=_.y5a(V.panelIdentifier,V.identifier))}else O=void 0;I=O;k=V.engagementPanelPresentationConfigs;l=V.engagementPanelExtras;return _.D(e,w.controller.showPanel(H,I,k,l,(x=b)==null?void 0:(Q=x.form)==null?void 0:Q.element),3);case 3:if(!V.globalConfiguration){e.jumpTo(0);break}_.mo(w.JSC$15230_screenManager,32633);return _.D(e,_.$_(w.innertubeTransportService,Y),5);
case 5:return Z=e.yieldResult,w.JSC$15230_screenManager.graftServerVe(Z.trackingParams),_.D(e,w.controller.updatePanel(H,Z.content,!0,l,void 0,Z.updatePanelContinuationData),0)}})};
pG[VS]=[_.Sy,_.Za,_.eo];var O8=function(Y,b){this.controller=Y;this.panelLoadingStrategy=b};
_.P(O8,zA);O8.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X;return _.c(function(I){V=_.v(Y,_.sH);if((H=V)==null||!H.panelLoadingStrategy)return I.return();U=Msk(w.controller,(f=b)==null?void 0:(E=f.form)==null?void 0:E.element);X=function(k){return _.c(function(l){return k.sheetViewModel?_.D(l,w.controller.openSheet({viewModel:k.sheetViewModel},U),0):l.return()})};
return _.D(I,w.panelLoadingStrategy.execute({command:Y,data:V.panelLoadingStrategy,renderFn:X,createScreenConfig:{layer:0}}),0)})};
O8[VS]=[_.BR,MI];var ti=function(Y,b){this.controller=Y;this.JSC$15238_commandHandler=b};
_.P(ti,zA);ti.prototype.resolveCommand=function(Y,b){var w=this,V,H,f;return _.c(function(E){if(E.nextAddress==1){V=_.v(Y,By_);var U=_.v(V.showCommand,_.SZ),X,I,k=(I=U==null?void 0:U.panelIdentifier)!=null?I:U==null?void 0:(X=U.identifier)==null?void 0:X.tag;if(!k)throw Error("Ai");H=k;return _.D(E,w.controller.isVisible(H),2)}return(f=E.yieldResult)?_.D(E,w.controller.hidePanel(H),0):_.D(E,w.JSC$15238_commandHandler.resolveCommand(V.showCommand,b),0)})};
ti[VS]=[_.Za,_.Nn];var RJ=function(Y,b,w){this.innertubeTransportService=Y;this.controller=b;this.JSC$15241_screenManager=w};
_.P(RJ,zA);
RJ.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G,Nr;return _.c(function(o6){switch(o6.nextAddress){case 1:return V=w=_.v(Y,nWd),H=V.targetPanelIdentifier,f=V.contentSourcePanelIdentifier,E=V.globalConfiguration,((U=H)==null?0:U.tag)&&((X=f)==null?0:X.tag)?E?_.D(o6,b.controller.showPanel(H.tag,_.y5a(H.tag,H),void 0,void 0,void 0),5):_.D(o6,(x=(l=b.controller).getPanel)==null?void 0:x.call(l,f.tag),4):o6.return();case 4:Q=o6.yieldResult;I=(Z=Q)==null?void 0:
(O=(e=Z).getPanelContent)==null?void 0:O.call(e);o6.jumpTo(3);break;case 5:return _.D(o6,_.$_(b.innertubeTransportService,Y),6);case 6:L=o6.yieldResult,((r=L)==null?0:r.trackingParams)&&b.JSC$15241_screenManager.graftServerVe(L.trackingParams),I=(C=L)==null?void 0:C.content,k=(W=L)==null?void 0:W.updatePanelContinuationData;case 3:if(G=(y=I)==null?void 0:y.engagementPanelSectionListRenderer)return _.D(o6,b.controller.showPanel(H.tag,void 0,void 0,void 0,void 0,{content:G.content,secondaryHeaderContent:(Nr=
G.header)!=null?Nr:{},targetId:G.targetId},k),0);o6.jumpTo(0)}})};
RJ[VS]=[_.Sy,_.Za,_.eo];var dD=function(Y){this.JSC$15248_commandHandler=Y};
_.P(dD,zA);
dD.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1)return(w=_.v(Y,SV5))?_.D(X,_.DE(),2):X.return();V=X.yieldResult;if(!V)return X.return();var I=V,k=(H=w)==null?void 0:H.languageCode,l=(f=w)==null?void 0:f.isAutoTranslated;I.getVideoData&&_.jNv(I).length&&((k=Tj6(I,k,l))?I.setOption("captions","track",k):(I.setOption("captions","stickyLoading",{}),I.setOption("captions","track",{})));E=V.isSubtitlesOn()?_.sa("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.sa("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");U=_.wr(E);b.JSC$15248_commandHandler.resolveCommand(U);_.om(X)})};
dD[VS]=[_.Nn];var Fv=function(Y,b){this.shortsPlayerPromise=Y;this.JSC$15252_commandHandler=b};
_.P(Fv,zA);
Fv.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1)return(w=_.v(Y,Ygr))?_.D(k,b.shortsPlayerPromise,2):k.return();V=k.yieldResult;var l=J5K(V);l!=null&&l.length||(V.loadModule("captions"),l=J5K(V));H=l;if((f=H)==null||!f.length)return E=_.sa("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),U=_.wr(E),b.JSC$15252_commandHandler.resolveCommand(U),k.return();V.toggleSubtitles();X=V.isSubtitlesOn()?_.sa("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.sa("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");I=_.wr(X);b.JSC$15252_commandHandler.resolveCommand(I);_.om(k)})};
Fv[VS]=[_.z9$,_.Nn];var LG=function(Y){this.JSC$15255_playerPromise=Y};
_.P(LG,zA);LG.prototype.resolveCommand=function(Y){var b=this,w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return(w=_.v(Y,PYK))?_.D(E,b.JSC$15255_playerPromise,2):E.return();V=E.yieldResult;H=V.getVideoData().video_id;w.videoId===H&&(f=Number(w.offsetFromVideoStartMilliseconds),f>=0&&V.seekTo(f/1E3));_.om(E)})};
LG[VS]=[_.EH];var ef_=_.I8("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),SN=function(Y){this.store=Y};
_.P(SN,zA);
var pW8=function(Y){var b,w,V,H;return _.c(function(f){if(f.nextAddress==1)return b=_.zO("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,w=_.zO("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,V=b||w,Y.mainAppPlayer=new ji(V),_.D(f,Y.mainAppPlayer.api,2);H=f.yieldResult;H.addEventListener("onStateChange",Y.JSC$15259_playerStateChangeListener.bind(Y));document.addEventListener("yt-page-data-updated",Y.pauseOnNavigation.bind(Y));window.addEventListener("state-navigatestart",
Y.pauseOnNavigation.bind(Y));_.om(f)})};
SN.prototype.JSC$15259_playerStateChangeListener=function(Y){switch(Y){case 0:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_STOPPED";break;case 1:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING";break;case 2:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_PAUSED";break;case 3:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";break;default:this.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_UNKNOWN"}OtQ(this)};
var OtQ=function(Y){Y.store.dispatch(_.qo("sfvAudioItemCurrentlyPlayingEntity",ef_,{key:ef_,externalVideoId:Y.externalVideoId,sfvAudioItemPlaybackState:Y.playbackState,nowPlayingEntityValue:Y.nowPlayingEntityValue}))};
SN.prototype.pauseOnNavigation=function(){var Y=this,b,w,V,H;return _.c(function(f){if(f.nextAddress==1){if(!Y.mainAppPlayer){var E=new _.BQ("Error: mainAppPlayer is unavailable",Y.mainAppPlayer);_.Ft(E);return f.return()}return _.D(f,Y.mainAppPlayer.api,2)}b=f.yieldResult;V=(w=b)==null?void 0:w.getPlayerState();V!==1||(H=b)!=null&&H.pauseVideo();_.om(f)})};
SN.prototype.playVideo=function(Y,b,w){var V=this,H,f;return _.c(function(E){if(E.nextAddress==1)return _.D(E,(H=V.mainAppPlayer)==null?void 0:H.api,2);f=E.yieldResult;if(!V.mainAppPlayer||!f){var U=new _.BQ("Error: mainAppPlayer is unavailable",V.mainAppPlayer);_.Ft(U);return E.return()}return _.D(E,V.mainAppPlayer.loadVideoWithPlayerVars({videoId:V.externalVideoId,audio_only:"1",start:Y/1E3,end:Y/1E3+b,player_params:w}),0)})};
SN.prototype.pauseVideo=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1){if(!Y.mainAppPlayer){var H=new _.BQ("Error: mainAppPlayer is unavailable",Y.mainAppPlayer);_.Ft(H);return V.return()}return _.D(V,Y.mainAppPlayer.api,2)}b=V.yieldResult;(w=b)==null||w.pauseVideo();_.om(V)})};
SN.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W;return _.c(function(y){if(y.nextAddress==1)return w=_.v(Y,GSt),H=(V=w)==null?void 0:V.nowPlayingEntityValue,E=(f=w)==null?void 0:f.externalVideoId,l=Number((k=(U=w)==null?void 0:(X=U.defaultStartPoints)==null?void 0:(I=X[0])==null?void 0:I.offsetMs)!=null?k:"0"),L=Number((O=(x=w)==null?void 0:(Q=x.defaultStartPoints)==null?void 0:(Z=Q[0])==null?void 0:(e=Z.duration)==null?void 0:e.seconds)!=null?O:"15"),W=(C=
(r=w)==null?void 0:r.playerParams)!=null?C:"",H&&E?b.mainAppPlayer?y.jumpTo(2):_.D(y,pW8(b),2):y.return();if(y.nextAddress!=6){if(b.nowPlayingEntityValue&&H===b.nowPlayingEntityValue)return b.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.D(y,b.pauseVideo(),0):_.D(y,b.playVideo(l,L,W),0);b.externalVideoId=E;b.nowPlayingEntityValue=H;b.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.D(y,b.playVideo(l,L,W),6)}OtQ(b);return y.jumpTo(0)})};
SN[VS]=[oM];var aJ=function(Y){this.JSC$15279_commandHandler=Y};
_.P(aJ,zA);aJ.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1)return(V=_.v(Y,aqd))?_.D(X,_.DE(),2):X.return();H=X.yieldResult;if(!H)return X.return();(f=VYI(H))?w.JSC$15279_commandHandler.resolveCommand(f,b):(E=_.sa("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),U=_.wr(E),w.JSC$15279_commandHandler.resolveCommand(U));_.om(X)})};
aJ[VS]=[_.Nn];var rD=function(Y){this.JSC$15282_playerPromise=Y};
_.P(rD,zA);rD.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E;return _.c(function(U){if(U.nextAddress==1){w=_.v(Y,ZPr);if(!w)return U.return();V=w.overlayRenderer;return V?(H=_.v(V,ad5))?_.D(U,b.JSC$15282_playerPromise,3):U.jumpTo(0):U.return()}f=U.yieldResult;f.renderChapterSeekingAnimation(1,_.Tx(H.text),(E=H.icon)==null?void 0:E.iconType);_.om(U)})};
rD[VS]=[_.EH];var zX=function(Y){this.store=Y};
_.P(zX,zA);
zX.prototype.resolveCommand=function(Y){var b=this,w,V,H;return _.c(function(f){if(f.nextAddress==1){w=_.v(Y,W39);if(!w)return f.return();V="";(H=b.store.getState().collabInviteLink)&&w.id===H.playlistId?V=H.inviteLinkURL:w.shortUrl&&(V=w.shortUrl);return V?_.D(f,navigator.clipboard.writeText(V),3):f.jumpTo(0)}var E={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.sa("COPY_LINK_SUCCESS_TOAST")}}}}};_.fH().resolve(_.Nn).resolveCommand(E);_.om(f)})};
zX[VS]=[ce];var We=function(Y,b){this.innertubeTransportService=Y;this.JSC$15292_commandHandler=b};
_.P(We,zA);We.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x;return _.c(function(Q){if(Q.nextAddress==1)return(V=_.v(Y,_.AI))?_.D(Q,_.$_(w.innertubeTransportService,Y,(H=b)==null?void 0:H.form),2):Q.return();(f=Q.yieldResult)&&f.errorMetadata&&(E=f,U=_.wr(E.error.message),w.JSC$15292_commandHandler.resolveCommand(U));X=f;if((I=X)==null?0:I.actions)for(k=_.N(X.actions),l=k.next();!l.done;l=k.next())x=l.value,w.JSC$15292_commandHandler.resolveCommand(x);_.om(Q)})};
We[VS]=[_.Sy,_.Nn];var KG=function(){};
_.P(KG,zA);KG.prototype.resolveCommand=function(Y){var b;return _.c(function(w){b=_.v(Y,tu5);if(!b)return w.return();(new WLU(b)).show();_.om(w)})};_.iB=new _.Hx("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Ai=function(Y,b,w,V){this.store=Y;this.innertubeTransportService=b;this.controller=w;this.JSC$15300_commandHandler=V};
_.P(Ai,zA);
Ai.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G,Nr,o6,lI,Zt,eL,OM;return _.c(function(iI){if(iI.nextAddress==1){V=_.v(Y,_.aU);if(!V)return iI.return();if(V.clientActions){H=_.N(V.clientActions);for(f=H.next();!f.done;f=H.next())E=f.value,w.JSC$15300_commandHandler.resolveCommand(E);var rB,Tj=b==null?void 0:(rB=b.form)==null?void 0:rB.element;Tj&&_.Ua(Tj,"yt-dismissible-item-action",V.clientActions)}return _.D(iI,_.$_(w.innertubeTransportService,Y,(U=b)==
null?void 0:U.form),2)}if(X=iI.yieldResult)X.errorMetadata?(I=X,k=_.wr(I.error.message),w.JSC$15300_commandHandler.resolveCommand(k),"error"in X&&((l=b)==null?0:(x=l.commandController)==null?0:x.onServerError)&&((Q=b)==null||(Z=Q.commandController)==null||Z.onServerError(Y,X))):(e=b)==null||(O=e.commandController)==null||(r=(L=O).onSuccess)==null||r.call(L,Y,X);C=X;((W=C)==null?0:W.collaborationInviteLink)&&V.playlistId&&(_.q("web_enable_invite_collaborators_link")||_.q("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
w.store.dispatch(_.Uf({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:V.playlistId,inviteLinkUrl:C.collaborationInviteLink}}));((y=C)==null?0:y.redirectEndpoint)&&w.JSC$15300_commandHandler.resolveCommand(C.redirectEndpoint);((G=C)==null?0:(Nr=G.newHeader)==null?0:Nr.playlistHeaderRenderer)?ts8(w.controller,C.newHeader.playlistHeaderRenderer):((o6=C)==null?0:(lI=o6.newHeader)==null?0:lI.musicEditablePlaylistDetailHeaderRenderer)&&ts8(w.controller,C.newHeader.musicEditablePlaylistDetailHeaderRenderer);
w.controller.playlistVideoListElement&&((Zt=C)==null?0:(eL=Zt.playlistEditResults)==null?0:(OM=eL[0])==null?0:OM.playlistEditVideoAddedResultData)&&((Tj=w.controller.playlistVideoListElement)==null||Tj.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:C.playlistEditResults[0].playlistEditVideoAddedResultData})));_.om(iI)})};
Ai[VS]=[ce,_.Sy,_.iB,_.Nn];var CG=function(Y,b){this.controller=Y;this.JSC$15310_commandHandler=b};
_.P(CG,zA);CG.prototype.resolveCommand=function(Y,b){var w=this,V,H,f;return _.c(function(E){V=_.v(Y,K3K);w.controller.showRefreshPill&&((H=V)==null?0:H.command)&&(w.JSC$15310_commandHandler.resolveCommand((f=V)==null?void 0:f.command,b),w.controller.showRefreshPill=!1);_.om(E)})};
CG[VS]=[_.bw,_.Nn];var yM=function(Y,b){this.store=Y;this.JSC$15314_commandHandler=b||_.l8.instance};
_.P(yM,zA);yM.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x;return _.c(function(Q){V=_.v(Y,wY9);H=w.store.getState().radioButtonGroup;if((f=V)==null?0:f.command)w.JSC$15314_commandHandler.resolveCommand((E=V)==null?void 0:E.command,b);else if(((U=V)==null?void 0:U.formId)===H.currentFormId)for(X=Object.values(H.commandsMap),I=_.N(X),k=I.next();!k.done;k=I.next()){l=k.value;x=_.zT(l);if(!x)return Q.return();w.JSC$15314_commandHandler.resolveCommand(x,b)}_.om(Q)})};
yM[VS]=[ce];var $9=new _.Hx("USER_PREFS");var jN=function(Y){this.JSC$15318_prefCookie=Y};
_.P(jN,zA);jN.prototype.resolveCommand=function(Y){var b=this,w;return _.c(function(V){(w=_.v(Y,PLU))&&typeof w.useListView==="boolean"&&(_.Ze(0,155,w.useListView),b.JSC$15318_prefCookie.save());_.om(V)})};
jN[VS]=[$9];var GX=function(Y){this.JSC$15322_prefCookie=Y};
_.P(GX,zA);GX.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E;return _.c(function(U){w=_.v(Y,dX8);if((V=w)==null||!V.gl)return U.return();H=w.gl;f={persist_gl:"1",gl:H};b.JSC$15322_prefCookie.set("gl",H);b.JSC$15322_prefCookie.save();E=$QC(f);_.yU(E);_.om(U)})};
GX[VS]=[$9];var TX=function(Y){this.JSC$15326_prefCookie=Y};
_.P(TX,zA);TX.prototype.resolveCommand=function(Y){var b=this,w,V;return _.c(function(H){w=_.v(Y,AZ9);if(!w)return H.return();V=!1;w.flagNum&&typeof w.value==="boolean"?(_.Ze(0,w.flagNum,w.value),V=!0):w.key&&typeof w.stringValue==="string"&&(b.JSC$15326_prefCookie.set(w.key,w.stringValue),V=!0);V&&b.JSC$15326_prefCookie.save();_.om(H)})};
TX[VS]=[$9];var Ji=new _.Hx("PREF_STORAGE_PROMISE_TOKEN");var uB=function(Y){this.JSC$15330_prefStoragePromise=Y};
_.P(uB,zA);uB.prototype.resolveCommand=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1)return(w=_.v(Y,yZ$))?_.D(H,b.JSC$15330_prefStoragePromise,2):H.return();V=H.yieldResult;return V===void 0||w.key===void 0||w.value===void 0?H.return():_.D(H,V.set(w.key,w.value),0)})};
uB[VS]=[Ji];var Rfk=function(Y){this.innertubeTransportService=Y};
_.P(Rfk,zA);Rfk.prototype.resolveCommand=function(Y,b){var w=this,V,H;return _.c(function(f){(V=_.v(Y,_.xwd))&&V&&V.isFirstRequest&&(_.Lz("search_overview_answer"),_.S1("so_rq",void 0,"search_overview_answer"));return _.D(f,_.$_(w.innertubeTransportService,Y,(H=b)==null?void 0:H.form),0)})};
Rfk[VS]=[_.Sy];var dpr=function(){};
_.P(dpr,zA);
dpr.prototype.resolveCommand=function(Y){var b,w,V,H,f,E,U,X,I;return _.c(function(k){b=_.v(Y,vpr);if((w=b)==null?0:w.sectionIdentifier){if(b.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(H=(V=document.getElementsByTagName(b.sectionIdentifier))==null?void 0:V.item(0))H.scrollIntoView({behavior:"smooth"}),(f=a8b(H))&&f.focus({preventScroll:!0});return k.return()}E=document.querySelector("[section-identifier="+b.sectionIdentifier+"]");U=document.querySelector("[section-identifier="+b.referenceSectionIdentifier+
"]");if(!E)return k.return();X=b.verticalScrollOffsetDp?b.verticalScrollOffsetDp:0;U&&(X-=U.offsetTop);window.scrollTo({top:E.offsetTop+X,behavior:"smooth"});(I=a8b(E))&&I.focus({preventScroll:!0})}_.om(k)})};var YR=function(){};
_.P(YR,zA);
YR.prototype.resolveCommand=function(Y){var b,w,V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1){b=_.v(Y,CMC);if(!b||!b.imageBytes||!navigator.clipboard)return X.return();if(b.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Ft(Error("Ci")),X.return();_.ct(X,2);V=(w=b)==null?void 0:w.imageBytes;H=V.replace(/-/g,"+").replace(/_/g,"/");f=r5I(H);E={};U=[new ClipboardItem((E[f.type]=f,E))];return _.D(X,navigator.clipboard.write(U),4)}if(X.nextAddress!=2)return _.$u(X,0);
_.mS(X);_.om(X)})};var be=function(Y,b){this.innertubeTransportService=Y;this.JSC$15345_commandHandler=b};
_.P(be,zA);be.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1)return(V=_.v(Y,yx$))?_.D(X,_.$_(w.innertubeTransportService,Y,(H=b)==null?void 0:H.form),2):X.return();(f=X.yieldResult)&&f.errorMetadata&&V.onFailureCommand&&w.JSC$15345_commandHandler.resolveCommand(V.onFailureCommand);E=f;((U=E)==null?0:U.shareCommand)&&w.JSC$15345_commandHandler.resolveCommand(E.shareCommand,b);_.om(X)})};
be[VS]=[_.Sy,_.Nn];var wo=function(){};
_.P(wo,zA);wo.prototype.resolveCommand=function(Y){var b,w;return _.c(function(V){b=_.v(Y,z0Q);if(!b||!navigator.share)return V.return();w={url:b.url};try{return V.return(navigator.share(w))}catch(H){}_.om(V)})};var VH=function(){};
_.P(VH,zA);VH.prototype.resolveCommand=function(){return _.c(function(Y){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.om(Y)})};var Hj=function(Y){this.JSC$15355_navigationConfirmationService=Y};
_.P(Hj,zA);Hj.prototype.resolveCommand=function(){var Y=this;return _.c(function(b){Y.JSC$15355_navigationConfirmationService.cancelPendingNavigation();_.om(b)})};
Hj[VS]=[l5];var go=function(Y){this.JSC$15358_screenManager=Y};
_.P(go,zA);go.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I;return _.c(function(k){H=(V=b.form)==null?void 0:V.event;E=(f=b.form)==null?void 0:f.element;if(!H)throw new _.BQ("Event not passed in when resolving command");U=_.N(H.composedPath());for(X=U.next();!X.done;X=U.next())if(I=X.value,I.tagName==="YT-COPY-LINK-RENDERER")return I.copyUrlToClipboard(),E&&_.Aj(w.JSC$15358_screenManager,E),k.return();_.om(k)})};
go[VS]=[_.eo];var fv=function(){this.JSC$15362_miniAppClientDataProvider=_.fH().resolve(_.RT)};
_.P(fv,zA);fv.prototype.resolveCommand=function(){var Y=this,b,w;return _.c(function(V){if(Y.JSC$15362_miniAppClientDataProvider.clientData.has("video_id")){var H=Y.JSC$15362_miniAppClientDataProvider,f=H.clientData.get("video_id");f&&H.clientData.delete("video_id");b="https://youtube.com/watch?v="+f;w=su(b);if(w===void 0)throw Error("Di`"+b);_.Fk(window,w)}_.om(V)})};var NK=function(){};
_.P(NK,zA);NK.prototype.resolveCommand=function(){return _.c(function(Y){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.om(Y)})};var Ei=function(){};
_.P(Ei,zA);Ei.prototype.resolveCommand=function(){var Y;return _.c(function(b){if(b.nextAddress==1)return _.D(b,_.Uvb(window.document.documentElement),2);(Y=document.querySelector("mini-app-container-view-model iframe"))&&Y.focus();_.om(b)})};var cj=function(Y){this.JSC$15369_navigationConfirmationService=Y};
_.P(cj,zA);
cj.prototype.resolveCommand=function(){var Y=this;return _.c(function(b){var w=Y.JSC$15369_navigationConfirmationService,V=_.fH().resolve(_.Mx),H;if(((H=w.navigateParams)==null?void 0:H.data)!==void 0){var f;_.KTQ(V,w.navigateParams.endpoint,w.navigateParams.data,(f=w.navigateParams.navigationType)!=null?f:1,w.navigateParams.tempData,w.navigateParams.isMiniplayer,void 0,!0);w.navigateParams=void 0;w.customConfirmationCommand=void 0}else w.navigateParams&&(V.navigate(w.navigateParams.endpoint,w.navigateParams.reload,
w.navigateParams.params,w.navigateParams.tempData,w.navigateParams.requestType,w.navigateParams.createScreenConfig,!0),w.navigateParams=void 0,w.customConfirmationCommand=void 0);_.om(b)})};
cj[VS]=[l5];var Ui=function(){};
_.P(Ui,zA);Ui.prototype.resolveCommand=function(){return _.c(function(Y){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.om(Y)})};var XF=function(Y){this.JSC$15374_prefStorage=Y};
_.P(XF,zA);XF.prototype.resolveCommand=function(){var Y=this,b,w;return _.c(function(V){switch(V.nextAddress){case 1:return _.D(V,Y.JSC$15374_prefStorage,2);case 2:return(b=V.yieldResult)?_.D(V,b.set("sfvle",!1),3):V.return();case 3:return _.D(V,b.set("sfvles",!0),4);case 4:w=_.P0(),_.Ze(0,203,!1),_.Ze(0,204,!0),w.save(),_.om(V)}})};
XF[VS]=[Ji];var Dx=function(Y){this.JSC$15377_prefStorage=Y};
_.P(Dx,zA);Dx.prototype.resolveCommand=function(){var Y=this,b,w;return _.c(function(V){switch(V.nextAddress){case 1:return _.D(V,Y.JSC$15377_prefStorage,2);case 2:return(b=V.yieldResult)?_.D(V,b.set("sfvle",!0),3):V.return();case 3:return _.D(V,b.set("sfvles",!0),4);case 4:w=_.P0(),_.Ze(0,203,!0),_.Ze(0,204,!0),w.save(),_.om(V)}})};
Dx[VS]=[Ji];_.FOo=new _.Hx("SNACKBAR_CONTROLLER_TOKEN");var mf=function(Y){this.controller=Y};
_.P(mf,zA);mf.prototype.resolveCommand=function(Y){var b=this,w;return _.c(function(V){w=_.v(Y,gUU);if(!w)return V.return();var H=b.controller;H.closeSnackbarFn&&H.closeSnackbarFn();_.om(V)})};
mf[VS]=[_.FOo];var op=function(Y){this.controller=Y};
_.P(op,zA);op.prototype.resolveCommand=function(Y){var b=this,w,V,H;return _.c(function(f){w=_.v(Y,NYd);if(!w)return f.return();V=_.v(w.content,xmd);if(!V)return f.return();var E=b.controller,U=V,X=(H=w.animationStyle)!=null?H:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(E.showSnackbarFn)E.showSnackbarFn({snackbarViewModel:U,animationStyle:X,durationMs:w.durationSeconds*1E3});else throw Error("mj");_.om(f)})};
op[VS]=[_.FOo];var Ip=function(){};
_.P(Ip,zA);Ip.prototype.resolveCommand=function(Y){var b;return _.c(function(w){b=_.v(Y,CLQ);if(!b||typeof b.key!=="string"||typeof b.value!=="string")return w.return();window.localStorage.setItem(b.key,b.value);_.om(w)})};var kR=function(Y){this.store=Y};
_.P(kR,zA);kR.prototype.resolveCommand=function(Y){var b=this,w;return _.c(function(V){w=_.v(Y,NdG);if(!w||!w.stepId||!w.token)return V.return();b.store.dispatch(KAQ({stepId:w.stepId,token:w.token,isSelected:!1}));_.om(V)})};
kR[VS]=[ce];var le=function(Y,b,w){this.innertubeTransportService=Y;this.store=b;this.JSC$15396_screenManager=w};
_.P(le,zA);
le.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y,G,Nr,o6;return _.c(function(lI){w=_.v(Y,jM$);if(!w||(V=w.stepIds)==null||!V.length)return lI.return();H=b.store.getState().talkToRecs;f=[];E=[];U=_.N(w.stepIds);for(X=U.next();!X.done;X=U.next())for(I=X.value,k=void 0,(l=(k=H.stepStates[I])==null?void 0:k.userQuery)&&E.push({userQuery:l.userQuery,userQueryToken:l.token}),x=void 0,Q=(x=H.stepStates[I])==null?void 0:x.selectionStates,Z=_.N(Object.entries(Q)),e=
Z.next();!e.done;e=Z.next())O=e.value,L=_.N(O),r=L.next().value,C=L.next().value,W=r,y=C,y.isSelected&&f.push(W);G={selectedChipTokens:f,userQueries:E,submittedStepIds:w.stepIds};Nr={browseTalk2recsFormData:G};w.browseEndpoint?(o6=Y,_.Fd(o6,_.QU,w.browseEndpoint)):w.command&&(o6=w.command);return o6?_.D(lI,_.$_(b.innertubeTransportService,o6,{formData:Nr,disableCache:!0}).then(function(Zt){(Zt==null?0:Zt.trackingParams)&&b.JSC$15396_screenManager.graftServerVe(Zt==null?void 0:Zt.trackingParams)}),
0):lI.return()})};
le[VS]=[_.Sy,ce,_.eo];var hM=function(Y){this.store=Y};
_.P(hM,zA);hM.prototype.resolveCommand=function(Y){var b=this,w;return _.c(function(V){w=_.v(Y,fr6);if(!w||!w.stepId||!w.token)return V.return();b.store.dispatch(KAQ({stepId:w.stepId,token:w.token,isSelected:!0}));_.om(V)})};
hM[VS]=[ce];var Bj=function(Y){this.store=Y};
_.P(Bj,zA);Bj.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U;return _.c(function(X){V=_.v(Y,Gi8);if(!V||!V.stepId||!V.userQueryToken)return X.return();U=(E=(H=b)==null?void 0:(f=H.form)==null?void 0:f.userQuery)!=null?E:"";w.store.dispatch(_.Uf({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:V.stepId,userQueryToken:V.userQueryToken,userQuery:U}}));_.om(X)})};
Bj[VS]=[ce];_.LOK=new _.Hx("TIMELY_ACTIONS_CONTROLLER_TOKEN");var nv=function(Y){this.controller=Y};
_.P(nv,zA);nv.prototype.resolveCommand=function(Y){var b=this,w,V,H,f;return _.c(function(E){w=_.v(Y,qTI);if(!w)return E.return();V=w;H=V.id;f=V.isVisible;if(H===void 0||f===void 0)return E.return();var U;(U=b.controller.timelyActionsMap.get(H))==null||U(H,f);_.om(E)})};
nv[VS]=[_.LOK];var Sko=function(){this.timelyActionsMap=new Map};var MK=function(Y){this.JSC$15423_commandHandler=Y};
_.P(MK,zA);MK.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E;return _.c(function(U){w=_.v(Y,_.nL);if(!w)return U.return();f=(V=w.item)==null?void 0:(H=V.notificationTextRenderer)==null?void 0:H.successResponseText;if(!f)return U.return();E=_.bW(f);b.JSC$15423_commandHandler.resolveCommand(E);_.om(U)})};
MK[VS]=[_.Nn];var ee=function(Y,b){this.innertubeTransportService=Y;this.JSC$15428_playerApiPromise=b};
_.P(ee,zA);
ee.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I,k;return _.c(function(l){if(l.nextAddress==1)return _.D(l,b.JSC$15428_playerApiPromise,2);w=l.yieldResult;V=w.getOption("captions","track");H=Object.assign({},_.v(Y,_.mht));(E=(f=w.getVideoData())==null?void 0:f.video_id)?H.externalVideoId=E:_.C7(Error("Ei"));if((U=V)==null?0:U.languageCode)H.languageCode=V.languageCode;if((X=V)==null?0:X.kind)H.kind=V.kind;if((I=V)==null?0:I.name)H.name=V.name;k=Object.assign({},Y,{getTranscriptEndpoint:H});return _.D(l,
_.$_(b.innertubeTransportService,k),0)})};
ee[VS]=[_.Sy,_.EH];var pv=function(){};
_.P(pv,zA);pv.prototype.resolveCommand=function(Y){var b,w,V,H,f,E,U,X;return _.c(function(I){b=_.v(Y,bjU);if((w=b)==null||!w.paramKeyValuePairs)return I.return();V=window.location.href;H=_.N(b.paramKeyValuePairs);for(f=H.next();!f.done;f=H.next())E=f.value,E.key&&E.value&&(U={},V=_.TO(V,(U[E.key]=E.value,U)));X=_.fH().resolve(_.ox);_.mn(X,V);_.om(I)})};var Oi=function(Y,b){this.JSC$15435_commandHandler=Y;this.innertubeTransportService=b};
_.P(Oi,zA);
Oi.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C;return _.c(function(W){switch(W.nextAddress){case 1:return(f=(V=b)==null?void 0:(H=V.form)==null?void 0:H.element)&&_.TL(f),E=_.P0().get("hl"),U="",_.ct(W,2),_.D(W,NsK(E),4);case 4:U=W.yieldResult;_.$u(W,3);break;case 2:return _.mS(W),f&&_.J9(f),_.Ft(Error("Gi"),"ERROR"),W.return();case 3:X=_.v(Y,yIU);if(!X)return f&&_.J9(f),W.return();(l=(I=X.commerceActionConfig)==null?void 0:(k=I.commandLifeCycleConfig)==null?
void 0:k.onStartCommand)&&w.JSC$15435_commandHandler.resolveCommand(l);return _.D(W,_.$_(w.innertubeTransportService,Y,{client_data:{paymentsClientToken:{token:U}}}),5);case 5:(x=W.yieldResult)?(f&&_.J9(f),((O=x)==null?0:O.command)&&w.JSC$15435_commandHandler.resolveCommand(x.command),(C=(L=X.commerceActionConfig)==null?void 0:(r=L.commandLifeCycleConfig)==null?void 0:r.onSuccessCommand)&&w.JSC$15435_commandHandler.resolveCommand(C)):(f&&_.J9(f),_.Ft(Error("Hi")),(e=(Q=X.commerceActionConfig)==null?
void 0:(Z=Q.commandLifeCycleConfig)==null?void 0:Z.onFailureCommand)&&w.JSC$15435_commandHandler.resolveCommand(e)),_.om(W)}})};
Oi[VS]=[_.Nn,_.Sy];var tM=function(Y,b,w){this.store=Y;this.JSC$15451_commandHandler=b;this.innertubeTransportService=w};
_.P(tM,zA);
tM.prototype.resolveCommand=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l;return _.c(function(x){V=_.v(Y,$m5);H=V.googlePaymentPayload;V.onStartCommand&&w.JSC$15451_commandHandler.resolveCommand(V.onStartCommand);f=H.encryptedPurchaseParams;E=H.ypcLogWalletAnalyticDataEndpoint;U=V.serializedTransactionFlowLoggingParams;X=H.serializedPaymentsClientParams;I=V.ypcCujContext;l=U3a(w.innertubeTransportService,(k=b)==null?void 0:k.form,f,E,U,X,I);return x.return(l.then(function(Q){Equ(b==null?void 0:b.form,
!1);var Z=w.store,e=w.JSC$15451_commandHandler,O=Q.integratorData;O==null||O===""||Q.error!=null?(String(Q.error)==="-1"&&V.onDismissCommand?e.resolveCommand(V.onDismissCommand):String(Q.error)!=="-1"&&V.onFailureCommand&&e.resolveCommand(V.onFailureCommand),String(Q.error)!=="-1"&&String(Q.error)!=="132"&&_.Ft(Error("Ii"),"ERROR")):(V.googlePaymentEntityKey&&Z.dispatch(_.qo("commerceAcquisitionClientPayloadEntity",V.googlePaymentEntityKey,{key:V.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:O,
fundsGuaranteeCallbackClientData:Q.integratorClientCallbackData}}})),V.onSuccessCommand&&e.resolveCommand(V.onSuccessCommand));_.k7()},function(Q){Equ(b==null?void 0:b.form,!1);
_.Ft(Q,"ERROR");V.onFailureCommand&&w.JSC$15451_commandHandler.resolveCommand(V.onFailureCommand)}))})};
tM[VS]=[oM,_.Nn,_.Sy];var Rp=function(Y,b){this.JSC$15455_commandHandler=Y;this.purchaseManager=b};
_.P(Rp,zA);
Rp.prototype.resolveCommand=function(Y){var b=this,w,V,H,f,E,U,X,I,k;return _.c(function(l){w=_.v(Y,jUK);((V=w)==null?0:(H=V.commandLifeCycleConfig)==null?0:H.onStartCommand)&&b.JSC$15455_commandHandler.resolveCommand(w.commandLifeCycleConfig.onStartCommand);if(!((f=w)==null?0:(E=f.googlePaymentPurchaseManagerPayload)==null?0:E.securePayloadBytes))return _.Ft(Error("Ji"),"ERROR"),l.return();U=m8o(_.c9(w.googlePaymentPurchaseManagerPayload.securePayloadBytes));X=_.P0().get("hl");I=_.j9();A3r(U.serialize(),
X,function(x){I.resolve(x)},function(x){I.reject(x)},I.resolve);
k=I.promise;return l.return(k.then(function(x){if(x)if(x==null?0:x.errorCode){_.Ft(Error("Ki`"+x.errorCode),"ERROR");var Q,Z;((Q=w)==null?0:(Z=Q.commandLifeCycleConfig)==null?0:Z.onFailureCommand)&&b.JSC$15455_commandHandler.resolveCommand(w.commandLifeCycleConfig.onFailureCommand)}else if(x==null?0:x.isCancelled){var e,O;((e=w)==null?0:(O=e.commandLifeCycleConfig)==null?0:O.onCancelCommand)&&b.JSC$15455_commandHandler.resolveCommand(w.commandLifeCycleConfig.onCancelCommand)}else{var L,r;((L=w)==
null?0:(r=L.commandLifeCycleConfig)==null?0:r.onSuccessCommand)&&b.JSC$15455_commandHandler.resolveCommand(w.commandLifeCycleConfig.onSuccessCommand)}},function(x){_.Ft(x,"ERROR");
var Q,Z;((Q=w)==null?0:(Z=Q.commandLifeCycleConfig)==null?0:Z.onFailureCommand)&&b.JSC$15455_commandHandler.resolveCommand(w.commandLifeCycleConfig.onFailureCommand)}))})};
Rp[VS]=[_.Nn,C_5];var aoK=function(Y,b){this.JSC$15463_commandHandler=Y;this.commandAllowlistOverride=b;var w;this.commandAllowlist=(w=this.commandAllowlistOverride)!=null?w:G9};
aoK.prototype.handleResponse=function(Y,b,w){var V,H=b==null?void 0:(V=b.config)==null?void 0:V.command;if(!H||this.commandAllowlist.some(function(f){return!!_.v(H,f)})){b=void 0;
w!==void 0&&(b={form:{element:w}});Y.onResponseReceivedCommand&&this.JSC$15463_commandHandler.resolveCommand(Y.onResponseReceivedCommand,b);Y.onResponseReceivedAction&&this.JSC$15463_commandHandler.resolveCommand(Y.onResponseReceivedAction,b);Y.onResponseReceivedEndpoint&&this.JSC$15463_commandHandler.resolveCommand(Y.onResponseReceivedEndpoint,b);Y.command&&this.JSC$15463_commandHandler.resolveCommand(Y.command,b);if(Y.onResponseReceivedCommands)for(w=_.N(Y.onResponseReceivedCommands),V=w.next();!V.done;V=
w.next())this.JSC$15463_commandHandler.resolveCommand(V.value,b);if(Y.onResponseReceivedActions)for(w=_.N(Y.onResponseReceivedActions),V=w.next();!V.done;V=w.next())this.JSC$15463_commandHandler.resolveCommand(V.value,b);if(Y.onResponseReceivedEndpoints)for(w=_.N(Y.onResponseReceivedEndpoints),V=w.next();!V.done;V=w.next())this.JSC$15463_commandHandler.resolveCommand(V.value,b);if(Y.actions)for(Y=_.N(Y.actions),w=Y.next();!w.done;w=Y.next())this.JSC$15463_commandHandler.resolveCommand(w.value,b)}};
aoK[VS]=[_.Nn,_.HQ(QpL)];var rFo=new _.Hx("INNERTUBE_TOKEN_SERVICE");var zf_=new _.Hx("SCHEDULER_TOKEN");var WO8=function(Y){this.scheduler=Y;Y={};this.tokenMap=(Y.app={},Y.user={},Y)};
WO8.prototype.handleResponse=function(Y,b){if(!b)throw Error("Li");var w;if(Y=(w=Y.responseContext)==null?void 0:w.innertubeTokenJar){if(Y.appTokens){var V,H,f;w=(V=b.innerTubeRequest.context)==null?void 0:(H=V.request)==null?void 0:(f=H.innertubeTokenJar)==null?void 0:f.appTokens;KO9(this,Y.appTokens,this.tokenMap.app,w)}if(Y.userTokens){var E,U,X;b=(E=b.innerTubeRequest.context)==null?void 0:(U=E.request)==null?void 0:(X=U.innertubeTokenJar)==null?void 0:X.userTokens;KO9(this,Y.userTokens,this.tokenMap.user,
b)}}};
WO8.prototype.processContext=function(Y){Y.request||(Y.request={});var b=Object.keys(this.tokenMap.app).length,w=Object.keys(this.tokenMap.user).length;if(b||w)Y.request.innertubeTokenJar={},b&&(Y.request.innertubeTokenJar.appTokens=[].concat(_.Bt(Object.values(this.tokenMap.app).flat()))),w&&(Y.request.innertubeTokenJar.userTokens=[].concat(_.Bt(Object.values(this.tokenMap.user).flat())))};
var KO9=function(Y,b,w,V){b=_.N(b);for(var H=b.next(),f={};!H.done;f={token$jscomp$138:void 0},H=b.next()){f.token$jscomp$138=H.value;if(f.token$jscomp$138.type===void 0)throw new _.BQ("InnerTube token has no type",f.token$jscomp$138);if(f.token$jscomp$138.clearTokens)w[f.token$jscomp$138.type]=[];else if(f.token$jscomp$138.value!==void 0){w[f.token$jscomp$138.type]||(w[f.token$jscomp$138.type]=[]);if(V!==void 0&&V.length){H=_.N(V);for(var E=H.next(),U={};!E.done;U={requestToken:void 0},E=H.next())U.requestToken=
E.value,E=w[f.token$jscomp$138.type].findIndex(function(X){return function(I){return I===X.requestToken||(0,_.BL.equals)(I,X.requestToken)}}(U)),E>-1&&w[f.token$jscomp$138.type].splice(E,1)}w[f.token$jscomp$138.type].push(f.token$jscomp$138);
f.token$jscomp$138.maxAgeSeconds&&Number(f.token$jscomp$138.maxAgeSeconds)>0&&Y.scheduler.addLowPriorityJob(function(X){return function(){var I=w[X.token$jscomp$138.type].indexOf(X.token$jscomp$138);I>-1&&w[X.token$jscomp$138.type].splice(I,1)}}(f),Number(f.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.BQ("InnerTube token has no value",f.token$jscomp$138);
}};
WO8[VS]=[zf_];var itC=new _.Hx("LOCAL_INNERTUBE_ROUTER_TOKEN"),AF9=new _.Hx("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var FF=function(Y){this.serviceMap=Y};
FF.prototype.shouldPreferLocalResponse=function(Y,b){return(Y=C25(this,Y))?Y.shouldPreferLocalResponse(b):!1};
FF.prototype.localInnertubeResponse=function(Y,b){var w=this,V;return _.c(function(H){return(V=C25(w,Y))?H.return(V.localInnertubeResponse(b)):H.return(Promise.reject(Error("Mi")))})};
FF.prototype.canProvideFallbackResponse=function(Y,b){return(Y=C25(this,Y))?Y.canProvideFallbackResponse(b):!1};
FF.prototype.localFallbackInnertubeResponse=function(Y,b){var w=this,V;return _.c(function(H){return(V=C25(w,Y))?H.return(V.localFallbackInnertubeResponse(b)):H.return(Promise.reject(Error("Mi")))})};
var C25=function(Y,b){b=_.ku(b);return b?(Y=Y.serviceMap[b])?Y:null:null};
FF[VS]=[AF9];var BK=function(){};
BK.prototype.shouldPreferLocalResponse=function(){return!1};
BK.prototype.localInnertubeResponse=function(){return _.c(function(Y){return Y.return(Promise.reject(Error("Ni")))})};
BK.prototype.canProvideFallbackResponse=function(){return!0};
BK.prototype.localFallbackInnertubeResponse=function(){var Y,b,w;return _.c(function(V){Y=t9("CLOSE_POPUP");b={openPopupAction:D3t()};w={actions:[Y,b]};return V.return(w)})};var T8u=function(Y,b){this.JSC$15513_upliftPromise=Y;this.store=b};
_.g=T8u.prototype;_.g.shouldPreferLocalResponse=function(Y){var b=Y.videoId,w;if(w=b)w=n$q(this.store.getState().entities,Y.videoId);return w&&Mc6(this.store.getState().entities,b)?oqt(this.store.getState().entities,Y.playlistId):!1};
_.g.localInnertubeResponse=function(Y){var b=this,w;return _.c(function(V){return(w=b.getPlayerResponse(Y))?V.return(Promise.resolve(w)):V.return(Promise.reject(Error("Oi")))})};
_.g.canProvideFallbackResponse=function(Y){return!!Y.videoId};
_.g.localFallbackInnertubeResponse=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.JSC$15513_upliftPromise,2);w=b.getPlayerResponse(Y);var H;w?H=V.return(Promise.resolve(w)):H=MV(b.store.getState().entities,Y.videoId)?V.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.NV(_.sa("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:L8b()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
V.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.NV(_.sa("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:F8L()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return H})};
_.g.getPlayerResponse=function(Y){return bLG(this.store.getState().entities,Y.videoId)};var Zz=function(Y,b){this.localPlayerService=Y;this.localWatchNextService=b};
Zz.prototype.shouldPreferLocalResponse=function(Y){var b=Y.playerRequest;Y=Y.watchNextRequest;return!!(b&&this.localPlayerService.shouldPreferLocalResponse(b)&&Y&&this.localWatchNextService.shouldPreferLocalResponse(Y))};
Zz.prototype.localInnertubeResponse=function(Y){var b=this,w,V,H,f;return _.c(function(E){if(E.nextAddress==1){w=Y.playerRequest;V=Y.watchNextRequest;if(!w||!V)throw new _.BQ("Missing streaming request",Y);return _.D(E,b.localPlayerService.localInnertubeResponse(w),2)}if(E.nextAddress!=3)return H=E.yieldResult,_.D(E,b.localWatchNextService.localInnertubeResponse(V),3);f=E.yieldResult;return E.return({playerResponse:H,watchNextResponse:f})})};
Zz.prototype.canProvideFallbackResponse=function(Y){var b=Y.playerRequest;Y=Y.watchNextRequest;return!!(b&&this.localPlayerService.canProvideFallbackResponse(b)&&Y&&this.localWatchNextService.canProvideFallbackResponse(Y))};
Zz.prototype.localFallbackInnertubeResponse=function(Y){var b=this,w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return w=Y.playerRequest,V=Y.watchNextRequest,w&&V?_.D(E,b.localPlayerService.localFallbackInnertubeResponse(w),2):E.return(Promise.reject(new _.BQ("Missing streaming request",Y)));if(E.nextAddress!=3)return H=E.yieldResult,_.D(E,b.localWatchNextService.localFallbackInnertubeResponse(V),3);f=E.yieldResult;return E.return({playerResponse:H,watchNextResponse:f})})};var QY=function(Y){this.JSC$15523_persistentStorePromiseAccessor=Y};
QY.prototype.shouldPreferLocalResponse=function(){return!1};
QY.prototype.localInnertubeResponse=function(){return _.c(function(Y){return Y.return(Promise.reject(Error("Pi")))})};
QY.prototype.canProvideFallbackResponse=function(){return!0};
QY.prototype.localFallbackInnertubeResponse=function(){var Y=this,b,w;return _.c(function(V){return V.nextAddress==1?_.D(V,Y.JSC$15523_persistentStorePromiseAccessor(),2):V.nextAddress!=3?(b=V.yieldResult)?_.D(V,b.get("service:guide:fallback"),3):V.return(Promise.reject(Error("Qi"))):(w=V.yieldResult)&&_.Dz(w)?V.return(I_M(_.Dz(w))):V.return(Promise.reject(Error("Ri")))})};var nk=function(){};
nk.prototype.shouldPreferLocalResponse=function(){return!1};
nk.prototype.localInnertubeResponse=function(){return _.c(function(Y){return Y.return(Promise.reject(Error("Si")))})};
nk.prototype.canProvideFallbackResponse=function(){return!0};
nk.prototype.localFallbackInnertubeResponse=function(){var Y,b,w;return _.c(function(V){Y=t9("CLOSE_POPUP");b={openPopupAction:D3t()};w={actions:[Y,b]};return V.return(w)})};var sd=function(){this.urlMap=yF9;this.fallbackCommand=_.Qy};
sd.prototype.shouldPreferLocalResponse=function(Y){return(Y=Y.url)?!!$pC(this,Y):!1};
sd.prototype.localInnertubeResponse=function(Y){var b=this,w;return _.c(function(V){return(w=Y.url)?V.return(juI(Y,$pC(b,w))):V.return(Promise.reject(Error("Ti")))})};
sd.prototype.canProvideFallbackResponse=function(){return!0};
sd.prototype.localFallbackInnertubeResponse=function(Y){var b=this,w,V,H,f,E,U,X;return _.c(function(I){w=Y.url;if(!w)return I.return(juI(Y,b.fallbackCommand));if(V=$pC(b,w))return I.return(juI(Y,V));H=void 0;f=_.ku(w);f==="/watch"&&(E=_.CC(w,"v"))&&(X=(U=_.CC(w,"list"))!=null?U:void 0,H=_.f8(E,X));H||(H=b.fallbackCommand);return I.return(juI(Y,H))})};
var $pC=function(Y,b){if(b)return Y.urlMap[_.CM(b)]},juI=function(Y,b){b&&Y.parentTrackingParams&&(b.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:Y.parentTrackingParams}},b.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:b})};var vK=function(Y,b,w){this.JSC$15533_upliftPromise=Y;this.store=b;this.JSC$15533_persistentStorePromiseAccessor=w};
vK.prototype.shouldPreferLocalResponse=function(){return!1};
vK.prototype.localInnertubeResponse=function(){return _.c(function(Y){return Y.return(Promise.reject(Error("Ui")))})};
vK.prototype.canProvideFallbackResponse=function(){return!0};
vK.prototype.localFallbackInnertubeResponse=function(){var Y=this;return _.c(function(b){return b.return(GU5(Y))})};
var GU5=function(Y){var b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,X5(Y.JSC$15533_upliftPromise,Y.store),2);b=V.yieldResult;w={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[m3M(b)]}}}};return V.return(T7j(Y,w))})},T7j=function(Y,b){var w,V;
return _.c(function(H){if(H.nextAddress==1)return _.D(H,Y.JSC$15533_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return w=H.yieldResult,_.D(H,mw(w),3);V=H.yieldResult;return H.return({responseContext:{},contents:b,topbar:V})})};var xi=function(Y,b,w){this.JSC$15540_upliftPromise=Y;this.store=b;this.JSC$15540_persistentStorePromiseAccessor=w};
xi.prototype.shouldPreferLocalResponse=function(Y){var b=Y.videoId;return b&&n$q(this.store.getState().entities,b)&&Mc6(this.store.getState().entities,b)?oqt(this.store.getState().entities,Y.playlistId):!1};
xi.prototype.localInnertubeResponse=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1)return(w=Y.videoId)?_.D(H,b.JSC$15540_upliftPromise,2):H.return(Promise.reject(Error("Vi")));if(H.nextAddress!=3)return _.D(H,JF9(b,Y,w),3);V=H.yieldResult;return H.return(uWU(b,V,w))})};
xi.prototype.canProvideFallbackResponse=function(Y){return Y.videoId?!0:!1};
xi.prototype.localFallbackInnertubeResponse=function(Y){var b=this,w,V,H,f;return _.c(function(E){switch(E.nextAddress){case 1:return(w=Y.videoId)?_.D(E,b.JSC$15540_upliftPromise,2):E.return(Promise.reject(Error("Vi")));case 2:return _.D(E,JF9(b,Y,w),3);case 3:V=E.yieldResult;if(MV(b.store.getState().entities,w)){E.jumpTo(4);break}return _.D(E,X5(b.JSC$15540_upliftPromise,b.store),5);case 5:return H=E.yieldResult,E.return(Ys8(V,H));case 4:return n$q(b.store.getState().entities,w)&&Mc6(b.store.getState().entities,
w)?E.return(uWU(b,V,w)):(f={title:_.NV(_.sa("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:L8b()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},E.return(Ys8(V,f)))}})};
var JF9=function(Y,b,w){var V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1)return V=b.playlistId,H=_.f8(w,V),_.D(X,Y.JSC$15540_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return f=X.yieldResult,_.D(X,mw(f),3);E=X.yieldResult;U={responseContext:{},currentVideoEndpoint:H,topbar:E};return X.return(U)})},uWU=function(Y,b,w){if(Y=MV(Y.store.getState().entities,w)){var V;
w=Y.videoEntity;var H,f={title:Ef(w.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.c$((V=w.localizedStrings)==null?void 0:V.viewCount),viewCount:_.c$((H=w.localizedStrings)==null?void 0:H.viewCount)}}};w.publishedTimestampMillis&&(f.dateText=_.c$(KsK(new Date(Number(w.publishedTimestampMillis)))));V={videoPrimaryInfoRenderer:f};H=Y.videoEntity;Y=Y.channelEntity;Y={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Ef(_.sa("SHOW_MORE",void 0,"Show more")),
showLessText:Ef(_.sa("SHOW_LESS",void 0,"Show less")),description:H.formattedDescription,owner:{videoOwnerRenderer:{title:Ef(Y.title),thumbnail:Y.avatar}}}};b.contents={twoColumnWatchNextResults:{results:{results:{contents:[V,Y]}}}}}return b},Ys8=function(Y,b){Y.contents={singleColumnWatchNextResults:{results:{results:{contents:[m3M(b)]}}}};
return Y};var PK=function(Y,b,w){this.JSC$15545_upliftPromise=Y;this.store=b;this.JSC$15545_persistentStorePromiseAccessor=w};
PK.prototype.shouldPreferLocalResponse=function(){return!1};
PK.prototype.localInnertubeResponse=function(){return _.c(function(Y){return Y.return(Promise.reject(Error("Wi")))})};
PK.prototype.canProvideFallbackResponse=function(){return!0};
PK.prototype.localFallbackInnertubeResponse=function(){var Y=this,b,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:return _.D(f,Y.JSC$15545_persistentStorePromiseAccessor(),2);case 2:return b=f.yieldResult,_.D(f,mw(b),3);case 3:return w=f.yieldResult,V={responseContext:{},topbar:w},_.D(f,Y.JSC$15545_upliftPromise,4);case 4:return _.D(f,X5(Y.JSC$15545_upliftPromise,Y.store),5);case 5:return H=f.yieldResult,V.watchStatus={backgroundPromoRenderer:H},f.return(V)}})};var bTt=new _.Hx("ENDPOINT_MAP");var wF9=function(){var Y=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return Y.sequenceMap}}},aYC=function(Y,b,w){var V,H=(V=b.config)==null?void 0:V.sequenceStrategy;
if(!H)return w();Y.sequenceMap.has(H.sequenceKey)||Y.sequenceMap.set(H.sequenceKey,[]);Y=Y.sequenceMap.get(H.sequenceKey);switch(H.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return VAI(Y,b,w);case "REQUEST_SEQUENCE_TYPE_REPLACE":return HT9(Y,b,w);default:throw new _.BQ("Request could not be sequenced",b);}},VAI=function(Y,b,w){var V,H,f;
return _.c(function(E){Y.length>0?(H=Y[Y.length-1],V=H.responsePromise.then(function(){return w()})):V=w();
f={request:b,responsePromise:V};Y.push(f);gBU(Y,f);return E.return(f.responsePromise)})},HT9=function(Y,b,w){w=w();
if(Y.length>0)for(var V=_.N(Y),H=V.next();!H.done;H=V.next())H.value.responsePromise=w;var f={request:b,responsePromise:w};Y.push(f);gBU(Y,f);return Promise.resolve().then(function(){return Y.indexOf(f)>0?f.responsePromise.then(function(E){return Object.assign({},E,{sequenceMetaData:{skipProcessing:!0}})}):f.responsePromise})},gBU=function(Y,b){b.responsePromise.then(function(){var w=Y.indexOf(b);
w>-1&&Y.splice(w,1)})};var f3t=new _.Hx("REQUEST_SEQUENCING");var Lv=function(){};
_.P(Lv,Ij);Lv.prototype.getApiPaths=function(){return[]};
Lv.prototype.getExtension=function(Y){return _.v(Y,kit)};
Lv.prototype.JSC$11043_buildRequest=function(Y,b){Y.recaptchaToken=b.recaptchaToken};
Lv.prototype.getApiUrl=function(){return"/das_captcha"};var Se=function(){};
_.P(Se,Ij);Se.prototype.getApiPaths=function(){return Cy9};
Se.prototype.getExtension=function(Y){return _.v(Y,ik9)};
Se.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.createBackstagePostParams&&(Y.createBackstagePostParams=b.createBackstagePostParams);w.comment_text&&(Y.commentText=w.comment_text);if(w.attached_video_id)Y.videoAttachment={videoId:w.attached_video_id};else if(w.image_poll_options)Y.pollAttachmentData={options:w.image_poll_options};else if(w.poll_options)Y.pollAttachment={choices:w.poll_options};else if(w.quiz_options)Y.quizAttachmentData={options:w.quiz_options};else if(w.image_blob_id)Y.imageAttachment=
{encryptedBlobId:w.image_blob_id},w.source_video_id&&(Y.imageAttachment.sourceExternalVideoId=w.source_video_id),w.image_preview_coordinates&&(Y.imageAttachment.previewCoordinates=JSON.parse(w.image_preview_coordinates));else if(w.images_data)Y.imagesAttachment={imagesData:w.images_data};else if(w.clip_external_video_id!==void 0||w.clip_offset_ms!==void 0||w.clip_duration_ms!==void 0){var V,H,f,E,U;Y.clipAttachment={externalVideoId:(f=w.clip_external_video_id)!=null?f:"",offsetMs:(E=(V=w.clip_offset_ms)==
null?void 0:V.toString())!=null?E:"",durationMs:(U=(H=w.clip_duration_ms)==null?void 0:H.toString())!=null?U:""}}else w.shared_post_id&&(Y.sharedPostAttachment={postId:w.shared_post_id});w.tagged_video_id&&(Y.postCreationData={taggedVideoId:w.tagged_video_id});w.access_restrictions&&(typeof w.access_restrictions==="number"&&(b=w.access_restrictions,Y.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof w.access_restrictions==="string"&&
(Y.accessRestrictionsParams=w.access_restrictions));w.scheduled_publish_time_sec&&(Y.scheduledPublishTimeSec=w.scheduled_publish_time_sec.toString())};var ap=function(){};
_.P(ap,Ij);ap.prototype.getApiPaths=function(){return u9K};
ap.prototype.getExtension=function(Y){return _.v(Y,$b9)};
ap.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.decorateMessageParams&&(Y.params=b.decorateMessageParams);w.text&&(Y.text=w.text)};var ro=function(){};
_.P(ro,Ij);ro.prototype.getApiPaths=function(){return xxr};
ro.prototype.getExtension=function(Y){return _.v(Y,AJ_)};
ro.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;w.video_id&&(Y.videoId=w.video_id)};var zB=function(){};
_.P(zB,Ij);zB.prototype.getApiPaths=function(){return ZZU};
zB.prototype.getExtension=function(Y){return _.v(Y,_.x7)};
zB.prototype.JSC$11043_buildRequest=function(Y,b,w){w.suggestions_query&&(Y.input=w.suggestions_query)};var Wj=function(){};
_.P(Wj,Ij);Wj.prototype.getApiPaths=function(){return HnU};
Wj.prototype.getExtension=function(Y){return _.v(Y,Cf5)};
Wj.prototype.JSC$11043_buildRequest=function(Y,b,w){w.comment_text!==void 0&&(Y.commentText=w.comment_text);w.scheduled_publish_time_sec&&(Y.scheduledPublishTimeSec=w.scheduled_publish_time_sec.toString());Y.updateBackstagePostParams=b.updateBackstagePostParams};var Kv=function(){};
_.P(Kv,Ij);Kv.prototype.getApiPaths=function(){return HK};
Kv.prototype.getExtension=function(Y){return _.v(Y,_.Wb)};
Kv.prototype.JSC$11043_buildRequest=function(Y,b,w){w.formData&&(Y.formData=w.formData);b.token?Y.continuation=b.token:b.continuationTokenKey&&(w=_.u3().getState(),b=_.kt(w.entities,"continuationTokenEntity",b.continuationTokenKey))&&(Y.continuation=String(b.continuationToken))};
var N6t=function(){};
_.P(N6t,Ij);_.g=N6t.prototype;_.g.getApiPaths=function(){return HK};
_.g.getExtension=function(Y){return _.v(Y,_.QU)};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$11050_getStoreKey=function(Y){if((Y=this.getExtension(Y))&&Y.browseId){var b={browseId:Y.browseId};Y.browseEndpointContextSupportedConfigs&&(b.browseEndpointContextSupportedConfigs=JSON.stringify(Y.browseEndpointContextSupportedConfigs));Y.params&&(b.params=Y.params);Y.query&&(b.query=Y.query);return _.GG("browse",b)}};
_.g.JSC$11043_buildRequest=function(Y,b,w){b.browseId&&(Y.browseId=b.browseId);b.params&&(Y.params=b.params);b.query&&(Y.query=b.query);w.formData?Y.formData=w.formData:b.formData&&(Y.formData=b.formData);b.browseId==="FEsubscriptions"&&_.P0().getFlag(155)&&(Y.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");b.browseId==="SPaccount_playback"&&(w=_.P0(),Y.formData||(Y.formData={}),Y.formData.accountSettingsFormData={flagCaptionsDefaultOff:w.getFlag(65),flagAutoCaptionsDefaultOn:w.getFlag(66),
flagDisableInlinePreview:w.getFlag(186),flagAudioDescriptionDefaultOn:w.getFlag(198)});if(b.browseId==="FEwhat_to_watch"){w=_.P0();var V=w.getFlag(196);w.getFlag(197)&&(Y.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:V}}})}b.browseId==="FEwhat_to_watch"&&(b=_.P0().getFlag(186),Y.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.g.getRequestConfig=function(Y,b){b=b===void 0?{}:b;var w={};if(Y=this.JSC$11050_getStoreKey(Y,b))w.storeStrategy={storeKey:Y,disableCache:b.disableCache};_.q("web_log_browse_ticks_ks")||(w.requestTick="br_s",w.responseTick="br_r");return w};var ie=function(){};
_.P(ie,Ij);ie.prototype.getApiPaths=function(){return r4d};
ie.prototype.getExtension=function(Y){return _.v(Y,Uhr)};
ie.prototype.JSC$11043_buildRequest=function(Y,b,w){Y.legacyYoutubeChannelUsername=w.legacyYouTubeChannelUsername||"";Y.legacyYoutubeChannelPassword=w.legacyYouTubeChannelPassword||""};var AM=function(){};
_.P(AM,Ij);AM.prototype.getApiPaths=function(){return $x$};
AM.prototype.getExtension=function(Y){return _.v(Y,Y0K)};
AM.prototype.JSC$11043_buildRequest=function(Y,b,w){w.recaptcha_response_token&&(Y.recaptchaResponseToken=w.recaptcha_response_token);w.channel_id&&(Y.channelId=w.channel_id)};var Cv=function(){};
_.P(Cv,Ij);Cv.prototype.getApiPaths=function(){return gXK};
Cv.prototype.getExtension=function(Y){return _.v(Y,fXd)};
Cv.prototype.JSC$11043_buildRequest=function(Y,b,w){b.externalChannelId&&(Y.externalChannelId=b.externalChannelId);w.handle&&(Y.handleUpdate={handle:w.handle},b.handleEditSource&&(Y.handleUpdate.handleEditSource=b.handleEditSource))};var yH=function(){};
_.P(yH,Ij);yH.prototype.getApiPaths=function(){return c0j};
yH.prototype.getExtension=function(Y){return _.v(Y,q0j)};
yH.prototype.JSC$11043_buildRequest=function(Y,b,w){b.request&&(Y.channelId=b.request.channelId);var V;if(w==null?0:(V=w.uploadDefaults)==null?0:V.emojiReactionSet)Y.uploadDefaultsRequest||(Y.uploadDefaultsRequest={}),Y.uploadDefaultsRequest.emojiReactionSet=w.uploadDefaults.emojiReactionSet};var $R=function(){};
_.P($R,Ij);$R.prototype.getApiPaths=function(){return DSQ};
$R.prototype.getExtension=function(Y){return _.v(Y,bE5)};
$R.prototype.JSC$11043_buildRequest=function(Y,b,w){b.externalChannelId&&(Y.externalChannelId=b.externalChannelId);b.channelHandleEntityKey&&(Y.channelHandleEntityKey=b.channelHandleEntityKey);b.handleEditSource&&(Y.handleEditSource=b.handleEditSource);w.handle?Y.handle=w.handle:w.name&&(Y.name=w.name)};var je=function(){};
_.P(je,Ij);je.prototype.getApiPaths=function(){return KoK};
je.prototype.getExtension=function(Y){return _.v(Y,n8d)};
je.prototype.JSC$11043_buildRequest=function(Y,b){b.actions?Y.actions=b.actions:b.action&&(Y.actions=[b.action])};var GB=function(){};
_.P(GB,Ij);GB.prototype.getApiPaths=function(){return ipU};
GB.prototype.getExtension=function(Y){return _.v(Y,_.Wb)};
GB.prototype.JSC$11043_buildRequest=function(Y,b){b.token&&(Y.continuation=b.token)};var TB=function(){};
_.P(TB,Ij);TB.prototype.getApiPaths=function(){return lcU};
TB.prototype.getExtension=function(Y){return _.v(Y,_.Wb)};
TB.prototype.JSC$11043_buildRequest=function(Y,b){Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";b.token&&(Y.fetchCommentsParams={continuation:b.token})};var JM=function(){};
_.P(JM,Ij);JM.prototype.getApiPaths=function(){return jC$};
JM.prototype.getExtension=function(Y){return _.v(Y,BAK)};
JM.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.createReplyParams&&(Y.createReplyParams=b.createReplyParams);b.commentText&&(Y.commentText=_.Tx(b.commentText));w.comment_text&&(Y.commentText=w.comment_text);w.image_blob_id&&(Y.imageAttachment={encryptedBlobId:w.image_blob_id});w.botguard_response&&(Y.botguardResponse=w.botguard_response)};
_.up.Object.defineProperties(JM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ue=function(){};
_.P(ue,Ij);ue.prototype.getApiPaths=function(){return GFk};
ue.prototype.getExtension=function(Y){return _.v(Y,_.ZyI)};
ue.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.createCommentParams&&(Y.createCommentParams=b.createCommentParams);b.commentText&&(Y.commentText=_.Tx(b.commentText));b.videoPositionMention&&(Y.videoPositionMention=b.videoPositionMention);b.sources&&(Y.sources=b.sources);w.comment_text&&(Y.commentText=w.comment_text);w.attached_video_id?Y.videoAttachment={videoId:w.attached_video_id}:w.poll_options?Y.pollAttachment={choices:w.poll_options}:w.image_blob_id?Y.imageAttachment=
{encryptedBlobId:w.image_blob_id}:w.shared_post_id&&(Y.sharedPostAttachment={postId:w.shared_post_id});w.access_restrictions&&typeof w.access_restrictions==="number"&&(b=w.access_restrictions,Y.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});w.botguard_response&&(Y.botguardResponse=w.botguard_response)};
_.up.Object.defineProperties(ue.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Yn=function(){};
_.P(Yn,Ij);Yn.prototype.getApiPaths=function(){return fiC};
Yn.prototype.getExtension=function(Y){return _.v(Y,eio)};
Yn.prototype.JSC$11043_buildRequest=function(Y,b,w){b.commentText&&(Y.replyText=_.Tx(b.commentText));w.comment_text&&(Y.replyText=w.comment_text);Y.updateReplyParams=b.updateReplyParams};
_.up.Object.defineProperties(Yn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bm=function(){};
_.P(bm,Ij);bm.prototype.getApiPaths=function(){return N9k};
bm.prototype.getExtension=function(Y){return _.v(Y,Mw$)};
bm.prototype.JSC$11043_buildRequest=function(Y,b,w){b.commentText&&(Y.commentText=_.Tx(b.commentText));w.comment_text&&(Y.commentText=w.comment_text);Y.updateCommentParams=b.updateCommentParams};
_.up.Object.defineProperties(bm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wZ=function(){};
_.P(wZ,Ij);wZ.prototype.getApiPaths=function(){return EX$};
wZ.prototype.getExtension=function(Y){return _.v(Y,kZr)};
wZ.prototype.JSC$11043_buildRequest=function(Y,b){b.settings&&(Y.settings=b.settings)};var VF=function(){};
_.P(VF,Ij);VF.prototype.getApiPaths=function(){return Uxr};
VF.prototype.getExtension=function(Y){return _.v(Y,wZk)};
VF.prototype.JSC$11043_buildRequest=function(Y,b){b.channelCreationToken&&(Y.channelCreationToken=b.channelCreationToken);b.source&&(Y.source=b.source)};var H4=function(){};
_.P(H4,Ij);H4.prototype.getApiPaths=function(){return $PU};
H4.prototype.getExtension=function(Y){return _.v(Y,gvt)};
H4.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;if(w.name&&(w.given_name||w.family_name))Y=new _.BQ("channel creation cannot set both GAIA and YouTube names",b),_.Ft(Y);else{if(b.zeroStepChannelCreationParams){if(!w.comment_text){Y=new _.BQ("zero_step_create_comment_params but no zero_step_texts",b);_.Ft(Y);return}Y.zeroStepChannelCreationParams=b.zeroStepChannelCreationParams;Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
w.comment_text,w.botguard_response&&(Y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=w.botguard_response))}Y.channelCreationToken=b.channelCreationToken;w.given_name&&(Y.givenName=w.given_name);w.family_name&&(Y.familyName=w.family_name);b.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(Y.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(w.name||w.handle||w.avatar_url||w.encryptedBlobId||w.isNameChanged!==void 0||w.isHandleChanged!==void 0||w.isDefaultProfilePhoto!==
void 0||w.obakeImageSource)Y.overrideChannelCreationParams={},w.name&&(Y.overrideChannelCreationParams.name=w.name),w.handle&&(Y.overrideChannelCreationParams.handle=w.handle),w.avatar_url&&(Y.overrideChannelCreationParams.avatarUrl=w.avatar_url),w.encryptedBlobId&&(Y.overrideChannelCreationParams.blobEncryptionId=w.encryptedBlobId),w.enableIdentityForAllChannelCreationDialog&&(w.encryptedBlobId?Y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
w.isDefaultProfilePhoto!==void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=w.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),w.isNameChanged!==void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationNameTag=w.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),w.isHandleChanged!==
void 0&&(Y.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=w.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),w.obakeImageSource&&(Y.overrideChannelCreationParams.obakeImageSourceType=w.obakeImageSource))}};var gZ=function(){};
_.P(gZ,Ij);gZ.prototype.getApiPaths=function(Y){return(Y=this.getExtension(Y))&&Y.status==="DISLIKE"?VHC:Y&&Y.status==="INDIFFERENT"?KgC:p5t};
gZ.prototype.getExtension=function(Y){return _.v(Y,_.jV)};
gZ.prototype.JSC$11043_buildRequest=function(Y,b){b.target&&(Y.target=b.target);if(b=this.getParams(b))Y.params=b};
gZ.prototype.getParams=function(Y){switch(Y==null?void 0:Y.status){case "DISLIKE":return Y.dislikeParams;case "INDIFFERENT":return Y.removeLikeParams;default:return Y==null?void 0:Y.likeParams}};var fw=function(){};
_.P(fw,Ij);fw.prototype.getApiPaths=function(){return uck};
fw.prototype.getExtension=function(Y){return _.v(Y,rxd)};
fw.prototype.JSC$11043_buildRequest=function(Y,b){b.settingItemId&&(Y.settingItemId=b.settingItemId);b.stringValue!=null&&b.stringValue!==void 0?Y.newValue={stringValue:b.stringValue}:b.intValue?Y.newValue={intValue:b.intValue}:b.boolValue!==null&&b.boolValue!==void 0?Y.newValue={boolValue:b.boolValue}:(Y=new _.BQ("Unknown value type for SetSettingEndpoint.",b),_.Ft(Y))};var N0=function(){};
_.P(N0,Ij);N0.prototype.getApiPaths=function(){return bnd};
N0.prototype.getExtension=function(Y){return _.v(Y,V7I)||void 0};
N0.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.channelIds&&(Y.channelIds=b.channelIds);b.siloName&&(Y.siloName=b.siloName);b.params&&(Y.params=b.params);w.botguardResponse&&(Y.botguardResponse=w.botguardResponse);w.feature&&(Y.clientFeature=w.feature)};
_.up.Object.defineProperties(N0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var EF=function(){};
_.P(EF,Ij);EF.prototype.getApiPaths=function(){return VoI};
EF.prototype.getExtension=function(Y){return _.v(Y,zz_)||void 0};
EF.prototype.JSC$11043_buildRequest=function(Y,b){b.channelIds&&(Y.channelIds=b.channelIds);b.siloName&&(Y.siloName=b.siloName);b.params&&(Y.params=b.params)};
_.up.Object.defineProperties(EF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var c4=function(Y){this.shareClientParamsProvider=Y};
_.P(c4,Ij);c4.prototype.getApiPaths=function(){return sjI};
c4.prototype.getExtension=function(Y){return _.v(Y,Xxo)||_.v(Y,_.Dbr)||_.v(Y,UbI)};
c4.prototype.JSC$11043_buildRequest=function(Y,b){b.serializedShareEntity&&(Y.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var w;if((w=this.shareClientParamsProvider)==null?0:w.clientParams.has(b.clientParamIdentifier)){w=this.shareClientParamsProvider;b=b.clientParamIdentifier;var V=w.clientParams.get(b);V&&w.clientParams.delete(b);Y.clientParams=V}}};
c4[VS]=[ZdU];var UF=function(){};
_.P(UF,Ij);UF.prototype.getApiPaths=function(){return LoI};
UF.prototype.getExtension=function(Y){return _.v(Y,qIt)};
UF.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var XS=function(){};
_.P(XS,Ij);XS.prototype.getApiPaths=function(){return HZ$};
XS.prototype.getExtension=function(Y){return _.v(Y,lfd)};
XS.prototype.JSC$11043_buildRequest=function(Y,b){b.dismissal&&(Y.items=[b.dismissal])};
_.up.Object.defineProperties(XS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var DI=function(){};
_.P(DI,Ij);DI.prototype.getApiPaths=function(){return MH9};
DI.prototype.getExtension=function(Y){return _.v(Y,_.aM)||void 0};
DI.prototype.JSC$11043_buildRequest=function(Y,b,w){Y.feedbackTokens=[];b.feedbackToken&&Y.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||w.cpn)Y.feedbackContext={cpn:b};Y.isFeedbackTokenUnencrypted=!!w.is_feedback_token_unencrypted;Y.shouldMerge=!1;w.extra_feedback_tokens&&(Y.shouldMerge=!0,Y.feedbackTokens=Y.feedbackTokens.concat(w.extra_feedback_tokens))};
_.up.Object.defineProperties(DI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mT=function(){};
_.P(mT,Ij);mT.prototype.getApiPaths=function(){return MH9};
mT.prototype.getExtension=function(Y){return _.v(Y,_.x7)};
mT.prototype.JSC$11043_buildRequest=function(Y,b,w){w.feedback_tokens&&(Y.feedbackTokens=w.feedback_tokens,Y.shouldMerge=!0)};
_.up.Object.defineProperties(mT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oc=function(){};
_.P(oc,Ij);oc.prototype.getApiPaths=function(){return MH9};
oc.prototype.getExtension=function(Y){return _.v(Y,E4K)};
oc.prototype.JSC$11043_buildRequest=function(Y,b){b.undoToken&&(Y.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(Y.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)};
_.up.Object.defineProperties(oc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ic=function(){};
_.P(Ic,Ij);Ic.prototype.getApiPaths=function(){return mSQ};
Ic.prototype.getExtension=function(Y){return _.v(Y,oS$)};
Ic.prototype.JSC$11043_buildRequest=function(Y,b){b.nextEndpoint&&_.v(b.nextEndpoint,_.Ah)?Y.nextEndpoint={urlEndpoint:_.v(b.nextEndpoint,_.Ah)}:b.nextEndpoint&&_.v(b.nextEndpoint,_.TG)&&(Y.nextEndpoint={watchEndpoint:_.v(b.nextEndpoint,_.TG)});b.setRacy&&(Y.setRacy=b.setRacy);b.setControvercy&&(Y.setControvercy=b.setControvercy)};var kn=function(Y){this.JSC$15726_storeWithEntities=Y};
_.P(kn,Ij);kn.prototype.getApiPaths=function(){return fco};
kn.prototype.getExtension=function(Y){return _.v(Y,afo)};
kn.prototype.JSC$11043_buildRequest=function(Y,b){b.flowId&&(Y.flowId=b.flowId);b.targetId&&(Y.targetId=b.targetId);b.continuation&&(Y.continuation=b.continuation);var w=b.flowStateEntityKey;if(b.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&w&&this.JSC$15726_storeWithEntities){var V;if(b=(V=this.JSC$15726_storeWithEntities.getState())==null?void 0:V.entities)if(V=_.D7(w).entityType,V=_.kt(b,V,w))Y.flowState=V,Y.flowStateEntityKey=w}};
_.up.Object.defineProperties(kn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
kn[VS]=[oM];var EBk=function(){};
_.P(EBk,Ij);_.g=EBk.prototype;_.g.getApiPaths=function(){return ncr};
_.g.JSC$11050_getStoreKey=function(){return _.GG("guide")};
_.g.getRequestConfig=function(){var Y=this.JSC$11050_getStoreKey(),b;Y&&(b={storeStrategy:{storeKey:Y}});return b};
_.g.isNavigationCommand=function(){return!0};
_.g.getExtension=function(Y){return _.v(Y,_.x7)};
_.g.JSC$11043_buildRequest=function(Y){Y.fetchLiveState=!0};var lm=function(){};
_.P(lm,Ij);lm.prototype.getApiPaths=function(){return zJj};
lm.prototype.getExtension=function(Y){return _.v(Y,QOC)};
lm.prototype.JSC$11043_buildRequest=function(){};var ha=function(){};
_.P(ha,Ij);ha.prototype.getApiPaths=function(){return Wo$};
ha.prototype.getExtension=function(Y){return _.v(Y,v89)};
ha.prototype.JSC$11043_buildRequest=function(){};var xn=function(){};
_.P(xn,Ij);xn.prototype.getApiPaths=function(){return FoC};
xn.prototype.getExtension=function(Y){return _.v(Y,_.Wb)};
xn.prototype.JSC$11043_buildRequest=function(Y,b){b.token&&(Y.continuation=b.token);var w,V;Y==null||(w=Y.context)==null||(V=w.user)==null||delete V.onBehalfOfUser};
xn.prototype.getRequestConfig=function(Y){var b={},w;if(((w=this.getExtension(Y))==null?void 0:w.sessionIndex)!==void 0){var V;b={authStrategy:{sessionIndex:(V=this.getExtension(Y))==null?void 0:V.sessionIndex}}}return b};var q0=function(){};
_.P(q0,Ij);q0.prototype.JSC$11043_getRequest=function(Y){var b=this.getExtension(Y),w=Y="";if(b==null?0:b.popup)Y="true";if(b==null?0:b.disableSignout)w="true";b={};return{input:"/getAccountSwitcherEndpoint",requestShell:jS("/getAccountSwitcherEndpoint","GET",(b["X-YouTube-Delegation-Context"]=_.zO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),b["X-YouTube-Account-Switcher-Popup"]=Y,b["X-YouTube-Account-Switcher-Disable-Signout"]=w,b)),innerTubeRequest:{}}};
q0.prototype.getApiPaths=function(){return[]};
q0.prototype.getExtension=function(Y){return _.v(Y,_.hFv)};
q0.prototype.JSC$11043_buildRequest=function(){};var sF=function(){};
_.P(sF,Ij);sF.prototype.JSC$11043_getRequest=function(Y){var b="/cross_account_channel_transfer";(Y=this.getExtension(Y))&&(b=qZa(b,{target_session:Y.targetSessionIndex,source_rapt:Y.sourceRapt,rapt:Y.targetRapt}));return{input:b,requestShell:jS(b,"GET"),innerTubeRequest:{}}};
sF.prototype.getApiPaths=function(){return[]};
sF.prototype.getExtension=function(Y){return _.v(Y,QMK)};
sF.prototype.JSC$11043_buildRequest=function(){};var QF=function(){};
_.P(QF,Ij);QF.prototype.getApiPaths=function(){return NW$};
QF.prototype.isNavigationCommand=function(){return!0};
QF.prototype.getExtension=function(Y){return _.v(Y,_.x7)};
QF.prototype.JSC$11043_buildRequest=function(Y){var b=_.P0().get("gsml","");b&&(Y.safetyModeLockerObfuscatedGaiaId=b);Y.userInterfaceTheme=_.OC(!0);_.tL()?Y.deviceTheme="DEVICE_THEME_SELECTED":_.IiK()?Y.deviceTheme="DEVICE_THEME_SUPPORTED":Y.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var v4=function(){};
_.P(v4,Ij);v4.prototype.getApiPaths=function(){return FoC};
v4.prototype.getExtension=function(Y){return _.v(Y,viU)};
v4.prototype.JSC$11043_buildRequest=function(Y,b){if(b&&b.requestType&&(Y.requestType=b.requestType,b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var w=b.nextUrl;w&&(_.QdG(w)||wa(w))&&(Y.nextNavendpoint={urlEndpoint:{url:w}})}b&&b.channelSwitcherQuery&&(Y.channelSwitcherQuery=b.channelSwitcherQuery);b&&b.triggerChannelCreation&&(Y.triggerChannelCreation=b.triggerChannelCreation);var V;if(b==null?0:(V=b.contentOwnerConfig)==
null?0:V.externalContentOwnerId)Y.contentOwnerConfig=b.contentOwnerConfig;Y.callCircumstance=b&&b.requestType&&b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var H,f;b=Y==null?void 0:(H=Y.context)==null?void 0:(f=H.user)==null?void 0:f.onBehalfOfUser;if(b!==void 0){Y.obfuscatedSelectedGaiaId=b;var E,U;Y==null||(E=Y.context)==null||(U=E.user)==null||delete U.onBehalfOfUser}var X,I;if(H=Y==null?void 0:(X=Y.context)==null?void 0:(I=X.user)==null?
void 0:I.serializedDelegationContext)Y.selectedSerializedDelegationContext=H};var P4=function(){};
_.P(P4,Ij);P4.prototype.getApiPaths=function(){return qq9};
P4.prototype.getExtension=function(Y){return _.v(Y,hst)};
P4.prototype.JSC$11043_buildRequest=function(Y,b){b.profileOwnerExternalChannelId&&(Y.profileOwnerExternalChannelId=b.profileOwnerExternalChannelId);b.profileCardContext&&(Y.profileCardContext=b.profileCardContext)};var ZI=function(){};
_.P(ZI,Ij);ZI.prototype.getApiPaths=function(){return SLr};
ZI.prototype.getExtension=function(Y){return _.v(Y,mb8)};
ZI.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var B4=function(){};
_.P(B4,Ij);B4.prototype.getApiPaths=function(){return y4d};
B4.prototype.getExtension=function(Y){return _.v(Y,_.npd)};
B4.prototype.JSC$11043_buildRequest=function(Y,b){if(b=b.createBroadcastRequest)Y.useMasks=b.useMasks,Y.broadcastType=b.broadcastType,Y.broadcastSource=b.broadcastSource,Y.broadcastMetadata=b.broadcastMetadata,Y.broadcastMetadataMask=b.broadcastMetadataMask,Y.videoMetadata=b.videoMetadata,Y.videoMetadataMask=b.videoMetadataMask,Y.liveChatSettingsUpdate=b.liveChatSettingsUpdate,Y.liveChatSettingsUpdateMask=b.liveChatSettingsUpdateMask,Y.cloneVideoId=b.cloneVideoId,Y.cloneWithOverrides=b.cloneWithOverrides,
Y.targetEntity=b.targetEntity,Y.scheduledRedirectMetadata=b.scheduledRedirectMetadata};var nw=function(){};
_.P(nw,Ij);nw.prototype.getApiPaths=function(){return TwQ};
nw.prototype.getExtension=function(Y){return _.v(Y,BPI)};
nw.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.params&&(Y.params=b.params);w.questionText&&(Y.questionText=w.questionText);w.optionText&&w.optionText.length>0&&(Y.optionText=w.optionText)};var M0=function(){};
_.P(M0,Ij);M0.prototype.getApiPaths=function(){return Yqr};
M0.prototype.getExtension=function(Y){return _.v(Y,PzI)};
M0.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var eE=function(){};
_.P(eE,Ij);eE.prototype.getApiPaths=function(){return DxI};
eE.prototype.getExtension=function(Y){return _.v(Y,qV9)};
eE.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var pw=function(){};
_.P(pw,Ij);pw.prototype.getApiPaths=function(){return ocK};
pw.prototype.getExtension=function(Y){return _.v(Y,s_d)};
pw.prototype.JSC$11043_buildRequest=function(Y,b,w){b.params&&(Y.params=b.params);b.continuation&&(Y.continuation=b.continuation);w.currentPlayerState&&w.currentPlayerState.playerOffsetMs&&(Y.currentPlayerState={playerOffsetMs:w.currentPlayerState.playerOffsetMs.toString()})};var OF=function(){};
_.P(OF,Ij);OF.prototype.getApiPaths=function(){return Ic_};
OF.prototype.getExtension=function(Y){return _.v(Y,xko)};
OF.prototype.JSC$11043_buildRequest=function(Y,b,w){b.params&&(Y.params=b.params);w.continuation&&(Y.continuation=w.continuation);"hidden"in w&&(Y.webClientInfo={isDocumentHidden:w.hidden});w.isInvalidationTimeoutRequest&&(Y.isInvalidationTimeoutRequest=w.isInvalidationTimeoutRequest);w.invalidationPayload&&(b=hL9(_.c9(Vh(w.invalidationPayload))),Y.invalidationPayloadLastPublishAtUsec=rM(b,2));w.reloadActionPanel&&(Y.reloadActionPanel=w.reloadActionPanel);w.fullReload&&(Y.fullReload=w.fullReload);
w.currentPlayerState&&(Y.currentPlayerState=w.currentPlayerState)};var ta=function(){};
_.P(ta,Ij);ta.prototype.getApiPaths=function(){return OZr};
ta.prototype.getExtension=function(Y){return _.v(Y,Z1r)};
ta.prototype.JSC$11043_buildRequest=function(Y,b){Y.params=b.params};var Rc=function(){};
_.P(Rc,Ij);Rc.prototype.getApiPaths=function(){return mxr};
Rc.prototype.getExtension=function(Y){return _.v(Y,eA9)};
Rc.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var dZ=function(){};
_.P(dZ,Ij);dZ.prototype.getApiPaths=function(){return kW5};
dZ.prototype.getExtension=function(Y){return _.v(Y,pxQ)};
dZ.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var FS=function(){};
_.P(FS,Ij);FS.prototype.getApiPaths=function(){return tH$};
FS.prototype.getExtension=function(Y){return _.v(Y,n5r)};
FS.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var Lw=function(){};
_.P(Lw,Ij);Lw.prototype.getApiPaths=function(){return dxQ};
Lw.prototype.getExtension=function(Y){return _.v(Y,MOQ)};
Lw.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var SE=function(){};
_.P(SE,Ij);SE.prototype.getApiPaths=function(){return iZC};
SE.prototype.getExtension=function(Y){return _.v(Y,kSr)};
SE.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var ac=function(){};
_.P(ac,Ij);ac.prototype.getApiPaths=function(){return TWd};
ac.prototype.getExtension=function(Y){return _.v(Y,_.eL$)};
ac.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.params&&(Y.params=b.params);w.client_message_id&&(Y.clientMessageId=w.client_message_id);w.recaptcha_token&&(Y.recaptchaToken=w.recaptcha_token);w.rich_message&&w.rich_message.text_segments?(b=w.rich_message.text_segments.map(function(V){var H={};V.text&&(H.text=V.text);V.emoji_id&&(H.emojiId=V.emoji_id);return H}),Y.richMessage={textSegments:b}):w.message&&(Y.message=w.message);
w.currentPlayerState&&(Y.currentPlayerState=w.currentPlayerState)};var rZ=function(){};
_.P(rZ,Ij);rZ.prototype.getApiPaths=function(){return JWQ};
rZ.prototype.getExtension=function(Y){return _.v(Y,pV8)};
rZ.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var zc=function(){};
_.P(zc,Ij);zc.prototype.getApiPaths=function(){return wzU};
zc.prototype.getExtension=function(Y){return _.v(Y,tO9)};
zc.prototype.JSC$11043_buildRequest=function(Y,b,w){b.isUserInitiated&&(Y.isUserInitiated=b.isUserInitiated);b.initiationSource&&(Y.initiationSource=b.initiationSource);w.locationInfo&&(Y.context.client.locationInfo=w.locationInfo)};var W4=function(){};
_.P(W4,Ij);W4.prototype.getApiPaths=function(){return Rh8};
W4.prototype.getExtension=function(Y){return _.v(Y,MBt)};
W4.prototype.JSC$11043_buildRequest=function(Y,b,w){b.metadataUpdateRequest&&(b=b.metadataUpdateRequest,Y.encryptedVideoId=b.encryptedVideoId,b.liveChat&&(b=b.liveChat,Y.liveChat||(Y.liveChat={}),b.performAsExternalChannelId&&(Y.liveChat.performAsExternalChannelId=b.performAsExternalChannelId),b.source&&(Y.liveChat.source=b.source)));var V;if(w==null?0:(V=w.liveChat)==null?0:V.liveChatSettings)Y.liveChat||(Y.liveChat={}),w=w.liveChat.liveChatSettings,Y.liveChat.newLiveChatSettings=w,Y.liveChat.newLiveChatSettingsMask||
(Y.liveChat.newLiveChatSettingsMask={}),w.emojiReactionSet&&(Y.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Kw=function(){};
_.P(Kw,Ij);Kw.prototype.getApiPaths=function(){return Xz$};
Kw.prototype.getExtension=function(Y){return _.v(Y,_.Wyr)};
Kw.prototype.JSC$11043_buildRequest=function(Y,b,w){w.continuation?Y.continuation=w.continuation:b.videoId&&(Y.videoId=b.videoId);w.clientParams&&(Y.clientParams=w.clientParams)};var im=function(){};
_.P(im,Ij);im.prototype.getApiPaths=function(){return lcU};
im.prototype.getExtension=function(Y){return _.v(Y,_.S7)};
im.prototype.JSC$11043_buildRequest=function(Y,b){Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";Y.fetchCommentsParams={};b.videoId&&(Y.fetchCommentsParams.encryptedVideoId=b.videoId);b.postId&&(Y.fetchCommentsParams.postId=b.postId);b.externalChannelId&&(Y.fetchCommentsParams.externalChannelId=b.externalChannelId);b.linkedCommentId&&(Y.fetchCommentsParams.linkedCommentId=b.linkedCommentId);(0,_.BL.isEmpty)(Y.fetchCommentsParams)&&delete Y.fetchCommentsParams};var Aa=function(){};
_.P(Aa,Ij);Aa.prototype.getApiPaths=function(){return HK};
Aa.prototype.JSC$11043_buildRequest=function(Y){Y.browseId="FEnotifications_inbox"};
Aa.prototype.getExtension=function(Y){return _.v(Y,_.x7)};var Cw=function(){};
_.P(Cw,Ij);Cw.prototype.getApiPaths=function(){return lcU};
Cw.prototype.JSC$11043_buildRequest=function(Y,b){b.signal==="GET_NOTIFICATIONS_MENU"&&(Y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");b.ctoken&&(Y.ctoken=b.ctoken)};
var cDt=function(){};
_.P(cDt,Cw);cDt.prototype.getExtension=function(Y){return _.v(Y,_.x7)};
var U59=function(){};
_.P(U59,Cw);U59.prototype.getExtension=function(Y){return _.v(Y,XY$)};var yF=function(){};
_.P(yF,Ij);yF.prototype.getApiPaths=function(){return P48};
yF.prototype.getExtension=function(Y){return _.v(Y,_.x7)};
yF.prototype.JSC$11043_buildRequest=function(){};var $n=function(){};
_.P($n,Ij);$n.prototype.getApiPaths=function(){return Fgj};
$n.prototype.getExtension=function(Y){return _.v(Y,tw8)||void 0};
$n.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params);b.secondaryParams&&(Y.secondaryParams=b.secondaryParams)};var jE=function(){};
_.P(jE,Ij);jE.prototype.getApiPaths=function(){return Lgt};
jE.prototype.getExtension=function(Y){return _.v(Y,oWd)};
jE.prototype.JSC$11043_buildRequest=function(Y,b){b.undo&&(Y.undo=b.undo);b.serializedOptOut&&(Y.serializedOptOut=b.serializedOptOut);b.serializedRecordInteractionsRequest&&(Y.serializedRecordInteractionsRequest=b.serializedRecordInteractionsRequest)};var Gc=function(){};
_.P(Gc,Ij);Gc.prototype.getApiPaths=function(){return rWI};
Gc.prototype.getExtension=function(Y){return _.v(Y,I4I)};
Gc.prototype.JSC$11043_buildRequest=function(Y,b){b.serializedInteractionsRequest&&(Y.serializedRecordNotificationInteractionsRequest=b.serializedInteractionsRequest)};var Tc=function(){};
_.P(Tc,Ij);Tc.prototype.getApiPaths=function(){return vTg};
Tc.prototype.getExtension=function(Y){return _.v(Y,Boa)};
Tc.prototype.JSC$11043_buildRequest=function(Y,b,w){b=b===void 0?{}:b;w=w===void 0?{}:w;b.videoId?Y.videoId=b.videoId:b.playlistId&&(Y.playlistId=b.playlistId);var V,H=(V=b.offlineWebClientEligibility)!=null?V:w.offlineWebClientEligibility;H&&(Y.offlineWebClientEligibility=H);var f;if(V=(f=b.preferredFormatType)!=null?f:w.preferredFormatType)Y.preferredFormatType=V;var E;if(f=(E=b.lastOfflineQualitySettingsSavedMs)!=null?E:w.lastOfflineQualitySettingsSavedMs)Y.lastOfflineQualitySettingsSavedMs=f;
b.params&&(Y.params=b.params)};var Ja=function(){};
_.P(Ja,Ij);Ja.prototype.getApiPaths=function(){return by};
Ja.prototype.getExtension=function(Y){return _.v(Y,_.Wb)};
Ja.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.token&&(Y.continuation=b.token);w.formData&&(Y.formData=w.formData)};var um=function(){};
_.P(um,Ij);um.prototype.getApiPaths=function(){return by};
um.prototype.getExtension=function(Y){return _.v(Y,QBU)};
um.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;Y.continuation=w.continuation};var Yf=function(){};
_.P(Yf,Ij);Yf.prototype.getApiPaths=function(){return by};
Yf.prototype.getExtension=function(Y){return _.v(Y,_.SZ)};
Yf.prototype.JSC$11043_buildRequest=function(Y,b){var w,V=b.panelIdentifier||((w=b.identifier)==null?void 0:w.tag);V&&(Y.panelId=V);var H;if((H=b.globalConfiguration)==null?0:H.params){var f;Y.params=(f=b.globalConfiguration)==null?void 0:f.params}};
_.up.Object.defineProperties(Yf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bE=function(){};
_.P(bE,Ij);bE.prototype.getApiPaths=function(){return by};
bE.prototype.getExtension=function(Y){return _.v(Y,fdj)};
bE.prototype.JSC$11043_buildRequest=function(Y,b){b.panelLoadingStrategy&&x3K(Y,b.panelLoadingStrategy)};var w4=function(){};
_.P(w4,Ij);w4.prototype.getApiPaths=function(){return by};
w4.prototype.getExtension=function(Y){return _.v(Y,Bfd)};
w4.prototype.JSC$11043_buildRequest=function(Y,b){b.loadingStrategy&&x3K(Y,b.loadingStrategy)};var VL=function(){};
_.P(VL,Ij);VL.prototype.getApiPaths=function(){return by};
VL.prototype.getExtension=function(Y){return _.v(Y,_.sH)};
VL.prototype.JSC$11043_buildRequest=function(Y,b){b.panelLoadingStrategy&&x3K(Y,b.panelLoadingStrategy)};var Hu=function(){};
_.P(Hu,Ij);Hu.prototype.getApiPaths=function(){return by};
Hu.prototype.getExtension=function(Y){return _.v(Y,nWd)};
Hu.prototype.JSC$11043_buildRequest=function(Y,b){var w,V=(w=b.contentSourcePanelIdentifier)==null?void 0:w.tag;V&&(Y.panelId=V);var H;if((H=b.globalConfiguration)==null?0:H.params){var f;Y.params=(f=b.globalConfiguration)==null?void 0:f.params}};var g4=function(){};
_.P(g4,Ij);g4.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
g4.prototype.getExtension=function(Y){return _.v(Y,MfQ)};
g4.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var f0=function(){};
_.P(f0,Ij);f0.prototype.getApiPaths=function(){return US$};
f0.prototype.getExtension=function(Y){return _.v(Y,O9r)};
f0.prototype.JSC$11043_buildRequest=function(Y,b){b.externalChannelId&&(Y.externalChannelId=b.externalChannelId);b.superChatAction&&(Y.superChatAction=b.superChatAction);b.superStickersAction&&(Y.superStickersAction=b.superStickersAction)};var NJ=function(){};
_.P(NJ,Ij);NJ.prototype.getApiPaths=function(){return Ec8};
NJ.prototype.getExtension=function(Y){return _.v(Y,sO8)||_.v(Y,MeL)};
NJ.prototype.JSC$11043_buildRequest=function(Y,b){b.videoIds?Y.videoIds=b.videoIds:b.videoId&&(Y.videoIds=[b.videoId]);b.playlistId&&(Y.playlistId=b.playlistId);b.params&&(Y.params=b.params);Y.excludeWatchLater=!1};var EA=function(){};
_.P(EA,Ij);EA.prototype.getApiPaths=function(){return J4U};
EA.prototype.getExtension=function(Y){return _.v(Y,_.AI)};
EA.prototype.JSC$11043_buildRequest=function(Y,b,w){w.create_playlist_title?Y.title=w.create_playlist_title:b.title&&(Y.title=b.title);if(w.create_playlist_privacy_status&&typeof w.create_playlist_privacy_status==="number"){a:{var V=w.create_playlist_privacy_status;if(V!==0){if(V===1){V="PUBLIC";break a}if(V===2){V="UNLISTED";break a}}V="PRIVATE"}Y.privacyStatus=V}else b.privacyStatus&&(Y.privacyStatus=b.privacyStatus);w.create_playlist_description&&(Y.description=w.create_playlist_description);b.videoIds&&
(Y.videoIds=b.videoIds);b.params&&(Y.params=b.params);b.sourcePlaylistId&&(Y.sourcePlaylistId=b.sourcePlaylistId)};var cu=function(){};
_.P(cu,Ij);cu.prototype.getApiPaths=function(){return bZt};
cu.prototype.getExtension=function(Y){return _.v(Y,pqo)};
cu.prototype.JSC$11043_buildRequest=function(Y,b){Y.playlistId=b.playlistId};var UA=function(){};
_.P(UA,Ij);UA.prototype.getApiPaths=function(){return hhj};
UA.prototype.getExtension=function(Y){return _.v(Y,EW9)};
UA.prototype.JSC$11043_buildRequest=function(Y,b){b.playlistId&&(Y.playlistId=b.playlistId);b.params&&(Y.params=b.params)};var Xn=function(){};
_.P(Xn,Ij);Xn.prototype.getApiPaths=function(){return ack};
Xn.prototype.getExtension=function(Y){return _.v(Y,_.aU)||void 0};
Xn.prototype.JSC$11043_buildRequest=function(Y,b){b.actions&&(Y.actions=b.actions);b.params&&(Y.params=b.params);b.playlistId&&(Y.playlistId=b.playlistId)};var DV=function(){};
_.P(DV,Ij);_.g=DV.prototype;_.g.getApiPaths=function(){return zh_};
_.g.getExtension=function(Y){return _.v(Y,_.BH)};
_.g.JSC$11043_buildRequest=function(Y,b){b.videoId&&(Y.playerRequest={videoId:b.videoId},b.playerParams&&(Y.playerRequest.params=b.playerParams),b.racyCheckOk&&(Y.playerRequest.racyCheckOk=!!b.racyCheckOk),b.contentCheckOk&&(Y.playerRequest.contentCheckOk=!!b.contentCheckOk));b.params&&(Y.params=b.params);b.inputType&&(Y.inputType=b.inputType);Y.disablePlayerResponse=!0};
_.g.getRequestConfig=function(Y){var b;(Y=this.JSC$11050_getStoreKey(Y))&&(b={storeStrategy:{storeKey:Y}});_.q("web_log_reels_ticks")&&(b=b||{},b.requestTick="r_wrs",b.responseTick="r_wrr");return b};
_.g.JSC$11050_getStoreKey=function(Y){Y=this.getExtension(Y);if(_.q("shorts_controller_retrieve_seedless_sequence_v2")){if((Y==null?void 0:Y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.GG("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.q("web_prefetch_riw_for_next_video")||_.q("web_shorts_prefetch_service_enabled"))&&Y!=null&&Y.videoId){var b={videoId:Y.videoId};Y.params&&(b.params=Y.params);return _.GG("reel_item_watch",b)}};var mY=function(){};
_.P(mY,Ij);_.g=mY.prototype;_.g.getApiPaths=function(){return Wgd};
_.g.getExtension=function(Y){return _.v(Y,_.BH)};
_.g.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;Y.sequenceParams=b.sequenceParams;var V;((V=w)==null?0:V.contentPlaybackContext)&&_.q("web_shorts_prefetch_service_enabled")&&(Y.playbackContext={contentPlaybackContext:w.contentPlaybackContext})};
_.g.JSC$11050_getStoreKey=function(Y){if(_.q("shorts_controller_retrieve_seedless_sequence_v2")&&(Y=this.getExtension(Y),Y==null?0:Y.sequenceParams))return _.GG("reel_watch_sequence",{sequenceParams:Y.sequenceParams})};
_.g.getRequestConfig=function(Y){Y=this.JSC$11050_getStoreKey(Y);var b;Y&&(b={storeStrategy:{storeKey:Y}});_.q("reel_watch_sequence_request_log_ticks")&&(b=b||{},b.requestTick="r_wsrs",b.responseTick="r_wsrr",b.processorTick="r_wsrp");return b};
var oD=function(){};
_.P(oD,Ij);oD.prototype.getApiPaths=function(){return Wgd};
oD.prototype.getExtension=function(Y){return _.v(Y,_.Wb)};
oD.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.token&&(Y.continuation=b.token);var V;((V=w)==null?0:V.contentPlaybackContext)&&_.q("web_shorts_prefetch_service_enabled")&&(Y.playbackContext={contentPlaybackContext:w.contentPlaybackContext})};
oD.prototype.getRequestConfig=function(Y){Y=this.JSC$11050_getStoreKey(Y);var b;Y&&(b={storeStrategy:{storeKey:Y}});_.q("reel_watch_sequence_request_log_ticks")&&(b=b||{},b.requestTick="r_wsrs",b.responseTick="r_wsrr",b.processorTick="r_wsrp");return b};var ID=function(){};
_.P(ID,Ij);ID.prototype.getApiPaths=function(){return gco};
ID.prototype.getExtension=function(Y){return _.v(Y,_.SI9)};
ID.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.flagAction&&(Y.action=b.flagAction);b.flagRequestType&&(Y.flagRequestType=b.flagRequestType);b.additionalDetailCheckboxChecked&&(Y.additionalDetailCheckboxChecked=b.additionalDetailCheckboxChecked);b.legalCheckboxChecked&&(Y.legalCheckboxChecked=b.legalCheckboxChecked);b={};w.flag_issue_type!==void 0&&(b.issue=w.flag_issue_type);w.flag_affiliation!==void 0&&(b.affiliation=w.flag_affiliation);w.flag_full_name&&(b.fullName=w.flag_full_name);
Object.keys(b).length&&(Y.legalReportDetails=b);if(w.flag_description||w.text)Y.userComments=w.flag_description||w.text;b={};w.minutes!==void 0&&w.seconds!==void 0&&(b.minutes=w.minutes,b.seconds=w.seconds);w.vss_id&&(b.vssId=w.vss_id);Object.keys(b).length&&(Y.videoReportDetails=b);b={};w.video_ids&&(b.videoIds=w.video_ids);w.impersonated_channel_url&&(b.impersonatedChannelUrl=w.impersonated_channel_url);Object.keys(b).length&&(Y.channelAbuseReportDetails=b)};
_.up.Object.defineProperties(ID.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kf=function(){};
_.P(kf,Ij);kf.prototype.getApiPaths=function(){return X5$};
kf.prototype.getExtension=function(Y){return _.v(Y,UkU)};
kf.prototype.JSC$11043_buildRequest=function(Y,b){b.blockedForKidsContent&&(Y.blockedForKidsContent=b.blockedForKidsContent)};var lE=function(){};
_.P(lE,Ij);lE.prototype.getApiPaths=function(){return AW$};
lE.prototype.getExtension=function(Y){return _.v(Y,nRa)};
lE.prototype.JSC$11043_buildRequest=function(Y,b,w){Y.params=b.params;w.impersonated_channel_url&&(Y.impersonatedChannelUrl=w.impersonated_channel_url)};var h$=function(){};
_.P(h$,Ij);h$.prototype.getApiPaths=function(){return ehQ};
h$.prototype.getExtension=function(Y){return _.v(Y,_.XV5)};
h$.prototype.JSC$11043_buildRequest=function(Y,b){b.items&&(Y.items=b.items);b.kidGaiaId&&(Y.kidGaiaId=b.kidGaiaId)};var xf=function(){};
_.P(xf,Ij);xf.prototype.getApiPaths=function(){return cWr};
xf.prototype.getExtension=function(Y){return _.v(Y,_.xwd)};
xf.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params);b.targetId&&(Y.targetId=b.targetId)};var qJ=function(){};
_.P(qJ,Ij);qJ.prototype.getApiPaths=function(){return jjC};
qJ.prototype.getExtension=function(Y){return _.v(Y,DhC)};
qJ.prototype.JSC$11043_buildRequest=function(Y,b){b.externalVideoId&&(Y.externalVideoId=b.externalVideoId);b.query&&(Y.query=b.query);b.sourceTimelines&&(Y.sourceTimelines=b.sourceTimelines)};var sA=function(){};
_.P(sA,Ij);sA.prototype.getApiPaths=function(){return GWj};
sA.prototype.getExtension=function(Y){return _.v(Y,_.Wb)||void 0};
sA.prototype.JSC$11043_buildRequest=function(Y,b){b.token&&(Y.continuation=b.token)};
_.XFo=function(){};
_.P(_.XFo,Ij);_.g=_.XFo.prototype;_.g.getApiPaths=function(){return GWj};
_.g.getExtension=function(Y){return _.v(Y,_.vH)||void 0};
_.g.isNavigationCommand=function(){return!0};
_.g.JSC$11050_getStoreKey=function(Y,b){b=b===void 0?{}:b;if(!b.disableCache&&(Y=this.getExtension(Y))&&Y.query)return b={query:Y.query},Y.params&&(b.params=Y.params),_.GG("search",b)};
_.g.JSC$11043_buildRequest=function(Y,b,w){b.query&&(Y.query=b.query);b.params&&(Y.params=b.params);if(!_.q("web_forward_suggest_stats_killswitch")){var V=_.v(b,b9d);V&&(Y.suggestStats=V)}var H;!_.q("kevlar_searchbox_stats_killswitch")&&((H=w.tempData)==null?0:H.gs_l)&&!_.v(b,b9d)&&(Y.webSearchboxStatsUrl="/search?oq="+(w.tempData.oq||"")+"&gs_l="+w.tempData.gs_l);var f;if((f=w.tempData)==null?0:f.entityMid)b=Y.suggestionSearchParams||{},b.entityMid=w.tempData.entityMid,Y.suggestionSearchParams=b};
_.g.getRequestConfig=function(Y,b){b=b===void 0?{}:b;Y=this.JSC$11050_getStoreKey(Y,b);var w;Y&&(w={storeStrategy:{storeKey:Y}});_.q("web_log_search_ticks_ks")||(w=w||{},w.requestTick="sr_s",w.responseTick="sr_r");return w};var QL=function(){};
_.P(QL,Ij);QL.prototype.getApiPaths=function(){return Qj9};
QL.prototype.getExtension=function(Y){return _.v(Y,yx$)};
QL.prototype.JSC$11043_buildRequest=function(Y,b){b.serializedGetSharingProviderDataParams&&(Y.serializedGetSharingProviderDataParams=b.serializedGetSharingProviderDataParams)};var vu=function(){};
_.P(vu,Ij);vu.prototype.getApiPaths=function(){return vcI};
vu.prototype.getExtension=function(Y){return _.v(Y,txr)};
vu.prototype.JSC$11043_buildRequest=function(Y,b){b.endpoint&&(Y.endpoint=b.endpoint);b.action&&(Y.action=b.action)};var Pu=function(){};
_.P(Pu,Ij);Pu.prototype.getApiPaths=function(){return w5I};
Pu.prototype.getExtension=function(Y){return _.v(Y,Oy9)};
Pu.prototype.JSC$11043_buildRequest=function(Y,b){Y.videoId=b.videoId;b.scheduledRedirectMetadataSourceVideoId&&(Y.scheduledRedirectMetadata={sourceVideoId:b.scheduledRedirectMetadataSourceVideoId})};var ZV=function(){};
_.P(ZV,Ij);ZV.prototype.getApiPaths=function(){return YSj};
ZV.prototype.getExtension=function(Y){return _.v(Y,_.M7o)};
ZV.prototype.JSC$11043_buildRequest=function(Y,b){Y.params=b.params;Y.correctionText=b.correctionText};var Bu=function(){};
_.P(Bu,Ij);Bu.prototype.getApiPaths=function(){return sNg};
Bu.prototype.getExtension=function(Y){return _.v(Y,_.mht)};
Bu.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params);Y.searchQuery=b.searchQuery;Y.languageCode=b.languageCode;Y.kind=b.kind;Y.name=b.name;Y.externalVideoId=b.externalVideoId};var n0=function(){};
_.P(n0,Ij);n0.prototype.getApiPaths=function(){return Iij};
n0.prototype.getExtension=function(Y){return _.v(Y,Ksj)};
n0.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.params=b.params)};var MJ=function(Y){this.JSC$16001_storeWithEntities=Y};
_.P(MJ,Ij);MJ.prototype.getApiPaths=function(){return A4C};
MJ.prototype.getExtension=function(Y){return _.v(Y,AI8)||_.v(Y,yIU)};
MJ.prototype.JSC$11043_buildRequest=function(Y,b,w){w.client_data&&(Y.clientData=w.client_data);if(b.commerceActionConfig){var V=b.commerceActionConfig;b=V.actionId;V=V.commerceActionParams;b&&(Y.actionId=b);V&&(Y.commerceActionParams=V)}else{var H=b.actionId,f=b.commerceActionParams;w=b.entityKeys;H&&(Y.actionId=H);f&&(Y.commerceActionParams=f);var E;b=(V=this.JSC$16001_storeWithEntities)==null?void 0:(E=V.getState())==null?void 0:E.entities;if(w&&b){V=[];E=_.N(w);for(w=E.next();!w.done;w=E.next())if(H=
w.value,w=_.D7(H).entityType,H=_.kt(b,w,H))f={},V.push((f[w]=H,f));Y.entityMutationPayloads=V}}};
MJ.prototype.getRequestConfig=function(Y){var b,w=(b=_.v(Y,AI8))==null?void 0:b.requestSequenceType;if(w&&Y.clickTrackingParams&&w!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:Y.clickTrackingParams,sequenceType:w}}};
MJ[VS]=[oM];var eT=function(){};
_.P(eT,Ij);eT.prototype.getApiPaths=function(){return kpQ};
eT.prototype.getExtension=function(Y){return _.v(Y,_.XBt)};
eT.prototype.JSC$11043_buildRequest=function(Y,b){b.feedbackData&&(Y.feedbackData=b.feedbackData);b.params&&(Y.itemParams=b.params)};
_.up.Object.defineProperties(eT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var p0=function(){};
_.P(p0,Ij);p0.prototype.getApiPaths=function(){return li9};
p0.prototype.getExtension=function(Y){return _.v(Y,DP5)};
p0.prototype.JSC$11043_buildRequest=function(Y,b,w){w.payments_payload&&(Y.paymentsPayload=w.payments_payload);w.offer_params&&(Y.offerParams=w.offer_params);b.transactionParams&&(Y.transactionParams=b.transactionParams)};var OA=function(){};
_.P(OA,Ij);OA.prototype.getApiPaths=function(){return hKU};
OA.prototype.getExtension=function(Y){return _.v(Y,_.mPd)};
OA.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.buybucketParams&&(Y.buybucketData={params:b.buybucketParams},b.stickerParams?Y.buybucketData.stickerParams=b.stickerParams:(w.rich_chat_message?Y.buybucketData.richChatMessage=w.rich_chat_message:w.chat_message_text&&(Y.buybucketData.chatMessageText=w.chat_message_text),w.purchase_price_micros&&(Y.buybucketData.purchasePriceMicros=w.purchase_price_micros.toString())));b.donationAmountMicros&&(Y.tipAmountMicros=b.donationAmountMicros,
b.tipParams&&(Y.tipParams=b.tipParams));b.offerParams&&(Y.offerParams=b.offerParams);b.productData&&(Y.productData=b.productData);b.transactionParams&&(Y.transactionParams=b.transactionParams)};var t$=function(){};
_.P(t$,Ij);t$.prototype.getApiPaths=function(){return xSK};
t$.prototype.getExtension=function(Y){return _.v(Y,kFt)};
t$.prototype.JSC$11043_buildRequest=function(Y,b){b.updateFopParams&&(Y.updateFopParams=b.updateFopParams)};var RD=function(){};
_.P(RD,Ij);RD.prototype.getApiPaths=function(){return qSt};
RD.prototype.getExtension=function(Y){return _.v(Y,_.cT)};
RD.prototype.JSC$11043_buildRequest=function(Y,b){b.couponCode&&(Y.couponCode=b.couponCode);b.params&&(Y.itemParams=b.params)};var d4=function(){};
_.P(d4,Ij);d4.prototype.getApiPaths=function(){return sG_};
d4.prototype.getExtension=function(Y){return _.v(Y,_.CGj)};
d4.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;b.params&&(Y.params=b.params);w.ctk&&(Y.clientToken=w.ctk)};var Fn=function(Y){this.JSC$16036_storeWithEntities=Y};
_.P(Fn,Ij);Fn.prototype.getApiPaths=function(){return QG9};
Fn.prototype.getExtension=function(Y){return _.v(Y,_.yQ)};
Fn.prototype.JSC$11043_buildRequest=function(Y,b,w){w.purchase_price_micros&&(Y.productData={pdgData:{purchasePriceMicros:w.purchase_price_micros.toString()}},w.rich_chat_message&&(Y.productData.pdgData.richChatMessage=w.rich_chat_message),w.currency_code&&(Y.productData.pdgData.currencyCode=w.currency_code));b.transactionParams&&(Y.transactionParams=b.transactionParams);b.clientLocationContext&&(Y.clientLocationContext=b.clientLocationContext);w.payments_payload&&(Y.paymentsPayload=w.payments_payload);
w.funds_guarantee_callback_client_data&&(Y.fundsGuaranteeCallbackClientData=w.funds_guarantee_callback_client_data);var V,H;w=(V=this.JSC$16036_storeWithEntities)==null?void 0:(H=V.getState())==null?void 0:H.entities;if(b.entityKeys&&w){V=[];b=_.N(b.entityKeys);for(H=b.next();!H.done;H=b.next()){var f=H.value;H=_.D7(f).entityType;if(f=_.kt(w,H,f)){var E={};V.push((E[H]=f,E))}}Y.entityMutationPayloads=V}};
Fn[VS]=[oM];var L0=function(){};
_.P(L0,Ij);L0.prototype.getApiPaths=function(){return vXr};
L0.prototype.getExtension=function(Y){return _.v(Y,oVd)};
L0.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;w.backend_analytics&&(Y.serializedBackendAnalyticsEvent=w.backend_analytics);b.offerParams&&(Y.offerParams=b.offerParams)};var ST=function(){};
_.P(ST,Ij);ST.prototype.getApiPaths=function(){return qSt};
ST.prototype.getExtension=function(Y){return _.v(Y,ING)};
ST.prototype.JSC$11043_buildRequest=function(Y,b){b.params&&(Y.itemParams=b.params)};var aD=function(){};
_.P(aD,Ij);aD.prototype.getApiPaths=function(){return P$k};
aD.prototype.getExtension=function(Y){return _.v(Y,_.JIj)};
aD.prototype.JSC$11043_buildRequest=function(Y,b,w){w.resume_time_ms&&(Y.resumeTimeMs=w.resume_time_ms);b.pauseParams&&(Y.pauseParams=b.pauseParams)};var r4=function(){};
_.P(r4,Ij);r4.prototype.getApiPaths=function(){return ZnQ};
r4.prototype.getExtension=function(Y){return _.v(Y,_.IC$)};
r4.prototype.JSC$11043_buildRequest=function(Y,b,w){w=w===void 0?{}:w;w.c&&(Y.redeemCode=w.c);w.rd&&(Y.riskData=w.rd);w.ctk&&(Y.clientToken=w.ctk)};var z4=function(){};
_.P(z4,Ij);z4.prototype.getApiPaths=function(){return B9j};
z4.prototype.getExtension=function(Y){return _.v(Y,_.uK_)};
z4.prototype.JSC$11043_buildRequest=function(Y,b){b.resumeParams&&(Y.resumeParams=b.resumeParams)};var Wu=function(Y,b){this.clientName=Y;this.defaultExpirationDelayMs=b};
Wu.prototype.put=function(Y,b){var w=this,V;return _.c(function(H){V=Object.assign({},b.data);V.key=Y;V.clientName=w.clientName;V.expireTimestampMs===void 0&&(V.expireTimestampMs=(Math.round((0,_.gG)())+w.defaultExpirationDelayMs).toString());return H.return(w.putInternal(Y,V))})};
Wu[VS]=[hi,Zt9];var D5K=function(){Wu.apply(this,arguments);this.JSC$16066_responseStore=new Map};
_.P(D5K,Wu);_.g=D5K.prototype;_.g.get=function(Y){var b=this;return _.c(function(w){return w.return(Xs(b,Y))})};
_.g.putInternal=function(Y,b){var w=this,V,H,f;return _.c(function(E){V=w.defaultExpirationDelayMs;b.expireTimestampMs&&(V=Number(b.expireTimestampMs)-Math.round((0,_.gG)()),H=_.cQ("mweb_override_response_store_expiration_ms"),H>0&&H<V&&(V=H));f=setTimeout(function(){w.remove(Y)},V);
w.JSC$16066_responseStore.set(Y,{entryData:b,timer:f});_.om(E)})};
_.g.remove=function(Y){var b=this;return _.c(function(w){m5r(b,Y);_.om(w)})};
_.g.removeAll=function(){var Y=this;return _.c(function(b){Y.JSC$16066_responseStore.forEach(function(w){clearTimeout(w.timer)});
Y.JSC$16066_responseStore.clear();_.om(b)})};
_.g.has=function(Y){return!!this.JSC$16066_responseStore.get(Y)};
_.g.getKeys=function(){return this.JSC$16066_responseStore.keys()};
var Xs=function(Y,b){if(Y=Y.JSC$16066_responseStore.get(b))return new _.Ue(Y.entryData)},m5r=function(Y,b){var w=Y.JSC$16066_responseStore.get(b);
w&&(clearTimeout(w.timer),Y.JSC$16066_responseStore.delete(b))};var qhG;var vqa=function(Y,b,w){Wu.call(this,Y,b);this.token=w};
_.P(vqa,Wu);_.g=vqa.prototype;_.g.get=function(Y){var b=this,w,V;return _.c(function(H){return H.nextAddress==1?_.D(H,Q0G(b.token),2):H.nextAddress!=3?(w=H.yieldResult,_.D(H,w.get("ResponseStore",[Y,b.clientName]),3)):(V=H.yieldResult)?H.return(new _.Ue(V)):H.return(void 0)})};
_.g.putInternal=function(Y,b){var w=this,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,Q0G(w.token),2);V=H.yieldResult;return _.D(H,V.put("ResponseStore",b),0)})};
_.g.remove=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Q0G(b.token),2);w=V.yieldResult;return V.return(w.delete("ResponseStore",[Y,b.clientName]))})};
_.g.removeAll=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Q0G(Y.token),2);b=w.yieldResult;return _.D(w,I9d(b,IDBKeyRange.only(Y.clientName)),0)})};
_.g.has=function(){throw Error("Xi");};_.K0=new _.Hx("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var oBU=function(Y){var b;this.stateTagsData=(b=Y.responseContext)==null?void 0:b.stateTags},I3U=function(Y){var b;
return((b=Y.stateTagsData)==null?void 0:b.stateTagsModified)||[]};var ka_;ka_=function(Y){this.JSC$16079_responseStore=Y};
_.Gi=function(Y,b,w){if(!_.q("state_tags_killswitch")){var V=new oBU(b);if(I3U(V).length>0){var H=Y.JSC$16079_responseStore.getKeys();H=_.N(H);for(var f=H.next();!f.done;f=H.next()){f=f.value;var E=Xs(Y.JSC$16079_responseStore,f);if(E){var U=_.Dz(E);a:{var X=void 0;E=I3U(V);U=((X=(new oBU(U)).stateTagsData)==null?void 0:X.relevantStateTags)||[];X=_.N(U);for(U=X.next();!U.done;U=X.next())if(U=U.value,U.stateTag!=null&&E.includes(U.stateTag)&&U.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){E=
!0;break a}E=!1}E&&m5r(Y.JSC$16079_responseStore,f)}}}}var I;V=(I=b.responseContext)==null?void 0:I.maxAgeSeconds;_.q("web_prefetch_riw_for_next_video")&&!V&&b.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(V=3600);w&&V&&Number(V)>0&&(b=UH(b,V),Y.JSC$16079_responseStore.put(w,new _.Ue(b)))};
ka_.prototype.handleResponse=function(Y,b){if(!b)throw Error("Yi");var w,V;b=(w=b.config)==null?void 0:(V=w.storeStrategy)==null?void 0:V.storeKey;_.Gi(this,Y,b)};
ka_[VS]=[_.cR];_.hDt=new _.Hx("STORE_RESPONSE_PROCESSOR_TOKEN");var l3d=function(Y){this.JSC$16082_responseStore=Y};
l3d.prototype.handleResponse=function(Y,b){if(b.input.match(_.Yy(Wgd))){var w;if(Y==null?0:(w=Y.entries)==null?0:w.length)for(Y=_.N(Y.entries),b=Y.next();!b.done;b=Y.next()){w=b.value.command;var V=void 0;b=(V=_.v(w,_.BH))==null?void 0:V.unserializedPrefetchData;if(!w||!b)break;V=(new DV).JSC$11050_getStoreKey(w);var H=_.v(b,Vw8),f=void 0,E=void 0,U=void 0,X=_.cQ("web_shorts_prefetch_service_ttl_seconds")>0?_.cQ("web_shorts_prefetch_service_ttl_seconds"):Number((U=(f=H)==null?void 0:(E=f.responseContext)==
null?void 0:E.maxAgeSeconds)!=null?U:3600);V&&X>0&&(H=UH(H,X),this.JSC$16082_responseStore.put(V,new _.Ue(H)));w=(new qx).JSC$11050_getStoreKey(w);b=_.v(b,zAd);f=H=V=void 0;E=_.cQ("web_shorts_prefetch_service_ttl_seconds")>0?_.cQ("web_shorts_prefetch_service_ttl_seconds"):Number((f=(V=b)==null?void 0:(H=V.responseContext)==null?void 0:H.maxAgeSeconds)!=null?f:3600);w&&E>0&&(b=UH(b,E),this.JSC$16082_responseStore.put(w,new _.Ue(b)))}}};
l3d[VS]=[_.cR];var hIC=function(Y){this.innertubeTransportService=Y};
hIC[VS]=[_.Sy];var x5U=new _.Hx("SUBMIT_API_SERVICE_TOKEN");var iE=function(){this.scheduler=_.dp()},qsK;
iE.prototype.pause=function(){throw Error("Zi");};
iE.prototype.resume=function(){throw Error("Zi");};
iE.prototype.queue=function(Y){var b=this,w=_.j9(),V=_.MY(this.scheduler,function(){try{var H;if(_.l8.instance)var f=_.l8.instance;else{var E=new _.BQ("Error: Unexpected uninitialized CommandHandler.");_.Ft(E);f=void 0}(H=f)==null||H.resolveCommand(Y.command);w.resolve()}catch(U){w.reject(U)}});
w.promise.thenCatch(function(H){H instanceof _.GL&&b.scheduler.cancelJob(V)});
return w.promise};
iE.prototype.queueAll=function(Y){var b=new Map;Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=w.value,b.set(w.id,this.queue(w));return b};var QZ$=function(Y,b){var w=this;this.taskModel=Y;this.onTaskCancelledCallback=b;this.resolver=_.j9();Y=Y.proto.prefetchConfig;if(!Y)throw Error("$i");if(!Y.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(V){V instanceof _.GL&&(sZC(w,w.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),w.onTaskCancelledCallback(w.taskModel.id,w.jobId),w.tick("pcc"));
throw V;});
this.timerName=this.taskModel.id;_.Lz(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},vBd=function(Y){switch(Y.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},sZC=function(Y,b){_.Fx({prefetchInfo:{cancellationReason:b}},Y.timerName)};
QZ$.prototype.tick=function(Y){_.S1(Y,void 0,this.timerName)};var C0=function(){var Y=this;this.scheduler=_.dp();this.maxInflightTasks=_.cQ("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.cQ("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new LD9;this.onTaskCancelled=function(b,w){w&&Y.scheduler.cancelJob(w);PtI(Y,b);A$(Y,3)}},ZTK=function(){C0.instance||(C0.instance=new C0);
return C0.instance};
C0.prototype.pause=function(){this.prefetchCoordinatorState=0};
C0.prototype.resume=function(){A$(this,0)};
C0.prototype.queue=function(Y){Y=B6$(this,Y);A$(this,1);return Y};
C0.prototype.queueAll=function(Y){var b=new Map;Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=w.value,b.set(w.id,B6$(this,w));A$(this,1);return b};
var B6$=function(Y,b){var w=Y.allPrefetchTasks.get(b.id);if(w)return w.cancellablePromise;try{var V=new QZ$(b,Y.onTaskCancelled)}catch(f){return _.OQ(f)}w=V;w.tick("pcq");var H={prefetchInfo:{taskId:w.taskModel.id,isPrefetch:!0,fetchAction:w.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:w.taskModel.command.clickTrackingParams}};w.taskModel.csn&&(H.clientScreenNonce=w.taskModel.csn);_.Fx(H,w.timerName);Y.allPrefetchTasks.set(b.id,V);Y.drainingHeap.insert(-vBd(V),V);return V.cancellablePromise},
A$=function(Y,b){Y.prefetchCoordinatorState===b&&(Y.prefetchCoordinatorState=2,nBk(Y))},nBk=function(Y){for(var b={};Y.prefetchCoordinatorState!==0;b={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(Y.inflightPrefetchTasks.size>=Y.maxInflightTasks){Y.prefetchCoordinatorState=3;break}b.prefetchTask$jscomp$1=Y.drainingHeap.remove();if(!b.prefetchTask$jscomp$1){Y.prefetchCoordinatorState=1;break}b.taskId$jscomp$3=b.prefetchTask$jscomp$1.taskModel.id;if(Y.allPrefetchTasks.has(b.taskId$jscomp$3)){var w=-1;Y.coordinatorTimeoutMs>0&&(w=_.MY(Y.scheduler,function(V){return function(){yL(Y,V.taskId$jscomp$3,Error("bj"))}}(b),Y.coordinatorTimeoutMs));
Y.inflightPrefetchTasks.set(b.taskId$jscomp$3,w);if(!Y.JSC$16100_commandHandler){if(!_.l8.instance){yL(Y,b.taskId$jscomp$3,Error("cj"));continue}Y.JSC$16100_commandHandler=_.l8.instance}a:switch(b.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":w=1;break a;default:w=0}b.prefetchTask$jscomp$1.jobId=Y.scheduler.addJob(function(V){return function(){V.prefetchTask$jscomp$1.tick("pcr");try{Y.JSC$16100_commandHandler.resolveCommand(V.prefetchTask$jscomp$1.taskModel.command)||
yL(Y,V.taskId$jscomp$3,Error("dj"))}catch(H){yL(Y,V.taskId$jscomp$3,H)}}}(b),w,0)}}},MA8=function(Y,b){(b=PtI(Y,b))!=null&&(b.resolver.resolve(),b.tick("pce"));
A$(Y,3)},yL=function(Y,b,w){(b=PtI(Y,b,w))!=null&&(b.resolver.reject(w),b.tick("pcc"),sZC(b,"CANCELLATION_REASON_ERROR"),Math.random()<=_.cQ("prefetch_coordinator_error_logging_sampling_rate")&&(w=new _.BQ("Prefetch Command failed.",b.taskModel.id,w.message),_.Ft(w)));
A$(Y,3)},PtI=function(Y,b,w){var V=Y.allPrefetchTasks.get(b);
V?((w=Y.inflightPrefetchTasks.get(b))&&w!==-1&&Y.scheduler.cancelJob(w),Y.inflightPrefetchTasks.delete(b),Y.allPrefetchTasks.delete(b)):_.Sk(new _.BQ("Unexpected missing prefetch task when deleting task.",b,w==null?void 0:w.message));return V};var eIo=function(Y,b,w,V,H){this.id=Y;this.triggerOn=b;this.cancelOn=w;this.command=V;this.proto=H};
_.up.Object.defineProperties(eIo.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var pF_=function(){this.JSC$16105_prefetchCoordinator=ZTK();qsK||(qsK=new iE);this.defaultCoordinator=qsK},OTj;
pF_.getInstance=function(){OTj||(OTj=new pF_);return OTj};
pF_.prototype.get=function(Y){switch(Y){case 0:return this.JSC$16105_prefetchCoordinator;default:return this.defaultCoordinator}};var $f=function(){this.coordinatorSupplier=pF_.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},d5t=function(Y){var b=_.dO()||void 0,w=Object.keys(tAk)[0];
if(w){var V=Y.taskIdByTriggerId.get(w);if(V!=null){Y.taskIdByTriggerId.delete(w);w=[];V=_.N(V);for(var H=V.next();!H.done;H=V.next())if(H=Y.tasks.get(H.value))b!=="UNDEFINED_CSN"&&(H.csn=b),w.push(H);w=Bsa(w);b=[];w=_.N(w);for(V=w.next();!V.done;V=w.next()){H=_.N(V.value);V=H.next().value;H=H.next().value;V=Y.coordinatorSupplier.get(V).queueAll(H);V=_.N(V);var f=V.next();for(H={};!f.done;H={taskId$jscomp$9:void 0},f=V.next()){var E=_.N(f.value);f=E.next().value;E=E.next().value;H.taskId$jscomp$9=
f;f=E;b.push(H.taskId$jscomp$9);Y.queuedPromisesByTask.set(H.taskId$jscomp$9,_.OV(f,function(U){return function(){RI8(Y,U.taskId$jscomp$9)}}(H)))}}}}else _.Sk(new _.BQ("Unexpected malformed TriggerEvent."))};
$f.prototype.trigger=function(Y,b){var w=this,V=this.tasks.get(Y);if(!V||this.queuedPromisesByTask.has(Y))return!1;Fcj(this,Y,V.triggerOn);b!=="UNDEFINED_CSN"&&(V.csn=b);b=this.coordinatorSupplier.get(V.taskType).queue(V);this.queuedPromisesByTask.set(Y,_.OV(b,function(){RI8(w,Y)}));
return!0};
$f.prototype.cancel=function(Y){var b=this.queuedPromisesByTask.get(Y);if(b)b.cancel();else return RI8(this,Y)};
var RI8=function(Y,b){Y.queuedPromisesByTask.delete(b);var w=Y.tasks.get(b);if(!w)return!1;Y.tasks.delete(b);Fcj(Y,b,w.triggerOn);(w=Zmu(w.cancelOn))&&(Y=Y.taskIdByCancelId.get(w))&&Y.delete(b);return!0},Fcj=function(Y,b,w){(w=Object.keys(w)[0])&&(Y=Y.taskIdByTriggerId.get(w))&&Y.delete(b)};var tAk={taskRegistered:{}},jT=function(){$f.instance||($f.instance=new $f);this.JSC$16114_taskManager=$f.instance};
_.P(jT,zA);
jT.prototype.resolveCommand=function(Y){var b=this,w,V;return _.c(function(H){w=_.v(Y,HLt);if((V=w)==null||!V.tasks){var f=new _.BQ("RegisterTasksCommand is missing tasks.");_.Ft(f);return H.return()}f=b.JSC$16114_taskManager;for(var E=_.N(w.tasks),U=E.next();!U.done;U=E.next())if(U=U.value,U=U.id&&U.triggerOn&&U.cancelOn&&U.command?new eIo(U.id,U.triggerOn,U.cancelOn,U.command,U):void 0,U){var X=Object.keys(U.triggerOn)[0];if(X){var I=Zmu(U.cancelOn);I?(f.tasks.set(U.id,U),f.taskIdByTriggerId.has(X)||f.taskIdByTriggerId.set(X,
new Set),f.taskIdByTriggerId.get(X).add(U.id),f.taskIdByCancelId.has(I)||f.taskIdByCancelId.set(I,new Set),f.taskIdByCancelId.get(I).add(U.id)):_.Sk(new _.BQ("Unexpected malformed cancelOn field."))}else _.Sk(new _.BQ("Unexpected malformed triggerOn field."))}else _.Sk(new _.BQ("Unexpected malformed Task proto."));d5t(b.JSC$16114_taskManager);_.om(H)})};var Lco={},Ss9=(Lco.rendered={priority:0,callback:function(){var Y={};Y.numCpu=navigator.hardwareConcurrency;var b={};b.ramGb=_.wB.navigator.deviceMemory;var w={staticContext:{}};b.ramGb&&nqq(b.ramGb)&&(w.staticContext.memoryTotalKbytes=(b.ramGb*1048576).toString());Y.numCpu&&nqq(Y.numCpu)&&(w.staticContext.cpuCores=Y.numCpu);if(_.q("web_enable_adaptive_appl_signal")){Y={};b=_.zu("rses_dpj");var V=_.zu("rsef_dpj");b&&b>0&&V&&V>0&&(b=Math.ceil(V-b),b>0&&(Y.loadLatency=b));Y.loadLatency&&nqq(Y.loadLatency)&&
(w.appL=Y.loadLatency.toString())}_.RY("applicationStarted",w)}},Lco);var a3t=new _.Hx("WINDOW_ON_ERROR"),rD9=new _.Hx("ERROR_WEIGHT_MAPS"),zIQ=new _.Hx("INIT_ERROR");var WcU={},Kc$=(WcU.initialized={priority:10,callback:function(Y){Y.injector.resolve(zIQ)()}},WcU);var iTC=function(){},ADk=function(){var Y=_.Aq("meta_logger_impl");
Y||(Y=new iTC,_.wG("meta_logger_impl",Y));return Y},Ctr=function(){ADk().csiSubscriptionKey=I7b("meta_logging_csi_event",function(Y){var b=Y.timerName;
if(Y=Y.timelineData){_.Lz(b,{startTime:Y.startTime},b);Y.infos&&_.Fx(Y.infos,b);for(var w=_.N(Object.keys(Y.ticks)),V=w.next();!V.done;V=w.next())V=V.value,_.S1(V,Y.ticks[V],b)}})};
iTC.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&hMr(this.csiSubscriptionKey)};var yDo={},$5U=(yDo.initialized={priority:10,callback:function(){Ctr()}},yDo);var jZr=function(Y,b){this.innertubeClientName=Y;this.JSC$16130_prefCookie=b};
jZr.prototype.record=function(){if(_.q("web_li_record_binary_eval_tick")){var Y=_.zu("rsef_dpj");var b=_.zu("rses_dpj");Y=Y!==void 0&&b!==void 0?Math.round(Y-b):void 0;if(Y!==void 0&&Y>0){b=_.l4(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var w=this.poolSize;if(!(b.valuesSeen>=1E9)){if(b.valuesSample.length<w)b.valuesSample.push(Y);else{var V=Math.floor(Math.random()*(b.valuesSeen+1));V<w&&(b.valuesSample[V]=Y)}b.valuesSeen+=1}_.kc(this.storagePrefix+"-"+this.innertubeClientName,
b,2592E3);Y=b.valuesSample;b=MYq(Y);Y=Y.length<5?void 0:b<400?1:b<1700?2:3;Y!==void 0&&(this.JSC$16130_prefCookie.set(this.cookiePrefix+this.innertubeClientName,Y),this.JSC$16130_prefCookie.save())}}else _.hW(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16130_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16130_prefCookie.save()};
jZr[VS]=[hi,$9];var GaK=function(){jZr.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.P(GaK,jZr);var T65=new _.Hx("PAGE_LOAD_TIME_TOKEN");var JDK=new _.Hx("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var G4=function(Y,b){this.JSC$16153_storeWithEntities=Y;this.JSC$16153_commandHandler=b;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
G4.prototype.start=function(){this.JSC$16153_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
G4.prototype.observeDownloadingEntities=function(){var Y=_.Q$b(this.JSC$16153_storeWithEntities.getState().entities).map(function(V){return v$u(V)});
if(Y.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var b={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Spv()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.NV(_.sa("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16153_commandHandler.resolveCommand(b)}this.downloadingEntities=Y}else if(this.downloadingEntities.length){var w=s$b(this.JSC$16153_storeWithEntities.getState().entities).map(function(V){return v$u(V)});
this.downloadingEntities.filter(function(V){return w.includes(V)}).length&&(Y={openPopupAction:XkK()},this.JSC$16153_commandHandler.resolveCommand(Y));
this.downloadingEntities=[]}};
G4[VS]=[oM,_.Nn];var umo;_.T4=function(Y,b,w,V,H,f,E,U){this.JSC$16156_playerApiPromise=Y;this.JSC$16156_commandHandler=b;this.JSC$16156_screenManager=w;this.offlineWebClientEligibility=V;this.JSC$16156_prefStorage=H;this.JSC$16156_actionRouter=f;this.entityTypeMap=E;this.JSC$16156_persistentStorePromiseAccessor=U;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
umo=function(){var Y=_.fH().resolve(_.T4),b;_.c(function(w){if(w.nextAddress==1)return Y.downloadFailureListenerBound?w.return():_.D(w,Y.JSC$16156_playerApiPromise,2);b=w.yieldResult;b.addEventListener("onOfflineOperationFailure",function(V){if(V.failureReason&&V.entityKey&&V.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(V.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var H=_.D7(V.entityKey).entityId;H&&Y.JSC$16156_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
H)}else if(_.q("kevlar_woffle")){H=Y.JSC$16156_commandHandler;var f=H.resolveCommand;V=V.failureReason;var E=_.sa("TRANSFER_FAILED",void 0,"Download failed");V==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(E=_.sa("STORAGE_FULL",void 0,"Storage full"));f.call(H,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.NV(E),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
Y.downloadFailureListenerBound=!0;_.om(w)})};
_.T4.prototype.deleteVideo=function(Y,b){var w=this,V,H,f;return _.c(function(E){if(E.nextAddress==1)return _.D(E,w.JSC$16156_playerApiPromise,2);V=E.yieldResult;f={offlineLoggingData:{offlineDeleteReason:(H=b)!=null?H:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.D(E,V.queueOfflineAction(Y,w.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",f),0)})};
_.T4.prototype.pauseVideoDownload=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.JSC$16156_playerApiPromise,2);w=V.yieldResult;w.pauseVideoDownload(Y);_.om(V)})};
_.T4.prototype.resumeVideoDownload=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.JSC$16156_playerApiPromise,2);w=V.yieldResult;return _.D(V,w.resumeVideoDownload(Y),0)})};
_.T4[VS]=[_.EH,_.Nn,_.eo,JDK,Ji,ww,OU$,xc];var YMQ=new _.Hx("DOWNLOAD_STATE_STORE_TOKEN");var bad=function(Y,b){this.JSC$16175_persistentStorePromiseAccessor=Y;this.store=b;this.upliftCompletionResolver=new _.mD},HaQ=function(){var Y=_.fH().resolve(wgR),b;
_.c(function(w){switch(w.nextAddress){case 1:if(Y.upliftImplPromise)return w.return(Y.upliftImplPromise);_.ct(w,2);Y.upliftImplPromise=VLR(Y);return _.D(w,Y.upliftImplPromise,4);case 4:Y.upliftCompletionResolver.resolve();_.$u(w,3);break;case 2:throw b=_.mS(w),Y.upliftCompletionResolver.reject(b),b;case 3:return w.return(Y.upliftImplPromise)}})},VLR=function(Y){var b,w,V;
return _.c(function(H){switch(H.nextAddress){case 1:return _.Wf("LOGGED_IN")?_.D(H,Y.JSC$16175_persistentStorePromiseAccessor(),2):H.return();case 2:b=H.yieldResult;if(!b)return _.S1("vdeur"),H.return();_.S1("vdeus");_.ct(H,3);return _.D(H,gbX(b),5);case 5:w=H.yieldResult;Y.store.dispatch(pqa(w));b.observe(function(f){Oyg(Y.store,f)});
_.$u(H,4);break;case 3:throw V=_.mS(H),_.S1("vdeur"),V;case 4:_.S1("vdeuc"),_.om(H)}})},gbX=function(Y){var b;
return _.c(function(w){if(w.nextAddress==1)return _.D(w,F5e(Y),2);b=w.yieldResult;return w.return(b.reduce(function(V,H){if(!H.data||!H.key||!H.entityType)return V;V[H.entityType]||(V[H.entityType]={});V[H.entityType][H.key]=H.data;return V},{}))})};
bad[VS]=[xc,_.i4];var wgR;wgR=new _.Hx("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.J$=new _.Hx("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var uE=function(Y,b){this.JSC$16178_persistentStorePromiseAccessor=Y;this.transportService=b};
uE.prototype.refresh=function(){var Y=this,b,w,V,H;return _.c(function(f){if(f.nextAddress==1)return _.Wf("LOGGED_IN")?_.D(f,Y.JSC$16178_persistentStorePromiseAccessor(),2):f.return();if(f.nextAddress!=3)return(b=f.yieldResult)?_.D(f,l_g(b),3):f.return();if((w=f.yieldResult)&&!(Number(w.data.refreshTimestampMs||0)<(0,_.gG)()))return f.return();V={browseId:"SPaccount_downloads"};H=_.Yy(HK);_.rw(Y.transportService,V,H).then(function(E){var U;if(b&&(E==null?void 0:(U=E.responseContext)==null?void 0:
U.maxAgeSeconds)!==0){var X;U=(E==null?void 0:(X=E.responseContext)==null?void 0:X.maxAgeSeconds)||604800;X=String(Math.floor((0,_.gG)())+U*1E3);b.put("service:downloads_settings:fallback",new _.Ue({innertubeResponse:E,refreshTimestampMs:X}))}});
_.om(f)})};
uE[VS]=[_.K0,_.Sy];var YN=function(Y,b){this.JSC$16182_playerPromise=Y;this.store=b;this.started=!1};
YN.prototype.start=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return Y.started?w.return():_.D(w,Y.JSC$16182_playerPromise,2);b=w.yieldResult;b.addEventListener("onOrchestrationBecameLeader",Y.updateIsLeader.bind(Y,!0));b.addEventListener("onOrchestrationLostLeader",Y.updateIsLeader.bind(Y,!1));if(b.isOrchestrationLeader)Y.updateIsLeader(b.isOrchestrationLeader());else{var V=new _.BQ("Function isOrchestrationLeader is undefined",{"player.isReady":b.isReady(),"player.playVideo":b.playVideo?
"defined":"undefined"});_.Ft(V);Y.updateIsLeader(!1)}Y.started=!0;_.om(w)})};
YN.prototype.updateIsLeader=function(Y){this.store.dispatch(_.Uf({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:Y}}))};
YN[VS]=[_.EH,_.i4];var ftI=function(Y,b){this.networkStatusManager=Y;this.JSC$16185_prefStoragePromise=b;this.redirectsToPreload=["https://youtube.com"]},NBb=function(){var Y=_.fH().resolve(ftI),b,w,V,H,f,E;
_.c(function(U){switch(U.nextAddress){case 1:return _.D(U,Y.JSC$16185_prefStoragePromise,2);case 2:b=U.yieldResult;if(!(w=b)){U.jumpTo(3);break}return _.D(U,b.get("yt-redirect-prefetch-id"),4);case 4:w=U.yieldResult;case 3:if(w||!Y.networkStatusManager.isNetworkAvailable())return U.return();V={cache:"reload",redirect:"manual"};H=_.N(Y.redirectsToPreload);f=H.next();case 5:if(f.done){if(!b){U.jumpTo(0);break}return _.D(U,b.set("yt-redirect-prefetch-id",!0,86400),0)}E=f.value;_.ct(U,8);return _.D(U,
_.wB.fetch(E,V),10);case 10:_.$u(U,6);break;case 8:_.mS(U);case 6:f=H.next(),U.jumpTo(5)}})};var bd=function(Y){Y?(this.container=Y,this.containerWasInjected=!0):this.containerWasInjected=!1};
bd.prototype.openDialog=function(Y,b,w){var V=this,H;return _.c(function(f){(H=V.container)==null||H.openDialog(Y,b,w);_.om(f)})};
bd.prototype.closeDialog=function(){var Y=this,b;return _.c(function(w){(b=Y.container)==null||b.closeDialog();_.om(w)})};
bd.prototype.isDialogOpen=function(){var Y=this,b,w;return _.c(function(V){return V.return((w=(b=Y.container)==null?void 0:b.isDialogOpen())!=null?w:!1)})};
bd[VS]=[_.HQ(Xur)];_.Ebs=new _.Hx("POPUP_CONTROLLER_TOKEN");var cet=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
cet.prototype.registerPanel=function(Y,b){if(Y){this.panelMap.set(Y,b);var w=this.pendingPanelResolvers.get(Y);w&&(w.resolve(b),this.pendingPanelResolvers.delete(Y))}};
cet.prototype.getPanel=function(Y){var b=this,w;return _.c(function(V){return(w=b.panelMap.get(Y))?V.return(w):V.return(UrX(b,Y))})};
var UrX=function(Y,b){var w,V;return _.c(function(H){if(w=Y.pendingPanelResolvers.get(b))return H.return(w.promise);V=new _.mD;Y.pendingPanelResolvers.set(b,V);return H.return(V.promise)})},Xgb=function(Y){cet.call(this);
var b=this;this.popupController=Y;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return b.panelMap.size}}};
_.P(Xgb,cet);_.g=Xgb.prototype;_.g.getReloadContinuation=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.getPanel(Y),2);w=V.yieldResult;return V.return(w.getReloadContinuation())})};
_.g.showPanel=function(Y,b,w,V,H,f,E){var U=this,X,I,k,l;return _.c(function(x){if(x.nextAddress==1){E&&U.updatePanelContinuationDatas.set(Y,E);if((X=w)==null?0:(I=X.engagementPanelPopupPresentationConfig)==null?0:I.popupType){k=w.engagementPanelPopupPresentationConfig.popupType;H===void 0&&(H=document.body);var Q=x.return,Z=U.popupController,e=Z.openPopup;a:switch(k){case "PANEL_POPUP_TYPE_DIALOG":var O="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":O="DROPDOWN";break a;default:throw Error("fj`"+
k);}return Q.call(x,e.call(Z,Y,b,O,H))}return _.D(x,U.getPanel(Y),2)}l=x.yieldResult;(b||f)&&l.updatePanel(b,!1,V,f);l.showPanel(V);_.om(x)})};
_.g.hidePanel=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,b.getPanel(Y),2);w=V.yieldResult;w.hidePanel();b.popupController.closePopup(Y);_.om(V)})};
_.g.isVisible=function(Y,b){var w=this,V;return _.c(function(H){if(H.nextAddress==1)return b&&!w.panelMap.has(Y)?H.return(!1):_.D(H,w.getPanel(Y),2);V=H.yieldResult;return H.return(V.isVisible())})};
_.g.updatePanel=function(Y,b,w,V,H,f){w=w===void 0?!1:w;var E=this,U;return _.c(function(X){if(X.nextAddress==1){if(!b&&!H)return X.return();f&&E.updatePanelContinuationDatas.set(Y,f);return _.D(X,E.getPanel(Y),2)}U=X.yieldResult;U.updatePanel(b,w,V,H);_.om(X)})};
_.g.registerPanelContent=function(Y,b){Y&&this.panelContentMap.set(Y,b)};
_.g.getPanelContent=function(Y){return this.panelContentMap.get(Y)};
_.g.getUpdatePanelContinuationData=function(Y){return this.updatePanelContinuationDatas.get(Y)};
Xgb[VS]=[_.Ebs];var wJ=function(Y,b){this.innertubeTransportService=Y;this.JSC$16201_screenManager=b},DrI=function(Y){var b;
return!((b=Y.panelLoadingStrategy)==null||!b.requestTemplate)};
wJ.prototype.makeRequest=function(Y){var b=this,w,V;return _.c(function(H){switch(H.nextAddress){case 1:if(!DrI(b)){H.jumpTo(2);break}_.ct(H,3);return _.D(H,_.$_(b.innertubeTransportService,Y),5);case 5:return w=H.yieldResult,w?H.return(w.content):(_.Ft(Error("gj")),H.return(void 0));case 3:V=_.mS(H),_.Ft(V);case 2:return H.return(void 0)}})};
wJ.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
wJ.prototype.execute=function(Y){var b=this,w,V,H,f,E,U,X,I,k,l;return _.c(function(x){if(x.nextAddress==1){w=Y;V=w.data;H=w.fallbackVe;f=w.parentVe;E=w.createScreenConfig;U=w.renderFn;X=w.command;b.panelLoadingStrategy=V;var Q,Z,e=((Q=b.panelLoadingStrategy)==null?0:Q.screenVe)?(Z=b.panelLoadingStrategy)==null?void 0:Z.screenVe:H;e&&_.mo(b.JSC$16201_screenManager,e,f,E);return(I=b.getContent())?_.D(x,U(I),2):x.jumpTo(2)}return x.nextAddress!=4?DrI(b)?_.D(x,b.makeRequest(X),4):x.return():(l=k=x.yieldResult)?
_.D(x,U(l),0):x.return()})};
wJ[VS]=[_.Sy,_.eo];var Vx=function(){};
Vx.prototype.getContainer=function(){return _.fz()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Vx.prototype.openSheet=function(Y,b){var w=this,V,H,f,E,U,X;return _.c(function(I){switch(I.nextAddress){case 1:return V={stack:[],error:void 0,hasError:!1},_.ct(I,2,3),H=w2,_.D(I,w.isSheetOpen(),5);case 5:f=I.yieldResult;w86(V,n2M(H));if(f){if(b&&w.currentTarget===b)return(E=w.getContainer())==null||E.closeSheet(),I.return();w.pendingData={data:Y,target:Msk(w,b)};return I.return()}Y.viewModel&&(Y={viewModel:Y.viewModel});(U=w.getContainer())==null||U.openSheet(Y,b);w.currentTarget=b;case 3:_.Ux(I);
VWI(V);_.Dl(I,0);break;case 2:X=_.mS(I),V.error=X,V.hasError=!0,I.jumpTo(3)}})};
Vx.prototype.closeSheet=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,(b=Y.getContainer())==null?void 0:b.closeSheet(),2);if(w.nextAddress!=4)return Y.currentTarget=void 0,Y.pendingData?_.D(w,Y.openSheet(Y.pendingData.data,Y.pendingData.target),4):w.jumpTo(0);Y.pendingData=void 0;_.om(w)})};
Vx.prototype.isSheetOpen=function(){var Y=this,b,w;return _.c(function(V){return V.return((w=(b=Y.getContainer())==null?void 0:b.isSheetOpen())!=null?w:!1)})};
var Msk=function(Y,b){if(!_.q("web_parent_target_for_sheets"))return b;var w,V;return(V=(w=Y.getContainer())==null?void 0:w.getParentTarget(b))!=null?V:b};var IM=window.documentPictureInPicture;var $3I=_.wM(["dark"]),j0I=_.wM(["system-icons"]),G36=_.wM(["typography"]),Tsa=_.wM(["lang"]),Jsv=_.wM(["style"]),imB=_.wM(["dir"]),AsL=_.wM(["rounded-container"]),Cqu=_.wM(["style"]),YYB=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Ho=function(Y){this.JSC$16213_clientRoot=Y;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Ho.prototype.openWindow=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1)return window.documentPictureInPicture&&_.pa()&&!b.currentPipWindow?_.D(H,(w=IM?IM:null)==null?void 0:w.requestWindow(Y),2):H.return(!1);if(H.nextAddress!=3){V=H.yieldResult;if(!V)return H.return(!1);V.addEventListener("pagehide",function(){mrN(b)});
V.addEventListener("resize",b.handlePipWindowResize);b.pipWindowResizeDelay=new _.wO(function(){b.currentPipWindow&&_.Xx(b.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.mE(b.currentPipWindow.innerWidth,b.currentPipWindow.innerHeight)])},V);
urv(V);wnb(V);return _.D(H,K5L(V),3)}if(!rsM())return H.return(!1);b.currentPipWindow=V;b.JSC$16213_eventForwarder=bO6(V,b.JSC$16213_clientRoot);b.pipWindowResizeDelay.start();return H.return(!0)})};
Ho.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var mrN=function(Y){if(Y.currentPipWindow){var b,w;(b=IM?IM:null)==null||(w=b.window)==null||w.close();Y.currentPipWindow.removeEventListener("resize",Y.handlePipWindowResize);var V;(V=Y.pipWindowResizeDelay)==null||V.dispose();Y.pipWindowResizeDelay=void 0;var H;(H=Y.JSC$16213_eventForwarder)==null||H.stop();Y.JSC$16213_eventForwarder=void 0;b=_.N(Y.onCloseCallbacks);for(w=b.next();!w.done;w=b.next())w=w.value,w();Y.onCloseCallbacks=[];Y.currentPipWindow=null}};
Ho.prototype.getWindow=function(){return this.currentPipWindow};
var obQ=function(Y,b){var w;(w=Y.onCloseCallbacks)==null||w.push(b)};
Ho.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.pa()};
_.up.Object.defineProperties(Ho.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Ho[VS]=[OwU];var ItF=new _.Hx("PICTURE_IN_PICTURE_CONTROLLER");var Vva=function(Y,b){this.lengthY=this.lengthX=0;this.lengthX=b.x-Y.x;this.lengthY=b.y-Y.y};var kKQ=function(){},ts8=function(Y,b){var w;
(w=Y.headerElement)==null||w.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:b}))};var ltt=function(){};
ltt.prototype.openPopup=function(Y,b,w,V){var H=this,f;return _.c(function(E){if(!H.container)return E.return();f={openPopupAction:{popup:b,popupType:w,uniqueId:Y}};return E.return(H.container.handleOpenPopupAction(f,V))})};
ltt.prototype.closePopup=function(Y){this.container&&this.container.closePopup(Y)};var hqb=function(){this.openTunnels=new Map},onB=function(Y,b,w){if(cVB(w)){var V=_.CC(w,"gclid");
w={handleEvent:function(U){b&&!b.closed&&typeof b.postMessage==="function"&&U&&U.origin&&U.source===b&&U.data&&U.data.action==="gcl_setup"&&b.postMessage(Object.assign({},{action:"gcl_transfer"},V&&{gclid:V},{gadSource:2}),U.origin)}};
for(var H=_.N(Y.openTunnels),f=H.next();!f.done;f=H.next()){var E=_.N(f.value);f=E.next().value;E=E.next().value;if(f.closed)try{window.removeEventListener("message",E),Y.openTunnels.delete(f)}catch(U){_.Ft(U)}}b&&Y.openTunnels.size<15&&(Y.openTunnels.set(b,w),window.addEventListener("message",w))}};var xrg=function(){this.clientParams=new Map},Fir=function(Y){for(var b=_.N(Y.clientParams.keys()),w=b.next();!w.done;w=b.next())w=w.value,w.startsWith("yt-mini-app-share")&&Y.clientParams.delete(w)};var qMR=function(Y,b){_.BE.call(this);var w=this;this.shortsController=Y;this.storeWithShorts=b;Y=_.vB(this.storeWithShorts,_.LMM,function(V){if(V){var H,f=(H=w.shortsController.getRoot())==null?void 0:H.getPlayer(),E;(H=(E=w.shortsController.alternativePlayerContainerElement)==null?void 0:E.getPlayerContainer())&&(f==null||f.appendTo(H))}else{var U;E=(U=w.shortsController.alternativePlayerContainerElement)==null?void 0:U.getPlayerContainer().querySelector("#player");H=w.shortsController.activeIndex;
(U=(f=w.shortsController.getRoot())==null?void 0:f.querySelector('ytd-reel-video-renderer[id="'+H+'"] #player-container'))&&(E==null||E.appendTo(U,void 0,!0))}});
this.addOnDisposeCallback(Y)};
_.P(qMR,_.BE);var gJ=function(Y,b,w,V,H){var f=this;this.storeWithShorts=Y;this.ephemeralResponseStore=b;this.store=w;this.innertubeTransportService=V;this.innertubeTransportLoader=H;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.rn(_.s1);this.isShortsPipActive=_.rn(_.Qm);this.nextReelVe=_.tj(56921);this.prevReelVe=_.tj(56922);this.backButtonVe=_.tj(22156);this.TEST_ONLY={getActiveModules:function(){return f.activeModules}}},SBd,auK,s6s;
gJ.prototype.initOrDisposeActiveModules=function(Y){Y?this.activeModules.push(new qMR(this,this.storeWithShorts)):(_.YG(this.activeModules),this.activeModules.length=0)};
gJ.prototype.getRoot=function(){return this.rootElement};
gJ.prototype.setActiveIndex=function(Y){this.activeIndex=Y};
_.OeQ=function(Y,b){var w,V,H,f,E,U,X;return _.c(function(I){switch(I.nextAddress){case 1:return w=new DV,(V=w.JSC$11050_getStoreKey(b))&&Y.ephemeralResponseStore.has(V)?_.D(I,Y.ephemeralResponseStore.get(V),7):_.D(I,s6s(Y,b),4);case 4:H=I.yieldResult;if(!V){I.jumpTo(3);break}f=UH(H,3600);return _.D(I,Y.ephemeralResponseStore.put(V,new _.Ue(f)),3);case 7:H=(E=I.yieldResult)==null?void 0:_.Dz(E);case 3:return((U=H)==null?0:U.replacementEndpoint)&&(X=_.v(H.replacementEndpoint,_.BH))&&H.sequenceContinuation&&
(X.sequenceParams=H.sequenceContinuation),I.return(H)}})};
SBd=function(Y,b){b=(new mY).JSC$11050_getStoreKey(b);return!!b&&Y.ephemeralResponseStore.has(b)};
auK=function(Y,b,w){var V,H,f,E,U;_.c(function(X){if(X.nextAddress==1){V=new mY;H=V.JSC$11050_getStoreKey(b);if(!H)return X.return();if(w.reelWatchSequenceResponse)return f=UH(w.reelWatchSequenceResponse,3600),Y.ephemeralResponseStore.put(H,new _.Ue(f)),X.jumpTo(0);if(!Y.ephemeralResponseStore.has(H))return X.jumpTo(0);U=w;return _.D(X,Y.ephemeralResponseStore.get(H),4)}U.reelWatchSequenceResponse=(E=X.yieldResult)==null?void 0:_.Dz(E);_.om(X)})};
s6s=function(Y,b){var w=w===void 0?{}:w;var V,H,f;return _.c(function(E){switch(E.nextAddress){case 1:if(Y.innertubeTransportService){V=Y.innertubeTransportService;E.jumpTo(2);break}if(!Y.innertubeTransportLoader){_.K7(Error("ij"));E.jumpTo(2);break}return _.D(E,Y.innertubeTransportLoader(),4);case 4:V=E.yieldResult;case 2:return _.D(E,(H=V)==null?void 0:_.$_(H,b,w),5);case 5:return f=E.yieldResult,E.return(f)}})};
_.up.Object.defineProperties(gJ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
gJ[VS]=[Qf5,_.cR,oM,_.HQ(_.Sy),_.HQ(laI)];_.Q6d=new _.Hx("STORAGE_MANAGER_TOKEN");var mOa=["touchmove","scroll"];var l66={onSpanEnd:function(Y){if(Y.parent==null){var b=Y.name;_.Lz(b);kyL(Y,b)}}};var vbO=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},PI7;
vbO.prototype.enqueue=function(Y,b){b===1?this.currentPersistentToast=Y:this.queue.push(Y);this.openToast()};
vbO.prototype.openToast=function(){var Y;(Y=this.currentToast)!=null&&Y.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.fq=new _.Hx("TOAST_MANAGER_TOKEN");var Zat=new _.Hx("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");_.N2=new _.Hx("VIEW_TRANSITION_COORDINATOR_TOKEN");var BBg=function(Y){this.config=Y;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;Y=_.N(Y.transitionConfigs);for(var b=Y.next();!b.done;b=Y.next())b=_.N(b.value).next().value,this.transitionTasksMap.set(b,[])};
BBg.prototype.registerElement=function(Y,b,w){w=w===void 0?!1:w;for(var V=_.N(Object.keys(b)),H=V.next(),f={};!H.done;f={viewTransitionName:void 0},H=V.next()){H=H.value;f.viewTransitionName=b[H];var E=this.elementTasksMap.get(Y),U=void 0;if((U=E)==null?0:U.has(H)){_.LB(new _.BQ("Element already registered for transition",Y,H));break}E=E||new Map;E.set(H,{beforeTransition:function(X){return function(){Y.style.viewTransitionName=X.viewTransitionName}}(f),
afterTransition:function(){Y.style.viewTransitionName&&(Y.style.viewTransitionName="")},
runOnce:w});this.elementTasksMap.set(Y,E)}};
var T$K=function(Y,b){var w=Y.elementTasksMap.get(b);w&&(w.clear(),w.size===0&&Y.elementTasksMap.delete(b))};
BBg[VS]=[Zat];var nbQ;_.MLt=_.b8(function(Y){return _.m("basic-content-view-model",{class:_.hj("ytBasicContentViewModelHost",_.JU(Y.className))},_.m(_.h,{cond:function(){return Y.data().headline},
then:function(b){return _.m("div",{class:"ytBasicContentViewModelHeadline"},_.m(_.wv,{text:b}))}}),_.m(_.Bf,{each:function(){return Y.data().paragraphs||[]},
keyBy:"INDEX"},function(b){return _.m("div",{class:"ytBasicContentViewModelParagraph"},_.m(_.h,{cond:function(){var w=b();return!!(w.header||w.customHeader||w.headline)},
then:function(){return _.m(nbQ,{paragraph:b})}}),_.m(_.h,{cond:function(){return b().asset||b().text},
then:function(){return _.m("div",{class:"ytBasicContentViewModelParagraphContent"},_.m(_.h,{cond:function(){return b().asset},
then:function(w){return _.m("div",{class:"ytBasicContentViewModelParagraphAsset"},_.m(_.OH,{data:w},{contentPreviewImageViewModel:_.V8}))}}),_.m(_.h,{cond:function(){return b().text},
then:function(w){return _.m("div",{class:"ytBasicContentViewModelParagraphText"},_.m(_.wv,{text:w}))}}))}}))}))},"me");
nbQ=_.b8(function(Y){var b=Y.paragraph;return _.m(_.Uz,null,_.m(_.h,{cond:function(){return b().headline},
then:function(w){return _.m(_.wv,{text:w,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.m(_.OH,{data:function(){return b().header||b().customHeader}},{sectionHeaderViewModel:function(w){return _.m(_.gq,{data:w.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var pg7=_.b8(function(Y){var b=_.GM("yt-expandable-metadata-header-view-model"),w=_.Q_(function(V){if(!_.Cs(_.Ad(V),b.value,["A".toString(),"BUTTON".toString()])){var H;(H=Y.expandedCallback)==null||H.call(Y,!1)}});
return _.m("yt-expandable-metadata-header-view-model",{el:b,class:"ytExpandableMetadataHeaderViewModelHost"},_.m(_.h,{cond:function(){return Y.expanded()},
then:function(){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":w},_.m("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.m(_.h,{cond:function(){return Y.data().expandedTitleImage},
then:function(V){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.m(_.Y_,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:V}))}}),_.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.m("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.m(_.wv,{text:function(){return Y.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.m(_.wv,{text:function(){return Y.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.m(_.wv,{text:function(){return Y.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.m("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.m(_.OH,{data:function(){return Y.data().infoButton}},{buttonViewModel:_.a1}),_.m(_.OH,{data:function(){return Y.data().collapseButton}},{buttonViewModel:function(V){return _.m(_.a1,{data:V.data,
onClick:function(){var H;(H=Y.expandedCallback)==null||H.call(Y,!1)}})}})))},
else:function(){return _.m(eqA,Object.assign({},Y))}}))},"oe"),Oag=_.b8(function(Y){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.m(_.h,{cond:function(){return Y.data().collapsedLabelImage},
then:function(b){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.m(_.Y_,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b,alt:""}))}}),_.m(_.wv,{text:function(){return Y.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),eqA=_.b8(function(Y){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Q_(function(){var b;return void((b=Y.expandedCallback)==null?void 0:b.call(Y,!0))})},_.m("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.m(_.h,{cond:function(){return Y.data().collapsedImage},
then:function(b){return _.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.m(_.Y_,{width:16,height:16,data:b,alt:""}))}}),_.m(_.h,{cond:function(){return Y.data().showLeadingCollapsedLabel},
then:function(){return _.m(Oag,Object.assign({},Y))}}),_.m("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.m(_.wv,{text:function(){return Y.data().collapsedTitle}}))),_.m("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.m(_.h,{cond:function(){return!Y.data().showLeadingCollapsedLabel},
then:function(){return _.m(Oag,Object.assign({},Y))}}),_.m(_.OH,{data:function(){return Y.data().infoButton}},{buttonViewModel:_.a1}),_.m(_.OH,{data:function(){return Y.data().expandButton}},{buttonViewModel:function(b){return _.m(_.a1,{data:b.data,
onClick:function(){var w;(w=Y.expandedCallback)==null||w.call(Y,!0)}})}})))},"qe");_.tLQ=_.b8(function(Y){var b=_.N(_.Zp(function(){return Y.data().initiallyExpanded})),w=b.next().value,V=b.next().value,H,f=(H=_.fH().resolve(_.HQ(_.GT)))==null?void 0:H(),E=function(){var U=Y.data().colorData;
if(U)return f?U==null?void 0:U.darkColorPalette:U==null?void 0:U.lightColorPalette};
return _.m("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Bb({"background-color":function(){var U=E();return(U==null?0:U.section2Color)?_.KX(U.section2Color):""}})},_.m(_.OH,{data:function(){return Y.data().header}},{expandableMetadataHeaderViewModel:function(U){return _.m(pg7,{data:U.data,
expanded:function(){return!!w()},
expandedCallback:function(X){V(X)}})}}),_.m(_.h,{cond:function(){return w()},
then:function(){return _.m("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.m(_.OH,{data:function(){return Y.data().expandedContent}},{horizontalShelfViewModel:function(U){return _.m(_.ej,{data:U.data,
includeMargin:!0,forceNarrowLayout:!0,palette:E})},
videoSummaryContentViewModel:function(U){return _.m(N3k,{data:U.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(U){return _.m(_.fc,{data:U.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(U){return _.m(_.MLt,{data:U.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.m(_.OH,{data:function(){return Y.data().expandedBottomButtons}},{buttonViewModel:function(U){return _.m("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.m(_.a1,{data:U.data}))}}))}}))},"re");var Rqs=_.b8(function(Y){var b=Y.text;var w=Y.marqueeSpacing;var V=Y.scrollDelay;var H=Y.scrollDuration;var f=Y.enableMarqueeScroll;Y=Y.large;var E=_.N(_.kw(!1,void 0,"kfNqfd")),U=E.next().value,X=E.next().value,I=_.N(_.kw(0,void 0,"bYgZbf"));E=I.next().value;var k=I.next().value,l=_.GM("marquee-scroll");I=_.GM("div");var x=_.GM("span"),Q=_.fH().resolve(_.JA);_.tl(function(){if(f()){var O=x.value.getBoundingClientRect().width,L=l.value.getBoundingClientRect().width;if(O>L){var r=(Q==="ltr"?-1:1)*
(O+(w?w():16));Promise.resolve().then(function(){X(!0);k(r)})}}},"giRlme");
var Z={},e={};return _.m("marquee-scroll",{class:_.hj("ytMarqueeScrollHost",(Z.ytMarqueeScrollHostLarge=Y,Z)),el:l},_.m("div",{id:"marquee-scroll-inner-container",class:_.hj("ytMarqueeScrollInnerContainer",(e.ytMarqueeScrollAnimationEnabled=function(){return U()},e)),
el:I,style:_.Bb({gap:w?(0,_.ZY)(w):"16px","animation-duration":H?YYU(H):"16s","animation-delay":V?YYU(V):"3s","--marquee-translate":(0,_.ZY)(E)})},_.m("span",{el:x,dir:"auto"},_.m(_.wv,{text:b,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.m(_.h,{cond:U,then:function(){return _.m("span",{"aria-hidden":"true",dir:"auto"},_.m(_.wv,{text:b,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.drR=_.b8(function(Y){var b=Y.data;var w=Y.overlayDensity;Y=_.Q_(function(){b().onTapCommand&&_.AA(b().onTapCommand);return!1});
var V=_.gAr(),H=function(){return(w==null?void 0:w())===1?22:16},f={};
return _.m("reel-sound-metadata-view-model",{class:_.hj("ytReelSoundMetadataViewModelHost",(f.ytReelSoundMetadataViewModelHostLarge=function(){return(w==null?void 0:w())===1},f)),
"on:click":Y,tabindex:0,role:"button","on:keydown":V},_.m("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.m(_.h,{cond:function(){return b().musicIcon},
then:function(E){return _.m(_.Y_,{data:E,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:H})}}),_.m("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.m(Rqs,{text:function(){return b().soundMetadata},
enableMarqueeScroll:function(){return!!b().enableMarqueeScroll},
large:function(){return(w==null?void 0:w())===1}}))))},"te");var FGQ,LGA,El,zqX,KGg,red,CII,Aeg;FGQ=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];LGA=_.cQ("wil_icon_max_concurrent_fetches",Infinity);
El=function(Y,b,w){var V=this;this.iconSet=Y;this.appDirection=b;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.wB.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.q("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.q("wil_icon_network_first");this.renderWhenIdle=_.q("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.q("wil_icon_load_immediately");this.isPurging=!1;Y=function(){V.cacheStorageAvailable&&(V.cacheStorageAsync=_.wB.caches.open("yt-icons").then(function(f){return V.cacheStorageSync=f}).catch(function(){V.cacheStorageAvailable=!1}))};
w=(w==null?void 0:w())||{};w=_.N(Object.entries(w));for(b=w.next();!b.done;b=w.next()){var H=_.N(b.value);b=H.next().value;H=H.next().value;H=q$(H);SMd(H);this.iconCache[b]=H.cloneNode(!0)}this.isPurging=atg(this);this.isPurging instanceof Promise?this.isPurging.then(Y):Y()};
_.rvu=function(Y,b){var w=Y.resolveIcon(b);return w?Y.renderingMode===1?red(Y,w,Y.renderingMode):(b=Y.iconCache[w.url])?(b=b.cloneNode(!0),zqX(Y,b),red(Y,w,Y.renderingMode,b)):_.WGO(Y,w).then(function(V){var H=V?0:1;zqX(Y,V);return red(Y,w,H,V)}):(_.LB(new _.BQ("Icon not found",{iconShape:b})),function(){})};
zqX=function(Y,b){if(b){Y.counter+=1;Y="_yt"+Y.counter;b=[b].concat(_.Bt(b.getElementsByTagName("*")));b=_.N(b);for(var w=b.next();!w.done;w=b.next())if(w=w.value,w.tagName==="style"&&w.textContent)w.textContent=KGg(w.textContent,Y,!0);else for(var V=_.N(w.attributes),H=V.next();!H.done;H=V.next()){H=H.value;H.name==="id"&&(H.value+=Y);["mask","fill","clip-path"].includes(H.name)&&(H.value=KGg(H.value,Y));if(H.name==="style"){var f=w.style;try{f.cssText=KGg(f.cssText,Y,!0)}catch(k){var E=void 0,U=
void 0,X=void 0,I=void 0;co({error:((E=k)==null?void 0:(X=(U=E).toString)==null?void 0:X.call(U))||"",el:w.outerHTML,style:!!f,cssText:(I=f)==null?void 0:I.cssText})}}H.name==="xlink:href"&&(H.value=H.value.replace(/#(.*)/,"#$1"+Y))}}};
KGg=function(Y,b,w){var V=/url\(["']?#(.*?)["']?\)/;(w===void 0?0:w)&&(V=/url\(["']?#(.*?)["']?\)/g);return Y.replace(V,"url(#$1"+b+")")};
red=function(Y,b,w,V){return function(H,f){var E=Object.assign({},{iconColor:"currentcolor",iconWidth:b.size+"px",iconHeight:b.size+"px",iconDisplay:"block"},f);f=_.xG("DIV");var U=E.iconColor,X=E.iconFilter;E="width: "+E.iconWidth+"; height: "+E.iconHeight+"; display: "+E.iconDisplay+";";X&&(E+=" filter: "+X+";");w===0&&(E+=" fill: "+U+";");w===1&&(X=b.url,E+=" -webkit-mask: url("+X+") no-repeat center / cover; mask: url("+(X+") no-repeat center / cover; background-color: ")+U);b.allowMirroring&&
Y.appDirection==="rtl"&&(E+=" transform: scale(-1, 1); transform-origin: center center;");f.setAttribute("style",E);w===0&&V&&f.appendChild(V);H.appendChild(f)}};
_.WGO=function(Y,b){var w,V,H;return _.c(function(f){w=function(E){return Ou(E)};
V=b.url;if(!iat(V))throw Error("kj");H=Aeg(Y,V);return f.return(H.then(function(E){return E.clone().text()}).then(function(E){var U=w(E);
E=b.size;var X=_.xG("DIV");_.iH(X,U);U=_.qf(X.firstElementChild!==void 0?X.firstElementChild:_.VKU(X.firstChild,!0));E=SMd(U,E);Y.iconCache[V]=E.cloneNode(!0);delete Y.responsePromises[V];return E}).catch(function(){}))})};
CII=function(Y){var b,w=(b=Y.requestAninmationFrameResolver)==null?void 0:b.promise;w||(Y.requestAninmationFrameResolver=new _.mD,w=Y.requestAninmationFrameResolver.promise,_.wB.requestAnimationFrame(function(){var V;(V=Y.requestAninmationFrameResolver)==null||V.resolve();Y.requestAninmationFrameResolver=null}));
return w};
Aeg=function(Y,b){var w,V;return _.c(function(H){if(H.nextAddress==1)return Y.waitForAnimationFrame?_.D(H,CII(Y),2):H.jumpTo(2);w=Y.responsePromises[b];w||(V=function(){var f,E,U;return _.c(function(X){switch(X.nextAddress){case 1:if(!Y.cacheStorageAvailable){f=void 0;X.jumpTo(2);break}if(E=Y.cacheStorageSync){X.jumpTo(3);break}return _.D(X,Y.cacheStorageAsync,4);case 4:E=X.yieldResult;case 3:f=E;case 2:return U=f,Y.isNetworkFirstStrategy?X.return(Y.fetchAndUpdateCache(b,U).catch(Y.getCacheStorageResponse.bind(Y,
b,U))):X.return(Y.getCacheStorageResponse(b,U).catch(Y.fetchAndUpdateCache.bind(Y,b,U)))}})},w=Y.renderWhenIdle?new Promise(function(f,E){_.MY(_.Lb,function(){V().then(f).catch(E)},10)}):V(),Y.responsePromises[b]=w);
return H.return(w.catch(function(f){delete Y.responsePromises[b];co({error:(f==null?0:f.toString)?f.toString():"",url:b});throw f;}))})};
El.prototype.fetchAndUpdateCache=function(Y,b){var w=this;return _.c(function(V){return V.return(yeO(w,Y).then(function(H){$rR(w,Y,H,b);return H}))})};
var yeO=function(Y,b){var w;return _.c(function(V){if(Y.numFetches<LGA)return Y.numFetches+=1,V.return(j6Q(Y,b).finally(function(){--Y.numFetches;if(Object.keys(Y.queuedResponseResolvers).length){var H=Object.keys(Y.queuedResponseResolvers)[0],f=Y.queuedResponseResolvers[H];delete Y.queuedResponseResolvers[H];f.resolve(yeO(Y,H))}}));
w=new _.mD;Y.queuedResponseResolvers[b]=w;return V.return(w.promise)})},j6Q=function(Y,b,w){w=w===void 0?2:w;
var V;return _.c(function(H){V={credentials:"same-origin",priority:"low"};return H.return(_.wB.fetch(b,V).then(function(f){return f.ok?f:Promise.reject(Error("lj`"+f.status+"`"+f.statusText))}).catch(function(f){if(w>0)return j6Q(Y,b,w-1);
throw f;}))})},$rR=function(Y,b,w,V){_.c(function(H){return V?H.return(new Promise(function(f){_.MY(_.Lb,function(){var E,U;
return _.c(function(X){switch(X.nextAddress){case 1:if(!Y.isNetworkFirstStrategy){E=void 0;X.jumpTo(2);break}return _.D(X,V.match(b).catch(function(){}),3);
case 3:E=X.yieldResult;case 2:if(U=E){X.jumpTo(4);break}return _.D(X,V.put(b,w.clone()).catch(function(I){co({error:(I==null?0:I.toString)?I.toString():"",url:b})}),4);
case 4:f(),_.om(X)}})},50)})):H.return()})};
El.prototype.getCacheStorageResponse=function(Y,b){return _.c(function(w){return b?w.return(b.match(Y).then(function(V){return V&&V.ok?V:Promise.reject()})):w.return(Promise.reject())})};
var SMd=function(Y,b){b===void 0||Y.getAttribute("viewBox")||Y.setAttribute("viewBox","0 0 "+b+" "+b);Y.setAttribute("focusable","false");Y.setAttribute("aria-hidden","true");try{Y.style.pointerEvents="none",Y.style.display="inherit",Y.style.width="100%",Y.style.height="100%"}catch(H){var w;co({error:((w=H)==null?0:w.toString)?H.toString():""});try{Y.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(f){var V;co({error:((V=f)==null?0:V.toString)?f.toString():
""})}}return Y},iat=function(Y){for(var b=_.N(FGQ),w=b.next();!w.done;w=b.next())if(Y.startsWith(w.value)&&Y.endsWith(".svg"))return!0;
return!1};
El.prototype.resolveIcon=function(Y){return this.iconSet.resolveIcon(Y)};
var co=function(Y){_.Sk(new _.BQ("Error in IconManager",Y))},atg=function(Y){if(_.q("wil_icons_cache_purge_killswitch"))return!1;
try{var b=_.wB.localStorage}catch(f){return!1}if(!b||!Y.cacheStorageAvailable)return!1;var w=function(f){try{var E;(E=b)==null||E.setItem("yt-icons-last-purged",f.toString())}catch(X){var U;co({error:((U=X)==null?0:U.toString)?X.toString():""})}},V=Number(b.getItem("yt-icons-last-purged"));
if(!V)return V=new Date,V=V.setDate(V.getDate()-Math.floor(Math.random()*90+1)),w(V),!1;if(function(f,E){f=new Date(f);E=new Date(E);return E.getMonth()-f.getMonth()+12*(E.getFullYear()-f.getFullYear())}(V,Date.now())<3)return!1;
try{return _.wB.caches.delete("yt-icons").then(function(f){f&&w(Date.now());return f}).catch(function(){return!1}).finally(function(){Y.isPurging=!1})}catch(f){var H;
co({error:((H=f)==null?0:H.toString)?f.toString():""});return!1}};
El[VS]=[fo_,_.JA,_.HQ(cF9)];_.Ul=function(Y,b){this.iconManager=Y;this.iconsToFetch=b};
_.Ul[VS]=[_.kO,_.HQ(EKk)];var GKg=function(){};var TBQ=function(Y,b,w){this.requestKey=Y;this.aRe=b;this.aaJ=w;this.ciE=function(){return new XMLHttpRequest};
this.lU4=void 0;this.pT7=[]};
TBQ.prototype.getLatestChallengeResponse=function(){return this.aaJ};
var bh5=function(Y,b,w){var V,H,f,E;return _.c(function(U){if(U.nextAddress==1){_.Lz("attestation_challenge_fetch");_.S1("att_fs",void 0,"attestation_challenge_fetch");if(!Y.lU4)throw new _.R_(9,"Missing fetcher");return _.D(U,Y.lU4(b,w),2)}V=U.yieldResult;f=(H=V)==null?void 0:H.bgChallenge;if(!f)throw new _.R_(15,"Missing field");Y.aaJ=V;Y.pT7.forEach(function(X){X(V)});
E=l0u(f);_.S1("att_fc",void 0,"attestation_challenge_fetch");H96("attestation_challenge_fetch");return U.return(E)})},P7t=function(Y,b){var w,V,H,f,E;
return _.c(function(U){switch(U.nextAddress){case 1:w=new U2(100,3E5,.25,2),V=void 0;case 2:if(!(w.currBackoffCount_<10)){U.jumpTo(4);break}_.ct(U,5);if(!(w.currBackoffCount_>0)){U.jumpTo(7);break}return _.D(U,xOe(w.getValue()),7);case 7:return _.D(U,JeA(Y,b),9);case 9:return H=U.yieldResult,U.return(H);case 5:f=_.mS(U);f instanceof _.R_?V=f:(E=f instanceof Error?f.message:"Unknown",V=new _.R_(9,E));U_C(w);U.jumpTo(2);break;case 4:if(V)throw V;throw new _.R_(9,"Unknown error");}})},JeA=function(Y,
b){b=iuj(AzI(new Km5,b),Y.requestKey);
var w=new _.mD,V=Y.ciE();V.open("POST",Y.aRe);V.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");V.setRequestHeader("Content-Type","application/json+protobuf");V.onload=function(){if(_.dca(V)){var H=YyQ(V.responseText);w.resolve(H)}else w.reject(new _.R_(_.Dw(_.Dj(V)),V.statusText))};
V.onerror=function(){w.reject(new _.R_(_.Dw(_.Dj(V)),V.statusText))};
V.send(b.serialize());return w.promise};var Ytt=function(Y){this.networkStatusManager=Y;this.isDownloaded=hOa===void 0?function(){return!1}:hOa;
this.isReady=!1;this.vJi=uut(this)},uut=function(Y){var b;
return _.c(function(w){if(w.nextAddress==1)return _.D(w,Mh6(),2);if(w.nextAddress!=3)return b=w.yieldResult,_.D(w,qXI(b),3);Y.m8=w.yieldResult;slb(Y.m8).then(function(){Y.isReady=!0});
return w.return(Y.m8)})},bob=function(Y,b,w){Y.m8?(Y=Y.m8.b8({sR:w,
niH:!0,vi4:!0}),b.serviceIntegrityDimensions={poToken:Y}):_.Ft(Error("nj"))};
Ytt.prototype.processContext=function(Y){var b=this;if(!Y.input.match(_.Yy(Sq8)))return _.Tk();var w=Y.innerTubeRequest,V=w.videoId;return!V||this.isDownloaded(w)||this.networkStatusManager&&!this.m8&&!this.networkStatusManager.isNetworkAvailable()?_.Tk():this.m8?this.isReady?(bob(this,w,V),_.Tk()):new Gk(slb(this.m8).then(function(){bob(b,w,V)})):new Gk(this.vJi.then(function(H){return _.c(function(f){if(f.nextAddress==1)return _.D(f,slb(H),2);
bob(b,w,V);_.om(f)})}))};var w9N=new _.Hx("WEB_PO_CONTEXT_PROCESSOR");var VKt=function(Y,b){var w=this;this.dWN=0;var V;this.zXL=(V=b==null?void 0:b.zXL)!=null?V:window;this.networkStatusManagerPromise=b==null?void 0:b.networkStatusManagerPromise;var H;this.requestKey=(H=b==null?void 0:b.requestKey)!=null?H:_.UJ("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var f;this.hJj=(f=b==null?void 0:b.hJj)!=null?f:function(X){return new zh(X)};
var E;V=(E=b==null?void 0:b.jpm)!=null?E:function(X,I,k){return new TBQ(X,I,k)};
this.bgChallenge=l0u(Y.bgChallenge);this.ttlSeconds=h5v(wp(Y.challenge||""));this.m0=V(this.requestKey,_.q("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.wB.location.hostname)?"/api/jnn/v1/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT":"https://jnn-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/GenerateIT",Y);qYG(this.m0);var U;this.j5h=(U=b==null?void 0:b.j5h)!=null?U:function(X){_.ez(w.zXL.document,"visibilitychange",function(){w.zXL.document.visibilityState===
"visible"&&X()})}},gdg=function(Y){if(!Y.nj){var b={maxAttempts:5,
vmu:Y.ttlSeconds*1E3};QlM(Y.zXL);Y.nj=Y.hJj({m0:Y.m0,tN:{disable:_.q("html5_web_po_disable_remote_logging"),wC:"aGIf",b9l:emG("html5_web_po_experiment_ids"),eij:_.q("wpo_dis_lfdms")?0:1E3,vo:_.q("wpo_gel_strz")?function(V){var H=Se5.get(V);H||(H=new LnQ(V),H=new Is(H),Se5.set(V,H));return H}:void 0},
o6T:b,gOJ:Y.bgChallenge,hBe:vov});Y.dWN=Date.now();Gz$(Y.nj,function(){Y.dWN=Date.now()});
thq(Y.nj,function(){return _.c(function(V){return V.return(Hod(Y))})});
var w=Y.qSC.bind(Y);Y.networkStatusManagerPromise&&Y.ttlSeconds>0&&Y.networkStatusManagerPromise.then(function(V){V.listen("publicytnetworkstatus-online",w)});
Y.j5h(w)}};
VKt.prototype.qSC=function(){if(Date.now()>this.dWN+this.ttlSeconds*1E3){var Y;(Y=this.nj)==null||jg$(Y)}};
var Hod=function(Y){if(Y.cee)return Y.cee;if(!Y.nj)throw Error("oj");Y.cee=new AS({nj:Y.nj,m0:Y.m0,abk:!0,onError:vov});return Y.cee},ZOt=function(Y,b){Y=new VKt(Y,b);
gdg(Y);Hod(Y)};var X8=function(Y,b){this.store=Y;this.queue=[];b==null||b.addEventListener("yt-navigate-start",this.reset.bind(this))};
X8.prototype.enqueue=function(Y){var b=Y.command,w=Y.durationMs,V=Y.elementToFocus;var H=Y.label;var f=Y.elementToFocus;Y.command?H=_.sa("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:H,shortcut:_.sa("SHIFT_PLUS_ENTER")}):f&&(Y=H+". "+_.sa("SHIFT_PLUS_ENTER")+" for more information.",H=_.sa("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:H,shortcut:_.sa("SHIFT_PLUS_ENTER")},Y));w={announcement:H,durationMs:w!=null?w:8E3};b?w.command=b:V&&(V.classList.add("ephemeral-action-focusable-element"),w.selector=V.tagName+
".ephemeral-action-focusable-element");this.queue.push(w);f5Q(this)};
X8.prototype.activate=function(Y){var b=_.tYe(this.store.getState());if(b){if(b==null?0:b.command)_.WP(b.command),this.store.dispatch(R9o(null));if(b==null?0:b.selector)b=document.querySelector(b.selector),_.uIu(b);Y.preventDefault()}};
var f5Q=function(Y){if(!_.tYe(Y.store.getState())&&Y.queue.length){var b=Y.queue.shift();b&&(Y.previousAnnouncement===b.announcement&&(b.announcement+="\u00a0"),Y.store.dispatch(R9o(b)),Y.previousAnnouncement=b.announcement,Y.timeoutId=setTimeout(function(){if(b.selector){var w;(w=document.querySelector(b.selector))==null||w.classList.remove("ephemeral-action-focusable-element")}Y.store.dispatch(R9o(null));f5Q(Y)},b.durationMs))}};
X8.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(R9o(null));this.queue.length=0;this.timeoutId=void 0};
X8[VS]=[_.i4,_.Mx];_.Dh=new _.Hx("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var NUX=new _.Hx("AUTH_SERVICE_TOKEN");var MvG=_.wM(["about:blank"]),noB;var EdO=new _.Hx("API_IFRAME_TOKEN"),c_I=new _.Hx("FETCH_FN_TOKEN"),UQF=new _.Hx("PARSE_FN_TOKEN"),X9X=new _.Hx("WINDOW_REQUEST_TOKEN");var wLK;wLK=new _.Hx("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.DQR=new _.Hx("MISC_UI_SHARED_FLAGS_TOKEN");var mQd=function(){};
mQd.prototype.getFlag=function(Y){if(Y.configType!==2)throw Error("pj");return odI(Y)};
var odI=function(Y){switch(Y.flagType){case "bool":return _.q(Y.flagName);case "int":return _.Co(_.cQ(Y.flagName));case "double":return _.cQ(Y.flagName);case "string":return _.UJ(Y.flagName);case "int32_list":return emG(Y.flagName);case "int64_list":return emG(Y.flagName).map(function(b){return _.Co(b)});
case "string_list":return _.XO(Y.flagName);default:throw Error("qj");}};var mW=function(Y,b,w){b=b===void 0?{}:b;L9.call(this,w===void 0?"uninitialized":w);this.env=Y;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];b.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=b.shouldWaitOnAsyncImmediate)};
_.P(mW,L9);mW.prototype.init=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(V,Y(b.env),2):(Y(b.env),V.jumpTo(2));if(V.nextAddress!=4)return b.jobSet?_.D(V,b.jobSet.completedResolver.promise,4):V.jumpTo(4);w=_.Kp();w.parkOrScheduleJob(function(){b.transition("rendering")},10,"ci");
_.om(V)})};
mW.prototype.initialRender=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(V,Y(b.env),2):(Y(b.env),V.jumpTo(2));if(V.nextAddress!=4)return b.jobSet?_.D(V,b.jobSet.completedResolver.promise,4):V.jumpTo(4);w=_.Kp();w.parkOrScheduleJob(function(){b.transition("rendered")},10,"cr");
_.om(V)})};
mW.prototype.afterRenderImmediate=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.D(V,Y(b.env),2):(Y(b.env),V.jumpTo(2));if(V.nextAddress!=4)return b.jobSet?_.D(V,b.jobSet.completedResolver.promise,4):V.jumpTo(4);w=_.Kp();w.parkOrScheduleJob(function(){b.transition("after-render-deferred")},10,"carml");
_.om(V)})};
mW.prototype.afterRenderDeferred=function(Y){var b=this;return _.c(function(w){Y(b.env);_.om(w)})};var I5s={},kjR=(I5s.rendered={priority:0,callback:function(Y){Fq8(Y.injector.resolve(ek))}},I5s);var l5X=!1,SYM=0,RZu=null,LaI=null;var h8R=new _.Hx("NETWORK_SLI_TOKEN");var xQX=function(Y,b,w,V){this.networkSli=Y;this.fetchFn=b;this.parseFn=w;this.requestFn=V};
xQX.prototype.fetch=function(Y,b,w){var V=this,H,f,E;return _.c(function(U){H=qtt(V,Y,b);E=(f=V.fetchFn)!=null?f:fetch;return U.return(E(H).then(function(X){return V.handleResponse(X,w)}).catch(function(X){_.Sk(X);
if((w==null?0:w.expectJsonStrict)&&X instanceof Zc&&X.errorType===1)return Promise.reject(X)}))})};
var SrI=function(Y,b,w,V){var H,f,E,U,X,I,k;return _.c(function(l){switch(l.nextAddress){case 1:return H=qtt(Y,b,w),_.ct(l,2),_.D(l,fetch(H),4);case 4:f=l.yieldResult;_.$u(l,3);break;case 2:throw _.mS(l),new Zc(2,"Failed to parse streaming response",H.url);case 3:if(!f.redirected&&!f.ok)throw(E=Y.networkSli)==null||E.failure(),new _.BQ("Streaming fetch request not ok",H.url);if(!f.body)throw new _.BQ("No response body in streaming response",H.url);U={};if(_.q("web_streaming_fast"))return X=f.body.getReader(),
l.return(skX(Y,X,U,V));I=f.body.pipeThrough(new TextDecoderStream).getReader();k=new _.XL;return l.return(Qkt(Y,I,k,No6,U,V))}})},qtt=function(Y,b,w){if(Y.networkSli){var V=_.ku(_.H0(b,"key"))||"/UNKNOWN_PATH";
Y.networkSli.start(V)}V=w;_.q("wug_networking_gzip_request")&&(V=KR6(w));var H;return new ((H=Y.requestFn)!=null?H:window.Request)(b,V)},skX=function(Y,b,w,V){var H,f,E,U,X,I,k,l,x,Q,Z;
return _.c(function(e){switch(e.nextAddress){case 1:H=new TextDecoder("utf-8"),f="",E=function(O){O=O.trim();O.length!==0&&O!=="]"&&O!=="["?(O.startsWith("[")&&(O=O.substring(1)),O.endsWith("]")&&(O=O.slice(0,-1)),O.endsWith(",")&&(O=O.slice(0,-1)),O=O.trim()):O=void 0;if(O)try{var L=JSON.parse(O);No6(w,L);V==null||V(w,L)}catch(r){throw new Zc(1,"Failed to parse streaming response",O);}},_.ct(e,2,3);
case 5:return _.D(e,b.read(),8);case 8:U=e.yieldResult;X=U.value;if(I=U.done)return f.length>0&&E(f),k=void 0,(k=Y.networkSli)==null||k.success(),e.return(w);f+=H.decode(X,{stream:!0});l=f.split("\n");f=l.pop()||"";x=_.N(l);for(Q=x.next();!Q.done;Q=x.next())Z=Q.value,E(Z);e.jumpTo(5);break;case 3:_.Ux(e);b.releaseLock();_.Dl(e,0);break;case 2:throw _.mS(e),new Zc(1,"Failed to parse streaming response");}})},Qkt=function(Y,b,w,V,H,f){var E,U,X,I,k,l,x,Q,Z;
return _.c(function(e){if(e.nextAddress==1)return _.D(e,b.read(),2);E=e.yieldResult;U=E.value;if(X=E.done)return(I=Y.networkSli)==null||I.success(),e.return(H);try{k=w.parse(U)}catch(O){throw new Zc(1,"Failed to parse streaming response",U);}if(k!=null)for(l=_.N(k),x=l.next();!x.done;x=l.next())Q=x.value,V(H,Q),Z=void 0,(Z=f)==null||Z(H,Q);return e.return(Qkt(Y,b,w,V,H,f))})};
xQX.prototype.handleResponse=function(Y,b){var w,V=(w=this.parseFn)!=null?w:JSON.parse;w=Y.text().then(function(H){if((b==null?0:b.jspbResponseCtor)&&Y.ok)return wDr(b.jspbResponseCtor,H);H=H.replace(")]}'","");if((b==null?0:b.expectJsonStrict)&&H)try{var f=V(H)}catch(U){throw new Zc(1,"JSON parsing failed after fetch");}var E;return(E=f)!=null?E:V(H)});
Y.redirected||Y.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),w=w.then(function(H){_.Sk(new _.BQ("Error: API fetch failed",Y.status,Y.url,H));return Object.assign({},H,{errorMetadata:{status:Y.status}})}));
return w};
xQX[VS]=[_.HQ(h8R),_.HQ(c_I),_.HQ(UQF),_.HQ(X9X)];var vdt=new _.Hx("NETWORK_MANAGER_TOKEN");var PCs=[1,2,4,8,16,30],BUt=function(Y){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=Y.maxTimeMs;this.maxFrameCount=Y.maxFrameCount===void 0?Math.ceil(60*Y.maxTimeMs/1E3):Y.maxFrameCount;Y=_.N(PCs);for(var b=Y.next();!b.done;b=Y.next())this.brokenFrameSummarizers.push(new Zob(b.value/60*1E3))},ndR=function(Y){var b=Y.frameCountInternal>=Y.maxFrameCount;
return Y.elapsedTimeMs>=Y.maxTimeMs||b},MKN=function(Y){for(var b=[],w=_.N(Y.brokenFrameSummarizers),V=w.next();!V.done;V=w.next())V=V.value,V=V.brokenFrameCount!==0?{severityMs:Math.round(V.targetFrameTimeMs),
eventCount:V.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(V.averageDurationBetweenEventsMs)}:void 0,V&&b.push(V);return{summaries:b,monitoringDurationMs:Math.round(Y.elapsedTimeMs)}};
_.up.Object.defineProperties(BUt.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 Zob=function(Y){this.targetFrameTimeMs=Y;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.up.Object.defineProperties(Zob.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var e8X=function(){};
e8X.prototype.start=function(Y,b){var w=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var V=new BUt({maxTimeMs:Y});this.monitor=V;this.lastSummaryInternal=void 0;this.metadataToLog=b;return new Promise(function(H){var f=function(E){if(E===void 0)w.stop(),H(void 0);else if(w.monitor!==V)E=Object.assign({},MKN(V),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),H(E);else{var U=w.monitor;if(!ndR(U)){U.frameCountInternal++;if(U.prevTime===void 0)U.startTime=
E;else for(var X=E-U.prevTime,I=_.N(U.brokenFrameSummarizers),k=I.next();!k.done;k=I.next()){k=k.value;var l=k.currTimeMs;k.currTimeMs+=X;X>k.targetFrameTimeMs+2&&(k.brokenFrameCount++,k.timeOfFirstBrokenFrameMs===void 0&&(k.timeOfFirstBrokenFrameMs=l),k.timeOfLastBrokenFrameMs=l)}U.prevTime=E}ndR(w.monitor)?H(w.stop()):_.Lb.addJob(f,5,0)}};
_.Lb.addJob(f,5,0)})};
e8X.prototype.stop=function(Y){if(!this.monitor)return this.lastSummaryInternal;var b=Object.assign({},MKN(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(b.monitoringDurationMs){Y=Y!=null?Y:this.metadataToLog;var w={droppedFramesSummary:b,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};Y&&(w[Y.type]=Y.data);_.RY("manualSmoothnessMeasurement",w)}this.monitor=void 0;this.lastSummaryInternal=b;this.metadataToLog=void 0;return b};_.p9Q=new _.Hx("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Oo7;Oo7=function(Y){this.JSC$16355_expiringStorage=new Mn(Y)};
_.tKR=function(Y){if(_.a6M()&&(Y=_.hgG(_.PQ()+"::"+Y)))return new Oo7(Y)};
Oo7.prototype.set=function(Y,b,w){w=w!==void 0?Date.now()+w:void 0;this.JSC$16355_expiringStorage.set(Y,b,w)};
Oo7.prototype.get=function(Y){return this.JSC$16355_expiringStorage.get(Y)};
Oo7.prototype.remove=function(Y){this.JSC$16355_expiringStorage.remove(Y)};var R87=new _.Hx("SESSION_STORAGE");_.o4=function(){};
_.o4.getInstance=function(){var Y=_.Aq("ytglobal.storage_");Y||(Y=new _.o4,_.wG("ytglobal.storage_",Y));return Y};
_.o4.prototype.estimate=function(){var Y,b,w;return _.c(function(V){Y=navigator;return((b=Y.storage)==null?0:b.estimate)?V.return(Y.storage.estimate()):((w=Y.webkitTemporaryStorage)==null?0:w.queryUsageAndQuota)?V.return(rVM()):V.return()})};
_.wG("ytglobal.storageClass_",_.o4);var iOt=!!(E0[1]&8192);var Kab=!1;var dQI=_.wM(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),FIA=_.wM(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var yF9={"/":_.Qy,"/?feature=ytca":_.Qy,"/feed/downloads":_.Rvg};var qq=function(Y,b,w){this.JSC$16367_upliftPromise=Y;this.store=b;this.JSC$16367_persistentStorePromiseAccessor=w};
qq.prototype.shouldPreferLocalResponse=function(Y){return Y.browseId==="FEdownloads"||Y.browseId==="FEsmart_downloads"&&_.q("kevlar_modern_downloads_page")?!0:!1};
qq.prototype.localInnertubeResponse=function(Y){var b=this;return _.c(function(w){return Y.browseId==="FEdownloads"?_.q("kevlar_modern_downloads_page")?w.return(LI7(b)):w.return(StR(b)):Y.browseId==="FEsmart_downloads"&&_.q("kevlar_modern_downloads_page")?w.return(a5t(b)):w.return(Promise.reject(Error("sj")))})};
qq.prototype.canProvideFallbackResponse=function(){return!0};
qq.prototype.localFallbackInnertubeResponse=function(Y){var b=this,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:return _.D(f,b.JSC$16367_persistentStorePromiseAccessor(),2);case 2:w=f.yieldResult;if(Y.browseId!=="SPaccount_downloads"||!w){f.jumpTo(3);break}return _.D(f,l_g(w),4);case 4:if(V=f.yieldResult)return f.return(_.Dz(V));case 3:return Y.browseId==="FEwhat_to_watch"?f.return(r_N(b)):(H=_.q("web_offline_continuation_automatic_retry")||_.q("web_offline_continuation_retry_button"))&&
Y.continuation?f.return(z8s(b)):f.return(WIR(b))}})};
var r_N=function(Y){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.JSC$16367_upliftPromise,2);b=_.Ywr(Y.store.getState().entities);return b.length?w.return(KIA(Y,b)):w.return(WIR(Y))})},StR=function(Y){var b,w;
return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$16367_upliftPromise,2);if(V.nextAddress!=3)return b=ioR([{offlineItemSectionRenderer:{}}]),_.D(V,A_t(Y,b),3);w=V.yieldResult;w.onResponseReceivedActions=[t9("REFRESH_DOWNLOADS")];return V.return(w)})},LI7=function(Y){var b,w,V,H,f,E,U,X,I,k,l,x,Q;
return _.c(function(Z){if(Z.nextAddress==1)return _.D(Z,Y.JSC$16367_upliftPromise,2);if(Z.nextAddress!=3)return b=Y.store.getState(),w=b.entities,V=_.Of(w),H=_.tr(w),f=_.paq(b),E=_.exI(b),U=_.OLa(b),X=_.HLM(w),I=_.B$(V),k=_.R8(w),l={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.if6(V,H,X,f,E,I,k,U),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},x=_.sa("DOWNLOADS",void 0,"Downloads"),_.D(Z,CCR(Y,l,x),3);Q=Z.yieldResult;
Q.onResponseReceivedActions=[t9("REFRESH_DOWNLOADS")];return Z.return(Q)})},a5t=function(Y){var b,w,V,H,f,E,U,X,I;
return _.c(function(k){if(k.nextAddress==1)return _.D(k,Y.JSC$16367_upliftPromise,2);if(k.nextAddress!=3)return b=Y.store.getState(),w=b.entities,V=_.Of(w),H=_.B$(V),f=_.R8(w),E={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Cs6(V),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},U=_.sa("SMART_DOWNLOADS",void 0,"Smart downloads"),X=W8B(H,f),_.D(k,CCR(Y,E,U,X),3);I=k.yieldResult;I.onResponseReceivedActions=[t9("REFRESH_DOWNLOADS")];
return k.return(I)})},WIR=function(Y){var b,w;
return _.c(function(V){if(V.nextAddress==1)return _.D(V,X5(Y.JSC$16367_upliftPromise,Y.store),2);b=V.yieldResult;w=ioR([m3M(b)]);return V.return(A_t(Y,w))})},z8s=function(Y){var b,w,V,H;
return _.c(function(f){if(f.nextAddress==1)return b={},w=Y.store.getState().continuation.continuationCommand,_.Fd(b,_.Wb,w),_.D(f,X5(Y.JSC$16367_upliftPromise,Y.store,b,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);V=f.yieldResult;H={};_.Fd(H,_.syU,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:V}}}],targetId:"browse-feedFEwhat_to_watch"});return f.return({responseContext:{},onResponseReceivedActions:[H]})})},ioR=function(Y){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:Y}}}}]}}},KIA=function(Y,b){var w,V;
return _.c(function(H){var f={contents:Rn(b)};w=f&&f.contents?f:{};_.q("kevlar_modern_downloads_page")&&(w=Object.assign({},_.yG6(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));V={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:w}}}]}};return H.return(A_t(Y,V))})},A_t=function(Y,b){var w,V;
return _.c(function(H){if(H.nextAddress==1)return _.D(H,Y.JSC$16367_persistentStorePromiseAccessor(),2);if(H.nextAddress!=3)return w=H.yieldResult,_.D(H,mw(w),3);V=H.yieldResult;return H.return({responseContext:{},contents:b,topbar:V})})},CCR=function(Y,b,w,V){var H,f;
return _.c(function(E){if(E.nextAddress==1)return _.D(E,Y.JSC$16367_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return H=E.yieldResult,_.D(E,mw(H),3);f=E.yieldResult;var U=E.return;var X=V;X=X===void 0?"":X;X={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:w}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.sa("SETTINGS",void 0,"Settings"),accessibilityText:_.sa("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:gb("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:X}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:w};
return U.call(E,{responseContext:{},contents:b,topbar:f,header:{pageHeaderRenderer:X}})})};var y_t=function(){this.moduleRegistry={};this.fetchCount=0};
y_t.prototype.isFetching=function(){return this.fetchCount>0};
var yY=function(Y,b){Y.moduleRegistry[b.toString()]={asyncId:b,isFetching:!1};return Y};
y_t.prototype.JSC$16378_loadModules=function(){for(var Y=this,b=new Map,w=[],V=_.N(_.BN.apply(0,arguments)),H=V.next();!H.done;H=V.next()){H=H.value;var f=this.moduleRegistry[H];f?f.resolver?b.set(H,f.resolver):(f.resolver=new _.mD,b.set(H,f.resolver),w.push(f.asyncId),f.isFetching=!0):(f=new _.mD,b.set(H,f),f.resolve(void 0))}w.length&&(this.fetchCount+=1,_.OV(_.Uq.getMultipleAsync.apply(_.Uq,_.Bt(w)).then(function(E){for(var U=0;U<w.length;U++){var X=E[U],I=Y.moduleRegistry[w[U].toString()];I.isFetching=
!1;I.resolver.resolve(X)}}).catch(function(E){for(var U=_.N(w),X=U.next();!X.done;X=U.next()){X=X.value;
var I=Y.moduleRegistry[X.toString()];I.resolver=void 0;I.isFetching=!1;b.get(X.toString()).reject(E)}}),function(){--Y.fetchCount}));
return Promise.all([].concat(_.Bt(b.values())).map(function(E){return E.promise}))};_.$i=new _.Hx("MODULE_REGISTRY_TOKEN");var $QQ={},jkb=($QQ.rendered={priority:0,callback:function(Y){a:{var b=void 0;try{var w;b:{if(_.wwG()){var V=_.lmL(_.PQ()+"::pom");if(V){var H=new Oq(V);break b}}H=void 0}var f=(w=H)==null?void 0:w.get("role_text");if(!f)break a;b={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:f}]}}}}}}catch(X){}b&&Y.injector.resolve(_.Nn).resolveCommand(b)}try{var E=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(E){var U=JSON.parse(E);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
U&&Y.injector.resolve(_.Nn).resolveCommand(U)}}catch(X){}}},$QQ);var GjA,TUX={},J_s=(TUX.initialized={priority:10,callback:function(){GjA=tJ()}},TUX.rendering={callback:function(Y){var b;
return _.c(function(w){if(w.nextAddress==1)return _.D(w,GjA,2);b=w.yieldResult;if(!b.endpoint)throw Error("uj`"+_.wB.location.href);Lk(Y,b);_.om(w)})}},TUX);var u$t={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(_.Bt(_.q("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(Y){var b=Y.stack;if(b.includes("chrome://")||b.includes("chrome-extension://")||Y.message.includes("chrome-extension://")||b.includes("moz-extension://")||b.includes("local.adguard.org")||b.includes("auctioneer3.50million.club")||b.includes("youtubedownloader")||b.includes("youtube_home_page")||b.includes("is_youtube_video_no_longer_available")||
b.includes("switchScreenSizeHack")||b.includes("yt_main_big_banner.js")||b.includes("YouTubeCenter.js")||b.includes("/mytube.js")||b.includes("JSON.parseWrapper")||b.includes("/inj_js/common.js")||b.includes("firebug-lite")||b.includes(".repl.co/")||b.includes("linkfix")||b.includes("playAfterAd")||Y.message.includes("Access is denied for this document")&&b.includes("<anonymous>")||Y.fileName==="user-script"||Y.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
b.includes("<anonymous>"))return!0;if(b.includes("https://www.youtube.com"))return!1;Y=b.split("\n");if(!Y.length)return!1;if(Y.length<=3&&b.includes("s.onloadeddata"))return!0;b=0;for(var w=_.N(Y),V=w.next();!V.done;V=w.next())V=V.value,(V.includes("https://")||V.includes("http://"))&&b++;return b/Y.length>.95},
weight:0},{callback:function(Y){return Y.message==="Unknown Error"&&Y.name.indexOf("NS_")===0},
weight:100},{callback:function(Y){if(!_.kv)return!1;var b=Y.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||Y.message.includes("available to complete this operation"),w=Y.stack.includes("webcomponents")&&Y.message==="Object doesn't support this action";Y=Y.message.includes("object that does not implement interface Element");return b||w||Y},
weight:0},{callback:function(Y){return Y.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(Y){return Y.message==="Operation is not supported"&&(Y.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(Y){return Y.stack.includes("eval code (eval (code:1:1)")||Y.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(Y){return Y.message.includes("Permission denied")&&Y.stack.includes("this.domHandler")?!0:Y.name.includes("TypeError")&&Y.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(Y){if(!Y.stack)return!1;var b=Y.stack.trim().split("\n");b.length&&b[0].endsWith("Error: "+Y.message)&&b.shift();b.length&&b[b.length-1].includes("at window.onerror (")&&b.pop();if(!b.length)return!0;if(Y.message==="Script error.")return b[0].includes("www.youtube.com")||b.length>=2&&b[0].startsWith("at new")&&b[1].startsWith("at window.onerror");if(Y.message==="Unexpected token")return!0;Y=_.N(b);for(b=Y.next();!b.done;b=Y.next())if(b=b.value,!(b.includes("<anonymous>")||
b.startsWith("load@")||b.startsWith("global code@")||b.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(Y){return Y.message==="Cannot read property 'experiments'"&&Y.stack.includes("/s/player/")},
weight:500},{callback:function(Y){return Y.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(Y){return Y.stack.includes("/embed.js")?(Y.params&&Y.params&&(Y.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.q("use_error_suppression"))var Y=_.zO("SUPPRESS_CLIENT_ERRORS",!1);else{if(Y=_.s0)Y=/Chrome\/(\d+)/.exec(_.kb()),Y=(Y?parseFloat(Y[1]):NaN)>=66;Y=!(Y||_.qX&&_.xv(65)||_.ra&&_.xv(12.1)||Yr&&_.xv(79))}return Y},
weight:500}]};var YXR={},bgF=(YXR.initialized={priority:10,callback:function(Y){Y.injector.addProvider({provide:OwU,useValue:Y.root});Y.injector.addProvider({provide:a3t,useValue:oOI});Y.injector.addProvider({provide:rD9,useValue:u$t});var b={};Y.injector.addProvider((b.provide=zIQ,b.useFactory=function(w,V){return function(){Omb(w,V)}},b[VS]=[a3t,
rD9],b));Y.injector.addProvider({provide:Ix,useClass:Ix})}},YXR);var wIA={},VXs=(wIA.initialized={priority:3,callback:function(){var Y;if(Y=U4I()){Y=Y.replace("/",".");var b=_.P0();b.set("tz",Y);b.save();Y=!0}else Y=!1;Y||(Y=_.P0(),Y.set("utco",-Math.floor((new Date).getTimezoneOffset())),Y.save())}},wIA);var HgI={},gsd=(HgI.initialized={priority:10,callback:function(Y){Y.injector.resolve(Ix).start();Y=_.$y();var b=_.Wf("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Wf("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Wf("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Wf("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.lf(_.FVL(),{mainAppWeb:Object.assign({},Y,{pageType:b})});_.lf(SVt(),{mainAppWeb:Object.assign({},Y,{pageType:b})});
_.lf(aqb(),{mainAppWeb:Y});_.lf(rSu(),{mainAppWeb:Y});$nj(function(){_.hJ(aqb(),"FAILURE");_.hJ(rSu(),"FAILURE")});
HNg();g4v();C$M()}},HgI);var fAg={},NtR=(fAg.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.S1("dl"),_.Kp().processSignal("pcl");else{var Y=function(){_.S1("dl");_.Kp().processSignal("pcl");window.removeEventListener("load",Y)};
window.addEventListener("load",Y)}}},fAg);var EsI={},cOX=(EsI.rendering={priority:0,callback:function(){var Y=_.Kp();Y.parkOrScheduleJob(function(){Y.processSignal("eocs")},10,"eor",5E3)}},EsI);var UFb=function(){};
_.P(UFb,zA);
UFb.prototype.resolveCommand=function(Y,b){var w,V,H,f,E,U,X,I;return _.c(function(k){H=(w=_.v(Y,_.H9k))==null?void 0:(V=w.dialog)==null?void 0:V.commentReplyDialogRenderer;if(!H)throw new _.BQ("No dialog in createCommentReplyDialogEndpoint");E=(f=b.form)==null?void 0:f.event;if(!E)throw new _.BQ("Event not passed in when resolving command");U=_.N(E.composedPath());for(X=U.next();!X.done;X=U.next())if(I=X.value,I.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||I.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return I.showReplyDialog(H),k.return();
_.om(k)})};var I4=function(Y){this.pageRequestService=Y;this.JSC$16393_prefetchCoordinator=ZTK()};
_.P(I4,zA);I4.prototype.resolveCommand=function(Y){var b=this,w,V,H,f;return _.c(function(E){if(E.nextAddress==1){w=_.v(Y,Sgd);if((V=w)==null||!V.taskId)throw Error("vj");H=w.taskId;_.ct(E,2);return _.D(E,_.FLK(b.pageRequestService,Y,{},"").then(function(U){if(!U)throw Error("wj");},function(U){throw Error("xj`"+U);
}),4)}if(E.nextAddress!=2)return MA8(b.JSC$16393_prefetchCoordinator,H),_.$u(E,0);
f=_.mS(E);yL(b.JSC$16393_prefetchCoordinator,H,f);_.om(E)})};
I4[VS]=[Mq];var kN=function(Y){this.innertubeTransportService=Y};
_.P(kN,zA);kN.prototype.resolveCommand=function(Y){var b=this,w,V;return _.c(function(H){w=_.v(Y,rxd);if(w.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||w.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")V=w.boolValue?2:1,_.Vy.getInstance().setState(V,!0,!0);return _.D(H,_.$_(b.innertubeTransportService,Y),0)})};
kN[VS]=[_.Sy];var ld={},XII=(ld.addToPlaylistEndpoint=H$(qI),ld.addToToastAction=H$(MK),ld.adsControlFlowOpportunityReceivedCommand=H$(wD),ld.captionLanguageSelectActionCommand=H$(dD),ld.captionPickerEndpoint=H$(Fv),ld.changeMiniAppPlayStateCommand=H$(s8),ld.changeTimelyActionVisibilityCommand=H$(nv),ld.channelCreationFormEndpoint=H$(oJ),ld.clearLocationCommand=H$(x9),ld.clearUrlParamCommand=H$(QM),ld.copyLinkCommand=H$(zX),ld.copyTextEndpoint=H$(gD),ld.createCommentReplyDialogEndpoint=a4v(UFb),ld.createPlaylistServiceEndpoint=
H$(We),ld.dismissDialogEndpoint=H$(Pe),ld.entityUpdateCommand=H$(NI),ld.feedbackEndpoint=H$(U8),ld.getAnswerCommand=H$(Rfk),ld.getPaymentsClientTokenCommand=H$(Oi),ld.getTranscriptEndpoint=H$(ee),ld.googlePaymentBillingCommand=H$(tM),ld.googlePaymentPurchaseManagerCommand=H$(Rp),ld.hideEngagementPanelEndpoint=H$(Z$),ld.hideSnackbarCommand=H$(mf),ld.insertRichSectionCommand=H$(k9),ld.listMutationCommand=H$(lB),ld.logGtmCommand=H$(IJ),ld.notifyDropdownOptionSelectedCommand=H$(ve),ld.openAdAllowlistInstructionCommand=
H$(_.VM),ld.openOnePickAddVideoModalCommand=H$(KG),ld.persistSubscriptionsDisplayPreferencesCommand=H$(jN),ld.pingingEndpoint=H$(He),ld.playlistEditEndpoint=H$(Ai),ld.playlistVotingRefreshPopupCommand=H$(CG),ld.refreshPanelEndpoint=H$(Be),ld.saveImageToDeviceEndpoint=H$(fG),ld.scrollToSectionEndpoint=a4v(dpr),ld.seekToVideoTimestampCommand=H$(LG),ld.selectCountryCommand=H$(GX),ld.setCookieCommand=H$(TX),ld.setLocalStorageCommand=H$(Ip),ld.setPrefStorageEntryCommand=H$(uB),ld.setSettingEndpoint=H$(kN),
ld.sfvAudioItemPlaybackCommand=H$(SN),ld.shareImageCommand=H$(YR),ld.sharingProviderDataCommand=H$(be),ld.showCaptionLanguageSelectActionCommand=H$(aJ),ld.showDialogCommand=H$(eN),ld.showEngagementPanelEndpoint=H$(pG),ld.showSheetCommand=H$(O8),ld.showSnackbarCommand=H$(op),ld.showTransientPlayerScrimOverlayCommand=H$(rD),ld.submitFormWithValidationFlowCommand=H$(mb),ld.talkToRecsDeselectCommand=H$(kR),ld.talkToRecsNextCommand=H$(le),ld.talkToRecsSelectCommand=H$(hM),ld.talkToRecsUpdateTextCommand=
H$(Bj),ld.toggleEngagementPanelCommand=H$(ti),ld.undoFeedbackEndpoint=H$(D$),ld.updateEngagementPanelContentCommand=H$(RJ),ld.updateUrlParamCommand=H$(pv),ld.verifyCommand=H$(oJ),ld.webNativeShareCommand=H$(wo),ld.webSubmitFormCommand=H$(yM),ld.ACK_PLAYABLES_3P_DATA_CONSENT=H$(VH),ld.CANCEL_NAVIGATION=H$(Hj),ld.COPY_SHARE_URL=H$(go),ld.MINI_APP_EXIT_DIALOG_SEEN=H$(NK),ld.MINI_APP_OPEN_URL=H$(fv),ld.REQUEST_MINI_APP_FULLSCREEN=H$(Ei),ld.RESUME_NAVIGATION=H$(cj),ld.SHARE_PLAYABLE_WITH_HIGH_SCORE=H$(Ui),
ld.TELL_US_WHY=H$(Xv),ld);_.q("web_enable_prefetching_videos_on_home")&&(XII.prefetchWatchCommand=H$(I4),XII.registerTasksCommand=H$(jT));_.q("enable_share_panel_navigation_logging_fix_on_web")&&(XII.shareEntityServiceEndpoint=H$(nG));var Wu9=Object.assign({},XII);var DFQ={},mFt=(DFQ.initialized={priority:10,callback:Ud6},DFQ);var osO={},IAb=(osO.initialized={callback:function(Y){var b={},w={};YFL().install((b.document_disposed={callback:function(){_.q("finalize_all_timelines")?gWa():d5();dOv("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.X4g();var V=Y.injector.resolve(Ix);V.intervalId!==void 0&&(V.intervalId&&_.Lb.cancelJob(V.intervalId),V.intervalId=void 0,--V.currentPartitionIndex,V=x0k(V),V>0&&nVU({mainAppWeb:_.$y(),survivalSli:{partitionMinute:V,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));hJo($U);j7!=null&&
j7.flush();EC&&EC.snapshotAndFlush();V=_.N(Se5.values());for(var H=V.next();!H.done;H=V.next())H.value.snapshotAndFlush()}},b),(w.flush_logs={callback:function(){_.dh()}},w))}},osO);var ktX={},lAg=(ktX.rendered={priority:0,callback:function(){var Y=new d6U;Y.increment("STARTED");if(_.zO("LOGGED_IN")&&_.zO("SERVER_VERSION")!=="test"&&_.zO("SERVER_VERSION")!=="dev"&&!xro()&&!hq$()){Y.increment("EXECUTING");var b=document.createElement("iframe");b.style.display="none";_.hYg(b,2,_.PN("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.zO("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(b);Y.increment("DONE")}}},ktX);var hRN={},xFQ=(hRN.rendered={callback:function(){ZTK().resume()}},hRN);var qXd={acknowledgeChannelTouStrikeCommand:nX(UF),addToPlaylistServiceEndpoint:nX(NJ),addToPlaylistEndpoint:nX(NJ),addUpcomingEventReminderEndpoint:nX(ZI),browseEndpoint:nX(N6t),channelCreationFormEndpoint:nX(VF),channelCreationServiceEndpoint:nX(H4),claimLegacyYoutubeChannelEndpoint:nX(ie),clearSearchHistoryEndpoint:nX(lm),clearWatchHistoryEndpoint:nX(ha),commerceActionCommand:MC(MJ),createBackstagePostEndpoint:nX(Se),createBroadcastCommand:nX(B4),createCommentEndpoint:nX(ue),createCommentReplyEndpoint:nX(JM),
createLiveChatPollEndpoint:nX(nw),createPlaylistServiceEndpoint:nX(EA),crossAccountChannelTransferEndpoint:nX(sF),deleteLiveChatMessageCommand:nX(M0),deletePlaylistEndpoint:nX(cu),deleteVideoEndpoint:nX(Pu),dismissalEndpoint:nX(XS),feedbackEndpoint:nX(DI),flagEndpoint:nX(ID),getAccountSwitcherEndpoint:nX(q0),verifyCommand:nX(Lv),getAccountsListInnertubeEndpoint:nX(v4),getCommentsFromInboxCommand:nX(im),getDownloadActionCommand:nX(Tc),getFlowCommand:MC(kn),getKidsBlocklistPickerCommand:nX(kf),getNotificationMenuEndpoint:nX(U59),
getPaymentInstrumentsParamsCommand:nX(d4),getPaymentsClientTokenCommand:MC(MJ),getPdgBuyFlowCommand:nX(g4),getReportFormEndpoint:nX(lE),getSearchInVideoCommand:nX(qJ),getAnswerCommand:nX(xf),getSurveyCommand:nX(vu),getTranscriptEndpoint:nX(Bu),getPostVideoPreviewEndpoint:nX(ro),decorateMessageEndpoint:nX(ap),likeEndpoint:nX(gZ),liveChatActionEndpoint:nX(ta),liveChatEndpoint:nX(OF),liveChatItemContextMenuEndpoint:nX(eE),liveChatPurchaseMessageEndpoint:nX(Rc),liveChatReplayEndpoint:nX(pw),manageLiveChatUserEndpoint:nX(FS),
metadataUpdateCommand:nX(W4),moderateLiveChatEndpoint:nX(Lw),modifyChannelNotificationPreferenceEndpoint:nX($n),notificationOptOutEndpoint:nX(jE),openSuperStickerBuyFlowCommand:nX(dZ),performCommentActionEndpoint:nX(je),playlistEditEndpoint:nX(Xn),playlistEditorEndpoint:nX(UA),profileCardCommand:nX(P4),recordNotificationInteractionsEndpoint:nX(Gc),reelWatchEndpoint:nX(DV),refreshPanelEndpoint:nX(um),removeUpcomingEventReminderEndpoint:nX(SE),resolveLocationCommand:nX(zc),revealBusinessEmailCommand:nX(AM),
searchEndpoint:nX(_.XFo),sendLiveChatMessageEndpoint:nX(ac),sendLiveChatVoteEndpoint:nX(rZ),setSettingEndpoint:nX(fw),shareEntityServiceEndpoint:MC(c4),sharingProviderDataCommand:nX(QL),showEngagementPanelEndpoint:nX(Yf),showMoreDrawerCommand:nX(w4),showSheetCommand:nX(VL),showDialogCommand:nX(bE),subscribeEndpoint:nX(N0),transcriptSubmitCaptionCorrectionCommand:nX(ZV),undoFeedbackEndpoint:nX(oc),unsubscribeEndpoint:nX(EF),updateBackstagePostEndpoint:nX(Wj),updateCommentEndpoint:nX(bm),updateCommentReplyEndpoint:nX(Yn),
updateCommentsSettingsEndpoint:nX(wZ),updateCreatorChannelInnertubeCommand:nX(yH),updateKidsBlacklistEndpoint:nX(h$),updateEngagementPanelContentCommand:nX(Hu),updatePdgFeatureEnablementCommand:nX(f0),updatedMetadataEndpoint:nX(Kw),validateChannelHandleCommand:nX($R),updateChannelPageSettingsEndpoint:nX(Cv),verifyAgeEndpoint:nX(Ic),watchEndpoint:MC(qx),whitelistEditEndpoint:nX(n0),ypcCancelRecurrenceEndpoint:nX(eT),ypcCompleteTransactionEndpoint:nX(p0),ypcFixInstrumentEndpoint:nX(t$),ypcGetCartEndpoint:nX(OA),
ypcGetOffersEndpoint:nX(RD),ypcHandleTransactionEndpoint:MC(Fn),ypcLogWalletAnalyticDataEndpoint:nX(L0),ypcOffersEndpoint:nX(ST),ypcPauseSubscriptionCommand:nX(aD),ypcRedeemCodeEndpoint:nX(r4),ypcResumeSubscriptionCommand:nX(z4),ypcUpdateFopEndpoint:nX(t$)},hN={},s7t=(hN.GET_ACCOUNT_MENU=nX(QF),hN.GET_NOTIFICATIONS_MENU=nX(cDt),hN.GET_NOTIFICATIONS_INBOX=nX(Aa),hN.GET_UNSEEN_NOTIFICATION_COUNT=nX(yF),hN.GET_USER_MENTION_SUGGESTIONS=nX(zB),hN.LOAD_GUIDE=nX(EBk),hN.SUBMIT_FEEDBACK=nX(mT),hN),xN={},
Q7s=(xN.CONTINUATION_REQUEST_TYPE_BROWSE=nX(Kv),xN.CONTINUATION_REQUEST_TYPE_SEARCH=nX(sA),xN.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=nX(QZ),xN.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=nX(xn),xN.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=nX(TB),xN.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=nX(GB),xN.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=nX(oD),xN.CONTINUATION_REQUEST_TYPE_GET_PANEL=nX(Ja),xN),vsN={player:MC(qx),watchNext:nX(sq)},PQt={player:MC(qx),reelItemWatch:nX(DV),reelWatchSequence:nX(mY)},
ZgR={watchEndpoint:MC(v5)},BtF={commandEndpointMap:qXd,signalEndpointMap:s7t,continuationEndpointMap:Q7s,watchEndpointMap:vsN,reelWatchEndpointMap:PQt,streamingEndpointMap:ZgR};var nst,MXd,eRI,pIs={disableAllTransitions:(MXd=(nst=window).matchMedia)==null?void 0:(eRI=MXd.call(nst,"(prefers-reduced-motion: reduce)"))==null?void 0:eRI.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var XAq={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var mdM=["videoPrimaryInfoRenderer","title"],o4G=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Ogs;Ogs=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.tXX=_.b8(function(Y){Y=_.ur(Y,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var b=Y.data,w=Y.playlistData,V=Y.expanded,H=Y.onExpandClick,f=Y.isReadyToResume,E=function(){var k;return!((k=w())==null||!k.contents)},U=function(){var k=w();
return k&&k.totalVideos&&k.currentIndex!==void 0?k.currentIndex+1+" / "+k.totalVideos:""};
Y=_.Q_(function(){_.q2(_.fH().resolve(_.Ck));return!1});
var X=_.Q_(function(){E()&&H&&H()}),I={};
return _.m("ytd-miniplayer-info-bar",{class:_.hj("ytdMiniplayerInfoBarHost",(I.ytdMiniplayerInfoBarHasPlaylistData=E,I)),"on:click":X},_.m("div",{class:"ytdMiniplayerInfoBarContent"},_.m("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":Y},_.m(_.wv,{text:function(){var k=b();var l=w();if(l==null?0:l.contents){var x;k=(x=_.Yqv(l))==null?void 0:x.title}else k=k==null?void 0:k.miniplayerTitle;return kJr(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.m("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.m(_.h,{cond:f,then:function(){return _.m(O0_,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Ogs})}}),_.m("h1",null,_.m(_.wv,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var k=b();var l=w();k=f()?{simpleText:_.sa("CONTINUE_WATCHING",void 0,"Continue watching")}:(l==null?0:l.contents)?l.titleText:k==null?void 0:k.miniplayerSubtitle;return kJr(k)},
noEndpoints:!0,ellipsisTruncate:!0})),_.m(_.h,{cond:function(){return!!U()&&!f()},
then:function(){return _.m("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.m("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.m("span",null,U))}}))),_.m(_.h,{cond:E,
then:function(){return _.m("div",{class:"ytdMiniplayerInfoBarExpand"},_.m(HT,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(k){H&&(H(),k.stopPropagation())}}},
iconName:function(){return V()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var RRt;RRt=_.b8(function(Y){return _.m("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.m(HT,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:Y.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.dFN=_.b8(function(Y){Y=_.ur(Y,{playabilityStatus:void 0,isDisabled:!1});var b=Y.size,w=Y.playabilityStatus,V=Y.isDisabled,H=_.GM("div");Y=_.N(_.kw(void 0,void 0,"bJr0Se"));var f=Y.next().value,E=Y.next().value;Y=_.rn(_.Qm);var U=!1,X=function(){return b().height<=0};
_.tl(function(){var x=b(),Q=X(),Z=f();Z&&!Q&&Z.setInternalSize(x.width,x.height)},"OUOyKb");
_.tq(function(){var x,Q,Z;return _.c(function(e){if(e.nextAddress==1){x=_.fH().resolve(_.Ck);Q=x.getPlayerElement();if(!x.isMiniplayerActive()||!Q||!H.value)return e.return();Q.appendTo(H.value);return _.D(e,Q.getPlayerPromise(),2)}Z=e.yieldResult;Z.setSizeStyle(!1,!0);E(Z);_.om(e)})});
_.R2(function(){I()});
_.tl(function(){var x=f();if(x)if(V()){var Q=x.getPlayerState();(U=Q===-1||Q===1||Q===3)&&x.pauseVideo()}else I()},"KKHe5");
var I=function(){if(U){U=!1;var x;(x=f())==null||x.playVideo()}},k=_.Q_(function(){_.q2(_.fH().resolve(_.Ck))}),l={};
return _.m("ytd-miniplayer-player-container",{class:_.hj("ytdMiniplayerPlayerContainerHost",(l.ytdMiniplayerPlayerContainerHidden=X,l.ytdMiniplayerPlayerContainerHostShortsPip=Y,l)),style:_.Bb({width:function(){return b().width+"px"},
height:function(){return b().height+"px"}})},_.m("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:H}),_.m(_.h,{cond:function(){return!!w()&&!_.f6u(w())},
then:function(){return _.m(BgU,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var x;return((x=w())==null?void 0:x.errorScreen)||null},
status:function(){var x;return((x=w())==null?void 0:x.status)||null}})}}),_.m(_.h,{cond:V,
then:function(){return _.m("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":k},_.m(RRt,{onTap:function(){_.fH().resolve(_.Ck).close()}}))}}))},"we");_.FdI=_.b8(function(Y){var b=Y.toastData;var w=_.GM("ytd-miniplayer-toast");Y=_.N(_.Zp(function(){return!!b()}));
var V=Y.next().value,H=Y.next().value;Y=_.N(_.kw(!1,void 0,"xkrBze"));var f=Y.next().value,E=Y.next().value,U=function(){var k;return _.Tx((k=b())==null?void 0:k.data.title)};
_.dx(function(){_.Ci.requestAvailability();b()&&H(!1)});
var X,I;_.tl(function(){V()&&(_.Ua(w.value,"iron-announce",{text:b().label+" "+U()}),X&&_.Lb.cancelJob(X),X=_.Lb.addLowPriorityJob(function(){E(!0)},2500))},"OTdL1e");
_.tl(function(){f()&&(I&&_.Lb.cancelJob(I),I=_.Lb.addLowPriorityJob(function(){H(!1);E(!1)},300))},"yybqib");
Y={};return _.m("ytd-miniplayer-toast",{el:w,class:_.hj("ytdMiniplayerToastHost",(Y.ytdMiniplayerToastOpening=function(){return V()},Y.ytdMiniplayerToastClosing=function(){return f()},Y))},_.m(_.h,{cond:function(){var k;
return(k=b())==null?void 0:k.data},
then:function(k){return _.m(ahd,{className:"ytdMiniplayerToastThumbnail",data:k,width:78})}}),_.m("div",{class:"ytdMiniplayerToastInfo"},_.m("div",{class:"ytdMiniplayerToastLabel"},function(){var k;
return(k=b())==null?void 0:k.label}),_.m("div",{class:"ytdMiniplayerToastTitle"},U)))},"xe");var Bda;var pAa=new Set,etb=null;var t2u=null;var SXX=_.b8(function(Y){var b=Y.progressState;var w=Y.multiMarkersPlayerBarRenderer;var V=Y.progressBarWidth;var H=function(){return L1K(w())},f=function(){return rCG(b())},E=function(){return V()*(b().playedTime/b().videoDuration)};
return _.m("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.m(_.Bf,{each:H},function(U,X){return _.m(LdQ,{modifiedProps:f,chapters:H,index:X,playedProgressWidth:E,backgroundGradientPosition:function(){var I=f(),k=H(),l=X(),x=E();return(I.playedTime-Kk(_.v(k[l],WK)))/I.playedTime*x}})}))},"ye"),LdQ=_.b8(function(Y){var b=Y.modifiedProps;
var w=Y.chapters;var V=Y.index;var H=Y.playedProgressWidth;var f=Y.backgroundGradientPosition;Y={};Y=_.hj("ytChapteredProgressBarChapteredPlayerBarChapter",(Y.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return E().isScrubbing},Y.ytChapteredProgressBarHoveredMacroMarker=function(){return E().scrubberHovering},Y.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return E().videoPosition==="seen"},Y));
var E=function(){return ztI(b(),w(),V())},U=function(){var X=b();
var I=w(),k=V();if(ztI(X,I,k).videoPosition!=="active")X=0;else{var l=Kk(_.v(I[k],WK));X=(X.playedTime-l)/((Kk(_.v(I[k+1],WK))||X.videoDuration)-l)}return X};
return _.m("div",{class:Y,style:_.Bb({width:function(){var X=b(),I=w(),k=V(),l=_.v(I[k],WK);I=_.v(I[k+1],WK);return(I?Kk(I)-Kk(l):X.videoDuration-Kk(l))/X.videoDuration*100+"%"},
"background-color":function(){a:{var X=E();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(W1e(E())?H():"")+"px"},
"background-position-x":function(){return(W1e(E())?f():"")+"px"}})},_.m("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var X=b(),I=w(),k=V();if(ztI(X,I,k).videoPosition==="seen")var l=0;else l=Kk(_.v(I[k],WK)),I=Kk(_.v(I[k+1],WK))||X.videoDuration,X=X.videoDuration*X.percentLoaded,l=I<=X?1:l>=X?0:(X-l)/(I-l);return"width: "+l*100+"%"}}),_.m("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Bb({width:function(){return U()*100+"%"},
"background-size":function(){return(W1e(E(),U())?H():"")+"px"},
"background-position-x":function(){return(W1e(E(),U())?f():"")+"px"}})}))},"ze");var aAX=function(Y,b){b=b===void 0?bAk:b;var w,V=[],H,f=!1;return function(){var E=_.BN.apply(0,arguments);if(f&&w===this&&b(E,V))return H;H=Y.apply(this,E);f=!0;w=this;V=E;return H}}(function(Y){var b=Y.heatMarkers,w=Y.minHeightDp===void 0?0:Y.minHeightDp,V=Y.maxHeightDp===void 0?60:Y.maxHeightDp;
var H=H===void 0?!1:H;var f=1E3/b.length;Y=[];Y.push({x:0,y:100});for(var E=0;E<b.length;E++){var U=void 0,X=((U=_.v(b[E],Sw$))==null?void 0:U.heatMarkerIntensityScoreNormalized)||0;U=(E+.5)*f;X=100-_.rp(X*100,w/321*100,V/321*100);E!==0||H||Y.push({x:0,y:X});Y.push({x:U,y:X});E===b.length-1&&Y.push({x:1E3,y:X})}Y.push({x:1E3,y:100});b="";for(w=0;w<Y.length;w++)H=Y[w],w===0?H="M "+H.x.toFixed(1)+","+H.y.toFixed(1):(V=HOB(Y[w-1],Y[w-2],H),f=HOB(H,Y[w-1],Y[w+1],!0),H=" C "+(V.x.toFixed(1)+","+V.y.toFixed(1)+
" "+f.x.toFixed(1)+","+f.y.toFixed(1)+" "+H.x.toFixed(1)+","+H.y.toFixed(1))),b+=H;return b});var rOb=_.b8(function(Y){var b=Y.progressBarProps;var w=Y.config;var V={};Y=_.hj("ytHeatSeekerHost",(V.ytHeatSeekerHighContrast=Y.highContrast,V));var H=function(){return shg(w().chapterData)};
return _.m("yt-progress-bar-heatseeker",{class:Y,style:function(){var f;return"height: 320px; display: "+(b().isDragging&&((f=H())==null?0:f.heatMarkers)?"block":"none")}},_.m(_.h,{cond:H,
then:function(f){return _.m(_.h,{cond:function(){return f().heatMarkers},
then:function(){return _.m("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.m("path",{d:function(){return aAX(f())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var zRs=_.b8(function(Y){var b=Y.progressBarProps;var w=Y.config;Y={};Y=_.hj("ytProgressBarLineProgressBarLine",(Y.ytProgressBarLineProgressBarLineRounded=function(){return w().rounded},Y.ytProgressBarLineProgressBarLineBottomInset=function(){return w().position===2},Y));
return _.m("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.m("div",{class:Y},_.m("div",{class:"ytProgressBarLineProgressBarBackground"}),_.m("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+b().percentLoaded*100+"%"}}),_.m("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var V=b();return"width: "+(V.videoDuration?_.rp(V.hoveredTime/V.videoDuration,0,1):0)*100+"%"}}),_.m("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+hte(b())*100+"%"}})))},"Be");
zRs.idomCompat=!0;var WdO=_.b8(function(Y){var b=Y.progressBarProps;var w=Y.playheadData;var V=Y.interpolateDotPosition;var H=Y.hidePlayhead;Y={};var f=_.hj("ytProgressBarPlayheadProgressBarPlayheadDot",(Y.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return b().isDragging},Y.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!b().isDragging&&H()},Y));
return _.m("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Bb({"margin-left":function(){return xdu(b())*100+"%"},
transform:function(){return"translateX(-"+(V()?xdu(b())*12:6)+"px)"}})},_.m(_.h,{cond:function(){var E;
return(E=_.JU(w)())==null?void 0:E.playheadImage},
then:function(E){var U={};return _.m("div",{class:_.hj("ytProgressBarPlayheadProgressBarPlayheadCustom",(U.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return b().isDragging},U.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!b().isDragging&&H()},U)),
style:_.Bb({"transform-origin":function(){return(V()?xdu(b())*20:10)+"px center"}})},_.m(_.Y_,{data:E,
alt:"","aria-hidden":"true"}))},
else:function(){return _.m("div",{class:f,style:_.Bb({"transform-origin":function(){return(V()?xdu(b())*12:6)+"px center"}})})}}))},"Ce");
WdO.idomCompat=!0;var sl=function(Y,b,w,V,H,f){this.getProgressBarRect=Y;this.updateProgressBarRect=b;this.getFilmstripYPosition=w;this.setFineScrubbingDraggedTime=V;this.updateFilmStripDraggedYDistance=H;this.resetFilmStripYOffset=f;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.Vm(this.onThrottledSeek,100,this)},Kds=function(Y,b,w){return function(V){Y.handleClick(V,b(),w())}},CQ7=function(Y,b){return function(w){igg(Y,
w,AOR(w),b())}},yOI=function(Y,b){return function(w){igg(Y,w,{x:w.clientX,
y:w.clientY},b())}},j7N=function(Y,b,w){return function(V){var H=b(),f=w();
$Fs(Y,V,AOR(V),H,f,!0);if(f.onTouchMove)f.onTouchMove(H)}},TtO=function(Y,b,w){return function(V){GtF(Y,V,b(),w())}},JOX=function(Y,b){return function(){Y.handleMouseLeave(b())}},ubO=function(Y,b,w){return function(){var V=b(),H=w();
Qx(Y,V,H);if(H.onTouchEnd)H.onTouchEnd(V)}},Y37=function(Y,b,w){return function(){var V=b(),H=w();
Qx(Y,V,H);if(H.onTouchEnd)H.onTouchEnd(V)}},b3R=function(Y,b,w){return function(){Qx(Y,b(),w())}},wDF=function(Y){return function(b){if(b.keyCode===39||b.keyCode===38){var w,V;
(w=Y())==null||(V=w.playerApi)==null||V.seekBy(5,void 0,void 0,72)}else if(b.keyCode===37||b.keyCode===40){var H,f;(H=Y())==null||(f=H.playerApi)==null||f.seekBy(-5,void 0,void 0,71)}}},VQI=function(Y,b,w){return function(V){!w().disableScrubbing&&Y.startPosition&&GtF(Y,V,b(),w())}},H37=function(Y,b,w){return function(){if(!w().disableScrubbing)if(Y.startPosition){var V=b(),H=w();
Qx(Y,b(),w());if(H.onTouchEnd)H.onTouchEnd(V)}else b().setState({isDragging:!1})}},AOR=function(Y){Y=Y.touches[0];
return{x:Y.clientX,y:Y.clientY}},GtF=function(Y,b,w,V){if(b.buttons!==1){if(b.movementX||b.movementY)b.preventDefault(),b.stopPropagation(),Y=gMQ(Y,w,b.clientX),w.setState({isHovering:!0,
hoveredTime:Y*w.videoDuration})}else fgI(w),$Fs(Y,b,{x:b.clientX,y:b.clientY},w,V,!1)};
sl.prototype.handleMouseLeave=function(Y){fgI(Y)};
var fgI=function(Y){Y.isHovering&&Y.setState({isHovering:!1,hoveredTime:0})},igg=function(Y,b,w,V){Y.startPosition||(Y.startPosition=w,Y.updateProgressBarRect(),Y.controlsWereVisibleBeforeDragging=V.controlsVisible,b.stopPropagation(),_.q("medium_progress_bar_modification")||b.preventDefault())},$Fs=function(Y,b,w,V,H,f){if(Y.startPosition)if(f&&H.isInlinePlayback&&Y.startPosition&&!Y.hasDraggedTheMinimumDistance&&Math.abs(w.y-Y.startPosition.y)>Math.abs(w.x-Y.startPosition.x))Qx(Y,V,H);
else if(b.preventDefault(),b.stopPropagation(),V.videoDuration&&(Y.startPosition&&!Y.hasDraggedTheMinimumDistance&&(Y.hasDraggedTheMinimumDistance=Math.abs(w.x-Y.startPosition.x)>=1),H.enableFineScrubbing&&(Y.startPosition&&(Y.isDraggedForFineScrubbing=-(w.y-Y.startPosition.y)>=60),!Y.startPosition||w.y>=Y.startPosition.y||(V.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:K1L(V.draggedTime,V,H.chapterData)}),Y.setFineScrubbingDraggedTime(V.draggedTime),Y.updateFilmStripDraggedYDistance(Y.startPosition.y,
w.y,V))),Y.hasDraggedTheMinimumDistance)){b=gMQ(Y,V,w.x);if(Y.isDraggedForFineScrubbing){var E;(E=V.playerApi)==null||E.pauseVideo();V.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:V.draggedTime,filmStripXDistance:K1L(b*V.videoDuration,V,H.chapterData)})}H.enableFineScrubbing&&(!H.enableFineScrubbing||Y.getFilmstripYPosition(V)<68)||V.setState({draggedTime:b*V.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:Y.controlsWereVisibleBeforeDragging});var U;(U=
H.cancelAutohideControlsFn)==null||U.call(H)}},Qx=function(Y,b,w){var V=w.enableFineScrubbing&&b.fineScrubbingActiveState!=="off";
if(b.isDragging||V){V={isDragging:!1,playedTime:b.draggedTime,controlsVisible:Y.controlsWereVisibleBeforeDragging};w.enableFineScrubbing&&b.fineScrubbingActiveState!=="on"&&(Y.resetFilmStripYOffset(),V.fineScrubbingActiveState="off");var H=H===void 0?t2u:H;var f=_.dO(0);f&&H&&_.un(f,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(b.playedTime*1E3),endMediaTimeMs:Math.round(b.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});b.setState(V);
Y.seekThrottle.fire(b.draggedTime,b,7);_.q("mweb_new_progress_bar_play_on_seek")&&Y.resumeVideo(b);w.unmuteOnSeek&&(w=b.playerApi,b.volumeMuted&&(w==null||w.unMute()))}else b.setState({controlsVisible:!b.controlsVisible}),(f=w.triggerAutohideControlsAfterDelayFn)==null||f.call(w);Y.startPosition=null;Y.hasDraggedTheMinimumDistance=!1;Y.isDraggedForFineScrubbing=!1;Y.controlsWereVisibleBeforeDragging=!1};
sl.prototype.handleClick=function(Y,b,w){this.updateProgressBarRect();Y.stopPropagation();Y=gMQ(this,b,Y.clientX)*b.videoDuration;b.setState({playedTime:Y});if(b.playerState!==2){var V;(V=w.triggerAutohideControlsAfterDelayFn)==null||V.call(w)}this.seekThrottle.fire(Y,b,7)};
var gMQ=function(Y,b,w){Y=Y.getProgressBarRect(b);return _.rp(0,(w-Y.left)/Y.width,1)};
sl.prototype.resumeVideo=function(Y){if(Y.draggedTime<Y.videoDuration){var b;(b=Y.playerApi)==null||b.playVideo()}};
sl.prototype.onThrottledSeek=function(Y,b,w){if(b=b.playerApi){var V;if((V=b.getVideoData())==null?0:V.isLive)V=this.getProgressState(b),Y+=(V==null?void 0:V.seekableStart)||0;b.seekTo(Y,void 0,void 0,void 0,w)}};
sl.prototype.getProgressState=function(Y){var b=Y==null?void 0:Y.getPresentingPlayerType();return Y==null?void 0:Y.getProgressState(b)};var ccI,EMR,U_Q,D_X,NXb,m_O,oMb,IgA,kwX;ccI=_.b8(function(Y){var b=Y.progressBarProps;var w=Y.config;var V=Y.progressBarWidthPx;var H=Y.chapterData;var f=$db(b,function(){return w().isShortsPage}),E=function(){return!b().isHovering&&!w().isShortsPage};
Y={};var U=_.hj("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(Y.ytPlayerStoryboardHostMwebShorts=function(){return w().isShortsPage&&!1},Y));
return _.m("yt-player-storyboard",null,_.m(_.h,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.m(_.h,{cond:f,then:function(X){return _.m(_.h,{cond:E,then:function(){return _.m("div",{class:U,"aria-hidden":"true"},_.m(NXb,{props:b,config:w,isBigboard:!0,chapterData:H}))},
else:function(){return _.m(EMR,{props:b,frame:X,config:w,progressBarWidthPx:V,chapterData:H})}})}})}}))},"De");
_.XDF=_.b8(function(Y){var b=Y.progressBarProps;var w=$db(b,Y.isShortsPage);return _.m("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.m(_.h,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.m(_.h,{cond:w,then:function(V){return _.m(U_Q,{frame:V,props:b,isBigboard:!0})}})}}))},"Ee");
EMR=_.b8(function(Y){var b=Y.props;var w=Y.frame;var V=Y.config;var H=Y.progressBarWidthPx;Y=Y.chapterData;var f={};f=_.hj("ytPlayerStoryboardHost",(f.ytPlayerStoryboardHostMwebShorts=function(){return V().isShortsPage&&!1},f.ytPlayerStoryboardHostInlinePlayer=function(){return V().isInlinePlayer},f.ytPlayerStoryboardHostFadeIn=function(){return V().useFadeInAnimation},f));
return _.m("div",{class:f,"aria-hidden":"true",style:function(){var E=b(),U=iNI(w()),X=H();E=ACL(E)/E.videoDuration;var I=X*E,k=U/2+6;U=X-(U/2+6);return"left: "+(I<=k?k/X*100:I>=U?U/X*100:E*100)+"%"}},_.m(_.h,{cond:function(){var E=b();
return!(V().isShortsPage&&E.videoDuration<15)},
then:function(){return _.m(U_Q,{frame:w,props:b,isBigboard:!1})}}),_.m(NXb,{props:b,
config:V,isBigboard:!1,chapterData:Y}))},"Fe");
U_Q=_.b8(function(Y){var b=Y.frame;var w=Y.props;var V=Y.isBigboard;var H=function(){var U,X;return(X=(U=w().playerApi)==null?void 0:U.getVideoContentRect())!=null?X:{width:0,height:0}},f=function(){return iNI(b())},E=function(){var U=b();
return U?U.height/U.rows:0};
Y={};Y=_.hj((Y.ytPlayerStoryboardBigboardImageWrapper=V,Y.ytPlayerStoryboardStoryboardImageWrapper=function(){return!V()},Y));
return _.m("div",{class:Y,style:function(){return"width: "+(V()?H().width:f())+"px; height: "+(V()?H().height:E())+"px;"}},_.m(D_X,{frame:b,
storyboardWidth:f,storyboardHeight:E,storyboardScale:function(){return(V()?H().width:f())/f()}}))},"Ge");
D_X=_.b8(function(Y){var b=Y.frame;var w=Y.storyboardWidth;var V=Y.storyboardHeight;var H=Y.storyboardScale;var f=function(){var E=b().row,U=b().column,X=w(),I=V(),k=H();return{left:-U*X*k,top:-E*I*k}};
return _.m("img",{src:function(){return b().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+f().left+"px; top: "+f().top+"px; width: "+b().width*H()+"px; height: "+b().height*H()+"px;"}})},"He");
NXb=_.b8(function(Y){var b=Y.props;var w=Y.config;var V=Y.isBigboard;var H=Y.chapterData;Y={};Y=_.hj("ytPlayerStoryboardMetadata",(Y.ytPlayerStoryboardMetadataBigboard=V,Y));return _.m("div",{class:Y},_.m(_.h,{cond:V,then:function(){return _.m(_.Uz,null,_.m(m_O,{props:b,config:w}),_.m(_.h,{cond:function(){a:{var f=b();var E=w(),U=H(),X;if((E==null?0:E.activeChapter)&&((X=_.v(E==null?void 0:E.activeChapter,WK))==null?0:X.title))f=!0;else{E=_.N(QhM(U));for(E=E.next();!E.done;E=E.next()){f=(E=_.v(E.value,
rI5))&&CRe(f,E);break a}f=!1}}return f},
then:function(){return _.m(oMb,{props:b,config:w,isBigboard:!0,chapterData:H})}}))},
else:function(){return _.m(_.Uz,null,_.m(oMb,{props:b,config:w,isBigboard:!0,chapterData:H}),_.m(m_O,{props:b,config:w}))}}))},"Ie");
m_O=_.b8(function(Y){var b=Y.props;var w=Y.config;Y={};Y=_.hj("ytPlayerStoryboardTimestamp",(Y.ytPlayerStoryboardTimestampShorts=function(){return w().isShortsPage},Y.ytPlayerStoryboardTimestampIsHovering=function(){return b().isHovering||w().isShortsPage&&!0},Y));
return _.m("div",{class:Y},_.m(_.Uz,null,function(){return _.yCu(ACL(b()))}))},"Je");
oMb=_.b8(function(Y){var b=Y.props;var w=Y.config;var V=Y.isBigboard;var H=Y.chapterData;Y={};V=_.hj("ytPlayerStoryboardTitle",(Y.ytPlayerStoryboardTitleBigboard=V,Y));return _.m("div",{class:V},_.m(_.h,{cond:function(){return!w().isShortsPage},
then:function(){return _.m(IgA,{props:b,activeChapter:function(){return w().activeChapter},
chapterData:H})}}))},"Ke");
IgA=_.b8(function(Y){var b=Y.props;var w=Y.activeChapter;var V=Y.chapterData;return _.m(_.Uz,null,_.m(_.Bf,{each:function(){return QhM(V())},
keyBy:"INDEX"},function(H){return _.m(_.Uz,null,_.m(_.h,{cond:function(){return _.v(H(),rI5)&&CRe(b(),_.v(H(),rI5))},
then:function(){return _.m(kwX,{timedMarker:function(){return _.v(H(),rI5)}})}}))}),_.m(_.h,{cond:function(){var H;
return w()&&((H=_.v(w(),WK))==null?void 0:H.title)},
then:function(H){return _.m(_.wv,{text:H,noPreWrap:!0})}}))},"Le");
kwX=_.b8(function(Y){var b=Y.timedMarker;return _.m(_.Uz,null,_.m("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.m(_.n_,{icon:function(){return b().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.m(_.wv,{text:function(){return b().label},
noPreWrap:!0}))},"Me");_.lgt=_.b8(function(Y){var b=Y.progressBarProps;var w=Y.playheadData;var V=Y.config;Y=_.GM("yt-progress-bar");var H=_.GM("div"),f=_.GM("div"),E=_.N(_.kw({width:0,left:0},void 0,"NcXsUb")),U=E.next().value,X=E.next().value,I=function(){f.value&&X(f.value.getBoundingClientRect())},k=function(){U().width<=0&&I();
return U()};
wS("resize",I);var l=new sl(k,function(){},function(){return 0},function(){},function(){},function(){}),x=function(){return b()};
E=_.N(_.kw(!1,void 0,"ZsF6Xc"));var Q=E.next().value,Z=E.next().value;E=_.Q_(function(){Z(!0);V().position===2?setTimeout(function(){I()},100):I()});
var e=_.Q_(function(){Z(!1);JOX(l,x)()}),O=_.Q_(function(rB){V().doSeekOnClick&&Kds(l,x,V)(rB);
return!1}),L=_.Q_(function(rB){CQ7(l,x)(rB);
return!1}),r=_.Q_(function(rB){yOI(l,x)(rB);
return!1}),C=_.Q_(function(rB){j7N(l,x,V)(rB);
return!1}),W=_.Q_(function(rB){TtO(l,x,V)(rB);
return!1}),y=_.Q_(function(){ubO(l,x,V)();
return!1}),G=_.Q_(function(){Y37(l,x,V)();
return!1}),Nr=_.Q_(function(){b3R(l,x,V)();
return!1}),o6=_.Q_(function(rB){wDF(x)(rB);
return!1});
wS("mousemove",VQI(l,x,V));wS("mouseup",H37(l,x,V));_.dx(function(){Rtu(H.value);Z(!1);I();H37(l,x,V)()});
var lI={};lI=_.hj("ytPlayerProgressBarHost",function(){return V().className},(lI.ytPlayerProgressBarHostReadOnly=function(){return V().disableScrubbing},lI.ytPlayerProgressBarHostHidden=function(){return V().hideProgressBar&&!Q()},lI.ytPlayerProgressBarHostLowerPlayer=function(){return V().position===0},lI.ytPlayerProgressBarHostBottomEdge=function(){return V().position===1},lI.ytPlayerProgressBarHostBottomInset=function(){return V().position===2},lI.ytPlayerProgressBarHostCustom=function(){return V().position===
3},lI));
var Zt={},eL=_.hj("ytPlayerProgressBarBackground",(Zt.ytPlayerProgressBarBackgroundHide=function(){return V().position===2&&!Q()&&!b().isDragging},Zt));
Zt={};Zt=_.hj("ytPlayerProgressBarDragContainer",(Zt.ytPlayerProgressBarDragContainerBottomEdge=function(){return V().position===1},Zt));
var OM={};OM=_.hj("ytPlayerProgressBarProgressBar",(OM.ytPlayerProgressBarProgressBarInset=function(){return V().position===2},OM.ytPlayerProgressBarProgressBarInsetMinimized=function(){return V().position===2&&!Q()&&!b().isDragging},OM));
var iI=function(){return Math.floor(hte(b())*100)};
return _.m("yt-progress-bar",{el:Y,class:lI},_.m(_.h,{cond:function(){return V().position===2},
then:function(){return _.m("div",{class:eL})}}),_.m("div",{el:H,
"on:click":O,"on:touchstart":L,"on:touchmove":C,"on:mouseenter":E,"on:mousedown":r,"on:mouseleave":e,"on:mousemove":W,"on:mouseup":G,"on:touchend":y,"on:touchcancel":Nr,"on:keydown":o6,class:Zt,role:"slider","aria-valuenow":iI,"aria-valuetext":function(){return iI()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return b().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.sa("SEEK_SLIDER")},_.m("div",{el:f,class:OM},_.m(rOb,{progressBarProps:b,config:V,highContrast:function(){return!!V().isInlinePlayback}}),_.m(_.h,{cond:function(){return V().chapterData&&v4I(V().chapterData)},
then:function(){return _.m(SXX,{progressState:b,multiMarkersPlayerBarRenderer:function(){return V().chapterData},
progressBarWidth:function(){return U().width}})},
else:function(){return _.m(zRs,{progressBarProps:b,config:V})}}),_.m(WdO,{progressBarProps:b,
playheadData:w,interpolateDotPosition:function(){return V().position!==2},
hidePlayhead:function(){return V().playheadDotBehavior===1&&!Q()}}))),_.m(ccI,{progressBarProps:b,
config:function(){return{activeChapter:arI(b(),V().chapterData),getProgressBarWidthPx:function(){return k().width},
isShortsPage:!!V().isShortsPage,isInlinePlayer:!!V().isInlinePlayback,useFadeInAnimation:!!V().isInlinePlayback}},
progressBarWidthPx:function(){return U().width},
chapterData:function(){return V().chapterData}}))},"Ne");
_.lgt.idomCompat=!0;Object.assign({},_.PRK(),{setState:function(){},
domMeasurements:{},appApi:_.lrb(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var hYI;
_.x_7=_.b8(function(){var Y,b=(Y=_.AJ(jhq().playerApi))!=null?Y:void 0;Y=_.N(_.kw(!1,void 0,"HLFBmb"));var w=Y.next().value,V=Y.next().value;Y=_.N(_.kw(!1,void 0,"lHH9bc"));var H=Y.next().value,f=Y.next().value;Y=_.N(_.kw(!1,void 0,"zsY7yd"));var E=Y.next().value,U=Y.next().value;Y=_.N(_.kw(!1,void 0,"KeHQgc"));var X=Y.next().value,I=Y.next().value;Y=_.N(_.kw(0,void 0,"gLLCj"));var k=Y.next().value,l=Y.next().value;Y=_.N(_.kw(0,void 0,"s3RYkf"));var x=Y.next().value,Q=Y.next().value;Y=_.N(_.kw(!1,void 0,
"Dn608e"));var Z=Y.next().value,e=Y.next().value;Y=_.N(_.kw(0,void 0,"AnkH1b"));var O=Y.next().value,L=Y.next().value;Y=_.N(_.kw(0,void 0,"QYNL0b"));var r=Y.next().value,C=Y.next().value;Y=_.N(_.kw("",void 0,"Yzw45d"));var W=Y.next().value,y=Y.next().value;Y=_.N(_.kw(-1,void 0,"iiVI0c"));var G=Y.next().value,Nr=Y.next().value,o6=_.sN(function(){var lI={controlsVisible:w(),isOverlayHidden:H(),shouldWaitToHideControls:E(),isDragging:X(),isHovering:Z(),videoDuration:O(),playedTime:r(),videoId:W(),draggedTime:x(),
hoveredTime:k(),playerState:G()};return Object.assign({},_.PRK(),lI,{domMeasurements:{},setState:function(Zt){Zt.controlsVisible!==void 0&&V(Zt.controlsVisible);Zt.isOverlayHidden!==void 0&&f(Zt.isOverlayHidden);Zt.shouldWaitToHideControls!==void 0&&U(Zt.shouldWaitToHideControls);Zt.isDragging!==void 0&&I(Zt.isDragging);Zt.isHovering!==void 0&&e(Zt.isHovering);Zt.draggedTime!==void 0&&Q(Zt.draggedTime);Zt.hoveredTime!==void 0&&l(Zt.hoveredTime);Zt.videoDuration!==void 0&&L(Zt.videoDuration);Zt.playedTime!==
void 0&&C(Zt.playedTime);Zt.videoId!==void 0&&y(Zt.videoId);Zt.playerState!==void 0&&Nr(Zt.playerState)},
appApi:_.lrb(),playerApi:b})},void 0,"ZW7y9");
_.tq(function(){b==null||b.addEventListener("onVideoProgress",M2G(o6));b==null||b.addEventListener("onVideoDataChange",n4a(o6));b==null||b.addEventListener("onStateChange",ZNL(o6))});
_.R2(function(){if(b==null?0:b.isReady())b==null||b.removeEventListener("onVideoProgress",M2G(o6)),b==null||b.removeEventListener("onVideoDataChange",n4a(o6)),b==null||b.removeEventListener("onStateChange",ZNL(o6))});
return _.m("desktop-shorts-player-controls",null,_.m(hYI,{playerControlsProps:o6}))},"Oe");
hYI=_.b8(function(Y){var b=Y.playerControlsProps;return _.m("div",{class:"desktopShortsPlayerControlsWizHost"},_.m(_.lgt,{progressBarProps:b,config:function(){return{isShortsPage:!0,hideProgressBar:b().videoDuration<30&&b().playerState!==2&&!b().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.q3I=_.b8(function(Y){function b(lI){lI!==0||l()?lI>50&&(l()||!Q())?(x(!1),Z(!0)):lI<=50&&(l()||Q())&&(x(!1),Z(!1)):x(!0)}
function w(lI,Zt){var eL;return _.c(function(OM){if(OM.nextAddress==1)return _.D(OM,_.DE(),2);eL=OM.yieldResult;Zt&&eL?(eL.unMute(!0),lI&&(Tdv(lI,eL.getVolume()),O(eL.getVolume()))):eL&&(eL.mute(!0),lI&&Tdv(lI,0));_.om(OM)})}
function V(lI){var Zt,eL;return _.c(function(OM){if(OM.nextAddress==1)return _.D(OM,_.DE(),2);Zt=OM.yieldResult;eL=50;Zt&&(eL=Zt.getVolume(),Zt.isMuted()?Tdv(lI,0):Tdv(lI,eL));O(eL);_.om(OM)})}
var H=Y.orientation;Y=_.GM("desktop-shorts-volume-controls");var f=_.GM("button"),E=_.TM("input"),U=_.N(_.kw(!1,void 0,"F6vt0d")),X=U.next().value,I=U.next().value,k=_.N(_.kw(!1,void 0,"S5PCqb"));U=k.next().value;k=k.next().value;var l=U,x=k;k=_.N(_.kw(!0,void 0,"Tgy4e"));U=k.next().value;k=k.next().value;var Q=U,Z=k;U=_.N(_.kw(50,void 0,"Dq3efd"));var e=U.next().value,O=U.next().value;U=_.sN(function(){var lI=l();return _.q("web_shorts_keyboard_enable_mute_shortcut")?lI?_.sa("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.sa("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):lI?_.sa("UNMUTE_VOLUME",void 0,"Unmute"):_.sa("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
k=_.sN(function(){var lI=l(),Zt=Q();return{sources:[{clientResource:{imageName:lI?_.q("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Zt?_.q("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.q("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var L=_.sN(function(){var lI=e();return l()?lI+"% volume muted":lI+"% volume"},void 0,"kvkmyc"),r=_.sN(function(){return H()==="vertical_down"},void 0,"zaNsZ");
_.dx(function(){function lI(){I(!0)}
function Zt(){I(!1)}
E&&E.value&&(E.value.addEventListener("focus",lI),E.value.addEventListener("focusout",Zt),V(E.value).then(function(){b(Number(JCu(E.value)))}));
f&&f.value&&(f.value.addEventListener("focus",lI),f.value.addEventListener("focusout",Zt));_.R2(function(){var eL;E==null||(eL=E.value)==null||eL.removeEventListener("focus",lI);var OM;E==null||(OM=E.value)==null||OM.removeEventListener("focusout",Zt);var iI;f==null||(iI=f.value)==null||iI.removeEventListener("focus",lI);var rB;f==null||(rB=f.value)==null||rB.removeEventListener("focusout",Zt)})});
var C=_.Q_(function(){if(E&&E.value){var lI=Number(JCu(E.value));GJr(lI);O(lI);E.value.style.setProperty("--gradient-percent",lI+"%");b(lI)}return!1}),W=_.Q_(function(){I(!0)}),y=_.Q_(function(){E&&E.value&&(w(E.value,l()),x(!l()));
return!1}),G={},Nr={},o6={};
return _.m("desktop-shorts-volume-controls",{"on:pointerleave":_.Q_(function(){I(!1)}),
class:_.hj("ytdDesktopShortsVolumeControlsHost",(G.ytdDesktopShortsVolumeControlsHostVertical=r,G.ytdDesktopShortsVolumeControlsHostExpanded=X,G)),el:Y},_.m(_.h,{cond:function(){return!r()},
then:function(){var lI={};return _.m("div",{class:_.hj("ytdDesktopShortsVolumeControlsBackgroundScrim",(lI.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=X,lI))})}}),_.m("div",{class:_.hj((Nr.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=r,Nr))},_.m("button",{"aria-label":U,
title:U,el:f,"on:click":y,"on:pointerenter":W,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},k?_.m(_.Y_,{data:k,alt:U,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.m("div",{class:_.hj("ytdDesktopShortsVolumeControlsSliderContainer",(o6.ytdDesktopShortsVolumeControlsSliderContainerExpanded=X,o6.ytdDesktopShortsVolumeControlsSliderContainerVertical=r,o6.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=r,o6.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return X()&&r()},o6))},_.m("input",{"aria-label":_.sa("VOLUME"),
title:_.sa("VOLUME"),el:E,"on:input":C,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":e,"aria-valuetext":L,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.swF=_.b8(function(Y){var b=Y.data;return _.m("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.m(_.oG,{command:function(){return b().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.m(_.h,{cond:function(){return b().iconName},
then:function(w){return _.m(_.n_,{icon:w})}}),_.m("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text}),_.m(_.h,{cond:function(){return b().showEndChevron},
then:function(){return _.m(_.n_,{icon:"CHEVRON_RIGHT"})}})))},"Re");var QwF=_.b8(function(Y){var b=Y.data;var w=Y.overlayDensity;Y={};return _.m("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.m(_.OH,{data:function(){return b().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(V){var H=V.data;
return _.m(_.pe,{data:function(){return(w==null?void 0:w())===1?Object.assign({},H(),{avatar:{avatarViewModel:Object.assign({},_.v(H().avatar,_.GI),{avatarImageSize:"AVATAR_SIZE_48"})}}):H()}})}}),_.m(_.OH,{data:function(){return b().avatarStackViewModel}},{avatarStackViewModel:function(V){return _.m(_.OB,{data:V.data})}}),_.m(_.wv,{className:_.hj("ytReelChannelBarViewModelChannelName",(Y.ytReelChannelBarViewModelChannelNameLarge=function(){return(w==null?void 0:w())===1},Y)),
text:function(){return b().channelName},
linkInheritColor:!0,userInput:!0}),_.m("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.m(_.OH,{data:function(){return b().subscribeButtonViewModel}},{subscribeButtonViewModel:function(V){var H=V.data;
return _.m(_.M7,{data:function(){return(w==null?void 0:w())===1?Object.assign({},H(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},H().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):H()},
isOverlay:!1})},
buttonViewModel:_.a1})),_.m("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.m(_.OH,{data:function(){var V,H;return(H=_.v((V=b())==null?void 0:V.sponsorButtonViewModel,wqC))==null?void 0:H.sponsorButton}},{buttonViewModel:function(V){return _.m(_.a1,{data:V.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var vMd=_.b8(function(Y){var b=function(){var V;return(Y==null?void 0:(V=Y.overlayDensity)==null?void 0:V.call(Y))===1?22:18},w={};
return _.m("yt-reel-multi-format-link-view-model",{class:_.hj("ytReelMultiFormatLinkViewModelHost",(w.ytReelMultiFormatLinkViewModelHostTall=!0,w.ytReelMultiFormatLinkViewModelHostLarge=function(){var V;return((V=Y.overlayDensity)==null?void 0:V.call(Y))===1},w))},_.m(_.oG,{ariaLabel:function(){return Y.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.zT(Y.data().command)},
dangerousStopPropagation:!1},_.m("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.m(_.h,{cond:function(){return Y.data().icon},
then:function(V){return _.m(_.Y_,{data:V,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:b})}}),_.m(_.wv,{text:function(){return Y.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
vMd.idomCompat=!0;var PjX=_.b8(function(Y){var b=Y.data;var w=Y.overlayDensity;var V=_.GM("yt-shorts-suggested-action-view-model");Y=_.N(_.kw(!1,void 0,"xDqzhe"));var H=Y.next().value,f=Y.next().value;Y=_.N(_.kw(!1,void 0,"LI9CFd"));var E=Y.next().value,U=Y.next().value,X=function(){return b().isMultiLineSa},I=_.xh(n3b,function(){var C,W;
return(W=(C=b().toggleableContent)==null?void 0:C.entityKey)!=null?W:""}),k=function(){var C,W,y;
return(y=b().toggleableContent)!=null&&y.entityKey?(W=(C=I())==null?void 0:C.value)!=null?W:!1:!1},l=function(){var C,W,y,G,Nr,o6,lI,Zt,eL,OM,iI;
return b().toggleableContent?k()?(C=b().toggleableContent)==null?void 0:C.toggledData:(W=b().toggleableContent)==null?void 0:W.untoggledData:{primaryText:(Zt=(y=b().defaultContent)==null?void 0:y.primaryText)!=null?Zt:b().text,secondaryText:(G=b().defaultContent)==null?void 0:G.secondaryText,onTapCommand:(eL=(Nr=b().defaultContent)==null?void 0:Nr.onTapCommand)!=null?eL:b().onTapCommand,icon:(OM=(o6=b().defaultContent)==null?void 0:o6.icon)!=null?OM:b().icon,image:(iI=(lI=b().defaultContent)==null?
void 0:lI.image)!=null?iI:b().image}},x=function(){return X()?b().trailingTapTarget:void 0};
Y=function(C,W){return function(){return H()?W:C}};
var Q={leadingSection:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:Y("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};Y={};Y=_.hj((Y.ytShortsSuggestedActionViewModelStaticHost=function(){return!X()},Y.ytShortsSuggestedActionViewModelDynamicHost=X,Y.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return X()&&E()},Y.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return X()&&!E()},Y));
_.dx(function(){if(X()){var C=0,W;if((W=b().animationParams)==null?0:W.shouldExpand){var y,G;C=((G=(y=b().animationParams)==null?void 0:y.expansionDelaySecs)!=null?G:0)*1E3}var Nr,o6=((Nr=b().animationParams)==null?0:Nr.shouldExpand)?setTimeout(function(){f(!0)},C):void 0,lI,Zt;
C=((lI=b().animationParams)==null?0:lI.visibilityDelaySecs)?((Zt=b().animationParams)==null?NaN:Zt.visibilityDelaySecs)*1E3:0;var eL=setTimeout(function(){U(!0)},C);
_.R2(function(){o6&&clearTimeout(o6);clearTimeout(eL)})}});
var Z=function(C){_.AA(C,Object.assign({},{form:{element:V.value}}))},e=_.Q_(function(){var C,W=(C=l())==null?void 0:C.onTapCommand;
W&&Z(W)}),O=_.Q_(function(){var C,W;
if(C=(W=x())==null?void 0:W.onTapCommand)return Z(C),!1}),L=_.Bb({"vertical-align":"bottom",
"border-radius":function(){var C;return X()?((C=b().defaultContent)==null?0:C.isCircleImage)?"50%":"4px":"0px"},
width:function(){var C,W,y;return X()&&((C=b().defaultContent)==null?0:C.imageSize)?((y=(W=b().defaultContent)==null?void 0:W.imageSize)!=null?y:24)+"px":null},
height:function(){var C,W,y;return X()&&((C=b().defaultContent)==null?0:C.imageSize)?((y=(W=b().defaultContent)==null?void 0:W.imageSize)!=null?y:24)+"px":null}}),r={};
return _.m("yt-shorts-suggested-action-view-model",{class:Y,el:V},_.m("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.m("button",{class:_.hj(function(){return X()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var C;
return(C=b().useFullRoundedBorder)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!x()&&X()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":X()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var C;
return(C=b().disableFixedHeight)!=null&&C?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(r.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(w==null?void 0:w())===1},r)),
"on:click":e},_.m(_.p_,{model:{color:4}}),_.m("div",{class:_.hj(function(){return X()?Q.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.m(_.h,{cond:function(){var C;
return(C=l())==null?void 0:C.image},
then:function(C){return _.m(_.Y_,{data:C,alt:"",className:function(){return X()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:L})}}),_.m(_.h,{cond:function(){var C,W;
return(C=l())==null?void 0:(W=C.icon)==null?void 0:W.iconType},
then:function(C){return _.m(_.n_,{icon:C,active:k,className:function(){return X()?H()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.m("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.m(_.h,{cond:function(){var C;
return(C=l())==null?void 0:C.primaryText},
then:function(C){return _.m("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.m(_.wv,{text:C}))}}),_.m(_.h,{cond:function(){var C;
return(C=l())==null?void 0:C.secondaryText},
then:function(C){return _.m("div",{class:Q.secondaryText},_.m(_.wv,{text:C}))}}))),_.m(_.h,{cond:x,
then:function(C){return _.m("div",{class:Q.trailingSection,"aria-label":function(){var W;return(W=C().a11yLabel)!=null?W:""},
"on:click":O,role:"button",tabindex:0},_.m(_.p_,{model:{color:4}}),_.m(_.n_,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var Z3O=_.b8(function(Y){var b=Y.data;var w=Y.overlayDensity;var V=_.GM("yt-shorts-video-title-view-model");Y=_.Q_(function(E){if(_.Cs(_.Ad(E),V.value,["A".toString()]))return!1;(E=b().truncatedTextOnTapCommand)&&_.AA(E);return!1});
var H={},f={};return _.m("yt-shorts-video-title-view-model",{el:V,class:_.hj("ytShortsVideoTitleViewModelHost",(H.ytShortsVideoTitleViewModelHostClickable=function(){return!!b().truncatedTextOnTapCommand},H)),
"on:click":Y},_.m("h2",{class:_.hj("ytShortsVideoTitleViewModelShortsVideoTitle",(f.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(w==null?void 0:w())===1},f))},_.m(_.wv,{text:function(){return b().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.BXg=_.b8(function(Y){var b=Y.data;var w=Y.overlayDensity;return _.m("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.m(_.OH,{data:function(){return b().metadataItems}},{badgeViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.wz,{data:V.data}))},
playerDisclosureViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.swF,{data:V.data}))},
shortsSuggestedActionViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(PjX,{data:V.data,overlayDensity:w}))},
reelChannelBarViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(QwF,{data:V.data,overlayDensity:w}))},
reelMultiFormatLinkViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(vMd,{data:V.data,overlayDensity:w}))},
shortsVideoTitleViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(Z3O,{data:V.data,overlayDensity:w}))},
reelSoundMetadataViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.drR,{data:V.data,overlayDensity:w}))},
toggleButtonViewModel:function(V){return _.m("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.m(_.td,{data:V.data}))}}))},"We");var nMX=_.b8(function(Y){var b=_.ur(Y,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),w=b.size,V=b.onTap,H=b.disabled,f=b.tooltipText;return _.m("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.m(HT,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:w(),disabled:H(),tooltipText:f(),onTap:V}},
iconName:Y.iconType}))},"Xe"),MQX=_.b8(function(Y){function b(k){k.stopPropagation();
k.code==="ArrowUp"?(k.preventDefault(),bKg(U.value)):k.code==="ArrowDown"?(k.preventDefault(),wJI(U.value)):k.code==="KeyM"?ujI():(k.code==="KeyK"||k.code==="Space")&&YW6(X())}
var w=_.ur(Y,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});Y=w.previousButtonDisabled;var V=w.nextButtonDisabled,H=w.data,f=w.playabilityStatus,E=w.previewThumbnail,U=_.GM("ytd-shorts-miniplayer-overlay"),X=_.rn(_.ldK),I;_.tq(function(){(I=_.Oy(U.value))&&I.addEventListener("keydown",b)});
_.R2(function(){var k;(k=I)==null||k.removeEventListener("keydown",b)});
w=function(){var k,l,x;return(k=H())==null?void 0:(l=k.reelPlayerOverlayRenderer)==null?void 0:(x=l.likeButton)==null?void 0:x.likeButtonRenderer};
return _.m("ytd-shorts-miniplayer-overlay",{el:U,class:"ytdShortsMiniplayerOverlayHost"},_.m("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Bb({"background-image":function(){var k=E();return k?'url("'+_.Ev(k.thumbnails)+'")':""}})}),_.m("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.m("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.m(nMX,{iconType:function(){var k=X();
return k===2||k===-1||k===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){YW6(X())},
tooltipText:function(){var k=X();return k===1||k===3?_.sa("PLAYER_LABEL_PAUSE"):_.sa("PLAYER_LABEL_PLAY")}}),_.m(_.q3I,{orientation:"horizontal_right"})),_.m("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.m(nMX,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:Y,onTap:function(){bKg(U.value)},
tooltipText:_.sa("PREVIOUS_VIDEO_LABEL")}),_.m(nMX,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:V,onTap:function(){wJI(U.value)},
tooltipText:_.sa("NEXT_VIDEO_LABEL")}),_.q("web_shorts_pip_like_button")?_.m("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.m(gl$,{buttonTooltipPosition:"left",data:w,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.m("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.m(_.h,{cond:function(){var k,l;return _.v((k=H())==null?void 0:(l=k.reelPlayerOverlayRenderer)==null?void 0:l.metapanel,
_.Jtr)},
then:function(k){return _.m("div",{class:_.hj("ytdShortsMiniplayerOverlayInteractive")},_.m(_.BXg,{data:k}))}})),_.m("div",{class:_.hj("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var k;return!((k=H())==null||!k.adsOverlay)||f()&&!gou(f())}},_.m("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.m(_.x_7,null)))),_.m(_.h,{cond:function(){var k=H(),l,x;
k=_.v(k==null?void 0:(l=k.adsOverlay)==null?void 0:(x=l.fulfillmentContent)==null?void 0:x.fulfilledLayout,OkK);return _.v(k==null?void 0:k.renderingContent,Lw9)},
then:function(k){return _.m("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.m(HfC,{data:k}))}}))},"Ye");var Vnr=_.b8(function(){var Y=_.N(_.kw(new _.mE(NaN,NaN),void 0,"HSMFk")),b=Y.next().value,w=Y.next().value;Y=_.N(_.kw(!1,void 0,"uaAxwf"));var V=Y.next().value,H=Y.next().value,f=_.N(_.kw(!1,void 0,"nVSwef"));Y=f.next().value;var E=f.next().value,U=_.fH().resolve(_.Ck).miniplayerPropSignalMap[0],X=U.data,I=U.shortsData,k=U.nextButtonDisabled,l=U.shortsPreviewThumbnail,x=U.previousButtonDisabled,Q=U.externalPlaylistData;f=U.toastData;var Z=U.playabilityStatus,e=U.isDisabled,O=U.playerVe,L=U.closeVe;
U=_.rn(_.Qm);_.jk("yt-pip-window-resized",function(y){w(y)});
_.jk("yt-activate-pip-miniplayer",function(){return _.c(function(y){E(!0);_.om(y)})});
var r=function(){var y;return!((y=Q())==null||!y.contents)&&V()},C=function(){var y=b(),G=!!X(),Nr=r();
y=y.clone();G&&(y.height-=76);Nr&&(y.height-=285);return y},W=function(){H(!V())};
_.tl(function(){var y=O(),G=_.dO(11),Nr=_.R3(11);G&&Nr&&y&&(_.yX(G,Nr,y),Nr=L())&&(_.$7(G,y,[Nr]),_.Gu(G,[Nr]))},"HPkp0c");
return _.m("ytd-pip-container",{class:"ytdPipContainerHost"},_.m(_.h,{cond:Y,then:function(){return _.m(_.dFN,{isDisabled:e,playabilityStatus:Z,size:C})}}),_.m(_.h,{cond:X,
then:function(){return _.m(_.tXX,{data:X,expanded:V,onExpandClick:W,playlistData:Q})}}),_.m(_.h,{cond:r,
then:function(){return _.m("div",{class:"ytdPipContainerPlaylistPanel"},_.m(_.VG$,{data:Q,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.m(_.h,{cond:U,
then:function(){return _.m(MQX,{data:I,nextButtonDisabled:k,previousButtonDisabled:x,playabilityStatus:Z,previewThumbnail:l})}}),_.m("div",{class:"ytdPipContainerToast"},_.m(_.FdI,{toastData:f})))},"Ze");var vo=function(Y,b){var w=this;this.pipController=Y;this.JSC$16527_clientRoot=b;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=DdG();this.watchPipEnabled=_.q("web_watch_pip");this.shortsPipEnabled=_.q("web_shorts_pip");this.JSC$16527_watchWhileEnabled=_.q("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;_.vB(_.u3(),_.mmL,function(V){w.isSingleOptionSurveyActive=V});
this.JSC$16527_onPlayerPlayVideo=this.JSC$16527_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);_.yu(_.CB.getInstance(),this.miniplayerServiceActionMap,this.JSC$16527_clientRoot);Y.pictureInPictureSupported()&&_.RY("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},d0j,ags,d_R,rcs,zYO,r5C;
vo.prototype.handleMediaSessionPipActivation=function(){var Y=this,b;return _.c(function(w){_.sL().mediaSessionPipActivation=!0;b=_.fH().resolve(_.bX);return b.isOnWatch()&&Y.watchPipEnabled?(_.sL().watchPipActivation=!0,_.eYF(Y,b.data),w.jumpTo(0)):b.isOnShorts()&&Y.shortsPipEnabled?(_.sL().shortsPipActivation=!0,_.pDN(Y),w.jumpTo(0)):Y.isMiniplayerActive()&&Y.watchPipEnabled&&!Y.watchWhileMode?_.D(w,O3R(Y),0):w.jumpTo(0)})};
var O3R=function(Y){var b,w,V,H;return _.c(function(f){if(f.nextAddress==1)return b=!Y.miniplayerToPipMode,w=Y.playerElement,V=Y.miniplayerData,H=Y.watchResponse,_.D(f,Y.deactivate(),2);if(f.nextAddress!=3)return b?(_.sL().mediaSessionPipActivation=!0,_.sL().watchPipActivation=!0):_.sL().miniplayerButtonActivation=!0,_.D(f,Y.activate(w,V,H),3);Y.miniplayerToPipMode=b;_.om(f)})};
vo.prototype.onDownloadedVideoDeleted=function(Y){var b,w=_.v((b=this.miniplayerData)==null?void 0:b.watchEndpoint,_.TG),V,H;w&&((V=this.watchResponse)==null?void 0:(H=V.playerResponse)==null?void 0:H.offlineState)!==void 0&&(b=w.videoId)&&Y&&b===Y&&this.close()};
vo.prototype.onShowMiniplayerCommand=function(Y){var b=this,w,V,H,f,E,U,X,I,k,l,x,Q,Z;return _.c(function(e){switch(e.nextAddress){case 1:return w=_.v(Y,WVU),H=(V=w)==null?void 0:V.miniplayerCommand,f=_.v(H,_.TG),H&&f&&!b.active?_.D(e,_.pp.getInstance(),2):e.return();case 2:return E=e.yieldResult,_.D(e,(U=E)==null?void 0:U.get("yt-miniplayer-shown-video-id"),3);case 3:X=e.yieldResult;I=f.videoId;if(!I||X===I)return e.return();k=_.fH().resolve(_.bX);if(k.isOnWatch())return _.Sk(Error("Gj")),e.return();
l={channelItem:{externalId:btoa(I)}};b.readyToResumeVe=_.tj(121253,void 0,void 0,l);_.sL().showMiniplayerCommandActivation=!0;return _.D(e,_.z5d(b,H,!0),4);case 4:return b.active?(_.Po(b,{readyToResumeVe:b.readyToResumeVe,continueWatching:!0,premiumBranding:!((x=w)==null||!x.showPremiumBranding)}),_.q("ytd_miniplayer_to_wiz")&&_.Po(b,{isReadyToResume:!0}),b.isReadyToResume=!0):_.Po(b,{continueWatching:!0,premiumBranding:!((Q=w)==null||!Q.showPremiumBranding)}),_.D(e,(Z=E)==null?void 0:Z.set("yt-miniplayer-shown-video-id",
f.videoId),5);case 5:b.readyToResumeVe=void 0,_.om(e)}})};
vo.prototype.init=function(Y){this.miniplayerEl?_.Sk(new _.BQ("MiniplayerService already initialized.")):this.miniplayerEl=Y};
vo.prototype.isInitialized=function(){var Y=!!this.miniplayerEl;Y||_.Sk(new _.BQ("MiniplayerService used before initialized."));return Y};
_.eYF=function(Y,b){if(Y.isInitialized()){var w=_.IrK(b.response,b.playerResponse),V=_.fH().resolve(_.bX).getPlayerFromWatch();_.sL().currentEndpoint=w.watchEndpoint||null;Y.activate(V,w,b)}};
_.pDN=function(Y){if(Y.isInitialized()){var b=_.fH().resolve(_.bX).getPlayerFromShorts();Y.activate(b)}};
d0j=function(Y,b){var w;(w=!Y.isInitialized())||(w=_.fH().resolve(_.bX).isOnWatch()&&Y.watchPipMode,w=!(Y.isMiniplayerActive()&&(_.sL().userActivation||_.sL().lockupActivation||w)));if(w)return!1;tQO(Y,b)?_.q2(Y):r5C(Y,b);return Y.watchPipMode?!_.fH().resolve(_.bX).isOnWatch():!0};
vo.prototype.isMiniplayerActive=function(){return this.active};
var tQO=function(Y,b){var w;b=(w=_.v(b,_.TG))==null?void 0:w.videoId;var V,H;Y=(H=_.v((V=Y.miniplayerData)==null?void 0:V.watchEndpoint,_.TG))==null?void 0:H.videoId;return b!=null&&b===Y};
vo.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Ua(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Xx(this.miniplayerEl,"yt-navigate-home-action"))};
_.z5d=function(Y,b,w,V){w=w===void 0?!1:w;var H,f,E;return _.c(function(U){switch(U.nextAddress){case 1:if(Y.active){U.jumpTo(2);break}H=_.fH().resolve(_.bX);if(E=(f=Y.playerElement)!=null?f:H.getPlayerFromWatch()){U.jumpTo(3);break}return _.D(U,_.fH().resolve(_.EH),4);case 4:E=H.getPlayerFromWatch();case 3:if(!E){_.Sk(Error("Ij"));U.jumpTo(2);break}return _.D(U,Y.activate(E,V),2);case 2:return Y.active?_.D(U,r5C(Y,b,w),0):U.return()}})};
vo.prototype.activate=function(Y,b,w){var V=this,H,f,E,U,X,I,k,l,x;return _.c(function(Q){switch(Q.nextAddress){case 1:if(!V.isInitialized())return Q.return();if(!Y)return _.Sk(Error("Ij")),Q.return();if(_.J0k()||V.isMiniplayerActive())var Z=!0;else Z=_.sL().watchPipActivation||_.sL().watchWhileActivation,_.fH().resolve(_.bX).isOnWatch()&&!Z?(_.Sk(new _.BQ("miniplayer activated on watch page")),Z=!0):Z=_.sL().watchWhileActivation?V.userDeactivatedWatchWhile||!!document.pictureInPictureElement||rsM():
!1;if(Z)return T9t(),Q.return();H=_.sL().mediaSessionPipActivation;f=_.sL().shortsPipActivation;E=_.sL().watchPipActivation;X=(U=_.sL().watchWhileActivation)||E;I=E||f;if(!V.pictureInPictureEnabled()||!I){Q.jumpTo(2);break}return _.D(Q,RYX(V,H),3);case 3:if(!Q.yieldResult)return _.Sk(Error("Hj")),T9t(),Q.return();case 2:return V.setActive(!0),V.watchResponse=w,V.playerElement=Y,V.updateMiniplayerData(b),_.D(Q,d_R(V,Y),4);case 4:if(!V.active)return _.Sk(new _.BQ("miniplayer deactivated during activation")),
V.removePlayerListeners(),Q.return();Z=_.fH().resolve(_.zF);Z.addEventListener("yt-navigate",_.Io(V,V.onPlaylistNavigate));Z.addEventListener("yt-playlist-data-updated",_.Io(V,V.JSC$16527_onPlaylistDataUpdated));V.JSC$16527_onPlaylistDataUpdated();T9t();V.JSC$16527_watchWhileEnabled&&_.FvQ(V,U);V.pictureInPictureEnabled()&&V.shortsPipEnabled&&(V.shortsPipMode=f,_.u3().dispatch(SUk(V.shortsPipMode)));V.pictureInPictureEnabled()&&V.watchPipEnabled&&(V.watchPipMode=E,_.W5t(V.handleMediaSessionPipActivation));
V.player&&(k=V.player.getPlayerState(),l=k===1,_.u3().dispatch(Ch5(k)),_.De(V.miniplayerEl,"yt-miniplayer-play-state-changed",[l]),_.sL().isVideoPlaying=l);_.De(V.miniplayerEl,"yt-miniplayer-endpoint-changed");LvR(V);_.S3A(V);return V.shortsPipMode||V.watchPipMode?_.D(Q,_.mx(V.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.q("ytd_miniplayer_to_wiz")?_.D(Q,_.mx(V.miniplayerEl,"yt-activate-miniplayer",[X]),6):_.D(Q,_.mx(V.miniplayerEl,"yt-activate-miniplayer-action",[Y,X]),6);case 6:if(V.watchResponse&&
!_.q("miniplayer_copy_screen_on_activation_killswitch")){Z=V.getScreenLayer();var e=_.dO(0),O=s_b(0);e&&O&&(_.LM(e,O,Z),Z===0&&xka(void 0,0))}ags(V);rcs(V,!0);(x=V.getPlayerElement())==null||x.focusOnPlayer();_.om(Q)}})};
vo.prototype.updateMiniplayerData=function(Y){this.miniplayerData=Y;_.Po(this,{data:Y})};
_.S3A=function(Y){var b,w,V=((b=Y.miniplayerData)==null?void 0:(w=b.miniplayerRenderer)==null?void 0:w.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";b=Y.watchWhileMode||Y.watchPipMode?V&&!_.fH().resolve(_.bX).isOnWatch():V;_.Po(Y,{isDisabled:b});var H,f;w=_.v((H=Y.miniplayerData)==null?void 0:(f=H.miniplayerRenderer)==null?void 0:f.minimizedEndpoint,_.tI);b&&w&&_.fH().resolve(_.BR).openSheet({openPopupActionCommand:{openPopupAction:w}},Y.miniplayerEl)};
ags=function(Y){if(Y.watchResponse&&!zYO(Y)){var b,w=(b=Y.watchResponse.playerResponse)==null?void 0:b.trackingParams;w&&(_.Po(Y,{expandVe:_.tj(35989),closeVe:_.tj(34699),readyToResumeCloseVe:_.tj(131070),repositionVe:_.tj(226204),resizeVe:_.tj(226205)}),_.Po(Y,{playerVe:_.nA(w)}))}};
d_R=function(Y,b){return _.c(function(w){if(w.nextAddress==1)return b.preparePlayer(),_.D(w,b.getPlayerPromise(),2);Y.player=w.yieldResult;Y.player&&(Y.player.addEventListener("onPlayVideo",Y.JSC$16527_onPlayerPlayVideo),Y.player.addEventListener("onCloseMiniplayer",Y.onPlayerCloseMiniplayer),Y.player.addEventListener("onExpandMiniplayer",Y.onPlayerExpandMiniplayer),Y.player.addEventListener("onStateChange",Y.onPlayerStateChange));_.om(w)})};
_.g=vo.prototype;_.g.JSC$16527_onPlayerPlayVideo=function(Y){var b=Y.sessionData&&"autonav"in Y.sessionData,w;Y.sessionData&&Y.sessionData.itct&&(w=Y.sessionData.itct);var V=Y.watchEndpoint;b=V&&b?_.Siu(V,w):_.f8(Y.videoId,Y.listId||void 0,w);Y.sessionData&&_.VX(_.v(b.commandMetadata,_.g5).url,Y.sessionData);r5C(this,b)};
_.g.onPlayerExpandMiniplayer=function(){_.q2(this)};
_.g.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.g.onPlayerStateChange=function(){if(this.player){var Y=this.player.getPlayerState(),b=Y===1;_.u3().dispatch(Ch5(Y));_.u3().dispatch(_.jH_(Y));_.De(this.miniplayerEl,"yt-miniplayer-play-state-changed",[b]);_.sL().isVideoPlaying=b;if(Y===0){b=!_.Vy.getInstance().isAutoplaySetExplicitly();var w,V,H,f,E,U,X=(w=this.watchResponse.response)==null?void 0:(V=w.contents)==null?void 0:(H=V.twoColumnWatchNextResults)==null?void 0:(f=H.autoplay)==null?void 0:(E=f.autoplay)==null?void 0:(U=E.autoplayExplicitChoiceDialogRenderer)==
null?void 0:U.confirmDialogRenderer;b&&X&&this.player.setAutonavState(1)}Y===0&&this.watchWhileMode&&this.deactivate()}};
_.g.onPlaylistNavigate=function(Y,b){var w=this,V,H,f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1){if(!_.v(b.endpoint,_.TG))return k.return();_.sL().currentEndpoint=b.endpoint;_.De(w.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.fH().resolve(_.bX).isOnWatch()&&(w.watchWhileMode||w.watchPipMode))return k.return();Y.stopPropagation();(f=(H=_.v((V=b.endpoint)==null?void 0:V.commandMetadata,_.g5))==null?void 0:H.url)&&b.tempData&&!_.BL.isEmpty(b.tempData)&&_.VX(f,b.tempData);E={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};U=new TQ8(function(){return w.getPlayerElement()},E,{layer:w.getScreenLayer()});
X=function(l){U.processChunk({endpoint:b.endpoint,data:l})};
Wvt(w);w.miniplayerFetchRequest=KvQ(w,b.endpoint,X);_.ct(k,2);return _.D(k,w.miniplayerFetchRequest,4)}if(k.nextAddress!=2)return I=k.yieldResult,i3I(w,I),_.$u(k,0);_.mS(k);_.om(k)})};
_.g.JSC$16527_onPlaylistDataUpdated=function(){var Y=_.fH().resolve(_.zF).getPlaylistData();this.hasPlaylistData=!!Y;_.Po(this,{externalPlaylistData:Y||{}})};
_.g.close=function(Y){if(this.isInitialized())if(Y){if(!((this.watchWhileMode||this.watchPipMode)&&_.fH().resolve(_.bX).isOnWatch()||this.shortsPipMode)){var b;(b=this.getPlayerElement())==null||b.stop()}this.deactivate()}else _.Cp().closeMiniplayer(this.miniplayerEl)};
_.g.deactivate=function(Y){var b=this,w,V,H,f;return _.c(function(E){if(E.nextAddress==1){if(!b.isInitialized()||!b.active)return E.return();b.setActive(!1);Wvt(b);(w=!!Y&&tQO(b,Y))&&b.isSingleOptionSurveyActive&&_.Xx(b.miniplayerEl,"yt-show-watch-page-survey",[b.isSingleOptionSurveyActive]);return _.D(E,AcI(b),2)}if(E.nextAddress!=3){rcs(b,!1);b.isReadyToResume=!1;b.watchResponse=void 0;b.updateMiniplayerData(void 0);b.shortsPipMode&&(b.shortsPipMode=!1,_.u3().dispatch(SUk(b.shortsPipMode)),mrN(b.pipController),
(V=b.player)==null||V.setInternalSize(NaN,NaN));b.watchPipMode&&(b.watchPipMode=!1,mrN(b.pipController));(H=b.watchWhileMode)&&_.FvQ(b,!1);b.removePlayerListeners();var U=_.fH().resolve(_.zF);U.removeEventListener("yt-navigate",_.Io(b,b.onPlaylistNavigate));U.removeEventListener("yt-playlist-data-updated",_.Io(b,b.JSC$16527_onPlaylistDataUpdated));_.sL().currentEndpoint=null;_.De(b.miniplayerEl,"yt-miniplayer-endpoint-changed");b.playerElement=null;T9t();return b.shortsPipMode||b.watchPipMode?E.jumpTo(3):
_.D(E,_.mx(b.miniplayerEl,_.q("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[w,H]),3)}(f=b.player)==null||f.setInternalSize(NaN,NaN);b.player=null;_.om(E)})};
var AcI=function(Y){var b;return _.c(function(w){b=_.fH().resolve(_.bX);return Y.shortsPipMode?_.D(w,b.movePlayerToShorts(Y.playerElement),0):_.D(w,b.movePlayerToWatch(Y.playerElement),0)})};
vo.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16527_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
vo.prototype.setActive=function(Y){this.active=Y;this.isSingleOptionSurveyActive?_.Xx(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Xx(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.u3().dispatch(_.Uf({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.FvQ=function(Y,b){Y.watchWhileMode=b;_.Po(Y,{watchWhile:b})};
rcs=function(Y,b){if(!zYO(Y))if(Y.shortsPipMode||Y.watchPipMode){var w;(w=Y.player)==null||w.setDocumentPictureInPicture(b)}else{var V;(V=Y.player)==null||V.setMinimized(b)}};
zYO=function(Y){return Y.watchWhileMode&&_.q("kevlar_watch_while_counterfactual")};
_.q2=function(Y){var b;return _.c(function(w){switch(w.nextAddress){case 1:if(!Y.isInitialized())return w.return();_.ct(w,2);return _.D(w,Y.miniplayerFetchRequest,4);case 4:_.$u(w,3);break;case 2:_.mS(w);case 3:Y.watchResponse&&Y.miniplayerData&&Y.miniplayerData.watchEndpoint?(b={url:Y.watchResponse.url,endpoint:Y.miniplayerData.watchEndpoint,data:Y.watchResponse,miniplayer:!0},_.Ua(Y.miniplayerEl,"yt-navigate-cache",b)):Y.miniplayerData&&Y.miniplayerData.watchEndpoint&&_.Ua(Y.miniplayerEl,"yt-navigate",
{endpoint:Y.miniplayerData.watchEndpoint}),_.om(w)}})};
r5C=function(Y,b,w){var V,H,f,E;return _.c(function(U){if(U.nextAddress==1){if(tQO(Y,b))return U.return();_.sL().currentEndpoint=b;_.De(Y.miniplayerEl,"yt-miniplayer-endpoint-changed");_.De(Y.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.sL().isVideoPlaying=!1;V={clientParams:{miniplayer:!0,autoSaveToQueue:!w}};H=new TQ8(function(){return Y.getPlayerElement()},V,{layer:Y.getScreenLayer(),
parentLayer:0},void 0,Y.readyToResumeVe);f=function(X){var I,k,l=Object.assign({},(I=X.playerResponse)==null?void 0:(k=I.playerConfig)==null?void 0:k.playbackStartConfig,{startPaused:!0}),x;w&&((x=X.playerResponse)==null?0:x.playerConfig)&&(X.playerResponse.playerConfig.playbackStartConfig=l);H.processChunk({endpoint:b,data:X})};
Wvt(Y);Y.miniplayerFetchRequest=KvQ(Y,b,f);_.ct(U,2);return _.D(U,Y.miniplayerFetchRequest,4)}if(U.nextAddress!=2)return E=U.yieldResult,i3I(Y,E),_.$u(U,0);_.mS(U);_.om(U)})};
vo.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var Wvt=function(Y){Y.miniplayerFetchRequest&&(Y.miniplayerFetchRequest.cancel&&Y.miniplayerFetchRequest.cancel("Active request obsolete"),Y.miniplayerFetchRequest=null)},KvQ=function(Y,b,w){var V=_.B5.instance,H,f=(H=_.v(b.commandMetadata,_.g5))==null?void 0:H.url,E;
H=!f||_.q("disable_miniplayer_tempdata")?{}:(E=Nyt(f))!=null?E:{};return jZ(V,b,H,window.location.href,"watch",function(U,X){w(X)},function(U){return U!==Y.miniplayerFetchRequest})},i3I=function(Y,b){var w;
_.c(function(V){if(!b)return V.return();Y.watchResponse=b;ags(Y);LvR(Y);w=_.IrK(b.response,b.playerResponse);if(Y.isMiniplayerActive()){b.response&&(Y.playerElement.watchNextData=b.response);var H=_.BL.getValueByKeys.apply(_.BL,[b].concat(_.Bt(NQ_)));_.BL.getValueByKeys.apply(_.BL,[b].concat(_.Bt(D7Q)))&&H&&_.fH().resolve(_.zF).setAutoplayRenderer(H);if(H)if(_.q("kevlar_is_pupi_enabled")){var f,E,U,X,I,k=((f=b.response)==null?0:(E=f.playerOverlays)==null?0:(U=E.playerOverlayRenderer)==null?0:(X=U.autonavToggle)==
null?0:(I=X.autoplaySwitchButtonRenderer)==null?0:I.enabled)?2:1;_.Vy.getInstance().setState(k,!1,!1)}else f=qTG()?2:1,(k=Y.player)==null||k.setAutonavState(f);Y.updateMiniplayerData(w);_.S3A(Y)}_.om(V)})},LvR=function(Y){var b,w,V=(b=Y.watchResponse)==null?void 0:(w=b.playerResponse)==null?void 0:w.playabilityStatus,H;
b=V==null?void 0:(H=V.miniplayer)==null?void 0:H.miniplayerRenderer;(b==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&b.minimizedEndpoint&&_.oP(Y.miniplayerEl,[b.minimizedEndpoint]);_.Po(Y,{miniplayerRenderer:b,playabilityStatus:V})};
vo.prototype.openToast=function(Y,b){_.Po(this,{toastData:{data:Y,label:b}})};
_.Po=function(Y,b){var w=Y.miniplayerEl,V;for(V in b)w[V]=b[V];(0,Y.miniplayerPropSignalMap[1])(b)};
vo.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var Y;return this.playerElement?this.playerElement:(Y=_.E6(this.miniplayerEl).querySelector("#player-container"))==null?void 0:Y.firstElementChild};
vo.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var RYX=function(Y,b){b=b===void 0?!1:b;var w,V,H,f,E,U,X;return _.c(function(I){if(I.nextAddress==1){w=navigator.userActivation.isActive||b;if(!w||!Y.pictureInPictureSupported())return I.return(!1);V=Cjs(Y);H=V.width;f=V.height;return _.D(I,Y.pipController.openWindow({width:H,height:f}),2)}E=I.yieldResult;U=Y.pipController.getWindow();if(!U||!E)return I.return(!1);U.document.body.style.overflow="hidden";X=HKe(U);obQ(Y.pipController,function(){ycs(Y);X()});
return I.return(!0)})},Cjs=function(Y){var b=_.sL().shortsPipActivation,w,V;
Y=b?.5625:(V=(w=Y.player)==null?void 0:w.getVideoAspectRatio())!=null?V:16/9;w=Math.min(window.innerWidth,window.innerHeight)/2;b=b?0:76;return Y>1?new _.mE(w,b+w/Y):new _.mE(w*Y,b+w)},ycs=function(Y){var b;
_.c(function(w){b=_.fH().resolve(_.bX);return b.isOnWatch()&&Y.watchPipMode||b.isOnShorts()&&Y.shortsPipMode?_.D(w,Y.deactivate(),0):Y.miniplayerToPipMode?_.D(w,O3R(Y),0):Y.watchPipMode?_.D(w,_.q2(Y),0):w.jumpTo(0)})};
vo.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.up.Object.defineProperties(vo.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
vo[VS]=[ItF,OwU];var $_R="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(" "),
jwN="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),GwX="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
TXR="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var Jct=null;var uDQ={},Yub=(uDQ.initialized={priority:10,callback:function(Y){var b=_.fH();b.addProvider({provide:wLK,useClass:mQd});b.addProvider({provide:_.DQR,useFactory:function(){return new Vq8}});
b.addProvider({provide:hi,useValue:_.zO("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});b.addProvider({provide:Zt9,useValue:5184E6});b.addProvider({provide:zf_,useValue:_.dp()});b.addProvider({provide:T65,useClass:dN$});b.addProvider({provide:Kc,useClass:Kc});b.addProvider({provide:_.EH,useFactory:function(){return aLI.promise}});
b.addProvider({provide:_.z9$,useFactory:function(){return _.rBU.promise}});
b.addProvider({provide:d0K,useValue:function(){var U;return((U=_.V4())==null?void 0:U.getPlayer())||null}});
var w={};b.addProvider((w.provide=_.K0,w.useFactory=function(U,X){return function(){return Pqu(U,X)}},w[VS]=[hi,
Zt9],w));w={};b.addProvider((w.provide=_.cR,w.useClass=D5K,w[VS]=[hi,Zt9],w));w={};b.addProvider((w.provide=_.hDt,w.useClass=ka_,w[VS]=[_.cR],w));b.addProvider({provide:ce,useFactory:_.u3});b.addProvider({provide:oM,useFactory:_.u3});b.addProvider({provide:YMQ,useFactory:_.u3});b.addProvider({provide:Qf5,useFactory:_.u3});b.addProvider({provide:_.i4,useFactory:_.u3});b.addProvider({provide:xc,useValue:_.xt});b.addProvider({provide:NUX,useClass:QPG});b.addProvider({provide:HtK,useClass:Vsk});b.addProvider({provide:MJ,
useClass:MJ});b.addProvider({provide:qx,useClass:qx});b.addProvider({provide:sq,useClass:sq});b.addProvider({provide:v5,useClass:v5});b.addProvider({provide:Fn,useClass:Fn});b.addProvider({provide:kn,useClass:kn});b.addProvider({provide:c4,useClass:c4});b.addProvider({provide:bTt,useValue:BtF});b.addProvider({provide:_.eo,useFactory:_.Qd});b.addProvider({provide:$9,useFactory:_.P0});w={};b.addProvider((w.provide=bNL,w.useFactory=function(U){return function(X){var I=I===void 0?{}:I;var k,l,x=(l=_.v((k=
X.endpoint)==null?void 0:k.commandMetadata,_.g5))==null?void 0:l.rootVe;if(x){var Q,Z;if(k=X.previousCsn||((Z=_.v((Q=X.endpoint)==null?void 0:Q.commandMetadata,lWo))==null?void 0:Z.parentCsn)){var e=e===void 0?{}:e;if(k!==_.dO(e.layer)||x!==s_b(e.layer))BPG(k,e.cttAuthInfo,e.layer||0),xka(k,e.layer||0),Q=e.layer||0,_.rx(qVg(Q===void 0?0:Q),x);I.parentCsn=k}X.endpoint&&k?dSo(U,X.endpoint,I):_.mo(U,x,void 0,I);var O;((O=X.response)==null?0:O.trackingParams)&&U.graftServerVe(X.response.trackingParams);
var L;((L=X.playerResponse)==null?0:L.trackingParams)&&U.graftServerVe(X.playerResponse.trackingParams);var r;((r=X.reelWatchSequenceResponse)==null?0:r.trackingParams)&&U.graftServerVe(X.reelWatchSequenceResponse.trackingParams)}}},w[VS]=[_.eo],w));
w={};b.addProvider((w.provide=wgR,w.useClass=bad,w[VS]=[xc,_.i4],w));w={};b.addProvider((w.provide=YN,w.useClass=YN,w[VS]=[_.EH,_.i4],w));w={};b.addProvider((w.provide=G4,w.useClass=G4,w[VS]=[oM,_.Nn],w));b.addProvider({provide:_.Ebs,useClass:ltt});w={};b.addProvider((w.provide=_.Za,w.useClass=Xgb,w[VS]=[_.Ebs],w));b.addProvider({provide:_.BR,useClass:Vx});b.addProvider({provide:_.FOo,useClass:GKg});b.addProvider({provide:_.n$,useClass:bd});w={};b.addProvider((w.provide=_.iB,w.useClass=kKQ,w[VS]=
[_.iB],w));b.addProvider({provide:_.bw,useClass:Tg_});b.addProvider({provide:oJ,useClass:oJ});b.addProvider({provide:qI,useClass:qI});b.addProvider({provide:MI,useClass:wJ});w={};b.addProvider((w.provide=O8,w.useClass=O8,w[VS]=[_.BR,MI],w));_.q("web_enable_feedback_endpoint_resolver")&&(w={},b.addProvider((w.provide=U8,w.useClass=U8,w[VS]=[ce,E8],w)),b.addProvider({provide:E8,useClass:hfk}));_.q("web_enable_feedback_endpoint_resolver_batch_2")&&(w={},b.addProvider((w.provide=D$,w.useClass=D$,w[VS]=
[ce],w)),w={},b.addProvider((w.provide=Xv,w.useClass=Xv,w[VS]=[E8],w)));w={};b.addProvider((w.provide=eN,w.useClass=eN,w[VS]=[_.n$,MI],w));w={};b.addProvider((w.provide=Pe,w.useClass=Pe,w[VS]=[_.n$],w));w={};b.addProvider((w.provide=pG,w.useClass=pG,w[VS]=[_.Sy,_.Za],w));w={};b.addProvider((w.provide=nG,w.useClass=nG,w[VS]=[_.Sy,_.eo],w));b.addProvider({provide:YR,useClass:YR});w={};b.addProvider((w.provide=yM,w.useClass=yM,w[VS]=[ce],w));b.addProvider({provide:op,useClass:op});b.addProvider({provide:mf,
useClass:mf});w={};b.addProvider((w.provide=kR,w.useClass=kR,w[VS]=[ce],w));w={};b.addProvider((w.provide=le,w.useClass=le,w[VS]=[_.Sy,ce],w));w={};b.addProvider((w.provide=hM,w.useClass=hM,w[VS]=[ce],w));w={};b.addProvider((w.provide=Bj,w.useClass=Bj,w[VS]=[ce],w));w={};b.addProvider((w.provide=Z$,w.useClass=Z$,w[VS]=[_.Za],w));w={};b.addProvider((w.provide=go,w.useClass=go,w[VS]=[_.eo],w));w={};b.addProvider((w.provide=XF,w.useClass=XF,w[VS]=[Ji],w));w={};b.addProvider((w.provide=Dx,w.useClass=
Dx,w[VS]=[Ji],w));b.addProvider({provide:Ei,useClass:Ei});b.addProvider({provide:cj,useClass:cj});b.addProvider({provide:Hj,useClass:Hj});w={};b.addProvider((w.provide=ti,w.useClass=ti,w[VS]=[_.Za,_.Nn],w));b.addProvider({provide:lB,useClass:lB});w={};b.addProvider((w.provide=Be,w.useClass=Be,w[VS]=[_.Sy,_.Za],w));b.addProvider({provide:s8,useClass:s8});w={};b.addProvider((w.provide=Ai,w.useClass=Ai,w[VS]=[ce,_.Sy,_.iB],w));w={};b.addProvider((w.provide=We,w.useClass=We,w[VS]=[_.Sy,_.Nn],w));b.addProvider({provide:xB$,
useValue:a0M});b.addProvider({provide:PKd,useValue:Vp6});b.addProvider({provide:KG,useClass:KG});w={};b.addProvider((w.provide=zX,w.useClass=zX,w[VS]=[ce],w));w={};b.addProvider((w.provide=CG,w.useClass=CG,w[VS]=[_.bw,_.Nn],w));w={};b.addProvider((w.provide=mb,w.useClass=mb,w[VS]=[_.Nn],w));b.addProvider({provide:NI,useFactory:function(){return new NI(_.u3())}});
b.addProvider({provide:QEM,useFactory:_.dr.getInstance});w={};b.addProvider((w.provide=x9,w.useClass=x9,w[VS]=[hi,QEM,_.Nn],w));b.addProvider({provide:IJ,useClass:IJ});b.addProvider({provide:wD,useClass:wD});b.addProvider({provide:He,useClass:He});b.addProvider({provide:_.VM,useClass:_.VM});b.addProvider({provide:ee,useClass:ee});w={};b.addProvider((w.provide=SN,w.useClass=SN,w[VS]=[oM],w));w={};b.addProvider((w.provide=aJ,w.useClass=aJ,w[VS]=[_.Nn],w));_.q("web_enable_prefetching_videos_on_home")&&
(b.addProvider({provide:jT,useClass:jT}),b.addProvider({provide:I4,useClass:I4}));w={};b.addProvider((w.provide=MK,w.useClass=MK,w[VS]=[_.Nn],w));b.addProvider({provide:gD,useClass:gD});w={};b.addProvider((w.provide=be,w.useClass=be,w[VS]=[_.Sy,_.Nn],w));w={};b.addProvider((w.provide=fG,w.useClass=fG,w[VS]=[_.Nn],w));b.addProvider({provide:kN,useClass:kN});b.addProvider({provide:Fv,useClass:Fv});w={};b.addProvider((w.provide=dD,w.useClass=dD,w[VS]=[oM,_.Nn],w));w={};b.addProvider((w.provide=tM,w.useClass=
tM,w[VS]=[oM,_.Nn,_.Sy],w));w={};b.addProvider((w.provide=Rp,w.useClass=Rp,w[VS]=[_.Nn],w));w={};b.addProvider((w.provide=Oi,w.useClass=Oi,w[VS]=[_.Nn,_.Sy],w));w={};b.addProvider((w.provide=rD,w.useClass=rD,w[VS]=[_.EH],w));w={};b.addProvider((w.provide=LG,w.useClass=LG,w[VS]=[_.EH],w));b.addProvider({provide:TX,useClass:TX});b.addProvider({provide:uB,useClass:uB});b.addProvider({provide:Ip,useClass:Ip});b.addProvider({provide:wo,useClass:wo});b.addProvider({provide:GX,useClass:GX});b.addProvider({provide:QM,
useClass:QM});b.addProvider({provide:jN,useClass:jN});_.q("kevlar_enable_mss_lazy_load")&&b.addProvider({provide:_.$i,useClass:y_t});b.addProvider({provide:_.P5,useClass:gJ});b.addProvider({provide:ww,useFactory:function(){return _.CB.getInstance()}});
b.addProvider({provide:JDK,useFactory:a_v});b.addProvider({provide:Ji,useFactory:function(){return _.pp.getInstance()}});
b.addProvider({provide:OU$,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});w={};b.addProvider((w.provide=_.T4,w.useClass=_.T4,w[VS]=[_.EH,_.Nn,_.eo,JDK,Ji,ww,OU$,xc],w));b.addProvider({provide:_.ox,useClass:IIj});b.addProvider({provide:_.nKQ,useClass:B7j});w={};b.addProvider((w.provide=ve,w.useClass=ve,w[VS]=[_.nKQ],w));w={};b.addProvider((w.provide=_.J$,w.useFactory=function(U){return U.upliftCompletionResolver.promise},w[VS]=[wgR],w));
w=_.Wf("IS_SHELL_LOAD")?"aa":"eocs";var V=_.Wf("IS_SHELL_LOAD")?3:2;_.Kp().parkOrScheduleJob(function(){HaQ()},V,w);
_.Kp().parkOrScheduleJob(function(){_.fH().resolve(YN).start()},2,"eocs");
_.Kp().parkOrScheduleJob(function(){umo()},2,"eocs");
_.Kp().parkOrScheduleJob(function(){_.fH().resolve(G4).start()},2,"eocs");
_.q("kevlar_debug_data_app_registration_ks")||fIa();b.addProvider({provide:_.dn,useValue:new c3$(Y.root)});b.addProvider({provide:iF,useValue:new zQG});b.addProvider({provide:_.lGt,useValue:new IGt(Y.root)});b.addProvider({provide:_.LX,useValue:new kYr});b.addProvider({provide:_.Mx,useClass:hm});b.addProvider({provide:ItF,useClass:Ho});_.q("kevlar_network_sli_killswitch")||b.addProvider({provide:h8R,useValue:sXt});b.addProvider({provide:EdO,useFactory:eZa});_.q("web_bind_fetch")&&(w={},b.addProvider((w.provide=
c_I,w.useFactory=pnI,w[VS]=[_.HQ(EdO)],w)));_.q("web_bind_parse")&&(w={},b.addProvider((w.provide=UQF,w.useFactory=OOa,w[VS]=[_.HQ(EdO)],w)));_.q("web_bind_window_request")&&(w={},b.addProvider((w.provide=X9X,w.useFactory=tve,w[VS]=[_.HQ(EdO)],w)));w={};b.addProvider((w.provide=AF9,w.useFactory=JVM,w[VS]=[_.J$,ce,_.K0],w));w={};b.addProvider((w.provide=itC,w.useClass=FF,w[VS]=[AF9],w));b.addProvider({provide:f3t,useClass:wF9});b.addProvider({provide:rFo,useClass:WO8});w=[].concat(_.Bt(G9));_.q("web_continuation_response_processing")&&
w.push(_.Wb);w.push(AI8);_.q("enable_share_panel_navigation_logging_fix_on_web")&&w.push(_.Dbr);b.addProvider({provide:QpL,useValue:w});b.addProvider({provide:ZKg,useClass:aoK});b.addProvider({provide:vdt,useClass:xQX});w={};b.addProvider((w.provide=sEg,w.useClass=nl5,w[VS]=[oM],w));_.Lb.addLowPriorityJob(function(){ETv()});
w={};b.addProvider((w.provide=Zet,w.useFactory=function(U){return function(X){var I,k=(I=_.v(X.commandMetadata,_.g5))==null?void 0:I.url;if(!k)throw new _.BQ("No URL for PBJ Command",X);k=qZa(k,{pbj:"1"});I=akB(k,{})||{};I=Object.assign({},I,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.zO("STS").toString()});X=_.h6({command:JSON.stringify(X),session_token:_.zO("XSRF_TOKEN")});return U.fetch(k,{method:"POST",headers:I,body:X})}},w[VS]=[vdt],w));
w=[];w.push(b.resolve(rFo));V={};V=(V.client_location=_.dr.getInstance(),V.consistency=_.xSL(),V.entities=b.resolve(HtK),V.response_received_commands=b.resolve(ZKg),V.store=b.resolve(_.hDt),V.tokens=b.resolve(rFo),V);if(_.q("web_shorts_prefetch_service_enabled")){var H=new l3d(b.resolve(_.cR));V.shorts_prefetch=H}V.adblock_detection=b.resolve(sEg);b.addProvider({provide:_.jI,useClass:_.jI});H=b.resolve(bTt);var f=[];_.q("PremiumClientSharedConfig__enable_att_context_processor")&&(b.addProvider({provide:Wr$,
useClass:aG5}),f.push(b.resolve(Wr$)));if(_.q("owl_pl_await")){var E={};b.addProvider((E.provide=w9N,E.useFactory=function(U){return new Ytt(U)},E[VS]=[_.jI],E));
f.push(b.resolve(w9N))}Ruo(H,b.resolve(vdt),b.resolve(NUX),V,b.resolve(_.cR),w,f,b.resolve(itC),b.resolve(f3t));b.addProvider({provide:_.Sy,useValue:_.C_.instance});_.q("start_client_gcf")&&b.addProvider({provide:ek,useValue:tIo()});b.addProvider({provide:ftI,useFactory:function(){return new ftI(_.fH().resolve(_.jI),_.pp.getInstance())}});
_.Kp().parkOrScheduleJob(function(){NBb()},1,"eocs");
w={};b.addProvider((w.provide=uE,w.useClass=uE,w[VS]=[_.K0,_.Sy],w));b.addProvider({provide:_.Q6d,useFactory:_.o4.getInstance});_.Kp().parkOrScheduleJob(function(){_.fH().resolve(uE).refresh()},0,"eocs");
BiU(BtF.watchEndpointMap||{},H.reelWatchEndpointMap||{},Y.injector.resolve(_.Sy));b.addProvider({provide:Mq,useValue:_.B5.instance});_.q("kevlar_signal_collection_killswitch")||(w={},b.addProvider((w.provide=GaK,w.useClass=GaK,w[VS]=[hi,$9],w)),_.Kp().parkOrScheduleJob(function(){_.fH().resolve(GaK).record()},1,"eocs"));
_.q("web_debug_handler_registration_killswitch")||_.Kp().parkOrScheduleJob(function(){HwK("DOWNLOAD_PES",ShL);_.q("offline_client_state_export_ks")||HwK("OFFLINE_CLIENT_STATE",d3v)},0,"eocs");
_.q("kevlar_prevent_polymer_dynamic_font_load")&&_.Kp().parkOrScheduleJob(function(){var U=[_.HL(dQI),_.HL(FIA)];U=_.N(U);for(var X=U.next();!X.done;X=U.next()){X=X.value;var I=document.createElement("link");_.Cu(I,X,"stylesheet");document.head.appendChild(I)}},1,"eocs");
w=Y.injector.resolve(_.Sy);_.za_.instance=new _.za_(w);q$b(tGo(new r39(w)));w={};Y.injector.addProvider((w.provide=Vc,w.useFactory=function(U){(U=U==null?void 0:U.getCurrentPage())?U=U.visibilityObserver:(Jct||(Jct=Znr()),U=Jct);return U},w[VS]=[_.HQ(_.bX)],w.skipCache=!0,w));
b.addProvider({provide:_.Ck,useClass:vo});b.addProvider({provide:l5,useClass:Qcj});Y.injector.addProvider({provide:q55,useValue:El_});b.addProvider({provide:H2U,useValue:Smq});b.addProvider({provide:_.GT,useValue:j96});Y=b.addProvider;PI7||(PI7=new vbO);Y.call(b,{provide:_.fq,useValue:PI7});b.addProvider({provide:_.JA,useValue:_.zO("HTML_DIR")==="rtl"?"rtl":"ltr"});b.addProvider({provide:fo_,useClass:kU_});b.addProvider({provide:_.kO,useClass:El});_.fH().addProvider({provide:EKk,useValue:_.q("enable_web_delhi_icons")?
jwN.concat(TXR):$_R.concat(GwX)});b.addProvider({provide:_.Ul,useClass:_.Ul});b.addProvider({provide:_.p9Q,useValue:new e8X});b.addProvider({provide:fUj,useClass:btI});b.addProvider({provide:VH,useClass:VH});b.addProvider({provide:fv,useClass:fv});Y={};b.addProvider((Y.provide=RJ,Y.useClass=RJ,Y[VS]=[_.Sy,_.Za],Y));b.addProvider({provide:pv,useClass:pv});b.addProvider({provide:ZdU,useClass:xrg});b.addProvider({provide:Ui,useClass:Ui});b.addProvider({provide:wC_,useValue:zNj});b.addProvider({provide:_.RT,
useClass:wWr});_.q("enable_payments_purchase_manager")&&b.addProvider({provide:C_5,useClass:Krj});b.addProvider({provide:R87,useFactory:function(){return function(U){return _.tKR(U)}}});
b.addProvider({provide:_.LOK,useClass:Sko});Y={};b.addProvider((Y.provide=nv,Y.useClass=nv,Y[VS]=[_.LOK],Y));b.addProvider({provide:NK,useClass:NK});b.addProvider({provide:xd$,useValue:GvK});b.addProvider({provide:t_$,useValue:_.tLQ});b.addProvider({provide:IIK,useClass:hqb});b.addProvider({provide:Zat,useValue:pIs});Y={};b.addProvider((Y.provide=_.N2,Y.useClass=BBg,Y[VS]=[Zat],Y));_.q("web_ephemeral_actions")&&(Y={},b.addProvider((Y.provide=_.Dh,Y.useClass=X8,Y[VS]=[_.i4,_.Mx],Y)));if(_.q("web_explore_hub_on_hover")||
_.q("web_client_explore_hub_on_hover"))Y={},b.addProvider((Y.provide=k9,Y.useClass=k9,Y[VS]=[_.Sy,ww],Y));b.addProvider({provide:aML,useValue:OJb});Y={};b.addProvider((Y.provide=x5U,Y.useClass=hIC,Y[VS]=[_.Sy],Y))}},uDQ);var buN={},wNs=(buN.initialized={priority:10,callback:function(){if(!l5X){yLt();dOv("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.oV(_.v0(dOv,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.q("log_heartbeat_with_lifecycles")){var Y={};JB.instance||(JB.instance=new JB);JB.instance.install((Y.document_visible={callback:Faq,priority:10},Y.document_hidden={callback:Faq,priority:10},Y))}else _.Vu(document,"visibilitychange",Faq);l5X=!0}(Y=_.dO())&&Y!=="UNDEFINED_CSN"&&lqa(Y)}},buN);var Vrd={},Hut=(Vrd.initialized={callback:function(Y){var b=_.tj(232091),w=Y.injector.resolve(_.eo);_.oC(w,b);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?gjt()&&_.kV(w,b):(Y=Y.injector.resolve(R87)("refresh_detector"))&&(Y.get("first_tab_load")?_.kV(w,b):Y.set("first_tab_load","1"))}},Vrd);var gHg={},fDX=(gHg.initialized={priority:10,callback:m9I},gHg);var NEt={},EHb=(NEt.initialized={priority:0,callback:function(){var Y=new Ry_,b="other";_.s0?b="chrome":_.qX?b="firefox":_.ra?b="safari":Yr&&(b="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(w){Y.increment(_.vQ(),w,b)}).catch(function(){Y.increment(_.vQ(),!1,b)}):Y.increment(_.vQ(),!1,b)}},NEt);var czQ={},U1F=(czQ.rendering={priority:8,callback:ojM},czQ);var XNO={},D1g=(XNO.rendering={priority:10,callback:njt},XNO.rendered={callback:BkM},XNO),m1X={},oHI=(m1X.rendering={callback:njt},m1X.rendered={callback:BkM},m1X);var IDb=!1,kzO={},lDQ=(kzO.initialized={priority:10,callback:function(){IDb||(PFu({didPatch:function(Y){Y.el&&vNa(Y.el,Y.props)},
didUnmount:function(Y){s4a(Y.el)}}),IDb=!0)}},kzO);var h4N=/^\/shorts\/?$/;_.rx("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(_.q("kevlar_enable_mss")){_.b7r(new kCC);var x1X=!0,quN,Zh;x1X=x1X===void 0?!1:x1X;quN=quN===void 0?!1:quN;Zh=Zh===void 0?{}:Zh;var sgX=Zh.cssRowKey||"",QgF=Zh.combinedSignature||"";!sgX&&window&&window._F_cssRowKey&&(sgX=window._F_cssRowKey,!QgF&&window._F_combinedSignature&&(QgF=window._F_combinedSignature));if(sgX&&typeof window._F_installCss!=="function")throw Error("wd");var vHt=Zh.loaderClass||_.ix,Bo=WzK("base-js"),PHN,Zug=i76("",Bo);PHN=_.Uu(Zug);var nq=new vHt(PHN,sgX,QgF,x1X,quN),BEt=
Zh.useCors||Bo&&Bo.hasAttribute("crossorigin"),nHQ=Zh.corsMode||Bo&&Bo.getAttribute("crossorigin");BEt&&(nq.useCors_=BEt);nHQ&&(nq.corsMode_=nHQ);Zh.urlMaxLength&&(nq.urlMaxLength=Zh.urlMaxLength);Zh.fetchPriority&&(nq.fetchPriority=Zh.fetchPriority);var MrF=Rs();MrF.JSC$8090_loader_=nq;MrF.setBatchModeEnabled(!0)}
(function(){var Y=document.querySelector("ytd-app");if(!Y)throw Error("Jj");Y=new mW({root:Y,injector:_.fH()});Y.install(wNs);var b={};Y.install((b.initialized={priority:10,callback:k8r},b));_.q("wp_lat_b")&&(b={},Y.install((b.initialized={priority:10,callback:function(){B8r()}},b)));
b={};Y.install((b.rendered={priority:0,callback:mT6},b));b={};Y.install((b.rendered={priority:0,callback:function(){_.Lb.addLowPriorityJob(function(){_.lor>1&&(fLq(),XwL())},4E4)}},b));
Y.install(NtR);Y.install(Hut);Y.install(lDQ);yVa();Y.install(IAb);Y.install(bgF);Y.install(gsd);Y.install(Kc$);Y.install($5U);Y.install(mFt);Y.install(Yub);_.q("kevlar_enable_mss_lazy_load")&&Y.install(fDX);Y.install(VXs);Y.install(EHb);if(!_.Wf("IS_SHELL_LOAD")||_.q("kevlar_fetch_initial_data_promise_client")||_.q("sw_nav_preload_pbj")){var w=_.ku(window.location.href);b=w&&w==="/watch";w=w&&w.match(h4N);b?Y.install(oHI):w?Y.install(U1F):Y.install(D1g)}else Y.install(J_s);Y.install(cOX);_.q("web_enable_prefetching_videos_on_home")&&
Y.install(xFQ);_.q("start_client_gcf")&&Y.install(kjR);Y.install(Ss9);(new d6U).increment("INSTALLED");Y.install(lAg);Y.install(jkb);Y.transition("initialized");hZB()})();
_.D8=[[["Nm5id2h2a2luZCM4ZmdnMXg=","ZXZhbHVlIzk2Y2JvbjgwMXcz"],"VF9LSU5EX0VORCN3amdwcGdra2czd21BRF9QTEFDRU1FTg=="]];_.X2=["c25uanE4aWdsb2JhbENhbGxiYWNrcyNpY3M3Mg==","YWxpdHlEZXRlY3RlZCN0cm4xOTU5ajlld29uQWJub3Jt","dmQ3dTlyZm9uQWRTa2lwI2hmenFq","bGF5ZXJfcmVzcG9uc2UjMWdvd3YyY3VlMnVkcmF3X3A=","Z2FkUGxhY2VtZW50Q29uZmlnI3BoY3NzcmduMWx3"];_.jF="c25uanE4aWdsb2JhbENhbGxiYWNrcyNpY3M3Mg== YWxpdHlEZXRlY3RlZCN0cm4xOTU5ajlld29uQWJub3Jt dmQ3dTlyZm9uQWRTa2lwI2hmenFq bGF5ZXJfcmVzcG9uc2UjMWdvd3YyY3VlMnVkcmF3X3A= eWxpc3RfcXVldWVfbXVsdGlwbGVfc2tpcHNfa3Mjc2JjbnZ3aXU0YW52d2ViX3BsYQ== OHBycGRhdmFiX3NhX2VmIzlsOTZr Z2FkUGxhY2VtZW50Q29uZmlnI3BoY3NzcmduMWx3".split(" ");
_._ModuleManager_initialize=function(Y,b){if(!_.pC){if(!_.ty)return;_.b7r(_.ty())}_.pC.setAllModuleInfoString(Y,b)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2,3/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syd:2/syc:6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy3','sy8','syd','sya','sy6','syi','syh','sye','syc','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Ol=function(Y,b,w,V,H){var f={};b&&(f[b]=w);V?f.errorType=V:H&&(f.errorReason=H);_.RY(Y,f);_.dh()};
_.tN=function(Y){var b=_.Kp();return _.x7o(b,Y,1)};
_.pV({is:"iron-media-query",_template:null,properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},
_mq:{value:null}},attached:function(){this.style.display="none";this.queryChanged()},
detached:function(){this._remove()},
_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},
_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler);this._mq=null},
queryChanged:function(){this._remove();var Y=this.query;Y&&(this.full||Y[0]==="("||(Y="("+Y+")"),this._mq=window.matchMedia(Y),this._add(),this.queryHandler(this._mq))},
queryHandler:function(Y){this._setQueryMatches(Y.matches)}});var aDX;var rzX;var z4X=function(){};
_.g=z4X.prototype;_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._focusedChanged=function(){};
_.g._createRipple=function(){};
_.g.registered=function(){};
_.g._invalidChanged=function(){};
_.g.hasValidator=function(){};
_.g.validate=function(){};
_.g._getValidity=function(){};
_.g._requiredChanged=function(){};
_.g._valueChanged=function(){};
_.g._checkedChanged=function(){};
_.g._buttonStateChanged=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
z4X=_.pV({is:"tp-yt-paper-radio-button",_template:function(){if(rzX!==void 0)return rzX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_button.tp.yt.paper.radio.button.css.js--\x3e<div id="radioContainer" style-target="container" class="style-scope tp-yt-paper-radio-button">\n  <div id="offRadio" class="style-scope tp-yt-paper-radio-button"></div>\n  <div id="onRadio" class="style-scope tp-yt-paper-radio-button"></div>\n</div><div id="radioLabel" style-target="label" class="style-scope tp-yt-paper-radio-button"><slot class="style-scope tp-yt-paper-radio-button"></slot></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;aDX===void 0&&(aDX=document.createElement("template"));var V=aDX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return rzX=Y},
behaviors:[_.wv$],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(){_.TC(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var Y=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*Y);b%2!==Y%2&&b++;this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})}});var Wmd;var KmA;_.pV({_template:function(){if(KmA!==void 0)return KmA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-radio-group--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_radio_group.tp.yt.paper.radio.group.css.js--\x3e<slot class="style-scope tp-yt-paper-radio-group"></slot>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Wmd===void 0&&(Wmd=document.createElement("template"));var V=Wmd;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return KmA=Y},
is:"tp-yt-paper-radio-group",behaviors:[_.IR5],hostAttributes:{role:"radiogroup"},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"tp-yt-paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(Y){var b=this._valueToItem(Y);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==Y)if(this.allowEmptySelection)Y="";else{b&&(b.checked=!0);return}b&&
(b.checked=!1)}_.CV.select.apply(this,[Y]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(Y){this._focusPrevious();Y.preventDefault();this._activateFocusedItem()},
_onDownKey:function(Y){this._focusNext();Y.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(Y){_.oOC._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(Y){_.oOC._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.CV._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.FL._resetTabindices.apply(this,arguments);this.items.forEach(function(Y){Y.removeAttribute("aria-selected")},this)}});var iut;_.S9("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var R4=function(){return _.F.apply(this,arguments)||this};
_.P(R4,_.F);_.g=R4.prototype;_.g.computeHasPrimaryIcon=function(Y){return!(!Y.icon&&!Y.thumbnail)};
_.g.computeHasSecondary=function(Y){return!(!Y.secondaryIcon&&!Y.secondaryNotificationText)};
_.g.computeHideSecondaryString=function(Y){return!_.q("disable_hide_empty_secondary_string")&&!Y.secondaryNotificationText};
_.g.computeCompactLinkStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.g.computeHasFitHeight=function(Y){return Y==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.g.isActiveEndpoint=function(Y){return(Y=this.get("commandMetadata.webCommandMetadata.url",Y))?_.ku(window.location.href)!=="/account_transfer_channel"&&_.ku(window.location.href)!=="/gaia_link"&&_.ku(window.location.href)!=="/channel_switcher"||Y!=="/account"?_.ku(window.location.href)===Y:!0:!1};
_.g.onTap=function(){var Y;((Y=this.data)==null?0:Y.serviceEndpoint)&&_.oP(this.hostElement,[this.data.serviceEndpoint])};
R4.prototype.onTap=R4.prototype.onTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],R4.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.K("design:type",Boolean)],R4.prototype,"active",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.K("design:type",String)],R4.prototype,"compactLinkStyle",void 0);
_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",Object)],R4.prototype,"icon",void 0);_.z([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.K("design:type",Object)],R4.prototype,"secondaryIcon",void 0);_.z([_.R({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],R4.prototype,"hasSecondary",void 0);_.z([_.R({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],R4.prototype,"hideSecondaryString",void 0);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],R4.prototype,"onTap",null);_.z([_.S({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],R4);
_.a(R4,"ytd-compact-link-renderer",function(){if(iut!==void 0)return iut;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-link-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" role="link" tabindex="-1">\n  \n  <tp-yt-paper-item role="none" class="style-scope ytd-compact-link-renderer">\n    <div id="content-icon" hidden="[[!computeHasPrimaryIcon(data)]]" class="style-scope ytd-compact-link-renderer">\n      <yt-img-shadow fit-height="[[computeHasFitHeight(data.style)]]" height="40" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-compact-link-renderer">\n      </yt-img-shadow>\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-compact-link-renderer">\n      </yt-icon>\n    </div>\n    <div id="primary-text-container" class="style-scope ytd-compact-link-renderer">\n      <yt-formatted-string id="label" text="[[data.title]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n      <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-compact-link-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="right-icon" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]" class="style-scope ytd-compact-link-renderer">\n    </yt-icon>\n    <yt-formatted-string id="secondary-text" hidden="[[hideSecondaryString]]" text="[[data.secondaryNotificationText]]" class="style-scope ytd-compact-link-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-item>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return iut=Y},{mode:1});var Azd;_.S9("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var dJ=function(){var Y=_.F.apply(this,arguments)||this;Y.role="link";Y.tabindex="0";Y.actionMap=_.q("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return Y};
_.P(dJ,_.F);_.g=dJ.prototype;_.g.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.OC()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.g.getCurrentTheme=function(){return _.tL()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.OC()};
_.g.onThemeSelected=function(Y,b){var w=Y||b?Y:_.pX(),V=(w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!w&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.kpr(_.ku(window.location.href));_.Ze(0,165,Y);_.Ze(0,174,b);this.prefs.save();V&&_.Xx(this.hostElement,"yt-dark-mode-toggled-action",[w]);_.Xx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.onTap=function(){this.data.serviceEndpoint&&_.oP(this.hostElement,[this.data.serviceEndpoint])};
_.g.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.g.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.g.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
dJ.prototype.onTap=dJ.prototype.onTap;dJ.prototype.dataChanged=dJ.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],dJ.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.YU),_.K("design:type",Object)],dJ.prototype,"paperItemBehaviors",void 0);_.z([_.R(),_.K("design:type",Object)],dJ.prototype,"data",void 0);_.z([_.R({value:function(){return _.P0()}}),
_.K("design:type",_.f9)],dJ.prototype,"prefs",void 0);_.z([_.R(),_.K("design:type",Object)],dJ.prototype,"label",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dJ.prototype,"role",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dJ.prototype,"tabindex",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dJ.prototype,"dataChanged",null);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dJ.prototype,"onTap",null);_.z([_.S({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],dJ);
_.a(dJ,"ytd-toggle-theme-compact-link-renderer",function(){if(Azd!==void 0)return Azd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-theme-compact-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content-icon style-scope ytd-toggle-theme-compact-link-renderer">\n  <yt-icon id="primary-icon" disable-upgrade$="[[!data.primaryIcon.iconType]]" hidden="[[!data.primaryIcon.iconType]]" icon="[[data.primaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n  </yt-icon>\n</div>\n<div id="label" class="style-scope ytd-toggle-theme-compact-link-renderer">[[getSimpleString(label)]]</div>\n<yt-icon id="secondary-icon" disable-upgrade$="[[!data.secondaryIcon.iconType]]" hidden="[[!data.secondaryIcon.iconType]]" icon="[[data.secondaryIcon.iconType]]" class="style-scope ytd-toggle-theme-compact-link-renderer">\n</yt-icon>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Azd=Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var yzt,$17;_.F8=function(Y){return!!Y.getOptions("captions")};
_.CHb=function(Y){return(Y=Y.getOption("captions","track"))?!!Y.displayName:!1};
_.Lq=function(Y,b){_.zi(b,Y,function(){return yzt[b]},function(w){yzt[b]=w;
if(!_.q("mweb_player_ve_show_ks")){var V=_.dO(0);V&&w&&_.j1(V,w)}})};
_.S$=function(Y){(Y=yzt[Y])&&_.kV(_.Qd(),Y)};
yzt={};var jgb;/*

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
*/
_.pV({_template:function(){if(jgb!==void 0)return jgb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-checkbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_checkbox.tp.yt.paper.checkbox.css.js--\x3e<div id="checkboxContainer" class="style-scope tp-yt-paper-checkbox">\n  <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]] style-scope tp-yt-paper-checkbox">\n    <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]] style-scope tp-yt-paper-checkbox"></div>\n  </div>\n</div><div id="checkboxLabel" style-target="label" class="style-scope tp-yt-paper-checkbox"><slot class="style-scope tp-yt-paper-checkbox"></slot></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;$17===void 0&&($17=document.createElement("template"));var V=$17;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return jgb=Y},
is:"tp-yt-paper-checkbox",behaviors:[_.wv$],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.TC(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var Y=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",w=Y.match(/[A-Za-z]+$/);w!==null&&(b=w[0]);Y=parseFloat(Y);w=8/3*Y;b==="px"&&(w=Math.floor(w),w%2!==Y%2&&w++);this.updateStyles({"--paper-checkbox-ink-size":w+
b})}})},
_computeCheckboxClass:function(Y,b){var w="";Y&&(w+="checked ");b&&(w+="invalid");return w},
_computeCheckmarkClass:function(Y){return Y?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.YHQ._createRipple.call(this)}});var Gzb=new _.A("radioButtonSurveyOptionRenderer"),TEs=new _.A("checkboxSurveyOptionRenderer");var Jz7;var ukb;var Yxt=0,a4=function(){var Y=_.F.call(this)||this;Y.selected=!1;Y.isOverlay=!1;Y.inputId="toggle-option-"+Yxt;Yxt++;return Y};
_.P(a4,_.F);a4.prototype.onTap=function(){_.Ua(this.hostElement,"ytd-toggle-option-clicked")};
_.z([_.R(),_.K("design:type",String)],a4.prototype,"label",void 0);_.z([_.R(),_.K("design:type",String)],a4.prototype,"inputId",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],a4.prototype,"selected",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],a4.prototype,"isOverlay",void 0);_.z([_.S({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.K("design:paramtypes",[])],a4);
_.a(a4,"ytd-toggle-option-renderer",function(){if(ukb!==void 0)return ukb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<input type="checkbox" id$="[[inputId]]" checked="[[selected]]" on-click="onTap" class="style-scope ytd-toggle-option-renderer">\n<label for$="[[inputId]]" class="style-scope ytd-toggle-option-renderer">[[label]]</label>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ukb=Y},{mode:1});var rJ=function(){var Y=_.F.apply(this,arguments)||this;Y.isToggleOption=!1;Y.isOverlay=!1;return Y};
_.P(rJ,_.F);rJ.prototype.onTap=function(Y){Y.preventDefault();this.data&&(Y=!this.data.checked,this.set("data.checked",Y),_.Ua(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:Y,value:this.data.value}))};
_.up.Object.defineProperties(rJ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
rJ.prototype.onTap=rJ.prototype.onTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rJ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rJ.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],rJ.prototype,"isToggleOption",void 0);_.z([_.R(),_.K("design:type",Object)],rJ.prototype,"isOverlay",void 0);_.z([_.t("data.responseText"),_.K("design:type",String),_.K("design:paramtypes",[])],rJ.prototype,"label",null);
_.z([_.kZ("ytd-toggle-option-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],rJ.prototype,"onTap",null);_.z([_.S({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],rJ);
_.a(rJ,"ytd-checkbox-survey-option-renderer",function(){if(Jz7!==void 0)return Jz7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <tp-yt-paper-checkbox checked="[[data.checked]]" on-tap="onTap" class="style-scope ytd-checkbox-survey-option-renderer">\n    [[label]]\n  </tp-yt-paper-checkbox>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-checkbox-survey-option-renderer">\n  <ytd-toggle-option-renderer is-overlay="[[isOverlay]]" label="[[label]]" selected="[[data.checked]]" class="style-scope ytd-checkbox-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Jz7=Y},{mode:1});var bhA;var wtt;var zn=function(){var Y=_.F.apply(this,arguments)||this;Y.checked=!1;Y.isToggleOption=!1;return Y};
_.P(zn,_.F);zn.prototype.onTap=function(){this.data&&(this.checked?_.Xx(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Xx(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
zn.prototype.onTap=zn.prototype.onTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zn.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],zn.prototype,"checked",void 0);_.z([_.R(),_.K("design:type",Object)],zn.prototype,"isToggleOption",void 0);_.z([_.kZ("ytd-toggle-option-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],zn.prototype,"onTap",null);
_.z([_.S({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],zn);
_.a(zn,"ytd-radio-button-survey-option-renderer",function(){if(wtt!==void 0)return wtt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-radio-button-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <tp-yt-paper-radio-button id="radio" checked="[[checked]]" on-click="onTap" class="style-scope ytd-radio-button-survey-option-renderer">\n    [[getSimpleString(data.option)]]\n  </tp-yt-paper-radio-button>\n</template>\n\n<template is="dom-if" if="[[isToggleOption]]" class="style-scope ytd-radio-button-survey-option-renderer">\n  <ytd-toggle-option-renderer label="[[getSimpleString(data.option)]]" selected="[[checked]]" class="style-scope ytd-radio-button-survey-option-renderer"></ytd-toggle-option-renderer>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return wtt=Y},{mode:1});var Wo=function(){var Y=_.F.apply(this,arguments)||this;Y.disableAnimation=!1;Y.isToggleOption=!0;Y.followUpSurveyCommand=null;Y.selectedRatingEndpoint=null;Y.isSlimlineSurveyFollowUp=!1;Y.isShortsStyle=!1;Y.styleOverrideAttribute=!0;Y.isDarkMode=!1;Y.isSubmitted=!1;Y.roundedContainer=!0;Y.improveShortsResponseRate=_.q("web_improve_shorts_response_rate");Y.actionMap={"ytd-inline-survey-rating-select-action":"handleInlineSurveyRatingSelect","ytd-inline-survey-option-select-action":"handleInlineSurveyOptionSelect",
"ytd-inline-survey-option-deselect-action":"handleInlineSurveyOptionDeselect","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(Wo,_.F);_.g=Wo.prototype;
_.g.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"}}}}};
_.g.attached=function(){var Y=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(w){var V;if((V=w[0])!=null&&V.isIntersecting){_.qZ().reportShown(Y.hostElement);var H;(H=Y.intersectionObserver)==null||H.unobserve(Y.hostElement)}},{rootMargin:"0px",
threshold:.6});var b;(b=this.intersectionObserver)==null||b.observe(this.hostElement)};
_.g.onDarkModeToggledAction=function(Y){this.isDarkMode=Y};
_.g.dataChanged=function(){var Y;if(((Y=this.data)==null?void 0:Y.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var b;((b=this.data)==null?void 0:b.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var w,V,H,f;this.darkColorPalette=(w=this.data)==null?void 0:(V=w.inlineContent)==null?void 0:(H=V.compactVideoRenderer)==null?void 0:(f=H.thumbnail)==null?
void 0:f.darkColorPalette;var E,U,X,I;this.lightColorPalette=(E=this.data)==null?void 0:(U=E.inlineContent)==null?void 0:(X=U.compactVideoRenderer)==null?void 0:(I=X.thumbnail)==null?void 0:I.lightColorPalette;var k,l;if(((k=this.data)==null?0:(l=k.inlineContent)==null?0:l.compactVideoRenderer)&&this.isShortsStyle){var x,Q,Z,e;Y=_.Ev((x=this.data)==null?void 0:(Q=x.inlineContent)==null?void 0:(Z=Q.compactVideoRenderer)==null?void 0:(e=Z.thumbnail)==null?void 0:e.thumbnails);_.m_(this.hostElement,
{"--yt-background-url":"url("+Y+")"})}};
_.g.handleRequestCompletion=function(){this.hostElement.hidden&&_.Ua(this.hostElement,"yt-dismissible-item-dismissed")};
_.g.onPopupClosed=function(Y){var b;((b=Y.detail)==null?void 0:b.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Xx(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.g.handleInlineSurveyRatingSelect=function(Y,b){var w=this;this.selectedRatingEndpoint=Y;this.followUpSurveyCommand=b;this.expanded=!!Y;this.getOptionRenderers().forEach(function(V,H){w.notifyPath("followUpSurveyCommand.followUpOptions."+H+".checkboxSurveyOptionRenderer.checked");w.set("followUpSurveyCommand.followUpOptions."+H+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),Y=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Xx(this.hostElement,"yt-reel-non-video-content-dismissal-command",[Y]))};
_.g.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Xx(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var Y,b=(Y=this.data)==null?void 0:Y.dismissalEndpoint;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.g.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Xx(this.hostElement,"yt-close-popup-action"))};
_.g.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var Y=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{Y=this.getOptionRenderers().filter(function(V){return V.checked});
if(Y.length===0)return;Y=Y.map(function(V){return V.responseEndpoint})}var b=[];
Y.forEach(function(V,H){H!==0&&(V=_.v(V,_.aM))&&V.feedbackToken&&b.push(V.feedbackToken)});
if(Y=Y[0]){var w={};b.length>0&&(w.extra_feedback_tokens=b);this.ytComponentBehavior.resolveCommand(Y,{form:w})}}};
_.g.getOptionRenderers=function(){var Y=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(b){Y.isSingleSelect=!!_.v(b,Gzb);return Y.isSingleSelect?_.v(b,Gzb):_.v(b,TEs)}):[]};
_.g.handleInlineSurveyOptionSelect=function(Y){Y=this.optionSelector.indexOf(Y);Y!==-1&&this.optionSelector.selectIndex(Y)};
_.g.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.g.maybeGetBackgroundColor=function(Y){return this.isDarkMode?Y.section2Color:Y.section3Color};
_.g.colorPaletteChanged=function(){var Y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;Y=Y&&this.maybeGetBackgroundColor(Y);this.dismissibleEl.style.backgroundColor=!Y||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.WH(Y)};
_.up.Object.defineProperties(Wo.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Wo.prototype.colorPaletteChanged=Wo.prototype.colorPaletteChanged;Wo.prototype.onPopupClosed=Wo.prototype.onPopupClosed;Wo.prototype.handleRequestCompletion=Wo.prototype.handleRequestCompletion;Wo.prototype.dataChanged=Wo.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Wo.prototype,"actionHandlerBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Wo.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],Wo.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.xZ("#follow-up-survey-options"),_.K("design:type",Object)],Wo.prototype,"optionSelector",void 0);_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"disableAnimation",void 0);_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"isToggleOption",void 0);_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"followUpSurveyCommand",void 0);_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"selectedRatingEndpoint",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Wo.prototype,"expanded",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Wo.prototype,"isSlimlineSurveyFollowUp",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Wo.prototype,"isShortsStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Wo.prototype,"styleOverrideAttribute",void 0);_.z([_.R(),_.K("design:type",Boolean)],Wo.prototype,"isSingleSelect",void 0);_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"isDarkMode",void 0);
_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"lightColorPalette",void 0);_.z([_.R(),_.K("design:type",Object)],Wo.prototype,"darkColorPalette",void 0);_.z([_.t("selectedRatingEndpoint","isShortsStyle"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Wo.prototype,"isOptionSelected",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Wo.prototype,"roundedContainer",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Wo.prototype,"improveShortsResponseRate",void 0);_.z([_.xZ("#dismissible"),_.K("design:type",HTMLElement)],Wo.prototype,"dismissibleEl",void 0);_.z([_.xZ("#dismiss-button yt-icon-button"),_.K("design:type",HTMLElement)],Wo.prototype,"dismissButtonEl",void 0);_.z([_.xZ("#inline-survey-header yt-icon-button"),_.K("design:type",HTMLElement)],Wo.prototype,"inlineHeaderDismissButtonEl",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wo.prototype,"dataChanged",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wo.prototype,"handleRequestCompletion",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Wo.prototype,"onPopupClosed",null);
_.z([_.lr("darkColorPalette","lightColorPalette","isDarkMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wo.prototype,"colorPaletteChanged",null);_.z([_.S({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Wo);
_.a(Wo,"ytd-inline-survey-renderer",function(){if(bhA!==void 0)return bhA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-inline-survey-renderer">\n  <div class="survey-wrapper style-scope ytd-inline-survey-renderer">\n    <div id="star-survey" class="style-scope ytd-inline-survey-renderer">\n      <div id="inline-survey-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="title" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.title)]]</span>\n          <span id="subtitle" class="style-scope ytd-inline-survey-renderer">[[getSimpleString(data.subtitle)]]</span>\n        </h2>\n        <yt-icon-button hidden="[[expanded]]" label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div id="inline-survey-compact-video-renderer" class="style-scope ytd-inline-survey-renderer"></div>\n      <div id="rating-survey" class="style-scope ytd-inline-survey-renderer"></div>\n    </div>\n    <div id="follow-up-survey" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n      <div id="follow-up-header" class="style-scope ytd-inline-survey-renderer">\n        <h2 class="header-text style-scope ytd-inline-survey-renderer">\n          <span id="follow-up-title" class="style-scope ytd-inline-survey-renderer">\n            [[getSimpleString(followUpSurveyCommand.followUpText)]]\n          </span>\n        </h2>\n      </div>\n      <iron-selector id="follow-up-survey-options" activate-event="" selected-attribute="checked" class="style-scope ytd-inline-survey-renderer">\n      </iron-selector>\n      <div id="submit-btn-footer" class="style-scope ytd-inline-survey-renderer">\n        <ytd-button-renderer id="submit-button" data="[[data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-inline-survey-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="skip-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="dismiss-button" hidden="[[!expanded]]" class="style-scope ytd-inline-survey-renderer">\n    <yt-icon-button label="[[getSimpleString(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-inline-survey-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-inline-survey-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-inline-survey-renderer">\n  <div id="post-submit-message" class="style-scope ytd-inline-survey-renderer"></div>\n  <div id="continue-btn-footer" class="style-scope ytd-inline-survey-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return bhA=Y},{mode:1});var VCs=["en-CA","en","es-MX","fr-CA"];_.HhX=_.b8(function(Y){var b=_.ur(Y,{isOverlay:!1,isModern:!1}),w=b.captionIconType,V=b.onClick;Y=b.ariaLabel;var H=b.ariaPressed,f=b.isOverlay,E=b.isModern;b=_.GM("button",function(I){_.Lq(I,127299)});
var U=_.Q_(function(I){_.S$(127299);V==null||V(I);return!1}),X={};
return _.m("ytm-closed-captioning-button",{class:_.hj("ytmClosedCaptioningButtonHost",(X.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return w()===-1&&f()},X.ytmClosedCaptioningButtonIconDisabled=function(){return w()===-1&&!f()},X))},_.m("button",{el:b,
class:"ytmClosedCaptioningButtonButton",title:Y,"aria-label":Y,"aria-pressed":H,"on:click":U},_.m(_.n_,{icon:function(){var I="";var k=E()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var l=_.P0().get("hl");k=!l||VCs.includes(l)?k:"SUBTITLES";l=w();switch(l){case -1:case 0:I=k;break;case 1:I=k+"_FILLED";break;default:_.cI(l)}return I}})))},"$e");
_.HhX.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.j_=function(Y){return function(b,w){var V=Y||w.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(b,w,{get:function(){var H;return this.$?this.$[V]:(H=_.hU(this))==null?void 0:H.querySelector("#"+V)},
enumerable:!0,configurable:!0})}};_.G$=function(Y){Y=Y===void 0?!1:Y;_.BE.call(this);this.pubSub_=new _.xu(Y);_.os(this,this.pubSub_)};
_.DX(_.G$,_.BE);_.G$.prototype.subscribe=function(Y,b,w){return this.isDisposed()?0:this.pubSub_.subscribe(Y,b,w)};
_.G$.prototype.unsubscribe=function(Y,b,w){return this.isDisposed()?!1:this.pubSub_.unsubscribe(Y,b,w)};
_.G$.prototype.unsubscribeByKey=function(Y){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(Y)};
_.G$.prototype.publish=function(Y,b){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var ee7=function(){_.Ol("ypcRedeemFlowStarted")},m1=function(Y){_.Ol("ypcRedeemFlowFailed",void 0,void 0,void 0,Y)},p4O=function(Y,b,w){b&&w&&(Y.videos.forEach(function(V){V.videoId===b&&(V.itemId=w)}),Y.recommendedVideos.forEach(function(V){V.videoId===b&&(V.itemId=w)}))};var Owt;var tEQ;/*

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
*/
_.pV({_template:function(){if(tEQ!==void 0)return tEQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-image--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_image.tp.yt.iron.image.css.js--\x3e<a id="baseURIAnchor" href="#" class="style-scope tp-yt-iron-image"></a>\n<div id="sizedImgDiv" role="img" hidden$="[[_computeImgDivHidden(sizing)]]" aria-hidden$="[[_computeImgDivARIAHidden(alt)]]" aria-label$="[[_computeImgDivARIALabel(alt, src)]]" class="style-scope tp-yt-iron-image"></div>\n<img id="img" alt$="[[alt]]" hidden$="[[_computeImgHidden(sizing)]]" crossorigin$="[[crossorigin]]" on-load="_imgOnLoad" on-error="_imgOnError" class="style-scope tp-yt-iron-image">\n<div id="placeholder" hidden$="[[_computePlaceholderHidden(preload, fade, loading, loaded)]]" class$="[[_computePlaceholderClassName(preload, fade, loading, loaded)]] style-scope tp-yt-iron-image"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Owt===void 0&&(Owt=document.createElement("template"));var V=Owt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return tEQ=Y},
is:"tp-yt-iron-image",properties:{src:{type:String,value:""},alt:{type:String,value:null},crossorigin:{type:String,value:null},preventLoad:{type:Boolean,value:!1},sizing:{type:String,value:null,reflectToAttribute:!0},position:{type:String,value:"center"},preload:{type:Boolean,value:!1},placeholder:{type:String,value:null,observer:"_placeholderChanged"},fade:{type:Boolean,value:!1},loaded:{notify:!0,readOnly:!0,type:Boolean,value:!1},loading:{notify:!0,readOnly:!0,type:Boolean,value:!1},error:{notify:!0,
readOnly:!0,type:Boolean,value:!1},width:{observer:"_widthChanged",type:Number,value:null},height:{observer:"_heightChanged",type:Number,value:null}},observers:["_transformChanged(sizing, position)","_loadStateObserver(src, preventLoad)"],created:function(){this._resolvedSrc=""},
_imgOnLoad:function(){this.$.img.src===this._resolveSrc(this.src)&&(this._setLoading(!1),this._setLoaded(!0),this._setError(!1))},
_imgOnError:function(){this.$.img.src===this._resolveSrc(this.src)&&(this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",this._setLoading(!1),this._setLoaded(!1),this._setError(!0))},
_computePlaceholderHidden:function(){return!this.preload||!this.fade&&!this.loading&&this.loaded},
_computePlaceholderClassName:function(){return this.preload&&this.fade&&!this.loading&&this.loaded?"faded-out":""},
_computeImgDivHidden:function(){return!this.sizing},
_computeImgDivARIAHidden:function(){return this.alt===""?"true":void 0},
_computeImgDivARIALabel:function(){return this.alt!==null?this.alt:this.src===""?"":this._resolveSrc(this.src).replace(/[?|#].*/g,"").split("/").pop()},
_computeImgHidden:function(){return!!this.sizing},
_widthChanged:function(){this.style.width=isNaN(this.width)?this.width:this.width+"px"},
_heightChanged:function(){this.style.height=isNaN(this.height)?this.height:this.height+"px"},
_loadStateObserver:function(Y,b){var w=this._resolveSrc(Y);w!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",Y===""||b?this._setLoading(!1):(this._resolvedSrc=w,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var Y=this.$.sizedImgDiv.style,b=this.$.placeholder.style;Y.backgroundSize=b.backgroundSize=this.sizing;Y.backgroundPosition=b.backgroundPosition=this.sizing?this.position:"";Y.backgroundRepeat=b.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(Y){Y=_.EZ(Y,this.$.baseURIAnchor.href);Y.length>=2&&Y[0]==="/"&&Y[1]!=="/"&&(Y=(location.origin||location.protocol+"//"+location.host)+Y);return Y}});var Reb;var d0t;_.pV({_template:function(){if(d0t!==void 0)return d0t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-card--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_card.tp.yt.paper.card.css.js--\x3e<div class="header style-scope tp-yt-paper-card">\n  <tp-yt-iron-image hidden$="[[!image]]" aria-hidden$="[[_isHidden(image)]]" src="[[image]]" alt="[[alt]]" placeholder="[[placeholderImage]]" preload="[[preloadImage]]" fade="[[fadeImage]]" class="style-scope tp-yt-paper-card"></tp-yt-iron-image>\n  <div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]] style-scope tp-yt-paper-card">\n    [[heading]]\n  </div>\n</div>\n\n<slot class="style-scope tp-yt-paper-card"></slot>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Reb===void 0&&(Reb=document.createElement("template"));var V=Reb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return d0t=Y},
is:"tp-yt-paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(Y){return Y?"false":"true"},
_headingChanged:function(Y){var b=this.getAttribute("heading"),w=this.getAttribute("aria-label");typeof w==="string"&&w!==b||this.setAttribute("aria-label",Y)},
_computeHeadingClass:function(Y){return Y?" over-image":""},
_computeAnimated:function(Y){return Y}});var FTg=new _.A("addRendererToItemSectionAction");var LTt;var oh=function(){return _.F.apply(this,arguments)||this};
_.P(oh,_.F);oh.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oh.prototype,"rendererBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],oh.prototype,"dismissibleItemBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],oh.prototype,"rendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],oh.prototype,"data",void 0);_.z([_.S({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],oh);
_.a(oh,"ytd-comment-history-entry-renderer",function(){if(LTt!==void 0)return LTt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="main style-scope ytd-comment-history-entry-renderer">\n  <yt-formatted-string class="summary style-scope ytd-comment-history-entry-renderer" link-inherit-color="" text="[[data.summary]]"></yt-formatted-string>\n  <ytd-expander class="content-expander style-scope ytd-comment-history-entry-renderer" hidden="[[!data.content]]" max-number-of-lines="4">\n    <yt-formatted-string class="content style-scope ytd-comment-history-entry-renderer" slot="content" force-default-style="" split-lines="" text="[[data.content]]">\n    </yt-formatted-string>\n    <span class="more-button style-scope ytd-comment-history-entry-renderer" slot="more-button">[[getSimpleString(data.readMoreText)]]</span>\n    <span class="less-button style-scope ytd-comment-history-entry-renderer" slot="less-button">[[getSimpleString(data.showLessText)]]</span>\n  </ytd-expander>\n  <yt-formatted-string class="timestamp style-scope ytd-comment-history-entry-renderer" text="[[data.timestamp]]"></yt-formatted-string>\n</div>\n<div id="menu" class="style-scope ytd-comment-history-entry-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return LTt=Y},{mode:1});var SFA;_.S9("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.S9("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Ih=function(){return _.F.apply(this,arguments)||this};
_.P(Ih,_.F);_.g=Ih.prototype;_.g.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.onKeyUp=function(Y){if(Y.keyCode===13)this.onTap()};
_.g.onTap=function(){this.data.recordClickEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var Y=this.data.navigationEndpoint;Y&&_.v(Y,_.S7)&&_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})};
_.g.readChanged=function(){var Y;_.U6(this.hostElement,"unread",!((Y=this.data)==null?0:Y.read))};
_.g.dataChanged=function(){this.data&&_.U6(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.g.computeThumbnailSize=function(){var Y;return((Y=this.data)==null?0:Y.highPriorityNotification)?32:48};
_.g.getEndpointURL=function(Y){return Y&&!_.v(Y,_.S7)?this.componentBehavior.computeHref_(Y):null};
_.g.getEndpointData=function(Y){return Y&&!_.v(Y,_.S7)?Y:null};
Ih.prototype.computeThumbnailSize=Ih.prototype.computeThumbnailSize;Ih.prototype.dataChanged=Ih.prototype.dataChanged;Ih.prototype.readChanged=Ih.prototype.readChanged;Ih.prototype.onKeyUp=Ih.prototype.onKeyUp;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ih.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ih.prototype,"data",void 0);_.z([_.R({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.K("design:type",Number)],Ih.prototype,"thumbnailSize",void 0);_.z([_.kZ("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],Ih.prototype,"onKeyUp",null);
_.z([_.lr("data.read"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ih.prototype,"readChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ih.prototype,"dataChanged",null);_.z([_.lr("data.highPriorityNotification"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ih.prototype,"computeThumbnailSize",null);
_.z([_.S({is:"ytd-notification-renderer",disableElementRegistration:!0})],Ih);
_.a(Ih,"ytd-notification-renderer",function(){if(SFA!==void 0)return SFA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-notification-renderer" href$="[[getEndpointURL(data.navigationEndpoint)]]" data="[[getEndpointData(data.navigationEndpoint)]]" on-tap="onTap" tabindex="0" role="link">\n  <div id="new" class="style-scope ytd-notification-renderer"></div>\n  <yt-img-shadow id="avatar" class="thumbnail  style-scope ytd-notification-renderer" height="[[thumbnailSize]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailSize]]">\n  </yt-img-shadow>\n  <div class="text style-scope ytd-notification-renderer">\n    <yt-formatted-string class="message style-scope ytd-notification-renderer" text="[[data.shortMessage]]"></yt-formatted-string>\n    <div id="call-to-action" hidden="[[!data.highPriorityNotificationActionButton]]" class="style-scope ytd-notification-renderer"></div>\n    <div class="metadata style-scope ytd-notification-renderer">\n      <yt-formatted-string text="[[data.footer]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n      <yt-formatted-string text="[[data.sentTimeText]]" class="style-scope ytd-notification-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <template is="dom-if" if="[[data.videoThumbnail]]" class="style-scope ytd-notification-renderer">\n    <div class="thumbnail-container style-scope ytd-notification-renderer">\n      <yt-img-shadow thumbnail="[[data.videoThumbnail]]" width="86" class="style-scope ytd-notification-renderer"></yt-img-shadow>\n    </div>\n  </template>\n</a>\n<div id="menu" class="style-scope ytd-notification-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return SFA=Y},{mode:1});var aII;var k4=function(){return _.F.apply(this,arguments)||this};
_.P(k4,_.F);k4.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"}}}};
k4.prototype.computeActionButtonClass=function(Y){return!Y.actionButtons||Y.actionButtons.length<=1?"single-button":Y.description?"vertical-buttons":"horizontal-buttons"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],k4.prototype,"data",void 0);_.z([_.S({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],k4);
_.a(k4,"ytd-playlist-show-metadata-renderer",function(){if(aII!==void 0)return aII;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-show-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content-desc" class="style-scope ytd-playlist-show-metadata-renderer">\n  <div id="dropdown" class="style-scope ytd-playlist-show-metadata-renderer"></div>\n  <ytd-expander class="description style-scope ytd-playlist-show-metadata-renderer" max-number-of-lines="2">\n    <yt-formatted-string id="description" class="content style-scope ytd-playlist-show-metadata-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-playlist-show-metadata-renderer" slot="more-button" role="button" text="[[data.showMoreText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="less-button style-scope ytd-playlist-show-metadata-renderer" slot="less-button" role="button" text="[[data.showLessText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n<div id="action-buttons" class$="[[computeActionButtonClass(data)]] style-scope ytd-playlist-show-metadata-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return aII=Y},{mode:1});var raX;_.S9("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var lR=function(){return _.F.apply(this,arguments)||this};
_.P(lR,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lR.prototype,"data",void 0);_.z([_.S({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],lR);
_.a(lR,"ytd-purchase-item-renderer",function(){if(raX!==void 0)return raX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint purchase-endpoint style-scope ytd-purchase-item-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div class="thumb-container style-scope ytd-purchase-item-renderer">\n    <yt-img-shadow fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-purchase-item-renderer"></yt-img-shadow>\n  </div>\n  <div class="details style-scope ytd-purchase-item-renderer">\n    <yt-formatted-string class="title style-scope ytd-purchase-item-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="price-text style-scope ytd-purchase-item-renderer" no-endpoints="" text="[[data.priceText]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="manage-subscription-text style-scope ytd-purchase-item-renderer" force-default-style="" text="[[data.manageSubscriptionText]]">\n    </yt-formatted-string>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return raX=Y},{mode:1});var zeQ;var WTb={};WTb.YtSimpleTextSectionBehavior={properties:{data:Object,layoutStyle:{type:String,computed:"computeLayoutStyle_(data.layoutStyle)",reflectToAttribute:!0},role:{type:String,computed:"computeRole_(data.layoutStyle)",reflectToAttribute:!0}},created:function(){this.LAYOUT_STYLE_PREFIX_="SIMPLE_TEXT_LAYOUT_STYLE_"},
computeLayoutStyle_:function(Y){if(Y)return Y.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(Y){if(Y==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.S9("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var hC=function(){return _.F.apply(this,arguments)||this};
_.P(hC,_.F);hC.prototype.onYtNavigate=function(Y){var b=this.openPopupBehavior.getNavigationEndpointPopupAction(Y.detail.endpoint);b&&(Y.stopPropagation(),this.openPopupBehavior.openPopup(b))};
hC.prototype.onYtNavigate=hC.prototype.onYtNavigate;_.z([_.n(WTb.YtSimpleTextSectionBehavior),_.K("design:type",Object)],hC.prototype,"ytSimpleTextSectionBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],hC.prototype,"openPopupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hC.prototype,"data",void 0);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],hC.prototype,"onYtNavigate",null);_.z([_.S({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],hC);
_.a(hC,"ytd-simple-text-section-renderer",function(){if(zeQ!==void 0)return zeQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-text-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.lines]]" class="style-scope ytd-simple-text-section-renderer">\n  <yt-formatted-string class="text style-scope ytd-simple-text-section-renderer" text="[[item]]"></yt-formatted-string>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return zeQ=Y},{mode:1});var KTF;_.S9("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var x4=function(){return _.F.apply(this,arguments)||this};
_.P(x4,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],x4.prototype,"data",void 0);_.z([_.S({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],x4);
_.a(x4,"ytd-unlimited-page-feature-info-renderer",function(){if(KTF!==void 0)return KTF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-page-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="content style-scope ytd-unlimited-page-feature-info-renderer">\n  <yt-formatted-string class="info-head style-scope ytd-unlimited-page-feature-info-renderer" text="[[data.title]]"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-unlimited-page-feature-info-renderer">\n    <yt-formatted-string class="info-desc style-scope ytd-unlimited-page-feature-info-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</div>\n<yt-img-shadow class="icon-thumbnail style-scope ytd-unlimited-page-feature-info-renderer" height="194" thumbnail="[[data.iconThumbnail]]" width="390">\n</yt-img-shadow>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return KTF=Y},{mode:1});var iwd;var Aas;var qd=function(){return _.F.apply(this,arguments)||this};
_.P(qd,_.F);qd.prototype.dataChanged=function(){if(this.data){var Y=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);Y&&(Y=_.NR(Y,screen.width),this.hostElement.style.backgroundImage="url("+Y+")")}};
qd.prototype.dataChanged=qd.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qd.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qd.prototype,"dataChanged",null);_.z([_.S({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],qd);
_.a(qd,"ytd-post-redemption-section-renderer",function(){if(Aas!==void 0)return Aas;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-post-redemption-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="img-container style-scope ytd-post-redemption-section-renderer">\n  <yt-img-shadow id="logo" height="25" thumbnail="[[data.logoImage.thumbnailLandscapePortraitRenderer.portrait]]" class="style-scope ytd-post-redemption-section-renderer">\n  </yt-img-shadow>\n</div>\n<div class="container style-scope ytd-post-redemption-section-renderer">\n  <div class="title style-scope ytd-post-redemption-section-renderer">[[getSimpleString(data.title)]]</div>\n  <ytd-button-renderer id="redeem-button" data="[[data.button.buttonRenderer]]" class="style-scope ytd-post-redemption-section-renderer">\n  </ytd-button-renderer>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Aas=Y},{mode:1});var CmF;var sO=function(){return _.F.apply(this,arguments)||this};
_.P(sO,_.F);sO.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sO.prototype,"data",void 0);_.z([_.S({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],sO);
_.a(sO,"ytd-ypc-post-redemption-renderer",function(){if(CmF!==void 0)return CmF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-post-redemption-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="store-value-balance" class="style-scope ytd-ypc-post-redemption-renderer">[[getSimpleString(data.storeValueBalance)]]</div>\n<div id="contents" class="style-scope ytd-ypc-post-redemption-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return CmF=Y},{mode:1});_.S9("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var QD=function(){var Y=_.F.apply(this,arguments)||this;Y.MIN_CODE_LENGTH=12;Y.MAX_CODE_LENGTH=24;return Y};
_.P(QD,_.F);_.g=QD.prototype;_.g.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.g.created=function(){this.riskService=new _.HmG;this.loadPaymentThenable=_.f_I(_.zO("YPC_MB_URL"))};
_.g.ready=function(){var Y=this;this.code.addEventListener("keypress",function(b){Y.onCodeInputKeypress(b)})};
_.g.dataChanged=function(){var Y=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(b){b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,w.type==="attributes"&&w.attributeName==="dark"&&Y.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.g.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var Y=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+Y+")")}};
_.g.computeRedeemButton=function(Y){(Y=this.get("redeemButton.buttonRenderer",Y))&&(Y=Object.assign({},Y,{serviceEndpoint:void 0}));return Y};
_.g.onRedeemButtonTap=function(Y){Y.stopPropagation();ee7();this.redeemCode()};
_.g.redeemCode=function(){var Y=this;this.isLoading=!0;var b=this.riskService.init();_.p1([b,this.loadPaymentThenable]).then(function(){var w=Y.data.redeemButton.buttonRenderer.serviceEndpoint,V=_.gqg(),H=payments.business.integration.ClientTokenFactory.createClientToken(_.v(w,_.IC$).countryCode,V);V={c:Y.code.value.trim(),rd:window.btoa(V),ctk:H};w&&_.fH().resolve(_.Nn).resolveCommand(w,{form:Object.assign({},V,{element:Y.hostElement})})},function(){Y.showGenericError();
m1("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.K7(Error("Wl"))})};
_.g.onYtServiceRequestCompleted=function(Y){Y.stopPropagation();this.isLoading=!1;var b,w;this.errorMessage=(b=Y.detail)==null?void 0:(w=b.data)==null?void 0:w.errorMessage;var V,H;this.postRedemptionRenderer=(V=Y.detail)==null?void 0:(H=V.data)==null?void 0:H.renderer;var f,E;if(Y=(f=Y.detail)==null?void 0:(E=f.data)==null?void 0:E.redirectEndpoint)this.isLoading=!0,_.Ua(this.hostElement,"yt-navigate",{endpoint:Y});this.errorMessage?m1("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
Y)&&_.Ol("ypcRedeemFlowSucceeded")};
_.g.onYtServiceRequestError=function(Y){Y.stopPropagation();this.isLoading=!1;if(Y=this.get("detail.error.message",Y))this.errorMessage=_.Gx(Y);m1("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.g.onInvokeInstrumentManagerActionCompleted=function(Y){Y.stopPropagation();this.redeemCode()};
_.g.onInvokeInstrumentManagerActionError=function(Y){Y.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",Y)){case "instrumentManagerLoadError":this.showGenericError();m1("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();m1("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.Ol("ypcRedeemFlowCancelled")}};
_.g.onInput=function(){var Y=this;_.ir(this,"onInput",function(){var b=Y.code.value.trim();Y.redeemButtonDisabled=b.length<Y.MIN_CODE_LENGTH||b.length>Y.MAX_CODE_LENGTH},200)};
_.g.onCodeInputKeypress=function(Y){Y.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(ee7(),this.redeemCode())};
_.g.computeImageUrl=function(Y){return Y?_.NR(Y.thumbnails,600):null};
_.g.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
QD.prototype.onInvokeInstrumentManagerActionError=QD.prototype.onInvokeInstrumentManagerActionError;QD.prototype.onInvokeInstrumentManagerActionCompleted=QD.prototype.onInvokeInstrumentManagerActionCompleted;QD.prototype.onYtServiceRequestError=QD.prototype.onYtServiceRequestError;QD.prototype.onYtServiceRequestCompleted=QD.prototype.onYtServiceRequestCompleted;QD.prototype.dataChanged=QD.prototype.dataChanged;
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],QD.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],QD.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Boolean)],QD.prototype,"redeemButtonDisabled",void 0);
_.z([_.R(),_.K("design:type",Object)],QD.prototype,"errorMessage",void 0);_.z([_.R(),_.K("design:type",Object)],QD.prototype,"postRedemptionRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],QD.prototype,"observer",void 0);_.z([_.xZ("#code"),_.K("design:type",HTMLInputElement)],QD.prototype,"code",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QD.prototype,"dataChanged",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],QD.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],QD.prototype,"onYtServiceRequestError",null);
_.z([_.kZ("yt-invoke-instrument-manager-action-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],QD.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.z([_.kZ("yt-invoke-instrument-manager-action-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],QD.prototype,"onInvokeInstrumentManagerActionError",null);_.z([_.S({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],QD);
_.a(QD,"ytd-redeem-code-renderer",function(){if(iwd!==void 0)return iwd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-redeem-code-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" hidden="[[postRedemptionRenderer]]" class="style-scope ytd-redeem-code-renderer">\n  <div class="title style-scope ytd-redeem-code-renderer">[[getSimpleString(data.title)]]</div>\n  <div class="subtitle style-scope ytd-redeem-code-renderer">[[getSimpleString(data.subTitle)]]</div>\n  <input id="code" type="text" autocomplete="off" maxlength="24" on-input="onInput" size="24" placeholder="[[getSimpleString(data.placeholderText)]]" slot="input" class="style-scope ytd-redeem-code-renderer">\n  <yt-formatted-string id="error-message" hidden="[[!errorMessage]]" text="[[errorMessage]]" class="style-scope ytd-redeem-code-renderer">\n      </yt-formatted-string>\n  <yt-formatted-string id="terms" text="[[data.termsConditions]]" class="style-scope ytd-redeem-code-renderer"></yt-formatted-string>\n  \n  <ytd-button-renderer id="redeem-button" data="[[computeRedeemButton(data)]]" disabled="[[redeemButtonDisabled]]" on-tap="onRedeemButtonTap" class="style-scope ytd-redeem-code-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="success-page" class="style-scope ytd-redeem-code-renderer"></div>\n<tp-yt-paper-spinner-lite id="loading" active="[[isLoading]]" class="style-scope ytd-redeem-code-renderer">\n</tp-yt-paper-spinner-lite>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return iwd=Y},{mode:1});var yaN;_.S9("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var vA=function(){var Y=_.F.apply(this,arguments)||this;Y.businessEmailDisplayState="HIDE_SECTION";return Y};
_.P(vA,_.F);_.g=vA.prototype;_.g.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}}}}}};
_.g.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"};
_.g.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.g.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.io("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.g.onYtServiceRequestCompleted=function(Y){var b;if((b=Y.detail.data)==null?0:b.businessEmail)this.businessEmail=Y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var w;if((w=Y.detail.data)==null?0:w.errorMessage)this.businessEmailErrorMessage=Y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.g.computeEmailHref=function(Y){return"mailto:"+Y};
_.g.computeSafeUrl=function(Y){if(Y)return _.PN(Y)};
_.g.onBusinessEmailCaptchaSubmit=function(){var Y;(Y=this.data)!=null&&Y.onBusinessEmailRevealClickCommand&&(Y=this.JSC$19130_captchaTextarea.value)&&(Y={recaptcha_response_token:Y,channel_id:this.data.channelId},_.fH().resolve(_.Nn).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.g.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.up.Object.defineProperties(vA.prototype,{hideDetailsSection:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.country&&!this.data.businessEmailButton}},
shouldShowNewLinks:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.primaryLinks)&&!((b=this.data)==null?0:b.links)&&this.data.primaryLinks.every(function(w){return w.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.primaryLinks)&&!((b=this.data)==null?0:b.links)&&!this.shouldShowNewLinks}}});
vA.prototype.onYtServiceRequestCompleted=vA.prototype.onYtServiceRequestCompleted;vA.prototype.dataChanged=vA.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],vA.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.xZ("#g-recaptcha-response"),_.K("design:type",HTMLTextAreaElement)],vA.prototype,"JSC$19130_captchaTextarea",void 0);_.z([_.R(),_.K("design:type",Object)],vA.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],vA.prototype,"businessEmailDisplayState",void 0);_.z([_.R(),_.K("design:type",String)],vA.prototype,"businessEmail",void 0);_.z([_.R(),_.K("design:type",String)],vA.prototype,"businessEmailErrorMessage",void 0);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vA.prototype,"hideDetailsSection",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vA.prototype,"dataChanged",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vA.prototype,"shouldShowNewLinks",null);_.z([_.t("data","shouldShowLinks"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vA.prototype,"shouldShowLegacyLinks",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],vA.prototype,"onYtServiceRequestCompleted",null);_.z([_.S({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],vA);
_.a(vA,"ytd-channel-about-metadata-renderer",function(){if(yaN!==void 0)return yaN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-about-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <div id="description-container" hidden="[[!data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.descriptionLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="bio-container" hidden="[[!data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistBioLabel]]">\n    </yt-formatted-string>\n    <yt-formatted-string id="bio" split-lines="" text="[[data.artistBio]]" class="style-scope ytd-channel-about-metadata-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="photos-container" hidden="[[!data.artistGalleryPhotos]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.artistGalleryLabel]]">\n    </yt-formatted-string>\n    <div id="photos" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.artistGalleryPhotos]]" strip-whitespace="" class="style-scope ytd-channel-about-metadata-renderer">\n        <a href="[[computeSafeUrl(item.originalPhotoUrl)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">\n          <img src$="[[computeSafeUrl(item.thumbnailUrl)]]" alt="" class="style-scope ytd-channel-about-metadata-renderer">\n        </a>\n      </template>\n    </div>\n  </div>\n  <div id="details-container" hidden="[[hideDetailsSection]]" class="style-scope ytd-channel-about-metadata-renderer">\n     <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.detailsLabel]]">\n    </yt-formatted-string>\n    <table class="style-scope ytd-channel-about-metadata-renderer">\n      <tbody class="style-scope ytd-channel-about-metadata-renderer"><tr hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.businessEmailLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.signInForBusinessEmail]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <ytd-button-renderer align-by-text="" data="[[data.businessEmailButton.buttonRenderer]]" on-click="onBusinessEmailClick" class="style-scope ytd-channel-about-metadata-renderer">\n          </ytd-button-renderer>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-channel-about-metadata-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-channel-about-metadata-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-channel-about-metadata-renderer">\n              <yt-formatted-string text="[[data.businessEmailRevealSubmitButtonLabel]]" class="style-scope ytd-channel-about-metadata-renderer">\n              </yt-formatted-string>\n            </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-channel-about-metadata-renderer">\n          <a id="email" href$="[[computeEmailHref(businessEmail)]]" target="_blank" class="style-scope ytd-channel-about-metadata-renderer">[[businessEmail]]</a>\n        </td>\n      </tr>\n      <tr hidden="[[!data.country]]" class="style-scope ytd-channel-about-metadata-renderer">\n        <td class="label style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.countryLabel]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n        <td class="style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string text="[[data.country]]" class="style-scope ytd-channel-about-metadata-renderer"></yt-formatted-string>\n        </td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="links-container" hidden="[[!data.links]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n    </div>\n  </div>\n  <div id="new-links-container" hidden="[[!shouldShowNewLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="custom-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <div class="custom-link style-scope ytd-channel-about-metadata-renderer">\n          <yt-formatted-string class="custom-link-title style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n          <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n            [[link.displayUrl]]\n          </a>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div id="legacy-links-container" hidden="[[!shouldShowLegacyLinks]]" class="style-scope ytd-channel-about-metadata-renderer">\n    <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.primaryLinksLabel]]">\n    </yt-formatted-string>\n    <div id="legacy-link-list-container" class="style-scope ytd-channel-about-metadata-renderer">\n      <template is="dom-repeat" items="[[data.primaryLinks]]" as="link" class="style-scope ytd-channel-about-metadata-renderer">\n        <a class="yt-simple-endpoint style-scope ytd-channel-about-metadata-renderer" href$="[[computeHref_(link.navigationEndpoint)]]" data="[[link.navigationEndpoint]]">\n          <yt-formatted-string class="info-text style-scope ytd-channel-about-metadata-renderer" no-endpoints="" no-style="" text="[[link.title]]">\n          </yt-formatted-string>\n        </a>\n      </template>\n    </div>\n  </div>\n</div>\n<div id="right-column" class="style-scope ytd-channel-about-metadata-renderer">\n  <yt-formatted-string class="subheadline style-scope ytd-channel-about-metadata-renderer" text="[[data.statsLabel]]">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.joinedDateText]]" text="[[data.joinedDateText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.viewCountText]]" no-styles="" text="[[data.viewCountText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string hidden="[[!data.phoneVerifiedText]]" text="[[data.phoneVerifiedText]]" class="style-scope ytd-channel-about-metadata-renderer">\n  </yt-formatted-string>\n  <div id="action-buttons" class="style-scope ytd-channel-about-metadata-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return yaN=Y},{mode:1});var $0t;_.S9("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var PA=function(){return _.F.apply(this,arguments)||this};
_.P(PA,_.F);PA.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],PA.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],PA);
_.a(PA,"ytd-channel-featured-content-renderer",function(){if($0t!==void 0)return $0t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-featured-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-featured-content-renderer">\n  <h3 class="style-scope ytd-channel-featured-content-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n  </h3>\n  <yt-formatted-string id="subtitle" text="[[data.subTitle]]" class="style-scope ytd-channel-featured-content-renderer"></yt-formatted-string>\n</div>\n<div id="contents" class="style-scope ytd-channel-featured-content-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return $0t=Y},{mode:1});var jcO;_.S9("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Zr=function(){var Y=_.F.apply(this,arguments)||this;Y.roundContainer=!0;Y.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");return Y};
_.P(Zr,_.F);_.g=Zr.prototype;_.g.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g.dataChanged=function(){this.imageWidth=this.imageHeight=24;var Y=this.data;Y.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!Y.style&&Y.image&&Y.image.thumbnails.length&&(Y=Y.image.thumbnails[0],this.imageWidth=Y.width||0,this.imageHeight=Y.height||0)};
_.g.computeSource=function(Y){return Y.secondarySource?_.Tx(Y.secondarySource):_.Tx(Y.source)};
_.g.computeClarifyStyle=function(Y){return Y?Y.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.g.isLargeStyle=function(Y){return Y==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.g.computeBackgroundStyle=function(Y){return Y?Y.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.g.computeHasActionButton=function(Y){return!!Y.actionButton};
_.g.computeHasBottomSection=function(Y){return!!Y.ctaHasBottomSection};
_.g.computeIsSourceMissing=function(Y){return Y.ctaHasBottomSection===!1?!0:Y&&this.computeSource(Y)?!1:!0};
_.g.computeSecondaryEndpoint=function(Y){return Y.secondaryEndpoint||Y.endpoint};
Zr.prototype.dataChanged=Zr.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Zr.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],Zr.prototype,"imageWidth",void 0);_.z([_.R(),_.K("design:type",Number)],Zr.prototype,"imageHeight",void 0);
_.z([_.R({computed:"computeSecondaryEndpoint(data)"}),_.K("design:type",Object)],Zr.prototype,"secondaryEndpoint",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.K("design:type",Boolean)],Zr.prototype,"hasActionButton",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.K("design:type",Boolean)],Zr.prototype,"hasBottomSection",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.K("design:type",Boolean)],Zr.prototype,"missingSource",void 0);_.z([_.R({computed:"computeIcon_(data.icon)"}),_.K("design:type",String)],Zr.prototype,"icon",void 0);_.z([_.R({computed:"computeIcon_(data.secondaryIcon)"}),_.K("design:type",String)],Zr.prototype,"secondaryIcon",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.K("design:type",String)],Zr.prototype,"clarifyStyle",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.K("design:type",String)],Zr.prototype,"backgroundStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Zr.prototype,"roundContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Zr.prototype,"amsterdamEnabled",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zr.prototype,"dataChanged",null);
_.z([_.S({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Zr);
_.a(Zr,"ytd-clarification-renderer",function(){if(jcO!==void 0)return jcO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clarification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-clarification-renderer">\n  \n  <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n    <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer"></yt-icon>\n    <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n    </yt-img-shadow>\n  </a>\n  <div class="text style-scope ytd-clarification-renderer">\n    \n    <a id="section-header" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n      <yt-icon disable-upgrade$="[[!icon]]" hidden="[[!icon]]" icon="[[icon]]" class="style-scope ytd-clarification-renderer">\n      </yt-icon>\n      <yt-img-shadow height="[[imageHeight]]" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="[[imageWidth]]" class="style-scope ytd-clarification-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string class="section-title style-scope ytd-clarification-renderer" text="[[data.sectionTitle]]">\n      </yt-formatted-string>\n    </a>\n    <div class="content style-scope ytd-clarification-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]">\n        <div class="content-title style-scope ytd-clarification-renderer">\n          [[getSimpleString(data.contentTitle)]]\n          <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </div>\n        <yt-formatted-string class="description style-scope ytd-clarification-renderer" text="[[data.text]]">\n        </yt-formatted-string>\n      </a>\n      <div id="action-button" class="style-scope ytd-clarification-renderer"></div>\n      <div id="menu" class="style-scope ytd-clarification-renderer"></div>\n    </div>\n    <a id="source-link" class="yt-simple-endpoint style-scope ytd-clarification-renderer" href$="[[computeHref_(secondaryEndpoint)]]" data="[[secondaryEndpoint]]">\n      <div class="source style-scope ytd-clarification-renderer">\n        <yt-icon class="secondary-icon style-scope ytd-clarification-renderer" disable-upgrade$="[[!secondaryIcon]]" hidden="[[!secondaryIcon]]" icon="[[secondaryIcon]]">\n        </yt-icon>\n        [[computeSource(data)]]\n        <yt-icon class="external-link-icon style-scope ytd-clarification-renderer" hidden="[[secondaryIcon]]" icon="yt-icons:open_in_new" size="16"></yt-icon>\n      </div>\n    </a>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return jcO=Y},{mode:1});var Gc7;var TZN;var BA=function(){var Y=_.F.apply(this,arguments)||this;Y.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");return Y};
_.P(BA,_.F);_.g=BA.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.g.computeIcon=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.g.computeUseContacts=function(Y){return!!Y.contacts&&Y.contacts.length>0};
_.g.computePhoneContact=function(Y){var b,w;return(b=Y.contacts)==null?void 0:(w=b.find(function(V){var H;return(V==null?void 0:(H=V.icon)==null?void 0:H.iconType)==="PHONE"}))==null?void 0:w.actionText};
_.g.computeSmsContact=function(Y){var b,w;return(b=Y.contacts)==null?void 0:(w=b.find(function(V){var H;return(V==null?void 0:(H=V.icon)==null?void 0:H.iconType)==="SMS"}))==null?void 0:w.actionText};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],BA.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],BA.prototype,"amsterdamEnabled",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.K("design:type",Boolean)],BA.prototype,"useContacts",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.K("design:type",String)],BA.prototype,"phoneContact",void 0);_.z([_.S({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],BA);
_.a(BA,"ytd-single-action-emergency-support-renderer",function(){if(TZN!==void 0)return TZN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-action-emergency-support-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-single-action-emergency-support-renderer">\n  <div id="text-content" class="style-scope ytd-single-action-emergency-support-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    <a class="yt-simple-endpoint style-scope ytd-single-action-emergency-support-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-formatted-string id="navigation-text" text="[[data.navigationText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      <yt-icon id="nav-icon" icon="[[computeIcon(data.navigationIcon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n    </a>\n    <yt-formatted-string id="details-text" text="[[data.detailsText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n  </div>\n  <div id="action-container" class="style-scope ytd-single-action-emergency-support-renderer">\n    <div id="action-button" hidden="[[!data.actionButton]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n    <div id="contacts" hidden="[[!data.contacts]]" class="style-scope ytd-single-action-emergency-support-renderer">\n      <div id="phone-contact" hidden="[[!computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'PHONE\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n        <yt-formatted-string id="contact-text" text="[[computePhoneContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n        <div id="sms-contact" hidden="[[!computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer">\n        <yt-icon icon="[[computeIcon(\'SMS\')]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string id="contact-text" text="[[computeSmsContact(data)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="action-text" class="action-text style-scope ytd-single-action-emergency-support-renderer" hidden="[[!data.actionText]]">\n      <yt-icon icon="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.actionText]]" class="style-scope ytd-single-action-emergency-support-renderer"></yt-formatted-string>\n    </div>\n    <div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-single-action-emergency-support-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return TZN=Y},{mode:1});_.S9("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var nN=function(){var Y=_.F.apply(this,arguments)||this;Y.roundedContainer=!0;Y.amsterdamEnabled=_.q("enable_desktop_amsterdam_info_panels");return Y};
_.P(nN,_.F);nN.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"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nN.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nN.prototype,"roundedContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],nN.prototype,"amsterdamEnabled",void 0);
_.z([_.S({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],nN);
_.a(nN,"ytd-emergency-onebox-renderer",function(){if(Gc7!==void 0)return Gc7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-emergency-onebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-emergency-onebox-renderer">\n  <yt-formatted-string id="header" text="[[data.title]]" class="style-scope ytd-emergency-onebox-renderer"></yt-formatted-string>\n  <div id="options" class="style-scope ytd-emergency-onebox-renderer">\n    <div id="first-option" class="option style-scope ytd-emergency-onebox-renderer"></div>\n    <div id="second-option" class="option style-scope ytd-emergency-onebox-renderer" hidden="[[!data.secondOption]]"></div>\n  </div>\n</div>\n\n<div id="menu" hidden="[[!data.menu]]" class="style-scope ytd-emergency-onebox-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Gc7=Y},{mode:1});var JaO;_.S9("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Md=function(){return _.F.apply(this,arguments)||this};
_.P(Md,_.F);Md.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Md.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Md.prototype,"data",void 0);_.z([_.S({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Md);
_.a(Md,"ytd-exploratory-results-renderer",function(){if(JaO!==void 0)return JaO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-exploratory-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-exploratory-results-renderer"></yt-formatted-string>\n<div id="contents" class="style-scope ytd-exploratory-results-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JaO=Y},{mode:1});var uSg;_.S9("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var e2=function(){var Y=_.F.apply(this,arguments)||this;Y.messageData=null;return Y};
_.P(e2,_.F);_.g=e2.prototype;_.g.onServiceRequestCompleted=function(Y,b){Y=b.actions||[];b=0;for(var w=Y.length;b<w;b++){var V=Y[b],H=void 0,f=void 0;if((H=_.v(V,_.Mm))==null?0:(f=H.item)==null?0:f.messageRenderer)this.messageData=_.v(V,_.Mm).item.messageRenderer}};
_.g.dataChanged=function(){var Y=this.data;this.hostElement.hidden=!1;_.U6(this.hostElement,"is-channel",Y&&!Y.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.g.computeThumbnailWidth=function(Y){return Y?126:56};
_.g.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.g.onSubmitTap=function(){var Y=this.data,b=this.selectedResponseIndex;Y!==void 0&&b!==void 0&&(Y=Y.responses[b],Y.responseData&&_.fH().resolve(_.Nn).resolveCommand(Y.responseData,{form:{element:this.hostElement}}))};
_.g.onDismissTap=function(){this.hostElement.hidden=!0;var Y=this.data;Y!==void 0&&Y.dismissalEndpoint&&_.fH().resolve(_.Nn).resolveCommand(Y.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.updateSelectedResponseIndexFromBinding=function(Y){this.selectedResponseIndex=Y.detail.value};
e2.prototype.onSelectedResponseIndexChange=e2.prototype.onSelectedResponseIndexChange;e2.prototype.dataChanged=e2.prototype.dataChanged;e2.prototype.onServiceRequestCompleted=e2.prototype.onServiceRequestCompleted;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],e2.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],e2.prototype,"messageData",void 0);
_.z([_.R(),_.K("design:type",Number)],e2.prototype,"selectedResponseIndex",void 0);_.z([_.xZ("#submit-button"),_.K("design:type",HTMLButtonElement)],e2.prototype,"submitButton",void 0);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],e2.prototype,"onServiceRequestCompleted",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],e2.prototype,"dataChanged",null);
_.z([_.lr("selectedResponseIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],e2.prototype,"onSelectedResponseIndexChange",null);_.z([_.S({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],e2);
_.a(e2,"ytd-feedback-elicitation-single-question-renderer",function(){if(uSg!==void 0)return uSg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-elicitation-single-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="dismissible" hidden="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <div id="header" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <yt-formatted-string id="question" text="[[data.question]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n    <yt-icon-button on-tap="onDismissTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <template is="dom-if" if="[[data.channelTitle]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-feedback-elicitation-single-question-renderer" href$="[[computeHref(data.channelEndpoint)]]" data="[[data.channelEndpoint]]">\n      <yt-img-shadow thumbnail="[[data.channelAvatar]]" width="[[computeThumbnailWidth(data.avatarIs169)]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      </yt-img-shadow>\n      <div id="item-title" class="style-scope ytd-feedback-elicitation-single-question-renderer">[[getSimpleString(data.channelTitle)]]</div>\n    </a>\n  </template>\n  <template is="dom-if" if="[[!data.canSelectMultiple]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n    <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n      <template is="dom-repeat" items="[[data.responses]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n        <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n          <yt-formatted-string text="[[item.responseText]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n  </template>\n  <ytd-button-renderer id="submit-button" data="[[data.submitButton.buttonRenderer]]" on-tap="onSubmitTap" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  </ytd-button-renderer>\n</span>\n<span hidden="[[!messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer">\n  <ytd-message-renderer data="[[messageData]]" class="style-scope ytd-feedback-elicitation-single-question-renderer"></ytd-message-renderer>\n</span>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return uSg=Y},{mode:1});var YAA;var pN=function(){return _.F.apply(this,arguments)||this};
_.P(pN,_.F);pN.prototype.computeThumbnailWidth=function(Y){return Y?602:428};
pN.prototype.updateWideFromBinding=function(Y){this.wide=Y.detail.value};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pN.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],pN.prototype,"wide",void 0);_.z([_.S({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],pN);
_.a(pN,"ytd-newspaper-hero-video-renderer",function(){if(YAA!==void 0)return YAA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="(min-width: 662px)" query-matches="[[wide]]" on-query-matches-changed="updateWideFromBinding" class="style-scope ytd-newspaper-hero-video-renderer">\n</iron-media-query>\n<ytd-thumbnail data="[[data]]" width="[[computeThumbnailWidth(wide)]]" class="style-scope ytd-newspaper-hero-video-renderer"></ytd-thumbnail>\n<div id="contents" class="style-scope ytd-newspaper-hero-video-renderer">\n  <a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-newspaper-hero-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-hero-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-hero-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <ytd-video-meta-block class="title style-scope ytd-newspaper-hero-video-renderer" data="[[data]]"></ytd-video-meta-block>\n  </a>\n</div>\n<div class="content style-scope ytd-newspaper-hero-video-renderer">\n  <slot class="style-scope ytd-newspaper-hero-video-renderer"></slot>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return YAA=Y},{mode:1});var b0Q;var OO=function(){return _.F.apply(this,arguments)||this};
_.P(OO,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],OO.prototype,"rendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],OO.prototype,"data",void 0);_.z([_.S({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],OO);
_.a(OO,"ytd-newspaper-mini-video-renderer",function(){if(b0Q!==void 0)return b0Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-mini-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="210" class="style-scope ytd-newspaper-mini-video-renderer"></ytd-thumbnail>\n<a id="meta" class="yt-simple-endpoint style-scope ytd-newspaper-mini-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <h3 class="style-scope ytd-newspaper-mini-video-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-newspaper-mini-video-renderer">\n    </ytd-badge-supported-renderer>\n    <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-newspaper-mini-video-renderer">\n      [[getSimpleString(data.title)]]\n    </span>\n  </h3>\n  <ytd-video-meta-block class="grid style-scope ytd-newspaper-mini-video-renderer" data="[[data]]"></ytd-video-meta-block>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return b0Q=Y},{mode:1});var wuQ;_.S9("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var tC=function(){return _.F.apply(this,arguments)||this};
_.P(tC,_.F);tC.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"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],tC.prototype,"data",void 0);_.z([_.S({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],tC);
_.a(tC,"ytd-newspaper-renderer",function(){if(wuQ!==void 0)return wuQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-newspaper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary-contents" class="style-scope ytd-newspaper-renderer"></div>\n<div id="secondary-contents" class="style-scope ytd-newspaper-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return wuQ=Y},{mode:1});var VT7;_.S9("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Rh=function(){var Y=_.F.apply(this,arguments)||this;Y.isSegment=!1;Y.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};Y.nextContinuation={continuationType:"playlistVideoListContinuation"};return Y};
_.P(Rh,_.F);_.g=Rh.prototype;_.g.attached=function(){_.fH();var Y;(Y=_.fH().resolve(_.HQ(_.iB)))!=null&&(Y.playlistVideoListElement=this.hostElement)};
_.g.detached=function(){var Y;(Y=_.fH().resolve(_.HQ(_.iB)))!=null&&(Y.playlistVideoListElement=void 0);Y=_.fH().resolve(_.HQ(_.bw));_.q("web_enable_voting_animation")&&Y&&(Y.parentElem=void 0,Y.videos=[],Y.continuationsPresent=!1,Y.showRefreshPill=!1)};
_.g.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"}}}}}};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.g.dataChanged=function(){var Y=_.fH().resolve(_.HQ(_.bw));if(_.q("web_enable_voting_animation")&&this.data&&Y){var b=_.E6(this.hostElement).querySelector("#contents");b&&(Y.parentElem=b);Y.addVideos(this.data.contents)}_.$Kd(this.ytReorderableBehavior)};
_.g.onRendererstamperFinished=function(){this.canReorder&&_.jp_(this.ytReorderableBehavior,_.E6(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.g.onPlaylistReloading=function(){this.isReloading=!0};
_.g.onUpdateSetVideoId=function(Y){if(Y.detail&&this.data&&this.data.contents){var b=Y.detail;Y=this.data.contents.findIndex(function(H){var f;return((f=H.playlistVideoRenderer)==null?void 0:f.videoId)===b.videoId});
if(!(Y<0)&&b.setVideoId&&(this.set("data.contents."+Y+".playlistVideoRenderer.setVideoId",b.setVideoId),_.q("web_enable_voting_animation"))){var w;if(Y=_.v((w=this.data.contents[Y].playlistVideoRenderer)==null?void 0:w.engagementBar,_.nTM)){var V;(V=Y.actions)==null||V.forEach(function(H){if(H=_.v(H,_.M8M))H.itemId=b.setVideoId})}(w=_.fH().resolve(_.HQ(_.bw)))&&p4O(w,b.videoId,b.setVideoId)}}};
_.g.computeContentsClass=function(Y){return Y?"reloading":""};
_.g.computeIsSortable=function(Y,b){return Y&&b>0&&!this.isSegment&&!_.q("shorts_in_playlists_web")};
_.g.computeIsEditable=function(Y){return Y};
_.g.computeCanReorder=function(Y){return Y};
_.g.handlePlaylistRemoveVideosAction=function(Y){if(this.get("playlistRemoveVideosAction.setVideoIds",Y)&&this.data&&this.data.contents){Y=_.v(Y,_.ZE5).setVideoIds;for(var b=this.data.contents.length-1;b>=0;){var w=this.data.contents[b].playlistVideoRenderer;w&&w.setVideoId&&Y.includes(w.setVideoId)&&this.splice("data.contents",b,1);b--}_.Xx(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.g.updateIndices=function(){if(this.data&&this.data.contents)for(var Y=0;Y<this.data.contents.length;Y++)this.set("data.contents."+Y+".playlistVideoRenderer.index",_.Gx(String(Y+1)))};
_.g.handleDrop=function(Y){Y=Y.currDragItem;var b=_.zK(Y.parentNode.childNodes,Y),w=this.data.contents.splice(Number(_.Tx(Y.data.index))-1,1)[0];this.data.contents.splice(b,0,w);b=b?this.get("contents."+(b-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();Y=this.buildReorderServiceEndpoint(Y.data.setVideoId,b);this.ytComponentBehavior.resolveCommand(Y)};
_.g.buildReorderServiceEndpoint=function(Y,b){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",Y),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",b),this.data.onReorderEndpoint):null};
_.g.handleUpdatePlaylistAction=function(Y){var b;(Y=_.v((b=_.v(Y,_.BM9))==null?void 0:b.updatedRenderer,_.K0U))&&this.canReorder!==Y.canReorder&&this.set("data.canReorder",Y.canReorder);Y&&Y.contents&&(this.set("data.contents",Y.contents),this.isReloading=!1);Y&&Y.continuations&&this.set("data.continuations",Y.continuations)};
_.g.handleAddRendererToItemSectionAction=function(Y){var b,w=(b=_.v(Y,FTg))==null?void 0:b.renderer,V;w&&((V=_.v(Y,FTg))==null?void 0:V.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,w),Y=_.fH().resolve(_.HQ(_.bw)),_.q("web_enable_voting_animation")&&Y&&(w&&(b=_.BjL(w))&&Y.recommendedVideos.push({itemId:b,videoId:_.e56(w),voteCount:_.pCK(w),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.g.isVotingEnabledOnPlaylist=function(Y){if(!Y)return!1;Y=_.N(Y);for(Y=Y.next();!Y.done;Y=Y.next()){var b=void 0;return!!_.v((b=Y.value.playlistVideoRenderer)==null?void 0:b.engagementBar,_.nTM)}return!1};
_.g.onAppendContinuationItemsActionFinished=function(){var Y;this.isVotingEnabledOnPlaylist((Y=this.data)==null?void 0:Y.contents)&&(this.updateIndices(),Y=_.fH().resolve(_.HQ(_.bw)),_.q("web_enable_voting_animation")&&Y&&this.data&&Y.addVideos(this.data.contents))};
_.g.updateVideoData=function(Y){if(Y.detail&&this.data&&this.data.contents){var b=Y.detail;Y=b.toIdx;var w=b.itemId,V=b.newVoteCount,H=b.voteStatus;b=b.hideItem;var f,E,U=(f=this.data)==null?void 0:(E=f.contents)==null?void 0:E.findIndex(function(l){return _.BjL(l)===w});
if(!(U<0)){f=this.data.contents[U];var X;if((X=f.playlistVideoRenderer)==null?0:X.voteCount)f.playlistVideoRenderer.voteCount=V;var I;if(X=_.v((I=f.playlistVideoRenderer)==null?void 0:I.engagementBar,_.nTM)){var k;(k=X.actions)==null||k.forEach(function(l){(l=_.v(l,_.M8M))&&l.initialState&&(l.initialState.votes=V,l.initialState.status=H)})}this.data.contents.splice(U,1);
b||this.data.contents.splice(Y,0,f);this.updateIndices()}}};
Rh.prototype.updateVideoData=Rh.prototype.updateVideoData;Rh.prototype.onAppendContinuationItemsActionFinished=Rh.prototype.onAppendContinuationItemsActionFinished;Rh.prototype.onUpdateSetVideoId=Rh.prototype.onUpdateSetVideoId;Rh.prototype.onPlaylistReloading=Rh.prototype.onPlaylistReloading;Rh.prototype.onRendererstamperFinished=Rh.prototype.onRendererstamperFinished;Rh.prototype.dataChanged=Rh.prototype.dataChanged;
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Rh.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.Cc.YtNextContinuationBehavior),_.K("design:type",Object)],Rh.prototype,"ytNextContinuationBehavior",void 0);
_.z([_.n(_.GBj),_.K("design:type",Object)],Rh.prototype,"ytReorderableBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],Rh.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Rh.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Rh.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],Rh.prototype,"isReloading",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Rh.prototype,"isSegment",void 0);_.z([_.R({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.K("design:type",Boolean)],Rh.prototype,"isSortable",void 0);_.z([_.R({computed:"computeIsEditable(data.isEditable)"}),_.K("design:type",Boolean)],Rh.prototype,"isEditable",void 0);_.z([_.R({computed:"computeCanReorder(data.canReorder)"}),_.K("design:type",Boolean)],Rh.prototype,"canReorder",void 0);
_.z([_.R({value:101}),_.K("design:type",Number)],Rh.prototype,"scrollMargin",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rh.prototype,"dataChanged",null);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rh.prototype,"onRendererstamperFinished",null);
_.z([_.kZ("yt-playlist-reloading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rh.prototype,"onPlaylistReloading",null);_.z([_.kZ("yt-update-set-video-id"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Rh.prototype,"onUpdateSetVideoId",null);
_.z([_.kZ("yt-append-continuation-items-action-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rh.prototype,"onAppendContinuationItemsActionFinished",null);_.z([_.kZ("yt-update-video-data-voting-animation"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Rh.prototype,"updateVideoData",null);_.z([_.S({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Rh);
_.a(Rh,"ytd-playlist-video-list-renderer",function(){if(VT7!==void 0)return VT7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sort-filter-menu" hidden="[[!isSortable]]" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="spinner-container" class="style-scope ytd-playlist-video-list-renderer">\n  <tp-yt-paper-spinner-lite active="[[isReloading]]" class="style-scope ytd-playlist-video-list-renderer"></tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class$="[[computeContentsClass(isReloading)]] style-scope ytd-playlist-video-list-renderer"></div>\n<div id="continuations" class="style-scope ytd-playlist-video-list-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return VT7=Y},{mode:_.Xd("kevlar_poly_si_batch_j047")?1:2});var H0O;var dd=function(){return _.F.apply(this,arguments)||this};
_.P(dd,_.F);dd.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"}}}}};
dd.prototype.onTextWrapperTap=function(Y){var b=this.data&&this.data.navigationEndpoint;b&&!_.uA(_.JL(Y),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Ua(this.hostElement,"yt-navigate",{endpoint:b})};
dd.prototype.dataChanged=function(){var Y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");Y&&Y.commandMetadata&&_.v(Y.commandMetadata,_.RU)&&_.v(Y.commandMetadata,_.RU).fireAutomatically&&_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})};
dd.prototype.dataChanged=dd.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],dd.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AB),_.K("design:type",Object)],dd.prototype,"ytdLockupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],dd.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],dd.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],dd.prototype,"biggerThumbsStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dd.prototype,"leftAligned",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dd.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-movie-renderer"})],dd);
_.a(dd,"ytd-movie-renderer",function(){if(H0O!==void 0)return H0O;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="thumbnail-container style-scope ytd-movie-renderer">\n  <ytd-thumbnail data="[[data]]" use-expandable-tooltip="[[useExpandableTooltip_]]" width="246" class="style-scope ytd-movie-renderer">\n  </ytd-thumbnail>\n</div>\n<div class="text-wrapper style-scope ytd-movie-renderer" on-tap="onTextWrapperTap">\n  <div class="top-container style-scope ytd-movie-renderer">\n    <div class="top-left-container style-scope ytd-movie-renderer">\n      <h3 class="style-scope ytd-movie-renderer">\n         <a id="video-title" class="yt-simple-endpoint style-scope ytd-movie-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[data.navigationEndpoint]]">\n          [[getSimpleString(data.title)]]\n        </a>\n      </h3>\n      <div id="channel-info" class="style-scope ytd-movie-renderer">\n        <a hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" id="channel-thumbnail" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-movie-renderer">\n          <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-movie-renderer">\n          </yt-img-shadow>\n        </a>\n        <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-movie-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n        </ytd-channel-name>\n      </div>\n    </div>\n    <div class="top-right-container style-scope ytd-movie-renderer">\n      <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-renderer">\n      </ytd-button-renderer>\n      <div id="offer-buttons" class="style-scope ytd-movie-renderer"></div>\n      <div id="menu" class="style-scope ytd-movie-renderer"></div>\n    </div>\n  </div>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.topMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-movie-renderer"></ytd-badge-supported-renderer>\n\n  <yt-formatted-string id="description-text" text="[[data.descriptionSnippet]]" class="style-scope ytd-movie-renderer">\n  </yt-formatted-string>\n\n  <ul class="movie-metadata-list style-scope ytd-movie-renderer">\n    <template is="dom-repeat" items="[[data.bottomMetadataItems]]" class="style-scope ytd-movie-renderer">\n      <li class="style-scope ytd-movie-renderer">[[getSimpleString(item)]]</li>\n    </template>\n  </ul>\n\n  <div id="explore-button" class="style-scope ytd-movie-renderer"></div>\n</div>\n<yt-interaction id="interaction" class="extended style-scope ytd-movie-renderer"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return H0O=Y},{mode:1});var gfI;var Fj=function(){var Y=_.F.apply(this,arguments)||this;Y.rounded=!0;Y.pageAttachedTo=void 0;Y.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return Y};
_.P(Fj,_.F);Fj.prototype.attached=function(){this.pageAttachedTo=_.fH().resolve(_.bX).getCurrentPage();_.Ua(this.hostElement,"yt-player-attached",this.player)};
Fj.prototype.detached=function(){var Y;if((Y=this.pageAttachedTo)==null?0:Y.hostElement)_.Ua(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Fj.prototype.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.videoId)Y={video_id:this.data.videoId,autoplay:!0},!_.q("miniplayer_stop_channel_video_autoplay_killswitch")&&_.fH().resolve(_.Ck).isMiniplayerActive()&&(Y.pause_at_start=!0,Y.autoplay=!1),this.player.loadVideoWithPlayerVars(Y)};
Fj.prototype.handleSignalActionPausePlayer=function(){_.Hv().pause()};
Fj.prototype.dataChanged=Fj.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],Fj.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Fj.prototype,"rounded",void 0);_.z([_.xZ("#player"),_.K("design:type",Object)],Fj.prototype,"player",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fj.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Fj);
_.a(Fj,"ytd-channel-video-player-renderer",function(){if(gfI!==void 0)return gfI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-video-player-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player-container" class="style-scope ytd-channel-video-player-renderer">\n  <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_CHANNEL_TRAILER" class="style-scope ytd-channel-video-player-renderer">\n  </ytd-player>\n</div>\n<div id="content" class="style-scope ytd-channel-video-player-renderer">\n  <div id="metadata-container" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string id="title" aria-level="3" ellipsis-truncate="" link-inherit-color="" role="heading" text="[[data.title]]" class="style-scope ytd-channel-video-player-renderer">\n    </yt-formatted-string>\n    <ytd-video-meta-block class="title style-scope ytd-channel-video-player-renderer" data="[[data]]"></ytd-video-meta-block>\n  </div>\n  <ytd-expander id="description" disable-toggle="" max-number-of-lines="7" class="style-scope ytd-channel-video-player-renderer">\n    <yt-formatted-string class="content style-scope ytd-channel-video-player-renderer" slot="content" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="more-button style-scope ytd-channel-video-player-renderer" slot="more-button" link-inherit-color="" text="[[data.readMoreText]]">\n    </yt-formatted-string>\n  </ytd-expander>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return gfI=Y},{mode:1});var fVR;var N4b;var EfX;var LN=function(){var Y=_.F.apply(this,arguments)||this;Y.playing=!1;Y.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.wU(Y);Y.active=!1;return Y};
_.P(LN,_.F);_.g=LN.prototype;_.g.detached=function(){this.stop()};
_.g.play=function(){var Y=this,b,w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return Y.active=!0,b=Y.get("data.inlinePlaybackEndpoint.watchEndpoint"),w=b.videoId||Y.data.videoId,V=b.startTimeSeconds||0,H=b.playerParams||null,_.q("kevlar_player_update_killswitch")?_.D(E,Y.playerEl.update({args:{video_id:w,startSeconds:V,player_params:H}}),2):(Y.playerEl.loadVideoWithPlayerVars({video_id:w,startSeconds:V,player_params:H,autoplay:!0}),E.jumpTo(2));if(E.nextAddress!=4)return _.D(E,Y.playerEl.getPlayerPromise(),
4);f=E.yieldResult;f.unloadModule("annotations_module");f.addEventListener("onStateChange",function(U){Y.onPlayerStateChange(U)});
_.om(E)})};
_.g.onPlayerStateChange=function(Y){if(this.active)switch(this.playing=Y===1,Y){case 1:_.Ua(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Ua(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.g.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.g.resize=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.playerEl.getPlayerPromise(),2);b=w.yieldResult;b.setSize(NaN,NaN);_.om(w)})};
_.z([_.R(),_.K("design:type",Object)],LN.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],LN.prototype,"playing",void 0);_.z([_.R(),_.K("design:type",Object)],LN.prototype,"playerId",void 0);_.z([_.xZ("#player"),_.K("design:type",Object)],LN.prototype,"playerEl",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],LN);
_.a(LN,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(EfX!==void 0)return EfX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer-inline-playback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_VERTICAL_LANDING_PAGE_PROMO" player-id="[[playerId]]" class="style-scope ytd-default-promo-panel-renderer-inline-playback-renderer">\n</ytd-player>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return EfX=Y},{mode:1});var c$g;var UJF;var S2=function(){var Y=_.F.apply(this,arguments)||this;Y.width=0;return Y};
_.P(S2,_.F);_.g=S2.prototype;_.g.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Io(this,this.onEnded));this.mp4El.addEventListener("error",_.Io(this,this.onError))};
_.g.detached=function(){this.videoEl.removeEventListener("ended",_.Io(this,this.onEnded));this.mp4El.removeEventListener("error",_.Io(this,this.onError))};
_.g.play=function(){var Y=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var b=this.videoEl.play();b?b.then(function(){Y.handleVideoStartPlaying()}).catch(function(){_.Ua(Y.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Ua(this.hostElement,"yt-video-thumbnail-not-playing")};
_.g.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.g.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.g.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.thumbnailPlaceholder)Y=_.NR(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+Y+")";this.stop();this.autoplay&&this.play()};
_.g.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.g.onEnded=function(){this.stop();_.Ua(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.g.onError=function(){_.Ua(this.hostElement,"yt-video-thumbnail-error")};
_.g.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.g.getVideoThumbnail=function(Y){if(Y&&Y.length)return Y[0]};
S2.prototype.dataChanged=S2.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],S2.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],S2.prototype,"animatePlaceholderOnEntrance",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],S2.prototype,"autoplay",void 0);_.z([_.R({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.K("design:type",Object)],S2.prototype,"videoThumbnail",void 0);
_.z([_.R(),_.K("design:type",Boolean)],S2.prototype,"loop",void 0);_.z([_.R(),_.K("design:type",Boolean)],S2.prototype,"isVideoPlaying",void 0);_.z([_.R(),_.K("design:type",Object)],S2.prototype,"width",void 0);_.z([_.xZ("#mp4"),_.K("design:type",HTMLElement)],S2.prototype,"mp4El",void 0);_.z([_.xZ("#placeholder"),_.K("design:type",HTMLElement)],S2.prototype,"placeholderEl",void 0);_.z([_.xZ("#video"),_.K("design:type",HTMLVideoElement)],S2.prototype,"videoEl",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],S2.prototype,"dataChanged",null);_.z([_.FM({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],S2);
_.a(S2,"yt-video-as-thumbnail-details",function(){if(UJF===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-video-as-thumbnail-details--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_video_as_thumbnail_details.yt.video.as.thumbnail.details.css.js--\x3e<div id="placeholder" class="style-scope yt-video-as-thumbnail-details"></div>\n<div id="video-container" class="style-scope yt-video-as-thumbnail-details">\n  <video id="video" muted="" class="style-scope yt-video-as-thumbnail-details">\n    <source id="mp4" src$="[[videoThumbnail.url]]" type="video/mp4" class="style-scope yt-video-as-thumbnail-details">\n  </video>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;c$g===void 0&&(c$g=document.createElement("template"));var V=c$g;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);UJF=Y}Y=UJF;return Y},{mode:2});var ah=function(){var Y=_.F.apply(this,arguments)||this;Y.disableGridStateAware=!1;Y.animationEnabled=_.q("enable_web_ketchup_hero_animation");Y.transitioningOut=!1;Y.narrow=!1;Y.narrower=!1;Y.isCarouselInFeed=!1;Y.videoTimeoutJobId=0;Y.panelTimeoutJobId=0;Y.panelTimeoutJobStartMs=0;Y.actionMap={"yt-window-resized":"onWindowResized"};return Y};
_.P(ah,_.F);_.g=ah.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.g.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var Y;this.player&&((Y=this.data)==null?0:Y.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.g.attached=function(){this.onWindowResized()};
_.g.detached=function(){this.clearTimeouts()};
_.g.onWindowResized=function(){this.updateSize()};
_.g.computePanelLayout=function(Y){return Y&&Y.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.g.playVideo=function(){var Y;this.video&&((Y=this.data)==null?0:Y.videoThumbnail)&&this.video.play();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.play()};
_.g.stopVideo=function(){var Y;this.video&&((Y=this.data)==null?0:Y.videoThumbnail)&&this.video.stop();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.stop()};
_.g.transitionOut=function(){var Y=this;this.transitioningOut=!0;return new Promise(function(b){var w=function(){_.E6(Y.hostElement).querySelector("#action-button").removeEventListener("animationend",w);_.Lb.cancelJob(V);b();Y.transitioningOut=!1};
var V=_.MY(_.Lb,w,1E3);_.E6(Y.hostElement).querySelector("#action-button").addEventListener("animationend",w);Y.player&&(Y.player.playing=!1)})};
_.g.computeMetadataOrder=function(Y){return Y&&Y.metadataOrder&&Y.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?Y.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.g.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.g.computeAvatarSize=function(Y){return Y&&Y.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.g.onContentClick=function(Y){if(!_.uA(_.JL(Y),this.hostElement,["A".toString(),"BUTTON".toString()])){var b;if((b=this.data)==null?0:b.navigationEndpoint){var w;this.componentBehavior.resolveCommand((w=this.data)==null?void 0:w.navigationEndpoint)}}};
_.g.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.g.setBackgroundImage=function(Y){if(Y=this.getBackgroundImageUrl(Y))_.E6(this.hostElement).querySelector("#hero").style.backgroundImage="url("+Y+")"};
_.g.setScrimLayer=function(Y){var b=this.getScrimLayerColorStops(Y);Y=((Y==null?void 0:Y.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(Y=180);_.zO("HTML_DIR")==="rtl"&&(Y=-Y);b&&(_.E6(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+Y+"deg, "+b+")")};
_.g.isNarrower=function(){return this.hostElement.clientWidth<ah.NARROW_VERSION_SIZE};
_.g.getScrimLayerColorStops=function(){var Y,b=(Y=this.data)==null?void 0:Y.scrimColorValues;if(!b)return null;if(b.length===1)return Y=_.KX(b[0]),Y+" 0%, "+Y+" 100%";if(b.length===3){var w=[0,72,98];return b.map(function(V,H){return _.KX(V)+" "+w[H]+"%"}).join(",")}return null};
_.g.getBackgroundImageUrl=function(Y){return Y&&Y.largeFormFactorBackgroundThumbnail?_.NR((Y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||Y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.g.onPlaying=function(){this.startVideoTimeout()};
_.g.onEnded=function(){this.rotate()};
_.g.startPanelTimeout=function(){var Y=this;if(!this.panelTimeoutJobId){var b=this.get("data.minPanelDisplayDurationMs");b&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.MY(_.Lb,function(){Y.rotate()},b))}};
_.g.startVideoTimeout=function(){var Y=this;if(!this.videoTimeoutJobId){_.Lb.cancelJob(this.panelTimeoutJobId);var b=Date.now()-this.panelTimeoutJobStartMs;b=Math.max(0,this.get("data.minPanelDisplayDurationMs")-b);b=Math.max(this.get("data.minVideoPlayDurationMs")||0,b);this.videoTimeoutJobId=_.MY(_.Lb,function(){Y.rotate()},b)}};
_.g.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Lb.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Lb.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.g.rotate=function(){this.clearTimeouts();_.Ua(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.up.Object.defineProperties(ah.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.E6(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.E6(this.hostElement).querySelector("#video")}}});
_.up.Object.defineProperties(ah,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
ah.prototype.onEnded=ah.prototype.onEnded;ah.prototype.onPlaying=ah.prototype.onPlaying;ah.prototype.dataChanged=ah.prototype.dataChanged;_.z([_.n(_.r0),_.K("design:type",Object)],ah.prototype,"ytdGridStateAwareBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ah.prototype,"componentBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],ah.prototype,"ytdGuideStateAwareBehavior",void 0);
_.z([_.n(_.Fjr),_.K("design:type",Object)],ah.prototype,"ytBooleanLogicBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],ah.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ah.prototype,"disableGridStateAware",void 0);_.z([_.R(),_.K("design:type",Object)],ah.prototype,"data",void 0);_.z([_.R({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.K("design:type",String)],ah.prototype,"panelLayout",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ah.prototype,"animationEnabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ah.prototype,"transitioningOut",void 0);
_.z([_.R({computed:"computeMetadataOrder(data)"}),_.K("design:type",Boolean)],ah.prototype,"metadataOrder",void 0);_.z([_.R({computed:"computeByline(data)"}),_.K("design:type",Object)],ah.prototype,"byline",void 0);_.z([_.R({computed:"computeAvatarSize(data)"}),_.K("design:type",Number)],ah.prototype,"avatarSize",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ah.prototype,"narrow",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ah.prototype,"narrower",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ah.prototype,"layoutStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ah.prototype,"isCarouselInFeed",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ah.prototype,"dataChanged",null);_.z([_.kZ("yt-default-promo-panel-renderer-playing"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ah.prototype,"onPlaying",null);
_.z([_.kZ("yt-default-promo-panel-renderer-ended"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ah.prototype,"onEnded",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],ah);
_.a(ah,"ytd-default-promo-panel-renderer",function(){if(N4b!==void 0)return N4b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-default-promo-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="hero" class="style-scope ytd-default-promo-panel-renderer"></div>\n<yt-video-as-thumbnail-details id="video" animate-placeholder-on-entrance="" autoplay="" data="[[data.videoThumbnail]]" disable-upgrade$="[[!data.videoThumbnail]]" height="600" hidden$="[[!data.videoThumbnail]]" width="[[screen.width]]" class="style-scope ytd-default-promo-panel-renderer">\n</yt-video-as-thumbnail-details>\n<ytd-default-promo-panel-renderer-inline-playback-renderer id="player" data="[[data.inlinePlaybackRenderer.inlinePlaybackRenderer]]" disable-upgrade$="[[!data.inlinePlaybackRenderer]]" hidden$="[[!data.inlinePlaybackRenderer]]" class="style-scope ytd-default-promo-panel-renderer">\n</ytd-default-promo-panel-renderer-inline-playback-renderer>\n<div id="scrim" class="style-scope ytd-default-promo-panel-renderer"></div>\n<div id="content" on-click="onContentClick" class="style-scope ytd-default-promo-panel-renderer">\n  <yt-img-shadow id="logo" height="68" hidden="[[!data.foregroundThumbnailDetails]]" thumbnail="[[data.foregroundThumbnailDetails]]" class="style-scope ytd-default-promo-panel-renderer">\n  </yt-img-shadow>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_DESCRIPTION_TITLE\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <a class="yt-simple-endpoint style-scope ytd-default-promo-panel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h1 id="hero-title" class="style-scope ytd-default-promo-panel-renderer">[[getSimpleString(data.title)]]</h1>\n  </a>\n  <template is="dom-if" if="[[byline]]" class="style-scope ytd-default-promo-panel-renderer">\n    <div id="byline" class="style-scope ytd-default-promo-panel-renderer">\n      <yt-img-shadow id="avatar" hidden="[[!byline.thumbnailDetails]]" thumbnail="[[byline.thumbnailDetails]]" width="[[avatarSize]]" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-img-shadow>\n      <yt-formatted-string id="channel-name" link-inherit-color="" text="[[byline.bylineText]]" title="" class="style-scope ytd-default-promo-panel-renderer">\n      </yt-formatted-string>\n      <ytd-badge-supported-renderer id="video-badges" badges="[[byline.badgeRenderers]]" hidden="[[!byline.badgeRenderers]]" class="style-scope ytd-default-promo-panel-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n  </template>\n  <template is="dom-if" if="[[equals(metadataOrder, \'DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION\')]]" class="style-scope ytd-default-promo-panel-renderer">\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope ytd-default-promo-panel-renderer"></yt-formatted-string>\n  </template>\n  <div id="action-button" class="style-scope ytd-default-promo-panel-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return N4b=Y},{mode:1});_.S9("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var rd=function(){var Y=_.F.apply(this,arguments)||this;Y.narrower=!1;Y.dotMenuVisible=!1;Y.paginationThumbnailsVisible=!1;Y.active=!0;Y.disableGridStateAware=!1;Y.actionMap={"yt-window-resized":"onWindowResized"};return Y};
_.P(rd,_.F);_.g=rd.prototype;_.g.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]]"}}}}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.Io(this,this.onPageTypeChange));this.currentPageSubtype=_.hL(location.pathname);this.onWindowResized()};
_.g.detached=function(){this.jobId&&_.Lb.cancelJob(this.jobId);this.updateSizeJobId&&_.Lb.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Io(this,this.onPageTypeChange))};
_.g.onPageTypeChange=function(Y){this.active=Y.detail.newPageSubtype===this.currentPageSubtype};
_.g.onWindowResized=function(){this.updateSize()};
_.g.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.g.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.g.setCarouselItem=function(Y){Y>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Lb.cancelJob(this.jobId);var b=this.getCurrentPanelElement();b&&b.stopVideo();this.currentItemIndex=Y%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(b||(b=this.getCurrentPanelElement()),b.playVideo()):this.startRotationJob()};
_.g.scrollThumbnails=function(Y){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var b=this.getCurrentPaginationElement();if(b){var w=_.E6(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?w.style.transform="translateX(0)":(b=b.offsetWidth+8,w.style.transform="translateX(-"+b*(Y-Math.ceil(Math.floor(this.overlay.offsetWidth/b)/2)+1)+"px)")}}};
_.g.onDataChanged=function(){var Y=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.ps(_.Lb,function(){Y.getCurrentPanelElement().updateSize();Y.updateSize()}))};
_.g.getCurrentPanelElement=function(){return _.E6(_.E6(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.g.getCurrentPaginationElement=function(){return _.E6(_.E6(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.g.getNavigationClass=function(Y,b){return Y===b?"selected":""};
_.g.getNavigationDurationStyle=function(Y){return"animation-duration:"+(this.get("data.carouselItems."+Y+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.g.onNavigationTap=function(Y){var b=this,w=Y.model.index;w!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){b.setCarouselItem(w)}),this.autorotateActive=!1)};
_.g.onVideoThumbnailEnded=function(){var Y=this;if(this.shouldRotate()){var b=this.getCurrentPaginationElement();b&&(b.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){b.classList.remove("finished");Y.setNextCarouselItem()}))}};
_.g.onVideoThumbnailError=function(){this.startRotationJob()};
_.g.onVideoNotPlaying=function(){this.startRotationJob()};
_.g.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.g.startRotationJob=function(){var Y=this;_.Lb.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Lb.addLowPriorityJob(function(){Y.getCurrentPanelElement().transitionOut().then(function(){Y.setNextCarouselItem()})},this.rotationTimeout))};
_.g.computeDotMenuVisible=function(Y,b){return!!Y&&!!Y.carouselItems&&Y.carouselItems.length>1&&!Y.paginationThumbnails||!!b};
_.g.computePaginationThumbnailsVisible=function(Y,b){var w,V;return((V=Y==null?void 0:(w=Y.paginationThumbnails)==null?void 0:w.length)!=null?V:0)>1&&!b};
_.g.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.g.computePaginatorAlignment=function(Y){return(Y==null?void 0:Y.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.g.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.g.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.g.isNarrower=function(Y){return(Y!=null?Y:0)<ah.NARROW_VERSION_SIZE};
rd.prototype.activeChanged=rd.prototype.activeChanged;rd.prototype.onVideoNotPlaying=rd.prototype.onVideoNotPlaying;rd.prototype.onVideoThumbnailError=rd.prototype.onVideoThumbnailError;rd.prototype.onVideoThumbnailEnded=rd.prototype.onVideoThumbnailEnded;rd.prototype.onDataChanged=rd.prototype.onDataChanged;_.z([_.n(_.r0),_.K("design:type",Object)],rd.prototype,"ytdGridStateAwareBehavior",void 0);
_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],rd.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rd.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],rd.prototype,"currentItem",void 0);
_.z([_.R(),_.K("design:type",Number)],rd.prototype,"currentItemIndex",void 0);_.z([_.R(),_.K("design:type",Number)],rd.prototype,"rotationTimeout",void 0);_.z([_.R(),_.K("design:type",Number)],rd.prototype,"loopCount",void 0);_.z([_.R({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.K("design:type",String)],rd.prototype,"paginatorAlignment",void 0);_.z([_.R(),_.K("design:type",Number)],rd.prototype,"jobId",void 0);
_.z([_.R(),_.K("design:type",Number)],rd.prototype,"updateSizeJobId",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],rd.prototype,"isCarouselInFeed",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],rd.prototype,"narrower",void 0);_.z([_.R({computed:"computeDotMenuVisible(data, narrower)"}),_.K("design:type",Object)],rd.prototype,"dotMenuVisible",void 0);
_.z([_.R({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.K("design:type",Object)],rd.prototype,"paginationThumbnailsVisible",void 0);_.z([_.R({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.K("design:type",String)],rd.prototype,"layoutType",void 0);_.z([_.R({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],rd.prototype,"autorotateActive",void 0);_.z([_.R(),_.K("design:type",Object)],rd.prototype,"active",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],rd.prototype,"disableGridStateAware",void 0);_.z([_.xZ("#overlay"),_.K("design:type",HTMLElement)],rd.prototype,"overlay",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rd.prototype,"onDataChanged",null);
_.z([_.kZ("yt-video-thumbnail-ended"),_.kZ("yt-default-promo-panel-renderer-rotate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rd.prototype,"onVideoThumbnailEnded",null);_.z([_.kZ("yt-video-thumbnail-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rd.prototype,"onVideoThumbnailError",null);
_.z([_.kZ("yt-video-thumbnail-not-playing"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rd.prototype,"onVideoNotPlaying",null);_.z([_.vX("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rd.prototype,"activeChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],rd);
_.a(rd,"ytd-carousel-item-renderer",function(){if(fVR!==void 0)return fVR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="carousel-item" class="style-scope ytd-carousel-item-renderer"></div>\n<div id="menu" hidden="[[!dotMenuVisible]]" class="style-scope ytd-carousel-item-renderer">\n  <template is="dom-repeat" items="[[data.carouselItems]]" class="style-scope ytd-carousel-item-renderer">\n    <button class$="menu-dot [[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" on-click="onNavigationTap">\n    </button>\n  </template>\n</div>\n<div id="overlay" class="style-scope ytd-carousel-item-renderer">\n  <div id="pagination-thumbnails" hidden="[[!paginationThumbnailsVisible]]" class="style-scope ytd-carousel-item-renderer">\n    <template is="dom-repeat" items="[[data.paginationThumbnails]]" class="style-scope ytd-carousel-item-renderer">\n      <button class$="[[getNavigationClass(index, currentItemIndex)]] style-scope ytd-carousel-item-renderer" aria-label$="[[item.accessibility.accessibilityData.label]]" on-click="onNavigationTap">\n          <yt-img-shadow height="54" hidden="[[!equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="96" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n          <yt-img-shadow height="40" hidden="[[equals(layoutType, \'DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C\')]]" thumbnail="[[item]]" width="72" class="style-scope ytd-carousel-item-renderer">\n          </yt-img-shadow>\n        <div class="progress-bar style-scope ytd-carousel-item-renderer" style$="[[getNavigationDurationStyle(index)]]" hidden="[[!autorotateActive]]">\n        </div>\n      </button>\n    </template>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return fVR=Y},{mode:2});var XuN;var DJX;var mJt;var ofd;var zJ=function(){var Y=_.F.apply(this,arguments)||this;Y.originalQuery=null;Y.originalEndpoint=null;return Y};
_.P(zJ,_.F);zJ.prototype.computeShowOriginalQueryWithoutEndpoint_=function(Y,b){return!(!Y||b)};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],zJ.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zJ.prototype,"correctedText",void 0);_.z([_.R(),_.K("design:type",Object)],zJ.prototype,"correctedQuery",void 0);_.z([_.R(),_.K("design:type",Object)],zJ.prototype,"correctedEndpoint",void 0);_.z([_.R(),_.K("design:type",Object)],zJ.prototype,"originalText",void 0);_.z([_.R(),_.K("design:type",Object)],zJ.prototype,"originalQuery",void 0);
_.z([_.R(),_.K("design:type",Object)],zJ.prototype,"originalEndpoint",void 0);_.z([_.R({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.K("design:type",Boolean)],zJ.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.z([_.FM({is:"yt-search-query-correction",disableElementRegistration:!0})],zJ);
_.a(zJ,"yt-search-query-correction",function(){if(ofd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-query-correction--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_search_query_correction.yt.search.query.correction.css.js--\x3e<yt-formatted-string id="corrected" text="[[correctedText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n<a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(correctedEndpoint)]]" data="[[correctedEndpoint]]">\n  <yt-formatted-string id="corrected-link" text="[[correctedQuery]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n</a>\n<template is="dom-if" if="[[originalText]]" class="style-scope yt-search-query-correction">\n  <yt-formatted-string id="original" text="[[originalText]]" class="style-scope yt-search-query-correction"></yt-formatted-string>\n  <template is="dom-if" if="[[originalEndpoint]]" class="style-scope yt-search-query-correction">\n    <a class="yt-simple-endpoint style-scope yt-search-query-correction" href$="[[computeHref_(originalEndpoint)]]" data="[[originalEndpoint]]">\n        <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n      </a>\n  </template>\n  <template is="dom-if" if="[[showOriginalQueryWithoutEndpoint]]" class="style-scope yt-search-query-correction">\n    <yt-formatted-string class="original-link style-scope yt-search-query-correction" text="[[originalQuery]]"></yt-formatted-string>\n  </template>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;mJt===void 0&&(mJt=document.createElement("template"));var V=mJt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ofd=Y}Y=ofd;return Y},{mode:2});_.S9("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var WA=function(){return _.F.apply(this,arguments)||this};
_.P(WA,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],WA.prototype,"data",void 0);_.z([_.FM({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],WA);
_.a(WA,"yt-did-you-mean-renderer",function(){if(DJX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-did-you-mean-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_did_you_mean_renderer.yt.did.you.mean.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.didYouMean]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" class="style-scope yt-did-you-mean-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;XuN===void 0&&(XuN=document.createElement("template"));var V=XuN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);DJX=Y}Y=DJX;return Y},{mode:2});var IVX;var k4s;_.S9("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var KN=function(){return _.F.apply(this,arguments)||this};
_.P(KN,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],KN.prototype,"data",void 0);_.z([_.FM({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],KN);
_.a(KN,"yt-including-results-for-renderer",function(){if(k4s===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-including-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_including_results_for_renderer.yt.including.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.includingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.searchOnlyFor]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-including-results-for-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;IVX===void 0&&(IVX=document.createElement("template"));var V=IVX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);k4s=Y}Y=k4s;return Y},{mode:2});var lVX;var hTd;_.S9("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var iR=function(){return _.F.apply(this,arguments)||this};
_.P(iR,_.F);iR.prototype.computeExtraClasses_=function(Y,b){var w="";Y&&(w+=" "+Y.toLowerCase().replace(/_/g,"-"));b&&(w+=" "+b.toLowerCase().replace(/_/g,"-"));return w};
iR.prototype.computeUrlImg_=function(){var Y=this.data;Y.image&&(_.E6(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.NR(Y.image.thumbnails,Number.MAX_VALUE)+")")};
iR.prototype.computeUrlImg_=iR.prototype.computeUrlImg_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],iR.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iR.prototype,"computeUrlImg_",null);_.z([_.FM({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],iR);
_.a(iR,"yt-music-pass-feature-info-renderer",function(){if(hTd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-music-pass-feature-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_music_pass_feature_info_renderer.yt.music.pass.feature.info.renderer.css.js--\x3e<div id="container" class$="[[computeExtraClasses_(data.textStyle, data.textHorizontalAlignment)]] style-scope yt-music-pass-feature-info-renderer">\n  <div id="message" dir="ltr" class="style-scope yt-music-pass-feature-info-renderer">\n    <yt-formatted-string id="header" text="[[data.header]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-music-pass-feature-info-renderer"></yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;lVX===void 0&&(lVX=document.createElement("template"));var V=lVX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);hTd=Y}Y=hTd;return Y},{mode:2});var xJt;var qAg;_.S9("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var AC=function(){return _.F.apply(this,arguments)||this};
_.P(AC,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],AC.prototype,"data",void 0);_.z([_.FM({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],AC);
_.a(AC,"yt-no-results-found-showing-results-for-renderer",function(){if(qAg===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-no-results-found-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_no_results_found_showing_results_for_renderer.yt.no.results.found.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.showingResultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.noResultsFound]]" original-query="[[data.originalQuery]]" original-endpoint="[[data.originalQueryEndpoint]]" class="style-scope yt-no-results-found-showing-results-for-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;xJt===void 0&&(xJt=document.createElement("template"));var V=xJt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);qAg=Y}Y=qAg;return Y},{mode:2});var sDO;var QDd;_.S9("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var CN=function(){return _.F.apply(this,arguments)||this};
_.P(CN,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CN.prototype,"data",void 0);_.z([_.FM({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],CN);
_.a(CN,"yt-results-without-quotes-renderer",function(){if(QDd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-results-without-quotes-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_results_without_quotes_renderer.yt.results.without.quotes.renderer.css.js--\x3e<yt-search-query-correction corrected-text="[[data.resultsFor]]" corrected-query="[[data.correctedQuery]]" corrected-endpoint="[[data.correctedQueryEndpoint]]" original-text="[[data.withoutQuotes]]" class="style-scope yt-results-without-quotes-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;sDO===void 0&&(sDO=document.createElement("template"));var V=sDO;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);QDd=Y}Y=QDd;return Y},{mode:2});var vfg;var PEg;_.S9("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var yD=function(){return _.F.apply(this,arguments)||this};
_.P(yD,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yD.prototype,"data",void 0);_.z([_.FM({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],yD);
_.a(yD,"yt-search-no-results-renderer",function(){if(PEg===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-search-no-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_search_no_results_renderer.yt.search.no.results.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.noResultsText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n<template is="dom-if" if="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer">\n  <a class="yt-simple-endpoint style-scope yt-search-no-results-renderer" href$="[[computeHref_(data.alternateQueryEndpoint)]]" data="[[data.alternateQueryEndpoint]]">\n    <yt-formatted-string id="link" text="[[data.alternateQueryText]]" class="style-scope yt-search-no-results-renderer"></yt-formatted-string>\n  </a>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;vfg===void 0&&(vfg=document.createElement("template"));var V=vfg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);PEg=Y}Y=PEg;return Y},{mode:2});var Z0X;var B4X;_.S9("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var $4=function(){return _.F.apply(this,arguments)||this};
_.P($4,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$4.prototype,"data",void 0);_.z([_.FM({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],$4);
_.a($4,"yt-showing-results-for-renderer",function(){if(B4X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-showing-results-for-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_showing_results_for_renderer.yt.showing.results.for.renderer.css.js--\x3e<yt-search-query-correction corrected-endpoint="[[data.correctedQueryEndpoint]]" corrected-query="[[data.correctedQuery]]" corrected-text="[[data.showingResultsFor]]" original-endpoint="[[data.originalQueryEndpoint]]" original-query="[[data.originalQuery]]" original-text="[[data.searchInsteadFor]]" class="style-scope yt-showing-results-for-renderer">\n</yt-search-query-correction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Z0X===void 0&&(Z0X=document.createElement("template"));var V=Z0X;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);B4X=Y}Y=B4X;return Y},{mode:2});var nfQ;var MTQ;var eTb;var puN;var j2=function(){var Y=_.F.apply(this,arguments)||this;Y.answerExpanded=!1;return Y};
_.P(j2,_.F);j2.prototype.toggleAnswer_=function(Y){var b=_.uW(Y);b&&b.classList.contains("yt-simple-endpoint")||(Y.preventDefault(),Y.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
j2.prototype.toggleAnswer_=j2.prototype.toggleAnswer_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],j2.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],j2.prototype,"answerExpanded",void 0);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],j2.prototype,"toggleAnswer_",null);
_.z([_.FM({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],j2);
_.a(j2,"yt-generic-faq-question-renderer",function(){if(puN===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-generic-faq-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_generic_faq_question_renderer.yt.generic.faq.question.renderer.css.js--\x3e<div class="head style-scope yt-generic-faq-question-renderer" on-tap="toggleAnswer_">\n  <span class="question style-scope yt-generic-faq-question-renderer">[[getSimpleString(data.question)]]</span>\n  <yt-icon id="expand-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[answerExpanded]]" icon="yt-icons:expand-more">\n  </yt-icon>\n  <yt-icon id="collapse-arrow" class="answer-arrow style-scope yt-generic-faq-question-renderer" hidden="[[!answerExpanded]]" icon="yt-icons:expand-less">\n  </yt-icon>\n</div>\n<tp-yt-iron-collapse id="collapse" opened="[[answerExpanded]]" class="style-scope yt-generic-faq-question-renderer">\n  <template is="dom-repeat" items="[[data.answers]]" class="style-scope yt-generic-faq-question-renderer">\n    <yt-formatted-string class="answer style-scope yt-generic-faq-question-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n</tp-yt-iron-collapse>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;eTb===void 0&&(eTb=document.createElement("template"));var V=eTb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);puN=Y}Y=puN;return Y},{mode:2});_.S9("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var GJ=function(){return _.F.apply(this,arguments)||this};
_.P(GJ,_.F);GJ.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],GJ.prototype,"data",void 0);_.z([_.FM({is:"yt-faq-section-renderer",disableElementRegistration:!0})],GJ);
_.a(GJ,"yt-faq-section-renderer",function(){if(MTQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-faq-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_faq_section_renderer.yt.faq.section.renderer.css.js--\x3e<div class="container style-scope yt-faq-section-renderer">\n  <span class="header style-scope yt-faq-section-renderer">[[getSimpleString(data.header)]]</span>\n  <div id="contents" class="style-scope yt-faq-section-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;nfQ===void 0&&(nfQ=document.createElement("template"));var V=nfQ;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);MTQ=Y}Y=MTQ;return Y},{mode:2});var O0O;var tTX;_.S9("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var TJ=function(){return _.F.apply(this,arguments)||this};
_.P(TJ,_.F);
TJ.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"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],TJ.prototype,"data",void 0);_.z([_.FM({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],TJ);
_.a(TJ,"yt-offer-item-expanded-renderer",function(){if(tTX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-expanded-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_expanded_renderer.yt.offer.item.expanded.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n<div id="content" class="style-scope yt-offer-item-expanded-renderer">\n    <div id="heading-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="description-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n    <div id="additional-info-renderer" class="style-scope yt-offer-item-expanded-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;O0O===void 0&&(O0O=document.createElement("template"));var V=O0O;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);tTX=Y}Y=tTX;return Y},{mode:2});var RTb;var dJX;_.S9("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var JC=function(){return _.F.apply(this,arguments)||this};
_.P(JC,_.F);
JC.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"}}}}};
JC.prototype.computeFullWidthMode=function(Y){return!(!Y||!Y.fullWidthMode)};
JC.prototype.computeBorderlessMode=function(Y){return!(!Y||!Y.borderlessMode)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JC.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.K("design:type",Boolean)],JC.prototype,"fullWidthMode",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.K("design:type",Boolean)],JC.prototype,"borderlessMode",void 0);_.z([_.FM({is:"yt-offer-item-renderer",disableElementRegistration:!0})],JC);
_.a(JC,"yt-offer-item-renderer",function(){if(dJX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-offer-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_offer_item_renderer.yt.offer.item.renderer.css.js--\x3e<div id="image-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="heading-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="description-renderer" class="style-scope yt-offer-item-renderer"></div>\n<div id="additional-info-renderer" class="style-scope yt-offer-item-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;RTb===void 0&&(RTb=document.createElement("template"));var V=RTb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);dJX=Y}Y=dJX;return Y},{mode:2});var FY7;var LYs;_.S9("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var uR=function(){return _.F.apply(this,arguments)||this};
_.P(uR,_.F);uR.prototype.computeAriaLevel_=function(Y){return this.getLevelID_(Y)};
uR.prototype.getLevelID_=function(Y){return(Y=Y.match(/[0-9]+$/))&&Y.length==1?Y[0]:"1"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],uR.prototype,"data",void 0);_.z([_.R({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.K("design:type",String)],uR.prototype,"ariaLevel",void 0);_.z([_.R({value:"heading",reflectToAttribute:!0}),_.K("design:type",String)],uR.prototype,"role",void 0);
_.z([_.R({value:-1,reflectToAttribute:!0}),_.K("design:type",Number)],uR.prototype,"tabindex",void 0);_.z([_.FM({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],uR);
_.a(uR,"yt-subscription-product-header-renderer",function(){if(LYs===void 0){var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_header_renderer.yt.subscription.product.header.renderer.css.js--\x3e[[getSimpleString(data.text)]]\n");Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;FY7===void 0&&(FY7=document.createElement("template"));var V=FY7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);LYs=Y}Y=LYs;return Y},{mode:2});var SAA;var aVR;_.S9("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Yj=function(){return _.F.apply(this,arguments)||this};
_.P(Yj,_.F);Yj.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:_.aL("menuRenderer"),events:!0}}};
Yj.prototype.onStampFinished_=function(){_.E6(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Yj.prototype.onStampFinished_=Yj.prototype.onStampFinished_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Yj.prototype,"data",void 0);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yj.prototype,"onStampFinished_",null);
_.z([_.FM({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Yj);
_.a(Yj,"yt-subscription-product-renderer",function(){if(aVR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_renderer.yt.subscription.product.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-subscription-product-renderer">\n  <div id="content" class="style-scope yt-subscription-product-renderer">\n    <yt-img-shadow id="logo-image" height="30" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-renderer">\n    </yt-img-shadow>\n    <div id="metadatas" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-subscription-product-renderer">\n        <div class="metadata style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <div id="additional-infos" class="style-scope yt-subscription-product-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-renderer">\n        <div class="additional-info style-scope yt-subscription-product-renderer">\n          [[getSimpleString(item)]]\n        </div>\n      </template>\n    </div>\n    <yt-formatted-string class="description style-scope yt-subscription-product-renderer" hidden="[[!data.description]]" split-lines="" text="[[data.description]]">\n    </yt-formatted-string>\n  </div>\n  <div id="menu" class="style-scope yt-subscription-product-renderer"></div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;SAA===void 0&&(SAA=document.createElement("template"));var V=SAA;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);aVR=Y}Y=aVR;return Y},{mode:2});var r$Q;var zTN;_.S9("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var bl=function(){return _.F.apply(this,arguments)||this};
_.P(bl,_.F);bl.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
bl.prototype.imageScrimColorValuesChanged_=function(){var Y,b=(Y=this.data)==null?void 0:Y.imageScrimColorValues;_.E6(this.hostElement).querySelector("#scrim").style.backgroundColor=b?_.KX(b[0]):"transparent"};
bl.prototype.imageScrimColorValuesChanged_=bl.prototype.imageScrimColorValuesChanged_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],bl.prototype,"data",void 0);
_.z([_.lr("data.imageScrimColorValues"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bl.prototype,"imageScrimColorValuesChanged_",null);_.z([_.FM({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],bl);
_.a(bl,"yt-subscription-product-upsell-offer-renderer",function(){if(zTN===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-subscription-product-upsell-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_subscription_product_upsell_offer_renderer.yt.subscription.product.upsell.offer.renderer.css.js--\x3e<tp-yt-paper-card class="style-scope yt-subscription-product-upsell-offer-renderer">\n  <div id="image-container" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    <yt-img-shadow id="image" object-fit="COVER" object-position="LEFT" thumbnail="[[data.image]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n    </yt-img-shadow>\n    <div id="scrim" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <yt-icon id="logo-icon" aria-label$="[[data.logoIconAccessibility.accessibilityData.label]]" hidden="[[!data.logoIcon]]" icon="[[data.logoIcon.iconType]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-icon>\n      <yt-img-shadow id="logo-image" height="30" hidden="[[!data.logo]]" thumbnail="[[data.logo]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div id="content" class="card-content style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="title" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      [[getSimpleString(data.title)]]\n    </div>\n    <yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n    <div id="additional-infos" class="style-scope yt-subscription-product-upsell-offer-renderer">\n      <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-subscription-product-upsell-offer-renderer">\n        <yt-formatted-string id="additional-info" text="[[item]]" class="style-scope yt-subscription-product-upsell-offer-renderer"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="actions" class="card-actions style-scope yt-subscription-product-upsell-offer-renderer">\n    <div id="primary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n    <div id="secondary-button" class="button style-scope yt-subscription-product-upsell-offer-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;r$Q===void 0&&(r$Q=document.createElement("template"));var V=r$Q;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);zTN=Y}Y=zTN;return Y},{mode:2});var WYb;var KYQ;var i0t;var A$F;var CER;var y$N;var wk=function(){return _.F.apply(this,arguments)||this};
_.P(wk,_.F);wk.prototype.onYtServiceRequestError_=function(Y){_.fx(this.hostElement,Y.detail.error.message)};
wk.prototype.onYtServiceRequestError_=wk.prototype.onYtServiceRequestError_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],wk.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],wk.prototype,"data",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],wk.prototype,"collapsible",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],wk.prototype,"isManageRed",void 0);
_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],wk.prototype,"onYtServiceRequestError_",null);_.z([_.FM({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],wk);
_.a(wk,"yt-single-ypc-offer-renderer",function(){if(y$N===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_renderer.yt.single.ypc.offer.renderer.css.js--\x3e<div id="yt-unlimited-metadata" class="style-scope yt-single-ypc-offer-renderer">\n  <yt-formatted-string hidden="[[!data.offerTypeName]]" text="[[data.offerTypeName]]" class="style-scope yt-single-ypc-offer-renderer">\n  </yt-formatted-string>\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-single-ypc-offer-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-single-ypc-offer-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<yt-button-renderer id="subscription-button" data="[[data.button.buttonRenderer]]" class="style-scope yt-single-ypc-offer-renderer">\n</yt-button-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;CER===void 0&&(CER=document.createElement("template"));var V=CER;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);y$N=Y}Y=y$N;return Y},{mode:2});var Vi=function(){return _.F.apply(this,arguments)||this};
_.P(Vi,_.F);Vi.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Vi.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Vi.prototype,"isManageRed",void 0);_.z([_.FM({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Vi);
_.a(Vi,"yt-single-ypc-offer-list-renderer",function(){if(A$F===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-single-ypc-offer-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_single_ypc_offer_list_renderer.yt.single.ypc.offer.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-single-ypc-offer-list-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;i0t===void 0&&(i0t=document.createElement("template"));var V=i0t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);A$F=Y}Y=A$F;return Y},{mode:2});var $JO;var jDs;_.S9("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var HJ=function(){return _.F.apply(this,arguments)||this};
_.P(HJ,_.F);HJ.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],HJ.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],HJ.prototype,"isManageRed",void 0);_.z([_.FM({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],HJ);
_.a(HJ,"yt-ypc-offers-list-renderer",function(){if(jDs===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_list_renderer.yt.ypc.offers.list.renderer.css.js--\x3e<div id="contents" class="style-scope yt-ypc-offers-list-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;$JO===void 0&&($JO=document.createElement("template"));var V=$JO;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);jDs=Y}Y=jDs;return Y},{mode:2});_.S9("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var gk=function(){return _.F.apply(this,arguments)||this};
_.P(gk,_.F);
gk.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}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],gk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],gk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],gk.prototype,"data",void 0);_.z([_.FM({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],gk);
_.a(gk,"yt-unlimited-manage-subscription-page-renderer",function(){if(KYQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-manage-subscription-page-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_manage_subscription_page_renderer.yt.unlimited.manage.subscription.page.renderer.css.js--\x3e<tp-yt-paper-card elevation="1" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n  <h2 class="style-scope yt-unlimited-manage-subscription-page-renderer">[[getSimpleString(data.subscriptionTitle)]]</h2>\n  <div class="card-content style-scope yt-unlimited-manage-subscription-page-renderer">\n    <template is="dom-repeat" items="[[data.subscriptionInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div class="subscription-info-item style-scope yt-unlimited-manage-subscription-page-renderer">\n        <span class="subscription-info-item-title style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.title)]]\n        </span>\n        <span class="subscription-info-item-content style-scope yt-unlimited-manage-subscription-page-renderer">\n          [[getSimpleString(item.unlimitedSubscriptionInfoRenderer.content)]]\n        </span>\n      </div>\n    </template>\n    <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope yt-unlimited-manage-subscription-page-renderer">\n      <yt-formatted-string class="additional-info style-scope yt-unlimited-manage-subscription-page-renderer" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n    <div class="buttons style-scope yt-unlimited-manage-subscription-page-renderer">\n      <div id="manage-fix-fop-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-family-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="manage-subscription-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n      <div id="help-button" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n    </div>\n    <div id="offers" class="style-scope yt-unlimited-manage-subscription-page-renderer"></div>\n  </div>\n</tp-yt-paper-card>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;WYb===void 0&&(WYb=document.createElement("template"));var V=WYb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);KYQ=Y}Y=KYQ;return Y},{mode:2});var G4d;var T4s;var fK=function(){return _.F.apply(this,arguments)||this};
_.P(fK,_.F);_.g=fK.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.g.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.onKeypress_=function(Y){Y.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.g.handleHeaderTap_=function(Y){Y.preventDefault();Y.stopPropagation();this.expandOffers_()};
_.g.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.g.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
fK.prototype.dataChanged_=fK.prototype.dataChanged_;_.z([_.n(_.ni),_.K("design:type",Object)],fK.prototype,"ironA11yKeysBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],fK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],fK.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],fK.prototype,"offersVisible_",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fK.prototype,"dataChanged_",null);_.z([_.FM({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],fK);
_.a(fK,"yt-collapsible-ypc-offer-renderer",function(){if(T4s===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-collapsible-ypc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_collapsible_ypc_offer_renderer.yt.collapsible.ypc.offer.renderer.css.js--\x3e<yt-formatted-string id="more-offer-info-header" hidden="[[offersVisible_]]" text="[[data.moreOfferInfoHeader]]" on-tap="handleHeaderTap_" class="style-scope yt-collapsible-ypc-offer-renderer">\n</yt-formatted-string>\n<div id="offers" hidden="[[!offersVisible_]]" class="style-scope yt-collapsible-ypc-offer-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;G4d===void 0&&(G4d=document.createElement("template"));var V=G4d;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);T4s=Y}Y=T4s;return Y},{mode:2});var J$X;var unX;_.S9("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var N9=function(){return _.F.apply(this,arguments)||this};
_.P(N9,_.F);_.g=N9.prototype;_.g.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.g.dataChanged_=function(){if(this.data.backgroundImage){var Y=_.NR(this.data.backgroundImage.thumbnails,screen.width),b=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=b?"linear-gradient(180deg, "+b+"), url("+Y+")":"url("+Y+")";this.data.gtmId&&_.Rj(this.data.gtmId,_.zO("GL",""))}};
_.g.onYtServiceRequestError_=function(Y){_.fx(this.hostElement,Y.detail.error.message)};
_.g.getScrimLayerColorStops_=function(){var Y,b,w=(Y=this.data.unlimitedHeaderV2Data)==null?void 0:(b=Y.unlimitedHeaderV2Data)==null?void 0:b.scrimLayerColors;if(!w)return null;var V=100/w.length;return w.map(function(H,f){f*=V;return _.KX(H)+" "+f+"%"}).join(",")};
_.g.computeLogoWithPadding=function(Y){var b,w,V;return(Y=(b=Y.unlimitedLogoImage)==null?void 0:(w=b.thumbnails)==null?void 0:(V=w[0])==null?void 0:V.height)&&Y%31===0?!0:!1};
N9.prototype.onYtServiceRequestError_=N9.prototype.onYtServiceRequestError_;N9.prototype.dataChanged_=N9.prototype.dataChanged_;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.z([_.R({computed:"computeLogoWithPadding(data)"}),_.K("design:type",Boolean)],N9.prototype,"logoWithPadding",void 0);
_.z([_.R(),_.K("design:type",Object)],N9.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N9.prototype,"dataChanged_",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],N9.prototype,"onYtServiceRequestError_",null);_.z([_.FM({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],N9);
_.a(N9,"yt-unlimited-page-header-renderer",function(){if(unX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-page-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_page_header_renderer.yt.unlimited.page.header.renderer.css.js--\x3e<template is="dom-if" if="[[!logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<template is="dom-if" if="[[logoWithPadding]]" class="style-scope yt-unlimited-page-header-renderer">\n  <h1 id="logo-wrapper-with-padding" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-img-shadow id="logo-with-padding" thumbnail="[[data.unlimitedLogoImage]]" width="[[Number.MAX_VALUE]]" class="style-scope yt-unlimited-page-header-renderer">\n    </yt-img-shadow>\n  </h1>\n</template>\n<yt-formatted-string id="subtitle" respect-html-dir="" text="[[data.subTitle]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-formatted-string>\n<yt-button-renderer id="manage-subscription-button" data="[[data.manageSubscriptionButton.buttonRenderer]]" class="style-scope yt-unlimited-page-header-renderer">\n</yt-button-renderer>\n<div id="metadatas" class="style-scope yt-unlimited-page-header-renderer">\n  <template is="dom-repeat" items="[[data.metadatas]]" class="style-scope yt-unlimited-page-header-renderer">\n    <yt-formatted-string class="metadata-item style-scope yt-unlimited-page-header-renderer" text="[[item]]"></yt-formatted-string>\n  </template>\n  <template is="dom-if" if="[[data.additionalBillingInfo]]" class="style-scope yt-unlimited-page-header-renderer">\n    <div id="additional-billing-info" class="style-scope yt-unlimited-page-header-renderer">\n      <yt-formatted-string class="billing-info-item style-scope yt-unlimited-page-header-renderer" text="[[data.additionalBillingInfo]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n<yt-formatted-string class="promotion-text style-scope yt-unlimited-page-header-renderer" text="[[data.promotion.ypcPromotionRenderer.promotionText]]">\n</yt-formatted-string>\n<div id="more-offers" class="style-scope yt-unlimited-page-header-renderer"></div>\n<a id="restriction-apply-button" class="offer-details-link style-scope yt-unlimited-page-header-renderer" tabindex="0">\n  <yt-formatted-string text="[[data.offerDetailsLinkText]]" class="style-scope yt-unlimited-page-header-renderer"></yt-formatted-string>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;J$X===void 0&&(J$X=document.createElement("template"));var V=J$X;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);unX=Y}Y=unX;return Y},{mode:2});var YlX;var bqX;_.S9("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var EW=function(){return _.F.apply(this,arguments)||this};
_.P(EW,_.F);EW.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],EW.prototype,"data",void 0);_.z([_.FM({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],EW);
_.a(EW,"yt-unlimited-user-notification-renderer",function(){if(bqX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-user-notification-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_user_notification_renderer.yt.unlimited.user.notification.renderer.css.js--\x3e<div id="yt-notification-text" class="style-scope yt-unlimited-user-notification-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope yt-unlimited-user-notification-renderer">\n    <yt-formatted-string id="metadata-item" text="[[item]]" class="style-scope yt-unlimited-user-notification-renderer"></yt-formatted-string>\n  </template>\n</div>\n<div id="action-button" class="style-scope yt-unlimited-user-notification-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;YlX===void 0&&(YlX=document.createElement("template"));var V=YlX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);bqX=Y}Y=bqX;return Y},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.ous=_.b8(function(Y){var b=_.ur(Y,{numberOfChips:5}).numberOfChips;return _.m("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.m(_.Bf,{each:function(){return Array(b==null?void 0:b())}},function(){return _.m("div",{class:"ytGhostChipShelfChip"})}))},"mg");_.IjO=_.b8(function(Y){var b=_.o1(),w=_.fH().resolve(_.JA);_.tq(function(){requestAnimationFrame(function(){var H;(H=b.lottieEl)==null||H.addEventListener("DOMLoaded",function(){var f;(f=Y.onLottieLoaded)==null||f.call(Y)})})});
var V={};return _.m("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var H;return((H=Y.data)==null?void 0:H.call(Y).targetId)||""}},_.m(_.x_,{className:_.hj((V.ytChatLoadingViewModelRtl=w==="rtl",V)),
animationName:"YOUCHAT_LOADER",data:function(){var H;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((H=Y.data)==null?void 0:H.call(Y).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:b}))},"ng");
}catch(e){_._DumpException(e)}
try{
var FSs,LSA,SxF,alQ,rpg,zyA,WS7,ih7,JpX,bK,TCt,ypt,G1d,jmb,$6b,C7R,u3Q,YyF,blI,wLX,w$,VqR,Hl7,NFX,g$,gQX,f2,Vs,NB,fKF,HM,EQR,cPt,UDs,XLd,DDI,mDb,IKs,xDI,QzA,vQ7,PaQ,BFg,MqR,pLN,OlR,tqg,RHO,FEI,LEt,Syt,aKX,rPb,zHO,WEF,ilO,$DA,yPN,APs,jzI,CaX,G2A,Y2d,uEX,TFt,JPR,cM,bCF,wER,HCs,UfI,XEt,Dfd,mfd,oGX,IwQ,k_O,lwI,hdA,xfd,ss7,Qsd,vGX,Nlb;
_.ud=function(Y){var b=new _.BQ("Error accessing DB");return _.pzu().then(function(w){return new Promise(function(V,H){try{var f=w.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(Y);f.onsuccess=function(){var E=f.result;V(E?E.value:null)};
f.onerror=function(){b.params={key:Y,source:"onerror"};H(b)}}catch(E){b.params={key:Y,
thrownError:String(E)},H(b)}})},function(){return null})};
_.d6t=function(Y,b){var w=_.Igt(b);w!=="javascript:"&&w!=="data:"&&Y.setAttribute("href",b)};
FSs=function(Y,b){return _.kt(Y.entities,"flowStateEntity",b)};
LSA=function(Y){return _.SL(Y,function(b){return b.languageCode==="en"})};
SxF=function(Y){var b=YA;if(_.CHb(Y))Y.setOption("captions","stickyLoading",{}),Y.setOption("captions","track",{});else{var w=_.SL(_.jNv(Y),function(V){return V.displayName===b});
Y.setOption("captions","track",w)}};
alQ=function(Y){if(!Y)return 0;var b=Y.getPresentingPlayerType(),w=Y.getVideoData();return w&&w.isLive?(Y=Y.getProgressState(b),Y.seekableEnd-Y.seekableStart):Y.getDuration(b)};
rpg=function(Y,b){for(var w=_.N(Object.keys(Y)),V=w.next();!V.done;V=w.next())if(V=V.value,Y[V]!==b[V])return!1;return!0};
zyA=function(){return document.getElementById("player-control-overlay")};
WS7=function(Y){Y!==-1&&!_.q("player_controls_log_creation_killswitch")&&zyA()&&(_.S1("pcu_cs",Y),_.S1("pcu_ce"))};
ih7=function(Y){return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(Y.subscribeButton?[Y.subscribeButton,Y.channelAccess]:[Y.channelAccess]).map(function(b){return _.m("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz--button"},KSA(b)))}))};
_.ApN=function(Y){var b=Y.data;Y=Y.hideDivider;var w={};w=(w["yt-profile-identity-info-view-model-wiz__frame"]=!0,w["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!b.channelBanner,w);w={class:_.qR(w)};var V,H={imageBannerViewModel:{image:(V=b.channelBanner)==null?void 0:V.image,style:"IMAGE_BANNER_STYLE_INSET"}};V=_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},b.channelBanner?_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
KSA(H,{imageBannerViewModel:{isPositionRelative:!0}})):null);H=_.m("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},KSA(b.avatar));var f;var E=_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},b.channelDisplayName),b.verifiedOrOacBadge?_.m("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.m(_.Y_,{data:{thumbnails:[{url:(f=b.verifiedOrOacBadge)==null?void 0:f.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);f=_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},E,KSA(b.threeDotMenu));E=_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.m("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},b.channelHandle),b.channelPronouns&&b.channelHandle?_.m("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.m("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},b.channelPronouns)),_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},b.leftOfBulletInfo),b.leftOfBulletInfo&&b.rightOfBulletInfo?_.m("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.m("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},b.rightOfBulletInfo)));f=_.m("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},f,E);return _.m("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.m("div",w,V,_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},H,f),b.channelDescription?_.m("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},b.channelDescription):
null,ih7(b),Y?null:_.m("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
JpX=function(Y,b){var w=_.JU(Y,{}),V=C7R("top",b),H=C7R("bottom",b),f=C7R("left",b),E=C7R("right",b);return _.Bb({top:function(){return bK(w().position,V)},
bottom:function(){return bK(w().position,H)},
left:function(){return bK(w().position,f)},
right:function(){return bK(w().position,E)},
position:function(){return bK(w().positionType,ypt)},
height:function(){return bK(w().height,w$)},
width:function(){return bK(w().width,w$)},
"min-width":function(){return bK(w().minWidth,w$)},
"min-height":function(){return bK(w().minHeight,w$)},
"max-width":function(){return bK(w().maxWidth,w$)},
"max-height":function(){return bK(w().maxHeight,w$)},
"aspect-ratio":function(){return bK(w().aspectRatio,String)},
"margin-top":function(){return bK(w().margin,V)},
"margin-bottom":function(){return bK(w().margin,H)},
"margin-left":function(){return bK(w().margin,f)},
"margin-right":function(){return bK(w().margin,E)},
"padding-top":function(){return bK(w().padding,V)},
"padding-bottom":function(){return bK(w().padding,H)},
"padding-left":function(){return bK(w().padding,f)},
"padding-right":function(){return bK(w().padding,E)},
"flex-direction":function(){return bK(w().flexDirection,$6b)},
"justify-content":function(){return bK(w().justifyContent,jmb)},
"align-items":function(){return bK(w().alignItems,G1d)},
"flex-grow":function(){return bK(w().flexGrow,String)},
"flex-shrink":function(){return bK(w().flexShrink,String)},
"flex-basis":function(){return bK(w().flexBasis,w$)},
"align-self":function(){return bK(w().alignSelf,G1d)},
"flex-wrap":function(){return bK(w().flexWrap,TCt)},
"align-content":function(){return bK(w().alignContent,G1d)}})};
bK=function(Y,b){return Y!==void 0?b(Y):void 0};
TCt=function(Y){switch(Y){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
ypt=function(Y){switch(Y){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
G1d=function(Y){switch(Y){case "YPC_ALIGN_ITEMS_AUTO":return"auto";case "YPC_ALIGN_ITEMS_START":return"flex-start";case "YPC_ALIGN_ITEMS_END":return"flex-end";case "YPC_ALIGN_ITEMS_CENTER":return"center";case "YPC_ALIGN_ITEMS_STRETCH":return"stretch"}};
jmb=function(Y){switch(Y){case "YPC_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "YPC_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "YPC_JUSTIFY_CONTENT_CENTER":return"center";case "YPC_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "YPC_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around"}};
$6b=function(Y){switch(Y){case "YPC_FLEX_DIRECTION_ROW":return"row";case "YPC_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "YPC_FLEX_DIRECTION_COLUMN":return"column";case "YPC_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse"}};
C7R=function(Y,b){var w=b==="rtl";switch(Y){case "top":var V=u3Q;break;case "bottom":V=YyF;break;case "left":V=blI;break;default:V=wLX}return function(H){return bK(V(H,w),w$)}};
u3Q=function(Y){var b=Y.top;var w=Y.vertical;Y=Y.all;var V;return(V=b!=null?b:w)!=null?V:Y};
YyF=function(Y){var b=Y.bottom;var w=Y.vertical;Y=Y.all;var V;return(V=b!=null?b:w)!=null?V:Y};
blI=function(Y,b){var w=Y.left;var V=Y.end;var H=Y.start;var f=Y.horizontal;Y=Y.all;var E,U;return(U=(E=w!=null?w:b?V:H)!=null?E:f)!=null?U:Y};
wLX=function(Y,b){var w=Y.right;var V=Y.end;var H=Y.start;var f=Y.horizontal;Y=Y.all;var E,U;return(U=(E=w!=null?w:b?H:V)!=null?E:f)!=null?U:Y};
w$=function(Y){var b=Y.value;switch(Y.unit){case "YPC_DIMENSION_UNIT_POINT":return b+"px";case "YPC_DIMENSION_UNIT_FRACTION":return b+"%";default:return""+b}};
VqR=function(Y){switch(Y){case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY":return"ytStyledTextViewModelYtTextPrimary";case "YPC_SEMANTIC_COLOR_TEXT_PRIMARY_INVERSE":return"ytStyledTextViewModelYtTextPrimaryInverse";case "YPC_SEMANTIC_COLOR_TEXT_SECONDARY":return"ytStyledTextViewModelYtTextSecondary";case "YPC_SEMANTIC_COLOR_TEXT_DISABLED":return"ytStyledTextViewModelYtTextDisabled";case "YPC_SEMANTIC_COLOR_THEMED_GREEN":return"ytStyledTextViewModelYtThemedGreen"}};
Hl7=function(Y){var b=Y!=null?Y:{};Y=b.fontRole;var w=b.fontSize;b=b.fontWeight;if(Y!==null&&w!==null)switch(Y){case "YPC_FONT_ROLE_DISPLAY":switch(w){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(w){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return b===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(w){case "YPC_FONT_SIZE_XL":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
NFX=function(Y,b,w){function V(k){return Object.values(k).map(function(l){var x=l.productId;l=l.pricingOptionIndex;return Vs(H(x).pricingOptions,l).pricingOptionId})}
function H(k){return U().get(k)}
function f(k){k=V(k);w(k)}
var E=HM([Y,b],function(k,l){var x=k==null?void 0:k.selectedPricingOptions;k={};var Q=!0;if(x&&l.length)for(var Z=_.N(l),e=Z.next();!e.done;e=Z.next()){e=e.value;var O=gQX(e.pricingOptions,function(C){a:{C=C.pricingOptionId;for(var W=_.N(x),y=W.next();!y.done;y=W.next())if(y.value===C){C=!0;break a}C=!1}return C});
if(O>=0){Q=!1;var L=Vs(e.pricingOptions,O),r=void 0;k[e.groupId]={productId:e.productId,pricingOptionIndex:O,pricingGroupAttributes:(r=L)==null?void 0:r.pricingGroupAttributes}}}Q&&l.length&&(Q=Vs(l[0].pricingOptions,0),k[l[0].groupId]={productId:l[0].productId,pricingOptionIndex:0,pricingGroupAttributes:Q==null?void 0:Q.pricingGroupAttributes});return k}),U=HM([b],function(k){return new Map(k.map(function(l){return[l.productId,
l]}))}),X=HM([b],function(k){var l=new Map;
k=_.N(k);for(var x=k.next();!x.done;x=k.next()){var Q=x.value;x=Q.groupId;var Z=Q.productId;Q=_.N(g$(Q.pricingOptions));for(var e=Q.next();!e.done;e=Q.next()){var O=_.N(e.value);e=O.next().value;O=O.next().value;l.set(O.pricingOptionId,{groupId:x,productId:Z,index:e,pricingOption:O,pricingGroupAttributes:O.pricingGroupAttributes})}}return l}),I=HM([b],function(k){var l=new Map;
k=_.N(k);for(var x=k.next();!x.done;x=k.next()){var Q=x.value;x=Q.groupId;var Z=Q.productId,e=void 0;Q=_.N(g$((e=Q.pricingGroups)!=null?e:[]));for(e=Q.next();!e.done;e=Q.next()){var O=_.N(e.value);e=O.next().value;O=O.next().value;l.set(O.pricingGroupId,{groupId:x,productId:Z,index:e,pricingGroup:O,pricingGroupAttributes:O.pricingGroupAttributes})}}return l});
return{getProductById:H,isProductSelected:function(k){var l=H(k);if(!l)return!1;var x;return((x=E()[l.groupId])==null?void 0:x.productId)===k},
getSelectedPricingOptions:function(){return Object.values(E()).map(function(k){var l=k.productId;k=k.pricingOptionIndex;return Vs(H(l).pricingOptions,k)})},
getSelectedPricingGroupAttributesByGroupId:function(k){var l;return(k=(l=E()[k])==null?void 0:l.pricingGroupAttributes)?Array.from(k):void 0},
getSelectedProductByGroupId:function(k){var l;return(k=(l=E()[k])==null?void 0:l.productId)?H(k):void 0},
onProductSelected:function(k){var l=H(k);if(l){var x=E(),Q;if(((Q=x[l.groupId])==null?void 0:Q.productId)!==k){var Z,e;Q=(e=(Z=x[l.groupId])==null?void 0:Z.pricingOptionIndex)!=null?e:0;f2(l.pricingOptions)<=Q&&(Q=0);Z=Vs(l.pricingOptions,Q);var O;e={};f(Object.assign({},x,(e[l.groupId]={productId:k,pricingOptionIndex:Q,pricingGroupAttributes:(O=Z==null?void 0:Z.pricingGroupAttributes)!=null?O:[]},e)))}}},
onPricingOptionSelected:function(k){var l=X().get(k);if(l){k=l.groupId;var x=l.productId;l=l.index;var Q=E(),Z,e;if(((Z=Q[k])==null?void 0:Z.productId)!==x||((e=Q[k])==null?void 0:e.pricingOptionIndex)!==l){var O,L;Z={};f(Object.assign({},Q,(Z[k]={productId:x,pricingOptionIndex:l,pricingGroupAttributes:(L=(O=Q[k])==null?void 0:O.pricingGroupAttributes)!=null?L:[]},Z)))}}},
onPricingGroupSelected:function(k){var l=I().get(k);if(l){k=l.groupId;var x=l.productId,Q=l.pricingGroup.pricingGroupAttributes,Z=H(x);if(Z){l=E();var e=l[k].pricingGroupAttributes,O;if(((O=l[k])==null?void 0:O.productId)!==x||!NB(fKF(e,f2(Q)),Q)){O=Array.from(Q);for(Q=f2(Q);Q<f2(e);Q++){var L="",r=!1,C=Array.from(O);C.push(Vs(e,Q));for(var W=_.N(Z.pricingGroups),y=W.next();!y.done;y=W.next())if(y=y.value,NB(y.pricingGroupAttributes,C)){O.push(Vs(e,Q));r=!0;break}else L===""&&f2(y.pricingGroupAttributes)===
C.length&&NB(fKF(y.pricingGroupAttributes,O.length),O)&&(L=Vs(y.pricingGroupAttributes,Q));r||O.push(L)}L=l[k].pricingOptionIndex;Q=[];r=new Map;C=0;Z=_.N(g$(Z.pricingOptions));for(W=Z.next();!W.done;W=Z.next())y=_.N(W.value),W=y.next().value,y=y.next().value,NB(y.pricingGroupAttributes,O)&&Q.push(W),NB(y.pricingGroupAttributes,e)&&r.set(W,C++);Q.length===0?e=0:(e=r.get(L),e=e!==void 0&&e<Q.length?Q[e]:Q[0]);Z={};f(Object.assign({},l,(Z[k]={productId:x,pricingOptionIndex:e,pricingGroupAttributes:O},
Z)))}}}},
onClearGroupSelected:function(k){var l=E();l[k]&&(l=Object.fromEntries(Object.entries(l).filter(function(x){return _.N(x).next().value!==k})),f(l))}}};
g$=function(Y){return function w(){var V,H,f,E,U;return _.UOe(w,function(X){switch(X.nextAddress){case 1:_.X3(X,2),V=0,H=_.N(Y),f=H.next();case 4:if(f.done){X.jumpTo(2);break}E=f.value;U=_.Xn6;return _.D(X,[V++,E],7);case 7:U(X.yieldResult);f=H.next();X.jumpTo(4);break;case 2:_.Ux(X),_.Dl(X,0)}})}()};
gQX=function(Y,b){Y=_.N(g$(Y));for(var w=Y.next();!w.done;w=Y.next()){var V=_.N(w.value);w=V.next().value;V=V.next().value;if(b(V))return w}return-1};
f2=function(Y){var b=0;for(Y=Y[Symbol.iterator]();!Y.next().done;)++b;return b};
Vs=function(Y,b){Y=_.N(g$(Y));for(var w=Y.next();!w.done;w=Y.next()){var V=_.N(w.value);w=V.next().value;V=V.next().value;if(w===b)return V}};
NB=function(Y,b){if(!Y&&!b)return!0;if(!Y||!b)return!1;Y=Array.from(Y);b=Array.from(b);if(Y.length!==b.length)return!1;for(var w=0;w<Y.length;w++)if(Y[w]!==b[w])return!1;return!0};
fKF=function(Y,b){b=b===void 0?Infinity:b;var w=[];Y=_.N(g$(Y));for(var V=Y.next();!V.done;V=Y.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;if(V>=b)break;V>=0&&w.push(H)}return w};
HM=function(Y,b){var w,V;return function(){for(var H=Y.map(function(E){return E()}),f=0;f<H.length;f++)if(!w||H[f]!==w[f]){w=H;
V=b.apply(null,_.Bt(H));break}return V}};
EQR=function(Y,b,w){var V=[];Y=_.N(Y);for(var H=Y.next();!H.done;H=Y.next()){H=H.value;var f=void 0;((f=b)==null?0:f.length)&&!NB(H.pricingGroupAttributes,b)||V.push({pricingOption:H,isSelected:w.includes(H.pricingOptionId)})}return V};
cPt=function(Y,b){return _.kt(Y.entities,"pdpStateEntity",b)};
UDs=function(Y){var b,w;return!!(Y.productId&&Y.groupId&&((b=Y.pricingOptions)==null?0:b.length)&&Y.pricingOptions.every(function(V){return V.pricingOptionId})&&((w=Y.pricingGroups)==null||!w.length||Array.isArray(Y.pricingGroups)&&Y.pricingGroups.every(function(V){return V.pricingGroupId&&V.pricingGroupAttributes&&V.pricingGroupAttributes.length>0})))};
XLd=function(Y,b,w){return NFX(Y,HM([b],function(V){return V.filter(UDs)}),w)};
DDI=function(Y,b){return b.length===0?[Y]:[Y.slice(0,b[0]),Y.slice(b[0])].filter(function(w){return w.length>0})};
mDb=function(Y){switch(Y){case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-justify-end";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-full-distributed";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-flex-primary";case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-vertical-centered";
case "FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE":return"yt-flow-bottom-bar-renderer--flow-bottom-bar-button-layout-style-distributed-space";default:return""}};
IKs=function(Y,b,w,V){V=Object.assign({},V);_.Fd(V,oQs,{selectedOptionId:Y,primaryButtonOverride:w});_.jm().dispatch(_.qo("flowStateEntity",b,V))};
_.hHd=function(){if(!k2X){var Y=_.N(_.kw(new Map,void 0,"UJImUe"));k2X=Y.next().value;lKt=Y.next().value}return k2X};
xDI=function(Y){if(Y)return _.hHd()().get(Y)};
_.qyN=function(Y,b){if(Y&&b){var w=_.hHd();w().set(Y,b);Y=w();lKt(new Map(Y))}};
_.szd=function(Y){return{onSubmit:function(){var b;(b=xDI(Y()))==null||b.onSubmit()},
isValid:function(){var b=xDI(Y());return b?b.isValid():!0},
isSubmitting:function(){var b,w;return!!((b=xDI(Y()))==null?0:(w=b.isSubmitting)==null?0:w.call(b))}}};
QzA=function(Y,b){return _.kt(Y.entities,"contextNoteFeedEntityPayload",b)};
vQ7=function(Y){Y.style.height="auto";Y.style.height=Y.scrollHeight+"px"};
PaQ=function(Y){return[Y.syncStep,Y.asyncStep].filter(function(b){return b!==void 0})};
BFg=function(Y){var b,w,V;if(Y=(b=Y.structuredContextNoteFormSchema)==null?void 0:(w=b.fieldSchemas)==null?void 0:(V=w.noteBody)==null?void 0:V.validationSchema)for(b=_.N(PaQ(Y)),w=b.next();!w.done;w=b.next()){w=w.value.rules;if(!w)break;w=_.N(w);for(w=w.next();!w.done;w=w.next())return _.v(w.value,_.ZlO)}};
MqR=function(Y){if(Y){Y=_.N(PaQ(Y));for(var b=Y.next();!b.done;b=Y.next()){b=b.value.rules;if(!b)break;b=_.N(b);for(b=b.next();!b.done;b=b.next())return _.v(b.value,nQX)}}};
pLN=function(Y){if(Y){Y=_.N(PaQ(Y));for(var b=Y.next();!b.done;b=Y.next()){b=b.value.rules;if(!b)break;b=_.N(b);for(b=b.next();!b.done;b=b.next())return _.v(b.value,eHb)}}};
OlR=function(Y){Y=/^https?:\/\//.test(Y)?Y:"http://"+Y;try{var b=_.$G(Y)}catch(w){return!1}if(b.toString()!==Y)return!1;Y=b.JSC$8068_domain_.split(".");return Y.length>1&&Y.every(function(w){return!!w})};
tqg=function(Y,b,w,V){var H;V=(H=V.structuredContextNoteData)==null?void 0:H.createCommentEndpoint;if(H=_.v(V,_.ZyI))return H.commentText=_.Gx(Y),H.videoPositionMention=b,H.sources=w,V};
RHO=function(Y){return Y==null?void 0:Y.stringValue};
FEI=function(Y,b,w){Y=Y.map(function(V,H){return{listItemViewModel:{title:V.title,subtitle:V.subtitle,leadingImage:V.leadingImage,trailingImage:H===b?dDt:void 0,rendererContext:{commandContext:{onTap:V.onTap}}}}});
return Object.assign({},w&&{header:{panelHeaderViewModel:{title:w}}},{content:{listViewModel:{listItems:Y}}})};
LEt=function(Y,b){if(Y&&b)switch(b){case "SELECTION_TYPE_BOOL":return Y.boolValue;case "SELECTION_TYPE_INT":return Y.intValue;case "SELECTION_TYPE_STRING":return Y.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return Y.privacyStatusValue}};
Syt=function(Y){var b;Y=(b=Y.options)==null?void 0:b.findIndex(function(w){return w.isSelected});
return Y===void 0?-1:Y};
aKX=function(Y,b,w){var V=function(){return Y().label},H={},f=_.hj("ytDropdownViewModelLabel",(H.ytDropdownViewModelLabelError=b,H));
return _.m(_.h,{cond:function(){return Y().label&&!(w()===-1&&Y().label&&!Y().placeholderText)},
then:function(){return _.m("div",{class:f},_.m(_.wv,{text:V}))}})};
rPb=function(Y,b){var w={};w=_.hj("ytDropdownViewModelTitle",(w.ytDropdownViewModelTitlePlaceholder=function(){return b()===-1},w));
return _.m("div",{class:w},_.m(_.wv,{text:function(){var V=Y();var H=b();if(H===-1)V=V.placeholderText?V.placeholderText:V.label;else{var f,E;V=(f=V.options)==null?void 0:(E=f[H])==null?void 0:E.title}return V}}))};
zHO=function(Y,b){var w=function(){return Y().hint};
return _.m(_.Uz,null,_.m(_.h,{cond:function(){return w()&&!b()},
then:function(){return _.m("div",{class:_.hj("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.m(_.wv,{text:w,className:"ytDropdownViewModelSupportText"}))}}),_.m(_.h,{cond:b,
then:function(){return _.m("div",{id:"dropdown-view-model-error",role:"alert",class:_.hj("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.m(_.n_,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.m(_.wv,{text:b,className:"ytDropdownViewModelSupportText"}))}}))};
WEF=function(Y,b){var w=_.fH().resolve(_.nKQ);_.dx(function(){var V=Y().id;V&&w!=null&&w.dropdownMap.set(V,b)})};
ilO=function(Y){Y=_.v(Y.scheduleButton,KEb);Y=_.v(Y==null?void 0:Y.primaryButton,_.Bv);Y=_.v(Y==null?void 0:Y.onTap,_.rI);var b,w,V=((w=_.v(Y,_.ln))==null?void 0:w.commands)||[Y];w=_.N(V);for(Y=w.next();!Y.done&&!(b=_.v(Y.value,_.npd));Y=w.next());var H;b=(H=b)==null?void 0:H.createBroadcastRequest;if(!b)throw Error("Mj");return b};
$DA=function(Y,b,w){w=w===void 0?{}:w;var V,H;return _.c(function(f){if(V=APs(b))return f.return(V);(H=CaX(Y,b,w))&&yPN(b,H);return f.return(H)})};
yPN=function(Y,b){var w=jzI(Y);w&&b.then(function(V){_.fH().resolve(_.cR).put(w,new _.Ue({innertubeResponse:V}))})};
APs=function(Y){if(Y=jzI(Y)){var b=_.fH().resolve(_.cR);if(b.has(Y))return b.get(Y).then(function(w){return w==null?void 0:_.Dz(w)})}return null};
jzI=function(Y){var b=_.v(Y.endpoint,_.TG);if(b!=null&&b.videoId)return b={videoId:b.videoId},_.q("web_imp_player_mute_params")&&(b.mutedAtStart=Y.startPlaybackInMutedState),_.GG("inline_playback",b)};
CaX=function(Y,b,w){Y=_.$_(Y,b.endpoint,G2A(b,w)).then(function(V){return V});
return Promise.resolve(Y)};
G2A=function(Y,b){b=_.q("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!Y.startPlaybackInMutedState},b):Object.assign({},{vis:5,autonav:"1"},b);var w;b={contentPlaybackContext:_.ey(b,(w=_.v(Y.endpoint.commandMetadata,_.g5))==null?void 0:w.url,window.location.href)};_.q("web_imp_player_mute_params")&&(b.overrideMutedAtStart=!Y.startPlaybackInMutedState);return b};
Y2d=function(Y,b){var w=window.MutationObserver;w&&(E9=new w(function(V,H){V=_.N(V);for(var f=V.next();!f.done;f=V.next()){f=f.value;var E;if(E=f.type==="childList"&&f.target)a:{E=Y;f=TFt(f.target);E=TFt(E);for(var U=null,X=0;X<f.length;X++)if(E.includes(f[X])){if(X===0){E=!1;break a}U=f[X];break}U?(f=JPR(f,U),E=JPR(E,U),E=f<E):E=!1}if(E){b();H.disconnect();break}}}),(w=uEX())&&E9.observe(w,{childList:!0,
subtree:!0}))};
uEX=function(){var Y=document.getElementsByTagName("ytd-rich-grid-renderer");if(Y.length>0)return Y[0];Y=document.getElementsByTagName("ytd-section-list-renderer");return Y.length>0?Y[0]:null};
TFt=function(Y){for(var b=[];Y;)b.push(Y),Y=Y.parentElement;return b};
JPR=function(Y,b){var w=Array.from(b.children);b=Y.indexOf(b);return b>0?w.indexOf(Y[b-1]):-1};
cM=function(Y,b,w){w=w===void 0?{}:w;return _.sa(Y,w,b)};
bCF=function(Y){switch(Y){case "MUSIC":return!0;default:return!1}};
wER=function(Y){return Y==null?void 0:Y.filter(function(b){return b.premiereTrailerBadgeRenderer})};
HCs=function(Y){var b,w=Y==null?void 0:(b=Y.find(function(l){return l.thumbnailOverlayTimeStatusRenderer}))==null?void 0:b.thumbnailOverlayTimeStatusRenderer,V,H;
if((w==null?0:(V=w.icon)==null?0:V.iconType)&&bCF(w==null?void 0:(H=w.icon)==null?void 0:H.iconType)){var f;return{icon:w==null?void 0:(f=w.icon)==null?void 0:f.iconType}}var E,U;var X=(Y=(E=Y==null?void 0:(X=Y.find(function(l){return l.thumbnailBottomOverlayViewModel}))==null?void 0:X.thumbnailBottomOverlayViewModel)==null?void 0:(U=E.badges)==null?void 0:U.find(function(l){var x,Q;
return((x=_.v(l,VhX))==null?void 0:(Q=x.inlinePlaybackBadgeData)==null?void 0:Q.replicateAsTimestamp)===!0}))?_.v(Y,VhX):void 0;
if(X==null?0:X.icon){var I,k;if((X=(I=_.X3G(X==null?void 0:X.icon))==null?void 0:(k=I.clientResource)==null?void 0:k.imageName)&&bCF(X))return{icon:X}}return{}};
UfI=function(Y,b){var w=gGt,V=_.N(_.kw(fwN(new Nlb(function(){},w,b)),void 0,"PAnyd")),H=V.next().value,f=V.next().value,E=new Nlb(function(U){f(U)},w,b);
_.tl(function(){Promise.resolve().then(function(){var U,X=(U=Y())!=null?U:{};E.playerControlsData=X;_.q("player_controls_skip_double_signal_old")&&(E.lastSeenPlayerApi=_.AJ(X.playerApi));_.q("player_controls_skip_double_signal_old")||(E.lastSeenPlayerApi=_.AJ(X.playerApi));EG7(E)});
_.R2(function(){cyI(E)})},"HikUP");
_.R2(function(){cyI(E)});
return function(){return H()}};
XEt=function(Y){return function(b){var w=Y(),V={playerState:b};if(b===1){var H;(H=w.playerApi)==null||H.loadModule("captions")}if(b===0){var f;(f=w.playerApi)==null||f.unloadModule("captions")}(b!==-1||_.q("web_imp_controls_set_player_state_killswitch"))&&w.setState(V)}};
Dfd=function(Y){return function(b){Y().setState({playbackRate:b})}};
mfd=function(Y){return function(b){var w=Y(),V=w.playerApi,H=V==null?void 0:V.getVideoData(),f=(H==null?void 0:H.isLive)||!1;H=H==null?void 0:H.video_id;f={videoDuration:alQ(V||void 0),isLive:f,videoId:H};f.videoId!==w.videoId&&(f=Object.assign({},_.PRK(V),f));if(b==null?0:b.playertype)f.playerType=b.playertype;if(V){f.captionsAvailable=_.F8(V);b=f;var E;H=(E=V.getStoryboardLevel(V.getNumberOfStoryboardLevels()-1))==null?void 0:E.intervalMs;b.storyboardInterval=H?H/1E3:void 0;f.captionsAvailable&&
(f.captionsEnabled=_.CHb(V))}f.volumeMuted=!(V==null||!V.isMuted());w.setState(f)}};
oGX=function(Y){return function(b){var w=Y(),V=w.playerApi;if(V){var H=V.getPresentingPlayerType();b={playedTime:b||0,percentLoaded:V.getVideoLoadedFraction(),playerType:H};w.playerState===0&&(b.playedTime=w.videoDuration);w.isLive&&(H=V.getProgressState(H),b.playedTime-=H.seekableStart,b.videoDuration=alQ(V));if(w.playerType===1)V=!1;else{var f;if((f=w.uxConfig)==null?0:f.showCuedOverlay){var E;V=!((E=w.playerApi)==null?0:E.getPlayerStateObject(w.playerType).isDomPaused)}else V=!0}V&&delete b.playedTime;
w.setState(b)}}};
IwQ=function(Y){return function(){var b=Y(),w,V,H,f={volume:(H=(w=b.playerApi)==null?void 0:w.getVolume())!=null?H:0,volumeMuted:!((V=b.playerApi)==null||!V.isMuted())};b.setState(f)}};
k_O=function(Y){return function(){var b=Y(),w=b.playerApi;if(w){var V={captionsAvailable:_.F8(w)};V.captionsAvailable&&(V.captionsEnabled=_.CHb(w));b.setState(V)}}};
lwI=function(Y){return function(){var b=Y();if(b.playerApi&&!(b.volumeMuted||b.controlsVisible&&b.isProbablyAScreenreaderUser)){b.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var w;(w=document.querySelector(".player-control-play-pause-icon"))==null||w.focus()}}};
hdA=function(Y){return{appApi:Object.assign({},_.lrb(),{showCaptionsToggleToast:function(b){var w,V;(V=(w=Y()).showCaptionsToggleToast)==null||V.call(w,b)},
openInMiniplayer:function(){var b,w;(w=(b=Y()).openInMiniplayer)==null||w.call(b)}})}};
xfd=function(Y,b){var w,V,H;return!!(Y==null?0:(w=Y.playerResponse)==null?0:(V=w.playerConfig)==null?0:(H=V.inlinePlaybackConfig)==null?0:H.showScrubbingControls)&&!(b==null?0:b.hideScrubbingControls)};
_.q27=function(Y){var b=!Y.miniplayerIsActive;return[5,2,0].includes(Y.miniplayerPlaybackState)||b};
ss7={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Qsd=function(Y,b){var w,V,H,f,E;_.c(function(U){if(!b.length)return U.return([]);w=[];V=_.N(b);for(H=V.next();!H.done;H=V.next())f=H.value,(E=Y.resolveIcon(f))&&!Y.iconCache[E.url]&&w.push(_.WGO(Y,E).then(function(){}).catch(function(){}));
return U.return(Promise.all(w))})};
vGX=function(Y,b){var w=[];b=(new Set(b)).values();b=_.N(b);for(var V=b.next();!V.done;V=b.next()){V=V.value;for(var H=_.N(Object.values(ss7)),f=H.next();!f.done;f=H.next())w.push({iconName:V,iconStyle:f.value})}Qsd(Y.iconManager,w)};
_.POg=function(Y,b,w){var V=w!=null?w:Y.iconsToFetch;V!=null&&V.length?b!==void 0&&b>=0?_.MY(_.Lb,function(){vGX(Y,V)},b):vGX(Y,V):Promise.resolve()};
Nlb=function(Y,b,w){var V=this;this.renderFn=Y;this.listeners=b;this.context=w;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var H;this.lastSeenPlayerApi=_.AJ((H=this.playerControlsData)==null?void 0:H.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.PRK(),void 0);_.q("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){fwN(V).setState({playerState:-1});V.resetRecentlyNavigatedJobId&&_.Lb.cancelJob(V.resetRecentlyNavigatedJobId);
V.recentlyNavigated=!0;V.resetRecentlyNavigatedJobId=_.Lb.addJob(function(){V.recentlyNavigated=!1},8,1E4)})};
Nlb.prototype.setState=function(Y){if(!_.q("mweb_player_skip_no_op_state_changes")||!rpg(Y,this.state))if(this.state=Object.assign({},this.state,Y),!_.q("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)Y=-1,_.q("player_controls_log_creation_killswitch")||zyA()||(Y=(0,_.gG)()),_.S1("pcu_s"),_.S1("pcu_se"),_.S1("pcu_rs"),this.renderFn(fwN(this)),_.S1("pcu_re"),WS7(Y),_.Lb.addJob(function(){_.S1("pcu_ap")},8)};
var fwN=function(Y){var b;var w=_.AJ((b=Y.playerControlsData)==null?void 0:b.playerApi);return Object.assign({},Y.state,{setState:Y.boundSetState,domMeasurements:{progressBarLineRect:Y.progressBarLineRect},playerApi:w,appApi:Y.context.appApi,playerContainer:Y.context.playerContainer,playerControlContainer:Y.context.playerControlContainer,uxConfig:Y.context.uxConfig})},EG7=function(Y){Y.listeners.forEach(function(b){Y.eventListenerCleanupFunctions.push(b.register(function(){return fwN(Y)},function(){return Y.getData()}))})},
cyI=function(Y){Y.eventListenerCleanupFunctions.forEach(function(b){b()});
Y.eventListenerCleanupFunctions.length=0};
Nlb.prototype.getData=function(){return this.playerControlsData};
var U9=new _.A("abuseReportFlowState");var ZCX=new _.A("feedbackFormFlowState");var BlA=new _.A("inputBoxViewModel");var nGd=new _.A("flowNextStepCommand");var Mh7=new _.A("flowPrevStepCommand");var edd=new _.A("updateFlowCommand");_.pE7=new _.A("flowStepRenderer");_.ZlO=new _.A("lengthValidationRule");var nQX=new _.A("regexValidationRule");var eHb=new _.A("selectedValidationRule");var OCR=new _.A("talkToRecsViewModel");var thR=new _.A("creatorGoalSetUpFlowDropdownItemViewModel");var Rdt=new _.A("creatorGoalSetUpFlowDropdownViewModel");var VhX=new _.A("thumbnailBadgeViewModel");_.dfs=new _.A("radioButtonGroupViewModel");var KEb=new _.A("panelFooterViewModel");var Ftb=new _.A("ypcCancelRecurrenceCommand");var LtX=new _.A("cancellationFlowState");var oQs=new _.A("premiumPurchaseFlowState");var S2t=new _.A("surveyAnswerCardRenderer");var awd=new _.A("showMoreButtonRenderer");var ry7;var zdX,Wtt=function(){if(zdX!==void 0)return zdX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;ry7===void 0&&(ry7=document.createElement("template"));var V=ry7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return zdX=Y};var X7=function(){var Y=_.F.apply(this,arguments)||this;Y.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";Y.goalDescription="";Y.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";Y.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";Y.startButtonId="start-button";Y.exampleButtonId="example-button";return Y};
_.P(X7,_.F);_.g=X7.prototype;_.g.getGoalDropdownItems=function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.purchaseTargetDropdown,Rdt))==null?void 0:b.dropdownItems};
_.g.getTimerDropdownItems=function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.timerDropdown,Rdt))==null?void 0:b.dropdownItems};
_.g.getColorDropdownItems=function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.colorDropdown,Rdt))==null?void 0:b.dropdownItems};
_.g.getDropdownItemText=function(Y){var b;return(b=_.v(Y,thR))==null?void 0:b.itemLabel};
_.g.getDropdownItemValue=function(Y){Y=_.v(Y,thR);return(Y==null?void 0:Y.timeLimit)||(Y==null?void 0:Y.purchaseTarget)||(Y==null?void 0:Y.eligiblePurchaseType)};
_.g.updateFlowState=function(Y){_.Xx(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:Y}])};
_.g.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.g.updateGoalValue=function(Y){this.goal=Y.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.g.onTextValueChanged=function(Y){this.goalDescription=Y.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.g.updateTimerValue=function(Y){this.timer=Y.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.g.updateTierValue=function(Y){this.tier=Y.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.g.getButtonViewModel=function(Y){Y=(Y==null?void 0:Y.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var b,w=_.v((b=this.data)==null?void 0:b.startGoalButton,_.Bv);return Object.assign({},w,{state:Y})};
_.up.Object.defineProperties(X7,{template:{configurable:!0,enumerable:!0,get:function(){return Wtt()}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],X7.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],X7.prototype,"goal",void 0);_.z([_.R(),_.K("design:type",Object)],X7.prototype,"goalDescription",void 0);_.z([_.R(),_.K("design:type",Object)],X7.prototype,"timer",void 0);_.z([_.R(),_.K("design:type",Object)],X7.prototype,"tier",void 0);
_.z([_.R(),_.K("design:type",Object)],X7.prototype,"startButtonId",void 0);_.z([_.R(),_.K("design:type",Object)],X7.prototype,"exampleButtonId",void 0);_.z([_.FM({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],X7);_.a(X7,"yt-creator-goal-set-up-flow-view-model",function(){return Wtt()},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var KtQ;var iCt;var AyI;var CON=function(){return _.F.apply(this,arguments)||this};
_.P(CON,_.F);_.z([_.R(),_.K("design:type",Object)],CON.prototype,"data",void 0);_.z([_.FM({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],CON);
_.a(CON,"yt-survey-answer-card-renderer",function(){if(AyI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-answer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_answer_card_renderer.yt.survey.answer.card.renderer.css.js--\x3e<yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[data.answerString]]" class="style-scope yt-survey-answer-card-renderer"></yt-formatted-string><yt-icon id="card-icon" icon="CHEVRON_RIGHT" class="style-scope yt-survey-answer-card-renderer"></yt-icon>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;iCt===void 0&&(iCt=document.createElement("template"));var V=iCt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);AyI=Y}Y=AyI;return Y},{mode:2});var yyQ;var $fO;var DQ=function(){return _.F.apply(this,arguments)||this};
_.P(DQ,_.F);_.g=DQ.prototype;_.g.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.g.selectedItemChanged=function(Y){_.Xx(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[Y.feedbackToken||""]}])};
_.g.surveyAnswerCardRendererClicked=function(Y){if(Y.target&&_.v(Y.model.item,S2t)){var b=Y.target;Y=_.v(Y.model.item,S2t);Y.onTapCommand?_.IP(b,[Y.onTapCommand],b):this.data.onTapCommand&&_.IP(b,[this.data.onTapCommand],b);this.selectedItemChanged(Y)}};
_.g.checkIsCancellationStyle=function(Y){return Y==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.g.updateSelectedItemFromBinding=function(Y){this.selectedItem=Y.detail.value};
DQ.prototype.onSelectedItemChanged=DQ.prototype.onSelectedItemChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],DQ.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],DQ.prototype,"selectedItem",void 0);_.z([_.R({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.K("design:type",Boolean)],DQ.prototype,"isCancellationStyle",void 0);
_.z([_.lr("selectedItem"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DQ.prototype,"onSelectedItemChanged",null);_.z([_.FM({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],DQ);
_.a(DQ,"yt-survey-flow-step-renderer",function(){if($fO===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_survey_flow_step_renderer.yt.survey.flow.step.renderer.css.js--\x3e<yt-formatted-string id="question" force-default-style="" split-lines="1" text="[[data.question]]" class="style-scope yt-survey-flow-step-renderer">\n</yt-formatted-string>\n\n<template is="dom-if" if="[[isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <template is="dom-repeat" items="[[data.answerCards]]" as="item" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n      <yt-survey-answer-card-renderer data="[[item.surveyAnswerCardRenderer]]" on-click="surveyAnswerCardRendererClicked" class="style-scope yt-survey-flow-step-renderer"></yt-survey-answer-card-renderer>\n    </template>\n  </template>\n</template>\n\n<template is="dom-if" if="[[!isCancellationStyle]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[selectedItem]]" on-selected-changed="updateSelectedItemFromBinding" class="style-scope yt-survey-flow-step-renderer">\n    <template is="dom-repeat" items="[[data.answerCards]]" class="style-scope yt-survey-flow-step-renderer">\n      <template is="dom-if" if="[[item.surveyAnswerCardRenderer]]" restamp="" class="style-scope yt-survey-flow-step-renderer">\n        <tp-yt-paper-radio-button id="radio" aria-label="[[getSimpleString(item.surveyAnswerCardRenderer.answerString)]]" name="[[item.surveyAnswerCardRenderer]]" no-ink="" class="style-scope yt-survey-flow-step-renderer">\n          <yt-formatted-string id="answer-string" force-default-style="" split-lines="1" text="[[item.surveyAnswerCardRenderer.answerString]]" class="style-scope yt-survey-flow-step-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-radio-button>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;yyQ===void 0&&(yyQ=document.createElement("template"));var V=yyQ;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);$fO=Y}Y=$fO;return Y},{mode:2});var mF=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return Y};
_.P(mF,_.F);mF.prototype.handleSurveyFlowStepOptionChanged=function(Y){this.ytdReduxBehavior.dispatch(_.Uf({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:Y}));_.Xx(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:Y}}])};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],mF.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mF.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],mF);
_.a(mF,"ytd-survey-flow-step-renderer",function(){if(KtQ!==void 0)return KtQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-survey-flow-step-renderer data="[[data]]" class="style-scope ytd-survey-flow-step-renderer"></yt-survey-flow-step-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return KtQ=Y},{mode:1});var KSA;KSA=_.ZE({avatarViewModel:_.et,buttonViewModel:_.a1,subscribeButtonViewModel:_.M7,imageBannerViewModel:_.AVj});_.jsI=_.sv(_.ApN);_.gS(_.ApN);var G_t;var ob=function(){return _.F.apply(this,arguments)||this};
_.P(ob,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ob.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ob.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],ob);
_.a(ob,"ytd-channel-history-renderer",function(){if(G_t!==void 0)return G_t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-history-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-channel-history-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope ytd-channel-history-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope ytd-channel-history-renderer">\n  </yt-formatted-string>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return G_t=Y},{mode:1});var TlO;var JyF=function(){return _.F.apply(this,arguments)||this};
_.P(JyF,_.F);_.z([_.R(),_.K("design:type",Object)],JyF.prototype,"data",void 0);_.z([_.S({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],JyF);
_.a(JyF,"ytd-feature-enablement-info-renderer",function(){if(TlO!==void 0)return TlO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feature-enablement-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-feature-enablement-info-renderer">\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-feature-enablement-info-renderer">\n  </yt-formatted-string>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return TlO=Y},{mode:1});var uhb;var YNI;var Ib=function(){var Y=_.F.apply(this,arguments)||this;Y.textBoxMaxLength=_.q("enable_tvod_campaign_code_integration")?15:12;return Y};
_.P(Ib,_.F);_.g=Ib.prototype;_.g.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.g.onSubmit=function(){var Y=this.data.serviceEndpoint,b=_.v(Y,_.cT);b&&Y&&(b.couponCode=this.userInput,_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}}))};
_.g.validate=function(){var Y=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=Y&&!this.data.errorMessage;this.showErrorMessage=Y&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.q("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.g.computeStyle=function(Y){return Y};
_.g.computeShowValidationBelowInput=function(Y){return Y!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.g.updateUserInputFromBinding=function(Y){this.userInput=Y.currentTarget.value};
_.g.updateShowErrorMessageFromBinding=function(Y){this.showErrorMessage=Y.detail.value};
_.up.Object.defineProperties(Ib.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Ib.prototype.dataChanged=Ib.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ib.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],Ib.prototype,"userInput",void 0);_.z([_.R(),_.K("design:type",Boolean)],Ib.prototype,"disableApplyButton",void 0);_.z([_.R(),_.K("design:type",Boolean)],Ib.prototype,"hideApplyButton",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Ib.prototype,"hideErrorMessage",void 0);_.z([_.R(),_.K("design:type",Boolean)],Ib.prototype,"showTick",void 0);_.z([_.R(),_.K("design:type",Boolean)],Ib.prototype,"showErrorMessage",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],Ib.prototype,"couponStyle",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.K("design:type",Boolean)],Ib.prototype,"showValidationBelowInput",void 0);_.z([_.R(),_.K("design:type",Object)],Ib.prototype,"textBoxMaxLength",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ib.prototype,"dataChanged",null);
_.z([_.t("showTick","showErrorMessage","userInput"),_.K("design:type",String),_.K("design:paramtypes",[])],Ib.prototype,"validationState",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Ib);
_.a(Ib,"ytd-ypc-coupon-renderer",function(){if(YNI!==void 0)return YNI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-coupon-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-ypc-coupon-renderer">\n  <tp-yt-paper-input-container class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" invalid="[[showErrorMessage]]" use-v2-underline="" on-invalid-changed="updateShowErrorMessageFromBinding">\n    <input id="input" maxlength$="[[textBoxMaxLength]]" autocomplete="off" placeholder="[[data.boxHint]]" value="[[userInput]]" on-keyup="validate" slot="input" on-input="updateUserInputFromBinding" class="style-scope ytd-ypc-coupon-renderer">\n    <tp-yt-paper-input-error slot="add-on" aria-live="assertive" hidden="[[!showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n      [[data.errorMessage]]\n    </tp-yt-paper-input-error>\n  </tp-yt-paper-input-container>\n</div>\n\n<div id="validation" class="style-scope ytd-ypc-coupon-renderer">\n  <div hidden="[[showValidationBelowInput]]" class="style-scope ytd-ypc-coupon-renderer">\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showErrorMessage]]">\n      [[data.errorMessage]]\n    </div>\n    <div class$="[[validationState]] style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]">\n      [[data.successMessage]]\n    </div>\n  </div>\n  <yt-icon-button class="confirmation style-scope ytd-ypc-coupon-renderer" hidden="[[!showTick]]" noink="">\n    <yt-icon icon="check" class="style-scope ytd-ypc-coupon-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n\n<ytd-button-renderer id="apply" data="[[data.applyCoupon.buttonRenderer]]" disabled="[[disableApplyButton]]" hidden="[[hideApplyButton]]" on-tap="onSubmit" class="style-scope ytd-ypc-coupon-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return YNI=Y},{mode:1});var kA=function(){return _.F.apply(this,arguments)||this};
_.P(kA,_.F);kA.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"}}}};
kA.prototype.computeStyle=function(Y){return Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kA.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],kA.prototype,"buttonStyle",void 0);_.z([_.S({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],kA);
_.a(kA,"ytd-flow-bottom-bar-renderer",function(){if(uhb!==void 0)return uhb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="coupon-renderer" hidden="[[!data.couponRenderer]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="secondary-button" hidden="[[!data.secondaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n<div id="primary-button" hidden="[[!data.primaryButton]]" class="style-scope ytd-flow-bottom-bar-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return uhb=Y},{mode:1});var bQF;var whX;var VaQ;var lK=function(){return _.F.apply(this,arguments)||this};
_.P(lK,_.F);lK.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lK.prototype.focus=function(Y){this.title&&_.JE(this.title,Y)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lK.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lK.prototype,"data",void 0);_.z([_.xZ("#title"),_.K("design:type",HTMLElement)],lK.prototype,"title",void 0);_.z([_.S({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],lK);
_.a(lK,"ytd-flow-top-bar-renderer",function(){if(VaQ!==void 0)return VaQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="back-button" class="style-scope ytd-flow-top-bar-renderer"></div>\n<div id="content" class="style-scope ytd-flow-top-bar-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n  <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-flow-top-bar-renderer"></yt-formatted-string>\n</div>\n<div id="trailing-buttons" class="style-scope ytd-flow-top-bar-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return VaQ=Y},{mode:1});var HQX;var gwX;var fsX;var hk=function(){return _.F.apply(this,arguments)||this};
_.P(hk,_.F);hk.prototype.freeTextValueChanged=function(){_.Xx(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
hk.prototype.updateFreeTextValueFromBinding=function(Y){this.freeTextValue=Y.detail.value};
_.up.Object.defineProperties(hk.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(b=(Y=this.data)==null?void 0:Y.responseMaxLength)!=null?b:500,V;return((V=this.freeTextValue)!=null?V:"").length>=w?"maxed-out":""}}});
hk.prototype.freeTextValueChanged=hk.prototype.freeTextValueChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hk.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],hk.prototype,"freeTextValue",void 0);_.z([_.xZ("#user-input"),_.K("design:type",HTMLTextAreaElement)],hk.prototype,"input",void 0);
_.z([_.t("freeTextValue"),_.K("design:type",Object),_.K("design:paramtypes",[])],hk.prototype,"characterLimitClass",null);_.z([_.lr("freeTextValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hk.prototype,"freeTextValueChanged",null);_.z([_.FM({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],hk);
_.a(hk,"yt-free-text-input-flow-step-renderer",function(){if(fsX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_free_text_input_flow_step_renderer.yt.free.text.input.flow.step.renderer.css.js--\x3e<div id="question-container" class="style-scope yt-free-text-input-flow-step-renderer"><yt-formatted-string id="question" split-lines="1" text="[[data.question]]" class="style-scope yt-free-text-input-flow-step-renderer"></yt-formatted-string></div><div id="input-area" class="style-scope yt-free-text-input-flow-step-renderer"><tp-yt-paper-textarea id="user-input" class$="[[characterLimitClass]] style-scope yt-free-text-input-flow-step-renderer" char-counter="" label="[[getSimpleString(data.questionExplanation)]]" maxlength="[[data.responseMaxLength]]" placeholder="[[data.placeholderText]]" required="" rows="2" value="[[freeTextValue]]" on-value-changed="updateFreeTextValueFromBinding"></tp-yt-paper-textarea></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;gwX===void 0&&(gwX=document.createElement("template"));var V=gwX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);fsX=Y}Y=fsX;return Y},{mode:2});var xA=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return Y};
_.P(xA,_.F);xA.prototype.handleFreeTextFlowStepInputChanged=function(Y){_.Xx(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:Y}}])};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],xA.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],xA.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xA.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],xA);
_.a(xA,"ytd-free-text-input-flow-step-renderer",function(){if(HQX!==void 0)return HQX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-free-text-input-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-free-text-input-flow-step-renderer data="[[data]]" class="style-scope ytd-free-text-input-flow-step-renderer"></yt-free-text-input-flow-step-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return HQX=Y},{mode:1});var N2d;var Ewt;var clN=function(){return _.F.apply(this,arguments)||this};
_.P(clN,_.F);_.z([_.R(),_.K("design:type",Object)],clN.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],clN);
_.a(clN,"ytd-metadata-line-renderer",function(){if(Ewt!==void 0)return Ewt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-line-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="line-wrapper" class="style-scope ytd-metadata-line-renderer">\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badge]]" hidden="[[!data.badge]]" class="style-scope ytd-metadata-line-renderer">\n  </ytd-badge-supported-renderer>\n  <yt-formatted-string id="text" text="[[data.text]]" class="style-scope ytd-metadata-line-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ewt=Y},{mode:1});var qB=function(){return _.F.apply(this,arguments)||this};
_.P(qB,_.F);qB.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qB.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qB.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],qB.prototype,"isMasthead",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],qB);
_.a(qB,"ytd-media-product-renderer",function(){if(N2d!==void 0)return N2d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-product-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product" class="style-scope ytd-media-product-renderer">\n  <div id="image" hidden="[[!data.thumbnail]]" class="style-scope ytd-media-product-renderer">\n    <yt-img-shadow id="thumbnail" height="90" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-product-renderer"></yt-img-shadow>\n  </div>\n  <div id="metadata" class="style-scope ytd-media-product-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-product-renderer"></yt-formatted-string>\n    <div id="metadata-lines" class="style-scope ytd-media-product-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return N2d=Y},{mode:1});var UG7;var s9=function(){return _.F.apply(this,arguments)||this};
_.P(s9,_.F);s9.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
s9.prototype.onBillboardImageLoaded=function(){_.Ua(this.hostElement,"yt-refit")};
s9.prototype.onBillboardImageLoaded=s9.prototype.onBillboardImageLoaded;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],s9.prototype,"data",void 0);_.z([_.xZ("#billboardImage"),_.K("design:type",Object)],s9.prototype,"billboardImage",void 0);_.z([_.kZ("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s9.prototype,"onBillboardImageLoaded",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],s9);
_.a(s9,"ytd-billboard-masthead-renderer",function(){if(UG7!==void 0)return UG7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-billboard-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="billboardImage" class="billboard with-placeholder style-scope ytd-billboard-masthead-renderer" fit="" thumbnail="[[data.billboard]]">\n</yt-img-shadow>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return UG7=Y},{mode:1});var Xhd;var Qs=function(){var Y=_.F.apply(this,arguments)||this;Y.smallSize=!1;return Y};
_.P(Qs,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Qs.prototype,"ytComponentBehaviorType",void 0);_.z([_.R(),_.K("design:type",Object)],Qs.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qs.prototype,"smallSize",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Qs);
_.a(Qs,"ytd-bullet-formatted-string",function(){if(Xhd!==void 0)return Xhd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-bullet-formatted-string--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon class="bullet-icon style-scope ytd-bullet-formatted-string" hidden="[[!data.icon.iconType]]" icon="[[computeIcon_(data.icon)]]">\n</yt-icon>\n<yt-formatted-string class="text style-scope ytd-bullet-formatted-string" split-lines="true" text="[[data.text]]">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Xhd=Y},{mode:1});var DGd;var vM=function(){return _.F.apply(this,arguments)||this};
_.P(vM,_.F);vM.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vM.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vM.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],vM);
_.a(vM,"ytd-offer-detail-renderer",function(){if(DGd!==void 0)return DGd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string class="description style-scope ytd-offer-detail-renderer" split-lines="true" text="[[data.description]]">\n</yt-formatted-string>\n<div id="product" hidden="[[!data.product]]" class="style-scope ytd-offer-detail-renderer"></div>\n<div class="benefits style-scope ytd-offer-detail-renderer">\n    <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-detail-renderer">\n      <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-detail-renderer" data="[[benefit]]">\n      </ytd-bullet-formatted-string>\n    </template>\n</div>\n<yt-formatted-string class="terms style-scope ytd-offer-detail-renderer" force-default-style="" text="[[data.terms]]">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return DGd=Y},{mode:1});var mGI;var PM=function(){return _.F.apply(this,arguments)||this};
_.P(PM,_.F);PM.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],PM.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],PM.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],PM);
_.a(PM,"ytd-offer-detail-step-renderer",function(){if(mGI!==void 0)return mGI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-detail-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-detail-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-detail-step-renderer"></div>\n\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return mGI=Y},{mode:1});var owN;var ZQ=function(){var Y=_.F.apply(this,arguments)||this;Y.isInOfferModule=!1;return Y};
_.P(ZQ,_.F);_.g=ZQ.prototype;_.g.computeHasEndpoint=function(){var Y;return!((Y=this.data)==null||!Y.onClickCommand)};
_.g.dataChanged=function(){var Y;if((Y=this.data)==null?0:Y.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.g.detached=function(){var Y;if((Y=this.data)==null?0:Y.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.g.handleClickEvent=function(){var Y;if((Y=this.data)==null?0:Y.onClickCommand){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.g.onContentKeyDown=function(Y){Y.key==="Enter"?this.handleClickEvent(Y):Y.key===" "&&Y.preventDefault()};
_.g.onContentKeyUp=function(Y){Y.key===" "&&this.handleClickEvent(Y)};
ZQ.prototype.dataChanged=ZQ.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ZQ.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ZQ.prototype,"data",void 0);_.z([_.R({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ZQ.prototype,"hasEndpoint",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ZQ.prototype,"isInOfferModule",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZQ.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],ZQ);
_.a(ZQ,"ytd-channel-masthead-renderer",function(){if(owN!==void 0)return owN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-channel-masthead-renderer">\n  <yt-image class="channel-masthead style-scope ytd-channel-masthead-renderer" data="[[data.image]]" height="1" width="1">\n  </yt-image>\n  <div class="text style-scope ytd-channel-masthead-renderer">\n    <yt-attributed-string class="title style-scope ytd-channel-masthead-renderer" data="[[data.title]]">\n    </yt-attributed-string>\n    <yt-attributed-string class="subtitle style-scope ytd-channel-masthead-renderer" data="[[data.subtitle]]">\n    </yt-attributed-string>\n  </div>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return owN=Y},{mode:1});var Ist;var BM=function(){var Y=_.F.apply(this,arguments)||this;Y.thumbnailObjectFit="CONTAIN";Y.thumbnailObjectPosition="LEFT";Y.isExpanded=!1;return Y};
_.P(BM,_.F);_.g=BM.prototype;_.g.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.g.dataChanged=function(){this.resetStates()};
_.g.computeisTapOnOfferInfoContainerEnabled=function(){var Y;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.g.onExpandBtnClick=function(){var Y,b=_.v((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,awd);b&&_.ly(_.Qd(),b.trackingParams);this.isExpanded=!this.isExpanded};
_.g.onOfferInfoClick=function(Y){this.isTapOnOfferInfoContainerEnabled&&(_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Yh(_.JL(Y)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.g.onBottomBarClick=function(){this.executeTapCommand()};
_.g.executeTapCommand=function(){var Y,b=(Y=this.data)==null?void 0:Y.tapCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.g.resetStates=function(){this.isExpanded=!1};
_.up.Object.defineProperties(BM.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var Y=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),b,w,V;return((b=this.data)==null?void 0:b.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&Y&&!!((w=this.data)==null?0:(V=w.benefits)==null?0:V.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((b=_.v((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,awd))==null?void 0:b.showMoreButtonTitle)||((w=this.data)==null?void 0:w.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((b=_.v((Y=this.data)==null?void 0:Y.showMoreButtonRenderer,awd))==null?void 0:b.showLessButtonTitle)||((w=this.data)==null?void 0:w.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var Y;return(Y=this.showLessButtonTitle)!=null?Y:""}var b;return(b=this.showMoreButtonTitle)!=null?b:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?void 0:Y.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((b=this.data)==null?0:b.footerTitle)||((w=this.data)==null?0:w.footerSubtitle))}}});
BM.prototype.dataChanged=BM.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],BM.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",String)],BM.prototype,"thumbnailObjectFit",void 0);
_.z([_.R(),_.K("design:type",String)],BM.prototype,"thumbnailObjectPosition",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.K("design:type",Boolean)],BM.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.z([_.R(),_.K("design:type",Object)],BM.prototype,"isExpanded",void 0);_.z([_.R(),_.K("design:type",Object)],BM.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.footerIcon)"}),_.K("design:type",String)],BM.prototype,"icon",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BM.prototype,"dataChanged",null);_.z([_.t("data.thumbnail"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BM.prototype,"hasThumbnail",null);_.z([_.t("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BM.prototype,"enableExpandButton",null);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BM.prototype,"enableOfferContentIcon",null);_.z([_.t("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],BM.prototype,"showMoreButtonTitle",null);_.z([_.t("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.K("design:type",Object),_.K("design:paramtypes",[])],BM.prototype,"showLessButtonTitle",null);
_.z([_.t("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.K("design:type",String),_.K("design:paramtypes",[])],BM.prototype,"expandedBtnText",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BM.prototype,"enableBottomBar",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],BM);
_.a(BM,"ytd-offer-card-renderer",function(){if(Ist!==void 0)return Ist;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-card style-scope ytd-offer-card-renderer" id="offer-card">\n  \n  <div class="top-banner style-scope ytd-offer-card-renderer" id="top-banner" hidden="[[!data.topBannerImage]]">\n    <yt-img-shadow class="top-banner-image style-scope ytd-offer-card-renderer" object-fit="COVER" thumbnail="[[data.topBannerImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="offer-info style-scope ytd-offer-card-renderer" id="offer-info" on-click="onOfferInfoClick">\n    \n    <div class="thumbnail style-scope ytd-offer-card-renderer" id="thumbnail" hidden="[[!hasThumbnail]]"></div>\n    <div class="description-section style-scope ytd-offer-card-renderer">\n      <div class="text style-scope ytd-offer-card-renderer">\n        <yt-formatted-string class="title style-scope ytd-offer-card-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="description style-scope ytd-offer-card-renderer" split-lines="true" text="[[data.description]]">\n        </yt-formatted-string>\n      </div>\n      <button class="expand-button style-scope ytd-offer-card-renderer" id="expand-button" hidden="[[!enableExpandButton]]" on-click="onExpandBtnClick" aria-label="[[expandedBtnText]]">\n        <span class="style-scope ytd-offer-card-renderer">[[expandedBtnText]]</span>\n      </button>\n      <div class="offer-content-icon-div style-scope ytd-offer-card-renderer" id="offer-content-icon-div" hidden="[[!enableOfferContentIcon]]">\n        <yt-icon id="offer-content-icon" class="offer-content-icon style-scope ytd-offer-card-renderer" icon="[[icon]]">\n        </yt-icon>\n      </div>\n    </div>\n    \n    <div class="benefits style-scope ytd-offer-card-renderer" id="benefits" hidden="[[!isExpanded]]">\n      <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-card-renderer">\n        <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-card-renderer" data="[[benefit]]" small-size="true">\n        </ytd-bullet-formatted-string>\n      </template>\n    </div>\n  </div>\n  \n  <button class="bottom-bar style-scope ytd-offer-card-renderer" id="bottom-bar" hidden="[[!enableBottomBar]]" on-click="onBottomBarClick" aria-label="[[data.footerTitle]]">\n    <div class="bottom-bar-info style-scope ytd-offer-card-renderer">\n      <yt-formatted-string class="bottom-bar-title style-scope ytd-offer-card-renderer" text="[[data.footerTitle]]"></yt-formatted-string>\n      <yt-formatted-string class="bottom-bar-subtitle style-scope ytd-offer-card-renderer" text="[[data.footerSubtitle]]"></yt-formatted-string>\n    </div>\n    <yt-icon class="icon style-scope ytd-offer-card-renderer" icon="[[icon]]"></yt-icon>\n  </button>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ist=Y},{mode:1});var klt;var n2=function(){return _.F.apply(this,arguments)||this};
_.P(n2,_.F);n2.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"}}}};
n2.prototype.onClick=function(Y){if(!_.uA(Y.composedPath()||[],this.hostElement,["A".toString()])){var b,w;if((Y=(w=_.v((b=this.data)==null?void 0:b.actionButton,_.Wa))==null?void 0:w.command)&&!this.ytComponentBehavior.resolveCommand(Y)){var V;(V=_.Qd())==null||V.clickCommand(Y);_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})}}};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],n2.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],n2.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],n2);
_.a(n2,"ytd-offer-content-renderer",function(){if(klt!==void 0)return klt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-info style-scope ytd-offer-content-renderer">\n  <div class="offer-content style-scope ytd-offer-content-renderer" id="offer-content" on-click="onClick">\n    <div id="thumbnail" class="style-scope ytd-offer-content-renderer"></div>\n    <div class="text style-scope ytd-offer-content-renderer">\n      <yt-formatted-string class="title style-scope ytd-offer-content-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="description style-scope ytd-offer-content-renderer" split-lines="true" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="action-button" class="style-scope ytd-offer-content-renderer"></div>\n</div>\n<div class="benefits style-scope ytd-offer-content-renderer">\n  <template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-offer-content-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-offer-content-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n  </template>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return klt=Y},{mode:1});var lsg;var MB=function(){return _.F.apply(this,arguments)||this};
_.P(MB,_.F);MB.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.up.Object.defineProperties(MB.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.title)||!((b=this.data)==null||!b.description)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],MB.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],MB.prototype,"hasHeaderData",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],MB);
_.a(MB,"ytd-offer-section-renderer",function(){if(lsg!==void 0)return lsg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="heading style-scope ytd-offer-section-renderer" hidden="[[!hasHeaderData]]">\n  <yt-formatted-string class="title style-scope ytd-offer-section-renderer" text="[[data.title]]">\n  </yt-formatted-string>\n  <yt-formatted-string class="description style-scope ytd-offer-section-renderer" split-lines="" text="[[data.description]]">\n  </yt-formatted-string>\n</div>\n<div id="offer-list" class="style-scope ytd-offer-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return lsg=Y},{mode:1});var h7s;var e_=function(){return _.F.apply(this,arguments)||this};
_.P(e_,_.F);
e_.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"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],e_.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],e_);
_.a(e_,"ytd-offer-selection-step-renderer",function(){if(h7s!==void 0)return h7s;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-selection-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="body" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="coupon-section" class="style-scope ytd-offer-selection-step-renderer"></div>\n<div id="terms-section" class="style-scope ytd-offer-selection-step-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return h7s=Y},{mode:1});var xGN;var p2=function(){return _.F.apply(this,arguments)||this};
_.P(p2,_.F);p2.prototype.computeStyle=function(Y){return Y};
p2.prototype.computeImageWidth=function(Y){return Y==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.z([_.R({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.K("design:type",String)],p2.prototype,"containerStyle",void 0);_.z([_.R({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.K("design:type",String)],p2.prototype,"imageWidth",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],p2.prototype,"data",void 0);
_.z([_.S({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],p2);
_.a(p2,"ytd-confirmation-masthead-renderer",function(){if(xGN!==void 0)return xGN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-confirmation-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow class="thumbnail style-scope ytd-confirmation-masthead-renderer" thumbnail="[[data.thumbnail]]" width="[[imageWidth]]"></yt-img-shadow>\n<yt-icon class="entitlement-icon style-scope ytd-confirmation-masthead-renderer" hidden="[[!data.entitlementIcon.iconType]]" icon="[[data.entitlementIcon.iconType]]">\n</yt-icon>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return xGN=Y},{mode:1});var qNI;var O9=function(){return _.F.apply(this,arguments)||this};
_.P(O9,_.F);O9.prototype.computeStyle=function(Y){return Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],O9.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.K("design:type",String)],O9.prototype,"containerStyle",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],O9);
_.a(O9,"ytd-purchase-complete-detail-renderer",function(){if(qNI!==void 0)return qNI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-detail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.description]]" as="description" class="style-scope ytd-purchase-complete-detail-renderer">\n    <yt-formatted-string class="description style-scope ytd-purchase-complete-detail-renderer" split-lines="true" text="[[description]]">\n    </yt-formatted-string>\n</template>\n<template is="dom-repeat" items="[[data.benefits]]" as="benefit" class="style-scope ytd-purchase-complete-detail-renderer">\n    <ytd-bullet-formatted-string class="benefit style-scope ytd-purchase-complete-detail-renderer" data="[[benefit]]">\n    </ytd-bullet-formatted-string>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return qNI=Y},{mode:1});var s2X;var tk=function(){var Y=_.F.apply(this,arguments)||this;Y.scriptsAppended=!1;return Y};
_.P(tk,_.F);tk.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"}}}};
tk.prototype.onDataChanged=function(){var Y=this.get("data.gtmId");Y&&(_.Rj(Y,_.zO("GL","")),this.setupConversionTracking())};
tk.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var Y=document.createElement("noscript");Y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5KBDVVN" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Y);this.scriptsAppended=!0}};
tk.prototype.onDataChanged=tk.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],tk.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],tk.prototype,"scriptsAppended",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tk.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],tk);
_.a(tk,"ytd-purchase-complete-step-renderer",function(){if(s2X!==void 0)return s2X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-purchase-complete-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="masthead" class="style-scope ytd-purchase-complete-step-renderer"></div>\n<div id="body" class="style-scope ytd-purchase-complete-step-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return s2X=Y},{mode:1});var Q2O;var Rb=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(Rb,_.F);Rb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Rb.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Rb.prototype,"darkerDarkTheme",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Rb);
_.a(Rb,"ytd-ypc-transaction-error-message-renderer",function(){if(Q2O!==void 0)return Q2O;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-transaction-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div class="error-messages style-scope ytd-ypc-transaction-error-message-renderer">\n  <template is="dom-repeat" items="[[data.errorMessages]]" as="message" class="style-scope ytd-ypc-transaction-error-message-renderer">\n    <yt-formatted-string text="[[message]]" class="style-scope ytd-ypc-transaction-error-message-renderer"></yt-formatted-string>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Q2O=Y},{mode:1});var vwR;var PNX;var d$=function(){var Y=_.F.apply(this,arguments)||this;Y.handlePhoneVerificationSuccess=function(b){if(Y.isValidPhoneVerificationCompletionMessageEvent(b)){var w;((w=Y.data)==null?0:w.nextStepCommand)&&Y.ytComponentBehavior.resolveCommand(Y.data.nextStepCommand)}};
return Y};
_.P(d$,_.F);d$.prototype.isValidPhoneVerificationCompletionMessageEvent=function(Y){if(Y.data!=="yt-phone-verification-complete")return!1;Y=_.Yu(Y.origin);return Y!==null&&Y.includes("youtube.com")};
d$.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
d$.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],d$.prototype,"data",void 0);_.z([_.FM({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],d$);
_.a(d$,"yt-feature-enablement-soft-entry-renderer",function(){if(PNX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-feature-enablement-soft-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.feature_enablement.yt_feature_enablement_soft_entry_renderer.yt.feature.enablement.soft.entry.renderer.css.js--\x3e<div id="contents" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  <yt-img-shadow id="image" fit="" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="160" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="description" hidden="[[!data.description]]" split-lines="" text="[[data.description]]" class="style-scope yt-feature-enablement-soft-entry-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;vwR===void 0&&(vwR=document.createElement("template"));var V=vwR;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);PNX=Y}Y=PNX;return Y},{mode:1});var ZQg;var B2N;var nwt;var MaX;var e7t=function(){return _.F.apply(this,arguments)||this};
_.P(e7t,_.F);_.z([_.R(),_.K("design:type",Object)],e7t.prototype,"data",void 0);_.z([_.FM({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],e7t);
_.a(e7t,"yt-benefits-item-renderer",function(){if(MaX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_item_renderer.yt.benefits.item.renderer.css.js--\x3e<div id="benefits-item" class="style-scope yt-benefits-item-renderer"><yt-formatted-string id="benefits-item-title" class="lhs style-scope yt-benefits-item-renderer" text="[[data.title]]"></yt-formatted-string><yt-formatted-string id="benefits-item-info-text" class="rhs style-scope yt-benefits-item-renderer" hidden="[[!data.text]]" text="[[data.text]]"></yt-formatted-string><yt-button-renderer id="benefits-item-info-button" class="rhs style-scope yt-benefits-item-renderer" data="[[data.button.buttonRenderer]]" hidden="[[!data.button.buttonRenderer]]"></yt-button-renderer></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;nwt===void 0&&(nwt=document.createElement("template"));var V=nwt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);MaX=Y}Y=MaX;return Y},{mode:2});var phg;var OQ7;var F7=function(){return _.F.apply(this,arguments)||this};
_.P(F7,_.F);F7.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
F7.prototype.computeisWithoutPadding=function(){var Y;return((Y=this.data)==null?void 0:Y.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],F7.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.K("design:type",Boolean)],F7.prototype,"isWithoutPadding",void 0);_.z([_.FM({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],F7);
_.a(F7,"yt-benefits-section-renderer",function(){if(OQ7===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_section_renderer.yt.benefits.section.renderer.css.js--\x3e<div id="benefits-section" is-without-padding$="[[isWithoutPadding]]" class="style-scope yt-benefits-section-renderer"><div id="benefits-header" hidden$="[[!data.header]]" class="style-scope yt-benefits-section-renderer"><yt-formatted-string id="benefits-header-text" split-lines="1" text="[[data.header]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string><div hidden="[[!data.tooltip]]" class="style-scope yt-benefits-section-renderer"><yt-icon id="tooltip-icon" icon="yt-icons:info-outline" class="style-scope yt-benefits-section-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" always-display="" class="style-scope yt-benefits-section-renderer"><yt-formatted-string split-lines="1" text="[[data.tooltip]]" class="style-scope yt-benefits-section-renderer"></yt-formatted-string></tp-yt-paper-tooltip></div></div><div id="benefits-items" class="style-scope yt-benefits-section-renderer"></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;phg===void 0&&(phg=document.createElement("template"));var V=phg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);OQ7=Y}Y=OQ7;return Y},{mode:2});var L2=function(){return _.F.apply(this,arguments)||this};
_.P(L2,_.F);L2.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
L2.prototype.computeisUsingLargeWidth=function(){var Y;return((Y=this.data)==null?void 0:Y.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],L2.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.K("design:type",Boolean)],L2.prototype,"isUsingLargeWidth",void 0);_.z([_.FM({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],L2);
_.a(L2,"yt-benefits-flow-step-renderer",function(){if(B2N===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-benefits-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_benefits_flow_step_renderer.yt.benefits.flow.step.renderer.css.js--\x3e<div id="header-container" class="style-scope yt-benefits-flow-step-renderer"><yt-img-shadow id="avatar" height="72" hidden$="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="72" class="style-scope yt-benefits-flow-step-renderer"></yt-img-shadow><div id="header-content" class="style-scope yt-benefits-flow-step-renderer"><yt-formatted-string id="subtitle-text" hidden$="[[!data.subtitleText]]" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string><yt-formatted-string id="title-text" hidden$="[[!data.titleText]]" split-lines="1" text="[[data.titleText]]" class="style-scope yt-benefits-flow-step-renderer"></yt-formatted-string></div></div><div id="benefits-sections" class="style-scope yt-benefits-flow-step-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;ZQg===void 0&&(ZQg=document.createElement("template"));var V=ZQg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);B2N=Y}Y=B2N;return Y},{mode:2});var ta7;var R7X;var S_=function(){return _.F.apply(this,arguments)||this};
_.P(S_,_.F);S_.prototype.checkIsUsingLargeWidth=function(){var Y;return((Y=this.data)==null?void 0:Y.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.z([_.R(),_.K("design:type",Object)],S_.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.z([_.R({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.K("design:type",Boolean)],S_.prototype,"isUsingLargeWidth",void 0);_.z([_.FM({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],S_);
_.a(S_,"yt-confirmation-flow-step-renderer",function(){if(R7X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_confirmation_flow_step_renderer.yt.confirmation.flow.step.renderer.css.js--\x3e<div id="thumbnail-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-img-shadow id="thumbnail" height="209" thumbnail="[[data.image]]" width="209" class="style-scope yt-confirmation-flow-step-renderer"></yt-img-shadow></div><div id="title-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-container" class="style-scope yt-confirmation-flow-step-renderer"><yt-formatted-string id="subtitle" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-confirmation-flow-step-renderer"></yt-formatted-string></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;ta7===void 0&&(ta7=document.createElement("template"));var V=ta7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);R7X=Y}Y=R7X;return Y},{mode:2});var dGg;var F4t;var L4I=function(){return _.F.apply(this,arguments)||this};
_.P(L4I,_.F);_.z([_.R(),_.K("design:type",Object)],L4I.prototype,"data",void 0);_.z([_.FM({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],L4I);
_.a(L4I,"yt-info-flow-step-renderer",function(){if(F4t===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_flow_step_renderer.yt.info.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div><div id="subtitle-text-container" class="style-scope yt-info-flow-step-renderer"><yt-formatted-string id="subtitle-text" split-lines="1" text="[[data.subtitleText]]" class="style-scope yt-info-flow-step-renderer"></yt-formatted-string></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;dGg===void 0&&(dGg=document.createElement("template"));var V=dGg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);F4t=Y}Y=F4t;return Y},{mode:2});var SNQ;var asI;var rls=function(){return _.F.apply(this,arguments)||this};
_.P(rls,_.F);_.z([_.R(),_.K("design:type",Object)],rls.prototype,"data",void 0);_.z([_.FM({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],rls);
_.a(rls,"yt-info-list-flow-step-renderer",function(){if(asI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-info-list-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_info_list_flow_step_renderer.yt.info.list.flow.step.renderer.css.js--\x3e<div id="title-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="title" split-lines="1" text="[[data.titleText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-list-header-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="info-list-header" force-default-style="" split-lines="1" text="[[data.infoListHeader]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div><div id="info-items-container" class="style-scope yt-info-list-flow-step-renderer"><template is="dom-repeat" items="[[data.infoItems]]" as="item" class="style-scope yt-info-list-flow-step-renderer"><div id="info-list-item" class="style-scope yt-info-list-flow-step-renderer"><yt-icon id="info-icon" icon="[[item.icon.iconType]]" class="style-scope yt-info-list-flow-step-renderer"></yt-icon><yt-formatted-string id="info-text" split-lines="1" text="[[item.text]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div></template></div><div id="description-text-container" class="style-scope yt-info-list-flow-step-renderer"><yt-formatted-string id="description-text" split-lines="1" text="[[data.descriptionText]]" class="style-scope yt-info-list-flow-step-renderer"></yt-formatted-string></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;SNQ===void 0&&(SNQ=document.createElement("template"));var V=SNQ;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);asI=Y}Y=asI;return Y},{mode:2});var z7X=_.b8(function(Y){var b=Y.data;return _.m("styled-text-view-model",{class:_.hj("ytStyledTextViewModelHost",function(){return Hl7(b().fontAttributes)},function(){return VqR(b().color)})},_.m(_.wv,{text:function(){return b().text},
ariaLabel:function(){var w,V,H;return(H=(w=b().accessibility)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label)!=null?H:""}}))},"af");
z7X.idomCompat=!0;var W4X=_.b8(function(Y){var b=function(){var H,f,E,U;return(U=(E=(H=Y.alt)==null?void 0:H.call(Y))!=null?E:(f=Y.data().accessibilityData)==null?void 0:f.label)!=null?U:""},w=function(){return Y.data().imageWidth},V=function(){return Y.data().imageHeight};
return _.m("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.m(_.h,{cond:function(){var H=Y.data();if(H){var f,E,U;var X=((f=_.fH().resolve(_.HQ(_.GT)))==null?0:f())?(E=H.imageDark)!=null?E:H.imageLight:(U=H.imageLight)!=null?U:H.imageDark}else X=void 0;return X},
then:function(H){return _.m(_.Y_,Object.assign({},Y,{data:H,alt:b,targetWidth:w,targetHeight:V,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
W4X.idomCompat=!0;var ab=_.b8(function(Y){var b=Y.data;Y=_.JU(function(){return b().slots},[]);
var w=_.JU(function(){return b().layoutProperties},{}),V=_.fH().resolve(_.JA);
return _.m("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:JpX(w,V)},_.m(_.Bf,{each:Y,keyBy:"INDEX"},function(H){return _.m("div",{class:"ytContainerLayoutViewModelSlot",style:JpX(function(){return H().layoutProperties},V)},_.m(_.OH,{data:function(){return H().contents}},{containerLayoutViewModel:ab,
badgeViewModel:_.wz,buttonViewModel:_.a1,styledTextViewModel:z7X,contentPreviewImageViewModel:function(f){return _.m(_.V8,{data:f.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(f){return _.m(W4X,{data:f.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
ab.idomCompat=!0;var K4O=_.b8(function(Y){var b=Y.data;var w=Y.stateFns;var V=function(){var I=b(),k=I.productId;return!(!I.clearGroupId&&!k)},H=function(){var I=b(),k=I.clearGroupId;
return(I=I.productId)?w().isProductSelected(I):k?w().getSelectedProductByGroupId(k)==null:!1},f=function(){var I=b(),k=I.clearGroupId;
if(I=I.productId)w().onProductSelected(I);else if(k)w().onClearGroupSelected(k)},E=function(){var I=b(),k=I.clearGroupId;
if(I=I.productId){var l;return"group:"+(((l=w().getProductById(I))==null?void 0:l.groupId)||"")}return k?"group:"+k:""},U=_.JU(function(){return b().header},[]),X=_.JU(function(){return b().body},[]);
return _.m("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.m(_.h,{cond:function(){return U().length>0||V()},
then:function(){return _.m("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.m("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.m(_.OH,{data:U},{containerLayoutViewModel:function(I){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(ab,{data:I.data}))},
styledTextViewModel:function(I){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(z7X,{data:I.data}))}})),_.m(_.h,{cond:V,
then:function(){return _.m("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.m(_.B3,{checked:H,name:E,onChange:f}))}}))}}),_.m(_.h,{cond:function(){return X().length>0},
then:function(){return _.m("div",null,_.m(_.OH,{data:X},{containerLayoutViewModel:function(I){return _.m("div",{class:"ytPdpCardSectionViewModelContentItem"},_.m(ab,{data:I.data}))}}))}}))},"df");
K4O.idomCompat=!0;var iQs=_.b8(function(Y){var b=Y.data;var w=Y.stateFns;return _.m("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.m(_.h,{cond:function(){return b().banner},
then:function(V){return _.m("div",{class:"ytPdpCardViewModelBanner"},_.m(_.wv,{text:V}))}}),_.m(_.OH,{data:function(){return b().sections}},{pdpCardSectionViewModel:function(V){V=V.data;
var H={};return _.m("div",{class:_.hj("ytPdpCardViewModelSectionContainer",(H.ytPdpCardViewModelShowDividers=function(){return b().showDividers},H))},_.m(K4O,{data:V,
stateFns:w}))}}))},"ef");
iQs.idomCompat=!0;var AlI=_.b8(function(Y){var b=Y.data;var w=Y.isOverlay;Y={};return _.m("pdp-masthead-view-model",{class:_.hj("ytPdpMastheadViewModelHost",(Y.ytPdpMastheadViewModelIsOverlay=w,Y))},_.m(_.OH,{data:function(){return b().image}},{contentPreviewImageViewModel:_.V8,
themedImageViewModel:function(V){return _.m(W4X,{data:V.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.m(_.h,{cond:function(){return b().title},
then:function(V){return _.m("h1",{class:"ytPdpMastheadViewModelHeading"},_.m(_.wv,{text:V,isOverlay:w}))}}),_.m(_.Bf,{each:function(){var V;
return(V=b().finePrint)!=null?V:[]}},function(V){return _.m("div",{class:"ytPdpMastheadViewModelFinePrint"},_.m(_.wv,{text:V,
isOverlay:w}))}))},"ff");
AlI.idomCompat=!0;var CNQ=_.b8(function(Y){var b=Y.data;var w=Y.stateFns;var V=function(){return"pdp-pricing-group-selector-"+b().pricingGroupAttributeIds},H=_.JU(function(){return b().pricingGroupSelectorSectionHeader});
return _.m("pdp-pricing-group-selector-view-model",null,_.m(_.h,{cond:function(){return!!H()},
then:function(){return _.m(_.OH,{data:H},{sectionHeaderViewModel:function(f){f=f.data;var E={};return _.m("div",{class:_.hj("ytPdpPricingGroupSelectorViewModelSectionHeader",(E.ytPdpPricingGroupSelectorViewModelFullBleed=!0,E.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,E))},_.m(_.gq,{data:f}))}})}}),_.m("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.m(_.Bf,{each:function(){var f=w().getSelectedProductByGroupId(b().groupId);
if(!f)return _.LB(Error("Kj`"+b().groupId)),[];var E,U=(E=b().pricingGroupAttributeIds)!=null?E:[],X;if((X=f.pricingGroups)==null||!X.length||!U.length)return[];E=f.pricingGroups.filter(function(x){return U.length?x.pricingGroupAttributes.every(function(Q){return U.includes(Q)}):!1});
f=[];if(U.length>0){E=[].concat(_.Bt(E));X=_.N(U);for(var I=X.next(),k={};!I.done;k={targetAttrId:void 0},I=X.next())k.targetAttrId=I.value,I=E.findIndex(function(x){return function(Q){return Q.pricingGroupAttributes.includes(x.targetAttrId)}}(k)),I!==-1&&(f.push(E[I]),E.splice(I,1))}var l=w().getSelectedPricingGroupAttributesByGroupId(b().groupId);
return f.map(function(x){var Q=!1;l&&x.pricingGroupAttributes&&(Q=NB(x.pricingGroupAttributes,l));return{pricingGroup:x,isSelected:Q}})},
keyBy:function(f){return f.pricingGroup.pricingGroupId}},function(f){return _.m("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.m("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.m(_.OH,{data:function(){return f().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:ab})),_.m("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.m(_.B3,{checked:function(){return f().isSelected},
name:V,onClick:function(){w().onPricingGroupSelected(f().pricingGroup.pricingGroupId)}})))})))},"gf");
CNQ.idomCompat=!0;var ylO=_.b8(function(Y){var b=Y.data;var w=Y.stateFns;return _.m("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.m(_.Bf,{each:function(){var V=w().getSelectedPricingOptions().map(function(E){return E.pricingOptionId}),H=w().getSelectedProductByGroupId(b().groupId);
if(!H)return _.LB(Error("Lj`"+b().groupId)),[];var f=w().getSelectedPricingGroupAttributesByGroupId(b().groupId);return EQR(H.pricingOptions,f,V)},
keyBy:"INDEX"},function(V){return _.m("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.m("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.m(_.OH,{data:function(){return V().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:ab})),_.m("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.m(_.B3,{checked:function(){return V().isSelected},
onClick:function(){w().onPricingOptionSelected(V().pricingOption.pricingOptionId);var H=V().pricingOption.onSelectPricingOption;if(H=_.zT(H)){var f;(f=_.fH().resolve(_.Nn))==null||f.resolveCommand(H)}}})))}))},"hf");
ylO.idomCompat=!0;var $GA=_.b8(function(Y){var b=Y.data;var w=Y.stateFns;return _.m("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.m(_.OH,{data:function(){var V,H;return(H=(V=w().getSelectedPricingOptions()[0])==null?void 0:V.primaryButton)!=null?H:b().emptyStateButton}},{buttonViewModel:_.a1}))},"jf");
$GA.idomCompat=!0;var j2I=_.b8(function(Y){var b=Y.stateFns;return _.m("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.m(_.OH,{data:function(){return b().getSelectedPricingOptions().flatMap(function(w){return w.summaryLines}).filter(function(w){return!!w})}},{containerLayoutViewModel:function(w){return _.m("div",{class:"ytPdpSummaryViewModelLineItem"},_.m(ab,{data:w.data}))}}))},"kf");
j2I.idomCompat=!0;var Glg=_.b8(function(Y){function b(O){var L=E();_.Td(_.R1("pdpStateEntity",L,{key:L,selectedPricingOptions:O}))}
var w=Y.data;var V=Y.internalScrolling;var H=Y.stateFnsForTesting;var f=_.JU(function(){return w().allProducts},[]),E=_.JU(function(){return w().pdpStateEntityKey},""),U=_.xh(cPt,E),X=_.sN(function(){_.Sa(!0);
var O;return(O=H==null?void 0:H())!=null?O:XLd(U,f,b)},void 0,"pjJzrd"),I=_.JU(function(){return w().body},[]),k=_.JU(function(){return w().columnBreakHints},[]),l=function(){return w().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},x=function(){return l()||w().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},Q=_.sN(function(){var O=_.bJ(w().background),L;
if(O==null?0:(L=O.sources)==null?0:L.length){var r=r===void 0?!0:r;O=_.o0e(void 0,O.sources,void 0,r,r?1E3:void 0,r?void 0:1E3)}else O=null;return O},void 0,"GO4GAe");
Y=_.Bb({"--pdp-view-model-background":function(){return Q()?"url("+Q()+")":void 0}});
var Z={};V=_.hj("ytPdpViewModelHost",(Z.ytPdpViewModelHasBackground=function(){return x()||!!Q()},Z.ytPdpViewModelHasDarkBackground=x,Z.ytPdpViewModelHasScrim=l,Z.ytPdpViewModelInternalScrolling=_.JU(V,!1),Z));
var e=function(O){var L={};return _.hj("ytPdpViewModelItem",(L.ytPdpViewModelFullBleed=function(){return _.$Je(O())==="dividerViewModel"||_.$Je(O())==="sectionHeaderViewModel"},L.ytPdpViewModelNoVerticalPadding=function(){return _.$Je(O())==="sectionHeaderViewModel"},L))};
_.dx(function(){var O=w().onStartCommand;if(O&&(O=_.zT(O))){var L;(L=_.fH().resolve(_.Nn))==null||L.resolveCommand(O)}});
return _.m("pdp-view-model",{class:V,style:Y},_.m("div",{class:"ytPdpViewModelColumnContainer"},_.m(_.Bf,{each:function(){return DDI(I(),k())},
keyBy:"INDEX"},function(O){return _.m("div",{class:"ytPdpViewModelColumn"},_.m(_.OH,{data:O},{containerLayoutViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(ab,{data:L}))},
dividerViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(_.Jsr,{data:L}))},
pdpCardViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(iQs,{data:L,
stateFns:X}))},
pdpMastheadViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(AlI,{data:L,
isOverlay:x}))},
pdpPricingGroupSelectorViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(CNQ,{data:L,
stateFns:X}))},
pdpPricingOptionSelectorViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(ylO,{data:L,
stateFns:X}))},
pdpPrimaryButtonViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m($GA,{data:L,
stateFns:X}))},
pdpSummaryViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(j2I,{data:L,
stateFns:X}))},
sectionHeaderViewModel:function(L,r){L=L.data;return _.m("div",{class:e(function(){return O()[r()]})},_.m(_.gq,{data:L}))}}))})))},"lf");
Glg.idomCompat=!0;_.f_(Glg,"pdp-view-model",{props:{data:_.YX,stateFnsForTesting:_.gn,internalScrolling:_.gn}});var T2t=_.b8(function(Y){var b=Y.data;var w=Y.className;var V=_.xh(_.fk,function(){return b().flowStateEntityKey});
return _.m("ytm-premium-purchase-button-renderer",{class:_.hj("yt-premium-purchase-button-renderer",w)},_.m(_.OH,{data:function(){var H;return(H=_.v(V(),oQs))==null?void 0:H.primaryButtonOverride}},{buttonRenderer:function(H){return _.m(_.Ce,{data:H.data,
className:w})},
buttonViewModel:function(H){return _.m(_.a1,{data:H.data,className:w})}}))},"mf");
T2t.idomCompat=!0;var Jl7=_.b8(function(Y){var b=Y.data;Y=Y.className;var w=function(){return mDb(b().style)},V=_.hj("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",w),H=_.hj("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",w);
return _.m("yt-flow-bottom-bar-renderer",{class:_.hj("yt-flow-bottom-bar-renderer",Y,w)},_.m(_.OH,{data:function(){return b().secondaryButton}},{buttonRenderer:function(f){return _.m(_.Ce,{data:f.data,
className:H})},
buttonViewModel:function(f){return _.m(_.a1,{data:f.data,className:H})},
premiumPurchaseButtonRenderer:function(f){return _.m(T2t,{data:f.data,className:H})}}),_.m(_.OH,{data:function(){return b().primaryButton}},{buttonRenderer:function(f){return _.m(_.Ce,{data:f.data,
className:V})},
buttonViewModel:function(f){return _.m(_.a1,{data:f.data,className:V})},
premiumPurchaseButtonRenderer:function(f){return _.m(T2t,{data:f.data,className:V})}}))},"nf");
Jl7.idomCompat=!0;_.f_(Jl7,"yt-flow-bottom-bar-renderer",{props:{data:_.YX,className:_.YX}});var uIb=_.b8(function(Y){var b=_.hj(Y.className,"ytOfferSummaryRendererHost");return _.m("yt-offer-summary-renderer",{class:b},_.m("div",{class:"ytOfferSummaryRendererTextContainer"},_.m("div",{class:"ytOfferSummaryRendererEyebrowText"},_.m(_.wv,{text:function(){return Y.data().eyebrowText}})),_.m("div",{class:"ytOfferSummaryRendererTitle"},_.m(_.wv,{text:function(){return Y.data().title}})),_.m("div",{class:"ytOfferSummaryRendererSubtitle"},_.m(_.wv,{text:function(){return Y.data().subtitle}})),
_.m("div",{class:"ytOfferSummaryRendererFeatureListData"},_.m(_.Bf,{each:function(){var w;
return(w=Y.data().featureListData)!=null?w:[]}},function(w){var V;
return _.m("div",{class:"ytOfferSummaryRendererFeatureList"},_.m(_.n_,{icon:(V=w.icon)==null?void 0:V.iconType,active:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(w.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.m("div",{class:"ytOfferSummaryRendererFeatureListText"},_.m(_.wv,{text:w.text,
className:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.m("div",{class:"ytOfferSummaryRendererDescription"},_.m(_.wv,{text:function(){return Y.data().description}}))))},"of");_.f_(_.b8(function(Y){var b={};b=_.hj("ytOfferSummaryFlowStepRendererHost",(b.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=Y.shouldDisableHeaderTopMargin,b));return _.m("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:b},_.m("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.m("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.m(_.wv,{text:function(){return Y.data().header}})),_.m("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.m(_.wv,{text:function(){return Y.data().subtitle}}))),_.m("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.m(_.OH,{data:function(){return Y.data().offerSummary}},{offerSummaryRenderer:function(w){return _.m(uIb,{data:w.data,
className:Y.flowClassName})}})))},"pf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.gn,
flowClassName:_.gn,flowStateEntityKey:_.gn,shouldDisableHeaderTopMargin:_.gn}});var YzF=_.b8(function(Y){var b=Y.data;var w=Y.className;var V=Y.flowStateEntityKey;var H=Y.selectionStepStyle;Y=_.Q_(function(X){var I=b(),k=V==null?void 0:V();X.target&&(X.stopPropagation(),X=k||"",k=_.fk(_.jm().getState(),X),I=Object.assign({},k,{premiumPurchaseFlowState:{selectedOptionId:I.optionId,primaryButtonOverride:I.primaryButtonOverride}}),_.jm().dispatch(_.qo("flowStateEntity",X,I)));return!1});
var f=function(){return(V==null?void 0:V())||""},E=_.xh(_.fk,f);
_.dx(function(){var X=b(),I=f(),k=E();X.defaultSelected&&I!==""&&X.primaryButtonOverride&&IKs(X.optionId||"",I,X.primaryButtonOverride,k)});
var U={};return _.m("ytm-option-item-renderer",{"on:click":Y,class:_.hj(w,"ytm-option-item-renderer",(U["ytm-option-item-renderer--lp2-style"]=function(){return(H==null?void 0:H())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},U))},_.m("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.m("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var X=b(),I=f(),k=E();k=_.v(k,oQs);return(k?(k==null?void 0:k.selectedOptionId)||"":X.defaultSelected&&I!==""?(X==null?void 0:X.optionId)||"":"")===b().optionId},
name:("input"+_.SB(_.P3)).toString()})),_.m("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.m(_.h,{cond:function(){return b().eyebrowText},
then:function(){return _.m("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.m(_.wv,{text:function(){return b().eyebrowText}}))}}),_.m("div",{class:"ytm-option-item-renderer__option-item-title"},_.m(_.wv,{text:function(){return b().title}})),_.m("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.m(_.wv,{text:function(){return b().subtitle}})),_.m(_.h,{cond:function(){return b().featureListData},
then:function(){return _.m("div",{class:"ytm-option-item-renderer__feature-list-data"},_.m(_.Bf,{each:function(){return b().featureListData||[]}},function(X){var I,k=(I=X.icon)==null?void 0:I.iconType;
a:switch(X.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":I="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":I="ytm-option-item-renderer__feature-list-icon-small";break a;default:I="ytm-option-item-renderer__feature-list-icon-default"}return _.m("div",{class:"ytm-option-item-renderer__feature-list"},_.m(_.n_,{icon:k,className:I,active:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.m("div",{class:"ytm-option-item-renderer__feature-list-text"},_.m(_.wv,{text:X.text,
className:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.m("div",{class:"ytm-option-item-renderer__option-item-description"},_.m(_.wv,{text:function(){return b().description}}))))},"qf");var b7F=_.b8(function(Y){var b=Y.data;var w=Y.flowClassName;var V=Y.flowStateEntityKey;var H=Y.selectionStepStyle;return _.m("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.m("div",{class:"yt-option-section-renderer__option-section-header-section"},_.m("div",{class:"yt-option-section-renderer__option-section-header"},_.m(_.wv,{text:function(){return b().title}}),_.m(_.OH,{data:function(){return b().titleBadge}},{badgeViewModel:function(f){return _.m(_.wz,
{data:f.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.m(_.h,{cond:function(){return b().subtitle},
then:function(){return _.m("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.m(_.wv,{text:function(){return b().subtitle}}))}}),_.m(_.h,{cond:function(){return b().featureListData},
then:function(f){return _.m("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.m(_.Bf,{each:f},function(E){var U;return _.m("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.m(_.n_,{icon:(U=E.icon)==null?void 0:U.iconType,active:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(E.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-green";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"yt-option-section-renderer__option-section-feature-item-icon-small";default:return"yt-option-section-renderer__option-section-feature-item-icon-default"}}}),_.m("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.m(_.wv,{text:E.text,
className:function(){return E.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.m(_.h,{cond:function(){return b().secondaryTitle},
then:function(){return _.m("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.m(_.wv,{text:function(){return b().secondaryTitle}}))}}),_.m(_.Bf,{each:function(){return b().sectionDisclaimers||[]}},function(f){return _.m("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.m(_.wv,{text:f}))})),_.m(_.OH,{data:function(){return b().optionItems}},{optionItemRenderer:function(f){return _.m("div",{class:"yt-option-section-renderer__option-item"},_.m(YzF,{data:f.data,
className:w,flowStateEntityKey:V,selectionStepStyle:H}))}}),_.m(_.h,{cond:function(){return b().offerText},
then:function(){return _.m("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.m(_.wv,{text:function(){return b().offerText}}))}}))},"rf");
b7F.idomCompat=!0;var wfs=_.b8(function(Y){var b=Y.data;var w=Y.flowClassName;var V=Y.flowStateEntityKey;Y=Y.isDesktop;var H=function(){var I;return(I=b().flowStateEntityKey)!=null?I:V==null?void 0:V()},f=function(){return(H==null?void 0:H())||""},E=function(){return b().style},U=_.xh(_.fk,f);
_.dx(function(){var I=b(),k=f(),l=U();!_.v(l,oQs)&&I.noPreselect&&k!==""&&I.defaultButtonOverride&&IKs("default",k,I.defaultButtonOverride,l)});
var X={};return _.m("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.hj("ytm-option-selection-flow-step-renderer",(X["ytm-option-selection-flow-step-renderer--desktop"]=Y,X["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return b().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},X))},_.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.m(_.wv,{text:function(){return b().header}})),_.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.m(_.wv,{text:function(){return b().subtitle}}))),_.m(_.OH,{data:function(){return b().optionItems||[]}},{optionItemRenderer:function(I){return _.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.m(YzF,{data:I.data,
className:w,flowStateEntityKey:H,selectionStepStyle:E}))},
optionSectionRenderer:function(I){return _.m("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.m(b7F,{data:I.data,flowClassName:w,flowStateEntityKey:H,selectionStepStyle:E}))}}))},"sf");
wfs.idomCompat=!0;_.f_(wfs,"yt-option-selection-flow-step-renderer",{props:{data:_.YX,flowClassName:_.YX,flowStateEntityKey:_.YX,isDesktop:_.YX}});var k2X,lKt;_.r$=_.b8(function(Y){var b=_.ur(Y,{type:1,disablePadding:!1,disablePrimaryButton:!1}),w=b.data,V=b.type;Y=b.disablePadding;var H=b.disablePrimaryButton,f=b.onClickPrimaryButton,E=function(){return w().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},U=function(){return{disabled:H(),
state:H()?"disabled":"active"}},X=function(){return w().leadingLabel||w().trailingLabel};
b={};return _.m("yt-panel-footer-view-model",{class:_.hj("yt-panel-footer-view-model-wiz",(b["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return w().shouldHideDivider},b["yt-panel-footer-view-model-wiz--disable-padding"]=Y,b))},_.m(_.h,{cond:X,
then:function(){var I={},k={};return _.m("div",{class:_.hj("yt-panel-footer-view-model-wiz__text-row",(I["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var l=w();return!(!l.leadingLabel&&!l.trailingLabel||!l.primaryButton&&!l.secondaryButton)},I))},_.m(_.wv,{text:function(){return w().leadingLabel},
className:_.hj((k["yt-panel-footer-view-model-wiz--text-padding"]=X,k))}),_.m(_.wv,{text:function(){return w().trailingLabel}}))}}),_.m(_.h,{cond:E,
then:function(){var I={};return _.m("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.m("div",{class:_.hj("yt-panel-footer-view-model-wiz__primary-button",(I["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return w().secondaryButton},I))},_.m(_.OH,{data:function(){return w().primaryButton}},{buttonViewModel:function(k){return _.m(_.a1,{data:k.data,
buttonOverrides:U,onClick:f})}})),_.m(_.OH,{data:function(){return w().secondaryButton}},{buttonViewModel:_.a1}))}}),_.m(_.h,{cond:function(){return!E()},
then:function(){var I={},k={},l={};return _.m("div",{class:_.hj("yt-panel-footer-view-model-wiz__button-row",(I["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===V()},I))},_.m("div",{class:_.hj("yt-panel-footer-view-model-wiz__button-row--left-button",(k["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===V()},k["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!w().secondaryButton||0===V()},k["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===V()},k))},_.m(_.OH,{data:function(){return w().secondaryButton}},{buttonViewModel:_.a1})),_.m("div",{class:_.hj("yt-panel-footer-view-model-wiz__primary-button",(l["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===V()||1===V()},l["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===V()},l))},_.m(_.OH,{data:function(){return w().primaryButton}},{buttonViewModel:function(x){return _.m(_.a1,{data:x.data,
buttonOverrides:U,onClick:f})}})))}}))},"tf");
_.r$.idomCompat=!0;_.V4F=_.b8(function(Y){Y=_.ur(Y,{disablePadding:!1});var b=Y.data,w=Y.disablePadding;Y=_.szd(function(){return b().formId});
var V=Y.onSubmit,H=Y.isValid,f=Y.isSubmitting;return _.m("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.m(_.OH,{data:function(){return b().panelFooter}},{panelFooterViewModel:function(E){return _.m(_.r$,{data:E.data,
onClickPrimaryButton:function(){V()},
disablePrimaryButton:function(){return!H()||f()},
disablePadding:w})}}))},"uf");_.f_(_.V4F,"yt-form-footer-view-model",{props:{data:_.YX,disablePadding:_.YX}});_.f_(_.b8(function(Y){return _.m("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.m(_.h,{cond:function(){var b;return(b=Y.data())==null?void 0:b.image},
then:function(b){return _.m(_.Y_,{data:b,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.m(_.wv,{text:function(){var b;
return(b=Y.data())==null?void 0:b.title}})),_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.m(_.wv,{text:function(){var b;
return(b=Y.data())==null?void 0:b.subtitle}})),_.m("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.m(_.OH,{data:function(){var b;
return(b=Y.data())==null?void 0:b.viewTipsButton}},{buttonViewModel:_.a1}))))},"vf"),"yt-contributor-zero-state-view-model",{props:{data:_.YX}});var H7N=_.b8(function(Y){var b=_.xh(QzA,_.JU(function(){var w;return(w=Y.data())==null?void 0:w.noteFeedEntityKey},""));
return _.m("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.m(_.h,{cond:function(){var w,V;return(w=Y.data())==null?void 0:(V=w.noteData)==null?void 0:V.isPinned},
then:function(){return _.m(_.n_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.m(_.h,{cond:function(){var w,V;return(w=Y.data())==null?void 0:(V=w.noteData)==null?void 0:V.isPublished},
then:function(){return _.m(_.n_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.m(_.wv,{text:function(){var w,V;
return(w=Y.data())==null?void 0:(V=w.noteData)==null?void 0:V.headerText}}),_.m("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.m(_.wv,{text:function(){var w,V;
return(w=Y.data())==null?void 0:(V=w.noteData)==null?void 0:V.delimiter}})),_.m(_.wv,{text:function(){var w,V;
return(w=b())==null?void 0:(V=w.contributorNote)==null?void 0:V.publishedTimeText}})),_.m(_.OH,{data:function(){var w,V,H,f=(w=Y.data())==null?void 0:w.noteData;
w=(V=b())==null?void 0:(H=V.contributorNote)==null?void 0:H.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:f.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:f.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:f.deleteDialogTitle}]},dialogMessages:[{runs:[{text:f.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:f.deleteActionText}]},command:{performCommentActionEndpoint:{action:w}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:f.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.m("div",{class:"ytNoteViewModelNoteContent"},_.m(_.wv,{text:function(){var w,V;
return(w=b())==null?void 0:(V=w.contributorNote)==null?void 0:V.text}})))},"wf");
H7N.idomCompat=!0;_.f_(H7N,"yt-note-view-model",{props:{data:_.YX}});var z$=_.b8(function(Y){var b=_.ur(Y,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),w=b.label,V=b.text,H=b.placeholder,f=b.hint;Y=b.rows;var E=b.overflowStyle,U=b.outline,X=b.disabled,I=b.disableNewLines,k=b.characterLimit,l=b.validation,x=b.onInput,Q=_.GM("textarea");b=_.N(_.Zp(function(){return V()}));
var Z=b.next().value,e=b.next().value;b=_.N(_.kw(!1,void 0,"fXvinf"));var O=b.next().value,L=b.next().value,r=function(){L(!0)},C=function(){L(!1)};
_.dx(function(){var iI=Q.value,rB=E(),Tj=Z();rB==="expand-vertically"&&Tj&&vQ7(iI);Q.value.addEventListener("focusin",r);Q.value.addEventListener("focusout",C)});
_.R2(function(){Q.value.removeEventListener("focusin",r);Q.value.removeEventListener("focusout",C)});
var W=function(){var iI;return(iI=l())==null?void 0:iI.validate(Z())},y=function(){return k()&&!W()&&Z().length>k().maxChars},G=function(){return!!W()||y()};
b=_.Q_(function(iI){if(!iI.currentTarget)return!1;iI=iI.currentTarget;e(iI.value);E()==="expand-vertically"&&vQ7(iI);x==null||x(iI.value);return!0});
var Nr=_.Q_(function(iI){I()&&iI.key==="Enter"&&iI.preventDefault();return!1}),o6=_.Q_(function(){Q.value.focus()}),lI=function(){return H()||w()},Zt={},eL={},OM={};
return _.m("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.m("div",{class:_.hj("ytStandardsTextareaShapeTextareaContainer",(Zt.ytStandardsTextareaShapeTextareaContainerOutline=U,Zt.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=X,Zt.ytStandardsTextareaShapeTextareaContainerOutlineError=G,Zt)),"on:click":o6},_.m("label",{class:_.hj("ytStandardsTextareaShapeLabel",(eL.ytStandardsTextareaShapeLabelFocused=O,eL.ytStandardsTextareaShapeLabelDisabled=X,eL.ytStandardsTextareaShapeLabelError=
function(){return G()&&!X()},eL.ytStandardsTextareaShapeLabelHidden=function(){return!O()&&!Z()&&!!lI()},eL))},w),_.m("div",{class:_.hj("ytStandardsTextareaShapePlaceholder",(OM.ytStandardsTextareaShapePlaceholderVisible=function(){return!O()&&!Z()},OM)),
"aria-hidden":"true"},lI),_.m("textarea",{el:Q,class:"ytStandardsTextareaShapeTextarea",rows:Y,disabled:X,placeholder:lI,"on:input":b,"on:keydown":Nr},Z)),_.m(_.h,{cond:function(){return f()&&!G()},
then:function(){var iI={};return _.m("div",{class:_.hj("ytStandardsTextareaShapeHint",(iI.ytStandardsTextareaShapeHintDisabled=X,iI))},_.m("div",{class:"ytStandardsTextareaShapeHintHintMessage"},f))}}),_.m(_.h,{cond:W,
then:function(){return _.m(g2N,{disabled:X},_.m("div",{class:"ytStandardsTextareaShapeErrorMessage"},W))}}),_.m(_.h,{cond:k,
then:function(iI){return _.m(_.h,{cond:y,then:function(){return _.m(g2N,{disabled:X},_.m("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return iI().errorMessage}),_.m("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return Z().length+"/"+iI().maxChars}))}})}}))},"xf");
z$.idomCompat={callbacks:{onInput:!0}};var g2N=_.b8(function(Y){var b={};return _.m("div",{class:_.hj("ytStandardsTextareaShapeError",(b.ytStandardsTextareaShapeErrorDisabled=Y.disabled,b)),role:"alert"},_.m(_.n_,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),Y.children)},"yf");_.fZt=_.b8(function(Y){var b=Y.data;return _.m("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.m(z$,{text:Y.text,label:function(){var w;return(w=b().contentProperties)==null?void 0:w.labelText},
placeholder:function(){var w;return(w=b().contentProperties)==null?void 0:w.placeholderText},
hint:function(){var w;return(w=b().contentProperties)==null?void 0:w.hintText},
outline:function(){var w;return!((w=b().displayProperties)==null?0:w.hideBorder)},
overflowStyle:function(){var w;return((w=b().displayProperties)==null?0:w.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:Y.disabled,disableNewLines:function(){var w;return(w=b().displayProperties)==null?void 0:w.disableNewLines},
onInput:Y.onInput,characterLimit:Y.characterLimit,validation:Y.validation,rows:function(){var w;return(w=b().displayProperties)==null?void 0:w.rows}}))},"zf");_.NxQ=_.b8(function(Y){var b=Y.data;return _.m("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.m(z$,{text:Y.text,label:function(){var w;return(w=b().contentProperties)==null?void 0:w.labelText},
placeholder:function(){var w;return(w=b().contentProperties)==null?void 0:w.placeholderText},
hint:function(){var w;return(w=b().contentProperties)==null?void 0:w.hintText},
outline:function(){var w;return!((w=b().displayProperties)==null?0:w.hideBorder)},
overflowStyle:function(){var w;return((w=b().displayProperties)==null?0:w.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var w;return(w=b().displayProperties)==null?void 0:w.disableNewLines},
onInput:Y.onInput,characterLimit:Y.characterLimit,validation:Y.validation,rows:function(){var w;return(w=b().displayProperties)==null?void 0:w.rows}}))},"Af");var E2X=_.b8(function(Y){var b=_.N(_.Zp(function(){var lI,Zt;return((lI=Y.data().structuredContextNoteFormSchema)==null?0:(Zt=lI.initialValues)==null?0:Zt.noteBody)?Y.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),w=b.next().value,V=b.next().value;
b=_.N(_.Zp(function(){Y.data();return!1}));
var H=b.next().value,f=b.next().value;b=_.N(_.Zp(function(){Y.data();return!1}));
var E=b.next().value,U=b.next().value;b=_.N(_.Zp(function(){var lI,Zt;return((lI=Y.data().structuredContextNoteFormSchema)==null?0:(Zt=lI.initialValues)==null?0:Zt.timestamp)?Y.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var X=b.next().value,I=b.next().value;b=_.N(_.Zp(function(){Y.data();return!1}));
var k=b.next().value,l=b.next().value;b=_.N(_.Zp(function(){var lI,Zt;return((lI=Y.data().structuredContextNoteFormSchema)==null?0:(Zt=lI.initialValues)==null?0:Zt.sources)?[Y.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var x=b.next().value,Q=b.next().value;b=_.N(_.Zp(function(){Y.data();return!1}));
var Z=b.next().value,e=b.next().value;b=_.N(_.Zp(function(){return!1}));
var O=b.next().value,L=b.next().value;_.dx(function(){var lI;_.qyN((lI=Y.data().structuredContextNoteFormSchema)==null?void 0:lI.id,{isSubmitting:O,onSubmit:function(){L(!0);var Zt=tqg(w(),X(),x(),Y.data()),eL=_.fH().resolve(_.Nn);Zt&&eL&&eL.resolveCommand(Zt,{commandController:{onSuccess:function(){L(!1)}}})},
isValid:function(){return H()&&!E()&&!k()&&!Z()}})});
var r=function(lI){if(lI!==void 0&&(V(lI),!H()&&lI.length>0&&f(!0),H())){var Zt=BFg(Y.data());if(Zt){var eL=Zt.minLength;Zt=Zt.maxLength;eL&&lI.length<eL?U(!0):Zt&&lI.length>Zt?U(!0):U(!1)}}},C=function(lI){if(lI!==void 0){I(lI);
if(lI.length>0){var Zt,eL,OM,iI,rB=MqR((Zt=Y.data())==null?void 0:(eL=Zt.structuredContextNoteFormSchema)==null?void 0:(OM=eL.fieldSchemas)==null?void 0:(iI=OM.timestamp)==null?void 0:iI.validationSchema);if(rB&&(Zt=rB.regex)&&!(new RegExp(Zt)).test(lI)){l(!0);return}}l(!1)}},W=function(lI){if(lI!==void 0){var Zt=lI.split(/[ \n]/).map(function(eL){return eL.trim()});
Q(Zt);if(lI.length>0)for(lI=_.N(Zt),Zt=lI.next();!Zt.done;Zt=lI.next())if(!OlR(Zt.value)){e(!0);return}e(!1)}},y=function(){return{validate:function(lI){if(H()){var Zt=BFg(Y.data());
if(Zt){var eL=Zt.minLength;Zt=Zt.translations;if(eL&&lI.length<eL)return Zt==null?void 0:Zt.minLengthErrorMessage}}}}},G=function(){var lI=BFg(Y.data()),Zt=lI==null?void 0:lI.maxLength,eL;
lI=lI==null?void 0:(eL=lI.translations)==null?void 0:eL.maxLengthErrorMessage;if(Zt&&lI)return{maxChars:Zt,errorMessage:lI}},Nr=function(){return{validate:function(lI){if(lI){var Zt,eL,OM,iI,rB=MqR((Zt=Y.data())==null?void 0:(eL=Zt.structuredContextNoteFormSchema)==null?void 0:(OM=eL.fieldSchemas)==null?void 0:(iI=OM.timestamp)==null?void 0:iI.validationSchema);
if(rB&&(Zt=rB.regex,rB=rB.translations,Zt&&!(new RegExp(Zt)).test(lI)))return rB==null?void 0:rB.regexErrorMessage}}}},o6=function(){return{validate:function(lI){if(lI){var Zt,eL,OM,iI,rB=pLN((Zt=Y.data())==null?void 0:(eL=Zt.structuredContextNoteFormSchema)==null?void 0:(OM=eL.fieldSchemas)==null?void 0:(iI=OM.sources)==null?void 0:iI.validationSchema);
if(rB&&(Zt=rB.translations,Zt==null?0:Zt.selectedErrorMessage))for(lI=lI.split(/[ \n]/).map(function(Tj){return Tj.trim()}),lI=_.N(lI),eL=lI.next();!eL.done;eL=lI.next())if(!OlR(eL.value))return lI=void 0,(lI=Zt)==null?void 0:lI.selectedErrorMessage}}}};
return _.m("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.OH,{data:function(){var lI;return(lI=Y.data())==null?void 0:lI.noteContents}},{textFormFieldViewModel:function(lI){return _.m(_.NxQ,{data:lI.data,
onInput:r,validation:y,characterLimit:G})},
textFieldViewModel:function(lI){return _.m(_.fZt,{data:lI.data,onInput:r,validation:y,characterLimit:G})}})),_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.OH,{data:function(){var lI;
return(lI=Y.data())==null?void 0:lI.noteTimestamp}},{textFormFieldViewModel:function(lI){return _.m(_.NxQ,{data:lI.data,
onInput:C,validation:Nr})},
textFieldViewModel:function(lI){return _.m(_.fZt,{data:lI.data,onInput:C,validation:Nr})}})),_.m("div",{class:"ytStructuredContextNoteViewModelTextField"},_.m(_.OH,{data:function(){var lI;
return(lI=Y.data())==null?void 0:lI.noteSources}},{textFormFieldViewModel:function(lI){return _.m(_.NxQ,{data:lI.data,
onInput:W,validation:o6})},
textFieldViewModel:function(lI){return _.m(_.fZt,{data:lI.data,onInput:W,validation:o6})}})))},"Bf");
E2X.idomCompat=!0;_.f_(E2X,"yt-structured-context-note-view-model",{props:{data:_.YX}});var cqQ=_.b8(function(Y){var b=_.N(_.Zp(function(){var f;if((f=Y.controlled)==null?0:f.call(Y))return[];var E;return(((E=Y.data())==null?void 0:E.chips)||[]).map(function(U){U=_.v(U,_.CL);if(U==null?0:U.selected)return RHO(U.chipValue)}).filter(function(U){return U!==void 0})})),w=b.next().value,V=b.next().value,H=function(f){var E=RHO(f.chipValue);
if(E!==void 0){var U;if((U=Y.controlled)==null?0:U.call(Y))return void Y.controlled().onTap(E);f=w().includes(E)?[].concat(_.Bt(w().filter(function(I){return I!==E}))):[].concat(_.Bt(w()),[E]);
V(f);var X;if((X=Y.uncontrolled)==null?0:X.call(Y))Y.uncontrolled().onUpdate(f)}};
return _.m("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.m(_.Bf,{each:function(){return Y.data().chips||[]}},function(f){return _.m("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.m(_.G3k,{data:function(){return _.v(f,_.CL)},
selected:function(){var E;if(E=_.v(f,_.CL)){var U=RHO(E.chipValue);if(U!==void 0){var X;E=((X=Y.controlled)==null?0:X.call(Y))?Y.controlled().selectedValues.includes(U):w().includes(U)}else E=void 0}else E=!1;return E},
callback:H}))}))},"Cf");var U$X=_.b8(function(Y){var b=Y.data;var w=function(){var U;return((U=b())==null?void 0:U.flowStateKey)||""},V=_.xh(_.fk,w),H=function(){var U;
return(U=_.v(V(),ZCX))==null?void 0:U.chips},f=function(U){if(U!==void 0){var X=H()||[];
X=X.find(function(I){return I===U})?X.filter(function(I){return I!==U}):[].concat(_.Bt(X),[U]);
X=Object.assign({},V(),{feedbackFormFlowState:Object.assign({},_.v(V(),ZCX),{chips:X})});_.Td(_.qo("flowStateEntity",w(),X))}},E=function(){var U;
return _.v((U=b())==null?void 0:U.inputBox,BlA)};
Y=_.Zf(function(U){var X=E();X=!(X==null?0:X.maxChars)||U.length<=X.maxChars;U=Object.assign({},V(),{feedbackFormFlowState:Object.assign({},_.v(V(),ZCX),{detail:U}),abuseReportFlowState:Object.assign({},_.v(V(),U9),{navigationEnabled:X})});_.Td(_.qo("flowStateEntity",w(),U))},150);
return _.m("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.m("div",{class:"ytFeedbackFormViewModelChips"},_.m(_.OH,{data:function(){var U;return(U=b())==null?void 0:U.chipSelection}},{chipSelectionFormFieldViewModel:function(U){return _.m(cqQ,{data:U.data,
controlled:function(){return{selectedValues:H()||[],onTap:f}}})}})),_.m("div",{class:"ytFeedbackFormViewModelInputBox"},_.m(z$,{text:function(){var U;
return(U=_.v(V(),ZCX))==null?void 0:U.detail},
placeholder:function(){var U;return((U=E())==null?void 0:U.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var U=E();if(U&&U.maxChars)return{maxChars:U.maxChars,errorMessage:U.maxCharsExceededErrorMessage||""}},
onInput:Y})),_.m("div",{class:"ytFeedbackFormViewModelFooterText"},_.m(_.wv,{text:function(){return b().footerText}})))},"Df");
U$X.idomCompat=!0;_.f_(U$X,"yt-feedback-form-view-model",{props:{data:_.YX}});var Xfd=_.b8(function(Y){var b=Y.data;var w=function(){return b().flowStateKey||""},V=_.xh(FSs,w),H=function(){return _.v(V(),U9)},f=function(){if(_.q("enable_gff_accessibility_fix")){var E=!0,U;
if((U=H())==null?0:U.navigationEnabled){var X;_.AA((X=H())==null?void 0:X.navigationCommand);E=!1}U=Object.assign({},V(),{abuseReportFlowState:Object.assign({},H(),{isReportFormDirty:E})});_.Td(_.qo("flowStateEntity",w(),U))}else _.AA((E=H())==null?void 0:E.navigationCommand)};
return _.m("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.m("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.m(_.OH,{data:function(){return b().cancelButton}},{buttonViewModel:function(E){return _.m(_.a1,{data:E.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:f})}}),_.m(_.OH,{data:function(){var E;
if(b().navButton){var U=Object;var X=U.assign,I=_.v(b().navButton,_.Bv),k=((E=H())==null?0:E.navigationEnabled)||_.q("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",l,x;E=_.v((l=H())==null?void 0:l.navigationCommand,_.rI);l=(x=_.v(E,_.Ah))==null?void 0:x.url;U={buttonViewModel:X.call(U,{},I,{state:k,iconName:l?"OPEN_IN_NEW":""})}}else U=void 0;return U}},{buttonViewModel:function(E){return _.m(_.a1,{data:E.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:f})}})))},"Ef");
Xfd.idomCompat=!0;_.f_(Xfd,"yt-report-form-bottom-bar-view-model",{props:{data:_.YX}});var D$t=_.b8(function(Y){var b=Y.nextStep;return _.m("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.m("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.m(_.n_,{icon:function(){return b().iconName||""}})),_.m("div",null,_.m(_.wv,{text:function(){return b().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ff"),m$d=_.b8(function(Y){var b=Y.data;
var w,V=(w=_.fH().resolve(_.HQ(_.GT)))==null?void 0:w(),H=_.xh(_.fk,function(){return b().flowStateKey||""});
return _.m("yt-report-form-confirmation-page-view-model",{class:function(){var f;return((f=_.v(H(),U9))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.m("div",{class:function(){var f;
return((f=_.v(H(),U9))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.m(_.Y_,{data:function(){return V&&b().imageDark?b().imageDark:b().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.m("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return b().confirmationHeader}),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.m(_.wv,{text:function(){return b().confirmationText}})),_.m("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.m(_.wv,{text:function(){return b().lawEnforcementText}})),
_.m("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return b().whatToExpectHeader}),_.m(_.h,{cond:function(){return b().nextSteps},
then:function(f){return _.m("div",null,_.m(_.Bf,{each:f},function(E){return _.m(D$t,{nextStep:E})}))}}),_.m(_.h,{cond:function(){return b().legalReportText},
then:function(f){return _.m("div",null,_.m(_.wv,{text:f,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gf");
m$d.idomCompat=!0;_.f_(m$d,"yt-report-form-confirmation-page-view-model",{props:{data:_.YX}});var o2N=_.b8(function(Y){var b=Y.data;var w=function(){var f;return((f=_.v(b().inputBox,BlA))==null?void 0:f.maxChars)||500},V=function(){return b().flowStateKey||""},H=_.xh(_.fk,V);
Y=_.Zf(function(f){f=Object.assign({},H(),{flowFormState:{isValid:f.length<=w()},abuseReportFlowState:{userComments:f,navigationEnabled:!(f.length>w()),isReportFormDirty:!0}});_.jm().dispatch(_.R1("flowStateEntity",V(),f))},150);
_.dx(function(){var f=Object.assign({},H(),{flowFormState:{isValid:!0}});_.jm().dispatch(_.R1("flowStateEntity",V(),f))});
return _.m("yt-report-form-details-page-view-model",{class:function(){var f;return((f=_.v(H(),U9))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.m("h1",{class:function(){var f;
return((f=_.v(H(),U9))==null?void 0:f.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return b().detailsPageHeader}),_.m("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.m(_.wv,{text:function(){return b().bodyText}})),_.m("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.m(z$,{label:function(){var f;
return((f=_.v(b().inputBox,BlA))==null?void 0:f.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var f;return{errorMessage:((f=_.v(b().inputBox,BlA))==null?void 0:f.maxCharsExceededErrorMessage)||"",maxChars:w()}},
onInput:Y})))},"Hf");
o2N.idomCompat=!0;_.f_(o2N,"yt-report-form-details-page-view-model",{props:{data:_.YX}});var IZt=_.b8(function(Y){var b=Y.data;var w=Y.selectedKey;var V=Y.onSelected;var H=Y.groupName;var f=function(){return b().text},E=function(){return b().attributedText},U=function(){return b().subtext},X=function(){return b().attributedSubtext},I=_.m("div",{class:"ytRadioButtonItemViewModelLabel"},_.m(_.h,{cond:f,
then:function(){return _.m("div",null,f)}}),_.m(_.h,{cond:E,
then:function(){return _.m(_.wv,{text:E})}}),_.m(_.h,{cond:U,
then:function(){return _.m("div",{class:"ytRadioButtonItemViewModelSubText"},U)}}),_.m(_.h,{cond:X,
then:function(){return _.m("div",{class:"ytRadioButtonItemViewModelSubText"},_.m(_.wv,{text:X}))}})),k=function(){if(E()){var x;
return(x=E())==null?void 0:x.content}return f()},l=function(){if(X()){var x;
return(x=X())==null?void 0:x.content}return U()};
Y={};return _.m("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.m(_.B3,{name:H,checked:function(){return!(w==null||!w()||b().key!==(w==null?void 0:w()))},
onChange:function(x){V==null||V(x.target,b(),H==null?void 0:H())},
labelRenderable:function(){return I},
ariaLabel:function(){return l()?k()+", "+l():k()},
className:_.hj((Y.ytRadioButtonItemViewModelSubTitle=function(){return!!b().subtext},Y))}))},"If");_.kOF=_.b8(function(Y){var b=Y.data;var w=Y.onSelected;var V=Y.selectedKey;var H=Y.groupName;var f=function(){return(H==null?void 0:H())||b().key};
return _.m("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.m("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.m(_.OH,{data:function(){return b().radioButtons}},{radioButtonItemViewModel:function(E){return _.m(IZt,{data:E.data,
onSelected:w,selectedKey:V,groupName:f})}})))},"Jf");var lZO=_.b8(function(Y){var b=Y.data;var w=_.TM("div"),V=function(){return b().flowStateKey||""},H=_.xh(_.fk,V),f=function(){return _.v(H(),U9)};
_.tl(function(){var E,U;if(((E=f())==null?0:E.isReportFormDirty)&&((U=f())==null||!U.navigationEnabled)&&_.q("enable_gff_accessibility_fix")){var X;if(((X=f())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var I;(I=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||I.scrollIntoView()}else{var k;(k=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||k.scrollIntoView()}}},"VvP2Ne");
return _.m("yt-report-form-reason-select-page-view-model",{class:function(){var E;return((E=f())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.m("h1",{class:function(){var E;
return((E=f())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return b().pageHeader}),_.m("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.m(_.wv,{text:function(){return b().bodyText}})),_.m("div",{class:function(){var E;
return((E=f())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.m(_.h,{cond:function(){var E,U;
return((E=f())==null?void 0:E.isReportFormDirty)&&!((U=f())==null?0:U.navigationEnabled)&&_.q("enable_gff_accessibility_fix")},
then:function(){return _.m("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:w},_.m(_.n_,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.m("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return b().emptyReasonSelectErrorMessage}))}}),_.m(_.kOF,{data:function(){return _.v(b().radioButtonGroup,_.dfs)},
onSelected:function(E,U){E=Object.assign({},H(),{abuseReportFlowState:Object.assign({},f(),{reasonKey:U.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:U.command})});_.Td(_.qo("flowStateEntity",V(),E))},
selectedKey:function(){var E;return(E=f())==null?void 0:E.reasonKey},
groupName:"report-form-reason-select-page"})))},"Kf");
lZO.idomCompat=!0;_.f_(lZO,"yt-report-form-reason-select-page-view-model",{props:{data:_.YX}});var hUF=_.b8(function(Y){var b=Y.data;var w,V=(w=_.fH().resolve(_.HQ(_.GT)))==null?void 0:w();return _.m("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.m("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.m(_.Y_,{data:function(){return V&&b().imageDark?b().imageDark:b().image},
alt:""})),_.m("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.m("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return b().header}),_.m(_.wv,{text:function(){return b().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Lf");
hUF.idomCompat=!0;_.f_(hUF,"yt-report-form-sign-in-page-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=function(){var I;return(I=b().textInputPlaceholder)==null?void 0:I.content},V=function(I){I=I.target.value.trim();
var k=b().onUpdateText;k&&_.AA(k,{form:{userQuery:I}});b().userQuery=I},H=_.Zf(function(I){V(I)},150),f=_.Q_(function(I){H(I);
return!1}),E=_.Q_(function(I){I.key==="Enter"&&(V(I),(I=b().onNextStepCommand)&&_.AA(I,{forceClickLogging:!0}));
return!1}),U=_.GM("yt-talk-to-recs-view-model"),X=function(){if(_.q("web_hide_explore_hub_until_user_navigates_back_to_home")){var I,k,l;
(l=(k=(I=U.value)==null?void 0:I.closest("ytd-flow-step-renderer"))==null?void 0:k.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||l.click()}};
return _.m("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:U},_.m("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.m(_.OH,{data:function(){return b().topCornerButton}},{buttonViewModel:_.a1})),_.m("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.m("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.m(_.wv,{text:function(){return b().title}}),_.m("sup",{class:"ytwTalkToRecsSuperScript"},"BETA")),_.m("div",{class:"ytwTalkToRecsSubtitle"},_.m(_.wv,{text:function(){return b().subtitle}})),_.m("div",{class:"ytwTalkToRecsChipsShelf"},_.m(_.OH,{data:function(){return b().answersShelf}},{chipsShelfViewModel:function(I){return _.m("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.m(_.go$,{data:I.data,
callback:X,enableSingleChipSelection:!0}))}})),_.m(_.h,{cond:function(){return b().showOpenTextInput&&!_.q("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.m("div",{class:"ytwTalkToRecsUserInputBox"},_.m("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:w,value:function(){return b().userQuery},
"on:input":f,"on:keyup":E,maxlength:200}))}})))},"Mf"),"yt-talk-to-recs-view-model",{props:{data:_.YX}});var dDt={sources:[{clientResource:{imageName:"CHECK"}}]};_.x$I=_.b8(function(Y){var b=_.GM("div");Y=_.ur(Y,{error:void 0});var w=Y.data,V=Y.error,H=Y.onSelected;Y=_.N(_.Zp(function(){return Syt(w())}));
var f=Y.next().value,E=Y.next().value;WEF(w,function(l){E(l);var x,Q,Z=LEt((x=w().options)==null?void 0:(Q=x[l])==null?void 0:Q.value,w().type);H==null||H(Z);b.value.focus()});
Y=_.Q_(function(){if(!w().disabled){var l=w(),x=f(),Q=b.value;l.options&&(l=FEI(l.options,x,l.label),_.fH().resolve(_.BR).openSheet({viewModel:l},Q))}});
var U=_.fQu(),X=function(){return!!V()},I=function(){return!!w().disabled},k={};
k=_.hj("ytDropdownViewModelDropdownContainer",(k.ytDropdownViewModelDropdownContainerErrorBorder=X,k.ytDropdownViewModelDropdownContainerDisabled=I,k));return _.m("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.m("div",{class:k,"on:click":Y,el:b,role:"combobox",tabindex:0,"on:keydown":U,"aria-invalid":X,"aria-disabled":I,"aria-describedby":function(){return X()?"dropdown-view-model-error":void 0}},_.m("div",{class:"ytDropdownViewModelText"},aKX(w,X,f),rPb(w,f)),_.m("div",{class:"ytDropdownViewModelChevronDown"},
_.m(_.n_,{icon:"CHEVRON_DOWN"}))),zHO(w,V))},"Nf");_.f_(_.b8(function(Y){var b=Y.data;var w=function(H){var f=ilO(b());f.videoMetadata||(f.videoMetadata={});f.videoMetadata.sponsorshipsMetadata||(f.videoMetadata.sponsorshipsMetadata={});f.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(H)},V=function(H){var f=ilO(b());
f.scheduledRedirectMetadata||(f.scheduledRedirectMetadata={});f.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(H)};
return _.m("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.m("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.m("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.m(_.wv,{text:function(){return b().title}}),_.m(_.n_,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.m(_.wv,{text:function(){return b().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.m(_.OH,{data:function(){return b().tierChoices}},{dropdownViewModel:function(H){return _.m("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.m(_.x$I,{data:H.data,
onSelected:w}))}}),_.m(_.OH,{data:function(){return b().startTimeChoices}},{dropdownViewModel:function(H){return _.m("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.m(_.x$I,{data:H.data,
onSelected:V}))}}),_.m(_.wv,{text:function(){return b().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.m("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.m(_.OH,{data:function(){return b().scheduleButton}},{panelFooterViewModel:_.r$})))},"Of"),"ytfz-schedule-fanzone-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;Y=Y.className===void 0?"":Y.className;var w=_.xh(FSs,function(){return b().flowStateEntityKey||""}),V={};
V=_.hj("ytFlowBottomBarViewModelFlowBottomBarButtons",(V.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},V));
var H={},f=_.hj("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",V,(H.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},H));
H={};var E=_.hj("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",V,(H.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},H.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},H));
V={};V=_.hj("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(V.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},V.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},V.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
V));
Y=_.hj("ytFlowBottomBarViewModelHost",Y);return _.m("yt-flow-bottom-bar-view-model",{class:Y},_.m(_.h,{cond:function(){var U;return(U=b())==null?void 0:U.textSection},
then:function(U){return _.m("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.m(_.wv,{text:U}))}}),_.m("div",{class:V},_.m(_.OH,{data:function(){return b().secondaryButton}},{buttonViewModel:function(U){return _.m(_.a1,{data:U.data,
className:E})}}),_.m(_.OH,{data:function(){return b().primaryButton}},{buttonViewModel:function(U){return _.m(_.a1,{data:U.data,
className:f,buttonOverrides:function(){var X;return{disabled:!((X=w())==null||!X.primaryButtonDisabled)}}})}})))},"Pf"),"yt-flow-bottom-bar-view-model",{props:{data:_.YX,
className:_.gn}});var qzb="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),WM=function(){var Y=_.F.apply(this,arguments)||this;Y.enableScrollingFix=!0;Y.bottomBar=!1;Y.hideBottomBar=!1;Y.fitContent=!1;return Y};
_.P(WM,_.F);_.g=WM.prototype;_.g.ready=function(){_.q("enable_pdp_icon_prefetch")&&_.POg(_.fH().resolve(_.Ul),0,qzb)};
_.g.focus=function(Y){this.topBar?_.JE(this.topBar,Y):this.paperDialog.focus(Y)};
_.g.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16892_scroller&&(this.JSC$16892_scroller.dialogElement=this.paperDialog,this.JSC$16892_scroller.attached&&typeof this.JSC$16892_scroller.attached==="function"&&this.JSC$16892_scroller.attached())};
_.g.onDataChanged=function(){var Y;this.fitContent=!((Y=this.data)==null||!Y.fitContent);var b;this.bottomBar=!((b=this.data)==null||!b.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.g.onProgressChanged=function(){var Y,b,w=((b=(Y=this.data)==null?void 0:Y.progress)!=null?b:0)*100;this.progressElement.style.width=w+"%"};
_.g.isProgressHidden=function(){var Y;return!((Y=this.data)==null?0:Y.progress)};
_.g.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(Y){return _.q("enable_wiz_next_lp2_msof")&&Y&&!Y.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.up.Object.defineProperties(WM.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var Y;return _.q("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.v((Y=this.data)==null?void 0:Y.content,OCR)}}});
WM.prototype.onProgressChanged=WM.prototype.onProgressChanged;WM.prototype.onDataChanged=WM.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],WM.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],WM.prototype,"enableScrollingFix",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],WM.prototype,"bottomBar",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],WM.prototype,"hideBottomBar",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],WM.prototype,"containsExploreHub",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],WM.prototype,"fitContent",void 0);_.z([_.xZ("#progress"),_.K("design:type",HTMLElement)],WM.prototype,"progressElement",void 0);
_.z([_.xZ("#scroller"),_.K("design:type",Object)],WM.prototype,"JSC$16892_scroller",void 0);_.z([_.xZ("ytd-flow-top-bar-renderer"),_.K("design:type",HTMLElement)],WM.prototype,"topBar",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WM.prototype,"onDataChanged",null);_.z([_.lr("data.progress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WM.prototype,"onProgressChanged",null);
_.z([_.S({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],WM);
_.a(WM,"ytd-flow-step-renderer",function(){if(whX!==void 0)return whX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-flow-step-renderer"></div>\n<div id="progress-container" hidden="[[isProgressHidden(data)]]" class="style-scope ytd-flow-step-renderer">\n  <div id="progress" class="style-scope ytd-flow-step-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-flow-step-renderer">\n  <div id="content" class="style-scope ytd-flow-step-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n<div id="bottom-bar" class="style-scope ytd-flow-step-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return whX=Y},{mode:1});var sIR=function(Y){this.resolveCommand=Y;this.steps={}},QId=function(Y,b){b=_.N(b||[]);
for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=Object.values(w)[0],H=void 0;if((H=V)==null?0:H.stepId)Y.steps[V.stepId]=w}},Z7X=function(Y,b){var w,V,H,f,E;
return _.c(function(U){if((w=Y.state)==null||!w.currentStepId)return U.return(void 0);V=v27(Y);if(!V)return U.return(P1Q(Y));if(H=_.v(V,_.pE7)){var X;((X=H.screenLoggingData)==null?0:X.screenVeType)&&_.mo(_.Qd(),H.screenLoggingData.screenVeType);((f=H)==null?0:f.onStepStartCommand)&&Y.resolveCommand((E=H)==null?void 0:E.onStepStartCommand,{})}if(H&&b){X=H;var I,k,l,x;((I=b.flowLoggingData)==null?0:I.eventNamespace)&&((k=X.flowEventData)==null?0:k.eventType)&&((l=X.flowEventData)==null?0:l.eventMetadata)&&
((x=b.flowLoggingData)==null?0:x.flowType)&&(I=_.oA(b.flowLoggingData.eventNamespace,X.flowEventData.eventType,X.flowEventData.eventMetadata),_.IA(_.ky(),I,b.flowLoggingData.flowType));b.steps&&!b.steps.includes(V)&&b.steps.push(V)}return U.return(V)})};
sIR.prototype.back=function(){var Y;(Y=this.state)!=null&&Y.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
sIR.prototype.handleUpdateFlowCommand=function(Y){Y.steps&&QId(this,Y.steps);Y.entityUpdateCommand&&this.resolveCommand(Y.entityUpdateCommand,{});Y.flowContinuationCommand&&(Y=Y.flowContinuationCommand)&&(this.getFlowContinuationCommand=Y);this.awaitFlowContinuation&&(this.awaitFlowContinuation(v27(this)),this.awaitFlowContinuation=void 0)};
sIR.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var P1Q=function(Y){return _.c(function(b){return Y.getFlowContinuationCommand?b.return(new Promise(function(w){Y.awaitFlowContinuation=w;Y.getFlowContinuationCommand&&Y.resolveCommand(Y.getFlowContinuationCommand,{flow_state:Y.state})})):b.return(Promise.resolve(void 0))})},v27=function(Y){var b;
if((b=Y.state)!=null&&b.currentStepId)return Y.steps[Y.state.currentStepId]};var K2=function(){var Y=_.F.apply(this,arguments)||this;Y.flowState=new sIR(function(b,w){w=w===void 0?{}:w;_.l8.instance.resolveCommand(b,{form:{form:w,element:Y.hostElement}})});
Y.initialState=!0;Y.isLoading=!1;Y.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return Y};
_.P(K2,_.F);_.g=K2.prototype;_.g.onPopupClosed=function(Y){Y&&this.hostElement!==Y.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.g.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"}}}};
_.g.focus=function(Y){var b=this;_.KV(function(){var w=_.E6(b.hostElement).querySelector("ytd-flow-step-renderer");(w==null?0:w.topBar)?w.focus(Y):b.topBar&&_.JE(b.topBar,Y)},1)};
_.g.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.g.computeTopBarHidden=function(Y){var b;return!((b=_.v(Y,_.pE7))==null||!b.topBarOverride)};
_.g.dataChanged=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1){((b=Y.data)==null?0:b.steps)&&QId(Y.flowState,Y.data.steps);if((w=Y.data)==null?0:w.flowContinuationCommand){var H=Y.flowState,f=Y.data.flowContinuationCommand;f&&(H.getFlowContinuationCommand=f)}return _.D(V,Z7X(Y.flowState,Y.data),2)}Y.currentFlowStep=V.yieldResult;_.om(V)})};
_.g.flowChanged=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1){if(!Y.flow)return w.return();Y.flowState.state=Y.flow;Y.isLoading=!0;return _.D(w,Z7X(Y.flowState,Y.data),2)}b=w.yieldResult;if(!b||Y.flow.isLoading)return w.return();Y.currentFlowStep=b;Y.initialState=!1;Y.isLoading=!1;Y.autofocusAndRefit();_.om(w)})};
_.g.autofocusAndRefit=function(){var Y=this,b=_.fH().resolve(_.HQ(_.mu)),w=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),V=document.querySelector("yt-report-form-confirmation-page-view-model"),H=document.querySelector("yt-report-form-details-page-view-model"),f=document.querySelector("yt-report-form-reason-select-page-view-model"),E=document.querySelector("yt-contributor-zero-state-view-model"),
U=document.querySelector("yt-structured-context-note-view-model"),X=document.querySelector("yt-note-view-model");(!w&&b&&b.isKeyBoardInUse()||V||!w&&H||!w&&f||E||U||X)&&_.uS(this.hostElement);_.TC(this,function(){_.Ua(Y.hostElement,"yt-refit")})};
_.g.handleUpdateFlowCommand=function(Y){this.data&&(Y=_.v(Y,edd),Y.targetId===this.data.targetId&&(Y.flowContinuationCommand&&(this.data.flowContinuationCommand=Y.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(Y),this.autofocusAndRefit()))};
_.g.handleFlowNextStepCommand=function(Y){this.data&&this.flow&&this.flow.key&&(Y=_.v(Y,nGd),Y.targetId===this.data.targetId&&(Y=Y.stepId||"",this.ytdReduxBehavior.dispatch(_.R1("flowStateEntity",this.flow.key,{currentStepId:Y,stepIdStack:(this.flow.stepIdStack||[]).concat(Y)}))))};
_.g.handleFlowPrevStepCommand=function(Y){if(this.data&&this.flow&&this.flow.key&&(Y=_.v(Y,Mh7),Y.targetId===this.data.targetId)){var b=[].concat(_.Bt(this.flow.stepIdStack||[]));b.length>1?(b.pop(),this.ytdReduxBehavior.dispatch(_.R1("flowStateEntity",this.flow.key,{currentStepId:b[b.length-1],stepIdStack:b}))):Y.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(Y.onFirstStepCommand)}};
_.g.handleYpcCancelRecurrenceCommand=function(Y){if(this.data&&this.flow&&this.flow.key&&(Y=_.v(Y,Ftb),Y.targetId===this.data.targetId&&Y.endpointCommand)){var b=_.v(this.flow,LtX);b&&_.v(Y.endpointCommand,_.XBt)&&(_.v(Y.endpointCommand,_.XBt).feedbackData=b.surveyFeedback);this.ytComponentBehavior.resolveCommand(Y.endpointCommand)}};
_.g.handlePartialUpdateFlowStateEntity=function(Y){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.R1("flowStateEntity",this.flow.key,Y,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
K2.prototype.flowChanged=K2.prototype.flowChanged;K2.prototype.dataChanged=K2.prototype.dataChanged;K2.prototype.onPopupClosed=K2.prototype.onPopupClosed;_.z([_.n(_.FX),_.K("design:type",Object)],K2.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],K2.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],K2.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],K2.prototype,"initialState",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],K2.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Object)],K2.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],K2.prototype,"currentFlowStep",void 0);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],K2.prototype,"onPopupClosed",null);_.z([_.R({selectorArgs:["data.flowStateEntityKey"],selector:FSs}),_.K("design:type",Object)],K2.prototype,"flow",void 0);_.z([_.xZ("ytd-flow-top-bar-renderer"),_.K("design:type",HTMLElement)],K2.prototype,"topBar",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],K2.prototype,"dataChanged",null);_.z([_.vX("flow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],K2.prototype,"flowChanged",null);_.z([_.S({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],K2);
_.BxX=_.UQ()(K2,"ytd-flow-root-renderer",function(){if(bQF!==void 0)return bQF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return bQF=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var n2X;var E9=null;_.f_(_.b8(function(Y){return _.m("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.m("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.m(_.wv,{text:function(){return Y.data().text}}),_.m("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Qf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.YX}});var M4d=_.b8(function(Y){var b=Y.playerControlsProps;var w=Y.isShortsPage;return _.m("yt-bigboard",null,_.m(_.h,{cond:function(){return b().isDragging},
then:function(){return _.m("div",{class:"ytBigboardStoryboardHost"},_.m(_.XDF,{progressBarProps:b,isShortsPage:w}))}}))},"Rf");
M4d.idomCompat=!0;_.iK={ACCOUNT_LABEL:cM("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:cM("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:cM("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:cM("AD_BADGE_HINT"),AD_BADGE_TEXT:cM("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:cM("ALL_CHANNELS_LABEL"),AMBIENT_MODE:cM("AMBIENT_MODE"),AMBIENT_MODE_OFF:cM("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:cM("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:cM("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:cM("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:cM("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:cM("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:cM("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:cM("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:cM("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:cM("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:cM("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:cM("AUTO_ZOOM","Auto zoom"),BACK:cM("BACK"),CANCEL:cM("CANCEL"),CHANNEL_SWITCHER_LABEL:cM("CHANNEL_SWITCHER_LABEL"),CLOSE:cM("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:cM("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:cM("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:cM("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:cM("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:cM("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:cM("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:cM("COMMENT_MODAL_CONTENT"),CONFIRM_OK:cM("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:cM("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:cM("COPIED_TO_CLIPBOARD"),COPY:cM("COPY"),COPY_DEBUG_INFO:cM("COPY_DEBUG_INFO"),COPY_EMBED_CODE:cM("COPY_EMBED_CODE"),
COPY_LINK_LABEL:cM("COPY_LINK_LABEL"),COPY_VIDEO_URL:cM("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:cM("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:cM("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:cM("DELETE_FROM_DOWNLOADS"),DIALOG:cM("DIALOG"),DONE:cM("DONE"),DOWNLOAD:cM("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:cM("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:cM("FLAG_CONFIRM"),FLAG_CONTENT:cM("FLAG_CONTENT"),FLAG_LABEL:cM("FLAG_LABEL"),FLAG_TITLE:cM("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:cM("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:cM("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:cM("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:cM("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:cM("HIDE_SEARCH_FILTERS_LABEL"),HOME:cM("HOME","Home"),INVALID_RESPONSE_RECEIVED:cM("INVALID_RESPONSE_RECEIVED"),LIBRARY:cM("LIBRARY","Library"),LISTENING:cM("LISTENING"),LOADING:cM("LOADING"),LONG_PRESS_MIC_TO_SPEAK:cM("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:cM("LOOP"),MENU_DESKTOP:cM("MENU_DESKTOP"),
MENU_EXIT:cM("MENU_EXIT"),MENU_FEEDBACK:cM("MENU_FEEDBACK"),MENU_HELP:cM("MENU_HELP"),MENU_IMPRESSUM:cM("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:cM("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:cM("MENU_SETTINGS"),MENU_SIGN_IN:cM("MENU_SIGN_IN"),MENU_TITLE:cM("MENU_TITLE"),MENU_YOUR_DATA:cM("MENU_YOUR_DATA"),MORE_INFO:cM("MORE_INFO"),MORE_OPTIONS:cM("MORE_OPTIONS"),MUTE_VOLUME:cM("MUTE_VOLUME"),NEW_PLAYLIST:cM("NEW_PLAYLIST"),NEXT_VIDEO:cM("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:cM("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:cM("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:cM("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:cM("NOT_FOUND_TITLE"),NO_DOWNLOADS:cM("NO_DOWNLOADS"),NO_MIC_INPUT:cM("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:cM("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:cM("OOPS_MESSAGE"),OPEN_APP:cM("OPEN_APP"),OPEN_YOUTUBE:cM("OPEN_YOUTUBE"),PAUSE:cM("PAUSE"),PLAY:cM("PLAY"),PLAYER_CAPTION:cM("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:cM("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:cM("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:cM("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:cM("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:cM("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:cM("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:cM("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:cM("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:cM("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:cM("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:cM("PLAYER_MINIMIZE"),PLAYER_NEXT:cM("PLAYER_NEXT"),PLAYER_PAUSE:cM("PLAYER_PAUSE"),PLAYER_PLAY:cM("PLAYER_PLAY"),
PLAYER_PREVIOUS:cM("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:cM("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:cM("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:cM("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:cM("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:cM("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:cM("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:cM("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:cM("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:cM("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:cM("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:cM("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:cM("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:cM("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:cM("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:cM("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:cM("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:cM("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:cM("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:cM("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:cM("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:cM("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:cM("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:cM("PLAY_ALL"),PLEASE_FIX_ERRORS:cM("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:cM("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:cM("PREVIOUS_VIDEO"),PRIVACY_POLICY:cM("PRIVACY_POLICY"),RELOAD:cM("RELOAD"),REQUIRED_LABEL:cM("REQUIRED_LABEL"),SAVE_PLAYLIST:cM("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:cM("SCRUB_SLIDE_USER_EDU"),SEARCH:cM("SEARCH","Search"),
SEARCH_APPEND_LABEL:cM("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:cM("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:cM("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:cM("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:cM("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:cM("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:cM("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:cM("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:cM("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:cM("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:cM("SEEK_SLIDER"),SETTINGS_LABEL:cM("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:cM("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:cM("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:cM("SHOW_LESS"),SHOW_MORE:cM("SHOW_MORE"),SHOW_PLAYER_CONTROLS:cM("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:cM("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:cM("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:cM("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:cM("SIGN_IN_ON_WEB"),STABLE_VOLUME:cM("STABLE_VOLUME"),STABLE_VOLUME_OFF:cM("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:cM("STABLE_VOLUME_ON"),STATS_FOR_NERDS:cM("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:cM("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:cM("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:cM("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:cM("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:cM("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:cM("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:cM("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:cM("TIMESTAMP_SECONDS"),TOGGLE_OFF:cM("TOGGLE_OFF"),TOGGLE_ON:cM("TOGGLE_ON"),TRENDING:cM("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:cM("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:cM("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:cM("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:cM("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:cM("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:cM("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:cM("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:cM("VIDEO_LINK_LABEL")};var eUX=_.b8(function(Y){var b=Y.playerApi;Y=_.GM("button",function(V){_.Lq(V,36843)});
var w=cM("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.m("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.m("button",{el:Y,class:"ytPlayerControlsJumpForwardButtonButton",title:w,"aria-label":w,"on:click":_.Q_(function(){_.S$(36843);b&&b().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.m("span",null,_.m(_.n_,{icon:"FAST_FORWARD"}))))},"Sf");var pf7=_.b8(function(Y){var b=Y.appApi;Y=_.GM("button",function(V){_.Lq(V,62946)});
var w=cM("OPEN_IN_MINIPLAYER");return _.m("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.m("button",{el:Y,class:"ytMiniplayerButtonButton",title:w,"aria-label":w,"on:click":_.Q_(function(){_.S$(62946);var V,H;(H=(V=b()).openInMiniplayer)==null||H.call(V);return!1})},_.m(_.n_,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Tf");var O7A=_.b8(function(Y){var b=Y.playerApi;Y=_.GM("button",function(f){_.Lq(f,142812)});
var w=_.N(_.kw(!1,void 0,"I3VCyb")),V=w.next().value,H=w.next().value;w=function(){return cM("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(V()?1:2)})};
return _.m("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.m("button",{el:Y,class:"ytPlaybackSpeedButtonButton",title:w,"aria-label":w,"on:click":_.Q_(function(){_.S$(142812);if(b){var f=b(),E=V();f.setPlaybackRate(E?1:2);H(!V())}return!1})},_.m("span",null,_.m(_.n_,{icon:function(){return V()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Uf");var t4R=_.b8(function(Y){var b=Y.title;var w=Y.ariaLabel;var V=Y.icon;var H=Y.command;var f=Y.veType;Y=_.GM("button",function(E){f&&_.Lq(E,f())});
return _.m("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.m("button",{el:Y,class:"ytdThumbnailOverlayButtonButton",title:b,"aria-label":w,"on:click":_.Q_(function(){f&&_.S$(f());H&&_.fH().resolve(_.Nn).resolveCommand(H())})},_.m(_.n_,{icon:V})))},"Vf");var YA="";var RUO=_.b8(function(Y){var b=Y.playerControlsProps,w=Y.onClickFn;Y=_.sN(function(){var f=b(),E=-1;f.captionsAvailable&&(E=f.captionsEnabled?1:0);return E},void 0,"WecR8e");
var V=_.sN(function(){var f=b();return f.captionsAvailable?_.sa(f.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.sa("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),H=_.sN(function(){var f=b();
f=f.captionsAvailable?f.captionsEnabled:void 0;return f},void 0,"Q17ly");
return _.m("yt-closed-captions-toggle-button",null,_.m(_.HhX,{captionIconType:Y,ariaLabel:V,ariaPressed:H,onClick:function(f){var E=b();if(E.captionsAvailable){var U=E.playerApi;if(U){var X=E.playerApi;if(X){var I=YA;if(I){X=X.getOption("captions","track");var k;YA=(k=X?X.displayName:null)!=null?k:I}else _.F8(X)?(I=_.jNv(X),YA=I.length?(k=LSA(I))?k.displayName:I[0].displayName:""):YA=""}SxF(U);_.q("mweb_disable_set_state_captions_killswitch")&&E.setState({captionsEnabled:!E.captionsEnabled})}}var l,
x;(x=(l=E.appApi).showCaptionsToggleToast)==null||x.call(l,E);w==null||w(f)},
isOverlay:!0}))},"Wf");var d$d=_.b8(function(Y){var b=Y.data;return _.m("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.m(_.YE,{data:function(){return{type:16,text:_.Bct(b().label)}}}))},"Xf");var Fzt=_.b8(function(Y){var b=_.hj("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return Y.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return Y.size()==="small"?Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
Y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.m("animated-seek-arrows",{class:_.hj("ytPlayerControlsAnimatedSeekArrowsHost")},_.m("span",{class:b}),_.m("span",{class:b}),_.m("span",{class:b}))},"Yf");
Fzt.idomCompat=!0;var LzF=_.b8(function(){var Y=_.sa("PLAYER_SECONDS",{seconds_placeholder:"30"}),b=_.N(_.kw(!1,void 0,"Yj8msb")),w=b.next().value,V=b.next().value,H=_.N(_.kw(!1,void 0,"r9Z50e"));b=H.next().value;var f=H.next().value;H={};var E=_.hj("jumpForwardOverlayOverlay",(H.jumpForwardOverlayOverlayHidden=b,H));_.dx(function(){var U=null,X=null,I=function(){U!==null&&_.dp().cancelJob(U);X!==null&&_.dp().cancelJob(X);f(!0);V(!0);_.Xl(_.dp(),function(){f(!1)});
U=_.Xl(_.dp(),function(){f(!0);X=_.Xl(_.dp(),function(){V(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",I);_.R2(function(){window.removeEventListener("jump-forward-clicked",I)})});
return _.m("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.m(_.h,{cond:w,then:function(){return _.m("div",{class:E},_.m(Fzt,{direction:1,size:"large"}),_.m("div",null,Y))}}))},"Zf");var SzR=_.iK.MUTE_VOLUME,aZQ=_.iK.UNMUTE_VOLUME,rqI=_.b8(function(Y){var b=Y.muteIconType;var w=Y.onClick;var V=Y.useOutlineIcon;var H=Y.useDelhiIcons;Y=_.GM("button",function(U){_.Lq(U,28662)});
var f=function(){var U=b(),X=V==null?void 0:V(),I=H==null?void 0:H(),k="",l="";switch(U){case -1:case 0:k=X?"VOLUME_OFF":I?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";l=aZQ;break;case 1:k=X?"VOLUME_UP_OUTLINE":I?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";l=SzR;break;case 2:k=X?"VOLUME_DOWN_OUTLINE":I?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";l=SzR;break;default:_.cI(U)}return{iconName:k,ariaLabel:l}},E=function(){return f().ariaLabel};
return _.m("ytm-mute-button",{class:"ytmMuteButtonHost"},_.m("button",{el:Y,class:"ytmMuteButtonButton",title:E,"aria-label":E,"on:click":_.Q_(function(U){_.S$(28662);w==null||w(U);return!1})},_.m("span",null,_.m(_.n_,{icon:function(){return f().iconName}}))))},"$f");var zUb=_.b8(function(Y){var b=Y.volumeProps;var w=Y.onClickFn;var V=Y.useOutlineIcon;var H=Y.useDelhiIcons;return _.m("yt-mute-toggle-button",null,_.m(rqI,{muteIconType:function(){var f=b();return f.volumeMuted||f.volume===0?0:f.volume>50?1:2},
onClick:function(f){var E=b().playerApi;E&&(E.isMuted()?E.unMute():E.mute(!1));w==null||w(f)},
useOutlineIcon:function(){return!(V==null||!V())},
useDelhiIcons:function(){return!(H==null||!H())}}))},"ag");
zUb.idomCompat=!0;var Wzt=_.b8(function(Y){var b=Y.data;var w=_.GM("ytm-paid-content-overlay-renderer");return _.m("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:w,"on:animationend":_.Q_(function(){w.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.m(_.oG,{command:function(){return b().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.m(_.h,{cond:function(){var V;return(V=b().icon)==null?void 0:V.iconType},
then:function(){return _.m("span",null,_.m(_.n_,{icon:function(){var V;return(V=b().icon)==null?void 0:V.iconType}}))}}),_.m("div",{class:"ytmPaidContentOverlayText"},_.m(_.wv,{text:function(){return b().text}})),_.m(_.h,{cond:function(){return b().navigationEndpoint},
then:function(){return _.m(_.n_,{icon:"CHEVRON_RIGHT"})}})))},"bg");
Wzt.idomCompat=!0;var gGt=[].concat(_.Bt([{register:function(Y){var b=IwQ(Y),w;(w=Y().playerApi)==null||w.addEventListener("onVolumeChange",b);return function(){}}},
{register:function(Y){var b=k_O(Y);Y=Y().playerApi;Y==null||Y.addEventListener("captionschanged",b);Y==null||Y.addEventListener("captionssettingschanged",b);Y==null||Y.addEventListener("onCaptionsTrackListChanged",b);return function(){}}},
{register:function(Y){if(!_.q("mweb_screenreader_accessible_player"))return function(){};
var b=lwI(Y),w=document.querySelector("video");w==null||w.addEventListener("touchend",b);return function(){w==null||w.removeEventListener("touchend",b)}}},
{register:function(Y){if(!_.q("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var b=lwI(Y),w=document.querySelector("video");w==null||w.addEventListener("focus",b);return function(){w==null||w.removeEventListener("focus",b)}}}]),[{register:function(Y){var b=XEt(Y),w;
(w=Y().playerApi)==null||w.addEventListener("onStateChange",b);return function(){}}},
{register:function(Y){var b=Dfd(Y),w;(w=Y().playerApi)==null||w.addEventListener("onPlaybackRateChange",b);return function(){}}},
{register:function(Y){var b=mfd(Y),w;(w=Y().playerApi)==null||w.addEventListener("onVideoDataChange",b);return function(){}}},
{register:function(Y){var b=oGX(Y),w,V;(w=Y())==null||(V=w.playerApi)==null||V.addEventListener("onVideoProgress",b);return function(){}}}]);var Kz7=_.b8(function(Y){var b=Y.data;var w=function(){return _.sa("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+b().playbackRate})};
return _.m(_.h,{cond:function(){return b().playbackRate&&b().playbackRate!==1},
then:function(){return _.m("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.m("div",{class:"ytPlaybackRateOverlayOverlay"},_.m(Fzt,{direction:1,size:"small"}),_.m("div",{class:"ytPlaybackRateOverlayLabel"},w)))}})},"cg");var i77=_.b8(function(Y){var b=Y.data;return _.m("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.m(_.h,{cond:function(){var w,V=(w=b())==null?void 0:w.playerResponse,H;return V==null?void 0:(H=V.paidContentOverlay)==null?void 0:H.paidContentOverlayRenderer},
then:function(w){return _.m(Wzt,{data:w})}}))},"eg"),AqA=_.b8(function(Y){var b=Y.props;
var w=Y.data;var V=Y.options;var H=function(){var I,k,l,x;return(I=w())==null?void 0:(k=I.playerResponse)==null?void 0:(l=k.playerConfig)==null?void 0:(x=l.inlinePlaybackConfig)==null?void 0:x.showAudioControls},f=function(){var I,k;
if(H()&&((I=V())==null?void 0:(k=I.additionalButton)==null?void 0:k.button)!==void 0){var l,x,Q;I=(l=w())==null?void 0:(x=l.playerApi)==null?void 0:(Q=x.getSize())==null?void 0:Q.height;if(!(I===void 0||I<180)){var Z,e;return(Z=V())==null?void 0:(e=Z.additionalButton)==null?void 0:e.button}}},E=function(){var I,k;
return(I=V())==null?void 0:(k=I.additionalButton)==null?void 0:k.thumbnailOverlayButtonRenderers},U=function(){var I,k;
return(I=V())==null?void 0:(k=I.additionalButton)==null?void 0:k.thumbnailOverlayButtonViewModels},X=function(){var I=[_.m(zUb,{volumeProps:b}),
_.m(RUO,{playerControlsProps:b})];f()===1&&I.push(_.m(eUX,{playerApi:function(){return b().playerApi}}));
f()===2&&I.push(_.m(pf7,{appApi:function(){return b().appApi}}));
f()===3&&I.push(_.m(O7A,{playerApi:function(){return b().playerApi}}));
var k=E();if(f()===4&&k){k=_.N(k);for(var l=k.next(),x={};!l.done;x={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},l=k.next()){l=l.value;x.tooltip$jscomp$2=l.tooltip;var Q=void 0,Z=void 0;x.ariaLabel$jscomp$20=((Q=l.accessibility)==null?void 0:(Z=Q.accessibilityData)==null?void 0:Z.label)||x.tooltip$jscomp$2;Q=void 0;x.icon$jscomp$52=(Q=l.icon)==null?void 0:Q.iconType;x.command$jscomp$569=l.command;x.tooltip$jscomp$2&&x.ariaLabel$jscomp$20&&x.icon$jscomp$52&&
I.push(_.m(t4R,{title:function(e){return function(){return e.tooltip$jscomp$2}}(x),
ariaLabel:function(e){return function(){return e.ariaLabel$jscomp$20}}(x),
icon:function(e){return function(){return e.icon$jscomp$52}}(x),
command:function(e){return function(){return e.command$jscomp$569}}(x)}))}}k=U();
if(f()===4&&k)for(k=_.N(k),l=k.next(),x={};!l.done;x={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},l=k.next())l=l.value,x.tooltip$jscomp$3=l.title,x.ariaLabel$jscomp$21=l.accessibilityText||x.tooltip$jscomp$3,x.icon$jscomp$53=l.iconName,x.command$jscomp$570=_.zT(l.onTap),x.tooltip$jscomp$3&&x.ariaLabel$jscomp$21&&x.icon$jscomp$53&&I.push(_.m(t4R,{title:function(e){return function(){return e.tooltip$jscomp$3}}(x),
ariaLabel:function(e){return function(){return e.ariaLabel$jscomp$21}}(x),
icon:function(e){return function(){return e.icon$jscomp$53}}(x),
command:function(e){return function(){return e.command$jscomp$570}}(x)}));
return I};
return _.m(_.h,{cond:H,then:function(){return _.m("div",{class:"ytInlinePlayerControlsTopRightControls"},_.m(_.Bf,{each:X},function(I){return _.m("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.m("div",{class:"ytInlinePlayerControlsButtonIcon"},I))}))}})},"fg"),$$s=_.b8(function(Y){var b=Y.props;
var w=Y.data;var V=Y.options;Y={};Y=_.hj("ytInlinePlayerControlsBottomRightControls",(Y.ytInlinePlayerControlsBottomRightControlsHidden=function(){var H;return xfd(w(),V())&&((H=V())==null?void 0:H.insetProgressBar)&&(b().isHovering||b().isDragging)},Y));
return _.m("div",{class:Y},_.m(C1I,{data:w}),_.m(_.h,{cond:function(){var H;return!((H=V())==null?0:H.hideTimeDisplay)},
then:function(){return _.m(yqA,{props:b,data:w})}}))},"gg"),C1I=_.b8(function(Y){var b=Y.data;
return _.m(_.OH,{data:function(){var w;return wER((w=b())==null?void 0:w.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:d$d})},"hg"),yqA=_.b8(function(Y){var b=Y.props;
var w=Y.data;return _.m(_.h,{cond:function(){return b().isLive},
then:function(){return _.m(jIN,null)},
else:function(){return _.m(GOt,{props:b,data:w})}})},"ig"),GOt=_.b8(function(Y){var b=Y.props;
var w=Y.data;var V=_.sN(function(){var H;return HCs((H=w())==null?void 0:H.thumbnailOverlays)},void 0,"kUmuA");
return _.m("div",{class:_.hj("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.iK.PLAYER_TIME_ELAPSED+" "+_.yCu(b().playedTime)}},_.m(_.YE,{data:function(){var H=_.yCu(b().videoDuration-b().playedTime);
return Object.assign({},{type:16,text:H},V())}}))},"jg"),jIN=_.b8(function(){var Y=_.hj("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.m("div",{class:Y},_.m(_.YE,{data:{type:17,text:_.iK.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"kg"),Txg=_.b8(function(Y){var b=Y.props;
var w=Y.data;var V=Y.options;return _.m(_.lgt,{progressBarProps:b,config:function(){var H,f=_.v((H=w())==null?void 0:H.multiMarkersPlayerBar,_.Ls$),E;H=((E=V())==null?0:E.insetProgressBar)?2:1;var U;E=(U=V())==null?void 0:U.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:H,chapterData:f,isInlinePlayback:!0,doSeekOnClick:E,playheadDotBehavior:E?1:0}}})},"lg");_.f_(_.b8(function(Y){var b=Y.data;var w=Y.appApi;var V=Y.options;var H=UfI(b,hdA(w));Y={};w={};return _.m("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.m("div",{class:_.hj("ytInlinePlayerControlsDarkenedOverlay",(Y.ytInlinePlayerControlsDarkenedOverlayShow=function(){return H().isHovering},Y))}),_.m(LzF,null),_.m(Kz7,{data:H}),_.m(i77,{data:b}),_.m(M4d,{playerControlsProps:H,
isShortsPage:!1}),_.m("div",{class:_.hj((w.ytInlinePlayerControlsControlsHidden=function(){return H().isDragging},w))},_.m(AqA,{props:H,
data:b,options:V}),_.m($$s,{props:H,data:b,options:V})),_.m(_.h,{cond:function(){return xfd(b(),V())},
then:function(){return _.m(Txg,{props:H,data:b,options:V})}}))},"dg"),"yt-inline-player-controls",{props:{data:_.YX,
appApi:_.gn,options:_.YX}});var Ak=function(){var Y=_.F.apply(this,arguments)||this;Y.opts=null;Y.playerControlsData=null;Y.playerControlsAppApi={openInMiniplayer:function(){Y.openInMiniplayer()}};
Y.playerControlsOptions={};Y.noAnimation=!1;Y.playbackIntentTriggered=!1;Y.positionData=null;Y.hidden=!0;Y.active=!1;Y.playing=!1;Y.videoPreviewDataIndex=0;Y.JSC$16948_playerPromise=null;Y.player=null;Y.enableAudioControls=!1;Y.hasBeenUnmuted=!1;Y.captionsHaveBeenTurnedOff=!1;Y.JSC$16948_playerEvents=new Map;Y.videoPreviewFetchRequest=null;Y.scheduledPreviewEndJobId=null;Y.JSC$16948_preventProgressSaveTimer=null;Y.watchEndpointStartTimeUpdaterInterval=null;Y.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};Y.windowOnBlurFn=function(){Y.deactivate()};
return Y};
_.P(Ak,_.F);_.g=Ak.prototype;
_.g.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.q("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"}}}};
_.g.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16948_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16948_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16948_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16948_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Io(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Io(this,this.onScroll))};
_.g.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Io(this,this.onScroll))};
_.g.onPageTypeChange=function(){this.deactivate()};
_.g.onWindowResized=function(){this.deactivate()};
_.g.onCaptionsChanged=function(Y){Y=!!Y.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!Y);this.setCaptionSize()};
_.g.setCaptionSize=function(){var Y;if(this.active&&!this.captionsHaveBeenTurnedOff&&((Y=this.player)==null?0:Y.getCaptionWindowContainerId())){var b;(b=this.player)==null||b.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.g.currentPageAllowed=function(){return!this.isWatchPage};
_.g.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var Y=this.positionData,b=Y.initialTopPosition,w=Y.initialHorizontalPosition;_.m_(this.hostElement,{"--ytd-video-preview-translate-left":Y.finalHorizontalPosition-w+"px","--ytd-video-preview-translate-top":Y.finalTopPosition-b+"px","--ytd-video-preview-original-top-position":b+"px","--ytd-video-preview-original-horizontal-position":w+"px",
"--ytd-video-preview-initial-scale":"scale("+Y.initialScale+")","--ytd-video-preview-width":Y.videoPreviewWidth+"px","--ytd-video-preview-height":Y.videoPreviewHeight+"px"});return!0};
_.g.handleOpenVideoPreviewAction=function(Y){var b=this,w;return _.c(function(V){if(!b.currentPageAllowed())return V.return(0);b.opts=Y;return(w=b.alignVideoPreviewForAnimation(Y.thumbnail))?V.return(b.activate()):V.return(0)})};
_.g.onMouseLeave=function(Y){this.shouldDeactivateOnMouseLeave(Y)&&this.deactivate()};
_.g.onScroll=function(){var Y,b;((Y=this.opts)==null?0:Y.isAutoplay)&&((b=this.opts)==null?0:b.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.g.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Lb.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.g.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.g.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Ak.JSC$16947_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ak.JSC$16947_CLICK_LOCATION_ID_MAP)};
_.g.shouldDeactivateOnMouseLeave=function(Y){Y=Y.relatedTarget;if(!Y)return!0;var b;return(b=this.opts)!=null&&b.mediaRenderer?!_.cX(this.opts.mediaRenderer).contains(Y):!0};
_.g.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.g.onPlaybackStart=function(){var Y=this;if(this.player&&this.playbackIntentTriggered&&this.currentPageAllowed()){this.playing=!0;this.allowUnmuting()&&this.hasBeenUnmuted&&(this.player.unMute(),this.player.syncVolume());this.player.isSubtitlesOn()?this.captionsHaveBeenTurnedOff||!this.allowCaptions()?this.player.toggleSubtitles():this.setCaptionSize():!this.captionsHaveBeenTurnedOff&&this.allowCaptions()&&this.player.toggleSubtitles();this.resetPreventProgressSaveTimer();this.JSC$16948_preventProgressSaveTimer=
_.Xl(_.Lb,function(){Y.resetPreventProgressSaveTimer()},1E4);
var b;if((b=this.opts)==null?0:b.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Xl(_.Lb,function(){Y.hasMultipleVideoPreviews()?Y.startPlaybackForNextVideo():Y.deactivate()},this.opts.videoPreviewDurationMs);
var w;this.player.setGlobalCrop(((w=this.opts)==null?0:w.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.g.getRoundedCornersSize=function(){var Y;if((Y=this.opts)==null?0:Y.roundedCornersSize){var b;return(b=this.opts)==null?void 0:b.roundedCornersSize}var w;if((w=this.opts)==null?0:w.enableRounding){var V;if(((V=this.opts)==null?void 0:V.thumbnailSize)==="small")return 1;var H;if(((H=this.opts)==null?void 0:H.thumbnailSize)==="medium")return 2;var f;if(((f=this.opts)==null?void 0:f.thumbnailSize)==="large")return 3}return _.q("web_imp_inset_progress_bar")?3:0};
_.g.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.g.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.g.onMediaContainerClick=function(Y){this.isShortcutClick(Y)||(this.navigateToWatch(Y),Y.preventDefault(),Y.stopPropagation())};
_.g.activate=function(){var Y=this,b,w,V,H,f,E,U,X,I;return _.c(function(k){switch(k.nextAddress){case 1:if(!Y.currentPageAllowed())return k.return(0);w=(b=Y.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint;V=_.C_.instance;if(!w||!V)return k.return(0);Y.playbackIntentTriggered=!0;((H=Y.opts)==null?0:H.mediaRenderer)&&((f=Y.opts)==null||!f.isAutoplay)&&Y2d(Y.opts.mediaRenderer,function(){Y.deactivate()});
_.TC(Y,function(){Y.revealPreviewUi()});
E={};_.q("enable_unknown_lact_fix_on_html5")&&(_.fH().resolve(_.dn),E.lact=_.fB());Y.videoPreviewFetchRequest=$DA(V,Y.getInlinePlaybackRequestData(Y.videoPreviewData),E);_.ct(k,2);return _.D(k,Y.videoPreviewFetchRequest,4);case 4:U=k.yieldResult;if(((X=U)==null?void 0:(I=X.playabilityStatus)==null?void 0:I.status)==="OK")return k.return(Y.handlePlayerResponse(U));throw Error("Nj");case 2:_.mS(k),Y.deactivate();case 3:return k.return(1)}})};
_.g.getInlinePlaybackRequestData=function(Y){var b,w=_.q("web_imp_player_mute_params")?((b=this.opts)==null?void 0:b.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:Y.inlinePlaybackEndpoint,startPlaybackInMutedState:w}};
_.g.handlePlayerResponse=function(Y){var b=this,w,V,H,f,E,U,X,I,k,l;return _.c(function(x){if(x.nextAddress==1){w=b.getInlinePlaybackVideoId();if(!(((V=Y)==null?0:(H=V.videoDetails)==null?0:H.videoId)&&b.currentPageAllowed()&&b.playbackIntentTriggered&&b.opts&&w))return b.deactivate(),x.return(0);if(Y.videoDetails.videoId!==w)return x.return(0);b.enableAudioControls=!!((f=Y.playerConfig)==null?0:(E=f.inlinePlaybackConfig)==null?0:E.showAudioControls);Y.trackingParams=b.getInlinePlaybackTrackingParams();
if(!b.inlinePlayer)return x.return(0);U={};if(I=_.v((X=b.videoPreviewData)==null?void 0:X.inlinePlaybackEndpoint,_.TG))U.watch_endpoint=I;if(b.videoPreviewData){var Q,Z=(Q=_.v(b.videoPreviewData.inlinePlaybackEndpoint,_.TG))==null?void 0:Q.startTimeSeconds;Z!==void 0&&(Y.playerConfig||(Y.playerConfig={}),Y.playerConfig.playbackStartConfig||(Y.playerConfig.playbackStartConfig={}),Y.playerConfig.playbackStartConfig.startPosition||(Y.playerConfig.playbackStartConfig.startPosition={}),Y.playerConfig.playbackStartConfig.startSeconds=
Z,Y.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(Z*1E3))}b.inlinePlayer.loadVideoWithPlayerResponse(Y,U);if(b.JSC$16948_playerPromise)return x.jumpTo(2);b.JSC$16948_playerPromise=b.inlinePlayer.getPlayerPromise();return _.D(x,b.JSC$16948_playerPromise,3)}x.nextAddress!=2&&(k=x.yieldResult,k.setInlinePreview(!0),k.setSizeStyle(!1,!0),b.ytPlayerListenerBehavior.listenToPlayerEvents(k,b.JSC$16948_playerEvents),b.player=k,_.Ua(b.hostElement,"player-api-ready"));((l=b.opts)==
null?0:l.showPlayerControls)&&b.videoPreviewData&&b.player&&(b.playerControlsData={playerResponse:Y,isInlinePlayback:!0,thumbnailOverlays:b.videoPreviewData.thumbnailOverlays,playerApi:b.player},b.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!b.unroundCornersForPlayback,additionalButton:b.getAdditionalButtonType(b.videoPreviewData.thumbnailOverlays)});return x.return(2)})};
_.g.revealPreviewUi=function(){var Y=this;this.playbackIntentTriggered&&_.RXB(this,function(){Y.hasThumbnailPositionChangedSinceTriggered()||(Y.updateActiveState(!0),Y.noAnimation=!1)})};
_.g.hasThumbnailPositionChangedSinceTriggered=function(){var Y=this.positionData,b=this.getThumbnailPositionData();return(Y==null?void 0:Y.initialTopPosition)!==(b==null?void 0:b.initialTopPosition)||(Y==null?void 0:Y.initialHorizontalPosition)!==(b==null?void 0:b.initialHorizontalPosition)};
_.g.getThumbnailPositionData=function(){var Y,b;if((b=this.opts)==null||!b.thumbnail)return null;b=this.opts.thumbnail;var w=((Y=this.opts)==null?0:Y.cropPlayerToFillThumbnailHorizontally)?!1:!0;var V=b.getBoundingClientRect();Y=V.width;b=V.height;var H=V.top+window.scrollY;V=V.left+window.scrollX;var f=w?Math.ceil(Y):Y;w=w?Math.ceil(b):b;var E=Y/f;Y={initialScale:E,initialTopPosition:H-12*E,finalTopPosition:H-12-(w-b)/2,initialHorizontalPosition:V-(12+(f-Y)/2),finalHorizontalPosition:V-12-(f-Y)/
2,videoPreviewWidth:f,videoPreviewHeight:w};return Y};
_.g.updateActiveState=function(Y){this.active=Y;this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:Y}))};
_.g.stopPlayer=function(Y){Y=Y.resetWatchEndpointStartTime===void 0?!1:Y.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(Y)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Lb.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.g.deactivate=function(Y){Y=Y===void 0?{}:Y;Y=Y.resetWatchEndpointStartTime===void 0?!1:Y.resetWatchEndpointStartTime;E9&&(E9.disconnect(),E9=null);this.stopPlayer({resetWatchEndpointStartTime:Y});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.g.isValidThumbnailOverlayButton=function(Y,b){Y=Y.thumbnailOverlayButtonRenderer;var w;return!!Y&&!!Y.tooltip&&!((w=Y.icon)==null||!w.iconType)&&b.includes(Y.icon.iconType)};
_.g.isValidThumbnailOverlayButtonViewModel=function(Y,b){var w;Y=_.v((w=Y.thumbnailOverlayButtonViewModel)==null?void 0:w.overlayButton,_.Bv);return!!Y&&!!Y.title&&!!Y.iconName&&b.includes(Y.iconName)};
_.g.getAdditionalButtonType=function(Y){var b=this;if(_.q("web_imp_fastforward_button"))return{button:1};if(_.q("web_imp_miniplayer_button"))return{button:2};if(_.q("web_imp_playback_speed_button"))return{button:3};var w=["BOX_STACK_3"],V=(Y||[]).filter(function(f){return b.isValidThumbnailOverlayButton(f,w)}).map(function(f){return f.thumbnailOverlayButtonRenderer});
if(V.length)return{button:4,thumbnailOverlayButtonRenderers:V};var H=["BOX_STACK_3"];Y=(Y||[]).filter(function(f){return b.isValidThumbnailOverlayButtonViewModel(f,H)}).map(function(f){return _.v(f.thumbnailOverlayButtonViewModel.overlayButton,_.Bv)});
if(Y.length)return{button:4,thumbnailOverlayButtonViewModels:Y}};
_.g.allowCaptions=function(){var Y;return!((Y=this.opts)==null?0:Y.forceCaptionsOff)};
_.g.allowUnmuting=function(){var Y;return this.enableAudioControls&&!((Y=this.opts)==null?0:Y.forceMutedVolume)};
_.g.beginStartTimeUpdater=function(){var Y=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.oV(function(){Y.updateWatchEndpointStartTime()},1E3)};
_.g.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.g.resetPreventProgressSaveTimer=function(){this.JSC$16948_preventProgressSaveTimer!==null&&(_.Lb.cancelJob(this.JSC$16948_preventProgressSaveTimer),this.JSC$16948_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.g.updateWatchEndpointStartTime=function(Y){var b=this.videoPreviewData;if(this.player&&b!=null&&b.inlinePlaybackEndpoint&&!this.JSC$16948_preventProgressSaveTimer){Y=Y?0:Math.floor(this.player.getCurrentTime());var w=_.v(b.navigationEndpoint,_.TG);w&&(w.startTimeSeconds=Y);if(b=_.v(b.inlinePlaybackEndpoint,_.TG))b.startTimeSeconds=Y}};
_.g.isShortcutClick=function(Y){return!!Y&&(Y.ctrlKey||Y.shiftKey||Y.metaKey)};
_.g.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.g.openInMiniplayer=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1){w=(b=Y.videoPreviewData)==null?void 0:b.navigationEndpoint;if(!w)return V.return();_.sL().lockupActivation=!0;return _.D(V,_.z5d(_.fH().resolve(_.Ck),w),2)}_.sL().userActivation=!0;_.om(V)})};
_.g.navigateToWatch=function(Y){var b,w=(b=this.videoPreviewData)==null?void 0:b.navigationEndpoint;if(w){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(w,Y,!0);else{if(_.q("web_thumbnail_to_watch_transition")){var V,H;(V=this.opts)==null||(H=V.onNavigateToWatchCallback)==null||H.call(V)}_.Ua(this.hostElement,"yt-navigate",{endpoint:w})}this.deactivate()}};
_.g.getInlinePlaybackVideoId=function(){var Y,b;return(b=_.v((Y=this.videoPreviewData)==null?void 0:Y.inlinePlaybackEndpoint,_.TG))==null?void 0:b.videoId};
_.g.getInlinePlaybackTrackingParams=function(){var Y,b;return(Y=this.videoPreviewData)==null?void 0:(b=Y.inlinePlaybackEndpoint)==null?void 0:b.clickTrackingParams};
_.g.hasMultipleVideoPreviews=function(){var Y;return!!(((Y=this.opts)==null?0:Y.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.g.startPlaybackForNextVideo=function(){var Y;(Y=this.opts)!=null&&Y.videoPreviewData&&Array.isArray(this.opts.videoPreviewData)&&this.opts.videoPreviewData.length!==0&&(this.videoPreviewDataIndex=(this.videoPreviewDataIndex+1)%this.opts.videoPreviewData.length,this.stopPlayer({resetWatchEndpointStartTime:!0}),this.activate())};
_.up.Object.defineProperties(Ak.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.opts)==null?0:Y.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.opts)==null||!Y.isAdsVideo)}},
roundedCornersSmall:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===1}},
roundedCornersMedium:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===2}},
roundedCornersLarge:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===3}},
unroundCornersForPlayback:{configurable:!0,enumerable:!0,get:function(){return this.getRoundedCornersSize()===0}},
videoPreviewData:{configurable:!0,enumerable:!0,get:function(){var Y;if(Array.isArray((Y=this.opts)==null?void 0:Y.videoPreviewData)){var b;return(b=this.opts)==null?void 0:b.videoPreviewData[this.videoPreviewDataIndex]}var w;return(w=this.opts)==null?void 0:w.videoPreviewData}}});
Ak.prototype.onIsAdsVideoChange=Ak.prototype.onIsAdsVideoChange;Ak.prototype.onInlinePreviewIsEnabledChange=Ak.prototype.onInlinePreviewIsEnabledChange;Ak.prototype.optsChanged=Ak.prototype.optsChanged;Ak.prototype.onMouseLeave=Ak.prototype.onMouseLeave;Ak.JSC$16947_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Ak.JSC$16947_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"}];
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ak.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ak.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],Ak.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ak.prototype,"componentBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Ak.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.wQ.YtSparklesClickLocationBehavior),_.K("design:type",Object)],Ak.prototype,"ytSparklesClickLocationBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ak.prototype,"opts",void 0);_.z([_.R(),_.K("design:type",Object)],Ak.prototype,"playerControlsData",void 0);
_.z([_.R(),_.K("design:type",Object)],Ak.prototype,"playerControlsAppApi",void 0);_.z([_.R(),_.K("design:type",Object)],Ak.prototype,"playerControlsOptions",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ak.prototype,"noAnimation",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ak.prototype,"hidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ak.prototype,"active",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ak.prototype,"playing",void 0);_.z([_.R({selector:_.kkM}),_.K("design:type",Boolean)],Ak.prototype,"inlinePreviewIsEnabled",void 0);_.z([_.R(),_.K("design:type",String)],Ak.prototype,"pagePath",void 0);_.z([_.R({selector:_.Sl}),_.K("design:type",Boolean)],Ak.prototype,"isWatchPage",void 0);_.z([_.t("videoPreviewData"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ak.prototype,"thumbnailData",null);
_.z([_.t("opts","active"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ak.prototype,"hidePlayerControls",null);_.z([_.t("opts"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ak.prototype,"isAdsVideo",null);_.z([_.t("opts"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ak.prototype,"roundedCornersSmall",null);
_.z([_.t("opts"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ak.prototype,"roundedCornersMedium",null);_.z([_.t("opts"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ak.prototype,"roundedCornersLarge",null);_.z([_.t("opts"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ak.prototype,"unroundCornersForPlayback",null);
_.z([_.t("opts","videoPreviewDataIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ak.prototype,"videoPreviewData",null);_.z([_.R(),_.K("design:type",Object)],Ak.prototype,"videoPreviewDataIndex",void 0);_.z([_.xZ("#inline-player"),_.K("design:type",Object)],Ak.prototype,"inlinePlayer",void 0);_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[MouseEvent]),_.K("design:returntype")],Ak.prototype,"onMouseLeave",null);
_.z([_.vX("opts"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ak.prototype,"optsChanged",null);_.z([_.vX("inlinePreviewIsEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ak.prototype,"onInlinePreviewIsEnabledChange",null);_.z([_.lr("isAdsVideo"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ak.prototype,"onIsAdsVideoChange",null);
_.z([_.S({is:"ytd-video-preview",disableElementRegistration:!0})],Ak);
_.a(Ak,"ytd-video-preview",function(){if(n2X!==void 0)return n2X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-preview--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-preview-container" class="style-scope ytd-video-preview">\n  <div id="endorsement" class="style-scope ytd-video-preview"></div>\n  <div id="media-container" class="style-scope ytd-video-preview">\n    <a id="media-container-link" class="yt-simple-endpoint style-scope ytd-video-preview" href$="[[computeHref_(videoPreviewData.navigationEndpoint)]]" data="[[videoPreviewData.navigationEndpoint]]" aria-label$="[[videoPreviewData.accessibilityText]]" on-click="onMediaContainerClick">\n      <div id="thumbnail-container" class="style-scope ytd-video-preview">\n        <ytd-thumbnail data="[[thumbnailData]]" hovered="false" no-rounded-corners="" object-fit="COVER" rich-grid-thumbnail="" width="9999" class="style-scope ytd-video-preview">\n        </ytd-thumbnail>\n      </div>\n      <div id="player-container" class="style-scope ytd-video-preview">\n        <ytd-player id="inline-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_INLINE_PREVIEW" class="style-scope ytd-video-preview">\n        </ytd-player>\n      </div>\n      <div id="overlays" class="style-scope ytd-video-preview"></div>\n    </a>\n    <div id="player-controls" class="style-scope ytd-video-preview">\n      <template is="dom-if" if="[[!!playerControlsData]]" class="style-scope ytd-video-preview">\n        <yt-inline-player-controls app-api="[[playerControlsAppApi]]" data="[[playerControlsData]]" options="[[playerControlsOptions]]" class="style-scope ytd-video-preview"></yt-inline-player-controls>\n      </template>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return n2X=Y},{mode:2});
}catch(e){_._DumpException(e)}
try{
var WMI,KMX,i5b;WMI=function(Y){return _.q("kevlar_watch_cinematics_invisible")||Y.fullscreen&&_.q("kevlar_watch_cinematics_invisible_in_fullscreen")||Y.theater&&!Y.fullscreen&&_.q("kevlar_watch_cinematics_invisible_in_theater")};
KMX=function(){var Y=document.createElement("canvas"),b=Y.getContext("2d");if(!b)throw Error("$l");_.ze(Y,{position:"absolute",width:"100%",height:"100%"});return{element:Y,context:b}};
i5b=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.q("kevlar_watch_cinematics_css_blur")};
_.AKt=function(Y,b,w){return Math.abs(Y-b)<=(w||1E-6)};
_.CTX=function(Y,b){return Y==b?!0:Y&&b?Y.width==b.width&&Y.height==b.height:!1};_.yK7=new _.A("notificationActionRenderer");var $jI=function(Y){var b=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.mD;this.element.addEventListener("load",function(){b.loaded=!0;b.resolver.resolve(b.element)});
this.element.addEventListener("error",function(){b.failed=!0});
this.element.src=Y};var jFR=function(Y,b){this.image=Y;this.frame=b};
jFR.prototype.drawToCanvas=function(Y,b){var w=this.frame.width/this.frame.columns,V=this.frame.height/this.frame.rows,H=b.offsetX,f=b.offsetY;WMI(b)?(Y.fillStyle=b.fullscreen?"#000":"#0f0f0f",Y.fillRect(H,f,(b==null?void 0:b.width)||w,(b==null?void 0:b.height)||V)):Y.drawImage(this.image,this.frame.column*w,this.frame.row*V,w,V,H,f,(b==null?void 0:b.width)||w,(b==null?void 0:b.height)||V)};
var G7X=function(Y){this.color=Y};
G7X.prototype.drawToCanvas=function(Y,b){var w=b.offsetX,V=b.offsetY,H=b.width,f=b.height;Y.fillStyle=WMI(b)?b.fullscreen?"#000":"#0f0f0f":this.color;Y.fillRect(w,V,H,f)};var b_=function(Y,b){_.G$.call(this);this.playerApi=b;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.mE(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();THA(this,Y);JKN(this);this.update()};
_.P(b_,_.G$);b_.prototype.addEventListeners=function(){var Y=this,b=function(){Y.update()},w=function(H){Y.paused||(H.type==="newdata"&&(Y.mosaics.clear(),u0g(Y),wg(Y)),JKN(Y),Y.update())},V=function(){Y.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",b);this.playerApi.addEventListener("onVideoDataChange",w);this.playerApi.addEventListener("onStateChange",V);this.addOnDisposeCallback(function(){Y.playerApi.removeEventListener("onVideoProgress",b);Y.playerApi.removeEventListener("onVideoDataChange",w);Y.playerApi.removeEventListener("onStateChange",V)})};
var THA=function(Y,b){Y.cinematicContainerRenderer!==b&&(Y.cinematicContainerRenderer=b,u0g(Y),wg(Y),Y.colorStoreUpdateJobId=_.Lb.addLowPriorityJob(function(){var w;if((w=Y.cinematicContainerRenderer.colorStore)!=null&&w.sampledColors){w=Infinity;for(var V=_.N(Y.cinematicContainerRenderer.colorStore.sampledColors),H=V.next();!H.done;H=V.next()){H=H.value;var f=Number(H.key);f!==0&&f<w&&(w=f);f=_.KX(H.value);Y.colorStore.set(H.key,f)}Y.colorStoreTimeInterval=w}}))},u0g=function(Y){Y.colorStoreUpdateJobId&&
(_.Lb.cancelJob(Y.colorStoreUpdateJobId),Y.colorStoreUpdateJobId=void 0);
Y.colorStore.clear();Y.currentStoryboardColor=void 0},YpX=function(Y,b){var w;
return(w=Y.getStoryboardFrame(b))==null?void 0:w.url};
b_.prototype.onPlayerStateChange=function(){this.update()};
b_.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var JKN=function(Y){var b=Y.getStoryboardFrame(0);b&&(b=new _.mE(b.width/b.columns,b.height/b.rows),_.CTX(Y.currentStoryboardSize,b)||(Y.currentStoryboardSize=b,Y.publish("STORYBOARD_SIZE_CHANGED",Y.currentStoryboardSize)))},bfQ=function(Y,b){Y.currentStoryboardIndex=b;
Y.pendingStoryboardIndex=NaN;b=Y.getStoryboardFrame(Y.currentStoryboardIndex);Y.currentStoryboard=new jFR(Y.mosaics.get(b.url).element,b);Y.publish("STORYBOARD_CHANGED",Y.currentStoryboard);Y.lastUpdateTime=(0,_.gG)()};
b_.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var wg=function(Y){Y.currentStoryboardIndex=NaN;Y.pendingStoryboardIndex=NaN;Y.currentStoryboard&&(Y.currentStoryboard=void 0,Y.publish("STORYBOARD_CHANGED",void 0));Y.lastUpdateTime=NaN};
b_.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)wg(this);else{var Y=this.playerApi.getPlayerState(1);if(Y===-1||Y===5||Y===0)wg(this);else if(isNaN(this.lastUpdateTime)||!((0,_.gG)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(Y=this.playerApi.getCurrentTime()+(this.playerApi.getPlayerState(1)===2?0:this.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs*
this.cinematicContainerRenderer.config.animationConfig.crossfadeStartOffset/1E3),this.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR")if(this.colorStore.size){Y=""+Math.round(Y*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var b=this.colorStore.get(Y);b?b!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=b,this.currentStoryboard=new G7X(b),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.gG)()):(_.Sk(new _.BQ("Could not find color for timestamp: "+Y,this.cinematicContainerRenderer)),wg(this))}else wg(this);else w_R(this,Y)}};
var w_R=function(Y,b){var w=Y.getStoryboardFrameIndex(b);if(w!==Y.currentStoryboardIndex&&w!==Y.pendingStoryboardIndex){b=YpX(Y,w);var V=Y.mosaics.get(b);V?V.loaded&&bfQ(Y,w):(Y.pendingStoryboardIndex=w,w=new $jI(b),Y.mosaics.set(b,w),w.resolver.promise.then(function(){if(!Y.isDisposed()&&!Y.paused&&!isNaN(Y.pendingStoryboardIndex)){var H=YpX(Y,Y.pendingStoryboardIndex);if(H){var f;(f=Y.mosaics.get(H))!=null&&f.loaded&&bfQ(Y,Y.pendingStoryboardIndex)}else wg(Y)}}))}};
b_.prototype.getStoryboardFrameIndex=function(Y){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(Y,b)};
b_.prototype.getStoryboardFrame=function(Y){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,w,V;return((V=(w=this.playerApi).getStoryboardFrame)==null?void 0:V.call(w,Y,b))||null};
b_.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Hi=function(Y,b,w,V){V=V===void 0?!1:V;_.BE.call(this);this.cinematicContainerRenderer=b;this.playerApi=w;this.theater=this.fullscreen=!1;var H;this.ambientLightThemeEnabled=!V&&!!(b==null?0:(H=b.config)==null?0:H.enableInLightTheme);this.ambientFullscreenEnabled=V&&_.q("web_cinematic_fullscreen");this.container=document.createElement("div");Y.appendChild(this.container);var f;if(_.q("web_cinematic_theater_mode")||_.q("web_cinematic_fullscreen")||(b==null?0:(f=b.config)==null?0:f.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);VUd(this);Y=this.ambientV2Container||this.container;this.backCanvas=KMX();this.frontCanvas=KMX();Y.appendChild(this.backCanvas.element);Y.appendChild(this.frontCanvas.element);this.storyboardManager=new b_(b,this.playerApi);_.os(this,this.storyboardManager);this.addEventListeners();HfQ(this)?gYI(this,100+Vf(this)*3*2,100+Vf(this)*3*2):fOs(this);NcR(this,this.storyboardManager.currentStoryboard)};
_.P(Hi,_.BE);var VUd=function(Y){Y.ambientV2Container?EYA(Y):(_.ze(Y.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+cGR(Y)+", "+Ugs(Y)+")"}),i5b()&&_.ze(Y.container,"filter","blur("+_.cQ("cinematic_watch_css_filter_blur_strength",40)+"px)"))},EYA=function(Y){if(Y.ambientV2Container){var b=Y.playerApi.getVideoAspectRatio();
_.ze(Y.container,{"aspect-ratio":""+b,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.ze(Y.ambientV2Container,{"aspect-ratio":""+b,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+cGR(Y)+", "+Ugs(Y)+")"});i5b()&&_.ze(Y.ambientV2Container,"filter","blur("+_.cQ("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Hi.prototype.setFullscreen=function(Y,b){this.fullscreen=Y;this.theater=!!b;VUd(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),Y=this.storyboardManager.currentStoryboard,X_d(this),Y&&Dg7(this,Y)};
Hi.prototype.addEventListeners=function(){var Y=this,b=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(H){NcR(Y,H)}),w=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){fOs(Y)});
this.addOnDisposeCallback(function(){Y.storyboardManager.unsubscribeByKey(b);Y.storyboardManager.unsubscribeByKey(w)});
if(this.ambientV2Container){var V=function(){EYA(Y)};
this.playerApi.addEventListener("onVideoDataChange",V);this.addOnDisposeCallback(function(){Y.playerApi.removeEventListener("onVideoDataChange",V)})}};
var fOs=function(Y){if(!HfQ(Y)){var b=Y.storyboardManager.currentStoryboardSize;isNaN(b.width)||isNaN(b.height)||gYI(Y,Number(b.width)+Vf(Y)*3*2,Number(b.height)+Vf(Y)*3*2)}},gYI=function(Y,b,w){Y.backCanvas.element.width=b;
Y.backCanvas.element.height=w;Y.frontCanvas.element.width=b;Y.frontCanvas.element.height=w},HfQ=function(Y){return Y.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},NcR=function(Y,b,w){w=w===void 0?!1:w;
var V=Y.frontCanvas.element.getAnimations()[0];V?(V.pause(),Y.backCanvas.context.globalAlpha=Number(getComputedStyle(Y.frontCanvas.element).opacity),Y.frontCanvas.element.style.opacity="0",V.finish()):Y.backCanvas.context.globalAlpha=1;Y.backCanvas.context.drawImage(Y.frontCanvas.element,0,0,Y.backCanvas.element.width,Y.backCanvas.element.height);X_d(Y);b&&Dg7(Y,b);b=b?Y.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.cQ("cinematic_watch_fade_out_duration",500);V=_.cQ("cinematic_watch_transition_frame_rate")/
1E3;var H={};V&&(H={easing:"steps("+Math.round(b*V)+")"});(w===void 0?0:w)||Y.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:b,iterations:1},H));Y.frontCanvas.element.style.opacity="1"},X_d=function(Y){var b=Y.ambientLightThemeEnabled,w=Y.ambientLightThemeEnabled||Y.ambientFullscreenEnabled&&!_.q("web_cinematic_fullscreen_v2");
Y.frontCanvas.context.fillStyle=Y.theater&&b||Y.fullscreen&&w?"#000":"#0f0f0f";i5b()||(Y.frontCanvas.context.filter="blur(0)");Y.frontCanvas.context.fillRect(0,0,Y.frontCanvas.element.width,Y.frontCanvas.element.height)},Dg7=function(Y,b){i5b()||(Y.frontCanvas.context.filter="blur("+Vf(Y)+"px)");
Y.frontCanvas.context.globalAlpha=_.cQ("cinematic_watch_effect_opacity",.4);var w={offsetX:Vf(Y)*3,offsetY:Vf(Y)*3,theater:Y.theater,fullscreen:Y.fullscreen};HfQ(Y)&&(w.width=100,w.height=100);b.drawToCanvas(Y.frontCanvas.context,w);Y.frontCanvas.context.globalAlpha=1},Vf=function(Y){var b;
return(b=Y.cinematicContainerRenderer.config.blurStrength)!=null?b:5},cGR=function(Y){var b,w;
if((Y.fullscreen||Y.theater)&&((b=Y.cinematicContainerRenderer.config)==null?0:(w=b.watchFullscreenConfig)==null?0:w.colorSourceWidthMultiplier))return Y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var V;return(V=Y.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?V:Y.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Ugs=function(Y){var b,w;
if((Y.fullscreen||Y.theater)&&((b=Y.cinematicContainerRenderer.config)==null?0:(w=b.watchFullscreenConfig)==null?0:w.colorSourceHeightMultiplier))return Y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var V;return(V=Y.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?V:Y.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Hi.prototype.disposeInternal=function(){_.BE.prototype.disposeInternal.call(this);this.container.remove()};
Hi.prototype.clear=function(){NcR(this,void 0,!0)};
Hi.prototype.pause=function(){this.storyboardManager.pause()};var mgb;mgb=_.PY(function(){var Y,b,w=!((b=(Y=document.createElement("canvas")).getContext)==null||!b.call(Y,"2d")),V;Y=!((V=CSS)==null||!V.supports("filter: blur(0)"));V=!!Element.prototype.animate&&!!Element.prototype.getAnimations;b=_.q("web_cinematic_fullscreen")||_.q("web_cinematic_theater_mode")||_.q("web_cinematic_light_theme")||!1;var H;return w&&Y&&V&&(!b||!((H=CSS)==null||!H.supports("aspect-ratio: 1 / 1")))});
_.gg=function(Y,b){_.G$.call(this);this.container=Y;this.playerApi=b;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=oYR(this);this.update()};
_.P(_.gg,_.G$);_.IOX=function(Y){var b=document.documentElement.hasAttribute("dark");Y.isDarkModeEnabled=b;Y.update()};
_.kRd=function(Y,b){Y.settingEnabled=b;Y.update()};
_.gg.prototype.setFullscreen=function(Y,b){this.fullscreen=Y;this.theater=!!b;this.update()};
_.lOR=function(Y,b){Y.cinematicContainerRenderer=b;Y.cinematicContainerRenderer&&(Y.cinematicsVe=_.tj(Y.isShorts()?227858:159022),_.oC(_.Qd(),Y.cinematicsVe),Y.loggingClientData={watchCinematicContainerData:{presentationStyle:Y.cinematicContainerRenderer.presentationStyle}});Y.update()};
_.gg.prototype.isShorts=function(){var Y,b;return((Y=this.cinematicContainerRenderer)==null?void 0:(b=Y.config)==null?void 0:b.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.gg.prototype.isAllowed=function(){var Y;if(Y=mgb()){var b,w,V;Y=((w=this.cinematicContainerRenderer)==null?void 0:w.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((V=this.cinematicContainerRenderer)==null||!V.colorStore)||((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(Y)if(_.q("web_cinematics_pausing")){var H,f;Y=this.isDarkModeEnabled||!!((H=this.cinematicContainerRenderer)==
null?0:(f=H.config)==null?0:f.enableInLightTheme)}else{var E,U;H=!!((E=this.cinematicContainerRenderer)==null?0:(U=E.config)==null?0:U.enableInLightTheme)&&(_.zO("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);Y=this.isDarkModeEnabled||H}if(E=Y){var X,I;E=!((I=(X=this.prefersReducedMotionQuery)==null?void 0:X.matches)!=null&&I)}return E};
_.hvt=function(Y){(Y=Y.currentCinematicEffect)!=null&&(Y=Y.storyboardManager,Y.paused=!1,JKN(Y),Y.update())};
_.gg.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var oYR=function(Y){if(!_.q("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var b=window.matchMedia("(prefers-reduced-motion: reduce)"),w=function(){Y.update()};
b.addListener(w);Y.addOnDisposeCallback(function(){b.removeListener(w)});
return b}};
_.gg.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var Y=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Hi(this.container,Y,this.playerApi,this.isDarkModeEnabled),_.os(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var b=this.currentCinematicEffect;b.cinematicContainerRenderer!==
Y&&(b.cinematicContainerRenderer=Y,THA(b.storyboardManager,Y),VUd(b));Y=_.P0();_.Ze(0,194,!0);Y.save();Y=_.dO();this.cinematicsVe&&Y&&_.Gu(Y,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(Y=_.dO(),this.cinematicsVe&&Y&&_.Tu(Y,[this.cinematicsVe],!1,this.loggingClientData),_.ua(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.up.Object.defineProperties(_.gg.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var lNQ;var h_Q;_.pV({_template:function(){if(h_Q!==void 0)return h_Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-pages--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_pages.tp.yt.iron.pages.css.js--\x3e<slot class="style-scope tp-yt-iron-pages"></slot>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=
Y.content,w=b.insertBefore;lNQ===void 0&&(lNQ=document.createElement("template"));var V=lNQ;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return h_Q=Y},
is:"tp-yt-iron-pages",behaviors:[_.Li,_.CV],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var DBF;_.mBt=function(){if(_.q("kevlar_home_skeleton")&&!DBF){var Y=document.querySelector("#home-page-skeleton");Y&&(_.S1("hgcr"),_.qf(Y),DBF=!0)}};
DBF=!1;_.Qi=new _.A("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var V$N,gNt,fhI,NJO,ENQ,cNt,U2F,Xot,m2F,oNF,lht,x2X,qlb,hpd,Ihd,knt,vNg;_.wot=function(Y,b,w){b=b===void 0?5:b;if(b!==0){var V=typeof Y==="function"?Y():document.querySelector(Y);V?(w==null?0:w.enableSmartFocus)?_.uIu(V):V.focus():setTimeout(function(){_.wot(Y,b-1,w)},500)}};
V$N=function(Y){return String.raw.apply(String,[{raw:Y}].concat(_.Bt(_.BN.apply(1,arguments).map(function(b){return b instanceof Array?b.join(""):b}))))};
gNt=function(Y){var b=_.BN.apply(1,arguments);if(!Array.isArray(Y)||!Array.isArray(Y.raw)||Y.length!==Y.raw.length||!_.sZI&&Y===Y.raw||!(_.sZI&&!_.QZu||_.DD(Y))||b.length+1!==Y.length)throw new TypeError("ea");return new Hqb(Object.freeze({strings:Object.freeze(Y),args:Object.freeze(b)}))};
fhI=function(Y){return _.bUL(_.YUv(Y&16777215))<.5};
NJO=function(Y,b,w){var V=w.minimumRowsOfVideosBetweenSections===void 0?1:w.minimumRowsOfVideosBetweenSections;return Y<(w.minimumRowsOfVideosAtStart===void 0?2:w.minimumRowsOfVideosAtStart)||b!==null&&Y-b<=V?!1:!0};
ENQ=function(Y,b){var w=0,V=0;Y=_.N(Y);for(var H=Y.next();!H.done;H=Y.next()){var f=H.value;if(f.richItemRenderer)f.richItemRenderer.rowIndex=V,f.richItemRenderer.colIndex=w++,w===b&&(w=0,V++);else if(f.richGroupRenderer&&f.richGroupRenderer.numColumns!==void 0)f.richGroupRenderer.rowIndex=V,f.richGroupRenderer.colIndex=w,w+=f.richGroupRenderer.numColumns,w===b&&(w=0,V++);else if(f.richSectionRenderer){var E=H=void 0;if(f=_.v((H=f)==null?void 0:(E=H.richSectionRenderer)==null?void 0:E.content,_.ffK))f.rowIndex=
V++}}};
cNt=function(Y,b){var w=b.contentElement;b=b.rendererToTagNameMap;if(w&&b&&b.size!==0){for(var V=new Map,H=_.N(w.children),f=H.next();!f.done;f=H.next()){f=f.value;var E=f.tagName.toLowerCase(),U=V.get(E);U||(U=[],V.set(E,U));U.push(f)}if(V.size!==0)for(H=Math.min(Y.length,w.children.length),f=new Map,E=0;E<H;E++){U=Object.keys(Y[E])[0];U=b.get(U);if(!U)break;var X=f.get(U);X===void 0&&(X=0,f.set(U,X));var I=V.get(U);if(!I||X>=I.length)break;f.set(U,X+1);U=I[X];X=w.children[E];X!==U&&(_.y7e=!0,_.$L6.set(U,
!0),w.insertBefore(U,X),_.$L6.delete(U),_.y7e=!1)}}};
U2F=function(Y,b,w,V,H,f,E){V=V===void 0?{}:V;if(!Y||!Y.length)return[];Y=Y.slice();var U=[],X=[];H=null;for(var I=0,k=function(L){X.sort(function(W,y){return y.skippedOnRow-W.skippedOnRow});
for(var r,C=(r=X.shift())==null?void 0:r.content;C;)!C.richSectionRenderer&&L||U.push(C),r=void 0,C=(r=X.shift())==null?void 0:r.content},l=[];Y.length>0||X.length>0;){for(var x=[],Q=b;Q>0;){var Z=void 0,e=void 0,O=(e=X[0]&&X[0].skippedOnRow<I?(Z=X.shift())==null?void 0:Z.content:void 0)!=null?e:Y.shift();
if(!O)break;if(O.richItemRenderer)Z=O.richItemRenderer.targetId,e=void 0,Z&&((e=E)==null?0:e.has(Z))&&l.push(E.get(Z)),x.push(O),Q--;else if(O.richGroupRenderer&&O.richGroupRenderer.numColumns!==void 0)O.richGroupRenderer.numColumns<=Q?(x.push(O),Q-=O.richGroupRenderer.numColumns):Q===b&&O.richGroupRenderer.numColumns>b?(x.push({richGroupRenderer:Object.assign({},O.richGroupRenderer,{numColumns:b})}),Q=0):X.push({content:O,skippedOnRow:I});else if(O.richSectionRenderer)if(NJO(I,H,V)&&Q===b){U.push(O);
H=I;I++;continue}else X.push({content:O,skippedOnRow:I});else if(O.continuationItemRenderer){k(!0);U.push(O);Q=0;break}if(Q===0)U.push.apply(U,_.Bt(x));else if(!w&&Y.length===0){k(!1);U.push.apply(U,_.Bt(x));Q=0;break}}I++;l=_.N(l);for(x=l.next();!x.done;x=l.next())U.push(x.value),I++;l=[]}ENQ(U,b);f&&cNt(U,f);return U};
Xot=function(){return _.BN.apply(0,arguments).flat().filter(function(Y){return Y}).join(";")};
m2F=function(){return gNt(D2I,Xot.apply(null,_.Bt(_.BN.apply(0,arguments))))};
oNF=function(Y){return Y.talkToRecs};
lht=function(Y,b){if(b){var w=_.u3().getState().entities.flowStateEntity,V=Ihd(Y),H=[b];V&&V!==b&&H.push(V);var f=!0,E;if(w&&Y.flowStateEntityKey&&((E=w[Y.flowStateEntityKey])==null?void 0:E.primaryButtonDisabled)!==void 0){var U;f=!((U=w[Y.flowStateEntityKey])==null||!U.primaryButtonDisabled)}knt(Y,V!=null?V:b,H,f)}};
x2X=function(Y){return _.vB(_.u3(),function(b){return b.entities.flowStateEntity},function(b,w){if(Y.flowStateEntityKey){var V,H=b==null?void 0:(V=b[Y.flowStateEntityKey])==null?void 0:V.currentStepId,f;
w=w==null?void 0:(f=w[Y.flowStateEntityKey])==null?void 0:f.currentStepId;f=_.u3().getState().talkToRecs;if(H&&H!==w){var E;b=(b==null?void 0:(E=b[Y.flowStateEntityKey])==null?void 0:E.stepIdStack)||Object.keys(f.stepStates);E=!hpd(f==null?void 0:f.stepStates[H]);knt(Y,H,b,E)}}})};
qlb=function(Y){return _.vB(_.u3(),oNF,function(b){var w=Ihd(Y);if(w){var V=Object.keys(b.stepStates);b=!hpd(b==null?void 0:b.stepStates[w]);knt(Y,w,V,b)}})};
hpd=function(Y){var b=Object.keys((Y==null?void 0:Y.selectionStates)||{}).reduce(function(f,E){return f||(Y==null?void 0:Y.selectionStates[E].isSelected)},!1),w,V,H=!!(Y==null?0:(w=Y.userQuery)==null?0:(V=w.userQuery)==null?0:V.trim());
return b||H};
Ihd=function(Y){if(Y.flowStateEntityKey){var b,w,V=(b=_.u3().getState().entities.flowStateEntity)==null?void 0:(w=b[Y.flowStateEntityKey])==null?void 0:w.currentStepId;if(V)return V}};
knt=function(Y,b,w,V){_.u3().dispatch(_.qo("flowStateEntity",Y.flowStateEntityKey,{currentStepId:b,stepIdStack:w,key:Y.flowStateEntityKey,primaryButtonDisabled:V}))};
_.s4g=function(Y,b){return _.kt(Y.entities,"youchatPendingResponseEntity",b)};
_.Q4t=function(Y){return function(b){_.Td(_.qo("youchatPendingResponseEntity",Y,{entityKey:Y,isPendingResponse:b}))}};
vNg=function(Y){Y==null||Y.addEventListener("DOMLoaded",function(){Y.goToAndPlay(Y.totalFrames-48,!0)})};
_.N$=function(Y){this.__isSoyCss=!0;this.css=V$N.apply(null,[Y.strings].concat(_.Bt(Y.args)))};
_.N$.prototype.toString=function(){return this.css};
var Hqb=function(){_.N$.apply(this,arguments)};
_.P(Hqb,_.N$);var D2I=_.wM(["",""]);var PdI;var Zqd;_.pV({_template:function(){if(Zqd!==void 0)return Zqd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-material--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_material.tp.yt.paper.material.css.js--\x3e<slot class="style-scope tp-yt-paper-material"></slot>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
var b=Y.content,w=b.insertBefore;PdI===void 0&&(PdI=document.createElement("template"));var V=PdI;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return Zqd=Y},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var BJg=new _.A("talkToRecsFlowRenderer");var nNs=new _.A("flowRootRenderer");var M$I=new _.A("learningJourneyQuizViewModel");var epI=new _.A("chipsShelfViewModel");var poF=new _.A("responsiveContainerConfiguration");var OqQ=new _.A("horizontalShelfViewModel");_.t$t=new _.A("engagementPanelSectionListRenderer");var RpX=new _.A("conversationResourceViewModel");var d2b=function(){this.horizontal=!1},FWI=function(Y,b){Y.horizontal=b};
d2b.prototype.position=function(Y,b,w,V){V=V===void 0?1:V;Y=this.delta(Y)*V+b;V=Math.max(b,w);return Y>=Math.min(b,w)&&Y<=V?Y:w};
d2b.prototype.axis=function(Y){Y=this.direction(Y);return Y==="up"||Y==="down"?"Y":"X"};var cJ=function(Y,b,w){b=b===void 0?_.pZ():b;this.target=Y;this.manager=b;this.touchAction=w;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
cJ.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(_.Bt(this.events)));for(var Y=_.N(this.events),b=Y.next();!b.done;b=Y.next())this.listen(b.value)}};
cJ.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Bt(this.events)));for(var Y=_.N(this.events),b=Y.next();!b.done;b=Y.next())this.unlisten(b.value)}};
cJ.prototype.listen=function(Y){this.eventMap[Y]&&this.target.addEventListener(Y,this.eventMap[Y])};
cJ.prototype.unlisten=function(Y){this.eventMap[Y]&&this.target.removeEventListener(Y,this.eventMap[Y])};var UW=function(){d2b.apply(this,arguments)};
_.P(UW,d2b);UW.prototype.direction=function(Y){var b=Y.detail;Y=b.deltaY;b=b.deltaX;return Y&&!this.horizontal?Y>0?"down":"up":b&&this.horizontal?b>0?"right":"left":"none"};
UW.prototype.distance=function(Y){return Math.abs(this.delta(Y))};
UW.prototype.delta=function(Y){var b=this.direction(Y),w=Y.detail;Y=w.deltaX;w=w.deltaY;return b==="up"||b==="down"?w||0:Y||0};
UW.prototype.velocity=function(Y){var b=this.direction(Y),w=Y.detail;Y=w.velocityX;w=w.velocityY;return Math.abs(b==="up"||b==="down"?w||0:Y||0)};_.Xe=function(Y,b,w,V,H,f){H=H===void 0?new UW:H;f=f===void 0?_.pZ():f;cJ.call(this,b,f,V);var E=this;this.element=Y;this.target=b;this.config=w;this.input=H;this.manager=f;this.events=["panstart","panmove","panend"];this.onPanStart=function(){E.config.draggingClass&&E.element.classList.add(E.config.draggingClass);E.config.startAction&&E.config.startAction()};
this.onPanMove=function(U){var X=LWs(E,U);if(X){E.move(U,X);X.fade&&E.fade(U,X);var I=E.input.direction(U);X.moveAction&&X.moveAction(SlR(E,U,X),I)}};
this.onPanEnd=function(U){var X,I,k,l,x,Q;return _.c(function(Z){if(Z.nextAddress==1){E.animationRequestId&&cancelAnimationFrame(E.animationRequestId);E.animationRequestId=void 0;X=LWs(E,U);if(!X)return Z.return();I=X;k=I.triggerAction;l=I.fade;x=I.disableFinish;Q=I.translateBack;var e=E.input.velocity(U),O=E.input.distance(U),L=E.threshold(X);return e>.3&&O>10||O>L?x?Z.jumpTo(6):l?_.D(Z,ahs(E,U),6):_.D(Z,rNQ(E,U,X),6):Q?_.D(Z,E.translateBack(U),3):Z.jumpTo(3)}Z.nextAddress!=3&&k&&k();E.config.draggingClass&&
E.element.classList.remove(E.config.draggingClass);E.reset();_.om(Z)})};
Y=Object.keys(w.triggers);this.directions=new Set(Y);FWI(this.input,this.directions.has("right")||this.directions.has("left"))};
_.P(_.Xe,cJ);_.Xe.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var LWs=function(Y,b){b=Y.input.direction(b);return Y.config.triggers[b]};
_.Xe.prototype.move=function(Y,b){var w=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var V=w.input.axis(Y),H=w.input.position(Y,w.config.startPosition,b.endPosition,b.moveRatio||1);w.element.style.transform="translate"+V+"("+H+"px)";w.animationRequestId=void 0}))};
var SlR=function(Y,b,w){var V=w.moveRatio||1;w=Math.abs(Y.config.startPosition-w.endPosition);return Math.min(Y.input.distance(b)*V,w)/w};
_.Xe.prototype.fade=function(Y,b){var w=b.endOpacity;Y=SlR(this,Y,b);Y>0&&(this.element.style.opacity=""+(((w||0)-1)*Y+1))};
_.Xe.prototype.threshold=function(Y){return Y.threshold?Y.threshold:Math.abs(Y.endPosition-this.config.startPosition)/3};
var rNQ=function(Y,b,w){var V,H,f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1)return V=Y.input.delta(b)+Y.config.startPosition,H=Y.input.axis(b),f=w,E=f.endPosition,U=f.transitionEndPosition,I=(X=U)!=null?X:E,_.D(k,Y.element.animate([{transform:"translate"+H+"("+V+"px)"},{transform:"translate"+H+"("+I+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.element.style.transform="translate"+H+"("+I+"px)";_.om(k)})};
_.Xe.prototype.translateBack=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1){if(!b.element.style.transform)return H.return();w=b.input.axis(Y);V=b.config.startPosition;return _.D(H,b.element.animate([{transform:b.element.style.transform},{transform:"translate"+w+"("+V+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}b.element.style.transform="translate"+w+"("+V+"px)";_.om(H)})};
var ahs=function(Y,b){var w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return w=Y.input.delta(b)+Y.config.startPosition,V=Y.input.axis(b),H=w+70,f=Y.element.style.opacity===""?1:Y.element.style.opacity,_.D(E,Y.element.animate([{transform:"translate"+V+"("+w+"px)",opacity:f},{transform:"translate"+V+"("+H+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.element.style.transform="translate"+V+"("+H+"px)";Y.element.style.opacity="0";_.om(E)})};var DJ=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;Y.scrollRate=3;Y.autoScrollAnimationStart=0;Y.autoScrollPaused=!1;Y.autoScrollRafId=0;return Y};
_.P(DJ,_.s6);_.g=DJ.prototype;_.g.created=function(){var Y=this;this.boundAutoScrollHandler=function(b){Y.autoScroll(b)}};
_.g.detached=function(){this.hostElement.removeEventListener("mouseout",_.Io(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Io(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Io(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.g.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Io(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Io(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Io(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Io(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Io(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Io(this,this.endAutoScroll)),this.endAutoScroll())};
_.g.autoScroll=function(Y){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=Y);var b;if(b=!this.autoScrollPaused&&this.scrollTarget)b=this.scrollTarget,b=b.scrollHeight-b.scrollTop!==b.clientHeight;b&&(b=1E3/this.scrollRate,Y-=this.autoScrollAnimationStart,Y>b&&(this.scrollTarget.scrollTop+=Math.ceil(Y/b),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.g.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.g.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
DJ.prototype.autoScrollEnabledChanged=DJ.prototype.autoScrollEnabledChanged;_.z([_.R(),_.K("design:type",Object)],DJ.prototype,"scrollRate",void 0);_.z([_.R(),_.K("design:type",Object)],DJ.prototype,"scrollTarget",void 0);_.z([_.R(),_.K("design:type",Boolean)],DJ.prototype,"autoScrollEnabled",void 0);_.z([_.lr("autoScrollEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DJ.prototype,"autoScrollEnabledChanged",null);_.z([_.QC()],DJ);_.zpO=[DJ.prototype];var WWt;var mj=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonUpdate=_.q("web_button_rework");Y.dismissButtonOverrides=_.q("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;Y.forceDarkTheme=!1;Y.forceLightTheme=!1;Y.dynamicTextHeight=94;Y.hasOverflowButton=!1;Y.isInfeedModernization=!1;return Y};
_.P(mj,_.F);_.g=mj.prototype;_.g.computeUrlImg=function(Y){if(Y)return _.Ev(Y.thumbnails)};
_.g.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"31":"24"};
_.g.getLogoClassName=function(Y){return this.logoWithPadding(Y)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.g.logoWithPadding=function(Y){var b,w;return(Y=(b=Y.thumbnails)==null?void 0:(w=b[0])==null?void 0:w.height)&&Y%31===0?!0:!1};
_.g.sendImpressionEndpoints=function(Y){Y.impressionEndpoints&&_.oP(this.hostElement,Y.impressionEndpoints)};
_.g.observeBasicPalette=function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.colorData)==null?void 0:b.basicColorPaletteData;w?_.Fl(this.hostElement,w):_.Fl(this.hostElement,{})};
_.g.observeDataChanged=function(){var Y;this.dynamicTextHeight=((Y=this.data)==null?0:Y.supplementalText)?74:94;var b;this.hasSupplementalText=!((b=this.data)==null||!b.supplementalText);if(_.q("web_button_rework")){var w,V,H,f;Y=(w=this.data)==null?void 0:(V=w.actionButton)==null?void 0:(H=V.buttonRenderer)==null?void 0:(f=H.colorData)==null?void 0:f.basicColorPaletteData;var E,U,X;if(!((E=this.data)==null?0:(U=E.actionButton)==null?0:(X=U.buttonRenderer)==null?0:X.style)&&Y){this.computeIsInfeedModernization(this.data)||
(Y.borderColor=Y.foregroundTitleColor);var I,k;this.set("data.actionButton.buttonRenderer",_.BL.unsafeClone((I=this.data)==null?void 0:(k=I.actionButton)==null?void 0:k.buttonRenderer))}}};
_.g.observeDataForCounterfactual=function(){if(_.q("kevlar_banner_cf_extra_logging")){var Y;((Y=this.data)==null?0:Y.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.g.computeSupplementalStyle=function(){var Y;if((Y=this.data)!=null&&Y.supplementalText){var b,w,V;if((b=this.data)==null?0:(w=b.colorData)==null?0:(V=w.basicColorPaletteData)==null?0:V.foregroundActivatedColor)return Y=_.WH(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+Y+"; --yt-endpoint-hover-color:"+Y+"; --yt-endpoint-visited-color:"+Y+"; --yt-formatted-string-bold-font-weight:700;"}};
_.g.computeForcedDarkTheme=function(){var Y,b,w,V=(Y=this.data)==null?void 0:(b=Y.actionButton)==null?void 0:(w=b.buttonRenderer)==null?void 0:w.style,H,f,E;Y=fhI(((H=this.data)==null?void 0:(f=H.colorData)==null?void 0:(E=f.basicColorPaletteData)==null?void 0:E.backgroundColor)||0);return V&&Y};
_.g.computeForcedLightTheme=function(){var Y,b,w,V=(Y=this.data)==null?void 0:(b=Y.actionButton)==null?void 0:(w=b.buttonRenderer)==null?void 0:w.style,H,f,E;Y=!fhI(((H=this.data)==null?void 0:(f=H.colorData)==null?void 0:(E=f.basicColorPaletteData)==null?void 0:E.backgroundColor)||0);return V&&Y};
_.g.computeHasOverflowButton=function(Y){return!!Y.overflowButton};
_.g.computeHasTitle=function(Y){return!!Y.title};
_.g.computeTitleMaxFontSize=function(Y){return this.computeHasOverflowButton(Y)?28:64};
_.g.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.g.computeIsInfeedModernization=function(){var Y,b,w,V,H=(Y=this.data)==null?void 0:(b=Y.actionButton)==null?void 0:(w=b.buttonRenderer)==null?void 0:(V=w.colorData)==null?void 0:V.basicColorPaletteData;return(H==null?void 0:H.backgroundColor)===452984831||(H==null?void 0:H.backgroundColor)===218103808};
mj.prototype.observeDataForCounterfactual=mj.prototype.observeDataForCounterfactual;mj.prototype.observeDataChanged=mj.prototype.observeDataChanged;mj.prototype.observeBasicPalette=mj.prototype.observeBasicPalette;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],mj.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],mj.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mj.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mj.prototype,"buttonUpdate",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],mj.prototype,"hasSupplementalText",void 0);_.z([_.R(),_.K("design:type",Object)],mj.prototype,"dismissButtonOverrides",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.K("design:type",Boolean)],mj.prototype,"hasTitle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.K("design:type",Object)],mj.prototype,"forceDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.K("design:type",Object)],mj.prototype,"forceLightTheme",void 0);_.z([_.R(),_.K("design:type",Object)],mj.prototype,"dynamicTextHeight",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.K("design:type",Object)],mj.prototype,"hasOverflowButton",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.K("design:type",Object)],mj.prototype,"isInfeedModernization",void 0);_.z([_.lr("data.colorData.basicColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mj.prototype,"observeBasicPalette",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mj.prototype,"observeDataChanged",null);_.z([_.lr("data.isVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mj.prototype,"observeDataForCounterfactual",null);_.z([_.S({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],mj);
_.a(mj,"ytd-banner-promo-renderer",function(){if(WWt!==void 0)return WWt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.isVisible]]" class="style-scope ytd-banner-promo-renderer">\n  <div class="ytd-banner-promo-renderer-background style-scope ytd-banner-promo-renderer">\n    <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" hidden="[[data.overflowButton]]" overrides="[[dismissButtonOverrides]]" on-click="onDismissClick" class="style-scope ytd-banner-promo-renderer">\n    </ytd-button-renderer>\n    <ytd-menu-renderer id="overflow-button" data="[[data.overflowButton.menuRenderer]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-banner-promo-renderer">\n    </ytd-menu-renderer>\n    <div class="ytd-banner-promo-renderer-layout-container style-scope ytd-banner-promo-renderer">\n      <div class="ytd-banner-promo-renderer-layout style-scope ytd-banner-promo-renderer">\n        <img alt="" class="ytd-banner-promo-renderer-inline-image style-scope ytd-banner-promo-renderer" src$="[[computeUrlImg(data.backgroundImage)]]">\n        <template is="dom-if" if="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n          <h1 class$="[[getLogoClassName(data.logoImage)]] style-scope ytd-banner-promo-renderer">\n            <yt-img-shadow height$="[[getLogoHeight(data.logoImage)]]" thumbnail="[[data.logoImage]]" class="style-scope ytd-banner-promo-renderer">\n            </yt-img-shadow>\n          </h1>\n        </template>\n        <div class="ytd-banner-promo-renderer-content style-scope ytd-banner-promo-renderer">\n          <div class="dynamic-text-container style-scope ytd-banner-promo-renderer">\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-short style-scope ytd-banner-promo-renderer" font-family="[[data.titleFontFamily]]" hidden="[[!data.title]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.title]]">\n            </yt-dynamic-sizing-formatted-string>\n            <yt-dynamic-sizing-formatted-string class="dynamic-title-long style-scope ytd-banner-promo-renderer" hidden="[[!data.promoText]]" max-font-size="[[computeTitleMaxFontSize(data)]]" max-height="[[dynamicTextHeight]]" max-lines="2" max-width="440" min-font-size="20" text="[[data.promoText]]">\n            </yt-dynamic-sizing-formatted-string>\n          </div>\n          <yt-attributed-string class="badge-text style-scope ytd-banner-promo-renderer" data="[[data.badgeText]]" hidden="[[!data.overflowButton]]">\n          </yt-attributed-string>\n          <yt-formatted-string class="supplemental-text style-scope ytd-banner-promo-renderer" style$="[[computeSupplementalStyle()]]" text="[[data.supplementalText]]">\n          </yt-formatted-string>\n          <ytd-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" invisible$="[[!data.actionButton.buttonRenderer]]" class="style-scope ytd-banner-promo-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return WWt=Y},{mode:1});var KWX;var iqg;var AN7;var oE=function(){return _.F.apply(this,arguments)||this};
_.P(oE,_.F);_.z([_.R(),_.K("design:type",Object)],oE.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.z([_.S({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],oE);
_.a(oE,"ytd-hashtag-grid-tile-renderer",function(){if(AN7!==void 0)return AN7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-hashtag-grid-tile-renderer" href$="[[computeHref_(data.onTapCommand)]]" data="[[data.onTapCommand]]">\n  <div id="info" class="style-scope ytd-hashtag-grid-tile-renderer">\n    <yt-formatted-string id="hashtag" aria-label="[[data.suggestion]]" text="[[data.hashtag]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="hashtag-info" text="[[data.hashtagVideoCountText]]" class="style-scope ytd-hashtag-grid-tile-renderer">\n    </yt-formatted-string>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return AN7=Y},{mode:1});var IE=function(){return _.F.apply(this,arguments)||this};
_.P(IE,_.F);IE.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
IE.prototype.updateRichGridTrendingHashtagsVisibility=function(){var Y,b;if(((Y=this.data)==null||!Y.isExpanded)&&(b=this.data)!=null&&b.tiles){Y=this.data.tiles.length;b=Y>this.richGridItemsPerRow?this.richGridItemsPerRow+1:Y;var w=Math.ceil(Y/b);this.fullyVisibleRows=Y%b===1&&w===2?1:Math.min(w,2);this.isShowMoreVisible=this.fullyVisibleRows<w}};
IE.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
IE.prototype.updateRichGridTrendingHashtagsVisibility=IE.prototype.updateRichGridTrendingHashtagsVisibility;_.z([_.R(),_.K("design:type",Object)],IE.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Number)],IE.prototype,"fullyVisibleRows",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],IE.prototype,"isShowMoreVisible",void 0);_.z([_.R({selector:_.FZ,value:0}),_.K("design:type",Number)],IE.prototype,"richGridItemsPerRow",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],IE.prototype,"ytdReduxBehavior",void 0);_.z([_.lr("data","richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IE.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.z([_.S({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],IE);
_.a(IE,"ytd-hashtag-grid-shelf-renderer",function(){if(iqg!==void 0)return iqg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-grid-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-text" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-formatted-string id="title" text="[[data.shelfTitle]]" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-formatted-string>\n</div>\n<div id="tiles" class="style-scope ytd-hashtag-grid-shelf-renderer"></div>\n<tp-yt-paper-button id="show-more-button" aria-label$="[[data.expandButtonText]]" noink="" on-click="onShowMoreClick" class="style-scope ytd-hashtag-grid-shelf-renderer">\n  <yt-icon id="show-more-button-icon" icon="yt-icons:expand" class="style-scope ytd-hashtag-grid-shelf-renderer"></yt-icon>\n</tp-yt-paper-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return iqg=Y},{mode:1});var CdN;var yNX;var kj=function(){var Y=_.F.apply(this,arguments)||this;Y.visibleVideos=[];Y.hiddenVideos=[];Y.modern=_.q("web_modern_buttons");Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(kj,_.F);_.g=kj.prototype;_.g.attached=function(){var Y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.onDarkModeToggledAction(Y)};
_.g.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"}}}};
_.g.dataChanged=function(){var Y=this;this.requestElementsPerRow();var b,w;this.currentColorPalette=this.isDarkTheme?(b=this.data)==null?void 0:b.darkColorData:(w=this.data)==null?void 0:w.lightColorData;var V;if((V=this.currentColorPalette)==null?0:V.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.TC(this,function(){Y.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.g.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.g.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.g.computeIsFirstFeedItem=function(Y){return Y};
_.g.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y);this.data&&(this.currentColorPalette=Y?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.g.getCurrentLogo=function(Y,b){if(Y)return b?Y.darkLogoImage:Y.lightLogoImage};
_.g.computeTitleStyle=function(Y){var b;if((b=this.data)!=null&&b.title&&Y&&Y.textPrimary!==void 0)return"color:"+_.WH(Y.textPrimary)+";"};
_.g.computeSubtitleStyle=function(Y){var b;if((b=this.data)!=null&&b.subtitle&&Y&&Y.textSecondary!==void 0)return"color:"+_.WH(Y.textSecondary)+";"};
_.g.computeDismissIconStyle=function(Y){if(this.data&&this.data.dismissButton&&Y&&Y.textPrimary!==void 0)return"--yt-button-color:"+_.WH(Y.textPrimary)+";"};
_.g.computeOverflowButtonStyle=function(Y){if(this.data&&this.data.overflowButton&&Y&&Y.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.WH(Y.textPrimary)+";--yt-spec-icon-active-other:"+_.WH(Y.textPrimary)+";"};
_.g.computeBackgroundStyle=function(Y){if(Y&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var w=_.Ev((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);w&&(b+='background-image:url("'+w+'");')}Y.backgroundColor!==void 0&&(b+="background-color:"+_.KX(Y.backgroundColor)+";");return b}};
_.g.computeButton=function(){var Y,b=Object.assign({},_.v((Y=this.data)==null?void 0:Y.showMoreButton,_.Wa));if(this.modern&&b){b.style="STYLE_MONO_OUTLINE";var w;if(Y=(w=this.currentColorPalette)==null?void 0:w.textPrimary)b.colorData={basicColorPaletteData:{foregroundTitleColor:Y,borderColor:Y}}}return b};
_.g.shouldShowBottomButton=function(Y,b){return!(Y==null?0:Y.header)&&!(Y==null||!Y.primaryButton)&&b<3};
_.g.checkExpanded=function(Y){this.isExpanded=Y&&Y.content?this.hiddenVideos.length===0:!0};
_.g.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.g.getLogoHeight=function(Y){return this.logoWithPadding(Y)?"26":"20"};
_.g.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"logo-image-with-padding":"logo-image"};
_.g.computeHasSectionHeader=function(Y){return!!Y.header};
_.g.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var Y;if((Y=this.data.primaryButton)==null?0:Y.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var b;((b=this.data.dismissButton)==null?0:b.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var w,V;((w=this.data)==null?0:(V=w.primaryButton)==null?0:V.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.g.setVisibleVideos=function(Y){if(this.data&&this.data.content)if(this.data.content.length){var b=this.data.content.length;this.data.header?Y?(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.slimItemsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow-1),b))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.g.setHasMovieRenderer=function(){var Y;if((Y=this.data)!=null&&Y.content){var b;this.hasMovieRenderer=!!_.v((b=this.data)==null?void 0:b.content[0],_.dvQ)}else this.hasMovieRenderer=!1};
_.g.requestElementsPerRow=function(){_.Ua(this.hostElement,"yt-request-elements-per-row")};
_.g.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var Y=_.N(this.hiddenMediaRenderers),b=Y.next();!b.done;b=Y.next())b.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(Y=_.E6(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&Y.focus()}};
_.g.updateTitleSpec=function(){var Y;(Y=this.data)!=null&&Y.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.g.logoWithPadding=function(Y){var b,w,V;return(Y=(b=this.getCurrentLogo(Y,this.isDarkTheme))==null?void 0:(w=b.thumbnails)==null?void 0:(V=w[0])==null?void 0:V.height)&&Y%31===0?!0:!1};
_.g.onUpdateElementsPerRowAction=function(Y,b,w){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y);w&&this.slimItemsPerRow!==w&&(this.slimItemsPerRow=w)};
kj.prototype.slimItemsPerRowChanged=kj.prototype.slimItemsPerRowChanged;kj.prototype.elementsPerRowChanged=kj.prototype.elementsPerRowChanged;kj.prototype.dataChanged=kj.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],kj.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],kj.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],kj.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kj.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],kj.prototype,"currentColorPalette",void 0);_.z([_.R(),_.K("design:type",Array)],kj.prototype,"visibleVideos",void 0);_.z([_.R(),_.K("design:type",Array)],kj.prototype,"hiddenVideos",void 0);
_.z([_.R(),_.K("design:type",Object)],kj.prototype,"primaryButton",void 0);_.z([_.R({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],kj.prototype,"elementsPerRow",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],kj.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],kj.prototype,"isExpanded",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],kj.prototype,"largeTitle",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],kj.prototype,"hasMovieRenderer",void 0);_.z([_.R(),_.K("design:type",Number)],kj.prototype,"slimItemsPerRow",void 0);_.z([_.R(),_.K("design:type",Boolean)],kj.prototype,"showLightVideoMetadata",void 0);_.z([_.R(),_.K("design:type",Boolean)],kj.prototype,"showDarkVideoMetadata",void 0);_.z([_.R(),_.K("design:type",Number)],kj.prototype,"videoMetadataColor",void 0);
_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],kj.prototype,"miniMode",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.K("design:type",Boolean)],kj.prototype,"isFirstFeedItem",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.K("design:type",Boolean)],kj.prototype,"hasSectionHeader",void 0);
_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],kj.prototype,"roundedContainer",void 0);_.z([_.ql("#visible-video-container ytd-rich-grid-media"),_.K("design:type",Array)],kj.prototype,"visibleMediaRenderers",void 0);_.z([_.ql("#hidden-video-container ytd-rich-grid-media"),_.K("design:type",Array)],kj.prototype,"hiddenMediaRenderers",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kj.prototype,"modern",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kj.prototype,"dataChanged",null);_.z([_.lr("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kj.prototype,"elementsPerRowChanged",null);_.z([_.lr("slimItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kj.prototype,"slimItemsPerRowChanged",null);
_.z([_.S({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],kj);
_.a(kj,"ytd-brand-video-shelf-renderer",function(){if(yNX!==void 0)return yNX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n    <div id="shelf-header-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="top-level-header-container" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="section-header-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        <div id="top-buttons-container" hidden="[[!data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" hidden="[[!data.primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n          <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n        </div>\n      </div>\n      <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <div id="visible-content-wrapper" class="style-scope ytd-brand-video-shelf-renderer">\n      <div id="metadata-container" hidden="[[data.header]]" class="style-scope ytd-brand-video-shelf-renderer">\n        <div id="header-container" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-shelf-renderer"></yt-formatted-string>\n        </div>\n        <div id="metadata-button-container" hidden="[[shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n          <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n          </ytd-button-renderer>\n        </div>\n      </div>\n      <div id="visible-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    </div>\n    <div id="hidden-video-container" class="style-scope ytd-brand-video-shelf-renderer"></div>\n    <div id="bottom-button-container" hidden="[[!shouldShowBottomButton(data, elementsPerRow)]]" class="style-scope ytd-brand-video-shelf-renderer">\n      <ytd-button-renderer id="primary-button" data="[[primaryButton]]" class="style-scope ytd-brand-video-shelf-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="show-more-button-container" hidden="[[isExpanded]]" class="style-scope ytd-brand-video-shelf-renderer">\n    <ytd-button-renderer id="show-more-button" data="[[computeButton(data.showMoreButton.buttonRenderer, currentColorPalette)]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" on-click="onShowMoreTap" class="style-scope ytd-brand-video-shelf-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-shelf-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return yNX=Y},{mode:1});var $2O;var ll=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(ll,_.F);_.g=ll.prototype;_.g.attached=function(){var Y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",Y);this.onDarkModeToggledAction(Y)};
_.g.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.g.dataChanged=function(){this.requestElementsPerRow();var Y,b;this.currentColorPalette=this.isDarkTheme?(Y=this.data)==null?void 0:Y.darkColorData:(b=this.data)==null?void 0:b.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.g.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.g.computeIsFirstFeedItem=function(Y){return Y};
_.g.onDarkModeToggledAction=function(Y){Y!==this.isDarkTheme&&this.set("isDarkTheme",Y);this.data&&(this.currentColorPalette=Y?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(Y),this.updateButtonPalette())};
_.g.shouldShowThumbnailInMetadata=function(Y){return Y<=1};
_.g.computeVideoMetadataColor=function(){if(this.data){var Y;if((Y=this.currentColorPalette)==null?0:Y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.g.computeTitleStyle=function(Y){var b;if((b=this.data)!=null&&b.title&&Y&&Y.textPrimary!==void 0)return"color:"+_.WH(Y.textPrimary)+";"};
_.g.computeSubtitleStyle=function(Y){var b;if((b=this.data)!=null&&b.subtitle&&Y&&Y.textSecondary!==void 0)return"color:"+_.WH(Y.textSecondary)+";"};
_.g.computeOverflowButtonStyle=function(Y){if(this.data&&this.data.overflowButton&&Y.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.WH(Y.textPrimary)+";--yt-spec-icon-active-other:"+_.WH(Y.textPrimary)+";"};
_.g.computeBackgroundStyle=function(Y){if(Y&&this.data){var b="";Y.backgroundColor!==void 0&&(b+="background-color:"+_.KX(Y.backgroundColor)+";");return b}};
_.g.computeHasOverflowButton=function(Y){return!!Y.overflowButton};
_.g.updateButtonPalette=function(){if(this.data){var Y;if((Y=this.data.primaryButton)==null?0:Y.buttonRenderer){var b;if((b=this.currentColorPalette)==null?0:b.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var w;((w=this.currentColorPalette)==null?0:w.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.g.requestElementsPerRow=function(){_.Ua(this.hostElement,"yt-request-elements-per-row")};
_.g.updateTitleSpec=function(){var Y;(Y=this.data)!=null&&Y.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.g.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
ll.prototype.elementsPerRowChanged=ll.prototype.elementsPerRowChanged;ll.prototype.dataChanged=ll.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],ll.prototype,"ytdDismissibleItemBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],ll.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],ll.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ll.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],ll.prototype,"currentColorPalette",void 0);_.z([_.R(),_.K("design:type",Object)],ll.prototype,"primaryButton",void 0);
_.z([_.R({reflectToAttribute:!0,value:3}),_.K("design:type",Number)],ll.prototype,"elementsPerRow",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],ll.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],ll.prototype,"titleSize",void 0);_.z([_.R(),_.K("design:type",Number)],ll.prototype,"videoMetadataColor",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],ll.prototype,"miniMode",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.K("design:type",Boolean)],ll.prototype,"isFirstFeedItem",void 0);_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],ll.prototype,"roundedContainer",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.K("design:type",Boolean)],ll.prototype,"hasOverflowButton",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ll.prototype,"dataChanged",null);_.z([_.lr("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ll.prototype,"elementsPerRowChanged",null);_.z([_.S({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],ll);
_.a(ll,"ytd-brand-video-singleton-renderer",function(){if($2O!==void 0)return $2O;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return $2O=Y},{mode:_.Xd("kevlar_poly_si_batch_j070")?1:2});var j4I;var GnX=_.b8(function(Y){var b=Y.data;return _.m(_.Y_,{data:function(){return b().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(b().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var w=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":w=88;break a;default:w=88}return w},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return b().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ri"),JNQ=_.b8(function(Y){var b=Y.metadataRow;
var w=Y.delimiter;return _.m(_.Bf,{each:function(){return b().textParts||[]},
keyBy:"INDEX"},function(V,H){return _.m(_.Uz,null,_.m(_.wv,{text:V,noWrap:!0,userInput:!0}),_.m(TJt,{delimiter:w,max:function(){return b().textParts.length},
index:H}))})},"si"),TJt=_.b8(function(Y){var b=Y.delimiter;
var w=Y.max;var V=Y.index;return _.m(_.h,{cond:function(){return(b==null?void 0:b())&&w()-1>V()},
then:function(){return _.m("span",null,b)}})},"ti"),u8t=_.b8(function(Y){var b=Y.data;
Y={};return _.m("yt-profile-page-header-information-view-model",{class:_.hj("profile-page-header-information-view-model-wiz",(Y["profile-page-header-information-view-model-wiz--mobile"]=!1,Y))},_.m(_.h,{cond:function(){return b().onTap},
then:function(){return _.m(_.oG,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.zT(b().onTap)}},_.m(_.OH,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:GnX}))},
else:function(){return _.m("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.m(_.OH,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:GnX}))}}),_.m("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.m(_.h,{cond:function(){return b().onTap},
then:function(){return _.m(_.OH,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(w){var V=w.data;
return _.m(_.oG,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.zT(V().onTap)}},_.m(_.wv,{text:function(){return V().title}}))}})},
else:function(){return _.m(_.OH,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(w){var V=w.data;
return _.m(_.wv,{text:function(){return V().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.m(_.OH,{data:function(){return b().metadata}},{profilePageHeaderMetadataViewModel:function(w){var V=w.data;
return _.m(_.h,{cond:function(){return V().metadataRows},
then:function(H){return _.m("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.m(_.Bf,{each:H,keyBy:"INDEX"},function(f,E){return _.m(_.Uz,null,_.m(JNQ,{metadataRow:f,delimiter:" \u2022 "}),_.m(TJt,{delimiter:" \u2022 ",max:function(){return H().length},
index:E}))}))}})}})))},"ui");
u8t.idomCompat=!0;_.f_(u8t,"yt-profile-page-header-information-view-model",{props:{data:_.YX}});var hY=function(){return _.F.apply(this,arguments)||this};
_.P(hY,_.F);hY.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],hY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hY.prototype,"data",void 0);_.z([_.S({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],hY);
_.a(hY,"ytd-effect-pivot-header-view-model",function(){if(j4I!==void 0)return j4I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-effect-pivot-header-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-effect-pivot-header-view-model"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return j4I=
Y},{mode:1});var Y9d;var xj=function(){return _.F.apply(this,arguments)||this};
_.P(xj,_.F);xj.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xj.prototype,"data",void 0);_.z([_.S({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],xj);
_.a(xj,"ytd-source-pivot-header-renderer",function(){if(Y9d!==void 0)return Y9d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-source-pivot-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-source-pivot-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Y9d=Y},{mode:1});_.b2O=_.b8(function(Y){var b=Y.data;Y=_.GM("content-list-item-view-model");_.jP(Y,function(){return b().rendererContext});
var w=function(){var H;return _.$h((H=b())==null?void 0:H.rendererContext)},V={};
return _.m("content-list-item-view-model",{el:Y,class:_.hj("ytContentListItemViewModelHost",(V.ytContentListItemViewModelTappable=w,V)),role:function(){return w()?"listitem":void 0},
tabindex:function(){return w()?0:void 0}},_.m("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.m("div",{class:"ytContentListItemViewModelImageContainer"},_.m(_.h,{cond:function(){return b().image},
then:function(H){return _.m(_.Y_,{data:H,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.m(_.OH,{data:function(){var H;
return(H=b())==null?void 0:H.avatar}},{avatarViewModel:_.et})),_.m("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.m("div",{class:_.hj("ytContentListItemViewModelTitle",function(){a:{switch(b().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var H="ytContentListItemViewModelProminentTitle";
break a}H=void 0}return H})},_.m(_.wv,{text:function(){return b().title}})),_.m("div",{class:"ytContentListItemViewModelMetadata"},_.m(_.OH,{data:function(){return b().metadata}},{contentMetadataViewModel:function(H){return _.m(_.$B_,{data:H.data,
layout:1})}})))),_.m("div",{class:"ytContentListItemViewModelActionButton"},_.m(_.OH,{data:function(){var H;
return(H=b())==null?void 0:H.actionButton}},{buttonViewModel:_.a1,
toggleButtonViewModel:_.td})))},"vi");_.f_(_.b8(function(Y){var b={},w={},V={},H={};return _.m("yt-card-view-model",{class:_.hj("ytCardViewModelHost",Y.className,(b.ytCardViewModelOutline=function(){return Y.data().cardStyle==="CARD_STYLE_OUTLINE"},b),(w.ytCardViewModelRaised=function(){return Y.data().cardStyle==="CARD_STYLE_RAISED"||Y.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},w),(V.ytCardViewModelTonal=function(){return Y.data().cardStyle==="CARD_STYLE_TONAL"},V),(H.ytCardViewModelInverted=function(){return Y.data().cardStyle===
"CARD_STYLE_INVERSE"},H))},_.m(_.OH,{data:function(){return Y.data().background}},{cinematicContainerViewModel:function(f){return _.m(_.SYt,{data:f.data})}}),_.m("div",{class:"ytCardViewModelContentWrapper"},_.m(_.OH,{data:function(){return Y.data().content}},{contentListItemViewModel:function(f){return _.m(_.b2O,{data:f.data})}})),_.m(_.OH,{data:function(){return Y.data().dismissAction}},{buttonViewModel:function(f){return _.m(_.a1,{data:f.data})}}))},"wi"),"yt-card-view-model",{props:{data:_.YX,
className:_.YX}});_.f_(_.b8(function(Y){var b=function(){return _.v(Y.data().flowRoot,nNs)};
_.dx(function(){var w=b(),V=function(){},H=function(){};
if(w){var f,E,U,X=((U=_.v((f=b())==null?void 0:(E=f.steps)==null?void 0:E[0],_.pE7))==null?void 0:U.stepId)||"";lht(w,X);V=x2X(w);H=qlb(w)}_.R2(function(){var I=b();I&&_.u3().dispatch(_.qo("flowStateEntity",I.flowStateEntityKey));V();V=function(){};
H();H=function(){}})});
return _.m("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.m(_.Jkk,{contentId:function(){return Y.data().contentId}},function(){return _.m("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.m(_.h,{cond:b,
then:function(w){return _.m(_.BxX,{data:w})}}))}))},"xi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.YX}});_.f_(_.b8(function(){return _.m("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.m("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.m("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.m(_.ous,null)),_.m(_.uUQ,{data:{rows:1},isExploreHub:!0}))},"yi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.f_(_.b8(function(Y){var b=Y.data;var w=Y.standardUnitMinWidth;Y=_.GM("ytd-chips-shelf-with-video-shelf-renderer");var V=_.N((0,_.V6U)(b)),H=V.next().value,f=V.next().value,E=function(){var X,I=(X=H())==null?void 0:X.contents;return I==null||I.length===0},U=function(){f(Object.assign({},H(),{contents:[]}))};
_.H6(Y,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var X=_.v(b().chipsShelf,epI);if(X!=null&&X!=null&&X.autoselectChipOnVisible){var I,k,l=_.v(X==null?void 0:(I=X.contents)==null?void 0:I[(k=X.autoselectedChipIndex)!=null?k:0],_.CL);l&&l.tapCommand&&_.AA(l.tapCommand)}}});
return _.m("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:Y},_.m(_.Jkk,{contentId:function(){return b().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.m("div",null,_.m("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.m(_.OH,{data:function(){return b().header}},{sectionHeaderViewModel:function(X){return _.m(_.gq,{data:X.data,
disableHorizontalPadding:!0})}})),_.m("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.m(_.OH,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(X){return _.m(_.go$,{data:X.data,
callback:U,enableSingleChipSelection:!0})}})),_.m("div",null,_.m(_.h,{cond:E,
then:function(){return _.m("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.m(_.uUQ,{data:{rows:1},isExploreHub:!0}))}}),_.m(_.OH,{data:function(){var X;
return(X=H())==null?void 0:X.contents}},{richShelfRenderer:function(X){return _.m(_.gTk,{data:X.data,
isInnerShelf:!0,standardUnitMinWidth:w})}})))}))},"zi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.YX,
standardUnitMinWidth:_.YX}});var q9=function(){return _.F.apply(this,arguments)||this};
_.P(q9,_.F);
q9.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
q9.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.z([_.n(_.FX),_.K("design:type",Object)],q9.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],q9.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],q9.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Number)],q9.prototype,"standardUnitMinWidth",void 0);_.z([_.S({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],q9);
_.a(q9,"ytd-rich-section-renderer",function(){if(CdN!==void 0)return CdN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-rich-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return CdN=Y},{mode:_.Xd("kevlar_poly_si_batch_j029")?
1:2});_.f_(_.jsI,"yt-profile-identity-info-view-model",{props:{data:_.YX,hideDivider:_.YX}});_.f_(_.yVo,"yt-page-header-view-model",{props:{data:_.YX,noPadding:_.YX,enableBanner:_.YX,cinematicContainerTopbarOffset:_.YX,allowCinematicContainerOverflow:_.YX,displayAsSidebar:_.YX,displayAsPanel:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=function(){var H;return(H=b().numColumns)!=null?H:2},V=function(){return w()>1?3:2};
Y={};return _.m("ytd-rich-grid-group",{class:_.hj("ytdRichGridGroupHost",(Y.ytdRichGridGroupHostFirstColumn=function(){return b().colIndex===0},Y)),
style:_.Bb({"--ytd-rich-grid-group-num-columns":w,"--ytd-rich-grid-items-per-group":V})},_.m("div",{class:"ytdRichGridGroupContents"},_.m(_.OH,{data:function(){var H;return(H=b().contents)==null?void 0:H.slice(0,V())}},{richItemRenderer:function(H){return _.m(_.V8I,{data:H.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Ai"),"ytd-rich-grid-group",{props:{data:_.YX}});var sW=function(){var Y=_.F.apply(this,arguments)||this;Y.resizeOnObserverInit=!1;Y.isInlinePreviewDisabled=_.q("web_disable_inline_preview");Y.disableStickyFilterBar=!1;Y.transparentBackgroundChipsBar=!1;Y.hideChipsBar=!1;Y.isWatchDefaultLayout=!0;Y.continuationShowButton=!1;Y.rowReducedHorizontalMargin=!1;Y.useCompactList=!1;Y.manualDownloadsPresent=!1;Y.smartDownloadsPresent=!1;Y.shouldRenderDownloadsBanner=!1;Y.hasOptedIntoSmartDownloads=!1;Y.elementsPerRow=4;Y.typographyBump=!1;Y.showGnomeContents=
!1;Y.showExploreHubContents=!1;Y.slimItemsPerRow=1;Y.pageLoadingFromNavigation=!1;Y.loggingRefactor=_.q("kevlar_rich_grid_logging_fix");Y.resizeObserver=null;Y.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-signal-action-soft-reload-page":"onSoftReloadPage","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-insert-rich-section-action":"insertRichSection"};Y.rendererToTagNameMap=
new Map(Object.entries(Y.contentMapping()).map(function(b){var w=_.N(b);b=w.next().value;w=w.next().value;return[b,w.component]}));
Y.insertedContent=new Map;return Y};
_.P(sW,_.F);_.g=sW.prototype;_.g.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var Y=_.N(_.E6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=Y.next();!b.done;b=Y.next())b.value.useCompactList=this.useCompactList};
_.g.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var Y=_.N(_.E6(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=Y.next();!b.done;b=Y.next())b=b.value,b.sizing=this.sizing,b.typographyBump=this.typographyBump};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.g.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}}};
_.g.attached=function(){document.addEventListener("yt-page-type-changed",_.Io(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19321_throttledOnResize=new _.Vm(this.resizeObserved,_.cQ("rich_grid_resize_delay_ms",50),this)};
_.g.detached=function(){var Y;(Y=this.resizeObserver)==null||Y.disconnect();document.removeEventListener("yt-page-type-changed",_.Io(this,this.onPageChange))};
_.g.insertRichSection=function(Y){var b=Y.richItemTargetId;Y=Y.richSectionRendererToInsert;b&&Y&&(this.insertedContent.set(b,Y),this.reflowContent())};
_.g.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.g.computeIsInlinePreviewEnabled=function(Y,b,w){return _.q("web_disable_inline_preview")?!1:!w&&_.q27({miniplayerIsActive:Y,miniplayerPlaybackState:b})};
_.g.computeSizing=function(){var Y=_.Xcq(this.data);if(Y||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return Y?this.useCompactList?"COMPACT":Y:this.miniMode?"COMPACT":_.q("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.g.updateItemMinAndMaxWidth=function(){var Y=_.cQ("rich_grid_max_item_width",500);Y>0&&_.m_(this.hostElement,{"--ytd-rich-grid-item-max-width":Y+"px"});var b;Y=this.getRichItemMinWidth((b=this.hostElement)==null?void 0:b.clientWidth);Y>0&&_.m_(this.hostElement,{"--ytd-rich-grid-item-min-width":Y+"px"})};
_.g.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.g.resizeObserved=function(){_.De(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.g.navigateBackToHome=function(){_.q("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var Y=_.fH().resolve(_.bX).isOnWatch(),b,w=((b=_.hL(location.pathname))==null?void 0:b.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(w)||Y)&&this.gnomeContents&&_.q("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);Y&&this.exploreHubContents&&_.q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.u3().dispatch(_.Uf({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.g.onPageChange=function(){var Y=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.q("disable_chip_select_on_nav")||_.De(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Lb.addJob(function(){Y.pageLoadingFromNavigation=!1;_.q("disable_chip_select_on_nav")&&_.q("h5_reset_cache_and_filter_before_update_masthead")&&Y.resetCacheAndIsFilteredFeed();Y.setMasthead();Y.maybeSetBigYoodle();Y.forceRefreshAndLog();Y.terminateVideoPreview();_.q("web_hide_gnome_until_user_navigates_back_to_home")&&
(Y.dataChanged(),_.TC(Y,function(){if(Y.showGnomeContents){var b=Array.from(_.E6(Y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(V){V=_.E6(V).querySelector("ytd-rich-shelf-renderer");return!!V&&V.isGnomeShelf()});
if(b){b=b.offsetTop-Y.contentsElement.offsetTop;var w=_.fH().resolve(_.bX).getCurrentPage();w&&w.getPageScrollingElement().scrollTo({top:b,behavior:"smooth"})}}}));
_.q("web_hide_explore_hub_until_user_navigates_back_to_home")&&(Y.dataChanged(),_.TC(Y,function(){if(Y.showExploreHubContents&&!_.q("web_explore_hub_no_scroll")){var b=Array.from(_.E6(Y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(V){return!!V.querySelector("ytd-talk-to-recs-flow-renderer")});
if(b){b=b.offsetTop-Y.contentsElement.offsetTop;var w=_.fH().resolve(_.bX).getCurrentPage();w&&w.getPageScrollingElement().scrollTo({top:b,behavior:"smooth"})}}}))},8)):((_.q("web_hide_gnome_until_user_navigates_back_to_home")||_.q("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.g.dataChanged=function(){var Y=this,b=_.cQ("web_rich_grid_row_margin",0);b>0&&_.m_(this.hostElement,{"--ytd-rich-grid-row-margin":b+"px"});_.De(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.TC(this,function(){Y.updateRichItemGridPositions();Y.contentsElement&&_.m_(Y.hostElement,{"--ytd-rich-grid-content-offset-top":Y.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.g.initResizeObserver=function(){var Y=this;if(window.ResizeObserver){var b;(b=this.resizeObserver)==null||b.disconnect();var w=!1;this.resizeObserver=new ResizeObserver(function(){if(w){var V;(V=Y.resizeObserver)==null||V.disconnect();var H;(H=Y.JSC$19321_throttledOnResize)==null||H.fire();requestAnimationFrame(function(){var E;(E=Y.JSC$19321_throttledOnResize)==null||E.fire();Y.initResizeObserver()})}else if(w=!0,Y.resizeOnObserverInit){var f;
(f=Y.JSC$19321_throttledOnResize)==null||f.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.g.contentLengthChanged=function(){if(_.q("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.De(this.hostElement,"ytd-rich-item-index-update-action")};
_.g.updateElementsPerRow=function(){_.De(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.g.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.g.onRichShelfRendererCollapse=function(Y){if(this.shownItems){var b=Y.detail;Y=this.shownItems.findIndex(function(V){var H,f;return((f=_.v(V==null?void 0:(H=V.richSectionRenderer)==null?void 0:H.content,_.ffK))==null?void 0:f.trackingParams)===b});
var w=Y+1;Y<0||w>=this.contentsElement.children.length||!this.shownItems[w].richItemRenderer||this.contentsElement.children[w].scrollIntoView({behavior:"smooth",block:"start"})}};
_.g.onSoftReloadPage=function(){this.scrollUpToTop()};
_.g.handleRerenderDownloadsData=function(){_.q("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.g.handlePlaylistRemoveVideosAction=function(Y){var b;if(((b=_.v(Y,_.ZE5))==null?0:b.setVideoIds)&&this.data&&this.data.contents){Y=_.v(Y,_.ZE5).setVideoIds;for(b=this.data.contents.length-1;b>=0;){var w=_.v(this.data.contents[b],_.dY);(w=w&&_.v(w.content,_.zk))&&w.setVideoId&&Y.includes(w.setVideoId)&&this.splice("data.contents",b,1);b--}this.updateIndices()}};
_.g.updateIndices=function(){if(this.data&&this.data.contents)for(var Y=0;Y<this.data.contents.length;Y++)this.set("data.contents."+Y+".richItemRenderer.index",_.Gx(String(Y+1)))};
_.g.hasTopRowInlinePlayableVideoWithEndorsement=function(Y){var b;return!((b=Y.slice(0,this.getItemsPerRow()))==null||!b.some(function(w){var V;w=_.v(w==null?void 0:(V=w.richItemRenderer)==null?void 0:V.content,_.iG);var H;return(w==null?void 0:w.inlinePlaybackEndpoint)&&(w==null?void 0:(H=w.thumbnailOverlays)==null?void 0:H.some(function(f){return f.thumbnailOverlayEndorsementRenderer}))}))};
_.g.refreshGridLayoutNew=function(Y,b,w,V){var H=V.postsPerRow;var f=V.slimItemsPerRow;var E=V.gameCardsPerRow;V=V.miniGameCardsPerRow;var U;if((U=this.data)==null||!U.contents||!this.containerWidth)return!1;var X;if((X=this.data.responsiveContainerConfiguration)==null?0:X.responsiveSize){var I=_.Tce(this.data.responsiveContainerConfiguration,this.containerWidth),k;U=_.uX(Object.assign({},I,{standardUnitMinWidth:(k=this.data)==null?void 0:k.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&I.isCompactList)}else U=_.uX({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(I=this.data)==null?void 0:I.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=U.typographyBump;k=!1;if(Y||this.elementsPerRow!==U.numItems||this.postsPerRow!==H||this.slimItemsPerRow!==f||this.gameCardsPerRow!==
E||this.miniGameCardsPerRow!==V||this.gutter!==U.gutter)k=this.elementsPerRow!==U.numItems,this.elementsPerRow=U.numItems,this.postsPerRow=H,this.slimItemsPerRow=f,this.gameCardsPerRow=E,this.miniGameCardsPerRow=V,this.gutter=U.gutter,this.itemWidth=U.itemWidth,this.reflowContent(b),_.m_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":U.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(w);this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:U.maxContainerWidth}));return k};
_.g.refreshGridLayout=function(Y,b){var w,V=(w=this.hostElement)==null?void 0:w.clientWidth;this.containerWidth=this.adjustRichGridWidth(V,!0);var H;if((H=this.data)==null||!H.contents||!this.containerWidth)return Y&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.q("rg_pending_reflow_ks")&&(Y=!0,this.pendingForceReflow=!1);w=this.getRichItemMinWidth(V);var f=this.isShortsPanel?146:194,E=this.getMiniGameCardMinWidth(),U=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
V=w=this.calcElementsPerRow(w,U);(H=w<=3&&this.miniModeAllowed())&&(w=this.calcElementsPerRow(240,4));var X=this.calcMaxSlimElementsPerRow(w,U,this.isDefaultGrid);U=this.calcElementsPerRow(f,X);var I=this.calcElementsPerRow(this.isCompactGrid?f:154,X);f=this.calcElementsPerRow(this.isCompactGrid?f:E,X);E=!1;if(this.sizing)return this.refreshGridLayoutNew(Y,b,H,{postsPerRow:V,slimItemsPerRow:U,gameCardsPerRow:I,miniGameCardsPerRow:f});if(Y||this.elementsPerRow!==w||this.postsPerRow!==V||this.slimItemsPerRow!==
U||this.gameCardsPerRow!==I||this.miniGameCardsPerRow!==f)E=this.elementsPerRow!==w,this.elementsPerRow=w,this.postsPerRow=V,this.slimItemsPerRow=U,this.gameCardsPerRow=I,this.miniGameCardsPerRow=f,this.reflowContent(b),this.updateElementsPerRow(),_.m_(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)&&_.m_(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(H);_.De(this.hostElement,"yt-rich-grid-layout-refreshed");return E};
_.g.getRichItemMinWidth=function(Y){var b=_.cQ("rich_grid_min_item_width",310);if(!_.q("kevlar_disable_min_width_override")){var w,V;b=(V=(w=this.data)==null?void 0:w.minItemWidth)!=null?V:b}return b+_.HFg(Y)};
_.g.calcMaxSlimElementsPerRow=function(Y,b,w){return(w===void 0?0:w)?Y===1?2:Y%2===0?_.q("web_shorts_2_by_3_reduce_items_per_row")&&Y>=4?Y/2*3-1:Y/2*3:_.q("web_shorts_2_by_3_reduce_items_per_row")&&Y>=3?Y+1:Y+2:b*2};
_.g.adjustRichGridWidth=function(Y,b){var w=_.q("disable_rich_grid_guide_compensation");if(!this.isWatch&&!w){w=_.fH().resolve(_.HQ(_.z8));var V=w==null?void 0:w.guideElement;if(!(!w||w.getData()||V!=null&&V.opened||w.getMiniGuideVisible()))if(w.canFitPersistentGuide(Y)&&w.getGuideExpandsAutomatically()){var H,f,E=Number((H=window.getComputedStyle(this.hostElement))==null?void 0:(f=H.getPropertyValue("--app-drawer-width"))==null?void 0:f.replace("px",""));Y-=E||0}else if(w.canFitMiniGuide(Y)){var U;
H=Number((E=window.getComputedStyle(this.hostElement))==null?void 0:(U=E.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:U.replace("px",""));Y-=H||0}}Y>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(Y-=b?32:48));return Y};
_.g.calcElementsPerRow=function(Y,b){var w=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),V=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((w+V)/(Y+V))||1,b)};
_.g.reflowContent=function(Y){var b=this;if(!this.isReflowing){this.isReflowing=!0;var w,V,H=!!((w=this.data)==null?0:(V=w.contents)==null?0:V.some(function(Q){return _.v(Q,_.cK)}));
w=this.getItemsPerRow();var f;V=(f=this.data)==null?void 0:f.reflowOptions;Y&&(_.S1("rgr_s"),_.TC(this,function(){_.S1("rgr_nrf")}));
Y={};(f=_.E6(this.hostElement).querySelector("#contents"))&&(Y={contentElement:f,rendererToTagNameMap:this.rendererToTagNameMap});f=(f=this.data.contents)?f.slice():[];var E=(_.q("web_hide_gnome_behind_feed_filter_chip")||_.q("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,U=_.q("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,X=-1,I=-1;if(this.isHomePage&&U){for(U=0;U<f.length;U++){var k=void 0,l=void 0;_.v((k=f[U])==null?void 0:
(l=k.richSectionRenderer)==null?void 0:l.content,BJg)&&(I=U)}I>-1&&(this.exploreHubContents=f.splice(I,1))}if(this.isHomePage&&E){for(I=0;I<f.length;I++)l=k=void 0,(U=_.v((k=f[I])==null?void 0:(l=k.richSectionRenderer)==null?void 0:l.content,_.ffK))&&E&&(l=k=void 0,U=_.v((k=U)==null?void 0:(l=k.contents)==null?void 0:l[0],_.dY),k=void 0,_.v((k=U)==null?void 0:k.content,_.NPd)&&(X=I));X>-1&&(this.gnomeContents=f.splice(X,1))}var x=U2F(f,w,H,V,this.getRichGridStyle(),Y,this.insertedContent);H=function(){b.shownItems=
x;b.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(x),_.TC(this,H)):H()}};
_.g.getFirstRowItems=function(Y){for(var b=[],w=0;w<Y.length;w++){var V=void 0,H=void 0,f=void 0,E=void 0,U=void 0,X=void 0;if(((V=Y[w])==null?void 0:(H=V.richItemRenderer)==null?void 0:H.rowIndex)===0||((f=Y[w])==null?void 0:(E=f.richGroupRenderer)==null?void 0:E.rowIndex)===0||((U=Y[w])==null?void 0:(X=U.richSectionRenderer)==null?void 0:X.rowIndex)===0)b.push(Y[w]);else break}return b};
_.g.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.g.handleChipCloudChipSelectAction=function(Y,b){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.q("web_hide_gnome_behind_feed_filter_chip")&&(b?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.g.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.q("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.g.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.q("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.g.terminateVideoPreview=function(){_.De(this.hostElement,"yt-terminate-video-preview-action")};
_.g.updateRichItemGridPositions=function(){var Y={gridData:{gridColumnCount:this.elementsPerRow}},b;if((b=this.data)==null?0:b.trackingParams)this.loggingRefactor?_.Qd().stateChanged(this.data.trackingParams,Y):(b=_.dO())&&_.b3(b,_.nA(this.data.trackingParams),Y);_.De(this.hostElement,"ytd-rich-item-index-update-action")};
_.g.miniModeAllowed=function(){return _.q("disable_channels_mini_mode")?!1:this.isChannelPage};
_.g.getMiniGameCardMinWidth=function(){return 154};
_.g.updateMiniMode=function(Y){this.miniMode=this.miniModeAllowed()&&Y;this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_RICH_GRID_MINI_MODE",payload:Y}))};
_.g.isCurrentPage=function(){return location.pathname===this.pagePath};
_.g.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var Y=_.fH().resolve(_.bX).getCurrentPage();Y&&Y.setScrollTop(0)}};
_.g.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.g.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.g.maybeSetBigYoodle=function(){var Y,b=(Y=this.data)==null?void 0:Y.bigYoodle;this.bigYoodleData!==b&&(this.bigYoodleData=b)};
_.g.setMasthead=function(){var Y;((Y=this.data)==null?0:Y.masthead)?this.mastheadData=this.data.masthead:_.q("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.g.getRichGridStyle=function(){var Y,b;return(b=(Y=this.data)==null?void 0:Y.style)!=null?b:"RICH_GRID_STYLE_UNKNOWN"};
_.g.onIsShortsGridChange=function(){var Y=this.ytdReduxBehavior,b=Y.dispatch,w=this.getRichGridStyle();b.call(Y,_.Uf({type:"SET_RICH_GRID_STYLE",payload:w}))};
_.up.Object.defineProperties(sW.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var Y=_.fH().resolve(_.bX).getCurrentPage(),b,w,V;return(((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_audio_pivot"||_.q("web_enable_channel_pivot_panel")&&((w=this.data)==null?void 0:w.targetId)==="browse-feedFEsfv_channel_pivot"||_.q("web_enable_effect_pivot_panel")&&((V=this.data)==null?void 0:V.targetId)==="browse-feedFEsfv_effect_pivot")&&(Y==null?void 0:Y.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.q("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null?0:Y.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.fH().resolve(_.bX).getCurrentPage())==null?void 0:Y.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=_.fH().resolve(_.bX).getCurrentPage())==null?void 0:Y.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var Y;return this.hideChipsBar||(((Y=this.data)==null?void 0:Y.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.q("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.targetId)||"")==="watch-next-feed"&&!_.q("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?0:Y.enableContentSpecificAspectRatio)||((b=this.data)==null?0:(w=b.responsiveContainerConfiguration)==null?0:w.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.cQ("web_continuation_handler_margin",0):0}}});
sW.prototype.onIsShortsGridChange=sW.prototype.onIsShortsGridChange;sW.prototype.onReloadContinuationFinish=sW.prototype.onReloadContinuationFinish;sW.prototype.reflowContent=sW.prototype.reflowContent;sW.prototype.handleRerenderDownloadsData=sW.prototype.handleRerenderDownloadsData;sW.prototype.onRichShelfRendererCollapse=sW.prototype.onRichShelfRendererCollapse;sW.prototype.onRequestElementsPerRow=sW.prototype.onRequestElementsPerRow;sW.prototype.contentLengthChanged=sW.prototype.contentLengthChanged;
sW.prototype.dataChanged=sW.prototype.dataChanged;sW.prototype.onSizingChange=sW.prototype.onSizingChange;sW.prototype.onUseCompactListChange=sW.prototype.onUseCompactListChange;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Li),_.K("design:type",Object)],sW.prototype,"ironResizableBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],sW.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],sW.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],sW.prototype,"componentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],sW.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sW.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],sW.prototype,"miniMode",void 0);_.z([_.R({value:[]}),_.K("design:type",Array)],sW.prototype,"shownItems",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],sW.prototype,"isReflowing",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],sW.prototype,"isFilteredFeed",void 0);_.z([_.R({selector:_.Dm6}),_.K("design:type",Boolean)],sW.prototype,"guideIsExpanded",void 0);
_.z([_.R({selectorArgs:["entitySelectorType"],selector:function(Y,b){if(_.q("kevlar_modern_downloads_page")&&b&&b!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var w=Y.entities;b=_.Of(w);var V=_.tr(w),H=_.paq(Y),f=_.exI(Y);Y=_.OLa(Y);var E=_.HLM(w),U=_.B$(b);w=_.R8(w);return _.if6(b,V,E,H,f,U,w,Y);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return b=_.Of(Y.entities),_.Cs6(b);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return b=
_.Ywr(Y.entities),_.yG6(b);default:_.Sk(new _.BQ("Error: entitySelectorType defined but not matched in selector.",Y,b))}}}),
_.K("design:type",Object)],sW.prototype,"entityDrivenRichGridData",void 0);_.z([_.R(),_.K("design:type",Object)],sW.prototype,"resizeOnObserverInit",void 0);_.z([_.R(),_.K("design:type",Object)],sW.prototype,"bigYoodleData",void 0);_.z([_.R(),_.K("design:type",Object)],sW.prototype,"mastheadData",void 0);_.z([_.R(),_.K("design:type",Boolean)],sW.prototype,"isInlinePreviewDisabled",void 0);_.z([_.R(),_.K("design:type",Object)],sW.prototype,"disableStickyFilterBar",void 0);
_.z([_.R(),_.K("design:type",Object)],sW.prototype,"transparentBackgroundChipsBar",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sW.prototype,"hideChipsBar",void 0);_.z([_.R(),_.K("design:type",Object)],sW.prototype,"isWatchDefaultLayout",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sW.prototype,"continuationShowButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sW.prototype,"rowReducedHorizontalMargin",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sW.prototype,"useCompactList",void 0);_.z([_.R({selector:function(Y){return _.tr(Y.entities).length>0}}),
_.K("design:type",Object)],sW.prototype,"manualDownloadsPresent",void 0);_.z([_.R({selector:function(Y){return _.Of(Y.entities).length>0}}),
_.K("design:type",Object)],sW.prototype,"smartDownloadsPresent",void 0);_.z([_.R({selector:_.exI}),_.K("design:type",Object)],sW.prototype,"shouldRenderDownloadsBanner",void 0);_.z([_.R({selector:_.paq}),_.K("design:type",Object)],sW.prototype,"hasOptedIntoSmartDownloads",void 0);_.z([_.lr("useCompactList"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"onUseCompactListChange",null);
_.z([_.lr("sizing","typographyBump"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"onSizingChange",null);_.z([_.R({selector:_.ldK}),_.K("design:type",Number)],sW.prototype,"miniplayerPlaybackState",void 0);_.z([_.R({selector:_.L8}),_.K("design:type",Boolean)],sW.prototype,"miniplayerIsActive",void 0);
_.z([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.K("design:type",Boolean)],sW.prototype,"isInlinePreviewEnabled",void 0);_.z([_.R({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.K("design:type",String)],sW.prototype,"sizing",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sW.prototype,"elementsPerRow",void 0);
_.z([_.R(),_.K("design:type",Object)],sW.prototype,"typographyBump",void 0);_.z([_.R(),_.K("design:type",Number)],sW.prototype,"itemWidth",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],sW.prototype,"headerElement",void 0);_.z([_.xZ("#contents"),_.K("design:type",HTMLElement)],sW.prototype,"contentsElement",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"dataChanged",null);
_.z([_.vX("data.contents.length"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"contentLengthChanged",null);_.z([_.kZ("yt-request-elements-per-row"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"onRequestElementsPerRow",null);
_.z([_.kZ("yt-rich-shelf-renderer-collapse"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],sW.prototype,"onRichShelfRendererCollapse",null);_.z([_.vX("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"handleRerenderDownloadsData",null);
_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],sW.prototype,"entitySelectorType",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isSub",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isWatch",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isShortsPanel",null);_.z([_.R({reflectToAttribute:!0}),_.t("isWatch"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"reducedTopMargin",null);_.z([_.R({reflectToAttribute:!0}),_.t("data","isWatch","isWatchDefaultLayout"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"noTopMargin",null);
_.z([_.R({reflectToAttribute:!0}),_.t("isInlinePreviewEnabled","shownItems"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"topRowEndorsement",null);_.z([_.t("data.header"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"hideHeader",null);_.z([_.kZ("yt-rich-grid-reflow"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],sW.prototype,"reflowContent",null);
_.z([_.kZ("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"onReloadContinuationFinish",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isSlimGrid",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isShortsGrid",null);
_.z([_.t("data","isSlimGrid","isShortsGrid"),_.R(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"noRichItemGutterMargins",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isShortsGridSlim",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isCompactGrid",null);
_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"isDefaultGrid",null);_.z([_.t("data.targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"hideChipsBarOnHome",null);_.z([_.t("data.targetId"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"hideChipsBarOnWatch",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sW.prototype,"onIsShortsGridChange",null);_.z([_.t("data.enableContentSpecificAspectRatio"),_.R(),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sW.prototype,"force16By9ThumbnailAspectRatio",null);_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],sW.prototype,"continuationTriggerOffset",null);_.z([_.S({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],sW);
_.a(sW,"ytd-rich-grid-renderer",function(){if(KWX!==void 0)return KWX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return KWX=Y},{mode:2});var wMd=_.b8(function(Y){var b=Y.thumbsUp,w=Y.thumbsDown,V=Y.rightAlignThumbs;Y=_.N(_.kw(!1,void 0,"FjNDrf"));var H=Y.next().value,f=Y.next().value;Y=_.N(_.kw(!1,void 0,"Tphjfb"));var E=Y.next().value,U=Y.next().value;Y={};return _.m("div",{class:_.hj("ytwThumbsUpDownThumbs",(Y.ytwThumbsUpDownRightAlign=function(){return V==null?void 0:V()},Y))},_.m(_.td,{data:b,
onToggle:function(X){f(X);E()&&U(!1)},
buttonShapeOverrides:function(){return{toggled:H()}}}),_.m(_.td,{data:w,
onToggle:function(X){U(X);H()&&f(!1)},
buttonShapeOverrides:function(){return{toggled:E()}}}))},"Bi");
wMd.idomCompat=!0;var H2t=_.b8(function(Y){var b=function(){return Y.data().pendingStateEntityKey||""},w=_.xh(_.s4g,b),V=function(){var U;
if(!(U=Y.disabled())){var X;U=!((X=w())==null||!X.isPendingResponse)}return U},H=_.N(_.kw(m2F(""),void 0,"aC8eBe")),f=H.next().value,E=H.next().value;
_.tq(function(){requestAnimationFrame(function(){var U=Y.data().onShowAnimationMs||0;U=U>0?m2F("--chip-animation-duration: "+U+"ms;"):m2F("");E(U)})});
return _.m("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:f},_.m(_.Bf,{each:function(){return Y.data().chipData||[]},
keyBy:"REFERENCE"},function(U){return _.m(V_s,{data:U,disabled:V,pendingStateKey:b,onError:Y.onError})}))},"Ci"),V_s=_.b8(function(Y){var b=_.GM("button"),w=_.N(_.kw(!0,void 0,"NaMiCd")),V=w.next().value,H=w.next().value,f=function(){return Y.data().text.content},E=_.Q_(function(U){var X,I,k,l,x,Q,Z,e;
return _.c(function(O){switch(O.nextAddress){case 1:U.stopPropagation();if(Y.disabled())return O.return();I=String(Math.floor(((X=_.mZ())==null?void 0:X.getCurrentTime())||0)*1E3);k="youchat-"+Date.now();l=function(){_.WP(Y.data().onClick||{});var L={continuationCommand:{token:Y.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},r={inputComposerFormData:{clientMessageId:k,playerOffsetMs:I}};return new Promise(function(C,W){_.WP(L,{form:{formData:r},commandController:{onSuccess:function(y,
G){C(G)},
onServerError:function(y,G){W(G.error)}}})})};
x=_.Q4t(Y.pendingStateKey());x(!0);_.wot("#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");H(!1);_.ct(O,2);return _.D(O,l(),4);case 4:_.$u(O,3);break;case 2:Q=_.mS(O),(e=(Z=Y).onError)==null||e.call(Z,Q);case 3:x(!1),_.om(O)}})});
return _.m(_.h,{cond:V,then:function(){return _.m("div",{class:"ytwYouChatChipsDataChipWrapper"},_.m("button",{el:b,class:"ytwYouChatChipsDataChip","data-disabled":Y.disabled,"on:click":E,tabindex:0},f))}})},"Di");var gAF=_.b8(function(Y){var b=Y.data;return _.m("yt-conversation-resource-view-model",{class:_.hj("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.m(_.OH,{data:function(){var w,V;return((w=b().conversationResourceData)==null?void 0:(V=w.learningGuideData)==null?void 0:V.sections)||[]}},{expandableMetadataViewModel:function(w){return _.m(_.tLQ,{data:w.data})}}))},"Ei");
gAF.idomCompat=!0;var fQb=_.b8(function(Y){var b=function(){var W;return(W=Y.data().text)==null?void 0:W.content},w=function(){var W,y;
return(W=Y.data().webData)==null?void 0:(y=W.textResult)==null?void 0:y.content},V=_.fH().resolve(_.JA),H=_.o1(),f=function(){return Y.data().chatResponseStyle},E=function(){return!Y.data().transparentBackground},U=function(){return Y.data().rightAlignThumbs},X=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:Y.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},I=function(){var W;
return Y.data().webData||((W=Y.data().text)==null?void 0:W.content)||Y.data().videoResultsData||Y.data().conversationResourceViewModel||Y.data().quiz},k=function(){var W;
return(W=Y.data().videoResultsData)==null?void 0:W.videoShelf},l=function(){var W;
return _.v(((W=Y.data().videoResultsData)==null?void 0:W.videoShelf)||{},OqQ)},x=function(){var W;
return(W=Y.data().webData)==null?void 0:W.sourcesShelf},Q=function(){var W;
return _.v(((W=Y.data().webData)==null?void 0:W.sourcesShelf)||{},OqQ)},Z=function(){return _.v(Y.data().conversationResourceViewModel||{},RpX)},e=function(){return _.v(Y.data().quiz||{},M$I)},O=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||f()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:Y.data().thumbsDownViewModel&&Y.data().thumbsUpViewModel},L=function(){return _.v(Y.data().thumbsUpViewModel,_.ns)},r=function(){return _.v(Y.data().thumbsDownViewModel,_.ns)};
_.tq(function(){requestAnimationFrame(function(){var W;(W=Y.shouldAnimateIcon)!=null&&W.call(Y)&&vNg(H.lottieEl)})});
var C={};return _.m("you-chat-item-view-model",{class:_.hj("ytwYouChatItemViewModelYouChatItemViewModel",(C.ytwYouChatItemViewModelHostNoPadding=function(){return!1},C)),
"data-target-id":function(){return Y.data().id||""}},_.m(_.h,{cond:function(){return Y.data().removeIcon?!1:I()},
then:function(){var W={};return _.m("div",{"aria-hidden":"true"},_.m(_.x_,{className:_.hj("ytwYouChatItemViewModelIcon",(W.ytwYouChatItemViewModelRtl=V==="rtl",W.ytwYouChatItemViewModelHidden=function(){return!(Y.data().hideIcon||f()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||f()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:I())},W)),
animationName:"YOUCHAT_ICON",data:X,animationRef:H}))}}),_.m(_.h,{cond:I,
then:function(){var W={};return _.m("div",{class:_.hj("ytwYouChatItemViewModelHost",(W.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},W.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return f()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},W.ytwYouChatItemViewModelGradientBackground=E,W)),
role:"alert"},_.m(_.h,{cond:b,then:function(y){return _.m(_.Or,{text:y})}}),_.m(_.h,{cond:w,
then:function(y){return _.m(_.Or,{text:y})}}),_.m(_.h,{cond:k,
then:function(){return _.m("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.m(_.ej,{data:l,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.m(_.h,{cond:x,
then:function(){return _.m("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.m(_.ej,{data:Q,hasPeek:!0,disableArrows:!1}))}}),_.m(_.h,{cond:Z,
then:function(){return _.m(gAF,{data:Z})}}),_.m(_.h,{cond:e,
then:function(){return _.m(_.MvI,{data:e})}}),_.m(_.h,{cond:O,
then:function(){return _.m(wMd,{thumbsUp:L,thumbsDown:r,rightAlignThumbs:U})}}))}}),_.m(_.h,{cond:function(){return Y.data().chipsData},
then:function(W){return _.m(H2t,{data:W,disabled:Y.pending,onError:Y.onError})}}))},"Fi");
fQb.idomCompat={callbacks:{onError:!0,onSend:!0}};var N$X=_.b8(function(Y){var b=function(){return Y.data().choiceSelectedText};
return _.m("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.m(_.h,{cond:b,then:function(){return _.m("div",{class:"ytYouChatUserTurnChoiceSelected"},_.m(_.wv,{text:b}))}}),_.m("div",{class:"ytYouChatUserTurnUserMessage"},function(){return Y.data().text}))},"Gi");var EA7=_.b8(function(Y){var b=_.N((0,_.fNd)(Y.data)).next().value;return _.m("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return Y.data().targetId||""}},_.m(_.OH,{data:function(){return Y.data().header}},{chipBarViewModel:_.Tso}),_.m(_.OH,{data:function(){return b().contents}},{accordionViewModel:_.OOo,
alertBannerViewModel:_.HOU,chatLoadingViewModel:_.IjO,chatUserTurnViewModel:N$X,learningJourneyLoaderViewModel:_.noU,lockupViewModel:function(w){return _.m(_.fc,{data:w.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:Y.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(w){return _.m(fQb,{data:w.data,pending:!1})}}))},"Hi");_.f_(_.b8(function(Y){var b=_.N((0,_.fNd)(Y.data)).next().value,w=_.GM("yt-section-list-renderer"),V=_.N(_.kw(void 0,void 0,"rQpPgc")),H=V.next().value,f=V.next().value,E=function(){var U;return _.v((U=Y.data().sectionListLayoutConfiguration)==null?void 0:U.layoutConfiguration,poF)};
_.dx(function(){var U,X=(U=w.value)==null?void 0:U.clientWidth;if(E()){U=E();var I=U.responsiveSize;X=X<528?"CONTAINER_SIZE_NARROW":X<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var k=_.N(U.responsiveMap||[]);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.containerSize===X){k=l.containerType;break b}k=void 0}if(k&&I){b:{if(k==="CONTAINER_TYPE_VERTICAL_LIST")if(I==="RESPONSIVE_SIZE_STANDARD"){if(X!=="CONTAINER_SIZE_NARROW"){l="50%";break b}}else{l=X==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}l=void 0}U={responsiveSize:I,containerSize:X,containerType:k,force16By9ThumbnailAspectRatio:!U.enableContentSpecificAspectRatio,contentPreviewWidth:l,fullbleed:(k==="CONTAINER_TYPE_VERTICAL_LIST"||k==="CONTAINER_TYPE_GRID")&&X==="CONTAINER_SIZE_NARROW"&&!1}}else U=void 0}else U=void 0;f(U)});
return _.m("yt-section-list-renderer",{class:_.hj("ytSectionListRendererHost",Y.className),el:w,"data-target-id":function(){return Y.data().targetId||""}},_.m(_.OH,{data:function(){return b().contents}},{itemSectionRenderer:function(U){return _.m(EA7,{data:U.data,
containerLayoutConfig:H})}}))},"Ii"),"yt-section-list-renderer",{props:{data:_.YX,
className:_.gn}});var ckN;var UBt;var XMO=function(){return _.F.apply(this,arguments)||this};
_.P(XMO,_.F);_.z([_.R(),_.K("design:type",Object)],XMO.prototype,"data",void 0);_.z([_.FM({is:"yt-alert-renderer",disableElementRegistration:!0})],XMO);
_.a(XMO,"yt-alert-renderer",function(){if(UBt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_renderer.yt.alert.renderer.css.js--\x3e<div id="container" class$="[[data.type]] style-scope yt-alert-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope yt-alert-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;ckN===void 0&&(ckN=document.createElement("template"));var V=ckN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);UBt=Y}Y=UBt;return Y},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.R4F=function(Y,b){var w,V;b=b===void 0?{}:b;var H,f,E,U,X,I,k,l,x,Q,Z,e;return _.c(function(O){switch(O.nextAddress){case 1:H=b;f=H.shouldWrap===void 0?!0:H.shouldWrap;E=H.skipTransitionTimeoutMs===void 0?300:H.skipTransitionTimeoutMs;U=H.beforeTransition;X=H.afterTransition;if(!f||!document.startViewTransition||document.visibilityState==="hidden")return O.return(Y());w=window.innerWidth;V=window.innerHeight;I=!1;(k=U)==null||k();_.ct(O,2);l=document.startViewTransition(Y);x=setTimeout(function(){l.skipTransition();
I=!0},E);
return _.D(O,l.ready,4);case 4:return clearTimeout(x),_.D(O,l.finished,5);case 5:clearTimeout(x);(Q=X)==null||Q();_.$u(O,0);break;case 2:Z=_.mS(O),(e=X)==null||e(),Z&&!I&&document.visibilityState!=="hidden"&&w===window.innerWidth&&V===window.innerHeight&&_.Ft(Z),_.om(O)}})};
_.M2=function(){for(var Y=Array(36),b=0,w,V=0;V<36;V++)V==8||V==13||V==18||V==23?Y[V]="-":V==14?Y[V]="4":(b<=2&&(b=33554432+Math.random()*16777216|0),w=b&15,b>>=4,Y[V]=_.vOd[V==19?w&3|8:w]);return Y.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var d1s=_.wM(['<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>']),
Fmd=_.X1Q(d1s);Fmd.setAttribute("style","display: none;");document.head.appendChild(Fmd.content);_.e$=_.qzu(function(Y){var b=_.xG("DIV");Y&&(b.className=Y);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";Y=_.xG("DIV");_.qtj(Y,"200px","200px");b.appendChild(Y);document.body.appendChild(b);Y=b.offsetWidth-b.clientWidth;_.qf(b);return Y});var LmR;var SuQ;var pq=function(){var Y=_.F.apply(this,arguments)||this;Y.icon=null;return Y};
_.P(pq,_.F);pq.prototype.dismiss=function(){_.Ua(this.hostElement,"yt-live-chat-error-message-dismiss")};
pq.prototype.computeIcon=function(Y){return Y&&Y.iconType?"yt-icons:"+Y.iconType.toLowerCase():"yt-icons:close"};
_.z([_.R(),_.K("design:type",Object)],pq.prototype,"data",void 0);_.z([_.R({computed:"computeIcon(data.icon)"}),_.K("design:type",Object)],pq.prototype,"icon",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],pq);
_.a(pq,"yt-live-chat-error-message-renderer",function(){if(SuQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_error_message_renderer.yt.live.chat.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-error-message-renderer">\n  <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-error-message-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;LmR===void 0&&(LmR=document.createElement("template"));var V=LmR;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);SuQ=Y}Y=SuQ;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var xet,qnO,sSX,QSQ,MbX,e2Q,pSd,OWg,tbI,n6,R2X,deQ,MU,F9X,L9Q,SnN,anF,rbF,z2R,W9I,K9t,iWd,Abd,C0Q,ybX,$eX,jSI,GqR,TuA,JbQ,uYQ,Ym7,eG,brR,wsO,VJF,fPR,Nes,EzO,cTs,UAb,XsF,HrN,gzR,mAd,ozR,IPs,k0N,lP7,DAA,xAO;xet=function(Y,b){return _.kt(Y.entities,"timedMarkersListSyncEntity",b)};
qnO=function(Y,b){return _.kt(Y.entities,"liveReactionsDataEntity",b)};
sSX=function(Y,b){Y=_.kt(Y.entities,"booleanEntity",b);return!(!Y||!Y.value)};
QSQ=function(Y,b){var w=_.dO();w&&Y&&_.yX(w,_.nA(Y),b)};
_.veF=function(){_.q("web_watch_log_theater_mode")&&_.Cdv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.P0g=function(Y,b,w){if(!Y.includes("START_TIME_PLACEHOLDER")||!Y.includes("END_TIME_PLACEHOLDER"))return Y;var V=new Date(0),H=new Date(0);V.setUTCMilliseconds(b);H.setUTCMilliseconds(w);return Y.replace("START_TIME_PLACEHOLDER",_.C8(V,7)).replace("END_TIME_PLACEHOLDER",_.C8(H,7))};
_.ZWd=function(Y){return Y.watch.isWatchActive};
_.BuN=function(Y){return _.zI(Y)||_.Wv(Y)||_.GnM(Y)};
_.ned=function(Y){return!_.BuN(Y)};
_.Bi=function(Y){return Y.watch.watchScrollTop};
MbX=function(Y){return Y.watch.isLiveChatCollapsed};
e2Q=function(Y){return Y.watch.openEngagementPanels};
pSd=function(Y,b){return _.kt(Y.entities,"booleanEntity",b)};
OWg=function(){return function(Y){_.Td(_.qo("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:Y}))}};
tbI=function(Y){switch(Y){case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN":return 1;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS":return 6;case "AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":return 2;default:return 3}};
n6=function(Y,b,w){var V=_.zT(w);Y&&b&&V&&Y.getPlayerPromise().then(function(H){_.QcK(V)&&_.dh();(new _.nc(H)).executeCommand(V,b);_.q("continue_playback_on_desktop_companion_click")||H.pauseVideo()})};
R2X=function(Y){var b=_.V4(),w;if(w=_.Aq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;w=(V=w())==null?void 0:V.layoutId}else w=null;n6(b,w,Y)};
deQ=function(Y){var b=_.V4(),w;if(w=_.Aq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;w=(V=w())==null?void 0:V.layoutId}else w=null;n6(b,w,Y)};
MU=function(Y,b){var w=Y<0?"-":"";Y=Math.abs(Y);var V=Math.floor(Y/3600),H=Math.floor(Y)%3600,f=Math.floor(H/60);H=Math.floor(H)%60;var E="";(b===void 0?0:b)&&(E="."+Math.round((Y-Math.floor(Y))*10));return V>0?w+V+":"+(f<10?"0"+f:""+f)+":"+(H<10?"0"+H:""+H)+E:w+f+":"+(H<10?"0"+H:""+H)+E};
F9X=function(Y){var b=Y.match(/[^0-9:\.]/g);if(b&&b.length>0)return null;Y=Y.split(":");if(Y.length===0||Y.length>3)return null;b=1;for(var w=0;Y.length>0;){var V=Y.pop();if(V===void 0)break;var H=Number(V);if(V===""||isNaN(H))return null;w+=H*b;b*=60}return w};
L9Q=function(Y,b,w,V){Y=Math.max(w,Y);b=Math.min(b,V-w);Y+b>V?(w=V,Y=w-b):w=Y+b;return{start:Y,end:w}};
SnN=function(Y,b,w,V,H,f){Y<w?Y=w:Y+H>V&&(Y=V-H);b>V&&(b=V);b=Math.min(Y+f,Math.max(Y+H,b));return{start:Y,end:b}};
anF=function(Y,b,w,V,H,f){b>V?b=V:b-H<w&&(b=w+H);Y<w&&(Y=w);Y=Math.min(b-H,Math.max(b-f,Y));return{start:Y,end:b}};
rbF=function(Y){return _.q("web_transcript_cue_id_killswitch")?String(Y):"ytd-transcript-renderer_"+Y};
z2R=function(Y){return _.q("web_transcript_cue_id_killswitch")?!0:Y.startsWith("ytd-transcript-renderer")};
W9I=function(Y){var b=_.V4(),w;if(w=_.Aq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var V;w=(V=w())==null?void 0:V.layoutId}else w=null;n6(b,w,Y)};
K9t=function(Y){Y.style.height="auto";Y.style.height=Math.min(Y.scrollHeight||20,80)+"px"};
iWd=function(Y,b){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:b}}],insertByPositionInSection:{sectionTargetId:Y,position:"INSERTION_POSITION_LAST"}}}]}}}};
Abd=function(Y){var b=_.V4(),w;w=(w=_.Aq("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.layoutId:null;n6(b,w,Y)};
C0Q=function(Y){var b=_.V4(),w;w=(w=_.Aq("yt.www.ads.eventcache.getLastCompanionData"))?(w=w())&&w.layoutId:null;n6(b,w,Y)};
ybX=function(Y,b){b=b===void 0?!1:b;if(Y.simpleText)Y=[{text:Y.simpleText}];else{var w;Y=((w=Y.runs)!=null?w:[]).map(function(V){return Object.assign({},V)})}if(b)for(b=_.N(Y),w=b.next();!w.done;w=b.next())w.value.bold=!0;
return Y};
$eX=function(Y){var b=Y.startEndTimeTemplate,w=Y.startTimeUtcMillis;Y=Y.endTimeUtcMillis;if(b&&w&&Y)return _.Gx(_.P0g(_.Tx(b),Number(w),Number(Y)))};
jSI=function(Y,b){var w,V,H=Y==null?void 0:(w=Y.viewCount)==null?void 0:(V=w.videoViewCountRenderer)==null?void 0:V.shortViewCount;if(!b&&H)return H;var f,E;return Y==null?void 0:(f=Y.viewCount)==null?void 0:(E=f.videoViewCountRenderer)==null?void 0:E.viewCount};
GqR=function(Y,b){var w=Y==null?void 0:Y.relativeDateText;return!b&&w?[w,!0]:[Y==null?void 0:Y.dateText,!1]};
TuA=function(Y,b,w,V,H){V=V===void 0?!0:V;H=H===void 0?"":H;var f=jSI(Y,b),E=_.N(GqR(Y,b)),U=E.next().value;E=E.next().value;b=b?Y==null?void 0:Y.sponsorsOnlyFirstTimeLongText:Y==null?void 0:Y.sponsorsOnlyFirstTimeShortText;var X=[];w&&f&&X.push(f);!w&&E||!U||X.push(U);Y=[].concat(_.Bt(X),[b,Y==null?void 0:Y.stationName,Y==null?void 0:Y.rating,Y?$eX(Y):void 0,Y==null?void 0:Y.upNextProgramText,Y==null?void 0:Y.superTitleLink]).filter(function(I){return!!I});
w={runs:[]};for(f=0;f<Y.length;f++)w.runs.push.apply(w.runs,_.Bt(ybX(Y[f],V))),f<Y.length-1&&w.runs.push({text:" "+H+" ",bold:V});return w};
JbQ=function(Y){if(Y)return{runs:[{text:Y,bold:!0}]}};
uYQ=function(Y){var b,w,V,H;if(Y=Y==null?void 0:(b=Y.contents)==null?void 0:(w=b.twoColumnWatchNextResults)==null?void 0:(V=w.results)==null?void 0:(H=V.results)==null?void 0:H.contents){var f,E;return(E=(f=Y.find(function(U){return!!U.videoPrimaryInfoRenderer}))==null?void 0:f.videoPrimaryInfoRenderer)==null?void 0:E.updatedMetadataEndpoint}};
Ym7=function(Y,b){var w;return(w=Y.sourceConfigs)==null?void 0:w.find(function(V){return V.videoId===b})};
eG=function(Y){return Y==="End of video"||Y==="End of playlist"};
brR=function(Y){var b,w,V,H;return(b=Y.getWatchNextResponse())==null?void 0:(w=b.contents)==null?void 0:(V=w.twoColumnWatchNextResults)==null?void 0:(H=V.playlist)==null?void 0:H.playlist};
wsO=function(Y){var b,w,V,H,f,E;return(b=brR(Y))==null?void 0:(w=b.playlistButtons)==null?void 0:(V=w.menuRenderer)==null?void 0:(H=V.topLevelButtons)==null?void 0:(f=H[0])==null?void 0:(E=f.playlistLoopButtonRenderer)==null?void 0:E.playlistLoopStateEntityKey};
VJF=function(Y){var b=_.fH().resolve(_.zF),w;return(b=(w=_.v(b.getAutoplayEndpoint(),_.TG))==null?void 0:w.playlistId)&&b===Y};
fPR=function(Y,b,w,V,H){function f(){_.Lb.cancelJob(p6);var E=HrN(b,w/Y.getPlaybackRate()),U=E.hours,X=E.minutes;E=(E.seconds*1E3||6E4)/Y.getPlaybackRate();Y.setVideoTimeLeft(gzR(U,X));V&&Y.getPlayerState()!==0&&Y.setSleepTimerTimeLeft(gzR(U,X,!0));(U>0||X>0)&&!H&&(p6=_.vv(_.Lb,f,E))}
_.Lb.cancelJob(p6);p6=_.vv(_.Lb,f)};
Nes=function(Y,b,w){function V(){_.Lb.cancelJob(OR);var H=HrN(b,w),f=H.hours;H=H.minutes;var E=6E4/Y.getPlaybackRate();if(f>0||H>0)Y.setSleepTimerTimeLeft(gzR(f,H,!0)),OR=_.vv(_.Lb,V,E)}
_.Lb.cancelJob(OR);OR=_.vv(_.Lb,V)};
EzO=function(Y,b){var w=Y.getVolume()/(b/500),V=function(H){_.Lb.cancelJob(t3);var f=Math.floor(H-w);Y.setVolume(f,!1);f>0&&(t3=_.vv(_.Lb,function(){V(f)},500))};
_.Lb.cancelJob(t3);t3=_.vv(_.Lb,function(){V(Y.getVolume())})};
cTs=function(Y,b){_.Lb.cancelJob(t3);b&&Y.syncVolume()};
UAb=function(){var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.sa("SLEEP_TIMER_DISRUPTED")}}}}};_.fH().resolve(_.Nn).resolveCommand(Y)};
XsF=function(Y){return(Y.getDuration()-Y.getProgressState().current)*1E3};
HrN=function(Y,b){Y=Y+b-(0,_.gG)();if(Y<=0)return{hours:0,minutes:0,seconds:0};var w=new DAA(0,0,0,0,0,0,Y);Y=w.getHours();b=w.getMinutes();w=w.getSeconds();w!==0&&b++;b!==0&&b%60===0&&(Y++,b=0);return{hours:Y,minutes:b,seconds:w}};
gzR=function(Y,b,w){return Y>0&&b>0?w?_.sa("TIME_LEFT_HOURS_MINUTES",{hours:Y.toString(),minutes:b.toString()}):_.sa("TIME_HOURS_MINUTES",{hours:Y.toString(),minutes:b.toString()}):Y>0?w?_.QX("TIME_LEFT_HOURS",Y):_.QX("TIME_HOURS",Y):w?_.sa("TIME_LEFT_MINUTES",{minutes:b.toString()}):_.sa("TIME_MINUTES",{minutes:b.toString()})};
mAd=function(Y,b){if(Y.timelyActions)return Y.timelyActions.find(function(w){var V;return((V=_.v(w,RK))==null?void 0:V.cueRangeId)===b})};
ozR=function(Y){var b=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.oB(Y);Y.keyMap_.forEach(function(w,V){_.Ka(b,V)||this.remove(V)},Y)};
IPs=function(Y,b){Y.reloadContinuationItemsCommandMatcher=b};
_.dg=function(Y,b){Y.insertBefore(b,Y.childNodes[0]||null)};
k0N=function(Y){if(Y>=48&&Y<=57||Y>=96&&Y<=106||Y>=65&&Y<=90||_.hZ&&Y==0)return!0;switch(Y){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return _.lL;default:return!1}};
lP7=function(Y){if(Y.altKey&&!Y.ctrlKey||Y.metaKey||Y.keyCode>=112&&Y.keyCode<=123)return!1;if(k0N(Y.keyCode))return!0;switch(Y.keyCode){case 18:case 20:case 93:case 17:case 40:case 35:case 27:case 36:case 45:case 37:case 224:case 91:case 144:case 12:case 34:case 33:case 19:case 255:case 44:case 39:case 145:case 16:case 38:case 252:case 224:case 92:return!1;case 0:return!_.lL;default:return Y.keyCode<166||Y.keyCode>183}};
DAA=function(Y,b,w,V,H,f,E){this.date=typeof Y==="number"?new Date(Y,b||0,w||1,V||0,H||0,f||0,E||0):new Date(Y&&Y.getTime?Y.getTime():_.XT())};
_.DX(DAA,_.Mw);_.g=DAA.prototype;_.g.getHours=function(){return this.date.getHours()};
_.g.getMinutes=function(){return this.date.getMinutes()};
_.g.getSeconds=function(){return this.date.getSeconds()};
_.g.getMilliseconds=function(){return this.date.getMilliseconds()};
_.g.getUTCDay=function(){return this.date.getUTCDay()};
_.g.getUTCHours=function(){return this.date.getUTCHours()};
_.g.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.g.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.g.setHours=function(Y){this.date.setHours(Y)};
_.g.setMinutes=function(Y){this.date.setMinutes(Y)};
_.g.setSeconds=function(Y){this.date.setSeconds(Y)};
_.g.setMilliseconds=function(Y){this.date.setMilliseconds(Y)};
_.g.setUTCHours=function(Y){this.date.setUTCHours(Y)};
_.g.setUTCMinutes=function(Y){this.date.setUTCMinutes(Y)};
_.g.setUTCSeconds=function(Y){this.date.setUTCSeconds(Y)};
_.g.setUTCMilliseconds=function(Y){this.date.setUTCMilliseconds(Y)};
_.g.add=function(Y){_.Mw.prototype.add.call(this,Y);Y.hours&&this.setUTCHours(this.date.getUTCHours()+Y.hours);Y.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+Y.minutes);Y.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+Y.seconds)};
_.g.JSC$9276_toIsoString=function(Y){var b=_.Mw.prototype.JSC$9276_toIsoString.call(this,Y);return Y?b+"T"+_.EI(this.getHours(),2)+":"+_.EI(this.getMinutes(),2)+":"+_.EI(this.getSeconds(),2):b+"T"+_.EI(this.getHours(),2)+_.EI(this.getMinutes(),2)+_.EI(this.getSeconds(),2)};
_.g.equals=function(Y){return this.getTime()==Y.getTime()};
_.g.toString=function(){return this.JSC$9276_toIsoString()};
_.g.clone=function(){var Y=new DAA(this.date);Y.firstDayOfWeek_=this.firstDayOfWeek_;Y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return Y};
_.hNg=function(Y){return _.Uf({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:Y}})};
xAO=new _.A("imageTileRenderer");var qmN=new _.A("adGridCardCollectionViewModel");var s97=new _.A("carouselTitleViewModel");var Q9t=new _.A("ctaCarouselItemViewModel");var vzQ=new _.A("textFieldViewModel");_.P9X=new _.A("engagementPanelHeaderShowNavigationButtonCommand");var Zrd=new _.A("hideEngagementPanelScrimAction");var Bed=new _.A("setActivePanelItemAction");var nzt=new _.A("showEngagementPanelScrimAction");var MJF=new _.A("updateEngagementPanelAction");var eNg=new _.A("updateSearchInVideoResultsAction");var pst=new _.A("transcriptCueGroupRenderer");var OrQ=new _.A("transcriptCueRenderer");var tJd=new _.A("transcriptFooterRenderer");var RNt=new _.A("engagementPanelAdSubtitleRenderer");var dAb=new _.A("videoDescriptionFantasySectionViewModel");var F6b=new _.A("deleteClipEngagementPanelCommand");var L6R=new _.A("loopCommand");var SmR=new _.A("changeCreatorEndscreenVisibilityCommand");var aPO=new _.A("liveChatCallForQuestionsRenderer");var rTN=new _.A("updateTimedMarkersSyncObserverCommand");var RK=new _.A("timelyActionViewModel");var zNt=new _.A("timelyActionsOverlayViewModel");var W6g=new _.A("repeatChapterCommand");var K6b=new _.A("watchPlayerOverflowMenuCommand");var irX=new _.A("compositeVideoOverlayRenderer");var ATI=new _.A("sortFilterSubMenuRenderer");var C9Q=new _.A("switchListItemViewModel");var yTs=new _.A("inputComposerViewModel");var $Ag=new _.A("transcriptEditSegmentCommand");var j97=new _.A("transcriptUpdateSegmentTextCommand");var G0N=new _.A("transcriptSearchBoxRenderer");var Tet=new _.A("transcriptSegmentListRenderer");var JTQ=new _.A("transcriptSegmentRenderer");_.uoI=new _.A("updateDateTextAction");var Y$7=new _.A("updateTitleAction");var bIX=new _.A("updateViewershipAction");var wCO=new _.A("carouselLockupRenderer");var V8d=new _.A("expandableVideoDescriptionBodyRenderer");var HId=new _.A("videoDescriptionYouchatSectionViewModel");_.Fi=_.cQ("kevlar_watch_page_horizontal_margin",24);_.gT7=_.cQ("kevlar_watch_page_columns_top_padding",24);_.f0R=426+_.Fi*2;_.L6=_.cQ("kevlar_watch_two_column_width_threshold",1E3);_.Njg=_.Fi*2;_.ETN=_.cQ("kevlar_watch_secondary_width",402);_.c5I=_.cQ("kevlar_watch_max_player_width",1280);_.UtR=_.cQ("kevlar_watch_flexy_metadata_height",136);_.XCd=_.Njg+310+_.Fi;_.Dt7=_.Njg+360+_.Fi;var mtQ={PAUSE_CHAT:18};var oTN;var I0X;var SG=function(){return _.F.apply(this,arguments)||this};
_.P(SG,_.F);SG.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
SG.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var Y=_.v(this.data.button,_.Bv);Y&&(Y.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.up.Object.defineProperties(SG,{template:{configurable:!0,enumerable:!0,get:function(){if(I0X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-disableable-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_disableable_button_view_model.yt.disableable.button.view.model.css.js--\x3e<div id="button" class="style-scope yt-disableable-button-view-model"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;oTN===void 0&&(oTN=document.createElement("template"));var V=oTN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);I0X=Y}Y=I0X;return Y}}});
_.z([_.n(_.AW),_.K("design:type",Object)],SG.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({selectorArgs:["data.enabledEntityKey"],selector:sSX,observer:"onEnabledChange"}),_.K("design:type",Boolean)],SG.prototype,"enabled",void 0);_.z([_.R(),_.K("design:type",Object)],SG.prototype,"data",void 0);_.z([_.FM({is:"yt-disableable-button-view-model",noInjection:!0})],SG);var kbg;var l0b;var h5N=["transVert01","transVert02","transVert03"],xtR="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),aK=function(){var Y=_.F.apply(this,arguments)||this;Y.emojiManager=_.Wz;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};Y.reactionBuckets=[];Y.noEmojiIdentifier="NO_EMOJI";return Y};
_.P(aK,_.F);_.g=aK.prototype;_.g.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.g.desktopFountainEmojiSizePxChanged=function(){_.m_(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.g.createUserReactionAnimation=function(Y){this.createEmojiAnimation(Y,!0)};
_.g.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var Y;((Y=this.data)==null?0:Y.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.qo("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Bt(this.emojiContainer.children)).forEach(function(b){b.remove()})};
_.g.detached=function(){this.cleanupFountain()};
_.g.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var Y;this.reactionBuckets=_.BL.unsafeClone((Y=this.emojiFountainData)==null?void 0:Y.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.g.processEmojiBucket=function(Y){var b=this;if(this.reactionBuckets&&!(Y>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var w=this.reactionBuckets[Y];this.generateEmojiAnimations(w);if(Y<this.reactionBuckets.length-1){var V;if(w==null?0:(V=w.duration)==null?0:V.seconds)this.emojiBucketTimerId=setTimeout(function(){b.processEmojiBucket(Y+1)},Number(w.duration.seconds)*1E3)}}};
_.g.generateEmojiAnimations=function(Y){var b=this,w=this.getRandomEmojiIdFromBucketWithOverride(Y);if(w&&w!==this.noEmojiIdentifier){var V=0;Y.targetEps?(V=this.linearInterpolateBounded(1,20,100,12,Y.emojiSizeIndex||0),this.createEmojiAnimation(w,!1,Y.emojiAnimationMs,V),V=this.getEmojiDelayMsFromTargetEps(Y.targetEps)):(this.createEmojiAnimation(w),V=this.getEmojiDelayMsFromDistribution(Y.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){b.generateEmojiAnimations(Y)},V)}};
_.g.getRandomEmojiIdFromBucketWithOverride=function(Y){if(!(Y&&Y.reactionsData&&Y.reactionsData.length&&Y.totalReactions))return this.noEmojiIdentifier;for(var b=Y.totalReactions,w=1,V=_.N(Y.reactionsData),H=V.next();!H.done;H=V.next())H=H.value,(H.reactionWeightOverride||H.reactionWeightOverride===0)&&H.reactionCount&&(b-=H.reactionCount,w-=H.reactionWeightOverride);V=!0;w<0&&(V=!1,b=Y.totalReactions,w=1);if(V&&w>0&&b===0)if(w===1){H=0;for(var f=_.N(Y.reactionsData),E=f.next();!E.done;E=f.next())E=
E.value,E.reactionCount&&E.reactionCount>0&&H++;H=1/H;f=_.N(Y.reactionsData);for(E=f.next();!E.done;E=f.next())E.value.reactionWeightOverride=H}else for(H=1/(1-w),f=_.N(Y.reactionsData),E=f.next();!E.done;E=f.next())E=E.value,E.reactionWeightOverride&&(E.reactionWeightOverride*=H);H=Math.random();f=0;E=_.N(Y.reactionsData);for(var U=E.next();!U.done;U=E.next())if(U=U.value,U.reactionCount&&(f=(U.reactionWeightOverride||U.reactionWeightOverride===0)&&V?f+U.reactionWeightOverride:f+w*U.reactionCount/
b,f>H&&(U.reactionCount--,Y.totalReactions--,U=this.reactionItemToEmojiString(U),U!==this.noEmojiIdentifier)))return U;return this.noEmojiIdentifier};
_.g.reactionItemToEmojiString=function(Y){if(Y.unicodeEmojiId)return Y.unicodeEmojiId;if(Y.emoteId)return Y.emoteId;if(Y.videoReactionType)switch(Y.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.g.createEmojiAnimation=function(Y,b,w,V){b=b===void 0?!1:b;this.lastEmojiRequestedForTesting=Y;var H=Y.startsWith("yt-icons:"),f=_.r9(this.emojiManager,Y);if(f||H){var E=document.createElement("emoji");E.classList.add("yt-emoji-fountain-view-model");E.classList.add(h5N[Math.floor(Math.random()*h5N.length)]);var U=document.createElement("div");U.classList.add("yt-emoji-fountain-view-model");U.classList.add("horizontal-container");U.classList.add(xtR[Math.floor(Math.random()*xtR.length)]);b?(w=document.createElement("div"),
w.classList.add("user-reaction-bubble"),w.classList.add("yt-emoji-fountain-view-model"),U.appendChild(w)):(w&&(E.style.animationDuration=w+"ms",U.style.animationDuration=w+"ms"),V&&(E.style.width=V+"px",E.style.height=V+"px"));H?(H=document.createElement("yt-icon"),H.polymerController.icon=Y,V&&(H.style.width=V+"px",H.style.height=V+"px"),Y=H):Y=this.emojiManager.createEmoji(f,!1);Y.classList.add("yt-emoji-fountain-view-model");U.appendChild(Y);E.appendChild(U);this.emojiContainer.appendChild(E);
E.addEventListener("animationend",function(){E.remove()});
var X,I;if((X=this.data)==null?0:(I=X.loggingDirectives)==null?0:I.trackingParams)b=b?_.tj(183501):_.tj(183500),QSQ(this.data.loggingDirectives.trackingParams,b),_.peL(b);setTimeout(function(){E&&E.remove()},2E3)}};
_.g.getEmojiDelayMsFromDistribution=function(Y){return Math.random()*(Y||1)*1E3};
_.g.getEmojiDelayMsFromTargetEps=function(Y){return Math.random()*2*(1/Y)*1E3};
_.g.linearInterpolateBounded=function(Y,b,w,V,H){H=Math.min(Math.max(H,Y),w);return(b*(w-H)+V*(H-Y))/(w-Y)};
aK.prototype.onEmojiFountainDataEntityUpdate=aK.prototype.onEmojiFountainDataEntityUpdate;aK.prototype.desktopFountainEmojiSizePxChanged=aK.prototype.desktopFountainEmojiSizePxChanged;aK.prototype.isActiveChanged=aK.prototype.isActiveChanged;_.z([_.R(),_.K("design:type",_.aG)],aK.prototype,"emojiManager",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],aK.prototype,"ytLiveChatReduxBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],aK.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],aK.prototype,"data",void 0);_.z([_.R({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"emojiFountainDataEntity",b)}}),
_.K("design:type",Object)],aK.prototype,"emojiFountainData",void 0);_.z([_.R(),_.K("design:type",Boolean)],aK.prototype,"isActive",void 0);_.z([_.lr("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aK.prototype,"isActiveChanged",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],aK.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",String)],aK.prototype,"lastEmojiRequestedForTesting",void 0);
_.z([_.R({value:function(){return _.cQ("desktop_fountain_emoji_size_px",20)}}),
_.K("design:type",Number)],aK.prototype,"desktopFountainEmojiSizePx",void 0);_.z([_.lr("desktopFountainEmojiSizePx"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aK.prototype,"desktopFountainEmojiSizePxChanged",null);_.z([_.xZ("#emoji-container"),_.K("design:type",HTMLElement)],aK.prototype,"emojiContainer",void 0);
_.z([_.lr("emojiFountainData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],aK.prototype,"onEmojiFountainDataEntityUpdate",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],aK);
_.a(aK,"yt-emoji-fountain-view-model",function(){if(l0b===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-emoji-fountain-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_emoji_fountain_view_model.yt.emoji.fountain.view.model.css.js--\x3e<div id="fountain-bounds" class="style-scope yt-emoji-fountain-view-model">\n  <div id="emoji-container" class="style-scope yt-emoji-fountain-view-model"></div>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;kbg===void 0&&(kbg=document.createElement("template"));var V=kbg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);l0b=Y}Y=l0b;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var q$s;var sNI;var rg=function(){return _.F.apply(this,arguments)||this};
_.P(rg,_.F);rg.prototype.onChoiceChanged=function(){this.data&&_.m_(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
rg.prototype.onChoiceChanged=rg.prototype.onChoiceChanged;_.z([_.R(),_.K("design:type",Object)],rg.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rg.prototype,"onChoiceChanged",null);_.z([_.S({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],rg);
_.a(rg,"yt-live-chat-banner-poll-choice",function(){if(sNI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-banner-poll-choice--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_banner_poll_choice.yt.live.chat.banner.poll.choice.css.js--\x3e<div id="content" class="style-scope yt-live-chat-banner-poll-choice">\n  <div id="percentage-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <div id="vote-percentage-bar" class="style-scope yt-live-chat-banner-poll-choice"></div>\n  </div>\n  <div id="text-container" class="style-scope yt-live-chat-banner-poll-choice">\n    <yt-formatted-string id="label-text" no-styles="" text="[[data.text]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n    <yt-formatted-string id="vote-percentage-text" no-styles="" text="[[data.votePercentage]]" class="style-scope yt-live-chat-banner-poll-choice"></yt-formatted-string>\n  </div>\n</div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;q$s===void 0&&(q$s=document.createElement("template"));var V=q$s;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);sNI=Y}Y=sNI;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var QN7;var vTI;var zY=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_button_rework_with_live");Y.small=!1;return Y};
_.P(zY,_.F);zY.prototype.computeIsSmall=function(){var Y;return((Y=this.buttonOverrides)==null?void 0:Y.size)==="S"};
zY.prototype.computeId=function(){return this.data&&this.data.targetId};
_.z([_.n(_.CZ.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],zY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.z([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",String)],zY.prototype,"id",void 0);_.z([_.R(),_.K("design:type",Object)],zY.prototype,"buttonOverrides",void 0);_.z([_.R(),_.K("design:type",Object)],zY.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],zY.prototype,"modern",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.K("design:type",Object)],zY.prototype,"small",void 0);_.z([_.S({disableElementRegistration:!0,is:"yt-live-chat-button"})],zY);
_.a(zY,"yt-live-chat-button",function(){if(vTI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_button.yt.live.chat.button.css.js--\x3e<yt-button-renderer data="[[data]]" overrides="[[buttonOverrides]]" class="style-scope yt-live-chat-button"></yt-button-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;QN7===void 0&&(QN7=document.createElement("template"));var V=QN7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);vTI=Y}Y=vTI;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Pu7;var ZII;var Wi=function(){var Y=_.F.apply(this,arguments)||this;Y.inCollapsedBanner=!1;Y.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};Y.questionButtonOverrides={style:"mono",type:"filled"};return Y};
_.P(Wi,_.F);_.g=Wi.prototype;_.g.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]]"}}}}}};
_.g.onContextMenuButtonClick=function(Y){this.ytLiveChatItemBehavior.showContextMenu(Y)};
_.g.onYtRendererstamperFinished=function(){this.menuButton=_.E6(this.hostElement).querySelector("#menu-button")};
_.g.dataChanged=function(){var Y,b;if((b=_.v((Y=this.data)==null?void 0:Y.overflowMenuButton,_.Wa))==null?0:b.command)this.data.contextMenuEndpoint=_.v(this.data.overflowMenuButton,_.Wa).command};
_.g.onButtonClick=function(){var Y,b=_.v((Y=this.data)==null?void 0:Y.askQuestionButton,_.Wa);if(b){if(b.trackingParams&&(Y=_.nA(b.trackingParams))){var w=_.dO();w&&_.J1(w,Y)}_.Ua(this.hostElement,"innertube-command",b.command)}};
Wi.prototype.onYtRendererstamperFinished=Wi.prototype.onYtRendererstamperFinished;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Wi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],Wi.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],Wi.prototype,"ytLiveChatItemBehavior",void 0);_.z([_.R({observer:"dataChanged"}),_.K("design:type",Object)],Wi.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Wi.prototype,"inCollapsedBanner",void 0);_.z([_.R(),_.K("design:type",Object)],Wi.prototype,"buttonOverrides",void 0);_.z([_.R(),_.K("design:type",Object)],Wi.prototype,"questionButtonOverrides",void 0);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Wi.prototype,"onYtRendererstamperFinished",null);
_.z([_.S({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Wi);
_.a(Wi,"yt-live-chat-call-for-questions-renderer",function(){if(ZII===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-call-for-questions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_call_for_questions_renderer.yt.live.chat.call.for.questions.renderer.css.js--\x3e<div id="content-top" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorAvatar]]" thumbnail="[[data.creatorAvatar]]" width="24" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-img-shadow>\n\n  <div id="metadata-text" class="style-scope yt-live-chat-call-for-questions-renderer">\n    <yt-formatted-string id="author-name" hidden$="[[inCollapsedBanner]]" text="[[data.creatorAuthorName]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-collapsed" hidden$="[[inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="feature-label" text="[[data.featureLabel]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="separator-extended" hidden$="[[!inCollapsedBanner]]" text="[[data.contentSeparator]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n\n    <yt-formatted-string id="collapsed-call-for-questions-text" hidden$="[[!inCollapsedBanner]]" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n    </yt-formatted-string>\n  </div>\n\n  <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n\n<div id="main-content" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  <yt-formatted-string id="call-for-questions-text" text="[[data.questionMessage]]" class="style-scope yt-live-chat-call-for-questions-renderer">\n  </yt-formatted-string>\n\n  <div id="ask-question" on-click="onButtonClick" hidden$="[[inCollapsedBanner]]" class="style-scope yt-live-chat-call-for-questions-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Pu7===void 0&&(Pu7=document.createElement("template"));var V=Pu7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ZII=Y}Y=ZII;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var BjX={};BjX.YtLiveChatDialogBehavior={properties:{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged_"}},observers:["isAttachedChanged_(isAttached)"],created:function(){this.restoreFocusNode_=null},
attached:function(){document.addEventListener("focus",this.onFocus_.bind(this),!0)},
detached:function(){this.restoreFocusNode_=null;document.removeEventListener("focus",this.onFocus_.bind(this),!0)},
focusChild_:function(){var Y=this;window.requestAnimationFrame(function(){Y.restoreFocusNode_||(Y.restoreFocusNode_=document.activeElement);var b=_.dRr(Y.hostElement);b.length&&b[b.length-1].focus()})},
isAttachedChanged_:function(Y,b){Y?this.focusChild_():b&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(Y){this.hidden||_.JL(Y).indexOf(this.hostElement)!==-1||(Y.stopPropagation(),this.focusChild_())}};var nTX;var M8X;var K6=function(){return _.F.apply(this,arguments)||this};
_.P(K6,_.F);K6.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
K6.prototype.onClick=function(Y){Y.target!==this.confirmButton&&Y.target!==this.cancelButton&&(this.hidden=!0)};
_.z([_.xZ("#confirm_button"),_.K("design:type",Object)],K6.prototype,"confirmButton",void 0);_.z([_.xZ("#cancel_button"),_.K("design:type",Object)],K6.prototype,"cancelButton",void 0);_.z([_.R(),_.K("design:type",e57)],K6.prototype,"data",void 0);_.z([_.R({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],K6.prototype,"hidden",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(BjX.YtLiveChatDialogBehavior),_.K("design:type",Object)],K6.prototype,"ytLiveChatDialogBehavior",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],K6);
var e57=_.a(K6,"yt-live-chat-dialog-renderer",function(){if(M8X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_dialog_renderer.yt.live.chat.dialog.renderer.css.js--\x3e<div id="inner" aria-describedby="live-chat-dialog-body" aria-labelledby="live-chat-dialog-title" role="dialog" class="style-scope yt-live-chat-dialog-renderer">\n  <yt-image id="image" alt="[[data.imageA11yLabel]]" data="[[data.image]]" height="200" preserve-height="" width="32" class="style-scope yt-live-chat-dialog-renderer">\n  </yt-image>\n  <yt-formatted-string id="live-chat-dialog-title" text="[[data.title]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n  <div id="live-chat-dialog-body" class="style-scope yt-live-chat-dialog-renderer">\n    \n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-live-chat-dialog-renderer">\n      <yt-formatted-string force-default-style="" split-lines="" text="[[item]]" class="style-scope yt-live-chat-dialog-renderer"></yt-formatted-string>\n    </template>\n  </div>\n  <div id="buttons" class="style-scope yt-live-chat-dialog-renderer">\n    <div id="cancel_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n    <div id="confirm_button" on-click="onClick" class="style-scope yt-live-chat-dialog-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;nTX===void 0&&(nTX=document.createElement("template"));var V=nTX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);M8X=Y}Y=M8X;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var pCt;var OIN,t8b=function(){if(OIN!==void 0)return OIN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-engagement-panel-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_engagement_panel_input_renderer.yt.live.chat.engagement.panel.input.renderer.css.js--\x3e<div id="content" class="style-scope yt-live-chat-engagement-panel-input-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;pCt===void 0&&(pCt=document.createElement("template"));var V=pCt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return OIN=Y};var R5N;var dtA;var i_=function(){var Y=_.F.apply(this,arguments)||this;Y.tooltip=null;Y.data=null;Y.id="";Y.active=!1;Y.icon="";Y.disabled=!1;Y.showTooltip=!1;Y.useToggledActiveState=!0;Y.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return Y};
_.P(i_,_.F);_.g=i_.prototype;
_.g.dataChanged=function(){var Y;((Y=this.data)==null?0:Y.tooltip)?(this.tooltip||(this.tooltip=document.createElement("tp-yt-paper-tooltip"),this.tooltip.position="top",this.tooltip.offset=8,this.tooltip.fitToVisibleBounds=!0,this.tooltip.style.right="0",this.hostElement.appendChild(this.tooltip)),(0,_.DT)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var b;if((b=this.data)==null?0:b.disabled)this.disabled=!0};
_.g.computeId=function(Y){return Y};
_.g.computeIcon=function(Y,b){if(!Y)return"";if(this.useToggledActiveState)return"yt-icons:"+Y.toLowerCase();var w,V;return b&&((w=this.data)==null?0:(V=w.toggledIcon)==null?0:V.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+Y.toLowerCase()};
_.g.logPDGEntryPoint=function(){_.uc6(_.oA("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")};
_.g.immediatelyShowTooltip=function(){var Y=_.E6(this.hostElement).querySelector("#tooltip");Y.animationDelay=0;Y.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};Y.show()};
_.g.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.g.onClick=function(Y){var b;((b=this.data)==null?0:b.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),Y.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Ua(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.g.computeShowTooltip=function(Y,b){return!!(Y&&Y.tooltip&&b)};
_.g.maybeUpdateTooltipText=function(){var Y=this,b;if((b=this.data)==null?0:b.tooltip){var w=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.DT)(Y.tooltip).textContent=w},250)}};
_.g.handleLiveChatActions=function(Y){var b=this;Y.length&&(this.id!=="creator"&&this.id!=="product-picker"||Y.forEach(function(w){(w=b.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",w))&&w.durationSec===w.fullDurationSec&&b.startBubble(b.colorFromDecimal(w.startBackgroundColor))}))};
_.g.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.g.startBubble=function(Y){_.m_(this.hostElement,{"--yt-live-chat-monetization-button-glow":Y});this.hostElement.setAttribute("bubble","")};
_.g.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.g.colorFromDecimal=function(Y){typeof Y==="string"&&(Y=Number(Y));return"rgba("+[Y>>16&255,Y>>8&255,Y&255,(Y>>24&255)/255].join()+")"};
i_.prototype.onAnimationEnd=i_.prototype.onAnimationEnd;i_.prototype.disabledChanged=i_.prototype.disabledChanged;i_.prototype.dataChanged=i_.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],i_.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.CZ.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],i_.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],i_.prototype,"data",void 0);_.z([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",Object)],i_.prototype,"id",void 0);_.z([_.R({notify:!0,reflectToAttribute:!0}),_.K("design:type",Object)],i_.prototype,"active",void 0);
_.z([_.R({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.K("design:type",Object)],i_.prototype,"icon",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],i_.prototype,"disabled",void 0);_.z([_.R({computed:"computeShowTooltip(data, disabled)"}),_.K("design:type",Object)],i_.prototype,"showTooltip",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],i_.prototype,"useToggledActiveState",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i_.prototype,"dataChanged",null);_.z([_.lr("disabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i_.prototype,"disabledChanged",null);_.z([_.kZ("animationend"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],i_.prototype,"onAnimationEnd",null);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],i_);
_.a(i_,"yt-live-chat-icon-toggle-button-renderer",function(){if(dtA===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-icon-toggle-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_icon_toggle_button_renderer.yt.live.chat.icon.toggle.button.renderer.css.js--\x3e<yt-icon-button id="button" disabled="[[disabled]]" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <span id="bubble" class="style-scope yt-live-chat-icon-toggle-button-renderer"></span>\n  <div class="style-scope yt-live-chat-icon-toggle-button-renderer">\n    <yt-icon active="[[active]]" icon="[[icon]]" class="style-scope yt-live-chat-icon-toggle-button-renderer"></yt-icon>\n    <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.iconBadgeText]]</span>\n  </div>\n</yt-icon-button>\n<template is="dom-if" if="[[showTooltip]]" class="style-scope yt-live-chat-icon-toggle-button-renderer">\n  <tp-yt-paper-tooltip id="tooltip" for="button" class="style-scope yt-live-chat-icon-toggle-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;R5N===void 0&&(R5N=document.createElement("template"));var V=R5N;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);dtA=Y}Y=dtA;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var FPI;var LPI;var A3=function(){return _.F.apply(this,arguments)||this};
_.P(A3,_.F);A3.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.z([_.R(),_.K("design:type",Object)],A3.prototype,"data",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.S({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],A3);
_.a(A3,"yt-live-chat-message-input-prompt-header-renderer",function(){if(LPI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-prompt-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_prompt_header_renderer.yt.live.chat.message.input.prompt.header.renderer.css.js--\x3e<div id="primary-content" class="style-scope yt-live-chat-message-input-prompt-header-renderer">\n  <div id="close-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n  <yt-formatted-string id="label-text" text="[[data.labelText]]" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></yt-formatted-string>\n  <div id="help-button" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>\n</div>\n<div id="underline" class="style-scope yt-live-chat-message-input-prompt-header-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;FPI===void 0&&(FPI=document.createElement("template"));var V=FPI;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);LPI=Y}Y=LPI;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var S$b;var a0X;var r5Q;var z5s;var WP7;var KPX;var iIg=function(){return _.F.apply(this,arguments)||this};
_.P(iIg,_.F);_.z([_.R(),_.K("design:type",Object)],iIg.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],iIg);
_.a(iIg,"yt-live-chat-message-subtext-renderer",function(){if(KPX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-subtext-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_subtext_renderer.yt.live.chat.message.subtext.renderer.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-message-subtext-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;WP7===void 0&&(WP7=document.createElement("template"));var V=WP7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);KPX=Y}Y=KPX;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var C6=function(){var Y=_.F.apply(this,arguments)||this;Y.subtextOnBottom=!1;Y.buttonOverrides={style:"mono",type:"tonal"};return Y};
_.P(C6,_.F);C6.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],C6.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],C6.prototype,"subtextOnBottom",void 0);_.z([_.R(),_.K("design:type",Object)],C6.prototype,"buttonOverrides",void 0);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],C6);
_.a(C6,"yt-live-chat-message-renderer",function(){if(z5s===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_renderer.yt.live.chat.message.renderer.css.js--\x3e<yt-formatted-string id="text" text="[[data.text]]" class="style-scope yt-live-chat-message-renderer"></yt-formatted-string>\n<div id="subtext" class="style-scope yt-live-chat-message-renderer"></div>\n<div id="button" class="style-scope yt-live-chat-message-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;r5Q===void 0&&(r5Q=document.createElement("template"));var V=r5Q;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);z5s=Y}Y=z5s;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var A5Q;var CuX;var yf=function(){var Y=_.F.apply(this,arguments)||this;Y.isRemovable=!1;Y.hasPrefilledText=!1;Y.isInputDirty=!1;Y.overCharacterLimit=!1;Y.underCharacterLimit=!1;Y.showErrorMessage=!1;return Y};
_.P(yf,_.F);_.g=yf.prototype;_.g.computeId=function(){return this.data.id};
_.g.computeInputData=function(){return this.data.inputData};
_.g.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.g.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.g.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.g.getLiveChatRichMessageInput=function(){return _.E6(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.g.clearInput=function(){_.E6(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.g.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.g.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.g.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.g.handleTextInputCharCountChanged=function(Y){Y=Y.detail&&Y.detail.characterCount;Y!==void 0&&(this.characterCount=Y,Y!==0&&(this.isInputDirty=!0))};
_.g.onInputFocusOut=function(){this.isInputDirty=!0};
_.g.onClickCloseButton=function(){_.Ua(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
yf.prototype.handleTextInputCharCountChanged=yf.prototype.handleTextInputCharCountChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yf.prototype,"data",void 0);_.z([_.R({computed:"computeId(data.id)"}),_.K("design:type",String)],yf.prototype,"id",void 0);_.z([_.R({computed:"computeInputData(data.inputData)"}),_.K("design:type",Object)],yf.prototype,"inputData",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.K("design:type",Object)],yf.prototype,"isRemovable",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.K("design:type",Object)],yf.prototype,"hasPrefilledText",void 0);_.z([_.R({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.K("design:type",Number)],yf.prototype,"charactersRemaining",void 0);
_.z([_.R(),_.K("design:type",Number)],yf.prototype,"characterCount",void 0);_.z([_.R(),_.K("design:type",Object)],yf.prototype,"isInputDirty",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.K("design:type",Object)],yf.prototype,"overCharacterLimit",void 0);_.z([_.R({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.K("design:type",Object)],yf.prototype,"underCharacterLimit",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.K("design:type",Object)],yf.prototype,"showErrorMessage",void 0);_.z([_.kZ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],yf.prototype,"handleTextInputCharCountChanged",null);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],yf);
_.a(yf,"yt-live-chat-poll-editor-input",function(){if(CuX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_input.yt.live.chat.poll.editor.input.css.js--\x3e<div id="input-container" class="style-scope yt-live-chat-poll-editor-input">\n  <yt-live-chat-text-input-field-renderer id="input" data="[[inputData]]" is-valid-with-no-input-text="[[hasPrefilledText]]" on-focusout="onInputFocusOut" class="style-scope yt-live-chat-poll-editor-input">\n  </yt-live-chat-text-input-field-renderer>\n  <div id="content-right" class="style-scope yt-live-chat-poll-editor-input">\n    <yt-icon-button id="close-button" aria-label$="[[getSimpleString(data.removeOptionAltText)]]" on-click="onClickCloseButton" class="style-scope yt-live-chat-poll-editor-input">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-live-chat-poll-editor-input"></yt-icon>\n    </yt-icon-button>\n    <span id="char-count" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(data.charsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-input">[[charactersRemaining]]</span>\n  </div>\n</div>\n<div id="error-message" role="alert" class="style-scope yt-live-chat-poll-editor-input">\n  [[getSimpleString(data.charCountErrorText)]]\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;A5Q===void 0&&(A5Q=document.createElement("template"));var V=A5Q;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);CuX=Y}Y=CuX;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var y5g;var $tR;var jNN={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},$l=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_button_rework_with_live");Y.closeButtonOverrides={iconPosition:"icon-only"};Y.startButtonOverrides={style:"mono",type:"filled"};Y.addOptionButtonOverrides={style:"mono",type:"text"};return Y};
_.P($l,_.F);_.g=$l.prototype;
_.g.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"}}}}};
_.g.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var Y;_.v((Y=this.data)==null?void 0:Y.startButton,_.Wa)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.g.computeId=function(){return this.data&&this.data.id||""};
_.g.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.g.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.g.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.g.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.g.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var Y=0;Y<this.pollEditorInfoWithDefaults.minPollOptions;Y++)this.addPollOptionData()};
_.g.getIsValidPoll=function(){var Y=this;if(!this.pollEditorInfoWithDefaults)return!1;var b=this.pollEditorInfoWithDefaults,w=b.minPollOptionChars,V=b.maxPollOptionChars,H=b.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>b.maxPollQuestionChars)return!1;b=_.E6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(b).every(function(f,E){f=f.characterCount;!f&&H[E]&&(f=Y.ytRendererBehavior.getSimpleString(H[E]).length);return f!==void 0&&f>=w&&f<=V})};
_.g.isValidPollChanged=function(){var Y;_.v((Y=this.data)==null?void 0:Y.startButton,_.Wa)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.g.addPollOptionData=function(){var Y=this.pollEditorInfoWithDefaults,b=Y.maxPollOptionChars,w=Y.optionPlaceholderText,V=Y.customOptionPlaceholderText,H=Y.pollOptionData;this.currentNumPollOptions>=Y.maxPollOptions||(Y={liveChatPollOptionInput:{inputData:{placeholder:V[this.currentNumPollOptions]||w,maxCharacterLimit:b},maxCharacterLimit:b,minCharacterLimit:Y.minPollOptionChars,hasPrefilledText:!!V[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=Y.minPollOptions}},H.charCountErrorText&&
(Y.liveChatPollOptionInput.charCountErrorText=H.charCountErrorText),H.charsRemainingAltLabel&&(Y.liveChatPollOptionInput.charsRemainingAltLabel=H.charsRemainingAltLabel),H.removeOptionAltText&&(Y.liveChatPollOptionInput.removeOptionAltText=H.removeOptionAltText),this.push("pollOptionsData",Y),H=Array.from(_.E6(_.E6(this.hostElement).querySelector("#poll-options")).children),H.forEach(function(f,E){f.polymerController.set("data.id",E)}),_.E6(H[H.length-1]).querySelector("#input").focus())};
_.g.getPollOptionInputValues=function(){var Y=this,b=[],w=_.E6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),V=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(w).forEach(function(H,f){var E=null;H=H.getLiveChatRichMessageInput();var U;(H==null?0:(U=H.textSegments)==null?0:U.length)?E=_.K_(H):V[f]&&(E=Y.formattedStringToLiveChatRichMessageInput(V[f]));b.push(E)});
return b};
_.g.requestCreateAndStartPoll=function(Y){var b=this.getPollOptionInputValues();if(!b.some(function(V){return!V})){b={optionText:b};
var w=_.E6(_.E6(this.hostElement).querySelector("#poll-question")).firstChild;w&&w.liveChatRichMessageInput&&(b.questionText=_.K_(w.liveChatRichMessageInput));_.oP(this.hostElement,[Y,b])}};
_.g.selectedChanged=function(){if(this.selected){var Y=_.E6(_.E6(this.hostElement).querySelector("#start-button")).firstElementChild;if(Y){var b;(b=_.E6(Y).querySelector("#button")||_.cX(Y).querySelector("button"))==null||b.focus()}}};
_.g.handleTextInputChanged=function(Y){var b;((b=Y.target)==null?void 0:b.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=Y.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.g.handleStartButtonAction=function(Y){Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),(Y=Y.detail.args[1])&&this.requestCreateAndStartPoll(Y))};
_.g.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.g.handleServiceRequestCompleted=function(Y){this.createPollRequestInFlight=!1;(Y=Y.detail&&Y.detail.data)&&Y.success&&(_.Ua(this.hostElement,"picker-cancelled"),_.Xx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.g.onCloseClick=function(){_.Ua(this.hostElement,"picker-cancelled");_.Xx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.g.handlePollEditorInputClosed=function(Y){var b=this.pollOptionsData.findIndex(function(w){return w.liveChatPollOptionInput.id===Y.detail.id});
this.splice("pollOptionsData",b,1);this.isValidPoll=this.getIsValidPoll()};
_.g.onPickerCancelled=function(){this.reset()};
_.g.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var Y=_.E6(_.E6(this.hostElement).querySelector("#poll-question")).firstChild;Y&&Y.setLiveChatRichMessageInput(null);if(Y=_.E6(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){Y=_.N(Array.from(Y));for(var b=Y.next();!b.done;b=Y.next())b.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.g.formattedStringToLiveChatRichMessageInput=function(Y){return Y.simpleText?{text_segments:[Y.simpleText]}:{text_segments:Y.runs}};
_.up.Object.defineProperties($l.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(jNN,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
$l.prototype.onPickerCancelled=$l.prototype.onPickerCancelled;$l.prototype.handlePollEditorInputClosed=$l.prototype.handlePollEditorInputClosed;$l.prototype.handleServiceRequestCompleted=$l.prototype.handleServiceRequestCompleted;$l.prototype.handleServiceRequestSent=$l.prototype.handleServiceRequestSent;$l.prototype.handleTextInputChanged=$l.prototype.handleTextInputChanged;$l.prototype.selectedChanged=$l.prototype.selectedChanged;$l.prototype.isValidPollChanged=$l.prototype.isValidPollChanged;
$l.prototype.shouldInitializePollChanged=$l.prototype.shouldInitializePollChanged;$l.prototype.dataChanged=$l.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],$l.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$l.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$l.prototype,"modern",void 0);
_.z([_.R(),_.K("design:type",Object)],$l.prototype,"closeButtonOverrides",void 0);_.z([_.R(),_.K("design:type",Object)],$l.prototype,"startButtonOverrides",void 0);_.z([_.R(),_.K("design:type",Object)],$l.prototype,"addOptionButtonOverrides",void 0);_.z([_.R({computed:"computeId(data.id)",reflectToAttribute:!0}),_.K("design:type",String)],$l.prototype,"id",void 0);_.z([_.R({value:function(){return[]}}),
_.K("design:type",Array)],$l.prototype,"pollOptionsData",void 0);_.z([_.t("pollEditorInfoWithDefaults"),_.K("design:type",Object),_.K("design:paramtypes",[])],$l.prototype,"pollQuestionData",null);_.z([_.R({value:0}),_.K("design:type",Number)],$l.prototype,"pollQuestionCharacterCount",void 0);_.z([_.t("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],$l.prototype,"pollQuestionCharactersRemaining",null);
_.z([_.R({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.K("design:type",Boolean)],$l.prototype,"overQuestionCharacterLimit",void 0);_.z([_.t("data.pollEditorInfo"),_.K("design:type",Object),_.K("design:paramtypes",[])],$l.prototype,"pollEditorInfoWithDefaults",null);_.z([_.R({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.K("design:type",Number)],$l.prototype,"currentNumPollOptions",void 0);
_.z([_.R({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.K("design:type",Boolean)],$l.prototype,"hasMaxNumPollOptions",void 0);_.z([_.t("pollEditorInfoWithDefaults","pollOptionsData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$l.prototype,"shouldInitializePoll",null);_.z([_.R(),_.K("design:type",Object)],$l.prototype,"isValidPoll",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],$l.prototype,"createPollRequestInFlight",void 0);_.z([_.R(),_.K("design:type",Object)],$l.prototype,"selected",void 0);_.z([_.R({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.K("design:type",Boolean)],$l.prototype,"showQuestionErrorMessage",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$l.prototype,"dataChanged",null);_.z([_.lr("shouldInitializePoll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$l.prototype,"shouldInitializePollChanged",null);_.z([_.lr("isValidPoll"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$l.prototype,"isValidPollChanged",null);
_.z([_.lr("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$l.prototype,"selectedChanged",null);_.z([_.kZ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$l.prototype,"handleTextInputChanged",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$l.prototype,"handleServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$l.prototype,"handleServiceRequestCompleted",null);
_.z([_.kZ("yt-live-chat-poll-editor-input-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$l.prototype,"handlePollEditorInputClosed",null);_.z([_.kZ("picker-cancelled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$l.prototype,"onPickerCancelled",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],$l);
_.a($l,"yt-live-chat-poll-editor-panel-renderer",function(){if($tR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-poll-editor-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_poll_editor_panel_renderer.yt.live.chat.poll.editor.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <yt-icon hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <div id="poll-editor" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    <div id="poll-question" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="poll-question-sub-content" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n      <div id="poll-question-error-message" role="alert" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[getSimpleString(pollEditorInfoWithDefaults.pollQuestionCharCountErrorText)]]\n      </div>\n      <div id="poll-question-count" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharacterCount]]/[[pollEditorInfoWithDefaults.maxPollQuestionChars]]\n      </div>\n      <div id="poll-question-count-alt-label" aria-live="polite" aria-atomic="true" aria-label$="[[getSimpleString(pollEditorInfoWithDefaults.pollOptionData.pollQuestionCharsRemainingAltLabel)]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n        [[pollQuestionCharactersRemaining]]\n      </div>\n    </div>\n    <div id="poll-options" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n    <div id="add-option-button" hidden$="[[hasMaxNumPollOptions]]" on-click="onAddOptionButtonClick" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-poll-editor-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[createPollRequestInFlight]]" class="style-scope yt-live-chat-poll-editor-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;y5g===void 0&&(y5g=document.createElement("template"));var V=y5g;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);$tR=Y}Y=$tR;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var GbO;var Tj7;var jG=function(){return _.F.apply(this,arguments)||this};
_.P(jG,_.F);jG.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
jG.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.up.Object.defineProperties(jG.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(Y=this.data)==null?void 0:(b=Y.title)==null?void 0:b.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var Y;return _.zT((Y=this.data)==null?void 0:Y.onTapCommand)}}});
_.z([_.n(_.sS.YtEndpointBehavior),_.K("design:type",Object)],jG.prototype,"ytEndpointBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jG.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jG.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],jG.prototype,"itemId",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jG.prototype,"hasPromotion",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],jG.prototype,"innertubeCommand",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],jG);
_.a(jG,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Tj7===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-item-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_item_view_model.yt.live.chat.product.picker.panel.item.view.model.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-picker-panel-item-view-model" data="[[innertubeCommand]]">\n  <tp-yt-paper-item id="container" on-click="onClick" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n    \n    <div id="image-container" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-image id="image" alt="product_animation" data="[[data.productImage.themedImageViewModel.imageLight]]" height="54" preserve-height="" preserve-width="" width="54" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-image>\n      <span id="dot" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-picker-panel-item-view-model">\n      <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n      <yt-attributed-string id="description" data="[[data.description]]" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-attributed-string>\n    </div>\n    <yt-icon id="icon" icon="CHEVRON_RIGHT" class="style-scope yt-live-chat-product-picker-panel-item-view-model"></yt-icon>\n  </tp-yt-paper-item>\n</a>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;GbO===void 0&&(GbO=document.createElement("template"));var V=GbO;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Tj7=Y}Y=Tj7;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var J5t;var ups;var GY=function(){var Y=_.F.apply(this,arguments)||this;Y.id="product-picker";Y.selected=!1;Y.closeButtonId="close-button";Y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return Y};
_.P(GY,_.F);_.g=GY.prototype;_.g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.g.observeSelected=function(){this.selected&&this.hostElement.focus();var Y=_.E6(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");Y.length&&Y[0].focus()};
_.g.onCloseBuyFlow=function(){_.Ua(this.hostElement,"picker-cancelled")};
_.g.onCloseClick=function(){_.Ua(this.hostElement,"picker-cancelled");var Y;((Y=this.data)==null?0:Y.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.v(this.data.closeButton,_.Bv))};
_.g.onCloseEngageWithAudienceEditorPanels=function(){_.Ua(this.hostElement,"picker-cancelled")};
GY.prototype.observeSelected=GY.prototype.observeSelected;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],GY.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],GY.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],GY.prototype,"id",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],GY.prototype,"selected",void 0);_.z([_.R(),_.K("design:type",Object)],GY.prototype,"closeButtonId",void 0);_.z([_.lr("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],GY.prototype,"observeSelected",null);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],GY);
_.a(GY,"yt-live-chat-product-picker-panel-view-model",function(){if(ups===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_panel_view_model.yt.live.chat.product.picker.panel.view.model.css.js--\x3e<div id="header" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  <yt-attributed-string id="title" data="[[data.title]]" ellipsis-truncate="true" no-pre-wrap="true" class="style-scope yt-live-chat-product-picker-panel-view-model"></yt-attributed-string>\n  <yt-button-view-model id="[[closeButtonId]]" data="[[data.closeButton.buttonViewModel]]" scoping-class-name="[[is]]" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-panel-view-model">\n  </yt-button-view-model>\n</div>\n<div id="items" class="style-scope yt-live-chat-product-picker-panel-view-model"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;J5t===void 0&&(J5t=document.createElement("template"));var V=J5t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ups=Y}Y=ups;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var YhF;var bmb;var TY=function(){var Y=_.F.apply(this,arguments)||this;Y.iconId="";Y.icon="";Y.disabled=!1;Y.systemIcons=_.q("kevlar_system_icons");return Y};
_.P(TY,_.F);_.g=TY.prototype;_.g.attached=function(){_.q("live_chat_compute_product_button_aria_label")||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1"))};
_.g.computeIconId=function(Y){return Y&&Y.icon&&Y.icon.iconType?Y.icon.iconType.toLowerCase():""};
_.g.computeIcon=function(Y){return Y&&Y.icon&&Y.icon.iconType?(Y=Y.icon.iconType.toLowerCase(),(Y.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+Y):""};
_.g.computeDisabled=function(Y){return!!Y};
_.g.computeCommand=function(Y,b){return b?void 0:Y};
_.g.computeTooltip=function(Y,b){return b&&Y?Y:""};
_.g.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.up.Object.defineProperties(TY.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.q("live_chat_compute_product_button_aria_label"))return"";var Y="",b,w,V;if((b=this.data)==null?0:(w=b.text)==null?0:(V=w.runs)==null?0:V.length)Y=this.data.text.runs[0].text||"";else{var H,f;if((H=this.data)==null?0:(f=H.text)==null?0:f.simpleText)Y=this.data.text.simpleText}var E,U,X;if((E=this.data)==null?0:(U=E.subtext)==null?0:(X=U.runs)==null?0:X.length)Y&&(Y+=". "),Y+=this.data.subtext.runs[0].text||
"";else{var I,k;if((I=this.data)==null?0:(k=I.subtext)==null?0:k.simpleText)Y&&(Y+=". "),Y+=this.data.subtext.simpleText}return Y}}});
_.z([_.n(_.sS.YtEndpointBehavior),_.K("design:type",Object)],TY.prototype,"ytEndpointBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],TY.prototype,"data",void 0);_.z([_.R({computed:"computeIconId(data)",reflectToAttribute:!0}),_.K("design:type",Object)],TY.prototype,"iconId",void 0);
_.z([_.R({computed:"computeIcon(data)",reflectToAttribute:!0}),_.K("design:type",Object)],TY.prototype,"icon",void 0);_.z([_.R({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.K("design:type",Object)],TY.prototype,"disabled",void 0);_.z([_.R({computed:"computeCommand(data.command, disabled)"}),_.K("design:type",Object)],TY.prototype,"command",void 0);_.z([_.R({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.K("design:type",String)],TY.prototype,"tooltip",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],TY.prototype,"systemIcons",void 0);_.z([_.t("data.text","data.subtext"),_.R(),_.K("design:type",String),_.K("design:paramtypes",[])],TY.prototype,"ariaLabel",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],TY);
_.a(TY,"yt-live-chat-product-button-renderer",function(){if(bmb===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;YhF===void 0&&(YhF=document.createElement("template"));var V=YhF;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);bmb=Y}Y=bmb;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var wkg;var VYQ;var J3=function(){var Y=_.F.apply(this,arguments)||this;Y.selected=!1;Y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return Y};
_.P(J3,_.F);_.g=J3.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.computeId=function(Y){return Y.id||""};
_.g.onCloseClick=function(){_.Ua(this.hostElement,"picker-cancelled")};
_.g.observeSelected=function(){this.selected&&this.hostElement.focus();var Y=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");Y.length&&Y[0].focus()};
_.g.onCloseBuyFlow=function(){_.Ua(this.hostElement,"picker-cancelled")};
_.g.onCloseEngageWithAudienceEditorPanels=function(){_.Ua(this.hostElement,"picker-cancelled")};
J3.prototype.observeSelected=J3.prototype.observeSelected;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],J3.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],J3.prototype,"data",void 0);
_.z([_.R({computed:"computeId(data)",reflectToAttribute:!0}),_.K("design:type",String)],J3.prototype,"id",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],J3.prototype,"selected",void 0);_.z([_.lr("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],J3.prototype,"observeSelected",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],J3);
_.a(J3,"yt-live-chat-product-picker-renderer",function(){if(VYQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_picker_renderer.yt.live.chat.product.picker.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.productPickerHeaderTitle]]" class="style-scope yt-live-chat-product-picker-renderer"> </yt-formatted-string>\n<div id="buttons" class="style-scope yt-live-chat-product-picker-renderer"></div>\n<div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-product-picker-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;wkg===void 0&&(wkg=document.createElement("template"));var V=wkg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);VYQ=Y}Y=VYQ;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Hmd;var gqI;var f_Q;var Nst;var u_=function(){return _.F.apply(this,arguments)||this};
_.P(u_,_.F);u_.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()};
u_.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
u_.prototype.created=function(){this.ids={background:_.M2(),maskOne:_.M2(),maskTwo:_.M2(),gradient:_.M2(),largeBackground:_.M2(),largeGradientOne:_.M2(),largeGradientTwo:_.M2(),largeGradientPath:_.M2()}};
u_.prototype.maybeLoadAnimationBackground=u_.prototype.maybeLoadAnimationBackground;_.z([_.R({value:!1}),_.K("design:type",Boolean)],u_.prototype,"useLargeBackground",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],u_.prototype,"useAnimationBackground",void 0);_.z([_.R({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.K("design:type",Boolean)],u_.prototype,"useRegularBackground",void 0);
_.z([_.R(),_.K("design:type",Object)],u_.prototype,"ids",void 0);_.z([_.R(),_.K("design:type",Object)],u_.prototype,"lottieAnimation",void 0);_.z([_.xZ("#animation-background"),_.K("design:type",HTMLDivElement)],u_.prototype,"animationBackground",void 0);_.z([_.lr("useAnimationBackground"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u_.prototype,"maybeLoadAnimationBackground",null);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],u_);
_.a(u_,"yt-live-interactivity-component-background",function(){if(Nst===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-interactivity-component-background--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_interactivity_component_background.yt.live.interactivity.component.background.css.js--\x3e<svg id$="[[ids.background]]" hidden$="[[!useRegularBackground]]" width="100%" height="280" viewBox="2 45 400 280" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskOne]]" width="611" height="468" x="1" y="-117" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <mask id$="[[ids.maskTwo]]" width="505" height="439" x="-4" y="-10" maskUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <g class="style-scope yt-live-interactivity-component-background">\n        <rect width="500" height="350" x="1" y="1" style="fill:#fff" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      </g>\n    </mask>\n    <linearGradient id$="[[ids.gradient]]" x1="-53.35" x2="-54.44" y1="572.174" y2="571.817" gradientTransform="matrix(439 0 0 -439 23648 251318)" gradientUnits="userSpaceOnUse" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0" stop-color="#1d3863" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop class="gradient-stop style-scope yt-live-interactivity-component-background" offset="1"></stop>\n    </linearGradient>\n  </defs>\n  <g class="style-scope yt-live-interactivity-component-background">\n    <g class="style-scope yt-live-interactivity-component-background">\n      <rect width="500" height="350" x="1" y="1" fill="#224072" stroke="#000" stroke-opacity=".15" rx="4" class="style-scope yt-live-interactivity-component-background"></rect>\n      <g mask$="url(#[[ids.maskOne]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill="#1a3259" fill-rule="evenodd" d="M612-117v420L192 92.998 611.99-117h.01z" opacity=".8" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n      <g mask$="url(#[[ids.maskTwo]])" class="style-scope yt-live-interactivity-component-background">\n        <path fill$="url(#[[ids.gradient]])" fill-rule="evenodd" d="M-4-10v439l439-219.502L-3.989-10H-4z" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n      </g>\n    </g>\n  </g>\n</svg>\n<svg id$="[[ids.largeBackground]]" hidden$="[[!useLargeBackground]]" height="350" width="100%" viewBox="60 40 428 300" preserveAspectRatio="xMinYMin slice" class="style-scope yt-live-interactivity-component-background">\n  <defs class="style-scope yt-live-interactivity-component-background">\n    <linearGradient id$="[[ids.largeGradientOne]]" x1="104.432%" x2="10.997%" y1="62.466%" y2="44.799%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#274C8A" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#1A3259" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <linearGradient id$="[[ids.largeGradientTwo]]" x1="53.199%" x2="-55.854%" y1="34.226%" y2="69.901%" class="style-scope yt-live-interactivity-component-background">\n      <stop offset="0%" stop-color="#284F8F" class="style-scope yt-live-interactivity-component-background"></stop>\n      <stop offset="100%" stop-color="#234275" class="style-scope yt-live-interactivity-component-background"></stop>\n    </linearGradient>\n    <path id$="[[ids.largeGradientPath]]" d="M0 3.991A3.994 3.994 0 014.006 0h491.988C498.206 0 500 1.8 500 3.991v342.018a3.994 3.994 0 01-4.006 3.991H4.006C1.794 350 0 348.2 0 346.009V3.991z" class="style-scope yt-live-interactivity-component-background"></path>\n  </defs>\n  <g fill="none" fill-rule="evenodd" class="style-scope yt-live-interactivity-component-background">\n    <mask id$="[[ids.maskTwo]]" fill="#fff" class="style-scope yt-live-interactivity-component-background">\n      <use href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    </mask>\n    <use fill="#224175" href$="#[[ids.largeGradientPath]]" class="style-scope yt-live-interactivity-component-background"></use>\n    <path fill$="url(#[[ids.largeGradientOne]])" d="M264-120v420L684 89.998 264.011-120z" mask="url(#[[ids.maskTwo]])" transform="matrix(-1 0 0 1 948 0)" class="style-scope yt-live-interactivity-component-background"></path>\n    <path fill$="url(#[[ids.largeGradientTwo]])" d="M-80-81v507l507-253.503L-79.987-81z" mask="url(#[[ids.maskTwo]])" opacity=".9" class="style-scope yt-live-interactivity-component-background"></path>\n  </g>\n</svg>\n<div id="animation-background" height="350" width="100%" hidden$="[[!useAnimationBackground]]" class="style-scope yt-live-interactivity-component-background"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;f_Q===void 0&&(f_Q=document.createElement("template"));var V=f_Q;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Nst=Y}Y=Nst;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var YK=function(){var Y=_.F.apply(this,arguments)||this;Y.characterCount=0;Y.showInputErrorMessage=!1;Y.startQnaRequestInFlight=!1;Y.modern=_.q("web_button_rework_with_live");Y.buttonOverrides={style:"mono",type:"filled"};Y.closeButtonOverrides={iconPosition:"icon-only"};Y.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return Y};
_.P(YK,_.F);_.g=YK.prototype;
_.g.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]]"}}}}}};
_.g.onCharacterCountChanged=function(Y){var b,w,V,H,f=(w=_.v(this==null?void 0:(b=this.data)==null?void 0:b.creatorCallForQuestions,aPO))==null?void 0:(V=w.inputField)==null?void 0:(H=V.liveChatTextInputFieldRenderer)==null?void 0:H.maxCharacterLimit,E,U;f!=null&&(Y==null?void 0:(E=Y.detail)==null?void 0:E.characterCount)!=null&&_.v(this==null?void 0:(U=this.data)==null?void 0:U.startButton,_.Wa)&&(b=Y.detail.characterCount>f,this.set("data.startButton.buttonRenderer.isDisabled",Y.detail.characterCount===
0||b),this.showInputErrorMessage=b)};
_.g.onCloseClick=function(){_.Ua(this.hostElement,"picker-cancelled");_.Xx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.onPickerCancelled=function(){var Y=_.E6(this.hostElement).querySelector("#qna-creator-text-input-field");Y&&Y.setLiveChatRichMessageInput(null)};
_.g.handleOpenQnaStartPanel=function(){var Y=_.E6(this.hostElement).querySelector("#qna-creator-text-input-field");Y&&Y.focus()};
_.g.handleStartButtonAction=function(Y){var b=this;if(Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),Y=Y.detail.args[1])){var w=_.E6(this.hostElement).querySelector("#qna-creator-text-input-field"),V;(w==null?0:(V=w.liveChatRichMessageInput)==null?0:V.textSegments)&&w.liveChatRichMessageInput.textSegments.length!==0&&(V={rich_message:_.K_(w.liveChatRichMessageInput)},_.oP(this.hostElement,[Y,V]).then(function(){_.Ua(b.hostElement,"picker-cancelled")}))}};
_.g.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.g.handleServiceRequestCompleted=function(Y){var b;Y=Y==null?void 0:(b=Y.detail)==null?void 0:b.data;(Y==null?0:Y.actions)&&Y.actions.length>0?this.startQnaRequestInFlight=!1:_.Xx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.g.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
YK.prototype.handleServiceRequestError=YK.prototype.handleServiceRequestError;YK.prototype.handleServiceRequestCompleted=YK.prototype.handleServiceRequestCompleted;YK.prototype.handleServiceRequestSent=YK.prototype.handleServiceRequestSent;YK.prototype.onPickerCancelled=YK.prototype.onPickerCancelled;YK.prototype.onCharacterCountChanged=YK.prototype.onCharacterCountChanged;_.z([_.R(),_.K("design:type",Object)],YK.prototype,"characterCount",void 0);
_.z([_.R(),_.K("design:type",Object)],YK.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],YK.prototype,"showInputErrorMessage",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],YK.prototype,"startQnaRequestInFlight",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],YK.prototype,"modern",void 0);_.z([_.R(),_.K("design:type",Object)],YK.prototype,"buttonOverrides",void 0);
_.z([_.R(),_.K("design:type",Object)],YK.prototype,"closeButtonOverrides",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],YK.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.n(_.Kn.YtLiveChatItemBehavior),_.K("design:type",_.i$)],YK.prototype,"ytLiveChatItemBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],YK.prototype,"ytActionHandlerBehavior",void 0);_.z([_.kZ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],YK.prototype,"onCharacterCountChanged",null);_.z([_.kZ("picker-cancelled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YK.prototype,"onPickerCancelled",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],YK.prototype,"handleServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],YK.prototype,"handleServiceRequestCompleted",null);
_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],YK.prototype,"handleServiceRequestError",null);_.z([_.S({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],YK);
_.a(YK,"yt-live-chat-qna-start-panel-renderer",function(){if(gqI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-qna-start-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_qna_start_panel_renderer.yt.live.chat.qna.start.panel.renderer.css.js--\x3e<div id="panel-header" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <yt-icon aria-hidden="true" hidden$="[[!data.headerIcon]]" icon="[[data.headerIcon.iconType]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-icon>\n  <yt-formatted-string id="panel-title" text="[[data.headerText]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></yt-formatted-string>\n  <div id="close-button" on-click="onCloseClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="panel-contents" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <div id="call_for_questions_banner" class="style-scope yt-live-chat-qna-start-panel-renderer">\n    <div id="banner-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n      <div id="banner-content-top" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <yt-img-shadow id="creator-avatar" height="24" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" thumbnail="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAvatar]]" width="24" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        </yt-img-shadow>\n\n        <div id="metadata-text" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <yt-formatted-string id="author-name" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.creatorAuthorName]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="separator-collapsed" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.contentSeparator]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n\n          <yt-formatted-string id="feature-label" text="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.featureLabel]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          </yt-formatted-string>\n        </div>\n        <div id="menu" on-click="onContextMenuButtonClick" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n      </div>\n\n      <div id="banner-main-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n        <div id="input-container" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <template is="dom-if" if="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            <yt-live-chat-text-input-field-renderer id="qna-creator-text-input-field" character-count="{{characterCount}}" data="[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer]]" hidden$="[[!data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField]]" ignore-color-mapping="" class="style-scope yt-live-chat-qna-start-panel-renderer">\n            </yt-live-chat-text-input-field-renderer>\n          </template>\n        </div>\n        <div id="input-sub-content" class="style-scope yt-live-chat-qna-start-panel-renderer">\n          <div id="qna-error-message" role="alert" class="style-scope yt-live-chat-qna-start-panel-renderer">[[getSimpleString(data.characterLimitErrorMessage)]]</div>\n          <div id="qna-character-count" class="style-scope yt-live-chat-qna-start-panel-renderer">[[characterCount]]/[[data.creatorCallForQuestions.liveChatCallForQuestionsRenderer.inputField.liveChatTextInputFieldRenderer.maxCharacterLimit]]</div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="start-button" on-yt-action="handleStartButtonAction" class="style-scope yt-live-chat-qna-start-panel-renderer"></div>\n</div>\n<div id="spinner-container" hidden$="[[!startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer">\n  <tp-yt-paper-spinner-lite id="spinner" active="[[startQnaRequestInFlight]]" class="style-scope yt-live-chat-qna-start-panel-renderer"></tp-yt-paper-spinner-lite>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Hmd===void 0&&(Hmd=document.createElement("template"));var V=Hmd;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);gqI=Y}Y=gqI;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Eqb;var cst;var b2=function(){return _.F.apply(this,arguments)||this};
_.P(b2,_.F);b2.prototype.dismiss=function(){_.Ua(this.hostElement,"yt-live-chat-error-message-dismiss")};
b2.prototype.edit=function(){_.Ua(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.z([_.R(),_.K("design:type",Object)],b2.prototype,"data",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],b2);
_.a(b2,"yt-live-chat-text-actions-error-message-renderer",function(){if(cst===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-text-actions-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_text_actions_error_message_renderer.yt.live.chat.text.actions.error.message.renderer.css.js--\x3e<yt-icon-button on-click="dismiss" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-icon icon="close" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-icon>\n</yt-icon-button>\n<div id="error-text" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n  <yt-formatted-string text="[[data.errorText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  <button id="edit" on-click="edit" class="style-scope yt-live-chat-text-actions-error-message-renderer">\n    <yt-formatted-string text="[[data.editMessageText]]" class="style-scope yt-live-chat-text-actions-error-message-renderer"></yt-formatted-string>\n  </button>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Eqb===void 0&&(Eqb=document.createElement("template"));var V=Eqb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);cst=Y}Y=cst;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var U3g;var Xkt;var D3A;var m3X;var w7=function(){var Y=_.F.apply(this,arguments)||this;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.newnessDotEligible=!1;return Y};
_.P(w7,_.F);w7.prototype.sendReaction=function(){var Y,b,w=((Y=this.data)==null?void 0:Y.emojiId)||((b=this.data)==null?void 0:b.emoteId),V;w&&((V=this.data)==null?0:V.shouldTriggerAnimation)&&_.Xx(this.hostElement,"yt-create-user-reaction-animation",[w]);var H;(Y=_.zT((H=this.data)==null?void 0:H.onTap))&&_.hA(Y,this.hostElement);this.showNewnessDot&&_.Xx(this.hostElement,"yt-hide-newness-dot")};
w7.prototype.onClick=function(Y){(!Y||Y.clientX||Y.clientY)&&this.sendReaction()};
w7.prototype.onKeyDown=function(Y){Y.key!=="Enter"&&Y.key!==" "||Y.repeat||this.sendReaction()};
_.up.Object.defineProperties(w7.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!!(((Y=this.data)==null?0:Y.emojiId)||((b=this.data)==null?0:b.emoteId))}}});
_.z([_.R(),_.K("design:type",Object)],w7.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],w7.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],w7.prototype,"newnessDotEligible",void 0);_.z([_.t("data.maybeShowNewnessDot"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],w7.prototype,"showNewnessDot",null);_.z([_.t("data.emojiId","data.emoteId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],w7.prototype,"useYtImage",null);
_.z([_.FM({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],w7);
_.a(w7,"yt-reaction-control-panel-button-view-model",function(){if(m3X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-button-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_button_view_model.yt.reaction.control.panel.button.view.model.css.js--\x3e<button on-click="onClick" on-keydown="onKeyDown" class="style-scope yt-reaction-control-panel-button-view-model">\n  <div class="image-container style-scope yt-reaction-control-panel-button-view-model">\n    <template is="dom-if" restamp="" if="[[useYtImage]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-image alt="[[data.a11yLabel]]" data="[[data.buttonIcon]]" height="24" preserve-height="" preserve-width="" should-render-lazy="" width="24" class="style-scope yt-reaction-control-panel-button-view-model"></yt-image>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <yt-icon aria-label="[[data.a11yLabel]]" icon="[[data.buttonIconType]]" class="style-scope yt-reaction-control-panel-button-view-model"></yt-icon>\n    </template>\n    <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-button-view-model">\n      <div class="newness-dot style-scope yt-reaction-control-panel-button-view-model"></div>\n    </template>\n  </div>\n</button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;D3A===void 0&&(D3A=document.createElement("template"));var V=D3A;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);m3X=Y}Y=m3X;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var oqA;var I_X;var Vo=function(){var Y=_.F.apply(this,arguments)||this;Y.reactionControlPanelExpanded=!1;Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.newnessDotEligible=!1;return Y};
_.P(Vo,_.F);_.g=Vo.prototype;_.g.expandedButtonsChanged=function(){var Y,b;_.m_(this.hostElement,{"--expanded-buttons-height":((b=(Y=this.expandedButtonsData)==null?void 0:Y.length)!=null?b:0)*36+"px"})};
_.g.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}}};
_.g.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.g.onMouseLeave=function(){var Y=this;this.collapseTimer=setTimeout(function(){Y.reactionControlPanelExpanded=!1},500)};
_.g.onFocusIn=function(){this.onMouseEnter()};
_.g.onFocusOut=function(){this.onMouseLeave()};
_.g.onCollapsedButtonFocusIn=function(){var Y=this;setTimeout(function(){var b;(b=Y.expandedButtons.querySelector("button"))==null||b.focus()},100)};
_.g.onCollapsedButtonFocusOut=function(Y){Y.stopPropagation()};
_.up.Object.defineProperties(Vo.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var Y,b;return _.BL.unsafeClone((Y=this.liveReactionsData)==null?void 0:Y.emojiButtonData)||((b=this.data)==null?void 0:b.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var Y;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((Y=this.data)==null||!Y.maybeShowNewnessDot)}}});
Vo.prototype.expandedButtonsChanged=Vo.prototype.expandedButtonsChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],Vo.prototype,"ytLiveChatReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Vo.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Vo.prototype,"reactionControlPanelExpanded",void 0);_.z([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:qnO}),_.K("design:type",Object)],Vo.prototype,"liveReactionsData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Vo.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],Vo.prototype,"newnessDotEligible",void 0);
_.z([_.t("liveReactionsData","data.expandedButtons"),_.K("design:type",Object),_.K("design:paramtypes",[])],Vo.prototype,"expandedButtonsData",null);_.z([_.t("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.R({reflectToAttribute:!0}),_.K("design:type",Object),_.K("design:paramtypes",[])],Vo.prototype,"showNewnessDot",null);_.z([_.xZ("#expanded-buttons"),_.K("design:type",HTMLElement)],Vo.prototype,"expandedButtons",void 0);
_.z([_.lr("expandedButtonsData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Vo.prototype,"expandedButtonsChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Vo);
_.a(Vo,"yt-reaction-control-panel-view-model",function(){if(I_X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_view_model.yt.reaction.control.panel.view.model.css.js--\x3e<div id="hover-area" on-mouseenter="onMouseEnter" on-mouseleave="onMouseLeave" on-focusin="onFocusIn" on-focusout="onFocusOut" class="style-scope yt-reaction-control-panel-view-model">\n  <div id="fab-container" class="style-scope yt-reaction-control-panel-view-model">\n    <div id="expanded-buttons" class="style-scope yt-reaction-control-panel-view-model"></div>\n    <div id="collapsed-button" on-focusin="onCollapsedButtonFocusIn" on-focusout="onCollapsedButtonFocusOut" class="style-scope yt-reaction-control-panel-view-model"></div>\n  </div>\n  <template is="dom-if" restamp="" if="[[showNewnessDot]]" class="style-scope yt-reaction-control-panel-view-model">\n    <div class="newness-dot style-scope yt-reaction-control-panel-view-model"></div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;oqA===void 0&&(oqA=document.createElement("template"));var V=oqA;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);I_X=Y}Y=I_X;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var HW=new _.WO("yt-live-chat"),k3t=Date.parse("2024-7-24"),g7=function(){var Y=_.F.apply(this,arguments)||this;Y.emojiManager=_.Wz;Y.newnessDotEligible=!1;Y.newnessDotImpressionCounted=!1;Y.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return Y};
_.P(g7,_.F);_.g=g7.prototype;_.g.emojiCustomizationEnabledChanged=function(){var Y;((Y=this.data)==null?0:Y.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((Y=HW.getCreationTime("emoji-customization-count"))&&Y<k3t&&HW.set("emoji-customization-count","0"),Y=Number(HW.get("emoji-customization-count"))||0,Y<3&&(this.newnessDotEligible=!0,HW.set("emoji-customization-count",(Y+1).toString())),this.newnessDotImpressionCounted=!0)};
_.g.hideNewnessDot=function(){this.newnessDotEligible=!1;HW.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.g.handleReactionsMute=function(Y){var b=_.dO(),w=_.tj(206221),V={checkboxData:{state:Y?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};b&&_.J1(b,w,V);this.reactionsMuted=Y};
_.g.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.g.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}}};
_.up.Object.defineProperties(g7.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var Y;return(!((Y=this.liveReactionsData)==null||!Y.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
g7.prototype.liveReactionsSettingChanged=g7.prototype.liveReactionsSettingChanged;g7.prototype.emojiCustomizationEnabledChanged=g7.prototype.emojiCustomizationEnabledChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.AW),_.K("design:type",Object)],g7.prototype,"ytLiveChatReduxBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],g7.prototype,"data",void 0);_.z([_.R(),_.K("design:type",_.aG)],g7.prototype,"emojiManager",void 0);_.z([_.R(),_.K("design:type",Object)],g7.prototype,"newnessDotEligible",void 0);_.z([_.R(),_.K("design:type",Object)],g7.prototype,"newnessDotImpressionCounted",void 0);
_.z([_.R({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:sSX}),_.K("design:type",Boolean)],g7.prototype,"liveReactionsSetting",void 0);_.z([_.R({selectorArgs:["data.liveReactionsDataEntityKey"],selector:qnO}),_.K("design:type",Object)],g7.prototype,"liveReactionsData",void 0);_.z([_.R({value:function(){var Y=_.q("enable_lwe_web_mute"),b=HW.get("allow-reactions");return b===void 0?!1:!b&&Y}}),
_.K("design:type",Boolean)],g7.prototype,"reactionsMuted",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],g7.prototype,"liveReactionsEnabled",null);_.z([_.lr("data.emojiCustomizationEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g7.prototype,"emojiCustomizationEnabledChanged",null);
_.z([_.lr("liveReactionsEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g7.prototype,"liveReactionsSettingChanged",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],g7);
_.a(g7,"yt-reaction-control-panel-overlay-view-model",function(){if(Xkt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-reaction-control-panel-overlay-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_reaction_control_panel_overlay_view_model.yt.reaction.control.panel.overlay.view.model.css.js--\x3e<div id="reaction-control-panel" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n<div id="emoji-fountain" hidden$="[[!liveReactionsEnabled]]" class="style-scope yt-reaction-control-panel-overlay-view-model"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;U3g===void 0&&(U3g=document.createElement("template"));var V=U3g;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Xkt=Y}Y=Xkt;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var l_I={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(Y){var b=this.$.pickers.selected;if(b){_.E6(this.hostElement).removeAttribute(b+"-open");var w="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(w="#picker-buttons",b==="emoji"&&_.E6(this.hostElement).querySelector("#emoji-picker-button")&&(w="#emoji-picker-button"));if(w=_.E6(this.hostElement).querySelector(w).querySelector("#"+b))w.active=!1}w=Y;b==Y&&(w=null);b!=
Y&&_.E6(this.hostElement).setAttribute(Y+"-open","");this.$.pickers.selected=w;_.Xx(this.hostElement,"yt-live-chat-picker-changed",[w])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ft=function(){var Y=_.F.apply(this,arguments)||this;Y.numSentMessages=0;Y.timeoutDurationMs=0;Y.timeoutMs=0;Y.lastTimeoutTimeMs=0;Y.pendingMessageId="";Y.hasFiredInitialFocusActions=!1;Y.isBeforeFocusEnabled=!0;Y.id="";Y.characterCount=0;Y.maxCharacterLimit=0;Y.remainingCharacterCount=0;Y.inputExpanded=!1;Y.buttonOverrides={iconPosition:"icon-only"};Y.inReplyPanel=!1;Y.countdownRatio=0;Y.isTooltipVisible=!1;Y.tooltipTimeout=1E4;Y.systemIcons=_.q("kevlar_system_icons");Y.tallerEmojiPicker=_.q("live_chat_taller_emoji_picker");
Y.sendReplyMessageInFlight=!1;Y.actionMap={"yt-open-popup-action":"onOpenPopupAction","yt-close-popup-action":"onClosePopupAction","yt-live-chat-disable-before-focus-action":"onDisableBeforeFocus","yt-live-chat-component-replaced":"onComponentReplaced"};Y.onResize=function(){Y.maybeToggleCharacterCount()};
return Y};
_.P(ft,_.F);_.g=ft.prototype;
_.g.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"}}}};
_.g.attached=function(){window.addEventListener("resize",this.onResize)};
_.g.detached=function(){window.removeEventListener("resize",this.onResize)};
_.g.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.g.sendMessage=function(){var Y=this,b,w,V,H;return _.c(function(f){if(Y.sendDisabled)return f.return();Y.isTooltipVisible&&_.Xx(Y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(Y.data.sendButton&&Y.data.sendButton.buttonRenderer){Y.input.completeEmojis();b=Y.data.sendButton.buttonRenderer.serviceEndpoint;if(!b)return f.return();V=((w=_.v(b,_.eL$))==null?void 0:w.clientIdPrefix)||"";H={client_message_id:V+String(Y.numSentMessages++),rich_message:_.K_(Y.input.liveChatRichMessageInput)};
Y.pendingMessageId=H.client_message_id;Y.inReplyPanel&&(Y.sendReplyMessageInFlight=!0);_.oP(Y.hostElement,[b,H]);Y.input.setLiveChatRichMessageInput(null)}_.om(f)})};
_.g.handleSendButtonAction=function(Y){Y.detail.actionName==="yt-service-request"&&(Y.stopPropagation(),this.sendMessage())};
_.g.onSendCompleted=function(Y,b){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(Y=this.get("timeoutDurationUsec",b.data))&&this.handleTimeout(Number(Y)/1E3);this.errorMessage=this.get("errorMessage",b.data);this.pendingMessageId=""};
_.g.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Xx(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.g.handlePickerButtonToggle=function(Y){Y=Y.detail.targetId;this.ytPickerBehavior.togglePicker_(Y);if(Y==="emoji")this.input.focus();else if(Y==="qna-start-panel"){var b,w;(b=_.E6(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(w=b.querySelector("#qna-creator-text-input-field"))==null||w.focus()}};
_.g.onComponentReplaced=function(Y){var b,w;Y.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((b=Y.replacement.liveChatMessageInputRenderer)==null?0:(w=b.headerRenderer)==null?0:w.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.g.onEmojiSelect=function(Y){this.input.focus();this.input.insertEmoji(Y.detail)};
_.g.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.g.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Xx(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Xx(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.g.onOpenPopupAction=function(Y,b){var w=this;b===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Xx(w.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.g.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.g.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.g.focusChanged=function(){this.maybeToggleCharacterCount()};
_.g.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var Y=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",Y>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.g.computeId=function(){return this.data&&this.data.targetId||""};
_.g.computeSendDisabled=function(Y,b,w,V){Y=!!(!Y||b&&Y>b||V);(b=_.E6(this.hostElement).querySelector("#send-button"))&&b.children.length&&(b.children[0].disabled=Y);return Y};
_.g.handleTimeout=function(Y){this.timeoutDurationMs=this.timeoutMs=Y;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.g.updateTimeout=function(Y){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(Y-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=Y,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.g.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.g.onErrorMessageEdit=function(Y){this.input.setLiveChatRichMessageInput(Y.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.g.errorMessageChanged=function(){var Y=this;_.KV(function(){_.Xx(Y.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.g.computeAuthorNameColor=function(Y){var b;if(_.q("live_chat_author_name_color_usernames")&&(Y==null?0:(b=Y.authorName)==null?0:b.simpleText))return _.lbG(_.h$G(Y.authorName.simpleText));if(_.q("live_chat_seed_color_usernames")&&(Y==null?0:Y.authorSeedColorArgb))return _.lbG(_.mQ(Y.authorSeedColorArgb));if(_.q("live_chat_colored_usernames"))return"#cc0000";var w;return _.q("live_chat_simple_color_usernames")&&(Y==null?0:(w=Y.authorName)==null?0:w.simpleText)&&(Y==null?0:Y.authorUsernameColorLight)&&
(Y==null?0:Y.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.mQ(Y.authorUsernameColorDark):_.mQ(Y.authorUsernameColorLight):""};
_.g.onIsTooltipVisibleChanged=function(){var Y=_.E6(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){Y.hidden=!1;Y.setAttribute("role","alert")},0):(Y.hidden=!0,Y.removeAttribute("role"))};
_.g.onFocusedChanged=function(Y){this.inputFocused=Y.detail.value};
_.up.Object.defineProperties(ft.prototype,{sendDisabled:{configurable:!0,enumerable:!0,get:function(){return this.computeSendDisabled(this.characterCount,this.maxCharacterLimit,this.countdownActive,this.sendReplyMessageInFlight)}},
countdownStrokeDashOffset:{configurable:!0,enumerable:!0,get:function(){return this.countdownRatio*10*2*Math.PI}},
countdownActive:{configurable:!0,enumerable:!0,get:function(){return!!this.countdownRatio}},
hasInteractionMessage:{configurable:!0,enumerable:!0,get:function(){return!!this.data.interactionMessage}},
hasEmojiPickerButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.emojiPickerButton}},
showAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.pickers)==null?void 0:b.find(function(w){return w.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return Y?this.ytRendererBehavior.getSimpleString(Y):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ft.prototype.onIsTooltipVisibleChanged=ft.prototype.onIsTooltipVisibleChanged;ft.prototype.errorMessageChanged=ft.prototype.errorMessageChanged;ft.prototype.onErrorMessageEdit=ft.prototype.onErrorMessageEdit;ft.prototype.onErrorMessageDismiss=ft.prototype.onErrorMessageDismiss;ft.prototype.focusChanged=ft.prototype.focusChanged;ft.prototype.characterCountChanged=ft.prototype.characterCountChanged;ft.prototype.onEmojiSelect=ft.prototype.onEmojiSelect;ft.prototype.handlePickerButtonToggle=ft.prototype.handlePickerButtonToggle;
ft.prototype.onSendError=ft.prototype.onSendError;ft.prototype.onSendCompleted=ft.prototype.onSendCompleted;ft.prototype.sendMessage=ft.prototype.sendMessage;ft.prototype.dataChanged=ft.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],ft.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(l_I.YtPickerBehavior),_.K("design:type",Object)],ft.prototype,"ytPickerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.CZ.YtLiveChatTooltipTargetingBehavior),_.K("design:type",Object)],ft.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"hasFiredInitialFocusActions",void 0);
_.z([_.R(),_.K("design:type",Object)],ft.prototype,"isBeforeFocusEnabled",void 0);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"data",void 0);_.z([_.R({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.K("design:type",Object)],ft.prototype,"id",void 0);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"characterCount",void 0);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"maxCharacterLimit",void 0);
_.z([_.R(),_.K("design:type",Object)],ft.prototype,"remainingCharacterCount",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ft.prototype,"inputExpanded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],ft.prototype,"inputFocused",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],ft.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.z([_.R(),_.K("design:type",_.y7)],ft.prototype,"participantsManager",void 0);
_.z([_.R(),_.K("design:type",Object)],ft.prototype,"buttonOverrides",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ft.prototype,"inReplyPanel",void 0);_.z([_.t("characterCount, maxCharacterLimit, countdownActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ft.prototype,"sendDisabled",null);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"countdownRatio",void 0);
_.z([_.t("countdownRatio"),_.K("design:type",Number),_.K("design:paramtypes",[])],ft.prototype,"countdownStrokeDashOffset",null);_.z([_.t("countdownRatio"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ft.prototype,"countdownActive",null);_.z([_.t("data.interactionMessage"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ft.prototype,"hasInteractionMessage",null);
_.z([_.t("data.emojiPickerButton"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ft.prototype,"hasEmojiPickerButton",null);_.z([_.t("data, characterCount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ft.prototype,"showAvatar",null);_.z([_.t("data.pickers"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ft.prototype,"hasProductPickerPanelViewModel",null);
_.z([_.R(),_.K("design:type",Object)],ft.prototype,"errorMessage",void 0);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"genericErrorMessage",void 0);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"isTooltipVisible",void 0);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"tooltipTimeout",void 0);_.z([_.t("data.onInitialFocusCommand"),_.K("design:type",String),_.K("design:paramtypes",[])],ft.prototype,"tooltipMessage",null);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ft.prototype,"systemIcons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ft.prototype,"tallerEmojiPicker",void 0);_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],ft.prototype,"authorNameColor",null);_.z([_.R(),_.K("design:type",Object)],ft.prototype,"sendReplyMessageInFlight",void 0);_.z([_.xZ("#input"),_.K("design:type",_.cv$)],ft.prototype,"input",void 0);
_.z([_.xZ("#count"),_.K("design:type",HTMLElement)],ft.prototype,"count",void 0);_.z([_.xZ("#input-container"),_.K("design:type",HTMLElement)],ft.prototype,"inputContainer",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ft.prototype,"dataChanged",null);_.z([_.kZ("yt-live-chat-send-message"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],ft.prototype,"sendMessage",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[Event,_.Jj]),_.K("design:returntype")],ft.prototype,"onSendCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ft.prototype,"onSendError",null);
_.z([_.kZ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ft.prototype,"handlePickerButtonToggle",null);_.z([_.kZ("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ft.prototype,"onEmojiSelect",null);
_.z([_.lr("characterCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ft.prototype,"characterCountChanged",null);_.z([_.lr("inputFocused"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ft.prototype,"focusChanged",null);_.z([_.kZ("yt-live-chat-error-message-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ft.prototype,"onErrorMessageDismiss",null);
_.z([_.kZ("yt-live-chat-error-message-edit"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],ft.prototype,"onErrorMessageEdit",null);_.z([_.lr("errorMessage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ft.prototype,"errorMessageChanged",null);_.z([_.lr("isTooltipVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ft.prototype,"onIsTooltipVisibleChanged",null);
_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ft);
_.a(ft,"yt-live-chat-message-input-renderer",function(){if(a0X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-message-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_message_input_renderer.yt.live.chat.message.input.renderer.css.js--\x3e<yt-live-chat-message-input-prompt-header-renderer data="[[data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" hidden$="[[!data.headerRenderer.liveChatQnaInputPromptHeaderRenderer]]" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-message-input-prompt-header-renderer><div id="container" class="style-scope yt-live-chat-message-input-renderer"><div id="top" class="style-scope yt-live-chat-message-input-renderer"><yt-img-shadow id="avatar" height="24" hidden$="[[!showAvatar]]" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope yt-live-chat-message-input-renderer"></yt-img-shadow><div id="input-container" class="style-scope yt-live-chat-message-input-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" author-name-color="[[authorNameColor]]" hidden="" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-author-chip><yt-live-chat-text-input-field-renderer id="input" character-count="{{characterCount}}" data="[[data.inputField.liveChatTextInputFieldRenderer]]" disabled="[[hasInteractionMessage]]" input-expanded="[[inputExpanded]]" is-chat-message-input="" max-character-limit="{{maxCharacterLimit}}" no-underline="" participants-manager="[[participantsManager]]" remaining-character-count="{{remainingCharacterCount}}" on-focused-changed="onFocusedChanged" on-focusin="onInputFocusIn" class="style-scope yt-live-chat-message-input-renderer"></yt-live-chat-text-input-field-renderer><div id="emoji-picker-button" class="style-scope yt-live-chat-message-input-renderer"></div></div><div id="right" class="style-scope yt-live-chat-message-input-renderer"><div id="count-container" class="style-scope yt-live-chat-message-input-renderer"><div id="count" class="style-scope yt-live-chat-message-input-renderer">[[remainingCharacterCount]]</div></div><div id="message-buttons" class="style-scope yt-live-chat-message-input-renderer"><div id="send-button" countdown-active$="[[countdownActive]]" hidden="[[!characterCount]]" on-yt-action="handleSendButtonAction" class="style-scope yt-live-chat-message-input-renderer"></div><svg id="countdown" countdown-active$="[[countdownActive]]" hidden$="[[!characterCount]]" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="style-scope yt-live-chat-message-input-renderer"><circle id="countdown-background" cx="12" cy="12" r="10" class="style-scope yt-live-chat-message-input-renderer"></circle><circle id="countdown-line" cx="12" cy="12" r="10" stroke-dashoffset$="[[countdownStrokeDashOffset]]" class="style-scope yt-live-chat-message-input-renderer"></circle></svg></div><div id="picker-buttons" hidden="[[characterCount]]" class="style-scope yt-live-chat-message-input-renderer"></div></div></div><div id="error-message" class="style-scope yt-live-chat-message-input-renderer"></div><tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-message-input-renderer"></tp-yt-iron-pages></div><div id="interaction-message" class="style-scope yt-live-chat-message-input-renderer"></div><div id="tooltip-accessibility-text" class="style-scope yt-live-chat-message-input-renderer">[[tooltipMessage]]</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;S$b===void 0&&(S$b=document.createElement("template"));var V=S$b;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);a0X=Y}Y=a0X;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var hOg;var x3t;var Np=function(){var Y=_.F.apply(this,arguments)||this;Y.systemIcons=_.q("kevlar_system_icons");Y.firedOnClickCommand=!1;Y.inReplyPanel=!1;return Y};
_.P(Np,_.F);
Np.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"}}}};
Np.prototype.onButtonToggle=function(Y){Y.target.disabled||this.ytPickerBehavior.togglePicker_(Y.detail.targetId)};
Np.prototype.onClick=function(){var Y=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Xx(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return Y.firedOnClickCommand=!1},5E3))};
_.up.Object.defineProperties(Np.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.panels)==null?void 0:b.find(function(w){return w.liveChatProductPickerPanelViewModel}))!==void 0}}});
Np.prototype.onButtonToggle=Np.prototype.onButtonToggle;_.z([_.n(l_I.YtPickerBehavior),_.K("design:type",Object)],Np.prototype,"ytPickerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Np.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Np.prototype,"systemIcons",void 0);_.z([_.R({reflectToAttribute:!1}),_.K("design:type",Object)],Np.prototype,"firedOnClickCommand",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Np.prototype,"inReplyPanel",void 0);_.z([_.t("data.pickers"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Np.prototype,"hasProductPickerPanelViewModel",null);
_.z([_.kZ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Np.prototype,"onButtonToggle",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Np);
_.a(Np,"yt-live-chat-restricted-participation-renderer",function(){if(x3t===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-restricted-participation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_restricted_participation_renderer.yt.live.chat.restricted.participation.renderer.css.js--\x3e<div id="container" class="style-scope yt-live-chat-restricted-participation-renderer">\n  <tp-yt-iron-pages id="pickers" attr-for-selected="id" selected-attribute="selected" class="style-scope yt-live-chat-restricted-participation-renderer"></tp-yt-iron-pages>\n  <div id="explanation" class="style-scope yt-live-chat-restricted-participation-renderer">\n    <yt-icon id="icon" hidden$="[[!data.icon]]" icon="[[data.icon.iconType]]" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n    </yt-icon>\n    <div id="body" on-click="onClick" class="style-scope yt-live-chat-restricted-participation-renderer">\n      <div id="message" class="style-scope yt-live-chat-restricted-participation-renderer">[[getSimpleString(data.message)]]</div><div id="message-button" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n    </div>\n    <div id="picker-buttons" class="style-scope yt-live-chat-restricted-participation-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;hOg===void 0&&(hOg=document.createElement("template"));var V=hOg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);x3t=Y}Y=x3t;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var Ek=function(){var Y=_.F.apply(this,arguments)||this;Y.genericErrorMessage=_.Gx("Error, try again.");Y.inReplyPanel=!1;Y.hideBorder=!1;return Y};
_.P(Ek,_.F);Ek.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}}}}}};
_.up.Object.defineProperties(Ek,{template:{configurable:!0,enumerable:!0,get:function(){return t8b()}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ek.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ek.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Ek.prototype,"genericErrorMessage",void 0);_.z([_.R(),_.K("design:type",Object)],Ek.prototype,"inReplyPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ek.prototype,"hideBorder",void 0);
_.z([_.FM({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Ek);_.a(Ek,"yt-live-chat-engagement-panel-input-renderer",function(){return t8b()},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var qhd,s0t;qhd=_.tj(115994);s0t=_.tj(115993);_.cW=function(Y,b,w){var V=this;var H=w.dragDownAction;this.layer=0;this.JSC$19971_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.JSC$19971_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.fullscreen=!1;var f=_.Qd();_.IC(f,qhd,this.layer);_.IC(f,s0t,this.layer);this.dragDownAction=function(){H();_.Aj(f,{visualElement:V.fullscreen?qhd:s0t})};
this.gesture=new _.Xe(Y,b,this.JSC$19971_watchConfig,"pandown");this.attach()};
_.cW.prototype.attach=function(){this.gesture.attach()};
_.cW.prototype.detach=function(){this.gesture.detach()};
_.cW.prototype.update=function(Y){this.fullscreen=Y;this.gesture.config=Y?this.JSC$19971_watchFullScreenConfig:this.JSC$19971_watchConfig};var Q0d={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(Y){if(Y&&Y.length==1&&Array.isArray(Y[0].loggingUrls)){Y=_.BL.unsafeClone(Y[0]);var b=this.macros||{},w=this.getAdModuleClient_();if(!w)return _.k7();Y.loggingUrls.forEach(function(V){if(V.baseUrl){var H=V.baseUrl;var f=b;f=f===void 0?{}:f;H=w.getOptions().includes("replaceUrlMacros")?_.PU_(w,"replaceUrlMacros",{url:H,additionalMapping:f}):H;V.baseUrl=H}},this);
Y=[Y]}return _.oP(this.hostElement,Y)},
getAdModuleClient_:function(){var Y=_.V4(this);return Y?(Y=Y.getPlayer())?new _.nc(Y):null:null}}]};var vqg;var Uk=function(){var Y=_.F.apply(this,arguments)||this;Y.isCollapsed=!1;Y.modernPanels=_.q("kevlar_watch_modern_panels");Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return Y};
_.P(Uk,_.F);_.g=Uk.prototype;_.g.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.onDonateTap=function(){var Y=this.get("data.donateButton.buttonRenderer.command");if(Y){var b=_.dO(),w=this.get("data.donateButton.buttonRenderer.trackingParams");b&&w&&_.J1(b,_.nA(w));this.ytOpenPopupBehavior.openPopup(Y)}};
_.g.onShowMore=function(){this.isCollapsed=!1;var Y=_.dO(),b=this.get("data.expandButton.buttonRenderer.trackingParams");Y&&b&&_.J1(Y,_.nA(b))};
_.g.onShowLess=function(){this.isCollapsed=!0};
_.g.dataChanged=function(){_.m_(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.g.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.handleUpdate=function(Y){if(Y=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",Y))this.set("data.startLabel",Y.startLabel),this.set("data.endLabel",Y.endLabel),this.set("data.progress",Y.progress),this.set("data.amountRaisedLabel",Y.amountRaisedLabel),this.dataChanged()};
_.g.handleOpenPopupAction=function(Y){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",Y)&&_.Xx(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.g.computeHeaderBackgroundUrl=function(Y,b){if(Y)return b?Y.headerBackgroundDarkUrl:Y.headerBackgroundUrl};
_.g.isProgressBarVisible=function(Y){return!(!Y||Y.progress===void 0)};
_.g.headerBackgroundClass=function(){return _.zO("HTML_DIR")==="rtl"?"flip":""};
Uk.prototype.dataChanged=Uk.prototype.dataChanged;_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],Uk.prototype,"ytOpenPopupBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Uk.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Uk.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Uk.prototype,"isCollapsed",void 0);_.z([_.R({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.K("design:type",String)],Uk.prototype,"headerBackgroundUrl",void 0);_.z([_.R(),_.K("design:type",Boolean)],Uk.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Uk.prototype,"modernPanels",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Uk.prototype,"dataChanged",null);_.z([_.S({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Uk);
_.a(Uk,"ytd-donation-shelf-renderer",function(){if(vqg!==void 0)return vqg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="header-text" class="style-scope ytd-donation-shelf-renderer">\n    [[getSimpleString(data.headerTitle)]]\n  </div>\n  <template is="dom-if" if="[[headerBackgroundUrl]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="header-background" class$="[[headerBackgroundClass()]] style-scope ytd-donation-shelf-renderer">\n      <yt-img-shadow delayed-src="[[headerBackgroundUrl]]" height="48" class="style-scope ytd-donation-shelf-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n</div>\n\n<div id="donate-section" class="style-scope ytd-donation-shelf-renderer">\n  <div id="title-row" class="style-scope ytd-donation-shelf-renderer">\n    <yt-img-shadow id="campaign-logo" object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-shelf-renderer">\n    </yt-img-shadow>\n    <div id="text-container" class="style-scope ytd-donation-shelf-renderer">\n      <div id="campaign-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignTitle)]]\n      </div>\n      <div id="campaign-subtitle" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.campaignSubtitle)]]\n      </div>\n    </div>\n    <div id="donate-button" on-click="onDonateTap" class="style-scope ytd-donation-shelf-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[isProgressBarVisible(data)]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="progress-bar" class="style-scope ytd-donation-shelf-renderer">\n      <div id="progress-bar-fill" class="style-scope ytd-donation-shelf-renderer"></div>\n    </div>\n    <div id="progress-bar-labels" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string id="progress-bar-start" text="[[data.startLabel]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="progress-bar-end" text="[[data.endLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="amount-raised" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.amountRaisedLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="matching-label" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string split-lines="" text="[[data.matchLabel]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n\n<template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="creator-messages-section" class="style-scope ytd-donation-shelf-renderer">\n      <template is="dom-repeat" items="[[data.creatorMessages]]" class="style-scope ytd-donation-shelf-renderer">\n        <div class="creator-message style-scope ytd-donation-shelf-renderer">\n          <div class="separator style-scope ytd-donation-shelf-renderer"></div>\n          <div class="creator-message-header style-scope ytd-donation-shelf-renderer">\n            <yt-img-shadow class="avatar style-scope ytd-donation-shelf-renderer" height="26" thumbnail="[[item.thumbnail]]">\n            </yt-img-shadow>\n            <yt-formatted-string class="creator-message-name style-scope ytd-donation-shelf-renderer" text="[[item.title]]">\n            </yt-formatted-string>\n          </div>\n          <div class="creator-message-description style-scope ytd-donation-shelf-renderer">\n            [[getSimpleString(item.description)]]\n          </div>\n        </div>\n      </template>\n    </div>\n  </template>\n\n  <div id="nonprofit-section" class="style-scope ytd-donation-shelf-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-shelf-renderer">\n      <div id="nonprofit-title" class="style-scope ytd-donation-shelf-renderer">\n        [[getSimpleString(data.nonprofitTitle)]]<span id="verified-icon-wrapper" class="style-scope ytd-donation-shelf-renderer">\u00a0<yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-shelf-renderer" default-to-filled="true" icon="check_circle"></yt-icon>\n        </span>\n      </div>\n    </div>\n    <div id="nonprofit-subtitle" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-shelf-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="nonprofit-description" class="style-scope ytd-donation-shelf-renderer">\n      [[getSimpleString(data.nonprofitDescription)]]\n    </div>\n  </div>\n</template>\n\n<div id="collapse-controls-section" class="style-scope ytd-donation-shelf-renderer">\n  <template is="dom-if" if="[[isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-more" on-click="onShowMore" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showMoreText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n  <template is="dom-if" if="[[!isCollapsed]]" class="style-scope ytd-donation-shelf-renderer">\n    <div id="show-less" on-click="onShowLess" class="style-scope ytd-donation-shelf-renderer">\n      <yt-formatted-string text="[[data.showLessText]]" class="style-scope ytd-donation-shelf-renderer"></yt-formatted-string>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return vqg=Y},{mode:1});var Pqb;var Zmb=function(){return _.F.apply(this,arguments)||this};
_.P(Zmb,_.F);_.z([_.R(),_.K("design:type",Object)],Zmb.prototype,"data",void 0);_.z([_.S({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Zmb);
_.a(Zmb,"ytd-donation-unavailable-renderer",function(){if(Pqb!==void 0)return Pqb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-unavailable-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-donation-unavailable-renderer">\n  <yt-formatted-string id="message" text="[[data.text]]" class="style-scope ytd-donation-unavailable-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Pqb=Y},{mode:1});var Bsg;var XW=function(){return _.F.apply(this,arguments)||this};
_.P(XW,_.F);XW.prototype.computeIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],XW.prototype,"data",void 0);_.z([_.S({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],XW);
_.a(XW,"ytd-limited-state-message-renderer",function(){if(Bsg!==void 0)return Bsg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-limited-state-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-limited-state-message-renderer">\n  <yt-icon icon="[[computeIconType(data.icon.iconType)]]" class="style-scope ytd-limited-state-message-renderer"></yt-icon>\n  <yt-formatted-string id="title" text="[[data.headerText]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n</div>\n<yt-formatted-string id="subtext" text="[[data.subtext]]" class="style-scope ytd-limited-state-message-renderer"></yt-formatted-string>\n<div id="action-buttons" class="style-scope ytd-limited-state-message-renderer">\n  <ytd-button-renderer data="[[data.learnMoreButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer"></ytd-button-renderer>\n  <ytd-button-renderer data="[[data.goHomeButton.buttonRenderer]]" class="style-scope ytd-limited-state-message-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Bsg=Y},{mode:1});var nqR;var Do=function(){return _.F.apply(this,arguments)||this};
_.P(Do,_.F);Do.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Do.prototype.onTap=function(Y){var b=this.data&&this.data.endpoint;b&&!_.uA(_.JL(Y),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Ua(this.hostElement,"yt-navigate",{endpoint:b})};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Do.prototype,"data",void 0);_.z([_.S({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Do);
_.a(Do,"ytd-autotagging-metadata-renderer",function(){if(nqR!==void 0)return nqR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="outer-container" on-tap="onTap" class="style-scope ytd-autotagging-metadata-renderer">\n  <ytd-thumbnail circular="" data="[[data]]" class="style-scope ytd-autotagging-metadata-renderer">\n  </ytd-thumbnail>\n  <div id="right-container" class="style-scope ytd-autotagging-metadata-renderer">\n    <div id="title-container" class="style-scope ytd-autotagging-metadata-renderer">\n      <div id="title" class="style-scope ytd-autotagging-metadata-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-autotagging-metadata-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="subscribe-button" class="style-scope ytd-autotagging-metadata-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return nqR=Y},{mode:1});var MYR;var mO=function(){return _.F.apply(this,arguments)||this};
_.P(mO,_.F);mO.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mO.prototype,"data",void 0);_.z([_.S({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],mO);
_.a(mO,"ytd-autotagging-metadata-row-renderer",function(){if(MYR!==void 0)return MYR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-autotagging-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-autotagging-metadata-row-renderer">\n  [[getSimpleString(data.header)]]\n</div>\n<div id="contents" class="style-scope ytd-autotagging-metadata-row-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return MYR=Y},{mode:1});var eOt;var pkb;var ou=function(){var Y=_.F.apply(this,arguments)||this;Y.engagementPanelContent=!1;return Y};
_.P(ou,_.F);ou.prototype.computeHasDividerLine=function(Y,b){return Y&&!b};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ou.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.K("design:type",Boolean)],ou.prototype,"hasDividerLine",void 0);_.z([_.R(),_.K("design:type",Object)],ou.prototype,"engagementPanelContent",void 0);
_.z([_.S({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],ou);
_.a(ou,"ytd-metadata-row-header-renderer",function(){if(pkb!==void 0)return pkb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="content" class="style-scope ytd-metadata-row-header-renderer">\n  <yt-formatted-string class="content style-scope ytd-metadata-row-header-renderer" text="[[data.content]]"></yt-formatted-string>\n</h4>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return pkb=Y},{mode:1});var Oms;var Iu=function(){return _.F.apply(this,arguments)||this};
_.P(Iu,_.F);Iu.prototype.computeHasDividerLine=function(Y){return Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Iu.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.K("design:type",Boolean)],Iu.prototype,"hasDividerLine",void 0);_.z([_.S({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Iu);
_.a(Iu,"ytd-metadata-row-renderer",function(){if(Oms!==void 0)return Oms;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h4 id="title" hidden$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-metadata-row-renderer"></yt-formatted-string>\n</h4>\n<div id="content" with-extra-margin$="[[!data.title]]" class="style-scope ytd-metadata-row-renderer">\n  <template is="dom-repeat" items="[[data.contents]]" class="style-scope ytd-metadata-row-renderer">\n    <yt-formatted-string class="content content-line-height-override style-scope ytd-metadata-row-renderer" text="[[item]]">\n    </yt-formatted-string>\n  </template>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Oms=Y},{mode:1});var tYO;var kK=function(){return _.F.apply(this,arguments)||this};
_.P(kK,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kK.prototype,"data",void 0);_.z([_.S({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],kK);
_.a(kK,"ytd-metadata-with-image-row-renderer",function(){if(tYO!==void 0)return tYO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-with-image-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-metadata-with-image-row-renderer" href$="[[computeHref_(data.thumbnailEndpoint)]]" data="[[data.thumbnailEndpoint]]">\n  <yt-img-shadow thumbnail="[[data.thumbnail]]" width="83" class="style-scope ytd-metadata-with-image-row-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope ytd-metadata-with-image-row-renderer">\n    <template is="dom-repeat" as="content" items="[[data.contents]]" strip-whitespace="" class="style-scope ytd-metadata-with-image-row-renderer">\n      <span class="content-text style-scope ytd-metadata-with-image-row-renderer">[[getSimpleString(content)]]</span>\n    </template>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return tYO=Y},{mode:1});var ROA;var l2=function(){var Y=_.F.apply(this,arguments)||this;Y.rounded=!0;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.P(l2,_.F);_.g=l2.prototype;_.g.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.g.onDataChanged=function(){var Y=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(b){Y.onEndpointLinkKeyPress(b)}))};
_.g.onEndpointLinkKeyPress=function(Y){Y.target===this.endpointLink&&Y.keyCode===13&&_.Ua(this.hostElement,"click")};
_.g.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var Y;if((Y=this.data)==null?0:Y.endpoint)_.IP(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.g.onYtNavigate=function(Y){this.endpointHref||(Y.stopPropagation(),Y.preventDefault())};
_.g.onInformationButtonContainerClick=function(Y){Y.target.id!=="information-button-container"&&(Y.stopPropagation(),Y.preventDefault())};
_.g.computeStyle=function(Y){return Y};
_.g.computeIsThumbnailStyle=function(Y){return Y==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.g.computeThumbnailWidth=function(Y){switch(Y){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.g.computeThumbnailObjectFit=function(Y){switch(Y){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.up.Object.defineProperties(l2.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?0:Y.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
l2.prototype.onYtNavigate=l2.prototype.onYtNavigate;l2.prototype.onClick=l2.prototype.onClick;l2.prototype.onDataChanged=l2.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],l2.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],l2.prototype,"componentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],l2.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],l2.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],l2.prototype,"componentStyle",void 0);_.z([_.R({computed:"computeIsThumbnailStyle(data.style)"}),_.K("design:type",Boolean)],l2.prototype,"isThumbnailStyle",void 0);_.z([_.R({computed:"computeThumbnailObjectFit(data.style)"}),_.K("design:type",String)],l2.prototype,"thumbnailObjectFit",void 0);
_.z([_.R({computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],l2.prototype,"thumbnailWidth",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],l2.prototype,"rounded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],l2.prototype,"fixie",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],l2.prototype,"fullWidth",void 0);_.z([_.xZ("#endpoint-link"),_.K("design:type",HTMLAnchorElement)],l2.prototype,"endpointLink",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],l2.prototype,"onDataChanged",null);_.z([_.t("data.endpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],l2.prototype,"endpointHref",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],l2.prototype,"onClick",null);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],l2.prototype,"onYtNavigate",null);_.z([_.S({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],l2);
_.a(l2,"ytd-rich-metadata-renderer",function(){if(ROA!==void 0)return ROA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-rich-metadata-renderer" href$="[[endpointHref]]" data="[[data.endpoint]]">\n  <template is="dom-if" restamp="" if="[[isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <ytd-thumbnail id="thumbnail" data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-thumbnail>\n  </template>\n  <template is="dom-if" restamp="" if="[[!isThumbnailStyle]]" class="style-scope ytd-rich-metadata-renderer">\n    <div id="thumbnail" class="style-scope ytd-rich-metadata-renderer">\n      <yt-img-shadow object-fit="[[thumbnailObjectFit]]" thumbnail="[[data.thumbnail]]" width="[[thumbnailWidth]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n  </template>\n  <div id="text-container" class="style-scope ytd-rich-metadata-renderer">\n    <div id="title" class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="subtitle" hidden$="[[!data.subtitle]]" class="style-scope ytd-rich-metadata-renderer">\n      [[getSimpleString(data.subtitle)]]\n    </div>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-rich-metadata-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="call-to-action" class="style-scope ytd-rich-metadata-renderer">\n      <div class="style-scope ytd-rich-metadata-renderer">[[getSimpleString(data.callToAction)]]</div>\n      <yt-icon hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-rich-metadata-renderer">\n      </yt-icon>\n    </div>\n  </div>\n  <div id="information-button-container" on-click="onInformationButtonContainerClick" hidden="[[!data.informationButton]]" class="style-scope ytd-rich-metadata-renderer"></div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ROA=Y},{mode:_.Xd("kevlar_poly_si_batch_j075")?1:2});var d3N;var hF=function(){var Y=_.F.apply(this,arguments)||this;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.P(hF,_.F);hF.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
hF.prototype.computeHasDividerLine=function(Y){return Y};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],hF.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hF.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.K("design:type",Boolean)],hF.prototype,"hasDividerLine",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],hF.prototype,"fixie",void 0);_.z([_.R(),_.K("design:type",Object)],hF.prototype,"fullWidth",void 0);
_.z([_.S({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],hF);
_.a(hF,"ytd-rich-metadata-row-renderer",function(){if(d3N!==void 0)return d3N;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-metadata-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-rich-metadata-row-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return d3N=Y},{mode:1});var xK=function(){var Y=_.F.apply(this,arguments)||this;Y.engagementPanelContent=!1;Y.fixie=!1;Y.fullWidth=!1;return Y};
_.P(xK,_.F);
xK.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"}}}};
xK.prototype.computeCollapsibleItems=function(Y,b,w){return Y===void 0||b===void 0||w===void 0||w?[]:Y.slice(b)};
xK.prototype.computeAlwaysShownItems=function(Y,b){return Y&&Y.length?Y.slice(0,b):[]};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xK.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],xK.prototype,"collapsed",void 0);
_.z([_.R({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.K("design:type",Array)],xK.prototype,"alwaysShownItems",void 0);_.z([_.R({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.K("design:type",Array)],xK.prototype,"collapsibleItems",void 0);_.z([_.R(),_.K("design:type",Object)],xK.prototype,"engagementPanelContent",void 0);_.z([_.R(),_.K("design:type",Object)],xK.prototype,"fixie",void 0);
_.z([_.R(),_.K("design:type",Object)],xK.prototype,"fullWidth",void 0);_.z([_.S({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],xK);
_.a(xK,"ytd-metadata-row-container-renderer",function(){if(eOt!==void 0)return eOt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-metadata-row-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="always-shown" class="style-scope ytd-metadata-row-container-renderer"></div>\n<div id="collapsible" hidden="[[collapsed]]" class="style-scope ytd-metadata-row-container-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return eOt=Y},{mode:1});var F5O;var qp=function(){var Y=_.F.apply(this,arguments)||this;Y.currentPageUrl="";Y.baseUrl="";Y.isHiddenByUser=null;Y.hidden=!1;Y.showAboveScrim=!1;Y.watchNextGrid=_.q("kevlar_watch_grid");Y.modernButtons=_.q("web_modern_buttons");Y.roundedContainer=!0;Y.noBorder=!1;Y.roundBackground=!_.q("live_chat_round_background_killswitch");Y.overflowHideChat=_.q("live_chat_overflow_hide_chat");Y.forceDarkTheme=!1;Y.theaterWatchWhile=!1;Y.isListeningForPlayerProgress=!1;Y.JSC$20007_playerEvents=new Map;Y.isFrameReady=
!1;Y.player=null;Y.actionMap={"yt-set-live-chat-collapsed-state-action":"setCollapsedState","yt-forward-redux-action-to-live-chat-iframe":"forwardReduxActionToIframe","yt-dark-theme-action":"onDarkThemeAction","yt-light-theme-action":"onLightThemeAction","yt-signal-action-close-pdg-buy-flow":"onClosePdgBuyFlow"};return Y};
_.P(qp,_.F);_.g=qp.prototype;_.g.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.De(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.g.created=function(){var Y=this;this.handleIframeEventListener=function(b){Y.handleIframeEvent(b)};
this.handleKeyboardEventListener=function(b){Y.handleKeyboardEvent(b)};
this.JSC$20007_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$20007_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20007_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$20007_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$20007_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.g.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()};
_.g.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};
_.g.computeBaseUrl=function(Y){var b="/live_chat";this.isChatReplay()&&(b="/live_chat_replay");return _.c2(_.ET(_.Nv(_.$G(Y),b),null),"").toString()};
_.g.dataChanged=function(){_.q("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.g.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var Y=this.url;if(this.isChatReplay()&&this.player){var b=Math.floor(this.player.getProgressState().current*1E3);Y=_.G_(_.$G(Y),"playerOffsetMs",b.toString()).toString()}b=this.chatframe;try{var w=Y==="about:blank"?_.vBb:_.PN(Y),V=b.contentDocument.location,H=_.M1(w);H!==void 0&&V.replace(H)}catch(f){b.src=Y}}};
_.g.collapsedChanged=function(){_.Ua(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.g.handleIframeEvent=function(Y){if(Y&&this.baseUrl.startsWith(Y.origin)&&Y.source===this.chatframe.contentWindow&&_.bC(Y.data))if(Y.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(Y);else if(Y.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(Y.data["yt-show-feedback-dialog"]){var b=_.fH().resolve(_.HQ(_.lGt));if(b){var w=Y.ports,V;w&&w.length&&(V=function(){w[0].postMessage({})});
Y=Y.data["yt-show-feedback-dialog"];b.showFeedbackDialog(Y.customProductData,Y.feedbackContent,V,Y.bucket)}}else if(Y.data["yt-show-survey"])_.Ua(this.hostElement,"yt-show-survey",Y.data["yt-show-survey"]);else if(Y.data["yt-purchase-membership"])_.fH().resolve(_.Nn).resolveCommand(Y.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(Y.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(Y.data["yt-tunnel-out-live-service-request"]);else if(Y.data["yt-user-activity"])_.gh();
else if(Y.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(Y.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(Y.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(Y.data["yt-open-popup"]);else if(Y.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(Y.data["yt-log-flow-logging-event-command"]);else if(Y.data["yt-hide-live-chat"])this.onShowHideChat();else Y.data["yt-report-moderation-state-log"]&&
this.player&&(b={cpn:this.player.getVideoData().cpn},_.RY("liveChatBeingModerated",b))};
_.g.attachLiveChatResponseVeTrackingParams=function(Y){Y=_.nA(Y);var b=_.dO(),w=_.Aq("liveChatRenderer.trackingParams",this.data);b&&w&&_.yX(b,_.nA(w),Y)};
_.g.handleBuyflowMessages=function(Y){var b=Y.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,w=Y.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,V=Y.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.csB(_.Ud(_.Tg),b.replace(/-/g,"+").replace(/_/g,"/"),function(H){Y.ports[0].postMessage({success:!0,buyFlowResponse:H})},void 0,function(H){Y.ports[0].postMessage({success:!1,
error:H&&H.message||"Buyflow rejected without error."})},_.P0().get("hl"),void 0,function(){Y.ports[0].postMessage({closed:!0})},w,V)};
_.g.setupPlayerProgressRelay=function(){var Y=this;if(!this.isListeningForPlayerProgress){var b=_.Hv();b!=null&&b.getPlayerPromise&&(b.getPlayerPromise().then(function(w){Y.playerApiReady(w)}),this.isListeningForPlayerProgress=!0)}};
_.g.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.g.playerApiReady=function(Y){this.setPlayer(Y)};
_.g.playerProgressHandler=function(){if(this.player){var Y=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":Y.current})}};
_.g.playerAdStartHandler=function(Y){this.postToContentWindow({"yt-player-ad-start":Y})};
_.g.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.g.playerStateChangeHandler=function(Y){this.postToContentWindow({"yt-player-state-change":Y})};
_.g.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20007_playerEvents);Y&&(this.player=Y,this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20007_playerEvents),_.Ua(this.hostElement,"player-api-ready"))};
_.g.liveChatPageUrl=function(Y,b,w,V){return!w||b?"about:blank":w.liveChatRenderer?(b=_.$G(this.currentPageUrl).JSC$8068_queryData_,ozR(b),Y=_.$G(Y),b.add("continuation",w.liveChatRenderer.continuations[0].reloadContinuationData.continuation),w=_.OC()==="USER_INTERFACE_THEME_DARK",(V||w)&&b.add("dark_theme","true"),_.ET(Y,b),V=_.$G(Y.toString()),w=V.JSC$8068_queryData_,"SESSION_INDEX"in _.aI&&(w.add("authuser",_.zO("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.aI&&w.add("pageId",_.zO("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.aI&&w.add("sdc",_.zO("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),V.toString()):""};
_.g.isCollapsed=function(Y,b){return b!==null?b:this.isChatReplay()||Y&&Y.conversationBarRenderer&&Y.conversationBarRenderer.availabilityMessage?!0:Y?Y.liveChatRenderer?Y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.q("live_chat_hide_premiere_replay_message")||Y.conversationBarRenderer&&Y.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.g.isHidden=function(Y,b,w){var V=b&&b.conversationBarRenderer&&b.conversationBarRenderer.availabilityMessage,H=b&&b.liveChatRenderer&&b.liveChatRenderer.showHideButton,f=b&&b.liveChatRenderer&&b.liveChatRenderer.showButton;return w&&Y&&!V&&!f||!w&&Y&&!V&&!H?!0:b&&b.liveChatRenderer&&b.liveChatRenderer.initialDisplayState?b.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.g.computeButtonOverride=function(Y,b){if(Y&&b)return{type:"outline"}};
_.g.setCollapsedState=function(Y){_.v(Y,_.Iqr)&&(this.isHiddenByUser=!!_.v(Y,_.Iqr).collapsed,!this.isHiddenByUser&&_.q("enable_teaser_framework_web_client")&&_.Xx(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.g.forwardReduxActionToIframe=function(Y){this.postToContentWindow({"yt-live-chat-forward-redux-action":Y})};
_.g.onLoopRangeChange=function(Y){this.showAboveScrim=!(Y==null||!Y.postId)};
_.g.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.g.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.g.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.g.sendDarkThemePostMessage=function(Y){this.postToContentWindow({"yt-live-chat-set-dark-theme":Y})};
_.g.onLiveChatBuyFlowCallback=function(Y){this.postToContentWindow({"yt-live-chat-buy-flow-callback":Y})};
_.g.handleKeyboardEvent=function(Y){(0,_.BL.containsValue)(mtQ,Y.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:Y.type,keyCode:Y.keyCode}})};
_.g.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.g.postToContentWindow=function(Y){if(this.isFrameReady)try{var b=window.location.protocol+"//"+window.location.host,w;(w=this.chatframe)!=null&&w.contentWindow?this.chatframe.contentWindow.postMessage(Y,b):_.Sk(new _.BQ("Tried posting a message to an iframe with no content window",Y))}catch(V){_.Ft(V)}};
_.g.shouldHideChatFrame=function(Y){return Y&&_.q("hide_live_chat_button_when_collapsed")};
_.up.Object.defineProperties(qp.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.q("live_chat_overflow_hide_chat")||_.q("web_watch_chat_hide_button_killswitch"))return _.q("live_chat_overflow_hide_chat");var Y,b,w,V;return!!((Y=this.data)==null?0:(b=Y.liveChatRenderer)==null?0:(w=b.header)==null?0:(V=w.liveChatHeaderRenderer)==null?0:V.collapseButton)}}});
qp.prototype.collapsedChanged=qp.prototype.collapsedChanged;qp.prototype.urlChanged=qp.prototype.urlChanged;qp.prototype.dataChanged=qp.prototype.dataChanged;qp.prototype.onShowHideChat=qp.prototype.onShowHideChat;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],qp.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],qp.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],qp.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],qp.prototype,"ytOpenPopupBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qp.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],qp.prototype,"currentPageUrl",void 0);
_.z([_.R({computed:"computeBaseUrl(currentPageUrl,data)"}),_.K("design:type",Object)],qp.prototype,"baseUrl",void 0);_.z([_.R({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.K("design:type",String)],qp.prototype,"url",void 0);_.z([_.R(),_.K("design:type",Object)],qp.prototype,"isHiddenByUser",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.K("design:type",Object)],qp.prototype,"hidden",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.K("design:type",Boolean)],qp.prototype,"collapsed",void 0);_.z([_.R({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.K("design:type",Boolean)],qp.prototype,"hideChatFrame",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qp.prototype,"showAboveScrim",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qp.prototype,"watchNextGrid",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],qp.prototype,"modernButtons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qp.prototype,"roundedContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qp.prototype,"noBorder",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],qp.prototype,"roundBackground",void 0);
_.z([_.R({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.K("design:type",Object)],qp.prototype,"toggleButtonOverride",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],qp.prototype,"overflowHideChat",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qp.prototype,"forceDarkTheme",void 0);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],qp.prototype,"enableShowWithoutHideChatButton",null);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qp.prototype,"theaterWatchWhile",void 0);_.z([_.xZ("#chatframe"),_.K("design:type",HTMLIFrameElement)],qp.prototype,"chatframe",void 0);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qp.prototype,"onShowHideChat",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qp.prototype,"dataChanged",null);
_.z([_.lr("url"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qp.prototype,"urlChanged",null);_.z([_.lr("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qp.prototype,"collapsedChanged",null);_.z([_.S({is:"ytd-live-chat-frame",disableElementRegistration:!0})],qp);
_.a(qp,"ytd-live-chat-frame",function(){if(F5O!==void 0)return F5O;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-frame--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iframe frameborder="0" scrolling="no" id="chatframe" class="style-scope ytd-live-chat-frame"></iframe>\n<template is="dom-if" if="[[data.conversationBarRenderer.availabilityMessage]]" class="style-scope ytd-live-chat-frame">\n  <ytd-message-renderer data="[[data.conversationBarRenderer.availabilityMessage.messageRenderer]]" class="style-scope ytd-live-chat-frame">\n  </ytd-message-renderer>\n</template>\n<template is="dom-if" if="[[!enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" class="style-scope ytd-live-chat-frame">\n    <ytd-toggle-button-renderer data="[[data.liveChatRenderer.showHideButton.toggleButtonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" class="style-scope ytd-live-chat-frame">\n    </ytd-toggle-button-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[enableShowWithoutHideChatButton]]" class="style-scope ytd-live-chat-frame">\n  <div id="show-hide-button" hidden="[[!collapsed]]" class="style-scope ytd-live-chat-frame">\n    <ytd-button-renderer data="[[data.liveChatRenderer.showButton.buttonRenderer]]" noink="" overrides="[[toggleButtonOverride]]" on-click="onShowHideChat" class="style-scope ytd-live-chat-frame">\n    </ytd-button-renderer>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return F5O=Y},{mode:1});var L5d;var sk=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_modern_buttons");Y.buttonOverrides={style:"call-to-action",type:"filled"};return Y};
_.P(sk,_.F);sk.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=_.WH(this.data.backgroundColor)))};
sk.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var Y=this.getFormattedStringLoggingDirectives(this.data.headline);Y&&this.rendererBehavior.logExplicitClick(Y)}};
sk.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var Y=this.getFormattedStringLoggingDirectives(this.data.description);Y&&this.rendererBehavior.logExplicitClick(Y)}};
sk.prototype.getFormattedStringLoggingDirectives=function(Y){return Y&&Y.runs&&Y.runs.length>0&&Y.runs[0]&&Y.runs[0].loggingDirectives?Y.runs[0].loggingDirectives:null};
sk.prototype.dataChanged=sk.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sk.prototype,"rendererBehavior",void 0);_.z([_.n(Q0d.YtMacroReplacementBehavior),_.K("design:type",Object)],sk.prototype,"macroReplacementBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sk.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],sk.prototype,"navigationEndpoint",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],sk.prototype,"enableColors",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],sk.prototype,"modern",void 0);_.z([_.R(),_.K("design:type",Object)],sk.prototype,"buttonOverrides",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sk.prototype,"dataChanged",null);_.z([_.S({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],sk);
_.a(sk,"ytd-action-basic-immersive-content-renderer",function(){if(L5d!==void 0)return L5d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-basic-immersive-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="icon" hidden="[[!data.iconImage]]" thumbnail="[[data.iconImage]]" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-img-shadow>\n<yt-formatted-string id="headline" text="[[data.headline]]" on-click="onHeadlineClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<yt-formatted-string id="desc" text="[[data.description]]" on-click="onDescriptionClick" class="style-scope ytd-action-basic-immersive-content-renderer"></yt-formatted-string>\n<ytd-button-renderer id="action" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" class="style-scope ytd-action-basic-immersive-content-renderer">\n</ytd-button-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return L5d=Y},{mode:1});var ShX;var a_N;var Qo=function(){return _.F.apply(this,arguments)||this};
_.P(Qo,_.F);Qo.prototype.dataChanged=function(){var Y;((Y=this.data)==null?void 0:Y.backgroundColor)!==void 0&&_.m_(this.hostElement,{"--bgu-color":_.WH(this.data.backgroundColor)})};
Qo.prototype.onImageTileClick=function(){var Y;((Y=this.data)==null?0:Y.navigationEndpoint)&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var b;((b=this.data)==null?0:b.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.up.Object.defineProperties(Qo.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?void 0:Y.objectFit)!==void 0)switch(this.data.objectFit){case "OBJECT_FIT_CONTAIN":return"CONTAIN";case "OBJECT_FIT_COVER":return"COVER";case "OBJECT_FIT_FILL":return"FILL"}return null}},
hasTileMetadata:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;if(((Y=this.data)==null?void 0:(b=Y.detailsLine)==null?void 0:b.texts)!=null&&((w=this.data)==null?void 0:w.detailsLine.texts.length)>0){var V;return(V=this.data)==null?void 0:V.detailsLine.texts.map(function(H){return H.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;if(((Y=this.data)==null?void 0:(b=Y.optionalDetailsLine)==null?void 0:b.texts)!=null&&((w=this.data)==null?void 0:w.optionalDetailsLine.texts.length)>0){var V;return(V=this.data)==null?void 0:V.optionalDetailsLine.texts.map(function(H){return H.text}).join("")}return null}}});
Qo.prototype.dataChanged=Qo.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Qo.prototype,"rendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Qo.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Qo.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.backgroundColor"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Qo.prototype,"hasBackgroundColor",null);
_.z([_.t("data.objectFit"),_.K("design:type",Object),_.K("design:paramtypes",[])],Qo.prototype,"getObjectFit",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.tileRenderingStyle"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Qo.prototype,"hasTileMetadata",null);_.z([_.t("data.detailsLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Qo.prototype,"getSecondaryDetails",null);
_.z([_.t("data.optionalDetailsLine"),_.K("design:type",Object),_.K("design:paramtypes",[])],Qo.prototype,"getOptionalDetails",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qo.prototype,"dataChanged",null);_.z([_.S({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Qo);
_.a(Qo,"ytd-image-tile-renderer",function(){if(a_N!==void 0)return a_N;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-tile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <button class="remove-default-button-style background-adjusted style-scope ytd-image-tile-renderer" on-click="onImageTileClick">\n      <yt-img-shadow class="thumbnail style-scope ytd-image-tile-renderer" aria-label$="[[data.image.thumbnail.accessibility.accessibility_data.label]]" hidden="[[!data.image]]" object-fit="[[getObjectFit]]" thumbnail="[[data.image.thumbnail]]"></yt-img-shadow>\n      <div class="badge style-scope ytd-image-tile-renderer" hidden="[[!data.imageBadge]]">\n        <yt-img-shadow class="badge-image style-scope ytd-image-tile-renderer" thumbnail="[[data.imageBadge.thumbnail]]"></yt-img-shadow>\n      </div>\n      <div class="metadata style-scope ytd-image-tile-renderer" hidden="[[!hasTileMetadata]]">\n        <div class="headline style-scope ytd-image-tile-renderer">[[data.headline.simpleText]]</div>\n        <div class="secondary-details style-scope ytd-image-tile-renderer">[[getSecondaryDetails]]</div>\n        <div class="price style-scope ytd-image-tile-renderer">[[getOptionalDetails]]</div>\n      </div>\n </button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return a_N=Y},{mode:1});var rsX;var vW=function(){return _.F.apply(this,arguments)||this};
_.P(vW,_.F);vW.prototype.getOpenLinkIcon=function(){return _.q("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
vW.prototype.onSitelinkTap=function(){_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.q("kevlar_command_handler_migration_killswitch"))_.IP(this.hostElement,this.data.clickCommands,this.hostElement);else for(var Y=_.N(this.data.clickCommands),b=Y.next();!b.done;b=Y.next())this.ytComponentBehavior.resolveCommand(b.value)};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],vW.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vW.prototype,"rendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vW.prototype,"data",void 0);_.z([_.S({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],vW);
_.a(vW,"ytd-sitelink-renderer",function(){if(rsX!==void 0)return rsX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sitelink-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-sitelink-renderer">\n  <button id="clickable-area" class="remove-default-button-style style-scope ytd-sitelink-renderer" on-tap="onSitelinkTap">\n    <div id="sitelink" class="style-scope ytd-sitelink-renderer">\n      <span class="style-scope ytd-sitelink-renderer">[[data.text.text]]</span>\n      <yt-icon id="open-icon" icon="[[getOpenLinkIcon()]]" class="style-scope ytd-sitelink-renderer"></yt-icon>\n    </div>\n    <div id="description-texts" class="style-scope ytd-sitelink-renderer">\n      <template is="dom-repeat" items="[[data.descriptions]]" class="style-scope ytd-sitelink-renderer">\n        <div id="desc" class="style-scope ytd-sitelink-renderer">[[item.text]]</div>\n      </template>\n    </div>\n  </button>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return rsX=Y},{mode:1});var PW=function(){var Y=_.F.apply(this,arguments)||this;Y.paddingFix=_.q("enable_ads_web_ep_buenos_aires_and_padding_fix");return Y};
_.P(PW,_.F);PW.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"}}}};
PW.prototype.dataChanged=function(){var Y=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;Y.ytMacroReplacementBehavior.sendServiceRequestAction([b])})};
PW.prototype.shouldHideFooter=function(Y){return!(Y&&_.q("use_ads_engagement_panel_desktop_footer_cta"))};
_.up.Object.defineProperties(PW.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:Y.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(w){var V;return(V=_.v(w,xAO))==null?void 0:V.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:Y.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(w){var V;return((V=_.v(w,xAO))==null?void 0:V.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
PW.prototype.dataChanged=PW.prototype.dataChanged;_.z([_.n(Q0d.YtMacroReplacementBehavior),_.K("design:type",Object)],PW.prototype,"ytMacroReplacementBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],PW.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],PW.prototype,"paddingFix",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.imageTileRenderers"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PW.prototype,"removeBorderFromImageTiles",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.imageTileRenderers"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],PW.prototype,"useFooteredMetadataRenderingStyle",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PW.prototype,"dataChanged",null);_.z([_.S({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],PW);
_.a(PW,"ytd-action-engagement-panel-content-renderer",function(){if(ShX!==void 0)return ShX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="sitelinks" hidden="[[!data.sitelinkRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n  <div id="image-tiles" hidden="[[!data.imageTileRenderers]]" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n<div id="footer" hidden="[[shouldHideFooter(data.actionButton)]]" class="style-scope ytd-action-engagement-panel-content-renderer">\n  <div id="action" class="style-scope ytd-action-engagement-panel-content-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ShX=Y},{mode:1});var zOX;var W5A=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;Y=_.GM("ad-grid-card-image-full-metadata-view-model");_.Jd(Y,function(){return b().interaction},w);
_.H6(Y,{visibilityCallback:function(V){var H,f=(H=b().interaction)==null?void 0:H.onFirstVisible;V&&f&&_.AA(f)},
showOption:_.uZ});return _.m("ad-grid-card-image-full-metadata-view-model",{class:function(){var V;return((V=b().interaction)==null?0:V.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:Y,"aria-label":function(){var V,H;return(V=b().interaction)==null?void 0:(H=V.accessibility)==null?void 0:H.label}},_.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.m(_.OH,{data:function(){return b().adImage}},{adImageViewModel:function(V){return _.m(_.kJ,{data:V.data,
customCommandResolver:w})}})),_.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.m(_.h,{cond:function(){return b().headline},
then:function(V){return _.m(_.wv,{text:V,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.m(_.h,{cond:function(){return b().detailsLine},
then:function(V){return _.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.m(_.OH,{data:V},{adDetailsLineViewModel:function(H){return _.m(_.gz,{data:H.data,customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.m(_.h,{cond:function(){return b().secondaryDetailsLine},
then:function(V){return _.m("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.m(_.OH,{data:V},{adDetailsLineViewModel:function(H){return _.m(_.gz,{data:H.data,customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ri");var K5X=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;Y=_.GM("ad-grid-card-image-view-model");_.Jd(Y,function(){return b().interaction},w);
_.H6(Y,{visibilityCallback:function(V){var H,f=(H=b().interaction)==null?void 0:H.onFirstVisible;V&&f&&_.AA(f)},
showOption:_.uZ});return _.m("ad-grid-card-image-view-model",{class:function(){var V;return((V=b().interaction)==null?0:V.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:Y,"aria-label":function(){var V,H;return(V=b().interaction)==null?void 0:(H=V.accessibility)==null?void 0:H.label}},_.m(_.OH,{data:function(){return b().adImage}},{adImageViewModel:function(V){return _.m(_.kJ,{data:V.data,
customCommandResolver:w})}}),_.m("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.m(_.OH,{data:function(){return b().adCardBadge}},{adCardBadgeViewModel:_.yKk})))},"Si");var imt=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;Y=_.GM("ad-grid-card-text-view-model");_.Jd(Y,function(){return b().interaction},w);
_.H6(Y,{visibilityCallback:function(V){var H,f=(H=b().interaction)==null?void 0:H.onFirstVisible;V&&f&&_.AA(f)},
showOption:_.uZ});return _.m("ad-grid-card-text-view-model",{class:function(){var V;return((V=b().interaction)==null?0:V.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:Y,"aria-label":function(){var V,H;return(V=b().interaction)==null?void 0:(H=V.accessibility)==null?void 0:H.label}},_.m("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.m(_.h,{cond:function(){return b().title},
then:function(V){return _.m(_.wv,{text:V,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.m("div",{class:function(){return _.q("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.m(_.Bf,{each:function(){var V;
return((V=b())==null?void 0:V.descriptions)||[]},
keyBy:"INDEX"},function(V){return _.m(_.wv,{text:V,className:function(){return _.q("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.m("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.m(_.OH,{data:function(){return b().moreInfoButton}},{adButtonViewModel:function(V){return _.m(_.bP,{data:V.data,
customCommandResolver:w})}})))},"Ti");var AsX=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;var V=Y.adGridCardCollectionStyle;Y=_.GM("ad-grid-card-collection-view-model");_.H6(Y,{visibilityCallback:function(H){var f,E=(f=b().interaction)==null?void 0:f.onFirstVisible;H&&E&&_.AA(E)},
showOption:_.uZ});return _.m("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:Y,style:function(){return"grid-template-columns: repeat("+tbI(V?V():b().style)+", minmax(0, 1fr));"}},_.m(_.OH,{data:function(){var H;
return(H=b())==null?void 0:H.gridCards}},{adGridCardImageViewModel:function(H){return _.m(K5X,{data:H.data,
customCommandResolver:w})},
adGridCardImageFullMetadataViewModel:function(H){return _.m(W5A,{data:H.data,customCommandResolver:w})},
adGridCardTextViewModel:function(H){return _.m(imt,{data:H.data,customCommandResolver:w})}}))},"Ui");_.f_(_.b8(function(Y){var b=Y.data;Y=_.GM("panel-text-icon-image-tiles-button-layout-content-view-model");_.Jd(Y,function(){return b().interaction},R2X);
_.H6(Y,{visibilityCallback:function(w){var V,H=(V=b().interaction)==null?void 0:V.onFirstVisible;w&&H&&_.AA(H)},
showOption:_.uZ});return _.m("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:Y},_.m("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.m(_.h,{cond:_.W9g("(min-width: "+((0,_.e$)()+_.L6)+"px)"),then:function(){return _.m(_.OH,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(w){return _.m(AsX,{data:w.data,
customCommandResolver:R2X})}})},
else:function(){return _.m(_.OH,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(w){return _.m(AsX,{data:w.data,
customCommandResolver:R2X,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.m("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.m(_.OH,{data:function(){return b().adButton}},{adButtonViewModel:function(w){return _.m(_.bP,{data:w.data,
customCommandResolver:R2X})}})))},"Vi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;Y=_.GM("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.Jd(Y,function(){return b().interaction},deQ);
_.H6(Y,{visibilityCallback:function(w){var V,H=(V=b().interaction)==null?void 0:V.onFirstVisible;w&&H&&_.AA(H)},
showOption:_.uZ});return _.m("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:Y},_.m("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.m(_.OH,{data:function(){if(_.W9g("(min-width: "+((0,_.e$)()+_.L6)+"px)")())var w=b().adGridCardCollection;else{w=Object.assign({},_.v(b().adGridCardCollection,qmN));var V;w.gridCards!==void 0&&((V=w.gridCards)==null?void 0:V.length)>1?w.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":w.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";w={adGridCardCollectionViewModel:w}}return w}},{adGridCardCollectionViewModel:function(w){return _.m(AsX,{data:w.data,
customCommandResolver:deQ})}})),_.m("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.m(_.OH,{data:function(){return b().adButton}},{adButtonViewModel:function(w){return _.m(_.bP,{data:w.data,
customCommandResolver:deQ})}})))},"Wi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.YX}});var Zo=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return Y};
_.P(Zo,_.F);_.g=Zo.prototype;_.g.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"}}}};
_.g.attached=function(){this.getDataFromPlayerAndRender()};
_.g.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.g.getDataFromPlayerAndRender=function(){var Y=this,b=_.V4(this.hostElement);b&&b.getPlayerPromise().then(function(w){Y.getCachedDataAndListen(w)})};
_.g.getCachedDataAndListen=function(Y){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=Y)};
_.g.resolveCachedActions=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(Y=Y&&Y())&&!_.BL.isEmpty(Y)&&this.sendUpdateEngagementPanelAction(Y);(Y=(Y=_.Aq("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&Y())&&!_.BL.isEmpty(Y)&&this.sendChangeEngagementPanelVisibilityAction(Y);(Y=(Y=_.Aq("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&Y())&&!_.BL.isEmpty(Y)&&this.sendScrollToEngagementPanelCommand(Y)};
_.g.sendUpdateEngagementPanelAction=function(Y){var b;_.Xx(this.hostElement,"yt-update-engagement-panel-action",[(b=_.BL.get(Y,"action"))!=null?b:Y])};
_.g.sendChangeEngagementPanelVisibilityAction=function(Y){_.Xx(this.hostElement,"yt-change-engagement-panel-visibility-action",[Y])};
_.g.sendScrollToEngagementPanelCommand=function(Y){_.Xx(this.hostElement,"yt-scroll-to-engagement-panel-command",[Y])};
_.g.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.q("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Sk(Error("jm"))};
Zo.prototype.dataChanged=Zo.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Zo.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Zo.prototype,"componentBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],Zo.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Zo.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Zo.prototype,"player",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Zo.prototype,"dataChanged",null);_.z([_.S({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Zo);
_.a(Zo,"ytd-ads-engagement-panel-content-renderer",function(){if(zOX!==void 0)return zOX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ads-engagement-panel-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-ads-engagement-panel-content-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return zOX=Y},{mode:1});var Cqb;var BW=function(){var Y=_.F.apply(this,arguments)||this;Y.player=null;Y.JSC$20044_playerEvents=new Map;Y.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return Y};
_.P(BW,_.F);_.g=BW.prototype;_.g.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]]"}}}}}};
_.g.created=function(){this.player=null;this.JSC$20044_playerEvents=new Map;this.JSC$20044_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20044_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20044_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20044_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.g.attached=function(){var Y=this,b=_.V4();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));b&&b.getPlayerPromise().then(function(w){Y.setPlayer(w);Y.set("isPageLoad",!1)})};
_.g.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20044_playerEvents);this.set("player",Y);Y&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20044_playerEvents),Y.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.g.onLoopRangeChange=function(Y){var b=_.fH().resolve(_.HQ(_.bX));if((!b||b.isOnWatch())&&this.hostElement.clientHeight){var w;!Y&&((w=this.data)==null?0:w.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.g.onVideoProgress=function(Y){var b,w,V=((b=this.player)==null?void 0:(w=b.getPresentingPlayerType)==null?void 0:w.call(b))===2;this.isAdPlaying!==V&&this.set("isAdPlaying",V);var H;if(!V&&(H=this.player)!=null&&H.getLoopRange()){w=this.player.getLoopRange();b=w.startTimeMs;w=w.endTimeMs;V=this.player.getProgressState(1).seekableStart;var f;b<V*1E3&&((f=this.data)==null?0:f.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
Y=w<Y*1E3;var E;((E=this.player)==null?0:E.getLoopRange())&&Y&&this.player.seekTo(b/1E3)}};
_.g.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.g.onYtDeleteClipEngagementPanelCommand=function(Y){_.v(Y,F6b).command&&this.ytComponentBehavior.resolveCommand(_.v(Y,F6b).command)};
_.up.Object.defineProperties(BW.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.voteCount)||_.Gx("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],BW.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],BW.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],BW.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],BW.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],BW.prototype,"isAdPlaying",void 0);_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],BW.prototype,"isPageLoad",void 0);_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],BW.prototype,"isDarkTheme",void 0);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BW.prototype,"voteCount",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],BW.prototype,"channelEndpoint",null);_.z([_.t("channelEndpoint"),_.K("design:type",Object),_.K("design:paramtypes",[])],BW.prototype,"channelHref",null);_.z([_.S({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],BW);
_.a(BW,"ytd-clip-attribution-renderer",function(){if(Cqb!==void 0)return Cqb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-attribution-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main" class="style-scope ytd-clip-attribution-renderer">\n  <div id="top" class="style-scope ytd-clip-attribution-renderer">\n    <a aria-hidden="true" class="yt-simple-endpoint author-endpoint author-avatar style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow class="author-avatar style-scope ytd-clip-attribution-renderer" height="40" thumbnail="[[data.authorAvatar]]" width="40">\n      </yt-img-shadow>\n    </a>\n    <div id="author-container" class="style-scope ytd-clip-attribution-renderer">\n      <a aria-hidden="true" class="yt-simple-endpoint author-endpoint style-scope ytd-clip-attribution-renderer" href$="[[channelHref]]" data="[[channelEndpoint]]" tabindex="-1">\n        <ytd-channel-name id="author" badges="[[data.authorBadges]]" channel-name="[[data.clipAuthor]]" no-endpoints="" class="style-scope ytd-clip-attribution-renderer">\n        </ytd-channel-name>\n      </a>\n      <span class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.createdText)]]</span>\n    </div>\n    <div id="menu" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <span id="title" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.title)]]</span>\n  <div id="bottom" class="style-scope ytd-clip-attribution-renderer">\n    <div id="buttons" class="style-scope ytd-clip-attribution-renderer"></div>\n  </div>\n  <div id="ad-overlay" class="style-scope ytd-clip-attribution-renderer">\n    <svg id="ad-image" viewBox="0 0 166.96 140.96" class="style-scope ytd-clip-attribution-renderer">\n      <g class="style-scope ytd-clip-attribution-renderer"><g class="style-scope ytd-clip-attribution-renderer">\n        <path class="cls-2 style-scope ytd-clip-attribution-renderer" d="M138.1,103.79l9.9-17h0l-9.9-5.44,9.9-17h0L138.1,59,148,42s-26,20.57-38.86,29.71-9.43-22.57-9.71-47.14S90.29-6,66.86,6,0,46.55,0,46.55l9.9,6.19L0,72.54l9.9,6.35L0,98.69,9.9,105,0,124.84s63.84-42,79.56-50.56c14.81-8.09,12.15,27.13,11.87,45.13s9.14,21.43,22,13.71c12.42-7.45,33.1-22.9,34.49-23.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M102.26,71.67V137c.27,0,.55,0,.84-.05V72.54A4.36,4.36,0,0,1,102.26,71.67Z" transform="translate(0 0.25)"></path>\n        <path class="cls-4 style-scope ytd-clip-attribution-renderer" d="M50.49,121.06c1.82-2.79,4.46-4.68,7.11-6.57,1.3-.93,2.61-1.85,3.86-2.84a4.06,4.06,0,0,0,.95-1.75c.22-3.44-2.51-6.92-5.93-6.42-3.62,0-7.24,2.84-10.08,4.72-3.78,2.5-7.06,6.32-9.77,9.91-1.43,1.9-2.72,3.71-4,5.68-2.76,4.13-4.4,8.7-6.6,13.21a16.79,16.79,0,0,1,.55-3.13c2-5.06,4.07-10.07,7.32-14.49,1-1.36,2-2.78,3-4.12a5.68,5.68,0,0,1,1.45-.86c.28-1.65,2-2.64,3-4.07,0-.06.5.19.77.3a7.55,7.55,0,0,1,.53-1.46c0-.09.61.11.94.17,0-.36,0-.72,0-1.08,0-.1.19-.18.28-.27,1.09-1.08,2.57-1.56,3.71-2.64a12.29,12.29,0,0,1,4.18-2.46,19.89,19.89,0,0,1,5.13-1.09c3.21-.27,6.5,3.42,7.27,5.72.21.64.41,1.28.69,2.15l3.71-1.73a1.57,1.57,0,0,1,2.13.26l-.35-1,5.12-1.33c1.06.89,2.1.2,3.16,0,.86-.18,1.78-.16,1.87-1.37,0-.06.5-.19.53-.13a4.74,4.74,0,0,1,.37.87l3.05-.58-.08.81c-3.69,1.11-7.47,1.69-11,2.9a28.1,28.1,0,0,0-7.73,4,12.91,12.91,0,0,0-4,5.89,33.12,33.12,0,0,1-7.84,11.43c-1.53,1.54-3.32,2.81-5,4.23a4.84,4.84,0,0,1-3.55,1.22c-1.33-.06-1.67-.23-2-1.49a4.81,4.81,0,0,1,.19-3.38c1.63-3.31,3.52-6.4,6.53-8.65l-.23.49c.11,0,.2.07.23.05l.86-.94Zm-6.3,11.57a1.69,1.69,0,0,0,1.3,1.43,6,6,0,0,0,2.76-1.2c2-1.71,4-3.53,5.94-5.33a4,4,0,0,0,.47-.89c.31-.52,1.52-1.1,1.84-1.61,1.49-2.4,2.76-4.89,4.22-7.31.27-.45.22-3.25-.1-3.46a19.68,19.68,0,0,0-3.49,2.44c-1,.5-1.65,1.85-2.64,2.33a13.34,13.34,0,0,0-3,2.67c-1,1-1.92,1.93-2.8,3a34.65,34.65,0,0,0-2.3,3.11C45.65,128.87,44.17,131.53,44.19,132.63Z" transform="translate(0 0.25)"></path>\n        <path class="cls-1 style-scope ytd-clip-attribution-renderer" d="M0,124.84V46.55S43.43,18,66.86,6,99.14,0,99.43,24.55s-3.14,56.29,9.71,47.14S148,42,148,42v67.14s-21.71,16.29-34.57,24-22.29,4.29-22-13.71,2.94-53.22-11.87-45.13C63.84,82.87,0,124.84,0,124.84Z" transform="translate(0 0.25)"></path>\n        <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M119,12.45c-.87,10.43-4.13,19.08-15,22.06,13.42.52,14.54,9.3,15.29,18.31,1.28-9.85,4.42-18.14,15-20.18C123.63,31.85,120.11,23.44,119,12.45Z" transform="translate(0 0.25)"></path>\n        <g class="cls-6 style-scope ytd-clip-attribution-renderer">\n          <polygon class="cls-4 style-scope ytd-clip-attribution-renderer" points="166.96 114.12 146.52 104.85 161.66 80.3 137.84 92.19 132.87 70.65 126.28 95.37 110.8 90.89 120.61 104.1 105.23 112.92 119.7 114.68 116.36 135.53 131.9 122.15 141.06 140.96 143.28 116.82 166.96 114.12"></polygon>\n          <path class="cls-5 style-scope ytd-clip-attribution-renderer" d="M73.23,20.28c1.5-8,.86-14.91-1.89-20.53L69.79.51C72.37,5.79,73,12.34,71.54,20c-3,16.13-14.32,29.76-28.12,33.92a31.14,31.14,0,0,1-7.73,1.27A39.72,39.72,0,0,0,19.94,24.42c-4-2.94-7.71-3.92-10.8-2.86-5.5,1.88-6.8,9.18-4.87,15.13,3.88,11.93,16.48,20,29.69,20.2,0,.43,0,.86-.07,1.29a37.87,37.87,0,0,1-19.27,30l.82,1.51a35.69,35.69,0,0,0,5.18-3.42,39.75,39.75,0,0,0,15-28c0-.47.06-.94.07-1.41a32.46,32.46,0,0,0,8.24-1.34C58.33,51.2,70.11,37,73.23,20.28ZM34,55.17c-12.5-.23-24.4-7.77-28.06-19C4.5,31.81,5,26.47,8.05,24.09a5.66,5.66,0,0,1,1.66-.9c3.18-1.1,6.76.82,9.2,2.62A38,38,0,0,1,34,55.17Z" transform="translate(0 0.25)"></path>\n        </g>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17.4,46.23,17,45.51,24.42,41l.44.71Q21.2,43.94,17.4,46.23Zm14.9-9.15-.44-.71,7.42-4.6.44.71ZM47.16,27.9l-.44-.72c2.57-1.58,5.07-3.09,7.47-4.54l.44.72Q51,25.52,47.16,27.9Zm15-8.94-.42-.73c2.85-1.62,5.37-3,7.69-4.19l.39.75C67.5,16,65,17.34,62.16,19ZM96,14.42a14,14,0,0,0-2.35-3.14l.58-.6A14.64,14.64,0,0,1,96.71,14ZM77.7,11.11l-.32-.77a32.13,32.13,0,0,1,8.49-2.4l.09.83A31.86,31.86,0,0,0,77.7,11.11Z" transform="translate(0 0.25)"></path>\n        <polygon class="cls-3 style-scope ytd-clip-attribution-renderer" points="57.21 88.12 56.37 88.65 56.37 11.92 57.21 11.45 57.21 88.12"></polygon>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M109.94,80.05a6.68,6.68,0,0,1-5.19-2.48l.64-.55c1.93,2.22,4.35,2.74,7.49,1.63l.28.79A9.59,9.59,0,0,1,109.94,80.05Zm10.81-5.11-.49-.69c2.11-1.48,4.48-3.21,7.06-5.14l.51.68C125.24,71.72,122.86,73.45,120.75,74.94Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M17,103.93l-.46-.7,7.28-4.83.46.7Zm14.55-9.68-.46-.7q3.73-2.49,7.27-4.84l.47.7Zm14.57-9.64-.46-.7q3.84-2.5,7.36-4.73l.45.71C51.15,81.37,48.69,83,46.14,84.61Zm14.8-9.26-.43-.73c2.89-1.7,5.4-3.08,7.68-4.22l.38.75C66.3,72.28,63.81,73.66,60.94,75.35ZM84.8,68.18A10.48,10.48,0,0,0,80,67.31a13.7,13.7,0,0,0-3.47.55l-.22-.81A14.45,14.45,0,0,1,80,66.47a11.37,11.37,0,0,1,5.15,1Z" transform="translate(0 0.25)"></path>\n        <path class="cls-3 style-scope ytd-clip-attribution-renderer" d="M98.67,127.76c-2.62-.79-4.81-2.9-6.35-6.12l.76-.36c1,2.09,2.82,4.77,5.84,5.68Zm8.65-1.68-.4-.73c1.81-1,4.31-2.53,7.45-4.55l.45.7C111.67,123.53,109.15,125.07,107.32,126.08Zm14.81-9.4-.47-.7c2.38-1.59,4.82-3.26,7.24-4.92l.47.69C127,113.41,124.51,115.08,122.13,116.68Z" transform="translate(0 0.25)"></path>\n        <ellipse class="cls-4 style-scope ytd-clip-attribution-renderer" cx="71.33" cy="51.78" rx="8.55" ry="6.47" transform="translate(-6.69 93.03) rotate(-63.7)"></ellipse>\n      </g></g>\n    </svg>\n    <div id="ad-text" class="style-scope ytd-clip-attribution-renderer">[[getSimpleString(data.adPlayingText)]]</div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Cqb=Y},{mode:1});var ysQ;var nt=function(){var Y=_.F.apply(this,arguments)||this;Y.player=null;Y.JSC$20049_playerEvents=new Map;return Y};
_.P(nt,_.F);_.g=nt.prototype;_.g.created=function(){this.player=null;this.JSC$20049_playerEvents=new Map;this.JSC$20049_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20049_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20049_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.g.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.g.attached=function(){var Y=this,b=_.V4();b&&b.getPlayerPromise().then(function(w){Y.setPlayer(w);Y.set("isPageLoad",!1)})};
_.g.setPlayer=function(Y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20049_playerEvents);this.set("player",Y);if(Y){this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20049_playerEvents);var b;(Y==null?void 0:(b=Y.getPresentingPlayerType)==null?void 0:b.call(Y))===2&&this.playerAdStartHandler()}};
_.g.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.g.onVideoProgress=function(){var Y,b,w=((Y=this.player)==null?void 0:(b=Y.getPresentingPlayerType)==null?void 0:b.call(Y))===2;this.isAdPlaying!==w&&this.set("isAdPlaying",w)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],nt.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nt.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],nt.prototype,"isAdPlaying",void 0);
_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],nt.prototype,"isPageLoad",void 0);_.z([_.S({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],nt);
_.a(nt,"ytd-clip-section-footer-renderer",function(){if(ysQ!==void 0)return ysQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="buttons" class="style-scope ytd-clip-section-footer-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ysQ=Y},{mode:1});var $3Q;var j0Q;var Mp=function(){return _.F.apply(this,arguments)||this};
_.P(Mp,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Mp.prototype,"data",void 0);_.z([_.S({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Mp);
_.a(Mp,"ytd-clip-ad-state-renderer",function(){if(j0Q!==void 0)return j0Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-ad-state-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="message" class="style-scope ytd-clip-ad-state-renderer">\n  <div id="title" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="body" class="style-scope ytd-clip-ad-state-renderer">[[getSimpleString(data.body)]]</div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return j0Q=Y},{mode:1});var G37;var es=function(){var Y=_.F.apply(this,arguments)||this;Y.value="";Y.valid=!1;Y.userChangedValue=!1;Y.disabled=!1;Y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return Y};
_.P(es,_.F);_.g=es.prototype;_.g.detached=function(){this.userChangedValue=!1};
_.g.handleKeyDown=function(Y){if(_.lL)var b=13;else _.MWM&&_.hZ?b=13:b=13;Y.keyCode===b&&Y.preventDefault()};
_.g.handleInput=function(){var Y=_.E6(this.hostElement).querySelector("#title");if(Y){var b=(Y.value||"").replace(/\r|\n/g," ");this.set("value",b);Y.value=b;this.valid=Y.validate();this.userChangedValue=!0}};
_.g.handleBlur=function(){this.valid=_.E6(this.hostElement).querySelector("#title").validate()};
_.g.onValueChanged=function(){_.Ua(this.hostElement,"title-changed",{title:this.value})};
_.g.onValidChanged=function(){_.Ua(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.g.setInput=function(Y,b){var w=_.E6(this.hostElement).querySelector("#title");w&&(w.value=Y,this.handleInput(),b&&(w.invalid=!1,this.valid=!0))};
_.g.onClipCreationDisable=function(){this.set("disabled",!0)};
_.g.onClipCreationEnable=function(){this.set("disabled",!1)};
_.g.onClipCreationVisibilityChange=function(Y){var b=this;Y.visible?requestAnimationFrame(function(){var w;((w=_.E6(b.hostElement).querySelector("#title"))==null?void 0:w.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
es.prototype.onValidChanged=es.prototype.onValidChanged;es.prototype.onValueChanged=es.prototype.onValueChanged;es.prototype.handleBlur=es.prototype.handleBlur;es.prototype.handleInput=es.prototype.handleInput;es.prototype.handleKeyDown=es.prototype.handleKeyDown;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],es.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],es.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],es.prototype,"value",void 0);_.z([_.R(),_.K("design:type",Object)],es.prototype,"valid",void 0);_.z([_.R(),_.K("design:type",Object)],es.prototype,"userChangedValue",void 0);_.z([_.R(),_.K("design:type",Object)],es.prototype,"disabled",void 0);_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],es.prototype,"handleKeyDown",null);
_.z([_.kZ("input"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],es.prototype,"handleInput",null);_.z([_.kZ("blur"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],es.prototype,"handleBlur",null);_.z([_.lr("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],es.prototype,"onValueChanged",null);
_.z([_.lr("valid"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],es.prototype,"onValidChanged",null);_.z([_.S({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],es);
_.a(es,"ytd-clip-creation-text-input-renderer",function(){if(G37!==void 0)return G37;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-creation-text-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-textarea id="title" char-counter="" disabled="[[disabled]]" label="[[getSimpleString(data.placeholderText)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="" pattern=".+" required="" use-v2-underline="" class="style-scope ytd-clip-creation-text-input-renderer"></tp-yt-paper-textarea>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return G37=Y},{mode:1});var Tsg;var JsN;var urN;var YYt;var bO7;var pt=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};Y.pendingStoryboardImages_={};Y.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];Y.tickLabelInterval=30;Y.mediumTickInterval=5;Y.largeTickInterval=15;Y.aboveRulerHeight=32;Y.rulerHeight=50;Y.smallTickHeight=4;Y.mediumTickHeight=8;Y.largeTickHeight=16;Y.mediaListeners_=
{};return Y};
_.P(pt,_.F);_.g=pt.prototype;_.g.attached=function(){var Y=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(b){b=_.N(["screen and (min-resolution: "+b+")","screen and (max-resolution: "+b+")"]);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=window.matchMedia(w);V&&(Y.mediaListeners_[w]=Y.updatePixelRatio_.bind(Y),V.addEventListener?V.addEventListener("change",Y.mediaListeners_[w]):V.addListener?V.addListener(Y.mediaListeners_[w]):delete Y.mediaListeners_[w])}})};
_.g.detached=function(){this.setPlayer(null);for(var Y=_.N(Object.keys(this.mediaListeners_)),b=Y.next();!b.done;b=Y.next()){var w=b.value;b=this.mediaListeners_[w];(w=window.matchMedia(w))&&(w.removeEventListener?w.removeEventListener("change",b):w.removeListener&&w.removeListener(b))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.g.onVisibilityChangedAction_=function(Y){var b=this;Y.visible&&!this.player_&&(Y=_.V4())&&Y.getPlayerPromise().then(function(w){b.setPlayer(w)})};
_.g.setPlayer=function(Y){Y&&this.set("player_",Y)};
_.g.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.g.setUpCanvas_=function(){var Y=this.rulerWidth,b=this.devicePixelRatio_,w=this.visible;this.set("canvasReady_",!1);if(w&&b!==0){w=this.aboveRulerHeight+this.rulerHeight;var V=_.E6(this.hostElement).querySelector("#ticks");V.width=Y*b;V.height=w*b;V.style.width=Y+"px";V.style.height=w+"px";V.getContext("2d").scale(b,b);this.set("canvasReady_",!0)}};
_.g.drawRuler_=function(Y,b,w,V,H,f,E,U,X,I,k,l){Y&&w&&b&&(Y=_.E6(this.hostElement).querySelector("#ticks"),b=Y.getContext("2d"),b.clearRect(0,0,Y.width,Y.height),b.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),b.lineWidth=2,b.beginPath(),b.moveTo(0,this.aboveRulerHeight),b.lineTo(Y.width,this.aboveRulerHeight),b.moveTo(0,Y.height),b.lineTo(Y.width,Y.height),b.stroke(),this.drawRulerTicks_(Y,f,H,V),this.drawStoryboardImages_(Y,w,f,H,V),b.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
b.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(E-f,V,!1),this.rulerHeight),w=this.timeToPixels_(U-f,V,!1),b.fillRect(w,this.aboveRulerHeight,Y.width-w,this.rulerHeight),this.drawSpeedLines_(Y,f,l))};
_.g.drawRulerTicks_=function(Y,b,w,V){var H=Y.getContext("2d");H.save();H.lineWidth=1;for(var f=Math.floor(Math.max(0,b-this.tickLabelInterval));f<b+w;f++){H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var E=(f-b)*V;H.beginPath();H.moveTo(E,Y.height);var U=this.smallTickHeight;f%this.largeTickInterval===0?U=this.largeTickHeight:f%this.mediumTickInterval===0&&(U=this.mediumTickHeight);H.lineTo(E,Y.height-U);H.stroke();f%this.tickLabelInterval===0&&(H.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),H.fillText(MU(f),E+4,12),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.moveTo(E,0),H.lineTo(E,this.aboveRulerHeight),H.stroke())}H.restore()};
_.g.percentToHex_=function(Y){Y=Math.round(Y*255).toString(16);Y.length<2&&(Y="0"+Y);return Y};
_.g.drawSpeedLines_=function(Y,b,w){var V=Y.getContext("2d");V.save();var H=Math.min(25,Math.abs(w)-15)/25,f=Y.width*.3*H,E=Y.width*-.3,U=Y.width*1.3,X=this.aboveRulerHeight;Y=Y.height;var I=Math.round(4*H),k=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");k.length<7&&(k="#"+k.substring(1,4).repeat(2));var l=this.percentToHex_(.5+H/2);l=k+l;k+="00";if(H>0)for(H=0;H<I;H++){var x=E+Math.random()*(U-E),Q=X+Math.random()*(Y-X),Z=f+b%f,e=V.createLinearGradient(x,Q,x+Z,Q);
w<0?(e.addColorStop(0,l),e.addColorStop(.4,l),e.addColorStop(.9,k)):(e.addColorStop(.1,k),e.addColorStop(.6,l),e.addColorStop(1,l));V.strokeStyle=e;V.lineWidth=1;V.beginPath();V.moveTo(x,Q);V.lineTo(x+Z,Q);V.stroke()}V.restore()};
_.g.getStoryboardForTime_=function(Y,b,w){w===void 0&&(w=b.getNumberOfStoryboardLevels()-1);Y=b.getStoryboardFrameIndex(Y,w);return b.getStoryboardFrame(Y,w)};
_.g.drawStoryboardImages_=function(Y,b,w,V,H){if(!this.disabled){Y=Y.getContext("2d");var f=this.getStoryboardForTime_(0,b);if(f){var E=f.width/f.columns;f=f.height/f.rows;var U=E/f,X=this.rulerHeight*U;X=this.tickLabelInterval*(U<this.tickLabelInterval*H/this.rulerHeight?1/Math.floor(this.tickLabelInterval*H/X):Math.round(X/(this.tickLabelInterval*H)));var I=X*H,k=this.rulerHeight,l=I/this.rulerHeight,x=Math.floor(Math.max(0,w-X));for(x-=x%X;x<w+V;x+=X){var Q=this.getStoryboardForTime_(x,b),Z=this.getPreloadedStoryboard_(Q.url);
if(Z){var e=(x-w)*H,O=this.aboveRulerHeight,L=Q.column*E,r=Q.row*f;if(U<l){var C=k/(I/U);Q=E;C*=f;r+=(f-C)/2}else Q=I/(k*U)*E,C=f,L+=(E-Q)/2;Y.drawImage(Z,L,r,Q,C,e,O,I,k)}else this.fetchStoryboardImage_(Q)}}}};
_.g.getPreloadedStoryboard_=function(Y){return this.storyboardImages_.find(function(b){if(b.src==Y)return!0;var w=b.src.indexOf(Y);return w!=-1&&w==b.src.length-Y.length})};
_.g.fetchStoryboardImage_=function(Y){var b=this,w=this.getPreloadedStoryboard_(Y.url),V=this.pendingStoryboardImages_[Y.url];w||V!==void 0||(w=new Promise(function(H){var f=new Image(Y.width,Y.height);f.src=Y.url;f.onload=function(){H(f)};
f.onerror=function(){H(null)}}),this.pendingStoryboardImages_[Y.url]=w,w.then(function(H){H&&b.push("storyboardImages_",H);
return H}).finally(function(){delete b.pendingStoryboardImages_[Y.url]}))};
_.g.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.g.timeToPixels_=function(Y,b,w){Y*=b;return w===void 0||w?Y+"px":Y};
_.g.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
pt.prototype.drawRuler_=pt.prototype.drawRuler_;pt.prototype.setUpCanvas_=pt.prototype.setUpCanvas_;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],pt.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],pt.prototype,"start",void 0);_.z([_.R({value:30}),_.K("design:type",Number)],pt.prototype,"end",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],pt.prototype,"visible",void 0);_.z([_.R(),_.K("design:type",Object)],pt.prototype,"player_",void 0);_.z([_.R(),_.K("design:type",Number)],pt.prototype,"tickSpacing",void 0);_.z([_.R(),_.K("design:type",Number)],pt.prototype,"windowSizeSec",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],pt.prototype,"rulerWidth",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],pt.prototype,"rulerShift",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],pt.prototype,"canvasReady_",void 0);_.z([_.R({value:function(){return[]}}),
_.K("design:type",Array)],pt.prototype,"storyboardImages_",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],pt.prototype,"disabled",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],pt.prototype,"forceRender_",void 0);_.z([_.R({value:1}),_.K("design:type",Number)],pt.prototype,"devicePixelRatio_",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],pt.prototype,"windowSpeed",void 0);
_.z([_.lr("visible","devicePixelRatio_","rulerWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pt.prototype,"setUpCanvas_",null);
_.z([_.lr("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.K("design:returntype")],pt.prototype,"drawRuler_",null);_.z([_.FM({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],pt);
_.a(pt,"yt-clip-creation-scrubber-canvas",function(){if(bO7===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-canvas--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<canvas id="ticks" class="style-scope yt-clip-creation-scrubber-canvas"></canvas>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);bO7=Y}Y=bO7;return Y},
{mode:2});var wns;var Vvg;var Ok=function(){var Y=_.F.apply(this,arguments)||this;Y.start=0;Y.end=30;Y.visible=!1;Y.draggingLeft_=!1;Y.draggingRight_=!1;Y.draggingRuler_=!1;Y.draggingWindow_=!1;Y.seekableStart=0;Y.seekableEnd=0;Y.rulerWidth_=0;Y.rulerShift_=0;Y.windowSlideSpeed=0;Y.disabled=!1;Y.initialized=!1;Y.durationAccessibilityLabel="";Y.activeLoopRange_=!1;Y.rulerDragMouseStart_=0;Y.rulerDragRulerStart_=0;Y.rulerDragStartTime_=0;Y.rulerDragEndTime_=0;Y.dragMouseLastX_=0;Y.scrollInterval_=null;Y.scrubberVe_=null;Y.boundHandlers_=
{};Y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return Y};
_.P(Ok,_.F);_.g=Ok.prototype;
_.g.created=function(){var Y=this;this.JSC$20062_playerEvents=new Map;this.JSC$20062_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20062_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20062_playerEvents.set("onStateChange",this.onStateChange_);var b={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(b).forEach(function(w){Y.boundHandlers_[w]=b[w].bind(Y)})};
_.g.attached=function(){this.activeLoopRange_=!1;_.E6(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E6(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.tj(156731)};
_.g.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.E6(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E6(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.g.onVisibilityChangedAction_=function(Y){var b=this;Y.visible&&!this.player_&&(Y=_.V4())&&Y.getPlayerPromise().then(function(w){b.setPlayer(w)})};
_.g.setPlayer=function(Y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20062_playerEvents);Y&&(this.set("player_",Y),this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20062_playerEvents))};
_.g.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.g.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.g.beginHandleDrag_=function(Y){this.disabled||(Y.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=Y.clientX,Y.target===_.E6(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():Y.target===_.E6(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.g.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.g.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.g.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.g.beginRulerDrag_=function(Y){this.disabled||(Y.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=Y.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.g.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.g.beginWindowScroll_=function(){var Y=this;this.scrollInterval_=setInterval(function(){var b=Y.windowSlideSpeed;if(b=_.AKt(Y.start,Y.boundedRulerStartLimit_())?b-.1:_.AKt(Y.end,Y.boundedRulerEndLimit_())?b+.1:0){var w=Y.capRulerOffset_(Y.rulerShift_+b);w==Y.rulerShift_?b=0:(Y.set("rulerShift_",w),_.Ua(Y.hostElement,"set-fixed-length-range",{start:Y.start+b,duration:Y.end-Y.start}))}Y.set("windowSlideSpeed",b)},33)};
_.g.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.g.endDrag_=function(){this.logClick();var Y=void 0;this.draggingRight_?Y=this.end-1:this.draggingLeft_&&(Y=this.start);this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1;this.endWindowScroll_();this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end,Y);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.g.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.g.updateRulerSize_=function(){this.set("rulerWidth_",_.E6(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.g.handleMouseDrag_=function(Y){Y.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(Y):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(Y):this.draggingWindow_&&this.handleWindowDrag_(Y))};
_.g.handleRulerDrag_=function(Y){Y=this.pixelsToTime_(Y.clientX-this.rulerDragMouseStart_);Y=this.capRulerOffset_(this.rulerDragRulerStart_-Y);this.set("rulerShift_",Y);var b=this.rulerDragStartTime_-(this.rulerDragRulerStart_-Y);_.Ua(this.hostElement,"set-fixed-length-range",{start:b,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-Y)-b})};
_.g.handleWindowDrag_=function(Y){var b=Y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=Y.clientX;Y=this.pixelsToTime_(b);_.Ua(this.hostElement,"set-fixed-length-range",{start:this.start+Y,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.g.capRulerOffset_=function(Y){var b=this.seekableStart-this.pixelsToTime_(16),w=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(b,Y),w)};
_.g.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.g.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.g.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.g.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.g.handleWindowHandleDrag_=function(Y){var b=Y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=Y.clientX;Y=this.pixelsToTime_(b);if(this.draggingLeft_){var w=this.start+Y;var V=this.end}else this.draggingRight_&&(w=this.start,V=this.end+Y);_.Ua(this.hostElement,"set-range",{start:w,end:V,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.g.onVideoProgress_=function(Y){this.disabled||(Y=this.timeToPixels_(Y-this.rulerShift_,this.tickSpacing_),_.E6(this.hostElement).querySelector("#playhead").style.transform="translateX("+Y+")")};
_.g.onClipCreationDisable_=function(){this.endDrag_()};
_.g.timeToPixels_=function(Y,b,w){Y*=b;return w===void 0||w?Y+"px":Y};
_.g.pixelsToTime_=function(Y){return Y/this.tickSpacing_};
_.g.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.g.centerRuler_=function(Y,b,w){this.set("rulerShift_",this.capRulerOffset_(Y+(b-Y)/2-w/2))};
_.g.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.g.updateLoopRange_=function(Y,b,w,V,H,f,E){Y&&(b&&V&&!w?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(Y.pauseVideo(),Y.seekTo(H,!1,void 0,void 0,50)):this.draggingRight_?(Y.pauseVideo(),Y.seekTo(f-.1,!1,void 0,void 0,50)):(E!==void 0?Y.seekTo(E,!0,void 0,void 0,50):(b=Y.getCurrentTime(),b<H||b>f?Y.seekTo(H,!0,void 0,void 0,50):Y.seekTo(b,!0,void 0,void 0,50)),Y.playVideo()),Y.setLoopRange({startTimeMs:H*1E3,endTimeMs:f*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(Y.getCurrentTime())):
this.activeLoopRange_&&(Y.setLoopRange(null),this.activeLoopRange_=!1))};
_.g.updateHandles_=function(){_.E6(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.E6(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.g.updateRuler_=function(){var Y=this.end,b=this.start,w=this.draggableStartLimit_(),V=this.draggableEndLimit_();(b<w-.001||Y>V+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.g.computeDurationLabel_=function(Y,b){return Y?Y.replace("$clip_length",parseFloat(b).toFixed(1)):""};
_.g.computeDuration_=function(Y,b){return this.isValidTime_(Y)&&this.isValidTime_(b)&&Y<b?b-Y:0};
_.g.isValidTime_=function(Y){return isNaN(parseFloat(Y))||Y<0?!1:this.player_?Y>=this.seekableStart&&Y<=this.seekableEnd:!0};
_.g.computeWindowSizeSec_=function(Y,b,w){return Math.min((Y||12E4)/1E3,w-b)};
_.g.computeTickSpacing_=function(Y,b){return b?b/Y:1};
_.g.onDragStateChanged_=function(){_.Ua(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.g.centerRangeOnTime_=function(Y){var b=this.duration;Y=L9Q(Y-b/2,b,this.seekableStart,this.seekableEnd);_.Ua(this.hostElement,"set-fixed-length-range",{start:Y.start,duration:Y.end-Y.start})};
_.g.nearlyLessThan_=function(Y,b,w){return Y+(w===void 0?1E-6:w)<b};
_.g.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var Y=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(Y,this.start)||this.nearlyLessThan_(this.end,Y))&&this.centerRangeOnTime_(Y)}};
_.g.onStateChange_=function(Y){this.visible&&!this.disabled&&Y==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.g.computeDragState_=function(Y,b,w,V){return Y?"left":b?"right":w?"ruler":V?"window":"none"};
_.g.logClick=function(){var Y=_.dO(),b=_.R3();Y&&b&&this.scrubberVe_&&(_.q("combine_ve_grafts")?_.oC(_.Qd(),this.scrubberVe_,b):_.yX(Y,b,this.scrubberVe_),_.J1(Y,this.scrubberVe_))};
Ok.prototype.onDragStateChanged_=Ok.prototype.onDragStateChanged_;Ok.prototype.updateRuler_=Ok.prototype.updateRuler_;Ok.prototype.updateHandles_=Ok.prototype.updateHandles_;Ok.prototype.onUpdateLoopRange=Ok.prototype.onUpdateLoopRange;Ok.prototype.onInitializedChanged_=Ok.prototype.onInitializedChanged_;Ok.prototype.onVisibleChanged_=Ok.prototype.onVisibleChanged_;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ok.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",Object)],Ok.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"start",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"end",void 0);_.z([_.R({computed:"computeDuration_(start, end)"}),_.K("design:type",Number)],Ok.prototype,"duration",void 0);
_.z([_.R(),_.K("design:type",String)],Ok.prototype,"lengthTemplate",void 0);_.z([_.R({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.K("design:type",String)],Ok.prototype,"durationLabel",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"visible",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"player_",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"draggingLeft_",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"draggingRight_",void 0);
_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"draggingRuler_",void 0);_.z([_.R({value:!1}),_.K("design:type",Object)],Ok.prototype,"draggingWindow_",void 0);_.z([_.R({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.K("design:type",Number)],Ok.prototype,"tickSpacing_",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"seekableStart",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"seekableEnd",void 0);
_.z([_.R(),_.K("design:type",Number)],Ok.prototype,"windowSizeMs",void 0);_.z([_.R({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.K("design:type",Number)],Ok.prototype,"windowSizeSec_",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"rulerWidth_",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"rulerShift_",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"windowSlideSpeed",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ok.prototype,"disabled",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"initialized",void 0);_.z([_.R(),_.K("design:type",Object)],Ok.prototype,"durationAccessibilityLabel",void 0);_.z([_.R({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.K("design:type",String)],Ok.prototype,"dragState",void 0);
_.z([_.lr("visible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ok.prototype,"onVisibleChanged_",null);_.z([_.lr("initialized"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ok.prototype,"onInitializedChanged_",null);_.z([_.lr("player_","visible","disabled","initialized","start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ok.prototype,"onUpdateLoopRange",null);
_.z([_.lr("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ok.prototype,"updateHandles_",null);_.z([_.lr("start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ok.prototype,"updateRuler_",null);
_.z([_.lr("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ok.prototype,"onDragStateChanged_",null);_.z([_.FM({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Ok);
_.a(Ok,"yt-clip-creation-scrubber-view",function(){if(Vvg===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-view--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_view.yt.clip.creation.scrubber.view.css.js--\x3e<div id="trimmer" class="style-scope yt-clip-creation-scrubber-view">\n  <div id="ruler" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-view">\n    <yt-clip-creation-scrubber-canvas id="ticks" disabled="[[disabled]]" end="[[end]]" ruler-shift="[[rulerShift_]]" ruler-width="[[rulerWidth_]]" start="[[start]]" tick-spacing="[[tickSpacing_]]" visible="[[visible]]" window-size-sec="[[windowSizeSec_]]" window-speed="[[windowSlideSpeed]]" class="style-scope yt-clip-creation-scrubber-view">\n    </yt-clip-creation-scrubber-canvas>\n    <div id="handles" class="style-scope yt-clip-creation-scrubber-view">\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-left">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n      <div class="handle style-scope yt-clip-creation-scrubber-view" id="handle-right">\n        <div class="handle-grip style-scope yt-clip-creation-scrubber-view"></div>\n      </div>\n    </div>\n    <div id="playhead" class="style-scope yt-clip-creation-scrubber-view"></div>\n  </div>\n</div>\n<div id="duration" aria-label="[[durationAccessibilityLabel]]" class="style-scope yt-clip-creation-scrubber-view">[[durationLabel]]</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;wns===void 0&&(wns=document.createElement("template"));var V=wns;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Vvg=Y}Y=Vvg;return Y},{mode:2});var tF=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};Y.startHighlightTimeout=0;Y.endHighlightTimeout=0;return Y};
_.P(tF,_.F);_.g=tF.prototype;_.g.attached=function(){var Y=this;this.startInput.addEventListener("input",function(b){return Y.handleStartInput_(b)});
this.endInput.addEventListener("input",function(b){return Y.handleEndInput_(b)});
this.startInput.addEventListener("focusout",function(b){return Y.handleStartBlur_(b)});
this.endInput.addEventListener("focusout",function(b){return Y.handleEndBlur_(b)})};
_.g.setPlayer=function(Y){this.set("player_",Y)};
_.g.onSetFixedLengthRange_=function(Y){var b=Y.detail;Y=b.start;var w=b.duration,V=b.startLimit;b=b.endLimit;V||(V=this.seekableStart_);b||(b=this.seekableEnd_);Y=L9Q(Y,w,V,b);this.start=Y.start;this.end=Y.end};
_.g.onSetRange_=function(Y){var b=Y.detail;Y=b.start;var w=b.end,V=b.startLimit;b=b.endLimit;V||(V=this.seekableStart_);b||(b=this.seekableEnd_);if(Y=SnN(Y,w,V,b,this.minLengthSec,this.maxLengthSec))this.start=Y.start,this.end=Y.end};
_.g.updateInputs_=function(){var Y=this.end,b=this.start;this.startInput.focused||(this.startInput.value=MU(b,!0));this.endInput.focused||(this.endInput.value=MU(Y,!0))};
_.g.handleStartInput_=function(Y){Y=F9X(Y.target.value);if(Y===null)this.set("startValid",!1);else{var b=this.end,w=SnN(Y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);w?(this.set("endWillUpdate",w.end!==b),this.set("startValid",w.start===Y)):this.set("startValid",!1)}};
_.g.handleEndInput_=function(Y){Y=F9X(Y.target.value);if(Y===null)this.set("endValid",!1);else{var b=this.start,w=anF(this.start,Y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);w?(this.set("startWillUpdate",w.start!==b),this.set("endValid",w.end===Y)):this.set("endValid",!1)}};
_.g.handleStartBlur_=function(Y){Y=F9X(Y.target.value);Y===null?this.startInput.value=MU(this.start,!0):this.forceUpdateInputs_(SnN(Y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.g.handleEndBlur_=function(Y){Y=F9X(Y.target.value);Y===null?this.endInput.value=MU(this.end,!0):this.forceUpdateInputs_(anF(this.start,Y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.g.forceUpdateInputs_=function(Y){Y&&(this.start=Y.start,this.end=Y.end);this.startInput.value=MU(this.start,!0);this.endInput.value=MU(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.g.initializeClipRange_=function(){var Y=this.seekableEnd_,b=this.seekableStart_,w=this.visible_,V=this.player_;if(!V||!w||b===null||!Y)this.set("initialized",!1);else if(!this.initialized){var H=V.getCurrentTime(),f=this.getDefaultLengthSec_();w=V.getVideoData();var E=V.getPlayerState()==1,U=w.isLive;f=Math.min(f,Y-b);H=Math.max(0,H);Y=U?anF(H-f,H,b,Y,this.minLengthSec,this.maxLengthSec):E?L9Q(H-f/2,f,b,Y):L9Q(H,f,b,Y);this.start=Y.start;this.end=Y.end;this.set("initialized",!0);w.isLive&&V.seekTo(Y.start);
this.startInput.value=MU(this.start,!0);this.endInput.value=MU(this.end,!0)}};
_.g.onStartChanged_=function(){var Y=this;_.Ua(this.hostElement,"start-changed",{start:this.start});var b;isNaN((b=this.oldStart)!=null?b:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){Y.set("highlightStart",!1);Y.startHighlightTimeout=0;Y.oldStart=Y.start},3E3))};
_.g.onEndChanged_=function(){var Y=this;_.Ua(this.hostElement,"end-changed",{end:this.end});var b;isNaN((b=this.oldEnd)!=null?b:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){Y.set("highlightEnd",!1);Y.endHighlightTimeout=0;Y.oldEnd=Y.end},3E3))};
_.g.onVisibilityChangedAction_=function(Y){var b=this;this.set("visible_",Y.visible);this.visible_&&!this.player_&&(Y=_.V4())&&Y.getPlayerPromise().then(function(w){b.setPlayer(w)})};
_.g.computeMinLengthSec_=function(Y){return Y/1E3||5};
_.g.computeMaxLengthSec_=function(Y){return Y/1E3||60};
_.g.computeDefaultLengthSec_=function(Y){return Y/1E3};
_.g.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.g.computeSeekableStart_=function(Y,b){return Y&&b?Y.getProgressState(1).seekableStart:0};
_.g.computeSeekableEnd_=function(Y,b){return Y&&b?Y.getProgressState(1).seekableEnd:0};
_.g.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.g.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.g.onDragState_=function(Y){this.set("highlightStart",Y.detail.startChanging);this.set("highlightEnd",Y.detail.endChanging)};
tF.prototype.onDragState_=tF.prototype.onDragState_;tF.prototype.onEndChanged_=tF.prototype.onEndChanged_;tF.prototype.onStartChanged_=tF.prototype.onStartChanged_;tF.prototype.initializeClipRange_=tF.prototype.initializeClipRange_;tF.prototype.updateInputs_=tF.prototype.updateInputs_;tF.prototype.onSetRange_=tF.prototype.onSetRange_;tF.prototype.onSetFixedLengthRange_=tF.prototype.onSetFixedLengthRange_;
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],tF.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],tF.prototype,"data",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],tF.prototype,"start",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],tF.prototype,"startValid",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tF.prototype,"startWillUpdate",void 0);_.z([_.R({value:30}),_.K("design:type",Number)],tF.prototype,"end",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],tF.prototype,"endValid",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tF.prototype,"endWillUpdate",void 0);_.z([_.R({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.K("design:type",Number)],tF.prototype,"minLengthSec",void 0);
_.z([_.R({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.K("design:type",Number)],tF.prototype,"maxLengthSec",void 0);_.z([_.R({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.K("design:type",Number)],tF.prototype,"defaultLengthSec",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],tF.prototype,"visible_",void 0);_.z([_.R(),_.K("design:type",Object)],tF.prototype,"player_",void 0);
_.z([_.R({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.K("design:type",Number)],tF.prototype,"seekableStart_",void 0);_.z([_.R({computed:"computeSeekableEnd_(player_, visible_)"}),_.K("design:type",Number)],tF.prototype,"seekableEnd_",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],tF.prototype,"initialized",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tF.prototype,"disabled",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tF.prototype,"highlightStart",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tF.prototype,"highlightEnd",void 0);_.z([_.xZ("#start"),_.K("design:type",HTMLInputElement)],tF.prototype,"startInput",void 0);_.z([_.xZ("#end"),_.K("design:type",HTMLInputElement)],tF.prototype,"endInput",void 0);
_.z([_.kZ("set-fixed-length-range"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],tF.prototype,"onSetFixedLengthRange_",null);_.z([_.kZ("set-range"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],tF.prototype,"onSetRange_",null);_.z([_.lr("start","end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tF.prototype,"updateInputs_",null);
_.z([_.lr("player_","visible_","seekableStart_","seekableEnd_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tF.prototype,"initializeClipRange_",null);_.z([_.lr("start"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tF.prototype,"onStartChanged_",null);_.z([_.lr("end"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tF.prototype,"onEndChanged_",null);
_.z([_.kZ("clips-drag-state"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],tF.prototype,"onDragState_",null);_.z([_.FM({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],tF);
_.a(tF,"yt-clip-creation-scrubber-renderer",function(){if(YYt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-scrubber-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_scrubber_renderer.yt.clip.creation.scrubber.renderer.css.js--\x3e<div id="text-inputs" class="style-scope yt-clip-creation-scrubber-renderer">\n  <yt-icon id="warning-start" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="start" placeholder="[[data.startAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <span id="spacer" aria-hidden="true" class="style-scope yt-clip-creation-scrubber-renderer">\u2013</span>\n  <tp-yt-iron-input allowed-pattern="[\\d\\.\\:]" disabled="[[disabled]]" prevent-invalid-input="" role="presentation" class="style-scope yt-clip-creation-scrubber-renderer">\n    <input id="end" placeholder="[[data.endAccessibility.accessibilityData.label]]" type="text" class="style-scope yt-clip-creation-scrubber-renderer">\n  </tp-yt-iron-input>\n  <yt-icon id="warning-end" icon="warning" class="style-scope yt-clip-creation-scrubber-renderer"></yt-icon>\n</div>\n<yt-clip-creation-scrubber-view disabled="[[disabled]]" duration-accessibility-label="[[data.durationAccessibility.accessibilityData.label]]" end="[[end]]" initialized="[[initialized]]" length-template="[[data.lengthTemplate]]" seekable-end="[[seekableEnd_]]" seekable-start="[[seekableStart_]]" start="[[start]]" visible="[[visible_]]" window-size-ms="[[data.windowSizeMs]]" class="style-scope yt-clip-creation-scrubber-renderer">\n</yt-clip-creation-scrubber-view>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;urN===void 0&&(urN=document.createElement("template"));var V=urN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);YYt=Y}Y=YYt;return Y},{mode:2});var Ru=function(){var Y=_.F.apply(this,arguments)||this;Y.player_=null;Y.JSC$20076_playerEvents=new Map;Y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return Y};
_.P(Ru,_.F);_.g=Ru.prototype;_.g.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"}}}};
_.g.created=function(){this.JSC$20076_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20076_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20076_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20076_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.g.detached=function(){this.setPlayer(null)};
_.g.onVisibilityChangedAction_=function(Y){var b=this,w;if((w=this.data)==null?0:w.externalVideoId){var V;this.videoId=(V=this.data)==null?void 0:V.externalVideoId}this.getPlayer().then(function(H){if(Y.visible)b.returnTime=H.getCurrentTime(),b.isAtLiveHead=H.getProgressState().isAtLiveHead;else{var f=b.returnTime;b.isAtLiveHead&&(f=Number.POSITIVE_INFINITY);H.seekTo(f,void 0,void 0,void 0,51)}})};
_.g.getPlayer=function(){var Y=this;if(!this.player_){var b=_.V4();if(b)return b.getPlayerPromise().then(function(w){Y.setPlayer(w);return w})}return Promise.resolve(this.player_)};
_.g.setPlayer=function(Y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20076_playerEvents);if(Y){this.player_=Y;var b;((b=this.data)==null?0:b.externalVideoId)||this.set("videoId",Y.getVideoData().video_id||"");var w;(Y==null?void 0:(w=Y.getPresentingPlayerType)==null?void 0:w.call(Y))===2&&(this.set("isAdPlaying",!0),_.Xx(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(Y,this.JSC$20076_playerEvents)}};
_.g.ready=function(){_.E6(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.g.onTitleChanged_=function(Y){this.set("titleValue",Y.detail.title)};
_.g.onStartChanged_=function(Y){this.set("start",Y.detail.start)};
_.g.onEndChanged_=function(Y){this.set("end",Y.detail.end)};
_.g.onTitleValidChanged_=function(Y){this.set("titleValid",Y.detail.valid)};
_.g.onStartValidChanged_=function(Y){this.set("startValid",Y.detail.valid)};
_.g.onEndValidChanged_=function(Y){this.set("endValid",Y.detail.valid)};
_.g.onVideoDataChange_=function(){var Y;if((Y=this.data)==null||!Y.externalVideoId){var b;this.set("videoId",((b=this.player_)==null?void 0:b.getVideoData().video_id)||"")}};
_.g.computeFormValid_=function(Y,b,w,V){return!!(Y&&b&&w&&V)};
_.g.computeCancelButton_=function(Y,b,w){return Y&&_.v(Y,_.Wa)?{buttonRenderer:Object.assign({},_.v(Y,_.Wa),{isDisabled:b||w})}:null};
_.g.computeSubmitButton_=function(Y,b,w){return Y&&_.v(Y,_.Wa)?{buttonRenderer:Object.assign({},_.v(Y,_.Wa),{command:void 0,isDisabled:!this.formValid||b||w})}:null};
_.g.computeSubmitCommand_=function(Y){return Y||null};
_.g.onSubmit_=function(Y){var b=this;Y.stopPropagation();Y.preventDefault();this.submitCommand_&&(Y={},Y.comment_text=this.titleValue,Y.clip_external_video_id=this.videoId,Y.clip_offset_ms=parseInt(this.start*1E3,10),Y.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.oP(this.hostElement,[this.submitCommand_,Y]).then(function(){b.set("isLoading_",!1)},function(){b.set("isLoading_",!1)}))};
_.g.playerAdStartHandler_=function(){_.Xx(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.g.playerAdEndHandler_=function(){_.Xx(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.g.onVideoProgress_=function(){var Y=this;this.getPlayer().then(function(b){var w,V=(b==null?void 0:(w=b.getPresentingPlayerType)==null?void 0:w.call(b))===2;Y.isAdPlaying!==V&&(V?Y.playerAdStartHandler_():Y.playerAdEndHandler_())})};
Ru.prototype.onEndValidChanged_=Ru.prototype.onEndValidChanged_;Ru.prototype.onStartValidChanged_=Ru.prototype.onStartValidChanged_;Ru.prototype.onTitleValidChanged_=Ru.prototype.onTitleValidChanged_;Ru.prototype.onEndChanged_=Ru.prototype.onEndChanged_;Ru.prototype.onStartChanged_=Ru.prototype.onStartChanged_;Ru.prototype.onTitleChanged_=Ru.prototype.onTitleChanged_;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ru.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",Object)],Ru.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ru.prototype,"data",void 0);_.z([_.R({value:""}),_.K("design:type",String)],Ru.prototype,"titleValue",void 0);
_.z([_.R({value:!1}),_.K("design:type",Boolean)],Ru.prototype,"titleValid",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],Ru.prototype,"start",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Ru.prototype,"startValid",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],Ru.prototype,"end",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Ru.prototype,"endValid",void 0);_.z([_.R({value:""}),_.K("design:type",String)],Ru.prototype,"videoId",void 0);
_.z([_.R({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.K("design:type",Boolean)],Ru.prototype,"formValid",void 0);_.z([_.R({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.K("design:type",Object)],Ru.prototype,"submitButton_",void 0);_.z([_.R({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.K("design:type",Object)],Ru.prototype,"submitCommand_",void 0);
_.z([_.R({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.K("design:type",Object)],Ru.prototype,"cancelButton_",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Ru.prototype,"isLoading_",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],Ru.prototype,"isAdPlaying",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],Ru.prototype,"returnTime",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Ru.prototype,"isAtLiveHead",void 0);
_.z([_.kZ("title-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ru.prototype,"onTitleChanged_",null);_.z([_.kZ("start-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ru.prototype,"onStartChanged_",null);_.z([_.kZ("end-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ru.prototype,"onEndChanged_",null);
_.z([_.kZ("title-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ru.prototype,"onTitleValidChanged_",null);_.z([_.kZ("start-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ru.prototype,"onStartValidChanged_",null);_.z([_.kZ("end-valid-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Ru.prototype,"onEndValidChanged_",null);
_.z([_.FM({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Ru);
_.a(Ru,"yt-clip-creation-renderer",function(){if(JsN===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-clip-creation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.gaming.clips.yt_clip_creation_renderer.yt.clip.creation.renderer.css.js--\x3e<div id="container" class="style-scope yt-clip-creation-renderer">\n  <div id="title" class="style-scope yt-clip-creation-renderer">\n    <div class="left-container style-scope yt-clip-creation-renderer">\n      <yt-img-shadow id="user-avatar" height="32" thumbnail="[[data.userAvatar]]" width="32" class="style-scope yt-clip-creation-renderer">\n      </yt-img-shadow>\n      <div id="display-name" class="style-scope yt-clip-creation-renderer">[[getSimpleString(data.displayName)]]</div>\n    </div>\n    <div id="publicity-label" class="style-scope yt-clip-creation-renderer">\n      <yt-icon id="publicity-icon" icon="yt-icons:privacy_public" class="style-scope yt-clip-creation-renderer"></yt-icon>\n      [[data.publicityLabel]]\n    </div>\n  </div>\n  <div id="title-input" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="scrubber" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="footer" class="style-scope yt-clip-creation-renderer">\n  <tp-yt-paper-spinner-lite active="[[isLoading_]]" hidden="[[!isLoading_]]" class="style-scope yt-clip-creation-renderer"></tp-yt-paper-spinner-lite>\n  <div id="cancel" class="style-scope yt-clip-creation-renderer"></div>\n  <div id="share" class="style-scope yt-clip-creation-renderer"></div>\n</div>\n<div id="ad-state" class="style-scope yt-clip-creation-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Tsg===void 0&&(Tsg=document.createElement("template"));var V=Tsg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);JsN=Y}Y=JsN;return Y},{mode:2});var d7=function(){return _.F.apply(this,arguments)||this};
_.P(d7,_.F);d7.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"}}}};
d7.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(Y){return Y.hasOwnProperty("clipCreationRenderer")})&&_.Xx(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
d7.prototype.onPanelContentVisibleChanged=d7.prototype.onPanelContentVisibleChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.GW.YtVisibilityBehavior),_.K("design:type",Object)],d7.prototype,"ytVisibilityBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],d7.prototype,"ytdReduxBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],d7.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],d7.prototype,"panelContentVisible",void 0);_.z([_.lr("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],d7.prototype,"onPanelContentVisibleChanged",null);_.z([_.S({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],d7);
_.a(d7,"ytd-clip-section-renderer",function(){if($3Q!==void 0)return $3Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-clip-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-clip-section-renderer"></div>\n<div id="footer" class="style-scope ytd-clip-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $3Q=Y},{mode:1});var HOt;var FW=function(){return _.F.apply(this,arguments)||this};
_.P(FW,_.F);_.g=FW.prototype;
_.g.onKeyDown=function(Y){if(this.snippetElements.length!==0&&(Y=Y.keyCode,Y===38||Y===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);Y===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.rp(this.highlightedIndex,-1,this.snippetElements.length);Y=this.snippetElements.length;var b=this.highlightedIndex%Y;this.highlightedIndex=b*Y<0?b+Y:b;Y=this.snippetElements[this.highlightedIndex];this.highlightSnippet(Y);this.ensureVisible(Y)}};
_.g.onKeyUp=function(Y){var b=this;lP7(Y)&&(Y.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Lb.cancelJob(this.inputTimerId),this.inputTimerId=_.Lb.addLowPriorityJob(function(){b.typedValue&&(b.fetchSnippets(b.typedValue),b.logInputGesture(b.data))},1E3))};
_.g.onClick=function(Y){(Y=_.kj8(Y.target,null,"snippet-item"))&&this.selectSnippet(Y)};
_.g.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.g.ready=function(){var Y=this;this.inputElement.addEventListener("focus",function(){Y.snippetsWrapper.style.removeProperty("display")})};
_.g.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.g.getSourceTimelines=function(){if(!this.data)return[];var Y=[];if(this.data.searchInVideoSources)for(var b=_.N(this.data.searchInVideoSources),w=b.next();!w.done;w=b.next())w=w.value,w==="SEARCH_IN_VIDEO_SOURCE_ASR"?Y.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):w==="SEARCH_IN_VIDEO_SOURCE_OCR"&&Y.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return Y};
_.g.fetchSnippets=function(Y){var b=_.Xx(this.hostElement,"yt-get-current-video-id-action")[0],w=this.getSourceTimelines();Y={getSearchInVideoCommand:{externalVideoId:b,query:Y!=null?Y:"",sourceTimelines:w},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})};
_.g.filterSnippets=function(Y,b){var w=this;if(b){this.filteredSnippets=(0,_.BL.unsafeClone)(Y);var V=RegExp(_.z0r(b),"i");this.filteredSnippets=this.filteredSnippets.filter(function(E){return V.test(w.ytRendererBehavior.getSimpleString(E.snippet))});
Y=_.N(this.filteredSnippets);for(var H=Y.next();!H.done;H=Y.next()){H=H.value;var f=this.ytRendererBehavior.getSimpleString(H.snippet);H.snippet={runs:[{text:f.substring(0,f.toLowerCase().indexOf(b))},{text:f.substring(f.toLowerCase().indexOf(b),f.toLowerCase().indexOf(b)+b.length),bold:!0},{text:f.substring(f.toLowerCase().indexOf(b)+b.length,f.length)}]}}}else this.filteredSnippets=Y};
_.g.onUpdateSearchInVideoResults=function(Y){if(!(this.snippets.length>0)){var b,w,V;if((V=(b=_.v(Y,eNg))==null?void 0:(w=b.results)==null?void 0:w.length)!=null&&V){var H;this.filteredSnippets=this.snippets=((H=_.v(Y,eNg))==null?void 0:H.results).map(function(f){var E,U,X;return{startMs:f==null?void 0:(E=f.searchInVideoResultRenderer)==null?void 0:E.startMs,startTimeText:f==null?void 0:(U=f.searchInVideoResultRenderer)==null?void 0:U.startTimeText,snippet:f==null?void 0:(X=f.searchInVideoResultRenderer)==
null?void 0:X.snippet}})}}};
_.g.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};
_.g.highlightSnippet=function(Y){Y.classList.add("highlighted")};
_.g.removeSnippetHighlight=function(Y){Y.classList.remove("highlighted")};
_.g.selectSnippet=function(Y){this.typedValue=String(Y.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(Y);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.g.ensureVisible=function(Y){var b=this.snippetsWrapper.scrollTop,w=b+this.snippetsWrapper.clientHeight,V=Y.offsetTop-this.snippetsWrapper.offsetTop;Y=V+Y.clientHeight;V<b?this.snippetsWrapper.scrollTop-=b-V:Y>w&&(this.snippetsWrapper.scrollTop+=Y-w)};
_.g.seekPlayer=function(Y){var b,w;return _.c(function(V){if(V.nextAddress==1){if(!Y)return V.jumpTo(0);b=Number(Y.dataset.startOffset);return _.D(V,_.Hv().getPlayerPromise(),3)}w=V.yieldResult;w.seekTo(b/1E3,!0);w.wakeUpControls();_.om(V)})};
_.g.logInputGesture=function(Y){var b=_.dO();b&&(Y==null?0:Y.trackingParams)&&_.un(b,_.nA(Y.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.g.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("typed-value-changed",this.typedValue))};
_.g.updateTypedValueFromBinding=function(Y){this.typedValue=Y.currentTarget.value};
FW.prototype.typedValueChangedForBinding=FW.prototype.typedValueChangedForBinding;FW.prototype.dataChanged=FW.prototype.dataChanged;FW.prototype.panelContentVisibleChanged=FW.prototype.panelContentVisibleChanged;FW.prototype.onClick=FW.prototype.onClick;FW.prototype.onKeyUp=FW.prototype.onKeyUp;FW.prototype.onKeyDown=FW.prototype.onKeyDown;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],FW.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],FW.prototype,"data",void 0);_.z([_.R({value:[]}),_.K("design:type",Array)],FW.prototype,"snippets",void 0);_.z([_.R({value:[]}),_.K("design:type",Array)],FW.prototype,"filteredSnippets",void 0);_.z([_.R({value:[]}),_.K("design:type",Array)],FW.prototype,"snippetElements",void 0);
_.z([_.xZ("#siv-input"),_.K("design:type",HTMLElement)],FW.prototype,"inputElement",void 0);_.z([_.xZ("#siv-snippets-wrapper"),_.K("design:type",HTMLElement)],FW.prototype,"snippetsWrapper",void 0);_.z([_.R(),_.K("design:type",String)],FW.prototype,"typedValue",void 0);_.z([_.R({value:-1}),_.K("design:type",Number)],FW.prototype,"highlightedIndex",void 0);_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[_.vV]),_.K("design:returntype")],FW.prototype,"onKeyDown",null);
_.z([_.kZ("keyup"),_.K("design:type",Function),_.K("design:paramtypes",[_.vV]),_.K("design:returntype")],FW.prototype,"onKeyUp",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],FW.prototype,"onClick",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],FW.prototype,"panelContentVisible",void 0);
_.z([_.lr("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FW.prototype,"panelContentVisibleChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FW.prototype,"dataChanged",null);_.z([_.lr("typedValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FW.prototype,"typedValueChangedForBinding",null);
_.z([_.S({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],FW);
_.a(FW,"ytd-search-in-video-renderer",function(){if(HOt!==void 0)return HOt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-in-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-search-in-video-renderer" aria-owns="siv-snippets-wrapper" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-search-in-video-renderer" slot="prefix" icon="yt-icons:find_in_page"></yt-icon>\n  <input id="siv-input" slot="input" value="[[typedValue]]" type="text" placeholder="[[getSimpleString(data.placeholderText)]]" aria-autocomplete="list" aria-controls="siv-snippets-wrapper" aria-haspopup="listbox" role="combobox" on-input="updateTypedValueFromBinding" class="style-scope ytd-search-in-video-renderer">\n</tp-yt-paper-input-container>\n<div id="siv-snippets-wrapper" class="snippets-wrapper style-scope ytd-search-in-video-renderer" role="listbox">\n  <div class="no-results-item style-scope ytd-search-in-video-renderer" hidden="[[filteredSnippets.length]]">\n    [[getSimpleString(data.noResultsMessage)]]\n  </div>\n  <template is="dom-repeat" items="[[filteredSnippets]]" hidden="[[!filteredSnippets.length]]" on-dom-change="updateSnippetElements" class="style-scope ytd-search-in-video-renderer">\n    \n    <div class="snippet-item style-scope ytd-search-in-video-renderer" role="option" data-start-offset$="[[item.startMs]]" data-text$="[[getSimpleString(item.snippet)]]">\n      <yt-formatted-string class="start-time-text style-scope ytd-search-in-video-renderer" text="[[item.startTimeText]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="snippet-text style-scope ytd-search-in-video-renderer" text="[[item.snippet]]">\n      </yt-formatted-string>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return HOt=Y},{mode:1});var gob;var Lt=function(){return _.F.apply(this,arguments)||this};
_.P(Lt,_.F);Lt.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Lt.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]]"}}}}}};
Lt.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var Y,b,w,V,H=(b=_.v((Y=this.data)==null?void 0:Y.onClickCommand,_.nL))==null?void 0:(w=b.item)==null?void 0:(V=w.notificationTextRenderer)==null?void 0:V.successResponseText;H&&_.cKq(this.hostElement,H)}};
_.up.Object.defineProperties(Lt.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return this.isProductPlaceholder&&((Y=this.data)==null?void 0:(b=Y.hiddenProductOptions)==null?void 0:b.showDropCountdown)&&!!((w=this.data)==null?0:(V=w.hiddenProductOptions)==null?0:V.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.isProductPlaceholder&&!((Y=this.data)==null?0:Y.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null?0:Y.priceReplacementText)&&!((b=this.data)==null||!b.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Lt.prototype,"componentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Lt.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"useCenterLayoutContainer",null);_.z([_.R({computed:"computeButtonOverride(data)"}),_.K("design:type",Object)],Lt.prototype,"buttonOverride",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"isProductPlaceholder",null);
_.z([_.t("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"showDropCountdown",null);_.z([_.t("isProductPlaceholder","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"showBrandName",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"showPriceReplacementText",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"showPrice",null);
_.z([_.t("isProductPlaceholder"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lt.prototype,"showMetadata",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Lt);
_.a(Lt,"ytd-product-list-item-renderer",function(){if(gob!==void 0)return gob;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div data-offer-version-id$="[[data.debugOfferVersionId]]" id="product-list-item" class="style-scope ytd-product-list-item-renderer"><a id="container" class="yt-simple-endpoint style-scope ytd-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" rel="[[computeNofollow_(data.onClickCommand)]]" data="[[data.onClickCommand]]" on-click="showSnackbarIfPlaceholder"><div id="product-thumbnail" class="style-scope ytd-product-list-item-renderer"><yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" class="style-scope ytd-product-list-item-renderer"></yt-img-shadow></div><div id="product-info-and-view" class="style-scope ytd-product-list-item-renderer"><div id="product-info" class="style-scope ytd-product-list-item-renderer"><h4 id="product-title" class="style-scope ytd-product-list-item-renderer">[[getSimpleString(data.title)]]</h4><template is="dom-if" if="[[showDropCountdown]]" class="style-scope ytd-product-list-item-renderer"><yt-countdown target-timestamp="[[data.hiddenProductOptions.dropTimestamp]]" class="style-scope ytd-product-list-item-renderer"></yt-countdown></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="merchant-name" class="style-scope ytd-product-list-item-renderer">[[data.merchantName]]</div></template><template is="dom-if" if="[[showBrandName]]" class="style-scope ytd-product-list-item-renderer"><div id="brand-name" class="style-scope ytd-product-list-item-renderer">[[data.brandName]]</div></template><template is="dom-if" restamp="" if="[[showPriceReplacementText]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price-replacement" class="style-scope ytd-product-list-item-renderer">[[data.priceReplacementText]]</div></template><template is="dom-if" restamp="" if="[[showPrice]]" class="style-scope ytd-product-list-item-renderer"><div id="product-price" class="style-scope ytd-product-list-item-renderer">[[data.price]]</div></template><template is="dom-if" if="[[showMetadata]]" class="style-scope ytd-product-list-item-renderer"><div id="affiliate-disclaimer-text" class="style-scope ytd-product-list-item-renderer">\n            [[data.affiliateDisclaimerText]]\n          </div></template></div><div id="view-button" hidden="[[!showMetadata]]" class="style-scope ytd-product-list-item-renderer"></div></div></a><div id="action-button" class="style-scope ytd-product-list-item-renderer"></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return gob=Y},{mode:1});var f6b;var Ss=function(){return _.F.apply(this,arguments)||this};
_.P(Ss,_.F);Ss.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Ss.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Ss.prototype.panelContentVisibleChanged=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return Y.playerApi?w.jumpTo(2):_.D(w,_.Hv().getPlayerPromise(),3);w.nextAddress!=2&&(Y.playerApi=w.yieldResult);(b=Y.playerApi)==null||b.productsInVideoVisibilityUpdated(!!Y.panelContentVisible);_.om(w)})};
Ss.prototype.panelContentVisibleChanged=Ss.prototype.panelContentVisibleChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ss.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ss.prototype,"panelContentVisible",void 0);_.z([_.R(),_.K("design:type",Object)],Ss.prototype,"data",void 0);
_.z([_.lr("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],Ss.prototype,"panelContentVisibleChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Ss);
_.a(Ss,"ytd-product-list-renderer",function(){if(f6b!==void 0)return f6b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-product-list-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return f6b=Y},{mode:1});var N8I;var au=function(){var Y=_.F.apply(this,arguments)||this;Y.hideTimestamps=!!_.l4("hide-transcript-timestamps");Y.currentCueIndex=-1;Y.flatCues=[];Y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};Y.TEST_ONLY={getFlatCues:function(){return Y.flatCues}};
return Y};
_.P(au,_.F);_.g=au.prototype;_.g.hideTimestampsChanged=function(){_.kc("hide-transcript-timestamps",this.hideTimestamps)};
_.g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.g.dataChanged=function(){var Y;if((Y=this.data)!=null&&Y.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;Y=_.N(this.data.cueGroups);for(var b=Y.next();!b.done;b=Y.next()){b=_.N(_.v(b.value,pst).cues);for(var w=b.next();!w.done;w=b.next())this.flatCues.push(Number(_.v(w.value,OrQ).startOffsetMs))}}};
_.g.onYtPlayerTimeChanged=function(Y){if(!(Y<0)){for(var b=this.currentCueIndex,w=b;;){var V=w>=0?this.flatCues[w]/1E3:-1;if(Y+.5<V)--w;else if(V=w+1<this.flatCues.length?this.flatCues[w+1]/1E3:Infinity,Y+.5>V)w+=1;else break}w!==b&&(b>=0&&((Y=this.getCueElement(b))&&Y.classList.remove("active"),(b=this.getCueGroupElement(b))&&b.classList.remove("active")),(b=this.getCueElement(w))&&b.classList.add("active"),(b=this.getCueGroupElement(w))&&b.classList.add("active"),this.currentCueIndex=w,this.isHovered||
this.scrollElementToTop(w))}};
_.g.scrollElementToTop=function(Y){Y=this.getCueElement(Y>=3?Y-3:0);this.hostElement.scrollTop=Math.min(Y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.g.getCueElement=function(Y){return _.E6(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[Y]+'"]')};
_.g.getCueGroupElement=function(Y){return(Y=this.getCueElement(Y))&&Y.parentElement?Y.parentElement.parentElement:null};
_.g.onTap=function(Y){var b=_.uW(Y);Y.target.classList.contains("cue")&&this.seekCueElement(b)};
_.g.onKeyPress=function(Y){Y.keyCode==13&&(Y=_.kj8(Y.target,null,"cue"))&&this.seekCueElement(Y)};
_.g.seekCueElement=function(Y){Y=Number(Y.getAttribute("start-offset"));_.Xx(this.hostElement,"yt-transcript-player-seek",[Y/1E3])};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
au.prototype.onMouseLeave=au.prototype.onMouseLeave;au.prototype.onMouseEnter=au.prototype.onMouseEnter;au.prototype.onKeyPress=au.prototype.onKeyPress;au.prototype.onTap=au.prototype.onTap;au.prototype.dataChanged=au.prototype.dataChanged;au.prototype.hideTimestampsChanged=au.prototype.hideTimestampsChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],au.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],au.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],au.prototype,"hideTimestamps",void 0);_.z([_.R(),_.K("design:type",Boolean)],au.prototype,"isHovered",void 0);_.z([_.lr("hideTimestamps"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],au.prototype,"hideTimestampsChanged",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],au.prototype,"dataChanged",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],au.prototype,"onTap",null);_.z([_.kZ("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],au.prototype,"onKeyPress",null);
_.z([_.kZ("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],au.prototype,"onMouseEnter",null);_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],au.prototype,"onMouseLeave",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],au);
_.a(au,"ytd-transcript-body-renderer",function(){if(N8I!==void 0)return N8I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template as="cueGroup" is="dom-repeat" items="[[data.cueGroups]]" class="style-scope ytd-transcript-body-renderer">\n  <div class="cue-group style-scope ytd-transcript-body-renderer">\n    <div class="cue-group-start-offset style-scope ytd-transcript-body-renderer">\n      [[getSimpleString(cueGroup.transcriptCueGroupRenderer.formattedStartOffset)]]\n    </div>\n    <div class="cues style-scope ytd-transcript-body-renderer">\n      <template is="dom-repeat" items="[[cueGroup.transcriptCueGroupRenderer.cues]]" class="style-scope ytd-transcript-body-renderer">\n        <div class="cue style-scope ytd-transcript-body-renderer" role="button" start-offset$="[[item.transcriptCueRenderer.startOffsetMs]]" tabindex="0">\n          [[getSimpleString(item.transcriptCueRenderer.cue)]]\n        </div>\n      </template>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return N8I=Y},{mode:1});var EoF;var r7=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerPanels=_.q("web_watch_darker_panels");return Y};
_.P(r7,_.F);r7.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],r7.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],r7.prototype,"darkerPanels",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],r7);
_.a(r7,"ytd-transcript-footer-renderer",function(){if(EoF!==void 0)return EoF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="menu" class="style-scope ytd-transcript-footer-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return EoF=Y},{mode:1});var cVt;var UOO;var zU=function(){var Y=_.F.apply(this,arguments)||this;Y.systemIcons=_.q("kevlar_system_icons");Y.showClearButton=!1;return Y};
_.P(zU,_.F);_.g=zU.prototype;_.g.handleInput=function(Y){var b=this;Y.target.value.length?_.ir(this,"ytdTranscriptSearchBoxSearch",function(){b.emitSearchEvent(Y)},500):(_.ZcB(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=Y.target.value.length>0};
_.g.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.g.handleClick=function(){var Y,b=(Y=this.data)==null?void 0:Y.trackingParams;b&&_.ly(_.Qd(),b)};
_.g.handleClear=function(){_.ZcB(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var Y,b,w=(b=_.v((Y=this.data)==null?void 0:Y.clearButton,_.Wa))==null?void 0:b.trackingParams;w&&_.ly(_.Qd(),w);this.clear()};
_.g.emitSearchEvent=function(Y){_.Ua(this.hostElement,"yt-transcript-search-box-search",{query:Y.target.value});var b,w;(Y=(w=_.v((b=this.data)==null?void 0:b.searchButton,_.Wa))==null?void 0:w.trackingParams)&&_.ly(_.Qd(),Y)};
_.g.emitClearEvent=function(){_.Ua(this.hostElement,"yt-transcript-search-box-clear")};
_.up.Object.defineProperties(zU.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.E6(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zU.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],zU.prototype,"systemIcons",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],zU);
_.a(zU,"ytd-transcript-search-box-renderer",function(){if(UOO!==void 0)return UOO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input-container class="input-container style-scope ytd-transcript-search-box-renderer" no-label-float="true">\n  <yt-icon class="icon style-scope ytd-transcript-search-box-renderer" slot="prefix" icon="yt-icons:search"></yt-icon>\n  <input id="transcript-search-box-input" slot="input" type="text" placeholder="[[getSimpleString(data.formattedPlaceholder)]]" aria-autocomplete="list" aria-haspopup="listbox" maxlength="1000" role="combobox" on-click="handleClick" on-input="handleInput" class="style-scope ytd-transcript-search-box-renderer">\n  <tp-yt-paper-icon-button class="clear-button style-scope ytd-transcript-search-box-renderer" slot="suffix" hidden="[[!showClearButton]]" icon="yt-sys-icons:close" on-click="handleClear"></tp-yt-paper-icon-button>\n</tp-yt-paper-input-container>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return UOO=Y},{mode:1});var Xn7;var DOF;var WW=function(){return _.F.apply(this,arguments)||this};
_.P(WW,_.F);WW.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var Y,b;this.sectionHeaderAriaLabel=(Y=this.data)==null?void 0:(b=Y.accessibility)==null?void 0:b.accessibilityData.label}};
WW.prototype.fireSelectedEvent=function(Y){_.Ua(this.hostElement,"ytd-transcript-section-header",{startMs:Y})};
WW.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
WW.prototype.handleKeyPress=function(Y){this.data&&Y.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.up.Object.defineProperties(WW.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=(Y=this.data)==null?void 0:Y.enableTappableTranscriptHeader)!=null?b:!1}}});
WW.prototype.dataChanged=WW.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],WW.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],WW.prototype,"sectionHeaderAriaLabel",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],WW.prototype,"enableTappableTranscriptHeader",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WW.prototype,"dataChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],WW);
_.a(WW,"ytd-transcript-section-header-renderer",function(){if(DOF!==void 0)return DOF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" class="transcript-section-header style-scope ytd-transcript-section-header-renderer" aria-label$="[[sectionHeaderAriaLabel]]" tabindex="0" role="button" on-click="handleClick" on-keypress="handleKeyPress">\n    <yt-section-header-view-model data="[[data.sectionHeader.sectionHeaderViewModel]]" disable-vertical-padding="true" force-small-layout="true" class="style-scope ytd-transcript-section-header-renderer">\n  </yt-section-header-view-model></div>\n</template>\n<template is="dom-if" restamp="" if="[[!enableTappableTranscriptHeader]]" class="style-scope ytd-transcript-section-header-renderer">\n  <div id="header" aria-label$="[[sectionHeaderAriaLabel]]" class="style-scope ytd-transcript-section-header-renderer">\n    <yt-formatted-string id="title" aria-hidden="true" tabindex="-1" text="[[data.snippet]]" class="style-scope ytd-transcript-section-header-renderer">\n    </yt-formatted-string>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return DOF=Y},{mode:1});var mOg;var ooQ;var Kt=function(){var Y=_.F.apply(this,arguments)||this;Y.isEditMode=!1;Y.touchCaptionsEnabled=!1;Y.deleteCaptionCorrectionPopupCommand=null;Y.voteCaptionCorrectionPopupCommand=null;Y.roundedContainer=!0;Y.mouseOver=!1;Y.textChanged=!1;Y.messages={suggest_correction:_.sa("suggest_correction",void 0,"Edit caption"),suggested_caption:_.sa("suggested_caption",void 0,"Suggested caption"),submit_correction:_.sa("submit_correction",void 0,"Submit for review"),cancel_correction:_.sa("cancel_correction",
void 0,"Cancel"),replay_segment:_.sa("replay_segment",void 0,"Re-play segment"),delete_correction:_.sa("delete_correction",void 0,"Delete correction")};Y.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return Y};
_.P(Kt,_.F);_.g=Kt.prototype;_.g.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)};
_.g.handleDelete=function(Y){if(this.deleteCaptionCorrectionPopupCommand){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);b&&this.ytdOpenPopupBehavior.openPopup(b);Y.stopPropagation()}};
_.g.handleSubmit=function(Y){if(this.data&&this.data.submitCaptionCorrectionCommand&&(Y.stopPropagation(),this.textChanged)){var b;Y=(b=_.v(this.data.submitCaptionCorrectionCommand,_.M7o))==null?void 0:b.params;b=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:Y,correctionText:String(this.ironTextAreaElement.value),originalText:_.Tx(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(b);this.isEditMode=!1}};
_.g.handleUpdateSegmentText=function(Y){(Y=_.v(Y,j97))&&Y.targetId&&this.data&&Y.targetId===this.data.targetId&&(Y.userCorrection&&(this.editedText=Y.userCorrection),Y.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Tx(this.data.snippet)),Y.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=Y.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=Y.voteCaptionCorrectionPopupCommand?
Y.voteCaptionCorrectionPopupCommand:null,Y.accessibility&&(this.segmentAriaLabel=Y.accessibility.accessibilityData.label))};
_.g.handleCancel=function(Y){this.isEditMode=!1;Y.stopPropagation();this.logClientVe(159409)};
_.g.handleEditSegmentCommand=function(Y){(Y=_.v(Y,$Ag))&&Y.targetId&&this.data&&Y.targetId===this.data.targetId&&this.handleEdit()};
_.g.handleEditButtonClick=function(Y){this.data&&(this.handleEdit(),Y.stopPropagation())};
_.g.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var Y;(Y=this.ironTextAreaElement.textarea)==null||Y.focus();this.logClientVe(159407)}};
_.g.handleMouseEnter=function(){this.mouseOver=!0};
_.g.handleMouseLeave=function(){this.mouseOver=!1};
_.g.handleReplay=function(Y){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),Y.stopPropagation(),this.logClientVe(159408))};
_.g.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()))};
_.g.handleKeypress=function(Y){this.data&&(this.isEditMode?Y.stopPropagation():this.isEnterPress(Y)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(Y)&&this.logClientVe(138758))};
_.g.handleTextboxClick=function(Y){Y.stopPropagation()};
_.g.handleTextboxKeydown=function(Y){this.isControlEnterPress(Y)?this.handleSubmit(Y):Y.key==="Escape"&&this.handleCancel(Y)};
_.g.handleTextboxKeyup=function(){this.textChanged=_.Tx(this.latestText)!==String(this.ironTextAreaElement.value)};
_.g.fireSelectedEvent=function(Y){_.Ua(this.hostElement,"yt-transcript-segment-selected",{startMs:Y})};
_.g.fireReplayEvent=function(Y,b){_.Ua(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(Y-100,0),endMs:b})};
_.g.fireEditEvent=function(Y,b){_.Ua(this.hostElement,"yt-transcript-segment-edit",{startMs:Y,endMs:b})};
_.g.isEnterPress=function(Y){return Y.key==="Enter"||Y.code==="Enter"||Y.code==="NumpadEnter"||Y.keyCode===13?!0:!1};
_.g.isControlEnterPress=function(Y){var b=Y.key==="Enter"||Y.code==="Enter"||Y.code==="NumpadEnter"||Y.keyCode===13;return(Y.ctrlKey||Y.metaKey)&&b};
_.g.isCopyPress=function(Y){var b=Y.ctrlKey;return Y.key==="c"&&b};
_.g.logClick=function(){var Y,b=(Y=this.data)==null?void 0:Y.trackingParams;b&&_.ly(_.Qd(),b)};
_.g.logClientVe=function(Y){_.kV(_.Qd(),_.tj(Y))};
_.up.Object.defineProperties(Kt.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}}});
Kt.prototype.handleMouseLeave=Kt.prototype.handleMouseLeave;Kt.prototype.handleMouseEnter=Kt.prototype.handleMouseEnter;Kt.prototype.dataChanged=Kt.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Kt.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],Kt.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Kt.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Kt.prototype,"isEditMode",void 0);_.z([_.R(),_.K("design:type",Object)],Kt.prototype,"touchCaptionsEnabled",void 0);_.z([_.R(),_.K("design:type",Object)],Kt.prototype,"editedText",void 0);_.z([_.R(),_.K("design:type",Object)],Kt.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.z([_.R(),_.K("design:type",Object)],Kt.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.z([_.R(),_.K("design:type",String)],Kt.prototype,"segmentAriaLabel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Kt.prototype,"roundedContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Kt.prototype,"mouseOver",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Kt.prototype,"textChanged",void 0);_.z([_.R(),_.K("design:type",Object)],Kt.prototype,"messages",void 0);
_.z([_.xZ("#suggestion"),_.K("design:type",Object)],Kt.prototype,"ironTextAreaElement",void 0);_.z([_.t("data","editedText"),_.K("design:type",Object),_.K("design:paramtypes",[])],Kt.prototype,"latestText",null);_.z([_.t("touchCaptionsEnabled","isEditMode"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"enableEditButton",null);
_.z([_.t("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kt.prototype,"enableUndoButton",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kt.prototype,"dataChanged",null);_.z([_.kZ("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kt.prototype,"handleMouseEnter",null);
_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kt.prototype,"handleMouseLeave",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Kt);
_.a(Kt,"ytd-transcript-segment-renderer",function(){if(ooQ!==void 0)return ooQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="segment style-scope ytd-transcript-segment-renderer" aria-label$="[[segmentAriaLabel]]" role="button" tabindex="0" on-click="handleClick" on-keypress="handleKeypress">\n  <div class="segment-start-offset style-scope ytd-transcript-segment-renderer" tabindex="-1" aria-hidden="true" on-keypress="handleKeypress">\n    <div class="segment-timestamp style-scope ytd-transcript-segment-renderer">\n      [[getSimpleString(data.startTimeText)]]\n    </div>\n  </div>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <tp-yt-paper-input-container hidden="[[!isEditMode]]" no-label-float="true" use-v2-underline="" on-click="handleTextboxClick" on-keydown="handleTextboxKeydown" on-keyup="handleTextboxKeyup" class="style-scope ytd-transcript-segment-renderer">\n      <tp-yt-iron-autogrow-textarea id="suggestion" class="paper-input-input style-scope ytd-transcript-segment-renderer" slot="input" label="[[messages.suggested_caption]]" max-rows="4" required="true" rows="1" value="[[getSimpleString(data.snippet)]]">\n      </tp-yt-iron-autogrow-textarea>\n    </tp-yt-paper-input-container>\n    <div id="actions" hidden="[[!isEditMode]]" class="style-scope ytd-transcript-segment-renderer">\n      <div class="submit style-scope ytd-transcript-segment-renderer" on-click="handleSubmit">\n        <yt-icon-button label="[[messages.submit_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:check" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.submit_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="cancel style-scope ytd-transcript-segment-renderer" on-click="handleCancel">\n        <yt-icon-button label="[[messages.cancel_correction]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:close" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.cancel_correction]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n      <div class="replay style-scope ytd-transcript-segment-renderer" on-click="handleReplay">\n        <yt-icon-button label="[[messages.replay_segment]]" class="style-scope ytd-transcript-segment-renderer">\n          <yt-icon icon="yt-icons:replay_arrow" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n          <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.replay_segment]]</tp-yt-paper-tooltip>\n        </yt-icon-button>\n      </div>\n    </div>\n  </template>\n  <yt-formatted-string class="segment-text style-scope ytd-transcript-segment-renderer" aria-hidden="true" hidden="[[isEditMode]]" tabindex="-1" text="[[latestText]]">\n  </yt-formatted-string>\n  <template is="dom-if" restamp="" if="[[touchCaptionsEnabled]]" class="style-scope ytd-transcript-segment-renderer">\n    <div class="segment-undo style-scope ytd-transcript-segment-renderer" on-click="handleDelete" hidden="[[!enableUndoButton]]">\n      <yt-icon-button label="[[messages.delete_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:arrow_undo" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.delete_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n    <div class="segment-edit style-scope ytd-transcript-segment-renderer" on-click="handleEditButtonClick" hidden="[[!enableEditButton]]">\n      <yt-icon-button label="[[messages.suggest_correction]]" class="style-scope ytd-transcript-segment-renderer">\n        <yt-icon icon="yt-icons:edit" class="style-scope ytd-transcript-segment-renderer"></yt-icon>\n        <tp-yt-paper-tooltip class="style-scope ytd-transcript-segment-renderer">[[messages.suggest_correction]]</tp-yt-paper-tooltip>\n      </yt-icon-button>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ooQ=Y},{mode:1});var i2=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};Y.isError=!1;Y.darkerPanels=_.q("web_watch_darker_panels");Y.useParentMaxHeight=_.q("web_watch_transscript_use_parent_max_height");Y.segmentOffsets=[];Y.segmentIndex=-1;return Y};
_.P(i2,_.F);_.g=i2.prototype;_.g.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"}}}}};
_.g.segmentsChanged=function(){this.updateOffsets()};
_.g.onYtPlayerTimeChanged=function(Y){for(var b=this.segmentIndex,w=b;;){if(w>=0){var V=this.segmentOffsets[w].start;var H=this.segmentOffsets[w].isAutoScrollable}else V=-1,H=!0;var f=Y+.5;if(!H){V=w+1<this.segmentOffsets.length?this.segmentOffsets[w+1].start:Infinity;if(f>=V){w+=1;continue}w=-1;break}if(f<V)V=w-1>=0&&this.segmentOffsets[w-1].isAutoScrollable,H=w===0||V?1:2,w-=H;else if(H=w+1<this.segmentOffsets.length&&this.segmentOffsets[w+1].isAutoScrollable?1:2,V=w+H<this.segmentOffsets.length?
this.segmentOffsets[w+H].start:Infinity,f>V)w+=H;else{if(w<0)break;w<this.segmentOffsets.length&&f>this.segmentOffsets[w].end&&(w=-1);break}}if(b!==w){if(b>=0){var E;(E=this.getSegmentElement(b))==null||E.classList.remove("active")}this.segmentIndex=w;if(!(w<0)){var U;(U=this.getSegmentElement(w))==null||U.classList.add("active");this.isHovered||this.scrollElementToTop(w)}}};
_.g.handleSegmentEdit=function(Y){Y.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=Y.target,_.Xx(this.hostElement,"yt-transcript-player-edit",[Y.detail.startMs/1E3,Y.detail.endMs/1E3]))};
_.g.handleSegmentSelected=function(Y){_.Xx(this.hostElement,"yt-transcript-player-seek",[Y.detail.startMs/1E3])};
_.g.handleSegmentReplay=function(Y){_.Xx(this.hostElement,"yt-transcript-player-replay",[Y.detail.startMs/1E3,Y.detail.endMs/1E3])};
_.g.handleSectionHeaderSelected=function(Y){_.Xx(this.hostElement,"yt-transcript-player-seek",[Y.detail.startMs/1E3])};
_.g.onMouseEnter=function(){this.isHovered=!0};
_.g.onMouseLeave=function(){this.isHovered=!1};
_.g.onRetryButtonClick=function(){_.Ua(this.hostElement,"transcript-retry-button-click")};
_.g.getSegmentElement=function(Y){return _.E6(this.hostElement).querySelector(":nth-child("+(Y+1)+")")};
_.g.scrollElementToTop=function(Y){Y=this.getSegmentElement(Y>=2?Y-2:0);this.hostElement.scrollTop=Math.min(Y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.g.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(Y){var b,w=(b=Y.transcriptSegmentRenderer)!=null?b:Y.transcriptSectionHeaderRenderer;return{start:Number(w.startMs)/1E3,end:Number(w.endMs)/1E3,isAutoScrollable:Y.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.g.clearHighlightedSegments=function(){var Y=_.E6(this.hostElement);Y=_.N(Y.querySelectorAll("ytd-transcript-segment-renderer"));for(var b=Y.next();!b.done;b=Y.next())b.value.classList.remove("active")};
_.up.Object.defineProperties(i2.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:Y.searchResultSegments)||((b=this.data)==null?void 0:b.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
i2.prototype.onMouseLeave=i2.prototype.onMouseLeave;i2.prototype.onMouseEnter=i2.prototype.onMouseEnter;i2.prototype.handleSectionHeaderSelected=i2.prototype.handleSectionHeaderSelected;i2.prototype.handleSegmentReplay=i2.prototype.handleSegmentReplay;i2.prototype.handleSegmentSelected=i2.prototype.handleSegmentSelected;i2.prototype.handleSegmentEdit=i2.prototype.handleSegmentEdit;i2.prototype.segmentsChanged=i2.prototype.segmentsChanged;
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],i2.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],i2.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],i2.prototype,"isError",void 0);
_.z([_.R(),_.K("design:type",Object)],i2.prototype,"noResultLabel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],i2.prototype,"darkerPanels",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],i2.prototype,"useParentMaxHeight",void 0);_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],i2.prototype,"segments",null);
_.z([_.t("segments","noResultLabel"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],i2.prototype,"displayNoResults",null);_.z([_.lr("segments"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i2.prototype,"segmentsChanged",null);_.z([_.kZ("yt-transcript-segment-edit"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],i2.prototype,"handleSegmentEdit",null);
_.z([_.kZ("yt-transcript-segment-selected"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],i2.prototype,"handleSegmentSelected",null);_.z([_.kZ("yt-transcript-segment-replay"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],i2.prototype,"handleSegmentReplay",null);
_.z([_.kZ("ytd-transcript-section-header"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],i2.prototype,"handleSectionHeaderSelected",null);_.z([_.kZ("mouseenter"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i2.prototype,"onMouseEnter",null);_.z([_.kZ("mouseleave"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i2.prototype,"onMouseLeave",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],i2);
_.a(i2,"ytd-transcript-segment-list-renderer",function(){if(mOg!==void 0)return mOg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-segment-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="segments-container" class="style-scope ytd-transcript-segment-list-renderer"></div>\n<div id="message-container" hidden="[[!displayNoResults]]" class="style-scope ytd-transcript-segment-list-renderer">\n  <yt-formatted-string id="no-results" text="[[noResultLabel]]" class="style-scope ytd-transcript-segment-list-renderer">\n  </yt-formatted-string>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return mOg=Y},{mode:1});var AF=function(){var Y=_.F.apply(this,arguments)||this;Y.hideTimestamps=!!_.l4("hide-transcript-timestamps");Y.isLoadingTranscripts=!1;Y.darkerPanels=_.q("web_watch_darker_panels");Y.isError=!1;Y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return Y};
_.P(AF,_.F);_.g=AF.prototype;_.g.headerChanged=function(){var Y,b;this.baseGetTranscriptsCommand=(b=_.v((Y=this.data)==null?void 0:Y.header,G0N))==null?void 0:b.onTextChangeCommand};
_.g.bodyChanged=function(){var Y=this.getBodyRenderer();Y&&(Y.initialSegments&&(this.initialTranscriptsRenderer=Y),Y.noResultLabel&&(this.noResultLabel=Y.noResultLabel),Y.retryLabel&&(this.retryLabel=Y.retryLabel))};
_.g.detached=function(){this.clearSearchBoxText()};
_.g.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.g.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"}}}};
_.g.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.g.fireSearch=function(Y){var b=this;if(Y){var w=Y.detail.query;if(this.baseGetTranscriptsCommand){var V;Y=(V=_.v(this.baseGetTranscriptsCommand,_.mht))==null?void 0:V.params;var H;V=_.v((H=this.data)==null?void 0:H.footer,tJd);var f;if((H=(f=_.v(V==null?void 0:V.languageMenu,ATI))==null?void 0:f.subMenuItems)&&H.length>0&&(f=H.find(function(X){return X.selected}))){var E,U;
Y=(E=f.continuation)==null?void 0:(U=E.reloadContinuationData)==null?void 0:U.continuation}E=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:Y,searchQuery:w}});this.ytComponentBehavior.resolveCommand(E,{commandController:{onServerError:function(){b.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});IPs(this.ytContinuationHandlerBehavior,function(){return w===b.getCurrentSearchBoxText()})}}};
_.g.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.g.onRetryButtonClick=function(){this.isError=!1;var Y={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:Y}))};
_.g.hideTimestampsChanged=function(){_.kc("hide-transcript-timestamps",this.hideTimestamps)};
_.g.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.g.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.g.handleSignalActionCopyTranscript=function(){var Y=this,b=this.getBodyRenderer();b&&(b=((b==null?void 0:b.searchResultSegments)||(b==null?void 0:b.initialSegments)||[]).map(function(w){return _.v(w,JTQ)}).filter(function(w){return!!w}).map(function(w){return{snippet:w.snippet||{runs:[{text:""}]},
startTimeText:w.startTimeText||{simpleText:""}}}).map(function(w){var V=(w.snippet.runs||[]).reduce(function(H,f){return H+f.text},"");
return Y.hideTimestamps?V:w.startTimeText.simpleText+" "+V}).join("\n"),this.copyToClipboard(b))};
_.g.copyToClipboard=function(Y){navigator.clipboard&&navigator.clipboard.writeText(Y)};
_.g.getCurrentSearchBoxText=function(){var Y;return(Y=this.searchBox)==null?void 0:Y.value};
_.g.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.g.getBodyRenderer=function(){var Y;return _.v((Y=this.data)==null?void 0:Y.body,Tet)};
_.g.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.up.Object.defineProperties(AF.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.E6(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
AF.prototype.hideTimestampsChanged=AF.prototype.hideTimestampsChanged;AF.prototype.searchCleared=AF.prototype.searchCleared;AF.prototype.fireSearch=AF.prototype.fireSearch;AF.prototype.onReloadContinuationFinish=AF.prototype.onReloadContinuationFinish;AF.prototype.bodyChanged=AF.prototype.bodyChanged;AF.prototype.headerChanged=AF.prototype.headerChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],AF.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],AF.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],AF.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],AF.prototype,"hideTimestamps",void 0);
_.z([_.R(),_.K("design:type",Object)],AF.prototype,"isLoadingTranscripts",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],AF.prototype,"darkerPanels",void 0);_.z([_.R(),_.K("design:type",Object)],AF.prototype,"isError",void 0);_.z([_.lr("data.header"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AF.prototype,"headerChanged",null);
_.z([_.vX("data.body"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AF.prototype,"bodyChanged",null);_.z([_.kZ("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AF.prototype,"onReloadContinuationFinish",null);_.z([_.kZ("yt-transcript-search-box-search"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],AF.prototype,"fireSearch",null);
_.z([_.kZ("yt-transcript-search-box-clear"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AF.prototype,"searchCleared",null);_.z([_.lr("hideTimestamps"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AF.prototype,"hideTimestampsChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],AF);
_.a(AF,"ytd-transcript-search-panel-renderer",function(){if(Xn7!==void 0)return Xn7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-search-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="body" class="style-scope ytd-transcript-search-panel-renderer"></div>\n<div id="error-container" hidden="[[!isError]]" class="style-scope ytd-transcript-search-panel-renderer">\n  <tp-yt-paper-button id="retry-button" on-click="onRetryButtonClick" class="style-scope ytd-transcript-search-panel-renderer">\n    <yt-formatted-string text="[[retryLabel]]" class="style-scope ytd-transcript-search-panel-renderer">\n    </yt-formatted-string>\n  </tp-yt-paper-button>\n</div>\n<div class="spinner-container style-scope ytd-transcript-search-panel-renderer" hidden="[[!isLoadingTranscripts]]">\n  <tp-yt-paper-spinner active="[[isLoadingTranscripts]]" class="style-scope ytd-transcript-search-panel-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="footer" class="style-scope ytd-transcript-search-panel-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Xn7=Y},{mode:1});var Ct=function(){var Y=_.F.apply(this,arguments)||this;Y.player=null;Y.playerPollJobId=0;return Y};
_.P(Ct,_.F);_.g=Ct.prototype;_.g.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.g.onLoadReloadContinuation=function(Y){_.q("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:Y.target.data.continuation}}):(Y={clickTrackingParams:Y.target.data.clickTrackingParams,getTranscriptEndpoint:{params:Y.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}}))};
_.g.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"}}}};
_.g.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.g.attached=function(){this.updatePlayerListening()};
_.g.detached=function(){this.updatePlayerListening()};
_.g.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.g.startPlayerListening=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return(b=_.V4())?_.D(w,b.getPlayerPromise(),2):w.return();Y.player=w.yieldResult;Y.playerPollJobId=_.Lb.addLowPriorityJob(function(){Y.getPlayerVideoProgress()},1E3);
Y.player.addEventListener("onCueRangeEnter",function(V){Y.onCueRangeEnter(V)});
Y.player.addEventListener("onCueRangeExit",function(V){Y.onCueRangeExit(V)});
Y.player.addEventListener("onStateChange",function(V){Y.onPlayerStateChange(V)});
Y.player.addEventListener("SEEK_TO",function(V){Y.onPlayerSeek(V)});
_.om(w)})};
_.g.getPlayerVideoProgress=function(){var Y=this;_.Lb.cancelJob(this.playerPollJobId);if(this.player){var b=this.player.getCurrentTime();_.Xx(this.hostElement,"yt-player-time-changed",[b])}this.playerPollJobId=_.Lb.addLowPriorityJob(function(){Y.getPlayerVideoProgress()},1E3)};
_.g.stopPlayerListening=function(){this.player=null;_.Lb.cancelJob(this.playerPollJobId)};
_.g.onPlayerStateChange=function(Y){Y===2&&this.removePendingCue()};
_.g.onPlayerSeek=function(Y){var b;if(b=this.pendingReplayCueId)b=this.pendingReplayCueId,b=Y===(_.q("web_transcript_cue_id_killswitch")?Number(b):Number(b.split("_")[1]));b||this.removePendingCue()};
_.g.onCueRangeEnter=function(Y){z2R(Y)&&(this.pendingReplayCueId=Y)};
_.g.onCueRangeExit=function(Y){z2R(Y)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.g.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.g.onYtTranscriptPlayerSeek=function(Y){this.player&&this.player.seekTo(Y,!0)};
_.g.onYtTranscriptPlayerReplay=function(Y,b){this.player&&(this.player.addCueRange(rbF(Y),Y,b),this.player.seekTo(Y,!0),this.player.playVideo())};
_.g.onYtTranscriptPlayerEdit=function(Y,b){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(rbF(Y),Y,b),this.player.seekTo(Y,!0))};
Ct.prototype.onLoadReloadContinuation=Ct.prototype.onLoadReloadContinuation;Ct.prototype.panelContentVisibleChanged=Ct.prototype.panelContentVisibleChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ct.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ct.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ct.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ct.prototype,"panelContentVisible",void 0);_.z([_.lr("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ct.prototype,"panelContentVisibleChanged",null);
_.z([_.kZ("yt-load-reload-continuation"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],Ct.prototype,"onLoadReloadContinuation",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Ct);
_.a(Ct,"ytd-transcript-renderer",function(){if(cVt!==void 0)return cVt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transcript-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" class="style-scope ytd-transcript-renderer"></div>\n<div id="content" class="style-scope ytd-transcript-renderer"></div>\n<div id="footer" class="style-scope ytd-transcript-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return cVt=Y},{mode:1});var I6I;var kyX;var yo=function(){return _.F.apply(this,arguments)||this};
_.P(yo,_.F);yo.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.IP(this.hostElement,[this.data.clickCommand],this.hostElement))};
yo.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.e$)()+_.L6)+"px)"};
yo.prototype.updateShouldHideFromBinding=function(Y){this.shouldHide=Y.detail.value};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yo.prototype,"rendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yo.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],yo.prototype,"shouldHide",void 0);_.z([_.S({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],yo);
_.a(yo,"ytd-ad-engagement-panel-banner-renderer",function(){if(kyX!==void 0)return kyX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-engagement-panel-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[computeHideMediaQuery()]]" query-matches="[[shouldHide]]" on-query-matches-changed="updateShouldHideFromBinding" class="style-scope ytd-ad-engagement-panel-banner-renderer">\n</iron-media-query>\n<a class="yt-simple-endpoint banner-click-container style-scope ytd-ad-engagement-panel-banner-renderer" hidden="[[shouldHide]]" on-tap="onTap">\n  <yt-img-shadow class="banner-image style-scope ytd-ad-engagement-panel-banner-renderer" fit="" thumbnail="[[data.bannerImage]]">\n  </yt-img-shadow>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return kyX=Y},{mode:_.Xd("kevlar_poly_si_batch_j070")?1:2});var l67;var $K=function(){var Y=_.F.apply(this,arguments)||this;Y.modernPanels=_.q("kevlar_watch_modern_panels");Y.buttonUpdate=_.q("web_modern_buttons");Y.adsSemanticText=_.q("enable_ads_web_ep_buenos_aires_and_padding_fix");return Y};
_.P($K,_.F);$K.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.z([_.R(),_.K("design:type",Object)],$K.prototype,"data",void 0);_.z([_.R({computed:"computeHideDefaultAdBadge(data)"}),_.K("design:type",Boolean)],$K.prototype,"hideDefaultAdBadge",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$K.prototype,"modernPanels",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$K.prototype,"buttonUpdate",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$K.prototype,"adsSemanticText",void 0);
_.z([_.S({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],$K);
_.a($K,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(l67!==void 0)return l67;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-ad-subtitle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-badge-supported-renderer id="ad-badge" badges="[[data.badges]]" hidden="[[hideDefaultAdBadge]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-badge-supported-renderer>\n<ytd-ad-hover-text-button-renderer id="ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</ytd-ad-hover-text-button-renderer>\n<yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-ad-subtitle-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return l67=Y},{mode:1});var hZt;var js=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerPanels=_.q("web_watch_darker_panels");Y.enableSqueezebackPanels=_.q("web_shorts_enable_squeezeback_panels");Y.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");Y.modernPanels=_.q("kevlar_watch_modern_panels");Y.headerClickListener=function(b){Y.onHeaderClick(b)};
Y.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return Y};
_.P(js,_.F);_.g=js.prototype;_.g.computeAdsInfoButton=function(){if(_.q("web_modern_buttons")){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.subtitleComplex,RNt))==null?void 0:b.adInfoRenderer}};
_.g.updateHeaderClickListener=function(){var Y,b,w;((Y=this.data)==null?0:Y.navigationEndpoint)||((b=this.data)==null?0:b.onClickCommand)||_.v((w=this.data)==null?void 0:w.visibilityButton,_.KL)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.g.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}}}}}};
_.g.collapsedChanged=function(){var Y;(Y=this.data)!=null&&Y.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.q("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.g.focus=function(Y){this.titleElement&&_.JE(this.titleElement,Y)};
_.g.computeTitleAriaLabel=function(Y){var b=[];if(Y.title){var w,V;b.push(this.ytRendererBehavior.getSimpleString(Y.title)||((w=Y.title.accessibility)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label))}Y.contextualInfo&&b.push(this.ytRendererBehavior.getSimpleString(Y.contextualInfo));return b.join(" ")};
_.g.onHeaderClick=function(Y){this.shouldTriggerHeaderClick(Y)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.IP(this.hostElement,[this.data.onClickCommand],this.hostElement)):(Y=this.getVisibilityToggleButton())&&Y.click())};
_.g.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var Y=_.v(this.data.visibilityButton,_.Wa)||_.v(this.data.visibilityButton,_.KL);Y&&this.ytRendererBehavior.logExplicitClick(Y)}};
_.g.getVisibilityToggleButton=function(){var Y=_.E6(this.hostElement).querySelector("#visibility-button").firstElementChild;return(Y==null?void 0:Y.is)==="ytd-toggle-button-renderer"?Y:null};
_.g.shouldTriggerHeaderClick=function(Y){return!_.uA(_.JL(Y),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.g.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(Y){Y=_.v(Y,_.P9X);this.targetId&&(Y==null?void 0:Y.targetId)===this.targetId&&(Y=Y.navigationButton)&&this.set("data.navigationButton",Y)};
_.up.Object.defineProperties(js.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!!(((Y=this.entity)==null?0:Y.isActionButtonHidden)||this.hideActionButton)}}});
js.prototype.collapsedChanged=js.prototype.collapsedChanged;js.prototype.updateHeaderClickListener=js.prototype.updateHeaderClickListener;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],js.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],js.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],js.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],js.prototype,"targetId",void 0);_.z([_.R(),_.K("design:type",Boolean)],js.prototype,"collapsed",void 0);_.z([_.R(),_.K("design:type",Boolean)],js.prototype,"hideActionButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],js.prototype,"shortsPanel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],js.prototype,"liveChatEngagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],js.prototype,"darkerPanels",void 0);_.z([_.xZ("#title"),_.K("design:type",HTMLElement)],js.prototype,"titleElement",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],js.prototype,"headerElement",void 0);_.z([_.R({computed:"computeAdsInfoButton(data)"}),_.K("design:type",Object)],js.prototype,"adsInfoButton",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],js.prototype,"enableSqueezebackPanels",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],js.prototype,"enableAnchoredPanel",void 0);_.z([_.R({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"engagementPanelTitleHeaderEntity",b)}}),
_.K("design:type",Object)],js.prototype,"entity",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],js.prototype,"modernPanels",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("targetId"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],js.prototype,"adsSemanticText",null);_.z([_.lr("data","data.navigationEndpoint","data.onClickCommand"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],js.prototype,"updateHeaderClickListener",null);
_.z([_.vX("collapsed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],js.prototype,"collapsedChanged",null);_.z([_.t("entity","hideActionButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],js.prototype,"isActionButtonHidden",null);_.z([_.S({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],js);
_.a(js,"ytd-engagement-panel-title-header-renderer",function(){if(hZt!==void 0)return hZt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return hZt=Y},{mode:1});var xOO;var GU=function(){return _.F.apply(this,arguments)||this};
_.P(GU,_.F);GU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],GU.prototype,"data",void 0);_.z([_.S({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],GU);
_.a(GU,"ytd-macro-markers-info-item-renderer",function(){if(xOO!==void 0)return xOO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-info-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.infoText]]" class="style-scope ytd-macro-markers-info-item-renderer"></yt-formatted-string>\n<div id="menu" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n<div id="edit" class="style-scope ytd-macro-markers-info-item-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return xOO=Y},{mode:1});var qYd;var voN=function(Y,b,w,V,H,f){_.BE.call(this);var E=this;this.JSC$20178_containerElement=Y;this.hostElement=b;this.supportedSyncItems=w;this.syncEntityKey=V;this.options=H;this.renderLazyListItems=f;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;sls(this);QlX(this);this.JSC$20178_scrollAnimation=new _.tv(function(U){Y.scrollTop=U});
_.os(this,this.JSC$20178_scrollAnimation);this.addOnDisposeCallback(function(){E.exitBrowsingMode(!1);E.activeItem&&E.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.P(voN,_.BE);var sls=function(Y){var b=_.vB(_.fH().resolve(_.i4),function(w){return w.entities.markersEngagementPanelSyncEntity||{}},function(w,V){var H;
w[Y.syncEntityKey]!==V[Y.syncEntityKey]&&((H=w[Y.syncEntityKey])==null?void 0:H.activeItemIndex)!==void 0&&Y.updatePanelActiveItem(w[Y.syncEntityKey].activeItemIndex)});
Y.unsubscribeFromTimedMarkersListSyncEntity=b;Y.addOnDisposeCallback(b);PDF(Y)},PDF=function(Y){var b=_.fH().resolve(_.i4);
b=_.v3e(b.getState(),Y.syncEntityKey);(b==null?void 0:b.activeItemIndex)!==void 0&&(b=Y.getItemByIndex(b.activeItemIndex))&&Y.setActiveItem(b)},QlX=function(Y){var b=new _.Vm(Y.onScroll,50,Y);
_.os(Y,b);var w=function(){b.fire()};
Y.JSC$20178_containerElement.addEventListener("scroll",w);Y.addOnDisposeCallback(function(){Y.JSC$20178_containerElement.removeEventListener("scroll",w)})};
_.g=voN.prototype;
_.g.updatePanelActiveItem=function(Y){var b=this.getItemByIndex(Y);if(b){if(this.setActiveItem(b),this.contentVisible)if(this.browsingMode){var w;((w=this.options)==null?void 0:w.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Y=ZOA(this),b.offsetTop<this.JSC$20178_containerElement.clientHeight+this.JSC$20178_containerElement.scrollTop&&Y&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));B8F(this)}else this.scrollToItem(b)}else _.Sk(new _.BQ("Could not find "+this.supportedSyncItems+
" sync child to set active.",Y,this.JSC$20178_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.g.getItemByIndex=function(Y){var b;(b=this.renderLazyListItems)==null||b.call(this,Y);b=this.JSC$20178_containerElement.querySelectorAll(this.supportedSyncItems);if(b.length>Y)return b[Y]};
_.g.setActiveItem=function(Y){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));Y.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=Y};
_.g.scrollToItem=function(Y){Y=this.getScrollPositionForItem(Y);this.JSC$20178_containerElement.scrollTop!==Y&&this.JSC$20178_scrollAnimation.start(this.JSC$20178_containerElement.scrollTop,Y,300)};
_.g.getScrollPositionForItem=function(Y){if(this.JSC$20178_containerElement.querySelectorAll(this.supportedSyncItems)[0]===Y)return 0;var b,w=((b=this.options)==null?0:b.percentOffset)?this.JSC$20178_containerElement.clientHeight*this.options.percentOffset:0;Y=_.Rz(Y).y+this.JSC$20178_containerElement.scrollTop-(_.Rz(this.JSC$20178_containerElement).y+w);return Math.max(0,Math.min(Y,this.JSC$20178_containerElement.scrollHeight-this.JSC$20178_containerElement.offsetHeight))};
_.g.onScroll=function(){this.activeItemBelowSyncPosition=ZOA(this);if(this.activeItem&&!this.JSC$20178_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20178_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var Y;switch((Y=this.options)==null?void 0:Y.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!not(this));B8F(this);break;default:this.enterBrowsingMode(!0)}}};
_.g.enterBrowsingMode=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1){if(b.browsingMode)return H.return();b.browsingMode=!0;Y&&b.hostElement.classList.add("browsing-mode");b.playerExitBrowsingModeListener=function(){b.exitBrowsingMode(!1)};
return _.D(H,_.DE(),2)}w=H.yieldResult;(V=w)==null||V.addEventListener("SEEK_TO",b.playerExitBrowsingModeListener);_.om(H)})};
_.g.exitBrowsingMode=function(Y){Y=Y===void 0?!0:Y;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),Y&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.g.removePlayerSeekListener=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1)return Y.playerExitBrowsingModeListener?_.D(V,_.DE(),3):V.jumpTo(0);b=V.yieldResult;(w=b)==null||w.removeEventListener("SEEK_TO",Y.playerExitBrowsingModeListener);Y.playerExitBrowsingModeListener=void 0;_.om(V)})};
var B8F=function(Y){var b;((b=Y.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(not(Y)?Y.hostElement.classList.remove("browsing-mode"):Y.activeItem&&Y.hostElement.classList.add("browsing-mode"))},ZOA=function(Y){if(!Y.activeItem)return!1;
var b,w=((b=Y.options)==null?0:b.percentOffset)?Y.JSC$20178_containerElement.clientHeight*Y.options.percentOffset:0;return Y.activeItem.offsetTop>=Y.JSC$20178_containerElement.scrollTop+w},not=function(Y){if(!Y.activeItem)return!1;
var b=Y.activeItem.offsetTop+14<=Y.JSC$20178_containerElement.scrollTop+Y.JSC$20178_containerElement.clientHeight;return Y.activeItem.offsetTop+Y.activeItem.clientHeight-14>=Y.JSC$20178_containerElement.scrollTop&&b};
voN.prototype.panelContentVisibleChanged=function(Y){(this.contentVisible=Y)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Mvd=function(Y,b){Y.syncEntityKey=b;var w;(w=Y.unsubscribeFromTimedMarkersListSyncEntity)==null||w.call(Y);sls(Y)},eZg=function(Y,b){Y.options=b};var TU=function(){var Y=_.F.apply(this,arguments)||this;Y.browsingMode=!1;Y.modern=_.q("web_button_rework");Y.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return Y};
_.P(TU,_.F);_.g=TU.prototype;_.g.activeItemChanged=function(){if(!_.q("synced_panel_scrolling_controller")){var Y;((Y=this.syncEntity)==null?void 0:Y.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.g.created=function(){var Y=this;_.q("synced_panel_scrolling_controller")||(this.JSC$20182_scrollAnimation=new _.tv(function(b){Y.contents.scrollTop=b}),this.boundExitBrowsingMode=function(){Y.exitBrowsingMode(!1)})};
_.g.detached=function(){if(_.q("synced_panel_scrolling_controller")){var Y;(Y=this.scrollController)==null||Y.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.g.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"}}}};
_.g.dataChanged=function(){var Y=this;_.q("synced_panel_scrolling_controller")?_.TC(this,function(){if(Y.scrollController){var b;(b=Y.scrollController)==null||b.exitBrowsingMode(!1);var w,V,H;(V=Y.scrollController)==null||Mvd(V,(H=(w=Y.data)==null?void 0:w.syncModelEntityKey)!=null?H:"default-macro-markers-list-renderer-entity-key");var f,E,U;(U=Y.scrollController)==null||eZg(U,{percentOffset:(f=Y.data)==null?void 0:f.selectedItemAlignmentPercentOffset,floatingPillType:(E=Y.data)==null?void 0:E.floatingPillType})}else{var X,
I,k,l;Y.scrollController=new voN(Y.contents,Y.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(l=(X=Y.data)==null?void 0:X.syncModelEntityKey)!=null?l:"default-macro-markers-list-renderer-entity-key",{percentOffset:(I=Y.data)==null?void 0:I.selectedItemAlignmentPercentOffset,floatingPillType:(k=Y.data)==null?void 0:k.floatingPillType},function(x){Y.renderLazyListItems(x)})}Y.scrollController.panelContentVisibleChanged(!!Y.panelContentVisible)}):this.exitBrowsingMode()};
_.g.computeButtonShape=function(){var Y=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){Y.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.g.computeSyncEnabled=function(Y){return!(Y==null||!Y.syncButtonLabel)};
_.g.renderLazyListItems=function(Y){for(var b=this.contents.children,w=0,V=0;V<b.length;V++){var H=void 0;(H=b[V].ytLazyListBehavior)==null||H.fillRemainingListItems();var f=void 0,E=void 0;H=_.v((f=this.data)==null?void 0:(E=f.contents)==null?void 0:E[V],_.o8C);E=f=void 0;if((f=H)==null?0:(E=f.contents)==null?0:E.length)w+=H.contents.length;if(w>=Y)break}};
_.g.getItemByIndex=function(Y){this.renderLazyListItems(Y);var b=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(b.length>Y)return b[Y]};
_.g.setActiveItem=function(Y){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);Y.active!==void 0&&(Y.active=!0);this.currentActiveItem=Y};
_.g.handleSetActivePanelItemAction=function(Y){if((Y=_.v(Y,Bed))&&this.panelTargetId===Y.panelTargetId){Y=Y.itemIndex;if(_.q("synced_panel_scrolling_controller")){var b,w;var V=(w=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key"}else{var H;V=(H=this.data)==null?void 0:H.syncModelEntityKey}if(V){var f;((f=this.syncEntity)==null?void 0:f.activeItemIndex)!==Y&&this.ytdReduxBehavior.dispatch(_.qo("markersEngagementPanelSyncEntity",V,{key:V,activeItemIndex:Y}))}else this.updatePanelActiveItem(Y)}};
_.g.updatePanelActiveItem=function(Y){var b=this.getItemByIndex(Y);b?(this.setActiveItem(b),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(b)):_.Sk(new _.BQ("Could not find ytd-macro-markers-list-renderer sync child to set active.",Y,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.g.scrollToItem=function(Y){Y=this.getScrollPositionForItem(Y);this.contents.scrollTop!==Y&&this.JSC$20182_scrollAnimation.start(this.contents.scrollTop,Y,300)};
_.g.getScrollPositionForItem=function(Y){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===Y)return 0;Y=_.Rz(Y).y+this.contents.scrollTop-_.Rz(this.contents).y-this.getStickyHeaderHeight(Y);return Math.min(Y,this.contents.scrollHeight-this.contents.offsetHeight)};
_.g.getStickyHeaderHeight=function(Y){if(Y.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var b,w,V;return(V=(b=Y.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(w=b.header)==null?void 0:w.offsetHeight)!=null?V:0}return 0};
_.g.onScroll=function(){_.q("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20182_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.g.enterBrowsingMode=function(){var Y=this;return _.c(function(b){if(b.nextAddress==1){if(Y.browsingMode)return b.return();Y.browsingMode=!0;return _.D(b,_.Hv().getPlayerPromise(),2)}Y.player=b.yieldResult;Y.player.addEventListener("SEEK_TO",Y.boundExitBrowsingMode);_.om(b)})};
_.g.exitBrowsingMode=function(Y){this.browsingMode&&(this.browsingMode=!1,(Y===void 0||Y)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.g.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.g.onSyncClick=function(){if(_.q("synced_panel_scrolling_controller")){var Y;(Y=this.scrollController)==null||Y.exitBrowsingMode()}else this.exitBrowsingMode()};
_.g.panelContentVisibleChanged=function(){if(_.q("synced_panel_scrolling_controller")){var Y;(Y=this.scrollController)==null||Y.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
TU.prototype.panelContentVisibleChanged=TU.prototype.panelContentVisibleChanged;TU.prototype.dataChanged=TU.prototype.dataChanged;TU.prototype.activeItemChanged=TU.prototype.activeItemChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],TU.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],TU.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],TU.prototype,"data",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],TU.prototype,"useCustomColors",void 0);_.z([_.R({computed:"computeSyncEnabled(data)"}),_.K("design:type",Boolean)],TU.prototype,"syncEnabled",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],TU.prototype,"panelTargetId",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],TU.prototype,"panelContentVisible",void 0);_.z([_.xZ("#contents"),_.K("design:type",HTMLElement)],TU.prototype,"contents",void 0);_.z([_.xZ("#sync-container"),_.K("design:type",HTMLElement)],TU.prototype,"syncContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],TU.prototype,"browsingMode",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],TU.prototype,"modern",void 0);_.z([_.R({selectorArgs:["data.syncModelEntityKey"],selector:_.v3e}),_.K("design:type",Object)],TU.prototype,"syncEntity",void 0);_.z([_.lr("syncEntity.activeItemIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TU.prototype,"activeItemChanged",null);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TU.prototype,"dataChanged",null);_.z([_.lr("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TU.prototype,"panelContentVisibleChanged",null);_.z([_.S({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],TU);
_.a(TU,"ytd-macro-markers-list-renderer",function(){if(qYd!==void 0)return qYd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return qYd=Y},{mode:1});var pnQ;var JF=function(){return _.F.apply(this,arguments)||this};
_.P(JF,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],JF.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JF.prototype,"data",void 0);_.z([_.S({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],JF);
_.a(JF,"ytd-error-corrections-section-item-renderer",function(){if(pnQ!==void 0)return pnQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="channel-thumbnail" height="36" thumbnail="[[data.thumbnail]]" width="36" class="style-scope ytd-error-corrections-section-item-renderer">\n</yt-img-shadow>\n<a id="correction-timestamp" class="yt-simple-endpoint style-scope ytd-error-corrections-section-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick">\n  <yt-formatted-string text="[[data.timeLabel]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</a>\n<div id="correction-text" class="style-scope ytd-error-corrections-section-item-renderer">\n  <yt-formatted-string text="[[data.correctionText]]" class="style-scope ytd-error-corrections-section-item-renderer"></yt-formatted-string>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return pnQ=Y},{mode:1});var OOg;var u2=function(){return _.F.apply(this,arguments)||this};
_.P(u2,_.F);u2.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],u2.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],u2.prototype,"data",void 0);_.z([_.S({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],u2);
_.a(u2,"ytd-error-corrections-section-renderer",function(){if(OOg!==void 0)return OOg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-error-corrections-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-error-corrections-section-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-error-corrections-section-renderer"></yt-formatted-string>\n  <div id="flex" class="style-scope ytd-error-corrections-section-renderer"></div>\n  <ytd-button-renderer id="view_all_button" data="[[data.viewAllButton.buttonRenderer]]" class="style-scope ytd-error-corrections-section-renderer">\n  </ytd-button-renderer>\n</div>\n<div id="items" class="style-scope ytd-error-corrections-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return OOg=Y},{mode:1});var tvO;var YB=function(){return _.F.apply(this,arguments)||this};
_.P(YB,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],YB.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],YB.prototype,"data",void 0);_.z([_.S({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],YB);
_.a(YB,"ytd-topic-link-renderer",function(){if(tvO!==void 0)return tvO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="topic-link-container" class="yt-simple-endpoint style-scope ytd-topic-link-renderer" data="[[data.endpoint]]" href$="[[computeOptionalHref_(data.endpoint)]]">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnailDetails]]" width="32" class="style-scope ytd-topic-link-renderer">\n    </yt-img-shadow>\n    <div id="title" class="style-scope ytd-topic-link-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="call-to-action-icon" hidden="[[!data.callToActionIcon]]" icon="[[data.callToActionIcon.iconType]]" class="style-scope ytd-topic-link-renderer">\n    </yt-icon>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return tvO=Y},{mode:1});var RZb;var bt=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("kevlar_modern_sd_v2");Y.modernLockupV2=_.q("modernize_structured_description_playlist_lockups_v2");Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(bt,_.F);bt.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bt.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],bt.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bt.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bt.prototype,"modernLockupV2",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bt.prototype,"modernTypography",void 0);_.z([_.S({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],bt);
_.a(bt,"ytd-video-description-course-section-renderer",function(){if(RZb!==void 0)return RZb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-course-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-course-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-course-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-course-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-course-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return RZb=Y},{mode:1});var dON;var w6=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("kevlar_modern_sd_v2");Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(w6,_.F);w6.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],w6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],w6.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],w6.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],w6.prototype,"modernTypography",void 0);
_.z([_.S({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],w6);
_.a(w6,"ytd-video-description-files-section-renderer",function(){if(dON!==void 0)return dON;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-files-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-files-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n  <div id="flex" class="style-scope ytd-video-description-files-section-renderer"></div>\n  <div id="view-all-button" class="style-scope ytd-video-description-files-section-renderer"></div>\n</div>\n<div id="description" class="style-scope ytd-video-description-files-section-renderer">[[getSimpleString(data.sectionDescription)]]</div>\n<div id="file-buttons" class="style-scope ytd-video-description-files-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return dON=Y},{mode:1});var FaR;var Va=function(){return _.F.apply(this,arguments)||this};
_.P(Va,_.F);Va.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Va.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Va.prototype,"data",void 0);_.z([_.S({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Va);
_.a(Va,"ytd-video-description-gaming-section-renderer",function(){if(FaR!==void 0)return FaR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-gaming-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-gaming-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-gaming-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="media-lockups" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n<div id="topic-link" class="style-scope ytd-video-description-gaming-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return FaR=Y},{mode:1});var LaQ;var HF=function(){var Y=_.F.apply(this,arguments)||this;Y.isExpanded=!1;return Y};
_.P(HF,_.F);HF.prototype.computeHasDefaultMetadataEndpoint=function(Y){var b;Y=Y==null?void 0:(b=Y.defaultMetadata)==null?void 0:b.runs;return!(!Y||Y.length!==1||!Y[0].navigationEndpoint)};
HF.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.up.Object.defineProperties(HF.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],HF.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],HF.prototype,"isExpanded",void 0);_.z([_.R({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],HF.prototype,"hasDefaultMetadataEndpoint",void 0);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],HF.prototype,"isExpandable",null);_.z([_.t("data","isExpandable","isExpanded"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],HF.prototype,"showExpandedMetadata",null);_.z([_.S({is:"ytd-info-row-renderer",disableElementRegistration:!0})],HF);
_.a(HF,"ytd-info-row-renderer",function(){if(LaQ!==void 0)return LaQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-info-row-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-row-container" on-click="onRowExpand" class="style-scope ytd-info-row-renderer">\n  <div id="info-row-header" class="style-scope ytd-info-row-renderer">\n    <div id="title" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.title)]]</div>\n    <div id="default-metadata-section" hidden="[[isExpanded]]" class="style-scope ytd-info-row-renderer">\n      <yt-formatted-string id="default-metadata" bold-links="" text="[[data.defaultMetadata]]" class="style-scope ytd-info-row-renderer">\n      </yt-formatted-string>\n      <span id="truncation-text" class="style-scope ytd-info-row-renderer">[[getSimpleString(data.truncationText)]]</span>\n      <yt-icon id="icon" class="expand-icon style-scope ytd-info-row-renderer" hidden="[[!data.expandIcon.iconType]]" icon="[[data.expandIcon.iconType]]">\n      </yt-icon>\n    </div>\n  </div>\n  <yt-formatted-string id="expanded-metadata" hidden="[[!showExpandedMetadata]]" text="[[data.expandedMetadata]]" class="style-scope ytd-info-row-renderer">\n  </yt-formatted-string>\n</div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return LaQ=Y},{mode:1});var SYX;var g6=function(){var Y=_.F.apply(this,arguments)||this;Y.currentIndex=0;Y.supportComponentResize=!0;Y.modern=_.q("kevlar_modern_sd_v2");Y.JSC$20208_lastScrollContainerWidth=NaN;return Y};
_.P(g6,_.F);_.g=g6.prototype;
_.g.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"}}}};
_.g.getItemsPath=function(){return"videoLockups"};
_.g.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.g.onIronResize=function(){this.updateVideoLockupStyles()};
_.g.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.g.updateVideoLockupStyles=function(){var Y;this.JSC$20208_scrollContainer!==void 0&&(Y=this.videoLockups)!=null&&Y.length&&(Y=this.JSC$20208_scrollContainer.clientWidth,Y!==this.JSC$20208_lastScrollContainerWidth&&(this.JSC$20208_lastScrollContainerWidth=Y,_.m_(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(Y*.8,415)+"px"}),_.Ua(this.hostElement,"iron-resize")))};
_.up.Object.defineProperties(g6.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var Y=[],b;if((b=this.data)==null||!b.carouselLockups)return Y;b=_.N(this.data.carouselLockups);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0;((V=_.v(w,wCO))==null?0:V.videoLockup)&&Y.push(_.v(w,wCO).videoLockup)}return Y}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoLockups)==null||!Y.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var Y=[],b;if((b=this.data)==null||!b.carouselLockups)return Y;var w;return(w=_.v(this.data.carouselLockups[this.scrollCount],wCO))==null?void 0:w.infoRows}}});
g6.prototype.dataChanged=g6.prototype.dataChanged;g6.prototype.onIronResize=g6.prototype.onIronResize;g6.prototype.hiddenChanged=g6.prototype.hiddenChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],g6.prototype,"componentBehavior",void 0);_.z([_.n(_.HR.YtdHorizontalListBehavior),_.K("design:type",Object)],g6.prototype,"ytdHorizontalListBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],g6.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],g6.prototype,"inlineStructuredDescription",void 0);_.z([_.R({value:2}),_.K("design:type",Number)],g6.prototype,"initialCount",void 0);_.z([_.R(),_.K("design:type",Object)],g6.prototype,"currentIndex",void 0);
_.z([_.R(),_.K("design:type",Number)],g6.prototype,"scrollCount",void 0);_.z([_.R(),_.K("design:type",Object)],g6.prototype,"supportComponentResize",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],g6.prototype,"contentHidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],g6.prototype,"modern",void 0);_.z([_.xZ("#scroll-container"),_.K("design:type",HTMLDivElement)],g6.prototype,"JSC$20208_scrollContainer",void 0);
_.z([_.lr("contentHidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g6.prototype,"hiddenChanged",null);_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],g6.prototype,"videoLockups",null);_.z([_.t("videoLockups"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],g6.prototype,"hasVideoLockups",null);
_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g6.prototype,"onIronResize",null);_.z([_.t("data","scrollCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],g6.prototype,"infoRows",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],g6.prototype,"dataChanged",null);_.z([_.S({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],g6);
_.a(g6,"ytd-video-description-music-section-renderer",function(){if(SYX!==void 0)return SYX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-music-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-video-description-music-section-renderer">\n  <h3 id="title" class="style-scope ytd-video-description-music-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n</div>\n<div id="video-lockups" hidden="[[!hasVideoLockups]]" class="style-scope ytd-video-description-music-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="left-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atStart]]"></div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-music-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-music-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-music-section-renderer">\n    <div id="right-arrow-button" class="arrow style-scope ytd-video-description-music-section-renderer" hidden="[[atEnd]]"></div>\n  </div>\n</div>\n<div id="info-rows" class="style-scope ytd-video-description-music-section-renderer"></div>\n<a id="premium-upsell-link" class="yt-simple-endpoint style-scope ytd-video-description-music-section-renderer" aria-label$="[[data.premiumUpsellLink.title.accessibility.accessibilityData.label]]" hidden="[[!data.premiumUpsellLink]]" href$="[[computeOptionalHref_(data.premiumUpsellLink.navigationEndpoint)]]" title$="[[getSimpleString(data.premiumUpsellLink.title)]]" data="[[data.premiumUpsellLink.navigationEndpoint]]">\n  <yt-formatted-string id="premium-upsell-text" text="[[data.premiumUpsellLink]]" class="style-scope ytd-video-description-music-section-renderer">\n  </yt-formatted-string>\n</a>\n<div id="topic-link" class="style-scope ytd-video-description-music-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return SYX=Y},{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var a6X;var fT=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("kevlar_modern_sd_v2");Y.modernTypography=_.q("web_modern_typography");return Y};
_.P(fT,_.F);fT.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.z([_.R({}),_.K("design:type",Object)],fT.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],fT.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],fT.prototype,"modernTypography",void 0);
_.z([_.S({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],fT);
_.a(fT,"ytd-video-description-transcript-section-renderer",function(){if(a6X!==void 0)return a6X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-transcript-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="title" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.sectionTitle)]]</div>\n</div>\n<div id="sub-header" class="style-scope ytd-video-description-transcript-section-renderer">\n  <p id="sub-header-text" class="style-scope ytd-video-description-transcript-section-renderer">[[getSimpleString(data.subHeaderText)]]</p>\n</div>\n<div id="button-container" class="style-scope ytd-video-description-transcript-section-renderer">\n  <div id="primary-button" class="style-scope ytd-video-description-transcript-section-renderer"></div>\n</div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return a6X=Y},{mode:1});var rVX;_.f_(_.b8(function(Y){var b=_.xh(_.t$K,function(){return Y.data().firstProviderLinkStatusEntityKey}),w=_.xh(_.t$K,function(){return Y.data().secondProviderLinkStatusEntityKey}),V=function(){var H,f;
return((H=b())==null?void 0:H.linked)||((f=w())==null?void 0:f.linked)};
return _.m("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.m(_.wv,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return Y.data().sectionTitle}}),_.m(_.wv,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return V()?Y.data().connectedMessage:Y.data().notConnectedMessage}}),_.m(_.h,{cond:V,
then:function(){return _.m(_.OH,{data:function(){return Y.data().connectedButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.m(_.h,{cond:function(){return!V()},
then:function(){return _.m(_.OH,{data:function(){return Y.data().notConnectedButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Xi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;return _.m("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.m("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.m(_.wv,{text:function(){return b().sectionTitle}})),_.m("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.m(_.wv,{text:function(){return b().bodyHeader}})),_.m("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.m(_.wv,{text:function(){return b().bodyText}})),_.m(_.h,
{cond:function(){return b().attributionText},
then:function(){return _.m("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.m(_.wv,{text:function(){return b().attributionText}}))}}))},"Yi"),"how-this-was-made-section-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){return _.m("yt-video-description-youchat-section-view-model",{class:_.hj("ytVideoDescriptionYouchatSectionViewModelHost")},_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.m(_.wv,{text:function(){return Y.data().sectionTitle}})),_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.m(_.wv,{text:function(){return Y.data().subHeaderText}})),_.m("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.m(_.a1,{data:function(){return _.v(Y.data().primaryButton,
_.Bv)}})))},"Zi"),"yt-video-description-youchat-section-view-model",{props:{data:_.YX}});var N5=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return Y};
_.P(N5,_.F);_.g=N5.prototype;
_.g.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}}}}}};
_.g.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.g.dataChanged=function(){var Y,b;this.hasDescriptionOnly=!(((Y=this.data)==null?void 0:(b=Y.items)==null?void 0:b.length)!==1||!_.v(this.data.items[0],V8d))};
_.g.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.g.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.g.autoFocusDescription=function(){var Y;((Y=_.fH().resolve(_.HQ(_.mu)))==null?0:Y.isKeyBoardInUse())&&this.description&&_.uS(this.description)};
_.g.resize=function(){if(_.q("kevlar_disable_sd_resize"))this.JSC$20216_cardList&&_.Ua(this.JSC$20216_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Ua(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Ua(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.g.scrollToSection=function(Y){if(Y=this.getSectionElement(Y))_.Xx(this.hostElement,"yt-scroll-to-watch-element",[Y]),Y.focus()};
_.g.getSectionElement=function(Y){switch(Y){case "infocards-item-section":var b;return(b=this.infocardsSection)!=null?b:null;case "transcript-item-section":var w;return(w=this.transcriptSection)!=null?w:null;case "how-this-was-made-section-item-section":var V;return(V=this.howThisWasMadeSection)!=null?V:null;case "files-item-section":var H;return(H=this.filesSection)!=null?H:null;default:return null}};
_.g.handleSetActiveItemAction=function(Y){var b=_.v(Y,Bed),w=b&&(b==null?void 0:b.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20216_cardList;if(b&&w){Y=this.currentActiveChapter;var V=this.currentActiveProblem;b=w==null?void 0:w.getItemByIndex(b.itemIndex);var H=w=!0;b&&(b.active=!0,b.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(w=Y!==b,H=!1,this.currentActiveChapter=b):(b==null?void 0:b.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(w=!1,H=V!==b,this.currentActiveProblem=b));Y&&w&&(Y.active=!1);V&&H&&(V.active=!1)}};
_.up.Object.defineProperties(N5.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.q("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
N5.prototype.onYtExpanderMoreTapped=N5.prototype.onYtExpanderMoreTapped;N5.prototype.onHiddenChanged=N5.prototype.onHiddenChanged;N5.prototype.dataChanged=N5.prototype.dataChanged;N5.prototype.panelContentVisibleChanged=N5.prototype.panelContentVisibleChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],N5.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.Li),_.K("design:type",Object)],N5.prototype,"ironResizableBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],N5.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],N5.prototype,"panelContentVisible",void 0);_.z([_.R(),_.K("design:type",Boolean)],N5.prototype,"hasDescriptionOnly",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],N5.prototype,"inlineStructuredDescription",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],N5.prototype,"hidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],N5.prototype,"shortsPanel",void 0);_.z([_.R(),_.K("design:type",Object)],N5.prototype,"videoSummary",void 0);_.z([_.R(),_.K("design:type",Object)],N5.prototype,"merchShelf",void 0);
_.z([_.t("videoSummary"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],N5.prototype,"showVideoSummary",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],N5.prototype,"engagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],N5.prototype,"watchWhileSdp",void 0);_.z([_.xZ("ytd-expandable-video-description-body-renderer"),_.K("design:type",Object)],N5.prototype,"description",void 0);
_.z([_.xZ("ytd-horizontal-card-list-renderer"),_.K("design:type",Object)],N5.prototype,"JSC$20216_cardList",void 0);_.z([_.xZ("ytd-horizontal-card-list-renderer[center-items]"),_.K("design:type",Object)],N5.prototype,"problemWalkthroughCardList",void 0);_.z([_.xZ("ytd-shelf-renderer"),_.K("design:type",Object)],N5.prototype,"shelfSection",void 0);_.z([_.xZ("ytd-video-description-music-section-renderer"),_.K("design:type",Object)],N5.prototype,"musicMetadataSection",void 0);
_.z([_.xZ("ytd-video-description-infocards-section-renderer"),_.K("design:type",Object)],N5.prototype,"infocardsSection",void 0);_.z([_.xZ("ytd-video-description-transcript-section-renderer"),_.K("design:type",Object)],N5.prototype,"transcriptSection",void 0);_.z([_.xZ("how-this-was-made-section-view-model"),_.K("design:type",Object)],N5.prototype,"howThisWasMadeSection",void 0);_.z([_.xZ("ytd-video-description-files-section-renderer"),_.K("design:type",Object)],N5.prototype,"filesSection",void 0);
_.z([_.lr("panelContentVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N5.prototype,"panelContentVisibleChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N5.prototype,"dataChanged",null);_.z([_.lr("hidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N5.prototype,"onHiddenChanged",null);
_.z([_.kZ("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],N5.prototype,"onYtExpanderMoreTapped",null);_.z([_.S({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],N5);
_.a(N5,"ytd-structured-description-content-renderer",function(){if(rVX!==void 0)return rVX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return rVX=Y},{mode:2});var zZN;var WaX;var Es=function(){return _.F.apply(this,arguments)||this};
_.P(Es,_.F);Es.prototype.computeAriaLabel=function(Y){var b,w;return(Y==null?void 0:(b=Y.accessibility)==null?void 0:(w=b.accessibilityData)==null?void 0:w.label)||_.sa("LOADING",void 0,"Loading")};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Es.prototype,"data",void 0);_.z([_.R({computed:"computeAriaLabel(data)"}),_.K("design:type",String)],Es.prototype,"ariaLabel",void 0);_.z([_.FM({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Es);
_.a(Es,"yt-content-loading-renderer",function(){if(WaX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-content-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_content_loading_renderer.yt.content.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[data.useSpinner]]" alt="[[ariaLabel]]" class="style-scope yt-content-loading-renderer">\n</tp-yt-paper-spinner>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;zZN===void 0&&(zZN=document.createElement("template"));var V=zZN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);WaX=Y}Y=WaX;return Y},{mode:_.Xd("kevlar_poly_si_batch_j043")?1:2});_.f_(_.b8(function(Y){var b=_.N(_.kw(!1,void 0,"WbYeXc")),w=b.next().value,V=b.next().value;b=_.N(_.kw(!1,void 0,"msXkzc"));var H=b.next().value,f=b.next().value;_.dx(function(){var X=_.v(Y.data().collaboratePlaylistCollaborationSetting,C9Q);X&&V(X.switchedOnByDefault);var I=_.v(Y.data().allowNewCollaboratorsPlaylistCollaborationSetting,C9Q);I&&f(I.switchedOnByDefault);if(!X&&!I||!X&&Y.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")V(!0),f(!0)});
var E=function(X){V(X);f(X);var I=Y.data().playlistCollaborationEntityKey||"";var k=_.jm().getState();(k=_.kt(k.entities,"playlistCollaborationEntity",I))&&(k==null?void 0:k.isCollaborative)===X||_.jm().dispatch(_.qo("playlistCollaborationEntity",I,Object.assign({},k,{isCollaborative:X})))},U=function(X){f(X)};
return _.m("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.m("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.m(_.OH,{data:function(){return Y.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(X){return _.m(_.ooC,{data:X.data,
onSwitch:E})}})),_.m(_.h,{cond:w,
then:function(){return _.m("div",null,_.m("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.m(_.OH,{data:function(){return Y.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(X){return _.m(_.ooC,{data:X.data,
onSwitch:U,overrideDisabled:!1})}})),_.m(_.h,{cond:H,
then:function(){return _.m("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.m(_.OH,{data:function(){return Y.data().copyLinkButton}},{buttonViewModel:_.a1}))}}),_.m("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.m(_.OH,{data:function(){return Y.data().playlistCollaborators}},{contentListItemViewModel:_.b2O})))}}))},"$i"),"playlist-collaboration-view-model",{props:{data:_.YX}});var Kas=_.b8(function(Y){var b=Y.data;var w=Y.customCommandResolver;return _.m(_.Uz,null,_.m("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.m(_.OH,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(V){return _.m(_.u7o,{data:V.data,
customCommandResolver:w})}})),_.m("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.m(_.h,{cond:function(){return b().headline},
then:function(V){return _.m(_.wv,{text:V,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.m("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.m(_.OH,{data:function(){return b().adBadge}},{adBadgeViewModel:function(V){return _.m(_.Hl,{data:V.data,
hasDot:function(){return b().primaryDetailsLine!==void 0},
customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.m(_.OH,{data:function(){return b().primaryDetailsLine}},{adDetailsLineViewModel:function(V){return _.m(_.gz,{data:V.data,
customCommandResolver:w,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"aj"),iOA=_.b8(function(Y){var b=Y.data;
var w=Y.customCommandResolver;Y=_.GM("ad-avatar-lockup-view-model");_.Jd(Y,function(){return b().interaction},w);
_.H6(Y,{visibilityCallback:function(V){var H,f=(H=b().interaction)==null?void 0:H.onFirstVisible;V&&f&&_.AA(f)},
showOption:_.uZ});return _.m("ad-avatar-lockup-view-model",{class:function(){var V;return((V=b().interaction)==null?0:V.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:Y,"aria-label":function(){var V,H;return(V=b().interaction)==null?void 0:(H=V.accessibility)==null?void 0:H.label}},_.m(_.e4,null,_.m(_.n7,{when:function(){return b().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.m(Kas,{data:b,
customCommandResolver:w})}),_.m(_.M$,null,function(){return null})))},"bj");_.f_(_.b8(function(Y){var b=Y.data;var w=Y.panelContentVisibility;Y=_.GM("panel-ad-header-image-lockup-view-model");_.Jd(Y,function(){return b().interaction},W9I);
_.H6(Y,{visibilityCallback:function(H){var f,E=(f=b().interaction)==null?void 0:f.onFirstVisible;H&&E&&_.AA(E)},
showOption:_.uZ});_.a2(function(){var H,f;if(f=_.Aq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var E;f=(E=f())==null?void 0:E.onLayoutVisibleCallback}else f=null;(H=f)==null||H()});
var V=function(){return w()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.m("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:Y},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.m(_.h,{cond:_.W9g("(min-width: "+((0,_.e$)()+_.L6)+"px) or (max-width: 600px)"),then:function(){return _.m(_.OH,{data:function(){return b().adImage}},{adImageViewModel:function(H){return _.m(_.kJ,{data:H.data,
targetHeight:80,customCommandResolver:W9I})}})}})),_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.m(_.OH,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(H){return _.m(iOA,{data:H.data,
customCommandResolver:W9I})}})),_.m(_.h,{cond:V,
then:function(){return _.m(_.OH,{data:function(){return b().adButton}},{adButtonViewModel:function(H){return _.m(_.bP,{data:H.data,
customCommandResolver:W9I})}})},
else:function(){return _.m(_.OH,{data:function(){return b().menu}},{buttonViewModel:_.a1})}}),_.m("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.m(_.OH,{data:function(){var H=_.v(b().toggleButton,_.ns);
return{toggleButtonViewModel:Object.assign({},H,{isTogglingDisabled:!0,isToggled:V()})}}},{toggleButtonViewModel:_.td})))))},"cj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.YX,
panelContentVisibility:_.YX}});_.f_(_.b8(function(Y){var b=function(){return _.v(Y.data().inputComposerViewModel,yTs)},w=function(){var Z;
return((Z=b())==null?void 0:Z.youchatPendingResponseEntityKey)||""},V=_.xh(_.s4g,w),H=function(){var Z;
return!((Z=V())==null||!Z.isPendingResponse)},f=_.N(_.kw(!0,void 0,"DR0q1d")),E=f.next().value,U=f.next().value,X=function(){return b().sectionTargetId||"youchat_messages_section"};
f=_.TM("yt-chat-input-view-model");var I=_.GM("textarea"),k=_.xh(pSd,"chat_input_view_model_state"),l=OWg(),x=function(){var Z;return!((Z=k())==null||!Z.value)};
_.dx(function(){var Z;if(!x()&&((Z=b())==null?0:Z.welcomeFeatureContinuation)){Z={continuationCommand:{token:b().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var e,O=String(Math.floor(((e=_.mZ())==null?void 0:e.getCurrentTime())||0)*1E3);e={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:O}};_.WP(Z,{form:{formData:e}});l(!0)}var L=X(),r;(r=_.fH().resolve(_.HQ(_.Mx)))==null||r.addEventListener("yt-navigate-start",function(){_.Mo.remove(L);l(!1)},
{once:!0})});
var Q=function(){var Z,e,O,L,r,C,W,y,G;return _.c(function(Nr){Z=I.value.value;I.value.value="";K9t(I.value);e=iWd(X(),Z);_.WP(e);O=_.Q4t(w());_.AA(((L=b())==null?void 0:L.onSubmitCommand)||{});O(!0);C=String(Math.floor(((r=_.mZ())==null?void 0:r.getCurrentTime())||0)*1E3);y={continuationCommand:{token:(W=b())==null?void 0:W.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};G={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:Z,playerOffsetMs:C}};_.WP(y,{form:{formData:G},
commandController:{onSuccess:function(){O(!1)},
onServerError:function(){var o6=X();_.WP({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:o6}}]}}});O(!1)}}});
_.om(Nr)})};
return _.m("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:f},_.m("div",{class:"chatInputViewModelChatInputWrapper"},_.m("form",{class:"chatInputViewModelChatInputForm"},_.m("textarea",{class:"chatInputViewModelChatInput",el:I,"on:keydown":_.Q_(function(Z){var e=H()||!1;K9t(I.value);e||Z.key!=="Enter"||Z.shiftKey||(Z.preventDefault(),Q());return!1}),
"on:keyup":_.Q_(function(){U(I.value.value.length===0);return!1}),
placeholder:function(){var Z,e;var O=_.v((e=b())==null?void 0:e.inputFormField,vzQ);return O==null?void 0:(Z=O.contentProperties)==null?void 0:Z.placeholderText},
rows:1}),_.m(_.a1,{data:function(){return _.v(Y.data().sendButton,_.Bv)},
onClick:function(Z){Z.preventDefault();Q();U(I.value.value.length===0)},
buttonOverrides:function(){return{disabled:E()||H()}}})),_.m(_.wv,{className:"chatInputViewModelChatDisclaimer",
text:function(){var Z;return(Z=_.v(Y.data().disclaimer,_.IW5))==null?void 0:Z.text}})))},"dj"),"yt-chat-input-view-model",{props:{data:_.YX}});var AVt=["engagement-panel-clip-create","engagement-panel-clip-view"],CDt=0,cF=function(){var Y=_.F.apply(this,arguments)||this;var b;Y.headerData=(b=Y.data)==null?void 0:b.header;Y.darkerPanels=_.q("web_watch_darker_panels");Y.matchContentTheme=_.q("web_watch_panel_content_match_theme");Y.disableAutoFill=!1;Y.isFullscreen=!1;Y.isTheaterMode=!1;Y.modernPanels=_.q("kevlar_watch_modern_panels");Y.liveChatReplyPanel=!1;Y.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");Y.disableBackdropFilter=
_.q("web_disable_backdrop_filter");Y.trackEngagementPanelVisibility=_.q("web_watch_track_engagement_panel_visibility");Y.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction","yt-scroll-to-engagement-panel-command":"onYtScrollToEngagementPanelCommand","yt-update-engagement-panel-action":"onYtUpdateEngagementPanelAction","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction"};
return Y};
_.P(cF,_.F);_.g=cF.prototype;
_.g.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(Y){var b;
return(Y==null?void 0:(b=Y.webComponentHint)==null?void 0:b.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.g.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var Y;if((Y=this.hostElement.parentElement)==null?0:Y.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.g.detached=function(){this.updateTheaterDisablement()};
_.g.showPanel=function(){var Y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Lb.addJob(function(){Y.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.g.maybeScrollToItemSection=function(Y){var b=this,w,V=Y==null?void 0:(w=Y.sectionListEngagementPanelExtras)==null?void 0:w.scrollToItemSectionIdentifier;V&&_.Lb.addJob(function(){var H;(H=b.sectionListRendererElement)==null||H.scrollToItemSection(V)},8)};
_.g.hidePanel=function(){var Y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Lb.addJob(function(){Y.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.g.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.g.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.g.updatePanel=function(Y,b,w,V){var H=this;if((Y=Y==null?void 0:Y.engagementPanelSectionListRenderer)||V){if(Y){V=Y.header;var f=Y.content,E=Y.footer;(Y=Y.targetId)&&this.set("data.targetId",Y);V&&this.set("data.header",V);f&&this.set("data.content",f);E&&this.set("data.footer",E)}else V&&(Y=V.content,f=V.secondaryHeaderContent,(V=V.targetId)&&this.set("data.targetId",V),Y&&this.set("data.content",Y),f&&(this.secondaryHeaderData=f));this.updateChildVisibilityProperties();if(b){var U;_.q("kevlar_update_panel_focus_scroll_killswitch")||
(U={preventScroll:!0});this.focus(U)}_.TC(this,function(){_.Ua(H.hostElement,"yt-refit");H.maybeScrollToItemSection(w)})}};
_.g.computeHeaderData=function(){var Y,b=(0,_.BL.unsafeClone)((Y=this.data)==null?void 0:Y.header);if(b){Y=new _.A(Object.keys(b)[0]);var w=_.v(b,Y),V=_.v(this.secondaryHeaderData,Y);V&&_.Fd(b,Y,Object.assign({},V,w))}return b};
_.g.getReloadContinuation=function(){var Y,b,w,V=_.N(((Y=this.data)==null?void 0:(b=Y.content)==null?void 0:(w=b.sectionListRenderer)==null?void 0:w.continuations)||[]);for(Y=V.next();!Y.done;Y=V.next())if(Y=Y.value,Y.reloadContinuationData)return Y.reloadContinuationData.continuation};
_.g.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var Y;((Y=this.data)==null?0:Y.targetId)&&(Y=this.contentElement.firstElementChild)&&Y.setAttribute("panel-target-id",this.data.targetId)};
_.g.forwardPopupClosedToFlowRootRenderer=function(){var Y=_.E6(this.hostElement).querySelector("ytd-flow-root-renderer");if(Y)Y.onPopupClosed()};
_.g.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var Y;if(!AVt.includes((Y=this.theaterDisablementPanelIdentifier)!=null?Y:""))if(Y=_.q("web_watch_imax_theater_mode")&&this.isTheaterMode,Y=_.q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||Y,_.q("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||Y){var b;this.visibility=(b=this.data)==null?void 0:b.visibility;var w;this.trackEngagementPanelVisibility&&((w=this.data)==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var V,H,f,E;this.contentEmpty=!!(((V=this.data)==null?0:(H=V.content)==null?0:H.structuredDescriptionContentRenderer)&&Object.keys((f=this.data)==null?void 0:(E=f.content)==null?void 0:
E.structuredDescriptionContentRenderer).length===0);(b=_.fH().resolve(_.Za))&&b.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.g.isTheaterModeChanged=function(){_.q("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.g.isFullscreenChanged=function(){_.q("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.g.focus=function(Y){if(this.header)this.header.focus(Y);else{var b;(b=_.E6(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||b.focus(Y)}};
_.g.visibilityChanged=function(){if(!_.q("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var Y=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",w=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=V||!this.lastVisibility,f,E,U=(f=this.data)==null?void 0:(E=f.identifier)==null?void 0:E.tag,
X;if(((X=this.data)==null?0:X.onShowCommands)&&Y&&H)_.IP(this.hostElement,this.data.onShowCommands,this.hostElement),U&&_.u3().dispatch(_.Uf({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:U}}));else{var I;((I=this.data)==null?0:I.onHideCommands)&&b&&w&&(_.IP(this.hostElement,this.data.onHideCommands,this.hostElement),U&&_.u3().dispatch(_.Uf({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:U}})))}Y&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*CDt++));_.q("kevlar_watch_focus_on_engagement_panels")&&
Y&&V&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.g.notifyVisibilityChanged=function(Y){var b;_.De(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,Y,(b=this.data)==null?void 0:b.targetId])};
_.g.updateTheaterDisablement=function(){if(!_.q("kevlar_watch_theater_disablement_killswitch")){var Y=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&AVt.includes(Y)&&!_.q("watch_next_grid_ignore_disallowed_panels")){var b=_.zI(_.u3().getState()),w=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";Y!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():w?(this.originalTheaterState===void 0&&(this.originalTheaterState=b,this.theaterDisablementPanelIdentifier=
Y),b&&_.Xx(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.g.clearTheaterDisablement=function(){_.Xx(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.g.updateChildVisibilityProperties=function(){this.hostElement||_.q("kevlar_panel_property_init_killswitch")||this._enableProperties();var Y=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=Y);var b,w=(b=this.headerElement)==null?void 0:b.firstElementChild;if(w&&!this.adHeaderImageLockupViewModel){b=Y==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";w.collapsed=b;w=_.E6(w).querySelector("#visibility-button");if(!w)return;(w=w.firstElementChild)&&
w.polymerController.is==="ytd-toggle-button-renderer"&&w.polymerController.data.isToggled!==b&&w.polymerController.set("data.isToggled",b)}var V;if(b=(V=this.contentElement)==null?void 0:V.firstElementChild)if(Y&&Y!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")b.removeAttribute("panel-content-visible");else{b.setAttribute("panel-content-visible","");var H;(H=b.markDirty)==null||H.call(b)}};
_.g.onYtChangeEngagementPanelVisibilityAction=function(Y){var b=this,w,V=(w=this.data)==null?void 0:w.targetId,H,f,E;w=((H=this.data)==null?void 0:(f=H.identifier)==null?void 0:f.tag)||((E=this.data)==null?void 0:E.panelIdentifier);var U=_.v(Y,_.QyK),X;Y=V&&(U==null?void 0:U.targetId)===V||w&&(U==null?void 0:(X=U.panelIdentifier)==null?void 0:X.tag)===w;this.dialog&&Y&&(U==null?void 0:U.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(V==="engagement-panel-comments-section"?_.Xx(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Xx(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",w]));!_.q("kevlar_use_engagement_panel_management_component")&&Y&&(V=U.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!V?_.Lb.addJob(function(){b.visibility=U.visibility},2,this.hideDelayMs):this.visibility=U.visibility,U.visibility&&this.notifyVisibilityChanged(U.visibility))};
_.g.onYtScrollToEngagementPanelCommand=function(Y){var b,w=(b=this.data)==null?void 0:b.targetId,V,H,f;b=((V=this.data)==null?void 0:(H=V.identifier)==null?void 0:H.tag)||((f=this.data)==null?void 0:f.panelIdentifier);Y=_.v(Y,_.R0Q);var E;(w&&(Y==null?void 0:Y.targetId)===w||b&&(Y==null?void 0:(E=Y.panelIdentifier)==null?void 0:E.tag)===b)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Xx(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.g.attachVEs=function(Y){var b,w;(Y==null?0:(b=Y.content)==null?0:(w=b.productListRenderer)==null?0:w.trackingParams)&&_.Qd().graftServerVe(Y.content.productListRenderer.trackingParams);var V,H;(Y==null?0:(V=Y.content)==null?0:(H=V.transcriptRenderer)==null?0:H.trackingParams)&&_.Qd().graftServerVe(Y.content.transcriptRenderer.trackingParams)};
_.g.onYtUpdateEngagementPanelAction=function(Y){var b,w=(b=this.data)==null?void 0:b.targetId;Y=_.v(Y,MJF);w&&(Y==null?void 0:Y.targetId)===w&&(this.updatePanel({engagementPanelSectionListRenderer:{header:Y==null?void 0:Y.header,content:Y==null?void 0:Y.content}},!1),this.attachVEs(Y))};
_.g.onYtShowEngagementPanelScrimAction=function(Y){var b,w=(b=this.data)==null?void 0:b.targetId;Y=_.v(Y,nzt);w&&(Y==null?void 0:Y.engagementPanelTargetId)===w&&(this.scrimmed=!0)};
_.g.onYtHideEngagementPanelScrimAction=function(Y){var b,w=(b=this.data)==null?void 0:b.targetId;Y=_.v(Y,Zrd);w&&(Y==null?void 0:Y.engagementPanelTargetId)===w&&(this.scrimmed=!1)};
_.g.getIdentifier=function(){var Y,b,w;return((Y=this.data)==null?void 0:Y.panelIdentifier)||((b=this.data)==null?void 0:(w=b.identifier)==null?void 0:w.tag)};
_.g.getSurface=function(){var Y,b;return(Y=this.data)==null?void 0:(b=Y.identifier)==null?void 0:b.surface};
_.up.Object.defineProperties(cF.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var Y=this.getIdentifier();return Y==="engagement-panel-youchat"||Y==="PAyouchat"}}});
cF.prototype.visibilityChanged=cF.prototype.visibilityChanged;cF.prototype.isFullscreenChanged=cF.prototype.isFullscreenChanged;cF.prototype.isTheaterModeChanged=cF.prototype.isTheaterModeChanged;cF.prototype.dataChanged=cF.prototype.dataChanged;cF.prototype.forwardPopupClosedToFlowRootRenderer=cF.prototype.forwardPopupClosedToFlowRootRenderer;cF.prototype.onYtRendererstamperFinished=cF.prototype.onYtRendererstamperFinished;
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],cF.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],cF.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],cF.prototype,"ytEventForwardingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],cF.prototype,"data",void 0);
_.z([_.R({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.K("design:type",Object)],cF.prototype,"headerData",void 0);_.z([_.R(),_.K("design:type",Object)],cF.prototype,"secondaryHeaderData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"visibility",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cF.prototype,"contentEmpty",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cF.prototype,"scrimmed",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cF.prototype,"dialog",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cF.prototype,"dropdown",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"darkerPanels",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"matchContentTheme",void 0);_.z([_.R(),_.K("design:type",Object)],cF.prototype,"disableAutoFill",void 0);
_.z([_.R({reflectToAttribute:!0,value:_.q("optimal_reading_width_comments_ep")}),_.K("design:type",Boolean)],cF.prototype,"optimalReadingWidthComments",void 0);_.z([_.R(),_.K("design:type",Number)],cF.prototype,"hideDelayMs",void 0);_.z([_.R({selector:_.Wv,reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"isFullscreen",void 0);_.z([_.R({selector:_.zI,reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"isTheaterMode",void 0);
_.z([_.R(),_.K("design:type",Number)],cF.prototype,"showDelayMs",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.targetId"),_.K("design:type",Object),_.K("design:paramtypes",[])],cF.prototype,"targetId",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],cF.prototype,"webSize",null);_.z([_.R(),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],cF.prototype,"hideFooterBorder",null);
_.z([_.R(),_.K("design:type",Object)],cF.prototype,"isWatch",void 0);_.z([_.R(),_.K("design:type",Object)],cF.prototype,"originalTheaterState",void 0);_.z([_.R(),_.K("design:type",Object)],cF.prototype,"theaterDisablementPanelIdentifier",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"modernPanels",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cF.prototype,"isWatchWhilePanel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cF.prototype,"shortsPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],cF.prototype,"liveChatEngagementPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"liveChatReplyPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"enableAnchoredPanel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],cF.prototype,"disableBackdropFilter",void 0);_.z([_.R(),_.K("design:type",Object)],cF.prototype,"trackEngagementPanelVisibility",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],cF.prototype,"headerElement",void 0);_.z([_.xZ("#header > *"),_.K("design:type",HTMLElement)],cF.prototype,"header",void 0);_.z([_.xZ("ytd-section-list-renderer"),_.K("design:type",Object)],cF.prototype,"sectionListRendererElement",void 0);
_.z([_.xZ("panel-ad-header-image-lockup-view-model"),_.K("design:type",HTMLElement)],cF.prototype,"adHeaderImageLockupViewModel",void 0);_.z([_.xZ("#content"),_.K("design:type",HTMLElement)],cF.prototype,"contentElement",void 0);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cF.prototype,"onYtRendererstamperFinished",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cF.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.z([_.vX("data","isFullscreen","isTheaterMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cF.prototype,"dataChanged",null);_.z([_.lr("isTheaterMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cF.prototype,"isTheaterModeChanged",null);
_.z([_.lr("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cF.prototype,"isFullscreenChanged",null);_.z([_.lr("visibility"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],cF.prototype,"visibilityChanged",null);_.z([_.S({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],cF);
_.a(cF,"ytd-engagement-panel-section-list-renderer",function(){if(I6I!==void 0)return I6I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="content" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n<div id="footer" class="style-scope ytd-engagement-panel-section-list-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return I6I=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var yVg;var Us=function(){var Y=_.F.apply(this,arguments)||this;Y.lastRenderedPanelIds=new Set;Y.visiblePanels=[];Y.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return Y};
_.P(Us,_.F);_.g=Us.prototype;_.g.dataChanged=function(){if(this.data){for(var Y=[],b=_.N(this.data),w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0,H=void 0,f=(V=w)==null?void 0:(H=V.engagementPanelSectionListRenderer)==null?void 0:H.visibility;H=V=void 0;((V=w)==null?0:(H=V.engagementPanelSectionListRenderer)==null?0:H.targetId)&&f!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Y.push(w)}this.visiblePanels=Y}else this.visiblePanels=[]};
_.g.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}}};
_.g.withoutVisiblePanelById=function(Y){return this.visiblePanels.filter(function(b){var w;return((w=b.engagementPanelSectionListRenderer)==null?void 0:w.targetId)!==Y})};
_.g.onYtChangeEngagementPanelVisibilityAction=function(Y){var b=this,w=_.v(Y,_.QyK);if(this.data&&(w==null?0:w.targetId)&&(w==null?0:w.visibility)){var V,H=(V=this.data.find(function(E){var U;return((U=E.engagementPanelSectionListRenderer)==null?void 0:U.targetId)===w.targetId}))==null?void 0:V.engagementPanelSectionListRenderer;
if(H){var f=this.withoutVisiblePanelById(w.targetId);w.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Y=this.data.find(function(E){var U;return((U=E.engagementPanelSectionListRenderer)==null?void 0:U.targetId)===w.targetId}))&&(f=[Y].concat(_.Bt(f)));
this.hideDelayMs&&w.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&f.length===0?_.Lb.addJob(function(){H.visibility=w.visibility;b.visiblePanels=f},10,this.hideDelayMs):(H.visibility=w.visibility,this.visiblePanels=f);
_.De(this.hostElement,"yt-engagement-panels-visible-changed",[f])}}};
_.g.onRendererstamperFinished=function(){var Y=new Set(this.visiblePanels.map(function(b){var w;return(w=b.engagementPanelSectionListRenderer)==null?void 0:w.targetId}));
this.handlePanelVisibilityChange(Y,this.lastRenderedPanelIds);this.lastRenderedPanelIds=Y};
_.g.handlePanelVisibilityChange=function(Y,b){Y=Y===void 0?new Set:Y;b=b===void 0?new Set:b;if(this.data)for(var w=_.N(this.data),V=w.next();!V.done;V=w.next()){V=V.value;var H=void 0,f=void 0,E=(H=V)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:f.targetId;if(E&&(H=b.has(E),f=Y.has(E),E=void 0,!H&&f?(f=H=void 0,E=(H=V)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:f.onShowCommands):H&&!f&&(f=H=void 0,E=(H=V)==null?void 0:(f=H.engagementPanelSectionListRenderer)==
null?void 0:f.onHideCommands),E))for(V=_.N(E),E=V.next();!E.done;E=V.next())this.ytComponentBehavior.resolveCommand(E.value)}};
Us.prototype.onRendererstamperFinished=Us.prototype.onRendererstamperFinished;Us.prototype.dataChanged=Us.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Us.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Us.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Us.prototype,"lastRenderedPanelIds",void 0);_.z([_.R(),_.K("design:type",Number)],Us.prototype,"hideDelayMs",void 0);_.z([_.R(),_.K("design:type",Array)],Us.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Array)],Us.prototype,"visiblePanels",void 0);_.z([_.R(),_.K("design:type",Boolean)],Us.prototype,"isWatchWhilePanel",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Us.prototype,"dataChanged",null);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Us.prototype,"onRendererstamperFinished",null);_.z([_.S({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Us);
_.a(Us,"ytd-watch-engagement-panels",function(){if(yVg!==void 0)return yVg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-engagement-panels--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="panels" class="style-scope ytd-watch-engagement-panels"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return yVg=Y},{mode:1});var $OI;var Xm=function(){return _.F.apply(this,arguments)||this};
_.P(Xm,_.F);Xm.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.iH(_.E6(this.hostElement).querySelector("#text"),_.pgk(_.Rqd,this.data.companionLegalText))};
Xm.prototype.computeAutoScrollEnabled=function(Y,b){return Y&&!b};
Xm.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Xm.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Xm.prototype.expandedChanged=Xm.prototype.expandedChanged;Xm.prototype.dataChanged=Xm.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.zpO),_.K("design:type",Object)],Xm.prototype,"ytdAutoScrollBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Xm.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Xm.prototype,"expanded",void 0);
_.z([_.R({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.K("design:type",Boolean)],Xm.prototype,"autoScrollEnabled",void 0);_.z([_.R(),_.K("design:type",String)],Xm.prototype,"expanderIcon",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xm.prototype,"dataChanged",null);
_.z([_.lr("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xm.prototype,"expandedChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Xm);
_.a(Xm,"ytd-companion-legal-text-renderer",function(){if($OI!==void 0)return $OI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-legal-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" text="[[data.companionLegalText]]" class="style-scope ytd-companion-legal-text-renderer"></yt-formatted-string>\n\n<tp-yt-paper-material id="expand-button" elevation="1" on-tap="onToggleTap" class="style-scope ytd-companion-legal-text-renderer">\n  <yt-icon-button id="expander-icon" class="style-scope ytd-companion-legal-text-renderer">\n    <yt-icon id="expander-icon" icon="[[expanderIcon]]" class="style-scope ytd-companion-legal-text-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $OI=Y},{mode:1});var jlg;var D3=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonUpdate=_.q("web_modern_buttons");Y.kevlarWatchGrid=_.q("kevlar_watch_grid");Y.centerAlignDescription=_.q("action_companion_center_align_description");Y.truncateDomain=_.q("action_companion_truncate_domain");return Y};
_.P(D3,_.F);_.g=D3.prototype;_.g.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.g.getOnLayoutVisibleCallback=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.g.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",D3.JSC$20263_DEFAULT_AD_BADGE_RENDERER);var Y=this.getOnLayoutVisibleCallback();Y&&Y()}};
_.g.getButtonRenderer=function(Y){return Y.actionButton&&_.v(Y.actionButton,_.Wa)?(delete _.v(Y.actionButton,_.Wa).navigationEndpoint,_.v(Y.actionButton,_.Wa)):{}};
_.g.onClick=function(Y){var b=this;if((!_.q("web_modern_buttons")||!_.uA(_.JL(Y),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){Y=_.V4();var w=this.getLayoutId();Y&&w&&_.q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(V){(new _.nc(V)).executeCommand(b.data.navigationEndpoint,w)}):_.q("kevlar_companion_resolve_command_killswitch")?_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Xx(this.hostElement,"yt-companion-ad-clicked",["action-companion",w])}};
_.up.Object.defineProperties(D3.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?0:(b=Y.detailsLine)==null?0:(w=b.adRating)==null?0:w.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return((Y=this.data)==null?0:(b=Y.detailsLine)==null?0:(w=b.adRating)==null?0:(V=w.ratingIcon)==null?0:V.iconType)?_.IR(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return((Y=this.data)==null?0:(b=Y.detailsLine)==null?0:(w=b.texts)==null?0:(V=w[0])==null?0:V.text)?this.data.detailsLine.texts[0].text:null}},
computeDetailsLineHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDetailsLine}},
getDescriptionText:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?0:(b=Y.description)==null?0:b.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var Y=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return Y?Y.indexOf("/default_banner")!==-1:!0}}});
D3.prototype.onClick=D3.prototype.onClick;D3.prototype.dataChanged=D3.prototype.dataChanged;D3.JSC$20263_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],D3.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],D3.prototype,"rendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],D3.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],D3.prototype,"buttonUpdate",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],D3.prototype,"kevlarWatchGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],D3.prototype,"centerAlignDescription",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],D3.prototype,"truncateDomain",void 0);
_.z([_.R({computed:"computeButtonOverride(buttonUpdate)"}),_.K("design:type",Object)],D3.prototype,"buttonOverride",void 0);_.z([_.t("data.detailsLine.adRating.ratingText"),_.K("design:type",Object),_.K("design:paramtypes",[])],D3.prototype,"getRating",null);_.z([_.t("getRating"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],D3.prototype,"computeRatingHidden",null);
_.z([_.t("data.detailsLine.adRating.ratingIcon.iconType"),_.K("design:type",Object),_.K("design:paramtypes",[])],D3.prototype,"iconType",null);_.z([_.t("data.detailsLine.texts.0.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],D3.prototype,"getDetailsLine",null);_.z([_.t("getDetailsLine"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],D3.prototype,"computeDetailsLineHidden",null);
_.z([_.t("data.description.text"),_.K("design:type",Object),_.K("design:paramtypes",[])],D3.prototype,"getDescriptionText",null);_.z([_.t("getDescriptionText"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],D3.prototype,"computeDescriptionTextHidden",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],D3.prototype,"interactionLoggingClientData",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],D3.prototype,"hideBanner",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],D3.prototype,"dataChanged",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],D3.prototype,"onClick",null);_.z([_.S({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],D3);
_.a(D3,"ytd-action-companion-ad-renderer",function(){if(jlg!==void 0)return jlg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-action-companion-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="action-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-action-companion-ad-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div id="action-companion-click-target" class="yt-simple-endpoint style-scope ytd-action-companion-ad-renderer">\n  <yt-img-shadow id="banner" fit="" hidden="[[hideBanner]]" thumbnail="[[data.bannerImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer">\n  </yt-img-shadow>\n  <div id="block" class="style-scope ytd-action-companion-ad-renderer">\n    <yt-img-shadow id="icon" thumbnail="[[data.iconImage.thumbnail]]" class="style-scope ytd-action-companion-ad-renderer"></yt-img-shadow>\n    <div id="text" class="style-scope ytd-action-companion-ad-renderer">\n      <div id="header" class="style-scope ytd-action-companion-ad-renderer">\n        [[data.headline.text]]\n      </div>\n      <div id="desc" class="style-scope ytd-action-companion-ad-renderer">\n        <div id="ad-badge-container" class="style-scope ytd-action-companion-ad-renderer">\n          <ytd-badge-supported-renderer id="ad-badge" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-action-companion-ad-renderer">\n          </ytd-badge-supported-renderer>\n        </div>\n        <span id="domain" hidden="[[computeDescriptionTextHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDescriptionText]]</span>\n        <span id="rating" hidden="[[computeRatingHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getRating]]</span>\n        <yt-icon id="star-icon" default-to-filled="true" hidden="[[computeRatingHidden]]" icon="[[iconType]]" class="style-scope ytd-action-companion-ad-renderer"></yt-icon>\n        <span id="details-line" hidden="[[computeDetailsLineHidden]]" class="style-scope ytd-action-companion-ad-renderer">[[getDetailsLine]]</span>\n      </div>\n    </div>\n    <ytd-button-renderer id="action" button-raised="" data="[[getButtonRenderer(data)]]" overrides="[[buttonOverride]]" class="style-scope ytd-action-companion-ad-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return jlg=Y},{mode:_.Xd("kevlar_poly_si_batch_j067")?1:2});var Gyg;var T8b;var mc=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonUpdate=_.q("web_modern_buttons");Y.hideLegacyBanner=_.q("enable_dsa_one_click_ata_translators_infeed_elements");Y.adInfoButtonStyle="mono";Y.adInfoButtonType="text";Y.noDotAdBadge=!0;return Y};
_.P(mc,_.F);_.g=mc.prototype;_.g.getOnLayoutVisibleCallback=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.g.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var Y=this.data.image.thumbnail.thumbnails[0];this.imageSrc=Y.url?_.PN(Y.url):void 0;this.imageWidth=Y.width||0;this.imageHeight=Y.height||0}this.data.clickthroughEndpoint&&_.v(this.data.clickthroughEndpoint,_.Ah)&&(Y=_.v(this.data.clickthroughEndpoint,_.Ah).url,_.q("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
Y||"":Y?(Y=_.PN(Y),this.clickThroughUrl=_.lH(Y)):this.clickThroughUrl=void 0);(Y=this.getOnLayoutVisibleCallback())&&Y()}};
_.g.onClick=function(Y){_.uA(_.JL(Y),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(Y)};
_.g.handleClick=function(){var Y=this;this.data&&this.data.clickthroughEndpoint&&(_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(b){Y.macroReplacementBehavior.sendServiceRequestAction([b])}),_.Xx(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.g.onLoad=function(){_.De(this.hostElement,"yt-refit-popups-action")};
_.up.Object.defineProperties(mc.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}}});
mc.prototype.onLoad=mc.prototype.onLoad;mc.prototype.onClick=mc.prototype.onClick;mc.prototype.dataChanged=mc.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mc.prototype,"rendererBehavior",void 0);_.z([_.n(Q0d.YtMacroReplacementBehavior),_.K("design:type",Object)],mc.prototype,"macroReplacementBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mc.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mc.prototype,"buttonUpdate",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mc.prototype,"hideLegacyBanner",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mc.prototype,"adInfoButtonStyle",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mc.prototype,"adInfoButtonType",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mc.prototype,"macros",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],mc.prototype,"interactionLoggingClientData",null);_.z([_.R(),_.K("design:type",String)],mc.prototype,"clickThroughUrl",void 0);_.z([_.R(),_.K("design:type",_.og)],mc.prototype,"imageSrc",void 0);_.z([_.R(),_.K("design:type",Number)],mc.prototype,"imageWidth",void 0);_.z([_.R(),_.K("design:type",Number)],mc.prototype,"imageHeight",void 0);_.z([_.R(),_.K("design:type",Object)],mc.prototype,"noDotAdBadge",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mc.prototype,"dataChanged",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],mc.prototype,"onClick",null);_.z([_.kZ("load"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],mc.prototype,"onLoad",null);_.z([_.S({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],mc);
_.a(mc,"ytd-image-companion-renderer",function(){if(T8b!==void 0)return T8b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-image-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<template is="dom-if" if="[[hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <div class="style-scope ytd-image-companion-renderer">\n    <yt-img-shadow id="banner" fit="" thumbnail="[[data.image.thumbnail]]" class="style-scope ytd-image-companion-renderer">\n    </yt-img-shadow>\n    <div id="block" class="style-scope ytd-image-companion-renderer">\n      <div id="text" class="style-scope ytd-image-companion-renderer">\n        <div id="desc" class="style-scope ytd-image-companion-renderer">\n          <div id="ad-badge-container" class="style-scope ytd-image-companion-renderer">\n            <ytd-badge-supported-renderer id="ad-badge" no-dot-ad-badge="[[noDotAdBadge]]" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-image-companion-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </div>\n      </div>\n      <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-menu" button-style="[[adInfoButtonStyle]]" button-type="[[adInfoButtonType]]" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n      </ytd-ad-hover-text-button-renderer>\n    </div>\n  </div>\n</template>\n\n\n<template is="dom-if" if="[[!hideLegacyBanner]]" class="style-scope ytd-image-companion-renderer">\n  <ytd-ad-hover-text-button-renderer id="image-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" modern-update="[[buttonUpdate]]" class="style-scope ytd-image-companion-renderer">\n  </ytd-ad-hover-text-button-renderer>\n  <div class="style-scope ytd-image-companion-renderer">\n    <img height="[[imageHeight]]" src$="[[imageSrc]]" width="[[imageWidth]]" alt="" class="style-scope ytd-image-companion-renderer">\n  </div>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return T8b=Y},{mode:_.Xd("kevlar_poly_si_batch_j067")?1:2});var JVX;var oZ=function(){return _.F.apply(this,arguments)||this};
_.P(oZ,_.F);_.g=oZ.prototype;_.g.dataChanged=function(){this.set("data.adBadge",oZ.JSC$20272_DEFAULT_AD_BADGE_RENDERER);if(this.data){var Y=this.getOnLayoutVisibleCallback();Y&&Y()}};
_.g.getOnLayoutVisibleCallback=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.onLayoutVisibleCallback:null};
_.g.getLayoutId=function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.layoutId:null};
_.g.onCompanionClicked=function(Y){this.data&&(Y.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Xx(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.g.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var Y=_.V4(),b=this.getLayoutId(),w=this.data.clickToAdvSiteEndpoint;Y&&b&&_.q("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?Y.getPlayerPromise().then(function(V){(new _.nc(V)).executeCommand(w,b)}):_.Ua(this.hostElement,"yt-navigate",{endpoint:w})}};
_.g.sendTrackingPings=function(Y){if(Y&&Y.length!==0&&Y[0].loggingUrls&&(Y=Y[0].loggingUrls.map(this.getBaseUrl)))for(var b=0;b<Y.length;b++)_.yn(Y[b])};
_.g.getBaseUrl=function(Y){return Y.baseUrl||""};
_.up.Object.defineProperties(oZ.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var Y=_.Aq("yt.www.ads.eventcache.getLastCompanionData");return Y?(Y=Y())&&Y.interactionLoggingClientData:null}}});
oZ.prototype.onCompanionClicked=oZ.prototype.onCompanionClicked;oZ.prototype.dataChanged=oZ.prototype.dataChanged;oZ.JSC$20272_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.sa("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oZ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],oZ.prototype,"data",void 0);_.z([_.xZ("#title"),_.K("design:type",HTMLElement)],oZ.prototype,"shopTitle",void 0);
_.z([_.vX("data.impressionEndpoints"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],oZ.prototype,"dataChanged",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],oZ.prototype,"interactionLoggingClientData",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],oZ.prototype,"onCompanionClicked",null);
_.z([_.S({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],oZ);
_.a(oZ,"ytd-shopping-companion-renderer",function(){if(JVX!==void 0)return JVX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-companion-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ad-hover-text-button-renderer id="shopping-companion-ad-info-button" data="[[data.adInfoRenderer.adHoverTextButtonRenderer]]" hidden="[[!data.adInfoRenderer.adHoverTextButtonRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n</ytd-ad-hover-text-button-renderer>\n<div on-tap="onCompanionClicked" class="style-scope ytd-shopping-companion-renderer">\n  <div id="banner" class="style-scope ytd-shopping-companion-renderer">\n    <div id="ad-badge-container" class="style-scope ytd-shopping-companion-renderer">\n      <ytd-badge-supported-renderer id="ad-badge" large-font-ad-badge="true" top-standalone-badge="[[data.adBadge]]" class="style-scope ytd-shopping-companion-renderer">\n      </ytd-badge-supported-renderer>\n    </div>\n    <div id="title" on-tap="onShopTextTap" class="style-scope ytd-shopping-companion-renderer">\n      [[getSimpleString(data.shopText)]]\n    </div>\n  </div>\n  <yt-horizontal-list-renderer id="companion-shelf" data="[[data.itemList.horizontalListRenderer]]" class="style-scope ytd-shopping-companion-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JVX=Y},{mode:1});_.f_(_.b8(function(Y){var b=Y.data;var w=_.GM("banner-image-layout-view-model");_.Jd(w,function(){return b().interaction},Abd);
_.H6(w,{visibilityCallback:function(V){var H,f=(H=b().interaction)==null?void 0:H.onFirstVisible;V&&f&&_.AA(f)},
showOption:_.uZ});_.a2(function(){var V,H;H=(H=_.Aq("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.onLayoutVisibleCallback:null;(V=H)==null||V()});
return _.m("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Q_(function(){_.De(w.value,"yt-refit-popups-action")}),
el:w,"aria-label":function(){var V,H;return(V=b().interaction)==null?void 0:(H=V.accessibility)==null?void 0:H.label}},_.m("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.m(_.OH,{data:function(){return b().adImage}},{adImageViewModel:function(V){return _.m(_.kJ,{data:V.data,
targetHeight:80,customCommandResolver:Abd})}})),_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.m(_.OH,{data:function(){return b().adBadge}},{adBadgeViewModel:function(V){return _.m(_.Hl,{data:V.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.m("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.m(_.OH,{data:function(){return b().menu}},{buttonViewModel:_.a1}))))},"ej"),"banner-image-layout-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;Y=_.GM("top-banner-image-text-icon-buttoned-layout-view-model");_.Jd(Y,function(){return b().interaction},C0Q);
_.H6(Y,{visibilityCallback:function(w){var V,H=(V=b().interaction)==null?void 0:V.onFirstVisible;w&&H&&_.AA(H)},
showOption:_.uZ});_.a2(function(){var w,V;V=(V=_.Aq("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.onLayoutVisibleCallback:null;(w=V)==null||w()});
return _.m("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:Y},_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.m(_.OH,{data:function(){return b().adImage}},{adImageViewModel:function(w){return _.m(_.kJ,{data:w.data,
targetHeight:80,customCommandResolver:C0Q})}})),_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.m(_.OH,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(w){return _.m(iOA,{data:w.data,
customCommandResolver:C0Q})}})),_.m(_.OH,{data:function(){return b().adButton}},{adButtonViewModel:function(w){return _.m(_.bP,{data:w.data,
customCommandResolver:C0Q})}}),_.m("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.m(_.OH,{data:function(){return b().menu}},{buttonViewModel:_.a1}))))},"fj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.YX}});var uCd={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"},IZ=function(){var Y=_.F.apply(this,arguments)||this;Y.updateCompanionDataJobId=0;Y.contentVideoId=null;Y.player=null;Y.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return Y};
_.P(IZ,_.F);_.g=IZ.prototype;_.g.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:uCd}}};
_.g.attached=function(){var Y=this,b=_.V4();b&&b.getPlayerPromise().then(function(w){Y.getCachedDataAndListen(w)})};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.g.updateRendererStamper=function(){var Y={};if(this.data)for(var b in uCd)if(this.data[b]){Y[b]=this.data[b];break}if(this.oneofRenderer!=void 0||Object.keys(Y).length)this.oneofRenderer=Y};
_.g.getCachedDataAndListen=function(Y){var b=this.retrieveCachedCompanionData();b&&Object.keys(b).length&&this.receiveCompanionData(b);this.ytPlayerListenerBehavior.listenToPlayerEvent(Y,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=Y};
_.g.retrieveCachedCompanionData=function(){return _.wB.yt&&_.wB.yt.www&&_.wB.yt.www.ads&&_.wB.yt.www.ads.eventcache&&_.wB.yt.www.ads.eventcache.getLastCompanionData?_.wB.yt.www.ads.eventcache.getLastCompanionData():null};
_.g.receiveCompanionData=function(Y){Y&&Object.keys(Y).length?(this.contentVideoId=Y.contentVideoId,this.setCompanionData(Y)):this.setCompanionData(Y)};
_.g.setCompanionData=function(Y){this.cancelPendingCompanionAdJobs();if(Y){this.updateCompanionDataJobId=0;for(var b in uCd)uCd.hasOwnProperty(b)&&(this.data[b]=void 0);Y.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",Y.shoppingCompanionCarouselRenderer):Y.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",Y.imageCompanionAdRenderer):Y.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",Y.actionCompanionAdRenderer),_.De(this.hostElement,
"yt-hide-unlimited-offer-module"),_.De(this.hostElement,"yt-hide-tvfilm-offer-module")):Y.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",Y.bannerImageLayoutViewModel):Y.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",Y.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.g.dataChanged=function(){var Y=this,b=_.V4();b?b.getPlayerPromise().then(function(w){Y.contentVideoId&&w.getVideoUrl().includes("v="+Y.contentVideoId)||(Y.cancelPendingCompanionAdJobs(),Y.updateRendererStamper())}):_.C7(Error("km"))};
_.g.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Lb.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.g.handleCompanionAdClicked=function(Y,b){this.player.onAdUxClicked(Y,b);this.player.pauseVideo()};
IZ.prototype.dataChanged=IZ.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],IZ.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],IZ.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],IZ.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IZ.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],IZ.prototype,"oneofRenderer",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IZ.prototype,"dataChanged",null);_.z([_.S({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],IZ);
_.a(IZ,"ytd-companion-slot-renderer",function(){if(Gyg!==void 0)return Gyg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-companion-slot-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="companion" class="style-scope ytd-companion-slot-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Gyg=Y},{mode:_.Xd("kevlar_poly_si_batch_j067")?
1:2});var YOQ;var kB=function(){return _.F.apply(this,arguments)||this};
_.P(kB,_.F);kB.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
kB.prototype.dataChanged=kB.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kB.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],kB.prototype,"companionSlotData",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kB.prototype,"dataChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],kB);
_.a(kB,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(YOQ!==void 0)return YOQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-player-legacy-desktop-watch-ads-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-companion-legal-text-renderer data="[[data]]" disable-upgrade$="[[!data.companionLegalText]]" hidden="[[!data.companionLegalText]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-legal-text-renderer>\n<ytd-companion-slot-renderer data="[[companionSlotData]]" disable-upgrade$="[[!companionSlotData]]" hidden="[[!companionSlotData]]" class="style-scope ytd-player-legacy-desktop-watch-ads-renderer">\n</ytd-companion-slot-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return YOQ=Y},{mode:1});var bNX;var lt=function(){var Y=_.F.apply(this,arguments)||this;Y.skinnyMode=!1;Y.COMPACT_EVENT_COUNT=4;Y.onShelfToggleButtonTap=function(){Y.logTap(Y.data);Y.showingMore=!Y.showingMore};
Y.onShelfToggleButtonFocus=function(){Y.showingMore||(Y.logTap(Y.data),Y.showingMore=!0,_.TC(Y,function(){var b=Y.COMPACT_EVENT_COUNT-1,w;(w=_.E6(Y.hostElement).querySelector("#event-"+b))==null||w.focus()}))};
return Y};
_.P(lt,_.F);_.g=lt.prototype;_.g.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.g.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.g.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Io(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Io(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Io(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Io(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Io(this.infoTooltip,this.infoTooltip.hide))};
_.g.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Io(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Io(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Io(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Io(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Io(this.infoTooltip,this.infoTooltip.hide))};
_.g.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)};
_.g.onShowingMoreChanged=function(){var Y;this.showingMoreChanged((Y=this.showingMore)!=null?Y:!1)};
_.g.showingMoreChanged=function(Y){var b=this.get("data.events")||[];this.set("restEvents",b.slice(1,Y?b.length:this.COMPACT_EVENT_COUNT).map(function(w){return w.ticketEventRenderer}));
b.slice(0,Y?b.length:this.COMPACT_EVENT_COUNT).forEach(function(w){var V=_.dO();w=w.ticketEventRenderer.trackingParams;_.R3()&&V&&w&&(w=_.nA(w),V&&_.j1(V,w))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.g.computeAriaLabel=function(Y){return Y.subtitle1+", "+Y.subtitle2};
_.g.logTap=function(Y){_.R3()&&this.ytRendererBehavior.logExplicitClick(Y)};
_.g.isKeyboardAction=function(Y){return this.get("detail.x",Y)===0&&this.get("detail.y",Y)===0};
_.g.onFirstEventTap=function(Y){Y.target&&this.handleTap(Y.target,this.firstEvent,this.isKeyboardAction(Y))};
_.g.onTicketLinkTap=function(Y){Y.target&&this.handleTap(Y.target,Y.model.item,this.isKeyboardAction(Y))};
_.g.handleTap=function(Y,b,w){if(b.buttonCommand)if(b.hasMultipleOffers)Object.assign(_.v(b.buttonCommand,_.tI),{properties:{source:w?"keyboard":"tap"}}),this.logTap(b),this.popupPositionTarget=Y,_.IP(this.hostElement,[b.buttonCommand],this.hostElement);else{var V;if((V=_.v(b.buttonCommand,_.Ah))==null?0:V.url)this.logTap(b),_.Fk(window,_.v(b.buttonCommand,_.Ah).url)}};
lt.prototype.onShowingMoreChanged=lt.prototype.onShowingMoreChanged;lt.prototype.dataChanged=lt.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lt.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],lt.prototype,"firstEvent",void 0);_.z([_.R(),_.K("design:type",Object)],lt.prototype,"restEvents",void 0);_.z([_.R(),_.K("design:type",String)],lt.prototype,"imageUrl",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],lt.prototype,"showingMore",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],lt.prototype,"canShowMore",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lt.prototype,"skinnyMode",void 0);_.z([_.R(),_.K("design:type",HTMLElement)],lt.prototype,"popupPositionTarget",void 0);_.z([_.xZ("#banner-info-tooltip"),_.K("design:type",Object)],lt.prototype,"infoTooltip",void 0);
_.z([_.xZ("#info-container"),_.K("design:type",HTMLElement)],lt.prototype,"infoContainer",void 0);_.z([_.xZ("#shelf-toggler"),_.K("design:type",HTMLElement)],lt.prototype,"shelfToggleButton",void 0);_.z([_.xZ("#separator"),_.K("design:type",HTMLDivElement)],lt.prototype,"separator",void 0);_.z([_.R(),_.K("design:type",String)],lt.prototype,"shelfTogglerLabelText",void 0);_.z([_.R(),_.K("design:type",String)],lt.prototype,"shelfTogglerIcon",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lt.prototype,"dataChanged",null);_.z([_.vX("showingMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lt.prototype,"onShowingMoreChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],lt);
_.a(lt,"ytd-ticket-shelf-renderer",function(){if(bNX!==void 0)return bNX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ticket-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="head" class="style-scope ytd-ticket-shelf-renderer">\n  <h1 id="title" role="heading" aria-label$="[[firstEvent.title]]" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.title]]</h1>\n\n  <a id="info-container" href="javascript:" role="complementary" aria-label$="[[data.informationText]]" class="style-scope ytd-ticket-shelf-renderer">\n    <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n  </a>\n  \n  <tp-yt-paper-tooltip id="banner-info-tooltip" for="info-container" manual-mode="" position="bottom" class="style-scope ytd-ticket-shelf-renderer">\n    <div class="style-scope ytd-ticket-shelf-renderer">[[data.informationText]]</div>\n  </tp-yt-paper-tooltip>\n</div>\n<div id="body" class="style-scope ytd-ticket-shelf-renderer">\n  <div id="primary-event" class="style-scope ytd-ticket-shelf-renderer">\n    <template is="dom-if" if="[[data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <a id="calendar-avatar" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        <div id="calendar-avatar-month" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-month-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeMonth]]</div>\n        </div>\n        <div id="calendar-avatar-day" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="calendar-avatar-day-text" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.timeDay]]</div>\n        </div>\n      </a>\n    </template>\n\n    <template is="dom-if" if="[[!data.useCalendarAvatar]]" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="thumbnail" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-img-shadow id="thumbnail-img" fit="" thumbnail="[[firstEvent.thumbnail]]" class="style-scope ytd-ticket-shelf-renderer">\n        </yt-img-shadow>\n      </div>\n    </template>\n\n    <div id="meta" class="style-scope ytd-ticket-shelf-renderer">\n      <div id="meta-info" class="style-scope ytd-ticket-shelf-renderer">\n        <a id="nearest-with-location" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">[[data.title]]</a>\n        <div id="subtitle1" class="style-scope ytd-ticket-shelf-renderer">[[firstEvent.subtitle1]]</div>\n        <template is="dom-if" if="[[firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <div id="subtitle2" class="style-scope ytd-ticket-shelf-renderer">\n            [[firstEvent.subtitle2]]\n          </div>\n        </template>\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <a class="vendor style-scope ytd-ticket-shelf-renderer" target="_blank" on-tap="onFirstEventTap" href$="[[firstEvent.buttonCommand.urlEndpoint.url]]">\n            [[firstEvent.linkText]]\n          </a>\n        </template>\n      </div>\n      <a id="view-tickets-link" href="javascript:void(0)" on-tap="onFirstEventTap" class="style-scope ytd-ticket-shelf-renderer">\n        [[firstEvent.buttonText]]\n        <template is="dom-if" if="[[!firstEvent.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n          <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n        </template>\n      </a>\n    </div>\n  </div>\n\n  <div id="separator" class="style-scope ytd-ticket-shelf-renderer"></div>\n\n  <div id="rest-events" class="style-scope ytd-ticket-shelf-renderer">\n    <div id="table" class="style-scope ytd-ticket-shelf-renderer">\n      <table cellspacing="0" cellpadding="0" class="style-scope ytd-ticket-shelf-renderer">\n        <template is="dom-repeat" items="[[restEvents]]" as="item" class="style-scope ytd-ticket-shelf-renderer">\n          <tr on-tap="onTicketLinkTap" class="style-scope ytd-ticket-shelf-renderer">\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-date-column style-scope ytd-ticket-shelf-renderer">[[item.timeDate]]</div>\n            </td>\n            <td class="style-scope ytd-ticket-shelf-renderer">\n              <div class="when-weekday-column style-scope ytd-ticket-shelf-renderer">\n                <div class="style-scope ytd-ticket-shelf-renderer">\n                  [[item.timeWeekday]]<span id="time" class="style-scope ytd-ticket-shelf-renderer">[[item.timeTime]]</span>\n                </div>\n              </div>\n            </td>\n            <td class="where-column-td style-scope ytd-ticket-shelf-renderer">\n              <div class="where-column style-scope ytd-ticket-shelf-renderer">\n                <div class="venue-vendor-container style-scope ytd-ticket-shelf-renderer">\n                  <div class="venue style-scope ytd-ticket-shelf-renderer">[[item.subtitle2]]</div>\n                  <b class="dot style-scope ytd-ticket-shelf-renderer">\u00b7</b>\n                  <a class="vendor style-scope ytd-ticket-shelf-renderer" href="javascript:void(0)" id$="event-[[index]]">\n                    [[item.linkText]]\n                    <template is="dom-if" if="[[!item.hasMultipleOffers]]" class="style-scope ytd-ticket-shelf-renderer">\n                      <yt-icon class="launch-icon style-scope ytd-ticket-shelf-renderer" icon="yt-icons:launch"></yt-icon>\n                    </template>\n                  </a>\n                </div>\n              </div>\n            </td>\n          </tr>\n        </template>\n      </table>\n      <yt-icon-button id="shelf-toggler" hidden="[[!canShowMore]]" label="[[shelfTogglerLabelText]]" class="style-scope ytd-ticket-shelf-renderer">\n        <yt-icon icon="[[shelfTogglerIcon]]" class="style-scope ytd-ticket-shelf-renderer"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return bNX=Y},{mode:1});var wAF;var V2Q;var hD=function(){return _.F.apply(this,arguments)||this};
_.P(hD,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hD.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],hD);
_.a(hD,"ytd-comments-entry-point-message-renderer",function(){if(V2Q!==void 0)return V2Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="message" text="[[data.messageText]]" class="style-scope ytd-comments-entry-point-message-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return V2Q=Y},{mode:1});var HNI;var xB=function(){return _.F.apply(this,arguments)||this};
_.P(xB,_.F);_.up.Object.defineProperties(xB.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.teaserAvatar)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xB.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xB.prototype,"hasAvatar",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],xB);
_.a(xB,"ytd-comments-entry-point-teaser-renderer",function(){if(HNI!==void 0)return HNI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-teaser-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="teaser" class="style-scope ytd-comments-entry-point-teaser-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-teaser-renderer" height="24" hidden="[[!hasAvatar]]" thumbnail="[[data.teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-teaser-renderer">[[getSimpleString(data.teaserContent)]]</div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return HNI=Y},{mode:1});var g4N;var q5=function(){return _.F.apply(this,arguments)||this};
_.P(q5,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],q5.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],q5);
_.a(q5,"ytd-comments-simplebox-renderer",function(){if(g4N!==void 0)return g4N;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-simplebox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="simplebox" class="style-scope ytd-comments-simplebox-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-simplebox-renderer" height="24" thumbnail="[[data.simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-simplebox-renderer">[[getSimpleString(data.simpleboxPlaceholder)]]</div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return g4N=Y},{mode:1});var ss=function(){var Y=_.F.apply(this,arguments)||this;Y.fullHeight=!_.q("comment_teaser_full_height_kill_switch")&&_.q("kevlar_watch_grid");return Y};
_.P(ss,_.F);ss.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"}}}};
ss.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ss.prototype.onTap=function(){var Y=this.tapCommand;Y&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(Y))};
ss.prototype.onKeyUp=function(Y){if(Y.keyCode===13)this.onTap()};
_.up.Object.defineProperties(ss.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.onTap)return this.data.onTap;var b,w;if(((b=this.data)==null?0:b.teaserContent)||((w=this.data)==null?0:w.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)!=null&&Y.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
ss.prototype.onKeyUp=ss.prototype.onKeyUp;ss.prototype.onTap=ss.prototype.onTap;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ss.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ss.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ss.prototype,"fullHeight",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"tapCommand",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"simpleboxPlaceholder",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ss.prototype,"hasSimpleboxPlaceholder",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"simpleboxAvatar",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"teaserContent",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ss.prototype,"hasTeaserContent",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"teaserAvatar",null);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ss.prototype,"hasTeaserAvatar",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"messageText",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ss.prototype,"contentRenderer",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ss.prototype,"hasContents",null);
_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ss.prototype,"hasContentRenderer",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ss.prototype,"onTap",null);_.z([_.kZ("keypress"),_.K("design:type",Function),_.K("design:paramtypes",[_.vV]),_.K("design:returntype")],ss.prototype,"onKeyUp",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],ss);
_.a(ss,"ytd-comments-entry-point-header-renderer",function(){if(wAF!==void 0)return wAF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-entry-point-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-comments-entry-point-header-renderer"><div id="title" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.headerText)]]</div><div id="count" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(data.commentCount)]]</div></div><div id="content" class="style-scope ytd-comments-entry-point-header-renderer"><div id="simplebox" hidden="[[!hasSimpleboxPlaceholder]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" thumbnail="[[simpleboxAvatar]]" width="24"></yt-img-shadow><div id="simplebox-input" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(simpleboxPlaceholder)]]</div></div><div id="teaser" hidden="[[!hasTeaserContent]]" class="style-scope ytd-comments-entry-point-header-renderer"><yt-img-shadow class="avatar style-scope ytd-comments-entry-point-header-renderer" height="24" hidden="[[!hasTeaserAvatar]]" thumbnail="[[teaserAvatar]]" width="24"></yt-img-shadow><div id="teaser-text" class="style-scope ytd-comments-entry-point-header-renderer">[[getSimpleString(teaserContent)]]</div></div><yt-formatted-string id="message" text="[[messageText]]" class="style-scope ytd-comments-entry-point-header-renderer"></yt-formatted-string><div id="content-renderer" hidden="[[!hasContentRenderer]]" class="style-scope ytd-comments-entry-point-header-renderer"></div><div id="contents" class="style-scope ytd-comments-entry-point-header-renderer"></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return wAF=Y},{mode:1});var fr7;_.q("web_enable_sink_animated_rolling_character_and_number")?_.f_(_.hCC,"yt-animated-rolling-number",{props:{numberText:_.YX,numberValue:_.YX,heightPx:_.YX,fontSizeMultiplier:_.YX,shouldAnimate:_.YX,forceRollUp:_.YX}}):_.oL(_.l$L,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var Ndd=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),E4t={numberText:"",heightPx:2*Ndd,shouldAnimate:!1},Qa=function(){var Y=_.F.apply(this,arguments)||this;Y.usingAnimatedComponents=!0;Y.wasDetailed=!1;Y.JSC$20309_browserSupportsAnimation=_.q("web_supports_animations_api");Y.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};Y.detailed=!1;Y.shouldAnimate=!1;Y.viewCountProps=E4t;Y.dateTextProps=
E4t;Y.metadataBadgesInDescription=_.q("web_metadata_badges_in_description");return Y};
_.P(Qa,_.F);_.g=Qa.prototype;_.g.resetAnimationState=function(){this.shouldAnimate=!1};
_.g.updateDynamicMetadata=function(){if(this.JSC$20309_browserSupportsAnimation){if(!this.detailed){var Y,b,w,V;var H=(Y=this.videoPrimaryInfoRenderer)==null?void 0:(b=Y.viewCount)==null?void 0:(w=b.videoViewCountRenderer)==null?void 0:(V=w.extraShortViewCount)==null?void 0:V.simpleText;var f,E,U,X;var I=(f=this.videoPrimaryInfoRenderer)==null?void 0:(E=f.viewCount)==null?void 0:(U=E.videoViewCountRenderer)==null?void 0:(X=U.shortViewCount)==null?void 0:X.simpleText}if(!I){var k,l,x,Q;H=(k=this.videoPrimaryInfoRenderer)==
null?void 0:(l=k.viewCount)==null?void 0:(x=l.videoViewCountRenderer)==null?void 0:(Q=x.unlabeledViewCountValue)==null?void 0:Q.simpleText;var Z,e,O,L;I=(Z=this.videoPrimaryInfoRenderer)==null?void 0:(e=Z.viewCount)==null?void 0:(O=e.videoViewCountRenderer)==null?void 0:(L=O.viewCount)==null?void 0:L.simpleText}var r,C,W;Y=Number((r=this.videoPrimaryInfoRenderer)==null?void 0:(C=r.viewCount)==null?void 0:(W=C.videoViewCountRenderer)==null?void 0:W.originalViewCount);var y,G;r=(y=this.videoPrimaryInfoRenderer)==
null?void 0:(G=y.relativeDateText)==null?void 0:G.simpleText;var Nr;y=!((Nr=this.videoPrimaryInfoRenderer)==null||!Nr.relativeDateText);if(H&&I&&Y&&(r||!y)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Nr=I.split(new RegExp("("+H+")"));H=JbQ(Nr[0]);var o6;I={numberText:(o6=Nr[1])!=null?o6:"",numberValue:Y,heightPx:2*Ndd,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var lI;o6=((lI=Nr[2])!=null?lI:"")+"  ";this.setViewCount(I,H,JbQ(o6));
if(!this.detailed&&y){H=r.split(/(\d+)/);lI=JbQ(H[0]);var Zt;o6={numberText:(Zt=H[1])!=null?Zt:"",heightPx:2*Ndd,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var eL;Zt=((eL=H[2])!=null?eL:"")+"  ";this.setDateText(o6,lI,JbQ(Zt))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.g.setViewCount=function(Y,b,w){_.Tx(b)!==_.Tx(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=b);this.viewCountProps.numberText!==(Y==null?void 0:Y.numberText)&&(this.viewCountProps=Y||E4t);_.Tx(w)!==_.Tx(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=w)};
_.g.setDateText=function(Y,b,w){_.Tx(b)!==_.Tx(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=b);this.dateTextProps.numberText!==(Y==null?void 0:Y.numberText)&&(this.dateTextProps=Y||E4t);_.Tx(w)!==_.Tx(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=w)};
_.g.onYtUpdateViewershipAction=function(Y){this.videoPrimaryInfoRenderer&&(_.v(Y,bIX).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.v(Y,bIX).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.v(Y,bIX).viewCount)))};
_.g.onYtUpdateDateTextAction=function(Y){if(this.videoPrimaryInfoRenderer){Y=_.v(Y,_.uoI).dateText;this.shouldAnimate=!0;var b;((b=this.videoPrimaryInfoRenderer)==null?0:b.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",Y):this.set("videoPrimaryInfoRenderer.dateText",Y)}};
_.up.Object.defineProperties(Qa.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return TuA(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Tx(TuA(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Tx(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Tx(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Tx(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Tx(this.dateTextPostNumberText)].join("")}}});
Qa.prototype.updateDynamicMetadata=Qa.prototype.updateDynamicMetadata;Qa.prototype.resetAnimationState=Qa.prototype.resetAnimationState;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Qa.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Qa.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Qa.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Qa.prototype,"videoPrimaryInfoRenderer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"detailed",void 0);_.z([_.R(),_.K("design:type",Object)],Qa.prototype,"shouldAnimate",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"viewCountPreNumberText",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"viewCountProps",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"viewCountPostNumberText",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"dateTextPreNumberText",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"dateTextProps",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"dateTextPostNumberText",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qa.prototype,"metadataBadgesInDescription",void 0);_.z([_.t("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.K("design:type",Object),_.K("design:paramtypes",[])],Qa.prototype,"infoText",null);
_.z([_.t("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.K("design:type",String),_.K("design:paramtypes",[])],Qa.prototype,"descriptionInfoTooltipText",null);_.z([_.t("detailed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Qa.prototype,"showDescriptionInfoTooltip",null);
_.z([_.t("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.K("design:type",String),_.K("design:paramtypes",[])],Qa.prototype,"animatedViewCountAccessibilityLabel",null);_.z([_.t("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.K("design:type",String),_.K("design:paramtypes",[])],Qa.prototype,"animatedDateTextAccessibilityLabel",null);
_.z([_.lr("videoPrimaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qa.prototype,"resetAnimationState",null);_.z([_.lr("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qa.prototype,"updateDynamicMetadata",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Qa);
_.a(Qa,"ytd-watch-info-text",function(){if(fr7!==void 0)return fr7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return fr7=Y},{mode:1});var cCd;var Ud7=_.b8(function(Y){var b=Y.data;var w=Y.setTapCommand;_.tl(function(){var V=_.zT(b().onTap);w(V)},"X4onJd");
return _.m("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.m(_.OH,{data:function(){return b().avatar}},{avatarViewModel:_.et}),_.m("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.m("span",null,function(){return b().simpleboxText})))},"gj");var XAR=_.b8(function(Y){return _.m("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.m(_.h,{cond:function(){return _.v(Y.data().avatar,_.GI)},
then:function(b){return _.m(_.et,{data:b,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.m("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.m(_.wv,{text:function(){return Y.data().teaserText}})))},"hj");var Ddd=_.b8(function(Y){var b=Y.data;var w=Y.setTapCommand;_.tl(function(){var V=_.zT(b().onTap);w(V)},"PmAol");
return _.m("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.m(_.OH,{data:function(){return b().teasers}},{commentsEntryPointTeaserViewModel:XAR}))},"ij");var mdX=_.b8(function(Y){var b=Y.data;var w=Y.setTapCommand;_.tl(function(){var V=_.zT(b().onTap);w(V)},"Nh3Hjd");
return _.m("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.m(_.wv,{text:function(){return b().messageText}}))},"jj");var o4d=_.b8(function(Y){var b=Y.data;var w=Y.setTapCommand;var V=Y.isDisabled;_.tl(function(){var H=(V==null?0:V())?void 0:_.zT(b().onTap);w(H)},"omeiWe");
return _.m("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.m(_.n_,{icon:function(){return b().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.m(_.h,{cond:function(){return b().image},
then:function(H){return _.m(_.Y_,{data:H,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.m(_.wv,{text:function(){return b().text},
className:function(){return b().image||b().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.m(_.OH,{data:function(){return b().button}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:V==null?void 0:V()}}})}}))},"kj");var Irt=_.b8(function(Y){var b=Y.data;var w=Y.itemIndex;var V=Y.selectedIndex;var H=Y.indexUpdatedCallback;var f=Y.observer;Y=Y.title;var E=_.GM("yt-carousel-item-view-model",function(l){_.q("web_metadata_carousel_elref_bugfix")&&f&&f().observe(l)}),U=function(l){w()===V()&&H(l)},X=_.rn(MbX),I=_.rn(e2Q),k=function(){var l,x,Q;
return((l=b())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!X()||((x=b())==null?void 0:x.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&I().includes("PAposts_by_host")||((Q=b())==null?void 0:Q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&I().includes("PAyouchat")};
_.dx(function(){_.q("web_metadata_carousel_elref_bugfix")||f&&f().observe(E.value)});
return _.m("yt-carousel-item-view-model",{el:E,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":Y},_.m(_.OH,{data:function(){var l,x;return(x=(l=_.v(b().carouselItem,Q9t))==null?void 0:l.textCarousel)!=null?x:b().carouselItem}},{textCarouselItemViewModel:function(l){return _.m(o4d,{data:l.data,
setTapCommand:U,isDisabled:k})},
commentTeaserCarouselItemViewModel:function(l){return _.m(Ddd,{data:l.data,setTapCommand:U})},
commentInputBoxCarouselItemViewModel:function(l){return _.m(Ud7,{data:l.data,setTapCommand:U})},
commentsEntryPointMessageViewModel:function(l){return _.m(mdX,{data:l.data,setTapCommand:U})}}))},"lj");var kJF=_.b8(function(Y){var b=Y.numDots;var w=Y.activeIndex;return _.m("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.m(_.Bf,{each:function(){return Array.from({length:b()})},
keyBy:"INDEX"},function(V,H){return _.m("div",{class:function(){var f={};return _.qR("ytCarouselDotsShapeDot",(f.ytCarouselDotsShapeDotActive=H===w(),f))}})}))},"mj");var lrs=_.b8(function(Y){var b=Y.data;var w=Y.handleCarouselNavigation;var V=Y.numItems;var H=Y.selectedIndex;var f=function(){return{disabled:H()===0}},E=function(){return{disabled:H()===V()-1}};
return _.m("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.m("div",null,_.m("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return b().title}),_.m(_.h,{cond:function(){return b().subtitle},
then:function(U){return _.m("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return b().subtitleAccessibilityText}},U)}})),_.m(_.h,{cond:function(){return V()>1},
then:function(){return _.m("div",{class:"ytCarouselTitleViewModelNavigation"},_.m(kJF,{numDots:V,activeIndex:H}),_.m(_.h,{cond:function(){return b().previousButton},
then:function(U){return _.m(_.OH,{data:U},{buttonViewModel:function(X){return _.m(_.a1,{data:X.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return w(-1)},
buttonOverrides:f})}})}}),_.m(_.h,{cond:function(){return b().nextButton},
then:function(U){return _.m(_.OH,{data:U},{buttonViewModel:function(X){return _.m(_.a1,{data:X.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return w(1)},
buttonOverrides:E})}})}}))}}))},"nj");_.f_(_.b8(function(Y){var b=Y.data;var w,V=_.GM("yt-video-metadata-carousel-view-model"),H=_.GM("div",function(y){if(_.q("web_metadata_carousel_elref_bugfix")){var G=function(){var Nr=y.offsetWidth*e(),o6=24*(e()-1);x(Nr+o6)};
G();window.ResizeObserver&&(w=new ResizeObserver(G),w.observe(y))}}),f=_.zO("HTML_DIR")==="rtl",E=!1,U=0,X=0;
Y=_.N(_.kw(0,void 0,"f4aYxe"));var I=Y.next().value,k=Y.next().value;Y=_.N(_.kw(0,void 0,"kU9O9"));var l=Y.next().value,x=Y.next().value;Y=_.N(_.kw(!1,void 0,"GqphDd"));var Q=Y.next().value,Z=Y.next().value,e=function(){var y,G,Nr;return(Nr=(y=b())==null?void 0:(G=y.carouselTitles)==null?void 0:G.length)!=null?Nr:0},O=function(){H.value&&H.value.scrollLeft!==U&&k((f?H.value.scrollLeft<U:H.value.scrollLeft>U)?Math.min(I()+1,e()-1):Math.max(I()-1,0))},L;
window.IntersectionObserver&&(L=new IntersectionObserver(function(y){y=_.N(y);for(var G=y.next();!G.done;G=y.next())if(G.value.isIntersecting){if(E){E=!1;break}O()}else k(X)},{threshold:.2}));
_.tl(function(){if(H.value){var y=(f?-1:1)*(l()/e()+12)*(Q()&&L?X:I());typeof H.value.scrollTo==="function"?H.value.scrollTo({left:y,behavior:"smooth"}):H.value.scrollLeft=y;U=y;X=Q()&&L?X:I()}},"ZP1VMb");
var r,C=function(y){r=y};
_.dx(function(){if(!_.q("web_metadata_carousel_elref_bugfix")){var y=function(){var Nr=H.value.offsetWidth*e(),o6=24*(e()-1);x(Nr+o6)};
y();if(window.ResizeObserver){var G=new ResizeObserver(y);G.observe(H.value);_.R2(function(){G.disconnect();L&&L.disconnect()})}}});
_.R2(function(){if(_.q("web_metadata_carousel_elref_bugfix")){var y;(y=w)==null||y.disconnect();var G;(G=L)==null||G.disconnect()}});
var W=function(y){y=I()+y;y>=0&&y<e()&&(E=!0,k(y))};
return _.m("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:V,"on:click":_.Q_(function(y){if(_.Cs(_.Ad(y),V.value,["BUTTON".toString()])||!r)return!1;_.fH().resolve(_.Nn).resolveCommand(r,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Q_(function(){Z(!0);return!1}),
"on:touchend":_.Q_(function(){L||O();Z(!1);return!1}),
hidden:function(){var y,G;return!((y=b())==null?0:(G=y.carouselItems)==null?0:G.length)}},_.m("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.m(_.h,{cond:function(){return b().carouselTitles},
then:function(y){return _.m(_.OH,{data:function(){return y()[Q()&&L?X:I()]}},{carouselTitleViewModel:function(G){return _.m(lrs,{data:G.data,
handleCarouselNavigation:W,numItems:e,selectedIndex:I})}})}})),_.m("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:H},_.m("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+l()+"px;"}},_.m(_.h,{cond:function(){return b().carouselItems},
then:function(y){return _.m(_.Bf,{each:y},function(G,Nr){return _.m(_.OH,{data:function(){return G}},{carouselItemViewModel:function(o6){return _.m(Irt,{data:o6.data,
itemIndex:Nr,selectedIndex:I,indexUpdatedCallback:C,observer:L,title:function(){a:{var lI=Nr();var Zt,eL=(Zt=b())==null?void 0:Zt.carouselTitles;if(eL&&(lI=eL[lI])){var OM;lI=(OM=_.v(lI,s97))==null?void 0:OM.title;break a}lI=void 0}return lI}})}})})}}))))},"oj"),"yt-video-metadata-carousel-view-model",{props:{data:_.YX}});var htO=_.q("web_action_buttons_update_owner_width")?32:12,vF=function(){var Y=_.F.apply(this,arguments)||this;Y.metadataBadgesInDescription=_.q("web_metadata_badges_in_description");Y.descriptionCollapsed=!0;Y.useFadedScrimDescription=_.q("kevlar_enable_faded_scrim_on_description");Y.skinnyMode=!1;Y.playlist=!1;Y.isDark=document.documentElement.hasAttribute("dark");Y.disableVideoOwnerOnTap=_.q("swatchie_video_owner_on_tap_ks");Y.swatcherooDelayLoad=_.q("swatcheroo_enable_ghost_cards");Y.primaryMenuWidth=
0;Y.videoId="";Y.titleHeadlineXs=_.q("web_watch_typography_title_headline_xs");Y.titleHeadlineS=_.q("web_watch_typography_title_headline_s");Y.titleHeadlineM=_.q("web_watch_typography_title_headline_m");Y.titleHashtagBlackLinkified=_.q("web_title_hashtag_black_linkified");Y.titleHashtagGreyLinkified=_.q("web_title_hashtag_grey_linkified");Y.actionButtonsUpdateOwnerWidth=_.q("web_action_buttons_update_owner_width");Y.shouldForceIconOnly=!1;Y.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};Y.isFullscreen=!1;Y.isTheaterMode=!1;return Y};
_.P(vF,_.F);_.g=vF.prototype;_.g.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.g.updateOwnerAndDescriptionPosition=function(){_.q("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.dg(this.bottomRowElement,this.ownerElement)):(_.dg(this.bottomRowElement,this.descriptionElement),_.dg(this.topRowElement,this.ownerElement)))};
_.g.titleOnTap=function(Y){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||this.handleExpandDescriptionCommands()}};
_.g.videoOwnerOnTap=function(Y){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.g.detached=function(){var Y=this,b;return _.c(function(w){(b=Y.resizeObserver)==null||b.disconnect();_.om(w)})};
_.g.maybeAttachResizeObserver=function(){var Y=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.Vm(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){Y.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.g.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var Y=this.hostElement.clientWidth,b=Math.max(this.largerItemWrap?400:350,Y/2-htO);if(_.q("web_action_buttons_update_owner_width")){var w;b=(((w=document.getElementById("owner"))==null?void 0:w.clientWidth)||0)+htO}this.actionsOnSeparateLine=this.primaryMenuWidth>Y-b?!0:!1}};
_.g.stripAttributedDescription=function(Y){return{content:Y.content.replace(/[\r\n]{2,}/g,"\n")}};
_.g.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.q("web_modern_buttons"),forceIconButton:!_.q("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:_.q("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"}}}};
_.g.videoPrimaryInfoRendererChanged=function(){var Y;if((Y=this.videoPrimaryInfoRenderer)==null?0:Y.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.g.videoSecondaryInfoRendererChanged=function(){var Y,b;(b=(Y=this.descriptionInlineExpander).collapse)==null||b.call(Y);this.descriptionExpandClientVe=_.tj(110509);this.descriptionCollapseClientVe=_.tj(110510);Y=_.dO();b=_.R3();Y&&b&&(_.q("combine_ve_grafts")?(_.oC(_.Qd(),this.descriptionExpandClientVe,b),_.oC(_.Qd(),this.descriptionCollapseClientVe,b)):_.$7(Y,b,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.g.structuredDescriptionContentRendererChanged=function(){_.q("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.g.updateTopLevelIconsOnly=function(){var Y=this;_.q("top_level_update_killswitch")||this.menu&&_.Lb.addLowPriorityJob(function(){Y.menu.topLevelIconsOnly=Y.skinnyMode},_.cQ("swathceroo_delay_flexible_menu_update",100))};
_.g.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.q("web_action_buttons_minimize_subscribe")};
_.g.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.g.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.g.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.g.onYtTextInlineExpanderExpandedChanged=function(){if(!_.q("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var Y,b;(b=(Y=this.structuredDescriptionContentRendererElement).resize)==null||b.call(Y)}};
_.g.onRenderStamperFinished=function(Y){(Y==null?void 0:Y.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.g.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.g.onYtExpanderLessTapped=function(){var Y,b=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.showLessCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.g.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.g.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.g.onDescriptionClick=function(Y){if(!_.uA(_.JL(Y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.q("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.g.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.g.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.g.logCollapseClick=function(){var Y=_.dO();Y&&this.descriptionCollapseClientVe&&_.J1(Y,this.descriptionCollapseClientVe)};
_.g.logExpandClick=function(){var Y=_.dO();Y&&this.descriptionExpandClientVe&&_.J1(Y,this.descriptionExpandClientVe)};
_.g.collapseDescription=function(){this.descriptionCollapsed=!0};
_.g.scrollToTopOfContainer=function(){_.Xx(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.g.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.g.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.g.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.g.resize=function(){if(this.descriptionInlineExpander){var Y,b;(b=(Y=this.descriptionInlineExpander).resize)==null||b.call(Y)}else _.Sk(new _.BQ("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var w;(w=this.menu)==null||w.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.q("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.g.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var Y,b,w,V,H=_.q("web_action_buttons_update_owner_width")?(w=(Y=_.E6(this.menu).querySelector("#button-shape"))==null?void 0:Y.clientWidth)!=null?w:0:(V=(b=_.E6(this.menu).querySelector("#button"))==null?void 0:b.clientWidth)!=null?V:0,f,E;Y=((E=(f=_.E6(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:f.clientWidth)!=null?E:0)+8+H;var U,X;H=(X=(U=_.E6(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:U.children.length)!=null?X:2;Y<=8*H||(this.primaryMenuWidth=Y)}};
_.g.onYtUpdateTitleAction=function(Y){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.v(Y,Y$7).title)};
_.g.onYtUpdateDescriptionAction=function(Y){if(Y=_.v(Y,_.Rxr)){var b,w=!((b=this.videoSecondaryInfoRenderer)==null||!b.attributedDescription);Y.isEmpty||!Y.description&&!Y.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):Y.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",Y.attributedDescription):Y.description&&(w?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.LA(Y.description)):this.set("videoSecondaryInfoRenderer.description",Y.description))}};
_.g.onYtDarkModeToggledAction=function(Y){this.isDark=Y};
_.g.registerPanel=function(){if(!_.q("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var Y=_.q("web_watch_imax_theater_mode")&&this.isTheaterMode;Y=_.q("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||Y;var b=_.fH().resolve(_.Za);b&&!Y&&b.registerPanel("engagement-panel-structured-description",this)}};
_.g.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.g.showPanel=function(Y){this.expandDescription();var b=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;b.resize();var w,V=Y==null?void 0:(w=Y.sectionListEngagementPanelExtras)==null?void 0:w.scrollToItemSectionIdentifier;V?_.Lb.addJob(function(){b==null||b.scrollToSection(V)},8):this.scrollToTopOfContainer()};
_.g.isVisible=function(){return!this.descriptionCollapsed};
_.g.getReloadContinuation=function(){};
_.g.hidePanel=function(){};
_.g.updatePanel=function(){};
_.up.Object.defineProperties(vF.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.structuredDescriptionContentRenderer)!=null&&Y.items){var b;Y=_.N((b=this.structuredDescriptionContentRenderer)==null?void 0:b.items);for(b=Y.next();!b.done;b=Y.next())if(b=_.v(b.value,_.tBU))return b}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoPrimaryInfoRenderer)==null?0:Y.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!!((Y=this.videoSecondaryInfoRenderer)==null?0:(b=Y.owner)==null?0:(w=b.videoOwnerRenderer)==null?0:w.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.q("swatchie_sd_new_line_strip_ks")){var Y,b;if((Y=this.videoSecondaryInfoRenderer)==null?0:(b=Y.attributedDescription)==null?0:b.content){var w,V;return(V=this.stripAttributedDescription((w=this.videoSecondaryInfoRenderer)==null?void 0:w.attributedDescription))!=null?V:{runs:[]}}}var H,f,E,U;return(U=(E=(H=this.videoSecondaryInfoRenderer)==null?void 0:H.description)!=null?E:(f=this.videoSecondaryInfoRenderer)==null?
void 0:f.attributedDescription)!=null?U:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.headerRuns)!=null?b:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.commentsEntryPointHeaderRenderer)==null||!Y.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.videoMetadataCarousel)==null||!Y.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.cQ("swatchie_desc_lines",3):this.hasTeaserCarousel?_.cQ("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=Object.assign({},(Y=this.videoSecondaryInfoRenderer)==null?void 0:(b=Y.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(w&&w.rows&&w.collapsedItemCount!==void 0&&!(w.rows.length<=w.collapsedItemCount))return w.rows=w.rows.slice(w.collapsedItemCount),w.collapsedItemCount=0,w}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var Y,b,w=Object.assign({},(Y=this.videoSecondaryInfoRenderer)==null?void 0:(b=Y.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(w&&w.rows&&w.collapsedItemCount!==void 0)return w.rows=w.rows.slice(0,w.collapsedItemCount),w.collapsedItemCount=w.rows.length,w}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!!((Y=this.structuredDescriptionContentRenderer)==null?0:(b=Y.items)==null?0:b.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var Y;return(Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.videoSecondaryInfoRenderer)==null?0:(b=Y.owner)==null?0:(w=b.videoOwnerRenderer)==null?0:w.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return!!((Y=this.videoPrimaryInfoRenderer)==null?0:(b=Y.videoActions)==null?0:(w=b.menuRenderer)==null?0:(V=w.flexibleItems)==null?0:V.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.TT(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.TT(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var Y=this;if(_.q("web_title_hashtag_grey_delinkified")){var b,w=_.BL.unsafeClone((b=this.videoPrimaryInfoRenderer)==null?void 0:b.title);(b=w==null?void 0:w.runs)&&b.forEach(function(V){if(V==null?0:V.navigationEndpoint)V.textColor=4284506208,Y.isDark&&(V.textColor=4289374890)});
return w}return(w=this.videoPrimaryInfoRenderer)==null?void 0:w.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.q("web_title_hashtag_black_delinkified")||_.q("web_title_hashtag_grey_delinkified")}}});
vF.prototype.resetDescriptionState=vF.prototype.resetDescriptionState;vF.prototype.registerPanel=vF.prototype.registerPanel;vF.prototype.onYtExpanderLessTapped=vF.prototype.onYtExpanderLessTapped;vF.prototype.onYtExpanderMoreTapped=vF.prototype.onYtExpanderMoreTapped;vF.prototype.onRenderStamperFinished=vF.prototype.onRenderStamperFinished;vF.prototype.onYtTextInlineExpanderExpandedChanged=vF.prototype.onYtTextInlineExpanderExpandedChanged;vF.prototype.onYtTextInlineExpanderCollapseClicked=vF.prototype.onYtTextInlineExpanderCollapseClicked;
vF.prototype.onYtTextInlineExpanderExpandClicked=vF.prototype.onYtTextInlineExpanderExpandClicked;vF.prototype.moveActionsElement=vF.prototype.moveActionsElement;vF.prototype.updateShouldForceIconOnly=vF.prototype.updateShouldForceIconOnly;vF.prototype.updateTopLevelIconsOnly=vF.prototype.updateTopLevelIconsOnly;vF.prototype.structuredDescriptionContentRendererChanged=vF.prototype.structuredDescriptionContentRendererChanged;vF.prototype.videoSecondaryInfoRendererChanged=vF.prototype.videoSecondaryInfoRendererChanged;
vF.prototype.videoPrimaryInfoRendererChanged=vF.prototype.videoPrimaryInfoRendererChanged;vF.prototype.maybeUpdateActionsOnSeparateLine=vF.prototype.maybeUpdateActionsOnSeparateLine;vF.prototype.updateOwnerAndDescriptionPosition=vF.prototype.updateOwnerAndDescriptionPosition;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],vF.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],vF.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],vF.prototype,"ytdReduxBehavior",void 0);_.z([_.xZ("#above-the-fold"),_.K("design:type",HTMLElement)],vF.prototype,"aboveTheFoldContainer",void 0);_.z([_.xZ("#menu ytd-menu-renderer"),_.K("design:type",Object)],vF.prototype,"menu",void 0);
_.z([_.xZ("#description-inline-expander"),_.K("design:type",Object)],vF.prototype,"descriptionInlineExpander",void 0);_.z([_.xZ("#faded-structured-description"),_.K("design:type",Object)],vF.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.z([_.xZ("#structured-description"),_.K("design:type",Object)],vF.prototype,"structuredDescriptionContentRendererElement",void 0);_.z([_.xZ("#title"),_.K("design:type",HTMLElement)],vF.prototype,"titleElement",void 0);
_.z([_.xZ("#description"),_.K("design:type",HTMLElement)],vF.prototype,"descriptionElement",void 0);_.z([_.xZ("#description-interaction"),_.K("design:type",Object)],vF.prototype,"descriptionInteraction",void 0);_.z([_.xZ("#owner"),_.K("design:type",HTMLElement)],vF.prototype,"ownerElement",void 0);_.z([_.xZ("#top-row"),_.K("design:type",HTMLElement)],vF.prototype,"topRowElement",void 0);_.z([_.xZ("#bottom-row"),_.K("design:type",HTMLElement)],vF.prototype,"bottomRowElement",void 0);
_.z([_.xZ("#actions"),_.K("design:type",HTMLElement)],vF.prototype,"actionsElement",void 0);_.z([_.xZ("#bottom-actions"),_.K("design:type",HTMLElement)],vF.prototype,"bottomActionsElement",void 0);_.z([_.xZ("#ytd-watch-info-text"),_.K("design:type",Object)],vF.prototype,"watchInfoTextElement",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"videoPrimaryInfoRenderer",void 0);
_.z([_.R(),_.K("design:type",Object)],vF.prototype,"videoSecondaryInfoRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"commentsEntryPointHeaderRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"videoMetadataCarousel",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"structuredDescriptionContentRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"videoSummary",void 0);
_.z([_.R(),_.K("design:type",Object)],vF.prototype,"merchShelf",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"infoPanelBelowMetadata",void 0);_.z([_.t("structuredDescriptionContentRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"productShelf",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"metadataBadgesInDescription",void 0);
_.z([_.t("videoPrimaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"shouldHideBadges",null);_.z([_.t("productShelf","descriptionCollapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vF.prototype,"shouldShowProductShelf",null);_.z([_.R(),_.K("design:type",Boolean)],vF.prototype,"isWatchFlexy",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"descriptionCollapsed",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],vF.prototype,"useFadedScrimDescription",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"skinnyMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("videoSecondaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"largerItemWrap",null);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"playlist",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"clarifyBox",void 0);
_.z([_.R(),_.K("design:type",Object)],vF.prototype,"playerAds",void 0);_.z([_.R(),_.K("design:type",Boolean)],vF.prototype,"isDark",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],vF.prototype,"actionsOnSeparateLine",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"disableVideoOwnerOnTap",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"swatcherooDelayLoad",void 0);
_.z([_.R(),_.K("design:type",Boolean)],vF.prototype,"suppressTopLevelMetadataRows",void 0);_.z([_.R(),_.K("design:type",Object)],vF.prototype,"primaryMenuWidth",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"videoId",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"titleHeadlineXs",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"titleHeadlineS",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"titleHeadlineM",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"titleHashtagBlackLinkified",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"titleHashtagGreyLinkified",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.z([_.R(),_.K("design:type",Object)],vF.prototype,"shouldForceIconOnly",void 0);_.z([_.vX("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"updateOwnerAndDescriptionPosition",null);_.z([_.vX("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.z([_.t("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"descriptionText",null);_.z([_.t("videoSecondaryInfoRenderer.headerRuns"),_.K("design:type",Array),_.K("design:paramtypes",[])],vF.prototype,"headerRuns",null);_.z([_.R({value:!1}),_.t("commentsEntryPointHeaderRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"hasTeaser",null);
_.z([_.R({value:!1,reflectToAttribute:!0}),_.t("videoMetadataCarousel"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"hasTeaserCarousel",null);_.z([_.R({value:3}),_.t("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"descriptionMaxLines",null);_.z([_.t("videoSecondaryInfoRenderer.metadataRowContainer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"collapsibleMetadataRows",null);
_.z([_.t("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"alwaysVisibleMetadataRows",null);_.z([_.t("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vF.prototype,"hasInlineStructuredDescription",null);
_.z([_.t("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vF.prototype,"showInlineStructuredDescription",null);_.z([_.t("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"descriptionExpandCommand",null);
_.z([_.t("videoSecondaryInfoRenderer.owner"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"videoOwnerCommand",null);_.z([_.R({reflectToAttribute:!0}),_.t("videoPrimaryInfoRenderer.videoActions"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vF.prototype,"flexMenuEnabled",null);_.z([_.R({selector:_.Wv,reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"isFullscreen",void 0);
_.z([_.R({selector:_.zI,reflectToAttribute:!0}),_.K("design:type",Object)],vF.prototype,"isTheaterMode",void 0);_.z([_.t("descriptionText","useFadedScrimDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vF.prototype,"showAttributedStringDescription",null);_.z([_.t("descriptionText","useFadedScrimDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vF.prototype,"showFormattedStringDescription",null);
_.z([_.t("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],vF.prototype,"showFadedStructuredDescription",null);_.z([_.vX("videoPrimaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"videoPrimaryInfoRendererChanged",null);_.z([_.t("videoPrimaryInfoRenderer.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"videoTitle",null);
_.z([_.t("videoPrimaryInfoRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],vF.prototype,"noEndpoints",null);_.z([_.vX("videoSecondaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"videoSecondaryInfoRendererChanged",null);
_.z([_.lr("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"structuredDescriptionContentRendererChanged",null);_.z([_.lr("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"updateTopLevelIconsOnly",null);
_.z([_.lr("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"updateShouldForceIconOnly",null);_.z([_.lr("skinnyMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"moveActionsElement",null);_.z([_.kZ("yt-text-inline-expander-expand-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.z([_.kZ("yt-text-inline-expander-collapse-clicked"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.z([_.kZ("yt-text-inline-expander-expanded-changed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],vF.prototype,"onRenderStamperFinished",null);_.z([_.kZ("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"onYtExpanderMoreTapped",null);_.z([_.kZ("yt-expander-less-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"onYtExpanderLessTapped",null);
_.z([_.lr("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"registerPanel",null);_.z([_.lr("videoSecondaryInfoRenderer"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vF.prototype,"resetDescriptionState",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-watch-metadata"})],vF);
_.a(vF,"ytd-watch-metadata",function(){if(cCd!==void 0)return cCd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return cCd=Y},{mode:2});_.Bdg=function(Y){_.BE.call(this);this.JSC$20331_watchApi=Y;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;xdb(this);qOF(this);shI(this);QhX(this);v4Q(this);PRt(this);ZNX(this)};
_.P(_.Bdg,_.BE);var shI=function(Y){var b=function(){_.q("kevlar_is_pupi_enabled")||PF(Y)};
Y.JSC$20331_watchApi.getRoot().addEventListener("yt-player-updated",b);Y.addOnDisposeCallback(function(){Y.JSC$20331_watchApi.getRoot().removeEventListener("yt-player-updated",b)})},v4Q=function(Y){if(_.q("kevlar_endscreen_auto_theater_mode")){var b=Y.JSC$20331_watchApi.subscribeToActiveChanged(function(){n4g(Y)},!1);
Y.addOnDisposeCallback(b)}},xdb=function(Y){var b,w,V,H,f;
_.c(function(E){if(E.nextAddress==1)return _.D(E,Y.JSC$20331_watchApi.playerApi,2);b=E.yieldResult;w=function(U){U=!!U;Z3(Y)&&(U=U?2:1,_.Vy.getInstance().setState(U,!0,!1))};
V=function(U){U&&_.ned(_.u3().getState())&&(_.Xx(Y.JSC$20331_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),Y.temporaryTheaterMode=!0)};
H=function(U){_.q("kevlar_player_update_autonav_on_new_data")&&U.type==="newdata"&&(_.q("kevlar_is_pupi_enabled")||PF(Y))};
f=function(U){Y.onPlayerStateChange(U)};
_.q("kevlar_endscreen_auto_theater_mode")&&b.addEventListener("onAutonavCancelled",V);b.addEventListener("onAutonavChangeRequest",w);b.addEventListener("onVideoDataChange",H);b.addEventListener("onStateChange",f);Y.addOnDisposeCallback(function(){b.removeEventListener("onAutonavChangeRequest",w);b.removeEventListener("onVideoDataChange",H);b.removeEventListener("onStateChange",f);_.q("kevlar_endscreen_auto_theater_mode")&&b.removeEventListener("onAutonavCancelled",V)});
_.om(E)})},qOF=function(Y){Y.JSC$20331_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){Y.autonavCancelledBySignal=!0;
_.q("kevlar_is_pupi_enabled")||PF(Y)});
Y.JSC$20331_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(b,w,V){w&&PF(Y,V)});
Y.JSC$20331_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Z3(Y)&&_.Vy.getInstance().setState(2,!0,!0)});
Y.JSC$20331_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Z3(Y)&&_.Vy.getInstance().setState(1,!0,!0)});
Y.addOnDisposeCallback(function(){Y.JSC$20331_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");Y.JSC$20331_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");Y.JSC$20331_watchApi.unregisterActionHandler("yt-enable-autoplay-command");Y.JSC$20331_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},QhX=function(Y){var b=Y.JSC$20331_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ZNX(Y)}),w=Y.JSC$20331_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){PRt(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20331_watchApi.unsubscribeByKey(b);Y.JSC$20331_watchApi.unsubscribeByKey(w)})},ZNX=function(Y){Y.autonavCancelledBySignal=!1;
_.q("kevlar_is_pupi_enabled")||PF(Y)},PRt=function(Y){var b=Y.JSC$20331_watchApi.getWatchNextResponse(),w,V;
var H=(b=(V=_.v(b==null?void 0:(H=b.playerOverlays)==null?void 0:(w=H.playerOverlayRenderer)==null?void 0:w.autonavToggle,_.Fs$))==null?void 0:V.enabled)?2:1;_.q("kevlar_is_pupi_enabled")?_.Vy.getInstance().setState(H,!1,!1):PF(Y);_.q("web_persist_server_autonav_state_on_client")&&typeof b==="boolean"&&_.sBI(H===2)},Z3=function(Y){if(Y.autonavCancelledBySignal)return!1;
var b,w,V,H;return!!((b=Y.JSC$20331_watchApi.getWatchNextResponse())==null?0:(w=b.contents)==null?0:(V=w.twoColumnWatchNextResults)==null?0:(H=V.autoplay)==null?0:H.autoplay)};
_.Bdg.prototype.onPlayerStateChange=function(Y){if(Y===0){Y=!_.Vy.getInstance().isAutoplaySetExplicitly();var b=this.JSC$20331_watchApi.getWatchNextResponse(),w,V,H,f;b=_.v(b==null?void 0:(w=b.contents)==null?void 0:(V=w.twoColumnWatchNextResults)==null?void 0:(H=V.autoplay)==null?void 0:(f=H.autoplay)==null?void 0:f.autoplayExplicitChoiceDialogRenderer,_.g8K);Z3(this)&&Y&&b&&_.l8.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:b},popupType:"DIALOG"}})}else n4g(this)};
var n4g=function(Y){Y.temporaryTheaterMode&&(Y.temporaryTheaterMode=!1,_.Xx(Y.JSC$20331_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},PF=function(Y,b){b=b===void 0?!1:b;
var w;_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20331_watchApi.playerApi,2);w=V.yieldResult;Z3(Y)?w.setAutonavState(_.Vy.getInstance().getState(),b):w.setAutonavState(1,b);_.om(V)})};var M2d={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"};_.pAg=function(Y){_.BE.call(this);var b=this;this.JSC$20336_watchApi=Y;var w=this.JSC$20336_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ets(b)});
this.addOnDisposeCallback(function(){b.JSC$20336_watchApi.unsubscribeByKey(w)});
ets(this)};
_.P(_.pAg,_.BE);var ets=function(Y){var b=Y.JSC$20336_watchApi.getPlayerResponse(),w=Y.JSC$20336_watchApi.getWatchNextResponse();if(!_.f6u(b==null?void 0:b.playabilityStatus,w==null?void 0:w.playerOverlays)){var V;var H=b==null?void 0:(V=b.playabilityStatus)==null?void 0:V.errorScreen}Y.JSC$20336_watchApi.provideRenderingData("ERROR_SCREEN",H)};var ONX=_.b8(function(Y){var b=Y.data;var w=_.rn(_.Wv);Y={};return _.m("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.Q_(function(){var V=b().onTap;V&&_.fH().resolve(_.Nn).resolveCommand(V)}),
role:"button"},_.m("h2",{class:_.hj("ytPlayerOverlayVideoDetailsRendererTitle",(Y.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!w()},Y))},_.m(_.wv,{text:function(){return b().title}})),_.m("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.m(_.wv,{text:function(){return b().subtitle}})))},"pj");var BF={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},t2b=_.b8(function(Y){var b=Y.data;var w=_.rn(_.Wv);Y={};return _.m("yt-player-quick-action-buttons",{class:_.hj("ytPlayerQuickActionButtonsHost",(Y.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!w()},Y))},_.m(_.Bf,{each:function(){var V=b(),H=w();
V=JSON.parse(JSON.stringify(V));for(var f=_.q("web_watch_action_bar_resize_buttons"),E=_.q("delhi_modern_web_player_icons")&&!_.q("enable_web_delhi_icons"),U=_.N(V),X=U.next();!X.done;X=U.next()){var I=X.value,k=void 0;X=_.v((k=_.v(I,_.dK))==null?void 0:k.toggleButtonViewModel,_.ns);var l=void 0;k=_.v((l=_.v(I,_.Fz))==null?void 0:l.toggleButtonViewModel,_.ns);I=_.v(I,_.Bv);X?(k=_.v(X.defaultButtonViewModel,_.Bv),X=_.v(X.toggledButtonViewModel,_.Bv),k&&(E&&k.iconName&&(k.iconName=BF[k.iconName]),!H&&
f&&(k.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),X&&(E&&X.iconName&&(X.iconName=BF[X.iconName]),!H&&f&&(X.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):k?(X=_.v(k.defaultButtonViewModel,_.Bv),k=_.v(k.toggledButtonViewModel,_.Bv),X&&(E&&X.iconName&&(X.iconName=BF[X.iconName]),!H&&f&&(X.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),k&&(E&&k.iconName&&(k.iconName=BF[k.iconName]),!H&&f&&(k.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):I&&(E&&I.iconName&&(I.iconName=BF[I.iconName]),!H&&f&&(I.buttonSize=
"BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return V}},function(V){return _.m(_.OH,{data:function(){return V}},{buttonViewModel:_.a1,
likeButtonViewModel:function(H){return _.m(_.tm,{data:H.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.Oe})}))},"qj");_.ddd=function(Y){_.BE.call(this);var b=this;this.JSC$20340_watchApi=Y;Y=_.N(_.kw({},void 0,"ufFdVc"));this.quickActionsViewModel=Y.next().value;this.setQuickActionsViewModel=Y.next().value;Y=_.N(_.kw({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=Y.next().value;this.setPlayerOverlayVideoDetailsRenderer=Y.next().value;var w=this.JSC$20340_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Rtb(b)});
this.addOnDisposeCallback(function(){b.JSC$20340_watchApi.unsubscribeByKey(w)});
Rtb(this)};
_.P(_.ddd,_.BE);
var Rtb=function(Y){var b,w,V,H,f,E,U,X,I,k,l,x,Q,Z;_.c(function(e){if(e.nextAddress==1)return _.D(e,Y.JSC$20340_watchApi.playerApi,2);b=e.yieldResult;w=Y.JSC$20340_watchApi.getWatchNextResponse();f=(V=w)==null?void 0:(H=V.playerOverlays)==null?void 0:H.playerOverlayRenderer;U=_.v((E=f)==null?void 0:E.fullscreenQuickActionsBar,_.rtK);(I=(X=Y).setQuickActionsViewModel)==null||I.call(X,U||{});U&&F1X(Y,b);x=(k=f)==null?void 0:(l=k.videoDetails)==null?void 0:l.playerOverlayVideoDetailsRenderer;(Z=(Q=
Y).setPlayerOverlayVideoDetailsRenderer)==null||Z.call(Q,x||{});x&&L1t(Y,b);_.om(e)})},F1X=function(Y,b){if(!Y.quickActionButtonsContainer){Y.quickActionButtonsContainer=document.createElement("div");
b.setFullscreenQuickActions(Y.quickActionButtonsContainer);var w=function(){return Y.quickActionsViewModel().quickActionButtons||[]},V=_.Oz(Y.quickActionButtonsContainer,function(){return _.m(t2b,{data:w})});
Y.addOnDisposeCallback(function(){b.setFullscreenQuickActions(void 0);V()})}},L1t=function(Y,b){if(!Y.playerOverlayVideoDetailsRendererContainer){Y.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
b.setPlayerOverlayVideoDetailsRenderer(Y.playerOverlayVideoDetailsRendererContainer);var w=_.Oz(Y.playerOverlayVideoDetailsRendererContainer,function(){return _.m(ONX,{data:Y.playerOverlayVideoDetailsRenderer})});
Y.addOnDisposeCallback(function(){b.setPlayerOverlayVideoDetailsRenderer(void 0);w()})}};_.nT=function(Y){_.BE.call(this);var b=this;this.JSC$20345_watchApi=Y;this.JSC$20345_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;Y=_.vB(_.u3(),_.Wv,function(w){b.onFullscreenChanged(w)});
this.addOnDisposeCallback(Y);Y=_.vB(_.u3(),_.Bi,function(w){b.onWatchScroll(w)});
this.addOnDisposeCallback(Y);_.q("kevlar_watch_while_v2")&&(Y=_.vB(_.u3(),_.L8,function(w){SOs(b,w)}),this.addOnDisposeCallback(Y));
arQ(this);rCd(this);ztQ();this.onWatchScroll(_.Bi(_.u3().getState()));_.Wf("START_IN_FULL_WINDOW_MODE")&&this.JSC$20345_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.P(_.nT,_.BE);var arQ=function(Y){Y.JSC$20345_watchApi.registerActionHandler("yt-fullscreen-change-action",function(b){var w=Y.JSC$20345_watchApi.isActive();b&&!w||_.u3().dispatch(_.Uf({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!b}}))});
Y.addOnDisposeCallback(function(){Y.JSC$20345_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},rCd=function(Y){var b,w;
_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20345_watchApi.playerApi,2);b=V.yieldResult;w=function(){Y.onFullerscreenEduClicked()};
b.addEventListener("onFullerscreenEduClicked",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onFullerscreenEduClicked",w)});
_.om(V)})};
_.nT.prototype.onFullscreenChanged=function(Y){var b=this,w;return _.c(function(V){if(V.nextAddress==1)return b.isFullscreen=!!_.fz(),_.D(V,b.JSC$20345_watchApi.playerApi,2);w=V.yieldResult;b.JSC$20345_miniplayerActive||w.setFauxFullscreen(b.isFullscreen);if(Y&&(b.JSC$20345_watchApi.focusOnPlayer(),!b.fullerscreenEduButtonShownThisPlayback)){b.fullerscreenEduButtonShownThisPlayback=!0;var H=_.l4("yt-fullerscreen-edu-button-shown-count")||0;_.kc("yt-fullerscreen-edu-button-shown-count",H+1,31536E3);
b.updateFullerscreenEduButtonSubtleModeState()}_.om(V)})};
var SOs=function(Y,b){var w;_.c(function(V){if(V.nextAddress==1)return Y.JSC$20345_miniplayerActive=b,_.D(V,Y.JSC$20345_watchApi.playerApi,2);w=V.yieldResult;w.setFauxFullscreen(!Y.JSC$20345_miniplayerActive&&Y.isFullscreen);_.om(V)})};
_.nT.prototype.onWatchScroll=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1)return _.q("external_fullscreen_with_edu")?_.D(H,b.JSC$20345_watchApi.playerApi,2):H.return();w=H.yieldResult;V=Y<=0;b.shouldShowFullerscreenEdu!==V&&(b.shouldShowFullerscreenEdu=V,w.updateFullerscreenEduButtonVisibility(!b.shouldShowFullerscreenEdu));_.om(H)})};
_.nT.prototype.onFullerscreenEduClicked=function(){this.JSC$20345_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var Y=_.l4("yt-fullerscreen-edu-button-click-count")||0;_.kc("yt-fullerscreen-edu-button-click-count",Y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.nT.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var Y=this,b,w,V,H,f,E;return _.c(function(U){if(U.nextAddress==1)return b=_.l4("yt-fullerscreen-edu-button-click-count")||0,w=_.l4("yt-fullerscreen-edu-button-shown-count")||0,V=_.cQ("external_fullscreen_button_click_threshold"),H=_.cQ("external_fullscreen_button_shown_threshold"),f=b>=V||w>=H,_.D(U,Y.JSC$20345_watchApi.playerApi,2);E=U.yieldResult;E.updateFullerscreenEduButtonSubtleModeState(f);_.om(U)})};
_.nT.prototype.disposeInternal=function(){_.BE.prototype.disposeInternal.call(this);var Y=_.fz();_.q("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.N8(Y)};
var ztQ=function(){if(_.q("web_watch_add_viewport_meta_tag")){var Y=document.querySelector("meta[name=viewport]"),b=document.head;b&&!Y&&(Y=document.createElement("meta"),Y.name="viewport",Y.content="width=device-width, initial-scale=1.0, viewport-fit=cover",b.appendChild(Y))}};_.M5=function(Y){_.BE.call(this);var b=this;this.JSC$20349_watchApi=Y;this.jobId=0;this.pendingRequestId=void 0;var w=this.JSC$20349_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W1O(b)});
this.addOnDisposeCallback(function(){b.JSC$20349_watchApi.unsubscribeByKey(w)});
W1O(this)};
_.P(_.M5,_.BE);var K1X=function(Y){_.Lb.cancelJob(Y.jobId);Y.pendingRequestId=void 0},W1O=function(Y){K1X(Y);
var b=uYQ(Y.JSC$20349_watchApi.getWatchNextResponse());if(b){var w=250,V,H=(V=_.v(b,_.Wyr))==null?void 0:V.initialDelayMs;_.q("web_watch_updated_metadata_server_initial_delay")&&H&&(w=H);Y.jobId=_.Lb.addLowPriorityJob(function(){return Y.fetchUpdatedMetadata(b)},w)}};
_.M5.prototype.fetchUpdatedMetadata=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L;return _.c(function(r){switch(r.nextAddress){case 1:b&&(V={continuation:b});if(!_.q("web_get_updated_metadata_fantasy_panel_continuation_params")){r.jumpTo(2);break}H=_.fH().resolve(_.Za);f="PAsports_fantasy";return _.D(r,H.isVisible(f,!0),3);case 3:r.yieldResult&&(I=(U=(E=H).getUpdatePanelContinuationData)==null?void 0:(X=U.call(E,f))==null?void 0:X.updatePanelContinuationRequest)&&(V||(V={}),V.clientParams=
{panelContinuationParams:{panelContinuation:I}});case 2:k=_.fH().resolve(_.Sy);if(!k)return _.Ft(Error("lm")),r.return();l={};w.pendingRequestId=l;return _.D(r,_.$_(k,Y,V),4);case 4:x=r.yieldResult;if(l!==w.pendingRequestId)return r.return();e=(Q=x)==null?void 0:(Z=Q.continuation)==null?void 0:Z.timedContinuationData;((O=e)==null?0:O.continuation)&&((L=e)==null?0:L.timeoutMs)&&(w.jobId=_.Lb.addLowPriorityJob(function(){return w.fetchUpdatedMetadata(Y,e.continuation)},e.timeoutMs));
_.om(r)}})};
_.M5.prototype.disposeInternal=function(){_.BE.prototype.disposeInternal.call(this);K1X(this)};var iNQ=_.b8(function(Y){var b=_.Q_(function(){var V=Y.data().videoId;if(Y.active())V=_.f8(V),_.fH().resolve(_.Nn).resolveCommand(V);else{var H=Y.playerApi(),f=H.getAvailableAudioTracks(),E,U,X=(E=Y.sourceVideoConfig().audioTracks)==null?void 0:(U=E.find(function(I){return I.isDefaultForSource}))==null?void 0:U.id;
if(f=f.find(function(I){return I.getLanguageInfo().getId()===X}))H.setAudioTrack(f,!0),H.setCompositeParam({activeVideoId:V}),Y.setActiveSourceId(V)}}),w={};
return _.m("ytw-composite-source-video-overlay",{class:_.hj("ytwCompositeSourceVideoOverlayHost",(w.ytwCompositeSourceVideoOverlayActive=Y.active,w.ytwCompositeSourceVideoOverlayInteracting=Y.interacting,w)),style:_.Bb({left:function(){var V;return((V=Y.data().topLeftCornerX)!=null?V:0)*100+"%"},
top:function(){var V;return((V=Y.data().topLeftCornerY)!=null?V:0)*100+"%"},
width:function(){var V;return((V=Y.data().width)!=null?V:0)*100+"%"},
height:function(){var V;return((V=Y.data().height)!=null?V:0)*100+"%"}}),
"on:click":b},_.m("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"rj");var ACX=_.b8(function(Y){var b=_.N(_.Zp(function(){var E,U=(E=Y.data().sources)==null?void 0:E.find(function(X){return X.isActive});
if(U)return U.videoId})),w=b.next().value,V=b.next().value;
b=_.N(_.kw(!1,void 0,"WI4BUb"));var H=b.next().value,f=b.next().value;return _.m("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Q_(function(){f(!0)}),
"on:mouseout":_.Q_(function(){f(!1)})},_.m(_.h,{cond:function(){return Y.data().sources},
then:function(E){return _.m(_.Bf,{each:E},function(U){return _.m(iNQ,{data:U,active:function(){return U.videoId===w()},
setActiveSourceId:V,interacting:H,playerApi:Y.playerApi,sourceVideoConfig:function(){return Ym7(Y.compositeVideoConfig(),U.videoId)}})})}}))},"sj");_.$ds=function(Y){_.BE.call(this);this.JSC$20365_watchApi=Y;Y=_.N(_.kw({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=Y.next().value;this.setCompositeVideoOverlayRenderer=Y.next().value;Y=_.N(_.kw({},void 0,"U5hcq"));this.compositeVideoConfig=Y.next().value;this.setCompositeVideoConfig=Y.next().value;CRO(this);yCb(this)};
_.P(_.$ds,_.BE);var CRO=function(Y){var b=Y.JSC$20365_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){yCb(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20365_watchApi.unsubscribeByKey(b)})},jhR=function(Y){var b;
return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.JSC$20365_watchApi.playerApi,2);b=w.yieldResult;b.setCompositeVideoOverlayRendererComponent(Y.container);_.om(w)})},GJF=function(Y){var b;
return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.JSC$20365_watchApi.playerApi,2);b=w.yieldResult;b.setCompositeVideoOverlayRendererComponent(void 0);_.om(w)})},TdN=function(Y){var b,w;
return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20365_watchApi.playerApi,2);b=V.yieldResult;Y.container=document.createElement("div");w=_.Oz(Y.container,function(){return _.m(ACX,{data:Y.compositeVideoOverlayRenderer,compositeVideoConfig:Y.compositeVideoConfig,playerApi:b})});
Y.addOnDisposeCallback(w);_.om(V)})},yCb=function(Y){var b,w,V,H,f,E,U,X;
_.c(function(I){return I.nextAddress==1?(b=Y.JSC$20365_watchApi.getPlayerResponse(),f=_.v((w=b)==null?void 0:(V=w.overlay)==null?void 0:(H=V.playerControlsOverlayRenderer)==null?void 0:H.compositeVideoOverlay,irX),X=(E=b)==null?void 0:(U=E.playerConfig)==null?void 0:U.compositeVideoConfig,f&&Y.setCompositeVideoOverlayRenderer(f),X&&Y.setCompositeVideoConfig(X),f&&X?Y.container?I.jumpTo(6):_.D(I,TdN(Y),6):JCb(Y)?_.D(I,GJF(Y),0):I.jumpTo(0)):JCb(Y)?I.jumpTo(0):_.D(I,jhR(Y),0)})},JCb=function(Y){var b;
return!((b=Y.container)==null||!b.parentElement)};
_.$ds.prototype.disposeInternal=function(){JCb(this)&&GJF(this);_.BE.prototype.disposeInternal.call(this)};_.VnF=function(Y){_.BE.call(this);var b=this;this.JSC$20371_watchApi=Y;var w=this.JSC$20371_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var V=b.JSC$20371_watchApi.getPlayerResponse();if(V){var H,f;if(V=_.v((H=V.endscreen)==null?void 0:(f=H.endscreenRenderer)==null?void 0:f.hideButton,_.ns)){var E;(E=b.setEndscreenHideButton)==null||E.call(b,V);ujQ(b)}}});
this.addOnDisposeCallback(function(){b.JSC$20371_watchApi.unsubscribeByKey(w)});
Y=_.N(_.kw({},void 0,"PPHRb"));this.endscreenHideButton=Y.next().value;this.setEndscreenHideButton=Y.next().value;YW7(this);bKI(this);wJQ(this)};
_.P(_.VnF,_.BE);var ujQ=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return Y.creatorEndscreenHideButtonContainer?V.return():_.D(V,Y.JSC$20371_watchApi.playerApi,2);b=V.yieldResult;Y.creatorEndscreenHideButtonContainer=document.createElement("div");_.T_(Y.creatorEndscreenHideButtonContainer,!1);b.setCreatorEndscreenHideButton(Y.creatorEndscreenHideButtonContainer);w=_.Oz(Y.creatorEndscreenHideButtonContainer,function(){return _.m(_.td,{data:Y.endscreenHideButton,useOutlinedIcon:!0})});
Y.addOnDisposeCallback(function(){w();b.setCreatorEndscreenHideButton(void 0)});
_.om(V)})},YW7=function(Y){var b,w;
_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20371_watchApi.playerApi,2);b=V.yieldResult;w=function(){Y.creatorEndscreenHideButtonContainer&&_.T_(Y.creatorEndscreenHideButtonContainer,!0)};
b.addEventListener("endscreenelementshown",w);Y.addOnDisposeCallback(function(){b.removeEventListener("endscreenelementshown",w)});
_.om(V)})},bKI=function(Y){var b=function(){Y.creatorEndscreenHideButtonContainer&&_.T_(Y.creatorEndscreenHideButtonContainer,!1)},w=Y.JSC$20371_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",b),V=Y.JSC$20371_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",b);
Y.addOnDisposeCallback(function(){Y.JSC$20371_watchApi.unsubscribeByKey(w);Y.JSC$20371_watchApi.unsubscribeByKey(V)})},wJQ=function(Y){Y.JSC$20371_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(b){var w=_.v(b,SmR);
Y.JSC$20371_watchApi.playerApi.then(function(V){V==null||V.setCreatorEndscreenVisibility(!!w.hide)})});
Y.addOnDisposeCallback(function(){Y.JSC$20371_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.gjA=function(Y){_.BE.call(this);this.JSC$20377_watchApi=Y;HKO(this)};
_.P(_.gjA,_.BE);var HKO=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20377_watchApi.playerApi,2);b=V.yieldResult;w=function(H){_.u3().dispatch(_.Uf({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:H}}))};
b.addEventListener("onRetroModeChanged",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onRetroModeChanged",w)});
_.om(V)})};var OR=0,p6=0,t3=0;var fJX;fJX=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.eA=function(Y){_.BE.call(this);this.JSC$20390_watchApi=Y;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Nkd(this)};
_.P(_.eA,_.BE);
var Nkd=function(Y){var b,w,V;_.c(function(H){if(H.nextAddress==1)return _.D(H,Y.JSC$20390_watchApi.playerApi,2);b=H.yieldResult;if(Y.isDisposed())return H.return();Y.sessionStorage=_.tKR("yt-sleep-timer");Y.sessionStorage||_.Sk(new _.BQ("SessionStorage for Sleep Timer is undefined."));((w=Y.sessionStorage)==null?void 0:w.get("yt-sleep-timer"))==="true"&&(UAb(),(V=Y.sessionStorage)==null||V.remove("yt-sleep-timer"),b.syncVolume());EjI(Y,b);cYF(Y,b);U9d(Y,b);_.om(H)})},EjI=function(Y,b){var w=function(I){Y.onSleepTimerSettingsChanged(I,
b)},V=function(I){Y.onPlayerStateChange(I,b)},H=function(){Y.onLoopChange(b)},f=function(){Y.onCloseMiniplayer(b)},E=function(){fPR(b,(0,_.gG)(),XsF(b),Y.selectedOption==="End of video",b.getPlayerState()!==1)},U=function(){Y.onSeekComplete(b)},X=function(){_.Lb.cancelJob(p6);
var I=b.getCurrentTime()>=b.getDuration(),k=Y.selectedOption==="End of video"||Y.selectedOption==="End of playlist"&&!VJF(Y.playlistId);I&&k&&XJO(Y,b)};
b.addEventListener("onSleepTimerSettingsChanged",w);b.addEventListener("onLoopChange",H);b.addEventListener("onLoopRangeChange",H);b.addEventListener("onStateChange",V);b.addEventListener("onCloseMiniplayer",f);b.addEventListener("onSleepTimerFeatureAvailable",E);b.addEventListener("SEEK_COMPLETE",U);b.addEventListener("onAdStart",X);Y.addOnDisposeCallback(function(){b.removeEventListener("onSleepTimerSettingsChanged",w);b.removeEventListener("onLoopChange",H);b.removeEventListener("onLoopRangeChange",
H);b.removeEventListener("onStateChange",V);b.removeEventListener("onCloseMiniplayer",f);b.removeEventListener("onSleepTimerFeatureAvailable",E);b.removeEventListener("SEEK_COMPLETE",U);b.removeEventListener("onAdStart",X)})},cYF=function(Y,b){var w=Y.JSC$20390_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var V=b.getVideoData().video_id,H,f=(H=brR(Y.JSC$20390_watchApi))==null?void 0:H.playlistId;
Y.pauseAutonavPlayback&&(b.pauseVideo(),b.syncVolume(),Y.pauseAutonavPlayback=!1);if(Y.selectedOption==="End of video"&&V!==Y.videoId)pT(Y,b);else{if(Y.selectedOption==="End of playlist"){H=VJF(Y.playlistId);if(f!==Y.playlistId){pT(Y,b);break a}H?H&&D9X(Y,b):m9Q(Y,b)}Y.videoId=V;Y.playlistId=f}}});
Y.addOnDisposeCallback(function(){Y.JSC$20390_watchApi.unsubscribeByKey(w)})},U9d=function(Y,b){var w=_.fH().resolve(_.i4),V=_.vB(w,_.oUv,function(f){f&&Y.selectedOption!=="Off"&&pT(Y,b)}),H=Y.JSC$20390_watchApi.subscribeToActiveChanged(function(f){var E,U;
return _.c(function(X){if(X.nextAddress==1)return _.D(X,_.sL().navigationFinishPromise,2);E=!_.J0k();U=_.fH().resolve(_.Ck).isMiniplayerActive();f||!eG(Y.selectedOption)||U||E||pT(Y,b);_.om(X)})},!1);
w=_.vB(w,function(f){return f.entities.playlistLoopStateEntity||{}},function(f){f=f===void 0?{}:f;
var E=wsO(Y.JSC$20390_watchApi);if(E){var U;((U=f[E])==null?void 0:U.state)==="PLAYLIST_LOOP_STATE_ALL"&&eG(Y.selectedOption)&&pT(Y,b)}});
Y.addOnDisposeCallback(V);Y.addOnDisposeCallback(w);Y.addOnDisposeCallback(H)};
_.eA.prototype.onSleepTimerSettingsChanged=function(Y,b){switch(Y){case "Off":this.selectedOption!=="Off"&&pT(this,b);break;case "End of video":case "End of playlist":ojX(this,Y,b);break;default:ojX(this,Y,b,fJX.get(Y))}};
_.eA.prototype.onLoopChange=function(Y){(Y.getLoopVideo()||Y.getLoopRange())&&eG(this.selectedOption)&&pT(this,Y)};
_.eA.prototype.onCloseMiniplayer=function(Y){eG(this.selectedOption)&&pT(this,Y)};
var ojX=function(Y,b,w,V){IJX(Y,w);Y.selectedOption=b;Y.videoId=w.getVideoData().video_id;Y.playlistId="";var H;(H=Y.sessionStorage)==null||H.set("yt-sleep-timer","true");Y.adjustmentsCount++;fPR(w,(0,_.gG)(),XsF(w),Y.selectedOption==="End of video");if(Y.selectedOption==="End of video")m9Q(Y,w),kEO(Y,w);else if(Y.selectedOption==="End of playlist"){kEO(Y,w);var f,E;Y.playlistId=(E=(f=brR(Y.JSC$20390_watchApi))==null?void 0:f.playlistId)!=null?E:"";VJF(Y.playlistId)||m9Q(Y,w)}else V&&(Y.presetFadeSchedulerId=
_.vv(_.Lb,function(){EzO(w,15E3)},V-15E3),Y.presetPauseSchedulerId=_.vv(_.Lb,function(){XJO(Y,w)},V),Nes(w,(0,_.gG)(),V))},XJO=function(Y,b){if(Y.JSC$20390_watchApi.isActive()){var w={dismissDialogEndpoint:{}};
var V={commandExecutorCommand:{commands:[w,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};w={buttonViewModel:{title:_.sa("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:w}}};V={buttonViewModel:{title:_.sa("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:V}}};var H={dialogHeaderViewModel:{headline:{content:_.sa("SLEEP_TIMER_ENDED_TITLE")}}},
f={basicContentViewModel:{paragraphs:[{text:{content:_.sa("SLEEP_TIMER_ENDED_TEXT")}}]}};w={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:H,content:f,footer:{panelFooterViewModel:{primaryButton:w,secondaryButton:V,shouldHideDivider:!0}}}}}}};_.fH().resolve(_.Nn).resolveCommand(w,{form:{element:Y}})}else UAb();lJs(Y,!1);hDA(Y,b);b.pauseVideo();_.Vy.getInstance().getState()===2&&b.getPlayerState()===5&&(Y.pauseAutonavPlayback=!0)},pT=function(Y,b){lJs(Y,!0);
hDA(Y,b);UAb()},hDA=function(Y,b){IJX(Y,b);
Y.selectedOption="Off";Y.videoId="";Y.playlistId="";Y.adjustmentsCount=0;var w;(w=Y.sessionStorage)==null||w.remove("yt-sleep-timer");_.Lb.cancelJob(OR);b.resetSleepTimerMenuSettings()},lJs=function(Y,b){b={timer_length_adjustment_times_during_session:Y.adjustmentsCount-1,
is_session_cancelled:b};switch(Y.selectedOption){case "Off":b.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:b.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",b.option_duration_in_minutes=fJX.get(Y.selectedOption)/6E4}_.RY("sleepTimerSessionFinishEvent",b)};
_.eA.prototype.onPlayerStateChange=function(Y,b){Y===1?fPR(b,(0,_.gG)(),XsF(b),this.selectedOption==="End of video"):Y===0?(_.Lb.cancelJob(p6),b.setVideoTimeLeft(gzR(0,0))):Y===2&&_.Lb.cancelJob(p6);this.selectedOption==="End of video"?Y===0?XJO(this,b):Y===2&&cTs(b):this.selectedOption!=="End of playlist"||VJF(this.playlistId)||(Y===0?XJO(this,b):Y===2&&cTs(b))};
_.eA.prototype.onSeekComplete=function(Y){Y.getPlayerState()===2&&fPR(Y,(0,_.gG)(),XsF(Y),this.selectedOption==="End of video",!0)};
_.eA.prototype.onCueRangeEnter=function(Y,b){Y==="sleep-timer-fade-audio"&&EzO(b,(b.getDuration()-b.getProgressState().current)*1E3)};
_.eA.prototype.onCueRangeExit=function(Y,b){Y==="sleep-timer-fade-audio"&&b.getPlayerState()!==0&&cTs(b,!0)};
var m9Q=function(Y,b){b.addCueRange("sleep-timer-fade-audio",b.getDuration()-15,b.getDuration());b.addEventListener("onCueRangeEnter",function(w){Y.onCueRangeEnter(w,b)});
b.addEventListener("onCueRangeExit",function(w){Y.onCueRangeExit(w,b)})},D9X=function(Y,b){b.removeCueRange("sleep-timer-fade-audio");
b.removeEventListener("onCueRangeEnter",function(w){Y.onCueRangeEnter(w,b)});
b.removeEventListener("onCueRangeExit",function(w){Y.onCueRangeExit(w,b)})},IJX=function(Y,b){eG(Y.selectedOption)?D9X(Y,b):(_.Lb.cancelJob(Y.presetPauseSchedulerId),_.Lb.cancelJob(Y.presetFadeSchedulerId),Y.presetPauseSchedulerId=0,Y.presetFadeSchedulerId=0);
cTs(b,!0)},kEO=function(Y,b){b.setLoop(!1);
b.setLoopVideo(!1);b.setLoopRange(null);(Y=wsO(Y.JSC$20390_watchApi))&&_.fH().resolve(_.i4).dispatch(_.qo("playlistLoopStateEntity",Y,{key:Y,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.QEX=function(Y){_.BE.call(this);this.JSC$20393_watchApi=Y;x9N(this);qWX(this);sEI(this);Y=Y.getRoot();if(Y.is==="ytd-watch-flexy"||Y.is==="ytd-watch-grid")Y.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.veF();_.q("web_watch_log_theater_mode_cookie_state")&&_.sJ.get("wide","0")==="1"&&_.Cdv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.P(_.QEX,_.BE);var x9N=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20393_watchApi.playerApi,2);b=V.yieldResult;w=function(H){vjX(Y,!!H)};
b.addEventListener("SIZE_CLICKED",w);Y.addOnDisposeCallback(function(){b.removeEventListener("SIZE_CLICKED",w)});
_.om(V)})},qWX=function(Y){Y.JSC$20393_watchApi.registerActionHandler("yt-toggle-theater-mode",function(b,w){vjX(Y,b,w===void 0?!0:w)});
Y.addOnDisposeCallback(function(){Y.JSC$20393_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.QEX.prototype.getState=function(){return _.zI(_.u3().getState())};
var vjX=function(Y,b,w){w=w===void 0?!0:w;var V,H,f,E=_.q("enable_player_resize_transition")&&!!Y.JSC$20393_watchApi.getWatchNextResponse()&&!((V=Y.JSC$20393_watchApi.getWatchNextResponse())==null?0:(H=V.contents)==null?0:(f=H.twoColumnWatchNextResults)==null?0:f.conversationBar);_.R4F(function(){_.u3().dispatch(_.Uf({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:b}}));_.q("theater_mode_scroll_to_top_killswitch")||Y.JSC$20393_watchApi.scrollWatchTo(0,!1);_.fz()&&_.q("external_fullscreen")&&_.N8(document.documentElement);
sEI(Y);w&&_.Qh("wide",b?"1":"0",-1);_.Xx(Y.JSC$20393_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);Y.JSC$20393_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:b});b&&_.veF()},{shouldWrap:E})},sEI=function(Y){var b;
_.c(function(w){if(w.nextAddress==1)return _.D(w,Y.JSC$20393_watchApi.playerApi,2);b=w.yieldResult;b.setSizeStyle(!0,Y.getState());_.om(w)})};var BkX=function(Y){_.BE.call(this);var b=this;this.playerApi=Y;this.timeToPanelSyncKeyMap={};var w;if(Y==null?0:(w=Y.isReady)==null?0:w.call(Y)){w=_.vB(_.fH().resolve(_.i4),function(H){return H.entities.timedMarkersListSyncEntity||{}},function(H,f){H=H===void 0?{}:H;
f=f===void 0?{}:f;for(var E=_.N(Object.keys(f)),U=E.next();!U.done;U=E.next())U=U.value,H[U]!==f[U]&&Plt(b,f[U]);f=_.N(Object.keys(H));for(E=f.next();!E.done;E=f.next())E=E.value,U=H[E],b.timeToPanelSyncKeyMap[E]&&ZKI(b,U)});
this.addOnDisposeCallback(w);var V=function(H){b.onCueRangeEnter(H)};
Y.addEventListener("onCueRangeEnter",V);this.addOnDisposeCallback(function(){var H;(H=Y.removeEventListener)==null||H.call(Y,"onCueRangeEnter",V)})}};
_.P(BkX,_.BE);
var ZKI=function(Y,b){var w,V;if((w=Y.playerApi)==null?0:(V=w.isReady)==null?0:V.call(w)){var H;if((w=b==null?void 0:(H=b.timedListData)==null?void 0:H.sections)&&b!=null&&b.key)for(H=_.N(w),w=H.next();!w.done;w=H.next())if(w=w.value,w.timedSyncDataList&&w.sectionId)for(V=0;V<w.timedSyncDataList.length;V++){var f=w.timedSyncDataList[V];f.syncItemId&&Y.playerApi.addCueRange(w.sectionId+"_"+b.key+"_"+f.syncItemId,Number(f.videoTimeMs)/1E3,V===w.timedSyncDataList.length-1?0x8000000000000:Number(w.timedSyncDataList[V+
1].videoTimeMs)/1E3)}}},Plt=function(Y,b){var w,V;
if((w=Y.playerApi)==null?0:(V=w.isReady)==null?0:V.call(w)){var H;if((w=b==null?void 0:(H=b.timedListData)==null?void 0:H.sections)&&b!=null&&b.key)for(H=_.N(w),w=H.next();!w.done;w=H.next())if(w=w.value,w.timedSyncDataList&&w.sectionId){V=_.N(w.timedSyncDataList);for(var f=V.next();!f.done;f=V.next())f=f.value,f.syncItemId&&Y.playerApi.removeCueRange(w.sectionId+"_"+b.key+"_"+f.syncItemId)}}};
BkX.prototype.onCueRangeEnter=function(Y){for(var b=_.N(Object.keys(this.timeToPanelSyncKeyMap)),w=b.next();!w.done;w=b.next()){w=w.value;var V=_.N(Y.split("_"+w+"_")),H=V.next().value;V=V.next().value;if(H&&V){Y=_.fH().resolve(_.i4);b=this.timeToPanelSyncKeyMap[w];var f=_.v3e(Y.getState(),b);w=njA(w,H,V);if(w===-1)break;w={activeSyncId:V,activeItemIndex:w,activeSectionInfo:{sectionIdentifier:H}};f?Y.dispatch(_.R1("markersEngagementPanelSyncEntity",b,w)):Y.dispatch(_.qo("markersEngagementPanelSyncEntity",
b,Object.assign({},{key:b},w)));break}}};
var njA=function(Y,b,w){var V=_.fH().resolve(_.i4),H,f;Y=(H=xet(V.getState(),Y))==null?void 0:(f=H.timedListData)==null?void 0:f.sections;if(!Y)return-1;H=0;f=_.N(Y);for(Y=f.next();!Y.done;Y=f.next()){Y=Y.value;V=Y.timedSyncDataList||[];if(Y.sectionId===b)return b=V.findIndex(function(E){return E.syncItemId===w}),b===-1?b:H+b;
H+=V.length}return-1};_.pJt=function(Y){_.BE.call(this);var b=this;this.JSC$20405_watchApi=Y;this.unresolvedCommands=[];this.JSC$20405_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(w){Mnb(b,w)});
this.addOnDisposeCallback(function(){b.JSC$20405_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
eDt(this)};
_.P(_.pJt,_.BE);var eDt=function(Y){var b;_.c(function(w){if(w.nextAddress==1)return _.D(w,Y.JSC$20405_watchApi.playerApi,2);b=w.yieldResult;if(Y.isDisposed())return w.return();Y.timedSyncObserver=new BkX(b);Y.unresolvedCommands.length&&(Y.unresolvedCommands.forEach(function(V){return Mnb(Y,V)}),Y.unresolvedCommands=[]);
_.os(Y,Y.timedSyncObserver);_.om(w)})},Mnb=function(Y,b){if(Y.timedSyncObserver){var w=_.v(b,rTN);
if(w&&w.timedSyncEntityKey&&w.panelSyncEntityKey){Y=Y.timedSyncObserver;b=w.timedSyncEntityKey;var V=w.panelSyncEntityKey;w=!!w.isEnabled;w=w===void 0?!0:w;var H=_.fH().resolve(_.i4);H=xet(H.getState(),b);w?Y.timeToPanelSyncKeyMap[b]||(Y.timeToPanelSyncKeyMap[b]=V,ZKI(Y,H)):(delete Y.timeToPanelSyncKeyMap[b],Plt(Y,H))}}else Y.unresolvedCommands.push(b)};var OKg=_.b8(function(Y){var b=Y.data,w=Y.maybeLogSmartSkipClientData,V=_.GM("ytw-timely-action-view-model");_.jP(V,function(){return b().rendererContext},{onTap:function(k,l){l({disableClickTracking:!0})}});
var H=null,f=null,E=_.q("web_enable_auto_focus_for_timely_action_button"),U=function(){H=document.activeElement},X=function(){b().smartSkipMetadata&&(H=document.activeElement,_.wot(function(){return f}))},I=function(k){if(b().smartSkipMetadata&&(!k||k.key!=="Enter")){H&&H.isConnected&&(_.wot(function(){return H}),H=null);
var l;(l=f)==null||l.blur()}};
Y=_.Q_(function(){w==null||w(!0,b());return!1});
_.H6(V,{visibilityCallback:function(k){if(E)k?f&&b().smartSkipMetadata&&(X(),document.addEventListener("focusin",U)):(document.removeEventListener("focusin",U),I());else if(k&&_.q("web_ephemeral_actions")){k=_.y4(b().rendererContext);var l=Number(b().maxVisibleDurationMilliseconds),x,Q=(x=_.v(b().rendererContext,_.Ba))==null?void 0:x.label;k&&l&&Q&&(x={label:Q,command:k,durationMs:l},_.fH().resolve(_.Dh).enqueue(x))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.tq(function(){if(E){var k;if((f=(k=V.value)==null?void 0:k.querySelector("button"))&&b().smartSkipMetadata){var l;(l=V.value)==null||l.addEventListener("keydown",I)}}});
_.R2(function(){E&&(f&&b().smartSkipMetadata&&f.removeEventListener("keydown",I),document.removeEventListener("focusin",U),I())});
return _.m("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:V,"on:click":Y},_.m(_.OH,{data:function(){return b().content}},{buttonViewModel:_.a1}))},"tj");var tnt=_.b8(function(Y){var b=Y.data,w=Y.playerApi,V=_.fH().resolve(_.LOK);Y=_.N(_.Zp(function(){b()}));
var H=Y.next().value,f=Y.next().value,E=function(){return mAd(b(),H())},U=function(I,k){var l,x,Q=(l=_.v(k==null?void 0:k.rendererContext,_.vP))==null?void 0:(x=l.loggingDirectives)==null?void 0:x.trackingParams;
if((k=k==null?void 0:k.smartSkipMetadata)&&k.loggingData&&(x=k.loggingData,k=x.algorithmId,l=x.startMilliseconds,x=x.endMilliseconds,k&&l!==void 0&&x!==void 0)){var Z,e;I={smartSkipData:Object.assign({},{versionName:k,startMediaTimeMs:l,endMediaTimeMs:x},I&&{userInteractionMediaTimeMs:(Math.floor(((Z=_.V4())==null?void 0:(e=Z.getPlayer())==null?void 0:e.getCurrentTime())||0)*1E3).toString()})};Z=_.dO();var O;Q&&(O=_.nA(Q));Z&&O&&_.b3(Z,O,I)}},X=function(I,k){var l=mAd(b(),I);
if(l){var x=_.v(l,RK),Q;if(Q=k)Q=w(),l=_.v(l,RK),Q=l!=null&&l.smartSkipMetadata?!(Q==null?0:Q.isSameMarkerTypeVisible((l==null?void 0:l.smartSkipMetadata.markerKey)||"")):!0;if(Q){var Z,e;(x==null?0:(Z=x.smartSkipMetadata)==null?0:(e=Z.loggingData)==null?0:e.isCounterfactual)||(U(!1,x),f(I))}else k||H()!==I||f(void 0)}};
_.tl(function(){var I=b().timelyActions;if(I){I=_.N(I);for(var k=I.next();!k.done;k=I.next()){k=_.v(k.value,RK);var l=void 0;(l=k)!=null&&l.cueRangeId&&V.timelyActionsMap.set(k.cueRangeId,X)}_.R2(function(){V.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.m("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.m(_.OH,{data:E},{timelyActionViewModel:function(I){return _.m(OKg,{data:I.data,maybeLogSmartSkipClientData:function(){U(!0,_.v(E(),RK))}})}}))},"uj");_.d9g=function(Y){_.BE.call(this);this.JSC$20417_watchApi=Y;Y=_.N(_.kw({},void 0,"pLDp2"));this.timelyActionsOverlay=Y.next().value;this.setTimelyActionsOverlay=Y.next().value;RDN(this)};
_.P(_.d9g,_.BE);var RDN=function(Y){var b,w,V,H;_.c(function(f){if(f.nextAddress==1)return FjN(Y),LjX(Y),Y.timelyActionsContainer=document.createElement("div"),_.D(f,Y.JSC$20417_watchApi.playerApi,2);b=f.yieldResult;(V=(w=b).insertTimelyActionUi)==null||V.call(w,Y.timelyActionsContainer);H=_.Oz(Y.timelyActionsContainer,function(){return _.m(tnt,{data:Y.timelyActionsOverlay,playerApi:b})});
Y.addOnDisposeCallback(H);_.om(f)})},LjX=function(Y){var b=Y.JSC$20417_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){FjN(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20417_watchApi.unsubscribeByKey(b)})},FjN=function(Y){var b=Y.JSC$20417_watchApi.getWatchNextResponse();
if(b){var w,V;if(b=_.v((w=b.playerOverlays)==null?void 0:(V=w.playerOverlayRenderer)==null?void 0:V.timelyActionsOverlayViewModel,zNt)){var H;(H=Y.setTimelyActionsOverlay)==null||H.call(Y,b)}}};_.aJX=function(Y){_.BE.call(this);this.JSC$20421_watchApi=Y;SWb(this)};
_.P(_.aJX,_.BE);var SWb=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20421_watchApi.playerApi,2);b=V.yieldResult;w=function(H){_.l8.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.v(H,_.yK7)},popupType:"TOAST"}})};
b.addEventListener("onYtShowToast",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onYtShowToast",w)});
_.om(V)})};var rYt,KjF,zDI,WjI,yYA,AYQ,ClA,jEg,GEs;rYt=!1;_.iKX=function(Y){_.BE.call(this);this.JSC$20424_watchApi=Y;this.fullscreen=this.theater=!1;zDI(this);WjI(this);KjF(this)};
_.P(_.iKX,_.BE);KjF=function(Y){var b,w,V;_.c(function(H){if(H.nextAddress==1)return _.D(H,Y.JSC$20424_watchApi.playerApi,2);b=H.yieldResult;if(Y.isDisposed())return H.return();w=Y.JSC$20424_watchApi.getElement("CINEMATICS");if(!w)return H.return();Y.JSC$20424_cinematicController=new _.gg(w,b);_.os(Y,Y.JSC$20424_cinematicController);_.IOX(Y.JSC$20424_cinematicController);AYQ(Y,_.DSr());V=Y.JSC$20424_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(f){ClA(Y,f)});
Y.addOnDisposeCallback(function(){Y.JSC$20424_watchApi.unsubscribeByKey(V)});
yYA(Y);ClA(Y,Y.JSC$20424_cinematicController.isAllowed());_.$9N(Y,Y.fullscreen,Y.theater);jEg(Y);_.om(H)})};
zDI=function(Y){var b=Y.JSC$20424_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yYA(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20424_watchApi.unsubscribeByKey(b)})};
WjI=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20424_watchApi.playerApi,2);b=V.yieldResult;w=function(H){AYQ(Y,H)};
b.addEventListener("cinematicSettingsToggleChange",w);Y.addOnDisposeCallback(function(){b.removeEventListener("cinematicSettingsToggleChange",w)});
_.om(V)})};
yYA=function(Y){var b=Y.JSC$20424_watchApi.getWatchNextResponse(),w;b=_.v(b==null?void 0:(w=b.pageVisualEffects)==null?void 0:w[0],_.Qi);var V;(V=Y.JSC$20424_cinematicController)==null||_.lOR(V,b)};
AYQ=function(Y,b){var w;(w=Y.JSC$20424_cinematicController)==null||_.kRd(w,b);GEs(Y)};
ClA=function(Y,b){var w;_.c(function(V){if(V.nextAddress==1)return _.q("kevlar_watch_cinematics_invisible")&&(b=!1),_.D(V,Y.JSC$20424_watchApi.playerApi,2);w=V.yieldResult;w.updateCinematicSettings(b);GEs(Y);_.om(V)})};
jEg=function(Y){var b=_.P0();if(_.q("kevlar_measure_ambient_mode_idle")&&!b.getFlag(192)&&!rYt){rYt=!0;var w=_.MY(_.Lb,function(){_.fH().resolve(_.p9Q).start(1E4)},5E3);
Y.addOnDisposeCallback(function(){_.Lb.cancelJob(w);_.fH().resolve(_.p9Q).stop()})}};
_.$9N=function(Y,b,w){Y.fullscreen=b;Y.theater=w;var V;(V=Y.JSC$20424_cinematicController)==null||V.setFullscreen(Y.fullscreen,Y.theater);if(_.q("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(Y.theater||Y.fullscreen){var H;(H=Y.JSC$20424_cinematicController)==null||_.hvt(H)}else if((Y=Y.JSC$20424_cinematicController)!=null){var f;(f=Y.currentCinematicEffect)==null||f.pause()}};
GEs=function(Y){if(_.q("web_cinematic_theater_mode")||_.q("web_cinematic_fullscreen")){var b;Y.JSC$20424_watchApi.getRoot().toggleCinematicsActive(!((b=Y.JSC$20424_cinematicController)==null||!b.isEnabled()))}};_.YcA=function(Y){_.BE.call(this);var b=this;this.JSC$20427_watchApi=Y;this.commentsReady=!1;this.setCommentsJobId=0;Y=_.vB(_.u3(),_.Bi,function(){TkX(b)});
this.addOnDisposeCallback(Y);var w=this.JSC$20427_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JYt(b)}),V=this.JSC$20427_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){JYt(b)});
this.addOnDisposeCallback(function(){b.JSC$20427_watchApi.unsubscribeByKey(w);b.JSC$20427_watchApi.unsubscribeByKey(V)});
var H=function(){_.q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ue7(b,"false")};
this.JSC$20427_watchApi.getRoot().addEventListener("yt-page-data-will-update",H);this.addOnDisposeCallback(function(){b.JSC$20427_watchApi.getRoot().removeEventListener("yt-page-data-will-update",H)});
JYt(this)};
_.P(_.YcA,_.BE);var JYt=function(Y){Y.commentsReady=!1;_.Lb.cancelJob(Y.setCommentsJobId);Y.setCommentsJobId=_.MY(_.Lb,function(){TkX(Y)},1E3)},TkX=function(Y){if(!Y.commentsReady){_.S1("cmi");
_.Lb.cancelJob(Y.setCommentsJobId);var b,w,V,H,f=(b=Y.JSC$20427_watchApi.getWatchNextResponse())==null?void 0:(w=b.contents)==null?void 0:(V=w.twoColumnWatchNextResults)==null?void 0:(H=V.results)==null?void 0:H.results.contents;b=void 0;if(f&&f.length)for(f=_.N(f),w=f.next();!w.done;w=f.next())if(w=w.value,H=V=void 0,((V=w)==null?void 0:(H=V.itemSectionRenderer)==null?void 0:H.sectionIdentifier)==="comment-item-section"){_.q("web_watch_provide_undefined_comments")?b=w.itemSectionRenderer:Y.JSC$20427_watchApi.provideRenderingData("COMMENTS",
w.itemSectionRenderer);ue7(Y,"true");break}_.q("web_watch_provide_undefined_comments")&&Y.JSC$20427_watchApi.provideRenderingData("COMMENTS",b);Y.commentsReady=!0;Y.JSC$20427_watchApi.dispatchEvent("yt-watch-comments-ready")}},ue7=function(Y,b){var w;
(w=Y.JSC$20427_watchApi.getElement("COMMENTS"))==null||w.setAttribute("canScheduleJobs",b)};_.d6=function(Y){_.BE.call(this);var b=this;this.JSC$20430_watchApi=Y;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.q("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.q("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.q("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.cQ("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)bdN(this);
else{var w=this.JSC$20430_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Os(b);tD(b)}),V=this.JSC$20430_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RZ(b);
tD(b)});
this.JSC$20430_watchApi.getRoot().is==="ytd-watch-grid"&&_.q("swatcheroo_pbs_load_grid")&&(w87(this),VWQ(this));this.addOnDisposeCallback(function(){b.JSC$20430_watchApi.unsubscribeByKey(w);b.JSC$20430_watchApi.unsubscribeByKey(V);_.Lb.cancelJob(b.provideRichGridJobId)});
Os(this);RZ(this)}};
_.P(_.d6,_.BE);var bdN=function(Y){var b=Y.JSC$20430_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Y.providePlayerJobId=_.ps(_.Lb,function(){Os(Y);tD(Y)},Y.provideAllDataDelayMs)}),w=Y.JSC$20430_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Y.provideWatchNextJobId=_.ps(_.Lb,function(){RZ(Y);
tD(Y)},Y.provideAllDataDelayMs)}),V=Y.JSC$20430_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){Y.provideWatchNextJobId=_.ps(_.Lb,function(){RZ(Y);
tD(Y)},Y.provideAllDataDelayMs)});
Y.JSC$20430_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.MY(_.Lb,function(){Os(Y);RZ(Y);tD(Y)},100)});
Y.JSC$20430_watchApi.addPageDisposeJob(function(){_.Lb.cancelJob(Y.provideWatchNextJobId);_.Lb.cancelJob(Y.providePlayerJobId)});
Y.addOnDisposeCallback(function(){Y.JSC$20430_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");Y.JSC$20430_watchApi.unsubscribeByKey(b);Y.JSC$20430_watchApi.unsubscribeByKey(w);Y.JSC$20430_watchApi.unsubscribeByKey(V);_.Lb.cancelJob(Y.providePlayerJobId);_.Lb.cancelJob(Y.provideWatchNextJobId)});
Os(Y);RZ(Y)},Os=function(Y){var b=Y.JSC$20430_watchApi.getPlayerResponse(),w,V,H=(V=b==null?void 0:(w=b.playabilityStatus)==null?void 0:w.messageRenderers)!=null?V:[],f,E;
b=(E=b==null?void 0:(f=b.playabilityStatus)==null?void 0:f.messages)!=null?E:[];f=_.N(b);for(E=f.next();!E.done;E=f.next())H.push({alertRenderer:{text:_.Gx(E.value),type:"WARNING"}});Y.JSC$20430_watchApi.provideRenderingData("ALERTS",H)},RZ=function(Y){var b=[],w,V,H,f=Y.JSC$20430_watchApi.getWatchNextResponse(),E,U,X,I,k=f==null?void 0:(E=f.contents)==null?void 0:(U=E.twoColumnWatchNextResults)==null?void 0:(X=U.results)==null?void 0:(I=X.results)==null?void 0:I.contents;
if(k)for(E=_.N(k),U=E.next();!U.done;U=E.next())if(U=U.value,U.videoPrimaryInfoRenderer)var l=U;else if(U.videoSecondaryInfoRenderer){var x=U;I=X=void 0;U=Object.assign({},(X=U.videoSecondaryInfoRenderer)==null?void 0:(I=X.metadataRowContainer)==null?void 0:I.metadataRowContainerRenderer);if(U.rows&&U.collapsedItemCount!==void 0){U.rows=U.rows.slice(0,U.collapsedItemCount).filter(function($d){return!!$d.richMetadataRowRenderer});
U.collapsedItemCount=U.rows.length;var Q={metadataRowContainerRenderer:U}}}else if(U.merchandiseShelfRenderer)var Z=U;else if(U.ticketShelfRenderer)var e=U;else if(U.expandableMetadataRenderer)var O=U;else if(U.itemSectionRenderer)if(X=U.itemSectionRenderer.contents,I=void 0,Y.directlyProvideComments&&((I=U.itemSectionRenderer)==null?void 0:I.sectionIdentifier)==="comment-item-section")_.S1("cmi"),Y.JSC$20430_watchApi.provideRenderingData("COMMENTS",U.itemSectionRenderer);else if(X)for(U=_.N(X),X=
U.next();!X.done;X=U.next())if(X=X.value,X.commentsEntryPointHeaderRenderer)var L=X;else if(X.clarificationRenderer||X.infoPanelContainerRenderer||X.infoPanelContentRenderer||X.emergencyOneboxRenderer){b.push(X);var r=r||!!x}else X.limitedStateMessageRenderer?V=X:X.videoMetadataCarouselViewModel&&(H=X);if(_.q("web_watch_merch_in_sd_when_ticket_shelf_present")&&Z&&e){var C=Z;Z=void 0}if(Y.provideWatchNextSecondaryResults){var W,y,G;Y.JSC$20430_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
f==null?void 0:(W=f.contents)==null?void 0:(y=W.twoColumnWatchNextResults)==null?void 0:(G=y.secondaryResults)==null?void 0:G.secondaryResults)}if(Y.JSC$20430_watchApi.getRoot().is==="ytd-watch-grid"){var Nr,o6;Y.JSC$20430_watchApi.provideRenderingData("LIVE_CHAT",f==null?void 0:(Nr=f.contents)==null?void 0:(o6=Nr.twoColumnWatchNextResults)==null?void 0:o6.conversationBar)}var lI,Zt,eL,OM;(W=f==null?void 0:(lI=f.contents)==null?void 0:(Zt=lI.twoColumnWatchNextResults)==null?void 0:(eL=Zt.secondaryResults)==
null?void 0:(OM=eL.secondaryResults)==null?void 0:OM.offerModule)&&(W.donationShelfRenderer||W.donationUnavailableRenderer)&&Y.JSC$20430_watchApi.getRoot().is!=="ytd-watch-grid"&&(w=W);lI=Y.JSC$20430_watchApi.getPlayerResponse();if(!lI||!_.f6u(lI.playabilityStatus,f==null?void 0:f.playerOverlays)){var iI;if(f==null?0:(iI=f.contents)==null?0:iI.singleColumnWatchNextResults){var rB,Tj;var J_=f==null?void 0:(rB=f.contents.singleColumnWatchNextResults.results)==null?void 0:(Tj=rB.results)==null?void 0:
Tj.contents}else{var B9,ok,Ut,wt;iI=!!(k==null?0:(B9=k[0])==null?0:(ok=B9.itemSectionRenderer)==null?0:(Ut=ok.contents)==null?0:(wt=Ut[0])==null?0:wt.backgroundPromoRenderer);var X$,Dg;B9=!!(f==null?0:(X$=f.contents)==null?0:(Dg=X$.twoColumnWatchNextResults)==null?0:Dg.secondaryResults);iI&&!B9&&(J_=k)}}k=b[0];X$=b[1];r&&b.length===1&&(X$=k,k=void 0);Y.JSC$20430_watchApi.provideRenderingData("PRIMARY_INFO",l);Y.JSC$20430_watchApi.provideRenderingData("SECONDARY_INFO",x);Y.JSC$20430_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
L);Y.JSC$20430_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",H);Y.JSC$20430_watchApi.provideRenderingData("CLARIFICATION",k);Y.JSC$20430_watchApi.provideRenderingData("RICH_METADATA",Q);Y.JSC$20430_watchApi.provideRenderingData("MERCH_SHELF",Z);_.q("web_watch_merch_in_sd_when_ticket_shelf_present")&&Y.JSC$20430_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",C);Y.JSC$20430_watchApi.provideRenderingData("TICKET_SHELF",e);Y.JSC$20430_watchApi.provideRenderingData("LIMITED_STATE",V);Y.JSC$20430_watchApi.getRoot().is!==
"ytd-watch-grid"&&Y.JSC$20430_watchApi.provideRenderingData("DONATION_SHELF",w);Y.JSC$20430_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",J_);Y.JSC$20430_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",X$);Y.JSC$20430_watchApi.provideRenderingData("EXPANDABLE_METADATA",O);if(Y.swatcherooProvideAllDataOnScheduledJob){var eQ,cg,qQ,t_,$s,P9;l=f==null?void 0:(eQ=f.contents)==null?void 0:(cg=eQ.twoColumnWatchNextResults)==null?void 0:(qQ=cg.secondaryResults)==null?void 0:(t_=qQ.secondaryResults)==
null?void 0:($s=t_.results)==null?void 0:(P9=$s[0])==null?void 0:P9.richGridRenderer;Y.JSC$20430_watchApi.provideRenderingData("RICH_GRID_RENDERER",l)}};
_.d6.prototype.hasCompanionAds=function(Y){var b,w;return(w=Y==null?void 0:(b=Y.adPlacements)==null?void 0:b.some(function(V){var H,f,E,U;return(V==null?void 0:(H=V.adPlacementRenderer)==null?void 0:(f=H.renderer)==null?void 0:f.actionCompanionAdRenderer)||(V==null?void 0:(E=V.adPlacementRenderer)==null?void 0:(U=E.renderer)==null?void 0:U.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?w:!1};
var tD=function(Y){if(!_.q("swaterdoo_ps_wn_handle_ks")){Y.swatcherooProvideAllDataOnScheduledJob||VWQ(Y,3E3);var b=Y.JSC$20430_watchApi.getPlayerResponse(),w,V,H,f,E,U=(w=Y.JSC$20430_watchApi.getWatchNextResponse())==null?void 0:(V=w.contents)==null?void 0:(H=V.twoColumnWatchNextResults)==null?void 0:(f=H.secondaryResults)==null?void 0:(E=f.secondaryResults)==null?void 0:E.offerModule;b=Y.hasCompanionAds(b);var X,I;w=(U==null?void 0:(X=U.tvfilmOfferModuleRenderer)==null?void 0:X.clientShouldSuppressIfCompanionAdDisplayed)||
(U==null?void 0:(I=U.unlimitedOfferModuleRenderer)==null?void 0:I.suppressIfCompanionAds);X=b&&w;Y.JSC$20430_watchApi.getRoot().is==="ytd-watch-grid"&&Y.JSC$20430_watchApi.provideRenderingData("OFFER_MODULE",X?void 0:U)}},VWQ=function(Y,b){_.q("swatcheroo_pbs_load_grid")&&(Y.provideRichGridJobId&&_.Lb.cancelJob(Y.provideRichGridJobId),Y.provideRichGridJobId=_.ps(_.Lb,function(){Y.provideRichGridJobId=0;
var w,V,H,f,E,U,X,I=(w=Y.JSC$20430_watchApi.getWatchNextResponse())==null?void 0:(V=w.contents)==null?void 0:(H=V.twoColumnWatchNextResults)==null?void 0:(f=H.secondaryResults)==null?void 0:(E=f.secondaryResults)==null?void 0:(U=E.results)==null?void 0:(X=U[0])==null?void 0:X.richGridRenderer;I&&Y.JSC$20430_watchApi.provideRenderingData("RICH_GRID_RENDERER",I)},b))},w87=function(Y){var b,w;
_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20430_watchApi.playerApi,2);b=V.yieldResult;w=function(){Y.onPlaybackStart()};
b.addEventListener("onPlaybackStartExternal",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onPlaybackStartExternal",w)});
_.om(V)})};
_.d6.prototype.onPlaybackStart=function(){VWQ(this)};_.gCO=function(Y){_.BE.call(this);var b=this;this.JSC$20440_watchApi=Y;Y.playerApi.then(function(w){b.player=w});
this.gestures=new _.cW(this.JSC$20440_watchApi.getRoot(),Y.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.ZWd(_.u3().getState())&&_.Bi(_.u3().getState())<=0)if(_.Wv(_.u3().getState())){var w;(w=b.player)==null||w.toggleFullscreen()}else _.Xx(b.JSC$20440_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
HdQ(this)};
_.P(_.gCO,_.BE);var HdQ=function(Y){var b=_.vB(_.u3(),_.Wv,function(w){Y.onFullscreenChanged(w)});
Y.addOnDisposeCallback(b);b=_.vB(_.u3(),_.Bi,function(w){Y.gestures&&(w>0?Y.gestures.detach():Y.gestures.attach())});
Y.addOnDisposeCallback(b)};
_.gCO.prototype.onFullscreenChanged=function(Y){this.gestures&&this.gestures.update(Y)};_.NRA=function(Y){_.BE.call(this);var b=this;this.JSC$20443_watchApi=Y;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(Y.subscribeToActiveChanged(function(w){b.onActiveChanged(w)}));
fUt(this)};
_.P(_.NRA,_.BE);var ECQ=function(Y){if(_.q("swatcheroo_page_dispose_all_watch_data"))Y.pageDisposalDataTypes=Object.values(M2d).filter(function(w){return w!=="PLAYLIST"});
else if(_.q("swatcheroo_page_dispose_rich_grid")){var b;(b=Y.pageDisposalDataTypes)==null||b.push("RICH_GRID_RENDERER")}},fUt=function(Y){_.q("swatcheroo_enable_ghost_cards")&&(ECQ(Y),Y.JSC$20443_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Lb.cancelJob(Y.clearDataJobId);
Y.clearDataJobId=0}),Y.runPageDisposeJob=function(){var b=_.fH().resolve(_.bX).getDestinationPageType()==="watch";
Y.clearDataJobId=_.ps(_.Lb,Y.runClearDataJob,b?0:_.cQ("web_watch_delay_page_dispose_ms",1E4))},Y.runClearDataJob=function(){cX7(Y)},Y.runOnYtNavigateAwayFinish=function(){Y.clearDataJobId&&(_.Lb.cancelJob(Y.clearDataJobId),Y.clearDataJobId=0,cX7(Y))},document.addEventListener("yt-navigate-finish",Y.runOnYtNavigateAwayFinish),Y.JSC$20443_watchApi.addPageDisposeJob(Y.runPageDisposeJob),Y.addOnDisposeCallback(function(){Y.JSC$20443_watchApi.removePageDisposeJob(Y.runPageDisposeJob);
Y.JSC$20443_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",Y.runOnYtNavigateAwayFinish)}))},cX7=function(Y){Y.pageDisposalDataTypes.forEach(function(b){Y.JSC$20443_watchApi.provideRenderingData(b,void 0)});
Y.clearDataJobId=0};
_.NRA.prototype.onActiveChanged=function(Y){Y&&((Y=document.querySelector("#watch-page-skeleton"))&&_.qf(Y),Uab(this),document.body.removeAttribute("no-y-overflow"),_.Wf("IS_SHELL_LOAD")&&_.mBt())};
var Uab=function(Y){_.c(function(b){if(b.nextAddress==1)return _.D(b,Y.JSC$20443_watchApi.playerApi,2);_.uJ();_.om(b)})};var X8s;X8s=_.q("kevlar_watch_while_counterfactual")?0:.25;_.Fm=function(Y){_.BE.call(this);this.JSC$20446_watchApi=Y;this.JSC$20446_watchWhileEnabled=_.q("kevlar_watch_while_v2");this.pipEnabled=_.q("web_enable_pip_on_miniplayer");Dat(this);maX(this);oCs(this)};
_.P(_.Fm,_.BE);var Dat=function(Y){Y.JSC$20446_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){IUX(Y)});
Y.addOnDisposeCallback(function(){Y.JSC$20446_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},maX=function(Y){var b,w;
_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20446_watchApi.playerApi,2);b=V.yieldResult;w=function(){IUX(Y)};
b.addEventListener("onCollapseMiniplayer",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onCollapseMiniplayer",w)});
_.om(V)})},oCs=function(Y){var b=Y.JSC$20446_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&b&&Y.JSC$20446_watchWhileEnabled&&(Y.playerIntersectionObserver=new IntersectionObserver(function(w){Y.handleIntersect(w)},{threshold:[X8s]}),Y.playerIntersectionObserver.observe(b),Y.addOnDisposeCallback(function(){var w;
(w=Y.playerIntersectionObserver)==null||w.disconnect()}))},IUX=function(Y){var b,w,V;
_.c(function(H){if(H.nextAddress==1){b=_.fH().resolve(_.bX);w=b.data;V=_.IrK(w.response,w.playerResponse);_.sL().miniplayerButtonActivation=!0;if(Y.pipEnabled)return _.sL().watchPipActivation=!0,H.jumpTo(2);_.fH().resolve(_.Ck).collapse();return _.D(H,_.sL().navigationFinishPromise,2)}if(H.nextAddress!=4)return _.sL().currentEndpoint=V.watchEndpoint||null,_.D(H,_.fH().resolve(_.Ck).activate(Y.JSC$20446_watchApi.getElement("PLAYER"),V,w),4);_.sL().userActivation=!0;_.om(H)})};
_.Fm.prototype.handleIntersect=function(Y){kvR(this,Y[Y.length-1])};
var kvR=function(Y,b){Y.watchWhileJobId&&_.Lb.cancelJob(Y.watchWhileJobId);Y.watchWhileJobId=_.Lb.addLowPriorityJob(function(){var w,V;return _.c(function(H){if(H.nextAddress==1)return Y.watchWhileJobId=void 0,w=_.fH().resolve(_.Ck),b.intersectionRatio>X8s?w.isMiniplayerActive()?_.D(H,w.deactivate(),0):H.jumpTo(0):(V=!w.isMiniplayerActive())?_.D(H,lUt(Y),5):H.jumpTo(4);H.nextAddress!=4&&(V=H.yieldResult);if(!V)return H.jumpTo(0);_.sL().watchWhileActivation=!0;return _.D(H,hV7(Y),0)})},100)},lUt=function(Y){return _.c(function(b){return b.nextAddress==
1?_.q("kevlar_watch_while_paused")?b.return(!0):_.D(b,Y.isPlayerPlaying(),2):b.return(b.yieldResult)})};
_.Fm.prototype.isPlayerPlaying=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,Y.JSC$20446_watchApi.playerApi,2);b=w.yieldResult;return w.return(b.getPlayerStateObject().isPlaying)})};
var hV7=function(Y){var b,w;return _.c(function(V){b=_.fH().resolve(_.bX).data;w=_.IrK(b.response,b.playerResponse);_.sL().currentEndpoint=w.watchEndpoint||null;return _.D(V,_.fH().resolve(_.Ck).activate(Y.JSC$20446_watchApi.getElement("PLAYER"),w,b),0)})};_.stQ=function(Y){_.BE.call(this);this.JSC$20450_watchApi=Y;xaO(this);qcX(this)};
_.P(_.stQ,_.BE);var qcX=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20450_watchApi.playerApi,2);b=V.yieldResult;w=function(H){var f;H.sessionData&&H.sessionData.itct&&(f=H.sessionData.itct);var E=H.watchEndpoint;if(E&&H.sessionData&&H.sessionData.autonav)E=_.Siu(E,f);else{var U;E=_.f8(H.videoId,(U=H.listId)!=null?U:void 0,f)}f={endpoint:E};H.sessionData&&(f.tempData=H.sessionData);Y.JSC$20450_watchApi.dispatchEvent("yt-navigate",f)};
b.addEventListener("onPlayVideo",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onPlayVideo",w)});
_.om(V)})},xaO=function(Y){var b=function(w){Y.onYtNavigate(w)};
Y.JSC$20450_watchApi.getRoot().addEventListener("yt-navigate",b);Y.addOnDisposeCallback(function(){Y.JSC$20450_watchApi.getRoot().removeEventListener("yt-navigate",b)})};
_.stQ.prototype.onYtNavigate=function(Y){var b=this,w,V,H,f,E,U,X,I,k;return _.c(function(l){if(l.nextAddress==1){if(!((w=Y.detail)==null?0:(V=w.endpoint)==null?0:V.watchEndpoint))return l.return();H=Y.detail.endpoint.watchEndpoint;f=b.JSC$20450_watchApi.getWatchNextResponse();U=_.v((E=f)==null?void 0:E.currentVideoEndpoint,_.TG);if(!U)return l.return();if(H.videoId!==U.videoId||H.playlistId&&H.playlistId!==U.playlistId||typeof H.startTimeSeconds!=="number")return l.jumpTo(0);Y.stopPropagation();
(X=_.q("kevlar_watch_while_v2")&&!_.q("kevlar_watch_while_counterfactual"))&&_.fH().resolve(_.Ck).isMiniplayerActive()||b.JSC$20450_watchApi.scrollWatchTo(0,!0);return _.D(l,b.JSC$20450_watchApi.playerApi,3)}I=l.yieldResult;k=H.startTimeSeconds;I.seekTo(k,void 0,void 0,void 0,84);I.wakeUpControls();k<I.getDuration()&&I.playVideo();_.om(l)})};_.vCd=function(Y){_.BE.call(this);var b=this;this.JSC$20453_watchApi=Y;var w=this.JSC$20453_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Qtt(b)});
this.addOnDisposeCallback(function(){b.JSC$20453_watchApi.unsubscribeByKey(w)});
Qtt(this)};
_.P(_.vCd,_.BE);var Qtt=function(Y){var b=Y.JSC$20453_watchApi.getWatchNextResponse();if(b){var w,V=[].concat(_.Bt((w=b==null?void 0:b.engagementPanels)!=null?w:[]));V.unshift.apply(V,_.Bt(PiA(b)));Y.JSC$20453_watchApi.provideRenderingData("ENGAGEMENT_PANELS",V)}},Zdt=function(Y){var b,w,V,H=(b=Y.engagementPanels)==null?void 0:(w=b.find(function(Q){var Z;
return((Z=Q.engagementPanelSectionListRenderer)==null?void 0:Z.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(V=w.engagementPanelSectionListRenderer.content)==null?void 0:V.structuredDescriptionContentRenderer,f;
if(_.v(H==null?void 0:(f=H.items)==null?void 0:f.find(function(Q){return!!_.v(Q,HId)}),HId))return!0;
var E,U,X,I;if(Y=(((E=Y.contents)==null?void 0:(U=E.twoColumnWatchNextResults)==null?void 0:(X=U.results)==null?void 0:(I=X.results)==null?void 0:I.contents)||[]).find(function(Q){return Q.videoPrimaryInfoRenderer})){var k,l,x;
return(((k=Y.videoPrimaryInfoRenderer)==null?void 0:(l=k.videoActions)==null?void 0:(x=l.menuRenderer)==null?void 0:x.flexibleItems)||[]).some(function(Q){Q=_.v(Q,_.NAd);if(!Q)return!1;var Z,e;Q=(Z=Q.topLevelButton)==null?void 0:(e=Z.buttonViewModel)==null?void 0:e.onTap;if(!Q)return!1;Z=_.zT(Q);if(!Z)return!1;var O;return((O=_.v(Z,_.SZ))==null?void 0:O.panelIdentifier)==="PAyouchat"})}return!1},PiA=function(Y){var b=[];
if(!_.q("web_watch_inject_placeholder_fantasy_panel_killswitch")){var w,V,H,f=(w=Y.engagementPanels)==null?void 0:(V=w.find(function(U){var X;return((X=U.engagementPanelSectionListRenderer)==null?void 0:X.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(H=V.engagementPanelSectionListRenderer.content)==null?void 0:H.structuredDescriptionContentRenderer,E;
_.v(f==null?void 0:(E=f.items)==null?void 0:E.find(function(U){return!!_.v(U,dAb)}),dAb)&&(w=_.y5a("PAsports_fantasy"),w.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(w))}Zdt(Y)&&(Y=_.y5a("PAyouchat"),Y.engagementPanelSectionListRenderer.targetId="PAyouchat",Y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(Y));
return b};_.nCX=function(Y){_.BE.call(this);this.JSC$20456_watchApi=Y;BRF(this)};
_.P(_.nCX,_.BE);var BRF=function(Y){Y.JSC$20456_watchApi.registerActionHandler("yt-loop-command",function(b){MWX(Y,b)});
Y.JSC$20456_watchApi.registerActionHandler("yt-repeat-chapter-command",function(b){eVX(Y,b)});
Y.addOnDisposeCallback(function(){Y.JSC$20456_watchApi.unregisterActionHandler("yt-loop-command");Y.JSC$20456_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},MWX=function(Y,b){var w;
_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20456_watchApi.playerApi,2);w=V.yieldResult;_.v(b,L6R).loop?(w.setLoopRange({startTimeMs:Number(_.v(b,L6R).startTimeMs),endTimeMs:Number(_.v(b,L6R).endTimeMs),postId:_.v(b,L6R).postId,type:"clips"}),w.playVideo()):w.setLoopRange(null);_.om(V)})},eVX=function(Y,b){var w,V;
_.c(function(H){if(H.nextAddress==1)return _.D(H,Y.JSC$20456_watchApi.playerApi,2);w=H.yieldResult;V=_.v(b,W6g).repeat;V==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(w.setLoopRange({startTimeMs:Number(_.v(b,W6g).startTimeMs),endTimeMs:Number(_.v(b,W6g).endTimeMs),type:"repeatChapter"}),w.playVideo()):V==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&w.setLoopRange(null);_.om(H)})};_.OdA=function(Y){_.BE.call(this);this.JSC$20461_watchApi=Y;p8X(this)};
_.P(_.OdA,_.BE);var p8X=function(Y){Y.JSC$20461_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(b){tWX(Y,b)});
Y.addOnDisposeCallback(function(){Y.JSC$20461_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},tWX=function(Y,b){var w,V,H,f,E,U,X,I,k,l,x;
_.c(function(Q){if(Q.nextAddress==1)return _.D(Q,Y.JSC$20461_watchApi.playerApi,2);w=Q.yieldResult;if(f=(H=(V=_.v(b,K6b))==null?void 0:V.highlightedMenuItemKey)!=null?H:"")(U=(E=w).highlightSettingsMenuItem)==null||U.call(E,f);if(k=(I=(X=_.v(b,K6b))==null?void 0:X.openMenuItemKey)!=null?I:"")(x=(l=w).openSettingsMenuItem)==null||x.call(l,k);_.om(Q)})};var RVd=_.I8("/youtube/app/watch/player_state","playerStateEntity");_.FiN=function(Y){_.BE.call(this);this.JSC$20464_watchApi=Y;dag(this)};
_.P(_.FiN,_.BE);var LiX=function(Y){switch(Y){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},dag=function(Y){var b,w;
_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20464_watchApi.playerApi,2);b=V.yieldResult;w=function(H){Y.onPlayerStateChange(H)};
b.addEventListener("onStateChange",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onStateChange",w)});
_.om(V)})};
_.FiN.prototype.onPlayerStateChange=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,b.JSC$20464_watchApi.playerApi,2);w=H.yieldResult;V=w.getVideoData().video_id;_.jm().dispatch(_.qo("playerStateEntity",RVd,{key:RVd,playerState:LiX(Y),videoId:V}));_.om(H)})};_.aUR=function(Y){_.BE.call(this);var b=this;this.JSC$20468_watchApi=Y;this.enableExternalPlaylistPanelInPlayer=_.q("delhi_web_player_use_external_playlist_panel");_.fH().resolve(_.zF).setPlayer(this.JSC$20468_watchApi.getElement("PLAYER"));Y=this.JSC$20468_watchApi.subscribeToActiveChanged(function(w){b.onActiveChanged(w)});
this.addOnDisposeCallback(Y);Scg(this)};
_.P(_.aUR,_.BE);var Scg=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return Y.enableExternalPlaylistPanelInPlayer?_.D(V,Y.JSC$20468_watchApi.playerApi,2):V.return();b=V.yieldResult;w=function(){if(Y.playlistPanelElement)Y.playlistPanelElement.onToggleExpanded()};
b.addEventListener("onToggleExternalPlaylistPanel",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onToggleExternalPlaylistPanel",w)});
_.om(V)})};
_.aUR.prototype.onActiveChanged=function(Y){var b=this,w=_.fH().resolve(_.zF),V=function(){rX7(b)};
Y?(this.playlistPanelElement=this.JSC$20468_watchApi.getElement("PLAYLIST_PANEL"))?(w.setPlaylistComponent(this.playlistPanelElement),w.addEventListener("yt-playlist-data-updated",V),this.addOnDisposeCallback(function(){w.removeEventListener("yt-playlist-data-updated",V)}),rX7(this)):_.C7(Error("mm")):(w.removeEventListener("yt-playlist-data-updated",V),w.cancelVideoSkip())};
var rX7=function(Y){var b=_.fH().resolve(_.zF);Y.JSC$20468_watchApi.provideRenderingData("PLAYLIST",b.getPlaylistData())};_.LT=function(Y){_.BE.call(this);var b=this;this.JSC$20471_watchApi=Y;this.onPageScroll=function(){b.scrollThrottle.fire();b.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.Vm(this.onThrottledScroll,200,this);_.os(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.Vm(this.onMastheadThrottledScroll,50,this);_.os(this,this.mastheadScrollThrottle);this.animation=new _.tv(function(w){b.JSC$20471_watchApi.getRoot().setScrollTop(w)});
Y=_.vB(_.u3(),_.Wv,function(){b.onFullscreenChanged()});
this.addOnDisposeCallback(Y);zVF(this);WiI(this);this.onThrottledScroll()};
_.P(_.LT,_.BE);
_.LT.prototype.onFullscreenChanged=function(){var Y=this,b=this.JSC$20471_watchApi.getRoot();!this.pageScrollElement&&b.pageScrollElement?(this.pageScrollElement=b.pageScrollElement,b.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){Y.pageScrollElement&&Y.pageScrollElement.removeEventListener("scroll",Y.onPageScroll)})):this.pageScrollElement&&!b.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var zVF=function(Y){window.addEventListener("scroll",Y.onPageScroll);Y.addOnDisposeCallback(function(){window.removeEventListener("scroll",Y.onPageScroll)})},WiI=function(Y){Y.JSC$20471_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(b){a:{var w;
if(w=Y.JSC$20471_watchApi.getRoot().contains(b)&&!Y.animation.isAnimating()){w=b.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var V,H,f=(b==null?void 0:(V=b.parentElement)==null?void 0:(H=V.parentElement)==null?void 0:H.id)==="fixed-secondary";w=!(w&&f)}if(w){if(_.q("kevlar_watch_scroll_manager_absolute_offset_killswitch"))V=b.offsetTop;else for(V=0,H=b;H!==null;)V+=H.offsetTop,V-=H.scrollTop,H=H.offsetParent;H=V;V=H-24;b=H+b.offsetHeight+24;H=Y.JSC$20471_watchApi.getRoot().getPageScrollingElement();
w=Y.JSC$20471_watchApi.getRoot().getScrollTop();f=w+H.clientHeight-56;if(V<w+56)b=V-56;else if(b>f)b-=H.clientHeight;else break a;Y.scrollWatchTo(Math.max(0,b),!0)}}});
Y.addOnDisposeCallback(function(){Y.JSC$20471_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.LT.prototype.onThrottledScroll=function(){var Y=_.u3(),b=Y.dispatch,w=this.JSC$20471_watchApi.getRoot().getScrollTop();b.call(Y,_.Uf({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:w}}))};
_.LT.prototype.onMastheadThrottledScroll=function(){this.JSC$20471_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20471_watchApi.getRoot().getScrollTop())};
_.LT.prototype.scrollWatchTo=function(Y,b){(b===void 0?0:b)?this.animation.start(this.JSC$20471_watchApi.getRoot().getScrollTop(),Math.max(0,Y),500):this.JSC$20471_watchApi.getRoot().setScrollTop(Y)};_.AXQ=function(Y){_.BE.call(this);var b=this;this.JSC$20474_watchApi=Y;var w=this.JSC$20474_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){KiN(b)}),V=this.JSC$20474_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){idg(b)});
this.addOnDisposeCallback(function(){b.JSC$20474_watchApi.unsubscribeByKey(w);b.JSC$20474_watchApi.unsubscribeByKey(V)});
KiN(this);idg(this)};
_.P(_.AXQ,_.BE);
var KiN=function(Y){var b,w,V,H=(V=(b=Y.JSC$20474_watchApi.getPlayerResponse())==null?void 0:(w=b.videoDetails)==null?void 0:w.title)!=null?V:"";Y.JSC$20474_watchApi.dispatchEvent("yt-update-title",H)},idg=function(Y){var b,w,V,H,f,E,U,X=(U=((E=(b=Y.JSC$20474_watchApi.getWatchNextResponse())==null?void 0:(w=b.contents)==null?void 0:(V=w.twoColumnWatchNextResults)==null?void 0:(H=V.results)==null?void 0:(f=H.results)==null?void 0:f.contents)!=null?E:[]).find(function(I){return!!I.videoPrimaryInfoRenderer}))==null?
void 0:U.videoPrimaryInfoRenderer;
(b=_.Tx(X==null?void 0:X.title))&&Y.JSC$20474_watchApi.dispatchEvent("yt-update-title",b)};_.yXR=function(Y){_.BE.call(this);this.JSC$20477_watchApi=Y;Cit(this)};
_.P(_.yXR,_.BE);var Cit=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$20477_watchApi.playerApi,2);b=V.yieldResult;w=function(){Y.onYpcContentRequest()};
b.addEventListener("onYpcContentRequest",w);Y.addOnDisposeCallback(function(){b.removeEventListener("onYpcContentRequest",w)});
_.om(V)})};
_.yXR.prototype.onYpcContentRequest=function(){var Y,b,w,V,H,f=(Y=this.JSC$20477_watchApi.getWatchNextResponse())==null?void 0:(b=Y.contents)==null?void 0:(w=b.twoColumnWatchNextResults)==null?void 0:(V=w.secondaryResults)==null?void 0:(H=V.secondaryResults)==null?void 0:H.offerModule,E,U,X,I;Y=(I=(X=(U=(E=f==null?void 0:f.episodeOfferModuleRenderer)!=null?E:f==null?void 0:f.movieOfferModuleRenderer)!=null?U:f==null?void 0:f.unlimitedOfferModuleRenderer)!=null?X:f==null?void 0:f.liveOfferModuleRenderer)!=
null?I:f==null?void 0:f.tvfilmOfferModuleRenderer;var k,l,x;f=(x=f==null?void 0:(k=f.tvfilmOfferModuleRenderer)==null?void 0:(l=k.actionButtons)==null?void 0:l.length)!=null?x:0;l=Math.max(f-1,0);var Q,Z,e;k=(e=Y==null?void 0:(Q=Y.offerButton)==null?void 0:Q.buttonRenderer)!=null?e:Y==null?void 0:(Z=Y.actionButtons)==null?void 0:Z[l].buttonRenderer;var O,L;(Q=(L=(O=k==null?void 0:k.navigationEndpoint)!=null?O:k==null?void 0:k.serviceEndpoint)!=null?L:k==null?void 0:k.command)&&_.l8.instance.resolveCommand(Q)};
}catch(e){_._DumpException(e)}
try{
var HHt,bHO,uPt;_.YJt=function(){var Y=_.BL.clone(JqI),b;return(new _.hh(function(w,V){Y.onSuccess=function(H){_.dca(H)?w(new uPt(H)):V(new _.C2("Request failed, status="+_.Dj(H),"net.badstatus",H))};
Y.onError=function(H){V(new _.C2("Unknown request error","net.unknown",H))};
Y.onTimeout=function(H){V(new _.C2("Request timed out","net.timeout",H))};
b=_.lc("//googleads.g.doubleclick.net/pagead/id",Y)})).thenCatch(function(w){if(w instanceof _.GL){var V;
(V=b)==null||V.abort()}return _.OQ(w)})};
_.wQt=function(Y){a:{var b="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var w=Y.raw_embedded_player_response;if(!w&&(Y=Y.embedded_player_response))try{w=JSON.parse(Y)}catch(H){break a}if(w)b:for(var V in bHO)if(bHO[V]==w.embeddedPlayerMode){b=bHO[V];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"};
_.V3N=function(){if(_.q("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("pf");if(!_.w2b())return Error("qf");var Y=_.zO("PLAYER_VARS",{});if(_.BL.get(Y,"privembed",!1)=="1")return Error("rf");if(_.wQt(Y))return Error("sf")};
HHt=function(Y){switch(Y){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:_.cI(Y,"unknown result type")}};
_.gu7=function(Y,b,w){b=_.TWb[b];w={detected:Y===0,source:b.dU4,detectionResult:HHt(Y),contentCpn:w};_.RY("biscottiBasedDetection",w);_.Kno.increment(b.dU4,Y);b.nVp!==void 0&&_.rx("CATSTAT",_.jjI(Y,b))};
_.ys=function(Y,b){var w={};w.key=Y;w.value=b;return _.pzu().then(function(V){return new Promise(function(H,f){try{var E=V.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(w);E.onsuccess=function(){H()};
E.onerror=function(){f()}}catch(U){f(U)}})})};
_.Nat=function(){var Y=_.cQ("user_engagement_experiments_rate_limit_ms"),b=fjb.get("last-user-engagement-exp-trigger-timestamp");return!b||(0,_.gG)()>=b+Y?(fjb.set("last-user-engagement-exp-trigger-timestamp",(0,_.gG)()),!0):!1};
_.$A=function(Y,b,w,V,H){b=b===void 0?null:b;w=w===void 0?null:w;V=V===void 0?null:V;H=H===void 0?null:H;Y={youThereEventType:Y};w&&(Y.lactThresholdMs=w.lactThresholdMs,Y.mediaPosSec=w.promptDelaySec,Y.lactServerRequestMs=w.lactServerRequestMs,Y.triggerReason=w.triggerReason);H!=null&&(Y.renderingMediaPosSec=Math.round(H));b||(b=_.dO());b&&(Y.clientScreenNonce=b);V&&(Y.clientPlaybackNonce=V);_.RY("youThere",Y)};
bHO={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"};uPt=function(Y){this.xhr=Y};
_.C2=function(Y,b,w){_.Yb.call(this,Y+", errorCode="+b);this.errorCode=b;this.xhr=w;this.name="PromiseAjaxError"};
_.P(_.C2,_.Yb);var JqI={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var fjb=new _.WO("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.RyO=function(Y){return _.Uf({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:Y})};
}catch(e){_._DumpException(e)}
try{
var za,H6g,fGd,NgX,ElO,c3b,XiO,xUN,qRt,sKO,UUt,glb,IGX,olX,P_O;_.VGb=function(){var Y=window.location.hash;Y.charAt(0)==="#"&&(Y=Y.charAt(1)==="!"?Y.substring(2):Y.substring(1));return _.j4(Y)};
za=function(Y,b,w){var V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,b(),2);V=H.yieldResult;w(V,Y);_.om(H)})};
H6g=function(){return _.c(function(Y){return Y.nextAddress==1?_.D(Y,(_.V3N()!==void 0?_.OQ(Error("tf")):_.YJt()).then(function(){return 1},function(b){if(b.message==="Biscotti id is disabled")return 3;
_.Sk("Failed fetching bid");return 0}),2):Y.return(Y.yieldResult)})};
fGd=function(){var Y=_.VU("YmVkLXBsYXllciMyMHpnbjk1d2NqNGt5dC1oYXZlbi1lbQ=="),b=_.VU("bWUjNWJldzZzNmswMGN3aWZyYQ==");return document.querySelector(b+glb+Y)?0:1};
NgX=function(){return _.FgK(_.jF)};
ElO=function(){return _.LgM()===0?0:_.Sqq()};
c3b=function(){return _.KgI(_.HZu([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
XiO=function(){return _.ncv(UUt)};
_.DUO=function(Y){_.c(function(b){switch(b.nextAddress){case 1:return _.D(b,za("b.f_",H6g,Y),2);case 2:return _.D(b,za("j.s_",_.ZZB,Y),3);case 3:return _.D(b,za("r.s_",_.Qjg,Y),4);case 4:return _.D(b,za("e.h_",XiO,Y),5);case 5:if(!_.q("ab_det_sc_inj")){b.jumpTo(6);break}return _.D(b,za("s.i_",_.Rhq,Y),6);case 6:if(_.q("ab_deg_unex_thr")){b.jumpTo(8);break}return _.D(b,za("a.o_",_.OZv,Y),8);case 8:if(_.q("ks_get_o_pp")){b.jumpTo(10);break}return _.D(b,za("g.o_",_.p5M,Y),10);case 10:if(_.q("ks_det_gpbl")){b.jumpTo(12);
break}return _.D(b,za("p.i_",_.ehr,Y),12);case 12:return _.D(b,za("f.i_",_.X5u,Y),14);case 14:return _.D(b,za("a.b_",_.qqg,Y),15);case 15:return _.D(b,za("p.m_",_.ocL,Y),16);case 16:if(!_.q("ab_det_el_h_v2")){b.jumpTo(17);break}return _.D(b,za("n.h_",c3b,Y),17);case 17:return _.D(b,za("o.p_",NgX,Y),19);case 19:return _.D(b,za("e.i_",fGd,Y),20);case 20:if(_.q("ab_det_apm"))return _.D(b,za("o.a_",ElO,Y),0);b.jumpTo(0)}})};
_.mUX=function(Y,b){Y={videoId:Y};b&&(Y.playlistId=b);return Y};
_.kYN=function(){if(_.w2b()){var Y=_.zO("PLAYER_VARS",{});if(_.BL.get(Y,"privembed",!1)!="1"&&!_.wQt(Y)){var b=function(){olX=!0;"google_ad_status"in window?_.rx("DCLKSTAT",1):_.rx("DCLKSTAT",2)};
try{_.io("//static.doubleclick.net/instream/ad_status.js",b)}catch(w){}IGX.push(_.Lb.addLowPriorityJob(function(){if(!(olX||"google_ad_status"in window)){try{_.$kK("//static.doubleclick.net/instream/ad_status.js",b)}catch(w){}olX=!0;_.rx("DCLKSTAT",3)}},5E3))}}};
_.WF=function(Y,b,w){w=w===void 0?!1:w;var V=Math.max(Y.width,_.f0R);if(_.q("kevlar_watch_feed_big_thumbs")&&Y.width>=1550-_.e$()&&Y.height>=800)V-=_.Dt7;else if(Y.width>=_.L6){var H=_.Njg+_.ETN+_.Fi;_.q("kevlar_watch_feed_big_thumbs")&&(H=_.XCd);V-=H}else V-=_.Njg;V=Math.min(V,_.c5I);H=240;w&&(H=380);b<.5624||(!_.q("kevlar_watch_flexy_disable_small_window_sizing")&&(Y.height<630&&Y.width>=657||Y.height>=630&&Y.width>=_.L6&&Y.width<1327)?H=360:!_.q("kevlar_watch_flexy_disable_large_window_sizing")&&
Y.height>=630&&Y.width>=1327&&(H=480));var f=Math.min(V*b,Y.height-(56+_.gT7+_.UtR));f=Math.max(f,H);b<1?V=f/b:Y.width>=_.L6&&(V=_.WF(Y,.5625,w).width);return new _.mE(Math.round(V),Math.round(f))};
_.lGX=function(Y){var b=0;Y.indexOf("h")!=-1&&(Y=Y.split("h"),b=Y[0]*60*60,Y=Y[1]);Y.indexOf("m")!=-1&&(Y=Y.split("m"),b=Y[0]*60+b,Y=Y[1]);Y.indexOf("s")!=-1?(Y=Y.split("s"),b=Y[0]*1+b):b=Y*1+b;return b};
_.haX=function(){_.cQ("service_worker_push_logged_out_prompt_watches")!=-1&&_.ud("WatchCount").then(function(Y){Y>=100||_.ys("WatchCount",Y+1)})};
xUN=function(Y){var b=Y.externalVideoId||"";return b?Y.isShortsEligible?"https://www.youtube.com/shorts/"+b:"https://www.youtube.com/watch?v="+b:""};
qRt=function(Y){var b=[];Y.viewCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:Y.viewCount});Y.likeCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:Y.likeCount});return b};
sKO=function(Y){var b,w,V={"@context":"https://schema.org","@type":"VideoObject",description:_.Tx(Y.description),duration:"PT"+(Y.lengthSeconds||"0")+"S",embedUrl:Y.embed?Y.embed.iframeUrl:"",name:_.Tx(Y.title),thumbnailUrl:((b=Y.thumbnail)==null?void 0:(w=b.thumbnails)==null?void 0:w.map(function(k){return k&&k.url||""}))||[],
uploadDate:Y.publishDate};_.q("mweb_video_schema_id_killswitch")||(V["@id"]=xUN(Y));b=qRt(Y);b.length&&(V.interactionStatistic=b);Y.category&&(V.genre=Y.category);Y.ownerChannelName&&(V.author=Y.ownerChannelName);Y.liveBroadcastDetails&&(V.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:Y.liveBroadcastDetails.startTimestamp,endDate:Y.liveBroadcastDetails.endTimestamp}]);if(Y.learningResource){Y=Y.learningResource;V["@type"]=["VideoObject","LearningResource"];var H;if((H=Y.learningResourceType)==
null?0:H.length)V.learningResourceType=Y.learningResourceType[0];var f;if((f=Y.educationalAlignment)==null?0:f.length)V.educationalAlignment={"@type":"AlignmentObject",targetName:Y.educationalAlignment[0]};var E;if((E=Y.educationalLevel)==null?0:E.length){H=Y.educationalLevel[0];var U;if((U=Y.educationalLevelCountry)==null?0:U.length)H+=" ("+Y.educationalLevelCountry+")";V.educationalLevel=H}var X,I;if(((X=Y.learningResourceType)==null?0:X.length)&&Y.learningResourceType[0]==="Problem walkthrough"&&
((I=Y.problemDescriptions)==null?0:I.length))for(V.hasPart=[],U=_.N(Y.problemDescriptions),X=U.next();!X.done;X=U.next())H=X.value,X=H.problemDescriptionText,I=H.startOffset,H=H.url,X&&I!==void 0&&H&&V.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:X,text:X,startOffset:I,url:H})}return V};
_.QKQ=function(Y){return _.Uf({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:Y}})};
UUt=[[["ZjZxOGZoMHQ5eHFwcmltYXJ5I2Y=",null,null],[null,["dW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyIzhicTBkYnN1NW5xNnl0ZC10d28tY29s","dHlsZS1zY29wZSNucTFkdGtzMXI0YnM="],null],["ZWFkLWFkIzU4c3JlcTg4NGJ4Y21hc3Ro",["aWQtcmVuZGVyZXIjaThidXVqMWg4NHR5dGQtcmljaC1ncg=="],null],[null,["cmVuZGVyZXIjdnQ5aXE4c3FvMWRyeXRkLXJpY2gtZ3JpZC0=","LXNjb3BlI3d1ODd1OGpkOTJtNXN0eWxl"],null],[null,["ZXIjYmhqNjgzbm9laTdjeXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","LXNjb3BlI2UwY3FnYTlrdXFuNHN0eWxl"],null],[null,["bG90LXJlbmRlcmVyIzZ5d2ttZDR1dWY3bHl0ZC1hZC1z"],
null]],[["bGF5ZXItYWRzI2hic3hzcmhqbmc4bXA=",null,null]]];glb="#";IGX=[];olX=!1;_.vlt=["engagement-panel-ads"];P_O=new _.A("updateSentimentBarStateCommand");_.Z6N=new _.A("showSurveyCommand");_.KT=new _.A("changeMarkersVisibilityCommand");var nlA,MGd,tGg,O6Q,piI,AD;_.Bgt=function(Y,b){this.playerProvider_=Y;this.actionSenderElement_=b;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Bgt.prototype.reset=function(){nlA(this);this.isUserPredictedAbsent_=!1};
nlA=function(Y,b){!Y.youThereData_||Y.showWarningJob_||b!==void 0&&b||(_.$A("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_),_.dh());_.Lb.cancelJob(Y.showWarningJob_);Y.showWarningJob_=0;_.Lb.cancelJob(Y.showBlockingWarningJob_);Y.showBlockingWarningJob_=0;_.Lb.cancelJob(Y.pausePlaybackJob_);Y.pausePlaybackJob_=0;Y.youThereData_=null;Y.clientPlaybackNonce_=void 0;Y.inYouThereFlow_=!1};
_.eaX=function(Y,b){var w,V,H;_.c(function(f){if(f.nextAddress==1)return Y.reset(),_.D(f,Y.playerProvider_().getPlayerPromise(),2);w=f.yieldResult;Y.clientPlaybackNonce_=w.getVideoData().cpn;Y.youThereData_=b.configData.youThereData;if(!Y.youThereData_)return f.return();if(Y.youThereData_.triggerReason&&Y.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Nat())return _.$A("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_),f.return();V=Y.youThereData_.promptDelaySec;
H=w.getCurrentTime();Y.showWarningJob_=_.Lb.addLowPriorityJob(function(){return _.c(function(E){Y.showWarningJob_=0;return _.D(E,MGd(Y),0)})},Math.max(V-H,0)*1E3);
_.om(f)})};
MGd=function(Y){var b,w,V,H,f,E;return _.c(function(U){if(U.nextAddress==1)return _.D(U,Y.playerProvider_().getPlayerPromise(),2);if(U.nextAddress!=3)return b=U.yieldResult,w=b.getCurrentTime(),_.D(U,piI(Y),3);V=U.yieldResult;if(!V||!Y.youThereData_)return U.return();if(_.q("check_user_lact_at_prompt_shown_time_on_web")&&(H=parseInt(Y.youThereData_.lactThresholdMs,10),_.fB()<H))return _.$A("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_),U.return();if(Y.youThereData_.playbackPauseDelayMs<=
0)return O6Q(Y),U.return();!_.q("external_fullscreen")&&(f=_.fz())&&(Y.ignoreFullscreenExitUserActivity_=!0,_.Lb.addLowPriorityJob(function(){Y.ignoreFullscreenExitUserActivity_=!1},2E3),_.N8(f));
Y.youThereData_.showToastWarningPrompt&&(AD(Y,Y.youThereData_.showWarningActions),Y.inYouThereFlow_=!0,_.$A("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_,w),_.$A("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_,w));E=0;Y.youThereData_.blockingPromptDelayMs&&(E=Y.youThereData_.blockingPromptDelayMs);Y.showBlockingWarningJob_=_.Lb.addLowPriorityJob(function(){return _.c(function(X){Y.showBlockingWarningJob_=0;return _.D(X,
tGg(Y),0)})},E);
_.om(U)})};
tGg=function(Y){var b,w,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,piI(Y),2);b=H.yieldResult;if(!Y.youThereData_)return H.return();b&&(Y.youThereData_.showBlockingWarningAction&&(_.$A("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_),(w=_.v(Y.youThereData_.showBlockingWarningAction,_.ln))?AD(Y,w.commands):AD(Y,[Y.youThereData_.showBlockingWarningAction]),Y.inYouThereFlow_=!0),V=Y.youThereData_.playbackPauseDelayMs,Y.pausePlaybackJob_=
_.Lb.addLowPriorityJob(function(){return _.c(function(f){Y.pausePlaybackJob_=0;return _.D(f,O6Q(Y),0)})},V));
_.om(H)})};
O6Q=function(Y){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,piI(Y),2);b=w.yieldResult;if(!Y.youThereData_)return w.return();b&&(_.$A("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_),AD(Y,Y.youThereData_.showPausedActions),Y.inYouThereFlow_=!0);_.om(w)})};
_.Bgt.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var Y=_.v(this.youThereData_.userActiveDuringFlowAction,_.ln);Y?AD(this,Y.commands):AD(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.$A("YOU_THERE_EVENT_TYPE_LACT_RESET",_.dO(),this.youThereData_,this.clientPlaybackNonce_),_.dh());nlA(this,!0)}_.Rad(this,!1)};
_.dUt=function(Y){_.$A("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_)};
piI=function(Y){var b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.playerProvider_().getPlayerPromise(),2);b=V.yieldResult;w=b.getPlayerState();return V.return(w==-1||w==1||w==3)})};
_.Rad=function(Y,b){var w;_.c(function(V){if(V.nextAddress==1){if(Y.isUserPredictedAbsent_==b)return V.jumpTo(0);Y.isUserPredictedAbsent_=b;return _.D(V,Y.playerProvider_().getPlayerPromise(),3)}w=V.yieldResult;w.setUserEngagement(b);b&&_.$A("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.dO(),Y.youThereData_,Y.clientPlaybackNonce_);_.om(V)})};
AD=function(Y,b){if(_.q("handle_service_request_actions")||_.q("kevlar_youthere_service_endpoint_actions_killswitch"))_.IP(Y.actionSenderElement_,b,Y.actionSenderElement_);else{b=_.N(b);for(var w=b.next();!w.done;w=b.next())w=w.value,w.commandMetadata&&w.commandMetadata.webCommandMetadata&&w.commandMetadata.webCommandMetadata.sendPost?_.oP(Y.actionSenderElement_,[w]):_.IP(Y.actionSenderElement_,[w],Y.actionSenderElement_)}};var FrR;var LrA;var CT=function(){var Y=_.F.apply(this,arguments)||this;Y.systemIcons=_.q("kevlar_system_icons");Y.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return Y};
_.P(CT,_.F);CT.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var Y=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(Y=this.data.percentIfLiked||0,this.activated=!0):(Y=this.data.percentIfIndifferent||0,this.activated=!1);_.E6(this.hostElement).querySelector("#like-bar").style.width=Y+"%"}};
CT.prototype.handleUpdateSentimentBarStateCommand=function(Y){this.data&&this.set("data.likeStatus",_.v(Y,P_O).likeStatus)};
CT.prototype.observeLikeStatus=CT.prototype.observeLikeStatus;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],CT.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CT.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],CT.prototype,"activated",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],CT.prototype,"systemIcons",void 0);_.z([_.lr("data.likeStatus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CT.prototype,"observeLikeStatus",null);_.z([_.S({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],CT);
_.a(CT,"ytd-sentiment-bar-renderer",function(){if(LrA!==void 0)return LrA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sentiment-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-sentiment-bar-renderer">\n  <div id="like-bar" class="style-scope ytd-sentiment-bar-renderer"></div>\n</div>\n<tp-yt-paper-tooltip position="top" class="style-scope ytd-sentiment-bar-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return LrA=Y},{mode:1});var SRg;var ya=function(){var Y=_.F.apply(this,arguments)||this;Y.small=!0;return Y};
_.P(ya,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ya.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ya.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ya.prototype,"small",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],ya);
_.a(ya,"ytd-video-view-count-renderer",function(){if(SRg!==void 0)return SRg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-view-count-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span class="view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.viewCount)]]</span><span class="short-view-count style-scope ytd-video-view-count-renderer">[[getSimpleString(data.shortViewCount)]]</span>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return SRg=Y},{mode:_.Xd("kevlar_poly_si_batch_j080")?1:2});var $B=function(){var Y=_.F.apply(this,arguments)||this;Y.infoFormattedStrings=[];Y.wrapVideoActions=_.q("kevar_watch_wrap_video_actions");Y.hideSentimentBar=_.q("kevlar_watch_hide_sentiment_bar");Y.actionMap={};return Y};
_.P($B,_.F);_.g=$B.prototype;_.g.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.q("web_modern_buttons"),forceIconButton:!_.q("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.g.dataChanged=function(){_.q("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.g.computeInfoFormattedStrings=function(Y){if(!Y)return[];var b=[];Y.dateText&&b.push(Y.dateText);Y.stationName&&b.push(Y.stationName);Y.rating&&b.push(Y.rating);Y.startEndTimeTemplate&&Y.startTimeUtcMillis&&Y.endTimeUtcMillis&&b.push(_.Gx(_.P0g(_.Tx(Y.startEndTimeTemplate),Number(Y.startTimeUtcMillis),Number(Y.endTimeUtcMillis))));Y.upNextProgramText&&b.push(Y.upNextProgramText);return b};
_.g.scheduleInitialUpdatedMetadataRequest=function(){var Y,b=(Y=this.data)==null?void 0:Y.updatedMetadataEndpoint;if(b){var w;Y=Number((w=_.v(b,_.Wyr))==null?void 0:w.initialDelayMs);w=isNaN(Y)?250:Y;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),w)}};
_.g.setSentimentBarWidth=function(){var Y=this;_.TC(this,function(){var b=_.E6(Y.hostElement).querySelector("ytd-menu-renderer");if(b){b=b.topLevelButtons;for(var w=0,V=0;V<b.length;V++){var H=b[V],f=Y.get("toggleButtonSupportedData.toggleButtonIdData.id",H.data);if(f==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||f==="TOGGLE_BUTTON_ID_TYPE_LIKE")w+=H.clientWidth+8;else break}w&&(Y.sentiment.style.width=w-8+" px")}})};
_.g.fetchUpdatedMetadata=function(Y){var b;Y&&(b={continuation:Y});var w;(Y=(w=this.data)==null?void 0:w.updatedMetadataEndpoint)&&_.fH().resolve(_.Nn).resolveCommand(Y,{form:Object.assign({},b,{element:this.hostElement})})};
_.g.onYtServiceRequestSent=function(Y,b){b.endpoint&&_.v(b.endpoint,_.jV)&&(this.hasUpdateSentimentBarStateCommands()&&!_.q("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.v(b.endpoint,_.jV).status),this.setSentimentBarWidth())};
_.g.hasUpdateSentimentBarStateCommands=function(){var Y,b,w,V,H=(V=(Y=this.data)==null?void 0:(b=Y.videoActions)==null?void 0:(w=b.menuRenderer)==null?void 0:w.topLevelButtons)!=null?V:[];Y=_.N(H);for(b=Y.next();!b.done;b=Y.next()){b=b.value;H=V=w=void 0;var f=(w=b.toggleButtonRenderer)==null?void 0:(V=w.toggleButtonSupportedData)==null?void 0:(H=V.toggleButtonIdData)==null?void 0:H.id;if(f==="TOGGLE_BUTTON_ID_TYPE_LIKE"||f==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){V=w=void 0;b=(V=_.v((w=b.toggleButtonRenderer)==
null?void 0:w.defaultServiceEndpoint,_.ln))==null?void 0:V.commands;if(!b)break;b=_.N(b);for(w=b.next();!w.done;w=b.next())if(_.v(w.value,P_O))return!0}}return!1};
_.g.onYtServiceRequestCompleted=function(Y,b){var w;(Y=(w=b.data)==null?void 0:w.loggingDirectives)&&_.epg(_.Qd(),Y);this.get("continuation.timedContinuationData",b.data)&&this.data&&this.data.updatedMetadataEndpoint&&(b=b.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,b.continuation),b.timeoutMs))};
_.g.computeHasDateText=function(Y){return!!Y&&!!Y.dateText};
_.up.Object.defineProperties($B.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return!((V=(Y=this.data)==null?void 0:(b=Y.videoActions)==null?void 0:(w=b.menuRenderer)==null?void 0:w.flexibleItems)==null||!V.length)}}});
$B.prototype.onYtServiceRequestCompleted=$B.prototype.onYtServiceRequestCompleted;$B.prototype.onYtServiceRequestSent=$B.prototype.onYtServiceRequestSent;$B.prototype.dataChanged=$B.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],$B.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.g9.YtTaskEmitterBehavior),_.K("design:type",Object)],$B.prototype,"ytTaskEmitterBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$B.prototype,"data",void 0);_.z([_.R({computed:"computeInfoFormattedStrings(data)"}),_.K("design:type",Array)],$B.prototype,"infoFormattedStrings",void 0);
_.z([_.R({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],$B.prototype,"hasDateText",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$B.prototype,"wrapVideoActions",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$B.prototype,"hideSentimentBar",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$B.prototype,"flexMenuEnabled",null);
_.z([_.xZ("#sentiment"),_.K("design:type",Object)],$B.prototype,"sentiment",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],$B.prototype,"dataChanged",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],$B.prototype,"onYtServiceRequestSent",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],$B.prototype,"onYtServiceRequestCompleted",null);
_.a($B,"ytd-video-primary-info-renderer",function(){if(FrR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-primary-info-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><a class="yt-simple-endpoint style-scope ytd-video-primary-info-renderer" hidden="[[!data.superTitleIcon]]" href$="[[computeHref_(data.superTitleLink.runs.0.navigationEndpoint)]]" aria-label$="[[data.superTitleLink.accessibility.accessibilityData.label]]" data="[[data.superTitleLink.runs.0.navigationEndpoint]]"><yt-icon class="super-title-icon style-scope ytd-video-primary-info-renderer" icon="yt-icons:location_pin"></yt-icon></a><yt-formatted-string class="super-title style-scope ytd-video-primary-info-renderer" force-default-style="" text="[[data.superTitleLink]]"></yt-formatted-string><h1 class="title style-scope ytd-video-primary-info-renderer"><yt-formatted-string force-default-style="" text="[[data.title]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></h1><ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-video-primary-info-renderer"></ytd-badge-supported-renderer><div id="info" class="style-scope ytd-video-primary-info-renderer"><div id="info-text" class="style-scope ytd-video-primary-info-renderer"><div id="count" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></div><div id="info-strings" hidden="[[!infoFormattedStrings.length]]" class="style-scope ytd-video-primary-info-renderer"><span id="dot" hidden="[[!data.viewCount]]" class="style-scope ytd-video-primary-info-renderer"></span><template is="dom-repeat" items="[[infoFormattedStrings]]" class="style-scope ytd-video-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-video-primary-info-renderer"></yt-formatted-string></template></div></div><div id="flex" class="style-scope ytd-video-primary-info-renderer"></div><div id="menu-container" class="style-scope ytd-video-primary-info-renderer"><div id="menu" class="style-scope ytd-video-primary-info-renderer"></div><ytd-sentiment-bar-renderer id="sentiment" data="[[data.sentimentBar.sentimentBarRenderer]]" hidden="[[!data.sentimentBar.sentimentBarRenderer]]" class="style-scope ytd-video-primary-info-renderer"></ytd-sentiment-bar-renderer></div></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);FrR=Y}Y=FrR;return Y},{mode:1});var aGA;var jA=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return Y};
_.P(jA,_.F);_.g=jA.prototype;_.g.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"}}}};
_.g.dataChanged=function(){var Y;this.descriptionToggled=!((Y=this.data)==null||!Y.defaultExpanded);var b;this.collapsed=this.descriptionAlwaysCollapsed||!((b=this.data)==null?0:b.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.tj(110509);this.showLessClientVe=_.tj(110510);Y=_.dO();b=_.R3();Y&&b&&_.$7(Y,b,[this.showMoreClientVe,this.showLessClientVe])};
_.g.onYtExpanderMoreTapped=function(){var Y,b=(Y=this.data)==null?void 0:Y.showMoreCommand;b&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(b);(Y=_.dO())&&this.showMoreClientVe&&_.J1(Y,this.showMoreClientVe)};
_.g.onYtExpanderLessTapped=function(){var Y=_.dO();Y&&this.showLessClientVe&&_.J1(Y,this.showLessClientVe);var b;(Y=(b=this.data)==null?void 0:b.showLessCommand)&&this.componentBehavior.resolveCommand(Y)};
_.g.handleUpdateDateTextAction=function(Y){this.data&&this.data.dateText&&this.set("data.dateText",_.v(Y,_.uoI).dateText)};
_.g.handleUpdateDescriptionAction=function(Y){if(Y=_.v(Y,_.Rxr))Y.isEmpty||!Y.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.LA(Y.description)):this.set("data.description",Y.description)};
_.g.onYtChangeEngagementPanelVisibilityAction=function(Y){if(_.q("web_structured_description_show_more")||_.q("web_engagement_panel_open_description")){var b,w=(b=_.v(Y,_.QyK))==null?void 0:b.targetId,V;Y=((V=_.v(Y,_.QyK))==null?void 0:V.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";w==="engagement-panel-structured-description"&&Y&&(this.descriptionToggled=!0)}};
_.g.updateCollapsedFromBinding=function(Y){this.collapsed=Y.detail.value};
_.g.updateDescriptionToggledFromBinding=function(Y){this.descriptionToggled=Y.detail.value};
_.g.updateCanCollapseFromBinding=function(Y){this.canCollapse=Y.detail.value};
_.up.Object.defineProperties(jA.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer;return!!w&&!!w.rows&&w.rows.length>w.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
jA.prototype.onYtExpanderLessTapped=jA.prototype.onYtExpanderLessTapped;jA.prototype.onYtExpanderMoreTapped=jA.prototype.onYtExpanderMoreTapped;jA.prototype.dataChanged=jA.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],jA.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],jA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],jA.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jA.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],jA.prototype,"collapsed",void 0);_.z([_.R(),_.K("design:type",Boolean)],jA.prototype,"descriptionToggled",void 0);
_.z([_.R(),_.K("design:type",Boolean)],jA.prototype,"canCollapse",void 0);_.z([_.R(),_.K("design:type",Object)],jA.prototype,"subscribeButtonData",void 0);_.z([_.R(),_.K("design:type",Number)],jA.prototype,"descriptionCollapsedHeight",void 0);_.z([_.R(),_.K("design:type",Object)],jA.prototype,"structuredDescriptionContentRenderer",void 0);_.z([_.R({value:function(){return _.q("web_watch_description_always_collapsed")}}),
_.K("design:type",Boolean)],jA.prototype,"descriptionAlwaysCollapsed",void 0);_.z([_.xZ("#description"),_.K("design:type",HTMLDivElement)],jA.prototype,"description",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jA.prototype,"dataChanged",null);_.z([_.kZ("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jA.prototype,"onYtExpanderMoreTapped",null);
_.z([_.kZ("yt-expander-less-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jA.prototype,"onYtExpanderLessTapped",null);_.z([_.t("data.metadataRowContainer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jA.prototype,"metadataCollapsible",null);_.z([_.t("data","structuredDescriptionContentRenderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jA.prototype,"hasInlineStructuredDescription",null);
_.z([_.t("data.attributedDescription"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jA.prototype,"hasAttributedDescription",null);_.z([_.t("hasInlineStructuredDescription","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jA.prototype,"loadStructuredDescription",null);_.z([_.t("data","structuredDescriptionContentRenderer","collapsed"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jA.prototype,"showInlineStructuredDescription",null);
_.z([_.t("data","hasInlineStructuredDescription","metadataCollapsible"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],jA.prototype,"descriptionAlwaysCollapsible",null);
_.a(jA,"ytd-video-secondary-info-renderer",function(){if(aGA===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-video-secondary-info-renderer"><div id="top-row" class="style-scope ytd-video-secondary-info-renderer"><ytd-video-owner-renderer data="[[data.owner.videoOwnerRenderer]]" subscribe-key="[[subscribeButtonData.subscribedEntityKey]]" class="style-scope ytd-video-secondary-info-renderer"><span class="date style-scope ytd-video-secondary-info-renderer" slot="date">[[getSimpleString(data.dateText)]]</span></ytd-video-owner-renderer><div id="subscribe-button" class="style-scope ytd-video-secondary-info-renderer"></div></div><ytd-expander always-collapsed="[[descriptionAlwaysCollapsed]]" always-toggleable="[[descriptionAlwaysCollapsible]]" can-toggle="[[canCollapse]]" collapsed="[[collapsed]]" collapsed-height="[[descriptionCollapsedHeight]]" is-toggled="[[descriptionToggled]]" on-can-toggle-changed="updateCanCollapseFromBinding" on-collapsed-changed="updateCollapsedFromBinding" on-is-toggled-changed="updateDescriptionToggledFromBinding" class="style-scope ytd-video-secondary-info-renderer"><div id="description" slot="content" class="style-scope ytd-video-secondary-info-renderer"><yt-attributed-string class="content style-scope ytd-video-secondary-info-renderer" data="[[data.attributedDescription]]" disable-upgrade$="[[!hasAttributedDescription]]" hidden="[[!hasAttributedDescription]]" user-input=""></yt-attributed-string><yt-formatted-string class="content style-scope ytd-video-secondary-info-renderer" disable-upgrade$="[[hasAttributedDescription]]" force-default-style="" hidden="[[hasAttributedDescription]]" split-lines="[[!hasAttributedDescription]]" text="[[data.description]]"></yt-formatted-string><ytd-structured-description-content-renderer data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!loadStructuredDescription]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="[[hasInlineStructuredDescription]]" class="style-scope ytd-video-secondary-info-renderer"></ytd-structured-description-content-renderer></div><ytd-metadata-row-container-renderer class="sticky style-scope ytd-video-secondary-info-renderer" slot="sticky" collapsed="[[collapsed]]" data="[[data.metadataRowContainer.metadataRowContainerRenderer]]"></ytd-metadata-row-container-renderer><yt-formatted-string class="more-button style-scope ytd-video-secondary-info-renderer" slot="more-button" role="button" text="[[data.showMoreText]]"></yt-formatted-string><yt-formatted-string class="less-button style-scope ytd-video-secondary-info-renderer" slot="less-button" role="button" text="[[data.showLessText]]"></yt-formatted-string></ytd-expander></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);aGA=Y}Y=aGA;return Y},{mode:2});var r3I;var Ga=function(){return _.F.apply(this,arguments)||this};
_.P(Ga,_.F);Ga.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:_.q("web_modern_buttons"),forceIconButton:!_.q("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Ga.prototype.activate=function(Y){Y.appendTo(this.player);Y.getPlayerPromise().then(function(b){b.setMinimized(!0)});
this.active=!0};
Ga.prototype.deactivate=function(){var Y=this.player.firstElementChild;Y.getPlayerPromise().then(function(b){b.setMinimized(!1)});
this.active=!1;return Y};
Ga.prototype.onScrollUpTap=function(){var Y=_.fH().resolve(_.bX).getCurrentPage();Y&&Y.setScrollTop(0)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ga.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ga.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Ga.prototype,"active",void 0);
_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.K("design:type",Boolean)],Ga.prototype,"darkLaunch",void 0);_.z([_.xZ("#player"),_.K("design:type",HTMLDivElement)],Ga.prototype,"player",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Ga);
_.a(Ga,"ytd-miniplayer-bar-renderer",function(){if(r3I!==void 0)return r3I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return r3I=Y},{mode:1});_.f_(_.b8(function(Y){var b=_.GM("script");_.tl(function(){var w;if(w=JSON)w=sKO(Y.data()),w=_.rE(JSON.stringify(w).replace(/</g,"\\u003C"));var V=Y.data(),H=_.Tx(V.title).trim().length===0,f=!V.publishDate||V.publishDate.trim().length===0,E,U,X,I,k=!((E=V.thumbnail)==null?0:(U=E.thumbnails)==null?0:U.length)||!((X=V.thumbnail)==null?0:X.thumbnails[0].url)||((I=V.thumbnail)==null?void 0:I.thumbnails[0].url.trim().length)===0;b.value&&w&&!(H||f||k)&&_.WN(b.value,w)},"I9AhLd");
return _.m("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.m("script",{el:b,type:"application/ld+json"}))},"vj"),"player-microformat-renderer",{props:{data:_.gn}});
}catch(e){_._DumpException(e)}
try{
var YRX;_.$at=function(Y){return Y.watch.watchWindowSize};
_.jtF=function(Y){return _.Uf({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:Y}})};
YRX=function(Y){_.BE.call(this);var b=this;this.JSC$20481_watchApi=Y;Y=_.vB(_.u3(),_.GnM,function(){GvX(b)});
this.addOnDisposeCallback(Y);Y=_.vB(_.u3(),_.$at,function(){GvX(b)});
this.addOnDisposeCallback(Y);TRg(this);JXd(this);uQb()};
_.P(YRX,_.BE);var TRg=function(Y){var b=function(V){_.u3().dispatch(_.hNg(V.matches))},w=window.matchMedia("(max-width: "+(999+_.e$())+"px)");
w.addListener(b);Y.addOnDisposeCallback(function(){w.removeListener(b)});
b(w)},JXd=function(Y){Y.JSC$20481_watchApi.registerActionHandler("yt-window-resized",function(){uQb()});
Y.addOnDisposeCallback(function(){Y.JSC$20481_watchApi.unregisterActionHandler("yt-window-resized")})},uQb=function(){var Y=_.Z8();
_.u3().dispatch(_.Uf({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:Y.width,height:Y.height}}}))},GvX=function(Y){var b;
_.c(function(w){if(w.nextAddress==1)return _.D(w,Y.JSC$20481_watchApi.playerApi,2);b=w.yieldResult;b.setSize(NaN,NaN);_.om(w)})};_.SA=function(Y){_.G$.call(this);var b=this;this.rootElement=Y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(w){b.initOrDisposeActiveModules(w)}));
this.onAttached()};
_.P(_.SA,_.G$);_.g=_.SA.prototype;_.g.getRoot=function(){return this.rootElement};
_.g.getElement=function(Y){return this.rootElement.getElement(Y)};
_.g.setPlayerResponse=function(Y){this.playerResponse=Y;this.publish("PLAYER_RESPONSE_UPDATED",Y)};
_.g.getPlayerResponse=function(){return this.playerResponse};
_.g.setWatchNextResponse=function(Y){this.watchNextResponse===Y?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=Y,this.publish("WATCH_NEXT_RESPONSE_UPDATED",Y))};
_.g.getWatchNextResponse=function(){return this.watchNextResponse};
_.g.registerActionHandler=function(Y,b){var w=this;if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var V={};_.yu(_.CB.getInstance(),(V[Y]=b,V),this.getRoot())}else this.actionHandlers.has(Y)||(this.actionHandlers.set(Y,[]),V={},_.yu(_.CB.getInstance(),(V[Y]=function(){var H=_.BN.apply(0,arguments);return(w.actionHandlers.get(Y)||[]).map(function(f){return f.apply(null,_.Bt(H))})},V),this.getRoot())),this.actionHandlers.get(Y).push(b)};
_.g.unregisterActionHandler=function(Y){if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.$P(_.CB.getInstance(),(b[Y]=!0,b),this.getRoot())}else(b=this.actionHandlers.get(Y))?(b.pop(),b.length===0&&(b={},_.$P(_.CB.getInstance(),(b[Y]=!0,b),this.getRoot()),this.actionHandlers.delete(Y))):_.Sk(new _.BQ("Attempted to unregister an action handler which is not registered.",Y))};
_.g.addPageDisposeJob=function(Y){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Ca(this.rootElement.pageDisposeJobs,Y)};
_.g.removePageDisposeJob=function(Y){this.rootElement.pageDisposeJobs&&_.$b(this.rootElement.pageDisposeJobs,Y)};
_.g.dispatchEvent=function(Y,b){_.Ua(this.rootElement,Y,b)};
_.g.provideRenderingData=function(Y,b){this.rootElement.provideRenderingData(Y,b)};
_.g.scrollWatchTo=function(Y,b){var w;(w=this.watchScrollManager)==null||w.scrollWatchTo(Y,b)};
_.g.focusOnPlayer=function(){var Y=this.getElement("PLAYER");_.TC(Y,function(){if(Y&&Y.firstElementChild){var b=Y.querySelector(".html5-video-player");b&&(_.Y1(_.fH().resolve(_.dn)),b.focus())}else _.Sk(Error("nm"))})};
_.g.updateCinematicFullscreenConfig=function(){var Y=!!this.rootElement.theater,b=!!this.rootElement.fullscreen,w;(w=this.watchCinematicManager)==null||_.$9N(w,b,Y)};
_.g.subscribeToActiveChanged=function(Y,b){b=b===void 0?!0:b;var w=_.vB(_.u3(),_.ZWd,function(V){Y(V)});
b&&Y(_.ZWd(_.u3().getState()));return w};
_.g.isActive=function(){return _.ZWd(_.u3().getState())};
_.g.onAttached=function(){var Y=_.q("external_fullscreen");_.q("use_unified_flag_accessor")&&(Y=_.fH().resolve(_.DQR).retriever.getFlag(_.bl9));(Y||_.Wf("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var b6I=function(Y){return Y.getRoot().is==="ytd-watch-flexy"||Y.getRoot().is==="ytd-watch-grid"},aZ=function(Y){return Y.getRoot().is==="ytd-watch-fixie"};
_.SA.prototype.initPersistentModules=function(){if(aZ(this)||b6I(this)&&_.q("kevlar_watch_flexy_theater_manager")){var Y=new _.QEX(this);_.os(this,Y)}Y=new _.NRA(this);_.os(this,Y);Y=new _.nT(this);_.os(this,Y);Y=new _.d6(this);_.os(this,Y);Y=new _.FiN(this);_.os(this,Y);Y=new _.eA(this);_.os(this,Y);if(aZ(this)||b6I(this)&&_.q("kevlar_watch_flexy_playlist_manager"))Y=new _.aUR(this),_.os(this,Y)};
_.SA.prototype.initOrDisposeActiveModules=function(Y){Y?(this.watchScrollManager=new _.LT(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.stQ(this)),this.activeModules.push(new _.Bdg(this)),aZ(this)&&this.activeModules.push(new YRX(this)),this.activeModules.push(new _.AXQ(this)),this.activeModules.push(new _.Fm(this)),(aZ(this)||_.q("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.pAg(this)),this.activeModules.push(new _.nCX(this)),
(aZ(this)||_.q("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.yXR(this)),(aZ(this)||_.q("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.aJX(this)),_.q("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.iKX(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.q("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.OdA(this)),_.q("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.gCO(this)),
Y=_.q("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.q("kevlar_watch_flexy_comments_manager")&&!Y&&this.activeModules.push(new _.YcA(this)),_.q("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.M5(this)),this.activeModules.push(new _.pJt(this)),this.activeModules.push(new _.vCd(this)),_.q("web_enable_timely_actions")&&this.activeModules.push(new _.d9g(this)),_.q("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.VnF(this)),
_.q("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.$ds(this)),_.q("web_fullscreen_components")&&this.activeModules.push(new _.ddd(this)),_.q("web_player_rtr_ctrls")&&this.activeModules.push(new _.gjA(this))):(_.YG(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.SA.prototype.disposeInternal=function(){_.G$.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.up.Object.defineProperties(_.SA.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var IQA,PJ,k$t,lQb,xBb,q9A,hjg,sbt;IQA=function(){var Y=_.B0();Y.info||(Y.info={});return Y.info};
PJ=function(Y){return Math.round(_.pz()+Y)};
k$t=function(){var Y;if(_.q("csi_use_performance_navigation_timing")){var b,w,V,H=_.e1==null?void 0:(Y=_.e1.getEntriesByType)==null?void 0:(b=Y.call(_.e1,"navigation"))==null?void 0:(w=b[0])==null?void 0:(V=w.toJSON)==null?void 0:V.call(w);H?(H.requestStart=PJ(H.requestStart),H.responseEnd=PJ(H.responseEnd),H.redirectStart=PJ(H.redirectStart),H.redirectEnd=PJ(H.redirectEnd),H.domainLookupEnd=PJ(H.domainLookupEnd),H.connectStart=PJ(H.connectStart),H.connectEnd=PJ(H.connectEnd),H.responseStart=PJ(H.responseStart),
H.secureConnectionStart=PJ(H.secureConnectionStart),H.domainLookupStart=PJ(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,Y=H):Y=_.e1.timing}else Y=_.q("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.e1.timing)):_.e1.timing;return Y};
lQb=function(){if(_.e1.getEntriesByType){var Y=_.e1.getEntriesByType("paint");if(Y=_.SL(Y,function(w){return w.name==="first-paint"}))return PJ(Y.startTime)}var b;
_.q("csi_use_performance_navigation_timing")?b=_.e1.getEntriesByType("first-paint")[0].startTime:b=_.e1.timing.msFirstPaint;return b?Math.max(0,b):0};
xBb=function(){var Y=window.location.protocol,b=_.e1.getEntriesByType("resource");b=_.oy(b,function(w){return w.name.indexOf(Y+"//fonts.gstatic.com/s/")===0});
(b=hjg(b,function(w,V){return V.duration>w.duration?V:w}))&&b.startTime>0&&b.responseEnd>0&&(_.Oa("wffs",PJ(b.startTime)),_.Oa("wffe",PJ(b.responseEnd)))};
q9A=function(Y,b){Y=document.querySelector(Y);if(!Y)return!1;var w="",V=Y.nodeName;V==="SCRIPT"?(w=Y.src,w||(w=Y.getAttribute("data-timing-href"))&&(w=window.location.protocol+w)):V==="LINK"&&(w=Y.href);_.Lu(document)&&Y.setAttribute("nonce",_.Lu(document));return w?(Y=_.e1.getEntriesByName(w))&&Y[0]&&(Y=Y[0],w=_.pz(),_.Oa("rsf_"+b,w+Math.round(Y.fetchStart)),_.Oa("rse_"+b,w+Math.round(Y.responseEnd)),Y.transferSize!==void 0&&Y.transferSize===0)?!0:!1:!1};
_.ZJ=function(Y,b){_.i1(function(){_.M8("").info.actionType=Y;b&&_.rx("TIMING_AFT_KEYS",b);_.rx("TIMING_ACTION",Y);var w=_.yue(_.zO("TIMING_INFO",{}));Object.keys(w).length>0&&_.t1(w);w={isNavigation:!0,actionType:_.Rkg(_.zO("TIMING_ACTION"))};var V=_.zO("PREVIOUS_ACTION");V&&(w.previousAction=_.Rkg(V));if(V=_.zO("CLIENT_PROTOCOL"))w.httpProtocol=V;if(V=_.zO("CLIENT_TRANSPORT"))w.transportProtocol=V;(V=_.dO())&&V!=="UNDEFINED_CSN"&&(w.clientScreenNonce=V);V=_.CYe();if(V===1||V===-1)w.isVisible=!0;
V=_.ZPv().loadType==="cold";var H=IQA();V||(V=H.yt_lt==="cold");if(V){w.loadType="cold";V=IQA();H=k$t();var f=_.pz(),E=_.zO("CSI_START_TIMESTAMP_MILLIS",0);E>0&&!_.q("embeds_web_enable_csi_start_override_killswitch")&&(f=E);f&&(_.Oa("srt",H.responseStart),V.prerender!==1&&_.a1L(f));V=lQb();V>0&&_.Oa("fpt",V);V=k$t();V.isPerformanceNavigationTiming&&_.t1({performanceNavigationTiming:!0},void 0);_.Oa("nreqs",V.requestStart,void 0);_.Oa("nress",V.responseStart,void 0);_.Oa("nrese",V.responseEnd,void 0);
V.redirectEnd-V.redirectStart>0&&(_.Oa("nrs",V.redirectStart,void 0),_.Oa("nre",V.redirectEnd,void 0));V.domainLookupEnd-V.domainLookupStart>0&&(_.Oa("ndnss",V.domainLookupStart,void 0),_.Oa("ndnse",V.domainLookupEnd,void 0));V.connectEnd-V.connectStart>0&&(_.Oa("ntcps",V.connectStart,void 0),_.Oa("ntcpe",V.connectEnd,void 0));V.secureConnectionStart>=_.pz()&&V.connectEnd-V.secureConnectionStart>0&&(_.Oa("nstcps",V.secureConnectionStart,void 0),_.Oa("ntcpe",V.connectEnd,void 0));_.e1&&"getEntriesByType"in
_.e1&&xBb();V=[];if(document.querySelector&&_.e1&&_.e1.getEntriesByName)for(var U in sbt)sbt.hasOwnProperty(U)&&(H=sbt[U],q9A(U,H)&&V.push(H));if(V.length>0)for(w.resourceInfo=[],U=_.N(V),V=U.next();!V.done;V=U.next())w.resourceInfo.push({resourceCache:V.value})}_.t1(w);w=_.nz();w.preLoggedGelInfos||(w.preLoggedGelInfos=[]);U=w.preLoggedGelInfos;w=_.npb();V=void 0;for(H=0;H<U.length;H++)if(f=U[H],f.loadType){V=f.loadType;break}if(_.ZPv().loadType==="cold"&&(w.loadType==="cold"||V==="cold")){V=_.Bye();
H=_.nz();H=H.gelTicks?H.gelTicks:H.gelTicks={};for(var X in V)if(!(X in H))if(typeof V[X]==="number")_.Oa(X,_.RP(X));else if(_.q("log_repeated_ytcsi_ticks"))for(f=_.N(V[X]),E=f.next();!E.done;E=f.next())E=E.value,_.Oa(X.slice(1),E);X={};V=!1;U=_.N(U);for(H=U.next();!H.done;H=U.next())V=H.value,_.a3(w,V),_.a3(X,V),V=!0;V&&_.t1(X)}_.TyM(!0);X=_.zO("TIMING_ACTION");_.Aq("ytglobal.timingready_")&&X&&_.Nfe()&&_.GVr()&&_.iPG()})()};
hjg=function(Y,b){return Array.prototype.reduce.call(Y,b,{duration:0})};
sbt={'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 QbX={};QbX.YtVisibilityRootBehavior=[_.LJ8.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.ua(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.zO("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var Y=_.zO("INNERTUBE_CLIENT_NAME")!=="WEB";_.q("kevlar_use_vimio_behavior")&&Y&&_.RKt()}}];_.BJ={};_.BJ.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(Y){Y.detail.contextProvider=this;Y.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
QbX.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.j9();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(Y){var b=this;this.pageCount+=1;_.q("kevlar_use_vimio_behavior")&&(_.zO("INNERTUBE_CLIENT_NAME")==="WEB"?_.Lb.addJob(function(){b.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(Y)},
loadPage_:function(Y){this.data=Y},
ytPageBehaviorActiveObserver_:function(Y){var b=this;_.q("kevlar_use_vimio_behavior")&&(Y?_.zO("INNERTUBE_CLIENT_NAME")==="WEB"?_.Lb.addJob(function(){b.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(Y){if(!this.setScrollTopJobId_){var b=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){b.setScrollTopJobId_=0;var w=_.fH().resolve(_.HQ(_.dn));w&&_.Y1(w);this.getPageScrollingElement().scrollTop=Y}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.pj(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var oAg;var vJ=function(){var Y=_.F.apply(this,arguments)||this;Y.playerListenerConfig=null;Y.actionMap={"yt-show-watch-page-survey":"openSurvey"};return Y};
_.P(vJ,_.F);_.g=vJ.prototype;_.g.dataChanged=function(){var Y=this,b=_.V4();b&&b.getPlayerPromise().then(function(V){Y.maybeRemovePlayerListeners(V)});
var w=this.data&&this.data.survey;w&&((w=(w=w.singleOptionSurveyRenderer||w.checkboxSurveyRenderer||w.multiStageSurveyRenderer)&&w.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(b,w):this.openSurvey())};
_.g.triggerWatchPageSurvey=function(Y,b){var w=this,V,H,f,E,U,X,I,k,l;return _.c(function(x){if(x.nextAddress==1)return Y?_.D(x,Y.getPlayerPromise(),2):x.return();w.player=x.yieldResult;if(!w.player)return x.return();V={};H=_.N(b);for(f=H.next();!f.done;f=H.next())E=f.value,U=_.N(w.createEventListenerPair(E)),X=U.next().value,I=U.next().value,k=X,l=I,k&&l&&(V[k]=l,w.ytPlayerListenerBehavior.listenToPlayerEvent(w.player,k,l));w.playerListenerConfig=V;_.om(x)})};
_.g.createEventListenerPair=function(Y){var b=Y.playbackEventTrigger;return b?this.handlePlaybackTrigger(b):(Y=Y.watchTimeTrigger)?this.handleWatchTimeTrigger(Y):[void 0,void 0]};
_.g.handleWatchTimeTrigger=function(Y){var b=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var w=Y.videoWatchFraction,V=Y.watchTimeSec;return V&&w?["onVideoProgress",function(){b.player&&b.isWatchTimeConditionMet(b.player,w,V)&&b.showSurvey()}]:[void 0,
void 0]};
_.g.isWatchTimeConditionMet=function(Y,b,w){var V=Y.getProgressState(),H=V.current-this.lastKnownPlaybackPosition;H<5&&(this.accumulatedMediaTime+=H);this.lastKnownPlaybackPosition=V.current;V=Math.round(this.accumulatedMediaTime/V.duration*1E3)/1E3;return Y.getPresentingPlayerType&&Y.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>w||V>b)};
_.g.handlePlaybackTrigger=function(Y){var b=this;Y=Y.playbackEvent;if(Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var w="onStateChange";var V=function(H){H===0&&b.showSurvey()}}else Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(w="onVideoProgress",V=function(H){b.player&&b.player.getPresentingPlayerType&&b.player.getPresentingPlayerType()===1&&H&&b.showSurvey()}):Y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(w="onAdEnd",V=this.showSurvey);
return[w,V]};
_.g.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.g.openSurvey=function(){var Y=this,b=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.RyO(!!b));_.Lb.addJob(function(){Y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:b}})},0,0)};
_.g.maybeRemovePlayerListeners=function(Y){if(this.playerListenerConfig){for(var b=_.N(Object.keys(this.playerListenerConfig)),w=b.next();!w.done;w=b.next())w=w.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(Y,w,this.playerListenerConfig[w]);this.playerListenerConfig=null}};
vJ.prototype.dataChanged=vJ.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],vJ.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],vJ.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],vJ.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],vJ.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vJ.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],vJ.prototype,"playerListenerConfig",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],vJ.prototype,"lastKnownPlaybackPosition",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],vJ.prototype,"accumulatedMediaTime",void 0);_.z([_.R(),_.K("design:type",Object)],vJ.prototype,"player",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vJ.prototype,"dataChanged",null);_.z([_.S({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],vJ);
_.a(vJ,"ytd-survey-trigger-renderer",function(){if(oAg!==void 0)return oAg;var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-trigger-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return oAg=Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Nu7=new _.A("promotedSparklesWebRenderer");var EeO=new _.A("relatedChipCommand");var cbI;var UeN;var l_=function(){return _.F.apply(this,arguments)||this};
_.P(l_,_.F);l_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],l_.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],l_);
_.a(l_,"ytd-compact-tvfilm-entry-point-renderer",function(){if(UeN!==void 0)return UeN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-tvfilm-entry-point-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-compact-tvfilm-entry-point-renderer"><span id="title" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.title)]]</span><span id="subtitle" class="style-scope ytd-compact-tvfilm-entry-point-renderer">[[getSimpleString(data.subtitle)]]</span></div><div id="action-button" class="style-scope ytd-compact-tvfilm-entry-point-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return UeN=Y},{mode:1});var XSb;var Det;var meX;var h3=function(){return _.F.apply(this,arguments)||this};
_.P(h3,_.F);h3.prototype.ready=function(){this.initializeDefs()};
h3.prototype.initializeDefs=function(){var Y=this.meta.byKey("yt-icons"),b=_.E6(Y).querySelector("#star"),w=_.E6(Y).querySelector("#star_half");Y=_.E6(Y).querySelector("#star_border");b&&this.defs.appendChild(b.cloneNode(!0));w&&this.defs.appendChild(w.cloneNode(!0));Y&&this.defs.appendChild(Y.cloneNode(!0))};
h3.prototype.percentChanged=function(){for(var Y=this.rating;Y.firstChild;)Y.removeChild(Y.firstChild);var b=Math.round(this.percent/10);Y=Math.floor(b/2);b%=2;var w=5-Y-b;this.appendStars("star",Y,0);this.appendStars("star_half",b,Y);this.appendStars("star_border",w,Y+b)};
h3.prototype.appendStars=function(Y,b,w){for(var V=0;V<b;V++){var H=(18+this.spacing)*(V+w),f=document.createElementNS("http://www.w3.org/2000/svg","use");_.d6t(f,"#"+Y);f.setAttribute("x",""+H);f.setAttribute("y","0");this.rating.appendChild(f)}};
h3.prototype.percentChanged=h3.prototype.percentChanged;_.z([_.xZ("#defs"),_.K("design:type",HTMLElement)],h3.prototype,"defs",void 0);_.z([_.xZ("#rating"),_.K("design:type",HTMLElement)],h3.prototype,"rating",void 0);_.z([_.R(),_.K("design:type",Number)],h3.prototype,"percent",void 0);_.z([_.R({value:6}),_.K("design:type",Number)],h3.prototype,"spacing",void 0);_.z([_.R({value:_.ny.create("iron-meta",{type:"iconset"})}),_.K("design:type",_.tx)],h3.prototype,"meta",void 0);
_.z([_.lr("percent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h3.prototype,"percentChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-ratings"})],h3);
_.a(h3,"ytd-ratings",function(){if(meX!==void 0)return meX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ratings--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<svg id="svg" width="90px" height="18px" viewBox="0 0 120 24" class="style-scope ytd-ratings">\n  <defs id="defs" class="style-scope ytd-ratings">\n  </defs>\n  <g id="rating" class="style-scope ytd-ratings"></g>\n</svg>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return meX=Y},{mode:1});var xl=function(){return _.F.apply(this,arguments)||this};
_.P(xl,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xl.prototype,"data",void 0);_.z([_.S({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],xl);
_.a(xl,"ytd-offer-review-renderer",function(){if(Det!==void 0)return Det;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offer-review-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-ratings percent="[[data.percent]]" class="style-scope ytd-offer-review-renderer"></ytd-ratings>\n<yt-formatted-string text="[[data.score]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n-\n<yt-formatted-string link-inherit-color="" text="[[data.source]]" class="style-scope ytd-offer-review-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Det=Y},{mode:1});var qU=function(){var Y=_.F.apply(this,arguments)||this;Y.badges=[{textBadge:{label:_.Gx("CC")}}];return Y};
_.P(qU,_.F);_.g=qU.prototype;_.g.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.g.dataChanged=function(){var Y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(Y&&Y.commandMetadata&&_.v(Y.commandMetadata,_.RU)&&_.v(Y.commandMetadata,_.RU).fireAutomatically)_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}});else{var b;Y&&((b=_.v(Y,_.RU))==null?0:b.fireAutomatically)&&_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})}};
_.g.isEmptyContent=function(Y){return this.isStorefrontEntryPointEmpty(Y)&&this.shouldHideOfferModule(Y)};
_.g.isStorefrontEntryPointEmpty=function(Y){return!Y||!Y.storefrontEntryPoint};
_.g.shouldHideOfferModule=function(Y){return!!Y.hideVideoDetails};
_.g.isOfferModuleNavigationInactive=function(Y){return!Y.navigationEndpoint&&!Y.serviceEndpoint};
_.g.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
qU.prototype.dataChanged=qU.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qU.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.K("design:type",Boolean)],qU.prototype,"hidden",void 0);
_.z([_.R(),_.K("design:type",Object)],qU.prototype,"badges",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qU.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],qU);
_.a(qU,"ytd-movie-offer-module-renderer",function(){if(XSb!==void 0)return XSb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-movie-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module-container" hidden="[[shouldHideOfferModule(data)]]" class="style-scope ytd-movie-offer-module-renderer">\n  <div id="header" class="style-scope ytd-movie-offer-module-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.title]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" hidden="[[!data.offerButton.buttonRenderer]]" class="style-scope ytd-movie-offer-module-renderer">\n    </ytd-button-renderer>\n    <yt-formatted-string id="manage-purchase-text" link-inherit-color="" text="[[data.managePurchasesText]]" class="style-scope ytd-movie-offer-module-renderer">\n    </yt-formatted-string>\n  </div>\n  <a aria-label$="[[getSimpleString(data.title)]]" id="wide-clickable-area" class="yt-simple-endpoint flexed style-scope ytd-movie-offer-module-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" inactive$="[[isOfferModuleNavigationInactive(data)]]" on-tap="maybeNavigateWithServiceEndpoint">\n    <yt-img-shadow id="img" thumbnail="[[data.thumbnail]]" class="style-scope ytd-movie-offer-module-renderer"></yt-img-shadow>\n    <div id="info" class="style-scope ytd-movie-offer-module-renderer">\n      <template is="dom-if" if="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="headline" text="[[data.headline]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-if" if="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer">\n        <yt-formatted-string id="details" split-lines="true" text="[[data.details]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>\n      </template>\n      <template is="dom-repeat" items="[[data.reviews]]" as="review" class="style-scope ytd-movie-offer-module-renderer">\n        <ytd-offer-review-renderer data="[[review.offerReviewRenderer]]" class="style-scope ytd-movie-offer-module-renderer"></ytd-offer-review-renderer>\n      </template>\n      <template is="dom-repeat" items="[[data.attributes]]" as="attribute" class="style-scope ytd-movie-offer-module-renderer">\n        <p class="style-scope ytd-movie-offer-module-renderer">\n          <template is="dom-if" if="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer">\n            <yt-formatted-string text="[[attribute.name]]" class="style-scope ytd-movie-offer-module-renderer"></yt-formatted-string>:\n          </template>\n          <yt-formatted-string ellipsis-truncate="" link-inherit-color="" text="[[attribute.value]]" title="[[getSimpleString(attribute.value)]]" class="style-scope ytd-movie-offer-module-renderer">\n          </yt-formatted-string>\n        </p>\n      </template>\n     <ytd-badge-supported-renderer badges="[[badges]]" hidden="[[!data.showCc]]" class="style-scope ytd-movie-offer-module-renderer">\n     </ytd-badge-supported-renderer>\n    </div>\n  </a>\n</div>\n<div id="storefront-entry-point" hidden="[[isStorefrontEntryPointEmpty(data)]]" class="style-scope ytd-movie-offer-module-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return XSb=Y},{mode:1});var oeg;var sR=function(){return _.F.apply(this,arguments)||this};
_.P(sR,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],sR.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sR.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],sR);
_.a(sR,"ytd-media-masthead-renderer",function(){if(oeg!==void 0)return oeg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-masthead-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-media-masthead-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n      <div id="image" class="style-scope ytd-media-masthead-renderer">\n        <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n      </div>\n      <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n        <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n          <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n        </template>\n      </div>\n    </div>\n  </a>\n</template>\n<template is="dom-if" if="[[!data.navigationEndpoint]]" class="style-scope ytd-media-masthead-renderer">\n  <div id="masthead" class="style-scope ytd-media-masthead-renderer">\n    <div id="image" class="style-scope ytd-media-masthead-renderer">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope ytd-media-masthead-renderer"></yt-img-shadow>\n    </div>\n    <div id="metadata" class="style-scope ytd-media-masthead-renderer">\n      <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-media-masthead-renderer"></yt-formatted-string>\n      <template is="dom-repeat" items="[[data.metadataLines]]" as="line" class="style-scope ytd-media-masthead-renderer">\n        <ytd-metadata-line-renderer id="metadata-line" data="[[line.metadataLineRenderer]]" class="style-scope ytd-media-masthead-renderer"></ytd-metadata-line-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return oeg=Y},{mode:1});var In7;_.f_(_.Wat,"course-metadata-view-model",{props:{data:_.gn,isOverlay:_.gn}});var Qf=function(){var Y=_.F.apply(this,arguments)||this;Y.isMetadataVisible=!1;Y.modernPanels=_.q("kevlar_watch_modern_panels");Y.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return Y};
_.P(Qf,_.F);_.g=Qf.prototype;
_.g.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"}}}}};
_.g.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.g.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.g.expanderChanged=function(){var Y;if((Y=this.data)==null?0:Y.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.g.isExpandButtonToggled=function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.expandMetadataButton,_.ns))==null?void 0:b.isToggled};
_.g.onVisibilityButtonClick=function(){var Y;if((Y=this.data)==null?0:Y.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.g.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Qf.prototype.expanderChanged=Qf.prototype.expanderChanged;Qf.prototype.dataChanged=Qf.prototype.dataChanged;Qf.prototype.descriptionChanged=Qf.prototype.descriptionChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n([_.US.YtActionHandlerBehavior]),_.K("design:type",Object)],Qf.prototype,"actionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Qf.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Qf.prototype,"isMetadataVisible",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Qf.prototype,"modernPanels",void 0);_.z([_.xZ("#expander"),_.K("design:type",Object)],Qf.prototype,"expander",void 0);_.z([_.lr("data.description"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qf.prototype,"descriptionChanged",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qf.prototype,"dataChanged",null);_.z([_.lr("isMetadataVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Qf.prototype,"expanderChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Qf);
_.a(Qf,"ytd-tvfilm-offer-module-renderer",function(){if(In7!==void 0)return In7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="header" hidden="[[!data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="title" text="[[data.headerTitle]]" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-formatted-string>\n  <div id="expand-metadata-button" on-click="onVisibilityButtonClick" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n</h2>\n\n<div id="masthead" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<div id="action-buttons" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n<ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="3" class="style-scope ytd-tvfilm-offer-module-renderer">\n  <yt-formatted-string id="description" slot="content" disable-upgrade$="[[!data.description]]" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-tvfilm-offer-module-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-tvfilm-offer-module-renderer" slot="more-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="expand-more-icon" icon="yt-icons:expand-more" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-tvfilm-offer-module-renderer" slot="less-button">\n    <span class="style-scope ytd-tvfilm-offer-module-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="expand-less-icon" icon="yt-icons:expand-less" class="style-scope ytd-tvfilm-offer-module-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n\n<div id="expanded-metadata" hidden="[[!isMetadataVisible]]" class="style-scope ytd-tvfilm-offer-module-renderer"></div>\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return In7=Y},{mode:2});var kqR;var vi=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return Y};
_.P(vi,_.F);vi.prototype.dataChanged=function(){this.hostElement.hidden=!1};
vi.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
vi.prototype.onThumbnailTap=function(Y){this.data&&this.data.serviceEndpoint&&(_.fH().resolve(_.Nn).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),Y.stopPropagation())};
vi.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
vi.prototype.dataChanged=vi.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vi.prototype,"rendererBehaviors",void 0);_.z([_.n([_.US.YtActionHandlerBehavior]),_.K("design:type",Object)],vi.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vi.prototype,"data",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vi.prototype,"dataChanged",null);_.z([_.S({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],vi);
_.a(vi,"ytd-unlimited-offer-module-renderer",function(){if(kqR!==void 0)return kqR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unlimited-offer-module-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-checkout-offers" class="style-scope ytd-unlimited-offer-module-renderer">\n  <div id="header" class="style-scope ytd-unlimited-offer-module-renderer">\n    <div id="title-section" class="style-scope ytd-unlimited-offer-module-renderer">\n      <yt-formatted-string id="main-title" text="[[data.title]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n      <yt-formatted-string id="sub-title" text="[[data.subtitle]]" class="style-scope ytd-unlimited-offer-module-renderer"></yt-formatted-string>\n    </div>\n    <ytd-button-renderer data="[[data.offerButton.buttonRenderer]]" class="style-scope ytd-unlimited-offer-module-renderer">\n    </ytd-button-renderer>\n  </div>\n  <ytd-thumbnail id="thumbnail" data="[[data]]" hidden$="[[!data.thumbnail]]" width="402" on-click="onThumbnailTap" class="style-scope ytd-unlimited-offer-module-renderer">\n  </ytd-thumbnail>\n  <div id="storefront-entry-point" hidden="[[!data.storefrontEntryPoint]]" class="style-scope ytd-unlimited-offer-module-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return kqR=Y},{mode:1});var lng;var h2d;var Pi=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return Y};
_.P(Pi,_.F);Pi.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Pi.prototype.handleRelatedChipCommand=function(Y){Y=_.v(Y,EeO);var b=Y.contents;b?_.De(this.hostElement,"yt-item-section-replace-action",[b,Y.targetSectionIdentifier]):_.De(this.hostElement,"yt-item-section-continuation-action",[Y.continuationData,Y.targetSectionIdentifier])};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Pi.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Pi.prototype,"data",void 0);_.z([_.FM({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Pi);
_.a(Pi,"yt-related-chip-cloud-renderer",function(){if(h2d===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-related-chip-cloud-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_related_chip_cloud_renderer.yt.related.chip.cloud.renderer.css.js--\x3e<div id="content" class="style-scope yt-related-chip-cloud-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;lng===void 0&&(lng=document.createElement("template"));var V=lng;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);h2d=Y}Y=h2d;return Y},{mode:2});var ZG=function(){var Y=_.F.apply(this,arguments)||this;Y.isTwoColumns=!0;Y.hideOfferModules=!1;Y.watchFeedBigThumbs=_.q("kevlar_watch_feed_big_thumbs");Y.watchNextGridHideChips=_.q("kevlar_watch_grid_hide_chips");Y.eligibleToSwitchToGrid=_.q("web_watch_eligible_to_switch_to_grid");Y.disableShortsShelfHeightOverride=_.q("web_shorts_wn_shelf_ratio_tuning");Y.isWatchNextGrid=!1;Y.reuseComponents=!_.q("kevlar_watch_grid");Y.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return Y};
_.P(ZG,_.F);_.g=ZG.prototype;
_.g.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:!_.q("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}}};
_.g.getItemsPath=function(){return"data.results"};
_.g.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.g.created=function(){this.ytLazyListBehavior.initialCount=1};
_.g.ready=function(){_.m_(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%"})};
_.g.resultsChanged=function(){if(this.data&&this.data.results){for(var Y=this.data.results,b=null,w=null,V=0;V<Y.length;V++)Y[V].relatedChipCloudRenderer?b=Y[V].relatedChipCloudRenderer:Y[V].itemSectionRenderer&&(w=Y[V].itemSectionRenderer);if(b&&w)for(this.set("data.continuations",[]),Y=_.v(b.content,_.Uwj).chips,b=0;b<Y.length;b++)if(V=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",Y[b]),V.loadCached||!V.contents){V.contents=w.contents;break}}};
_.g.dataChanged=function(){var Y=this,b;if((b=this.data)!=null&&b.results&&this.hasAllowedInstreamAd(this.playerData)){if(b=this.data.results.filter(function(U){return!!U.promotedSparklesWebRenderer})){for(var w=0;w<b.length;w++){var V=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",b[w]);
if(V)for(var H=0;H<V.length;H++)V[H]&&V[H].baseUrl&&_.yn(V[H].baseUrl)}this.set("data.results",this.data.results.filter(function(U){return!U.promotedSparklesWebRenderer}))}if(b=this.data.results.filter(function(U){return!!Y.getSparklesAd(U)})){b=_.N(b);
for(H=b.next();!H.done;H=b.next())if(V=w=void 0,H=(w=this.getSparklesAd(H.value))==null?void 0:(V=w.errorCommand)==null?void 0:V.loggingUrls)for(w=_.N(H),V=w.next();!V.done;V=w.next())(V=V.value)&&V.baseUrl&&_.yn(V.baseUrl);var f,E;this.set("data.results",(f=this.data)==null?void 0:(E=f.results)==null?void 0:E.filter(function(U){return!U.adSlotRenderer}))}}};
_.g.getSparklesAd=function(Y){var b,w;Y=_.v((b=Y.adSlotRenderer)==null?void 0:(w=b.fulfillmentContent)==null?void 0:w.fulfilledLayout,_.pKU);return _.v(Y==null?void 0:Y.renderingContent,Nu7)};
_.g.hasAllowedInstreamAd=function(Y){Y=this.get("adPlacements",Y)||[];for(var b=0;b<Y.length;b++){var w=this.get("adPlacementRenderer.config.adPlacementConfig",Y[b]);if(w&&w.suppressDisplayAd)return!0}return!1};
_.g.computeHideUnlimitedOfferModule=function(Y,b){return Y&&Y.offerModule&&b&&Y.offerModule.unlimitedOfferModuleRenderer&&Y.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(b)?!0:!1};
_.g.hideUnlimitedOfferModuleChanged=function(){var Y=_.E6(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");Y&&(Y.hidden=this.hideUnlimitedOfferModule)};
_.g.updateLockupContainerTypes=function(Y){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||b.forEach(function(w){w.containerType=Y})}};
_.g.computeHideTvfilmOfferModule=function(Y,b){var w,V;return!!((Y==null?0:(w=Y.offerModule)==null?0:(V=w.tvfilmOfferModuleRenderer)==null?0:V.clientShouldSuppressIfCompanionAdDisplayed)&&b&&this.hasCompanionAds(b))};
_.g.hideTvfilmOfferModuleChanged=function(){var Y=_.E6(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");Y&&(Y.hidden=this.hideTvfilmOfferModule)};
_.g.hasCompanionAds=function(Y){Y=this.get("adPlacements",Y)||[];for(var b=0;b<Y.length;b++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",Y[b]))return!0;var w=void 0,V=void 0,H=void 0;if(!_.q("web_watch_top_banner_companion_check_killswitch")&&((w=Y[b])==null?0:(V=w.adPlacementRenderer)==null?0:(H=V.renderer)==null?0:H.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.g.hasSuppressedResults=function(Y){return Y==null?!0:Y.filter(function(b){return!b.continuationItemRenderer&&!b.compactPromotedVideoRenderer&&!b.promotedSparklesWebRenderer}).length===0};
_.g.computeShowButton=function(Y,b){return this.isWatchNextGrid?Y:Y||this.hasSuppressedResults(b)};
_.g.showButtonChanged=function(){if(this.isWatchNextGrid){var Y=_.E6(this.hostElement).querySelector("ytd-rich-grid-renderer");Y&&this.showButton!==null&&(Y.continuationShowButton=this.showButton)}else{Y=_.E6(this.hostElement).querySelector("yt-next-continuation");var b=_.E6(this.hostElement).querySelector("ytd-continuation-item-renderer"),w=_.E6(this.hostElement).querySelector("ytd-item-section-renderer");Y&&(Y.showButton=this.showButton);b&&(b.showButton=this.showButton);w&&(w.continuationShowButton=
this.showButton)}};
_.g.continuationTap=function(Y){var b;if(((b=this.data)==null?void 0:b.continuations)!=null&&Y.target.tagName==="TP-YT-PAPER-BUTTON")for(Y=this.data.continuations,b=0;b<Y.length;b++)Y[b].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(Y[b].nextContinuationData||{})};
_.g.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("shown-items-changed",this.shownItems))};
_.up.Object.defineProperties(ZG.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.shownItems)==null||!Y.some(function(b){return!!b.lockupViewModel||b.compactVideoRenderer}))}}});
ZG.prototype.shownItemsChangedForBinding=ZG.prototype.shownItemsChangedForBinding;ZG.prototype.showButtonChanged=ZG.prototype.showButtonChanged;ZG.prototype.hideTvfilmOfferModuleChanged=ZG.prototype.hideTvfilmOfferModuleChanged;ZG.prototype.updateLockupContainerTypes=ZG.prototype.updateLockupContainerTypes;ZG.prototype.hideUnlimitedOfferModuleChanged=ZG.prototype.hideUnlimitedOfferModuleChanged;ZG.prototype.dataChanged=ZG.prototype.dataChanged;ZG.prototype.resultsChanged=ZG.prototype.resultsChanged;
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],ZG.prototype,"ytLazyListBehavior",void 0);_.z([_.n(_.Cc.YtNextContinuationBehavior),_.K("design:type",Object)],ZG.prototype,"ytNextContinuationBehavior",void 0);
_.z([_.n(_.Af),_.K("design:type",Object)],ZG.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],ZG.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ZG.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],ZG.prototype,"playerData",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],ZG.prototype,"autoFill",void 0);_.z([_.R({value:60}),_.K("design:type",Number)],ZG.prototype,"targetFramerate",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ZG.prototype,"isTwoColumns",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ZG.prototype,"hideOfferModules",void 0);_.z([_.R(),_.K("design:type",Object)],ZG.prototype,"shownItems",void 0);_.z([_.R({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.K("design:type",Boolean)],ZG.prototype,"hideUnlimitedOfferModule",void 0);
_.z([_.R({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.K("design:type",Boolean)],ZG.prototype,"hideTvfilmOfferModule",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ZG.prototype,"watchFeedBigThumbs",void 0);_.z([_.R(),_.K("design:type",Object)],ZG.prototype,"watchNextGridHideChips",void 0);_.z([_.R(),_.K("design:type",Object)],ZG.prototype,"eligibleToSwitchToGrid",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ZG.prototype,"disableShortsShelfHeightOverride",void 0);_.z([_.R({selector:_.Ks,reflectToAttribute:!0}),_.K("design:type",Object)],ZG.prototype,"isGridViewEnabled",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],ZG.prototype,"showMoreButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ZG.prototype,"isWatchNextGrid",void 0);
_.z([_.R({computed:"computeShowButton(showMoreButton, data.results)"}),_.K("design:type",Boolean)],ZG.prototype,"showButton",void 0);_.z([_.vX("data.results.*"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZG.prototype,"resultsChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZG.prototype,"dataChanged",null);
_.z([_.lr("hideUnlimitedOfferModule"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZG.prototype,"hideUnlimitedOfferModuleChanged",null);_.z([_.t("isGridViewEnabled","containsLockups","data"),_.R({reflectToAttribute:!0}),_.K("design:type",Number),_.K("design:paramtypes",[])],ZG.prototype,"lockupContainerType",null);
_.z([_.lr("lockupContainerType","data"),_.K("design:type",Function),_.K("design:paramtypes",[Number]),_.K("design:returntype")],ZG.prototype,"updateLockupContainerTypes",null);_.z([_.lr("hideTvfilmOfferModule"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZG.prototype,"hideTvfilmOfferModuleChanged",null);_.z([_.lr("showButton"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZG.prototype,"showButtonChanged",null);
_.z([_.lr("shownItems"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ZG.prototype,"shownItemsChangedForBinding",null);_.z([_.t("shownItems"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ZG.prototype,"containsLockups",null);
_.a(ZG,"ytd-watch-next-secondary-results-renderer",function(){if(cbI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);cbI=Y}Y=cbI;return Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.zaO={};
_.zaO.YtdWatchBehavior=[_.u.YtRendererBehavior,_.y3.YtPlayerListenerBehavior,_.cz.YtRendererstamperBehavior,_.US.YtActionHandlerBehavior,_.BJ.YtPageBehavior,_.sS.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 _.Wf("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.q("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.q("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.Wf("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 _.q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.q("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.cQ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cQ("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!_.q("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.q("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 _.q("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.q("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.q("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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 _.q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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 _.q("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var Y={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",
mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.tN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.tN(["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"||_.q("swa_prov_panels_ks")?Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(Y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},Y.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return Y},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var Y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){Y.showMetadataPlaceholder_()},
function(){_.q("web_watch_dont_clear_comments")||Y.clearComments_()},
function(){Y.clearPlayerAds_()},
function(){Y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.q("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Bgt(function(){return _.wK(Y)},this.hostElement);
this.pageDisposeJobs.push(function(){Y.youThereManager_.reset()});
_.q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){Y.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.o$;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.q("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));_.q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Io(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(Y){Y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:Y}),Y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(Y){_.q("kevlar_watch_flexy_theater_manager")&&(this.theater=Y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(Y){!_.q("kevlar_watch_while_v2")&&!_.q("web_watch_pip")||Y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(Y){this.active!==void 0&&(this.fullscreen=Y,_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(Y){this.active!==void 0&&(_.Ua(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(Y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(Y){this.initCsi_();this.updatePageData_(Y)},
updatePageData_:function(Y){var b=this;if(Y)if(this.data===Y){this.onPageLoadWithSameData_();var w;(w=this.watchController)==null||w.setWatchNextResponse(this.data)}else this.data=Y;this.playlist&&_.Fx({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.S1("nw");this.loading=!1;_.MY(_.Lb,function(){b.initDclkstatus_();var V,H=((V=b.player)==null?void 0:V.getVideoData().cpn)||"";_.DUO(function(f,E){_.gu7(f,E,H)})})},
onPageLoadWithSameData_:function(){_.q("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var Y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!Y);this.set("loadingData.playlistLoading",Y&&Y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),Y=this.watchNextSkeletonEl_.firstElementChild;Y;)Y.classList.remove("hidden"),Y=Y.nextElementSibling;if(_.q("kevlar_watch_frame0_loading_state")){var b,w,V;Y=(b=this.loadingData)==null?void 0:(w=b.endpoint)==null?void 0:(V=w.watchEndpoint)==null?void 0:V.videoId;var H;Y&&(H="https://i.ytimg.com/vi/"+Y+"/frame0.jpg");_.E6(this.hostElement).querySelector("#player").style.backgroundImage=H?"url("+H+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var Y=_.E6(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&Y&&(Y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,w;(w=(b=this.watchMetadata).updateSentimentBarWidth)==
null||w.call(b);var V,H;(H=(V=this.watchMetadata).resize)==null||H.call(V)}_.q("kevlar_watch_frame0_loading_state")&&(_.E6(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(Y){var b=_.E6(this.hostElement).querySelector(Y);b?_.Ea(b,!1):_.Sk(new _.BQ("Overscroll monitor not found for component: ",Y))},
removeSplitScrollMouseTrap:function(Y){var b=_.E6(this.hostElement).querySelector(Y);b?_.c0(b):_.Sk(new _.BQ("Disposal component for  overscroll monitoring not found: ",Y))},
onLoadingChanged_:function(Y){Y?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(Y){var b=this;Y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Lb.addLowPriorityJob(function(){b.onWindowResized_(_.Z8(!0))})},
updateTheaterModeState_:function(Y){if(!_.q("kevlar_watch_flexy_theater_manager")){Y=Y||this.fullWindowMode_;if(this.theater!==void 0||Y)this.theater=Y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();Y&&_.veF()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var Y=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.q("external_fullscreen")&&this.fullscreen&&(Y=!0);Y=Y?_.E6(this.hostElement).querySelector("#player-full-bleed-container"):_.E6(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),w=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip");b.parentElement!==Y&&(w&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.wK(this).appendTo(Y,
b),Y.appendChild(_.E6(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var Y=this;return _.c(function(b){if(b.nextAddress==1)return _.D(b,_.fH().resolve(_.Ck).deactivate(),2);Y.updatePlayerLocation();_.om(b)})},
updateCinematicsLocation:function(){var Y=this.getElement("CINEMATICS");if(Y){var b=this.getCinematicsLocationContainer();Y.parentElement!==b&&b.appendChild(Y);var w;(w=this.watchController)==null||w.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E6(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E6(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(Y,b){var w=document.documentElement.hasAttribute("dark"),V=w&&_.q("web_cinematic_theater_mode"),H=w&&_.q("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return Y&&V||b&&H||(b||Y)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var Y=this,b;(b=this.watchController)==null||b.setWatchNextResponse(this.data);_.q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.fH().resolve(_.zF).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,_.q("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Lb.addLowPriorityJob(function(){_.De(Y.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.q("web_watch_start_chat_in_theater_mode")){var w,V,H;if((w=this.data)==null?0:(V=w.contents)==null?0:(H=V.twoColumnWatchNextResults)==null?0:H.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var f,E;((f=this.data)==null?0:(E=f.contents)==null?0:E.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(Y){var b;(b=this.watchController)==null||b.setPlayerResponse(this.playerData);Y&&Y.playabilityStatus&&(b=this.isVideoPlayable_(Y.playabilityStatus,this.getPlayerOverlays_(this.data)),Y=this.isLiveStreamOffline_(Y.playabilityStatus),b&&!Y||_.TC(this,function(){_.S1("pbu")}));
this.setPlayerAds_();_.De(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(Y,b){if((_.q("kevlar_watch_while_v2")||_.q("web_watch_pip"))&&this.playerData&&b)return this.playerData.videoDetails},
watchPageActiveChanged_:function(Y){_.u3().dispatch(_.jtF(this.active));Y?this.activate_():this.deactivate_()},
attached:function(){var Y=this;this.watchController=new _.SA(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.wK(this);_.q("kevlar_disable_prepare_player")||
b.preparePlayer();_.q("kevlar_watch_flexy_playlist_manager")||_.fH().resolve(_.zF).setPlayer(b);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.e$()+"px"};this.is==="ytd-watch-grid"&&(b["--ytd-watch-flexy-sidebar-width"]=_.ETN+"px",b["--ytd-watch-grid-horizontal-page-margins"]=_.Fi+"px",b["--ytd-watch-grid-columns-top-margins"]=_.gT7+"px",b["--ytd-watch-grid-min-player-height-medium"]="360px");!_.cQ("kv_pl_mx_sz_ks")&&
_.cQ("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.c5I+"px");_.cQ("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.UtR+"px");this.safeUpdateStyles(b);_.q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.cW(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return Y.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.E6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var Y=_.e$(),b=_.L6+Y,w=b;this.fixedPanels&&(b+=_.ETN);var V=657+Y;Y=1327+Y;_.E6(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.E6(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(V+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(Y+"px)");_.E6(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(Y+"px)");
_.E6(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+w+"px)"},
calculateCurrentPlayerSize_:function(){var Y=_.E6(this.hostElement).querySelector("#miniplayer-bar").firstChild,b=this.squeezeback&&!_.q("web_watch_squeezeback_player_size_killswitch");return Y&&Y.active||this.theater||_.q("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||b||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.mE(NaN,NaN):_.WF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.WF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ua(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var Y=this;this.onWindowResized_(_.Z8());_.q("browse_skeleton_removal_on_watch_killswitch")||_.Wf("IS_SHELL_LOAD")&&_.mBt();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.wK(this);b.addEventListener("yt-player-updated",_.Io(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(w){Y.playerApiReady_(w)});
_.q("kevlar_watch_flexy_playlist_manager")||(b=_.fH().resolve(_.zF),_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.Io(this,this.onYtNavigate_)),b.setPlaylistComponent(_.E6(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.Io(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Lb.addLowPriorityJob(function(){_.Ua(Y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.wK(this).removeEventListener("yt-player-updated",_.Io(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.q("kevlar_watch_flexy_playlist_manager")){var Y=_.fH().resolve(_.zF);_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.removeEventListener("yt-navigate",_.Io(this,this.onYtNavigate_));
Y.cancelVideoSkip();Y.removeEventListener("yt-playlist-data-updated",_.Io(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ua(this.hostElement,"yt-autonav-pause-player",!1);Y=_.fz();_.q("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.N8(Y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(Y){this.player&&this.player.updateVideoData({rvs:Y.rvs})},
getPageContents:function(Y){return Y&&Y.contents&&Y.contents.twoColumnWatchNextResults&&Y.contents.twoColumnWatchNextResults.results&&Y.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(Y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y)},
onRetrieveLocation_:function(Y,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);Y.stopPropagation()},
onSubscriptionChanged_:function(Y,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ZJ("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E6(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E6(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(Y){this.player=Y;this.setPlayerState(Y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.q("kevlar_unified_player")||_.q("kevlar_player_new_bootstrap_adoption"))&&_.uJ()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(Y,b){b=b===void 0?!0:b;_.fz()&&_.q("external_fullscreen")&&_.N8(document.documentElement);this.theaterRequested_=Y;b&&_.Qh("wide",Y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Xx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ua(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(Y){_.aY(Y,typeof this.player),this.player&&_.aY(Y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var Y;((Y=this.player)==null?0:Y.isFullscreen())?this.player.toggleFullscreen():_.Xx(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(Y,b){return this.loading?b:!!Object.keys(Y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(Y){if(Y){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())b=b.value,b.youThereRenderer&&_.eaX(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(Y){return Y||{}},
userEngagementConfigDataChanged_:function(Y){if(Y)if(Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.fB()<Y.lowEngagementThresholdMs||_.Rad(b,!0)}else Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Xx(this.hostElement,"yt-autonav-pause-user-engagement",[Y])},
isPlayerUnavailable_:function(Y,b,w){return!!Y&&!this.isVideoPlayable_(Y,w)&&!b},
getPlayerOverlays_:function(Y){return(Y==null?void 0:Y.playerOverlays)||null},
isVideoPlayable_:function(Y,b){if(!Y)return!1;var w=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",V=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",Y)||this.get("errorScreen.ypcTrailerRenderer",Y);Y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",Y);var H;b=b==null?void 0:(H=b.playerOverlayRenderer)==null?void 0:H.gatedActionsOverlayRenderer;return!!w||!!V||!!Y||!!b},
hasWatchNextResponseErrorRenderer:function(Y){var b=this.getPageContents(Y),w,V,H,f,E;return!(Y==null?0:(w=Y.contents)==null?0:(V=w.twoColumnWatchNextResults)==null?0:V.secondaryResults)&&!!((H=b[0])==null?0:(f=H.itemSectionRenderer)==null?0:(E=f.contents[0])==null?0:E.backgroundPromoRenderer)},
isLiveStreamOffline_:function(Y){return Y?Y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(Y,b,w){var V=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),H=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];H=_.q("web_no_skip_video_on_verification_checks")?(Y==null?void 0:Y.status)&&H.includes(Y.status):Y&&Y.status==="AGE_CHECK_REQUIRED";var f=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",Y);f==void 0&&(f=!0);!w||this.isVideoPlayable_(Y,this.getPlayerOverlays_(b))||
V||H||!f||_.fH().resolve(_.zF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.haX()},
onPlayerFeedbackStartRequest_:function(Y){_.Xx(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:Y}])},
onPlayerFeedbackArticleRequest_:function(Y){_.Xx(this.hostElement,"yt-help-dialog-requested",[Y])},
onPlayerYpcContentRequest_:function(){var Y,b,w,V,H,f,E,U,X=((Y=this.data)==null?NaN:(b=Y.contents)==null?NaN:(w=b.twoColumnWatchNextResults)==null?NaN:(V=w.secondaryResults)==null?NaN:(H=V.secondaryResults)==null?NaN:(f=H.offerModule)==null?NaN:(E=f.tvfilmOfferModuleRenderer)==null?NaN:(U=E.actionButtons)==null?NaN:U.length)-1;Y=[".offerButton.buttonRenderer.",".actionButtons."+(X>=0?X:0)+".buttonRenderer."];b=_.N(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(w=b.next();!w.done;w=b.next())for(w=w.value,V=_.N(Y),H=V.next();!H.done;H=V.next())if(H="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+w+H.value,H=this.get(H+"navigationEndpoint",this.data)||this.get(H+"serviceEndpoint",this.data)||this.get(H+"command",this.data)){_.hA(H,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(Y){_.Ua(this.hostElement,"yt-autonav-pause-player",Y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(Y){Y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ua(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(Y)},
setPlayerState:function(Y){_.u3().dispatch(_.jH_(Y))},
onPlayerSubscribe_:function(Y){_.Xx(this.hostElement,"yt-player-subscribe",[Y])},
onPlayerUnsubscribe_:function(Y){_.Xx(this.hostElement,"yt-player-unsubscribe",[Y])},
onPlayerAdYtShowToast_:function(Y){_.Xx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:Y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(Y){if(Y)return Y},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.swatcherooBinaryLayout?this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue:this.isTwoColumns_?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowRichGridContinuationButton:function(){return this.is!=="ytd-watch-grid"?!1:this.commentTeaserEnabled?this.swatcherooBinaryLayout?!1:!this.commentsEntryPointHeaderRenderer:!this.isTwoColumns_},
computeShowExpandableMetadata:function(Y){return!_.q("web_watch_move_summary_to_sd")&&!!Y},
computeWatchMetadataRefresh:function(){return _.q("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.q("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var Y,b,w,V;this.watchNextSecondaryResults=(Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:(w=b.twoColumnWatchNextResults)==null?void 0:(V=w.secondaryResults)==null?void 0:V.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.q("swatcheroo_pbs_load_grid")&&!_.q("swatcheroo_provide_all_data_on_scheduled_job")){_.Lb.cancelJob(this.setRichGridJobId_);var Y,b,w,V,H,f,E;this.setRichGridRendererData((Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:(w=b.twoColumnWatchNextResults)==null?void 0:(V=w.secondaryResults)==null?void 0:(H=V.secondaryResults)==null?void 0:(f=H.results)==null?void 0:(E=f[0])==null?
void 0:E.richGridRenderer)}},
setRichGridRendererData:function(Y){this.richGridRendererData=Y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var Y,b=(Y=this.data)==null?void 0:Y.engagementPanels;if(b==null?0:b.length){Y=null;b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0;if(((V=w.engagementPanelSectionListRenderer)==null?void 0:V.targetId)==="engagement-panel-structured-description"){Y=w;break}}var H,f,E;Y=(H=Y)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:(E=f.content)==null?void 0:E.structuredDescriptionContentRenderer;if(Y==null?0:Y.items){H=
[];f=_.N(Y.items);for(E=f.next();!E.done;E=f.next()){E=E.value;if(!_.q("sd_horizontal_list_show_nav_killswitch")){var U=V=w=b=Y=void 0,X=void 0,I=(Y=E.horizontalCardListRenderer)==null?void 0:(b=Y.header)==null?void 0:(w=b.richListHeaderRenderer)==null?void 0:(V=w.navigationButton)==null?void 0:(U=V.buttonRenderer)==null?void 0:(X=U.command)==null?void 0:X.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(k){return!_.v(k,_.P9X)}))}E.expandableVideoDescriptionBodyRenderer||
E.videoDescriptionHeaderRenderer||H.push(E)}return{items:H}}}},
constructWarning_:function(Y){return{text:_.Gx(Y),type:"WARNING"}},
isPlaShelfEnabled_:function(Y){if((this.get("adPlacements",Y)||[]).length)return!0;Y=this.get("playerAds",Y)||[];return!(!Y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",Y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var Y=this;_.Ua(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.wK(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonVisibility(Y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ua(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var Y=this;this.commentsReady=!1;_.Lb.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.MY(_.Lb,function(){Y.setComments_()},1E3)},
setComments_:function(){if(!_.q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.S1("cmi");_.Lb.cancelJob(this.setCommentsJobId_);var Y=this.getPageContents(this.data);if(Y&&Y.length){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ua(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.S1("cmc")},
doRemoveComments_:function(){this.comments={};_.q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Lb.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Lb.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(Y,b){var w=_.v(b.endpoint,_.TG);w&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||w.videoId!==b.videoId||w.playlistId&&w.playlistId!==b.playlistId||w.index!==void 0&&w.index!==b.index||typeof w.startTimeSeconds!=="number"||(Y.stopPropagation(),this.setScrollTop(0),_.wK(this).getPlayerPromise().then(function(V){var H=w.startTimeSeconds;V.seekTo(H);V.wakeUpControls();H<V.getDuration()&&V.playVideo()})))},
updatePlayerStartTime_:function(){var Y=_.VGb();"t"in Y&&(Y=_.lGX(Y.t),this.player.seekTo(Y,!0))},
updateTitleFromWatchNext:function(Y){Y=this.getPageContents(Y);var b,w;(Y=_.Tx(Y==null?void 0:(b=Y[0])==null?void 0:(w=b.videoPrimaryInfoRenderer)==null?void 0:w.title))&&_.Ua(this.hostElement,"yt-update-title",Y)},
updateTitle_:function(Y){Y=this.get("videoDetails.title",Y)||"";_.Ua(this.hostElement,"yt-update-title",Y)},
syncWithRemoteVideo_:function(Y,b,w){if(this.active&&this.player){var V=this.player.getVideoData();if(V.video_id===w&&(w=V.list,_.q("polymer_enable_mdx_queue")&&w&&w.startsWith("RQ")&&(w=void 0),V.video_id!==Y||w!=b)){var H;_.q("kevlar_player_watch_endpoint_navigation")?H=_.Siu(_.mUX(Y,b)):H=this.buildWatchEndpoint_(Y,b);_.Ua(this.hostElement,"yt-navigate",{endpoint:H,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(Y,b,w){return _.f8(Y,b,w)},
initDclkstatus_:function(){_.kYN()},
attachWatchPageSkeleton_:function(){var Y=document.querySelector("#watch-page-skeleton");if(Y){var b=Y.querySelector("#primary-info"),w=Y.querySelector("#secondary-info"),V=Y.querySelector("#related");b&&_.E6(this.hostElement).querySelector("#info-skeleton").appendChild(b);w&&_.E6(this.hostElement).querySelector("#meta-skeleton").appendChild(w);V&&(_.E6(this.hostElement).querySelector("#related-skeleton").appendChild(V),this.watchNextSkeletonEl_=V);_.qf(Y)}},
handlePlayerUpdated_:function(){_.wK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(Y,b){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof b!=="undefined"){var w=this.watchNextSkeletonEl_.children,V=Y&&Y.indexSplices.length?Y.indexSplices[0].index:0;Y=Math.min(this.watchNextShownItems.length,w.length);b||(V=0,Y=w.length);for(b=V;b<Y;b++)w[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(Y){_.q("external_fullscreen")||_.Xx(this.hostElement,"yt-player-fullscreen",[Y.fullscreen])},
onFullscreenChange_:function(Y){this.fullscreen=Y;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.wK(this);b.getPlayerPromise().then(function(w){w.setFauxFullscreen(!!_.fz())});
this.updateFullBleedElementLocations();Y&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(Y,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(Y){return Y},
computeShouldShowMerchShelf:function(Y,b){return b&&!!Y},
computeResponseHasComments:function(Y){var b,w,V,H,f;return!!(Y==null?0:(b=Y.contents)==null?0:(w=b.twoColumnWatchNextResults)==null?0:(V=w.results)==null?0:(H=V.results)==null?0:(f=H.contents)==null?0:f.some(function(E){var U;return(E==null?void 0:(U=E.itemSectionRenderer)==null?void 0:U.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(Y,b,w,V){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&V?!1:!!Y&&!!Object.keys(Y).length&&!b},
identity:_.a6,onWindowResized_:function(Y){this.windowSize_=Y;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(Y){var b=this;Y&&Y.type!=="dataloaded"&&Y.type!=="dataupdated"||_.wK(this).getPlayerPromise().then(function(w){var V=w.getPlayerState();V!==5&&V!==0&&(w=1/w.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==w&&(b.videoHeightToWidthRatio_=w))})},
schedulePlayerSizeUpdate_:function(Y){var b=this,w=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip"),V=function(){if(b.watchMetadata){var H,f;(f=(H=b.watchMetadata).resize)==null||f.call(H)}_.wK(b).getPlayerPromise().then(function(E){if(_.q("kevlar_set_internal_player_size")){if(!w||!b.isMiniplayerActive()){var U=b.calculateCurrentPlayerSize_();E.setInternalSize(U.width,U.height)}}else E.setSize(NaN,NaN);_.q("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
Y?V():_.ps(_.Lb,V)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(Y){this.set("data.survey",Y.detail)},
onYtShowSurveyCommand_:function(Y){this.set("data.survey",_.v(Y,_.Z6N).survey)},
onDownloadedVideoDeleted:function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1){if(!b.active||(w=b.playerData)==null||!w.offlineState||b.videoId!==Y)return H.return();(V=b.player)==null||V.stopVideo();_.sL().navigatingAwayFromWatchDeletedVideo=!0;_.hA(_.Rvg,b.hostElement);return _.D(H,_.sL().navigationFinishPromise,2)}_.sL().navigatingAwayFromWatchDeletedVideo=!1;_.om(H)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var Y;this.theater?Y=_.rp(.5625*this.windowSize_.width,480,this.windowSize_.height-185):Y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==Y&&(this.watchWhileScrollThreshold_=Y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var Y=_.E6(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&Y){var b=this.windowSize_.height>=624,w=this.active?this.getScrollTop():0;!Y.active&&b&&w>=this.watchWhileScrollThreshold_?(Y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):Y.active&&(!b||w<this.watchWhileScrollThreshold_&&!_.fz())&&(Y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var Y=_.E6(this.hostElement).querySelector("#secondary-inner");if(Y){var b=_.E6(this.hostElement).querySelector("#below"),w=_.E6(this.hostElement).querySelector("#secondary"),V=_.E6(this.hostElement).querySelector("#comments");V&&w&&b&&(this.defaultTwoColumnLayout?(Y.appendChild(V),w.appendChild(Y)):(b.appendChild(V),_.dg(b,Y)))}}},
isTwoColumnsChanged_:function(Y,b){if(Y!==!0||b!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(Y=_.E6(this.hostElement).querySelector("#secondary-inner"))){b=_.E6(this.hostElement).querySelector("#below");var w=_.E6(this.hostElement).querySelector("#secondary"),V=_.E6(this.hostElement).querySelector("#comments");V&&w&&b&&(this.isTwoColumns_?(Y.appendChild(V),w.appendChild(Y)):(b.appendChild(V),
_.dg(b,Y)))}}else{Y=!_.q("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);b=_.E6(this.hostElement).querySelector("#panels");var H=_.E6(this.hostElement).querySelector("#alerts");w=_.E6(this.hostElement).querySelector("#playlist");V=_.E6(this.hostElement).querySelector("#related");var f=_.E6(this.hostElement).querySelector("#donation-shelf"),E=_.E6(this.hostElement).querySelector("#comments");this.isTwoColumns_?(H=_.E6(this.hostElement).querySelector("#secondary-inner"),
Y&&(H.appendChild(b),H.appendChild(w)),H.appendChild(f),H.appendChild(V)):(Y&&(_.F1(b,H),_.F1(w,H)),_.F1(f,H),E&&_.F1(V,E));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.q("web_watch_enable_fs_squeezeback_panels")&&_.q("web_watch_theater_chat")){var Y=_.E6(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?(b=_.E6(this.hostElement).querySelector("#columns"),(Y==null?void 0:Y.parentElement)!==b&&b.append(Y),this.fixedPanels=!0):(this.fixedPanels=
!1,b=_.E6(this.hostElement).querySelector("#playlist"),Y&&b?_.Lj(Y,b):_.Sk(new _.BQ("Missing element when updating chat location",{"chatContainer defined":!!Y,"playlist defined":!!b})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(Y,b){return _.q("sw_metadata_vis_toggle_ks")?!0:!!Y||!!b},
computeForceDarkPanelTheme:function(Y){return _.q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&Y:!1},
safeUpdateStyles:function(Y){try{_.m_(this.hostElement,Y)}catch(b){_.Sk(b)}},
videoHeightToWidthRatioChanged_:function(Y,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(Y){this.videoHeightToWidthRatio_=1/Y},
computeIsVerticalVideo_:function(Y){return Y>=1},
computeIsFourThreeToSixteenNineVideo_:function(Y){return Y<=.7501&&Y>=.5624},
computeIsExtraWideVideo_:function(Y){return Y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.wK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.wK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dUt(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(Y){var b=_.l4(Y)||0;_.kc(Y,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var Y=_.l4("yt-fullerscreen-edu-button-click-count")||0,b=_.l4("yt-fullerscreen-edu-button-shown-count")||0,w=_.cQ("external_fullscreen_button_shown_threshold"),V=Y>=_.cQ("external_fullscreen_button_click_threshold")||b>=w;_.wK(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonSubtleModeState(V)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(Y,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.fH().resolve(_.zF).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var Y=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Lb.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Lb.addLowPriorityJob(function(){Y.fullHeightPanelPositionUpdateJobId=0;var b=_.E6(Y.hostElement).querySelector("#secondary"),w=_.E6(Y.hostElement).querySelector("#fixed-secondary");b=b.getBoundingClientRect();var V=b.width;Y.swatcherooSqueezeback&&
(V+=_.Fi);if(Y.swatcherooSqueezeback){var H=_.E6(Y.hostElement).querySelector("#squeezeback-constraining-container");H.style.width=V+"px";H.style.flex="0 0 "+V+"px"}w.style.width=V+"px";w.style.left=b.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var Y=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Lb.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Lb.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;var b;!Y.isTwoColumns_||Y.theater||Y.fullscreen?b=460:b=Y.calculateNormalPlayerSize_().height;var w=b+"px";_.q("live_chat_taller_height")&&!Y.theater&&(w="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.q("live_chat_medium_height")&&!Y.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.q("live_chat_scaled_height")&&!Y.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 238px)");Y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":w,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(Y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",Y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IP(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(Y){var b=_.E6(this.hostElement).querySelector("#engagement-panel-scrim");Y?b.addEventListener("tap",_.Io(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.Io(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(Y){if(this.hostElement.contains(Y)&&!this.scrollToAnimation_.isAnimating()){var b=Y.offsetTop-24;Y=Y.offsetTop+Y.offsetHeight+24;var w=this.getPageScrollingElement(),V=this.getScrollTop(),H=V+w.clientHeight-56;if(b<V+56)b-=56;else if(Y>H)b=Y-w.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var Y=this.hostElement.querySelector("#comments");if(Y&&!this.scrollToAnimation_.isAnimating()){Y=Y.offsetTop-56-24;if(_.q("kevlar_comment_teaser_scroll_to_midpoint")&&(Y-=_.Iz().height/3,Y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Y),500)}},
onYtEngagementPanelVisibleChanged:function(Y,b,w){if(this.active&&this.trackEngagementPanelVisibility&&!_.vlt.includes(w)){if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.De(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var V=_.fH().resolve(_.Za);this.visiblePanelIdentifiers_.forEach(function(H){H!==w&&V.hidePanel(H)})}this.visiblePanelIdentifiers_.add(w)}b!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(w);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(Y){return Y?"":"watch-active-metadata"},
computeNewMetadataClass:function(Y){return Y?"watch-active-metadata":""},
computeFullBleedPlayer:function(Y,b,w){return Y||b||this.enableFullBleedSingleColumnDefaultPlayer&&!w},
computeDefaultLayout:function(Y){return!Y},
computeDefaultTwoColumnLayout:function(Y,b){return!Y&&b},
updatePanelsLocation:function(){if(_.q("web_watch_enable_fs_squeezeback_panels")){var Y=_.E6(this.hostElement).querySelector("#below"),b=_.E6(this.hostElement).querySelector("#panels"),w=_.E6(this.hostElement).querySelector("#playlist"),V=_.E6(this.hostElement).querySelector("#chat-container"),H=_.E6(this.hostElement).querySelector("#panels-full-bleed-container"),f=_.E6(this.hostElement).querySelector("#secondary-inner"),E=this.fullscreen||this.theater&&this.iMaxTheaterMode,U=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;E?(H.appendChild(b),H.appendChild(V),H.appendChild(w)):this.isTwoColumns_?(U?(Y=_.E6(this.hostElement).querySelector("#columns"),(V==null?void 0:V.parentElement)!==Y&&Y.append(V),this.fixedPanels=!0):_.dg(f,V),_.dg(f,b),_.dg(f,w)):(Y.appendChild(b),Y.appendChild(V),Y.appendChild(w))}},
swatcherooUpdatePanelsLocation:function(Y,b,w,V,H,f){if(this.is==="ytd-watch-grid"){b=Y&&!b;this.swatcherooSplitScroll&&(b?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));w=_.E6(this.hostElement).querySelector("#panels");var E=_.E6(this.hostElement).querySelector("#playlist"),U=_.E6(this.hostElement).querySelector("#fixed-secondary"),X=_.E6(this.hostElement).querySelector("#fixed-below"),
I=_.E6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),k=_.E6(this.hostElement).querySelector("#chat-container");f&&(Y?U.appendChild(w):X.appendChild(w));H?Y?U.appendChild(k):X.appendChild(k):_.Lj(k,I);V?Y?U.appendChild(E):X.appendChild(E):_.Lj(E,I);this.swatcherooSplitScroll&&(Y=_.E6(this.hostElement).querySelector("#secondary"),V=_.E6(this.hostElement).querySelector("#columns"),H=_.E6(this.hostElement).querySelector("#fixed-columns-secondary"),b?
H.appendChild(Y):V.appendChild(Y))}},
computeMetadataSkinnyMode:function(Y,b,w){return this.is!=="ytd-watch-grid"?!1:Y?w:b},
computeWatchWhilePanelsActive:function(Y,b){return Y||b},
computeNoBorderOnChat:function(Y){return _.q("web_watch_theater_chat_no_border")&&Y},
computeLiveChatPresentAndExpanded:function(Y,b){return Y&&!b},
computePanelExpanded:function(Y,b,w){return Y||b||w},
computeSqueezeback:function(Y,b,w,V){if(_.q("web_watch_enable_fs_squeezeback_panels")){var H=this.iMaxTheaterMode&&this.theater;return(Y||b||w)&&(V||H)}},
computeSwatcherooSqueezeback:function(Y,b,w){return this.is!=="ytd-watch-grid"||_.q("ww_squeezeback_killswitch")?!1:Y&&b&&w},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(Y){_.wK(this).getPlayerPromise().then(function(b){var w;(w=b.changeMarkerVisibility)==null||w.call(b,_.v(Y,_.KT).isVisible||!1,_.v(Y,_.KT).entityKeys||[],_.v(Y,_.KT).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(Y){this.liveChatCollapsed=Y.detail;_.u3().dispatch(_.QKQ(Y.detail));if(!this.liveChatCollapsed&&this.squeezeback){var b=_.fH().resolve(_.Za);this.visiblePanelIdentifiers_.forEach(function(w){b.hidePanel(w)})}},
onSetPlaylistCollapsed:function(Y){_.q("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!Y)},
provideRenderingData:function(Y,b){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=b;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=
b;break;case "DONATION_SHELF":this.donation=b;break;case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
b}},
toggleCinematicsActive:function(Y){this.cinematicsActive=Y},
isMiniplayerActive:function(){return _.fH().resolve(_.Ck).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Unb;_.Eug=function(Y){return Y.shorts.isShortsActive};
_.c6I=function(Y){if(!(0,_.wib)(Y))throw Error("H``"+String(Y));};
_.XQQ=function(Y){return Y.findIndex(function(b){return Unb.indexOf(b.tagName)>-1})>-1};
_.DnR=function(Y){return _.Uf({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:Y}})};
_.mnb=function(){var Y=_.fH().resolve(_.P5);_.SCL(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(Y.isFullscreenEnabled()?_.N8(document.documentElement):_.Uvb(document.documentElement))};
Unb=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.T$=new Map;_.T$.set(32,59972);_.T$.set(27,50765);_.T$.set(70,60102);_.T$.set(76,60221);_.T$.set(77,60222);_.T$.set(74,60223);_.T$.set(84,60224);_.T$.set(38,61941);_.T$.set(40,61942);_.T$.set(73,62521);_.T$.set(67,62522);_.T$.set(80,63390);_.T$.set(78,63397);_.T$.set(75,59972);_.T$.set(188,63385);_.T$.set(190,63384);_.T$.set(36,63387);
_.T$.set(35,63386);_.T$.set(37,63388);_.T$.set(39,63389);_.T$.set(79,63423);_.T$.set(87,63424);_.T$.set(107,63426);_.T$.set(109,63425);_.T$.set(65,63428);_.T$.set(83,63430);_.T$.set(68,63429);_.T$.set(221,63431);_.T$.set(219,63432);_.T$.set(97,63439);_.T$.set(98,63440);_.T$.set(99,63441);_.T$.set(100,63442);_.T$.set(101,63443);_.T$.set(102,63444);_.T$.set(103,63445);_.T$.set(104,63446);_.T$.set(105,63447);_.Jk=new Map;_.Jk.set(80,63390);_.Jk.set(78,63397);_.Jk.set(188,63400);_.Jk.set(190,63401);
_.Jk.set(191,60765);_.Jk.set(13,247917);_.uK=new Map;_.Y6=new Map;
}catch(e){_._DumpException(e)}
try{
var cpg,D6Q,m6X,oFI;_.gFA=function(Y){return Y.ui.guideIsVisibleButNotPersistent};
_.flN=function(Y){return Y.ui.tabGesturesIsActive};
_.NCg=function(){var Y=_.UJ("service_worker_scope");try{return navigator.serviceWorker.getRegistration(Y)}catch(b){return Promise.reject(b)}};
_.EFt=function(Y){return!(!Y||!Y.pushManager)};
cpg=function(){return _.NCg().then(_.EFt).catch(function(){return!1})};
_.U67=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?cpg():Promise.resolve(!1)};
_.XtX=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
D6Q=function(){var Y,b,w;return _.c(function(V){switch(V.nextAddress){case 1:return _.D(V,_.pp.getInstance(),2);case 2:Y=V.yieldResult;if(!Y){b=void 0;V.jumpTo(3);break}return _.D(V,Y.get("lmqf"),4);case 4:b=V.yieldResult;case 3:switch((w=b)||(w="SD"),w){case "HD":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return V.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
m6X=function(Y){var b,w,V;return _.c(function(H){if(H.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.q("disable_av1_setting")){var f=window.localStorage["yt-player-av1-pref"];f=f==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":f==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else f="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(b=Y===f)return H.jumpTo(2);V=w=Y;return _.D(H,D6Q(),3)}H.nextAddress!=2&&(b=V===H.yieldResult);return H.return(b)})};var IlN;var k1O=_.pi.IronButtonState,llt=(0,_.Bq)(HTMLElement);
_.pV({_template:function(){if(IlN!==void 0)return IlN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;oFI===void 0&&(oFI=document.createElement("template"));var V=oFI;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return IlN=Y},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[k1O,_.MM,_.O_,_.dL],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(Y){var b=(0,_.qc)(this);b.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:Y});b.shadowRoot.appendChild(Y);return llt.prototype._attachDom.call(this,Y)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var Y=this.contentElement;Y&&Y.selectedItem&&this._setSelectedItem(Y.selectedItem)},
get contentElement(){for(var Y=_.B1(this.$.content).getDistributedNodes(),b=0,w=Y.length;b<w;b++)if(Y[b].nodeType===Node.ELEMENT_NODE)return Y[b]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(Y){this._setSelectedItem(Y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(Y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y)===this&&this.open()},
_selectedItemChanged:function(Y){var b="";Y?b=Y.label||Y.getAttribute("label")||Y.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(Y,b){return b?b:Y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var Y=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",Y)}});_.Kq=new _.A("navigateAction");var hyO=new _.A("formRenderer");var id=function(){var Y=_.s6.apply(this,arguments)||this;Y.showInput=!1;return Y};
_.P(id,_.s6);_.g=id.prototype;_.g.detached=function(){this.showInput&&window.removeEventListener("click",_.Io(this,this.closeOnOutsideClick_))};
_.g.stopPropagation_=function(Y){this.showInput&&Y.stopPropagation()};
_.g.closeOnOutsideClick_=function(Y){this.closeOnOutsideClickCondition(Y)&&(this.showInput=!1,window.removeEventListener("click",_.Io(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.g.closeOnOutsideClickCondition=function(){return!0};
_.g.closeOnOutsideClickHandler=function(){};
_.g.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Io(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.g.openOnClickHandler=function(){};
_.g.showInputChanged=function(){};
_.g.setShowInput=function(Y){this.showInput=Y};
id.prototype.setShowInput=id.prototype.setShowInput;id.prototype.showInputChanged=id.prototype.showInputChanged;id.prototype.openOnClickHandler=id.prototype.openOnClickHandler;id.prototype.openOnClick_=id.prototype.openOnClick_;id.prototype.closeOnOutsideClickHandler=id.prototype.closeOnOutsideClickHandler;id.prototype.closeOnOutsideClickCondition=id.prototype.closeOnOutsideClickCondition;id.prototype.closeOnOutsideClick_=id.prototype.closeOnOutsideClick_;id.prototype.stopPropagation_=id.prototype.stopPropagation_;
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],id.prototype,"showInput",void 0);_.z([_.kZ("click"),_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],id.prototype,"stopPropagation_",null);_.z([_.lr("showInput"),_.K("design:type",Function),_.K("design:paramtypes",[Boolean]),_.K("design:returntype")],id.prototype,"showInputChanged",null);_.z([_.QC()],id);_.x6X=[id.prototype];var qxb;var smQ;var AN=function(){return _.F.apply(this,arguments)||this};
_.P(AN,_.F);_.g=AN.prototype;_.g.computePreselectedOption=function(Y,b){return b===this.itemSelected_?Y:void 0};
_.g.dataChanged_=function(){var Y=this;this.preselectedSubreason=this.itemSelected_=-1;var b;(b=this.data)!=null&&b.key&&_.TC(this,function(){var w,V=Number((w=Y.data)==null?void 0:w.key);!Number.isNaN(V)&&(Y.itemSelected_=V,w=(w=(Y.data.items||[])[V])&&w.optionSelectableItemRenderer&&w.optionSelectableItemRenderer.preselectedIndex)&&(Y.preselectedSubreason=w)})};
_.g.isSubReasonHidden_=function(Y,b){return Y!=b};
_.g.onTopItemSelected_=function(Y,b){for(var w=_.E6(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),V=0,H=w.length;V<H;V++)w[V].select(0);_.Xx(this.hostElement,"yt-report-form-update",[b.item.value]);Y.stopPropagation()};
_.g.onItemSelected_=function(Y,b){_.Xx(this.hostElement,"yt-report-form-update",[b.item.value]);Y.stopPropagation()};
_.g.getItem_=function(Y){return Y.serviceItem?Y.serviceItem:Y.navigationItem?Y.navigationItem:Y.optionSelectableItemRenderer?Y.optionSelectableItemRenderer:null};
_.g.computeText_=function(Y){return(Y=this.getItem_(Y))?this.ytRendererBehavior.getSimpleString(Y.text):null};
_.g.validate=function(){return this.itemSelected_!==-1};
_.g.computeAriaLabel_=function(Y){var b=_.Tx(Y.text);(Y=Y.accessibility&&Y.accessibility.accessibilityData&&Y.accessibility.accessibilityData.label)&&(b+=". "+Y);return b};
_.g.computeItemSelected_=function(Y){return Y};
_.g.preventSelection_=function(Y){Y.stopPropagation();this.tooltipTapped=!0};
_.g.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.g.updateItemSelectedFromBinding=function(Y){this.itemSelected_=Y.detail.value};
_.g.save=function(){var Y;this.validate()&&(Y=this.data)!=null&&Y.items&&(Y=this.data.items[this.itemSelected_],Y!=null&&Y.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(Y.optionSelectableItemRenderer.submitEndpoint)||_.oP(this.hostElement,[Y.optionSelectableItemRenderer.submitEndpoint])))};
AN.prototype.onPaperRippleTransitionEnd_=AN.prototype.onPaperRippleTransitionEnd_;AN.prototype.dataChanged_=AN.prototype.dataChanged_;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],AN.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],AN.prototype,"data",void 0);_.z([_.R({value:-1}),_.K("design:type",Number)],AN.prototype,"itemSelected_",void 0);
_.z([_.R({computed:"computeItemSelected_(itemSelected_)"}),_.K("design:type",Number)],AN.prototype,"value",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],AN.prototype,"restoreFocusOnClose",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],AN.prototype,"tooltipTapped",void 0);_.z([_.R({value:-1}),_.K("design:type",Number)],AN.prototype,"preselectedSubreason",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AN.prototype,"dataChanged_",null);_.z([_.kZ("transitionend"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],AN.prototype,"onPaperRippleTransitionEnd_",null);_.z([_.FM({is:"yt-options-renderer",disableElementRegistration:!0})],AN);
_.a(AN,"yt-options-renderer",function(){if(smQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.menus.yt_options_renderer.yt.options.renderer.css.js--\x3e<div id="options-select" class="style-scope yt-options-renderer">\n  <tp-yt-paper-radio-group id="yt-options-renderer-options" selected="[[itemSelected_]]" on-iron-select="onTopItemSelected_" on-selected-changed="updateItemSelectedFromBinding" class="style-scope yt-options-renderer">\n    <template is="dom-repeat" items="[[data.items]]" class="style-scope yt-options-renderer">\n      <tp-yt-paper-radio-button class="radio style-scope yt-options-renderer" aria-label$="[[computeAriaLabel_(item.optionSelectableItemRenderer)]]" name$="[[index]]" value="[[item.optionSelectableItemRenderer]]">\n        <div class="content style-scope yt-options-renderer">\n          <div class="text style-scope yt-options-renderer">\n            <yt-formatted-string text="[[item.optionSelectableItemRenderer.text]]" class="style-scope yt-options-renderer">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtext style-scope yt-options-renderer" hidden="[[!item.optionSelectableItemRenderer.subtext]]" text="[[item.optionSelectableItemRenderer.subtext]]">\n            </yt-formatted-string>\n          </div>\n          <template is="dom-if" if="[[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]" class="style-scope yt-options-renderer">\n            <div class="info-container style-scope yt-options-renderer" on-tap="preventSelection_">\n              <yt-icon icon="yt-icons:help_outline" size="16" class="style-scope yt-options-renderer"></yt-icon>\n              <tp-yt-paper-tooltip animation-delay="0" class="style-scope yt-options-renderer">\n                [[item.optionSelectableItemRenderer.accessibility.accessibilityData.label]]\n              </tp-yt-paper-tooltip>\n            </div>\n          </template>\n        </div>\n      </tp-yt-paper-radio-button>\n      <template is="dom-if" if="[[item.optionSelectableItemRenderer.subOptions]]" class="style-scope yt-options-renderer">\n        <tp-yt-paper-dropdown-menu aria-label$="[[item.optionSelectableItemRenderer.subOptionsAccessibility.label]]" hidden="[[isSubReasonHidden_(index, itemSelected_)]]" no-label-float="" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-select="onItemSelected_" class="style-scope yt-options-renderer">\n          <tp-yt-paper-listbox class="dropdown-content style-scope yt-options-renderer" slot="dropdown-content" selected="[[computePreselectedOption(preselectedSubreason, index)]]">\n            <template is="dom-repeat" items="[[item.optionSelectableItemRenderer.subOptions]]" as="subOption" class="style-scope yt-options-renderer">\n              <tp-yt-paper-item value="[[getItem_(subOption)]]" class="style-scope yt-options-renderer">\n                [[computeText_(subOption)]]\n              </tp-yt-paper-item>\n            </template>\n         </tp-yt-paper-listbox>\n        </tp-yt-paper-dropdown-menu>\n      </template>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;qxb===void 0&&(qxb=document.createElement("template"));var V=qxb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);smQ=Y}Y=smQ;return Y},{mode:2});var QmR;var vFR;var P7X;var Zhg;var BCA;var nFd;var Cq=function(){return _.F.apply(this,arguments)||this};
_.P(Cq,_.F);Cq.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Cq.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Cq.prototype.onTap=function(Y){if(this.hostElement.classList.contains("selected")||_.mx(this.hostElement,"yt-share-panel-can-select-contact-action"))Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.E6(this.hostElement).querySelector("#target").blur(),(Y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),Y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:Y?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Xx(this.hostElement,"yt-share-panel-select-contact-action",[Y])};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.z([_.R({observer:"onDataChanged"}),_.K("design:type",Object)],Cq.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.K("design:type",String)],Cq.prototype,"componentTitle",void 0);_.z([_.xZ("#thumbnail"),_.K("design:type",Object)],Cq.prototype,"thumbnail",void 0);_.z([_.FM({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Cq);
_.a(Cq,"yt-enrolled-contact-renderer",function(){if(nFd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-enrolled-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_enrolled_contact_renderer.yt.enrolled.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-enrolled-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" class="style-scope yt-enrolled-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-enrolled-contact-renderer"></div>\n  <div id="name" class="style-scope yt-enrolled-contact-renderer">[[componentTitle]]</div>\n</button>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;BCA===void 0&&(BCA=document.createElement("template"));var V=BCA;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);nFd=Y}Y=nFd;return Y},{mode:2});var MCt;var eyN;var yx=function(){return _.F.apply(this,arguments)||this};
_.P(yx,_.F);yx.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
yx.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
yx.prototype.onTap=function(Y){if(this.hostElement.classList.contains("selected")||_.mx(this.hostElement,"yt-share-panel-can-select-contact-action"))Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.E6(this.hostElement).querySelector("#target").blur(),(Y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),Y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:Y?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Xx(this.hostElement,"yt-share-panel-select-contact-action",[Y])};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.z([_.R({observer:"onDataChanged"}),_.K("design:type",Object)],yx.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.K("design:type",String)],yx.prototype,"componentTitle",void 0);_.z([_.xZ("#thumbnail"),_.K("design:type",Object)],yx.prototype,"thumbnail",void 0);_.z([_.FM({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],yx);
_.a(yx,"yt-suggested-contact-renderer",function(){if(eyN===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-suggested-contact-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_suggested_contact_renderer.yt.suggested.contact.renderer.css.js--\x3e<button id="target" on-focus="onFocus" on-tap="onTap" class="style-scope yt-suggested-contact-renderer">\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.avatar.thumbnail]]" class="style-scope yt-suggested-contact-renderer"></yt-img-shadow>\n  <div id="selection-highlight" class="style-scope yt-suggested-contact-renderer"></div>\n  <div id="name" class="style-scope yt-suggested-contact-renderer">[[componentTitle]]</div>\n</button>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;MCt===void 0&&(MCt=document.createElement("template"));var V=MCt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);eyN=Y}Y=eyN;return Y},{mode:2});var $N=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-share-panel-reset-action":"onReset"};return Y};
_.P($N,_.F);$N.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"}}}}}};
$N.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Xx(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
$N.prototype.onReset=function(){for(var Y=_.E6(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),b=Y.length-1;b>=0;b--)Y[b].classList.toggle("selected")};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],$N.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({observer:"onDataChanged"}),_.K("design:type",Object)],$N.prototype,"data",void 0);
_.z([_.FM({is:"yt-contact-section-renderer",disableElementRegistration:!0})],$N);
_.a($N,"yt-contact-section-renderer",function(){if(Zhg===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-contact-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_contact_section_renderer.yt.contact.section.renderer.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-contact-section-renderer"></yt-formatted-string>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-contact-section-renderer">\n</yt-formatted-string>\n<div id="contents" role="listbox" class="style-scope yt-contact-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;P7X===void 0&&(P7X=document.createElement("template"));var V=P7X;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Zhg=Y}Y=Zhg;return Y},{mode:2});var j$=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return Y};
_.P(j$,_.F);_.g=j$.prototype;_.g.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"}}}};
_.g.onYtRefreshFormCommand=function(Y){var b;(Y=_.v((b=_.v(Y,_.OEU))==null?void 0:b.formRenderer,hyO))&&this.set("data",Y)};
_.g.reset=function(){var Y=_.E6(this.hostElement).querySelector("#fields").children;Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())b=b.value,b.reset&&b.reset()};
_.g.getForm=function(){var Y={},b=_.E6(this.hostElement).querySelector("#fields").children;b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;if(!w.validate())return null;Y[w.data.key]=w.value}return Y};
_.g.submitFormFields=function(){if(this.fields)for(var Y=_.N(this.fields),b=Y.next();!b.done;b=Y.next())b=b.value,b.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?b.save():b.nodeName==="YT-OPTIONS-RENDERER"&&b.save()};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],j$.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],j$.prototype,"data",void 0);_.z([_.ql("#fields > *"),_.K("design:type",Array)],j$.prototype,"fields",void 0);
_.z([_.FM({is:"yt-form-renderer",disableElementRegistration:!0})],j$);
_.a(j$,"yt-form-renderer",function(){if(vFR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.forms.yt_form_renderer.yt.form.renderer.css.js--\x3e<div id="fields" class="style-scope yt-form-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;QmR===void 0&&(QmR=document.createElement("template"));var V=QmR;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);vFR=Y}Y=vFR;return Y},{mode:2});var pts;var Gn=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return Y};
_.P(Gn,_.F);Gn.prototype.onCheckboxChange=function(Y){this.data&&(Y=(this.checked=_.uW(Y).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})};
Gn.prototype.handleUpdateCheckboxCommand=function(Y){(Y=_.v(Y,_.$X5))&&this.data&&this.data.id===Y.id&&(this.set("data.disabled",Y.disabled),this.set("data.title",Y.title))};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Gn.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Gn.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],Gn.prototype,"checked",void 0);_.z([_.S({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Gn);
_.a(Gn,"ytd-settings-checkbox-renderer",function(){if(pts!==void 0)return pts;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-checkbox-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-option" class="style-scope ytd-settings-checkbox-renderer">\n  <tp-yt-paper-checkbox id="checkbox" aria-label$="[[getSimpleString(data.title)]]" checked="[[data.enabled]]" disabled="[[data.disabled]]" on-change="onCheckboxChange" class="style-scope ytd-settings-checkbox-renderer">\n    <div id="checkbox-container" class="style-scope ytd-settings-checkbox-renderer"></div>\n    <div id="checkbox-label" class="style-scope ytd-settings-checkbox-renderer">\n      <yt-formatted-string id="label" split-lines="" text="[[data.title]]" class="style-scope ytd-settings-checkbox-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-checkbox>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-checkbox-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-checkbox-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return pts=Y},{mode:1});var Oht;var Tn=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return Y};
_.P(Tn,_.F);Tn.prototype.dataChanged=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return Y.radio.removeAttribute("checked"),!Y.data||!Y.data.id||Y.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.XtX()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(b=Y.data&&Y.data.id)?_.D(w,m6X(Y.data.id),4):w.jumpTo(3):(Y.set("data.hidden",!0),w.jumpTo(0));w.nextAddress!=3&&(b=w.yieldResult);b&&_.Xx(Y.hostElement,"yt-select-settings-radio-option",[Y.data.id]);_.om(w)})};
Tn.prototype.onButtonChanged=function(Y){_.uW(Y).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Xx(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
Tn.prototype.onSelectOption=function(Y){this.data&&this.data.id&&(this.data.id===Y?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
Tn.prototype.dataChanged=Tn.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Tn.prototype,"ytActionHandlerBehavior",void 0);_.z([_.xZ("#radio"),_.K("design:type",Object)],Tn.prototype,"radio",void 0);_.z([_.R(),_.K("design:type",Object)],Tn.prototype,"data",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],Tn.prototype,"dataChanged",null);_.z([_.S({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],Tn);
_.a(Tn,"ytd-settings-radio-option-renderer",function(){if(Oht!==void 0)return Oht;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="start" class="style-scope ytd-settings-radio-option-renderer">\n  <tp-yt-paper-radio-button id="radio" aria-label$="[[getSimpleString(data.title)]]" hidden="[[data.hidden]]" on-change="onButtonChanged" class="style-scope ytd-settings-radio-option-renderer">\n    <div id="label" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.title)]]</div>\n  </tp-yt-paper-radio-button>\n  <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" size="16" class="style-scope ytd-settings-radio-option-renderer"></yt-icon>\n  <tp-yt-paper-tooltip animation-delay="0" for="help-icon" hidden="[[!data.helpText]]" offset="3" position="top" class="style-scope ytd-settings-radio-option-renderer">\n    [[getSimpleString(data.helpText)]]\n  </tp-yt-paper-tooltip>\n</div>\n<div id="end" class="style-scope ytd-settings-radio-option-renderer">\n  <div id="aside-text" class="style-scope ytd-settings-radio-option-renderer">[[getSimpleString(data.asideText)]]</div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Oht=Y},{mode:1});var tCb;var JN=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return Y};
_.P(JN,_.F);
JN.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"}}}};
JN.prototype.handleUpdateTextCommand=function(Y){(Y=_.v(Y,_.jyj))&&this.data&&this.data.id===Y.id&&this.set("data",Y)};
JN.prototype.handleUpdateConnectedAppRendererCommand=function(Y){if(_.v(Y,_.JZU)&&this.data){var b,w;if(Y=(b=_.v(Y,_.JZU))==null?void 0:(w=b.newConnectedAppRenderer)==null?void 0:w.connectedAppRenderer)this.data=Y}};
JN.prototype.computeConnectedAppStyle=function(Y){return Y.style?Y.style.toLowerCase().replace(/_/g,"-"):""};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],JN.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JN.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.K("design:type",String)],JN.prototype,"connectedAppStyle",void 0);_.z([_.S({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],JN);
_.a(JN,"ytd-connected-app-renderer",function(){if(tCb!==void 0)return tCb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-connected-app-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-connected-app-renderer"></yt-img-shadow>\n<div id="app" class="style-scope ytd-connected-app-renderer">\n  <div id="app-info" class="style-scope ytd-connected-app-renderer">\n    <div id="title" class="style-scope ytd-connected-app-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-formatted-string id="text" force-default-style="" split-lines="" text="[[data.text]]" class="style-scope ytd-connected-app-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-row" class="style-scope ytd-connected-app-renderer">\n    <div id="button-container" hidden="[[!data.connectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="connect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n    <div id="button-container" hidden="[[!data.disconnectButton]]" class="style-scope ytd-connected-app-renderer">\n      <div id="disconnect-button" class="style-scope ytd-connected-app-renderer"></div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return tCb=Y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Fh("iuT5Oc");

_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("L3n37");
var $UR=function(Y){return Y.watch.isLearningJourneyActive},jKA=_.tj(115994),GYA=_.tj(115993),TgO=function(Y,b,w){var V=this;
var H=w.dragDownAction;this.layer=0;this.JSC$20544_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.JSC$20544_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return V.dragDownAction()}}}};
this.fullscreen=!1;var f=_.Qd();_.IC(f,jKA,this.layer);_.IC(f,GYA,this.layer);this.dragDownAction=function(){H();_.Aj(f,{visualElement:V.fullscreen?jKA:GYA})};
this.gesture=new _.Xe(Y,b,this.JSC$20544_watchConfig,"pandown");this.attach()};
TgO.prototype.attach=function(){this.gesture.attach()};
TgO.prototype.detach=function(){this.gesture.detach()};
TgO.prototype.update=function(Y){this.fullscreen=Y;this.gesture.config=Y?this.JSC$20544_watchFullScreenConfig:this.JSC$20544_watchConfig};var J3O=function(Y){_.G$.call(this);var b=this;this.rootElement=Y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(w){b.initOrDisposeActiveModules(w)}));
this.onAttached()};
_.P(J3O,_.G$);_.g=J3O.prototype;_.g.getRoot=function(){return this.rootElement};
_.g.getElement=function(Y){return this.rootElement.getElement(Y)};
_.g.setPlayerResponse=function(Y){this.playerResponse=Y;this.publish("PLAYER_RESPONSE_UPDATED",Y)};
_.g.getPlayerResponse=function(){return this.playerResponse};
_.g.setWatchNextResponse=function(Y){this.watchNextResponse===Y?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=Y,this.publish("WATCH_NEXT_RESPONSE_UPDATED",Y))};
_.g.getWatchNextResponse=function(){return this.watchNextResponse};
_.g.registerActionHandler=function(Y,b){var w=this;if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var V={};_.yu(_.CB.getInstance(),(V[Y]=b,V),this.getRoot())}else this.actionHandlers.has(Y)||(this.actionHandlers.set(Y,[]),V={},_.yu(_.CB.getInstance(),(V[Y]=function(){var H=_.BN.apply(0,arguments);return(w.actionHandlers.get(Y)||[]).map(function(f){return f.apply(null,_.Bt(H))})},V),this.getRoot())),this.actionHandlers.get(Y).push(b)};
_.g.unregisterActionHandler=function(Y){if(_.q("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.$P(_.CB.getInstance(),(b[Y]=!0,b),this.getRoot())}else(b=this.actionHandlers.get(Y))?(b.pop(),b.length===0&&(b={},_.$P(_.CB.getInstance(),(b[Y]=!0,b),this.getRoot()),this.actionHandlers.delete(Y))):_.Sk(new _.BQ("Attempted to unregister an action handler which is not registered.",Y))};
_.g.addPageDisposeJob=function(Y){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Ca(this.rootElement.pageDisposeJobs,Y)};
_.g.removePageDisposeJob=function(Y){this.rootElement.pageDisposeJobs&&_.$b(this.rootElement.pageDisposeJobs,Y)};
_.g.dispatchEvent=function(Y,b){_.Ua(this.rootElement,Y,b)};
_.g.provideRenderingData=function(Y,b){this.rootElement.provideRenderingData(Y,b)};
_.g.scrollWatchTo=function(Y,b){var w;(w=this.watchScrollManager)==null||w.scrollWatchTo(Y,b)};
_.g.focusOnPlayer=function(){var Y=this.getElement("PLAYER");_.TC(Y,function(){if(Y&&Y.firstElementChild){var b=Y.querySelector(".html5-video-player");b&&(_.Y1(_.fH().resolve(_.dn)),b.focus())}else _.Sk(Error("nm"))})};
_.g.updateCinematicFullscreenConfig=function(){var Y=!!this.rootElement.theater,b=!!this.rootElement.fullscreen,w;(w=this.watchCinematicManager)==null||_.$9N(w,b,Y)};
_.g.subscribeToActiveChanged=function(Y,b){b=b===void 0?!0:b;var w=_.vB(_.u3(),$UR,function(V){Y(V)});
b&&Y($UR(_.u3().getState()));return w};
_.g.isActive=function(){return $UR(_.u3().getState())};
_.g.onAttached=function(){var Y=_.q("external_fullscreen");_.q("use_unified_flag_accessor")&&(Y=_.fH().resolve(_.DQR).retriever.getFlag(_.bl9));(Y||_.Wf("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.g.initPersistentModules=function(){if(_.q("kevlar_watch_flexy_theater_manager")){var Y=new _.QEX(this);_.os(this,Y)}Y=new _.NRA(this);_.os(this,Y);Y=new _.nT(this);_.os(this,Y);Y=new _.d6(this);_.os(this,Y);Y=new _.FiN(this);_.os(this,Y);Y=new _.eA(this);_.os(this,Y);_.q("kevlar_watch_flexy_playlist_manager")&&(Y=new _.aUR(this),_.os(this,Y))};
_.g.initOrDisposeActiveModules=function(Y){Y?(this.watchScrollManager=new _.LT(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.stQ(this)),this.activeModules.push(new _.Bdg(this)),this.activeModules.push(new _.AXQ(this)),this.activeModules.push(new _.Fm(this)),_.q("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.pAg(this)),this.activeModules.push(new _.nCX(this)),_.q("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.yXR(this)),
_.q("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.aJX(this)),_.q("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.iKX(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.q("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.OdA(this)),_.q("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.gCO(this)),Y=_.q("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.q("kevlar_watch_flexy_comments_manager")&&!Y&&this.activeModules.push(new _.YcA(this)),_.q("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.M5(this)),this.activeModules.push(new _.pJt(this)),this.activeModules.push(new _.vCd(this)),_.q("web_enable_timely_actions")&&this.activeModules.push(new _.d9g(this)),_.q("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.VnF(this)),_.q("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.$ds(this)),
_.q("web_fullscreen_components")&&this.activeModules.push(new _.ddd(this)),_.q("web_player_rtr_ctrls")&&this.activeModules.push(new _.gjA(this))):(_.YG(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.g.disposeInternal=function(){_.G$.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.up.Object.defineProperties(J3O.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var uiN={},Ykd=["learning-journey-engagement-panel","PAlearning_chat"];
uiN.YtdLearningJourneyWatchBehavior=[_.u.YtRendererBehavior,_.y3.YtPlayerListenerBehavior,_.cz.YtRendererstamperBehavior,_.US.YtActionHandlerBehavior,_.BJ.YtPageBehavior,_.sS.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Wf("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.q("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 _.Wf("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 _.q("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.q("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.cQ("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cQ("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.q("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.q("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 _.q("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("web_watch_rounded_player_large")||_.q("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.q("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.q("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("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 _.q("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.q("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.tN(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.tN(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var Y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){Y.showMetadataPlaceholder_()},
function(){_.q("web_watch_dont_clear_comments")||Y.clearComments_()},
function(){Y.clearPlayerAds_()},
function(){Y.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.q("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.q("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.Bgt(function(){return _.wK(Y)},this.hostElement);
this.pageDisposeJobs.push(function(){Y.youThereManager_.reset()});
_.q("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){Y.resetFullerscreenEduButtonForNewPlayback_()}));
_.q("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.o$;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;_.q("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.q("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));_.q("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Io(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(Y){Y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:Y}),Y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(Y){_.q("kevlar_watch_flexy_theater_manager")&&(this.theater=Y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.q("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(Y){!_.q("kevlar_watch_while_v2")&&!_.q("web_watch_pip")||Y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(Y){this.active!==void 0&&(this.fullscreen=Y,_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(Y){this.active!==void 0&&(_.Ua(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.q("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(Y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(Y){this.initCsi_();this.updatePageData_(Y)},
updatePageData_:function(Y){var b=this;if(Y)if(this.data===Y){this.onPageLoadWithSameData_();var w;(w=this.watchController)==null||w.setWatchNextResponse(this.data)}else this.data=Y;this.playlist&&_.Fx({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.S1("nw");this.loading=!1;_.MY(_.Lb,function(){b.initDclkstatus_();var V,H=((V=b.player)==null?void 0:V.getVideoData().cpn)||"";_.DUO(function(f,E){_.gu7(f,E,H)})})},
onPageLoadWithSameData_:function(){_.q("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var Y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!Y);this.set("loadingData.playlistLoading",Y&&Y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),Y=this.watchNextSkeletonEl_.firstElementChild;Y;)Y.classList.remove("hidden"),Y=Y.nextElementSibling;var b,w,V;Y=(b=this.loadingData)==null?void 0:(w=b.endpoint)==null?void 0:(V=w.watchEndpoint)==null?void 0:V.videoId;var H;Y&&(H="https://i.ytimg.com/vi/"+Y+"/frame0.jpg");_.E6(this.hostElement).querySelector("#player").style.backgroundImage=H?"url("+H+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var Y=_.E6(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&Y&&(Y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,w;(w=(b=this.watchMetadata).updateSentimentBarWidth)==
null||w.call(b);var V,H;(H=(V=this.watchMetadata).resize)==null||H.call(V)}_.E6(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(Y){var b=_.E6(this.hostElement).querySelector(Y);b?_.Ea(b,!1):_.Sk(new _.BQ("Overscroll monitor not found for component: ",Y))},
removeSplitScrollMouseTrap:function(Y){var b=_.E6(this.hostElement).querySelector(Y);b?_.c0(b):_.Sk(new _.BQ("Disposal component for  overscroll monitoring not found: ",Y))},
onLoadingChanged_:function(Y){Y?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(Y){var b=this;Y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Lb.addLowPriorityJob(function(){b.onWindowResized_(_.Z8(!0))})},
updateTheaterModeState_:function(Y){if(!_.q("kevlar_watch_flexy_theater_manager")){Y=Y||this.fullWindowMode_;if(this.theater!==void 0||Y)this.theater=Y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();Y&&_.veF()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var Y=this.theater;_.q("external_fullscreen")&&this.fullscreen&&(Y=!0);Y=Y?_.E6(this.hostElement).querySelector("#player-full-bleed-container"):_.E6(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),w=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip");b.parentElement!==Y&&(w&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.wK(this).appendTo(Y,b),Y.appendChild(_.E6(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var Y=this;return _.c(function(b){if(b.nextAddress==1)return _.D(b,_.fH().resolve(_.Ck).deactivate(),2);Y.updatePlayerLocation();_.om(b)})},
updateCinematicsLocation:function(){var Y=this.getElement("CINEMATICS");if(Y){var b=this.getCinematicsLocationContainer();Y.parentElement!==b&&b.appendChild(Y);var w;(w=this.watchController)==null||w.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E6(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E6(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(Y,b){var w=document.documentElement.hasAttribute("dark"),V=w&&_.q("web_cinematic_theater_mode"),H=w&&_.q("web_cinematic_fullscreen");w=!w&&this.cinematicLightTheme;return Y&&V||b&&H||(b||Y)&&w},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var Y;(Y=this.watchController)==null||Y.setWatchNextResponse(this.data);_.q("kevlar_watch_flexy_comments_manager")||this.initComments_();_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.fH().resolve(_.zF).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.q("web_watch_start_chat_in_theater_mode")){var b,
w,V;if((b=this.data)==null?0:(w=b.contents)==null?0:(V=w.twoColumnWatchNextResults)==null?0:V.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var H,f;((H=this.data)==null?0:(f=H.contents)==null?0:f.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(Y){var b;(b=this.watchController)==null||b.setPlayerResponse(this.playerData);Y&&Y.playabilityStatus&&(b=this.isVideoPlayable_(Y.playabilityStatus,this.getPlayerOverlays_(this.data)),Y=this.isLiveStreamOffline_(Y.playabilityStatus),b&&!Y||_.TC(this,function(){_.S1("pbu")}));
this.setPlayerAds_();_.De(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(Y){_.u3().dispatch(_.Uf({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));Y?this.activate_():this.deactivate_()},
attached:function(){var Y=this;this.watchController=new J3O(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.q("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.wK(this);_.q("kevlar_disable_prepare_player")||b.preparePlayer();_.q("kevlar_watch_flexy_playlist_manager")||_.fH().resolve(_.zF).setPlayer(b);this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.e$()+
"px"};!_.cQ("kv_pl_mx_sz_ks")&&_.cQ("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.c5I+"px");_.cQ("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.UtR+"px");this.safeUpdateStyles(b);_.q("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new TgO(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return Y.onPlayerTouchPanDown_()}}));
_.q("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E6(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var Y=_.e$(),b=_.L6+Y,w=b;this.fixedPanels&&(b+=_.ETN);var V=657+Y;Y=1327+Y;_.E6(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.E6(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(V+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(Y+"px)");_.E6(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(Y+"px)");
_.E6(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+w+"px)"},
calculateCurrentPlayerSize_:function(){var Y=_.E6(this.hostElement).querySelector("#miniplayer-bar").firstChild;return Y&&Y.active||this.theater||_.q("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.mE(NaN,NaN):_.WF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.WF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ua(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var Y=this;this.onWindowResized_(_.Z8());_.q("browse_skeleton_removal_on_watch_killswitch")||_.Wf("IS_SHELL_LOAD")&&_.mBt();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.wK(this);b.addEventListener("yt-player-updated",_.Io(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(w){Y.playerApiReady_(w)});
_.q("kevlar_watch_flexy_playlist_manager")||(b=_.fH().resolve(_.zF),_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.Io(this,this.onYtNavigate_)),b.setPlaylistComponent(_.E6(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.Io(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Lb.addLowPriorityJob(function(){_.Ua(Y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.wK(this).removeEventListener("yt-player-updated",_.Io(this,this.onPlayerUpdated_));if(!_.q("kevlar_watch_flexy_playlist_manager")){var Y=_.fH().resolve(_.zF);_.q("kevlar_watch_observe_playlist_navigations_killswitch")&&Y.removeEventListener("yt-navigate",_.Io(this,this.onYtNavigate_));Y.cancelVideoSkip();Y.removeEventListener("yt-playlist-data-updated",_.Io(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.q("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ua(this.hostElement,"yt-autonav-pause-player",!1);Y=_.fz();_.q("kevlar_exit_fullscreen_leaving_watch")&&Y&&_.N8(Y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(Y){this.player&&this.player.updateVideoData({rvs:Y.rvs})},
getPageContents:function(Y){return Y&&Y.contents&&Y.contents.twoColumnWatchNextResults&&Y.contents.twoColumnWatchNextResults.results&&Y.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(Y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",Y)},
onRetrieveLocation_:function(Y,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);Y.stopPropagation()},
onSubscriptionChanged_:function(Y,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ZJ("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E6(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E6(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(Y){this.player=Y;this.setPlayerState(Y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.q("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.q("kevlar_unified_player")||_.q("kevlar_player_new_bootstrap_adoption"))&&_.uJ()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(Y,b){b=b===void 0?!0:b;_.fz()&&_.q("external_fullscreen")&&_.N8(document.documentElement);this.theaterRequested_=Y;b&&_.Qh("wide",Y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Xx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ua(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
onWatchScroll_:function(){this.scrollThrottle_.fire();this.mastheadScrollThrottle.fire()},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(Y){_.aY(Y,typeof this.player),this.player&&_.aY(Y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var Y;((Y=this.player)==null?0:Y.isFullscreen())?this.player.toggleFullscreen():_.Xx(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(Y,b){return this.loading?b:!!Object.keys(Y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(Y){if(Y){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())b=b.value,b.youThereRenderer&&_.eaX(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(Y){return Y||{}},
userEngagementConfigDataChanged_:function(Y){if(Y)if(Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.fB()<Y.lowEngagementThresholdMs||_.Rad(b,!0)}else Y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Xx(this.hostElement,"yt-autonav-pause-user-engagement",[Y])},
isPlayerUnavailable_:function(Y,b,w){return!!Y&&!this.isVideoPlayable_(Y,w)&&!b},
getPlayerOverlays_:function(Y){return(Y==null?void 0:Y.playerOverlays)||null},
isVideoPlayable_:function(Y,b){if(!Y)return!1;var w=Y.status==="OK"||Y.status==="LIVE_STREAM_OFFLINE",V=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",Y)||this.get("errorScreen.ypcTrailerRenderer",Y);Y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",Y);var H;b=b==null?void 0:(H=b.playerOverlayRenderer)==null?void 0:H.gatedActionsOverlayRenderer;return!!w||!!V||!!Y||!!b},
hasWatchNextResponseErrorRenderer:function(Y){var b=this.getPageContents(Y),w,V,H,f,E;return!(Y==null?0:(w=Y.contents)==null?0:(V=w.twoColumnWatchNextResults)==null?0:V.secondaryResults)&&!!((H=b[0])==null?0:(f=H.itemSectionRenderer)==null?0:(E=f.contents[0])==null?0:E.backgroundPromoRenderer)},
isLiveStreamOffline_:function(Y){return Y?Y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(Y,b,w){var V=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),H=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];H=_.q("web_no_skip_video_on_verification_checks")?(Y==null?void 0:Y.status)&&H.includes(Y.status):Y&&Y.status==="AGE_CHECK_REQUIRED";var f=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",Y);f==void 0&&(f=!0);!w||this.isVideoPlayable_(Y,this.getPlayerOverlays_(b))||
V||H||!f||_.fH().resolve(_.zF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.haX()},
onPlayerFeedbackStartRequest_:function(Y){_.Xx(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:Y}])},
onPlayerFeedbackArticleRequest_:function(Y){_.Xx(this.hostElement,"yt-help-dialog-requested",[Y])},
onPlayerYpcContentRequest_:function(){var Y,b,w,V,H,f,E,U,X=((Y=this.data)==null?NaN:(b=Y.contents)==null?NaN:(w=b.twoColumnWatchNextResults)==null?NaN:(V=w.secondaryResults)==null?NaN:(H=V.secondaryResults)==null?NaN:(f=H.offerModule)==null?NaN:(E=f.tvfilmOfferModuleRenderer)==null?NaN:(U=E.actionButtons)==null?NaN:U.length)-1;Y=[".offerButton.buttonRenderer.",".actionButtons."+(X>=0?X:0)+".buttonRenderer."];b=_.N(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(w=b.next();!w.done;w=b.next())for(w=w.value,V=_.N(Y),H=V.next();!H.done;H=V.next())if(H="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+w+H.value,H=this.get(H+"navigationEndpoint",this.data)||this.get(H+"serviceEndpoint",this.data)||this.get(H+"command",this.data)){_.hA(H,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(Y){_.Ua(this.hostElement,"yt-autonav-pause-player",Y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(Y){Y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(Y){switch(Y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ua(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(Y)},
setPlayerState:function(Y){_.u3().dispatch(_.jH_(Y))},
onPlayerSubscribe_:function(Y){_.Xx(this.hostElement,"yt-player-subscribe",[Y])},
onPlayerUnsubscribe_:function(Y){_.Xx(this.hostElement,"yt-player-unsubscribe",[Y])},
onPlayerAdYtShowToast_:function(Y){_.Xx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:Y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(Y){if(Y)return Y},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(Y){return!_.q("web_watch_move_summary_to_sd")&&!!Y},
computeWatchMetadataRefresh:function(){return _.q("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var Y,b,w,V;this.watchNextSecondaryResults=(Y=this.data)==null?void 0:(b=Y.contents)==null?void 0:(w=b.twoColumnWatchNextResults)==null?void 0:(V=w.secondaryResults)==null?void 0:V.secondaryResults}},
setRichGridRendererData:function(Y){this.richGridRendererData=Y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var Y,b=(Y=this.data)==null?void 0:Y.engagementPanels;if(b==null?0:b.length){Y=null;b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0;if(((V=w.engagementPanelSectionListRenderer)==null?void 0:V.targetId)==="engagement-panel-structured-description"){Y=w;break}}var H,f,E;Y=(H=Y)==null?void 0:(f=H.engagementPanelSectionListRenderer)==null?void 0:(E=f.content)==null?void 0:E.structuredDescriptionContentRenderer;if(Y==null?0:Y.items){H=
[];f=_.N(Y.items);for(E=f.next();!E.done;E=f.next()){E=E.value;if(!_.q("sd_horizontal_list_show_nav_killswitch")){var U=V=w=b=Y=void 0,X=void 0,I=(Y=E.horizontalCardListRenderer)==null?void 0:(b=Y.header)==null?void 0:(w=b.richListHeaderRenderer)==null?void 0:(V=w.navigationButton)==null?void 0:(U=V.buttonRenderer)==null?void 0:(X=U.command)==null?void 0:X.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(k){return!_.v(k,_.P9X)}))}E.expandableVideoDescriptionBodyRenderer||
E.videoDescriptionHeaderRenderer||H.push(E)}return{items:H}}}},
constructWarning_:function(Y){return{text:_.Gx(Y),type:"WARNING"}},
isPlaShelfEnabled_:function(Y){if((this.get("adPlacements",Y)||[]).length)return!0;Y=this.get("playerAds",Y)||[];return!(!Y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",Y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var Y=this;_.Ua(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.q("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.wK(this).getPlayerPromise().then(function(w){w.updateFullerscreenEduButtonVisibility(Y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ua(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var Y=this;this.commentsReady=!1;_.Lb.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.MY(_.Lb,function(){Y.setComments_()},1E3)},
setComments_:function(){if(!_.q("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.S1("cmi");_.Lb.cancelJob(this.setCommentsJobId_);var Y=this.getPageContents(this.data);if(Y&&Y.length){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ua(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.q("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.q("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.S1("cmc")},
doRemoveComments_:function(){this.comments={};_.q("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Lb.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Lb.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(Y,b){var w=_.v(b.endpoint,_.TG);w&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||w.videoId!==b.videoId||w.playlistId&&w.playlistId!==b.playlistId||w.index!==void 0&&w.index!==b.index||typeof w.startTimeSeconds!=="number"||(Y.stopPropagation(),this.setScrollTop(0),_.wK(this).getPlayerPromise().then(function(V){var H=w.startTimeSeconds;V.seekTo(H);V.wakeUpControls();H<V.getDuration()&&V.playVideo()})))},
updatePlayerStartTime_:function(){var Y=_.VGb();"t"in Y&&(Y=_.lGX(Y.t),this.player.seekTo(Y,!0))},
updateTitleFromWatchNext:function(Y){Y=this.getPageContents(Y);var b,w;(Y=_.Tx(Y==null?void 0:(b=Y[0])==null?void 0:(w=b.videoPrimaryInfoRenderer)==null?void 0:w.title))&&_.Ua(this.hostElement,"yt-update-title",Y)},
updateTitle_:function(Y){Y=this.get("videoDetails.title",Y)||"";_.Ua(this.hostElement,"yt-update-title",Y)},
syncWithRemoteVideo_:function(Y,b,w){if(this.active&&this.player){var V=this.player.getVideoData();if(V.video_id===w&&(w=V.list,_.q("polymer_enable_mdx_queue")&&w&&w.startsWith("RQ")&&(w=void 0),V.video_id!==Y||w!=b)){var H;_.q("kevlar_player_watch_endpoint_navigation")?H=_.Siu(_.mUX(Y,b)):H=this.buildWatchEndpoint_(Y,b);_.Ua(this.hostElement,"yt-navigate",{endpoint:H,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(Y,b,w){return _.f8(Y,b,w)},
initDclkstatus_:function(){_.kYN()},
attachWatchPageSkeleton_:function(){var Y=document.querySelector("#watch-page-skeleton");if(Y){var b=Y.querySelector("#primary-info"),w=Y.querySelector("#secondary-info"),V=Y.querySelector("#related");b&&_.E6(this.hostElement).querySelector("#info-skeleton").appendChild(b);w&&_.E6(this.hostElement).querySelector("#meta-skeleton").appendChild(w);V&&(_.E6(this.hostElement).querySelector("#related-skeleton").appendChild(V),this.watchNextSkeletonEl_=V);_.qf(Y)}},
handlePlayerUpdated_:function(){_.wK(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(Y,b){if(this.watchNextSkeletonEl_&&typeof b!=="undefined"){var w=this.watchNextSkeletonEl_.children,V=Y&&Y.indexSplices.length?Y.indexSplices[0].index:0;Y=Math.min(this.watchNextShownItems.length,w.length);b||(V=0,Y=w.length);for(b=V;b<Y;b++)w[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(Y){_.q("external_fullscreen")||_.Xx(this.hostElement,"yt-player-fullscreen",[Y.fullscreen])},
onFullscreenChange_:function(Y){this.fullscreen=Y;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.wK(this);b.getPlayerPromise().then(function(w){w.setFauxFullscreen(!!_.fz())});
this.updateFullBleedElementLocations();Y&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(Y,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(Y){return Y},
computeShouldShowMerchShelf:function(Y,b){return b&&!!Y},
computeResponseHasComments:function(Y){var b,w,V,H,f;return!!(Y==null?0:(b=Y.contents)==null?0:(w=b.twoColumnWatchNextResults)==null?0:(V=w.results)==null?0:(H=V.results)==null?0:(f=H.contents)==null?0:f.some(function(E){var U;return(E==null?void 0:(U=E.itemSectionRenderer)==null?void 0:U.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(Y,b){this.responseHasComments=this.computeResponseHasComments(this.data);return!!Y&&!!Object.keys(Y).length&&!b},
identity:_.a6,onWindowResized_:function(Y){this.windowSize_=Y;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.q("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(Y){var b=this;Y&&Y.type!=="dataloaded"&&Y.type!=="dataupdated"||_.wK(this).getPlayerPromise().then(function(w){var V=w.getPlayerState();V!==5&&V!==0&&(w=1/w.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==w&&(b.videoHeightToWidthRatio_=w))})},
schedulePlayerSizeUpdate_:function(Y){var b=this,w=_.q("kevlar_watch_while_v2")||_.q("web_watch_pip"),V=function(){if(b.watchMetadata){var H,f;(f=(H=b.watchMetadata).resize)==null||f.call(H)}_.wK(b).getPlayerPromise().then(function(E){if(_.q("kevlar_set_internal_player_size")){if(!w||!b.isMiniplayerActive()){var U=b.calculateCurrentPlayerSize_();E.setInternalSize(U.width,U.height)}}else E.setSize(NaN,NaN);_.q("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
Y?V():_.ps(_.Lb,V)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(Y){this.set("data.survey",Y.detail)},
onYtShowSurveyCommand_:function(Y){this.set("data.survey",_.v(Y,_.Z6N).survey)},
onDownloadedVideoDeleted:function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1){if(!b.active||(w=b.playerData)==null||!w.offlineState||b.videoId!==Y)return H.return();(V=b.player)==null||V.stopVideo();_.sL().navigatingAwayFromWatchDeletedVideo=!0;_.hA(_.Rvg,b.hostElement);return _.D(H,_.sL().navigationFinishPromise,2)}_.sL().navigatingAwayFromWatchDeletedVideo=!1;_.om(H)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var Y;this.theater?Y=_.rp(.5625*this.windowSize_.width,480,this.windowSize_.height-185):Y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==Y&&(this.watchWhileScrollThreshold_=Y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var Y=_.E6(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&Y){var b=this.windowSize_.height>=624,w=this.active?this.getScrollTop():0;!Y.active&&b&&w>=this.watchWhileScrollThreshold_?(Y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):Y.active&&(!b||w<this.watchWhileScrollThreshold_&&!_.fz())&&(Y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(Y,b){if(Y!==!0||b!==void 0){Y=!_.q("live_chat_over_engagement_panels");b=_.E6(this.hostElement).querySelector("#chat-container");var w=_.E6(this.hostElement).querySelector("#plj-sidebar"),V=_.E6(this.hostElement).querySelector("#panels"),H=_.E6(this.hostElement).querySelector("#plj-panels"),f=_.E6(this.hostElement).querySelector("#plj-playlist"),E=_.E6(this.hostElement).querySelector("#alerts"),U=_.E6(this.hostElement).querySelector("#playlist"),X=_.E6(this.hostElement).querySelector("#related"),
I=_.E6(this.hostElement).querySelector("#donation-shelf"),k=_.E6(this.hostElement).querySelector("#comments");this.isTwoColumns_?(E=_.E6(this.hostElement).querySelector("#secondary-inner"),E.appendChild(w),w.appendChild(f),f.appendChild(U),w.appendChild(H),Y&&E.appendChild(V),_.q("web_watch_theater_chat")||E.appendChild(b),Y||E.appendChild(V),E.appendChild(I),E.appendChild(X)):(Y&&_.F1(V,E),_.F1(U,E),_.q("web_watch_theater_chat")||_.F1(b,E),Y||_.F1(V,E),_.F1(I,E),k&&(H&&_.F1(H,k),_.F1(X,k)));_.q("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.q("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.q("web_watch_theater_chat")){var Y=_.E6(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.q("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?_.q("web_watch_theater_chat_beside_player")?(b=_.E6(this.hostElement).querySelector("#panels-full-bleed-container"),(Y==null?void 0:Y.parentElement)!==b&&b.append(Y),this.panelsBesidePlayer=!0):_.q("web_watch_theater_fixed_chat")&&
(b=_.E6(this.hostElement).querySelector("#columns"),(Y==null?void 0:Y.parentElement)!==b&&b.append(Y),this.fixedPanels=!0):(_.q("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.q("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),b=_.E6(this.hostElement).querySelector("#playlist"),Y&&b?_.Lj(Y,b):_.Sk(new _.BQ("Missing element when updating chat location",{"chatContainer defined":!!Y,"playlist defined":!!b})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(Y,b){return _.q("sw_metadata_vis_toggle_ks")?!0:!!Y||!!b},
computeForceDarkPanelTheme:function(Y){return _.q("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&Y:!1},
safeUpdateStyles:function(Y){try{_.m_(this.hostElement,Y)}catch(b){_.Sk(b)}},
videoHeightToWidthRatioChanged_:function(Y,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.q("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(Y){this.videoHeightToWidthRatio_=1/Y},
computeIsVerticalVideo_:function(Y){return Y>=1},
computeIsFourThreeToSixteenNineVideo_:function(Y){return Y<=.7501&&Y>=.5624},
computeIsExtraWideVideo_:function(Y){return Y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.wK(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.wK(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dUt(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(Y){var b=_.l4(Y)||0;_.kc(Y,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var Y=_.l4("yt-fullerscreen-edu-button-click-count")||0,b=_.l4("yt-fullerscreen-edu-button-shown-count")||0,w=_.cQ("external_fullscreen_button_shown_threshold"),V=Y>=_.cQ("external_fullscreen_button_click_threshold")||b>=w;_.wK(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonSubtleModeState(V)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(Y,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.fH().resolve(_.zF).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var Y=this;this.panelMaxHeightUpdateJob_&&_.Lb.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Lb.addLowPriorityJob(function(){Y.panelMaxHeightUpdateJob_=0;var b;!Y.isTwoColumns_||Y.theater||Y.fullscreen?b=460:b=Y.calculateNormalPlayerSize_().height;var w=b+"px";_.q("live_chat_taller_height")&&!Y.theater&&(w="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.q("live_chat_medium_height")&&
!Y.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.q("live_chat_scaled_height")&&!Y.theater&&(w="calc(100vh - var(--ytd-toolbar-height) - 238px)");Y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":w,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})})},
onYtShowEngagementPanelScrimAction_:function(Y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",Y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.IP(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(Y){var b=_.E6(this.hostElement).querySelector("#engagement-panel-scrim");Y?b.addEventListener("tap",_.Io(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.Io(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(Y){if(this.hostElement.contains(Y)&&!this.scrollToAnimation_.isAnimating()){var b=Y.offsetTop-24;Y=Y.offsetTop+Y.offsetHeight+24;var w=this.getPageScrollingElement(),V=this.getScrollTop(),H=V+w.clientHeight-56;if(b<V+56)b-=56;else if(Y>H)b=Y-w.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var Y=this.hostElement.querySelector("#comments");if(Y&&!this.scrollToAnimation_.isAnimating()){Y=Y.offsetTop-56-24;if(_.q("kevlar_comment_teaser_scroll_to_midpoint")&&(Y-=_.Iz().height/3,Y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,Y),500)}},
onYtEngagementPanelVisibleChanged:function(Y,b,w){this.active&&this.trackEngagementPanelVisibility&&!_.vlt.includes(w)&&(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(w),b!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(w),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(Y){return Y?"":"watch-active-metadata"},
computeNewMetadataClass:function(Y){return Y?"watch-active-metadata":""},
computeFullBleedPlayer:function(Y,b){return Y||b},
computeDefaultLayout:function(Y){return!Y},
computeDefaultTwoColumnLayout:function(Y,b){return!Y&&b},
computeWatchWhilePanelsActive:function(Y,b){return Y||b},
computeNoBorderOnChat:function(Y){return _.q("web_watch_theater_chat_no_border")&&Y},
computeLiveChatPresentAndExpanded:function(Y,b){return Y&&!b},
computePanelExpanded:function(Y,b,w){return Y||b||w},
onChangeMarkersVisibility:function(Y){_.wK(this).getPlayerPromise().then(function(b){var w;(w=b.changeMarkerVisibility)==null||w.call(b,_.v(Y,_.KT).isVisible||!1,_.v(Y,_.KT).entityKeys||[],_.v(Y,_.KT).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(Y){this.liveChatCollapsed=Y.detail;_.u3().dispatch(_.QKQ(Y.detail))},
provideRenderingData:function(Y,b){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.q("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=b;break;case "DONATION_SHELF":this.donation=b;break;
case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=b}},
toggleCinematicsActive:function(Y){this.cinematicsActive=Y},
isMiniplayerActive:function(){return _.fH().resolve(_.Ck).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(Y){return Ykd.map(function(b){return Y.find(function(w){var V;return(w==null?void 0:(V=w.engagementPanelSectionListRenderer)==null?void 0:V.targetId)===b})}).filter(function(b){return b!==void 0})},
getNonLearningJourneyEngagementPanels:function(Y){return Y.filter(function(b){var w;return!Ykd.includes((b==null?void 0:(w=b.engagementPanelSectionListRenderer)==null?void 0:w.targetId)||"")})}}];var btd;var ut=function(){var Y=_.F.apply(this,arguments)||this;Y.flexy=!0;Y.learningJourney=!0;Y.roundedInfoPanel=!0;Y.viewTransitionEnabled=_.q("enable_player_resize_transition");Y.smallerChatMinHeight=_.q("live_chat_smaller_min_height");Y.cinematicTheaterMode=_.q("web_cinematic_theater_mode");Y.transparentTheaterMode=_.q("web_transparent_theater_mode");Y.cinematicFullscreen=_.q("web_cinematic_fullscreen");Y.useLargerMaxPlayerValue=_.q("kevlar_flexy_use_larger_player_value");Y.cinematicFullscreenV2=_.q("web_cinematic_fullscreen_v2");
Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.theaterLargerPlayer=_.q("web_watch_theater_larger_player");Y.defaultCollapsePlaylist=_.q("web_watch_default_collapse_playlist");return Y};
_.P(ut,_.F);_.g=ut.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.g.ready=function(){var Y=this,b=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(Y){_.q("web_watch_update_narrow_width_killswitch")||_.u3().dispatch(_.hNg(!Y.detail.value));this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.g.updateShownItemsFromBinding=function(Y){Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value};
_.g.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20553_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20553_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.up.Object.defineProperties(ut.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(Y=_.v(this.data.pageVisualEffects[b],_.Qi))return b=void 0,(b=Y.config)==null?void 0:b.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.learningJourneyEngagementPanels)==null?void 0:Y.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.learningJourneyEngagementPanels)==null?void 0:Y.find(function(x){var Q;return(x==null?void 0:(Q=x.engagementPanelSectionListRenderer)==null?void 0:Q.panelIdentifier)==="learning-journey-engagement-panel"});
if(b){var w,V,H,f,E,U,X,I,k;if(Y=(I=((X=(E=((f=b==null?void 0:(w=b.engagementPanelSectionListRenderer)==null?void 0:(V=w.content)==null?void 0:(H=V.sectionListRenderer)==null?void 0:H.contents)!=null?f:[])[0])==null?void 0:(U=E.itemSectionRenderer)==null?void 0:U.contents)!=null?X:[])[0])==null?void 0:(k=I.accordionViewModel)==null?void 0:k.onTitleTap){var l=_.zT(Y);if(l)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.l8.instance.resolveCommand(l)}}}}}}});
_.up.Object.defineProperties(ut,{template:{configurable:!0,enumerable:!0,get:function(){if(btd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" hidden="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);btd=Y}Y=btd;return Y}}});
ut.prototype.updateMiniplayerIsActiveValue=ut.prototype.updateMiniplayerIsActiveValue;ut.prototype.updateScrollTopValue=ut.prototype.updateScrollTopValue;ut.prototype.updateFullscreenValue=ut.prototype.updateFullscreenValue;ut.prototype.updateTheaterValue=ut.prototype.updateTheaterValue;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ut.prototype,"ytComponentBehavior",void 0);
_.z([_.n(uiN.YtdLearningJourneyWatchBehavior),_.K("design:type",Object)],ut.prototype,"ytdWatchBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ut.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],ut.prototype,"playerData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"flexy",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"learningJourney",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"roundedInfoPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"viewTransitionEnabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"smallerChatMinHeight",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"cinematicTheaterMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"transparentTheaterMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"cinematicFullscreen",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"useLargerMaxPlayerValue",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"cinematicFullscreenV2",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"isDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ut.prototype,"theaterLargerPlayer",void 0);_.z([_.R(),_.K("design:type",Object)],ut.prototype,"defaultCollapsePlaylist",void 0);_.z([_.R({selector:_.zI}),_.K("design:type",Object)],ut.prototype,"theaterValue",void 0);
_.z([_.R({selector:_.Wv}),_.K("design:type",Object)],ut.prototype,"fullscreenValue",void 0);_.z([_.R({selector:_.Bi}),_.K("design:type",Object)],ut.prototype,"scrollTopValue",void 0);_.z([_.R({selector:_.L8}),_.K("design:type",Object)],ut.prototype,"miniplayerIsActiveValue",void 0);_.z([_.xZ("#ytd-plj-player"),_.K("design:type",HTMLElement)],ut.prototype,"ytdPlayer",void 0);_.z([_.xZ("#playlist"),_.K("design:type",HTMLElement)],ut.prototype,"JSC$20553_ytdPlaylistPanelRenderer",void 0);
_.z([_.j_("ytd-comments"),_.K("design:type",HTMLElement)],ut.prototype,"ytdComments",void 0);_.z([_.xZ("#primary"),_.K("design:type",HTMLElement)],ut.prototype,"primary",void 0);_.z([_.xZ("#secondary"),_.K("design:type",HTMLElement)],ut.prototype,"secondary",void 0);_.z([_.xZ("#player-container"),_.K("design:type",HTMLElement)],ut.prototype,"playerContainer",void 0);_.z([_.xZ("#cinematics"),_.K("design:type",HTMLElement)],ut.prototype,"JSC$20553_cinematics",void 0);
_.z([_.lr("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ut.prototype,"updateTheaterValue",null);_.z([_.lr("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ut.prototype,"updateFullscreenValue",null);_.z([_.lr("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ut.prototype,"updateScrollTopValue",null);
_.z([_.lr("miniplayerIsActiveValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ut.prototype,"updateMiniplayerIsActiveValue",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ut.prototype,"cinematicLightTheme",null);_.z([_.R({reflectToAttribute:!0}),_.t("learningJourneyEngagementPanels"),_.K("design:type",Object),_.K("design:paramtypes",[])],ut.prototype,"hasLearningJourneyPanels",null);
_.z([_.t("learningJourneyEngagementPanels"),_.K("design:type",Object),_.K("design:paramtypes",[])],ut.prototype,"backButtonData",null);_.z([_.S({is:"ytd-watch-learning-journey"})],ut);_.Uq.registerService(_.D9M,ut);
_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("Tm0L3c");
var Krt;var i6b;var A3N=function(){return _.F.apply(this,arguments)||this};
_.P(A3N,_.F);_.z([_.S({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],A3N);
_.a(A3N,"ytd-ghost-comments-renderer",function(){if(i6b===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-comments-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-section style-scope ytd-ghost-comments-renderer">\n  <div class="header ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="input-box ghost-card style-scope ytd-ghost-comments-renderer">\n    <div class="avatar style-scope ytd-ghost-comments-renderer">\n      <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n    </div>\n    <div class="ghost-input style-scope ytd-ghost-comments-renderer"></div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div class="comments style-scope ytd-ghost-comments-renderer">\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n    <div class="comment ghost-card style-scope ytd-ghost-comments-renderer">\n      <div class="avatar style-scope ytd-ghost-comments-renderer">\n        <div class="circle style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n      <div class="content style-scope ytd-ghost-comments-renderer">\n        <div class="meta style-scope ytd-ghost-comments-renderer">\n          <div class="ghost-line style-scope ytd-ghost-comments-renderer"></div>\n        </div>\n        <div class="ghost-text style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-2 style-scope ytd-ghost-comments-renderer"></div>\n        <div class="ghost-text line-3 style-scope ytd-ghost-comments-renderer"></div>\n      </div>\n    </div>\n  </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);i6b=Y}Y=i6b;return Y},{mode:1});var C_A;var y3t=function(){return _.F.apply(this,arguments)||this};
_.P(y3t,_.F);_.z([_.S({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],y3t);
_.a(y3t,"ytd-ghost-watch-metadata-renderer",function(){if(C_A===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ghost-watch-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="ghost-card style-scope ytd-ghost-watch-metadata-renderer">\n  <div class="title style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="byline style-scope ytd-ghost-watch-metadata-renderer">\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n    <span class="word style-scope ytd-ghost-watch-metadata-renderer"></span>\n  </div>\n  <div class="description style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="line line-1 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-2 style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="line line-3 style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n  <div class="owner-box style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="left style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n      <div class="text style-scope ytd-ghost-watch-metadata-renderer">\n        <div class="top style-scope ytd-ghost-watch-metadata-renderer"></div>\n        <div class="bottom style-scope ytd-ghost-watch-metadata-renderer"></div>\n      </div>\n    </div>\n    <div class="right style-scope ytd-ghost-watch-metadata-renderer">\n      <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    </div>\n  </div>\n  <div class="action-bar style-scope ytd-ghost-watch-metadata-renderer">\n    <div class="oval style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n    <div class="circle style-scope ytd-ghost-watch-metadata-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);C_A=Y}Y=C_A;return Y},{mode:1});var JD=function(){var Y=_.F.apply(this,arguments)||this;Y.ghostGridRenderer={rows:6};Y.roundedInfoPanel=!0;Y.hideOfferModules=!0;Y.smallerChatMinHeight=_.q("live_chat_smaller_min_height");Y.cinematicTheaterMode=_.q("web_cinematic_theater_mode");Y.transparentTheaterMode=_.q("web_transparent_theater_mode");Y.darkerPanels=_.q("web_watch_darker_panels");Y.cinematicFullscreen=_.q("web_cinematic_fullscreen");Y.cinematicFullscreenV2=_.q("web_cinematic_fullscreen_v2");Y.isDarkTheme=document.documentElement.hasAttribute("dark");
return Y};
_.P(JD,_.F);_.g=JD.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.g.ready=function(){var Y=this,b=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(Y){this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.g.updateShownItemsFromBinding=function(Y){_.q("swatcheroo_direct_use_rich_grid")||(Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value)};
_.g.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20541_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20541_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.up.Object.defineProperties(JD.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(Y=_.v(this.data.pageVisualEffects[b],_.Qi))return b=void 0,(b=Y.config)==null?void 0:b.enableInLightTheme;return!1}}});
JD.prototype.updateMiniplayerIsActiveValue=JD.prototype.updateMiniplayerIsActiveValue;JD.prototype.updateScrollTopValue=JD.prototype.updateScrollTopValue;JD.prototype.updateFullscreenValue=JD.prototype.updateFullscreenValue;JD.prototype.updateTheaterValue=JD.prototype.updateTheaterValue;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JD.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],JD.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.zaO.YtdWatchBehavior),_.K("design:type",Object)],JD.prototype,"ytdWatchBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],JD.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JD.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],JD.prototype,"ghostGridRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],JD.prototype,"playerData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"roundedInfoPanel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"hideOfferModules",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"smallerChatMinHeight",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"cinematicTheaterMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"transparentTheaterMode",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"darkerPanels",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"cinematicFullscreen",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"cinematicFullscreenV2",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],JD.prototype,"isDarkTheme",void 0);_.z([_.R({selector:_.zI}),_.K("design:type",Object)],JD.prototype,"theaterValue",void 0);
_.z([_.R({selector:_.Wv}),_.K("design:type",Object)],JD.prototype,"fullscreenValue",void 0);_.z([_.R({selector:_.Bi}),_.K("design:type",Object)],JD.prototype,"scrollTopValue",void 0);_.z([_.R({selector:_.L8}),_.K("design:type",Object)],JD.prototype,"miniplayerIsActiveValue",void 0);_.z([_.xZ("#ytd-player"),_.K("design:type",HTMLElement)],JD.prototype,"ytdPlayer",void 0);_.z([_.xZ("#playlist"),_.K("design:type",HTMLElement)],JD.prototype,"JSC$20541_ytdPlaylistPanelRenderer",void 0);
_.z([_.xZ("#ytd-comments"),_.K("design:type",HTMLElement)],JD.prototype,"ytdComments",void 0);_.z([_.xZ("#primary"),_.K("design:type",HTMLElement)],JD.prototype,"primary",void 0);_.z([_.xZ("#secondary"),_.K("design:type",HTMLElement)],JD.prototype,"secondary",void 0);_.z([_.xZ("#player-container"),_.K("design:type",HTMLElement)],JD.prototype,"playerContainer",void 0);_.z([_.xZ("#cinematics"),_.K("design:type",HTMLElement)],JD.prototype,"JSC$20541_cinematics",void 0);
_.z([_.lr("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JD.prototype,"updateTheaterValue",null);_.z([_.lr("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JD.prototype,"updateFullscreenValue",null);_.z([_.lr("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JD.prototype,"updateScrollTopValue",null);
_.z([_.lr("miniplayerIsActiveValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],JD.prototype,"updateMiniplayerIsActiveValue",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JD.prototype,"cinematicLightTheme",null);
_.a(JD,"ytd-watch-grid",function(){if(Krt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);Krt=Y}Y=Krt;return Y},{mode:2});_.Uq.registerService(_.XJe,JD);
_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("CF909");
var Wrb;var Ta=function(){var Y=_.F.apply(this,arguments)||this;Y.flexy=!0;Y.roundedInfoPanel=!0;Y.viewTransitionEnabled=_.q("enable_player_resize_transition");Y.smallerChatMinHeight=_.q("live_chat_smaller_min_height");Y.cinematicTheaterMode=_.q("web_cinematic_theater_mode");Y.transparentTheaterMode=_.q("web_transparent_theater_mode");Y.cinematicFullscreen=_.q("web_cinematic_fullscreen");Y.useLargerMaxPlayerValue=_.q("kevlar_flexy_use_larger_player_value");Y.cinematicFullscreenV2=_.q("web_cinematic_fullscreen_v2");
Y.isDarkTheme=document.documentElement.hasAttribute("dark");Y.defaultCollapsePlaylist=_.q("web_watch_default_collapse_playlist");Y.retroModeReduxValue=!1;return Y};
_.P(Ta,_.F);_.g=Ta.prototype;_.g.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.g.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.g.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.g.updateRetroModeReduxValue=function(){_.q("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.g.ready=function(){var Y=this,b=function(){Y.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.g.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.g.updateIsTwoColumnsFromBinding=function(Y){_.q("web_watch_update_narrow_width_killswitch")||_.u3().dispatch(_.hNg(!Y.detail.value));this.ytdWatchBehavior.isTwoColumns_=Y.detail.value};
_.g.updateFlexySmallWindowFromBinding=function(Y){this.ytdWatchBehavior.flexySmallWindow_=Y.detail.value};
_.g.updateFlexyLargeWindowFromBinding=function(Y){this.ytdWatchBehavior.flexyLargeWindow_=Y.detail.value};
_.g.updateWatchWhileWindowSizeSufficientFromBinding=function(Y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=Y.detail.value};
_.g.updateWatchNextCanShowMoreFromBinding=function(Y){this.ytdWatchBehavior.watchNextCanShowMore=Y.detail.value};
_.g.updateShownItemsFromBinding=function(Y){Y.detail.path?this.set(Y.detail.path,Y.detail.value):this.ytdWatchBehavior.watchNextShownItems=Y.detail.value};
_.g.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20536_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20536_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.up.Object.defineProperties(Ta.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(Y=_.v(this.data.pageVisualEffects[b],_.Qi))return b=void 0,(b=Y.config)==null?void 0:b.enableInLightTheme;return!1}}});
_.up.Object.defineProperties(Ta,{template:{configurable:!0,enumerable:!0,get:function(){if(Wrb===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);Wrb=Y}Y=Wrb;return Y}}});
Ta.prototype.updateRetroModeReduxValue=Ta.prototype.updateRetroModeReduxValue;Ta.prototype.updateScrollTopValue=Ta.prototype.updateScrollTopValue;Ta.prototype.updateFullscreenValue=Ta.prototype.updateFullscreenValue;Ta.prototype.updateTheaterValue=Ta.prototype.updateTheaterValue;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.zaO.YtdWatchBehavior),_.K("design:type",Object)],Ta.prototype,"ytdWatchBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Ta.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ta.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Ta.prototype,"playerData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"flexy",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"roundedInfoPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"viewTransitionEnabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"smallerChatMinHeight",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"cinematicTheaterMode",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"transparentTheaterMode",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"cinematicFullscreen",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"useLargerMaxPlayerValue",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"cinematicFullscreenV2",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Ta.prototype,"isDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],Ta.prototype,"defaultCollapsePlaylist",void 0);_.z([_.R({selector:_.zI}),_.K("design:type",Object)],Ta.prototype,"theaterValue",void 0);_.z([_.R({selector:_.Wv}),_.K("design:type",Object)],Ta.prototype,"fullscreenValue",void 0);_.z([_.R({selector:_.Bi}),_.K("design:type",Object)],Ta.prototype,"scrollTopValue",void 0);
_.z([_.R({selector:_.L8}),_.K("design:type",Object)],Ta.prototype,"miniplayerIsActive",void 0);_.z([_.R({selector:function(Y){return Y.watch.isWatchRetroMode}}),
_.K("design:type",Object)],Ta.prototype,"retroModeReduxValue",void 0);_.z([_.j_("ytd-player"),_.K("design:type",HTMLElement)],Ta.prototype,"ytdPlayer",void 0);_.z([_.xZ("#playlist"),_.K("design:type",HTMLElement)],Ta.prototype,"JSC$20536_ytdPlaylistPanelRenderer",void 0);_.z([_.j_("ytd-comments"),_.K("design:type",HTMLElement)],Ta.prototype,"ytdComments",void 0);_.z([_.xZ("#primary"),_.K("design:type",HTMLElement)],Ta.prototype,"primary",void 0);
_.z([_.xZ("#secondary"),_.K("design:type",HTMLElement)],Ta.prototype,"secondary",void 0);_.z([_.xZ("#player-container"),_.K("design:type",HTMLElement)],Ta.prototype,"playerContainer",void 0);_.z([_.xZ("#cinematics"),_.K("design:type",HTMLElement)],Ta.prototype,"JSC$20536_cinematics",void 0);_.z([_.lr("theaterValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateTheaterValue",null);
_.z([_.lr("fullscreenValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateFullscreenValue",null);_.z([_.lr("scrollTopValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateScrollTopValue",null);_.z([_.lr("retroModeReduxValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ta.prototype,"updateRetroModeReduxValue",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ta.prototype,"cinematicLightTheme",null);_.z([_.S({is:"ytd-watch-flexy"})],Ta);_.Uq.registerService(_.U9G,Ta);
_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("nmfa2d");
var wis;var r6=function(){var Y=_.F.apply(this,arguments)||this;Y.hidden=!1;Y.errorScreen=null;Y.playlistData={};return Y};
_.P(r6,_.F);_.g=r6.prototype;_.g.getPlayer=function(){return this.ytdPlayer};
_.g.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:_.tN(["aa","eocs"])}}};
_.g.onActiveChanged=function(){_.u3().dispatch(_.jtF(this.ytPageBehavior.active))};
_.g.playerDataChanged=function(){var Y;(Y=this.watchController)==null||Y.setPlayerResponse(this.playerData)};
_.g.dataChanged=function(){var Y;(Y=this.watchController)==null||Y.setWatchNextResponse(this.data)};
_.g.sizeChanged=function(){var Y,b;(b=(Y=this.metadata).resize)==null||b.call(Y)};
_.g.attached=function(){this.watchController=new _.SA(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.g.detached=function(){_.ua(this.watchController);this.watchController=void 0};
_.g.getPlayerContainer=function(){return this.playerContainer};
_.g.getElement=function(Y){switch(Y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20488_playlistPanel}};
_.g.provideRenderingData=function(Y,b){switch(Y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=b;break;case "ERROR_SCREEN":this.errorScreen=b!=null?b:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=b;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=b;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=b;break;case "RICH_METADATA":this.richMetadataRowContainer=b;break;case "CLARIFICATION":this.clarificationData=b;break;case "PLAYLIST":this.playlistData=
b!=null?b:{};break;case "MERCH_SHELF":this.merchShelf=b;break;case "TICKET_SHELF":this.ticketShelf=b;break;case "LIMITED_STATE":this.limitedState=b;break;case "DONATION_SHELF":this.donationShelf=b;break;case "ALERTS":this.alerts=b}};
_.up.Object.defineProperties(r6.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return!this.hidden&&!!((Y=this.data)==null?0:(b=Y.contents)==null?0:(w=b.twoColumnWatchNextResults)==null?0:w.conversationBar)}}});
r6.prototype.sizeChanged=r6.prototype.sizeChanged;r6.prototype.dataChanged=r6.prototype.dataChanged;r6.prototype.playerDataChanged=r6.prototype.playerDataChanged;r6.prototype.onActiveChanged=r6.prototype.onActiveChanged;_.z([_.n(_.BJ.YtPageBehavior),_.K("design:type",Object)],r6.prototype,"ytPageBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],r6.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],r6.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"playerData",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],r6.prototype,"hidden",void 0);_.z([_.xZ("#ytd-player"),_.K("design:type",HTMLElement)],r6.prototype,"ytdPlayer",void 0);_.z([_.xZ("#player-container"),_.K("design:type",HTMLElement)],r6.prototype,"playerContainer",void 0);_.z([_.xZ("#metadata"),_.K("design:type",Object)],r6.prototype,"metadata",void 0);_.z([_.xZ("#playlist"),_.K("design:type",HTMLElement)],r6.prototype,"JSC$20488_playlistPanel",void 0);
_.z([_.R({selector:_.ned,reflectToAttribute:!0}),_.K("design:type",Object)],r6.prototype,"fixie",void 0);_.z([_.R({selector:_.BuN,reflectToAttribute:!0}),_.K("design:type",Object)],r6.prototype,"singleColumn",void 0);_.z([_.R({selector:function(Y){return _.zI(Y)&&!_.Wv(Y)},
reflectToAttribute:!0}),_.K("design:type",Object)],r6.prototype,"theater",void 0);_.z([_.R({selector:_.Wv,reflectToAttribute:!0}),_.K("design:type",Object)],r6.prototype,"fullscreen",void 0);_.z([_.R({selector:_.$at}),_.K("design:type",Object)],r6.prototype,"windowSize",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"singleColumnContents",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"errorScreen",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"playlistData",void 0);
_.z([_.R(),_.K("design:type",Object)],r6.prototype,"videoPrimaryInfoRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"videoSecondaryInfoRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"richMetadataRowContainer",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"clarificationData",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"commentsEntryPointHeaderRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"ticketShelf",void 0);
_.z([_.R(),_.K("design:type",Object)],r6.prototype,"merchShelf",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"donationShelf",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"limitedState",void 0);_.z([_.R(),_.K("design:type",Object)],r6.prototype,"alerts",void 0);_.z([_.t("playlistData"),_.K("design:type",Object),_.K("design:paramtypes",[])],r6.prototype,"hasPlaylistData",null);
_.z([_.t("data","hidden"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],r6.prototype,"hasChat",null);_.z([_.lr("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r6.prototype,"onActiveChanged",null);_.z([_.lr("playerData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r6.prototype,"playerDataChanged",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r6.prototype,"dataChanged",null);_.z([_.lr("windowSize","singleColumn"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],r6.prototype,"sizeChanged",null);
_.a(r6,"ytd-watch-fixie",function(){if(wis===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-fixie--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="single-column" hidden="[[!singleColumnContents]]" class="style-scope ytd-watch-fixie"></div>\n\n<div id="fixed-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="primary" class="style-scope ytd-watch-fixie">\n    <div id="player" class="style-scope ytd-watch-fixie">\n      <div id="player-container" class="style-scope ytd-watch-fixie">\n        <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-fixie">\n        </ytd-player>\n      </div>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" disable-upgrade$="[[!errorScreen]]" hidden$="[[!errorScreen]]" class="style-scope ytd-watch-fixie">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <div id="alerts" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-metadata id="metadata" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" suppress-top-level-metadata-rows="" video-id="[[data.currentVideoEndpoint.watchEndpoint.videoId]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer.videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer.videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-metadata>\n  </div>\n</div>\n\n<div id="static-layer" hidden="[[singleColumnContents]]" class="style-scope ytd-watch-fixie">\n  <div id="secondary" class="style-scope ytd-watch-fixie">\n    <div id="clarify-box" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="limited-state" class="feed-item style-scope ytd-watch-fixie"></div>\n    \n    <template is="dom-if" if="[[merchShelf.merchandiseShelfRenderer]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-fixie">\n      <ytd-merch-shelf-renderer class="feed-item style-scope ytd-watch-fixie" data="[[merchShelf.merchandiseShelfRenderer]]" watch-metadata-refresh="">\n      </ytd-merch-shelf-renderer>\n    </template>\n    \n    <div id="ticket-shelf" class="feed-item style-scope ytd-watch-fixie" hidden=""></div>\n    <ytd-watch-engagement-panels data="[[data.engagementPanels]]" class="style-scope ytd-watch-fixie"></ytd-watch-engagement-panels>\n    \n    <template is="dom-if" if="[[hasChat]]" restamp="" class="style-scope ytd-watch-fixie">\n      <ytd-live-chat-frame id="chat" class="feed-item style-scope ytd-watch-fixie" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]">\n      </ytd-live-chat-frame>\n    </template>\n    <div id="donation-shelf" class="feed-item style-scope ytd-watch-fixie"></div>\n    <ytd-playlist-panel-renderer id="playlist" class="feed-item style-scope ytd-watch-fixie" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" data="[[playlistData]]" disable-upgrade$="[[!hasPlaylistData]]" hidden="[[!hasPlaylistData]]" js-panel-height="">\n    </ytd-playlist-panel-renderer>\n    <div id="rich-metadata" class="feed-item style-scope ytd-watch-fixie"></div>\n    <div id="player-ads" class="style-scope ytd-watch-fixie"></div>\n    <ytd-watch-next-secondary-results-renderer data="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" disable-upgrade$="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" hidden="[[!data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" player-data="[[playerData]]" class="style-scope ytd-watch-fixie">\n    </ytd-watch-next-secondary-results-renderer>\n  </div>\n</div>\n\n\n\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);wis=Y}Y=wis;return Y},{mode:1});_.Uq.registerService(_.cYr,r6);
_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("xwEKAe");
var xgI=function(Y){var b=_.P0();if(b.getFlag(202))b=b.getFlag(201);else{var w;b=(Y==null?void 0:(w=Y.config)==null?void 0:w.settingOnByDefault)!==void 0?Y.config.settingOnByDefault:!_.q("web_shorts_cinematics_disabled_by_default")}return b},qp7=function(Y){var b=_.P0();
_.Ze(0,201,Y);_.Ze(0,202,!0);b.save()},seA=function(Y){return(Y=_.E0u(Y))?_.ULb(Y):0},QeF=function(Y){return Y.shorts.isSmallScreenSqueezeback},vYN=function(Y){return Y.shorts.isPlaybackStarted},BcA=function(Y){var b=_.BxL(2),w=new Set;
_.R2(function(){return void w.forEach(function(V){return void V()})});
return function(V){var H=_.Vz(b);try{var f=PsR(ZfX(Y),V);w.add(f);return function(){f();w.delete(f)}}finally{_.Vz(H)}}},nY7=function(Y){var b=Y.children;
var w=Y.root;_.tq(function(){var V=BcA(w)(b);_.R2(V)});
return document.createTextNode("")},PsR=function(Y,b){var w=MUF(Y);
Y=_.N(_.hEG(b,!0));b=Y.next().value;var V=Y.next().value;w.append.apply(w,_.Bt(b));return function(){V();w.remove()}},ZfX=function(Y){if(typeof Y==="string")return Y=document.querySelector(Y),_.c6I(Y),Y;
if(_.DZ(Y)&&Y.nodeType===Node.ELEMENT_NODE)return Y;try{if(!Y.__hasErrored){if(Y.__count&&Y.__count>1)throw _.p7.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.Jh);if(Y.__value){if(_.Jh!==_.Jh){var b=Y.__value.tagName.toLowerCase();if(b!==_.Jh.toLowerCase())throw _.p7.USE_ELEMENT_UNEXPECTED_ELEMENT(_.Jh,b);}}else throw _.p7.USE_ELEMENT_NOT_ASSIGNED(_.Jh);}}catch(V){var w;(w=_.fQ.handleError)==null||w.call.apply(w,[_.fQ].concat(_.Bt(_.zl(V,b))))}finally{Y.__count=0}return Y.value},MUF=function(Y){var b=document.createElementNS(Y.namespaceURI,
Y.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return Y.appendChild(b)},evg=function(Y,b,w,V){Y=b-Y;
w=V-w;return Math.sqrt(Y*Y+w*w)},p_t=function(Y,b){Y&&_.fH().resolve(_.Nn).resolveCommand(Y,{forceClickLogging:!0,
form:{element:b}})},Ofg=function(Y,b,w,V){Y=b-Y;
w=V-w;return Math.sqrt(Y*Y+w*w)},tUb=function(Y,b){Y&&_.fH().resolve(_.Nn).resolveCommand(Y,{forceClickLogging:!0,
form:{element:b}})},RvI=function(Y){Y.unsubscribeFromStore=_.vB(Y.storeWithShorts,_.Eug,function(b){Y.initOrDisposeActiveModules(b);
!b&&Y.storeWithShorts.getState().shorts.isFullscreen&&(_.N8(document.documentElement),Y.storeWithShorts.dispatch(_.DnR(!1)))});
Y.initOrDisposeActiveModules(_.Eug(Y.storeWithShorts.getState()))},dgX=function(Y){var b=_.fH().resolve(_.P5);
b.rootElement=Y;RvI(b)},F8X=function(){return _.fH().resolve(_.P5).dismissedIndices},L8s=function(Y){return _.Uf({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:Y}})},SpN=function(Y){return _.Uf({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:Y}})},f6=function(Y){return _.Uf({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:Y}})};var NU=function(Y,b){if(Y instanceof NU)this.array_=Y.array_;else{var w;if(w=_.TK(Y))a:{for(var V=w=0;V<Y.length;V++){if(!_.TK(Y[V])||w>0&&Y[V].length!=w){w=!1;break a}for(var H=0;H<Y[V].length;H++)if(typeof Y[V][H]!=="number"){w=!1;break a}w==0&&(w=Y[V].length)}w=w!=0}if(w)this.array_=_.jL(Y);else if(Y instanceof _.mE)this.array_=aOA(Y.height,Y.width);else if(typeof Y==="number"&&typeof b==="number"&&Y>0&&b>0)this.array_=aOA(Y,b);else throw Error("am");}this.size_=new _.mE(this.array_[0].length,
this.array_.length)},rGs=function(Y,b,w){for(var V=0;V<Y.getSize().height;V++)for(var H=0;H<Y.getSize().width;H++)b.call(w,Y.array_[V][H],V,H,Y)},zvs=function(Y,b){var w=new NU(Y.getSize());
rGs(Y,function(V,H,f){w.array_[H][f]=b.call(void 0,V,H,f,Y)});
return w},aOA=function(Y,b){for(var w=[],V=0;V<Y;V++){w[V]=[];
for(var H=0;H<b;H++)w[V][H]=0}return w};
NU.prototype.add=function(Y){if(!_.CTX(this.size_,Y.getSize()))throw Error("bm");return zvs(this,function(b,w,V){return b+Y.array_[w][V]})};
NU.prototype.equals=function(Y,b){if(this.size_.width!=Y.size_.width||this.size_.height!=Y.size_.height)return!1;b=b||0;for(var w=0;w<this.size_.height;w++)for(var V=0;V<this.size_.width;V++)if(!_.AKt(this.array_[w][V],Y.array_[w][V],b))return!1;return!0};
NU.prototype.getSize=function(){return this.size_};
var ER=function(Y,b,w){return b>=0&&b<Y.size_.height&&w>=0&&w<Y.size_.width?Y.array_[b][w]:null};
NU.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ci=function(Y,b,w,V){if(!(b>=0&&b<Y.size_.height&&w>=0&&w<Y.size_.width))throw Error("cm`"+b+"`"+w+"`"+Y.size_.height+"`"+Y.size_.width);Y.array_[b][w]=V};
NU.prototype.multiply=function(Y){if(Y instanceof NU){if(this.size_.width!=Y.getSize().height)throw Error("dm");return W8t(this,Y)}if(typeof Y==="number")return K8X(this,Y);throw Error("em");};
var W8t=function(Y,b){var w=new NU(Y.size_.height,b.getSize().width);rGs(w,function(V,H,f){for(var E=V=0;E<this.size_.width;E++)V+=ER(this,H,E)*ER(b,E,f);ci(w,H,f,V)},Y);
return w},K8X=function(Y,b){return zvs(Y,function(w){return w*b})};var if7=new _.A("inlineSurveyRenderer");var AGb=new _.A("interstitialViewModel");var Cs7=new _.A("reelNavigateCommand");var yG7=new _.A("reelNonVideoContentDismissalCommand");var $g7=new _.A("showReelsCommentsOverlayCommand");var jeQ=new _.A("shortsSuggestedActionViewModel");var GR7=new _.A("videoInteractionPopUpRenderer");var TcO;var JGQ;var uwR;var UR=function(){var Y=_.F.apply(this,arguments)||this;Y.ctaVisualElement=null;Y.currentCsn=null;return Y};
_.P(UR,_.F);_.g=UR.prototype;_.g.onDataChanged=function(){this.maybeLogShows()};
_.g.computeButtonShape=function(){var Y=this;if(this.data)return{buttonText:_.Tx(this.data.text),state:"active",onTap:function(){Y.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.g.maybeCreateCtaVe=function(){var Y;if((Y=this.data)!=null&&Y.badgeInteractionLogging){var b;if(Y=(b=this.data.badgeInteractionLogging)==null?void 0:b.trackingParams)this.ctaVisualElement=_.nA(Y)}};
_.g.maybeLogClicks=function(){this.currentCsn=_.dO(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.J1(this.currentCsn,this.ctaVisualElement)};
_.g.maybeLogShows=function(){this.currentCsn=_.dO(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Gu(this.currentCsn,[this.ctaVisualElement])};
_.g.onTap=function(){var Y;if((Y=this.data)!=null&&Y.onClickCommand){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand);this.maybeLogClicks()}};
UR.prototype.onDataChanged=UR.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.z([_.R({}),_.K("design:type",Object)],UR.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],UR.prototype,"onDataChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],UR);
_.a(UR,"ytd-shopping-overlay-badge-renderer",function(){if(uwR!==void 0)return uwR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shopping-overlay-badge-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape data="[[computeButtonShape(data)]]" icon-name="bag" class="style-scope ytd-shopping-overlay-badge-renderer">\n</yt-button-shape>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return uwR=Y},{mode:1});_.f_(_.drR,"reel-sound-metadata-view-model",{props:{data:_.gn,overlayDensity:_.gn}});_.f_(_.swF,"player-disclosure-view-model",{props:{data:_.YX}});_.f_(_.JKr,"pivot-button-view-model",{props:{data:_.gn,className:_.gn}});_.f_(_.u0o,"reel-action-bar-view-model",{props:{data:_.YX,buttonShapeOverrideables:_.YX}});_.f_(_.b8(function(Y){function b(){var o6,lI,Zt,eL,OM=(lI=_.v((o6=C())==null?void 0:o6.command,_.nL))==null?void 0:(Zt=lI.item)==null?void 0:(eL=Zt.notificationTextRenderer)==null?void 0:eL.successResponseText;if(OM)_.Xx(V.value,"yt-open-popup-action",[_.bW(OM),V.value]);else if(W())p_t(W(),Z.value);else{var iI;p_t((iI=C())==null?void 0:iI.command,Z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var w=Y.data;var V=_.GM("yt-player-overlay-video-interactions");Y=_.N(_.kw("0px",void 0,"O1N7Ce"));var H=Y.next().value,f=Y.next().value;Y=_.N(_.kw("0px",void 0,"tTDBdb"));var E=Y.next().value,U=Y.next().value;Y=_.N(_.kw(0,void 0,"fh8Zkc"));var X=Y.next().value,I=Y.next().value;Y=_.N(_.kw(0,void 0,"CUjqGd"));var k=Y.next().value,l=Y.next().value,x=function(){var o6;if(((o6=_.mZ())==null?void 0:o6.getPlayerState())!==-1){V.value.style.display="inherit";var lI;(lI=_.mZ())==null||lI.removeEventListener("onStateChange",
x)}Q()},Q=function(){var o6=document.querySelector("video");
if(o6){I(o6.getBoundingClientRect().width);l(o6.getBoundingClientRect().height);var lI;f((o6==null?void 0:(lI=o6.style)==null?void 0:lI.left)||"0px");var Zt;U((o6==null?void 0:(Zt=o6.style)==null?void 0:Zt.top)||"0px")}};
_.tl(function(){var o6,lI,Zt;if(((o6=_.mZ())==null?void 0:o6.getPlayerState())===-1&&Math.round(((Zt=(lI=_.mZ())==null?void 0:lI.getVideoAspectRatio())!=null?Zt:0)*100)!==Math.round(X()/k()*100)){V.value.style.display="none";var eL,OM;l(X()/((OM=(eL=_.mZ())==null?void 0:eL.getVideoAspectRatio())!=null?OM:1))}},"VB5m5");
_.tq(function(){var o6;(o6=_.mZ())==null||o6.addEventListener("onStateChange",x);window.addEventListener("resize",Q);Q();var lI,Zt,eL;if((eL=(lI=w())==null?void 0:(Zt=lI.regions)==null?void 0:Zt[0])==null||!eL.transformationMatrix)throw Error("im");var OM;if((OM=w())==null?0:OM.trackingParams){var iI;_.Qd().graftServerVe((iI=w().trackingParams)!=null?iI:"")}_.R2(function(){var rB;(rB=_.mZ())==null||rB.removeEventListener("onStateChange",x);window.removeEventListener("resize",Q)})});
var Z=_.GM("svg"),e=_.N(_.kw(!1,void 0,"TPsTce"));Y=e.next().value;var O=e.next().value,L=_.N(_.kw(!1,void 0,"Uz6CHf"));e=L.next().value;var r=L.next().value,C=function(){var o6;return _.v((o6=w())==null?void 0:o6.popUp,GR7)},W=function(){var o6;
return(o6=w())==null?void 0:o6.command},y=function(){return _.v(W(),_.sH)!==void 0};
L=_.Q_(function(){b();return!1});
var G={},Nr={};return _.m("yt-player-overlay-video-interactions",{el:V},_.m("svg",{"on:mouseover":_.Q_(function(){y()&&O(!0);r(!0);return!1}),
"on:mouseout":_.Q_(function(){O(!1);r(!1);return!1}),
"on:keydown":_.Q_(function(o6){o6.key==="Enter"&&b();return!1}),
"on:focus":_.Q_(function(){y()&&O(!0);return!1}),
"on:blur":_.Q_(function(){y()&&O(!1);return!1}),
el:Z,tabindex:0,"aria-label":function(){var o6;return(o6=w())==null?void 0:o6.a11yString},
id:"player-overlay-video-interaction-svg",class:_.hj("yt-player-overlay-video-interactions__interactions-svg",(G["yt-player-overlay-video-interactions__interactions-svg-hover"]=Y,G),(Nr["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=e,Nr)),role:"button",style:function(){var o6,lI,Zt,eL=(Zt=(o6=w())==null?void 0:(lI=o6.regions)==null?void 0:lI[0].transformationMatrix)!=null?Zt:[];o6=X();lI=k();Zt=[];for(var OM=0,iI=-1;OM<eL.length;OM++)OM%3===0&&(iI++,Zt[iI]=[]),Zt[iI].push(eL[OM]);
eL=new NU(Zt);Zt=new NU([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Zt=eL.multiply(Zt);eL=new NU([[0,0],[0,0],[0,0],[0,0]]);for(OM=0;OM<Zt.getSize().width;OM++){iI=ER(Zt,0,OM);var rB=ER(Zt,1,OM);if(iI===null||rB===null)throw Error("hm`"+(OM+1).toString());ci(eL,OM,0,iI*o6);ci(eL,OM,1,rB*lI)}o6=ER(eL,0,0);OM=ER(eL,1,0);lI=ER(eL,0,1);iI=ER(eL,1,1);if(o6===null||OM===null||lI===null||iI===null)throw Error("fm");Zt=evg(o6,OM,lI,iI);rB=ER(eL,3,0);eL=ER(eL,3,1);if(rB===null||eL===null)throw Error("gm");eL=evg(o6,
rB,lI,eL);iI=(Number((iI*-1).toFixed(2))-Number((lI*-1).toFixed(2)))/(Number(OM.toFixed(2))-Number(o6.toFixed(2)));rB=Math.atan(iI)*180/Math.PI;OM=iI===Number.POSITIVE_INFINITY?-90:iI===Number.NEGATIVE_INFINITY?90:Object.is(iI,-0)?180:iI===0?0:iI>0?rB*-1:o6<OM?rB*-1:Math.abs(rB)+180;return"left:calc("+o6+"px + "+H()+"); top:calc("+(lI+"px + "+E()+"); width:")+(Zt+"px; height:")+(eL+"px; transform:rotate(")+(OM+"deg);")},
"on:click":L}))},"Mi"),"yt-player-overlay-video-interactions",{props:{data:_.YX}});_.f_(_.BXg,"yt-reel-metapanel-view-model",{props:{data:_.YX,overlayDensity:_.YX}});var YnR=_.b8(function(Y){var b=Y.children;var w=Y.region;Y=_.N(_.kw(void 0,void 0,"rwJZyc"));var V=Y.next().value,H=Y.next().value;Y=_.N(_.kw("0px",void 0,"H14H5c"));var f=Y.next().value,E=Y.next().value;Y=_.N(_.kw("0px",void 0,"Mn8Uvf"));var U=Y.next().value,X=Y.next().value;Y=_.N(_.kw(0,void 0,"QQCIqc"));var I=Y.next().value,k=Y.next().value;Y=_.N(_.kw(0,void 0,"HyEvh"));var l=Y.next().value,x=Y.next().value,Q=function(){var C=V();if(C){var W;if(((W=_.mZ())==null?void 0:W.getPlayerState())!==-1){C.style.display=
"inherit";var y;(y=_.mZ())==null||y.removeEventListener("onStateChange",Q)}e()}},Z=function(){var C=document.querySelectorAll("video");
return Array.from(C).find(function(W){return W==null?void 0:W.style})},e=function(){var C=Z();
if(C){k(C.getBoundingClientRect().width);x(C.getBoundingClientRect().height);var W;E((C==null?void 0:(W=C.style)==null?void 0:W.left)||"0px");var y;X((C==null?void 0:(y=C.style)==null?void 0:y.top)||"0px")}};
_.tl(function(){var C=V();if(C){var W,y,G;if(((W=_.mZ())==null?void 0:W.getPlayerState())===-1&&Math.round(((G=(y=_.mZ())==null?void 0:y.getVideoAspectRatio())!=null?G:0)*100)!==Math.round(I()/l()*100)){C.style.display="none";var Nr,o6;x(I()/((o6=(Nr=_.mZ())==null?void 0:Nr.getVideoAspectRatio())!=null?o6:1))}}},"RdGxIf");
var O=function(){e()},L;
_.tq(function(){e();var C;if(!(w==null?0:(C=w())==null?0:C.transformationMatrix))throw Error("im");var W;(W=_.mZ())==null||W.addEventListener("onStateChange",Q);if(window.ResizeObserver){if(C=Z())L=new ResizeObserver(O),L.observe(C)}else window.addEventListener("resize",e);_.R2(function(){var y;(y=_.mZ())==null||y.removeEventListener("onStateChange",Q);L?L.disconnect():window.removeEventListener("resize",e)})});
var r=function(){var C,W,y=(W=w==null?void 0:(C=w())==null?void 0:C.transformationMatrix)!=null?W:[];C=I();W=l();for(var G=[],Nr=0,o6=-1;Nr<y.length;Nr++)Nr%3===0&&(o6++,G[o6]=[]),G[o6].push(y[Nr]);y=new NU(G);G=new NU([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);G=y.multiply(G);y=new NU([[0,0],[0,0],[0,0],[0,0]]);for(Nr=0;Nr<G.getSize().width;Nr++){o6=ER(G,0,Nr);var lI=ER(G,1,Nr);if(o6===null||lI===null)throw Error("hm`"+(Nr+1).toString());ci(y,Nr,0,o6*C);ci(y,Nr,1,lI*W)}C=ER(y,0,0);Nr=ER(y,1,0);W=ER(y,0,1);
o6=ER(y,1,1);if(C===null||Nr===null||W===null||o6===null)throw Error("fm");G=Ofg(C,Nr,W,o6);lI=ER(y,3,0);y=ER(y,3,1);if(lI===null||y===null)throw Error("gm");y=Ofg(C,lI,W,y);o6=(Number((o6*-1).toFixed(2))-Number((W*-1).toFixed(2)))/(Number(Nr.toFixed(2))-Number(C.toFixed(2)));lI=Math.atan(o6)*180/Math.PI;Nr=o6===Number.POSITIVE_INFINITY?-90:o6===Number.NEGATIVE_INFINITY?90:Object.is(o6,-0)?180:o6===0?0:o6>0?lI*-1:C<Nr?lI*-1:Math.abs(lI)+180;return"left:calc("+C+"px + "+f()+"); top:calc("+(W+"px + "+
U()+"); width:")+(G+"px; height:")+(y+"px; transform:rotate(")+(Nr+"deg);")};
return _.m(nY7,{root:"#sticker-layer"},function(){return _.m("yt-overlay-sticker",{el:_.wn(H),style:r,class:"ytOverlayStickerHost"},b)})},"Ni");var bWI=_.b8(function(Y){function b(){var Q,Z,e,O,L=(Z=_.v((Q=X())==null?void 0:Q.command,_.nL))==null?void 0:(e=Z.item)==null?void 0:(O=e.notificationTextRenderer)==null?void 0:O.successResponseText;if(L)_.Xx(V.value,"yt-open-popup-action",[_.bW(L),V.value]);else if(I())tUb(I(),V.value);else{var r;tUb((r=X())==null?void 0:r.command,V.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var w=Y.data;var V=_.GM("svg"),H=_.N(_.kw(!1,void 0,"T9Bq7b"));Y=H.next().value;var f=H.next().value,E=_.N(_.kw(!1,void 0,"iMHq9c"));H=E.next().value;var U=E.next().value,X=function(){var Q;return _.v((Q=w())==null?void 0:Q.popUp,GR7)},I=function(){var Q;
return(Q=w())==null?void 0:Q.command},k=function(){return _.v(I(),_.sH)!==void 0};
E=_.Q_(function(){b();return!1});
var l={},x={};return _.m("svg",{"on:mouseover":_.Q_(function(){k()&&f(!0);U(!0);return!1}),
"on:mouseout":_.Q_(function(){f(!1);U(!1);return!1}),
"on:keydown":_.Q_(function(Q){Q.key==="Enter"&&b();return!1}),
"on:focus":_.Q_(function(){k()&&f(!0);return!1}),
"on:blur":_.Q_(function(){k()&&f(!1);return!1}),
el:V,tabindex:0,"aria-label":function(){var Q;return(Q=w())==null?void 0:Q.a11yString},
id:"player-overlay-video-interaction-svg",class:_.hj("ytPlayerOverlayInteractionInteractionsSvg",(l.ytPlayerOverlayInteractionInteractionsSvgHover=Y,l),(x.ytPlayerOverlayInteractionInteractionsSvgHideOutline=H,x)),role:"button","on:click":E})},"Pi");_.f_(_.b8(function(Y){var b=Y.data;_.tq(function(){var w;if((w=b())==null?0:w.trackingParams){var V;_.Qd().graftServerVe((V=b().trackingParams)!=null?V:"")}});
return _.m("yt-player-overlay-interaction",null,_.m(YnR,{region:function(){var w,V;return(w=b())==null?void 0:(V=w.regions)==null?void 0:V[0]}},_.m(bWI,Object.assign({},Y))))},"Oi"),"yt-player-overlay-interaction",{props:{data:_.YX}});var Xi=function(){var Y=_.F.apply(this,arguments)||this;Y.showScrubber=!1;Y.isWatchWhileMode=!1;Y.enableRemixButton=_.q("web_enable_shorts_remix_handoff_ep");Y.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");Y.enableNewStickers=_.q("use_shorts_sticker_overlay_web");Y.anchoredPanelActive=!1;Y.enableLivingroomLayout=_.q("reels_enable_livingroom_layout");Y.enablePlayerMetadataContainer=_.q("reels_web_enable_metadata_container");Y.enableSqueezebackPanels=_.q("web_shorts_enable_squeezeback_panels");
Y.useAspectRatio=_.q("web_use_aspect_ratio");Y.isSqueezebackActive=!1;Y.smallScreenSqueezeback=!1;Y.isPlayerStarted=!1;Y.overlayDensity=0;Y.isOverlay=!1;Y.isImmersive=!1;Y.isImmersiveHorizontal=!1;Y.isFullscreen=!1;Y.onWindowResized=function(){var b;Y.set("isImmersive",((b=window.getComputedStyle(Y.hostElement))==null?void 0:b.getPropertyValue("--immersive-mode-on"))==="1");Y.set("isImmersiveHorizontal",Y.isImmersive&&Y.enableLivingroomLayout&&!Y.isWatchWhileMode)};
return Y};
_.P(Xi,_.F);_.g=Xi.prototype;_.g.updateIsOverlay=function(Y){this.isOverlay=Y.detail.value};
_.g.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.q("web_enable_flexible_overlay")||_.q("web_enable_format_first")||_.q("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.g.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.g.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.g.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.g.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.g.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.g.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.g.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",_.UJ("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.UJ("reels_action_justified_content")||"flex-start")};
_.g.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}}};
_.g.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.sa("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.sa("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.sa("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.sa("SHARE_LABEL",
void 0,"Share")}}});_.q("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.sa("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()};
_.g.setEmptyOverlayMetadata=function(){_.q("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}))};
_.up.Object.defineProperties(Xi.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.infoPanel)}}});
Xi.prototype.onIsActiveChanged=Xi.prototype.onIsActiveChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Xi.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Xi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Xi.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Xi.prototype,"ytdGuideStateAwareBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Xi.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],Xi.prototype,"isActive",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Xi.prototype,"hidden",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Xi.prototype,"useShortsIcon",void 0);_.z([_.R({value:"left"}),_.K("design:type",String)],Xi.prototype,"buttonTooltipPosition",void 0);
_.z([_.R({value:_.q("reels_enable_livingroom_layout")?"top":"left"}),_.K("design:type",String)],Xi.prototype,"likeButtonTooltipPosition",void 0);_.z([_.R({value:"none"}),_.K("design:type",String)],Xi.prototype,"textTransform",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"showScrubber",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"isWatchWhileMode",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.infoPanel"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xi.prototype,"hasInfoPanel",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"enableRemixButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"enableAnchoredPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"enableNewStickers",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"anchoredPanelActive",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"enableLivingroomLayout",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Xi.prototype,"enablePlayerMetadataContainer",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"enableSqueezebackPanels",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"useAspectRatio",void 0);_.z([_.R({selector:_.LMM,reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"isSqueezebackActive",void 0);_.z([_.R({selector:QeF,reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"smallScreenSqueezeback",void 0);_.z([_.R({selector:vYN}),_.K("design:type",Object)],Xi.prototype,"isPlayerStarted",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"overlayDensity",void 0);_.z([_.R(),_.K("design:type",Object)],Xi.prototype,"isOverlay",void 0);_.z([_.R({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.K("design:type",Boolean)],Xi.prototype,"isShortsOverlay",void 0);_.z([_.R(),_.K("design:type",Object)],Xi.prototype,"isImmersive",void 0);_.z([_.R(),_.K("design:type",Object)],Xi.prototype,"isImmersiveHorizontal",void 0);
_.z([_.R({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.K("design:type",Boolean)],Xi.prototype,"isShortsImmersive",void 0);_.z([_.R({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.K("design:type",Object)],Xi.prototype,"buttonOverride",void 0);_.z([_.R({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.K("design:type",Object)],Xi.prototype,"actionBarButtonOverride",void 0);
_.z([_.R({selector:_.s1,reflectToAttribute:!0}),_.K("design:type",Object)],Xi.prototype,"isFullscreen",void 0);_.z([_.lr("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xi.prototype,"onIsActiveChanged",null);_.z([_.S({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Xi);
_.a(Xi,"ytd-reel-player-overlay-renderer",function(){if(JGQ!==void 0)return JGQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JGQ=Y},{mode:1});var wSX;var DG=function(){var Y=_.F.apply(this,arguments)||this;Y.videoDuration=0;Y.playedTime=0;Y.isActive=!1;Y.JSC$19750_playerEvents=new Map;return Y};
_.P(DG,_.F);_.g=DG.prototype;_.g.created=function(){this.JSC$19750_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19750_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.g.attached=function(){this.getPlayerAndInitializeListeners()};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19750_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Io(this,this.onPageChanged))};
_.g.getPlayerAndInitializeListeners=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return b=_.V4(),b?_.D(w,b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Io(Y,Y.onPageChanged)),w.jumpTo(0));Y.player=w.yieldResult;Y.initializePlayerListeners();_.om(w)})};
_.g.onPageChanged=function(Y){var b=this;return _.c(function(w){if(w.nextAddress==1)return Y.detail.newPageType!=="ytd-shorts"?w.return():_.D(w,_.Hv().getPlayerPromise(),2);b.player=w.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Io(b,b.onPageChanged));_.om(w)})};
_.g.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19750_playerEvents)};
_.g.onVideoDataChange=function(Y){var b=this;return _.c(function(w){if(!b.player||Y.type!=="newdata")return w.return();b.videoDuration=_.q("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(Y.playertype).seekableEnd:b.player.getDuration(Y.playertype);b.playedTime=0;_.om(w)})};
_.g.onVideoProgress=function(Y){var b=this,w,V;return _.c(function(H){if(!b.player)return H.return();w=b.player.getPresentingPlayerType();V=b.player.getPlayerState();b.videoDuration=_.q("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(w).seekableEnd:b.player.getDuration(w);b.playedTime=V===0?b.videoDuration:Y;_.om(H)})};
_.g.getPercentPlayed=function(Y,b){return Y?_.rp(b/Y,0,1):0};
_.up.Object.defineProperties(DG.prototype,{percentPlayed:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration&&this.playedTime?Math.floor(this.getPercentPlayed(this.videoDuration,this.playedTime)*100):0}},
percentPlayedStyle:{configurable:!0,enumerable:!0,get:function(){var Y="";return Y=this.videoDuration&&this.playedTime?Y+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):Y+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],DG.prototype,"componentBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],DG.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],DG.prototype,"player",void 0);_.z([_.R(),_.K("design:type",Object)],DG.prototype,"videoDuration",void 0);_.z([_.R(),_.K("design:type",Object)],DG.prototype,"playedTime",void 0);_.z([_.R(),_.K("design:type",Object)],DG.prototype,"isActive",void 0);
_.z([_.t("videoDuration","playedTime"),_.K("design:type",Number),_.K("design:paramtypes",[])],DG.prototype,"percentPlayed",null);_.z([_.t("videoDuration","playedTime"),_.K("design:type",Object),_.K("design:paramtypes",[])],DG.prototype,"percentPlayedStyle",null);_.z([_.t("videoDuration","isActive"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],DG.prototype,"hideProgressBar",null);
_.a(DG,"ytd-progress-bar-line",function(){if(wSX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-progress-bar-line--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="progress-bar-line" hidden="[[hideProgressBar]]" role="progressbar" aria-valuenow$="[[percentPlayed]]" class="style-scope ytd-progress-bar-line">\n  <div class="progress-bar-background style-scope ytd-progress-bar-line"></div>\n  <div class="progress-bar-played style-scope ytd-progress-bar-line" style$="[[percentPlayedStyle]]"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);wSX=Y}Y=wSX;return Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var Vbb;_.f_(_.HhX,"ytm-closed-captioning-button",{props:{captionIconType:_.YX,onClick:_.gn,ariaLabel:_.YX,ariaPressed:_.YX,isOverlay:_.gn,isModern:_.gn}});_.f_(_.q3I,"desktop-shorts-volume-controls",{props:{orientation:_.YX}});var mr=function(){var Y=_.F.apply(this,arguments)||this;Y.playerState=null;Y.isMuted=!1;Y.shortsModernControlsEnabled=_.q("web_shorts_modern_controls");Y.volumeControlsOrientationState=_.q("web_shorts_modern_controls")?"vertical_down":"horizontal_right";Y.isOverlay=!0;Y.captionIconType=-1;Y.ariaLabel="";Y.overlayDensity=0;Y.JSC$19753_playerEvents=new Map;Y.onClosedCaptionsButtonClick=function(){Y.player&&_.F8(Y.player)&&(Y.player.toggleSubtitles(),Y.updateCaptionIconType())};
return Y};
_.P(mr,_.F);_.g=mr.prototype;_.g.created=function(){this.JSC$19753_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19753_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19753_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.g.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.tj(28662);this.playPauseButtonClientVE=_.tj(36842);this.fullscreenButtonToggleOffClientVE=_.tj(222256);this.fullscreenButtonToggleOnClientVE=_.tj(222257);var Y=_.dO(),b=_.R3();Y&&b&&(_.q("combine_ve_grafts")?(_.oC(_.Qd(),this.muteButtonClientVE,b),_.oC(_.Qd(),this.playPauseButtonClientVE,b)):_.$7(Y,b,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.g.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19753_playerEvents),this.player=null)};
_.g.updateCaptionIconType=function(){var Y=-1,b=void 0,w=_.sa("CLOSED_CAPTIONS_DISABLED");this.player&&_.F8(this.player)&&(_.CHb(this.player)?(b=!0,w=_.sa("CLOSED_CAPTIONS_ON"),Y=1):(b=!1,w=_.sa("CLOSED_CAPTIONS_OFF"),Y=0));this.captionIconType=Y;this.ariaPressedState=b;this.ariaLabel=w};
_.g.getPlayerAndInitializeListeners=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return b=_.V4(),b?_.D(w,b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Io(Y,Y.onPageChanged)),w.jumpTo(0));Y.player=w.yieldResult;Y.initializePlayerListeners();_.om(w)})};
_.g.onPageChanged=function(Y){var b=this;return _.c(function(w){if(w.nextAddress==1)return Y.detail.newPageType!=="ytd-shorts"?w.return():_.D(w,_.Hv().getPlayerPromise(),2);b.player=w.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Io(b,b.onPageChanged));_.om(w)})};
_.g.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19753_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.g.onPlayerStateChange=function(Y){this.playerState=Y};
_.g.onPlayerVolumeChange=function(Y){this.isMuted=Y.muted};
_.g.onPlayPauseButtonClick=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,_.Hv().getPlayerPromise(),2);b=V.yieldResult;(w=_.dO())&&Y.playPauseButtonClientVE&&_.J1(w,Y.playPauseButtonClientVE);b.getPlayerState()!==1?b.playVideo():b.pauseVideo();_.om(V)})};
_.g.computePlayPauseIcon=function(Y){return Y===2||Y===-1||Y===5?_.q("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.q("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.q("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.g.computeFullscreenLabel=function(Y){return Y?_.sa("FULLSCREEN_EXIT_LABEL"):_.sa("FULLSCREEN_ENTER_LABEL")};
_.g.computePlayPauseLabel=function(Y){return Y===1||Y===3?_.sa("PLAYER_LABEL_PAUSE"):_.sa("PLAYER_LABEL_PLAY")};
_.g.onMuteButtonClick=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,_.Hv().getPlayerPromise(),2);b=V.yieldResult;(w=_.dO())&&Y.muteButtonClientVE&&_.J1(w,Y.muteButtonClientVE);b.isMuted()?b.unMute(!0):b.mute(!0);_.om(V)})};
_.g.computeMuteIcon=function(Y){return Y?"miniplayer:volume-off":"miniplayer:volume-up"};
_.g.computeMuteLabel=function(Y){return Y?_.sa("PLAYER_LABEL_UNMUTE"):_.sa("PLAYER_LABEL_MUTE")};
_.g.onFullscreenButtonClick=function(){var Y=_.dO();Y&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.J1(Y,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.J1(Y,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.mnb()};
_.up.Object.defineProperties(mr.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var Y=this;return{disabled:!1,accessibilityLabel:this.computePlayPauseLabel(this.playerState),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computePlayPauseLabel(this.playerState),onTap:function(){Y.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.q("web_shorts_modern_controls")?"player_full_exit_alt":_.q("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.q("web_shorts_modern_controls")?"player_full_enter_alt":_.q("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],mr.prototype,"componentBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],mr.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],mr.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"player",void 0);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"playerState",void 0);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"isMuted",void 0);
_.z([_.R({computed:"computePlayPauseIcon(playerState)"}),_.K("design:type",String)],mr.prototype,"playPauseIcon",void 0);_.z([_.R({computed:"computeMuteIcon(isMuted)"}),_.K("design:type",String)],mr.prototype,"muteIcon",void 0);_.z([_.R({selector:_.s1}),_.K("design:type",Boolean)],mr.prototype,"isFullscreen",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mr.prototype,"shortsModernControlsEnabled",void 0);
_.z([_.R(),_.K("design:type",Object)],mr.prototype,"volumeControlsOrientationState",void 0);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"isOverlay",void 0);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"captionIconType",void 0);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"ariaLabel",void 0);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"ariaPressedState",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],mr.prototype,"overlayDensity",void 0);
_.z([_.t("playerState"),_.K("design:type",Object),_.K("design:paramtypes",[])],mr.prototype,"playPauseButtonData",null);_.z([_.t("isFullscreen"),_.K("design:type",Object),_.K("design:paramtypes",[])],mr.prototype,"fullscreenButtonData",null);_.z([_.R(),_.K("design:type",Object)],mr.prototype,"onClosedCaptionsButtonClick",void 0);_.z([_.t("isFullscreen"),_.K("design:type",String),_.K("design:paramtypes",[])],mr.prototype,"fullscreenIcon",null);
_.a(mr,"ytd-shorts-player-controls",function(){if(Vbb===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);Vbb=Y}Y=Vbb;return Y},{mode:1});var HWg;_.f_(_.P__,"yt-interstitial-view-model",{props:{data:_.YX}});var geb=_.b8(function(Y){var b=Y.data;return _.m("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.m("h1",{class:"reelWatchBreakViewModelHostTitle"},_.m(_.wv,{text:function(){return b().title}})),_.m("h2",{class:"reelWatchBreakViewModelHostBody"},_.m(_.wv,{text:function(){return b().body},
isOverlay:!0})),_.m(_.OH,{data:function(){return b().buttons}},{buttonViewModel:function(w,V){return _.m("div",{class:function(){return V()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.m(_.a1,{data:w.data}))}}))},"Qi");
geb.idomCompat=!0;_.f_(geb,"reel-watch-break-view-model",{props:{data:_.YX}});var oK=function(){return _.F.apply(this,arguments)||this};
_.P(oK,_.F);oK.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}}};
_.up.Object.defineProperties(oK.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.renderer,if7)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var Y;return!!_.v((Y=this.data)==null?void 0:Y.renderer,AGb)}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],oK.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],oK.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],oK.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.renderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oK.prototype,"isSurvey",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.renderer"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],oK.prototype,"isInterstitialViewModel",null);_.z([_.S({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],oK);
_.a(oK,"ytd-reel-non-video-content-renderer",function(){if(HWg!==void 0)return HWg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-non-video-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="nvc-container" class="nvc-container style-scope ytd-reel-non-video-content-renderer">\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return HWg=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var fnN;_.f_(_.x_7,"desktop-shorts-player-controls",{});var IK=function(){var Y=_.F.apply(this,arguments)||this;Y.isPlayerPaused=!1;Y.isPlayerStarted=!1;Y.showPlayerControls=!1;Y.showScrubber=!1;Y.autoHideJobId=0;Y.modern=_.q("web_button_rework");Y.overlayType=_.UJ("web_shorts_expanded_overlay_type");Y.panelData=void 0;Y.isWatchWhileMode=!1;Y.hasError=!1;Y.panelShowDelayMs=1;Y.scrubberComponent={};Y.isFullscreen=!1;Y.shouldHideOverlay=!1;Y.enableAnchoredPanel=_.q("desktop_shorts_v2_anchored_panel");Y.enablePersistentAnchoredPanel=_.q("desktop_shorts_v2_persistent_anchored_panel");
Y.hideWatchWhilePanel=_.q("web_shorts_hide_watch_while_panel");Y.useAspectRatio=_.q("web_use_aspect_ratio");Y.isPersistentPanelActive=!1;Y.anchoredPanelActive=!1;Y.isShortsPipActive=!1;Y.smallScreenSqueezeback=!1;Y.enableFlexibleOverlay=_.q("web_enable_flexible_overlay");Y.overlayDensity=0;Y.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};Y.onWindowResized=function(){_.ir(Y,
"calculateOverlayDensity",function(){Y.calculateOverlayDensity()},100)};
return Y};
_.P(IK,_.F);_.g=IK.prototype;_.g.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.g.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.g.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var Y=_.fH().resolve(_.Za);this.isWatchWhileMode&&(_.q("web_enable_shorts_new_carousel")?_.Lb.addJob(function(){Y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):Y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.g.handleShowReelsCommentsOverlayCommand=function(Y){Y=_.v(Y,$g7);this.isActive&&(Y==null?0:Y.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.g.updateEngagementPanelVisibility=function(Y,b){Y&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:b?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:Y}})};
_.g.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.g.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.fH().resolve(_.P5).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.g.handleWatchWhilePanelScrimClick=function(){var Y=_.fH().resolve(_.Za);this.activeWatchWhilePanel&&(Y.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.g.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.g.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:_.q("web_enable_shorts_new_carousel")?0:void 0}}};
_.g.handlePlayerClick=function(Y){var b=this,w,V;if((V=(w=window).matchMedia)!=null&&V.call(w,"(any-pointer: coarse)").matches||!Y)this.showPlayerControls=!0,_.Lb.cancelJob(this.autoHideJobId),this.autoHideJobId=_.MY(_.Lb,function(){b.showPlayerControls=!1},4E3)};
_.g.isFirstReel=function(){return this.index===0};
_.g.handleMouseenter=function(){_.Lb.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.g.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.g.handleScrubberEnter=function(){this.showScrubber=!0};
_.g.handleScrubberLeave=function(){this.showScrubber=!1};
_.g.maybeLogNonDefaultAspectRatio=function(){var Y;(Y=this.data)!=null&&Y.thumbnail&&this.isActive&&.5625!==seA(this.data.thumbnail)&&_.Cdv("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.g.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var Y=document.querySelector("#shorts-container");if(Y){Y=Y.offsetWidth/2-this.playerContainer.offsetWidth/2;Y=Y>=368?1:Y>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&Y===1&&(Y=0);this.isPersistentPanelActive&&(Y=0);window.innerWidth<=599&&(Y=2);this.overlayDensity=Y;var b;(b=this.onOverlayDensityChanged)==null||b.call(this,this.index,this.overlayDensity)}}};
_.g.onOverlayDensityChange=function(){var Y;(Y=this.onOverlayDensityChanged)==null||Y.call(this,this.index,this.overlayDensity);(Y=_.E6(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&Y.set("overlayDensity",this.overlayDensity);if(Y=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))Y.overlayDensity=this.overlayDensity};
_.g.isVideoContent=function(Y){_.fH().resolve(_.P5);return!!_.v(Y,_.BH)};
_.g.isNonVideoContent=function(Y){_.fH().resolve(_.P5);return!!_.v(Y,_.rY)};
_.g.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.up.Object.defineProperties(IK.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var Y,b;return _.q("web_enable_format_first")||((Y=this.data)==null?void 0:Y.adsOverlay)&&_.q("web_enable_format_first_ads_only")||((b=this.data)==null?void 0:b.reelPlayerOverlayRenderer)&&_.q("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var Y;return!this.isActive||!this.isPlayerStarted||(Y=this.data)!=null&&Y.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.data)==null?0:Y.command)&&this.isVideoContent(this.data.command)){var b,w;if(((b=this.data)==null?0:b.adsOverlay)&&Object.keys((w=this.data)==null?void 0:w.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var V,H;if(((V=this.data)==null?0:V.reelPlayerOverlayRenderer)&&Object.keys((H=this.data)==null?void 0:H.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
IK.prototype.onOverlayDensityChange=IK.prototype.onOverlayDensityChange;IK.prototype.calculateOverlayDensity=IK.prototype.calculateOverlayDensity;IK.prototype.maybeLogNonDefaultAspectRatio=IK.prototype.maybeLogNonDefaultAspectRatio;IK.prototype.onEngagementPanelsChanged=IK.prototype.onEngagementPanelsChanged;IK.prototype.onScrubberDataChange=IK.prototype.onScrubberDataChange;IK.prototype.updateShouldHideOverlay=IK.prototype.updateShouldHideOverlay;
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],IK.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],IK.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],IK.prototype,"index",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],IK.prototype,"isActive",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],IK.prototype,"isHiddenInDom",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"isPlayerPaused",void 0);_.z([_.R({selector:vYN}),_.K("design:type",Object)],IK.prototype,"isPlayerStarted",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"showPlayerControls",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"showScrubber",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"autoHideJobId",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"overlayType",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],IK.prototype,"ytdReduxBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],IK.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"watchWhileEngagementPanels",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"panelData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"isWatchWhileMode",void 0);_.z([_.R(),_.K("design:type",String)],IK.prototype,"activeWatchWhilePanel",void 0);
_.z([_.R(),_.K("design:type",Object)],IK.prototype,"hasError",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"panelShowDelayMs",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"scrubberComponent",void 0);_.z([_.R({selector:_.s1,reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"isFullscreen",void 0);_.z([_.R(),_.K("design:type",Object)],IK.prototype,"shouldHideOverlay",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"enableAnchoredPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"enablePersistentAnchoredPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"hideWatchWhilePanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"useAspectRatio",void 0);
_.z([_.R({selector:_.LMM,reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"isPersistentPanelActive",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"anchoredPanelActive",void 0);_.z([_.R({selector:_.Qm,reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"isShortsPipActive",void 0);_.z([_.R({selector:QeF,reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"smallScreenSqueezeback",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],IK.prototype,"enableFormatFirst",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"enableFlexibleOverlay",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],IK.prototype,"overlayDensity",void 0);_.z([_.R(),_.K("design:type",Function)],IK.prototype,"onOverlayDensityChanged",void 0);
_.z([_.R(),_.t("isActive","hasError"),_.K("design:type",Object),_.K("design:paramtypes",[])],IK.prototype,"shouldRenderPlayerElements",null);_.z([_.R(),_.t("isActive","isWatchWhileMode"),_.K("design:type",Object),_.K("design:paramtypes",[])],IK.prototype,"watchWhileOrPersistentActive",null);_.z([_.lr("isActive","hasError","showingExpandedOverlay"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IK.prototype,"updateShouldHideOverlay",null);
_.z([_.R({reflectToAttribute:!0}),_.t("isActive","isPlayerStarted","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],IK.prototype,"shouldRenderScrubber",null);_.z([_.lr("shouldRenderScrubber"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IK.prototype,"onScrubberDataChange",null);_.z([_.t("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.K("design:type",Object),_.K("design:paramtypes",[])],IK.prototype,"overlayComponent",null);
_.z([_.lr("watchWhileEngagementPanels"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IK.prototype,"onEngagementPanelsChanged",null);_.z([_.xZ("#player-container"),_.K("design:type",HTMLElement)],IK.prototype,"playerContainer",void 0);_.z([_.xZ("#cinematic-container"),_.K("design:type",HTMLElement)],IK.prototype,"cinematicContainer",void 0);
_.z([_.lr("isPersistentPanelActive","data.thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IK.prototype,"maybeLogNonDefaultAspectRatio",null);_.z([_.lr("isPersistentPanelActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IK.prototype,"calculateOverlayDensity",null);_.z([_.lr("overlayDensity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IK.prototype,"onOverlayDensityChange",null);
_.z([_.S({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],IK);
_.a(IK,"ytd-reel-video-renderer",function(){if(fnN!==void 0)return fnN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return fnN=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var kl=function(){var Y=_.F.apply(this,arguments)||this;Y.isPreviousPageShorts=!1;Y.index=0;Y.delayedActiveIndex=0;Y.playablePreviousIndex=null;Y.isPlayerPaused=!1;Y.isPlayerStarted=!1;Y.intersectionObserverThreshold=.6;Y.fitToVisibleBounds=!1;Y.pageSubtype="shorts";Y.enablePreviousContinuation=_.q("shorts_in_playlists_web");Y.shortsPipEnabled=_.q("web_shorts_pip");Y.isDark=document.documentElement.hasAttribute("dark");Y.shortsViewTransitions=_.q("web_shorts_view_transitions");Y.isFullscreen=!1;Y.isShortsPipActive=
!1;Y.buttonOverride={iconPosition:"icon-only",size:"XL"};Y.anchoredPanelActive=!1;Y.isActive=!1;Y.smallScreenPersistentPanel=!1;Y.isPersistentPanelActive=!1;Y.smallScreenSqueezeBack=!1;Y.enableScrollIntoViewCenter=_.q("web_scroll_into_view_center");Y.formatFirst=_.q("web_enable_format_first")||_.q("web_enable_format_first_ads_only")||_.q("web_enable_format_first_organic_only");Y.enableFlexibleOverlay=_.q("web_enable_flexible_overlay");Y.useAspectRatio=_.q("web_use_aspect_ratio");Y.isShortsInitialized=
!1;Y.hidePreviousButtonImmediately=!1;Y.showPreviousButtonImmediately=!1;Y.endOfNextContinuation=!1;Y.currentPlayerIndex=0;Y.nextReelVe=_.tj(56921);Y.prevReelVe=_.tj(56922);Y.loopToggleOffVe=_.tj(198013);Y.loopToggleOnVe=_.tj(198014);Y.ambientModeToggleVe=_.tj(227860);Y.reelPlayerPausedStateRendererVe=_.tj(141313);Y.storedPlaybackSpeed=null;Y.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};Y.onOverlayDensityChanged=function(b,w){var V;(V=Y.getActiveReelVideo(b))==null||V.setAttribute("overlay-density",String(w))};
return Y};
_.P(kl,_.F);_.g=kl.prototype;
_.g.deflateInactivePreviousSlides=function(){var Y=_.cQ("web_shorts_deflate_inactive_slides_aggressive_distance");if(Y>0&&this.shortsProcessedSequence&&this.activeIndex){Y=this.activeIndex-Y;for(var b=0;b<=Y;b++){var w=void 0;((w=this.shortsProcessedSequence[b].reelPlayerOverlayRenderer)==null?0:w.metapanel)&&this.set("shortsProcessedSequence."+b+".reelPlayerOverlayRenderer",{});w=void 0;((w=this.shortsProcessedSequence[b].adsOverlay)==null?0:w.adSlotMetadata)&&this.set("shortsProcessedSequence."+b+
".adsOverlay",{})}}};
_.g.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.g.onResize=function(){var Y=_.u3(),b=Y.dispatch,w=this.calculateIsSmallWidth();b.call(Y,_.Uf({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:w}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.g.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:_.q("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.g.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var Y=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,b=Y,w=0;Y<250&&(b=Y+this.shortsInnerContainer.clientWidth,w=24);_.m_(this.hostElement,{"--ytd-shorts-header-width":b+"px","--ytd-shorts-top-spacing":w+"px"})}};
_.g.isFirstShorts=function(Y){return Y?this.index===-Y.length:this.index===0};
_.g.isActiveReel=function(Y,b,w){w&&(b=this.calculatePrevIndex(b,w));return Y===b};
_.g.onFullscreenChange=function(){if(_.q("web_fullscreen_shorts")){var Y;(Y=this.getActiveReelVideo(this.activeIndex))==null||Y.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.fH().resolve(_.Ck).close(!0)}};
_.g.engagementPanelsChanged=function(){var Y;this.watchWhileEngagementPanels=(Y=this.data)==null?void 0:Y.engagementPanels};
_.g.unregisterPanels=function(){var Y=_.fH().resolve(_.Za);if(this.watchWhileEngagementPanels)for(var b=_.N(this.watchWhileEngagementPanels),w=b.next();!w.done;w=b.next()){var V=void 0,H=void 0;w=(V=w.value.engagementPanelSectionListRenderer)==null?void 0:(H=V.identifier)==null?void 0:H.tag;Y&&w&&Y.panelMap.delete(w)}};
_.g.isVideoContent=function(Y){return this.isVideoContentCommand(Y==null?void 0:Y.command)};
_.g.getActiveReelVideo=function(Y){return _.E6(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+Y+'"]')};
_.g.calculatePrevIndex=function(Y,b){return b?Y-((b==null?void 0:b.length)||0):-1};
_.g.onKeydown=function(Y){var b=_.JL(Y)||[];if(!_.XQQ(b))if(Y.code==="ArrowUp")Y.preventDefault(),this.handlePrevButtonClick();else if(Y.code==="ArrowDown")Y.preventDefault(),this.handleNextButtonClick();else if(Y.code==="KeyM")this.toggleMuteUnmuteVideo();else if(Y.code==="KeyK"||Y.code==="Space")this.togglePlayPauseVideo();else if((Y.code==="KeyA"||Y.code==="ArrowLeft")&&_.q("web_shorts_keyboard_enable_seek_shortcuts")){var w;(w=this.player)==null||w.seekBy(-5)}else if((Y.code==="KeyD"||Y.code===
"ArrowRight")&&_.q("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var V;(V=this.player)==null||V.seekBy(5)}};
_.g.onServiceRequestCompleted=function(Y,b){Y=b.data;Y.continuationEndpoint&&Y.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:Y.entries,continuationEndpoint:Y.continuationEndpoint}}):Y.prevContinuationEndpoint&&Y.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:Y.prevEntries,prevContinuationEndpoint:Y.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.g.handleEngagementPanelVisibilityChanged=function(Y,b){var w=_.fH().resolve(_.Za);if(Y&&w){var V,H=((V=Y.identifier)==null?void 0:V.tag)||Y.panelIdentifier||Y.targetId;if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==H){w.hidePanel(this.activePanel);var f;this.activePanel=((f=Y.identifier)==null?void 0:f.tag)||Y.panelIdentifier}else this.isPersistentPanelActive=!0,_.u3().dispatch(L8s(!0)),this.anchoredPanelActive=!0,this.activePanel=H;else b==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===H&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.u3().dispatch(L8s(!1)))}};
_.g.handlePanelScrimClick=function(){var Y=_.fH().resolve(_.Za);this.activePanel&&(Y.hidePanel(this.activePanel),_.u3().dispatch(L8s(!1)))};
_.g.getShortsLoopSetting=function(){var Y,b,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:return _.q("kevlar_shorts_auto_advance")?_.D(f,_.pp.getInstance(),2):f.return(!0);case 2:return(Y=f.yieldResult)?_.D(f,Y.get("sfvles"),3):f.return(!0);case 3:return w=(b=f.yieldResult)!=null?b:!1,_.D(f,Y.get("sfvle"),4);case 4:return H=(V=f.yieldResult)!=null?V:!0,w?f.return(H):f.return(!0)}})};
_.g.handleSignalActionToggleLoopShortsOff=function(){var Y=this,b,w,V;return _.c(function(H){switch(H.nextAddress){case 1:if(!Y.player)return H.return();Y.player.setLoopVideo(!1);b=_.Qd();_.kV(b,Y.loopToggleOffVe);return _.D(H,_.pp.getInstance(),2);case 2:return(w=H.yieldResult)?_.D(H,w.set("sfvle",!1),3):H.return();case 3:return _.D(H,w.set("sfvles",!0),4);case 4:V=_.P0(),_.Ze(0,203,!1),_.Ze(0,204,!0),V.save(),_.om(H)}})};
_.g.handleSignalActionToggleLoopShortsOn=function(){var Y=this,b,w,V;return _.c(function(H){switch(H.nextAddress){case 1:if(!Y.player)return H.return();Y.player.setLoopVideo(!0);b=_.Qd();_.kV(b,Y.loopToggleOnVe);return _.D(H,_.pp.getInstance(),2);case 2:return(w=H.yieldResult)?_.D(H,w.set("sfvle",!0),3):H.return();case 3:return _.D(H,w.set("sfvles",!0),4);case 4:V=_.P0(),_.Ze(0,203,!0),_.Ze(0,204,!0),V.save(),_.om(H)}})};
_.g.handleSignalActionToggleCinematicShortsOn=function(){qp7(!0);var Y;(Y=this.JSC$19777_cinematicController)==null||_.kRd(Y,!0);_.kV(_.Qd(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.g.handleSignalActionToggleCinematicShortsOff=function(){qp7(!1);var Y;(Y=this.JSC$19777_cinematicController)==null||_.kRd(Y,!1);_.kV(_.Qd(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.g.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.g.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.g.unhideCurrentOverlay=function(){if(this.overlayContainer){var Y=this.overlayContainer.querySelector("#experiment-overlay");Y&&_.Lb.addLowPriorityJob(function(){Y.style.display="unset"},100)}};
_.g.getCurrentShort=function(){if(this.currentEndpoint){var Y=this.currentEndpoint;if(this.isNonVideoContentCommand(Y)){var b=_.v(Y,_.rY);return{reelNonVideoContentRenderer:_.v(b==null?void 0:b.renderer,_.u_o),command:Y}}if(this.data){var w;b=(w=_.v(this.currentEndpoint,_.BH))==null?void 0:w.thumbnail;var V;w=(V=this.data.overlay)==null?void 0:V.reelPlayerOverlayRenderer;_.fH().resolve(_.P5);Y=this.data;var H,f;V=(H=Y.overlay)==null?void 0:(f=H.shortsAdsRenderer)==null?void 0:f.adSlots;if(V!==void 0)V.length===
0?(_.gv("Shorts ads returned no ad slots."),Y=void 0):(V.length>1&&_.gv("Shorts ads has more than one ad slots."),Y=_.v(V[0],_.tZ8));else{var E,U;Y=_.v((E=Y.overlay)==null?void 0:(U=E.shortsAdsRenderer)==null?void 0:U.overlay,_.tZ8)}E=Y;Y=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.v(this.currentEndpoint,_.BH),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:w,thumbnail:b,command:Y,adsOverlay:E}}}};
_.g.created=function(){var Y=this;this.scrollToVideoThrottle=new _.Vm(function(b){var w;(w=Y.getActiveReelVideo(b))==null||w.scrollIntoView({behavior:"smooth",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.Vm(function(b){var w;(w=Y.getActiveReelVideo(b))==null||w.scrollIntoView({behavior:"auto",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.g.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.g.attached=function(){var Y=this;dgX(this);this.pageScrollElement=_.E6(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Io(this,this.processResetAction));_.q("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.q("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var b=Y.getActiveReelVideo(Y.activeIndex);
Y.maybeCreateIntersectionObserver();b==null||b.scrollIntoView({behavior:"instant",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"});Y.shortsContainer.style.overflowY="scroll"}))};
_.g.calculateSqueezebackPanelSize=function(){var Y=this,b=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Lb.addLowPriorityJob(function(){b<360?_.u3().dispatch(SpN(!0)):(Y.hostElement.style.setProperty("--anchored-panel-width",Math.min(b,480)+"px"),_.u3().dispatch(SpN(!1)))})};
_.g.detached=function(){var Y=_.fH().resolve(_.P5);Y.rootElement=void 0;var b;(b=Y.unsubscribeFromStore)==null||b.call(Y);Y.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Io(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.g.onResizeFinished=function(Y,b){var w=this,V=new ResizeObserver(function(){w.shortsContainer.style.overflowY="hidden";_.Lb.addLowPriorityJob(function(){b()},100)});
V.observe(Y);return V};
_.g.resetDocumentScrollTop=function(){var Y,b;if((Y=document)==null?0:(b=Y.scrollingElement)==null?0:b.scrollTop)document.scrollingElement.scrollTop=0};
_.g.loadPage_=function(Y){var b=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),Y){var w;if((w=_.v(this.currentEndpoint,_.BH))==null?0:w.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=Y;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){b.isPlayerStarted&&
(b.handleOnPlaybackCommand(),b.afterPlayerStarted=function(){})};
this.registerPanel(Y)}};
_.g.afterPlayerStarted=function(){};
_.g.handleOnPlaybackCommand=function(){if(_.q("web_shorts_comment_stickers")&&this.isPlayerStarted){var Y,b=(Y=_.v(this.currentEndpoint,_.BH))==null?void 0:Y.onPlaybackCommand;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.g.maybeCreateIntersectionObserver=function(){var Y=this,b=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==b){this.intersectionObserverThreshold=b;var w={rootMargin:"0px",threshold:b},V;(V=this.intersectionObserver)==null||V.disconnect();this.intersectionObserver=new IntersectionObserver(function(H){H=_.N(H);for(var f=H.next();!f.done;f=H.next())if(f=f.value,f.intersectionRatio>b){f=Number(f.target.id);if(isNaN(f))break;if(f===Y.index)break;
_.Vfe();Y.loadVideo(f);_.r5("r_vtc")}},w);
this.observeShorts()}};
_.g.observeShorts=function(){var Y=[].concat(_.Bt(_.E6(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;var w=void 0;(w=this.intersectionObserver)==null||w.observe(b)}};
_.g.initCsi=function(){_.ZJ("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var Y={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},b,w;if((b=this.playerData)==null?0:(w=b.cacheMetadata)==null?0:w.isCacheHit)Y.isCacheHit=!0;var V;if(b=(V=_.v(this.currentEndpoint,_.BH))==null?void 0:
V.prefetchTaskId)Y.prefetchInfo={taskId:b};_.Fx(Y)};
_.g.isAd=function(){var Y,b;return!!((Y=_.v(this.currentEndpoint,_.BH))==null?0:(b=Y.adClientParams)==null?0:b.isAd)};
_.g.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.g.getPlayerContainer=function(){var Y;return(Y=_.E6(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:Y.playerContainer};
_.g.onPlayerStateChange=function(Y){var b=this;this.isPlayerPaused=Y===2;Y!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?Y===1&&this.index===0&&(this.isPlayerStarted||_.u3().dispatch(f6(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.u3().dispatch(f6(!0)));this.player&&!this.player.getLoopVideo()&&_.Lb.addLowPriorityJob(function(){b.getShortsLoopSetting().then(function(w){var V;(V=b.player)==null||V.setLoopVideo(w)})});
this.isPlayerPaused&&_.q("web_shorts_paused_state_logging")&&_.Gu(_.dO(),[this.reelPlayerPausedStateRendererVe])};
_.g.isInBackground=function(){var Y=window.document.visibilityState;return!(!Y||Y==="visible")};
_.g.isShortPlayable=function(){if(_.q("kevlar_playable_short_killswitch"))return!0;var Y;return(Y=this.playerData)!=null&&Y.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.g.setNormalPlaybackSpeed=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.getPlayer().getPlayerPromise(),2);b=V.yieldResult;w=b.getPlaybackRate();w!==1&&(Y.storedPlaybackSpeed=w,b.setPlaybackRate(1));_.om(V)})};
_.g.restorePlaybackSpeed=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1)return Y.storedPlaybackSpeed===null?w.jumpTo(0):_.D(w,Y.getPlayer().getPlayerPromise(),3);b=w.yieldResult;b.setPlaybackRate(Y.storedPlaybackSpeed);Y.storedPlaybackSpeed=null;_.om(w)})};
_.g.playerDataChanged=function(){var Y=this,b,w,V,H,f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1){b=Y.getPlayer();_.q("web_shorts_dynamic_intersection_observer_threshold")&&((w=Y.intersectionObserver)==null||w.disconnect());if(Y.playerData){if(((V=Y.playerData.videoDetails)==null?void 0:V.videoId)!==((H=b.getPlayer())==null?void 0:H.getVideoData().video_id)){f={};if(E=_.v(Y.currentEndpoint,_.BH))f.watch_endpoint=E,E.endTimeSeconds&&(f.end=E.endTimeSeconds);b.loadVideoWithPlayerResponse(Y.playerData,
f)}}else return k.return();return Y.player?k.jumpTo(2):_.D(k,b.getPlayerPromise(),3)}k.nextAddress!=2&&(Y.player=k.yieldResult,Y.JSC$19777_playerStateChangeListener=Y.onPlayerStateChange.bind(Y),Y.player.addEventListener("onStateChange",Y.JSC$19777_playerStateChangeListener),_.q("kevlar_client_enable_shorts_player_bootstrap")&&_.uJ(),Y.scrollToVideoThrottle.fire(Y.index),Y.movePlayerToVideo(Y.index),_.Lb.addLowPriorityJob(function(){Y.getShortsLoopSetting().then(function(l){var x;(x=Y.player)==null||
x.setLoopVideo(l)})}),_.rBU.resolve(Y.player),Y.player.syncVolume(),Y.getPlayer().focusOnPlayer());
_.Lb.addLowPriorityJob(function(){Y.observeShorts()},100);
U=Y.player.getPlayerState(Y.player.getPresentingPlayerType());U!==1||Y.isPlayerStarted||_.u3().dispatch(f6(!0));Y.updateBackNavContainerWidth();X=_.v(Y.currentEndpoint,_.BH);((I=X)==null?0:I.startTimeSeconds)&&Y.player.seekTo(X.startTimeSeconds);if(Y.JSC$19777_cinematicController||Y.cinematicsInitializeJobId)return k.return();Y.cinematicsInitializeJobId=_.Lb.addLowPriorityJob(function(){Y.initCinematicController();Y.cinematicsInitializeJobId=void 0});
_.om(k)})};
_.g.onShortUndoDismiss=function(){var Y=this,b=F8X().pop();b!==void 0&&(_.TC(this,function(){Y.showCardWithIndex(b)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.g.onShortsDismiss=function(Y){if(Y=Y.detail.reelDismissalActionRenderer)(Y=_.v(Y.onDismissalCompletionRenderer,_.yK7))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:Y}}}),this.scrollAndDismissCard()};
_.g.processReelNonVideoContentDismissalCommand=function(Y){var b=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);Y=_.v(Y,yG7);this.activeDimissalTimeout=setTimeout(function(){b.scrollAndDismissCard()},Number(Y==null?void 0:Y.delayMs))};
_.g.scrollAndDismissCard=function(){var Y=this,b=this.index;F8X().push(b);_.TC(this,function(){var w=Y.getPlayableNextIndex();w!==null&&(w=Y.getActiveReelVideo(w),Y.hideCardWithIndex(b),w==null||w.scrollIntoView({behavior:"smooth",block:"nearest",inline:Y.enableScrollIntoViewCenter?"center":"start"}))})};
_.g.hideCardWithIndex=function(Y){if(Y=this.getActiveReelVideo(Y))Y.hidden=!0};
_.g.showCardWithIndex=function(Y){if(Y=this.getActiveReelVideo(Y))Y.hidden=!1};
_.g.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.g.activeChanged=function(Y){_.u3().dispatch(_.Uf({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:Y}}));if(Y)document.addEventListener("keydown",_.Io(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var b;(b=this.player)==null||b.sendAbandonmentPing()}var w;(w=this.player)==null||w.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Io(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.g.graftClientVisualElements=function(){if(this.data){var Y=_.Qd();_.SS$(Y,_.k7({response:this.reelWatchSequenceResponse}));_.oC(Y,this.nextReelVe);_.oC(Y,this.prevReelVe);_.q("kevlar_shorts_auto_advance")&&(_.oC(Y,this.loopToggleOffVe),_.oC(Y,this.loopToggleOnVe));_.oC(Y,this.ambientModeToggleVe);_.Gu(_.dO(),[this.nextReelVe,this.prevReelVe]);_.q("web_shorts_paused_state_logging")&&_.oC(Y,this.reelPlayerPausedStateRendererVe)}};
_.g.graftNvcRenderer=function(){var Y,b,w,V,H=this.index<0?(Y=this.shortsProcessedPrevSequence)==null?void 0:(b=Y[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:b.command:(w=this.shortsProcessedSequence)==null?void 0:(V=w[this.index])==null?void 0:V.command;if(H&&this.isNonVideoContentCommand(H)){Y=_.v(H,_.rY);var f,E;(Y=(f=_.v(Y==null?void 0:Y.renderer,_.u_o))==null?void 0:(E=f.loggingDirectives)==null?void 0:E.trackingParams)&&_.Qd().graftServerVe(Y)}};
_.g.setActiveIndex=function(){_.fH().resolve(_.P5).setActiveIndex(this.index)};
_.g.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.g.lazyUpdateMiniplayerData=function(){var Y=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Lb.addLowPriorityJob(function(){Y.updateMiniplayerData();Y.updateMiniplayerDataJobId=void 0}))};
_.g.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Lb.cancelJob(this.updateMiniplayerDataJobId)};
_.g.updateMiniplayerData=function(){var Y,b,w,V=_.fH().resolve(_.Ck),H={shortsData:this.getCurrentShort(),previousButtonDisabled:!((Y=this.prevButtonData)==null||!Y.isDisabled),nextButtonDisabled:!((b=this.nextButtonData)==null||!b.isDisabled),playabilityStatus:(w=this.playerData)==null?void 0:w.playabilityStatus};_.Po(V,H)};
_.g.resetPlayerLocation=function(){var Y=this.getPlayer();this.initialPlayerContainer&&Y.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.g.movePlayerToVideo=function(Y,b){var w=this;b=b===void 0?!0:b;var V=this.getActiveReelVideo(Y),H=this.getPlayer();if(V){this.overlayContainer?V.appendChild(this.overlayContainer):(this.overlayContainer=_.E6(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,V.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||H.appendTo(this.overlayContainer.playerContainer,void 0,!0));var f;(f=this.player)==null||f.setSize(NaN,NaN);this.isActive||_.MY(_.Lb,function(){w.isActive=
!0});
H.style.visibility="visible";_.q("reels_web_disable_rtr_tick")||_.q("reels_web_use_pbs_first_shorts")&&Y===0||_.S1("r_tr");this.currentPlayerIndex=Y;V.appendChild(this.errorScreenContainer);var E;(E=this.JSC$19777_cinematicController)==null||_.hvt(E)}else b?_.Lb.addLowPriorityJob(function(){w.movePlayerToVideo(w.index,!1)}):Math.random()<=_.cQ("web_shorts_error_logging_threshold")&&_.LB(new _.BQ("Trying to movePlayerToVideo with undefined container.",{firstAttempt:b,
index:Y}))};
_.g.enableFormatFirst=function(Y){return _.q("web_enable_format_first")||Y.adsOverlay&&_.q("web_enable_format_first_ads_only")||Y.reelPlayerOverlayRenderer&&_.q("web_enable_format_first_organic_only")};
_.g.getAspectRatio=function(Y){if(Y!=null&&Y.thumbnail&&this.enableFormatFirst(Y))return"--ytd-shorts-player-ratio: "+seA(Y.thumbnail)};
_.g.getBackgroundImage=function(Y){if(Y!=null&&Y.thumbnail)return(Y=_.Ev(Y.thumbnail.thumbnails))?'background-image:url("'+Y+'");':"background-color:black;"};
_.g.onPersistentPanelActiveChanged=function(){var Y=this.getCurrentShort();if(Y&&this.enableFormatFirst(Y)&&(Y==null?0:Y.thumbnail)&&seA(Y.thumbnail)!==.5625){var b;(b=this.player)==null||b.setSize(NaN,NaN)}};
_.g.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.g.moveCinematicsToVideo=function(){var Y=_.E6(this.hostElement).querySelector("ytd-reel-video-renderer");(Y==null?0:Y.cinematicContainer)&&Y.cinematicContainer!==this.shortsCinematicContainer.parentElement&&Y.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.g.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.g.updatePrevButtonData=function(){var Y=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(Y){var b;this.prevButtonData=Y=Object.assign({},Y,{accessibility:{label:_.sa("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:Y.isDisabled||this.index===-(((b=this.shortsProcessedPrevSequence)==null?void 0:b.length)||0),tooltip:this.isUpArrowHidden?"":_.sa("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=Y=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.g.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.g.updateNextButtonData=function(){var Y=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(Y){var b;this.nextButtonData=Y=Object.assign({},Y,{accessibility:{label:_.sa("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:Y.isDisabled||this.index===((b=this.shortsProcessedSequence)==null?void 0:b.length),tooltip:_.sa("NEXT_VIDEO_LABEL")||""})}};
_.g.getPlayablePreviousIndex=function(){for(var Y,b=this.index-1;b>=-(((Y=this.prevShortsSequence)==null?void 0:Y.length)||0);b--)if(!F8X().includes(b))return b;return null};
_.g.getIndexInSequence=function(Y,b){return Y.findIndex(function(w){var V;return((V=_.v(w.command,_.BH))==null?void 0:V.videoId)===b})};
_.g.handlePrevButtonClick=function(Y){var b=this,w,V;return _.c(function(H){w=b.getPlayablePreviousIndex();if(w===null)return H.return();b.gestureType=((V=Y)==null?void 0:V.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";w===0&&(b.hidePreviousButtonImmediately=!0);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.transitionToVideoThrottle.fire(w)}),H.return();
b.scrollToVideoThrottle.fire(w);_.om(H)})};
_.g.getPlayableNextIndex=function(){for(var Y,b=this.index+1;b<(((Y=this.shortsProcessedSequence)==null?void 0:Y.length)||0);b++)if(!F8X().includes(b))return b;return null};
_.g.handleNextButtonClick=function(Y,b){var w=this,V,H;return _.c(function(f){V=w.getPlayableNextIndex();if(V===null)return f.return();V===1&&(w.showPreviousButtonImmediately=!0);w.gestureType=((H=Y)==null?void 0:H.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b&&(w.gestureType=b);if(w.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){w.transitionToVideoThrottle.fire(V)}),f.return();
w.scrollToVideoThrottle.fire(V);_.om(f)})};
_.g.handleReelNavigateCommand=function(Y,b,w){(Y=_.v(Y,Cs7))&&b&&Y.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(w)};
_.g.loadVideo=function(Y,b){b=b===void 0?!1:b;if(Y!==this.currentPlayerIndex){_.u3().dispatch(f6(!1));if(this.isAd()&&!b){var w;(w=this.player)==null||w.notifyShortsAdSwipeEvent()}if((b=this.JSC$19777_cinematicController)!=null){var V;(V=b.currentCinematicEffect)==null||V.pause()}if((V=this.JSC$19777_cinematicController)!=null){var H;(H=V.currentCinematicEffect)==null||H.clear()}V=Y>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(V));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var f,E,U,X;H=Y<0?(f=this.shortsProcessedPrevSequence)==null?void 0:(E=f[this.shortsProcessedPrevSequence.length+Y])==null?void 0:E.command:(U=this.shortsProcessedSequence)==null?void 0:(X=U[Y])==null?void 0:X.command;this.index=Y;this.gestureType||(this.gestureType=V?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
H&&this.isVideoContentCommand(H)&&(this.ytComponentBehavior.resolveCommand(H,{form:{createScreenConfig:{clickedVisualElement:V?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(H&&this.isNonVideoContentCommand(H)){this.currentEndpoint=H;this.data=void 0;f=_.Qd();E=_.v(H,_.rY);var I,k;(E=(I=_.v(E==null?void 0:E.renderer,_.u_o))==null?void 0:(k=I.screenLoggingData)==null?void 0:k.screenVeType)&&_.mo(f,E);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(I=this.getActiveReelVideo(Y))&&I.appendChild(this.overlayContainer)}var l,x;if(((l=this.reelWatchSequenceResponse)==null?0:l.continuationEndpoint)&&((x=this.reelWatchSequenceResponse)==null?0:x.entries)&&Y===this.reelWatchSequenceResponse.entries.length-1){var Q,Z;l={contentPlaybackContext:_.ey({},(Z=_.v((Q=this.currentEndpoint)==null?void 0:Q.commandMetadata,_.g5))==null?void 0:Z.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:l})}var e,O,L;((e=this.reelWatchSequenceResponse)==null?0:e.prevContinuationEndpoint)&&Y===-(((O=this.reelWatchSequenceResponse)==null?void 0:(L=O.prevEntries)==null?void 0:L.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.g.setMiniplayerPreview=function(Y){Y=(Y===void 0?0:Y)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var b,w,V=_.fH().resolve(_.Ck),H={shortsData:void 0,shortsPreviewThumbnail:Y?(b=this.shortsProcessedSequence)==null?void 0:(w=b[Y])==null?void 0:w.thumbnail:void 0};_.Po(V,H)};
_.g.updateTitle=function(Y){var b,w;Y=(Y==null?0:Y.adSlots)?"":(w=Y==null?void 0:(b=Y.videoDetails)==null?void 0:b.title)!=null?w:"";_.Ua(this.hostElement,"yt-update-title",Y)};
_.g.registerPanel=function(Y){var b=_.fH().resolve(_.Za);if(b){Y=_.N(Y.engagementPanels||[]);for(var w=Y.next();!w.done;w=Y.next()){w=w.value;var V=w.engagementPanelSectionListRenderer,H=void 0,f=void 0,E=void 0,U=void 0,X=((H=V)==null?void 0:H.targetId)||((f=V)==null?void 0:f.panelIdentifier)||((E=V)==null?void 0:(U=E.identifier)==null?void 0:U.tag);H=V=void 0;(H=(V=b).registerPanelContent)==null||H.call(V,X,w)}}};
_.g.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;_.u3().dispatch(f6(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.u3().dispatch(L8s(!1));var Y=_.fH().resolve(_.P5);Y.dismissedIndices=[];Y.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.fH().resolve(_.Ck).close(!0)};
_.g.processAppendReelWatchSequenceContinuationEntriesAction=function(Y){var b=this,w;(w=this.intersectionObserver)==null||w.disconnect();Y=Y.appendReelWatchSequenceContinuationEntriesAction;if(Y==null?0:Y.entries){var V;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Bt(((V=this.reelWatchSequenceResponse)==null?void 0:V.entries)||[]),_.Bt(Y.entries)),continuationEndpoint:Y.continuationEndpoint})}else if(Y==null?0:Y.prevEntries){var H;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Bt(((H=this.reelWatchSequenceResponse)==null?void 0:H.prevEntries)||[]),_.Bt(Y.prevEntries)),prevContinuationEndpoint:Y.prevContinuationEndpoint});_.Lb.addLowPriorityJob(function(){b.movePlayerToVideo(b.index);var f;(f=b.getActiveReelVideo(b.index))==null||f.scrollIntoView({block:"nearest",inline:b.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Lb.addLowPriorityJob(function(){b.observeShorts()},100)};
_.g.processWatchSequence=function(Y){var b=this;return Y.map(function(w){w=w.command;if(b.isVideoContentCommand(w)){var V=_.v(w,_.BH);return{reelPlayerOverlayRenderer:_.v(V==null?void 0:V.overlay,_.YGd),thumbnail:V.thumbnail,command:w}}return b.isNonVideoContentCommand(w)?(V=_.v(w,_.rY),{reelNonVideoContentRenderer:_.v(V==null?void 0:V.renderer,_.u_o),command:w}):{command:w}})};
_.g.calculateIntersectionObserverThreshold=function(){if(!_.q("web_shorts_dynamic_intersection_observer_threshold"))return.6;var Y=_.E6(this.hostElement).querySelector("ytd-reel-video-renderer"),b=1;(Y==null?0:Y.offsetHeight)&&(Y==null?0:Y.offsetWidth)&&(b=Math.min(Y.offsetHeight,this.shortsContainer.offsetHeight)/Y.offsetHeight*(Math.min(Y.offsetWidth,this.shortsContainer.offsetWidth)/Y.offsetWidth));return Math.round(b*.6*10)/10};
_.g.isVideoContentCommand=function(Y){_.fH().resolve(_.P5);return!!_.v(Y,_.BH)};
_.g.isNonVideoContentCommand=function(Y){_.fH().resolve(_.P5);return!!_.v(Y,_.rY)};
_.g.initCinematicController=function(){var Y=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19777_cinematicController=new _.gg(this.shortsCinematicContainer,this.player);var b,w=_.v((b=this.data)==null?void 0:b.background,_.Qi);_.lOR(this.JSC$19777_cinematicController,w);_.kRd(this.JSC$19777_cinematicController,xgI(w));_.IOX(this.JSC$19777_cinematicController);_.Lb.addLowPriorityJob(function(){Y.moveCinematicsToVideo()})}};
_.g.handleMiniplayerNavigateShorts=function(Y){Y==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():Y==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.g.handleSignalActionToggleShortsPictureInPicture=function(){if(_.fH().resolve(_.Ck).pictureInPictureSupported()){var Y=_.fH().resolve(_.P5);if(_.q("web_shorts_pip")){var b=_.fH().resolve(_.Ck);Y.isShortsPipActive()?b.deactivate():b.isMiniplayerActive()||(_.sL().shortsPipActivation=!0,_.pDN(b))}}else(Y=this.player)==null||Y.togglePictureInPicture()};
_.up.Object.defineProperties(kl.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.reelWatchSequenceResponse)!=null&&Y.prevEntries)return this.processWatchSequence([].concat(_.Bt(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var Y=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!Y)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var b=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Bt(this.prevShortsSequence.slice(0,b)),[Y],_.Bt(this.prevShortsSequence.slice(b+
1)))}b=this.index+this.shortsProcessedPrevSequence.length;Y.thumbnail=this.shortsProcessedPrevSequence[b].thumbnail;return[].concat(_.Bt(this.shortsProcessedPrevSequence.slice(0,b)),[Y],_.Bt(this.shortsProcessedPrevSequence.slice(b+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.reelWatchSequenceResponse)!=null&&Y.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var Y=this.getCurrentShort();if(!Y||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[Y];if(Y==null||!Y.reelNonVideoContentRenderer){var b=this.getIndexInSequence(this.shortsSequence,_.v(this.currentEndpoint,_.BH).videoId);if(this.index===0&&b!==-1)return this.currentPlayerIndex=this.index=b,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Bt(this.shortsSequence.slice(0,this.index)),[Y],_.Bt(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){Y.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var w,V,H,f;b=((V=_.v((w=this.shortsProcessedSequence[0])==null?void 0:w.command,_.BH))==null?void 0:V.videoId)===((f=_.v((H=this.shortsSequence[0])==null?void 0:H.command,_.BH))==null?void 0:f.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Bt(this.shortsProcessedSequence.slice(0,
this.index)),[Y],_.Bt(this.shortsSequence.slice(b)))}return[Y].concat(_.Bt(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var Y=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;Y&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(Y)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.endOfNextContinuation){var Y,b;return this.index===((Y=this.reelWatchSequenceResponse)==null?void 0:(b=Y.entries)==null?void 0:b.length)}var w;return!((w=this.reelWatchSequenceResponse)==null?0:w.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var Y;(Y=this.delayedActiveIndexUpdateDebouncer)==null||Y.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return this.isShortPlayable()||((b=_.v((Y=this.data)==null?void 0:Y.watchStatus,_.co9))==null?void 0:(w=b.style)==null?void 0:w.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var Y=this,b=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),w;if((this.data||b)&&(((w=this.data)==null?0:w.engagementPanels)||this.isAd()||b)){b=!1;this.activePanel="shorts-comments-panel";var V;w=_.N(((V=this.data)==null?void 0:V.engagementPanels)||[]);for(V=w.next();!V.done;V=w.next()){V=V.value.engagementPanelSectionListRenderer;var H=void 0,f=void 0,E=void 0,U=void 0;if((((H=V)==null?void 0:(f=H.identifier)==
null?void 0:f.tag)||((E=V)==null?void 0:E.targetId)||((U=V)==null?void 0:U.panelIdentifier))===this.activePanel){b=!0;break}}if(this.isPersistentPanelActive){var X=_.fH().resolve(_.Za);_.MY(_.Lb,function(){X.showPanel(Y.activePanel,void 0,void 0,void 0,null)},100)}var I;
w=[].concat(_.Bt(Object.values(((I=this.data)==null?void 0:I.engagementPanels)||{})));if(_.q("enable_preview_panel_for_shorts_search_suggested_action")){var k,l,x,Q,Z;((Q=_.v((k=this.data)==null?void 0:(l=k.overlay)==null?void 0:(x=l.reelPlayerOverlayRenderer)==null?void 0:x.metapanel,_.Jtr))==null?void 0:(Z=Q.metadataItems)==null?void 0:Z.find(function(e){var O,L;return((O=_.v(e,jeQ))==null?void 0:(L=O.icon)==null?void 0:L.iconType)==="SEARCH"}))!==void 0&&w.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}I=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);k=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return I===void 0&&k===void 0||(I==null?0:I.isDisabled)||(k==null?void 0:k.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!b?(b=w==null?void 0:w.findIndex(function(e){var O,
L;return((O=e.engagementPanelSectionListRenderer)==null?void 0:(L=O.identifier)==null?void 0:L.tag)==="shorts-comments-panel"}),b===-1||b===void 0||w!=null&&w.splice(b,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.sa("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.sa("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:_.sa("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.sa("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(_.Bt(Object.values(w||
{})))):w}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.shortsProcessedSequence)==null?void 0:Y[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var Y=this,b,w,V;if((b=this.playerData)==null?0:(w=b.playabilityStatus)==null?0:(V=w.errorScreen)==null?0:V.playerInterstitialRenderer)return _.Lb.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index)}),this.playerData.playabilityStatus.errorScreen;
var H,f;return((H=this.data)==null?void 0:H.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((f=this.data)==null?0:f.watchStatus)&&_.v(this.data.watchStatus,_.cSd)?(_.Lb.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.up.Object.defineProperties(kl,{template:{configurable:!0,enumerable:!0,get:function(){if(TcO===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);TcO=Y}Y=TcO;return Y}}});
kl.prototype.onNextButtonDataChange=kl.prototype.onNextButtonDataChange;kl.prototype.onPrevButtonDataChange=kl.prototype.onPrevButtonDataChange;kl.prototype.onPersistentPanelActiveChanged=kl.prototype.onPersistentPanelActiveChanged;kl.prototype.lazyUpdateMiniplayerData=kl.prototype.lazyUpdateMiniplayerData;kl.prototype.onShortsPipActiveChanged=kl.prototype.onShortsPipActiveChanged;kl.prototype.setActiveIndex=kl.prototype.setActiveIndex;kl.prototype.graftNvcRenderer=kl.prototype.graftNvcRenderer;
kl.prototype.graftClientVisualElements=kl.prototype.graftClientVisualElements;kl.prototype.onActiveChanged=kl.prototype.onActiveChanged;kl.prototype.onShortsDismiss=kl.prototype.onShortsDismiss;kl.prototype.onShortUndoDismiss=kl.prototype.onShortUndoDismiss;kl.prototype.playerDataChanged=kl.prototype.playerDataChanged;kl.prototype.afterPlayerStarted=kl.prototype.afterPlayerStarted;kl.prototype.unhideCurrentOverlay=kl.prototype.unhideCurrentOverlay;kl.prototype.onServiceRequestCompleted=kl.prototype.onServiceRequestCompleted;
kl.prototype.engagementPanelsChanged=kl.prototype.engagementPanelsChanged;kl.prototype.onFullscreenChange=kl.prototype.onFullscreenChange;kl.prototype.onResize=kl.prototype.onResize;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.BJ.YtPageBehavior),_.K("design:type",Object)],kl.prototype,"ytPageBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],kl.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.Li),_.K("design:type",Object)],kl.prototype,"ironResizableBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],kl.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],kl.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],kl.prototype,"ytdReduxBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],kl.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"playerData",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"reelWatchSequenceResponse",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"cachedReelWatchSequenceResponse",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"currentEndpoint",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"nextButtonData",void 0);
_.z([_.R(),_.K("design:type",Object)],kl.prototype,"prevButtonData",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"isPreviousPageShorts",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"index",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"delayedActiveIndex",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"playablePreviousIndex",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"player",void 0);
_.z([_.R(),_.K("design:type",Object)],kl.prototype,"isPlayerPaused",void 0);_.z([_.R({selector:vYN}),_.K("design:type",Object)],kl.prototype,"isPlayerStarted",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"intersectionObserver",void 0);_.z([_.R(),_.K("design:type",Number)],kl.prototype,"cinematicsInitializeJobId",void 0);_.z([_.R(),_.K("design:type",Number)],kl.prototype,"updateMiniplayerDataJobId",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"fitToVisibleBounds",void 0);
_.z([_.R(),_.K("design:type",Object)],kl.prototype,"pageSubtype",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],kl.prototype,"enablePreviousContinuation",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"shortsPipEnabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"isDark",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"shortsViewTransitions",void 0);
_.z([_.R({selector:_.s1,reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"isFullscreen",void 0);_.z([_.R({selector:_.Qm,reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"isShortsPipActive",void 0);_.z([_.xZ("#shorts-inner-container"),_.K("design:type",HTMLElement)],kl.prototype,"shortsInnerContainer",void 0);_.z([_.xZ("#back-nav-button ytd-button-renderer"),_.K("design:type",_.YI)],kl.prototype,"backNavButton",void 0);
_.z([_.xZ("#shorts-container"),_.K("design:type",HTMLElement)],kl.prototype,"shortsContainer",void 0);_.z([_.j_("error-screen"),_.K("design:type",HTMLElement)],kl.prototype,"errorScreenContainer",void 0);_.z([_.j_("player"),_.K("design:type",Object)],kl.prototype,"playerElement",void 0);_.z([_.j_("shorts-cinematic-container"),_.K("design:type",HTMLElement)],kl.prototype,"shortsCinematicContainer",void 0);
_.z([_.j_("initial-player-container"),_.K("design:type",HTMLElement)],kl.prototype,"initialPlayerContainer",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"buttonOverride",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"anchoredPanelActive",void 0);_.z([_.R(),_.K("design:type",String)],kl.prototype,"activePanel",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"isActive",void 0);
_.z([_.R({selector:QeF,reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"smallScreenPersistentPanel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"isPersistentPanelActive",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"smallScreenSqueezeBack",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"enableScrollIntoViewCenter",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"formatFirst",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"enableFlexibleOverlay",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kl.prototype,"useAspectRatio",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"panelContainer",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"overlayContainer",void 0);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"isShortsInitialized",void 0);
_.z([_.t("reelWatchSequenceResponse"),_.K("design:type",Object),_.K("design:paramtypes",[])],kl.prototype,"prevShortsSequence",null);_.z([_.t("data","prevShortsSequence"),_.K("design:type",Object),_.K("design:paramtypes",[])],kl.prototype,"shortsProcessedPrevSequence",null);_.z([_.t("reelWatchSequenceResponse"),_.K("design:type",Object),_.K("design:paramtypes",[])],kl.prototype,"shortsSequence",null);
_.z([_.t("data","shortsSequence"),_.K("design:type",Object),_.K("design:paramtypes",[])],kl.prototype,"shortsProcessedSequence",null);_.z([_.R({reflectToAttribute:!0}),_.t("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],kl.prototype,"isUpArrowHidden",null);
_.z([_.R({reflectToAttribute:!0}),_.t("reelWatchSequenceResponse","index","endOfNextContinuation"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],kl.prototype,"isDownArrowHidden",null);_.z([_.R(),_.t("index"),_.K("design:type",Number),_.K("design:paramtypes",[])],kl.prototype,"activeIndex",null);_.z([_.t("isShortPlayable","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],kl.prototype,"shouldRenderOfflineContent",null);
_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onResize",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],kl.prototype,"anchoredEngagementPanels",null);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"watchWhileEngagementPanels",void 0);_.z([_.lr("isFullscreen"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onFullscreenChange",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"engagementPanelsChanged",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],kl.prototype,"onServiceRequestCompleted",null);_.z([_.t("data","shortsSequence","index"),_.K("design:type",Object),_.K("design:paramtypes",[])],kl.prototype,"activeReel",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"unhideCurrentOverlay",null);_.z([_.lr("isPlayerStarted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"afterPlayerStarted",null);_.z([_.t("playerData","reelWatchSequenceResponse","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],kl.prototype,"errorScreen",null);
_.z([_.t("errorScreen"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],kl.prototype,"hasError",null);_.z([_.lr("playerData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],kl.prototype,"playerDataChanged",null);_.z([_.kZ("yt-dismissible-item-undo-feedback"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onShortUndoDismiss",null);
_.z([_.kZ("yt-disable-lockup-interaction"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],kl.prototype,"onShortsDismiss",null);_.z([_.vX("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onActiveChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"graftClientVisualElements",null);
_.z([_.lr("currentPlayerIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"graftNvcRenderer",null);_.z([_.lr("index"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"setActiveIndex",null);_.z([_.lr("isShortsPipActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onShortsPipActiveChanged",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"lazyUpdateMiniplayerData",null);_.z([_.R(),_.K("design:type",Object)],kl.prototype,"onOverlayDensityChanged",void 0);_.z([_.lr("isPersistentPanelActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onPersistentPanelActiveChanged",null);
_.z([_.lr("index","data","isUpArrowHidden"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onPrevButtonDataChange",null);_.z([_.lr("index","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kl.prototype,"onNextButtonDataChange",null);_.z([_.S({is:"ytd-shorts"})],kl);_.Uq.registerService(_.Ejg,kl);
_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("JzFVk");
var qos=function(Y){return _.m("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},xjN(Y.data.ctaButton,{buttonViewModel:{}}),_.m(_.wv,{text:Y.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var sFR;var QFX;var dR=function(){return _.F.apply(this,arguments)||this};
_.P(dR,_.F);dR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
dR.prototype.computeBlueBottomLink=function(Y){return Y};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],dR.prototype,"data",void 0);_.z([_.R({computed:"computeIcon_(data.bottomIcon)"}),_.K("design:type",String)],dR.prototype,"bottomIcon",void 0);
_.z([_.R({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.K("design:type",Boolean)],dR.prototype,"enableBlueBottomLink",void 0);_.z([_.S({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],dR);
_.a(dR,"ytd-web-answer-renderer",function(){if(QFX!==void 0)return QFX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-web-answer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section-header" class="style-scope ytd-web-answer-renderer">\n  <yt-formatted-string id="section-title" text="[[data.sectionTitle]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n  <div id="menu" class="style-scope ytd-web-answer-renderer"></div>\n</div>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]">\n  <div id="content" class="style-scope ytd-web-answer-renderer">\n    <div id="content-text" class="style-scope ytd-web-answer-renderer">\n      <div id="content-title" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string id="content-title" text="[[data.contentTitle]]" class="style-scope ytd-web-answer-renderer">\n        </yt-formatted-string>\n        <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n      </div>\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      <div id="source-group" class="style-scope ytd-web-answer-renderer">\n        <yt-formatted-string text="[[data.sourceName]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n        <div id="separator" hidden="[[!data.publishedDate]]" class="style-scope ytd-web-answer-renderer">\u2022</div>\n        <yt-formatted-string text="[[data.publishedDate]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n      </div>\n    </div>\n    <yt-img-shadow id="answer-image" hidden="[[!data.image]]" thumbnail="[[data.image]]" width="100" class="style-scope ytd-web-answer-renderer">\n    </yt-img-shadow>\n  </div>\n</a>\n<a class="yt-simple-endpoint style-scope ytd-web-answer-renderer" hidden="[[!data.bottomLink]]" href$="[[computeHref_(data.bottomLinkCommand)]]" data="[[data.bottomLinkCommand]]">\n  <div id="bottom-section" class="style-scope ytd-web-answer-renderer">\n    <yt-icon id="bottom-icon" icon="[[bottomIcon]]" class="style-scope ytd-web-answer-renderer"></yt-icon>\n    <yt-formatted-string id="bottom-link" text="[[data.bottomLink]]" class="style-scope ytd-web-answer-renderer"></yt-formatted-string>\n    <yt-icon class="external-link-icon style-scope ytd-web-answer-renderer" icon="yt-icons:open_in_new"></yt-icon>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return QFX=Y},{mode:_.Xd("kevlar_poly_si_batch_j035")?1:2});var vmO;var FQ=function(){var Y=_.F.apply(this,arguments)||this;Y.hasChipBar=!1;return Y};
_.P(FQ,_.F);FQ.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}}};
FQ.prototype.computeHasChipBar=function(Y){return!(Y==null||!Y.chipBar)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],FQ.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.K("design:type",Object)],FQ.prototype,"hasChipBar",void 0);_.z([_.S({is:"ytd-search-header-renderer",disableElementRegistration:!0})],FQ);
_.a(FQ,"ytd-search-header-renderer",function(){if(vmO!==void 0)return vmO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chip-bar" class="style-scope ytd-search-header-renderer"></div>\n<div id="about-these-results" class="style-scope ytd-search-header-renderer"></div>\n<div id="filter-button" class="style-scope ytd-search-header-renderer"></div>\n\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return vmO=Y},{mode:1});var PTQ;var Ld=function(){return _.F.apply(this,arguments)||this};
_.P(Ld,_.F);Ld.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ld.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-page-continuation"})],Ld);
_.a(Ld,"ytd-page-continuation",function(){if(PTQ!==void 0)return PTQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-continuation--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pages" class="style-scope ytd-page-continuation"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return PTQ=Y},{mode:1});var Z57;var BHb;var nmb;var SW=function(){return _.F.apply(this,arguments)||this};
_.P(SW,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],SW.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],SW);
_.a(SW,"ytd-watch-card-one-vs-one-event",function(){if(nmb!==void 0)return nmb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.homeParticipantResult)]]</span>\n</div>\n<div class="team-row style-scope ytd-watch-card-one-vs-one-event">\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayName)]]</span>\n  <span class="style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.awayParticipantResult)]]</span>\n</div>\n<div class="main-event event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.eventDescription)]]</div>\n<div class="event-description style-scope ytd-watch-card-one-vs-one-event">[[getSimpleString(data.additionalEventDescription)]]</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return nmb=Y},{mode:1});var at=function(){return _.F.apply(this,arguments)||this};
_.P(at,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],at.prototype,"data",void 0);_.z([_.S({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],at);
_.a(at,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(BHb!==void 0)return BHb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-one-vs-one-event-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-one-vs-one-event-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n<ytd-thumbnail data="[[data]]" disable-rounding="" width="386" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer"></ytd-thumbnail>\n\n<div id="bottom-fade" class="style-scope ytd-watch-card-hero-one-vs-one-event-renderer">\n  <ytd-watch-card-one-vs-one-event class="hero style-scope ytd-watch-card-hero-one-vs-one-event-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</div>\n    </a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return BHb=Y},{mode:1});var M6X;var rR=function(){return _.F.apply(this,arguments)||this};
_.P(rR,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rR.prototype,"data",void 0);_.z([_.S({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],rR);
_.a(rR,"ytd-banner-and-box-hero-image-renderer",function(){if(M6X!==void 0)return M6X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-banner-and-box-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="banner" thumbnail="[[data.banner]]" width="386" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow><svg id="bg" viewBox="0 0 1300 304" preserveAspectRatio="xMaxYMid slice" class="style-scope ytd-banner-and-box-hero-image-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-banner-and-box-hero-image-renderer"></path></svg><yt-img-shadow id="box" height="184" thumbnail="[[data.box]]" width="131" class="style-scope ytd-banner-and-box-hero-image-renderer"></yt-img-shadow>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return M6X=Y},{mode:1});var e_X;var zv=function(){var Y=_.F.apply(this,arguments)||this;Y.modern=_.q("web_modern_buttons");return Y};
_.P(zv,_.F);zv.prototype.computeIcon=function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.icon)==null?void 0:b.iconType;if(w)return _.IR(w)};
zv.prototype.computeButtonShape=function(){var Y;return{buttonText:_.Tx((Y=this.data)==null?void 0:Y.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.up.Object.defineProperties(zv.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"}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zv.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],zv.prototype,"modern",void 0);_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.t("data.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],zv.prototype,"buttonColor",null);
_.z([_.S({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],zv);
_.a(zv,"ytd-call-to-action-button-renderer",function(){if(e_X!==void 0)return e_X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return e_X=Y},{mode:1});var prX;var W8=function(){return _.F.apply(this,arguments)||this};
_.P(W8,_.F);W8.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.E6(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.NR(this.data.leftThumbnail.thumbnails,216)+")")};
W8.prototype.onLeftThumbnailChanged=W8.prototype.onLeftThumbnailChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],W8.prototype,"data",void 0);_.z([_.lr("data.leftThumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],W8.prototype,"onLeftThumbnailChanged",null);_.z([_.S({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],W8);
_.a(W8,"ytd-collage-hero-image-renderer",function(){if(prX!==void 0)return prX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-collage-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="collage" class="style-scope ytd-collage-hero-image-renderer"><div id="section-left" class="style-scope ytd-collage-hero-image-renderer"></div><div id="section-right" class="style-scope ytd-collage-hero-image-renderer"><yt-img-shadow id="top-right" height="105" thumbnail="[[data.topRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow><yt-img-shadow height="105" thumbnail="[[data.bottomRightThumbnail]]" width="167" class="style-scope ytd-collage-hero-image-renderer"></yt-img-shadow></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return prX=Y},{mode:1});var O5g;var Kd=function(){return _.F.apply(this,arguments)||this};
_.P(Kd,_.F);Kd.prototype.computeStyle=function(Y){return Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Kd.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.K("design:type",String)],Kd.prototype,"componentStyle",void 0);_.z([_.S({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Kd);
_.a(Kd,"ytd-single-hero-image-renderer",function(){if(O5g!==void 0)return O5g;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-hero-image-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="image" thumbnail="[[data.thumbnail]]" width="386" class="style-scope ytd-single-hero-image-renderer"></yt-img-shadow>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return O5g=Y},{mode:1});var t67;var ii=function(){return _.F.apply(this,arguments)||this};
_.P(ii,_.F);_.g=ii.prototype;
_.g.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:_.q("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.g.computeSubtitle=function(Y){if(this.data){var b;if(this.data.upcomingEventData){Y=_.Tx(Y.subtitle);var w=Number(this.data.upcomingEventData.startTime);isNaN(w)||(b=_.Gx(_.rK(Y,w)))}else b=Y.subtitle;return b}};
_.g.onHeroTap=function(Y){Y.preventDefault();var b=this.data&&this.data.navigationEndpoint;!b||!_.uA(_.JL(Y),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.uA(_.JL(Y),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.q("kevlar_watchcard_hero_video_renderer_killswitch")?_.Ua(this.hostElement,"yt-navigate",{navigationEndpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.g.computeHeroTabIndex=function(Y){return Y&&Y.simpleText?-1:0};
_.g.computeHeroRole=function(Y){return Y&&Y.simpleText?"":"link"};
_.g.computeIsReminderButtonPresent=function(Y){return!(!Y||!Y.reminderButton)};
_.g.computeHideBottomItems=function(Y){return!(this.computeIsReminderButtonPresent(Y)||Y.subtitle)};
_.g.dataChanged=function(){var Y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;((b=_.v(Y==null?void 0:Y.commandMetadata,_.RU))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(Y)};
ii.prototype.dataChanged=ii.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ii.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ii.prototype,"data",void 0);
_.z([_.R({computed:"computeSubtitle(data)"}),_.K("design:type",String)],ii.prototype,"subtitle",void 0);_.z([_.R({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ii.prototype,"isReminderButtonPresent",void 0);_.z([_.R({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],ii.prototype,"hideBottomItems",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ii.prototype,"dataChanged",null);_.z([_.S({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],ii);
_.a(ii,"ytd-watch-card-hero-video-renderer",function(){if(t67!==void 0)return t67;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-hero-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="watch-card-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" on-tap="onHeroTap" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex$="[[computeHeroTabIndex(data.title)]]" role$="[[computeHeroRole(data.title)]]">\n  <ytd-thumbnail data="[[data]]" disable-rounding="" hidden$="[[!data.thumbnail]]" width="386" class="style-scope ytd-watch-card-hero-video-renderer">\n  </ytd-thumbnail>\n  <div id="hero-image" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div class="title-container style-scope ytd-watch-card-hero-video-renderer" hidden="[[!data.title]]">\n    <div class="title-fade style-scope ytd-watch-card-hero-video-renderer">\n      <a id="watch-card-title" class="yt-simple-endpoint style-scope ytd-watch-card-hero-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string id="watch-card-title" text="[[data.title]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n      </a>\n      <div id="bottom-items" hidden="[[hideBottomItems]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        <ytd-badge-supported-renderer id="watch-card-badge" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="watch-card-subtitle" text="[[subtitle]]" class="style-scope ytd-watch-card-hero-video-renderer">\n        </yt-formatted-string>\n        <div id="reminder-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="call-to-action-button" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n  <div id="overlays" class="style-scope ytd-watch-card-hero-video-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return t67=Y},{mode:1});var R_R;var AX=function(){return _.F.apply(this,arguments)||this};
_.P(AX,_.F);_.g=AX.prototype;_.g.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"}}}};
_.g.computeTitleBadges=function(Y){return Y?[Y]:[]};
_.g.computeHeaderStyle=function(Y){return Y?Y.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.g.computeAvatarAriaLabel=function(Y){if(Y){var b,w,V,H;return(H=(b=Y.avatar)==null?void 0:(w=b.accessibility)==null?void 0:(V=w.accessibilityData)==null?void 0:V.label)!=null?H:_.Tx(Y==null?void 0:Y.title)}};
_.g.computeAvatarHeight=function(Y){return Y==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.g.computeBadgeRowClass=function(Y){return(Y==null?0:Y[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],AX.prototype,"data",void 0);_.z([_.R({computed:"computeTitleBadges(data.titleBadge)"}),_.K("design:type",Array)],AX.prototype,"titleBadges",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.K("design:type",String)],AX.prototype,"headerStyle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.K("design:type",String)],AX.prototype,"badgeRowClass",void 0);_.z([_.S({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],AX);
_.a(AX,"ytd-watch-card-rich-header-renderer",function(){if(R_R!==void 0)return R_R;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-rich-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-watch-card-rich-header-renderer">\n  <div id="body" class="style-scope ytd-watch-card-rich-header-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]">\n      <ytd-channel-name id="channel-name" badges="[[titleBadges]]" channel-name="[[data.title]]" tooltip-position="bottom" wrap-text="" class="style-scope ytd-watch-card-rich-header-renderer">\n      </ytd-channel-name>\n      <div id="badge-row" class$="[[badgeRowClass]] style-scope ytd-watch-card-rich-header-renderer">\n        <span id="watch-card-subtitle" class="style-scope ytd-watch-card-rich-header-renderer">\n          <yt-formatted-string respect-lang-dir="" text="[[data.subtitle]]" class="style-scope ytd-watch-card-rich-header-renderer"></yt-formatted-string>\n        </span>\n        <template is="dom-if" if="[[data.badges.0.metadataBadgeRenderer]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-rich-header-renderer">\n          </ytd-badge-supported-renderer>\n        </template>\n      </div>\n    </a>\n    \n    <div id="call-to-action-buttons" hidden="[[!data.callToActionButtons]]" class="style-scope ytd-watch-card-rich-header-renderer"></div>\n  </div>\n  <a id="avatar-endpoint" class="yt-simple-endpoint style-scope ytd-watch-card-rich-header-renderer" href$="[[computeHref_(data.titleNavigationEndpoint)]]" data="[[data.titleNavigationEndpoint]]" aria-label="[[computeAvatarAriaLabel(data)]]" hidden="[[!data.avatar]]">\n    <yt-img-shadow id="avatar" height="[[computeAvatarHeight(data.style)]]" thumbnail="[[data.avatar]]" class="style-scope ytd-watch-card-rich-header-renderer">\n    </yt-img-shadow>\n  </a>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return R_R=Y},{mode:1});var djt;var FMX;var Cd=function(){return _.F.apply(this,arguments)||this};
_.P(Cd,_.F);Cd.prototype.onMetadataTap=function(Y){var b=this.data&&this.data.navigationEndpoint;b&&!_.uA(_.JL(Y),this.hostElement,["A".toString()])&&_.Ua(this.hostElement,"yt-navigate",{endpoint:b})};
_.up.Object.defineProperties(Cd.prototype,{isCondensed:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style==="WATCH_CARD_COMPACT_VIDEO_RENDERER_STYLE_CONDENSED":!1}},
subtitle:{configurable:!0,enumerable:!0,get:function(){if(this.data){var Y;if(this.data.upcomingEventData){var b=_.Tx(this.data.subtitle),w=Number(this.data.upcomingEventData.startTime);isNaN(w)||(Y=_.Gx(_.rK(b,w)))}else Y=this.data.subtitle;return Y}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Cd.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data.style"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Cd.prototype,"isCondensed",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Cd.prototype,"subtitle",null);
_.z([_.S({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Cd);
_.a(Cd,"ytd-watch-card-compact-video-renderer",function(){if(FMX!==void 0)return FMX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-compact-video-renderer"></ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-watch-card-compact-video-renderer" on-click="onMetadataTap">\n    <div class="title-wrapper style-scope ytd-watch-card-compact-video-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n      </a>\n    </div>\n    <yt-formatted-string class="byline style-scope ytd-watch-card-compact-video-renderer" hidden="[[!data.byline]]" link-inherit-color="" text="[[data.byline]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[subtitle]]"></yt-formatted-string>\n    <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n    </ytd-badge-supported-renderer>\n  </div>\n</template>\n<template is="dom-if" if="[[isCondensed]]" class="style-scope ytd-watch-card-compact-video-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-watch-card-compact-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <div class="metadata style-scope ytd-watch-card-compact-video-renderer">\n      <div class="text style-scope ytd-watch-card-compact-video-renderer">\n        <yt-formatted-string class="title style-scope ytd-watch-card-compact-video-renderer" link-inherit-color="" text="[[data.title]]"></yt-formatted-string>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-watch-card-compact-video-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string class="subtitle style-scope ytd-watch-card-compact-video-renderer" text="[[subtitle]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string class="duration style-scope ytd-watch-card-compact-video-renderer" text="[[data.lengthText]]">\n      </yt-formatted-string>\n    </div>\n  </a>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return FMX=Y},{mode:1});var LMX;var y6=function(){return _.F.apply(this,arguments)||this};
_.P(y6,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],y6.prototype,"data",void 0);_.z([_.S({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],y6);
_.a(y6,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(LMX!==void 0)return LMX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-one-vs-one-event-compact-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="120" class="style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer"></ytd-thumbnail>\n<a class="yt-simple-endpoint metadata style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.navigationEndpoint]]" href$="[[computeHref_(data.navigationEndpoint)]]">\n  <ytd-watch-card-one-vs-one-event class="compact style-scope ytd-watch-card-one-vs-one-event-compact-video-renderer" data="[[data.oneVsOneEvent]]">\n  </ytd-watch-card-one-vs-one-event>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return LMX=Y},{mode:1});var $C=function(){return _.F.apply(this,arguments)||this};
_.P($C,_.F);$C.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}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],$C.prototype,"ytRendererStamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$C.prototype,"data",void 0);_.z([_.S({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],$C);
_.a($C,"ytd-vertical-watch-card-list-renderer",function(){if(djt!==void 0)return djt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-watch-card-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-vertical-watch-card-list-renderer">\n  \n</div>\n<a id="view-all-endpoint" class="yt-simple-endpoint style-scope ytd-vertical-watch-card-list-renderer" href$="[[computeHref_(data.viewAllEndpoint)]]" data="[[data.viewAllEndpoint]]" hidden="[[!data.viewAllEndpoint]]" disable-upgrade$="[[!data.viewAllEndpoint]]">\n    [[getSimpleString(data.viewAllText)]]\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return djt=Y},{mode:1});var Sod;var jW=function(){var Y=_.F.apply(this,arguments)||this;Y.ariaExpanded="false";return Y};
_.P(jW,_.F);_.g=jW.prototype;_.g.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.g.dataChanged=function(){var Y;this.currentSeasonIndex=((Y=this.data)==null?void 0:Y.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.g.computeEpisodesInfo=function(Y,b,w){if(Y!==void 0&&b.length===Y.length)return Y[w]};
_.g.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.g.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.g.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.g.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.g.getUppercaseSimpleString=function(Y){return this.ytRendererBehavior.getSimpleString(Y).toUpperCase()};
_.g.updateCurrentSeasonIndexFromBinding=function(Y){this.currentSeasonIndex=Y.detail.value};
jW.prototype.onIronOverlayClosed=jW.prototype.onIronOverlayClosed;jW.prototype.currentSeasonIndexChanged=jW.prototype.currentSeasonIndexChanged;jW.prototype.dataChanged=jW.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jW.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",String)],jW.prototype,"label",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],jW.prototype,"currentSeasonIndex",void 0);_.z([_.R({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.K("design:type",Object)],jW.prototype,"episodesInfo",void 0);_.z([_.R({value:"false"}),_.K("design:type",Object)],jW.prototype,"ariaExpanded",void 0);_.z([_.xZ("#lists"),_.K("design:type",Object)],jW.prototype,"lists",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jW.prototype,"dataChanged",null);_.z([_.vX("currentSeasonIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jW.prototype,"currentSeasonIndexChanged",null);_.z([_.kZ("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],jW.prototype,"onIronOverlayClosed",null);
_.z([_.S({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],jW);
_.a(jW,"ytd-watch-card-section-dropdown-renderer",function(){if(Sod!==void 0)return Sod;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Sod=Y},{mode:1});var aNI;var Gv=function(){var Y=_.F.apply(this,arguments)||this;Y.isSearch=!1;return Y};
_.P(Gv,_.F);Gv.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}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Gv.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Gv.prototype,"isSearch",void 0);_.z([_.S({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Gv);
_.a(Gv,"ytd-watch-card-section-sequence-renderer",function(){if(aNI!==void 0)return aNI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-sequence-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="lists" class="style-scope ytd-watch-card-section-sequence-renderer">\n  \n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return aNI=Y},{mode:1});var xjN=_.ZE({buttonViewModel:_.a1});_.gS(qos);_.oL(qos,"ytd-button-banner-view-model",{propNames:["data"]});var Tv=function(){var Y=_.F.apply(this,arguments)||this;Y.isSearch=!1;return Y};
_.P(Tv,_.F);
Tv.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"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Tv.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Tv.prototype,"rounded",void 0);_.z([_.R(),_.K("design:type",Object)],Tv.prototype,"isSearch",void 0);
_.z([_.S({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Tv);
_.a(Tv,"ytd-universal-watch-card-renderer",function(){if(Z57!==void 0)return Z57;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-universal-watch-card-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="hero" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="action-buttons" hidden="[[!data.actionButtons]]" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="sections" class="style-scope ytd-universal-watch-card-renderer"></div>\n<div id="footer" class="style-scope ytd-universal-watch-card-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Z57=Y},{mode:1});var rKt;_.f_(_.b8(function(Y){var b=Y.data;var w;Y=!((w=_.fH().resolve(_.HQ(_.GT)))==null||!w());w={};return _.m("overview-message-view-model",{class:_.hj("ytwOverviewMessageViewModelHost",(w.ytwOverviewMessageViewModelDarkBackground=Y,w.ytwOverviewMessageViewModelLightBackground=!Y,w))},_.m(_.h,{cond:function(){return b().primaryImage},
then:function(V){return _.m(_.Y_,{data:V,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.m(_.h,{cond:function(){return b().primaryText},
then:function(){return _.m("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.m(_.wv,{text:function(){return b().primaryText}}))}}),_.m(_.h,{cond:function(){return b().secondaryText},
then:function(){return _.m("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.m(_.wv,{text:function(){return b().secondaryText}}))}}))},"Li"),"overview-message-view-model",{props:{data:_.YX}});_.oL(_.JVt,"ytd-overview-answer-view-model",{propNames:["data"]});var JX=function(){return _.F.apply(this,arguments)||this};
_.P(JX,_.F);JX.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"}}}};
JX.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],JX.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JX.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],JX.prototype,"isSearch",void 0);
_.z([_.S({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],JX);
_.a(JX,"ytd-secondary-search-container-renderer",function(){if(rKt!==void 0)return rKt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-secondary-search-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-secondary-search-container-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return rKt=Y},{mode:1});var z_g;var ui=function(){var Y=_.F.apply(this,arguments)||this;Y.renderSecondarySearchContainer=!1;Y.isSearch=!1;Y.isSearchDova=_.q("dova_on_search");return Y};
_.P(ui,_.F);_.g=ui.prototype;_.g.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"}}}};
_.g.created=function(){var Y=this;this.boundStampSecondarySearchContainerIfFits=function(){Y.stampSecondarySearchContainerIfFits()};
_.rx("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.g.computeIsSearchFrictionPage=function(Y){var b,w,V,H,f;Y=Y==null?void 0:(b=Y.primaryContents)==null?void 0:(w=b.sectionListRenderer)==null?void 0:(V=w.contents)==null?void 0:(H=V[0])==null?void 0:(f=H.itemSectionRenderer)==null?void 0:f.contents;if(!Y)return!1;b=_.N(Y);for(w=b.next();!w.done;w=b.next())if(V=void 0,(V=w.value)==null?0:V.searchFrictionViewModel)return!0;return!1};
_.g.computeShowSecondaryColumn=function(Y,b){return!!(b&&b.secondaryContents&&Y)};
_.g.activeChanged=function(){var Y=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Io(this,this.debounceStampSecondarySearchContainerIfFits)),_.KV(function(){Y.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Io(this,this.debounceStampSecondarySearchContainerIfFits))};
_.g.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.g.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.g.debounceStampSecondarySearchContainerIfFits=function(){_.ir(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.g.onRetrieveLocation=function(Y,b){b.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);Y.stopPropagation()};
_.g.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
ui.prototype.dataChanged=ui.prototype.dataChanged;ui.prototype.onRetrieveLocation=ui.prototype.onRetrieveLocation;ui.prototype.persistentGuideChanged=ui.prototype.persistentGuideChanged;ui.prototype.activeChanged=ui.prototype.activeChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],ui.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.Li),_.K("design:type",Object)],ui.prototype,"ironResizableBehavior",void 0);_.z([_.R(),_.K("design:type",Boolean)],ui.prototype,"active",void 0);_.z([_.R(),_.K("design:type",Object)],ui.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.q("enable_desktop_search_bigger_thumbs")}}),
_.K("design:type",Boolean)],ui.prototype,"useBiggerThumbs",void 0);_.z([_.R({reflectToAttribute:!0,value:function(){return _.UJ("desktop_search_bigger_thumbs_style")}}),
_.K("design:type",String)],ui.prototype,"biggerThumbsStyle",void 0);_.z([_.R(),_.K("design:type",Object)],ui.prototype,"renderSecondarySearchContainer",void 0);_.z([_.R({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.K("design:type",Boolean)],ui.prototype,"showSecondaryColumn",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.K("design:type",Boolean)],ui.prototype,"isSearchFrictionPage",void 0);
_.z([_.R(),_.K("design:type",Object)],ui.prototype,"isSearch",void 0);_.z([_.R(),_.K("design:type",Object)],ui.prototype,"isSearchDova",void 0);_.z([_.lr("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ui.prototype,"activeChanged",null);_.z([_.lr("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ui.prototype,"persistentGuideChanged",null);
_.z([_.kZ("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],ui.prototype,"onRetrieveLocation",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ui.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],ui);
_.a(ui,"ytd-two-column-search-results-renderer",function(){if(z_g!==void 0)return z_g;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-search-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-search-results-renderer">\n  <div id="continuations" class="style-scope ytd-two-column-search-results-renderer"></div>\n</div>\n<ytd-secondary-search-container-renderer id="secondary" data="[[data.secondaryContents.secondarySearchContainerRenderer]]" disable-upgrade$="[[!showSecondaryColumn]]" hidden="[[!showSecondaryColumn]]" is-search="[[isSearch]]" class="style-scope ytd-two-column-search-results-renderer">\n</ytd-secondary-search-container-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return z_g=Y},{mode:1});var Yl=function(){var Y=_.F.apply(this,arguments)||this;Y.hasSearchHeader=!1;Y.hasSecondaryContent=!1;Y.hasBiggerThumbs=_.q("enable_desktop_search_bigger_thumbs");Y.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return Y};
_.P(Yl,_.F);_.g=Yl.prototype;_.g.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:_.tN(["aa","eocs"])}}};
_.g.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.g.loadPage_=function(Y){this.initCsi();Y&&(this.data=Y,_.rx("REFINEMENTS_TUPLE",["FromSearchResponse",Y.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.uS(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.g.initCsi=function(){_.ZJ("results",["ol","cpt"])};
_.g.updateTitle=function(){var Y=_.CC(window.location.href,"q");Y||(Y=_.CC(window.location.href,"search_query"));_.Ua(this.hostElement,"yt-update-title",Y||"")};
_.g.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.g.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.q("web_srp_data_changed_terminate_imp_killswitch")||_.Xx(this.hostElement,"yt-terminate-video-preview-action")};
_.g.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.g.computeHasSearchHeader=function(Y){var b;Y=Y==null?void 0:(b=Y.header)==null?void 0:b.searchHeaderRenderer;return!!Y&&(!!Y.searchFilterButton||!!Y.chipBar)};
_.g.computeHasSecondaryContent=function(Y){var b,w;return!!(Y==null?0:(b=Y.contents)==null?0:(w=b.twoColumnSearchResultsRenderer)==null?0:w.secondaryContents)};
_.up.Object.defineProperties(Yl,{template:{configurable:!0,enumerable:!0,get:function(){if(sFR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="container" class="style-scope ytd-search">\n  <div id="header" class="style-scope ytd-search"></div>\n  <ytd-two-column-search-results-renderer active="[[active]]" data="[[data.contents.twoColumnSearchResultsRenderer]]" hidden="[[data.hideContents]]" is-search="true" class="style-scope ytd-search">\n  </ytd-two-column-search-results-renderer>\n</div>\n<div id="survey" class="style-scope ytd-search"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);sFR=Y}Y=sFR;return Y}}});
Yl.prototype.onReloadContinuationFinish=Yl.prototype.onReloadContinuationFinish;Yl.prototype.dataChanged=Yl.prototype.dataChanged;_.z([_.n(_.BJ.YtPageBehavior),_.K("design:type",Object)],Yl.prototype,"ytPageBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Yl.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],Yl.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Yl.prototype,"data",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Yl.prototype,"monitorScroll",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Yl.prototype,"hasSearchHeader",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Yl.prototype,"hasSecondaryContent",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Yl.prototype,"hasBiggerThumbs",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yl.prototype,"dataChanged",null);
_.z([_.kZ("yt-reload-continuation-finish"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yl.prototype,"onReloadContinuationFinish",null);_.z([_.S({is:"ytd-search"})],Yl);_.Uq.registerService(_.NkG,Yl);
_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("h8y2qb");
var vAN=function(Y){if(Y=_.E0u(Y)){var b;(b=Y.sources)!=null&&b[0]?(b=_.ULb(Y),b=b<1?"VERTICAL":b>1?"HORIZONTAL":"SQUARE"):b=void 0;return b}},nK=function(Y){_.nP.call(this,"upload");
this.opts.query=Y},Z2X=function(Y,b){return _.m(PKs,{data:Y,
onYtNavigate:b})},B$Q=function(Y,b){return _.kt(Y.entities,"pageHeaderEntity",b)},M_X=function(Y,b){return Y.map(function(w){if(w.tabRenderer)return nAQ(w.tabRenderer);
if(w.expandableTabRenderer&&b){var V=w.expandableTabRenderer;return{customTabRenderable:function(){return b(V)}}}return{}})},nAQ=function(Y){return{identifier:Y.tabIdentifier,
aTagConfig:_.KA({innertubeCommand:Y.endpoint,forceNewState:!0}),title:Y.title,selected:Y.selected,disabled:Y.unselectable,icon:Y.icon}},ejX=function(Y){return _.Uf({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:Y})},pMQ=function(Y){if(!_.gK(document,"gtm-noscript")){var b=document.createElement("noscript");
b.id="gtm-noscript";b.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+Y+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(b)}};_.DX(nK,_.nP);nK.prototype.JSC$8110_setLabel=function(Y){nK.superClass_.JSC$8110_setLabel.call(this,Y);return this};
nK.prototype.addUploadMetadata=function(Y,b){nK.superClass_.addUploadMetadata.call(this,Y,b);return this};var O2g=function(Y){if(Y!=="youtubebanner"&&Y!=="youtube-channel-banner")throw Error("Xl");nK.call(this,Y)};
_.P(O2g,nK);O2g.prototype.JSC$8110_setLabel=function(Y){nK.prototype.JSC$8110_setLabel.call(this,Y);return this};
O2g.prototype.addUploadMetadata=function(Y,b){nK.prototype.addUploadMetadata.call(this,Y,b);return this};var t_b=[_.Li,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(Y){_.B1(Y).path[0]!==this&&(this.resetLayout(),Y.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var Y=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.DW(this._layoutDebouncer,_.pA,Y);_.mk(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var Y=this;requestAnimationFrame(function(){Y.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(Y){this.resizerShouldNotify(Y)&&this._notifyDescendant(Y)},this)}}];_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers={};_._scrollTimer$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers=null;var RjX=[_.lRk,{properties:{effects:{type:String},effectsConfig:{type:Object,value:function(){return{}}},
disabled:{type:Boolean,reflectToAttribute:!0,value:!1},threshold:{type:Number,value:0},thresholdTriggered:{type:Boolean,notify:!0,readOnly:!0,reflectToAttribute:!0}},observers:["_effectsChanged(effects, effectsConfig, isAttached)"],_updateScrollState:function(){},
isOnScreen:function(){return!1},
isContentBelow:function(){return!1},
_effectsRunFn:null,_effects:null,get _clampedScrollTop(){return Math.max(0,this._scrollTop)},attached:function(){this._scrollStateChanged()},
detached:function(){this._tearDownEffects()},
createEffect:function(Y,b){var w=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Y];if(!w)throw new ReferenceError(this._getUndefinedMsg(Y));Y=this._boundEffect(w,b||{});Y.setUp();return Y},
_effectsChanged:function(Y,b,w){this._tearDownEffects();Y&&w&&(Y.split(" ").forEach(function(V){var H;V!==""&&((H=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[V])?this._effects.push(this._boundEffect(H,b[V])):console.warn(this._getUndefinedMsg(V)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(Y,b){b=b||{};var w=parseFloat(b.startsAt||0),V=parseFloat(b.endsAt||1),H=V-w,f=function(){};
V=w===0&&V===1?Y.run:function(E,U){Y.run.call(this,Math.max(0,(E-w)/H),U)};
return{setUp:Y.setUp?Y.setUp.bind(this,b):f,run:Y.run?V.bind(this):f,tearDown:Y.tearDown?Y.tearDown.bind(this):f}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(Y){Y.setUp()!==!1&&this._effectsRunFn.push(Y.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(Y){Y.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(Y,b){this._effectsRunFn&&this._effectsRunFn.forEach(function(w){w(Y,b)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var Y=this._clampedScrollTop;this._updateScrollState(Y);this.threshold>0&&this._setThresholdTriggered(Y>=this.threshold)}},
_getDOMRef:function(Y){console.warn("_getDOMRef","`"+Y+"` is undefined")},
_getUndefinedMsg:function(Y){return"Scroll effect `"+Y+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+Y+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Yl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(Y){var b={};Y=parseFloat(Y.scalar);b.background=this._getDOMRef("background");b.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");b.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");b.deltaBg=b.backgroundFrontLayer.offsetHeight-b.background.offsetHeight;b.deltaBg===0?(isNaN(Y)&&(Y=.8),b.deltaBg=(this._dHeight||0)*Y):(isNaN(Y)&&(Y=
1),b.deltaBg*=Y);this._fxParallaxBackground=b},
run:function(Y){var b=this._fxParallaxBackground;this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,Y)+"px, 0px)",b.backgroundFrontLayer);b.backgroundRearLayer&&this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,Y)+"px, 0px)",b.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var dBb;var FFF;var LFF=function(){};
_.g=LFF.prototype;_.g._scrollTargetChanged=function(){};
_.g.scroll=function(){};
_.g._isValidScrollTarget=function(){};
_.g._toggleScrollListener=function(){};
_.g.toggleScrollListener=function(){};
_.g.createEffect=function(){};
_.g._effectsChanged=function(){};
_.g._layoutIfDirty=function(){};
_.g._boundEffect=function(){};
_.g._setUpEffect=function(){};
_.g._tearDownEffects=function(){};
_.g._runEffects=function(){};
_.g._scrollHandler=function(){};
_.g._scrollStateChanged=function(){};
_.g._getUndefinedMsg=function(){};
_.g.notifyResize=function(){};
_.g.assignParentResizable=function(){};
_.g.stopResizeNotificationsFor=function(){};
_.g._subscribeIronResize=function(){};
_.g._unsubscribeIronResize=function(){};
_.g.resizerShouldNotify=function(){};
_.g._onDescendantIronResize=function(){};
_.g._fireResize=function(){};
_.g._onIronRequestResizeNotifications=function(){};
_.g._parentResizableChanged=function(){};
_.g._notifyDescendant=function(){};
_.g._requestResizeNotifications=function(){};
_.g._findParent=function(){};
_.g._appResetLayoutHandler=function(){};
_.g.resetLayout=function(){};
_.g._notifyLayoutChanged=function(){};
_.g._notifyDescendantResize=function(){};
_.g._setThresholdTriggered=function(){};
LFF=_.pV({_template:function(){if(FFF!==void 0)return FFF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header.tp.yt.app.header.css.js--\x3e<div id="contentContainer" class="style-scope tp-yt-app-header">\n  <slot id="slot" class="style-scope tp-yt-app-header"></slot>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;dBb===void 0&&(dBb=document.createElement("template"));var V=dBb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return FFF=Y},
is:"tp-yt-app-header",behaviors:[RjX,t_b],properties:{condenses:{type:Boolean,value:!1},fixed:{type:Boolean,value:!1},reveals:{type:Boolean,value:!1},shadow:{type:Boolean,reflectToAttribute:!0,value:!1}},observers:["_configChanged(isAttached, condenses, fixed)"],_height:0,_dHeight:0,_stickyElTop:0,_stickyElRef:null,_top:0,_progress:0,_wasScrollingDown:!1,_initScrollTop:0,_initTimestamp:0,_lastTimestamp:0,_lastScrollTop:0,get _maxHeaderTop(){return this.fixed?this._dHeight:this._height+5},get _stickyEl(){if(this._stickyElRef)return this._stickyElRef;
for(var Y=_.B1(this.$.slot).getDistributedNodes(),b=0,w;w=Y[b];b++)if(w.nodeType===Node.ELEMENT_NODE)if(w.hasAttribute("sticky")){this._stickyElRef=w;break}else this._stickyElRef||(this._stickyElRef=w);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var Y=this._clampedScrollTop,b=this._height===0||Y===0,w=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;b||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();b?this._updateScrollState(Y,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=w}},
_updateScrollState:function(Y,b){if(this._height!==0){var w=0,V=this._top;var H=this._maxHeaderTop;var f=Y-this._lastScrollTop,E=Math.abs(f),U=Y>this._lastScrollTop,X=performance.now();this._mayMove()&&(w=this._clamp(this.reveals?V+f:Y,0,H));Y>=this._dHeight&&(w=this.condenses&&!this.fixed?Math.max(this._dHeight,w):w,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&E<100){if(X-this._initTimestamp>300||this._wasScrollingDown!==U)this._initScrollTop=Y,this._initTimestamp=X;Y>=H&&
(Math.abs(this._initScrollTop-Y)>30||E>10?(U&&Y>=H?w=H:!U&&Y>=this._dHeight&&(w=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((w-V)/(f/(X-this._lastTimestamp)),0,300)+"ms"):w=this._top)}H=this._dHeight===0?Y>0?1:0:w/this._dHeight;b||(this._lastScrollTop=Y,this._top=w,this._wasScrollingDown=U,this._lastTimestamp=X);if(b||H!==this._progress||V!==w||Y===0)this._progress=H,this._runEffects(H,w),this._transformHeader(w)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(Y){this.translate3d(0,-Y+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&Y>=this._stickyElTop?Math.min(Y,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(Y,b,w){return Math.min(w,Math.max(b,Y))},
_ensureBgContainers:function(){this._bgContainer||(this._bgContainer=document.createElement("div"),this._bgContainer.id="background",this._bgRear=document.createElement("div"),this._bgRear.id="backgroundRearLayer",this._bgContainer.appendChild(this._bgRear),this._bgFront=document.createElement("div"),this._bgFront.id="backgroundFrontLayer",this._bgContainer.appendChild(this._bgFront),_.B1(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(Y){switch(Y){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.B1(this).querySelector("[main-title]");case "condensedTitle":return _.B1(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var S9t;var aQd;_.pV({_template:function(){if(aQd!==void 0)return aQd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-header-layout--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_header_layout.tp.yt.app.header.layout.css.js--\x3e<div id="wrapper" class="initializing style-scope tp-yt-app-header-layout">\n  <slot id="headerSlot" name="header" class="style-scope tp-yt-app-header-layout"></slot>\n\n  <div id="contentContainer" class="style-scope tp-yt-app-header-layout">\n    <slot class="style-scope tp-yt-app-header-layout"></slot>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;S9t===void 0&&(S9t=document.createElement("template"));var V=S9t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return aQd=Y},
is:"tp-yt-app-header-layout",behaviors:[t_b],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.B1(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var Y=this.header;if(this.isAttached&&Y){this.$.wrapper.classList.remove("initializing");Y.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)Y.style.left=
"",Y.style.right="";else{var b=this.getBoundingClientRect(),w=document.documentElement.clientWidth-b.right;Y.style.left=b.left+"px";Y.style.right=w+"px"}b=this.$.contentContainer.style;w=Y.offsetHeight;Y.fixed&&!Y.condenses&&this.hasScrollingRegion?(b.marginTop=w+"px",b.paddingTop=""):(b.paddingTop=w+"px",b.marginTop="")}}});var rkN=new _.A("replaceFeedContentAction");var zjA=new _.A("alertCommand");var WFd=new _.A("manageLabsStateCommand");var KFt=new _.A("inlineFormRenderer");var M9=new _.A("playlistSidebarPrimaryInfoRenderer");var i2b=new _.A("productDetailsThumbnailRenderer"),AkR=new _.A("productDetailsVariantRenderer"),CKX=new _.A("productDetailsVariantOptionRenderer"),ykt=new _.A("productDetailsOffersContainerRenderer"),$BO=new _.A("productDetailsOfferRenderer");var jbs=new _.A("shoppingFlaggingRenderer");var G$N=new _.A("playlistBylineRenderer");var T$t=new _.A("insertChannelTabCommand");var en=function(){return _.s6.apply(this,arguments)||this};
_.P(en,_.s6);_.g=en.prototype;_.g.activeChanged=function(){if(this.active){var Y=_.E6(this.hostElement).querySelector("#header");Y&&_.Ua(Y,"iron-resize");window.addEventListener("scroll",_.Io(this,this.onScroll))}else window.removeEventListener("scroll",_.Io(this,this.onScroll)),_.Ua(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.g.guideVisibleChanged=function(){var Y=_.E6(this.hostElement).querySelector("#header");Y&&_.Ua(Y,"iron-resize")};
_.g.onScroll=function(){var Y=this;_.ir(this,"onScroll",function(){var b=_.E6(Y.hostElement).querySelector("#header");b&&b.polymerController&&(b=b.polymerController.getScrollState().progress===1?"standard":"seamed",_.Ua(Y.hostElement,"yt-request-panel-mode-change",{mode:b}))},10)};
_.g.tabsChanged=function(){if(this.tabs){for(var Y=null,b=0,w=this.tabs.length;b<w;++b){var V=this.tabs[b].tabRenderer;if(V&&V.selected){Y=b;break}}this.selected=Y}};
_.g.onTabsActivate=function(Y){_.Ua(this.hostElement,"yt-navigate",{endpoint:this.tabs[Y.detail.selected].tabRenderer.endpoint})};
en.prototype.tabsChanged=en.prototype.tabsChanged;en.prototype.guideVisibleChanged=en.prototype.guideVisibleChanged;en.prototype.activeChanged=en.prototype.activeChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],en.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.R(),_.K("design:type",Array)],en.prototype,"tabs",void 0);
_.z([_.R(),_.K("design:type",Object)],en.prototype,"selected",void 0);_.z([_.R(),_.K("design:type",Boolean)],en.prototype,"active",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],en.prototype,"disableHeaderFluidWidth",void 0);_.z([_.lr("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],en.prototype,"activeChanged",null);
_.z([_.lr("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],en.prototype,"guideVisibleChanged",null);_.z([_.lr("tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],en.prototype,"tabsChanged",null);_.z([_.QC()],en);var Jk7=[_.u.YtRendererBehavior,_.Ww.YtdGuideStateAwareBehavior,en.prototype];var u7g=2/3,YEN=_.tj(130749),bFN=function(Y,b){var w=this;this.element=Y;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){w.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:u7g,moveAction:function(V){w.moveAction(V)},
triggerAction:function(){w.element.isReloading=!0;_.Aj(_.Qd(),{visualElement:YEN});_.l8.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:w.element}})}}}};
_.IC(_.Qd(),YEN,this.layer);this.gesture=new _.Xe(Y,b,this.refreshConfig,"pan-down");this.attach()};
_.g=bFN.prototype;_.g.attach=function(){this.gesture.attach()};
_.g.detach=function(){this.gesture.detach()};
_.g.reset=function(){this.element.close()};
_.g.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.g.moveAction=function(Y){this.element.rotation=Y*360};var wc7=_.tj(130750),pK=function(Y,b,w,V,H){var f=this;this.element=Y;this.parent=w;this.channelHeader=V;this.ytdReduxDispatch=H;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){f.tabsStartAtInPx=f.channelHeader.clientHeight-48;var E;(E=f.selectedTab)!=null&&E.title&&(E=_.fH().resolve(_.HQ(_.bX)))&&(E=E.getCurrentPage(),f.lastVisitedTabScrollPosition=E.getScrollTop(),f.previousTab&&
((f.lastVisitedTabScrollPosition===void 0?0:f.lastVisitedTabScrollPosition<f.channelHeader.clientHeight-48)?f.scrollPositionForTabs.has(f.selectedTab.title)&&f.scrollPositionForTabs.delete(f.selectedTab.title):f.scrollPositionForTabs.set(f.selectedTab.title,E.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:VDR(),triggerAction:function(){f.navigate(f.previousTab)},
moveAction:function(E,U){f.moveAction(E,U)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-VDR(),triggerAction:function(){f.navigate(f.nextTab)},
moveAction:function(E,U){f.moveAction(E,U)}}}};
_.IC(_.Qd(),wc7,this.layer);this.gesture=new _.Xe(Y,b,this.tabConfig);this.attach()};
pK.prototype.attach=function(){this.gesture.attach()};
pK.prototype.detach=function(){this.gesture.detach()};
pK.prototype.tabsChanged=function(Y){if(Y){var b=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next()){w=w.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=w);var V=void 0;if((V=w)==null?0:V.selected)this.previousTab=b,this.selectedTab=w;b=w}b=this.gesture;Y=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
b.config=Y;this.scrollPositionNeedsUpdate=!0}};
pK.prototype.moveAction=function(Y,b){if(!this.tabsElement){var w;this.tabsElement=(w=this.parent.header)==null?void 0:w.tabsElement;b==="right"&&this.previousTab?_.FLK(_.B5.instance,this.previousTab.endpoint,{},""):b==="left"&&this.nextTab&&_.FLK(_.B5.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}w=this.tabsElement._pos;b==="right"&&(Y*=-1);this.tabsElement._positionBar(w.width,w.left*1+w.width*Y)};
var VDR=function(){var Y,b;return(b=(Y=_.fH().resolve(_.bX).getCurrentPage())==null?void 0:Y.clientWidth)!=null?b:0};
pK.prototype.navigate=function(Y){this.element.data=void 0;if(Y=Y==null?void 0:Y.endpoint)this.ytdReduxDispatch(ejX(!0)),_.Aj(_.Qd(),{visualElement:wc7}),_.l8.instance.resolveCommand({navigateAction:{endpoint:Y}},{form:{element:this.element}})};var HFI;var g6X;var OW=function(){return _.F.apply(this,arguments)||this};
_.P(OW,_.F);OW.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],OW.prototype,"data",void 0);_.z([_.S({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],OW);
_.a(OW,"ytd-labs-edit-renderer",function(){if(g6X!==void 0)return g6X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-edit-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-edit-renderer">\n  <h2 id="title" class="style-scope ytd-labs-edit-renderer">[[getSimpleString(data.title)]]</h2>\n  <div id="delete-button" class="style-scope ytd-labs-edit-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return g6X=Y},{mode:1});var fBX;var tY=function(){var Y=_.F.apply(this,arguments)||this;Y.dark=!1;Y.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";Y.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(tY,_.F);tY.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tY.prototype.ready=function(){var Y=document.documentElement.hasAttribute("dark");this.setBackgroundImage(Y);this.dark=Y};
tY.prototype.onDarkModeToggledAction=function(Y){this.setBackgroundImage(Y);this.dark=Y};
tY.prototype.setBackgroundImage=function(Y){_.m_(this.hostElement,{"--yt-labs-header-background":"url("+(Y?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],tY.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],tY.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],tY.prototype,"dark",void 0);
_.z([_.S({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],tY);
_.a(tY,"ytd-labs-header-renderer",function(){if(fBX!==void 0)return fBX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="wrapper" class="style-scope ytd-labs-header-renderer">\n  <div id="contents" class="style-scope ytd-labs-header-renderer">\n    <div id="metadata" class="style-scope ytd-labs-header-renderer">\n      <ytd-badge-supported-renderer hidden="[[!data.badge]]" top-standalone-badge="[[data.badge]]" class="style-scope ytd-labs-header-renderer">\n      </ytd-badge-supported-renderer>\n      <h3 id="title" class="style-scope ytd-labs-header-renderer">[[getSimpleString(data.title)]]</h3>\n      <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-header-renderer"></yt-formatted-string>\n      <div id="primary-button" class="style-scope ytd-labs-header-renderer"></div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return fBX=Y},{mode:1});var N37;var RE=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return Y};
_.P(RE,_.F);RE.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"}}}}}};
RE.prototype.onYtToggleButton=function(Y){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",Y.detail.toggled)};
RE.prototype.onManageLabsState=function(Y){if(Y=_.v(Y,WFd))Y.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?Y.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&Y.labsItemId===this.data.labsItemId&&(Y.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Xx(this.hostElement,"yt-check-labs-opted-in-state").some(function(b){return b})&&this.data.confirmationDialogCommand?_.IP(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.fH().resolve(_.Nn).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&Y.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.fH().resolve(_.Nn).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
RE.prototype.onCheckLabsOptedInState=function(){var Y=this.get("data.primaryButton.toggleButtonRenderer");return Y?Y.isToggled:!1};
_.up.Object.defineProperties(RE.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
RE.prototype.onYtToggleButton=RE.prototype.onYtToggleButton;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],RE.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],RE.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],RE.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],RE.prototype,"itemStyle",null);_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],RE.prototype,"onYtToggleButton",null);_.z([_.S({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],RE);
_.a(RE,"ytd-labs-item-renderer",function(){if(N37!==void 0)return N37;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-labs-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-labs-item-renderer">\n  <div id="metadata" class="style-scope ytd-labs-item-renderer">\n    <div id="badge" hidden="[[!data.badgeTitle]]" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.badgeTitle)]]</div>\n    <h2 id="title" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.title)]]</h2>\n    <div id="expiration-date" class="style-scope ytd-labs-item-renderer">[[getSimpleString(data.expirationDate)]]</div>\n    <yt-formatted-string id="availability-text" hidden="[[data.primaryButton.toggleButtonRenderer.isToggled]]" text="[[data.experimentalInfo.availabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="text" split-lines="" text="[[data.text]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <yt-formatted-string id="disclaimer-text" split-lines="" text="[[data.experimentalInfo.disclaimerText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope ytd-labs-item-renderer">\n      <div id="primary-button" class="style-scope ytd-labs-item-renderer"></div>\n      <div id="feedback-button" hidden="[[!data.primaryButton.toggleButtonRenderer.isToggled]]" class="style-scope ytd-labs-item-renderer">\n      </div>\n    </div>\n    <yt-formatted-string id="no-availability-text" text="[[data.experimentalInfo.noAvailabilityText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="promo-image" hidden="[[data.experimentalLabelText]]" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n  </yt-img-shadow>\n  <div id="experimental-img" hidden="[[!data.experimentalLabelText]]" width="395" class="style-scope ytd-labs-item-renderer">\n    <yt-img-shadow id="promo-image" thumbnail="[[data.promoImage]]" width="395" class="style-scope ytd-labs-item-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="experimental-label" text="[[data.experimentalLabelText]]" class="style-scope ytd-labs-item-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return N37=Y},{mode:1});var E6O;var cgb;var dk=function(){return _.F.apply(this,arguments)||this};
_.P(dk,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dk.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],dk.prototype,"data",void 0);_.z([_.S({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],dk);
_.a(dk,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(cgb!==void 0)return cgb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-new-sponsor-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.newSponsorMessage]]" class="style-scope ytd-live-chat-history-new-sponsor-chip-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return cgb=Y},{mode:1});var UWb;var Fe=function(){return _.F.apply(this,arguments)||this};
_.P(Fe,_.F);Fe.prototype.observeSuperchatChip=function(){if(this.data){var Y={"--yt-live-chat-history-super-chat-chip-renderer-background-color":this.colorFromDecimal(this.data.backgroundColor),"--yt-live-chat-history-super-chat-chip-renderer-text-color":this.colorFromDecimal(this.data.textColor)};_.m_(this.hostElement,Y)}};
Fe.prototype.colorFromDecimal=function(Y){return _.KX(Number(Y||0))};
Fe.prototype.observeSuperchatChip=Fe.prototype.observeSuperchatChip;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Fe.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fe.prototype,"observeSuperchatChip",null);_.z([_.S({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Fe);
_.a(Fe,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(UWb!==void 0)return UWb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-super-chat-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.purchaseAmountText]]" class="style-scope ytd-live-chat-history-super-chat-chip-renderer"></yt-formatted-string>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return UWb=Y},{mode:1});var LK=function(){return _.F.apply(this,arguments)||this};
_.P(LK,_.F);LK.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"}}}};
_.up.Object.defineProperties(LK.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Si),_.K("design:type",Object)],LK.prototype,"ytdDismissibleItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],LK.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],LK.prototype,"hideMessageBlock",null);
_.z([_.S({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],LK);
_.a(LK,"ytd-live-chat-history-entry-renderer",function(){if(E6O!==void 0)return E6O;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-live-chat-history-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-live-chat-history-entry-renderer">\n  <div id="text" class="style-scope ytd-live-chat-history-entry-renderer">\n    <yt-formatted-string id="title" link-inherit-color="" text="[[data.videoTitle]]" class="style-scope ytd-live-chat-history-entry-renderer"></yt-formatted-string>\n    <div id="chip-container" class="style-scope ytd-live-chat-history-entry-renderer">\n      <div id="superchat-container" hidden="[[!data.chip]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        <span id="chips" class="style-scope ytd-live-chat-history-entry-renderer"></span>\n        <yt-formatted-string id="charity-name" text="[[data.charityName]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n        <yt-formatted-string id="sc4g-message" hidden="[[data.charityName]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="message" hidden="[[hideMessageBlock]]" text="[[data.message]]" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="sticker" class="style-scope ytd-live-chat-history-entry-renderer">\n      <yt-img-shadow height="64" hidden="[[!data.stickerThumbnail]]" thumbnail="[[data.stickerThumbnail]]" width="64" class="style-scope ytd-live-chat-history-entry-renderer">\n      </yt-img-shadow>\n    </div>\n    <span id="timestamp" class="style-scope ytd-live-chat-history-entry-renderer">[[getSimpleString(data.timestamp)]]</span>\n  </div>\n  <div id="delete-button" class="style-scope ytd-live-chat-history-entry-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return E6O=Y},{mode:1});var XcR;var Sn=function(){return _.F.apply(this,arguments)||this};
_.P(Sn,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Sn.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Sn);
_.a(Sn,"ytd-channel-options-renderer",function(){if(XcR!==void 0)return XcR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="channel-info" hidden="[[!data.name]]" class="style-scope ytd-channel-options-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-channel-options-renderer" href$="[[computeHref_(data.avatarEndpoint)]]" data="[[data.avatarEndpoint]]" aria-label$="[[data.avatarAccessibility.accessibilityData.label]]">\n    <yt-img-shadow height="50" thumbnail="[[data.avatar]]" width="50" class="style-scope ytd-channel-options-renderer">\n    </yt-img-shadow>\n  </a>\n  <div id="channel-info-text" class="style-scope ytd-channel-options-renderer">\n    <div id="name" class="style-scope ytd-channel-options-renderer">[[data.name]]</div>\n  </div>\n</div>\n<template is="dom-repeat" items="[[data.links]]" class="style-scope ytd-channel-options-renderer">\n  <yt-formatted-string class="link style-scope ytd-channel-options-renderer" force-default-style="" split-lines="" text="[[item]]">\n  </yt-formatted-string>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return XcR=Y},{mode:1});var DWt;var aE=function(){return _.F.apply(this,arguments)||this};
_.P(aE,_.F);aE.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],aE.prototype,"data",void 0);_.z([_.S({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],aE);
_.a(aE,"ytd-settings-email-item-renderer",function(){if(DWt!==void 0)return DWt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info" class="style-scope ytd-settings-email-item-renderer">\n  <yt-img-shadow height="36" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" width="36" class="style-scope ytd-settings-email-item-renderer">\n  </yt-img-shadow>\n  <div id="title" class="style-scope ytd-settings-email-item-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="button-container" class="style-scope ytd-settings-email-item-renderer">\n  <div id="resume-button" class="style-scope ytd-settings-email-item-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return DWt=Y},{mode:1});var mWN;var rk=function(){return _.F.apply(this,arguments)||this};
_.P(rk,_.F);rk.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"}}}};
rk.prototype.getExpansionIcon=function(Y){return Y?"COLLAPSE":"EXPAND"};
rk.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.up.Object.defineProperties(rk.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],rk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rk.prototype,"data",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],rk.prototype,"expanded",void 0);_.z([_.t("expanded"),_.K("design:type",String),_.K("design:paramtypes",[])],rk.prototype,"emailListExpanded",null);
_.z([_.xZ("#options"),_.K("design:type",Object)],rk.prototype,"options",void 0);_.z([_.S({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],rk);
_.a(rk,"ytd-settings-email-list-renderer",function(){if(mWN!==void 0)return mWN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-email-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-settings-email-list-renderer">\n  <tp-yt-paper-button id="list-expansion" aria-expanded$="[[emailListExpanded]]" aria-label$="[[getSimpleString(data.title)]]" noink="" on-tap="onToggleListExpansion" class="style-scope ytd-settings-email-list-renderer">\n    <div id="title" class="style-scope ytd-settings-email-list-renderer">[[getSimpleString(data.title)]]</div>\n    <yt-icon id="help-icon" hidden="[[!data.helpText]]" icon="yt-icons:help" class="style-scope ytd-settings-email-list-renderer"></yt-icon>\n    <tp-yt-paper-tooltip for="help-icon" hidden="[[!data.helpText]]" offset="5" position="top" class="style-scope ytd-settings-email-list-renderer">\n      [[getSimpleString(data.helpText)]]\n    </tp-yt-paper-tooltip>\n    <yt-icon class="expand-icon style-scope ytd-settings-email-list-renderer" icon="[[getExpansionIcon(expanded)]]"></yt-icon>\n  </tp-yt-paper-button>\n  <div id="button-container" hidden="[[!data.resumeButton]]" on-tap="onResumeAll" class="style-scope ytd-settings-email-list-renderer">\n    <div id="resume-button" class="style-scope ytd-settings-email-list-renderer"></div>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-settings-email-list-renderer">\n  <div id="options" class="style-scope ytd-settings-email-list-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return mWN=Y},{mode:1});var o6X;var zE=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return Y};
_.P(zE,_.F);zE.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"}}}};
zE.prototype.handleSignalActionSubmitForm=function(){var Y,b=(Y=this.formRenderer)==null?void 0:Y.getForm();b&&this.data.serviceEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},b,{element:this.hostElement})})};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],zE.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zE.prototype,"data",void 0);_.z([_.xZ("yt-form-renderer"),_.K("design:type",Object)],zE.prototype,"formRenderer",void 0);
_.z([_.S({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],zE);
_.a(zE,"ytd-settings-gaia-link-renderer",function(){if(o6X!==void 0)return o6X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-gaia-link-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form-container" class="style-scope ytd-settings-gaia-link-renderer">\n  <div id="username-password-form" class="style-scope ytd-settings-gaia-link-renderer"></div>\n  <div id="claim-button" class="style-scope ytd-settings-gaia-link-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return o6X=Y},{mode:1});var IBF;var WJ=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return Y};
_.P(WJ,_.F);WJ.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.XtX()&&this.set("data.hidden",!1)};
WJ.prototype.onSwitchReady=function(){var Y=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.q("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.U67().then(function(b){b&&(Notification.permission==="default"?Y.set("data.hidden",!1):Notification.permission==="granted"&&_.ud("NotificationsDisabled").then(function(w){w||_.Xx(Y.hostElement,"yt-toggle-settings-switch",[Y.data.id,!w]);Y.set("data.hidden",!1)}).catch(function(){}))})})};
WJ.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}}}}};
WJ.prototype.handleUpdateOptionsCommand=function(Y){(Y=_.v(Y,_.GZC))&&this.data&&this.data.id===Y.id&&(this.set("data.hidden",Y.hidden),Y.text!==void 0&&this.set("data.text",Y.text),Y.clearOptions&&this.set("data.options",[]))};
WJ.prototype.onSwitchReady=WJ.prototype.onSwitchReady;WJ.prototype.dataChanged=WJ.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],WJ.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],WJ.prototype,"data",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WJ.prototype,"dataChanged",null);_.z([_.kZ("yt-settings-switch-ready"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],WJ.prototype,"onSwitchReady",null);_.z([_.S({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],WJ);
_.a(WJ,"ytd-settings-options-renderer",function(){if(IBF!==void 0)return IBF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="section" hidden="[[data.hidden]]" class="style-scope ytd-settings-options-renderer">\n  <div id="title" class="style-scope ytd-settings-options-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="content" class="style-scope ytd-settings-options-renderer">\n    <div id="options" class="style-scope ytd-settings-options-renderer"></div>\n    <yt-formatted-string id="text" force-default-style="" hidden="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-settings-options-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return IBF=Y},{mode:1});var kot;var KK=function(){return _.F.apply(this,arguments)||this};
_.P(KK,_.F);KK.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
KK.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
KK.prototype.onYtExpanderMoreTapped=KK.prototype.onYtExpanderMoreTapped;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],KK.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],KK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],KK.prototype,"data",void 0);
_.z([_.kZ("yt-expander-more-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KK.prototype,"onYtExpanderMoreTapped",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],KK);
_.a(KK,"ytd-product-details-description-renderer",function(){if(kot!==void 0)return kot;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-description-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-description-renderer">\n  <div class="description-row row style-scope ytd-product-details-description-renderer">\n      <ytd-expander id="expander" hidden="[[!data.description]]" max-number-of-lines="4" recompute-on-resize="" class="style-scope ytd-product-details-description-renderer">\n        <div class="description style-scope ytd-product-details-description-renderer" slot="content">[[data.description]]\n        </div>\n        <span id="attribution-link-button" slot="sticky-secondary" hidden="[[!data.attributionLinkButtonRenderer]]" class="style-scope ytd-product-details-description-renderer"></span>\n        <span class="more-button style-scope ytd-product-details-description-renderer" slot="more-button">[[getSimpleString(data.moreButtonRenderer.buttonRenderer.text)]]</span>\n        <span class="less-button style-scope ytd-product-details-description-renderer" slot="less-button">[[getSimpleString(data.lessButtonRenderer.buttonRenderer.text)]]</span>\n      </ytd-expander>\n    </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return kot=Y},{mode:1});var lBt;var il=function(){var Y=_.F.apply(this,arguments)||this;Y.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";Y.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";Y.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";Y.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return Y};
_.P(il,_.F);il.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.up.Object.defineProperties(il.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.offerData)==null?void 0:b.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?void 0:Y.purchaseButtonRenderers)!==void 0&&((b=this.data)==null?void 0:b.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.formattedFromMerchantText)&&(!((b=this.data)==null||!b.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],il.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],il.prototype,"data",void 0);
_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],il.prototype,"shippingIcon",void 0);_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],il.prototype,"shippingAddressIcon",void 0);_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],il.prototype,"googleGuaranteeIcon",void 0);
_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?String:void 0}),_.K("design:type",Object)],il.prototype,"returnPolicyIcon",void 0);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],il.prototype,"showAdditionalFees",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],il.prototype,"showMultiPurchaseButtons",null);
_.z([_.t("data","showMultiPurchaseButtons"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],il.prototype,"showPurchaseData",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],il);
_.a(il,"ytd-product-details-hero-offer-renderer",function(){if(lBt!==void 0)return lBt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-hero-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="price-and-action-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showPurchaseData]]" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="price-column style-scope ytd-product-details-hero-offer-renderer">\n    <div class="price style-scope ytd-product-details-hero-offer-renderer">\n      <span class="item-price style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.price]]</span>\n      <template is="dom-if" restamp="" if="[[showAdditionalFees]]" class="style-scope ytd-product-details-hero-offer-renderer">\n        <span class="additional-fees style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n      </template>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-hero-offer-renderer">[[data.offerData.title]]</div>\n    <template is="dom-if" restamp="" if="[[!data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="merchant-row row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n          <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n        </div>\n        <yt-formatted-string text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      </yt-formatted-string></div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.shippingDetails]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div class="shipping-details row style-scope ytd-product-details-hero-offer-renderer">\n        <div class="shipping-details-inner column style-scope ytd-product-details-hero-offer-renderer">\n          <div class="row shipping-details-inner-row secondary-color style-scope ytd-product-details-hero-offer-renderer">\n            <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n              <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n            </div>\n            <yt-formatted-string link-inherit-color="" text="[[data.formattedFromMerchantText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n          </yt-formatted-string></div>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="date-and-price" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingDate]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="return-policy" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[returnPolicyIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string link-inherit-color="" text="[[data.shippingDetails.returnPolicy]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="shipping-address" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[shippingAddressIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <yt-formatted-string text="[[data.shippingDetails.shippingAddress]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            </yt-formatted-string></div>\n          </template>\n          <template is="dom-if" restamp="" if="[[data.shoutoutText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n            <div id="google-guarantee" class="row shipping-details-inner-row style-scope ytd-product-details-hero-offer-renderer">\n              <div class="logo style-scope ytd-product-details-hero-offer-renderer">\n                <img src$="[[googleGuaranteeIcon]]" alt="" class="logo-url style-scope ytd-product-details-hero-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n              </div>\n              <span class="shoutout-text secondary-color style-scope ytd-product-details-hero-offer-renderer">[[data.shoutoutText]]</span>\n              <ytd-button-renderer class="google-guarantee-info style-scope ytd-product-details-hero-offer-renderer" data="[[data.shoutoutButtonRenderer.buttonRenderer]]">\n              </ytd-button-renderer>\n            </div>\n          </template>\n        </div>\n      </div>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.affiliateDisclaimerText]]" class="style-scope ytd-product-details-hero-offer-renderer">\n      <div id="affiliate-disclaimer" class="affiliate-disclaimer-text-row row style-scope ytd-product-details-hero-offer-renderer">\n        <span class="secondary-color style-scope ytd-product-details-hero-offer-renderer"> [[data.affiliateDisclaimerText]] </span>\n      </div>\n    </template>\n    <div class="purchase-buttons-row row style-scope ytd-product-details-hero-offer-renderer" hidden="[[!showMultiPurchaseButtons]]">\n      <div id="purchase-buttons" class="purchase-buttons-inner column style-scope ytd-product-details-hero-offer-renderer">\n      </div>\n    </div>\n  </div>\n  <div class="action-column style-scope ytd-product-details-hero-offer-renderer">\n    <div id="purchase-button" class="style-scope ytd-product-details-hero-offer-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lBt=Y},{mode:1});var hbN;var xWF;var AY=function(){return _.F.apply(this,arguments)||this};
_.P(AY,_.F);_.g=AY.prototype;_.g.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.g.onKeyDown=function(Y){Y=Y.keyCode;Y!==13&&Y!==32||this.handleSelection()};
_.g.onMouseEnterImage=function(){var Y;((Y=this.data)==null?void 0:Y.thumbnailDetails)!==void 0&&_.De(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.g.onMouseLeaveImage=function(){_.De(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.g.handleSelection=function(){this.data&&_.Ua(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.up.Object.defineProperties(AY.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.isSelected)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],AY.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],AY.prototype,"isSelected",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],AY);
_.a(AY,"ytd-product-details-thumbnail-renderer",function(){if(xWF!==void 0)return xWF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="product-card-renderer-container" class="style-scope ytd-product-details-thumbnail-renderer">\n  <div id="card" class="style-scope ytd-product-details-thumbnail-renderer">\n    <div hidden="[[!isSelected]]" id="card-selection-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <div id="card-overlay" class="style-scope ytd-product-details-thumbnail-renderer"></div>\n    <yt-img-shadow id="card-image" aria-label="[[data.thumbnailDetails.accessibility.accessibilityData.label]]" object-fit="CONTAIN" thumbnail="[[data.thumbnailDetails]]" width="56px" class="style-scope ytd-product-details-thumbnail-renderer">\n    </yt-img-shadow>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return xWF=Y},{mode:1});var CK=function(){var Y=_.F.apply(this,arguments)||this;var b={};Y.actionMap=(b["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",b["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",b);Y.selectedThumbnailIndex=0;Y.selectItem=function(w){w.target.onKeyDown(w)};
return Y};
_.P(CK,_.F);_.g=CK.prototype;_.g.handlePreviewImageSelect=function(Y){this.hoverThumbnail=Y};
_.g.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.g.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.g.onThumbnailSelected=function(Y,b){this.selectedThumbnailIndex=b};
_.g.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.g.updateOffset=function(){var Y=_.E6(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-Y));this.ytdHorizontalListBehavior.reposition_()};
_.up.Object.defineProperties(CK.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.imageRenderer){var b,w;return((b=this.data)==null?void 0:(w=b.imageRenderer)==null?void 0:w.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var Y;if((Y=this.data)==null?0:Y.imageRenderer){var b;return(b=_.v(this.data.imageRenderer[this.selectedThumbnailIndex],i2b))==null?void 0:b.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var Y=this,b,w,V,H=(V=(b=this.data)==null?void 0:(w=b.imageRenderer)==null?void 0:w.map(function(f,E){return{productDetailsThumbnailRenderer:Object.assign({},_.v(f,i2b),{index:E,isSelected:E===Y.selectedThumbnailIndex})}}))!=null?V:[];
return Object.assign({},this.data,{imageRenderer:H})}}});
CK.prototype.updateOffset=CK.prototype.updateOffset;CK.prototype.dataChanged=CK.prototype.dataChanged;CK.prototype.onThumbnailSelected=CK.prototype.onThumbnailSelected;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.HR.YtdHorizontalListBehavior),_.K("design:type",Object)],CK.prototype,"ytdHorizontalListBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],CK.prototype,"componentBehavior",void 0);_.z([_.n([_.US.YtActionHandlerBehavior]),_.K("design:type",Object)],CK.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CK.prototype,"data",void 0);_.z([_.R({value:"$.items.children"}),_.K("design:type",String)],CK.prototype,"itemsPath",void 0);_.z([_.R({value:3}),_.K("design:type",Number)],CK.prototype,"initialCount",void 0);
_.z([_.xZ("#items"),_.K("design:type",Object)],CK.prototype,"items",void 0);_.z([_.R(),_.K("design:type",Object)],CK.prototype,"selectedThumbnailIndex",void 0);_.z([_.R(),_.K("design:type",Object)],CK.prototype,"hoverThumbnail",void 0);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],CK.prototype,"showThumbnails",null);
_.z([_.kZ("ytd-product-details-thumbnail-renderer-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Number]),_.K("design:returntype")],CK.prototype,"onThumbnailSelected",null);_.z([_.t("data","selectedThumbnailIndex","hoverThumbnail"),_.K("design:type",Object),_.K("design:paramtypes",[])],CK.prototype,"thumbnailDetails",null);_.z([_.t("data","selectedThumbnailIndex"),_.K("design:type",Object),_.K("design:paramtypes",[])],CK.prototype,"populatedData",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CK.prototype,"dataChanged",null);_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],CK.prototype,"updateOffset",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],CK);
_.a(CK,"ytd-product-details-image-carousel-renderer",function(){if(hbN!==void 0)return hbN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-image-carousel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="preview style-scope ytd-product-details-image-carousel-renderer">\n  <template is="dom-if" restamp="" if="[[thumbnailDetails]]" class="style-scope ytd-product-details-image-carousel-renderer">\n    <yt-img-shadow class="preview-image style-scope ytd-product-details-image-carousel-renderer" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="512"></yt-img-shadow>\n  </template>\n</div>\n<div id="main" class="main style-scope ytd-product-details-image-carousel-renderer" hidden="[[!showThumbnails]]">\n  <div id="left-arrow-container" class="left-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="left-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-product-details-image-carousel-renderer">\n    <tp-yt-paper-listbox id="items" on-keydown="selectItem" class="style-scope ytd-product-details-image-carousel-renderer"></tp-yt-paper-listbox>\n  </div>\n  <div id="right-arrow-container" class="right-arrow-container style-scope ytd-product-details-image-carousel-renderer">\n    <div id="right-arrow" class="arrow style-scope ytd-product-details-image-carousel-renderer" on-click="nextClick_" hidden="[[atEnd]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-product-details-image-carousel-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return hbN=Y},{mode:_.Xd("kevlar_poly_si_batch_j079")?1:2});var qEQ;var yi=function(){return _.F.apply(this,arguments)||this};
_.P(yi,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yi.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],yi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],yi.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yi.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],yi);
_.a(yi,"ytd-product-details-offer-renderer",function(){if(qEQ!==void 0)return qEQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n\n<div class="offer-details offer-details-new-ux style-scope ytd-product-details-offer-renderer" data-offer-version-id$="[[data.offerData.debugOfferVersionId]]">\n  <div class="offer-details-information style-scope ytd-product-details-offer-renderer">\n    <div class="offer-price style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.price]]\n      <span class="additional-fees style-scope ytd-product-details-offer-renderer">[[data.offerData.additionalFeesText]]</span>\n    </div>\n    <div class="offer-title style-scope ytd-product-details-offer-renderer">\n      [[data.offerData.title]]\n    </div>\n    <div class="vendor-information style-scope ytd-product-details-offer-renderer">\n      <div class="vendor-logo style-scope ytd-product-details-offer-renderer">\n        <img src$="[[data.offerData.vendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offer-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <div class="vendor-name style-scope ytd-product-details-offer-renderer">[[data.offerData.vendorName]]</div>\n    </div>\n  </div>\n  <div class="offer-cta style-scope ytd-product-details-offer-renderer">\n    <div class="checkout style-scope ytd-product-details-offer-renderer">\n      <ytd-button-renderer data="[[data.purchaseButtonRenderer.buttonRenderer]]" class="style-scope ytd-product-details-offer-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return qEQ=Y},{mode:1});var srs;var jn=function(){var Y=_.F.apply(this,arguments)||this;Y.isOffersHidden=!0;return Y};
_.P(jn,_.F);jn.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var Y,b=_.v((Y=this.data)==null?void 0:Y.viewOffersButton,_.Wa);b&&this.ytRendererBehavior.logExplicitClick(b)};
jn.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.up.Object.defineProperties(jn.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return(w=_.v((Y=this.data)==null?void 0:(b=Y.offers)==null?void 0:b[0],$BO))==null?void 0:(V=w.offerData)==null?void 0:V.vendorLogoUrl}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],jn.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jn.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],jn.prototype,"isOffersHidden",void 0);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],jn.prototype,"firstOfferVendorLogoUrl",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],jn);
_.a(jn,"ytd-product-details-offers-container-renderer",function(){if(srs!==void 0)return srs;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-offers-container-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="offer-container style-scope ytd-product-details-offers-container-renderer">\n  <div class="header style-scope ytd-product-details-offers-container-renderer" on-click="toggleOffers">\n    <div class="title-description-container style-scope ytd-product-details-offers-container-renderer">\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionLeft]]">\n      </yt-formatted-string>\n      <div class="vendor-logo style-scope ytd-product-details-offers-container-renderer">\n        <img src$="[[firstOfferVendorLogoUrl]]" alt="" class="vendor-logo-url style-scope ytd-product-details-offers-container-renderer" onerror="this.style.visibility=\'hidden\';">\n      </div>\n      <yt-formatted-string class="title style-scope ytd-product-details-offers-container-renderer" text="[[data.descriptionRight]]">\n      </yt-formatted-string>\n    </div>\n    <div class="action style-scope ytd-product-details-offers-container-renderer">\n      <ytd-button-renderer id="view-offers" class="view-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="false" data="[[data.viewOffersButton.buttonRenderer]]" hidden="[[!isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n      <ytd-button-renderer id="hide-offers" class="hide-button style-scope ytd-product-details-offers-container-renderer" aria-expanded="true" data="[[data.hideOffersButton.buttonRenderer]]" hidden="[[isOffersHidden]]" noink="">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="offer" hidden="[[isOffersHidden]]" class="style-scope ytd-product-details-offers-container-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return srs=Y},{mode:1});var Qrb;var v6d;var GE=function(){return _.F.apply(this,arguments)||this};
_.P(GE,_.F);GE.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
GE.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.De(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
GE.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.De(this,"ytd-product-details-variant-image-unselect")};
_.up.Object.defineProperties(GE.prototype,{isImageButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE"}},
isPillButton:{configurable:!0,enumerable:!0,get:function(){return this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL"||this.displayType==="VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST"}},
isActive:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?void 0:Y.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((w=this.data)==null?void 0:w.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var Y;if(((Y=this.data)==null?void 0:Y.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var Y,b;return this.isUnavailable?(Y=this.data)==null?void 0:Y.variantOptionUnavailableAccessibilityLabel:(b=this.data)==null?void 0:b.variantOptionAccessibilityLabel}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],GE.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],GE.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],GE.prototype,"displayType",void 0);
_.z([_.t("displayType","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GE.prototype,"isImageButton",null);_.z([_.t("displayType","data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GE.prototype,"isPillButton",null);_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GE.prototype,"isActive",null);
_.z([_.t("data"),_.R({reflectToAttribute:!0}),_.K("design:type",Boolean),_.K("design:paramtypes",[])],GE.prototype,"isUnavailable",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],GE.prototype,"thumbnailDetails",null);_.z([_.t("isUnavailable","data"),_.K("design:type",Object),_.K("design:paramtypes",[])],GE.prototype,"accessibilityLabel",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],GE);
_.a(GE,"ytd-product-details-variant-option-renderer",function(){if(v6d!==void 0)return v6d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-variant-option-renderer">\n  <template is="dom-if" restamp="" if="[[isImageButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-image style-scope ytd-product-details-variant-option-renderer">\n        <yt-img-shadow alt="[[data.name]]" height="52" object-fit="CONTAIN" thumbnail="[[thumbnailDetails]]" width="52" class="style-scope ytd-product-details-variant-option-renderer"></yt-img-shadow>\n      </div>\n    </a>\n    <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n      [[accessibilityLabel]]\n    </tp-yt-paper-tooltip>\n  </template>\n  <template is="dom-if" restamp="" if="[[isPillButton]]" class="style-scope ytd-product-details-variant-option-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-product-details-variant-option-renderer" href$="[[computeHref_(data.command)]]" data="[[data.command]]" aria-label="[[accessibilityLabel]]" rel="[[computeNofollow_(data.command)]]">\n      <div class="variant-option variant-option-pill style-scope ytd-product-details-variant-option-renderer">\n        <span class="style-scope ytd-product-details-variant-option-renderer">[[data.name]]</span>\n      </div>\n    </a>\n    <template is="dom-if" restamp="" if="[[isUnavailable]]" class="style-scope ytd-product-details-variant-option-renderer">\n      <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="4" position="top" class="style-scope ytd-product-details-variant-option-renderer">\n        [[data.unavailableText]]\n      </tp-yt-paper-tooltip>\n    </template>\n  </template>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return v6d=Y},{mode:1});var PUO;var TE=function(){var Y=_.F.apply(this,arguments)||this;Y.variantsExpanded=!1;Y.hideShowMoreLessVariantButton=!0;Y.initialized=!1;Y.computeVariantsDebouncer=null;Y.computeVariants=function(b){b=b===void 0?!1:b;Y.variantsExpanded||Y.showOptions()||!b||(Y.variantsExpanded=!0);if(Y.variantsExpanded){b=_.N(Y.items.children);for(var w=b.next();!w.done;w=b.next())w.value.hidden=!1}Y.initialized=!0};
return Y};
_.P(TE,_.F);_.g=TE.prototype;_.g.ready=function(){var Y=this;setTimeout(function(){Y.computeVariants(!0)})};
_.g.showOptions=function(){for(var Y=_.N(this.items.children),b=Y.next();!b.done;b=Y.next())b.value.hidden=!0;var w=this.container.getBoundingClientRect().width,V=0,H=Y=0;b=!1;for(var f=_.N(this.items.children),E=f.next();!E.done;E=f.next()){E=E.value;E.hidden=!1;var U=E.getBoundingClientRect().width;if(V+U<w)V+=U;else if(++H<2)V=U;else break;Y+=1;E.hasAttribute("is-active")&&(b=!0)}for(w=Y;w<this.items.children.length;w++)this.items.children[w].hidden=!0;this.hideShowMoreLessVariantButton=Y===this.items.children.length;
return b};
_.g.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.DW(this.computeVariantsDebouncer,_.ux.after(100),this.computeVariants)};
_.g.onShowMoreLessVariantsButtonClick=function(){var Y;(Y=this.data)!=null&&Y.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.g.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.up.Object.defineProperties(TE.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.variantOptionRenderers)==null?void 0:b.find(function(f){return _.v(f,CKX).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),V,H;
return(H=(V=_.v(w,CKX))==null?void 0:V.name)!=null?H:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
TE.prototype.debouncedComputeVariants=TE.prototype.debouncedComputeVariants;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],TE.prototype,"componentBehavior",void 0);_.z([_.n(_.Li),_.K("design:type",Object)],TE.prototype,"ironResizableBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],TE.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],TE.prototype,"variantsExpanded",void 0);_.z([_.R(),_.K("design:type",Object)],TE.prototype,"hideShowMoreLessVariantButton",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],TE.prototype,"initialized",void 0);_.z([_.xZ("#items"),_.K("design:type",HTMLDivElement)],TE.prototype,"items",void 0);_.z([_.xZ("#container"),_.K("design:type",HTMLDivElement)],TE.prototype,"container",void 0);
_.z([_.xZ("#more-variants-button"),_.K("design:type",HTMLElement)],TE.prototype,"moreVariantsButton",void 0);_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],TE.prototype,"selectedOptionName",null);_.z([_.lr("data","variantsExpanded"),_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],TE.prototype,"debouncedComputeVariants",null);
_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],TE.prototype,"displayType",null);_.z([_.t("displayType"),_.K("design:type",Object),_.K("design:paramtypes",[])],TE.prototype,"variantItemsClassname",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],TE);
_.a(TE,"ytd-product-details-variant-renderer",function(){if(PUO!==void 0)return PUO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-variant-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-product-details-variant-renderer">\n  <div class="variant-title-container style-scope ytd-product-details-variant-renderer">\n    <div class="variant-title style-scope ytd-product-details-variant-renderer">[[data.title]]</div><div class="variant-selected-option style-scope ytd-product-details-variant-renderer">[[selectedOptionName]]</div>\n  </div>\n  <div class$="variant-items-container variant-items-container-[[variantItemsClassname]] style-scope ytd-product-details-variant-renderer">\n    <div id="items" class="style-scope ytd-product-details-variant-renderer"></div>\n  </div>\n  <template is="dom-if" if="[[!hideShowMoreLessVariantButton]]" class="style-scope ytd-product-details-variant-renderer">\n    <ytd-button-renderer class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showMoreVariants.buttonRenderer]]" hidden$="[[variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="more-variants-button" class="show-more-less-variants-button style-scope ytd-product-details-variant-renderer" data="[[data.showLessVariants.buttonRenderer]]" hidden$="[[!variantsExpanded]]" noink="" on-click="onShowMoreLessVariantsButtonClick">\n    </ytd-button-renderer>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return PUO=Y},{mode:1});var JY=function(){return _.F.apply(this,arguments)||this};
_.P(JY,_.F);
JY.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"}}}};
_.up.Object.defineProperties(JY.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(b=_.v((Y=this.data)==null?void 0:Y.offersContainerRenderer,ykt))==null?void 0:b.offers;return w!==void 0&&(w==null?void 0:w.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((w=(Y=this.data)==null?void 0:(b=Y.variants)==null?void 0:b.map(function(V){var H,f;V=(f=(H=_.v(V,AkR))==null?void 0:H.variantOptionRenderers)==null?void 0:f.find(function(U){var X;return((X=_.v(U,CKX))==null?void 0:X.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var E;return(E=_.v(V,CKX))==null?void 0:E.name}).filter(function(V){return typeof V==="string"}))!=null?w:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V=(b=_.v((Y=this.data)==null?void 0:Y.shoppingFlaggingRenderer,jbs))==null?void 0:(w=b.reportButton)==null?void 0:w.buttonRenderer;if(V)return{text:V.text,command:V.command,icon:{iconType:"FLAG"},accessibilityData:V.accessibilityData,trackingParams:V.trackingParams,loggingDirectives:V.loggingDirectives}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],JY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],JY.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JY.prototype,"data",void 0);_.z([_.xZ("#image-carousel-renderer"),_.K("design:type",Object)],JY.prototype,"imageCarouselRenderer",void 0);
_.z([_.xZ("#hero-offer-renderer"),_.K("design:type",Object)],JY.prototype,"productDetailsHeroOfferRenderer",void 0);_.z([_.xZ("#variants"),_.K("design:type",Object)],JY.prototype,"productDetailsVariantRenderer",void 0);_.z([_.xZ("#offers"),_.K("design:type",Object)],JY.prototype,"productDetailsOffersContainerRenderer",void 0);_.z([_.xZ("#description-renderer"),_.K("design:type",Object)],JY.prototype,"productDetailsDescriptionRenderer",void 0);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],JY.prototype,"showPurchaseData",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],JY.prototype,"showHeroOfferRenderer",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],JY.prototype,"showBrandText",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],JY.prototype,"showOffers",null);
_.z([_.t("showOffers","showPurchaseData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],JY.prototype,"showBuySeparator",null);_.z([_.t("showOffers","showPurchaseData"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],JY.prototype,"showBuyCard",null);_.z([_.t("data"),_.K("design:type",String),_.K("design:paramtypes",[])],JY.prototype,"selectedVariantsText",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JY.prototype,"shoppingReportingButtonData",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],JY);
_.a(JY,"ytd-product-details-renderer",function(){if(Qrb!==void 0)return Qrb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-product-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-product-details-renderer">\n  <div class="column column-image-carousel style-scope ytd-product-details-renderer">\n    <div id="image-carousel-renderer" class="style-scope ytd-product-details-renderer"></div>\n  </div>\n  <div class="column column-description style-scope ytd-product-details-renderer">\n    <div class="title-row row style-scope ytd-product-details-renderer">\n      <div class="style-scope ytd-product-details-renderer">[[getSimpleString(data.title)]]</div>\n      <div class="title-row-buttons row style-scope ytd-product-details-renderer">\n        <div id="share-button" class="style-scope ytd-product-details-renderer"></div>\n        <div id="action-button" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="brand-row row style-scope ytd-product-details-renderer">\n      <template is="dom-if" restamp="" if="[[showBrandText]]" class="style-scope ytd-product-details-renderer">\n        <yt-formatted-string class="formatted-brand style-scope ytd-product-details-renderer" text="[[data.formattedByBrandText]]">\n        </yt-formatted-string>\n      </template>\n    </div>\n    <div id="description-renderer" class="style-scope ytd-product-details-renderer"></div>\n    <div id="variants" class="style-scope ytd-product-details-renderer"></div>\n    <div class="buy style-scope ytd-product-details-renderer" hidden="[[!showBuyCard]]">\n      <div hidden="[[!showHeroOfferRenderer]]" id="hero-offer-renderer" class="style-scope ytd-product-details-renderer"></div>\n      <div class="style-scope ytd-product-details-renderer">\n        <hr class="buy-separator style-scope ytd-product-details-renderer" hidden="[[!showBuySeparator]]">\n        <div id="offers" hidden="[[!showOffers]]" class="style-scope ytd-product-details-renderer"></div>\n      </div>\n    </div>\n    <div class="buy offer-unavailable style-scope ytd-product-details-renderer" hidden="[[showBuyCard]]">\n        <yt-formatted-string class="offer-unavailable-title style-scope ytd-product-details-renderer" text="[[data.unavailableText]]">\n        </yt-formatted-string>\n        <div class="offer-unavailable-variants style-scope ytd-product-details-renderer">[[selectedVariantsText]]</div>\n    </div>\n    <div class="flagging-container style-scope ytd-product-details-renderer" hidden="[[!data.shoppingFlaggingRenderer]]">\n      <ytd-button-renderer id="flagging-button" data="[[shoppingReportingButtonData]]" class="style-scope ytd-product-details-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Qrb=Y},{mode:1});var ZFg;var B3Q;var n6b;var ul=function(){return _.F.apply(this,arguments)||this};
_.P(ul,_.F);ul.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.up.Object.defineProperties(ul.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ul.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ul.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],ul.prototype,"formattedAmount",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ul.prototype,"ariaLabel",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.style"),_.K("design:type",String),_.K("design:paramtypes",[])],ul.prototype,"vcBalanceWidgetStyle",null);_.z([_.FM({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],ul);
_.a(ul,"yt-vc-balance-renderer",function(){if(n6b===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_balance_renderer.yt.vc.balance.renderer.css.js--\x3e<div id="vc-icon" hidden$="[[!data.vcIcon]]" class="style-scope yt-vc-balance-renderer">\n</div>\n<p id="vc-balance" class="style-scope yt-vc-balance-renderer">[[formattedAmount]]</p>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;B3Q===void 0&&(B3Q=document.createElement("template"));var V=B3Q;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);n6b=Y}Y=n6b;return Y},{mode:2});_.S9("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var YC=function(){return _.F.apply(this,arguments)||this};
_.P(YC,_.F);_.up.Object.defineProperties(YC.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:""}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],YC.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],YC.prototype,"data",void 0);_.z([_.R({selectorArgs:["data.vcBalanceEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"vcBalanceEntity",b)}}),
_.K("design:type",Object)],YC.prototype,"vcBalanceEntity",void 0);_.z([_.t("vcBalanceEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],YC.prototype,"formattedAmount",null);_.z([_.t("vcBalanceEntity"),_.K("design:type",String),_.K("design:paramtypes",[])],YC.prototype,"vcBalanceAriaLabel",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],YC);
_.a(YC,"ytd-vc-balance-renderer",function(){if(ZFg!==void 0)return ZFg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vc-balance-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-vc-balance-renderer aria-label="[[vcBalanceAriaLabel]]" data="[[data]]" formatted-amount="[[formattedAmount]]" class="style-scope ytd-vc-balance-renderer">\n</yt-vc-balance-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ZFg=Y},{mode:1});var MDN;var bi=function(){var Y=_.F.apply(this,arguments)||this;Y.rotation=0;Y.isReloading=!1;return Y};
_.P(bi,_.F);bi.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
bi.prototype.reset=function(){this.hostElement.style.opacity=""};
bi.prototype.close=function(){var Y=this;return _.c(function(b){if(b.nextAddress==1)return _.D(b,Y.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);Y.hostElement.style.opacity="0";_.om(b)})};
bi.prototype.rotationChanged=bi.prototype.rotationChanged;_.z([_.R(),_.K("design:type",Object)],bi.prototype,"rotation",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bi.prototype,"isReloading",void 0);_.z([_.xZ("#icon"),_.K("design:type",HTMLElement)],bi.prototype,"icon",void 0);_.z([_.lr("rotation"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bi.prototype,"rotationChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-refresh"})],bi);
_.a(bi,"ytd-refresh",function(){if(MDN!==void 0)return MDN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-refresh--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="icon" hidden="[[isReloading]]" icon="refresh" class="style-scope ytd-refresh"></yt-icon>\n<tp-yt-paper-spinner-lite active="[[isReloading]]" hidden="[[!isReloading]]" class="style-scope ytd-refresh">\n</tp-yt-paper-spinner-lite>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return MDN=Y},{mode:1});var ebt;var wR=function(){return _.F.apply(this,arguments)||this};
_.P(wR,_.F);wR.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"}}}};
wR.prototype.dataChanged=function(){if(this.data){var Y=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var b=_.NR(this.data.banner.thumbnails,this.hostElement.clientWidth);b&&(b.indexOf("//")===0&&(b="https:"+b),this.hasBannerArt=!0,_.m_(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+b+")"}))}this.hasBannerArt!==Y&&_.E6(this.hostElement).querySelector("#header").fire("iron-resize")}};
wR.prototype.updateSelectedFromBinding=function(Y){this.selected=Y.detail.value};
wR.prototype.dataChanged=wR.prototype.dataChanged;_.z([_.n(Jk7),_.K("design:type",Object)],wR.prototype,"ytdTabbedHeaderBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.r0),_.K("design:type",Object)],wR.prototype,"ytdGridStateAwareBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],wR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],wR.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],wR.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],wR.prototype,"selected",void 0);_.z([_.R(),_.K("design:type",Boolean)],wR.prototype,"active",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wR.prototype,"hasBannerArt",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wR.prototype,"dataChanged",null);_.z([_.S({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],wR);
_.a(wR,"ytd-interactive-tabbed-header-renderer",function(){if(ebt!==void 0)return ebt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ebt=Y},{mode:1});var pct;var V6=function(){return _.F.apply(this,arguments)||this};
_.P(V6,_.F);V6.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
V6.prototype.computeActionsAlignment=function(Y){return(Y==null?void 0:Y.actionsAlignment)||""};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],V6.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.K("design:type",String)],V6.prototype,"actionsAlignment",void 0);_.z([_.S({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],V6);
_.a(V6,"ytd-page-footer-renderer",function(){if(pct!==void 0)return pct;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="left-actions" class="style-scope ytd-page-footer-renderer"></div>\n<div id="actions" class="style-scope ytd-page-footer-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return pct=Y},{mode:1});var OF7;var tDR;var H8=function(){var Y=_.F.apply(this,arguments)||this;Y.isEditing=!1;Y.useSlot=!1;Y.isMultiline=!1;return Y};
_.P(H8,_.F);_.g=H8.prototype;_.g.onKeydown=function(Y){if(Y.keyCode===13&&!this.isMultiline)this.onSave();else if(Y.keyCode===27)this.onCancel()};
_.g.computeComponentStyle=function(Y){return(Y==null?0:Y.style)?Y.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.g.computeisMultiline=function(Y){if(this.multilineOverride!==void 0)return this.multilineOverride;var b,w;return!!(Y==null?0:(b=Y.formField)==null?0:(w=b.textInputFormFieldRenderer)==null?0:w.isMultiline)};
_.g.computeTextDisplayed=function(Y,b){if(Y)return Y;if(b)return b};
_.g.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.g.onSave=function(){if(this.textForm.validate()){this.textForm.save();var Y=this.textForm.value;if(Y)this.set("data.textDisplayed",_.Gx(Y));else{var b;((b=this.data)==null?0:b.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Cn("inline-form-changed",this.data));this.isEditing=!1}};
_.g.onCancel=function(){var Y=_.Tx(this.data.textDisplayed);Y===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(Y);this.isEditing=!1};
H8.prototype.onKeydown=H8.prototype.onKeydown;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],H8.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],H8.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],H8.prototype,"isEditing",void 0);_.z([_.R(),_.K("design:type",Object)],H8.prototype,"useSlot",void 0);_.z([_.R(),_.K("design:type",Boolean)],H8.prototype,"multilineOverride",void 0);_.z([_.R(),_.K("design:type",Boolean)],H8.prototype,"enableOverlayTheme",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.K("design:type",String)],H8.prototype,"componentStyle",void 0);
_.z([_.R({computed:"computeisMultiline(data)"}),_.K("design:type",Object)],H8.prototype,"isMultiline",void 0);_.z([_.xZ("#text-form"),_.K("design:type",Object)],H8.prototype,"textForm",void 0);_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],H8.prototype,"onKeydown",null);_.z([_.S({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],H8);
_.a(H8,"ytd-inline-form-renderer",function(){if(tDR!==void 0)return tDR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-inline-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="display-dialog" hidden="[[isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <template is="dom-if" restamp="" if="[[useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <slot name="text-display" id="text-displayed" class="style-scope ytd-inline-form-renderer"></slot>\n  </template>\n  <template is="dom-if" restamp="" if="[[!useSlot]]" class="style-scope ytd-inline-form-renderer">\n    <yt-formatted-string id="text-displayed" split-lines="" text="[[computeTextDisplayed(data.textDisplayed, data.placeholder)]]" class="style-scope ytd-inline-form-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n<ytd-button-renderer id="edit-button" button-tooltip-position="left" data="[[data.editButton.buttonRenderer]]" hidden="[[isEditing]]" on-click="onEdit" class="style-scope ytd-inline-form-renderer">\n</ytd-button-renderer>\n<div id="edit-dialog" hidden="[[!isEditing]]" class="style-scope ytd-inline-form-renderer">\n  <yt-text-input-form-field-renderer id="text-form" component-style="[[componentStyle]]" data="[[data.formField.textInputFormFieldRenderer]]" enable-overlay-theme="[[enableOverlayTheme]]" is-multiline-override="[[isMultilineOverride]]" no-label-float="" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-inline-form-renderer">\n  </yt-text-input-form-field-renderer>\n  <div id="edit-buttons" class="style-scope ytd-inline-form-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancel" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSave" class="style-scope ytd-inline-form-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return tDR=Y},{mode:1});var RbQ;var gR=function(){var Y=_.F.apply(this,arguments)||this;Y.previousSelectValue=void 0;Y.selectedItemMessage=void 0;return Y};
_.P(gR,_.F);gR.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
gR.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var Y,b,w,V,H=(Y=this.data)==null?void 0:(b=Y.dropdown)==null?void 0:(w=b.dropdownRenderer)==null?void 0:(V=w.entries)==null?void 0:V.map(function(U){return U.privacyDropdownItemRenderer});
Y=_.N(H!=null?H:[]);for(b=Y.next();!b.done;b=Y.next())if((b=b.value)&&b.int32Value===this.selectedValue){this.selectedItemMessage=b.itemMessage;break}}else this.selectedItemMessage=void 0;var f;(f=this.onValueChanged)==null||f.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var E;(E=this.data)!=null&&E.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
gR.prototype.onValueChangedForSelectedValue=function(Y){this.selectedValue=Y.detail.value};
gR.prototype.selectedValueChanged=gR.prototype.selectedValueChanged;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],gR.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],gR.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],gR.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],gR.prototype,"theme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Number)],gR.prototype,"selectedValue",void 0);_.z([_.R(),_.K("design:type",Function)],gR.prototype,"onValueChanged",void 0);
_.z([_.vX("selectedValue"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],gR.prototype,"selectedValueChanged",null);_.z([_.S({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],gR);
_.a(gR,"ytd-dropdown-form-field-renderer",function(){if(RbQ!==void 0)return RbQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dropdown-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-dropdown-form-field-renderer">\n  <ytd-dropdown-renderer id="dropdown" autosize="" data="[[data.dropdown.dropdownRenderer]]" min-autosize-width="0" no-label-float="" no-underline="" theme="[[theme]]" value="[[selectedValue]]" on-value-changed="onValueChangedForSelectedValue" class="style-scope ytd-dropdown-form-field-renderer">\n  </ytd-dropdown-renderer>\n  <yt-formatted-string id="selected-item-message" hidden="[[!selectedItemMessage]]" text="[[selectedItemMessage]]" class="style-scope ytd-dropdown-form-field-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return RbQ=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var dWR;var fd=function(){return _.F.apply(this,arguments)||this};
_.P(fd,_.F);_.up.Object.defineProperties(fd.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var Y=[],b=_.N(this.data||[]),w=b.next();!w.done;w=b.next())(w=_.v(w.value,G$N))&&Y.push(w);return Y}}});
_.z([_.R(),_.K("design:type",Array)],fd.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],fd.prototype,"byline",null);_.z([_.S({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],fd);
_.a(fd,"ytd-playlist-byline-renderer",function(){if(dWR!==void 0)return dWR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-byline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-stats style-scope ytd-playlist-byline-renderer">\n  <template is="dom-repeat" items="[[byline]]" class="style-scope ytd-playlist-byline-renderer">\n    <yt-icon id="byline-icon" hidden="[[!item.icon]]" icon="[[item.icon.iconType]]" class="style-scope ytd-playlist-byline-renderer"></yt-icon>\n    <yt-formatted-string class="byline-item style-scope ytd-playlist-byline-renderer" text="[[item.text]]"></yt-formatted-string>\n  </template>\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return dWR=Y},{mode:1});var FlQ;var Na=function(){var Y=_.F.apply(this,arguments)||this;Y.rtlBullet=_.q("web_playlist_stats_rtl_bullet_icon_killswitch");Y.modern=_.q("web_modern_buttons");Y.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return Y};
_.P(Na,_.F);_.g=Na.prototype;_.g.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"}}}}};
_.g.attached=function(){};
_.g.computeIsCustomThumbnail=function(Y){return Y?!!Y.playlistCustomThumbnailRenderer:!1};
_.g.onYtNavigate=function(Y,b){if(b&&b.actions&&b.actions.indexOf("shuffle")>-1){Y=_.fH().resolve(_.zF);var w=b.tempData||{};w.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);b.tempData=w;Y.isShuffleNextPlaylist=!0}};
_.g.onUpdatePlaylistAction=function(Y){var b;Y=(b=_.v(Y,_.BM9))==null?void 0:b.updatedRenderer;if(b=_.v(Y,M9))this.data=b};
_.g.computeStyleType=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.g.computeThumbnailWidth=function(Y){return Y==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.g.computeHideThumbnailAria=function(Y){if(Y==null?0:Y.thumbnailOverlays)for(var b=0;b<Y.thumbnailOverlays.length;b++){var w=void 0;if((w=Y.thumbnailOverlays[b])==null?0:w.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Na.prototype.onYtNavigate=Na.prototype.onYtNavigate;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Na.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Na.prototype,"ytComponentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Na.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Na.prototype,"rtlBullet",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.K("design:type",String)],Na.prototype,"styleType",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.K("design:type",Number)],Na.prototype,"thumbnailWidth",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Na.prototype,"modern",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.K("design:type",Boolean)],Na.prototype,"isCustomThumbnail",void 0);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],Na.prototype,"onYtNavigate",null);_.z([_.S({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Na);
_.a(Na,"ytd-playlist-sidebar-primary-info-renderer",function(){if(FlQ!==void 0)return FlQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-primary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-playlist-thumbnail bottom-side-panel="" custom-thumbnail-size="[[thumbnailWidth]]" data="[[data]]" hidden="[[!data.thumbnailRenderer]]" hide-aria="[[computeHideThumbnailAria(data)]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-playlist-thumbnail><h1 id="title" hidden="[[!data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string link-inherit-color="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></h1><template is="dom-if" restamp="" if="[[data.titleForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="title-form" data="[[data.titleForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></template><div id="stats" hidden="[[!data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.stats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><div id="privacy-stats" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-badge-supported-renderer><div id="show-stats" hidden="[[!data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><template is="dom-repeat" items="[[data.showStats]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string text="[[item]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></template></div><template is="dom-if" restamp="" if="[[data.privacyForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-dropdown-form-field-renderer></template></div><div id="play-buttons" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><div id="menu" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></div><template is="dom-if" restamp="" if="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></yt-formatted-string></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template><template is="dom-if" restamp="" if="[[data.descriptionForm]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-expander max-number-of-lines="20" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><div id="description-form" slot="content" class="style-scope ytd-playlist-sidebar-primary-info-renderer"><ytd-inline-form-renderer id="description-form" data="[[data.descriptionForm.inlineFormRenderer]]" class="style-scope ytd-playlist-sidebar-primary-info-renderer"></ytd-inline-form-renderer></div><yt-formatted-string class="more-button style-scope ytd-playlist-sidebar-primary-info-renderer" slot="more-button" hidden="[[!data.showMoreText]]" role="button" text="[[data.showMoreText]]"></yt-formatted-string></ytd-expander></template>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return FlQ=Y},{mode:1});var Lls;var Ec=function(){return _.F.apply(this,arguments)||this};
_.P(Ec,_.F);Ec.prototype.computeOwnerVisibility=function(Y){return!(!Y.videoOwner&&!Y.button)};
Ec.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ec.prototype,"data",void 0);_.z([_.S({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Ec);
_.a(Ec,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(Lls!==void 0)return Lls;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-secondary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n<div id="owner-container" hidden$="[[!computeOwnerVisibility(data)]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n  <div id="video-owner" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n  <div id="button" class="style-scope ytd-playlist-sidebar-secondary-info-renderer"></div>\n</div>\n<yt-formatted-string id="description" split-lines="" text="[[data.description]]" class="style-scope ytd-playlist-sidebar-secondary-info-renderer">\n</yt-formatted-string>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Lls=Y},{mode:1});var SEX;var c8=function(){var Y=_.F.apply(this,arguments)||this;Y.expanded=!1;Y.isCompact=!1;return Y};
_.P(c8,_.F);_.g=c8.prototype;_.g.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.g.dataChanged=function(){this.data&&_.iH(_.E6(this.text),_.pgk(_.Rqd,_.Tx(this.data.text||null)))};
_.g.computeAutoScrollEnabled=function(Y,b){return Y&&!b};
_.g.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.g.toggleOnTap=function(){this.expanded=!this.expanded};
c8.prototype.expandedChanged=c8.prototype.expandedChanged;c8.prototype.dataChanged=c8.prototype.dataChanged;_.z([_.n(_.zpO),_.K("design:type",Object)],c8.prototype,"ytdAutoScrollBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],c8.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],c8.prototype,"expanded",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],c8.prototype,"isCompact",void 0);_.z([_.R({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.K("design:type",Boolean)],c8.prototype,"autoScrollEnabled",void 0);_.z([_.xZ("#text"),_.K("design:type",Object)],c8.prototype,"text",void 0);_.z([_.xZ("#expander-icon"),_.K("design:type",Object)],c8.prototype,"expanderIcon",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c8.prototype,"dataChanged",null);_.z([_.lr("expanded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],c8.prototype,"expandedChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],c8);
_.a(c8,"ytd-channel-legal-info-renderer",function(){if(SEX!==void 0)return SEX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-legal-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="text" class="style-scope ytd-channel-legal-info-renderer"></yt-formatted-string>\n<tp-yt-paper-material id="expand-button" elevation="1" on-click="toggleOnTap" class="style-scope ytd-channel-legal-info-renderer">\n  <yt-icon-button class="style-scope ytd-channel-legal-info-renderer">\n    <yt-icon id="expander-icon" class="style-scope ytd-channel-legal-info-renderer"></yt-icon>\n  </yt-icon-button>\n</tp-yt-paper-material>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return SEX=Y},{mode:1});var aBd;var rgX=_.sa("DOWNLOAD",{},"Download"),zbt=_.sa("DOWNLOADING",{},"Downloading"),Wlg=_.sa("DOWNLOADED",{},"Downloaded"),Uc=function(){var Y=_.F.apply(this,arguments)||this;Y.downloadProgress=0;Y.isDownloadComplete=!1;Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.P(Uc,_.F);_.g=Uc.prototype;_.g.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.g.dataChanged=function(){var Y;(Y=this.data)!=null&&Y.tooltip||(Y=_.rb(_.u3().getState(),this.playlistId),this.updateButtonState(Y))};
_.g.computePlaylistId=function(Y){return Y};
_.g.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.g.updateButtonState=function(Y){if(this.data&&(this.data.tooltip!==zbt||!_.Z7(Y))){this.isDownloadComplete=!1;switch(Y){case "TRANSFER_STATE_UNKNOWN":Y=rgX;var b="OFFLINE_DOWNLOAD";var w="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":Y=Wlg;b="OFFLINE_PIN";w="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":Y=zbt;b="OFFLINE_DOWNLOADING_ZERO";w="ACTION_REMOVE_WITH_PROMPT";
break;default:Y=rgX,b="OFFLINE_DOWNLOAD",w="ACTION_ADD"}var V=Object.assign({},this.data);V.tooltip=Y;V.accessibilityData={accessibilityData:{label:Y}};V.icon={iconType:b};V.size="SIZE_DEFAULT";_.v(V.command,_.lX)&&(_.v(V.command,_.lX).action=w);this.set("data",V)}};
_.g.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var Y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?Y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?Y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?Y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?Y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?Y="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(Y="OFFLINE_PIN",this.isDownloadComplete=!0);var b;Y!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.tooltip=zbt,b.accessibilityData={accessibilityData:{label:zbt}},b.icon={iconType:Y},_.v(b.command,_.lX)&&(_.v(b.command,_.lX).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
Uc.prototype.updateProgress=Uc.prototype.updateProgress;Uc.prototype.onTransferStateChanged=Uc.prototype.onTransferStateChanged;Uc.prototype.dataChanged=Uc.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Uc.prototype,"ytdReduxBehavior",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Uc.prototype,"forceIconButton",void 0);
_.z([_.R({value:!0}),_.K("design:type",Boolean)],Uc.prototype,"forceIconOnly",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Uc.prototype,"overrides",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Uc.prototype,"buttonTooltipPosition",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Uc.prototype,"styleActionButton",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Uc.prototype,"disableTextTransform",void 0);
_.z([_.R({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.K("design:type",String)],Uc.prototype,"playlistId",void 0);_.z([_.R(),_.K("design:type",Object)],Uc.prototype,"data",void 0);_.z([_.R({selector:_.ZLB,selectorArgs:["playlistId"]}),_.K("design:type",Object)],Uc.prototype,"downloadProgress",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Uc.prototype,"isDownloadComplete",void 0);
_.z([_.R({selector:_.rb,selectorArgs:["playlistId"]}),_.K("design:type",String)],Uc.prototype,"transferState",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Uc.prototype,"showTooltips",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Uc.prototype,"sendCommandWhenDisabled",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Uc.prototype,"disabled",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Uc.prototype,"dataChanged",null);_.z([_.vX("transferState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Uc.prototype,"onTransferStateChanged",null);_.z([_.vX("downloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Uc.prototype,"updateProgress",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Uc);
_.a(Uc,"ytd-download-playlist-button-renderer",function(){if(aBd!==void 0)return aBd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-playlist-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data]]" disable-text-transform="[[disableTextTransform]]" disabled="[[disabled]]" force-icon-button="[[forceIconButton]]" force-icon-only="[[forceIconOnly]]" force-modern-icon-button="" overrides="[[overrides]]" style-action-button="[[styleActionButton]]" class="style-scope ytd-download-playlist-button-renderer"></ytd-button-renderer>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return aBd=Y},{mode:1});var KlO;_.f_(_.B$C,"thumbnail-overlay-button-view-model",{props:{data:_.YX,lockupExperiments:_.YX}});var XQ=function(){var Y=_.F.apply(this,arguments)||this;Y.isSquare=!1;Y.isVertical=!1;return Y};
_.P(XQ,_.F);XQ.prototype.computeIsSquare=function(Y){return Y!=null&&Y.thumbnail?vAN(Y.thumbnail)==="SQUARE":!1};
XQ.prototype.computeIsVertical=function(Y){return Y!=null&&Y.thumbnail?vAN(Y.thumbnail)==="VERTICAL":!1};
XQ.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.K("design:type",Object)],XQ.prototype,"isSquare",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.K("design:type",Object)],XQ.prototype,"isVertical",void 0);
_.z([_.R(),_.K("design:type",Object)],XQ.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],XQ);
_.a(XQ,"ytd-hero-playlist-thumbnail-renderer",function(){if(KlO!==void 0)return KlO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hero-playlist-thumbnail-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="horizontally-centered-container style-scope ytd-hero-playlist-thumbnail-renderer">\n  <div class="image-wrapper style-scope ytd-hero-playlist-thumbnail-renderer">\n    <yt-img-shadow class="image style-scope ytd-hero-playlist-thumbnail-renderer" alt="hidden" aria-hidden="true" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div id="overlays" class="style-scope ytd-hero-playlist-thumbnail-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return KlO=Y},{mode:1});var DU=function(){var Y=_.F.apply(this,arguments)||this;Y.isDarkTheme=!1;Y.isUltraWide=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return Y};
_.P(DU,_.F);_.g=DU.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.fH();var Y;(Y=_.fH().resolve(_.HQ(_.iB)))!=null&&(Y.headerElement=this.hostElement)};
_.g.detached=function(){var Y;(Y=_.fH().resolve(_.HQ(_.iB)))!=null&&(Y.headerElement=void 0)};
_.g.onUpdateHeader=function(Y){(Y=Y.detail)&&this.set("data",Y)};
_.g.computeTextDisplayed=function(Y){if(Y)return Y.textDisplayed?Y.textDisplayed:Y.placeholder};
_.g.gradientColorToLinearGradientStop=function(Y){var b=this.isDarkTheme?Y.darkThemeColor:Y.lightThemeColor;return b?_.KX(b)+" "+((Y==null?void 0:Y.startLocation)||0)*100+"%":"transparent"};
_.g.onWindowResize=function(){var Y;((Y=this.data)==null?0:Y.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.g.onIronResize=function(Y){this.isUltraWide=!Y.detail.value};
_.g.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.onUpdatePlaylistName=function(Y){var b=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},Y.detail.value));_.TC(this,function(){var w;(w=b.editableTitle)==null||w.resize()})};
_.g.onUpdatePlaylistDescription=function(Y){var b=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},Y.detail.value));_.TC(this,function(){var w;(w=b.editableDescriptionInlineExpander)==null||w.resize()})};
_.g.getCinematicData=function(Y){return _.v(Y==null?void 0:Y.cinematicContainer,_.Qi)};
_.up.Object.defineProperties(DU.prototype,{maxDescriptionLines:{configurable:!0,enumerable:!0,get:function(){return this.isUltraWide?999:2}},
noCinematicData:{configurable:!0,enumerable:!0,get:function(){return!this.getCinematicData(this.data)}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.getCinematicData(this.data))==null?void 0:Y.config;return(Y=this.isDarkTheme?b==null?void 0:b.darkThemeBackgroundColor:b==null?void 0:b.lightThemeBackgroundColor)?"background-color:"+_.WH(Y)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var Y;return _.v((Y=this.data)==null?void 0:Y.descriptionForm,KFt)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var Y=this,b,w,V;return"background:linear-gradient(to bottom, "+(((V=(b=this.getCinematicData(this.data))==null?void 0:(w=b.gradientColorConfig)==null?void 0:w.map(function(H){return Y.gradientColorToLinearGradientStop(H)}))==null?void 0:V.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var Y;return _.Tx((Y=this.data)==null?void 0:Y.descriptionTapText)}}});
DU.prototype.onUpdateHeader=DU.prototype.onUpdateHeader;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],DU.prototype,"actionHandlerBehavior",void 0);_.z([_.xZ("#description-inline-expander"),_.K("design:type",Object)],DU.prototype,"descriptionInlineExpander",void 0);
_.z([_.xZ("#editable-description-inline-expander"),_.K("design:type",Object)],DU.prototype,"editableDescriptionInlineExpander",void 0);_.z([_.R(),_.K("design:type",Object)],DU.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],DU.prototype,"isUltraWide",void 0);_.z([_.xZ("#editable-title-display"),_.K("design:type",Object)],DU.prototype,"editableTitle",void 0);_.z([_.t("isUltraWide"),_.K("design:type",Object),_.K("design:paramtypes",[])],DU.prototype,"maxDescriptionLines",null);
_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],DU.prototype,"noCinematicData",null);_.z([_.kZ("yt-new-playlist-header"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],DU.prototype,"onUpdateHeader",null);_.z([_.t("data","isDarkTheme"),_.K("design:type",Object),_.K("design:paramtypes",[])],DU.prototype,"backgroundStyle",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],DU.prototype,"descriptionFormData",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],DU.prototype,"getDropdownTheme",null);_.z([_.t("data","isDarkTheme"),_.K("design:type",String),_.K("design:paramtypes",[])],DU.prototype,"gradientStyle",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],DU.prototype,"descriptionTapText",null);
_.z([_.S({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],DU);
_.a(DU,"ytd-playlist-header-renderer",function(){if(OF7!==void 0)return OF7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query id="resize-query" query="(max-width: 1080px)" on-query-matches-changed="onIronResize" class="style-scope ytd-playlist-header-renderer"></iron-media-query>\n\n<div class="immersive-header-container style-scope ytd-playlist-header-renderer" style="">\n  <div class="immersive-header-background-wrapper style-scope ytd-playlist-header-renderer" style$="[[backgroundStyle]]">\n    <yt-img-shadow class="blurred-image style-scope ytd-playlist-header-renderer" alt="hidden" aria-hidden="true" fit-width="" hidden="[[!data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]" thumbnail="[[data.cinematicContainer.cinematicContainerRenderer.backgroundImageConfig.thumbnail]]">\n    </yt-img-shadow>\n    <div class="immersive-header-gradient style-scope ytd-playlist-header-renderer" style$="[[gradientStyle]]"></div>\n  </div>\n  <div class="immersive-header-content style-scope ytd-playlist-header-renderer">\n    <div class="thumbnail-and-metadata-wrapper style-scope ytd-playlist-header-renderer">\n      <a class="yt-simple-endpoint style-scope ytd-playlist-header-renderer" href$="[[computeHref_(data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap)]]" data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.onTap]]">\n        <div class="thumbnail-wrapper style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistHeaderBanner.heroPlaylistThumbnailRenderer.thumbnail]]">\n          <ytd-hero-playlist-thumbnail-renderer data="[[data.playlistHeaderBanner.heroPlaylistThumbnailRenderer]]" class="style-scope ytd-playlist-header-renderer"></ytd-hero-playlist-thumbnail-renderer>\n        </div>\n      </a>\n\n      <div class="metadata-wrapper style-scope ytd-playlist-header-renderer">\n        <yt-dynamic-sizing-formatted-string hidden="[[data.titleForm]]" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.title]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n\n        <ytd-inline-form-renderer data="[[data.titleForm.inlineFormRenderer]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.titleForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistName" class="style-scope ytd-playlist-header-renderer">\n          <yt-dynamic-sizing-formatted-string id="editable-title-display" slot="text-display" hide-overflow="" max-font-size="28" max-lines="2" text="[[data.titleForm.inlineFormRenderer.textDisplayed]]" class="style-scope ytd-playlist-header-renderer"></yt-dynamic-sizing-formatted-string>\n        </ytd-inline-form-renderer>\n\n        <div class="metadata-action-bar style-scope ytd-playlist-header-renderer">\n          <div class="metadata-text-wrapper style-scope ytd-playlist-header-renderer">\n            <div class="metadata-owner style-scope ytd-playlist-header-renderer">\n              <yt-formatted-string id="owner-text" hidden="[[!data.ownerText]]" link-inherit-color="" text="[[data.ownerText]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n              <yt-formatted-string hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-playlist-header-renderer"></yt-formatted-string>\n\n              <div class="badges style-scope ytd-playlist-header-renderer" hidden="[[!data.playlistBadges]]">\n                <span class="middot style-scope ytd-playlist-header-renderer">\u00b7</span>\n                <ytd-badge-supported-renderer badges="[[data.playlistBadges]]" class="style-scope ytd-playlist-header-renderer">\n                </ytd-badge-supported-renderer>\n              </div>\n            </div>\n\n            <ytd-dropdown-form-field-renderer id="privacy-form" data="[[data.privacyForm.dropdownFormFieldRenderer]]" hidden="[[!data.privacyForm]]" theme="[[getDropdownTheme]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-dropdown-form-field-renderer>\n            <ytd-playlist-byline-renderer data="[[data.byline]]" class="style-scope ytd-playlist-header-renderer"></ytd-playlist-byline-renderer>\n          </div>\n          <div class="metadata-buttons-wrapper style-scope ytd-playlist-header-renderer">\n            <ytd-toggle-button-renderer data="[[data.saveButton.toggleButtonRenderer]]" force-modern-icon-button="" hidden="[[!data.saveButton.toggleButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-toggle-button-renderer>\n            <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.shareButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-button-renderer data="[[data.addVideosButton.buttonRenderer]]" force-modern-icon-button="" hidden="[[!data.addVideosButton.buttonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-button-renderer>\n            <ytd-download-playlist-button-renderer data="[[data.offlineability.downloadButtonRenderer]]" force-icon-button="" force-modern-icon-button="" hidden="[[!data.offlineability.downloadButtonRenderer]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-download-playlist-button-renderer>\n            <ytd-menu-renderer data="[[data.moreActionsMenu.menuRenderer]]" force-icon-button="" hidden="[[!data.moreActionsMenu.menuRenderer]]" is-overlay="[[!noCinematicData]]" tonal-override="" class="style-scope ytd-playlist-header-renderer"></ytd-menu-renderer>\n          </div>\n        </div>\n\n        <div class="play-menu spaced-row wide-screen-form style-scope ytd-playlist-header-renderer">\n          <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n          </ytd-button-renderer>\n          <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n          </ytd-button-renderer>\n        </div>\n\n        <div class="description style-scope ytd-playlist-header-renderer">\n          <ytd-text-inline-expander id="description-inline-expander" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" hidden="[[data.descriptionForm]]" max-lines="[[maxDescriptionLines]]" text="[[data.descriptionText]]" class="style-scope ytd-playlist-header-renderer">\n          </ytd-text-inline-expander>\n          <ytd-inline-form-renderer data="[[descriptionFormData]]" enable-overlay-theme="[[!noCinematicData]]" hidden="[[!data.descriptionForm]]" use-slot="" on-inline-form-changed="onUpdatePlaylistDescription" class="style-scope ytd-playlist-header-renderer">\n            <ytd-text-inline-expander id="editable-description-inline-expander" slot="text-display" expand-command="[[data.onDescriptionTap]]" expand-label="[[descriptionTapText]]" max-lines="[[maxDescriptionLines]]" text="[[computeTextDisplayed(data.descriptionForm.inlineFormRenderer)]]" class="style-scope ytd-playlist-header-renderer">\n            </ytd-text-inline-expander>\n          </ytd-inline-form-renderer>\n        </div>\n      </div>\n    </div>\n    <div class="play-menu spaced-row small-screen-form style-scope ytd-playlist-header-renderer">\n      <ytd-button-renderer class="play-button style-scope ytd-playlist-header-renderer" data="[[data.playButton.buttonRenderer]]" hidden="[[!data.playButton.buttonRenderer]]">\n      </ytd-button-renderer>\n      <ytd-button-renderer class="shuffle-button style-scope ytd-playlist-header-renderer" data="[[data.shufflePlayButton.buttonRenderer]]" hidden="[[!data.shufflePlayButton.buttonRenderer]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n\n  <tp-yt-paper-tooltip for="owner-text" offset="5" position="top" class="style-scope ytd-playlist-header-renderer">\n    [[getSimpleString(data.ownerText)]]\n  </tp-yt-paper-tooltip>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return OF7=Y},{mode:_.Xd("kevlar_poly_si_batch_j078")?1:2});var iFX;var Ag7;var mi=function(){return _.F.apply(this,arguments)||this};
_.P(mi,_.F);mi.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mi.prototype,"data",void 0);_.z([_.S({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],mi);
_.a(mi,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Ag7!==void 0)return Ag7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-tertiary-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" split-lines="" text="[[data.title]]" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer">\n</yt-formatted-string>\n<div id="items" class="style-scope ytd-playlist-sidebar-tertiary-info-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Ag7=Y},{mode:1});var ot=function(){return _.F.apply(this,arguments)||this};
_.P(ot,_.F);
ot.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}}}}};
ot.prototype.computeUsePremiumShowStyle=function(Y){if(!Y||!Y.items)return!1;for(var b=0;b<Y.items.length;b++)if(_.v(Y.items[b],M9)){var w=void 0;return((w=_.v(Y.items[b],M9))==null?void 0:w.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ot.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ot.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.K("design:type",Boolean)],ot.prototype,"usePremiumShowStyle",void 0);
_.z([_.S({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],ot);
_.a(ot,"ytd-playlist-sidebar-renderer",function(){if(iFX!==void 0)return iFX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-playlist-sidebar-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return iFX=Y},{mode:1});var CUs;var ygX;var $WA=function(Y,b,w,V,H,f,E,U){this.minWidth=Y;this.minHeight=b;this.recommendedWidth=w;this.recommendedHeight=V;this.JSC$19532_maxFileSize=H;this.title=f;this.bannerGalleryTitle=E;this.channelId=U;this.picker_=null;Y=_.sGe("yt-banner");b=Y.addView;w=(new O2g("youtubebanner")).addUploadMetadata("silo_id","19");w.opts.ytMaxFileSize=this.JSC$19532_maxFileSize;V=this.recommendedHeight;w.opts.ytRecWidth=this.recommendedWidth;w.opts.ytRecHeight=V;b.call(Y,w);Y.addView(new _.pP);b=Y.addView;w=new _.pP;
w.opts.type="ytbanner";b.call(Y,w.JSC$8110_setLabel(this.bannerGalleryTitle));b=Y.setTitle(this.title).setSize(1E3);b.urlParamMap_.set("thumbs","orig");w=this.minWidth;V=this.minHeight;if(isNaN(w)||isNaN(V))throw Error("lb`"+w+"`"+V);b.urlParamMap_.set("minSize",w+"x"+V);b.urlParamMap_.set("cropMode","ytcb");this.builder_=Y};
$WA.prototype.open=function(){var Y=this;return new _.hh(function(b,w){_.XhI(Y.builder_,function(V){V.action=="picked"?b(V):V.action=="cancel"&&w(Error("Zl"))});
Y.picker_&&Y.picker_.dispose();Y.picker_=Y.builder_.build();Y.picker_.setVisible(!0)})};
$WA.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var jrs=function(Y){this.channelId=Y},GoR=function(Y,b){var w="";
b.viewToken&&(w=b.viewToken[2].type);var V=b.docs[0];b=V.crop;Y={channel_id:Y.channelId,fife_url:V.thumbnails[0].url,photo_id:V.id,is_gallery_image:w=="ytbanner"};b&&(Y.crop_top=b.top,Y.crop_right=b.right,Y.crop_bottom=b.bottom,Y.crop_left=b.left);return _.irL("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:Y})};var It=function(){var Y=_.F.apply(this,arguments)||this;Y.ariaLabel=null;return Y};
_.P(It,_.F);_.g=It.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.g.detached=function(){this.picker&&this.picker.dispose()};
_.g.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.g.computeAriaLabel=function(Y){return Y};
_.g.onTap=function(){var Y=this,b;if((b=this.data)==null||!b.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new $WA(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 w;(w=this.picker)==null||w.open().then(function(V){Y.handleBannerPicked(V)},function(){})}};
_.g.handleBannerPicked=function(Y){var b=this;this.uploader||(this.uploader=new jrs(this.data.channelId||""));this.message=this.data.uploadingText;GoR(this.uploader,Y).then(function(w){b.handleBannerUploadSucceeded(w)},function(w){b.handleBannerUploadFailed(w)})};
_.g.handleBannerUploadSucceeded=function(Y){Y&&Y.errors?this.handleBannerUploadFailed(Y):(_.Ua(this.hostElement,"yt-banner-updated",Y),this.message=null)};
_.g.handleBannerUploadFailed=function(Y){this.message=Y&&Y.errors&&Y.errors.length?Y.errors[0]:null};
It.prototype.dataChanged=It.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],It.prototype,"componentBehavior",void 0);_.z([_.n(_.a$),_.K("design:type",Object)],It.prototype,"ironButtonState",void 0);_.z([_.R(),_.K("design:type",Object)],It.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.K("design:type",Object)],It.prototype,"ariaLabel",void 0);
_.z([_.R(),_.K("design:type",Object)],It.prototype,"message",void 0);_.z([_.R(),_.K("design:type",Object)],It.prototype,"picker",void 0);_.z([_.R(),_.K("design:type",Object)],It.prototype,"uploader",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],It.prototype,"dataChanged",null);_.z([_.S({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],It);
_.a(It,"ytd-channel-banner-editor-renderer",function(){if(ygX!==void 0)return ygX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-banner-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="edit-banner-link" class="yt-simple-endpoint style-scope ytd-channel-banner-editor-renderer" data="[[data.editBannerCommand]]" href$="[[computeHref_(data.editBannerCommand)]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-banner-editor-renderer"></yt-icon>\n  <tp-yt-paper-tooltip position="top" class="style-scope ytd-channel-banner-editor-renderer">[[ariaLabel]]</tp-yt-paper-tooltip>\n  <div id="message" hidden$="[[!message]]" class="style-scope ytd-channel-banner-editor-renderer">[[message]]</div>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ygX=Y},{mode:1});var T3b;var JgX=_.wM(["#"]),kC=function(){return _.F.apply(this,arguments)||this};
_.P(kC,_.F);kC.prototype.computeHrefWithDefault=function(Y){return this.ytComponentBehavior.computeHref_(Y,!0)||_.nu(JgX)};
kC.prototype.dataChanged=function(){var Y=this.data;Y&&Y.targetId&&_.JHU(_.eH(),Y.targetId,this.moreIcon)};
kC.prototype.dataChanged=kC.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],kC.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kC.prototype,"data",void 0);_.z([_.xZ("#more-icon"),_.K("design:type",Object)],kC.prototype,"moreIcon",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kC.prototype,"dataChanged",null);
_.z([_.S({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],kC);
_.a(kC,"ytd-channel-tagline-renderer",function(){if(T3b!==void 0)return T3b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-tagline-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-channel-tagline-renderer" href$="[[computeHrefWithDefault(data.moreEndpoint)]]" data="[[data.moreEndpoint]]">\n  <div id="wrapper" class="style-scope ytd-channel-tagline-renderer">\n    <div id="content" dir="auto" class="style-scope ytd-channel-tagline-renderer">\n      [[data.content]]\n    </div>\n    <yt-icon id="more-icon" hidden="[[!data.moreIcon]]" icon="[[data.moreIcon.iconType]]" class="style-scope ytd-channel-tagline-renderer">\n    </yt-icon>\n  </div>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return T3b=Y},{mode:1});var uUF;var li=function(){return _.F.apply(this,arguments)||this};
_.P(li,_.F);_.g=li.prototype;_.g.ready=function(){var Y=this;_.E6(this.hostElement).querySelector("#form").addEventListener("submit",function(b){Y.onSubmit(b)})};
_.g.onDataChanged=function(){var Y;((Y=this.data)==null?0:Y.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.g.onIconButtonKeydown=function(Y){Y.keyCode===13&&this.iconButton.click()};
_.g.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.g.openOnClickHandler=function(){this.input.focus()};
_.g.onSubmit=function(Y){Y.preventDefault();return!1};
_.g.submitOnEnterKeyUp=function(Y){var b;if(Y.keyCode===13&&((b=this.data)==null?0:b.expandedText)){Y=this.data.endpoint;b=_.BL.unsafeClone(Y);var w;((w=_.v(b==null?void 0:b.commandMetadata,_.g5))==null?0:w.url)?(_.v(b.commandMetadata,_.g5).url=_.zM(_.v(b.commandMetadata,_.g5).url,"query",this.data.expandedText),_.v(b,_.QU)&&(_.v(b,_.QU).query=this.data.expandedText),_.Ua(this.hostElement,"yt-navigate",{endpoint:b,tempData:{disableCache:!0}})):(w=new _.BQ("Error: Trying to navigate to an endpoint without url",
Y),_.Ft(w))}};
_.g.updateDataExpandedTextFromBinding=function(Y){this.set("data.expandedText",Y.detail.value)};
_.up.Object.defineProperties(li.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
li.prototype.onDataChanged=li.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],li.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.x6X),_.K("design:type",Object)],li.prototype,"ytdExpandableInputBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],li.prototype,"data",void 0);_.z([_.xZ("#input"),_.K("design:type",Object)],li.prototype,"input",void 0);_.z([_.xZ("#icon-button"),_.K("design:type",HTMLElement)],li.prototype,"iconButton",void 0);
_.z([_.R(),_.K("design:type",String),_.K("design:paramtypes",[])],li.prototype,"searchIcon",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],li.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],li);
var PKs=_.UQ()(li,"ytd-expandable-tab-renderer",function(){if(uUF===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);uUF=Y}Y=uUF;return Y},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var Yo7;var hX=function(){var Y=_.F.apply(this,arguments)||this;Y.avatarSize=80;Y.ariaLabel=_.sa("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return Y};
_.P(hX,_.F);hX.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
hX.prototype.computeHref=function(Y){var b;return((b=_.v(Y,_.Ah))==null?0:b.url)?this.componentBehavior.computeHref_(Y):null};
hX.prototype.onTap=function(){var Y,b;(Y=this.data)==null||!Y.editAvatarServiceEndpoint||((b=_.v(this.data.editAvatarServiceEndpoint,_.Ah))==null?0:b.url)||_.fH().resolve(_.Nn).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.z([_.n(_.a$),_.K("design:type",Object)],hX.prototype,"ironButtonState",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],hX.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hX.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],hX.prototype,"avatarSize",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],hX.prototype,"ariaLabel",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],hX);
_.a(hX,"ytd-channel-avatar-editor",function(){if(Yo7!==void 0)return Yo7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-avatar-editor--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-channel-avatar-editor" href$="[[computeHref(data.editAvatarServiceEndpoint)]]" data="[[data.editAvatarServiceEndpoint]]" target="_blank" on-click="onTap">\n  <yt-icon icon="camera_alt" class="style-scope ytd-channel-avatar-editor"></yt-icon>\n  <yt-img-shadow thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-channel-avatar-editor"></yt-img-shadow>\n  <tp-yt-paper-tooltip position="bottom" class="style-scope ytd-channel-avatar-editor">[[ariaLabel]]</tp-yt-paper-tooltip>\n</a>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Yo7=Y},{mode:1});var b5g=_.b8(function(Y){var b=Y.data;var w=Y.noPadding;var V=Y.enableBanner;var H=Y.cinematicContainerTopbarOffset;var f=Y.allowCinematicContainerOverflow;var E=Y.displayAsSidebar;Y=Y.className;_.tl(function(){b().tagManagerId&&(_.Rj(b().tagManagerId,_.zO("GL")),pMQ(b().tagManagerId))},"xVTVTe");
var U=_.xh(B$Q,function(){return b().pageHeaderEntityKey});
return _.m("yt-page-header-renderer",{class:_.hj("page-header-renderer-wiz",Y)},_.m(_.OH,{data:function(){var X;return((X=U())==null?0:X.header)?U().header:(E==null?0:E())&&b().sidebarContent?b().sidebarContent:b().content}},{pageHeaderViewModel:function(X){return _.m(_.yVo,{data:X.data,
noPadding:w,enableBanner:V,cinematicContainerTopbarOffset:H,allowCinematicContainerOverflow:f,displayAsSidebar:function(){return(E==null?void 0:E())&&b().enableSidebarView}})}}))},"Ji");
b5g.idomCompat=!0;_.f_(b5g,"yt-page-header-renderer",{props:{data:_.YX,noPadding:_.YX,enableBanner:_.YX,cinematicContainerTopbarOffset:_.YX,allowCinematicContainerOverflow:_.YX,displayAsSidebar:_.YX,className:_.YX}});_.f_(_.AVj,"yt-image-banner-view-model",{props:{data:_.YX,isPositionRelative:_.YX}});_.f_(_.cCI,"yt-tab-group-shape",{props:{shape:_.YX}});var xC=function(){var Y=_.F.apply(this,arguments)||this;Y.expandableCustomTabRenderable=function(b){return Z2X(b,function(){return void Y.onSearchNavigate()})};
Y.isRichGrid=!1;Y.isConstrainedList=!1;Y.richGridMiniMode=!1;Y.richGridStyle="RICH_GRID_STYLE_UNKNOWN";Y.isRichGridShorts=!1;Y.responsiveSizing="COMPACT";Y.disableGridStateAware=!1;Y.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return Y};
_.P(xC,_.F);_.g=xC.prototype;_.g.computeHeaderDisabled=function(Y,b){return b||!Y||this.tabsHidden};
_.g.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.g.computeIsRichGridShorts=function(Y){return Y==="RICH_GRID_STYLE_SHORTS_GRID"||Y==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.g.computeImageBannerViewModel=function(){var Y,b;return _.v((b=_.v((Y=this.data)==null?void 0:Y.content,_.hxt))==null?void 0:b.banner,_.mmK)};
_.g.computeHasCinematicContainer=function(){var Y,b;return!((b=_.v((Y=this.data)==null?void 0:Y.content,_.hxt))==null||!b.background)};
_.g.handleHeaderResize=function(){var Y=_.E6(this.hostElement).querySelector("#header");Y&&_.Ua(Y,"iron-resize")};
_.g.handleInsertTabCommand=function(Y){var b=_.v(Y,T$t);b&&(b.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(w){return w.tabRenderer&&w.tabRenderer.tabIdentifier===b.tabIdentifier})||this.splice("tabs",b.tabIndex||-1,0,b.tab))};
_.g.handleRefreshChannelTabAction=function(Y){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===Y&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.g.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.m_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.g.observerRichGridSlimItemsPerRow=function(){_.m_(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.g.updateCssVars=function(){this.richGridItemsPerRow&&_.m_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cQ("rich_grid_max_item_width",500))+16)-16+"px"})};
_.g.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.m_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.g.onDataChanged=function(){this.handleHeaderResize()};
_.g.onWindowResize=function(){this.handleHeaderResize()};
_.g.onFocusedChanged=function(Y){(Y=_.uW(Y))&&Y.is==="tp-yt-paper-tab"&&Y.hasRipple()&&(Y.getRipple().holdDown=!Y.pointerDown&&Y.focused)};
_.g.updateSelectedFromBinding=function(Y){this.ytdTabbedHeaderBehavior.selected=Y.detail.value};
_.g.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.up.Object.defineProperties(xC.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:M_X(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.imageBannerViewModel)==null?void 0:Y.style)==="IMAGE_BANNER_STYLE_INSET"}}});
xC.prototype.onDataChanged=xC.prototype.onDataChanged;xC.prototype.updateCssVarsForResponsiveGrid=xC.prototype.updateCssVarsForResponsiveGrid;xC.prototype.updateCssVars=xC.prototype.updateCssVars;xC.prototype.observerRichGridSlimItemsPerRow=xC.prototype.observerRichGridSlimItemsPerRow;xC.prototype.observerRichGridItemsPerRow=xC.prototype.observerRichGridItemsPerRow;_.z([_.n(_.r0),_.K("design:type",Object)],xC.prototype,"ytdGridStateAwareBehavior",void 0);
_.z([_.n(Jk7),_.K("design:type",Object)],xC.prototype,"ytdTabbedHeaderBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],xC.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],xC.prototype,"ytdGuideStateAwareBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],xC.prototype,"ytdReduxBehavior",void 0);_.z([_.xZ("#tabs"),_.K("design:type",Object)],xC.prototype,"tabsElement",void 0);_.z([_.R(),_.K("design:type",Array)],xC.prototype,"tabs",void 0);_.z([_.R(),_.K("design:type",Object)],xC.prototype,"expandableCustomTabRenderable",void 0);_.z([_.t("tabs.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],xC.prototype,"tabGroupShape",null);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],xC.prototype,"isRichGrid",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],xC.prototype,"isConstrainedList",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Object)],xC.prototype,"richGridMiniMode",void 0);_.z([_.R({selector:function(Y){return Y.ui.richGridStyle}}),
_.K("design:type",Object)],xC.prototype,"richGridStyle",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.K("design:type",Object)],xC.prototype,"isRichGridShorts",void 0);_.z([_.R({selector:_.FZ}),_.K("design:type",Number)],xC.prototype,"richGridItemsPerRow",void 0);_.z([_.R({selector:function(Y){return Y.ui.richGridContainerWidth}}),
_.K("design:type",Number)],xC.prototype,"richGridContainerWidth",void 0);_.z([_.R({selector:_.XaG}),_.K("design:type",Number)],xC.prototype,"richGridSlimItemsPerRow",void 0);_.z([_.R(),_.K("design:type",Object)],xC.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],xC.prototype,"responsiveSizing",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],xC.prototype,"disableGridStateAware",void 0);
_.z([_.R({computed:"computeImageBannerViewModel(data)"}),_.K("design:type",Object)],xC.prototype,"imageBannerViewModel",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.K("design:type",Boolean)],xC.prototype,"hasCinematicContainer",void 0);_.z([_.R({selector:_.gFA,reflectToAttribute:!0}),_.K("design:type",Boolean)],xC.prototype,"guideIsVisibleButNotPersistent",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("imageBannerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],xC.prototype,"hasBanner",null);_.z([_.R({reflectToAttribute:!0}),_.t("imageBannerViewModel"),_.K("design:type",Object),_.K("design:paramtypes",[])],xC.prototype,"hasInsetBanner",null);_.z([_.R({computed:"computeTabsHidden(tabs)",value:!0}),_.K("design:type",Boolean)],xC.prototype,"tabsHidden",void 0);
_.z([_.lr("richGridItemsPerRow","isRichGrid"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xC.prototype,"observerRichGridItemsPerRow",null);_.z([_.lr("richGridSlimItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xC.prototype,"observerRichGridSlimItemsPerRow",null);
_.z([_.lr("richGridItemsPerRow","richGridMiniMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xC.prototype,"updateCssVars",null);_.z([_.lr("richGridContainerWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xC.prototype,"updateCssVarsForResponsiveGrid",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xC.prototype,"onDataChanged",null);
_.z([_.S({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],xC);
_.a(xC,"ytd-tabbed-page-header",function(){if(CUs!==void 0)return CUs;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return CUs=Y},{mode:1});var wrd;var qa=function(){return _.F.apply(this,arguments)||this};
_.P(qa,_.F);qa.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.m_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.up.Object.defineProperties(qa.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var Y,b;return this.componentBehavior.computeIcon_(((b=_.v((Y=this.data)==null?void 0:Y.badge,_.Nmo))==null?void 0:b.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.badge,_.Nmo))==null?void 0:b.label}}});
qa.prototype.observerRichGridItemsPerRow=qa.prototype.observerRichGridItemsPerRow;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],qa.prototype,"componentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],qa.prototype,"ytdReduxBehavior",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.db}),_.K("design:type",Boolean)],qa.prototype,"richGridMiniMode",void 0);
_.z([_.R({selector:_.FZ}),_.K("design:type",Number)],qa.prototype,"richGridItemsPerRow",void 0);_.z([_.R(),_.K("design:type",Object)],qa.prototype,"data",void 0);_.z([_.lr("richGridItemsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qa.prototype,"observerRichGridItemsPerRow",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],qa.prototype,"badgeIconName",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],qa.prototype,"badgeLabel",null);_.z([_.S({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],qa);
_.a(qa,"ytd-member-hub-profile-renderer",function(){if(wrd!==void 0)return wrd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-member-hub-profile-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-member-hub-profile-renderer">\n  <yt-img-shadow id="avatar" hidden="[[!data.avatar]]" thumbnail="[[data.avatar]]" class="style-scope ytd-member-hub-profile-renderer">\n  </yt-img-shadow>\n  <div id="details-container" class="style-scope ytd-member-hub-profile-renderer">\n    <ytd-badge-supported-renderer top-standalone-badge="[[data.badge]]" class="style-scope ytd-member-hub-profile-renderer">\n    </ytd-badge-supported-renderer>\n    <h2 class="style-scope ytd-member-hub-profile-renderer">\n      <yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-member-hub-profile-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-member-hub-profile-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return wrd=Y},{mode:1});var V6t;var sc=function(){return _.F.apply(this,arguments)||this};
_.P(sc,_.F);sc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sc.prototype,"data",void 0);_.z([_.S({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],sc);
_.a(sc,"ytd-settings-sidebar-renderer",function(){if(V6t!==void 0)return V6t;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-settings-sidebar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-settings-sidebar-renderer">[[getSimpleString(data.title)]]</div>\n<div id="items" class="style-scope ytd-settings-sidebar-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return V6t=Y},{mode:1});var H5Q;var Q6=function(){var Y=_.F.apply(this,arguments)||this;Y.expandableCustomTabRenderable=function(b){return Z2X(b,function(){return void Y.onSearchNavigate()})};
return Y};
_.P(Q6,_.F);Q6.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Q6.prototype.onSearchNavigate=function(){this.selected=void 0};
Q6.prototype.onTabsChange=function(){var Y,b=(Y=this.tabs)==null?void 0:Y.findIndex(function(w){var V;return w==null?void 0:(V=w.tabRenderer)==null?void 0:V.selected});
b!==void 0&&(this.selected=b)};
Q6.prototype.onTabsActive=function(Y){if(this.tabs!==void 0){var b,w;(Y=(b=this.tabs[Y.detail.selected])==null?void 0:(w=b.tabRenderer)==null?void 0:w.endpoint)&&_.Ua(this.hostElement,"yt-navigate",{endpoint:Y})}};
_.up.Object.defineProperties(Q6.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:M_X(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Q6.prototype.onTabsChange=Q6.prototype.onTabsChange;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.r0),_.K("design:type",Object)],Q6.prototype,"ytdGridStateAwareBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Q6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Q6.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Array)],Q6.prototype,"tabs",void 0);_.z([_.R(),_.K("design:type",Number)],Q6.prototype,"selected",void 0);_.z([_.t("tabs.*"),_.K("design:type",Object),_.K("design:paramtypes",[])],Q6.prototype,"tabGroupShape",null);_.z([_.R(),_.K("design:type",Object)],Q6.prototype,"expandableCustomTabRenderable",void 0);
_.z([_.t("tabs"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Q6.prototype,"tabsEnabled",null);_.z([_.vX("tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Q6.prototype,"onTabsChange",null);_.z([_.S({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Q6);
_.a(Q6,"ytd-topic-channel-details-renderer",function(){if(H5Q!==void 0)return H5Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return H5Q=Y},{mode:1});var gms;var v8=function(){var Y=_.F.apply(this,arguments)||this;Y.disableGridStateAware=!1;return Y};
_.P(v8,_.F);v8.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]]"}}}}}};
v8.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
v8.prototype.updateCssVars=function(){_.m_(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cQ("rich_grid_max_item_width",500))+16)-16+"px"})};
v8.prototype.updateCssVars=v8.prototype.updateCssVars;v8.prototype.activeChanged=v8.prototype.activeChanged;_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],v8.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],v8.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],v8.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],v8.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],v8.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Array)],v8.prototype,"tabs",void 0);_.z([_.R(),_.K("design:type",Boolean)],v8.prototype,"active",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],v8.prototype,"disableGridStateAware",void 0);
_.z([_.R({selector:_.FZ}),_.K("design:type",Number)],v8.prototype,"richGridItemsPerRow",void 0);_.z([_.R({selector:_.db}),_.K("design:type",Boolean)],v8.prototype,"richGridMiniMode",void 0);_.z([_.xZ("ytd-carousel-item-renderer"),_.K("design:type",Object)],v8.prototype,"carousel",void 0);_.z([_.lr("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v8.prototype,"activeChanged",null);
_.z([_.lr("richGridItemsPerRow","richGridMiniMode"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],v8.prototype,"updateCssVars",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],v8);
_.a(v8,"ytd-carousel-header-renderer",function(){if(gms!==void 0)return gms;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-carousel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-carousel-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return gms=Y},{mode:1});var fNs;var NH7=_.wM(["https://www.google-analytics.com/analytics.js"]),P8=function(){var Y=_.F.apply(this,arguments)||this;Y.scriptAnalyticsAdded=!1;return Y};
_.P(P8,_.F);P8.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var Y,b=(Y=this.data)==null?void 0:Y.tagManagerId;b&&(_.Rj(b,_.zO("GL")),pMQ(b))};
P8.prototype.sendGoogleAnalyticsPageview=function(Y){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var w=_.BN.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(w)};
var b=window.ga;b("set","page",window.location.pathname);b.l=+new Date;b("set","forceSSL",!0);b("create",Y,"'auto'");b("send","pageview")};
P8.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var Y=_.xG("SCRIPT");Y.name="ga-analytics";var b=_.HL(NH7);_.Ku(Y,b);Y.async=!0;_.E6(this.hostElement).appendChild(Y)};
P8.prototype.dataChanged=P8.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],P8.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],P8.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],P8);
_.a(P8,"ytd-channel-metadata-renderer",function(){if(fNs!==void 0)return fNs;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.trackingImageUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.trackingImageUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n<template is="dom-if" if="[[data.channelConversionUrl]]" class="style-scope ytd-channel-metadata-renderer">\n  <img src$="[[data.channelConversionUrl]]" border="0" width="1" height="1" alt="" class="style-scope ytd-channel-metadata-renderer">\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return fNs=Y},{mode:1});var EmQ;var cKR;var ZU=function(){return _.F.apply(this,arguments)||this};
_.P(ZU,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ZU.prototype,"data",void 0);_.z([_.S({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],ZU);
_.a(ZU,"ytd-sub-feed-option-renderer",function(){if(cKR!==void 0)return cKR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-sub-feed-option-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1">\n  <tp-yt-paper-radio-button checked="[[data.isSelected]]" class="style-scope ytd-sub-feed-option-renderer">\n    <yt-formatted-string text="[[data.name]]" class="style-scope ytd-sub-feed-option-renderer"></yt-formatted-string>\n  </tp-yt-paper-radio-button>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return cKR=Y},{mode:1});var UjX;var B8=function(){return _.F.apply(this,arguments)||this};
_.P(B8,_.F);B8.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],B8.prototype,"ytRendererStamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],B8.prototype,"data",void 0);_.z([_.S({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],B8);
_.a(B8,"ytd-sub-feed-selector-renderer",function(){if(UjX!==void 0)return UjX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sub-feed-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-sub-feed-selector-renderer">\n   [[getSimpleString(data.title)]]\n</h2>\n<div id="options" class="style-scope ytd-sub-feed-selector-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return UjX=Y},{mode:1});var nd=function(){return _.F.apply(this,arguments)||this};
_.P(nd,_.F);
nd.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}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nd.prototype,"data",void 0);_.z([_.S({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],nd);
_.a(nd,"ytd-browse-feed-actions-renderer",function(){if(EmQ!==void 0)return EmQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-feed-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-feed-actions-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return EmQ=Y},{mode:1});var Xr7;var Djs;var Ma=function(){return _.F.apply(this,arguments)||this};
_.P(Ma,_.F);Ma.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ma.prototype,"data",void 0);_.z([_.S({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Ma);
_.a(Ma,"ytd-mini-channel-renderer",function(){if(Djs!==void 0)return Djs;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="channel-info" class="yt-simple-endpoint style-scope ytd-mini-channel-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" rel$="[[computeNofollow_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <yt-img-shadow height="24" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-mini-channel-renderer">\n  </yt-img-shadow>\n  <span class="title style-scope ytd-mini-channel-renderer">[[getSimpleString(data.title)]]</span>\n</a>\n\n<div id="subscribe" class="style-scope ytd-mini-channel-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Djs=Y},{mode:1});var mjg;var eW=function(){return _.F.apply(this,arguments)||this};
_.P(eW,_.F);eW.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],eW.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],eW);
_.a(eW,"ytd-vertical-channel-section-renderer",function(){if(mjg!==void 0)return mjg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-vertical-channel-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-vertical-channel-section-renderer">[[data.title]]</h2>\n<div id="items" class="style-scope ytd-vertical-channel-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return mjg=Y},{mode:1});var pd=function(){return _.F.apply(this,arguments)||this};
_.P(pd,_.F);pd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pd.prototype,"data",void 0);_.z([_.S({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],pd);
_.a(pd,"ytd-browse-secondary-contents-renderer",function(){if(Xr7!==void 0)return Xr7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse-secondary-contents-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" class="style-scope ytd-browse-secondary-contents-renderer">\n</div>');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return Xr7=Y},{mode:1});var omR;var Oc=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};Y.notActive=!1;Y.isConstrainedList=!1;return Y};
_.P(Oc,_.F);_.g=Oc.prototype;
_.g.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(Y){var b;return(Y==null?void 0:(b=Y.webComponentHint)==null?void 0:b.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.g.getPath=function(Y,b){var w="data.tabs.#"+b+".";Y.tabs[b].tabRenderer?w+="tabRenderer.":Y.tabs[b].expandableTabRenderer&&(w+="expandableTabRenderer.");return w+"content.sectionListRenderer"};
_.g.computeDisplayedContent=function(Y){this.unlinkPaths("content");if(Y&&Y.tabs)for(var b=Y.tabs.length,w=0;w<b;w++){var V=Y.tabs[w].tabRenderer||Y.tabs[w].expandableTabRenderer;if(V.selected&&V.content)return this.linkPaths("content",this.getPath(Y,w)),V.content}return null};
_.g.computeHasSecondaryColumnData=function(Y){return!!Y&&!!Y.secondaryContents};
_.g.onRetrieveLocation=function(Y,b){b.locationRetrieved(b.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);Y.stopPropagation()};
_.g.onYtServiceRequestSent=function(Y,b){_.q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.g.onYtServiceRequestCompleted=function(Y,b){_.q("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.g.onReplaceFeedContentAction=function(Y){if(!_.q("replace_feed_content_action_killswitch")&&!this.notActive){var b;(Y=(b=_.v(Y,rkN))==null?void 0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(Y)}};
_.g.handleServiceRequestActions=function(Y){if(Y=Y.actions){Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;var w=void 0;((w=_.v(b,rkN))==null?0:w.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.v(b,rkN).items)}}};
Oc.prototype.onYtServiceRequestCompleted=Oc.prototype.onYtServiceRequestCompleted;Oc.prototype.onYtServiceRequestSent=Oc.prototype.onYtServiceRequestSent;Oc.prototype.onRetrieveLocation=Oc.prototype.onRetrieveLocation;_.z([_.n(_.r0),_.K("design:type",Object)],Oc.prototype,"ytdGridStateAwareBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Oc.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Oc.prototype,"data",void 0);_.z([_.R({computed:"computeDisplayedContent(data)"}),_.K("design:type",Object)],Oc.prototype,"content",void 0);
_.z([_.R({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Oc.prototype,"hasSecondaryColumnData",void 0);_.z([_.R({value:function(){return window.outerHeight>1024?3:2}}),
_.K("design:type",Number)],Oc.prototype,"initialCount",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],Oc.prototype,"pageSubtype",void 0);_.z([_.xZ("ytd-section-list-renderer"),_.K("design:type",Object)],Oc.prototype,"listRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],Oc.prototype,"notActive",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Oc.prototype,"isConstrainedList",void 0);
_.z([_.R(),_.K("design:type",String)],Oc.prototype,"responsiveSizing",void 0);_.z([_.kZ("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Oc.prototype,"onRetrieveLocation",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],Oc.prototype,"onYtServiceRequestSent",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],Oc.prototype,"onYtServiceRequestCompleted",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Oc);
_.a(Oc,"ytd-two-column-browse-results-renderer",function(){if(omR!==void 0)return omR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-two-column-browse-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="primary" class="style-scope ytd-two-column-browse-results-renderer"></div>\n<div id="secondary" class="style-scope ytd-two-column-browse-results-renderer">\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return omR=Y},{mode:2});var INd;var k7t;var tX=function(){var Y=_.F.apply(this,arguments)||this;Y.closeOnDismissButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);Y.closeOnAcceptButton=new Set(["ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ON_LINK_TAP","ALERT_WITH_ACTIONS_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);Y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return Y};
_.P(tX,_.F);_.g=tX.prototype;_.g.attached=function(){this.requestElementsPerRow()};
_.g.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_]]"}}}}}};
_.g.onUpdateElementsPerRowAction=function(Y){Y&&this.elementsPerRow!==Y&&(this.elementsPerRow=Y)};
_.g.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.g.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.g.computeAlertStyle_=function(Y){return Y};
_.g.observerElementsPerRow=function(){this.elementsPerRow&&_.m_(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.g.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.g.requestElementsPerRow=function(){_.Ua(this.hostElement,"yt-request-elements-per-row")};
tX.prototype.onIsVisibleChanged_=tX.prototype.onIsVisibleChanged_;tX.prototype.observerElementsPerRow=tX.prototype.observerElementsPerRow;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],tX.prototype,"actionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],tX.prototype,"data",void 0);_.z([_.R({value:6,reflectToAttribute:!0}),_.K("design:type",Number)],tX.prototype,"elementsPerRow",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],tX.prototype,"wrapButtons",void 0);_.z([_.R({value:_.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.K("design:type",Boolean)],tX.prototype,"isMusic",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.K("design:type",String)],tX.prototype,"alertStyle",void 0);_.z([_.R({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.K("design:type",Function)],tX.prototype,"dismissBoundButtonTap_",void 0);_.z([_.R({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.K("design:type",Function)],tX.prototype,"acceptBoundButtonTap_",void 0);_.z([_.lr("elementsPerRow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tX.prototype,"observerElementsPerRow",null);_.z([_.lr("data.isVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tX.prototype,"onIsVisibleChanged_",null);_.z([_.FM({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],tX);
_.a(tX,"yt-alert-with-actions-renderer",function(){if(k7t===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-alert-with-actions-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_alert_with_actions_renderer.yt.alert.with.actions.renderer.css.js--\x3e<div id="content-wrapper" hidden="[[!data.isVisible]]" class="style-scope yt-alert-with-actions-renderer">\n  <div id="content" class="style-scope yt-alert-with-actions-renderer">\n    <yt-icon id="icon" hidden="[[!data.icon]]" icon="[[data.icon.iconType]]" class="style-scope yt-alert-with-actions-renderer"></yt-icon>\n    <div id="text-content" class="style-scope yt-alert-with-actions-renderer">\n      <yt-formatted-string id="title" hidden$="[[!!data.title]]" text="[[data.title]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n      <yt-formatted-string id="alert-message" text="[[data.alertMessage]]" class="style-scope yt-alert-with-actions-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="actions" class="style-scope yt-alert-with-actions-renderer">\n    <div id="dismiss-button" hidden$="[[!!data.dismissButton]]" class="style-scope yt-alert-with-actions-renderer"></div>\n    <div id="action-buttons" hidden$="[[!!data.actionButtons]]" class="style-scope yt-alert-with-actions-renderer"></div>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;INd===void 0&&(INd=document.createElement("template"));var V=INd;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);k7t=Y}Y=k7t;return Y},{mode:2});_.f_(_.b8(function(Y){function b(x){var Q={};return _.m(_.wv,{text:x,className:_.hj("ytPersonalGreetingViewModelHeadline",(Q.ytPersonalGreetingViewModelHeadlineSmall=function(){return U()===48},Q))})}
function w(x,Q){return _.m("span",{el:x,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},b(Q))}
var V=_.GM("yt-personal-greeting-view-model"),H=_.GM("span"),f=_.GM("span"),E=function(){return Y.data().canvasPromoData},U=function(){var x;
return(x=Y.data().bannerHeight)!=null?x:56},X=_.qne(V,{throttleMs:100}),I=_.qne(H,{throttleMs:100}),k=_.qne(f,{throttleMs:100}),l=function(){return I.width()-X.width()>1};
_.jP(V,function(){var x;return(x=Y.data())==null?void 0:x.rendererContext},void 0,void 0,void 0,!0);
return _.m("yt-personal-greeting-view-model",{el:V,"aria-hidden":l,class:_.hj(Y.className,"ytPersonalGreetingViewModelHost"),style:_.Bb({height:(0,_.ZY)(function(){return l()?0:U()})})},_.m(_.h,{cond:function(){return Y.data().avatar&&!(k.width()+(Y.data().avatar?48:0)-X.width()>1)},
then:function(){return _.m(_.OH,{data:function(){return Y.data().avatar}},{decoratedAvatarViewModel:function(x){return _.m(_.pe,{data:x.data,
className:_.hj("ytPersonalGreetingViewModelAvatar")})}})}}),_.m("h1",null,b(function(){var x;
return(E==null?void 0:(x=E())==null?void 0:x.headline)||(k.width()+(Y.data().avatar?48:0)-X.width()>1?Y.data().shorterGreeting:Y.data().greeting)})),w(f,function(){return Y.data().greeting}),w(H,function(){return Y.data().shorterGreeting}))},"Ki"),"yt-personal-greeting-view-model",{props:{data:_.YX,
className:_.YX}});var Rt=function(){var Y=_.F.apply(this,arguments)||this;Y.hidden=!1;Y.isConstrainedList=!1;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.responsiveSizing="COMPACT";Y.attachedPlayers=_.q("kevlar_channel_trailer_multi_attach")?[]:void 0;Y.player=null;Y.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return Y};
_.P(Rt,_.F);_.g=Rt.prototype;
_.g.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.g.created=function(){var Y=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){Y.disposeMastheadAd()}]};
_.g.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new bFN(this.refresh,this.contents))};
_.g.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.g.activeChanged=function(){var Y=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=Y)};
_.g.tabsChanged=function(){var Y=this,b,w;if(this.pageSubtype==="channels"||_.q("kevlar_tab_gestures_for_tabbed_header_data")&&((b=this.data)==null?0:(w=b.header)==null?0:w.carouselHeaderRenderer))this.tabGestures=new pK(this.contents,this.contents,this.hostElement,this.header,function(E){Y.ytdReduxBehavior.dispatch(E)});
var V,H,f;b=(V=this.data)==null?void 0:(H=V.contents)==null?void 0:(f=H.twoColumnBrowseResultsRenderer)==null?void 0:f.tabs;this.tabGestures&&this.tabGestures.tabsChanged(b)};
_.g.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.g.engagementPanelsChanged=function(){var Y=_.fH().resolve(_.Za);if(Y){if(this.engagementPanels)for(var b=_.N(this.engagementPanels),w=b.next();!w.done;w=b.next()){var V=void 0;(w=(V=w.value.identifier)==null?void 0:V.tag)&&Y.panelMap.delete(w)}this.engagementPanels=[];var H;b=_.N(((H=this.data)==null?void 0:H.panels)||[]);for(H=b.next();!H.done;H=b.next()){H=_.v(H.value,_.t$t);var f=w=void 0,E=void 0,U=void 0;if(V=((w=H)==null?void 0:w.targetId)||((f=H)==null?void 0:f.panelIdentifier)||((E=H)==
null?void 0:(U=E.identifier)==null?void 0:U.tag))f=w=void 0,(f=(w=Y).registerPanelContent)==null||f.call(w,V,{engagementPanelSectionListRenderer:H}),this.engagementPanels.push(H)}}};
_.g.onStampFinished=function(){var Y=this;_.TC(this,function(){if(Y.tabGestures){var b=Y.tabGestures;if(b.scrollPositionNeedsUpdate){var w=_.fH().resolve(_.HQ(_.bX)),V;if((V=b.selectedTab)!=null&&V.title&&w&&(V=w.getCurrentPage())){if(b.scrollPositionForTabs.has(b.selectedTab.title)){var H,f;w=(f=(H=w.getCurrentPage())==null?void 0:H.clientHeight)!=null?f:0;H=b.scrollPositionForTabs.get(b.selectedTab.title);V.setScrollTop(H);w>H+100&&(b.scrollPositionNeedsUpdate=!1)}else V.setScrollTop(Math.min(b.lastVisitedTabScrollPosition!==
void 0?b.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,b.tabsStartAtInPx)),b.scrollPositionNeedsUpdate=!1;b.ytdReduxDispatch(ejX(!1))}}}})};
_.g.loadPage_=function(Y){this.initCsi();Y&&(this.data=Y);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.g.getTitle=function(Y){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",Y))return this.get("microformat.microformatDataRenderer.title",Y);if(this.get("header.feedTabbedHeaderRenderer.title",Y))return _.Tx(this.get("header.feedTabbedHeaderRenderer.title",Y));if(this.get("header.interactiveTabbedHeaderRenderer.title",Y))return this.get("header.interactiveTabbedHeaderRenderer.title",Y);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
Y))return _.Tx(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",Y));var b,w;return _.q("enable_page_header_page_title")&&(Y==null?0:(b=Y.header)==null?0:(w=b.pageHeaderRenderer)==null?0:w.pageTitle)?Y.header.pageHeaderRenderer.pageTitle:""};
_.g.updateTitle=function(Y){_.Ua(this.hostElement,"yt-update-title",this.getTitle(Y))};
_.g.initCsi=function(){_.ZJ(this.pageSubtype||"browse",["ol","cpt"])};
_.g.getPlayer=function(){if(_.q("kevlar_channel_trailer_multi_attach")){for(var Y=_.N(this.attachedPlayers),b=Y.next();!b.done;b=Y.next())if(b=b.value,b.isConnected||_.Ay(this.hostElement,b))return b;return null}return this.player};
_.g.getPlayerContainer=function(){return null};
_.g.onPlayerAttached=function(Y,b){_.q("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(b):this.player=b};
_.g.onPlayerDetached=function(Y,b){_.q("kevlar_channel_trailer_multi_attach")?(Y=this.attachedPlayers.indexOf(b),Y<0||this.attachedPlayers.splice(Y,1)):this.player=null};
_.g.getServiceTrackingParams=function(){var Y,b;return((Y=this.data)==null?void 0:(b=Y.responseContext)==null?void 0:b.serviceTrackingParams)||[]};
_.g.setMastheadAd=function(Y){Y&&Y.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=Y&&Y.mastheadAd};
_.g.dataChanged=function(){var Y=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.mBt();_.TC(this,function(){_.De(Y.hostElement,"ytd-update-grid-state-action")})};
_.g.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.g.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var Y=this.data.alerts;return Y&&Y.find(function(b){return!!b.alertWithActionsRenderer})}};
_.g.computeGreetingData=function(){if(this.data&&this.data.alerts){var Y=this.data.alerts;return Y&&Y.find(function(b){return!!b.personalGreetingViewModel})}};
_.g.computeHasMemberHubProfileRenderer=function(Y){var b;return!!(Y==null?0:(b=Y.header)==null?0:b.memberHubProfileRenderer)};
_.g.handleAlertCommand=function(Y){this.get("alertCommand.alert.alertWithActionsRenderer",Y)&&(Y=_.v(Y,zjA),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",Y.alert))};
_.g.handleYtPlaylistDeletionRedirect=function(Y){Y=this.get("playlistDeletionRedirectCommand.redirectEndpoint",Y);_.Ua(this.hostElement,"yt-navigate",{endpoint:Y})};
_.g.computeFluidWidth=function(Y,b,w){if(b==="mini_app"||w)return!0;var V,H,f;Y=Y==null?void 0:(V=Y.contents)==null?void 0:(H=V.twoColumnBrowseResultsRenderer)==null?void 0:(f=H.tabs)==null?void 0:f.find(function(X){var I;return X==null?void 0:(I=X.tabRenderer)==null?void 0:I.selected});
if(!Y)return!1;var E,U;return!!((E=Y.tabRenderer)==null?0:(U=E.content)==null?0:U.richGridRenderer)&&!["channel","channels","playables"].includes(b)};
_.g.computeHeaderFluidWidth=function(Y){return Y==="hashtag-landing-page"};
_.g.computeHasSidebar=function(Y){var b;return!!(Y.sidebar||((b=Y.header)==null?0:b.playlistHeaderRenderer))};
_.g.computeHasPageHeaderSidebar=function(Y){var b,w;return!!((b=Y.header)==null?0:(w=b.pageHeaderRenderer)==null?0:w.enableSidebarView)};
_.g.computeUseUnifiedShowPageLayout=function(Y){if(!Y||this.pageSubtype!=="show"||!Y.sidebar||!Y.sidebar.playlistSidebarRenderer)return!1;Y=Y.sidebar.playlistSidebarRenderer;if(!Y.items)return!1;for(var b=0;b<Y.items.length;b++)if(_.v(Y.items[b],M9)){var w=void 0;return((w=_.v(Y.items[b],M9))==null?void 0:w.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.g.computeIsConstrainedList=function(Y){return _.q("web_enable_constrained_list_subscriptions_channels")&&Y==="subscriptions-channels"};
_.g.computeResponsiveSizing=function(Y){return Y==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.up.Object.defineProperties(Rt.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,b;return((Y=this.data)==null?0:(b=Y.header)==null?0:b.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(!((Y=this.data)==null?0:(b=Y.sidebar)==null?0:b.playlistSidebarRenderer))return!1;var w;return(w=this.data)!=null&&w.header?!1:!0}}});
_.up.Object.defineProperties(Rt,{template:{configurable:!0,enumerable:!0,get:function(){if(HFI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);HFI=Y}Y=HFI;return Y}}});
Rt.prototype.dataChanged=Rt.prototype.dataChanged;Rt.prototype.onPlayerDetached=Rt.prototype.onPlayerDetached;Rt.prototype.onPlayerAttached=Rt.prototype.onPlayerAttached;Rt.prototype.onStampFinished=Rt.prototype.onStampFinished;Rt.prototype.engagementPanelsChanged=Rt.prototype.engagementPanelsChanged;Rt.prototype.scrollAtTopChanged=Rt.prototype.scrollAtTopChanged;Rt.prototype.tabsChanged=Rt.prototype.tabsChanged;Rt.prototype.activeChanged=Rt.prototype.activeChanged;
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Rt.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],Rt.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Rt.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.BJ.YtPageBehavior),_.K("design:type",Object)],Rt.prototype,"ytPageBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Rt.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Rt.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Rt.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Rt.prototype,"hidden",void 0);
_.z([_.R(),_.K("design:type",Object)],Rt.prototype,"mastheadAdData",void 0);_.z([_.R({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.K("design:type",Object)],Rt.prototype,"alertBannerData",void 0);_.z([_.R({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.K("design:type",Object)],Rt.prototype,"greetingData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],Rt.prototype,"pageSubtype",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.K("design:type",Boolean)],Rt.prototype,"hasMemberHubProfileRenderer",void 0);_.z([_.R({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Rt.prototype,"hasSidebar",void 0);_.z([_.R({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Rt.prototype,"hasPageHeaderSidebar",void 0);
_.z([_.R({reflectToAttribute:!0,value:!0}),_.K("design:type",Boolean)],Rt.prototype,"roundedContainer",void 0);_.z([_.R({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Rt.prototype,"useUnifiedShowPageLayout",void 0);_.z([_.R({computed:"computeIsConstrainedList(pageSubtype)"}),_.K("design:type",Object)],Rt.prototype,"isConstrainedList",void 0);
_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Rt.prototype,"usePlaylistHeaderRenderer",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Rt.prototype,"useOldPlaylistSidebarRenderer",null);_.z([_.R({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.K("design:type",Boolean)],Rt.prototype,"fluidWidth",void 0);_.z([_.R({selector:function(Y){return Y.ui.scrollAtTop}}),
_.K("design:type",Boolean)],Rt.prototype,"scrollAtTop",void 0);_.z([_.R({selector:_.flN}),_.K("design:type",Boolean)],Rt.prototype,"tabGesturesIsActive",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Rt.prototype,"darkerDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.K("design:type",Boolean)],Rt.prototype,"disableHeaderFluidWidth",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.K("design:type",String)],Rt.prototype,"responsiveSizing",void 0);_.z([_.xZ("ytd-two-column-browse-results-renderer"),_.K("design:type",HTMLElement)],Rt.prototype,"contents",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],Rt.prototype,"header",void 0);_.z([_.xZ("ytd-refresh"),_.K("design:type",Object)],Rt.prototype,"refresh",void 0);
_.z([_.lr("active"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rt.prototype,"activeChanged",null);_.z([_.lr("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rt.prototype,"tabsChanged",null);_.z([_.lr("scrollAtTop"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rt.prototype,"scrollAtTopChanged",null);
_.z([_.R(),_.K("design:type",Object)],Rt.prototype,"engagementPanels",void 0);_.z([_.lr("data.panels"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rt.prototype,"engagementPanelsChanged",null);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rt.prototype,"onStampFinished",null);
_.z([_.kZ("yt-player-attached"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Element]),_.K("design:returntype")],Rt.prototype,"onPlayerAttached",null);_.z([_.kZ("yt-player-detached"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Element]),_.K("design:returntype")],Rt.prototype,"onPlayerDetached",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Rt.prototype,"dataChanged",null);
_.z([_.S({is:"ytd-browse"})],Rt);_.Uq.registerService(_.fJL,Rt);
_.LC();
}catch(e){_._DumpException(e)}
try{
_.Fh("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 bU=function(Y){if(!Y)return"browse";var b=Y.page,w=Y.url,V,H,f,E=(V=Y.response)==null?void 0:(H=V.responseContext)==null?void 0:(f=H.webResponseContextExtensionData)==null?void 0:f.pageTheme;if(E)b=E.toLowerCase().replace(/_/g,"-");else if(b!=="watch"&&b!=="learning_journey_watch"){var U,X;if((b==="browse"||b==="settings")&&((U=Y.response)==null?0:(X=U.sidebar)==null?0:X.settingsSidebarRenderer))b="WEB_PAGE_TYPE_SETTINGS";else{var I,k;b==="browse"&&((I=Y.response)==null?0:(k=I.metadata)==null?
0:k.channelMetadataRenderer)?b="channel":w&&(b=_.hL(w)||b)}}return b},krI=function(){var Y=_.Aq("yt.aba.att");
return Y?Y:_.Jv.instance!==void 0?_.Jv.instance.az5.bind(_.Jv.instance):null},ljb=function(Y,b){var w;
return _.c(function(V){return(w=krI())?V.return(w(Y,b,6E4)):V.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},hBd=function(Y,b,w,V,H){b=b===void 0?[]:b;
H=H?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:H}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.NV(Y),dialogMessages:b.map(function(f){return _.NV(f)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NV(w),serviceEndpoint:H}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.NV(V)}}}}}},xnN=function(Y){var b=!!_.Cp().queueProxy;
var w,V,H;Y=Y==null?void 0:(w=Y.response)==null?void 0:(V=w.currentVideoEndpoint)==null?void 0:(H=V.watchEndpoint)==null?void 0:H.playlistId;return!(!b&&!Y)},qJs=function(Y,b){var w=_.sL();
if(xnN(Y))return w.playlistWatchPageActivation=!0;switch(bU(b)){case "yts-products":return w.productDetailsPageActivation=!0;case "mini_app":return w.miniAppPageActivation=!0;case "playables":return w.playablesDestPageActivation=!0;default:return!1}},sVI=function(Y,b,w){for(var V=typeof Y==="string"?Y.split(""):Y,H=Y.length-1;H>=0;--H)H in V&&b.call(w,V[H],H,Y)},QVb=function(Y,b){b=_.ltK(Y,b);
b>=0&&_.yv(Y,b)},vuR=function(Y){return Array.prototype.concat.apply([],arguments)},Pct=function(Y){var b=0;
b=b===void 0?0:b;if(!_.hO(Y))throw _.mI("uint64");var w=typeof Y;switch(b){case 512:switch(w){case "string":return _.UQr(Y);case "bigint":return String((0,_.Fb)(64,Y));default:return _.Ede(Y)}case 1024:switch(w){case "string":return _.X9L(Y);case "bigint":return _.Co((0,_.Fb)(64,Y));default:return _.c_g(Y)}case 0:switch(w){case "string":return _.UQr(Y);case "bigint":return _.Co((0,_.Fb)(64,Y));default:return _.NUL(Y)}default:return _.cI(b,"Unknown format requested type for int64")}},ZHt=function(Y){Y!=
null&&(Y=Y.JSC$6856_value_||"",Y=typeof Y==="string"?Y:new Uint8Array(Y));
return Y},BaF=function(Y){for(var b=_.BN.apply(1,arguments),w=Y[0],V=0;V<Y.length-1;V++)w+=String(b[V]),w+=Y[V+1];
b=document.implementation.createHTMLDocument("");V=b.createElement("style");b.head.appendChild(V);b=V.sheet;b.insertRule(w,0);if(b.cssRules.length===1&&(w=b.cssRules[0],w instanceof CSSStyleRule))return new _.y$(w.cssText.replace(/</g,"\\3C "))},nuA=function(Y,b){if(/-[a-z]/.test(b))return null;
if(_.jk$&&Y.dataset){if(_.Ebb()&&!(b in Y.dataset))return null;Y=Y.dataset[b];return Y===void 0?null:Y}return Y.getAttribute("data-"+_.hw(b))},eBg=function(){var Y=M3Q;
_.Aq("yt.ads.biscotti.getId_")||_.wG("yt.ads.biscotti.getId_",Y)},pQN=function(Y){_.wG("yt.ads.biscotti.lastId_",Y)},t37=function(){var Y={};
for(_.OJ=new OHX(Y.handleError===void 0?_.LB:Y.handleError,Y.logEvent===void 0?_.RY:Y.logEvent);_.t6.length>0;)switch(Y=_.t6.shift(),Y.type){case "ERROR":_.OJ.logError(Y.payload);break;case "EVENT":_.OJ.logEvent(Y.eventType,Y.payload)}},RBt=function(Y,b,w){return _.amB(function(V){return w?V.userIdentifier!==void 0&&!Y.includes(V.userIdentifier)&&w.includes(V.publicName):V.userIdentifier!==void 0&&!Y.includes(V.userIdentifier)},b)},dnd=function(Y){var b,w;
return _.c(function(V){if(V.nextAddress==1)return b=_.PQ("YtIdbMeta hasAnyMeta other"),_.D(V,_.amB(function(H){return H.userIdentifier!==void 0&&H.userIdentifier!==b},Y),2);
w=V.yieldResult;return V.return(w.length>0)})},L$s=function(Y,b){F$Q||(F$Q=_.Lb.addLowPriorityJob(function(){var w,V,H,f,E;
return _.c(function(U){switch(U.nextAddress){case 1:return _.D(U,_.Vn(),2);case 2:w=U.yieldResult;if(!w)return U.return();V=!0;_.ct(U,3);return _.D(U,RBt(Y,w,b),5);case 5:H=U.yieldResult;if(!H.length){V=!1;U.jumpTo(6);break}f=H[0];return _.D(U,_.j3(f.actualName),7);case 7:return _.D(U,_.J6(f.actualName,w),6);case 6:_.$u(U,4);break;case 3:E=_.mS(U),_.RV(E),V=!1;case 4:_.Lb.cancelJob(F$Q),F$Q=0,V&&L$s(Y,b),_.om(U)}})}))},SJI=function(){var Y;
return _.c(function(b){return b.nextAddress==1?_.D(b,_.Vn(),2):(Y=b.yieldResult)?b.return(dnd(Y)):b.return(!1)})},ajR=function(Y){var b=100;
b=b===void 0?500:b;var w,V,H,f,E,U;return _.c(function(X){return X.nextAddress==1?(w=_.zO("INNERTUBE_CONTEXT_CLIENT_NAME",0),V=[w,(0,_.gG)()-2592E6],H=[w,(0,_.gG)()],f=IDBKeyRange.bound(V,H),_.D(X,_.XHM(Y),2)):X.nextAddress!=3?(E=X.yieldResult,U=[],_.D(X,_.Tr(E,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(I){U.length=0;return _.fb(I.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:f,direction:"prev"},function(k){if(k.getValue()&&U.length<b)return U.push(k.getValue()),
k.delete().then(function(){return k.continue()})})}),3)):X.return(U)})},r6X=function(){var Y;
return _.c(function(b){if(b.nextAddress==1)return _.D(b,_.Vn(),2);Y=b.yieldResult;if(!Y||!_.Zj()&&!_.q("nwl_init_require_datasync_id_killswitch")||!_.pHB())return b.jumpTo(0);_.tyb=!0;_.OXb.isNwlInitialized=_.tyb;return _.D(b,_.fFQ().awaitInitialization(),0)})},w3=function(Y,b){_.jAG[Y]=!0;
var w=_.NY();w&&w.publish.apply(w,arguments);_.jAG[Y]=!1},W$N=function(){if(_.Bbu()&&!zBg){var Y=function(w){w=w.data;
if(w.op==="serializedGelBatch"){var V=_.Gdg.get(w.key);V&&(_.JUq(w.serializedBatch,V.client,V.resolve,V.networklessOptions,V.isIsolated,V.useVSSEndpoint,V.dangerousLogToVisitorSession,V.requestsOutstanding),_.Gdg.delete(w.key))}},b=_.Z8t();
b&&(b.addEventListener("message",Y),b.onerror=function(){_.Gdg.clear()});
zBg=!0}},Vl=function(){this.relativeTimeStart_=_.XT()},K$N=function(Y,b){Y!=null&&this.append.apply(this,arguments)},iHO=function(){return _.rO("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},A6N=function(Y,b,w){w=w===void 0?!1:w;
var V,H,f,E,U;return _.c(function(X){switch(X.nextAddress){case 1:_.Qh("SOCS",Y,34128E3,"youtube.com",!0);if(_.qX)return H=fetch(b,{method:"POST",mode:_.$L(b),credentials:_.yG(b),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),f=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.$L("/upgrade_visitor_cookie?eom=1"),credentials:_.yG("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.D(X,Promise.all([H,f]).then(function(I){return I[1]}),5);
fetch(b,{method:"POST",mode:_.$L(b),credentials:_.yG(b),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.D(X,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.$L("/upgrade_visitor_cookie?eom=1"),credentials:_.yG("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:V=X.yieldResult;X.jumpTo(3);break;case 5:V=E=X.yieldResult;case 3:if(!V.ok)throw Error("of");return _.D(X,V.text(),7);case 7:U=X.yieldResult,
!U.includes('"state_switch":true')&&!w||U.includes("skip_reload_for_test")||window.location.reload(),_.om(X)}})},Ccb=function(Y){return _.c(function(b){return b.nextAddress==1?_.D(b,A6N(Y.socsCookie,Y.savePreferenceUrl,!0),2):b.return()})},y6I=function(Y){return _.c(function(b){return b.nextAddress==1?_.D(b,A6N(Y.socsCookie,Y.savePreferenceUrl),2):b.return()})},jVA=function(Y){Y=Y.xhr.responseText;
if(!_.Hg(Y,")]}'"))throw new Hc;Y=JSON.parse(Y.substr(4));if((Y.type||1)>1)throw new Hc;Y=Y.id;pQN(Y);g3=_.Tk(Y);$nt(18E5,2);return Y},TaQ=function(Y,b){b=new GrA(b);
pQN("");g3=_.eJ$(b);Y>0&&$nt(12E4,Y-1);throw b;},$nt=function(Y,b){_.m$(function(){_.YJt().then(jVA,function(w){return TaQ(b,w)}).thenCatch(_.vY)},Y)},M3Q=function(){var Y=_.V3N();
if(Y!==void 0)return _.OQ(Y);g3||(g3=_.YJt().then(jVA).thenCatch(function(b){return TaQ(2,b)}));
return g3},J6t=function(){var Y=document;
return _.SL(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in Y})},uOs=function(Y){Y.addEventListener("click",function(b){var w=b.target;
w&&w.getAttribute("href")&&(w=w.getAttribute("href"),_.Fk(window,w,"_blank"),b.preventDefault(),b.stopImmediatePropagation())})},YKN=function(Y){var b,w,V,H=(V=(w=((b=Y.mainDownloadsListEntity)!=null?b:{})[_.gUB])==null?void 0:w.refresh)!=null?V:"",f;
Y=(f=Y.refresh)==null?void 0:f[H];H=Y!=null?Y:{};return(H==null?0:H.refreshTime)?Number(H==null?void 0:H.refreshTime):0},bbI=function(Y,b){var w=_.p8(Y);
return b.every(function(V){var H;V=V==null?void 0:(H=V.playbackDataEntity)==null?void 0:H.key;if(!V)return!1;H=_.I8(_.D7(V).entityId,"mainVideoEntity");return!!w[H]})},wOI=function(Y){Y=_.n8(Y.entities);
return _.hzv(Y).length},VIN=function(Y,b){if(b){var w;
Y=(w=_.kt(Y.entities,"downloadQualityPickerEntity",b))!=null?w:void 0}else Y=void 0;return Y},f9O=function(){Hbd||(_.jl=_.bpq,Hbd=new gr7);
return Hbd},NGX=function(Y){var b=document.getElementsByTagName("ytd-enforcement-message-view-model");
b.length===0||getComputedStyle(b[0]).display==="none"?Y(0,"p.h_"):Y(1,"p.h_")},ErO=function(){fF=0;
var Y=[_.Z8(!0)];NW&&_.De(NW,"yt-window-resized",Y)},cEt=function(){fF||(fF=_.Lb.addLowPriorityJob(ErO,200))},XOt=function(){EE=0;
UzQ=_.GKo(document);var Y=[UzQ];NW&&_.De(NW,"yt-window-scrolled",Y)},DzA=function(){EE||(EE=_.Lb.addLowPriorityJob(XOt,200))},ort=function(Y){Y=Y===void 0?null:Y;
mzt.push(_.Vu(window,"resize",cEt));mzt.push(_.Vu(window,"scroll",DzA));Y&&(NW=Y)},kDF=function(){var Y={isWide:_.sJ.get("wide","0")==="1"},b=_.P0();
if(b=b.getFlag(165)||b.getFlag(174))Y.theme=_.OC(!0);if(_.IiK()){var w=_.pX()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";Y.systemTheme=w}!b&&_.q("parent_tools_enable_app_settings")&&_.GO(window.location.href).theme!==void 0&&(Y.theme=_.OC());if((b=cc)?!_.BL.equals(b,Y):Y)b={currentValue:Y},I9s&&(b.timeSinceLastSnapshotSecs=Math.round(((0,_.gG)()-I9s)/1E3)),cc&&(b.previousValue=cc),_.RY("appSettingsCaptured",b),cc=Y,I9s=(0,_.gG)()},l9F=function(Y){_.c(function(b){if(b.nextAddress==1)return _.D(b,
Y.delete("yt-appshell-assets"),2);
_.om(b)})},hnX=function(Y){return _.Gr((0,_.NzU)(),Y)},qKX=function(){var Y;
_.c(function(b){return b.nextAddress==1?_.D(b,UE.getInstance(),2):(Y=b.yieldResult)?_.D(b,xzt(Y),0):b.jumpTo(0)})},QqR=function(){var Y;
_.c(function(b){return b.nextAddress==1?_.D(b,XU.getInstance(),2):(Y=b.yieldResult)?_.D(b,sqX(Y),0):b.jumpTo(0)})},vrd=function(Y){l9F(Y);
qKX();QqR()},PSs=function(Y){var b,w;
return _.c(function(V){if(V.nextAddress==1)return _.D(V,_.SSu(Y),2);if(b=V.yieldResult){var H;a:{if(b.headers&&(H=b.headers.get("date"))&&(H=Date.parse(H),!isNaN(H))){H=Math.round((0,_.gG)()-H);break a}H=-1}w=H;if(w>-1)return V.return(w)}return V.return(-1)})},Zbb=function(){var Y=_.wB.caches,b=_.Wf("IS_SHELL_LOAD"),w,V;
_.c(function(H){if(H.nextAddress==1)return w=-1,b?_.D(H,PSs(Y),3):(V=_.pz(),w=Math.round((0,_.gG)()-V),H.jumpTo(2));H.nextAddress!=2&&(w=H.yieldResult);w>=0&&w<2147483648&&_.Fx({appInstallDataAgeMs:w});_.om(H)})},BGR=function(Y){var b=_.$G(_.wB.location.href),w={};
"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(V){var H=b.JSC$8068_queryData_.getValues(V);if(H==null?0:H.length)w[V]=H});
return _.gF(Y,new Map(Object.entries(w)))},nr7=function(Y){Y=Y.match(/(.*)::.*::.*/);
if(Y!==null)return Y[1]},MIQ=function(Y){if(_.wwG()){var b=Object.keys(window.localStorage);
b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=nr7(w);V===void 0||Y.includes(V)||self.localStorage.removeItem(w)}}},enO=function(){if(!_.wwG())return!1;
var Y=_.PQ(),b=Object.keys(window.localStorage);b=_.N(b);for(var w=b.next();!w.done;w=b.next())if(w=nr7(w.value),w!==void 0&&w!==Y)return!0;return!1},pOF=function(Y){return _.ys("NotificationsDisabled",Y)},ObA=function(){return Notification.permission!="granted"?Promise.resolve():_.NCg().then(function(Y){return Y?Y.pushManager.getSubscription().then(function(b){if(b)return Promise.resolve();
b={userVisibleOnly:!0,applicationServerKey:_.c9("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return Y.pushManager.subscribe(b).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},tIg=function(Y){return _.NCg().then(function(b){if(!b||!b.active)return Promise.reject(new _.BQ("serviceworker.postMessage",Y,b));
try{return b.active.postMessage(Y),Promise.resolve()}catch(w){return Promise.reject(w)}})},RnO=function(){tIg({type:"notifications_register",
data:_.zO("ID_TOKEN")})},dzO=function(){if(!_.Wf("LOGGED_IN"))return Promise.resolve(!1);
var Y=_.UJ("service_worker_push_force_notification_prompt_tag");return Y?_.ud("PromptTags").then(function(b){if(!b)return!0;var w=[];try{w=JSON.parse(b)}catch(V){return!1}return w&&w.indexOf(Y)==-1}):Promise.resolve(!1)},FqR=function(){var Y=_.cQ("service_worker_push_prompt_delay_microseconds");
return Y?_.ud("PromptTime").then(function(b){return Promise.resolve(Date.now()-Y>(b||0))}):Promise.resolve(!0)},Lq7=function(){var Y=_.cQ("service_worker_push_logged_out_prompt_watches");
return Y==-1?Promise.resolve(!1):_.ud("WatchCount").then(function(b){return b>=Y})},SK7=function(){var Y=_.gK(document,"yt-push-prompt-modal-bg");
Y&&_.qf(Y)},a9t=function(){return _.cQ("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.ud("PromptCount").then(function(Y){Y||(Y=0);
return Promise.resolve(Y<_.cQ("service_worker_push_prompt_cap"))})},rEd=function(Y){return _.Wf("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Wf("LOGGED_IN")&&(Y===void 0?0:Y)?dzO().then(function(b){if(b)return!0;
b=[a9t(),FqR()];_.Wf("LOGGED_IN")||b.push(Lq7());return Promise.all(b).then(function(w){return w.every(function(V){return V})})}):Promise.resolve(!1)},zng=function(){_.ud("PromptCount").then(function(Y){return _.ys("PromptCount",Y+1)}).then(function(){return _.ys("PromptTime",Date.now())}).then(function(){var Y=_.UJ("service_worker_push_force_notification_prompt_tag");
if(Y)return _.ud("PromptTags").then(function(b){var w=[];if(b)try{w=JSON.parse(b)}catch(V){return!1}w||(w=[]);w.push(Y);return _.ys("PromptTags",JSON.stringify(w))})})},Kqt=function(){WqQ||SK7()},ibX=function(Y){Y.style.zIndex=2147483648;
Y.style.pointerEvents="auto";Y.style.backgroundColor="rgba(0, 0, 0, 0.6)";Y.style.width="100%";Y.style.height="100vh";Y.style.position="absolute";Y.style.top="0";Y.style.left="0";Y.style.border="none"},AEF=function(){var Y=_.gK(document,"yt-push-prompt-modal-bg");
WqQ=_.q("service_worker_push_prompt_modal_ignore_click");Y?ibX(Y):(Y=_.OI("div",{id:"yt-push-prompt-modal-bg"}),ibX(Y),document.body.appendChild(Y),_.AL6(document,"click",Kqt))},CSN=function(){var Y=arguments;
_.q("service_worker_push_prompt_modal_enable")&&AEF();return Notification.requestPermission().then(function(b){SK7();var w=document.getElementById("ticker");w&&(w.className=w.classList.remove("show"));if(b=="granted")return ObA().then(function(){pOF(!1);RnO();return Promise.resolve(!0)});
b=="denied"&&RnO();return Promise.resolve(!1)}).catch(function(){SK7();
return Promise.reject.apply(Promise,_.Bt(Y))})},yEs=function(Y){Y=Y===void 0?!1:Y;
var b=_.qSM().client;if(b&&b.browserVersion){var w=b.browserVersion,V=b.browserName=="CHROME"&&_.I6(w,"50.0.0")<0;b=b.browserName=="OPERA"&&_.I6(w,"42.0.0")<0;if(V||b)return Promise.resolve()}return _.U67().then(function(H){if(!H)return Promise.resolve();H=ObA().then(function(){return tIg({type:"notifications_check_registration",data:_.zO("ID_TOKEN")})});
return Notification.permission!="default"?H.catch(function(){}):H.then(function(){return rEd(Y)}).then(function(f){if(f)return zng(),CSN().then(function(){})}).catch(function(){})})},$zs=function(Y){return _.EFt(Y)?yEs():Promise.resolve()},jqI=function(Y){var b=Y.installing||Y.waiting;
return Y.active||!b?Promise.resolve(Y):new Promise(function(w){var V=function(H){H=H.target;if(H.state==="activated"||H.state==="redundant")b.removeEventListener("statechange",V),w(Y)};
b.addEventListener("statechange",V)})},GDt=function(){var Y=new _.dka("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.lf(Y,{mainAppWeb:_.$y()});var b=_.PP5;_.q("service_worker_forward_exp_params")&&(b=BGR(b));try{var w=_.QHu(b).catch(function(){_.hJ(Y,"FAILURE");return new Promise(function(){})});
_.q("service_worker_push_enabled")&&w.then(function(V){_.hJ(Y,"SUCCESS");return V}).then(jqI).then($zs)}catch(V){if(_.hJ(Y,"FAILURE"),V.name!=="SecurityError")throw V;
}},TGb=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&GDt()},JEt=function(Y,b){var w={};
b&&(w.serializedYpcFamilyCreateLoggingParams=b);_.RY(Y,w);_.dh()},u4t=function(Y,b){var w={};
w.serializedYpcRefundFlowLoggingParams=b;Y&&(w.eventType=Y);_.RY("ypcRefundFlowEvent",w);_.dh()},YPR=function(Y){Y&&_.Phv("transactionFlowSucceeded",Y)},bBQ=function(Y){Y&&_.Ol("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},wyb=function(Y){var b,w,V,H,f,E,U;
_.c(function(X){if(X.nextAddress==1)return _.D(X,_.NNM(),2);if(X.nextAddress!=3){if(!X.yieldResult)return X.return(!1);b=[];return _.D(X,_.Dp.keys(),3)}w=X.yieldResult;V=_.N(w);for(H=V.next();!H.done;H=V.next())f=H.value,E=_.g3L(f),U=E.datasyncId,!U||Y.includes(U)||b.push(_.Dp.delete(f));return X.return(Promise.all(b).then(function(I){return I.some(function(k){return k})}))})},VkX=function(){var Y,b,w,V,H,f,E;
return _.c(function(U){if(U.nextAddress==1)return _.D(U,_.NNM(),2);if(U.nextAddress!=3){if(!U.yieldResult)return U.return(!1);Y=_.PQ("cache contains other");return _.D(U,_.Dp.keys(),3)}b=U.yieldResult;w=_.N(b);for(V=w.next();!V.done;V=w.next())if(H=V.value,f=_.g3L(H),(E=f.datasyncId)&&E!==Y)return U.return(!0);return U.return(!1)})},HBX=function(){var Y=_.fH().resolve(_.HQ(_.hFr));
return Y?Y.getCurrentTime():0},gPQ=function(){var Y,b,w,V,H,f,E,U,X,I,k,l,x,Q;
return _.c(function(Z){switch(Z.nextAddress){case 1:Y={},b=_.w4B(),w=_.N(Object.entries(b)),V=w.next();case 4:if(V.done){Z.jumpTo(3);break}H=V.value;f=_.N(H);E=f.next().value;U=f.next().value;X=E;I=U;if(!I){Z.jumpTo(5);break}return _.D(Z,I(),8);case 8:Y[X]=Z.yieldResult;case 5:V=w.next();Z.jumpTo(4);break;case 2:k=_.N(void 0),l=k.next();case 9:if(l.done){Z.jumpTo(3);break}x=l.value;Q=b[x];if(!Q){Z.jumpTo(10);break}return _.D(Z,Q(),13);case 13:Y[x]=Z.yieldResult;case 10:l=k.next();Z.jumpTo(9);break;
case 3:return Z.return(Y)}})},fFF=function(){var Y;
_.c(function(b){if(b.nextAddress==1)return _.D(b,gPQ(),2);Y=b.yieldResult;return _.D(b,navigator.clipboard.writeText(JSON.stringify(Y,null,2)),0)})},NhA=function(Y,b){return _.kt(Y.entities,"superThanksSelectedTierEntity",b)},EP7=function(Y){var b;
return(b=Y.sharedUi)==null?void 0:b.currentPageType},chO=function(Y,b){return{popup:{searchSuggestionReportDialog:{searchQuery:Y,
title:_.sa("SBOX_INAPPROPRIATE_TITLE"),suggestions:b,categoryLabel:_.sa("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.sa("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.sa("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.sa("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.sa("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.sa("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.sa("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.sa("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.sa("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.sa("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},UYb=function(Y){var b,w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C;
return _.c(function(W){switch(W.nextAddress){case 1:return _.D(W,_.xt(),2);case 2:return(b=W.yieldResult)?_.D(W,_.ROt(b),3):W.return();case 3:w=W.yieldResult;if(!w)return W.return();H=((V=w.offlineVideos)==null?void 0:V.length)||0;E=((f=w.offlinePlaylists)==null?void 0:f.length)||0;if(H===0&&E===0)return W.return();U=0;if(w.offlineVideos)for(X=_.N(w.offlineVideos),I=X.next();!I.done;I=X.next())k=I.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===k.videoState&&(U+=1);Y.offline_videos_count=H.toString();_.q("kevlar_log_offline_current_network_type_ks")||
(Y.offline_current_network_type=(l=_.D4e())!=null?l:"CONN_INVALID");_.q("kevlar_log_updated_time_for_smart_downloads")&&(x=_.u3().getState().entities,Q=_.R8(x),Z=YKN(x),Y.offline_smart_downloads_last_sync_time_ms=Q.toString(),Y.offline_smart_downloads_next_sync_time_ms=Z.toString());Y.offline_videos_playable=U.toString();Y.offline_playlists_count=E.toString();if(!_.q("woffle_used_state_report")){W.jumpTo(4);break}w.offlineVideos&&(e=w.offlineVideos.reduce(function(y,G){G.downloadedBytes&&(y+=Number(G.downloadedBytes));
return y},0).toString())&&(Y.offline_used_disk_space_bytes=e);
if(!((O=navigator)==null?0:(L=O.storage)==null?0:L.estimate)){W.jumpTo(4);break}return _.D(W,navigator.storage.estimate(),6);case 6:r=W.yieldResult,Y.offline_free_disk_space_bytes=(((C=r)==null?void 0:C.quota)||0).toString();case 4:Y.offline_client_state=JSON.stringify(w),_.om(W)}})},XyX=function(Y){Y=Y.match(/(.*)::.*::.*/);
if(Y!==null)return Y[1]},DYt=function(Y){if(_.a6M()){var b=Object.keys(window.sessionStorage);
b=_.N(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=XyX(w);V===void 0||Y.includes(V)||self.sessionStorage.removeItem(w)}}},mYX=function(){if(!_.a6M())return!1;
var Y=_.PQ(),b=Object.keys(window.sessionStorage);b=_.N(b);for(var w=b.next();!w.done;w=b.next())if(w=XyX(w.value),w!==void 0&&w!==Y)return!0;return!1},DB=function(Y,b,w){(_.q("desktop_keyboard_shortcut_usage_log")||w&&_.q("web_shorts_keyboard_shortcut_usage_log"))&&(b?_.Jk.get(Y):_.T$.get(Y))&&(Y=b?_.Y6.get(Y):_.uK.get(Y))&&_.J1(_.dO(),Y)},oPN=function(){var Y,b;
return typeof CSS!=="undefined"&&((b=(Y=CSS).supports)==null?void 0:b.call(Y,"selector(:has(*))"))},IFX=function(Y){return Y.visibility!=="hidden"&&Y.display!=="none"},lFN=function(Y){if(oPN()||Y.tagName!=="DETAILS"?!Y.matches(kMR):Y.querySelector("summary")!==null)return-1;
Y=Y.getAttribute("tabindex")||"0";return Number(Y)},hGX=function(Y){return Y.some(function(b){return lFN(b)>0})},xYt=function(Y){if(Y.textContent)return!0;
if(Y instanceof HTMLInputElement){if(!Y.labels)return!1;Y=_.N(Y.labels);for(var b=Y.next();!b.done;b=Y.next())if(b.value.textContent)return!0}return!1},qPF=function(Y){return Y.sort(function(b,w){return lFN(w)-lFN(b)})},sYX=function(Y){Y=Array.from(Y.querySelectorAll(kMR)).filter(function(b){return(IFX(b.style)?IFX(window.getComputedStyle(b)):!1)&&xYt(b)});
return hGX(Y)?qPF(Y):Y},QYR=function(Y){Y=sYX(Y);
Y.length>0&&Y[0].focus()},vPN=function(Y,b){b.stack&&(Y.stack+="\n"+b.stack);
return Y},Bhb=function(Y){var b=ml(Y,"Content-Type");
if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new PFb:new _.XL;if(b.startsWith("application/x-protobuf")){Y=ml(Y,"Content-Transfer-Encoding");if(!Y)return new or;if(Y.toLowerCase()=="base64")return new ZBN}return null},Fpb=function(Y,b,w,V){var H=new nPX(function(U,X){return MkR.has(X)?U.sentinel==="gal"&&U.event!==void 0:!1},function(U){U.event?(U=eGQ(U.event),U=!U||pyg(V,U)?!0:_.nE(Y.lastEvent,Ir,2,k6)?!_.nE(U,lU,1,k6)&&
!_.nE(U,Ir,2,k6):!_.nE(U,lU,1,k6)&&!_.nE(U,Ir,3,k6)):U=!0;
return U});
w=_.gF(Y.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",OBR(w)]]));if(Y.nestedOrigins!==void 0)for(var f=_.N(Y.nestedOrigins),E=f.next();!E.done;E=f.next())w=_.gF(w,new Map([["origin",E.value]]));return tkA(H,w,b).then(function(U){U=RGX(U.event);if(_.nE(U,lU,1,k6)){var X,I=(X=_.WZ(U,lU,1,k6))==null?void 0:_.ay(X,2);I&&V.JSC$17168_logErrorEvent(dYR(I));X=_.WZ(U,lU,1,k6);_.ay(X,2)===4?(U=_.WZ(U,lU,1,k6),U={statusCode:11,statusMessage:_.Su(U,
3)}):(U=_.WZ(U,lU,1,k6),U={statusCode:12,statusMessage:_.Su(U,3)});return U}_.nE(U,Ir,3,k6)?(U=_.WZ(U,Ir,3,k6),U={statusCode:1,consentLanguageKeys:_.Su(U,2)}):U={statusCode:1};return U}).catch(function(U){return U.errorCode!==void 0?{statusCode:U.errorCode,
statusMessage:U.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},rhR=function(Y){var b={};
if(Y===void 0||Y===null)return b;Y.getToken()!==void 0&&LpN(Y.getToken())&&LpN(Y.getToken()).length>0&&(b.scopes=new Set(LpN(Y.getToken())));Y.getToken()!==void 0&&SPR(Y.getToken())&&SPR(Y.getToken()).length>0&&(b.capabilities=new Set(SPR(Y.getToken())));_.Su(Y,3)!==void 0&&(b.consistencyKey=_.Su(Y,3));Y.getName()!==void 0&&Y.getName()!==""&&(b.linkName=Y.getName());_.BZ(Y,aFt,4)&&(Y=_.EK(Y,aFt,4),Y=Object.assign({},_.Su(Y,1)&&{userId:_.Su(Y,1)},_.Su(Y,2)&&{displayName:_.Su(Y,2)},_.Su(Y,3)&&{email:_.Su(Y,
3)},_.Su(Y,5)&&{username:_.Su(Y,5)},_.Su(Y,4)&&{profilePicture:_.Su(Y,4)}),b.profile=Y);return b},zGI=function(Y,b){var w=Y.flowParams;
return{serviceId:w.serviceId,sessionId:w.sessionId,currentFlow:Y.currentFlow,googleScopesString:b,linkingSessionSerialized:Y.session.serialize(),consentLanguageKeys:w.consentLanguageKeys,callerState:Y.callerState,dynamicUrlParameters:w.dynamicUrlParameters,partnerConfigMinReadTimestamp:w.partnerConfigMinReadTimestamp}},CFI=function(Y){var b=Y.googleScopes!==void 0?Array.from(Y.googleScopes).join(","):"";
WpQ(zGI(Y,b));b=KpO(Y);return b===null?Promise.resolve(iBd):b.start().then(function(w){var V,H=(V=w.link)==null?void 0:V.consistencyKey;return w.statusCode===1&&Y.googleScopes!==void 0&&Y.googleScopes.size>0&&H!==void 0?(V=Y.flowParams,AhN(V.serviceId,V.sessionId,Y.googleScopes,H,V.galService,Y.config,w)):w})},yhO=function(Y){var b=KpO(Y);
return b===null?Promise.resolve(hg({statusCode:7,statusMessage:"Failed to create flow object"},Y.callerState)):b.complete().then(function(w){var V,H=(V=w.link)==null?void 0:V.consistencyKey;return w.statusCode===1&&Y.googleScopes!==void 0&&Y.googleScopes.size>0&&H!==void 0?(V=Y.flowParams,AhN(V.serviceId,V.sessionId,Y.googleScopes,H,V.galService,Y.config,w)):hg(w,Y.callerState)},function(w){return hg({statusCode:12,
statusMessage:"Failed to complete the flow: "+w.message},Y.callerState)})},AhN=function(Y,b,w,V,H,f,E){return $YN(H,{serviceId:Y,
sessionId:b,googleScopes:w,consistencyKey:V}).then(function(){return E},function(U){return H.deleteLink({serviceId:Y,
sessionId:b,accountLinkingEntryPoint:f.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+U.message}},function(X){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+X.message}})})},KpO=function(Y){switch(Y.currentFlow){case 1:var b=Y.flowParams;
Y=_.EK(Y.session,jYA,1);return x6.createOAuthFlow(b,Y);case 2:case 3:return b=Y.flowParams,Y=_.EK(Y.session,GMg,6),qW.createStreamlinedFlow(b,Y);default:return null}},ThO=function(Y,b){Y===2&&(Y=3);
var w=0;sE.indexOf(Y)!==-1&&(w=sE.indexOf(Y)+1);for(Y=w;Y<sE.length;Y++)if(b.has(sE[Y]))return sE[Y]},YZA=function(Y){var b=Y.serviceId;
var w=Y.sessionId;var V=Y.config;var H=Y.galService;var f=Y.capabilities;var E=Y.scopes;var U=Y.loginHint;var X=Y.callerState;var I=Y.consentLanguageKeys;var k=Y.linkName;var l=Y.dynamicUrlParameters;var x=Y.partnerConfigMinReadTimestamp;Y=V.dataUsageNoticeConfig?V.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return H.startLinkingSession({serviceId:b,sessionId:w,capabilities:f,scopes:E,loginHint:U,callerState:X,supportedFlows:Jht(V.supportedFlows),completionUrl:V.completionUrl,accountLinkingEntryPoint:V.accountLinkingEntryPoint,
consentLanguageKeys:I,dataUsageNoticeConfig:Y,linkName:k,dynamicUrlParameters:l,partnerConfigMinReadTimestamp:x}).then(function(Q){return new uts(b,w,V,H,Q,void 0,X,I,l,x)})},gDQ=function(Y,b,w){a:{var V=new bSd;
if(V.storage!==null)try{var H=V.storage.get("SAVED_SESSION");if(H===void 0){var f=null;break a}if(H.serviceId===Y){f=H;break a}}catch(E){}f=null}if(f===null)return Promise.resolve({statusCode:2});w6g(Y);V=VMQ(f.linkingSessionSerialized);return HS7(new uts(Y,f.sessionId,b,w,V,f.googleScopesString!==""&&f.googleScopesString!==void 0?new Set(f.googleScopesString.split(",")):void 0,f.callerState,f.consentLanguageKeys,f.dynamicUrlParameters,f.partnerConfigMinReadTimestamp),f.currentFlow,f.consentLanguageKeys)},
WpQ=function(Y){var b=new bSd;
b.storage!==null&&b.storage.set("SAVED_SESSION",Y)},w6g=function(Y){var b=new bSd;
if(b.storage!==null){var w=b.storage.get("SAVED_SESSION");w!==void 0&&w.serviceId===Y&&b.storage.remove("SAVED_SESSION")}},Jht=function(Y){var b=new Set;
Y=_.N(Y);for(var w=Y.next();!w.done;w=Y.next())w=w.value,w!==1&&fkX.has(w)&&b.add(fkX.get(w));return b},hg=function(Y,b){b!==void 0&&(Y.callerState=b);
return Y},NSR=function(Y){switch(Y){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},UcO=function(Y){return new EDN(Y,new cQb(Y))},mct=function(Y,b){b=b===void 0?!1:b;
var w=document.createElement("div");Y&&(w.style.transform="scaleX(-1)");w.style.backgroundColor=b?"rgba(138,180,248,.24)":"#e8f0fe";w.style.height="4px";w.style.overflow="hidden";w.style.position="absolute";w.style.top="0";w.style.width="100%";w.style.zIndex="1500";w.setAttribute("aria-label","Loading");w.setAttribute("aria-live","polite");Y=document.createElement("style");Y.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
w.appendChild(Y);Y=X6R();Y.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";Y.style.left="-145.166611%";var V=DcA(b);V.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";Y.appendChild(V);w.appendChild(Y);Y=X6R();Y.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";Y.style.left="-54.888891%";b=DcA(b);b.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
Y.appendChild(b);w.appendChild(Y);return w},X6R=function(){var Y=document.createElement("div");
Y.style.height="100%";Y.style.position="absolute";Y.style.transformOrigin="top left";Y.style.width="100%";return Y},DcA=function(Y){var b=document.createElement("span");
b.style.borderTop=Y?"4px solid #669df6":"4px solid #4285f4";b.style.display="inline-block";b.style.position="absolute";b.style.width="100%";return b},oDt=function(Y){return Y==null?void 0:_.wI5(Y).valueOf()},hmd=function(Y){var b=document.body,w=!1,V=function(){w||(w=!0,Iks(H,f),setTimeout(function(){b.removeChild(f);
b.removeChild(H)},150))},H=kCQ(Y,getComputedStyle(b).direction==="rtl",V),f=lks(V);
Iks(H,f);b.appendChild(f);b.appendChild(H);window.requestAnimationFrame(function(){f.style.opacity="1";H.style.opacity="1";H.style.transform="translate(-50%, -50%) scale(1)";H.children[0].focus()})},kCQ=function(Y,b,w){var V=document.createElement("div");
V.style.position="fixed";V.style.alignItems="center";V.style.backgroundColor=Y?"rgb(32, 33, 36)":"white";V.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";V.style.display="flex";V.style.flexDirection="column";V.style.justifyContent="center";V.style.left="50%";V.style.top="50%";V.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";V.style.zIndex="2002";document.body.clientWidth>=660?(V.style.borderRadius="8px",V.style.minHeight="220px",
V.style.maxHeight="90%",V.style.maxWidth="90%",V.style.minWidth="540px"):(V.style.height="100%",V.style.width="100%");V.setAttribute("aria-label","Error");V.setAttribute("aria-modal","true");V.setAttribute("role","alertdialog");V.addEventListener("keydown",function(f){f.key==="Escape"&&w()});
b=xct(Y,b,w);V.appendChild(qZg(b));V.appendChild(b);var H=document.createElement("img");H.src=Y?"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey200-36dp/2x/gm_alert_gm_grey200_36dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/alert/v11/gm_grey600-36dp/2x/gm_alert_gm_grey600_36dp.png";H.style.height="72px";H.style.width="72px";H.style.color="#9aa0a6";H.setAttribute("alt","");V.appendChild(H);H=document.createElement("h1");H.textContent="Something went wrong.  Try again.";
H.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";H.style.lineHeight="24px";H.style.fontSize="16px";H.style.textAlign="center";H.style.letterSpacing="0.1px";H.style.color=Y?"rgb(232,234,237)":"#3c4043";V.appendChild(H);V.appendChild(qZg(b));return V},xct=function(Y,b,w){var V=document.createElement("button");
V.style.backgroundColor="transparent";V.style.border="none";V.style.borderRadius="50%";V.style.cursor="pointer";V.style.outline="none";V.style.padding="12px";V.setAttribute("aria-label","Close dialog");V.style.position="absolute";V.style.top="0";b?V.style.right="0":V.style.left="0";V.addEventListener("focus",function(){V.style.backgroundColor=Y?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
V.addEventListener("blur",function(){V.style.backgroundColor="transparent"});
V.addEventListener("mouseenter",function(){V.style.backgroundColor=Y?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
V.addEventListener("mouseleave",function(){V.style.backgroundColor="transparent"});
V.addEventListener("click",w);V.addEventListener("keydown",function(H){H.key!=="Enter"&&H.key!=="Space"||w()});
b=document.createElement("img");b.src=Y?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";b.style.display="block";b.style.height="24px";b.style.width="24px";b.setAttribute("alt","");V.appendChild(b);return V},qZg=function(Y){var b=document.createElement("div");
b.setAttribute("tabindex","0");b.setAttribute("aria-hidden","true");b.addEventListener("focus",function(){return void Y.focus()});
return b},lks=function(Y){var b=document.createElement("div");
b.style.backgroundColor="rgba(32,33,36,0.6)";b.style.bottom="0";b.style.left="0";b.style.position="fixed";b.style.right="0";b.style.top="0";b.style.transition=" opacity 150 ms linear";b.style.zIndex="2001";b.addEventListener("click",Y);return b},Iks=function(Y,b){b.style.opacity="0";
Y.style.opacity="0";Y.style.transform="translate(-50%, -50%) scale(0.8)"},sdO=function(Y,b){Y.sandbox&&Y.sandbox.add&&(Y.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),Y.sandbox.add("allow-downloads"));
Y.src=b},Ql=function(Y){Qdd.call(this,Y)},vc=function(Y,b){b=b===void 0?!1:b;
this.parsedImageUrl_=null;Y instanceof vDA||(PpA==void 0&&(PpA=new ZSt),Y=PpA.parse(Y.toString(),b));Y=this.parsedImageUrl_=Y;Y.JSC$17380_parsedOptions_==void 0&&((b=Y.getOptions())||(b=""),Y.JSC$17380_parsedOptions_=(new BSA).parse(b));Qdd.call(this,Y.JSC$17380_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;Y=this.parsedImageUrl_;b=Y.uri_.JSC$8068_port_;this.JSC$17382_domain_=Y.uri_.JSC$8068_domain_+(b?":"+b:"");this.JSC$17382_query_=this.parsedImageUrl_.uri_.JSC$8068_queryData_.toString()},
nDN=function(Y){this.mode=4;
this.data=Y;this.parsedData=[];Y=0;for(var b=this.data.length;Y<b;Y++){var w=[],V=this.data.charCodeAt(Y);V>65536?(w[0]=240|(V&1835008)>>>18,w[1]=128|(V&258048)>>>12,w[2]=128|(V&4032)>>>6,w[3]=128|V&63):V>2048?(w[0]=224|(V&61440)>>>12,w[1]=128|(V&4032)>>>6,w[2]=128|V&63):V>128?(w[0]=192|(V&1984)>>>6,w[1]=128|V&63):w[0]=V;this.parsedData.push(w)}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))},MMt=function(Y){this.typeNumber=0;
this.errorCorrectLevel=Y===void 0?2:Y;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Pc=function(Y,b){if(Y.length==void 0)throw Error("uk`"+Y.length+"`"+b);
for(var w=0;w<Y.length&&Y[w]==0;)w++;this.num=Array(Y.length-w+b);for(b=0;b<Y.length-w;b++)this.num[b]=Y[b+w]},emd=function(Y,b){this.totalCount=Y;
this.dataCount=b},p6R=function(){this.buffer=[];
this.length=0},OSX=function(){var Y=!1;
if(_.Drg()){Y=_.kb();var b="";_.Itr()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(Y=b.exec(Y))?Y[1]:"0.0"):_.dB()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(Y=b.exec(Y))&&Y[1].replace(/_/g,".")):_.obI()?(b=/Mac OS X ([0-9_.]+)/,b=(Y=b.exec(Y))?Y[1].replace(/_/g,"."):"10"):_.Xu(_.kb(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(Y=b.exec(Y))&&Y[1]):_.Drg()?(b=/Android\s+([^\);]+)(\)|;)/,b=(Y=b.exec(Y))&&Y[1]):_.kKI()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(Y=b.exec(Y))&&Y[1]);Y=b||""}return Y},SZX=function(Y,
b){this.JSC$17405__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(b)for(var w in b)this.JSC$17405__htOption[w]=b[w];this.JSC$17405__htOption.useSVG&&(tMb=RmN);this.JSC$17405__android=OSX();this.JSC$17405__el=Y;this._oQRCode=null;this._oDrawing=new tMb(this.JSC$17405__el,this.JSC$17405__htOption);this.JSC$17405__htOption.text&&(Y=this.JSC$17405__htOption.text,this._oQRCode=new MMt(this.JSC$17405__htOption.correctLevel),dcg(this._oQRCode,Y),b=this._oQRCode,FHX(b,!1,LHt(b)),this.JSC$17405__el.title=
Y,this._oDrawing.draw(this._oQRCode),this.makeImage())},akt=function(Y,b,w,V,H){Y.save();
var f=new Path2D;f.roundRect(b,w,V*7,V*7,V*2);f.roundRect(b+V,w+V,V*5,V*5,V*1.3);f.roundRect(b+2*V,w+2*V,V*3,V*3,V);Y.clip(f,"evenodd");Y.fillStyle=H;Y.fillRect(0,0,Y.canvas.width,Y.canvas.height);Y.restore()},ZB=function(Y,b){if(typeof Y!=="function")throw Error("xk");
return _.wB.setTimeout(function(){Y()},b)},Bc=function(){},zmt=function(Y,b,w,V,H){(new Bc).debug("TestLoadImageWithRetries: "+H);
if(V==0)w(!1);else{var f=H||0;V--;rQX(Y,b,function(E){E?w(!0):_.wB.setTimeout(function(){zmt(Y,b,w,V,f)},f)})}},rQX=function(Y,b,w){var V=new Bc;
V.debug("TestLoadImage: loading "+Y);var H=new Image;H.onload=function(){try{V.debug("TestLoadImage: loaded"),WHd(H),w(!0)}catch(f){}};
H.onerror=function(){try{V.debug("TestLoadImage: error"),WHd(H),w(!1)}catch(f){}};
H.onabort=function(){try{V.debug("TestLoadImage: abort"),WHd(H),w(!1)}catch(f){}};
H.ontimeout=function(){try{V.debug("TestLoadImage: timeout"),WHd(H),w(!1)}catch(f){}};
_.wB.setTimeout(function(){if(H.ontimeout)H.ontimeout()},b);
H.src=Y},WHd=function(Y){Y.onload=null;
Y.onerror=null;Y.onabort=null;Y.ontimeout=null},KHd=function(){this.front_=[];
this.back_=[]},iSO=function(Y,b){_.BE.call(this);
this.delay_=new _.Mf(this.JSC$17531_onTick_,0,this);_.os(this,this.delay_);this.JSC$17529_interval_=5E3;this.nextTickTime_=0;if(typeof Y==="function")b&&(Y=(0,_.nC)(Y,b));else if(Y&&typeof Y.handleEvent==="function")Y=(0,_.nC)(Y.handleEvent,Y);else throw Error("Da");this.JSC$17531_listener_=Y},nF=function(Y,b,w,V,H,f,E,U,X,I,k,l,x,Q){w=w===void 0?!1:w;
V=V===void 0?function(){return""}:V;
H=H===void 0?!1:H;f=f===void 0?!1:f;E=E===void 0?!1:E;U=U===void 0?function(){return _.k7({})}:U;
X=X===void 0?!1:X;k=k===void 0?!1:k;l=l===void 0?!1:l;x=x===void 0?!1:x;Q=Q===void 0?!1:Q;this.JSC$17532_pathPrefix_=Y;this.defaultQueryParams_=b;this.pubsub_=new _.xu;this.reconnectTimer_=new iSO(this.safeReconnect_,this);this.JSC$17532_channel_=null;this.JSC$17532_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17532_pendingMessages_=[];this.enableAsyncTest_=w;this.JSC$17532_getXsrfToken_=V;this.useAsyncBrowserChannelHandler_=f;this.getAuthorizationHeader_=
U;this.getAuthorizationHeaderSync_=I;this.enableCachedUpdateAuthorizationHeader_=E;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.k7();this.enableLoungeTokenRefresh_=H;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=X;this.disableMdxAuthForNonPlaybackMessages_=k;this.disableMdxAuthForAdMessages_=l;this.enableMdxAuthForConnectionOnly_=x;this.disableMdxAuthForShortsMessages_=Q;this.JSC$17532_channelOpenedCounter=new AQO;this.JSC$17532_channelClosedCounter=new CpR;this.channelMessageSentCounter=
new yQA;this.JSC$17532_channelMessageReceivedCounter=new $cQ;this.JSC$17532_channelErrorCounter=new jdQ;this.pendingMapsOnClosedCounter=new GCs;this.undeliveredMapsOnClosedCounter=new TSX},MW=function(Y){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;Y=Y||document.location.href;var b=Number(_.u1(Y)[4]||null)||"";b&&(this.port=":"+b);this.domain=_.Yu(Y)||"";Y=_.kb();Y.search("MSIE")>=0&&_.I6(Y.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},eD=function(Y){Y=Y||{};
this.name=Y.name||"";this.id=Y.id||Y.screenId||"";this.token=Y.token||Y.loungeToken||"";this.uuid=Y.uuid||Y.dialId||"";this.idType=Y.screenIdType||"normal"},JQA=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Y){var b=Math.random()*16|0;
return(Y=="x"?b:b&3|8).toString(16)})},uyF=function(Y){return _.MD(Y,function(b){return{key:b.id,
name:b.name}})},YDI=function(Y,b){return _.SL(Y,function(w){return w||b?!w!=!b?!1:w.id==b.id:!0})},OE=function(Y,b){return _.SL(Y,function(w){return pF(w,b)})},gLI=function(){var Y=bMt(),b=w1d();
if(VSb()){var w=Y,V=_.s6b(w,b);V<0&&_.qMq(w,-(V+1),0,b)}Y=HMg(Y);if(Y.length==0)try{_.ELu("remote_sid")}catch(H){}else try{_.Qh("remote_sid",Y.join(","),-1)}catch(H){}},bMt=function(){var Y=_.l4("yt-remote-connected-devices")||[];
Y.sort(_.H9);return Y},HMg=function(Y){if(Y.length==0)return[];
var b=Y[0].indexOf("#"),w=b==-1?Y[0]:Y[0].substring(0,b);return _.MD(Y,function(V,H){return H==0?V:V.substring(w.length)})},fmQ=function(Y){_.kc("yt-remote-connected-devices",Y,86400)},w1d=function(){if(NOs)return NOs;
var Y=_.l4("yt-remote-device-id");Y||(Y=JQA(),_.kc("yt-remote-device-id",Y,31536E3));for(var b=bMt(),w=1,V=Y;_.Ka(b,V);)w++,V=Y+"#"+w;return NOs=V},ELb=function(){return _.l4("yt-remote-session-browser-channel")},VSb=function(){return _.l4("yt-remote-session-screen-id")},X1F=function(Y){Y.length>5&&(Y=Y.slice(Y.length-5));
var b=_.MD(cwI(),function(V){return V.loungeToken}),w=_.MD(Y,function(V){return V.loungeToken});
_.uGK(w,function(V){return!_.Ka(b,V)})&&U4Q();
_.kc("yt-remote-local-screens",Y,31536E3)},cwI=function(){return _.l4("yt-remote-local-screens")||[]},U4Q=function(){_.kc("yt-remote-lounge-token-expiration",!0,86400)},tg=function(Y){Y||(_.hW("yt-remote-session-screen-id"),_.hW("yt-remote-session-video-id"));
gLI();Y=bMt();_.$b(Y,w1d());fmQ(Y)},m4I=function(){D4O();
return Rr?!!Rr.get("yt-remote-use-staging-server"):!1},D4O=function(){if(!Rr){var Y=_.lmL();
Y&&(Rr=new _.nH(Y))}},lmX=function(Y,b,w,V,H){w=w===void 0?function(){return""}:w;
var f=function(){return new nF(d3(Y,"/bc"),b,!1,w,V)};
return _.q("enable_mdx_web_channel_desktop")?new oL7(function(){return new ImF(d3(Y,"/wc"),b,w)}):new kGb(f,H)},s3g=function(){var Y=hgd;
x4N();FU.push(Y);qDd()},LF=function(Y,b){x4N();
var w=Q3A(Y,String(b));FU.length==0?vLd(w):(qDd(),_.$2(FU,function(V){V(w)}))},SD=function(Y){LF("CP",Y)},x4N=function(){FU||(FU=_.Aq("yt.mdx.remote.debug.handlers_")||[],_.wG("yt.mdx.remote.debug.handlers_",FU))},vLd=function(Y){var b=(ar+1)%50;
ar=b;Pob[b]=Y;ZMN||(ZMN=b==49)},qDd=function(){var Y=FU;
if(Pob[0]){var b=ZMN?ar:-1,w={};do w={record$jscomp$13:void 0},b=(b+1)%50,w.record$jscomp$13=Pob[b],_.$2(Y,function(V){return function(H){H(V.record$jscomp$13)}}(w));
while(b!=ar);Pob=Array(50);ar=-1;ZMN=!1}},Q3A=function(Y,b){var w=(Date.now()-BOt)/1E3;
w.toFixed&&(w=w.toFixed(3));var V=[];V.push("[",w+"s","] ");V.push("[","yt.mdx.remote","] ");V.push(Y+": "+b,"\n");return V.join("")},r3=function(Y){_.G$.call(this);
this.JSC$17556_logName_=Y;this.screens=[]},Wc=function(Y){r3.call(this,"LocalScreenService");
this.JSC$17563_http_=Y;this.loungeTokenRefreshTimer_=NaN;zo(this);this.info("Initializing with "+nLO(this.screens))},KF=function(Y,b){b=b===void 0?!1:b;
r3.call(this,"ScreenService");this.JSC$17569_http_=Y;this.disableAutomaticScreenCache_=b;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};MSR(this)},iU=function(Y,b,w){_.G$.call(this);
this.JSC$17573_logName_=w;this.JSC$17573_screenService_=Y;this.receiver_=b;this.screen_=null},iMQ=function(Y,b,w){w.disableCastApi?Ag("Cannot initialize because disabled by Mdx config."):egA()?p1F(Y,w)&&(OMN(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?tSs(b):(window.__onGCastApiAvailable=function(V,H){V?tSs(b):(CF("Failed to load cast API: "+H),RgX(!1),OMN(!1),_.hW("yt-remote-cast-available"),_.hW("yt-remote-cast-receiver"),d4b(),b(!1))},w.loadCastApiSetupScript?_.io("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?FK7()>=60&&LKX():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?SDd():FK7()>=89?amt():(rw7(),zgs(WKX.map(KKg))))):Ag("Cannot initialize because not running Chrome")},d4b=function(){Ag("dispose");
var Y=yl();Y&&Y.dispose();_.wG("yt.mdx.remote.cloudview.instance_",null);AwX(!1);_.Ggq(CoO);CoO.length=0},ywd=function(){return!!_.l4("yt-remote-cast-installed")},$4F=function(){var Y=_.l4("yt-remote-cast-receiver");
return Y?Y.friendlyName:null},j3t=function(){Ag("clearCurrentReceiver");
_.hW("yt-remote-cast-receiver")},GGQ=function(){return ywd()?yl()?yl().getCastSession():(CF("getCastSelector: Cast is not initialized."),null):(CF("getCastSelector: Cast API is not installed!"),null)},JwF=function(Y,b){TOX()?yl().setConnectedScreenStatus(Y,b):CF("setConnectedScreenStatus called before ready.")},egA=function(){var Y=_.kb().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.s0||Y},p1F=function(Y,b){var w=!1;
yl()||(Y=new $6(Y,b),Y.subscribe("yt-remote-cast2-availability-change",function(V){_.kc("yt-remote-cast-available",V);w3("yt-remote-cast2-availability-change",V)}),Y.subscribe("yt-remote-cast2-receiver-selected",function(V){Ag("onReceiverSelected: "+V.friendlyName);
_.kc("yt-remote-cast-receiver",V);w3("yt-remote-cast2-receiver-selected",V)}),Y.subscribe("yt-remote-cast2-receiver-resumed",function(V){Ag("onReceiverResumed: "+V.friendlyName);
_.kc("yt-remote-cast-receiver",V);w3("yt-remote-cast2-receiver-resumed",V)}),Y.subscribe("yt-remote-cast2-session-change",function(V){Ag("onSessionChange: "+uAg(V));
V||_.hW("yt-remote-cast-receiver");w3("yt-remote-cast2-session-change",V)}),_.wG("yt.mdx.remote.cloudview.instance_",Y),w=!0);
Ag("cloudview.createSingleton_: "+w);return w},yl=function(){return _.Aq("yt.mdx.remote.cloudview.instance_")},tSs=function(Y){RgX(!0);
OMN(!1);yl().init(!1,function(b){b?(AwX(!0),_.TrM("yt-remote-cast2-api-ready")):(CF("Failed to initialize cast API."),RgX(!1),_.hW("yt-remote-cast-available"),_.hW("yt-remote-cast-receiver"),d4b());Y(b)})},Ag=function(Y){LF("cloudview",Y)},CF=function(Y){LF("cloudview",Y)},RgX=function(Y){Ag("setCastInstalled_ "+Y);
_.kc("yt-remote-cast-installed",Y)},TOX=function(){return!!_.Aq("yt.mdx.remote.cloudview.apiReady_")},AwX=function(Y){Ag("setApiReady_ "+Y);
_.wG("yt.mdx.remote.cloudview.apiReady_",Y)},OMN=function(Y){_.wG("yt.mdx.remote.cloudview.initializing_",Y)},jD=function(Y){this.index=-1;
this.videoId=this.listId="";this.volume=this.playerState=-1;this.muted=!1;this.audioTrackId=null;this.playerTimeAt_=this.playerTime_=0;this.trackData=null;this.hasNext=this.hasPrevious=!1;this.loadedTime=this.duration_=this.seekableEnd_=this.seekableStart_=0;this.liveIngestionTime_=NaN;this.isLive_=!1;this.reset(Y)},YaX=function(){var Y,b;
return _.c(function(w){if(w.nextAddress==1)return(_.R3K()||_.q("use_new_nwl"))&&_.e3B().isNetworkAvailable()?_.D(w,_.Vn(),2):w.return();if(w.nextAddress!=3)return(Y=w.yieldResult)?_.D(w,ajR(Y),3):w.return();b=w.yieldResult;if(!b.length)return w.return();b.forEach(function(V){var H={timestamp:V.timestamp};V=V.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:V.appShellAssetLoadReport,options:H}:V.clientError?{payloadName:"clientError",payload:V.clientError,options:H}:void 0;V&&
_.RY(V.payloadName,V.payload,V.options)});
b.length===100&&_.Lb.addLowPriorityJob(YaX);_.om(w)})},bzg=function(Y){if(Y.playerResponse){if(Y=Y.playerResponse,Y.messages&&Y.messages.length>0&&(Y=Y.messages.find(function(b){return!(!b||!b.mealbarPromoRenderer)}))&&Y.mealbarPromoRenderer)return Y.mealbarPromoRenderer}else if(Y.response&&(Y=Y.response)&&Y.overlay&&Y.overlay.mealbarPromoRenderer)return Y.overlay.mealbarPromoRenderer},w0t=function(Y){if(Y.response){var b=Y.response;
if(b&&b.overlay&&b.overlay.tooltipRenderer)return b.overlay.tooltipRenderer}if(Y.playerResponse&&(Y=Y.playerResponse,Y.messages&&Y.messages.length>0&&(Y=Y.messages.find(function(w){return!(!w||!w.tooltipRenderer)}))&&Y.tooltipRenderer))return Y.tooltipRenderer},HzO=function(Y){if(!V1X&&(Y=Y||_.zO("ZWIEBACK_PING_URLS"))&&Y.length){V1X=!0;
for(var b=0;b<Y.length;b++)_.yn(Y[b])}},fet=function(Y){if(_.BL.get(_.zO("PLAYER_VARS",{}),"privembed",!1)!="1"){Y&&eBg();
try{g7Q().then(function(){},function(){}),_.m$(fet,18E5)}catch(b){_.K7(b)}}},N57=function(){var Y=_.P0(),b=Y.getFlag(119),w=window.devicePixelRatio>1;
document.body&&_.$5(document.body,"exp-invert-logo")&&(w&&!_.$5(document.body,"inverted-hdpi")?_.bA(document.body,"inverted-hdpi"):!w&&_.$5(document.body,"inverted-hdpi")&&_.u8(document.body,"inverted-hdpi"));b!=w&&(_.Ze(0,119,w),Y.save())},E77=function(Y){return Y.filter(function(b){return"ypcGetCartEndpoint"in b||"ypcFixInstrumentEndpoint"in b})},c17=function(Y){return Y.filter(function(b){return!_.v(b,_.mPd)})},X0g=function(Y){Y=_.N(Y);
for(var b=Y.next(),w={};!b.done;w={setter$jscomp$6:void 0},b=Y.next()){var V=b.value;b=V.params;V=V.service;b&&V&&(w.setter$jscomp$6=U8I[V],w.setter$jscomp$6&&b.forEach(function(H){return function(f){var E=f.key;f=f.value;E&&f&&(0,H.setter$jscomp$6)(E,f)}}(w)))}},m8g=function(Y,b){var w,V,H,f,E,U,X;
_.c(function(I){switch(I.nextAddress){case 1:w=_.dr.getInstance();V=_.l8.instance;H=_.C_.instance;if(!H)return D8s(Y,V,b),I.return();_.ct(I,2);Y.onLoadingCommand&&V.resolveCommand(Y.onLoadingCommand);return _.D(I,w.getCurrentPositionFromGeolocation(),4);case 4:f=I.yieldResult;if(!Y.resolveLocationCommand){I.jumpTo(5);break}E=w.createLocationInfo(f);return _.D(I,_.$_(H,Y.resolveLocationCommand,{locationInfo:E}),6);case 6:U=I.yieldResult;if(!U||"error"in U&&U.error||U.errorMetadata)return D8s(Y,V,b),
I.return();var k;if(U==null?0:(k=U.onResponseReceivedActions)==null?0:k.length){k=_.N(U.onResponseReceivedActions);for(var l=k.next();!l.done;l=k.next())V.resolveCommand(l.value)}(_.v(Y.onSuccessCommand,_.TG)||_.v(Y.onSuccessCommand,_.QU))&&_.Ua(b.hostElement,"yt-navigate",{endpoint:Y.onSuccessCommand,reload:!0});case 5:_.$u(I,0);break;case 2:X=_.mS(I);if(X instanceof GeolocationPositionError&&X.code===GeolocationPositionError.PERMISSION_DENIED)return Y.onDeniedCommand&&V.resolveCommand(Y.onDeniedCommand),
I.return();D8s(Y,V,b);_.om(I)}})},D8s=function(Y,b,w){Y.onFailureCommand&&(b.resolveCommand(Y.onFailureCommand),_.Xx(w.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},IeX=function(Y,b){var w=_.v(Y,_.nvd);
if(w&&b){Y=w.videoIds||[w.videoId];var V;b=(V=_.Ua(b,"yt-lockup-requested",{videoIds:Y}).detail)==null?void 0:V.returnValue;var H;w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?H=b?b:Y.map(function(f){return{videoId:f,navigationEndpoint:w.videoCommand}}):b&&(H=b);
H&&(V=H.map(function(f){var E=Object,U=E.assign;var X=f.navigationEndpoint;if(!_.v(X,_.BH)){var I=_.v(X,_.TG);if(I){if(delete I.index,delete I.playlistId,I=_.v(X==null?void 0:X.commandMetadata,_.g5),I==null?0:I.url){var k=I.url;k=_.H0(k,"list");k=_.H0(k,"index");I.url=k}}else X=void 0}return U.call(E,{},f,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:X})}),o7b(V,w))}},kuQ=function(Y){var b=_.Cp();
if(Y=_.v(Y,_.Muk))Y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&b.clearQueue(),Y.closeMiniplayer&&_.fH().resolve(_.Ck).close(!0)},hwX=function(Y){led(_.Cp(),Y)},x8N=function(Y){var b;
(Y=(b=_.v(Y,_.ZE5))==null?void 0:b.setVideoIds)&&Y.forEach(function(w){_.n19(_.Cp(),w)})},sPs=function(Y){qaX(_.Cp(),Y)},QPd=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(Y){return!1}},v7X=function(){var Y,b;
return(b=(Y=window).matchMedia)==null?void 0:b.call(Y,"(prefers-reduced-motion: reduce)").matches},PnA=function(Y){var b=_.fH().resolve(_.HQ(_.N2));
if(b){var w={beforeTransition:function(){Y.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){Y.style.viewTransitionName=""}};
Go(b,"slide",w);Go(b,"zoom",w)}},ZzF=function(Y,b,w){return{horizontalAlignment:Y.x+w.width/2<b.width/2?"west":"east",
verticalAlignment:Y.y+w.height/2<b.height/2?"north":"south"}},M1t=function(Y,b,w,V,H){H=H===void 0?new _.eq(0,0):H;
return B5d(n7d(Y,b,w,V),H)},n7d=function(Y,b,w,V){return new _.eq(Y==="west"?16:w.width-V.width-16,b==="north"?16:w.height-V.height-16)},ewg=function(Y,b){var w=0;
Y&&(w+=76);b&&(w+=285);return w},p0t=function(Y){var b=["h",
"m","s"],w=_.jL(b);w.reverse();var V={};Y=(Y.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(E){var U=(E.match(/[hms]/)||[""])[0];return U?(V[U]=parseInt(E.match(/\d+/)[0],10),!1):!0});
for(Y.reverse();Y.length&&w.length;){var H=w.shift();H in V||(V[H]=parseInt(Y.shift(),10))}if(Y.length||V.s>59||V.m>59||V.h>9)return null;var f="";b.forEach(function(E){V[E]&&(f+=""+V[E]+E)});
return f||null},OzO=function(Y){Y=Y.data;
return _.m("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.m("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.m(_.Y_,{data:{thumbnails:[{url:Y.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.m("div",{class:"profile-badge-view-model-wiz__content"},_.m("div",{class:"profile-badge-view-model-wiz__badge-description"},Y.badgeDesc),Y.badgeSubtitle?_.m("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},Y.badgeSubtitle):null))},t1X=function(Y){Y=
Y.data;
var b=_.GM("yt-comment-interaction-view-model");_.XMe(b,Y.rendererContext);return _.m("yt-comment-interaction-view-model",{el:b,class:"yt-comment-interaction-view-model-wiz"},_.m("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":Y.onTapA11yLabel,"on:keydown":_.gAr(),tabindex:0},_.m("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.m("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},Y.headerPrefix,' "',Y.videoTitle),_.m("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.m("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.m("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},Y.commentContent),_.m("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.m(_.Y_,{data:{thumbnails:[{url:Y.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},d8O=function(Y){Y=Y.data;
return _.m("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},RwF(Y.avatar),_.m("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},Y.channelName))},LxF=function(Y){Y=Y.data;
var b;return _.m("div",{class:"yt-profile-info-view-model-wiz__activity"},_.m("div",{class:"yt-profile-info-view-model-wiz__header"},_.m("div",{class:"yt-profile-info-view-model-wiz__section-title"},Y.commentsInteractionTitle)),(b=Y.comments)==null?void 0:b.map(function(w){return _.m("div",{class:"yt-profile-info-view-model-wiz__activity"},FxA(w))}))},SaR=function(Y){Y=Y.data;
var b=_.KA({elementsCommand:Y.subscriptionsAccessButtonCommand}),w=_.GM("a");_.WFG(w,_.zT(Y.subscriptionsAccessButtonCommand));var V;return _.m("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.m("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.m("a",{el:w,"on:click":_.Q_(function(H){if(b==null?0:b.onclick)b.onclick(H);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.m("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},Y.sharedSubscriptionsTitle),_.m("div",null,FxA(Y.subscriptionsAccessButton)))),_.m("div",{class:"yt-profile-info-view-model-wiz__subs"},(V=Y.sharedSubscriptions)==null?void 0:V.slice(0,5).map(function(H){return _.m("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",FxA(H))})))},aeb=function(Y){Y=Y.data;
var b;return _.m("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.m("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.m("h2",{class:"yt-profile-info-view-model-wiz__section-title"},Y.sharedSubscriptionsTitle)),_.m("div",{class:"yt-profile-info-view-model-wiz__subs"},(b=Y.sharedSubscriptions)==null?void 0:b.slice(0,5).map(function(w){return _.m("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",FxA(w))})))},r1t=function(Y){Y=Y.data;
return _.m("div",{class:"yt-profile-info-view-model-wiz__activity"},[Y.profileBadgeInfoYtWide,Y.profileBadgeInfoChannelWide].map(function(b){var w,V,H,f,E;return b?_.m(_.Uz,null,_.m("div",{class:"yt-profile-info-view-model-wiz__header"},_.m("div",{class:"yt-profile-info-view-model-wiz__section-title"},b==null?void 0:b.profileSectionTitle),_.m("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.m("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},b==null?void 0:(w=b.commentBadge)==
null?void 0:w.commentDesc),(b==null?0:(V=b.commentBadge)==null?0:V.blackHeartDesc)?_.m("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.m("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.m(_.Y_,{data:{thumbnails:[{url:b==null?void 0:(H=b.commentBadge)==null?void 0:H.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.m("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},b==null?void 0:(f=
b.commentBadge)==null?void 0:f.blackHeartDesc))),_.m("div",{class:"yt-profile-info-view-model-wiz__badge"},b==null?void 0:(E=b.badges)==null?void 0:E.map(function(U){return _.m(OzO,{data:U})}))):null}))},zwR=function(Y){Y=Y.data;
return _.m("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.m(r1t,{data:Y}),Y.comments?_.m(LxF,{data:Y}):null,Y.sharedSubscriptionsTitle?Y.subscriptionsAccessButtonCommand?_.m(SaR,{data:Y}):_.m(aeb,{data:Y}):null)},KxX=function(Y){var b=Y.data;
Y=b?Wxb(b.profileIdentityInfo):void 0;b=b?Wxb(b.profileInfo):void 0;return _.m("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},Y,b)},izd=function(Y,b){var w=_.Ei9(b,{},Y,!0);
return new Promise(function(V,H){w.listenOnce("n",function(){H(Error("il`"+w.JSC$25950_getErrorDescription()))});
w.listenOnce("l",function(){var f=w.getResponseCode();if(f!==200)H(Error("jl`"+b+"`"+Y.type+"`"+Y.size+"`"+f));else try{V(JSON.parse(w.getResponseText()).encryptedBlobId)}catch(E){H(E)}});
w.run()})},A1A=function(Y){return Y.substring(Y.indexOf(":")+1,Y.indexOf(";"))},CnF=function(Y){return new Promise(function(b,w){var V=new FileReader;
V.onloadend=function(){try{var H=new Uint8Array(V.result);H.length<8&&w(void 0);var f=H.subarray(0,8);H="";for(var E=0;E<f.length;E++)H+=("0"+f[E].toString(16)).substr(-2);H.startsWith("ffd8ff")?b("image/jpeg"):H.startsWith("47494638")?b("image/gif"):H.startsWith("89504e470d0a1a0a")?b("image/png"):H.startsWith("424d")?b("image/bmp"):b(void 0)}catch(U){w(U)}};
V.onerror=w;V.readAsArrayBuffer(Y)})},y1b=function(Y){return new Promise(function(b,w){var V=new Image;
V.crossOrigin="anonymous";V.onload=function(){var H=document.createElement("canvas");H.width=V.naturalWidth;H.height=V.naturalHeight;var f=H.getContext("2d");if(!f)throw Error("kl");f.drawImage(V,0,0);f=A1A(Y);H.toBlob(function(E){E?b(E):w()},f)};
V.src=Y})},jP7=function(Y,b){var w;
if(((w=_.v(Y,_.BH))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var V;_.Ua((V=b.hostElement)!=null?V:b,"yt-shorts-reset");_.OeQ(_.fH().resolve(_.P5),Y).then(function(f){$8Q(f,b,Y)})}else{var H;
_.oP((H=b.hostElement)!=null?H:b,[Y]).then(function(f){f&&$8Q(f.data,b,Y)})}},$8Q=function(Y,b,w){if(Y){var V=_.v(Y.replacementEndpoint,_.BH);
if(V){Y.sequenceContinuation&&(V.sequenceParams=Y.sequenceContinuation);var H;_.Ua((H=b.hostElement)!=null?H:b,"yt-navigate",{endpoint:Y.replacementEndpoint})}else if((Y==null?void 0:Y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(Y==null?0:Y.watchStatus)&&_.v(Y.watchStatus,_.cSd)){var f;_.Ua((f=b.hostElement)!=null?f:b,"yt-navigate",{endpoint:w})}}},GuI=function(Y){var b=_.fH().resolve(_.i4),w=EP7(b.getState())||"";
b=_.$Be(b.getState())||"";w=w==="ytd-browse"&&b==="home";return _.q("web_guide_entry_enable_cache_for_non_home_pages")?(Y=(Y==null?void 0:Y.navigationEndpoint)&&_.xy(Y.navigationEndpoint)==="home",{disableCache:w&&Y}):{disableCache:w}},T5N=function(Y){if(!Y)return!1;
try{if(Y.host&&Y.host.tagName==="YT-FORMATTED-STRING"&&Y.host.id==="contenteditable-textarea"||Y.nodeType===Node.ELEMENT_NODE&&Y.tagName==="YTD-COMMENT-INPUT")return!0}catch(b){return!1}return T5N(Y.parentNode)},To=function(Y){return Y?Y.tagName==="A"&&Y.href&&Y.classList.contains("yt-simple-endpoint"):!1},J1I=function(Y){return Y?Y.tagName==="IMG"&&Y.classList.contains("emoji"):!1},ux7=function(Y,b,w){if(!Y)return null;
var V=To(Y);if(V&&w)return b=Y.pathname.substring(Y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(V&&!w)return document.createTextNode("");if(J1I(Y))return w=Y.alt,Y=Y.dataset.emojiId,!Y&&b&&(b=_.PT(b,w))&&b.isCustomEmoji&&(Y=b.emojiId),Y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+Y+">"):document.createTextNode(w);V=Y.cloneNode(!1);for(var H=0;H<Y.childNodes.length;++H){var f=ux7(Y.childNodes[H],b,w);f&&V.appendChild(f)}return V},Jg=function(Y){return Y?To(Y)?Y:Jg(Y.lastChild):
null},YfO=function(Y){return Y?To(Y)?Y:YfO(Y.firstChild):null},b8t=function(Y){if(!Y)return null;
for(var b=Y.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=Jg(b))?Y=b:Y=(Y=Y.parentNode)?Jg(Y.previousElementSibling):null;return Y},w$t=function(Y){if(!Y)return null;
for(var b=Y.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=YfO(b))?b:w$t(Y.parentNode)},VlX=function(Y){var b=_.BT(),w=b.JSC$9293_getStartNode();
if(!T5N(w.parentNode))return null;b=b.JSC$9293_getStartOffset();if(w.nodeType===Node.TEXT_NODE){var V=_.FE(w,To);if(V){if(Y&&b===0||!Y&&b===w.length)return V}else{if(Y&&b===w.length)return!w||w.nodeName==="BR"||w.nextElementSibling&&_.nx(w.nextElementSibling,"display")==="block"?null:YfO(w.nextElementSibling);if(!Y&&b===0)return w?Jg(w.previousElementSibling):null}}if(w.nodeType===Node.ELEMENT_NODE)if(Y){if(0<=b&&b<w.childNodes.length)return YfO(w.childNodes[b])}else if(0<b&&b<=w.childNodes.length)return Jg(w.childNodes[b-
1]);return null},H8t=function(Y,b,w){if(!Y)return null;
if(Y.nodeType===Node.TEXT_NODE)if(w){var V=b8t(Y);if(V&&!/^\s+\S/.test(Y.wholeText.substr(0,b)))return V}else if((V=w$t(Y))&&!/\S\s+/.test(Y.wholeText.substr(b,Y.wholeText.length)))return V;return Y.nodeType===Node.ELEMENT_NODE?w?b8t(Y.childNodes[b]):w$t(Y.childNodes[b]):H8t(Y.parentNode,b,w)},gtN=function(Y){if(Y.hasChildNodes())switch(Y.tagName){case "DIV":case "A":case "SPAN":var b="";
for(Y=Y.firstChild;Y;Y=Y.nextSibling)b+=gtN(Y);return b;default:return""}else switch(Y.nodeType){case 3:return Y.textContent;default:return""}},f7Q=function(Y){Y=Y.data;
return _.m("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.m("div",null,_.m(_.wv,{text:Y.title})),Y.subtitle?_.m("div",{class:"ytd-menu-title-renderer__subtitle"},_.m(_.wv,{text:Y.subtitle})):null)},Nbt=function(Y){switch(Y){case "UNKNOWN_FORMAT_TYPE":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN";
case "HD_1080":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080";case "SD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD";case "LD":return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD";default:return"SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD"}},EtN=function(Y){return Y.map(function(b){return{settingsRadioOptionRenderer:{title:_.c$(b.name),
asideText:_.c$(b.approximateSize),id:Nbt(b.format)}}})},UV7=function(Y){if(Y&&Y.length!==0)return Y.filter(crb()).map(function(b){return{settingsRadioOptionRenderer:{title:b.name,
asideText:b.approximateSize,id:Nbt(b.formatType)}}})},uU=function(Y){if(Y)return Y.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},X$s=function(Y,b){Y=new Set(Y!=null?Y:[]);
if(Y.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(Y.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(Y.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(Y.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(Y.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(b)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},DVF=function(Y){var b=Y.indexOf("(");
return b!==-1?Y.substring(b+1,Y.length-1):Y},mVd=function(Y){switch(Y){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},I7s=function(Y,b,w,V,H,f){var E=_.BL.clone(otg);
E.locale=_.zO("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;E.report={description:H||"<empty>"};H=_.zO("SBOX_SETTINGS",{});b=b.join(",");var U=Date.now();Y={choice_cc:V,choice_id_cc:w,choices_sc:b,gl:H.REQUEST_DOMAIN,hl:H.REQUEST_LANGUAGE,query:Y,time:U};f&&(Y.choice_additional_comment_cc=f);_.oiC(E,Y)},kxb=function(Y){var b=new Map;
b.set("authuser",_.zO("SESSION_INDEX","0"));return _.gF(Y,b)},hMF=function(Y){var b;
return _.c(function(w){switch(w.nextAddress){case 1:if(!Y||!l7t(Y))return w.return(null);b=null;switch(_.zO("INNERTUBE_CLIENT_NAME")){case "WEB":return w.jumpTo(2);case "WEB_REMIX":b=Y.getPlayer()}w.jumpTo(3);break;case 2:return _.D(w,Y.getPlayerPromise(),4);case 4:b=w.yieldResult;w.jumpTo(3);break;case 3:return w.return(b)}})},l7t=function(Y){return["ytd-player",
"ytmusic-player"].includes(String(Y.tagName||"").toLowerCase())},xVO=function(Y){Y=Math.round(Y);
return Y%2?Y-1:Y},qfd=function(Y){Y=Math.round(Y);
return Y%2===0?Y-1:Y},s8t=function(Y){var b,w,V;
if(Y=(b=Y.createPlaylistDialogFormSchema)==null?void 0:(w=b.fieldSchemas)==null?void 0:(V=w.title)==null?void 0:V.validationSchema)for(b=[Y.syncStep,Y.asyncStep].filter(function(H){return H!==void 0}),b=_.N(b),w=b.next();!w.done;w=b.next()){w=w.value.rules;
if(!w)break;w=_.N(w);for(w=w.next();!w.done;w=w.next())return _.v(w.value,_.ZlO)}},vt7=function(Y){var b,w,V;
if(Y=(b=Y.createPlaylistDialogFormSchema)==null?void 0:(w=b.fieldSchemas)==null?void 0:(V=w.visibility)==null?void 0:V.validationSchema)for(b=[Y.syncStep,Y.asyncStep].filter(function(H){return H!==void 0}),b=_.N(b),w=b.next();!w.done;w=b.next()){w=w.value.rules;
if(!w)break;w=_.N(w);for(V=w.next();!V.done;V=w.next())if(V=_.v(V.value,Q8Q))return b=void 0,(b=V.translations)==null?void 0:b.visibilityNotValidErrorMessage}},P3A=function(){var Y,b;
return(b=(Y=_.fH().resolve(_.HQ(_.GT)))==null?void 0:Y())!=null?b:!1},Z8A=function(Y){var b=21;
if(!Y)return b;b+=Y.headerTitle?27:0;b+=Y.headerTitle&&Y.hasHeaderActionHeader?4:0;return b+=Y.headerTitle&&Y.headerSubtitle?16:0},Bbb=function(Y){var b=0;
if(!Y)return b;b+=Y.hasFooterPrimaryButton||Y.hasFooterSecondaryButton?48:0;b+=Y.footerTrailingLabel||Y.footerLeadingLabel?30:0;return b+=Y.hasFooterPrimaryButton||Y.hasFooterSecondaryButton||!Y.footerTrailingLabel&&!Y.footerLeadingLabel?0:12},nts=function(Y){var b=new _.xu,w=Y;
return{subscribe:function(V){b.subscribe("changed",V)},
dispatch:function(V,H){var f=w;V==="Touch Start"?w=Object.assign({},f,{isAnimating:!1,initialY:H.event.touches[0].clientY}):V==="Touch Move"?(V=Math.min(H.fullContentWrapperHeight,H.contentHeightMap[H.contentWrapperId]+Z8A(H.header)-Bbb(H.footer)),w=Object.assign({},f,{currentY:Math.max(H.contentScrollable?-1*(f.initialY-24):0,H.event.touches[0].clientY-f.initialY),maxHeightForContentWrapper:Math.min(V,Math.max(0,(f.isFullScreen?V:H.contentWrapperHeight)-f.currentY))})):w=V==="Snap To Full Screen"?
Object.assign({},f,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:H.maxHeight}):V==="Snap To Neutral Position"?Object.assign({},f,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:H.maxHeight}):V==="Close Sheet"?Object.assign({},f,{isAnimating:!0,currentY:H.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:H.maxHeight}):f;b.publish("changed",w)}}},Mlb=function(Y){return _.Q_(function(b){Y(b);
return!1})},eMt=function(){_.fH().resolve(_.BR).closeSheet()},p$X=function(Y){var b,w,V,H,f,E,U,X,I,k,l;
return{headerTitle:(b=Y.headerTitle)==null?void 0:b.call(Y),headerSubtitle:(w=Y.headerSubtitle)==null?void 0:w.call(Y),headerActionHeader:Y.headerActionHeader,footerPrimaryButton:Y.footerPrimaryButton,footerSecondaryButton:Y.footerSecondaryButton,footerButtonType:(V=Y.footerButtonType)==null?void 0:V.call(Y),footerLeadingLabel:(H=Y.footerLeadingLabel)==null?void 0:H.call(Y),footerTrailingLabel:(f=Y.footerTrailingLabel)==null?void 0:f.call(Y),shouldShowIcons:(E=Y.shouldShowIcons)==null?void 0:E.call(Y),
skipContentClick:(U=Y.skipContentClick)==null?void 0:U.call(Y),additionalClassName:(X=Y.additionalClassName)==null?void 0:X.call(Y),onClosedCallback:Y.onClosedCallback,focusOnClose:(I=Y.focusOnClose)==null?void 0:I.call(Y),isDisabled:(k=Y.isDisabled)==null?void 0:k.call(Y),disabledCommand:(l=Y.disabledCommand)==null?void 0:l.call(Y),headerFn:Y.headerFn,contentFn:Y.contentFn,footerFn:Y.footerFn,hasHeaderFn:Y.hasHeaderFn(),hasContentFn:Y.hasContentFn(),hasFooterFn:Y.hasFooterFn(),hasFooterPrimaryButton:Y.hasFooterPrimaryButton(),
hasFooterSecondaryButton:Y.hasFooterSecondaryButton(),hasHeaderActionHeader:Y.hasHeaderActionHeader()}},O8R=function(Y){switch(Y){case "FLEXBOX_FLEX_DIRECTION_ROW":return"row";
case "FLEXBOX_FLEX_DIRECTION_ROW_REVERSE":return"row-reverse";case "FLEXBOX_FLEX_DIRECTION_COLUMN":return"column";case "FLEXBOX_FLEX_DIRECTION_COLUMN_REVERSE":return"column-reverse";default:return""}},tlA=function(Y){switch(Y){case "FLEXBOX_JUSTIFY_CONTENT_CENTER":return"center";
case "FLEXBOX_JUSTIFY_CONTENT_BETWEEN":return"space-between";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_START":return"flex-start";case "FLEXBOX_JUSTIFY_CONTENT_FLEX_END":return"flex-end";case "FLEXBOX_JUSTIFY_CONTENT_SPACE_AROUND":return"space-around";default:return""}},RMt=function(Y){switch(Y){case "FLEXBOX_ALIGN_ITEMS_CENTER":return"center";
case "FLEXBOX_ALIGN_ITEMS_START":return"flex-start";case "FLEXBOX_ALIGN_ITEMS_END":return"flex-end";case "FLEXBOX_ALIGN_ITEMS_STRETCH":return"stretch";default:return""}},dVd=function(Y,b,w){b.forEach(function(V){_.ly(_.fH().resolve(_.eo),V)});
_.Xx(Y,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",w])},a7g=function(Y,b,w,V){var H=_.v(w,_.yQ).commandLifeCycleConfig;
H&&H.onStartCommand&&_.IP(Y,[H.onStartCommand],b);_.TL(b);var f=_.C_.instance;f&&_.y_(f,w)?_.$_(f,w,V).then(function(E){if(!E||(E==null?0:E.error))return E=_.v(w,_.yQ).serializedTransactionFlowLoggingParams,_.J9(b),_.OQ(new Ym("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",E));_.J9(b);return{data:E}}).then(function(E){_.J9(b);
FRF(E.data);var U=E.data.command;U&&_.IP(Y,[U],b);U=LRs(w,E.data);if(!U){var X=E.data;E=!1;if(X&&X.command&&_.v(X.command,_.ln)){var I;X=((I=_.v(X.command,_.ln))==null?void 0:I.commands)||[];for(I=0;I<X.length;I++)if(_.v(X[I],_.GkQ)){E=!0;break}}E||_.dW('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!U&&H&&H.onSuccessCommand?_.IP(Y,[H.onSuccessCommand],b):U&&H&&H.onFailureCommand&&_.IP(Y,[H.onFailureCommand],b)},function(){_.J9(b);
H&&H.onFailureCommand&&_.IP(Y,[H.onFailureCommand],b);SfN(w)}):_.Ft(Error("Bl"),"ERROR")},rrI=function(Y,b,w){var V=[b];
w&&V.push(w);return _.oP(Y,V).then(function(H){var f=_.v(b,_.yQ).serializedTransactionFlowLoggingParams,E=H.data,U=LRs(b,E);U?H=_.OQ(new Ym(U,f)):FRF(E);return H},function(){var H=_.v(b,_.yQ).serializedTransactionFlowLoggingParams;
SfN(b);return _.OQ(new Ym("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",H))})},LRs=function(Y,b){Y=_.v(Y,_.yQ).serializedTransactionFlowLoggingParams;
var w=null;switch(b.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":w="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":w="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":w="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}w?_.Gg(w,Y):YPR(Y);return w},SfN=function(Y){_.Gg("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.v(Y,_.yQ).serializedTransactionFlowLoggingParams)},
FRF=function(Y){if(Y.trackingParams){var b=_.dO(),w=_.R3();
b&&w&&_.yX(b,w,_.nA(Y.trackingParams))}},zMs=function(Y,b,w){var V=_.C_.instance,H=_.f_I(_.zO("YPC_MB_URL")),f=(new _.HmG).init(),E=_.gqg(),U=_.v(w,_.CGj).languageCode;
U===void 0?_.Ft(Error("Fi"),"ERROR"):_.p1([f,H]).then(function(){var X={ctk:payments.business.integration.ClientTokenFactory.createClientToken(U,E)};V&&_.y_(V,w)?_.$_(V,w,X).then(function(I){return{data:I}}).then(function(I){_.Ua(b,"yt-service-request-completed",I);
I.code!=="ERROR"&&(I=I.data.command)&&_.IP(Y,[I],b)}):_.Ft(Error("Bl"),"ERROR")})},i8X=function(Y,b,w,V){var H=_.C_.instance;
H&&_.y_(H,w)?_.$_(H,w,V).then(function(f){return{data:f}}).then(function(f){WRQ(Y,b,w,f)},function(){KR7(w)}):(H=_.fH().resolve(_.HQ(_.LX)))&&H.requestDataForServiceEndpoint(w,V).then(function(f){WRQ(Y,b,w,f)},function(){KR7(w)})},WRQ=function(Y,b,w,V){_.Ua(b,"yt-service-request-completed",V);
if(V.code&&V.code=="ERROR")KR7(w);else{(V=V.data.commands)&&_.IP(Y,V,b);var H;(Y=(H=_.v(w,_.JIj))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&Y&&_.Ol("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",Y)}},KR7=function(Y){var b;
(Y=(b=_.v(Y,_.JIj))==null?void 0:b.serializedYpcPauseFlowLoggingParams)&&Y&&_.Ol("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},yrb=function(Y,b,w){var V=_.C_.instance;
V&&_.y_(V,w)?_.$_(V,w).then(function(H){return{data:H}}).then(function(H){Art(Y,b,w,H)},function(){C3t(w)}):(V=_.fH().resolve(_.HQ(_.LX)))&&V.requestDataForServiceEndpoint(w).then(function(H){Art(Y,b,w,H)},function(){C3t(w)})},Art=function(Y,b,w,V){_.Ua(b,"yt-service-request-completed",V);
V.code&&V.code=="ERROR"?C3t(w):((V=V.data.commands)&&_.IP(Y,V,b),(Y=_.v(w,_.uK_).serializedYpcResumeFlowLoggingParams)&&Y&&_.Ol("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",Y))},C3t=function(Y){(Y=_.v(Y,_.uK_).serializedYpcResumeFlowLoggingParams)&&Y&&_.Ol("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",Y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},$VR=function(Y){Y=Y===void 0?{}:Y;
_.fH().resolve(_.lGt).showFeedbackDialog(Y.customProductData,Y.feedbackContent,Y.onFeedbackSubmitted,Y.bucket)},j8s=function(Y){Y=Y===void 0?{}:Y;
_.fH().resolve(_.lGt).showHelpDialog(Y.helpContext,Y.articleId,Y.productData)},Gxg=function(){j8s()},TbF=function(){$VR()},uZt=function(Y,b,w){var V,H,f,E,U,X,I;
return _.c(function(k){switch(k.nextAddress){case 1:V=_.v(Y,JrX);if((H=V)==null?0:H.productId){X={productId:V.productId,bucket:V.bucket,enableAnonymousFeedback:(U=V.enableAnonymousFeedback)!=null?U:!0,allowNonLoggedInFeedback:!0};I={feedbackChoice:w.feedbackChoice};if(!_.q("web_collect_offline_state")){k.jumpTo(8);break}_.ct(k,9);return _.D(k,UYb(I),11)}E={bucket:(f=V)==null?void 0:f.bucket};if(!_.q("web_collect_offline_state")){k.jumpTo(4);break}E.customProductData={};_.ct(k,5);return _.D(k,UYb(E.customProductData),
7);case 7:_.$u(k,4);break;case 5:_.mS(k);case 4:$VR(E);k.jumpTo(0);break;case 11:_.$u(k,8);break;case 9:_.mS(k);case 8:_.TeK(I),_.G0v("GFEEDBACK",I),V.productId==="5295751"&&(I.client_attestation=Number(_.zO("CATSTAT",0))),V.productId==="5295751"&&(I.client_time=Date.now()/1E3/3600),V.productId==="5295751"&&(I.original_playback_id=_.aaC||""),_.oiC(X,I),_.om(k)}})},YCX=function(Y){if(Y=_.v(Y,_.zcq)){var b={bucket:Y.bucketIdentifier};
Y.additionalDatas&&(b.customProductData={},Y.additionalDatas.forEach(function(w){if(w=w.userFeedbackEndpointProductSpecificValueData)b.customProductData[w.key]=w.value}));
$VR(b)}},bXg=function(Y){var b=_.CB.getInstance();
var w=_.sa("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var V=_.sa("DELETE",void 0,"Delete"),H=_.sa("CANCEL",void 0,"Cancel");w=hBd(w,void 0,V,H,{signal:"DELETE_ALL_DOWNLOADS"});_.a5(b,[{openPopupAction:w}],Y)},VyX=function(){return _.c(function(Y){return Y.nextAddress==1?_.D(Y,_.fH().resolve(_.J$),2):_.D(Y,wH7(),0)})},HXs=function(Y){var b,w;
return _.c(function(V){return V.nextAddress==1?(w=(b=_.v(Y,_.KB))==null?void 0:b.targetId)?_.D(V,_.fH().resolve(_.J$),3):V.jumpTo(0):_.D(V,_.fH().resolve(_.T4).deleteVideo(w),0)})},f87=function(Y){var b,w;
return _.c(function(V){return V.nextAddress==1?(w=(b=_.v(Y,_.KB))==null?void 0:b.targetId)?_.D(V,_.fH().resolve(_.J$),3):V.jumpTo(0):_.D(V,gyA(_.fH().resolve(_.T4),w),0)})},Eys=function(Y){var b,w;
return _.c(function(V){return(w=(b=_.v(Y,_.KB))==null?void 0:b.targetId)?_.D(V,Nrb(w),0):V.jumpTo(0)})},UCg=function(){_.q("kevlar_woffle_refresh_dl_load_killswitch")||cLF()},DCb=function(){_.q("kevlar_woffle")&&_.RA.instance&&XHX()},oyb=function(Y){var b;
if((b=_.v(Y,_.kh))==null||!b.videoId)return!1;mCF(_.fH().resolve(_.T4),_.v(Y,_.kh),Y.clickTrackingParams);return!0},kgt=function(Y){var b;
if((b=_.v(Y,_.lX))==null||!b.playlistId)return!1;I8N(_.fH().resolve(_.T4),_.v(Y,_.lX),Y.clickTrackingParams);return!0},h3N=function(Y){var b=_.v(Y,_.iiC);
(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||l8g(_.fH().resolve(_.T4),_.v(Y,_.iiC))},qCt=function(Y){Y=_.v(Y,_.l4r);
var b;(Y==null?0:(b=Y.actions)==null?0:b.length)&&xCQ(Y)},vyR=function(Y){var b,w;
return _.c(function(V){b=_.v(Y,sAA);return(w=b)!=null&&w.localWatchHistoryCommandType?_.D(V,QAX(b),0):V.return()})},PWA=function(Y){setTimeout(function(){requestAnimationFrame(Y)},80)},ZXb=function(Y){return Object.entries(Y).map(function(b){return b.join(":")}).join(";")},nyX=function(Y){var b,w,V;
_.c(function(H){if(H.nextAddress==1)return _.D(H,Brb(),2);b=H.yieldResult;w=_.l8.instance;switch(b){case "granted":V=Y.getLocationCommand;break;case "denied":V=Y.openDeniedDialogAction;break;case "prompt":V=Y.openCollectionDialogAction;break;default:V=Y.openCollectionDialogAction}V&&w.resolveCommand(V);_.om(H)})},Brb=function(){var Y,b;
return _.c(function(w){if(w.nextAddress==1)return Y="prompt",navigator.permissions?_.D(w,navigator.permissions.query({name:"geolocation"}),3):w.jumpTo(2);w.nextAddress!=2&&(b=w.yieldResult,Y=b.state);return w.return(Y)})},e3t=function(){_.c(function(Y){return _.D(Y,_.MyQ(),0)})},pHt=function(){var Y,b,w;
return _.c(function(V){if(V.nextAddress==1)return Y=_.fH().resolve(_.Sy),Y?_.D(V,_.$_(Y,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Sk(Error("El")),V.return(void 0));if(b=V.yieldResult){if(b.errorMetadata)return _.Sk(Error("Fl`"+b.errorMetadata.status+"`"+b.error)),V.return(void 0);w=b.datasyncIds;_.lor=w.length;return V.return(w)}_.Sk(Error("Gl"));return V.return(void 0)})},OXs=function(){pHt().then(function(Y){Y&&(L$s(Y),wyb(Y),MIQ(Y),DYt(Y))})},tys=function(Y){_.Lb.addLowPriorityJob(function(){var b,
w,V,H,f;
return _.c(function(E){switch(E.nextAddress){case 1:if(_.q("ytidb_clear_optimizations_killswitch")){E.jumpTo(2);break}b=_.PQ("clear");if(b.startsWith("V")&&b.endsWith("||")){var U=[b];L$s(U);wyb(U);MIQ(U);DYt(U);return E.return()}w=enO();V=mYX();return _.D(E,VkX(),3);case 3:return H=E.yieldResult,_.D(E,SJI(),4);case 4:if(f=E.yieldResult,!(w||V||H||f))return E.return();case 2:Y.isNetworkAvailable()?OXs():Y.listenOnce("publicytnetworkstatus-online",OXs),_.om(E)}})})},bT=function(Y){Y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Gx(Y)}}}};_.l8.instance&&_.l8.instance.resolveCommand(Y)},R3t=function(Y){if(Y){var b=_.Qd();
_.mo(b,3854,void 0,{layer:0,parentLayer:4});switch(Y){case 1:var w=238708;break;case 2:w=238715;break;case 3:w=238710;break;case 6:w=238709}w&&(Y=_.sQ(b,{veType:w}))&&_.kV(b,Y)}},dC7=function(Y){if(Y){var b=_.Qd();
_.mo(b,3854,void 0,{layer:0,parentLayer:4});switch(Y){case 1:var w=238714;break;case 2:w=238711;break;case 8:w=238709;break;case 7:w=238713;break;case 3:case 4:case 5:w=238712}w&&(Y=_.sQ(b,{veType:w}))&&_.kV(b,Y)}},FDt=function(Y){switch(Y.latencyType){case 0:_.Lz("consent_primitive_flow");
_.S1("cpit",Y.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.S1("cpist",Y.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.S1("cprtif",Y.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.S1("cprtli",Y.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.S1("cprt",Y.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.S1("cpdt",Y.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.S1("cpjct",Y.timestampEpochMillis,"consent_primitive_flow")}},
CWO=function(Y,b){var w,V,H,f,E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W,y;
return _.c(function(G){switch(G.nextAddress){case 1:_.ct(G,2);(V=(w=_.v(Y,LDI))==null?void 0:w.serializedConsentRequest)||(V=(H=_.v(Y,SCX))==null?void 0:H.serializedConsentRequest);V&&(f=a8s(_.c9(V)));if(f===void 0)return G.return();E=rLX(f);E.latencyCallback=FDt;b&&z3g(E,function(){b.then(function(Nr){Nr.pauseVideo();(new WD7).increment()})});
return((U=_.v(Y,LDI))==null?void 0:U.consentAction)==="CONSENT_ACTION_PREWARM"||((X=_.v(Y,SCX))==null?void 0:X.consentAction)==="CONSENT_ACTION_PREWARM"?_.D(G,KDA(E),5):_.D(G,iXd(E),6);case 6:I=G.yieldResult;k=_.pE(I,wH);if(k===1){if(((l=_.WZ(I,Vq,1,wH))==null?void 0:_.ay(l,1))===1||((x=_.WZ(I,Vq,1,wH))==null?void 0:_.ay(x,1))===2||((Q=_.WZ(I,Vq,1,wH))==null?void 0:_.ay(Q,1))===3)_.v(Y,SCX)?bT(_.sa("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
bT(_.sa("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));R3t((Z=_.WZ(I,Vq,1,wH))==null?void 0:_.ay(Z,1),_.wl(I,AL7,3,_.V9()))}else k===2?(((e=Hr(I))==null?void 0:_.ay(e,1))===5?_.v(Y,SCX)?bT(_.sa("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):bT(_.sa("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((O=Hr(I))==null?void 0:_.ay(O,1))===1||((L=Hr(I))==null?void 0:_.ay(L,1))===4?bT(_.sa("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((r=Hr(I))==null?void 0:_.ay(r,1))===7&&((C=f)==null?void 0:(W=_.EK(C,gH,4))==null?void 0:_.ay(W,4))!==1&&bT(_.sa("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),dC7((y=Hr(I))==null?void 0:_.ay(y,1))):bT(_.sa("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));G.jumpTo(5);break;case 5:_.$u(G,0);break;case 2:_.mS(G),bT(_.sa("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.om(G)}})},$CO=function(){if(!yLA.has("Worker")){yLA.set("Worker",
!0);
var Y={api:"BROWSER_API_WEB_WORKER"};Y.available="Worker"in window?!0:!1;_.RY("apiTest",Y)}},jAd=function(Y){return typeof Y==="undefined"?"-1":String(Math.ceil(Y/1048576))},u2I=function(Y,b){GgR(new TrX(_.v(b,JLX).addToken,_.v(b,JLX).commonToken)).then(function(){_.Ua(Y,"yt-invoke-instrument-manager-action-completed")},function(w){_.Ua(Y,"yt-invoke-instrument-manager-action-error",w)})},Y6s=function(Y){return _.y0(Y)},bVF=function(Y){var b=1;
Y=Y.split(":");for(var w=[];b>0&&Y.length;)w.push(Y.shift()),b--;Y.length&&w.push(Y.join(":"));return w},wXR=function(Y,b){b=Y.aspectRatio()<=b.aspectRatio()?b.width/Y.width:b.height/Y.height;
Y.scale(b)},Vmg=function(Y,b){b=Y.aspectRatio()>b.aspectRatio()?b.width/Y.width:b.height/Y.height;
return Y.scale(b)},HVQ=function(Y){var b=new _.I_;
return _.KE(b,11,Y)},gZt=function(Y){var b={};
Y=Y.getAllResponseHeaders().split("\r\n");for(var w=0;w<Y.length;w++)if(!_.EM(Y[w])){var V=bVF(Y[w]),H=V[0];V=V[1];if(typeof V==="string"){V=V.trim();var f=b[H]||[];b[H]=f;f.push(V)}}return _.BL.map(b,function(E){return E.join(", ")})},ml=function(Y,b){return Y.JSC$7833_xhr_?Y.JSC$7833_xhr_.getResponseHeader(b):null},f5=function(Y,b,w){Array.isArray(w)||(w=[String(w)]);
_.jz9(Y.JSC$8068_queryData_,b,w);return Y},XHX=function(){var Y=_.RA.instance;
_.c(function(b){return Y.deferredInstallPrompt?_.D(b,Y.deferredInstallPrompt.prompt(),0):b.jumpTo(0)})},fTg=function(Y,b,w){if(_.TK(Y))_.$2(Y,b,w);
else for(Y=_.grk(Y);;){var V=Y.next();if(V.done)break;b.call(w,V.value,void 0,Y)}},N_b={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}"]},Vzd,HAg,gO7,fRs,NIN,EOb,cAX,UZ7,XPO,Nrb,gyA,wH7,DZ7,mZt,oOQ,IRA,kTt,I8N,mCF,lR7,hQQ,xZN,cLF,l8g,qQN,xCQ,sRX,QAX,QRR,vOs,P8X,ZAb,Go,BIN,nOR,MzO,eQN,pPN,
OAN,tzg,RQX,dZA,led,o7b,FQt,DN,mM,oF,IF,LQs,SQR,aRd,rAt,zQd,WQA,KQs,iAX,AAd,C8t;N_b={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 EZN=function(Y,b){var w=[];fTg(b,function(V){try{var H=_.ED.prototype.getWrapper.call(this,V,!0)}catch(f){if(f=="Storage: Invalid value was encountered")return;throw f;}H===void 0?w.push(V):_.HbI(H)&&w.push(V)},Y);
return w},cUt=function(Y,b){EZN(Y,b).forEach(function(w){_.ED.prototype.remove.call(this,w)},Y)},Ul7=function(Y){var b=_.jc;
b._minimumZ=Math.max(b._minimumZ,Y)},XXb=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],DlX=function(Y,b){_.ua(Y.nj);Y.nj=b},mlF=function(Y,b,w,V){Y.setState(5);
var H=!!Y.r7L&&XXb.includes(_.Yu(Y.r7L)||"");try{var f=new _.rP({program:b,globalName:w,tN:{disable:!_.q("att_web_record_metrics")||!_.q("att_skip_metrics_for_cookieless_domains_ks")&&H,wC:"aGIf"}});f.uds.then(function(){Y.setState(6);V&&V(b)});
DlX(Y,f)}catch(E){Y.setState(7),E instanceof Error&&_.Sk(E)}},oZb=function(Y,b,w,V,H,f){var E=E===void 0?"trayride":E;
w?(Y.setState(2),_.io(w,function(){if(window[E])mlF(Y,V,E,H);else{Y.setState(3);var U=_.j_L(w),X=document.getElementById(U);X&&(_.u2g(U),X.parentNode.removeChild(X));_.Sk(new _.BQ("BL:ULB",w))}},f)):b?(f=_.xG("SCRIPT"),b instanceof _.ag?_.WN(f,b):f.textContent=b,f.nonce=_.Lu(document),document.head.appendChild(f),document.head.removeChild(f),window[E]?mlF(Y,V,E,H):(Y.setState(4),_.Sk(new _.BQ("BL:ULBJ")))):_.Sk(new _.BQ("BL:ULV"))},ITg=function(){this.state=1;
this.nj=null;this.r7L=void 0};
_.g=ITg.prototype;_.g.initialize=function(Y,b,w,V){this.r7L=V;if(Y.program){var H;V=(H=Y.interpreterUrl)!=null?H:null;if(Y.interpreterSafeScript)H=_.s8B(Y.interpreterSafeScript);else{var f;H=(f=Y.interpreterScript)!=null?f:null}Y.interpreterSafeUrl&&(V=_.SI(Y.interpreterSafeUrl).toString());oZb(this,H,V,Y.program,b,w)}else _.Sk(Error("mf"))};
_.g.isInitialized=function(){return!!this.nj};
_.g.getState=function(){return this.state};
_.g.isLoading=function(){return this.state===2};
_.g.invoke=function(Y){Y=Y===void 0?{}:Y;var b;this.nj?b=_.Lm8(this.nj,{sR:Y}):b=null;return b};
_.g.dispose=function(){DlX(this,null);this.setState(8)};
_.g.setState=function(Y){this.state=Y};
var kdX=function(Y,b){return Y.nj.snapshot(b)},lTN=function(Y,b){var w=_.cQ("botguard_async_snapshot_timeout_ms",3E3);
b=b===void 0?{}:b;w=w===void 0?3E3:w;return Y.nj?new Promise(function(V,H){var f=!1,E=_.Lb.addJob(function(){f=!0;H(Error("nf"))},1,w);
Y.nj?kdX(Y,{sR:b}).then(function(U){_.Lb.cancelJob(E);f||V(U)}).catch(function(U){_.Lb.cancelJob(E);
f||H(U)}):(_.Lb.cancelJob(E),V(null))}):Promise.resolve(null)},hSA=["att/log"],xlR;
xlR={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var q6Q={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},sot=function(Y,b){return _.QK(Y,{mode:"readwrite",enableRetries:!0},function(w){return _.BAL(w,b,"settingEntity")})},QoR=function(Y,b,w){return _.QK(Y,{mode:"readonly",
enableRetries:!0},function(V){return _.vIj(V,b,w)})},vZR=function(Y){if(!Y.storage)return!1;
a:{if(Y.storage){try{var b=Y.storage.get("TLPQtimestamp")}catch(w){}Y=Number(b);if(!isNaN(Y))break a}Y=void 0}return Y?Date.now()-Y<864E5:!1},PrO=function(Y){if(Y.storage){try{var b=Y.storage.get("TLPQindex")}catch(w){}Y=Number(b);
if(!isNaN(Y))return Y}},ZVO=function(Y,b){Y.queueProxy&&b.forEach(function(w){if(w.videoId&&w.trackingParams&&Y.queueProxy instanceof _.SF){var V=_.dO();
Y.queueProxy.attributionData.set(w.videoId,{enqueueingVe:_.nA(w.trackingParams).getAsJson(),enqueueingCsn:V?V:void 0,clientEnqueueingTimeMs:Math.floor((0,_.gG)()).toString()})}})},B_7=function(Y){var b=_.VtQ(Y);
b!=Y.currentSnapState_&&(Y.currentSnapState_=b,Y.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Nj=function(Y){this.JSC$11095_networkManager_=Y;
this.partCallbacks_=[]};
Nj.prototype.getCacheKeyForEndpoint=function(Y){return _.N96(Y,!1)};
Nj.prototype.onPartsCallback_=function(Y){this.partCallbacks_.forEach(function(b){Y&&b(Y)})};
var Eo=function(Y,b,w){Nj.call(this,Y);this.player_=b;this.autoplayData_=w};
_.P(Eo,Nj);Eo.prototype.getCacheKeyForEndpoint=function(Y){return _.N96(Y,!!this.autoplayData_)};
Eo.prototype.getTempData=function(Y,b){b=b.timeBeforeNextVideo;Y={itct:Y.clickTrackingParams,lact:_.fB(),pbis:b,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(Y.autonav=1);return Y};
Eo.prototype.getXhrParams=function(Y){return Object.assign({pbj:"prefetch"},Y)};
Eo.prototype.getParams=function(Y){Y={frags:Y.fragmentsRequested.join(",")};_.q("kevlar_droppable_prefetchable_requests")&&(Y.prefetch=1);return Y};
var nZb=function(Y){Y.playerEvents_.forEach(function(b){Y.player.removeEventListener(b.eventName,b.callback)});
Y.playerEvents_.length=0},cr=function(Y,b,w){this.player=Y;
this.JSC$11105_taskManager=b;this.prefetchDelay=w;this.completionResolver_=null;this.playerEvents_=[]};
cr.prototype.start=function(){var Y=this;this.completionResolver_=_.j9();_.OV(this.completionResolver_.promise,function(){nZb(Y);Y.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Mm7=function(Y,b,w){Y.player.addEventListener(b,w);Y.playerEvents_.push({eventName:b,callback:w})},eSN={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},pXt={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},OVQ=function(Y,b,w){cr.call(this,Y,b,w);this.cueId_="playbackTrigger-"+Math.random()};
_.P(OVQ,cr);
OVQ.prototype.prepareTrigger=function(Y){var b=this,w=this.player.getDuration(),V=this.player.getVideoData(),H=V.isLive&&V.hasProgressBarBoundaries;if(H&&V.progressBarEndPositionUtcTimeMillis){var f=V.progressBarEndPositionUtcTimeMillis/1E3;isNaN(f)||(w=f)}var E=0;this.prefetchDelay>=0?H?V.progressBarStartPositionUtcTimeMillis&&(V=V.progressBarStartPositionUtcTimeMillis/1E3,isNaN(V)||(E=V+this.prefetchDelay)):E=this.prefetchDelay:E=w+this.prefetchDelay;H?this.player.addUtcCueRange(this.cueId_,E,w):
this.player.addCueRange(this.cueId_,E,w);_.OV(Y.promise,function(){b.player.removeCueRange(b.cueId_)});
Mm7(this,"onCueRangeEnter",function(U){U==b.cueId_&&Y.resolve(w-E)})};
var tmR=function(Y,b){Y.fragmentConfiguration_[b].requiredKeys.every(function(w){return!!Y.prefetchedData_[w]})&&(Y.validatedFragments_.push(b),b=Y.missingFragments_.indexOf(b),b!==-1&&Y.missingFragments_.splice(b,1))},RS7=function(Y){Y.prefetchedFragments_.forEach(function(b){tmR(Y,b)})},dlI=function(Y,b,w){this.pageFragments_=Y;
this.prefetchedFragments_=b;this.fragmentConfiguration_=pXt;this.prefetchedData_=w;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;RS7(this)},F_X=function(){},L_F=function(Y){this.JSC$11119_playlistManager_=Y};
_.P(L_F,F_X);L_F.prototype.getPrefetchEndpoint=function(){return this.JSC$11119_playlistManager_.getAutoplayEndpoint()};
var S6X=function(Y){this.autonavEndpoints_=Y};
_.P(S6X,F_X);S6X.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var aTs=function(Y,b,w,V,H){this.autonavEndpoints=Y;this.foregroundTrigger=b;this.backgroundTrigger=w;this.pageType=V;this.isInPlaylist=H},rUQ=function(Y,b){if(Y.webPrefetchData&&Y.webPrefetchData.navigationEndpoints&&Y.webPrefetchData.navigationEndpoints.length){Y=Y.webPrefetchData.navigationEndpoints;
var w=_.v(Y[0],_.TG);if(w.watchEndpointSupportedPrefetchConfig&&w.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var V=w.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;w=V.playbackRelativeSecondsPrefetchCondition;w=typeof w==="number"&&Math.abs(w)<b.videoDuration?w:void 0;V=V.countdownUiRelativeSecondsPrefetchCondition;V=typeof V!=="number"||_.q("prefetch_job_config_cleanup_ks")&&b.inPlaylist?void 0:V;if(typeof V==="number")return new aTs(Y,b.makeUpNextTrigger(V),b.makePlaybackTrigger(V),
"watch",b.inPlaylist);if(typeof w==="number")return new aTs(Y,b.makePlaybackTrigger(w),null,"watch",b.inPlaylist)}}},zSs=function(Y){return Y.prefetchJobConfig_.backgroundTrigger?_.i1(_.CYe)()==0?Y.prefetchJobConfig_.backgroundTrigger:Y.prefetchJobConfig_.foregroundTrigger:Y.prefetchJobConfig_.foregroundTrigger},W_7=function(Y){_.BV(document,"visibilitychange",Y.onVisibilityChange_,!1,Y)},Uo=function(Y){Nj.call(this,Y)};
_.P(Uo,Nj);Uo.prototype.getCacheKeyForEndpoint=function(Y){return Nj.prototype.getCacheKeyForEndpoint.call(this,Y)};
Uo.prototype.getTempData=function(){return{}};
Uo.prototype.getXhrParams=function(Y){return Y};
Uo.prototype.getParams=function(){return{}};
var K_s=function(Y,b,w){var V=Y.prefetchDelay*1E3;if(Math.abs(V)>b)w.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var H=V,f=b-V;V<0&&(H=b+V,f=Math.abs(V));var E=Y.JSC$11105_taskManager.addJob(function(){w.resolve(f/1E3)},10,H);
w.promise.thenCatch(function(){Y.JSC$11105_taskManager.cancelJob(E)})}},iVs=function(Y,b,w){cr.call(this,Y,b,w)};
_.P(iVs,cr);iVs.prototype.prepareTrigger=function(Y){var b=this;Mm7(this,"onAutonavCoundownStarted",function(w){K_s(b,w,Y)})};
var AUs=function(Y){Y.pendingPrefetchJob_&&(Y.pendingPrefetchJob_.cancel(),Y.pendingPrefetchJob_=null)},Crt=function(Y,b,w){if(!Y.triggeredTargets.has(b)){var V=_.Tid(Y,b);
V.action=w;_.jft(Y,b,V)}},yUt=function(Y){_.LCt();
_.f4b("cpt")&&_.Sk(Error("mh"));_.wB.requestAnimationFrame(function(){_.wB.setTimeout(function(){_.S1("cpt");var b=_.zu("vpl"),w=_.zu("cpt");b&&w&&_.S1("ol",Math.max(b,w))})});
try{_.S1("fr_s"),Y()}catch(b){_.Ft(b)}_.wB.requestAnimationFrame(function(){_.S1("bcp")})},$lN=function(Y,b){Y.serviceEndpointHandlers.push(b)},joO=function(Y,b){b=Y.pendingPages_.indexOf(b);
b>-1&&Y.pendingPages_.splice(b,1)},GdI=function(Y,b){var w=_.Hv5.indexOf(b);
w>-1&&_.Hv5.splice(w,1);Y.targetPage_==b?(Y.abort(),_.fx$(Y)):joO(Y,b)},T_7=function(Y,b,w,V){b={challenge:b};
w&&(b.webResponse=w);return _.rw(Y.innertubeTransportService,b,_.Yy(hSA),V)},JUR=function(Y,b,w){if(!b.challenge)throw Error("oi");
if(b.botguardData&&b.botguardData.program){var V=new ITg;V.initialize(b.botguardData,function(){lTN(V,{atr_challenge:b.challenge}).then(function(H){if(!H)throw Error("pi");return T_7(Y,b.challenge,H,w)}).catch(function(H){_.Sk(H);
return T_7(Y,b.challenge,void 0,w)})},void 0)}else T_7(Y,b.challenge,void 0,w)},uMI=function(Y,b,w){var V={};
b.ids&&(V.ids=[].concat(_.Bt(b.ids)));b.engagementType&&(V.engagementType=b.engagementType);return _.rw(Y.innertubeTransportService,V,_.Yy(_.aCr),w).then(function(H){if(!H)throw new _.BQ("GetAttestationChallenge returned falsy");JUR(Y,H,w)}).thenCatch(function(H){_.Ft(H)})},YQN=function(Y,b,w){return new _.hh(function(V,H){var f;
return _.c(function(E){if(E.nextAddress==1){var U=b.engagementType,X=b.ids,I={};X=_.N(X!=null?X:[]);for(var k=X.next();!k.done;k=X.next())k=k.value,k.encryptedVideoId?I.encryptedVideoId=k.encryptedVideoId:k.externalChannelId?I.externalChannelId=k.externalChannelId:k.commentId?I.commentId=k.commentId:k.externalOwnerId?I.externalOwnerId=k.externalOwnerId:k.artistId?I.artistId=k.artistId:k.playlistId?I.playlistId=k.playlistId:k.externalPostId?I.externalPostId=k.externalPostId:k.shareId&&(I.shareId=k.shareId);
return _.D(E,ljb(U,I),2)}f=E.yieldResult;if(!f.challenge)return _.Sk(Error("qi")),uMI(Y,b,w).then(V,H),E.return();U=f;I={challenge:U.challenge};I.webResponse=U.webResponse;I.engagementType=b.engagementType;I.ids=b.ids;_.rw(Y.innertubeTransportService,I,_.Yy(hSA),w).then(V,H);_.om(E)})})},qaX=function(Y,b){var w,V,H,f;
_.c(function(E){if(E.nextAddress==1){w=_.v(b,_.pZt);if(!(w&&w.listId&&Y.response&&Y.response.playingVideoId)||Y.listId!==w.listId)return E.return();Y.index===void 0&&(Y.index=0);return _.D(E,_.g15(Y.JSC$10850_playlistNetworkManager,w.listId,Y.index,Y.response.playingVideoId),2)}V=E.yieldResult;if(!V)return E.return();H=V.playlistId;f=V.playlistPanelRenderer;Y.setPlaylistData(H,f,V.autoplayRenderer);_.om(E)})},bA7=function(Y,b,w){var V=Y.getParams(w),H=_.OAv(b,V),f=Y.getTempData(b,w);
f.endpoint=JSON.stringify(b);_.q("enable_unknown_lact_fix_on_html5")&&(_.fH().resolve(_.dn),f.lact=_.fB());var E={headers:{"X-YouTube-STS":_.zO("STS"),"x-youtube-csoc":1}};_.VX(H,f);return new _.hh(function(U,X){var I=Y.getXhrParams(V),k;_.q("kevlar_cache_on_ttl_player")&&(k=_.B5.instance);k&&_.ng$(k,b)?_.FLK(k,b,f,window.location.href).then(function(l){l?U(l):X()},X):_.Y4k(Y.JSC$11095_networkManager_,b,I,Y.onPartsCallback_.bind(Y),E).then(function(l){l?U(l):X()},X)})},wPA=function(Y,b){Y.triggerPromise_=
b.start();
Y.triggerPromise_.then(function(w){var V=Y.prefetchEndpointProvider_.getPrefetchEndpoint();if(V){var H=eSN[Y.prefetchJobConfig_.pageType].prefetchedFragments;Y.prefetchRequestPromise_=bA7(Y.JSC$11131_networkPrefetchRequest_,V,{fragmentsRequested:H,timeBeforeNextVideo:w});Y.prefetchResponseCacheKey_=Y.JSC$11131_networkPrefetchRequest_.getCacheKeyForEndpoint(V);W_7(Y);Y.prefetchRequestPromise_.then(function(f){Y.storePrefetchedDataCallback_(Y.prefetchResponseCacheKey_,f);if(_.q("web_prefetch_preload_video")&&
H.length===1&&H[0]==="pl"&&f&&!f.playerAds&&!f.adPlacements){var E=_.v(V,_.BH),U=E!=null,X={raw_player_response:f,watch_endpoint:E};(f=_.fH().resolve(U?_.z9$:_.EH))&&V&&f.then(function(I){U&&_.q("web_queue_preload_video")?(X.prefer_gapless=!0,I.queueNextVideo(X)):I.preloadVideoByPlayerVars(X)})}})}})},X0=function(Y,b,w,V){this.prefetchEndpointProvider_=Y;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=b;this.prefetchJobConfig_=w;this.JSC$11131_networkPrefetchRequest_=V;this.prefetchResponseCacheKey_=null};
X0.prototype.enqueue=function(){this.triggerPromise_||(wPA(this,zSs(this)),_.ez(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
X0.prototype.resolve=function(){this.cancel()};
X0.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.");W_7(this)};
X0.prototype.onVisibilityChange_=function(){var Y=this;_.i1(_.CYe)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){Y.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||wPA(this,zSs(this))};
Vzd=function(Y,b,w,V,H){b&&(b==null?0:b.videoId)&&w&&w.entries&&_.q("kevlar_enable_shorts_prefetch_in_sequence")&&(AUs(Y),b=w.entries.map(function(f){var E;return(E=_.v(f.command,_.BH))==null?void 0:E.videoId}).indexOf(b.videoId),w=w.entries[b+1],w!=null&&w.command&&!_.v(w==null?void 0:w.command,_.rY)&&(V=new aTs([w.command],new OVQ(V,_.Lb,1),null,"shorts",!1),Y.pendingPrefetchJob_=new X0(new S6X(V.autonavEndpoints),function(){return!1},V,new Uo(H)),Y.pendingPrefetchJob_.enqueue()))};
HAg=function(Y,b,w,V,H,f){var E=_.Vy.getInstance();if(!_.q("block_all_player_prefetch_requests")){AUs(Y);var U=!!w.getPlaylistId(),X=w.getVideoData().isLive&&w.getVideoData().hasProgressBarBoundaries;if((E.getState()==2||U||X)&&(!w.getVideoData().isLive||X)){E={inPlaylist:U,videoDuration:w.getDuration(),makeUpNextTrigger:function(k){return new iVs(w,_.Lb,k)},
makePlaybackTrigger:function(k){return new OVQ(w,_.Lb,k)}};
var I=rUQ(b,E);I&&(Y.pendingPrefetchJob_=new X0(I.isInPlaylist?new L_F(H):new S6X(I.autonavEndpoints),function(k,l){l=new dlI(eSN[I.pageType].pageFragments,eSN[I.pageType].prefetchedFragments,l);return _.rH_(l)?(Y.prefetchCache_.set(k,l),!0):!1},I,new Eo(V,w,f,H)),Y.pendingPrefetchJob_.enqueue())}}};
gO7=function(){var Y=_.Cp();Y.signals.parkOrScheduleJob(function(){var b=Y.storage;if(b.storage)if(vZR(b)){var w=b.getPlaylistId();b=PrO(b);w=!!w&&b!==void 0}else b.clear(),w=!1;else w=!1;if(w){w=Y.pageManager.isOnWatch();a:{var V=Y.storage;if(V.storage&&vZR(V)&&(b=V.getPlaylistId(),V=PrO(V),b&&V!==void 0)){w={recoverPlaylistCommand:{listId:b,index:V,openMiniplayer:!w,openListPanel:w,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}w=void 0}w&&_.a5(Y.JSC$10850_actionRouter,[w],null)}},0,"ma")};
fRs=function(Y,b,w,V,H,f){var E=_.tj(7111);_.oC(Y.JSC$16156_screenManager,E,f?_.nA(f):void 0);_.kV(Y.JSC$16156_screenManager,E,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:V,offlineId:b,offlineabilityFormatType:w,isDefaultFormatType:H==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:H}})};
NIN=function(Y,b,w,V,H){var f,E,U,X,I;return _.c(function(k){if(k.nextAddress==1)return _.D(k,Y.JSC$16156_playerApiPromise,2);f=k.yieldResult;fRs(Y,b,w,"OFFLINE_OBJECT_TYPE_PLAYLIST",V,H);if(U=_.pwk[Y.entityTypeMap.listEntityType])I={},E=(I[U]={maximumDownloadQuality:(X=w)!=null?X:void 0},I);return _.D(k,f.queueOfflineAction(b,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",E),0)})};
EOb=function(Y,b){var w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return _.D(E,Y.JSC$16156_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3){w=E.yieldResult;if(!w)return _.Sk(new _.BQ("PES is undefined")),E.return();V=_.I8(b,"downloadStatusEntity");return _.D(E,QoR(w,V,"downloadStatusEntity"),3)}H=E.yieldResult;return E.return((f=H)==null?void 0:f.downloadState)})};
cAX=function(Y,b,w,V,H){var f,E,U,X,I,k;return _.c(function(l){switch(l.nextAddress){case 1:return _.D(l,Y.JSC$16156_playerApiPromise,2);case 2:f=l.yieldResult;fRs(Y,b,w,"OFFLINE_OBJECT_TYPE_VIDEO",V,H);if(U=_.pwk[Y.entityTypeMap.singleEntityType])I={},E=(I[U]={maximumDownloadQuality:(X=w)!=null?X:void 0},I);return _.D(l,EOb(Y,b),3);case 3:k=l.yieldResult;if(k!=="DOWNLOAD_STATE_USER_DELETED"){l.jumpTo(4);break}return _.D(l,Y.deleteVideo(b),4);case 4:return _.D(l,f.queueOfflineAction(b,Y.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",E),0)}})};
UZ7=function(Y,b,w,V,H){return _.c(function(f){return f.nextAddress==1?_.D(f,Y.deleteVideo(b,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.D(f,cAX(Y,b,w,V,H),0)})};
XPO=function(Y,b,w){var V,H;return _.c(function(f){if(f.nextAddress==1)return _.D(f,Y.JSC$16156_playerApiPromise,2);V=f.yieldResult;H=_.I8(b,"mainVideoDownloadStateEntity");return _.D(f,V.updateDownloadState(H,w),0)})};
Nrb=function(Y){var b=_.fH().resolve(_.T4);return _.c(function(w){if(w.nextAddress==1)return b.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&b.previousDownloadStateForVideo[Y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?w.jumpTo(2):_.D(w,b.resumeVideoDownload(Y),2);if(w.nextAddress!=4)return _.D(w,XPO(b,Y,b.previousDownloadStateForVideo[Y]),4);delete b.previousDownloadStateForVideo[Y];_.om(w)})};
gyA=function(Y,b){var w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$16156_playerApiPromise,2);w=V.yieldResult;return _.D(V,w.queueOfflineAction(b,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
wH7=function(){var Y=_.fH().resolve(_.T4),b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$16156_playerApiPromise,2);if(V.nextAddress!=3)return b=V.yieldResult,w={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.D(V,b.queueOfflineAction("!*$_ALL_ENTITIES_!*$",Y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",w),3);var H=Y.JSC$16156_commandHandler,f=H.resolveCommand,E=_.sa("DELETING_ALL",void 0,"Downloads are being deleted");
f.call(H,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.NV(E)}},popupType:"TOAST"}});_.om(V)})};
DZ7=function(Y){var b,w;return _.c(function(V){if(V.nextAddress==1)return _.D(V,Y.JSC$16156_prefStorage,2);b=V.yieldResult;return V.return((w=b)==null?void 0:w.get("sdois"))})};
mZt=function(Y){var b,w,V,H,f,E;return _.c(function(U){if(U.nextAddress==1)return _.D(U,Y.JSC$16156_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3){b=U.yieldResult;if(!b)return _.Sk(new _.BQ("PES is undefined")),U.return();w=_.I8("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.D(U,QoR(b,w,"settingEntity"),3)}V=U.yieldResult;return U.return((E=(H=V)==null?void 0:(f=H.settingOptionValue)==null?void 0:f.boolValue)!=null?E:!1)})};
oOQ=function(Y,b){var w,V,H,f;return _.c(function(E){switch(E.nextAddress){case 1:return((w=b)==null?void 0:w.formatType)===void 0?E.return():_.D(E,Y.JSC$16156_prefStorage,2);case 2:V=E.yieldResult;if(V===void 0)return E.return();if(((H=b)==null?void 0:H.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.D(E,V.set("lmqf",b.formatType),8);if(((f=b)==null?void 0:f.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){E.jumpTo(0);break}return _.D(E,V.set("lmqf",b.formatType),
6);case 6:return _.D(E,V.set("lmqflst",Math.floor((0,_.gG)())),0);case 8:return _.D(E,V.remove("lmqflst"),0)}})};
IRA=function(Y){var b,w;return _.c(function(V){switch(V.nextAddress){case 1:return _.D(V,Y.JSC$16156_prefStorage,2);case 2:b=V.yieldResult;if(!b){V.jumpTo(3);break}return _.D(V,b.get("lmqflst"),4);case 4:if(w=V.yieldResult,w!==void 0)return V.return(w);case 3:return V.return(0)}})};
kTt=function(Y){var b,w;return _.c(function(V){switch(V.nextAddress){case 1:return _.D(V,Y.JSC$16156_prefStorage,2);case 2:b=V.yieldResult;if(b===void 0){V.jumpTo(3);break}return _.D(V,b.get("lmqf"),4);case 4:if(w=V.yieldResult,w!==void 0)return V.return(w);case 3:return V.return("SD")}})};
I8N=function(Y,b,w){var V,H,f,E,U,X,I,k;_.c(function(l){switch(l.nextAddress){case 1:return _.D(l,oOQ(Y,(V=b)==null?void 0:V.actionParams),2);case 2:H=b.playlistId;if(!H)return l.return();if(b.action==="ACTION_ADD")return((E=b.actionParams)==null?0:E.formatType)?_.D(l,NIN(Y,H,b.actionParams.formatType,(k=b.actionParams)==null?void 0:k.settingsAction,w),0):_.D(l,Y.offlineWebClientEligibility,14);if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var x=Y.JSC$16156_commandHandler,Q=x.resolveCommand,Z=_.zO("INNERTUBE_CLIENT_NAME");
var e=Z==="WEB_REMIX"?_.sa("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.sa("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var O=Z==="WEB_REMIX"?[_.sa("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];Z=Z==="WEB_REMIX"?_.sa("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.sa("DELETE",void 0,"Delete");var L=_.sa("CANCEL",void 0,"Cancel");e=hBd(e,O,Z,L,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:H});Q.call(x,{openPopupAction:e});
return l.return()}if(b.action==="ACTION_REMOVE")return _.D(l,gyA(Y,H),0);if(b.action!=="ACTION_SYNC"){l.jumpTo(0);break}return _.D(l,Y.JSC$16156_playerApiPromise,9);case 9:return f=l.yieldResult,_.D(l,f.queueOfflineAction(H,Y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return U=l.yieldResult,_.D(l,kTt(Y),15);case 15:return X=l.yieldResult,_.D(l,IRA(Y),16);case 16:I=l.yieldResult,b.onAddCommand&&Y.JSC$16156_commandHandler.resolveCommand(b.onAddCommand,{form:{preferredFormatType:X,
offlineWebClientEligibility:U,lastOfflineQualitySettingsSavedMs:I.toString()}}),l.jumpTo(0)}})};
mCF=function(Y,b,w){var V,H,f,E,U,X,I,k,l,x,Q,Z,e,O;_.c(function(L){switch(L.nextAddress){case 1:return _.D(L,oOQ(Y,(V=b)==null?void 0:V.actionParams),2);case 2:H=b.videoId;if(!H)return L.return();if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var r=Y.JSC$16156_commandHandler,C=r.resolveCommand,W=_.zO("INNERTUBE_CLIENT_NAME");var y=W==="WEB_REMIX"?_.sa("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.sa("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var G=W==="WEB_REMIX"?[_.sa("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];W=W==="WEB_REMIX"?_.sa("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.sa("DELETE",void 0,"Delete");var Nr=_.sa("CANCEL",void 0,"Cancel");y=hBd(y,G,W,Nr,{signal:"DELETE_DOWNLOAD",targetId:H});C.call(r,{openPopupAction:y});return L.return()}if(b.action==="ACTION_ADD")return((x=b.actionParams)==null?0:x.formatType)?_.D(L,cAX(Y,H,b.actionParams.formatType,(O=b.actionParams)==null?void 0:O.settingsAction,w),0):_.D(L,Y.offlineWebClientEligibility,
23);if(b.action==="ACTION_RETRY")return _.D(L,kTt(Y),19);if(b.action==="ACTION_PAUSE")return _.D(L,Y.pauseVideoDownload(H),0);if(b.action==="ACTION_RESUME")return _.D(L,Y.resumeVideoDownload(H),0);if(b.action!=="ACTION_REMOVE"){L.jumpTo(0);break}return _.D(L,EOb(Y,H),13);case 13:return f=L.yieldResult,Y.previousDownloadStateForVideo[H]=(E=f)!=null?E:"DOWNLOAD_STATE_UNKNOWN",_.D(L,XPO(Y,H,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(Y.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
Y.previousDownloadStateForVideo[H]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){L.jumpTo(15);break}return _.D(L,Y.pauseVideoDownload(H),15);case 15:r=_.sa("DELETED_VIDEO",void 0,"Video deleted from downloads.");C=_.sa("UNDO_ACTION",void 0,"Undo");y=_.sa("CLOSE",void 0,"Close");U={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.NV(r),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.NV(C),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:H}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:r+" "+C}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:H}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:y}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};Y.JSC$16156_commandHandler.resolveCommand(U);
L.jumpTo(0);break;case 19:X=L.yieldResult;X==="UNKNOWN_FORMAT_TYPE"&&(X="SD");I="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((k=b.actionParams)==null?0:k.formatType)X=b.actionParams.formatType,I=(l=b.actionParams)==null?void 0:l.settingsAction;return _.D(L,UZ7(Y,H,X,I,w),20);case 20:return L.return();case 23:return Q=L.yieldResult,_.D(L,kTt(Y),24);case 24:return Z=L.yieldResult,_.D(L,IRA(Y),25);case 25:e=L.yieldResult,b.onAddCommand&&Y.JSC$16156_commandHandler.resolveCommand(b.onAddCommand,
{form:{preferredFormatType:Z,offlineWebClientEligibility:Q,lastOfflineQualitySettingsSavedMs:e.toString()}}),L.jumpTo(0)}})};
lR7=function(Y,b){var w,V,H,f,E,U,X;return _.c(function(I){if(I.nextAddress==1)return _.D(I,Y.JSC$16156_persistentStorePromiseAccessor(),2);w=I.yieldResult;if(!w)return _.Sk(new _.BQ("PES is undefined")),I.return();if((V=b)==null||!V.settingItemId)return I.return();H=b;f=H.settingItemId;E=H.boolValue;U=_.I8(f,"settingEntity");X={key:U,settingOptionValue:{boolValue:E}};return _.D(I,sot(w,X),0)})};
hQQ=function(Y,b){var w,V,H,f,E,U,X;return _.c(function(I){switch(I.nextAddress){case 1:return _.D(I,Y.JSC$16156_prefStorage,2);case 2:return w=I.yieldResult,V=_.P0(),_.D(I,Y.JSC$16156_persistentStorePromiseAccessor(),3);case 3:return H=I.yieldResult,w?H?_.D(I,w.get("sdois"),4):(_.Sk(new _.BQ("PES is undefined")),I.return()):(_.Sk(new _.BQ("prefStorage is undefined")),I.return());case 4:f=I.yieldResult;U=(E=b)==null?void 0:E.boolValue;U===void 0||_.q("kevlar_set_sd_enabled_flag_killswitch")||_.Ze(0,
197,!0);f===void 0&&U===void 0&&(U=!1);if(U===void 0){I.jumpTo(0);break}return _.D(I,w.set("sdois",U),6);case 6:return _.q("kevlar_set_sd_enabled_flag_killswitch")||(_.Ze(0,196,U),V.save()),X={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:U},_.D(I,lR7(Y,X),0)}})};
xZN=function(Y,b,w){var V,H,f,E,U;return _.c(function(X){switch(X.nextAddress){case 1:return _.D(X,DZ7(Y),2);case 2:return V=X.yieldResult,_.D(X,hQQ(Y,w),3);case 3:return _.D(X,DZ7(Y),4);case 4:return H=X.yieldResult,f=H!==V,_.D(X,mZt(Y),5);case 5:E=X.yieldResult&&!_.q("kevlar_modern_downloads_page");if((U=!H&&!E)||f)return _.D(X,b.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);X.jumpTo(0)}})};
cLF=function(){var Y=_.fH().resolve(_.T4),b;_.c(function(w){switch(w.nextAddress){case 1:return _.D(w,Y.JSC$16156_playerApiPromise,2);case 2:b=w.yieldResult;if(!_.q("kevlar_force_refresh_smart_downloads")){w.jumpTo(3);break}return _.D(w,b.refreshAllStaleEntities(0),4);case 4:return w.return();case 3:return _.D(w,b.refreshAllStaleEntities(),5);case 5:return _.D(w,xZN(Y,b),0)}})};
l8g=function(Y,b){var w,V;_.c(function(H){switch(H.nextAddress){case 1:return _.D(H,Y.JSC$16156_playerApiPromise,2);case 2:w=H.yieldResult;switch((V=b)==null?void 0:V.settingItemId){case "SMART_DOWNLOADS_ENABLED":return H.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return H.jumpTo(4)}H.jumpTo(0);break;case 3:return _.D(H,xZN(Y,w,b),6);case 6:H.jumpTo(0);break;case 4:return _.D(H,lR7(Y,b),7);case 7:H.jumpTo(0)}})};
qQN=function(Y,b){var w,V,H;return _.c(function(f){if(f.nextAddress==1)return _.D(f,Y.JSC$16156_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3){w=f.yieldResult;if(!w)return _.Sk(new _.BQ("PES is undefined")),f.return(!1);if(!b)return f.return(!1);V=_.I8(b,"mainVideoEntity");return _.D(f,QoR(w,V,"mainVideoEntity"),3)}H=f.yieldResult;return f.return(H!==void 0)})};
xCQ=function(Y){var b=_.fH().resolve(_.T4),w,V,H,f,E,U,X,I,k,l,x;_.c(function(Q){switch(Q.nextAddress){case 1:return _.D(Q,b.JSC$16156_playerApiPromise,2);case 2:w=Q.yieldResult;H=(V=Y)==null?void 0:V.actions;if(!H)return Q.return();f=_.N(H);E=f.next();case 3:if(E.done){Q.jumpTo(0);break}U=E.value;I=X=void 0;if(!(((X=U)==null?0:X.entityKey)&&((I=U)==null?0:I.actionType))){Q.jumpTo(4);break}k=_.D7(U.entityKey);l=k.entityId;x=k.entityType;return _.D(Q,w.queueOfflineAction(l,x,U.actionType),4);case 4:E=
f.next(),Q.jumpTo(3)}})};
sRX=function(Y,b){var w,V,H,f,E;return _.c(function(U){if(U.nextAddress==1)return _.D(U,Y.JSC$16156_prefStorage,2);if(U.nextAddress!=3)return(w=U.yieldResult)?_.D(U,w.get("psi"),3):U.return();V=U.yieldResult;E={isPaused:b,lastSyncTimestamp:(f=(H=V)==null?void 0:H.lastSyncTimestamp)!=null?f:"0"};return _.D(U,w.set("psi",E),0)})};
QAX=function(Y){var b=_.fH().resolve(_.T4),w,V,H,f,E,U,X,I;return _.c(function(k){switch(k.nextAddress){case 1:return _.D(k,b.JSC$16156_playerApiPromise,2);case 2:w=k.yieldResult;H=((V=Y)==null?void 0:V.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((U=Y)==null?void 0:U.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":f="!*$_ALL_ENTITIES_!*$";E="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return k.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return k.jumpTo(4)}k.jumpTo(5);break;case 3:return _.D(k,sRX(b,H),6);case 6:k.jumpTo(5);break;case 4:return _.D(k,qQN(b,(X=Y)==null?void 0:X.videoId),7);case 7:k.yieldResult&&(f=(I=Y)==null?void 0:I.videoId,E="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");k.jumpTo(5);break;case 5:if(f&&E)return _.D(k,w.queueOfflineAction(f,"videoPlaybackPositionEntity",E),0);k.jumpTo(0)}})};
QRR=function(Y,b){var w;b!==1||((w=Y.currentPersistentToast)==null?0:w.isOpened())?Y.openToast():Y.currentPersistentToast=void 0};
vOs=function(Y,b){var w;return(w=Y.transitionTasksMap.get(b))!=null?w:[]};
P8X=function(Y,b){var w=[];Y.elementTasksMap.forEach(function(V){(V=V.get(b))&&w.push(V)});
return w};
ZAb=function(Y,b,w,V){V=V===void 0?{}:V;var H=Y.defaultViewTransitionOptions;return Object.assign({},H,V,{beforeTransition:function(){w.forEach(function(X){X.beforeTransition()});
var f;(f=H.beforeTransition)==null||f.call(H);var E,U;(U=(E=V).beforeTransition)==null||U.call(E);b.forEach(function(X){X.beforeTransition()})},
afterTransition:function(){w.forEach(function(X){X.afterTransition()});
var f;(f=H.afterTransition)==null||f.call(H);var E,U;(U=(E=V).afterTransition)==null||U.call(E);b.forEach(function(X){X.afterTransition()})}})};
Go=function(Y,b,w){Y.transitionTasksMap.has(b)?Y.transitionTasksMap.get(b).push(w):(Y=new _.BQ("Transition task registered for unknown transition type",b),_.Ft(Y))};
BIN=function(Y,b,w){if(Y.transitionTasksMap.has(b)){var V=Y.transitionTasksMap.get(b).filter(function(H){return H!==w});
Y.transitionTasksMap.set(b,V)}};
nOR=function(Y,b){var w=vOs(Y,b);w=_.N(w);for(var V=w.next();!V.done;V=w.next())V=V.value,V.runOnce&&BIN(Y,b,V);Y.elementTasksMap.forEach(function(H,f){H.forEach(function(E,U){E.runOnce&&b===U&&(H.delete(U),H.size===0&&Y.elementTasksMap.delete(f))})})};
MzO=function(Y,b,w){var V,H,f,E,U,X,I,k,l;_.c(function(x){if(x.nextAddress==1){if(Y.config.disableAllTransitions)return x.return(b());if((V=w)==null||!V.transitionType)return x.return(_.R4F(b,(H=w)==null?void 0:H.viewTransitionOptions));f=w;E=f.transitionType;U=f.viewTransitionOptions;X=Y.config.transitionConfigs.get(E);if(!X)return x.return(b());I=vOs(Y,E);k=P8X(Y,E);l=_.R4F(b,ZAb(X,I,k,U));return _.D(x,l,2)}nOR(Y,E);_.om(x)})};
eQN=function(){var Y,b,w,V;return _.c(function(H){if(H.nextAddress==1)return Y=navigator,(b=Y.storage)!=null&&b.persisted?_.D(H,(w=Y.storage)==null?void 0:w.persisted(),2):H.return("PERSISTED_STATE_NOT_SUPPORTED");V=H.yieldResult;return H.return(V?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
pPN=function(){var Y,b,w,V;return _.c(function(H){if(H.nextAddress==1)return Y=navigator,(b=Y.storage)!=null&&b.persist?_.D(H,(w=Y.storage)==null?void 0:w.persist(),2):H.return("PERSISTED_STATE_NOT_SUPPORTED");V=H.yieldResult;return H.return(V?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
OAN=function(){var Y,b;return _.c(function(w){switch(w.nextAddress){case 1:return Y="PERSISTED_STATE_NOT_SUPPORTED",_.ct(w,2),_.D(w,eQN(),4);case 4:Y=w.yieldResult;if(Y!=="PERSISTED_STATE_NOT_GRANTED"){w.jumpTo(5);break}return _.D(w,pPN(),6);case 6:Y=w.yieldResult;case 5:_.$u(w,3);break;case 2:b=_.mS(w),b instanceof Error&&_.Ft(b);case 3:return _.RY("persistentStorageStateChecked",{persistedState:Y}),w.return(Y)}})};
tzg=function(Y,b){var w=[],V=!1;b=_.N(b);for(var H=b.next();!H.done;H=b.next()){H=Y.moduleRegistry[H.value];var f=void 0,E=void 0;((f=H)==null?0:f.isFetching)&&((E=H)==null?0:E.resolver)?(w.push(H.resolver.promise),V=!0):(H=new _.mD,H.resolve(void 0),w.push(H.promise))}return V?Promise.all(w):void 0};
RQX=function(Y,b,w){if(Y.isInitialized()){var V=bU(w),H=V==="watch";V=V==="shorts";var f=bU(b)==="watch";if(H)f||(Y.backgroundPageData=b),Y.watchPipMode&&f||Y.deactivate(w.endpoint);else if(V){if(bU(b)!=="shorts"){var E;(E=Y.getPlayerElement())==null||E.pause()}}else f&&!Y.watchPipMode&&(qJs(b,w)?(Y.watchWhileMode&&_.FvQ(Y,!1),_.eYF(Y,b)):Y.isMiniplayerActive()&&Y.watchWhileMode&&Y.deactivate());f&&_.S3A(Y);Y.shortsPipMode&&!V&&(window.focus(),Y.deactivate());if(Y.pictureInPictureEnabled())if(V&&
Y.shortsPipEnabled||H&&Y.watchPipEnabled)_.W5t(Y.handleMediaSessionPipActivation);else if(!Y.isMiniplayerActive()&&(Y.shortsPipEnabled||Y.watchPipEnabled)&&window.documentPictureInPicture&&_.pa()&&_.Xgu("Chromium")>=120){Y=_.zOM().mediaSession;try{Y.setActionHandler("enterpictureinpicture",null)}catch(U){}}}};
dZA=function(Y,b){var w,V;_.c(function(H){if(H.nextAddress==1){if(!Y||!Y.navigationEndpoint)return H.return();_.sL().lockupActivation=!0;var f;b?f=_.Gx(_.sa("QUEUE",void 0,"Queue")):f=Y.longBylineText;V=(w=f)&&Y.title?{miniplayerTitle:Y.title,miniplayerSubtitle:w,playlistData:null}:void 0;return _.D(H,_.z5d(_.fH().resolve(_.Ck),Y.navigationEndpoint,!0,V),2)}_.sL().userActivation=!0;_.om(H)})};
led=function(Y,b){var w,V,H,f,E,U;_.c(function(X){if(X.nextAddress==1){w=_.v(b,_.e0k);if(!w||!w.listId)return X.return();Y.index=w.index||Y.index||0;V=Y.response&&Y.response.playingVideoId||void 0;return _.D(X,_.g15(Y.JSC$10850_playlistNetworkManager,w.listId,Y.index,V),2)}H=X.yieldResult;if(!H)return X.return();f=H.playlistId;E=H.playlistPanelRenderer;!Y.queueProxy&&f&&E&&f.startsWith("TLPQ")&&(Y.queueProxy=new _.SF(Y.JSC$10850_playlistNetworkManager,f,Y.setPlaylistData.bind(Y),Y.clearQueue.bind(Y),
_.u9L(E),Y.storage));if(w.openMiniplayer&&(U=_.Yqv(E))&&!Y.pageManager.isOnWatch()){var I=U,k=w.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";Y.isMiniplayerActive()?Y.openToast(I):dZA(I,k)}Y.setPlaylistData(f,E,H.autoplayRenderer);_.om(X)})};
o7b=function(Y,b){var w=_.Cp();w.index===void 0&&(w.index=0);w.temporaryItems.push.apply(w.temporaryItems,_.Bt(Y));if((b.videoId||b.videoIds)&&w.index!==void 0&&b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!w.queueProxy){var V=[];if(w.response){var H=_.fH().resolve(_.Ck).isMiniplayerActive();if(w.response.playlistPanelRenderer&&w.response.playlistId&&!w.response.playlistId.startsWith("TLPQ")){if(w.pageManager.isOnWatch()||H)V=_.u9L(w.response.playlistPanelRenderer)}else w.response.playingVideoId&&
!b.openMiniplayer?V.push(w.response.playingVideoId):H&&w.response.playingVideoId&&b.openMiniplayer&&V.push(w.response.playingVideoId)}w.queueProxy=new _.SF(w.JSC$10850_playlistNetworkManager,"",w.setPlaylistData.bind(w),w.clearQueue.bind(w),V,w.storage);w.queueProxy.JSC$10796_setCurrentIndex(w.index)}w.queueProxy.addVideos(b.videoIds||[b.videoId],b)}ZVO(w,Y);w.response&&_.yy(w,_.$V(w,w.response.autoplayRenderer));w.pageManager.isOnWatch()?w.isMiniplayerActive()&&w.openToast(Y[0]):(Y=Y[0],b=b.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",w.isMiniplayerActive()?w.openToast(Y):dZA(Y,b))};
FQt=function(Y){var b=_.I7(Y);if(b=="object"||b=="array"){if(typeof Y.clone==="function")return Y.clone();if(typeof Map!=="undefined"&&Y instanceof Map)return new Map(Y);if(typeof Set!=="undefined"&&Y instanceof Set)return new Set(Y);b=b=="array"?[]:{};for(var w in Y)b[w]=FQt(Y[w]);return b}return Y};
DN=function(Y,b){return _.j6I(_.ZX(Y,b,void 0,_.PZ))};
mM=function(Y,b){return _.PI(_.ZX(Y,b,void 0,_.PZ))};
oF=function(Y,b){return _.odg(_.ZX(Y,b,void 0,_.PZ))};
IF=function(Y,b){return _.ZX(Y,b,void 0,_.PZ,_.Xb)};
LQs=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;_.C3(b,w,_.CE(Y.decoder_,_.VN));return!0},_.Jc,_.ju);
SQR=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==0)return!1;_.eu(b,w,V,_.CE(Y.decoder_,_.VN));return!0},_.Jc,_.ju);
aRd=_.Ac(function(Y,b,w){if(Y.nextWireType_!==1)return!1;var V=Y.decoder_;Y=_.$v(V);V=_.$v(V);Y=_.Ys(Y,V);_.C3(b,w,Y);return!0},_.yOg,_.Wru);
rAt=_.Ac(function(Y,b,w){if(Y.nextWireType_!==5)return!1;_.C3(b,w,_.$v(Y.decoder_));return!0},function(Y,b,w){b=_.ZA(b);
b!=null&&(_.jQ(Y,w,5),_.Tw(Y.encoder_,b))},_.zae);
zQd=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;Y=_.qRB(Y.decoder_);_.C3(b,w,Y===!1?void 0:Y);return!0},_.$Fb,_.Lrt);
WQA=_.Ac(function(Y,b,w){if(Y.nextWireType_!==2)return!1;Y=_.BgB(Y);_.C3(b,w,Y===""?void 0:Y);return!0},_.Gtr,_.SRa);
KQs=_.Ac(function(Y,b,w){if(Y.nextWireType_!==2)return!1;Y=_.nlt(Y);_.C3(b,w,Y===_.F$()?void 0:Y);return!0},_.JOM,_.A3v);
iAX=_.SXM(function(Y,b,w){if(Y.nextWireType_!==0&&Y.nextWireType_!==2)return!1;b=_.BD(b,b[_.Qr]|0,w);Y.nextWireType_==2?_.MGG(Y,Y6s,b):b.push(_.y0(Y.decoder_));return!0},function(Y,b,w){b=_.LdI(_.PI,b,!0);
if(b!=null&&b.length){w=_.mFB(Y,w);for(var V=0;V<b.length;V++)_.Kdb(Y.encoder_,b[V]);_.ose(Y,w)}},_.C_t);
AAd=_.Ac(function(Y,b,w){if(Y.nextWireType_!==0)return!1;Y=_.y0(Y.decoder_);_.C3(b,w,Y===0?void 0:Y);return!0},_.ube,_.C_t);
C8t=_.Ac(function(Y,b,w,V){if(Y.nextWireType_!==0)return!1;_.eu(b,w,V,_.y0(Y.decoder_));return!0},_.ube,_.C_t);
_.y$=function(Y){this.privateDoNotAccessOrElseWrappedStyleSheet=Y};
_.y$.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var B5d=function(Y,b){return new _.eq(Y.x+b.x,Y.y+b.y)},yAA=function(Y){return Y.previousElementSibling!==void 0?Y.previousElementSibling:_.VKU(Y.previousSibling,!1)},$ZR=function(Y,b){var w=[];
for(b=b||0;b<Y.length;b+=2)_.CC8(Y[b],Y[b+1],w);return w.join("&")},jRI=function(Y,b){var w=arguments.length==2?$ZR(arguments[1],0):$ZR(arguments,1);
return _.A_U(Y,w)},GTd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(GTd,_.SQ);GTd.prototype.getValue=function(){var Y=_.ZX(this,2);if(Array.isArray(Y)||Y instanceof _.SQ)throw Error("aa");return _.MX(this,2)};
var AQO=function(){var Y=_.cH();this.JSC$7954_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Nf("channel_type"))};
AQO.prototype.increment=function(Y){this.JSC$7954_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",Y)};
var CpR=function(){var Y=_.cH();this.JSC$7957_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Nf("channel_type"))};
CpR.prototype.increment=function(Y){this.JSC$7957_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",Y)};
var $cQ=function(){var Y=_.cH();this.JSC$7960_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Nf("channel_type"))};
$cQ.prototype.increment=function(Y){this.JSC$7960_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",Y)};
var yQA=function(){var Y=_.cH();this.JSC$7963_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
yQA.prototype.increment=function(){this.JSC$7963_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var jdQ=function(){var Y=_.cH();this.JSC$7966_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Nf("channel_type"),_.Nf("error_type"))};
jdQ.prototype.increment=function(Y,b){this.JSC$7966_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",Y,b)};
var GCs=function(){var Y=_.cH();this.JSC$7969_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
GCs.prototype.increment=function(){this.JSC$7969_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var TSX=function(){var Y=_.cH();this.JSC$7972_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
TSX.prototype.increment=function(){this.JSC$7972_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var WD7=function(){var Y=_.cH();this.JSC$7978_streamzService=Y;Y.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
WD7.prototype.increment=function(){this.JSC$7978_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var TIb=function(Y){return Y.getCount&&typeof Y.getCount=="function"?Y.getCount():_.TK(Y)||typeof Y==="string"?Y.length:_.BL.getCount(Y)},JAX=function(Y,b){if(typeof Y.every=="function")return Y.every(b,void 0);
if(_.TK(Y)||typeof Y==="string")return Array.prototype.every.call(Y,b,void 0);for(var w=_.rP$(Y),V=_.VJ(Y),H=V.length,f=0;f<H;f++)if(!b.call(void 0,V[f],w&&w[f],Y))return!1;return!0},udI=function(Y,b,w,V){var H=new _.Jw(null);
Y&&_.H2(H,Y);b&&_.gy(H,b);w&&_.fP(H,w);V&&_.Nv(H,V);return H},Yvg=function(){var Y=_.ra&&_.I6(_.uI$,10)>=0,b;
if(b=_.daa)b=_.I6(_.Jlk,10)>=0;var w=_.s0&&_.I6(_.uI$,85)>=0;return _.lL||Y||b||w},b_7=function(Y){var b=_.Zo$(Y);
return b&&Yvg()?-Y.scrollLeft:b&&_.iO(Y,"overflowX")!="visible"?Y.scrollWidth-Y.clientWidth-Y.scrollLeft:Y.scrollLeft},wbd=function(Y,b){b=Math.max(b,0);
_.Zo$(Y)?Yvg()?Y.scrollLeft=-b:Y.scrollLeft=Y.scrollWidth-b-Y.clientWidth:Y.scrollLeft=b},F$Q=0,zBg=!1;
Vl.prototype.set=function(Y){this.relativeTimeStart_=Y};
Vl.prototype.reset=function(){this.set(_.XT())};
Vl.prototype.get=function(){return this.relativeTimeStart_};
var V9O=null,H_X=function(){V9O||(V9O=new Vl)},g_b=function(){V9O||(V9O=new Vl)};
_.DX(g_b,H_X);_.g=K$N.prototype;_.g.JSC$9302_buffer_="";_.g.set=function(Y){this.JSC$9302_buffer_=""+Y};
_.g.append=function(Y,b,w){this.JSC$9302_buffer_+=String(Y);if(b!=null)for(var V=1;V<arguments.length;V++)this.JSC$9302_buffer_+=arguments[V];return this};
_.g.clear=function(){this.JSC$9302_buffer_=""};
_.g.getLength=function(){return this.JSC$9302_buffer_.length};
_.g.toString=function(){return this.JSC$9302_buffer_};
var fpO=function(){var Y={type:"unit",style:"narrow"};this.listType_=Y&&Y.type?Y.type:"conjunction";this.listStyle_=Y&&Y.style?Y.style:"long";this.listSymbols_=N_b;Y=0;switch(this.listStyle_){case "short":Y=1;break;case "narrow":Y=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[Y];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[Y];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[Y];this.listEndPattern_=
this.listSymbols_.AND_END[Y];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[Y];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[Y];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[Y];this.listEndPattern_=this.listSymbols_.OR_END[Y];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[Y],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[Y],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[Y],this.listEndPattern_=this.listSymbols_.UNIT_END[Y]}};
fpO.prototype.format=function(Y){return NnO(this,Y)};
var NnO=function(Y,b){var w=b.length;switch(w){case 0:return"";case 1:return String(b[0]);case 2:return Y.listTwoPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1]))}for(var V=Y.listStartPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1])),H=2;H<w-1;++H)V=Y.listMiddlePattern_.replace("{0}",V).replace("{1}",String(b[H]));return Y.listEndPattern_.replace("{0}",V).replace("{1}",String(b[w-1]))},gr7=function(){var Y={style:1};
this.style_=(Y==null?void 0:Y.style)||0;this.durationSymbols_=_.tiI||_.dVI},E_X=function(Y,b){switch(b){default:case "years":return Y.durationSymbols_.YEAR;
case "months":return Y.durationSymbols_.MONTH;case "weeks":return Y.durationSymbols_.WEEK;case "days":return Y.durationSymbols_.DAY;case "hours":return Y.durationSymbols_.HOUR;case "minutes":return Y.durationSymbols_.MINUTE;case "seconds":return Y.durationSymbols_.SECOND}},km=function(Y,b,w){a:{w=E_X(Y,w);
switch(Y.style_){case 1:if(w.LONG!=void 0){Y=w.LONG;break a}case 2:if(w.NARROW!=void 0){Y=w.NARROW;break a}default:Y=w.SHORT;break a}Y=void 0}return Y?(new _.VyK("{DURATION_VALUE,plural,"+Y+"}")).format({DURATION_VALUE:b}):""};
gr7.prototype.format=function(Y){var b=[],w=Y.years,V=Y.months,H=Y.weeks,f=Y.days,E=Y.hours,U=Y.minutes;Y=Y.seconds;w!=null&&b.push(km(this,w,"years"));V!=null&&b.push(km(this,V,"months"));H!=null&&b.push(km(this,H,"weeks"));f!=null&&b.push(km(this,f,"days"));E!=null&&b.push(km(this,E,"hours"));U!=null&&b.push(km(this,U,"minutes"));Y!=null&&b.push(km(this,Y,"seconds"));return(new fpO).format(b)};
var cjQ=!1,GrA=function(Y){_.Yb.call(this,Y.message||Y.description||Y.name);this.isMissing=Y instanceof Hc;this.isTimeout=Y instanceof _.C2&&Y.errorCode=="net.timeout";this.isCanceled=Y instanceof _.GL};
_.P(GrA,_.Yb);GrA.prototype.name="BiscottiError";var Hc=function(){_.Yb.call(this,"Biscotti ID is missing from server")};
_.P(Hc,_.Yb);Hc.prototype.name="BiscottiMissingError";var g3=null,g7Q=function(){try{var Y=_.Aq("yt.ads.biscotti.getId_");return Y?Y():M3Q()}catch(b){return _.OQ(b)}},Hbd,URI=function(Y,b){return _.Uf({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:Y,command:b}})},Xbb=function(Y){return _.Uf({type:"SET_GUIDE_IS_EXPANDED",
payload:Y})},DRI=function(Y){return _.Uf({type:"SET_ONLINE_STATUS",
payload:Y})},mRt=function(Y,b){return _.Uf({type:"SET_TRANSCRIPTION_STATE",
payload:{high:Y,low:b}})},o_b=function(Y){return _.Uf({type:"SET_OVERLAY_STATE",
payload:Y})},Ip7=0,k9O=function(Y,b,w){var V=this;
this.priority=b;this.delay=w;this.jobId=0;this.completionCallback=_.vY;this.wrappedJob=function(){Y();V.completionCallback()};
this.id=++Ip7};
k9O.prototype.enqueue=function(Y){this.completionCallback=Y;this.jobId=_.Lb.addJob(this.wrappedJob,this.priority,this.delay)};
var lT=function(){_.Nb.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.P(lT,_.Nb);lT.prototype.addJob=function(Y,b,w){Y=new k9O(Y,b,w);this.taskIdToTask.set(Y.id,Y);this.isActive?lps(this,Y):this.suspendedTasks.add(Y);return Y.id};
var lps=function(Y,b){Y.scheduledTasks.add(b);b.enqueue(function(){Y.scheduledTasks.delete(b)})};
lT.prototype.cancelJob=function(Y){(Y=this.taskIdToTask.get(Y))&&(this.scheduledTasks.delete(Y)?_.Lb.cancelJob(Y.jobId):this.suspendedTasks.delete(Y))};
lT.prototype.pause=function(){var Y=this;this.isActive=!1;this.scheduledTasks.forEach(function(b){_.Lb.cancelJob(b.jobId);Y.suspendedTasks.add(b)});
this.scheduledTasks.clear()};
lT.prototype.start=function(){var Y=this;this.isActive=!0;this.suspendedTasks.forEach(function(b){lps(Y,b)});
this.suspendedTasks.clear()};
lT.prototype.reset=function(){this.scheduledTasks.forEach(function(Y){_.Lb.cancelJob(Y.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var hK=function(Y,b){this.JSC$10979_networkService_=Y;this.pageRequestPromise=b};
hK.prototype.fetchData=function(Y){hEd(this,this.JSC$10979_networkService_.fetchData(Y))};
hK.prototype.postData=function(Y,b){hEd(this,this.JSC$10979_networkService_.postData(Y,b))};
hK.prototype.requestDataForServiceEndpoint=function(Y,b){hEd(this,this.JSC$10979_networkService_.requestDataForServiceEndpoint(Y,b))};
var hEd=function(Y,b){b.then(Y.pageRequestPromise.onSuccess,Y.pageRequestPromise.onFailure,Y.pageRequestPromise)};
hK.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var xm=function(Y){this.buildNetworkRequest_=Y;this.pendingRequests_=new Set};
xm.prototype.reset=function(){this.pendingRequests_.forEach(function(Y){Y.cancel()});
this.pendingRequests_.clear()};
xm.prototype.fetchData=function(Y){var b=xRd(this);b.fetchData(Y);return b.pageRequestPromise};
xm.prototype.postData=function(Y,b){var w=xRd(this);w.postData(Y,b);return w.pageRequestPromise};
xm.prototype.requestDataForServiceEndpoint=function(Y,b){var w=xRd(this);w.requestDataForServiceEndpoint(Y,b);return w.pageRequestPromise};
var xRd=function(Y){var b=Y.buildNetworkRequest_();Y.pendingRequests_.add(b);var w=function(){Y.pendingRequests_.delete(b)};
b.pageRequestPromise.then(w,w);return b},qv7=function(Y){var b=new lT;
this.JSC$10986_networkService_=Y;this.JSC$10986_taskManager_=b;this.JSC$10986_networkManager_=new xm(this.networkRequestFactory_.bind(this))};
_.g=qv7.prototype;_.g.networkRequestFactory_=function(){return new hK(this.JSC$10986_networkService_,new _.Nx(this.JSC$10986_taskManager_))};
_.g.reset=function(){this.JSC$10986_taskManager_.reset();this.JSC$10986_networkManager_.reset()};
_.g.start=function(){this.JSC$10986_taskManager_.start()};
_.g.pause=function(){this.JSC$10986_taskManager_.pause()};
_.g.getTaskManager=function(){return this.JSC$10986_taskManager_};
_.g.getNetworkManager=function(){return this.JSC$10986_networkManager_};
var UzQ=null,mzt=[],fF=0,EE=0,NW=null,sLt=!1,cc=null,I9s=void 0,QLO=function(){var Y=(0,_.h6C)();Y&&cUt(Y,Y.mechanism.__iterator__(!0))},XU=function(Y){this.token=Y};
XU.getInstance=function(){var Y;return _.c(function(b){if(b.nextAddress==1)return _.D(b,_.Vn(),2);Y=b.yieldResult;if(!Y)return b.return();XU.instance||(XU.instance=new XU(Y));return b.return(XU.instance)})};
var sqX=function(Y){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,hnX(Y.token),2);b=w.yieldResult;return w.return(b.clear("resource-manifest-assets"))})},UE=function(Y){this.token=Y};
UE.getInstance=function(){var Y;return _.c(function(b){if(b.nextAddress==1)return _.D(b,_.Vn(),2);Y=b.yieldResult;if(!Y)return b.return();UE.instance||(UE.instance=new UE(Y));return b.return(UE.instance)})};
var xzt=function(Y){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,hnX(Y.token),2);b=w.yieldResult;return _.D(w,b.clear("auth"),0)})},WqQ=!1,v_A=function(Y){_.Yb.call(this,Y)};
_.P(v_A,_.CUd);var PAR="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");oPN()&&PAR.push("details:not(:has(summary))");var kMR=PAR.join(",");var FK7=function(){var Y=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return Y?parseInt(Y[1],10):0},Z_7=function(Y){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+Y)!=-1||document.currentScript.src.indexOf("&"+Y)!=-1)},Bns=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},zgs=function(Y){Y.length?n_N(Y.shift(),function(){zgs(Y)}):SDd()},KKg=function(Y){return"chrome-extension://"+Y+"/cast_sender.js"},n_N=function(Y,
b,w){var V=document.createElement("script");
V.onerror=b;w&&(V.onload=w);_.Ku(V,_.eh(Y));(document.head||document.documentElement).appendChild(V)},M9t=function(){var Y=FK7(),b=[];
if(Y>1){var w=Y-1;b.push("//www.gstatic.com/eureka/clank/"+Y+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+w+"/cast_sender.js")}return b},SDd=function(){var Y=Bns();
Y&&Y(!1,"No cast extension found")},rw7=function(){if(eEF){var Y=2,b=Bns(),w=function(){Y--;
Y==0&&b&&b(!0)};
window.__onGCastApiAvailable=w;n_N("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",SDd,w)}},LKX=function(){rw7();
var Y=M9t();Y.push("//www.gstatic.com/eureka/clank/cast_sender.js");zgs(Y)},amt=function(){rw7();
var Y=M9t();Y.push.apply(Y,_.Bt(WKX.map(KKg)));Y.push("//www.gstatic.com/eureka/clank/cast_sender.js");zgs(Y)},eEF=Z_7("loadCastFramework")||Z_7("loadCastApplicationFramework"),WKX=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var pbR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(pbR,_.SQ);var O_t=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(O_t,_.SQ);var t9b=function(){var Y=new O_t;return _.iL(Y,1,3)};var qj=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(qj,_.SQ);var aFt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(aFt,_.SQ);var REO=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(REO,_.SQ);REO.prototype.getToken=function(){return _.Su(this,1)};
REO.prototype.setToken=function(Y){return _.bf(this,1,Y)};
var LpN=function(Y){return _.s3(Y,3,_.WI,_.V9())},SPR=function(Y){return _.s3(Y,6,_.WI,_.V9())};var so=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(so,_.SQ);so.prototype.getToken=function(){return _.EK(this,REO,2)};
so.prototype.setToken=function(Y){return _.HN(this,2,Y)};
so.prototype.getName=function(){return _.Su(this,6)};
var dRN=_.wE(so);var FBX=function(Y,b,w){this.requestMessage=Y;this.methodDescriptor=b;this.metadata=w};
FBX.prototype.getMetadata=function(){return this.metadata};var LBX=function(Y,b){b=b===void 0?{}:b;this.responseMessage=Y;this.metadata=b;this.status=null};
LBX.prototype.getMetadata=function(){return this.metadata};
LBX.prototype.getStatus=function(){return this.status};var Qq=function(Y,b,w,V,H){this.name=Y;this.methodType="unary";this.requestType=b;this.responseType=w;this.requestSerializeFn=V;this.responseDeserializeFn=H},SvI=function(Y,b,w){w=w===void 0?{}:w;
return new FBX(b,Y,w)};
Qq.prototype.getName=function(){return this.name};var vr=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(vr,_.SQ);vr.prototype.setHeader=function(Y){return _.HN(this,1,Y)};
vr.prototype.hasHeader=function(){return _.BZ(this,qj,1)};var apQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(apQ,_.SQ);var rjN=new Qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",vr,apQ,function(Y){return Y.serialize()},_.wE(apQ));var Pr=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Pr,_.SQ);Pr.prototype.setHeader=function(Y){return _.HN(this,1,Y)};
Pr.prototype.hasHeader=function(){return _.BZ(this,qj,1)};var zEt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(zEt,_.SQ);var WBN=new Qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Pr,zEt,function(Y){return Y.serialize()},_.wE(zEt));var ZN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(ZN,_.SQ);ZN.prototype.setHeader=function(Y){return _.HN(this,1,Y)};
ZN.prototype.hasHeader=function(){return _.BZ(this,qj,1)};var KBR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(KBR,_.SQ);KBR.prototype.getLink=function(){return _.EK(this,so,1)};var i_t=new Qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",ZN,KBR,function(Y){return Y.serialize()},_.wE(KBR));var Br=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Br,_.SQ);Br.prototype.setHeader=function(Y){return _.HN(this,1,Y)};
Br.prototype.hasHeader=function(){return _.BZ(this,qj,1)};var AjR=new Qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Br,so,function(Y){return Y.serialize()},dRN);var CAt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(CAt,_.SQ);var yjN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(yjN,_.SQ);yjN.prototype.getUrl=function(){return _.Su(this,2)};
yjN.prototype.setUrl=function(Y){return _.bf(this,2,Y)};var $RO=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P($RO,_.SQ);var jLN=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(jLN,_.SQ);var G9X=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(G9X,_.SQ);var GMg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(GMg,_.SQ);var jYA=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(jYA,_.SQ);var TnF=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(TnF,_.SQ);var VMQ=_.wE(TnF);var Jjs=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Jjs,_.SQ);var n5=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(n5,_.SQ);n5.prototype.setHeader=function(Y){return _.HN(this,1,Y)};
n5.prototype.hasHeader=function(){return _.BZ(this,qj,1)};
n5.prototype.getCompletionUrl=function(){return _.Su(this,6)};
n5.prototype.getDeviceId=function(){return _.Su(this,11)};var ul7=new Qq("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",n5,TnF,function(Y){return Y.serialize()},VMQ);var YHF=new Set(["SAPISIDHASH","APISIDHASH"]);var bsg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(bsg,_.SQ);bsg.prototype.getMessage=function(){return _.Su(this,2)};
var wvb=_.wE(bsg);var Mj=function(Y,b){this.xhrNodeReadableStream_=Y.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.JSC$17094_xhr_=Y.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17094_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&VPX(this)},cdQ=function(Y,b){var w=new Hsb;
_.ez(Y.JSC$17094_xhr_,"complete",function(){if(Y.JSC$17094_xhr_.isSuccess()){var V=Y.JSC$17094_xhr_.getResponseText();var H;if(H=b)H=Y.JSC$17094_xhr_,H.JSC$7833_xhr_&&H.isComplete()?(H=H.JSC$7833_xhr_.getResponseHeader("Content-Type"),H=H===null?void 0:H):H=void 0,H=H==="text/plain";if(H){if(!atob)throw Error("Oj");V=atob(V)}try{var f=Y.grpcResponseDeserializeFn_(V)}catch(U){e6(Y,vPN(new _.R_(13,"Error when deserializing response data; error: "+U+(", response: "+V)),w));return}V=_.Dw(Y.JSC$17094_xhr_.getStatus());
ghI(Y,fEd(Y));V==0?NKQ(Y,f):e6(Y,vPN(new _.R_(V,"Xhr succeeded but the status code is not 200"),w))}else{V=Y.JSC$17094_xhr_.getResponseText();f=fEd(Y);if(V){var E=EhR(Y,V);V=E.code;H=E.details;E=E.metadata}else V=2,H="Rpc failed due to xhr error. uri: "+String(Y.JSC$17094_xhr_.JSC$7833_lastUri_)+", error code: "+Y.JSC$17094_xhr_.JSC$7833_lastErrorCode_+", error: "+Y.JSC$17094_xhr_.getLastError(),E=f;ghI(Y,f);e6(Y,vPN(new _.R_(V,H,E),w))}})},VPX=function(Y){Y.xhrNodeReadableStream_.on("data",function(b){if("1"in
b){var w=b["1"];
try{var V=Y.grpcResponseDeserializeFn_(w)}catch(H){e6(Y,new _.R_(13,"Error when deserializing response data; error: "+H+(", response: "+w)))}V&&NKQ(Y,V)}if("2"in b)for(b=EhR(Y,b["2"]),w=0;w<Y.onStatusCallbacks_.length;w++)Y.onStatusCallbacks_[w](b)});
Y.xhrNodeReadableStream_.on("end",function(){ghI(Y,fEd(Y));for(var b=0;b<Y.onEndCallbacks_.length;b++)Y.onEndCallbacks_[b]()});
Y.xhrNodeReadableStream_.on("error",function(){if(Y.JSC$17094_onErrorCallbacks_.length!=0){var b=Y.JSC$17094_xhr_.JSC$7833_lastErrorCode_;b!==0||Y.JSC$17094_xhr_.isSuccess()||(b=6);var w=-1;switch(b){case 0:var V=2;break;case 7:V=10;break;case 8:V=4;break;case 6:w=Y.JSC$17094_xhr_.getStatus();V=_.Dw(w);break;default:V=14}ghI(Y,fEd(Y));b=_.lDC(b)+", error: "+Y.JSC$17094_xhr_.getLastError();w!=-1&&(b+=", http status code: "+w);e6(Y,new _.R_(V,b))}})},fEd=function(Y){var b={},w=gZt(Y.JSC$17094_xhr_);
Object.keys(w).forEach(function(V){b[V]=w[V]});
return b},EhR=function(Y,b){var w=2,V={};
try{var H=wvb(b);w=_.HE(H,1);var f=H.getMessage();_.wl(H,GTd,3,_.V9()).length&&(V["grpc-web-status-details-bin"]=b)}catch(E){Y.JSC$17094_xhr_&&Y.JSC$17094_xhr_.getStatus()===404?(w=5,f="Not Found: "+String(Y.JSC$17094_xhr_.JSC$7833_lastUri_)):(w=14,f="Unable to parse RpcStatus: "+E)}return{code:w,details:f,metadata:V}};
Mj.prototype.on=function(Y,b){Y=="data"?this.onDataCallbacks_.push(b):Y=="metadata"?this.onMetadataCallbacks_.push(b):Y=="status"?this.onStatusCallbacks_.push(b):Y=="end"?this.onEndCallbacks_.push(b):Y=="error"&&this.JSC$17094_onErrorCallbacks_.push(b);return this};
var p5=function(Y,b){b=Y.indexOf(b);b>-1&&Y.splice(b,1)};
Mj.prototype.removeListener=function(Y,b){Y=="data"?p5(this.onDataCallbacks_,b):Y=="metadata"?p5(this.onMetadataCallbacks_,b):Y=="status"?p5(this.onStatusCallbacks_,b):Y=="end"?p5(this.onEndCallbacks_,b):Y=="error"&&p5(this.JSC$17094_onErrorCallbacks_,b);return this};
Mj.prototype.cancel=function(){this.JSC$17094_xhr_.abort()};
var NKQ=function(Y,b){for(var w=0;w<Y.onDataCallbacks_.length;w++)Y.onDataCallbacks_[w](b)},ghI=function(Y,b){for(var w=0;w<Y.onMetadataCallbacks_.length;w++)Y.onMetadataCallbacks_[w](b)},e6=function(Y,b){for(var w=0;w<Y.JSC$17094_onErrorCallbacks_.length;w++)Y.JSC$17094_onErrorCallbacks_[w](b)};
Mj.prototype.cancel=Mj.prototype.cancel;Mj.prototype.removeListener=Mj.prototype.removeListener;Mj.prototype.on=Mj.prototype.on;var Hsb=function(){var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.P(Hsb,Error);var Oo=function(Y){this.JSC$17103_worker_=Y.worker||null;this.JSC$17103_streamBinaryChunks_=Y.streamBinaryChunks||!1;this.JSC$17103_credentialsMode_=void 0};
_.DX(Oo,_.jsg);Oo.prototype.createInstance=function(){var Y=new tK(this.JSC$17103_worker_,this.JSC$17103_streamBinaryChunks_);this.JSC$17103_credentialsMode_&&Y.setCredentialsMode(this.JSC$17103_credentialsMode_);return Y};
Oo.prototype.setCredentialsMode=function(Y){this.JSC$17103_credentialsMode_=Y};
var tK=function(Y,b){_.n1.call(this);this.JSC$17107_worker_=Y;this.JSC$17107_streamBinaryChunks_=b;this.JSC$17107_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$17107_responseHeaders_=null;this.JSC$17107_method_="GET";this.JSC$17107_url_="";this.inProgress_=!1;this.JSC$17107_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.DX(tK,_.n1);tK.prototype.open=function(Y,b){if(this.readyState!=0)throw this.abort(),Error("Pj");this.JSC$17107_method_=Y;this.JSC$17107_url_=b;this.readyState=1;RF(this)};
tK.prototype.send=function(Y){if(this.readyState!=1)throw this.abort(),Error("Qj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Rj");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.JSC$17107_method_,credentials:this.JSC$17107_credentialsMode_,cache:void 0,signal:this.abortController_.signal};Y&&(b.body=Y);(this.JSC$17107_worker_||_.wB).fetch(new Request(this.JSC$17107_url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
tK.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,dH(this));this.readyState=0};
tK.prototype.handleResponse_=function(Y){if(this.inProgress_&&(this.fetchResponse_=Y,this.JSC$17107_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17107_responseHeaders_=Y.headers,this.readyState=2,RF(this)),this.inProgress_&&(this.readyState=3,RF(this),this.inProgress_)))if(this.responseType==="arraybuffer")Y.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.wB.ReadableStream!==
"undefined"&&"body"in Y){this.currentReader_=Y.body.getReader();if(this.JSC$17107_streamBinaryChunks_){if(this.responseType)throw Error("Sj");this.response=[]}else this.response=this.responseText="",this.JSC$17107_textDecoder_=new TextDecoder;UoF(this)}else Y.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var UoF=function(Y){Y.currentReader_.read().then(Y.handleDataFromStream_.bind(Y)).catch(Y.handleSendFailure_.bind(Y))};
tK.prototype.handleDataFromStream_=function(Y){if(this.inProgress_){if(this.JSC$17107_streamBinaryChunks_&&Y.value)this.response.push(Y.value);else if(!this.JSC$17107_streamBinaryChunks_){var b=Y.value?Y.value:new Uint8Array(0);if(b=this.JSC$17107_textDecoder_.decode(b,{stream:!Y.done}))this.response=this.responseText+=b}Y.done?dH(this):RF(this);this.readyState==3&&UoF(this)}};
tK.prototype.handleResponseText_=function(Y){this.inProgress_&&(this.response=this.responseText=Y,dH(this))};
tK.prototype.handleResponseArrayBuffer_=function(Y){this.inProgress_&&(this.response=Y,dH(this))};
tK.prototype.handleSendFailure_=function(){this.inProgress_&&dH(this)};
var dH=function(Y){Y.readyState=4;Y.fetchResponse_=null;Y.currentReader_=null;Y.JSC$17107_textDecoder_=null;RF(Y)};
tK.prototype.setRequestHeader=function(Y,b){this.requestHeaders_.append(Y,b)};
tK.prototype.getResponseHeader=function(Y){return this.JSC$17107_responseHeaders_?this.JSC$17107_responseHeaders_.get(Y.toLowerCase())||"":""};
tK.prototype.getAllResponseHeaders=function(){if(!this.JSC$17107_responseHeaders_)return"";for(var Y=[],b=this.JSC$17107_responseHeaders_.entries(),w=b.next();!w.done;)w=w.value,Y.push(w[0]+": "+w[1]),w=b.next();return Y.join("\r\n")};
tK.prototype.setCredentialsMode=function(Y){this.JSC$17107_credentialsMode_=Y};
var RF=function(Y){Y.onreadystatechange&&Y.onreadystatechange.call(Y)};
Object.defineProperty(tK.prototype,"withCredentials",{get:function(){return this.JSC$17107_credentialsMode_==="include"},
set:function(Y){this.setCredentialsMode(Y?"include":"same-origin")}});var XvR=function(Y){var b="";_.BL.forEach(Y,function(w,V){b+=V;b+=":";b+=w;b+="\r\n"});
return b},Dos=function(Y,b,w){if(_.BL.isEmpty(w))return Y;
w=XvR(w);if(typeof Y==="string")return _.yk(Y,_.yW(b),w);_.G_(Y,b,w);return Y};var mo7=function(){this.isInputValid_=!0;this.JSC$17113_streamPos_=0;this.leftoverInput_=""};
mo7.prototype.isInputValid=function(){return this.isInputValid_};var or=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17116_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
or.prototype.isInputValid=function(){return this.state_!=3};
var F0=function(Y,b,w,V){Y.state_=3;Y.errorMessage_="The stream is broken @"+Y.JSC$17116_streamPos_+"/"+w+". Error: "+V+". With input:\n"+b;throw Error(Y.errorMessage_);};
or.prototype.acceptsBinaryInput=function(){return!0};
or.prototype.parse=function(Y){function b(X){X&128&&F0(f,E,U,"invalid tag");(X&7)!=2&&F0(f,E,U,"invalid wire type");f.tag_=X>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&F0(f,E,U,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}
function w(X){f.countLengthBytes_++;f.countLengthBytes_==5&&X&240&&F0(f,E,U,"message length too long");f.length_|=(X&127)<<(f.countLengthBytes_-1)*7;X&128||(f.state_=2,f.countMessageBytes_=0,typeof Uint8Array!=="undefined"?f.messageBuffer_=new Uint8Array(f.length_):f.messageBuffer_=Array(f.length_),f.length_==0&&H())}
function V(X){f.messageBuffer_[f.countMessageBytes_++]=X;f.countMessageBytes_==f.length_&&H()}
function H(){if(f.tag_<15){var X={};X[f.tag_]=f.messageBuffer_;f.result_.push(X)}f.state_=0}
for(var f=this,E=Y instanceof Array?Y:new Uint8Array(Y),U=0;U<E.length;){switch(f.state_){case 3:F0(f,E,U,"stream already broken");break;case 0:b(E[U]);break;case 1:w(E[U]);break;case 2:V(E[U]);break;default:throw Error("Uj`"+f.state_);}f.JSC$17116_streamPos_++;U++}Y=f.result_;f.result_=[];return Y.length>0?Y:null};var ZBN=function(){this.errorMessage_=null;this.JSC$17119_streamPos_=0;this.base64Decoder_=new mo7;this.pbParser_=new or};
ZBN.prototype.isInputValid=function(){return this.errorMessage_===null};
var oht=function(Y,b,w){Y.errorMessage_="The stream is broken @"+Y.JSC$17119_streamPos_+". Error: "+w+". With input:\n"+b;throw Error(Y.errorMessage_);};
ZBN.prototype.acceptsBinaryInput=function(){return!1};
ZBN.prototype.parse=function(Y){this.errorMessage_!==null&&oht(this,Y,"stream already broken");var b=null;try{var w=this.base64Decoder_;if(!w.isInputValid_)throw w.isInputValid_=!1,Error("Tj`"+w.JSC$17113_streamPos_+"`stream already broken`"+Y);w.leftoverInput_+=Y;var V=Math.floor(w.leftoverInput_.length/4);if(V==0)var H=null;else{try{var f=_.XCG(w.leftoverInput_.slice(0,V*4))}catch(X){var E=w.leftoverInput_,U=X.message;w.isInputValid_=!1;throw Error("Tj`"+w.JSC$17113_streamPos_+"`"+U+"`"+E);}w.JSC$17113_streamPos_+=
V*4;w.leftoverInput_=w.leftoverInput_.slice(V*4);H=f}b=H===null?null:this.pbParser_.parse(H)}catch(X){oht(this,Y,X.message)}this.JSC$17119_streamPos_+=Y.length;return b};var PFb=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17122_streamPos_=0;this.result_=[];this.statusParsed_=!1};
PFb.prototype.isInputValid=function(){return this.errorMessage_===null};
PFb.prototype.acceptsBinaryInput=function(){return!1};
PFb.prototype.parse=function(Y){function b(X){f.state_=6;f.errorMessage_="The stream is broken @"+f.JSC$17122_streamPos_+"/"+E+". Error: "+X+". With input:\n";throw Error(f.errorMessage_);}
function w(){f.jsonStreamParser_=new _.XL({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function V(X){if(X)for(var I=0;I<X.length;I++){var k={};k[1]=X[I];f.result_.push(k)}}
function H(X){if(X){(f.statusParsed_||X.length>1)&&b("extra status: "+X);f.statusParsed_=!0;var I={};I[2]=X[0];f.result_.push(I)}}
for(var f=this,E=0;E<Y.length;){var U;if(U=f.state_!==2){a:{for(;E<Y.length;){if(!_.U_(Y[E])){U=!0;break a}E++;f.JSC$17122_streamPos_++}U=!1}U=!U}if(U)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:Y[E]==="["?(f.state_=1,E++,f.JSC$17122_streamPos_++):b("unexpected input token");break;case 1:Y[E]==="["?(f.state_=2,w()):Y[E]===","||Y.slice(E,E+5)=="null,"?f.state_=3:Y[E]==="]"?(f.state_=5,E++,f.JSC$17122_streamPos_++):b("unexpected input token");break;case 2:U=f.jsonStreamParser_.parse(Y.substring(E));
V(U);f.jsonStreamParser_.done()?(f.state_=3,U=f.jsonStreamParser_.JSC$9429_buffer_,f.JSC$17122_streamPos_+=Y.length-E-U.length,Y=U,E=0):(f.JSC$17122_streamPos_+=Y.length-E,E=Y.length);break;case 3:Y[E]===","||Y.slice(E,E+5)=="null,"?(f.state_=4,w(),f.jsonStreamParser_.parse("["),E+=Y[E]===","?1:5,f.JSC$17122_streamPos_++):Y[E]==="]"&&(f.state_=5,E++,f.JSC$17122_streamPos_++);break;case 4:U=f.jsonStreamParser_.parse(Y.substring(E));H(U);f.jsonStreamParser_.done()?(f.state_=5,U=f.jsonStreamParser_.JSC$9429_buffer_,
f.JSC$17122_streamPos_+=Y.length-E-U.length,Y=U,E=0):(f.JSC$17122_streamPos_+=Y.length-E,E=Y.length);break;case 5:b("extra input after stream end")}}return f.result_.length>0?(Y=f.result_,f.result_=[],Y):null};var IER=function(Y){this.JSC$17125_xhr_=Y;this.JSC$17125_parser_=null;this.status_=this.JSC$17125_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17125_textDecoder_=null;this.JSC$17125_eventHandler_=new _.fM(this);this.JSC$17125_eventHandler_.listen(this.JSC$17125_xhr_,"readystatechange",this.JSC$17127_readyStateChangeHandler_)},L5=function(Y,b){Y.status_!=b&&(Y.status_=b,Y.statusHandler_&&Y.statusHandler_())},S6=function(Y){Y.JSC$17125_eventHandler_.removeAll();
if(Y.JSC$17125_xhr_){var b=Y.JSC$17125_xhr_;Y.JSC$17125_xhr_=null;b.abort();b.dispose()}};
IER.prototype.getStatus=function(){return this.status_};
IER.prototype.JSC$17127_readyStateChangeHandler_=function(Y){Y=Y.target;try{if(Y==this.JSC$17125_xhr_)a:{var b=_.L1(this.JSC$17125_xhr_),w=this.JSC$17125_xhr_.JSC$7833_lastErrorCode_,V=this.JSC$17125_xhr_.getStatus(),H=this.JSC$17125_xhr_.getResponseText();Y=[];if(this.JSC$17125_xhr_.getResponse()instanceof Array){var f=this.JSC$17125_xhr_.getResponse();f.length>0&&f[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,Y=f)}if(!(b<3||b==3&&!H&&Y.length==0))if(V=V==200||V==206,b==4&&(w==8?L5(this,
7):w==7?L5(this,8):V||L5(this,3)),this.JSC$17125_parser_||(this.JSC$17125_parser_=Bhb(this.JSC$17125_xhr_),this.JSC$17125_parser_==null&&L5(this,5)),this.status_>2)S6(this);else{if(Y.length>this.JSC$17125_pos_){var E=Y.length;w=[];try{if(this.JSC$17125_parser_.acceptsBinaryInput())for(var U=0;U<E;U++){var X=this.JSC$17125_parser_.parse(Array.from(Y[U]));X&&(w=w.concat(X))}else{X="";if(!this.JSC$17125_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Vj");this.JSC$17125_textDecoder_=new TextDecoder}for(U=
0;U<E;U++)X+=this.JSC$17125_textDecoder_.decode(Y[U],{stream:b==4&&U==E-1});w=this.JSC$17125_parser_.parse(X)}Y.splice(0,E);w&&this.dataHandler_(w)}catch(k){L5(this,5);S6(this);break a}}else if(H.length>this.JSC$17125_pos_){U=H.slice(this.JSC$17125_pos_);this.JSC$17125_pos_=H.length;try{var I=this.JSC$17125_parser_.parse(U);I!=null&&this.dataHandler_&&this.dataHandler_(I)}catch(k){L5(this,5);S6(this);break a}}b==4?(H.length!=0||this.hasStreamingResponseData_?L5(this,2):L5(this,4),S6(this)):L5(this,
1)}}}catch(k){L5(this,6),S6(this)}};var kIg=function(Y){Y=this.xhrReader_=Y;var b=(0,_.nC)(this.onData_,this);Y.dataHandler_=b;Y=this.xhrReader_;b=(0,_.nC)(this.onStatusChange_,this);Y.statusHandler_=b;this.JSC$17129_callbackMap_={};this.callbackOnceMap_={}};
_.g=kIg.prototype;_.g.on=function(Y,b){var w=this.JSC$17129_callbackMap_[Y];w||(w=[],this.JSC$17129_callbackMap_[Y]=w);w.push(b);return this};
_.g.addListener=function(Y,b){this.on(Y,b);return this};
_.g.removeListener=function(Y,b){var w=this.JSC$17129_callbackMap_[Y];w&&_.$b(w,b);(Y=this.callbackOnceMap_[Y])&&_.$b(Y,b);return this};
_.g.once=function(Y,b){var w=this.callbackOnceMap_[Y];w||(w=[],this.callbackOnceMap_[Y]=w);w.push(b);return this};
_.g.onData_=function(Y){var b=this.JSC$17129_callbackMap_.data;b&&lEt(Y,b);(b=this.callbackOnceMap_.data)&&lEt(Y,b);this.callbackOnceMap_.data=[]};
var lEt=function(Y,b){for(var w={},V=0;V<Y.length;w={message$jscomp$969:void 0},V++)w.message$jscomp$969=Y[V],b.forEach(function(H){return function(f){try{f(H.message$jscomp$969)}catch(E){}}}(w))};
kIg.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:hot(this,"readable");break;case 5:case 6:case 4:case 7:case 3:hot(this,"error");break;case 8:hot(this,"close");break;case 2:hot(this,"end")}};
var hot=function(Y,b){var w=Y.JSC$17129_callbackMap_[b];w&&w.forEach(function(V){try{V()}catch(H){}});
(w=Y.callbackOnceMap_[b])&&w.forEach(function(V){V()});
Y.callbackOnceMap_[b]=[]};var xod=function(){var Y={format:"jspb"};Y=Y===void 0?{}:Y;this.suppressCorsPreflight=Y.suppressCorsPreflight||_.Aq("suppressCorsPreflight",Y)||!1;this.withCredentials=Y.withCredentials||_.Aq("withCredentials",Y)||!1;this.streamInterceptors=Y.streamInterceptors||[];this.unaryInterceptors=Y.unaryInterceptors||[];this.workerScope=Y.workerScope;this.chunkedServerStreaming=Y.useFetchDownloadStreams||!1},Q1X=function(Y,b,w,V,H,f){f=f===void 0?{}:f;
var E=b.substring(0,b.length-H.name.length),U,X=(U=f)==null?void 0:U.signal;return qHA(function(I){return new Promise(function(k,l){if(X==null?0:X.aborted){var x=new _.R_(1,"Aborted");x.cause=X.reason;l(x)}else{var Q={},Z=s1t(Y,I,E);Z.on("error",function(e){return void l(e)});
Z.on("metadata",function(e){Q=e});
Z.on("data",function(e){var O=Q;O=O===void 0?{}:O;k(new LBX(e,O))});
X&&X.addEventListener("abort",function(){Z.cancel();var e=new _.R_(1,"Aborted");e.cause=X.reason;l(e)})}})},Y.unaryInterceptors).call(Y,SvI(H,w,V)).then(function(I){return I.responseMessage})},aF=function(Y,b,w,V,H,f){f=f===void 0?{}:f;
return Q1X(Y,b,w,V,H,f)};
xod.prototype.serverStreaming=function(Y,b,w,V){var H=this,f=Y.substring(0,Y.length-V.name.length);return vht(function(E){var U=E.methodDescriptor,X=E.getMetadata(),I=PXX(H,!1);X=Zst(H,X,I,f+U.getName());var k=BK7(I,U.responseDeserializeFn,!0);E=U.requestSerializeFn(E.requestMessage);I.send(X,"POST",E);return k},this.streamInterceptors).call(this,SvI(V,b,w))};
var s1t=function(Y,b,w){var V=b.methodDescriptor,H=b.getMetadata(),f=PXX(Y,!0);Y=Zst(Y,H,f,w+V.getName());w=BK7(f,V.responseDeserializeFn,!1);cdQ(w,H["X-Goog-Encode-Response-If-Executable"]==="base64");b=V.requestSerializeFn(b.requestMessage);f.send(Y,"POST",b);return w},PXX=function(Y,b){b=Y.chunkedServerStreaming&&!b;
return Y.workerScope||b?new _.F6(new Oo({worker:Y.workerScope,streamBinaryChunks:b})):new _.F6},Zst=function(Y,b,w,V){b["Content-Type"]="application/json+protobuf";
b["X-User-Agent"]="grpc-web-javascript/0.1";var H=b.Authorization;if(H&&YHF.has(H.split(" ")[0])||Y.withCredentials)w.JSC$7833_withCredentials_=!0;if(Y.suppressCorsPreflight)V=Dos(V,"$httpHeaders",b);else for(Y=_.N(Object.keys(b)),H=Y.next();!H.done;H=Y.next())H=H.value,w.headers.set(H,b[H]);return V},BK7=function(Y,b,w){if(w){w=new IER(Y);
var V=new kIg(w)}return new Mj({xhr:Y,nodeReadableStream:V},b)},vht=function(Y,b){return b.reduce(function(w,V){return function(H){return V.intercept(H,w)}},Y)},qHA=function(Y,b){return b.reduce(function(w,V){return function(H){return V.intercept(H,w)}},Y)};var nhX=function(Y){this.client_=new xod;this.hostname_=Y==void 0?Y:Y.replace(/\/+$/,"")};
_.g=nhX.prototype;_.g.JSC$17147_depositGoogleCredential=function(Y,b,w){return aF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Y,b||{},WBN,w)};
_.g.deleteLink=function(Y,b,w){return aF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Y,b||{},rjN,w)};
_.g.JSC$17147_finishOAuth=function(Y,b,w){return aF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Y,b||{},i_t,w)};
_.g.getLink=function(Y,b,w){return aF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Y,b||{},AjR,w)};
_.g.startLinkingSession=function(Y,b,w){return aF(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Y,b||{},ul7,w)};var MPX=[0,zQd,1,iAX,[0,_.YS,[0,WQA,-1]],[0,KQs],[0,AAd,-1]];var eoA=function(){this.storage=new Map},OsO=function(Y,b,w,V,H){if(!Y.storage.has(b))return null;
Y=_.N(Y.storage.get(b));for(b=Y.next();!b.done;b=Y.next())if(b=b.value,!H||b.linkName===H)if(w&&b.scopes&&pvF(b.scopes,w)||V&&b.capabilities&&pvF(b.capabilities,V))return b;return null},tPX=function(Y,b,w){if(!w)Y.storage.delete(b);
else if(Y.storage.has(b)){var V=Y.storage.get(b).filter(function(H){return H.linkName!==w});
V.length>0?Y.storage.set(b,V):Y.storage.delete(b)}},pvF=function(Y,b){b=_.N(b);
for(var w=b.next();!w.done;w=b.next())if(!Y.has(w.value))return!1;return!0};var Rod=function(){var Y=_.zO("LINK_GAL_DOMAIN");this.alsDomain1p=_.zO("LINK_GAL_DOMAIN");this.alsDomain3p=Y;this.clientEnvironment=0;this.supportedFlows=this.clientXd3=void 0;this.accountLinkingEntryPoint=0;this.galSdkEventHandler=this.dataUsageNoticeConfig=void 0;this.loggerType=0;this.colorScheme=2;this.showCloseOption=!0},dot=function(Y,b){Y.apiKey=b;
return Y};
Rod.prototype.build=function(){var Y={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Wj");Y.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Xj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Yj");Y.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(Y.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)Y.apiKey=
this.apiKey,Y.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Zj");Y.oauthToken=this.oauthToken;Y.alsDomain=this.alsDomain3p}Y.clientXd3=this.clientXd3;Y.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(Y.authUser=this.authUser);this.bucket!==void 0&&(Y.bucket=this.bucket);this.completionUrl!==void 0&&(Y.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(Y.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(Y.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(Y.locale=this.locale);Y.loggerType=this.loggerType;Y.clientEnvironment=this.clientEnvironment;Y.colorScheme=this.colorScheme;Y.showCloseOption=this.showCloseOption;return Y};var Ir=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Ir,_.SQ);var FZA=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(FZA,_.SQ);var LZt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(LZt,_.SQ);var lU=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(lU,_.SQ);var SHF=function(Y){return _.ay(Y,1)};var aEX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(aEX,_.SQ);var RGX=_.wE(aEX),k6=[1,2,3,4,5];var eGQ=function(Y){try{return RGX(Y)}catch(b){return null}},rdt=function(){},pyg=function(Y,b){switch(_.pE(b,k6)){case 4:return(b=_.WZ(b,LZt,4,k6))&&Y.logStateTransition(_.ay(b,1)),!0;
case 5:return(b=_.WZ(b,FZA,5,k6))&&Y.logInternalEvent(_.ay(b,1)),!0}return!1},dYR=function(Y){switch(Y){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.cI(Y)}};var nPX=function(Y,b){var w=this;this.validator=Y;this.messageListener=b;this.dismissCallback=function(){zoX(w,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17176_receiveMessage=function(V){V.type==="message"&&(V=V.event_,V!==null&&(new URL(w.iframe.src)).origin===V.origin&&w.validator(V.data,V.origin)&&!w.messageListener(V.data)&&(w.JSC$17176_resolveCb!==void 0&&w.JSC$17176_resolveCb(V.data),WZR(w)))}},tkA=function(Y,b,w){Y.uiHandler!==void 0&&zoX(Y,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(V,H){Y.JSC$17176_resolveCb=V;Y.JSC$17176_rejectCb=H;Y.iframe=document.createElement("iframe");_.Rg(Y.iframe,b);Y.uiHandler=w.displayContent(Y.iframe,Y.dismissCallback);_.ez(window,"message",Y.JSC$17176_receiveMessage,!1,Y)})},zoX=function(Y,b){Y.JSC$17176_rejectCb!==void 0&&Y.JSC$17176_rejectCb(b);
WZR(Y)},WZR=function(Y){Y.uiHandler!==void 0&&Y.uiHandler.hideContent();
_.BV(window,"message",Y.JSC$17176_receiveMessage,!1,Y);Y.JSC$17176_resolveCb=void 0;Y.JSC$17176_rejectCb=void 0;Y.uiHandler=void 0;Y.iframe=void 0};var KZX=function(Y){if(Y===2){var b;Y=((b=window)==null?0:b.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return Y},OBR=function(Y){Y=KZX(Y);
switch(Y){case 0:return"light";case 1:return"dark";default:_.cI(Y)}};var MkR=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),isI=function(Y,b){this.JSC$17188_linkingSession=Y;this.noticeConfig=b;this.displayInfoMap=new Map;var w=new Map;if(_.BZ(this.JSC$17188_linkingSession,$RO,7))for(Y=_.EK(this.JSC$17188_linkingSession,$RO,7),Y=_.wl(Y,yjN,1,_.V9()),Y=_.N(Y),b=Y.next();!b.done;b=Y.next())b=b.value,w.set(_.ay(b,1),_.dGa(_.EK(b,_.kba,3)));if(w.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){b=this.noticeConfig.enabledDataUsageNoticeUis;Y=b.has(0)?w.get(1):void 0;b=b.has(1)?w.get(2):void 0;w=Y!==void 0&&b!==void 0?w.get(3):void 0;var V=this.noticeConfig.nestedOrigins;var H=new aEX;var f=new Ir;H=_.gE(H,2,k6,f);f=new aEX;var E=new Ir;f=_.gE(f,3,k6,E);E=[];Y!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:Y,lastEvent:H,nestedOrigins:V}]),E.push({trustedUrl:Y,lastEvent:H,nestedOrigins:V}));b!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:b,lastEvent:f,nestedOrigins:V}]),E.push({trustedUrl:b,lastEvent:f,nestedOrigins:V}));w!==void 0?this.displayInfoMap.set(3,[{trustedUrl:w,lastEvent:f,nestedOrigins:V}]):this.displayInfoMap.set(3,E)}};var AdX=function(Y){var b=new eoA;this.galService=Y;this.galCache=b};
AdX.prototype.getLink=function(Y){var b=Y.serviceId;var w=Y.scopes;var V=Y.capabilities;var H=Y.linkName;var f=this,E;return _.c(function(U){if(V!==void 0&&w!==void 0)throw Error("$j");E=OsO(f.galCache,b,w,V,H);return E!==null?U.return(E):U.return(f.galService.getLink({serviceId:b,sessionId:Math.floor(Math.random()*2147483648),scopes:w,capabilities:V,linkName:H}).then(function(X){X=rhR(X);var I=f.galCache;I.storage.has(b)?I.storage.get(b).push(X):I.storage.set(b,[X]);return X}))})};
AdX.prototype.deleteLink=function(Y,b,w){var V=this;return _.c(function(H){tPX(V.galCache,Y,w);return H.return(V.galService.deleteLink({serviceId:Y,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:b,linkName:w}).then(function(){return!0}))})};var ydt=function(Y,b){var w=this;this.validator=Y;this.msgHandler=b;this.closedPopupTimeout=this.JSC$17210_rejectCb=this.JSC$17210_resolveCb=this.popup=null;this.JSC$17210_receiveMessage=function(V){if(V!==null&&(V=V.event_,V.source===w.popup)){var H=V.data;if(w.validator(H,V.origin)){var f;(f=w.msgHandler)!=null&&f.call(w,H)||(w.JSC$17210_resolveCb!==null&&w.JSC$17210_resolveCb(H),CXb(w))}}}};
ydt.prototype.open=function(Y,b){var w=this;this.popup!==null&&$og(this);return new Promise(function(V,H){w.JSC$17210_resolveCb=V;w.JSC$17210_rejectCb=H;w.popup=_.Fk(window,Y,"",b);_.ez(window,"message",w.JSC$17210_receiveMessage,!1,w);j1O(w)})};
var $og=function(Y,b){Y.JSC$17210_rejectCb!==null&&Y.JSC$17210_rejectCb(b);CXb(Y)},CXb=function(Y){Y.closedPopupTimeout&&(Y.closedPopupTimeout.cancel(),Y.closedPopupTimeout=null);
Y.popup&&Y.popup.close();_.BV(window,"message",Y.JSC$17210_receiveMessage,!1,Y);Y.popup=null;Y.JSC$17210_resolveCb=null;Y.JSC$17210_rejectCb=null},j1O=function(Y){Y.closedPopupTimeout=_.D1o(100).then(function(){Y.popup?Y.popup.closed?GI7(Y):j1O(Y):$og(Y,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},GI7=function(Y){Y.closedPopupTimeout=_.D1o(100).then(function(){$og(Y,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var TKX=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),Jdt=function(Y,b,w,V,H,f,E,U,X,I){var k=this;this.serviceId=Y;this.sessionId=b;this.galService=w;this.oauthDetails=V;this.galLogger=H;this.interactionMode=f;this.redirectServiceUrl=E;this.consentLanguageKeys=U;this.dynamicUrlParameters=X;this.partnerConfigMinReadTimestamp=I;this.started=!1;this.JSC$17216_dataValidator=function(l,
x){var Q=TKX.has(x);Q||k.redirectServiceUrl===void 0||(Q=k.redirectServiceUrl===x);return Q?l.sentinel==="gdi":!1}};
Jdt.prototype.complete=function(){var Y=this,b;return _.c(function(w){if(Y.interactionMode!==1)return w.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=x6.getRedirectStateFromUri();return b===null?w.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):w.return(uzQ(Y,b))})};
Jdt.prototype.start=function(){var Y=this,b;return _.c(function(w){if(Y.started)return w.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Su(Y.oauthDetails,1))return w.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(Y.interactionMode===1)return x6.setLocation(_.Su(Y.oauthDetails,1)),w.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));Y.started=!0;Y.galLogger.logStateTransition(5);
b=x6.getPostMessagePopup(Y.JSC$17216_dataValidator);return w.return(b.open(_.Su(Y.oauthDetails,1),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(V){Y.started=!1;var H=Y.galLogger;if((V==null?void 0:V.error)!==void 0)throw H.logInternalEvent(59),Error("ak");if((V==null?void 0:V.redirect_state)===void 0)throw H.logInternalEvent(131),Error("bk");return uzQ(Y,V.redirect_state)}).catch(function(V){Y.started=
!1;
return V.errorCode!==void 0?{statusCode:V.errorCode,statusMessage:V.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var uzQ=function(Y,b){return _.c(function(w){return w.return(Y1X(Y.galService,{serviceId:Y.serviceId,sessionId:Y.sessionId,dynamicUrlParameters:Y.dynamicUrlParameters,redirectState:b,consentLanguageKeys:Y.consentLanguageKeys,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp}).then(function(V){var H={statusCode:1,link:rhR(V.getLink())};ZHt(_.MX(V,3))!==void 0&&(H.callerState=ZHt(_.MX(V,3)));Y.galLogger.logInternalEvent(134);return H}))})},x6={getPostMessagePopup:function(Y){return new ydt(Y)},
getRedirectStateFromUri:function(){var Y=_.$G(x6.getLocation()).fragment_;return(new _.Xa(Y)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(Y){_.$H(window.location,_.PN(Y))},
createOAuthFlow:function(Y,b){return new Jdt(Y.serviceId,Y.sessionId,Y.galService,b,Y.galLogger,Y.interactionMode,Y.redirectServiceUrl,Y.consentLanguageKeys,Y.dynamicUrlParameters,Y.partnerConfigMinReadTimestamp)}};var bxd=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(bxd,_.SQ);var wTQ=_.wE(bxd);var VVb=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Hxt=function(Y,b,w,V,H,f,E,U,X){var I=this;this.serviceId=Y;this.sessionId=b;this.galService=w;this.gsiWebFlowDetails=V;this.colorScheme=H;this.showCloseOption=f;this.galLogger=E;this.interactionMode=U;this.redirectServiceUrl=X;this.started=!1;this.JSC$17228_dataValidator=function(k,l){var x=VVb.has(l);x||I.redirectServiceUrl===
void 0||(x=I.redirectServiceUrl===l);return x?k.sentinel==="gal":!1};
this.logEventProcessor=function(k){return k.result?(k=eGQ(k.result))?pyg(I.galLogger,k):!1:!1}};
Hxt.prototype.complete=function(){var Y=this,b,w;return _.c(function(V){if(Y.interactionMode!==1)return V.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=qW.getRedirectStateFromUri();if(b===void 0)return Y.galLogger.JSC$17168_logErrorEvent(131),V.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return w=gEX(Y,b),V.return(fHt(Y,w))}catch(H){return V.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Hxt.prototype.start=function(){var Y=this,b;return _.c(function(w){if(Y.started)return w.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Su(Y.gsiWebFlowDetails,1))return w.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(Y.interactionMode===1)return qW.setLocation(NvA(Y,_.Su(Y.gsiWebFlowDetails,1))),w.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
Y.started=!0;b=qW.getPostMessagePopup(Y.JSC$17228_dataValidator,Y.logEventProcessor);return w.return(b.open(NvA(Y,_.Su(Y.gsiWebFlowDetails,1)),"width=500,height=700,\n        top="+Math.max((window.screen.availHeight-700)/2,0)+",left="+Math.max((window.screen.availWidth-500)/2,0)).then(function(V){Y.started=!1;if((V==null?void 0:V.result)===void 0)throw Y.galLogger.JSC$17168_logErrorEvent(131),Error("bk");V=gEX(Y,V.result);return fHt(Y,V)}).catch(function(V){Y.started=!1;
return V.errorCode!==void 0?{statusCode:V.errorCode,statusMessage:V.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var NvA=function(Y,b){Y=["result_channel",Y.interactionMode===1?"2":"1","color_scheme",OBR(Y.colorScheme),"show_close_option",Y.showCloseOption];return jRI(b,Y)},fHt=function(Y,b){if(b!==null&&_.BZ(b,lU,2)){var w,V=b==null?void 0:(w=_.EK(b,lU,2))==null?void 0:_.ay(w,2);
V&&Y.galLogger.JSC$17168_logErrorEvent(dYR(V));return SHF(_.EK(b,lU,2))===1?Promise.resolve({statusCode:10,statusMessage:"flow cannot start due to recoverable reason"}):Promise.resolve({statusMessage:"Web-endpoint returned an error",statusCode:7})}return Y.galService.getLink({serviceId:Y.serviceId,sessionId:Y.sessionId,consistencyKey:_.Su(b,1)}).then(function(H){H=rhR(H);Y.galLogger.logInternalEvent(134);return{statusCode:1,link:H}})},gEX=function(Y,b){b=wTQ(b);
if(!_.BZ(b,lU,2)&&_.Su(b,1)==="")throw Y.galLogger.JSC$17168_logErrorEvent(5),Error("ck");return b},qW={getPostMessagePopup:function(Y,b){return new ydt(Y,b)},
getRedirectStateFromUri:function(){return _.jh(_.$G(qW.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(Y){_.$H(window.location,_.PN(Y))},
createStreamlinedFlow:function(Y,b){return new Hxt(Y.serviceId,Y.sessionId,Y.galService,b,Y.colorScheme,Y.showCloseOption,Y.galLogger,Y.interactionMode,Y.redirectServiceUrl)}};var bSd=function(){var Y=_.hgG("GAL");this.storage=Y?new _.nH(Y):null};var rH=function(){};
_.P(rH,rdt);rH.prototype.logStateTransition=function(){};
rH.prototype.logInternalEvent=function(){};
rH.prototype.JSC$17168_logErrorEvent=function(){};var EEI=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(EEI,_.SQ);EEI.prototype.getCompletionUrl=function(){return _.Su(this,15)};var z7=function(Y,b,w,V,H,f){this.serviceId=Y;this.environment=b;this.sessionId=w;this.colorSchemeSelected=V;this.colorThemeDisplayed=H;this.JSC$17241_transport=f;this.currentState=1};
_.P(z7,rdt);z7.prototype.logStateTransition=function(Y){var b=c9R(this);b=_.cO(b,3,this.currentState);b=_.cO(b,1,Y);this.currentState=Y;Y=HVQ(1);this.dispatch(b,Y)};
z7.prototype.logInternalEvent=function(Y){Y=HVQ(Y);this.dispatch(c9R(this),Y)};
z7.prototype.JSC$17168_logErrorEvent=function(Y){var b=c9R(this);b=_.cO(b,1,10);Y=HVQ(Y);this.dispatch(b,Y)};
var c9R=function(Y){var b=new EEI;b=_.cO(b,1,Y.currentState);b=_.hP(b,7,Y.serviceId);var w,V;var H=((w=window)==null?0:(V=w.location)==null?0:V.href)?_.$G(window.location.href).JSC$8068_domain_:"NO_PACKAGE_NAME";w=_.hP(b,8,H);w=_.cO(w,6,Y.environment);w=_.hP(w,5,"100");w=_.cO(w,11,Y.colorSchemeSelected);return _.cO(w,12,Y.colorThemeDisplayed)};
z7.prototype.dispatch=function(Y,b){b===void 0&&(b=new _.I_);var w=b;Y=Y.serialize();w=_.hP(w,8,Y);_.By(w,12,this.sessionId);this.JSC$17241_transport.dispatch(b)};var Uyt=function(Y,b){this.loggerType=Y;this.sessionIndex=b!=null?b:0},XTs;
Uyt.prototype.create=function(Y,b,w,V,H){switch(this.loggerType){case 0:return new rH;case 1:return XTs||(XTs=(new _.mt(555,this.sessionIndex.toString())).build()),new z7(Y,b,w,V,H,XTs);default:_.cI(this.loggerType,"unknown logger type")}};var sE=[6,2,3,1],fkX=new Map([[4,1],[1,6],[2,2],[3,3]]),iBd={statusCode:7,statusMessage:"Failed to create flow object"},uts=function(Y,b,w,V,H,f,E,U,X,I){this.serviceId=Y;this.sessionId=b;this.config=w;this.galService=V;this.JSC$17248_linkingSession=H;this.googleScopes=f;this.callerState=E;this.consentLanguageKeys=U;this.dynamicUrlParameters=X;this.partnerConfigMinReadTimestamp=I;this.currentFlow=0;V=this.JSC$17248_linkingSession;H=new Set;_.BZ(V,jYA,1)&&H.add(1);_.BZ(V,G9X,2)&&_.BZ(V,GMg,6)&&H.add(2);
_.BZ(V,jLN,3)&&_.BZ(V,GMg,6)&&H.add(3);_.BZ(V,CAt,4)&&H.add(6);this.supportedFlows=H;V=w.loggerType;H=w.clientEnvironment;a:{f=w.colorScheme;switch(f){case 0:f=1;break a;case 1:f=2;break a;case 2:f=3;break a;default:_.cI(f)}f=void 0}a:{E=w.colorScheme;E=KZX(E);switch(E){case 0:E=1;break a;case 1:E=2;break a;default:_.cI(E)}E=void 0}this.galLogger=(new Uyt(V,w.authUser)).create(Y,H,b,f,E)},myR=function(Y){return new Promise(function(b){var w,V,H,f,E,U,X,I,k,l;
return _.c(function(x){switch(x.nextAddress){case 1:w=ThO(Y.currentFlow,Y.supportedFlows),V=!1,H=new isI(Y.JSC$17248_linkingSession,Y.config.dataUsageNoticeConfig);case 2:if(w===void 0){x.jumpTo(4);break}_.ct(x,5);var Q=H,Z=w,e=void 0;V?Z===1&&(e=Q.displayInfoMap.get(2)):Z===2||Z===3?e=Q.displayInfoMap.get(1):Z===1&&(e=Q.displayInfoMap.get(3));f=e?e:[];E=Y.consentLanguageKeys;U=_.N(f);X=U.next();case 7:if(X.done)return Y.currentFlow=w,_.D(x,CFI(DyO(Y,E)),11);I=X.value;return _.D(x,Fpb(I,Y.config.dataUsageNoticeConfig.uiAdapter,
Y.config.colorScheme,Y.galLogger),10);case 10:k=x.yieldResult;if(k.statusCode!==1)return w6g(Y.serviceId),Y.currentFlow=0,b(hg({statusCode:k.statusCode,statusMessage:k.statusMessage},Y.callerState)),x.return();k.consentLanguageKeys!==void 0&&(E=k.consentLanguageKeys);X=U.next();x.jumpTo(7);break;case 11:l=x.yieldResult;if(l.statusCode!==10)return l.statusCode!==6&&(w6g(Y.serviceId),Y.currentFlow=0),l.statusCode!==1&&Y.callerState!==void 0&&(l.callerState=Y.callerState),b(l),x.return();_.$u(x,6);break;
case 5:_.mS(x);case 6:w=ThO(Y.currentFlow,Y.supportedFlows);V=!0;x.jumpTo(2);break;case 4:w6g(Y.serviceId),Y.currentFlow=0,b(hg({statusCode:12,statusMessage:"Linking failed"},Y.callerState)),_.om(x)}})})},HS7=function(Y,b,w){Y.currentFlow=b;
return yhO(DyO(Y,w)).then(function(V){return V.statusCode===10&&Y.config.interactionMode===1&&ThO(Y.currentFlow,Y.supportedFlows)!==void 0?myR(Y):V})},DyO=function(Y,b){return{flowParams:{serviceId:Y.serviceId,
sessionId:Y.sessionId,galService:Y.galService,galLogger:Y.galLogger,interactionMode:Y.config.interactionMode,redirectServiceUrl:Y.config.redirectServiceUrl,colorScheme:Y.config.colorScheme,consentLanguageKeys:b,dynamicUrlParameters:Y.dynamicUrlParameters,showCloseOption:Y.config.showCloseOption,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp},currentFlow:Y.currentFlow,config:Y.config,session:Y.JSC$17248_linkingSession,googleScopes:Y.googleScopes,callerState:Y.callerState}};var EDN=function(Y,b){this.config=Y;this.galService=b.getService();this.JSC$17261_galRepository=b.JSC$17279_galRepository};
EDN.prototype.getLink=function(Y,b){return oEO(this,Y,b)};
var oEO=function(Y,b,w){return Y.JSC$17261_galRepository.getLink({serviceId:b,scopes:void 0,capabilities:void 0,linkName:w}).then(function(V){return{statusCode:1,link:V}}).catch(function(V){return{statusCode:NSR(V.code),
statusMessage:V.message}})};
EDN.prototype.deleteLink=function(Y,b){return this.JSC$17261_galRepository.deleteLink(Y,this.config.accountLinkingEntryPoint,b).then(function(){return{statusCode:1}}).catch(function(w){return{statusCode:NSR(w.code),
statusMessage:w.message}})};
EDN.prototype.startLinkingSession=function(Y){var b=Y.serviceId;var w=Y.sessionId;return YZA({serviceId:b,sessionId:w!==void 0?w:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:Y.loginHint,callerState:Y.callerState,consentLanguageKeys:Y.consentLanguageKeys,linkName:Y.linkName,dynamicUrlParameters:Y.dynamicUrlParameters,partnerConfigMinReadTimestamp:Y.partnerConfigMinReadTimestamp})};var Wr=function(Y,b,w,V,H,f,E){this.apiKey=b;this.authUser=w;this.oauthToken=V;this.bucket=H;this.locale=f;this.galSdkEventHandler=E;if(V===void 0){if(b===void 0)throw Error("dk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new nhX(Y)};
Wr.prototype.deleteLink=function(Y){var b=Y.serviceId;var w=Y.sessionId;var V=Y.accountLinkingEntryPoint;var H=Y.linkName;var f=this,E;return _.c(function(U){var X=(new vr).setHeader(K5(f,w));var I=IHO({serviceId:b,linkName:H});X=_.HN(X,2,I);E=_.iL(X,3,V);return U.return(f.makeRequest(f.galServiceClient.deleteLink,E,[1,3],[2,4]))})};
var Y1X=function(Y,b){var w=b.serviceId;var V=b.sessionId;var H=b.dynamicUrlParameters;var f=b.redirectState;var E=b.consentLanguageKeys;var U=b.partnerConfigMinReadTimestamp;var X;return _.c(function(I){var k=(new ZN).setHeader(K5(Y,V,H));k=_.bf(k,2,w);X=_.bf(k,4,f);E!==void 0&&_.bf(X,5,E);U!==void 0&&_.HN(X,6,U);return I.return(Y.makeRequest(Y.galServiceClient.JSC$17147_finishOAuth,X,[1,3],[2,4]))})};
Wr.prototype.getLink=function(Y){var b=Y.serviceId;var w=Y.sessionId;var V=Y.scopes;var H=Y.capabilities;var f=Y.consistencyKey;var E=Y.linkName;var U=this,X;return _.c(function(I){var k=(new Br).setHeader(K5(U,w)),l=IHO({serviceId:b,scopes:V,capabilities:H,linkName:E});X=_.HN(k,2,l);f!==void 0&&(k=t9b(),k=_.bf(k,2,f),_.HN(X,3,k));return I.return(U.makeRequest(U.galServiceClient.getLink,X,[1,3],[2,4]))})};
var $YN=function(Y,b){var w=b.serviceId;var V=b.sessionId;var H=b.googleScopes;var f=b.consistencyKey;var E;return _.c(function(U){var X=(new Pr).setHeader(K5(Y,V));X=_.bf(X,2,w);var I=Array.from(H.values());X=_.PD(X,3,I,_.SX);I=t9b();I=_.bf(I,2,f);E=_.HN(X,4,I);return U.return(Y.makeRequest(Y.galServiceClient.JSC$17147_depositGoogleCredential,E,[1,3],[2,4]))})};
Wr.prototype.startLinkingSession=function(Y){var b=Y.serviceId;var w=Y.sessionId;var V=Y.scopes;var H=Y.capabilities;var f=Y.loginHint;var E=Y.supportedFlows;var U=Y.completionUrl;var X=Y.usePingPong;var I=Y.twoWayLinking;var k=Y.accountLinkingEntryPoint;var l=Y.callerState;var x=Y.consentLanguageKeys;var Q=Y.googleScopes;var Z=Y.dataUsageNoticeConfig;var e=Y.linkName;var O=Y.dynamicUrlParameters;var L=Y.partnerConfigMinReadTimestamp;var r=this,C,W;return _.c(function(y){if(H!==void 0&&V!==void 0)throw Error("$j");
var G=(new n5).setHeader(K5(r,w,O));C=_.bf(G,2,b);e!==void 0&&_.bf(C,14,e);if(H!==void 0){G=C;var Nr=Array.from(H.values());_.PD(G,5,Nr,_.SX)}else V!==void 0&&(G=C,Nr=Array.from(V.values()),_.PD(G,3,Nr,_.SX));U!==void 0&&_.bf(C,6,U);X!==void 0&&_.pM(C,15,X);E!==void 0&&(G=C,Nr=Array.from(E.values()),_.PD(G,4,Nr,_.sX));if(I!==void 0){if(I&&(!Q||Q.size===0))throw Error("ek");_.pM(C,8,I)}k!==void 0&&_.iL(C,9,k);f!==void 0&&_.bf(C,13,f);l!==void 0&&(G=C,Nr=(new TextEncoder).encode(l),_.Zg(G,12,_.Lo(Nr,
!1),_.F$()));x!==void 0&&_.bf(C,16,x);L!==void 0&&_.HN(C,18,L);if(Z!==void 0&&Z.size>0||Q!==void 0&&Q.size>0)W=new Jjs,Q!==void 0&&Q.size>0&&(G=W,Nr=Array.from(Q.values()),_.PD(G,1,Nr,_.SX)),Z!==void 0&&(Z.has(0)&&_.Ntq(W,2,_.sX,1,_.QN),Z.has(1)&&_.Ntq(W,2,_.sX,2,_.QN)),_.HN(C,17,W);return y.return(r.makeRequest(r.galServiceClient.startLinkingSession,C,[1],[2]))})};
Wr.prototype.getMetadata=function(){var Y=this,b,w;return _.c(function(V){b={};Y.useFpa?(b["X-Goog-Api-Key"]=Y.apiKey,b["X-Goog-AuthUser"]=Y.authUser!==void 0?Y.authUser.toString():"0",(w=_.ArK([]))&&(b.Authorization=w)):b.Authorization="Bearer "+Y.oauthToken;Y.locale&&(b["accept-language"]=Y.locale);return V.return(b)})};
Wr.prototype.makeRequest=function(Y,b,w,V){var H=this,f;return _.c(function(E){if(E.nextAddress==1)return _.D(E,H.getMetadata(),2);f=E.yieldResult;kL7(H,w);return E.return(Y.bind(H.galServiceClient)(b,f).finally(function(){kL7(H,V)}))})};
var kL7=function(Y,b){Y.galSdkEventHandler!==void 0&&b.forEach(function(w){Y.galSdkEventHandler.onEvent(w)})},K5=function(Y,b,w){var V=new qj;
b=_.Zg(V,2,_.vI(b),0);b=_.iL(b,5,3);w=_.PD(b,8,w,_.SX);Y.bucket!==void 0&&_.bf(w,1,Y.bucket);return w},IHO=function(Y){var b=Y.serviceId;
var w=Y.scopes;var V=Y.capabilities;Y=Y.linkName;if(V!==void 0&&w!==void 0)throw Error("$j");var H=new pbR;b=_.bf(H,1,b);V!==void 0?(w=Array.from(V.values()),_.PD(b,5,w,_.SX)):w!==void 0&&(w=Array.from(w.values()),_.PD(b,3,w,_.SX));Y!==void 0&&_.bf(b,6,Y);return b};var cQb=function(Y){this.galService=new Wr(Y.alsDomain,Y.apiKey,Y.authUser,Y.oauthToken,Y.bucket,Y.locale,Y.galSdkEventHandler);this.JSC$17279_galRepository=new AdX(this.galService)};
cQb.prototype.getService=function(){return this.galService};var lHb=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(lHb,_.SQ);var hXX=function(Y){var b=new lHb;return _.cO(b,1,Y)};
lHb.prototype.setErrorMessage=function(Y){return _.hP(this,2,Y)};var xy7=[0,_.wm,_.uL,_.wm];var iT=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(iT,_.SQ);var q1X=[0,[1,2,3],_.bV,[0,LQs,rAt,-1],_.bV,[0,aRd,-1],_.Vs6];var sn7=[0,_.TZ,1,_.wm,_.uL,-1,1,_.foe,_.GZ,_.wm,-1,q1X];var Qnb=[0,_.wm,[0,_.foe,_.GZ,[0,_.uL]],_.JZ,[0,_.wm,-1]];var gH=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(gH,_.SQ);var vEb=[0,_.uL,_.wm,-2,_.TZ,_.wm,_.TZ,_.wm,-2,1,_.JZ];var PJR=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(PJR,_.SQ);var ZxN=[0,_.TZ];var Bvg=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Bvg,_.SQ);var nEX=[0,_.wm,Qnb,ZxN,vEb,sn7];var a8s=_.uj(Bvg,nEX);var MVb=[0,MPX];var AL7=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(AL7,_.SQ);var eXI=[0,[1,3],C8t,_.wm,C8t];var Vq=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Vq,_.SQ);var pTb=[0,_.wm];var Oxt=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Oxt,_.SQ);var Hr=function(Y){return _.WZ(Y,lHb,2,wH)},tVR=function(Y){var b=new Oxt;
return _.gE(b,2,wH,Y)},wH=[1,
2];var RXt=[0,wH,_.bV,pTb,_.bV,xy7,_.YS,eXI,1,_.wm,MVb];var dyF=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(dyF,_.SQ);var L2R=function(Y){var b=new dyF;return _.gE(b,3,F2I,Y)},F2I=[2,
3];var AK=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(AK,_.SQ);var S1R=function(Y,b){return _.HN(Y,2,b)},aHX=function(Y,b){return _.HN(Y,8,b)},r9d=function(Y,b){return _.HN(Y,3,b)};var zXb=[0,_.wm,RXt,nEX,_.os_,[0,[5,6],[0,_.wm,-2],[0,_.TZ,_.wm,_.uL],[0,q1X],[0,_.uL,_.wm,-1,_.mFU,_.wm],_.bV,[0,[0,_.TZ],_.wm,-1],_.bV,[0,[3,4],_.wm,-1,_.bV,[0,[0,_.wm,_.JZ]],_.bV,[0,[0,[0,[1,2],_.bV,[0],_.bV,[0]]]]]],_.os_,-1,[0,F2I,_.wm,_.bV,pTb,_.bV,xy7,_.YS,eXI,[0,MPX]]];var W2X=_.uj(AK,zXb),K2X=_.YH(zXb);var ixt=function(){_.BE.call(this)};
_.P(ixt,_.BE);ixt.prototype.init=function(){};
new ixt;var A9d=_.wM(["data-"]),CJO=_.wM(["aria-"]),y9g=_.wM(["aria-"]),C5=function(Y,b){this.isLatencyMeasurementExperiment=Y===void 0?!1:Y;this.enableDialogA11yFix=b===void 0?!1:b;this.JSC$17308_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.z8d(_.wB.location.href)},z3g=function(Y,b){Y.onConsentPrimitiveShownCallback=b},$yd=function(Y,b){return Y.overriddenIframeLoadTimeout?Y.overriddenIframeLoadTimeout:b!==void 0?b:5E3},KDA=function(Y){if(Y.prewarmPromise!==void 0)return Y.prewarmPromise;
Y.prewarmPromise=new Promise(function(b,w){yq(Y,1);jnt(Y,GLg(Y,!0),TvQ(Y));Y.iframe?Y.prewarmChannel||J9t(Y,Y.iframe,b):w(Error("fk"))});
Y.prewarmPromise.finally(function(){Y.prewarmPromise=void 0});
return Y.prewarmPromise};
C5.prototype.showPrimitive=function(){var Y=this;if(this.consentPromise!==void 0)return this.consentPromise;var b=Date.now();uBO(this,b);this.consentPromise=new Promise(function(w,V){yq(Y,0,b);var H=Y.isDarkTheme();Y.isLatencyMeasurementExperiment||Y.initialLoadingStrategy===1||Y.initialLoadingStrategy===2||(Y.loadingBar||(Y.loadingBar=mct(getComputedStyle(document.body).direction==="rtl",H),Y.loadingBar.style.position="fixed",Y.loadingBar.style.zIndex="15000"),document.body.appendChild(Y.loadingBar));
jnt(Y,GLg(Y),TvQ(Y));Y.iframe?Y.channel||YdX(Y,Y.iframe,w,V):(bkO(Y),V(Error("fk")))});
this.consentPromise.finally(function(){Y.consentPromise=void 0});
return this.consentPromise};
var YdX=function(Y,b,w,V){var H,f;_.c(function(E){switch(E.nextAddress){case 1:yq(Y,3);H=!1;setTimeout(function(){if(!H){bkO(Y);wKN(Y);VZO(Y);var U=hXX(7).setErrorMessage("Timeout connecting to iframe");w(aHX(S1R(new AK,tVR(U)),L2R(U)))}},$yd(Y,Hk7(Y)));
if(!Y.prewarmPromise){E.jumpTo(2);break}_.ct(E,3);return _.D(E,Y.prewarmPromise,5);case 5:_.$u(E,2);break;case 3:_.mS(E),f=hXX(4).setErrorMessage("Error while prewarming."),w(aHX(S1R(new AK,tVR(f)),L2R(f)));case 2:Y.prewarmChannel&&Y.prewarmChannel.send(K2X(r9d(new AK,Y.consentPrimitiveRequest))),Y.channel=_.gm({destination:Y.JSC$17308_win,iframe:b,origin:gig(Y),channelName:"cpw",onEstablished:function(){H=!0;bkO(Y);Y.isLatencyMeasurementExperiment||(Y.JSC$17308_previousBodyOverflow=document.body.style.overflow,
Y.JSC$17308_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,Y.JSC$17308_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",Y.enableDialogA11yFix&&window.addEventListener("blur",Y.focusChangeListener));var U=Y.iframe;U.style.bottom="0";U.style.position="fixed";U.style.right="0";U.style.border="none";U.style.left="0";U.style.top=
"0";U.style.zIndex="5000";U.style.pointerEvents="";U.style.visibility="";Y.initialLoadingStrategy===2||Y.initialLoadingStrategy===3?yq(Y,4):yq(Y,6);var X;(X=Y.onConsentPrimitiveShownCallback)==null||X.call(Y)},
onMessage:function(U){U=W2X(U.data);switch(_.ay(U,1)){case 1:wKN(Y);var X=oDt(_.EK(U,_.A9,7));X&&(Y.initialLoadingStrategy!==2&&Y.initialLoadingStrategy!==3||yq(Y,6,X),yq(Y,5,X));if(X=oDt(_.EK(U,_.A9,6)))yq(Y,7,X),yq(Y,8);var I,k;((I=_.EK(U,Oxt,2))==null?void 0:_.pE(I,wH))!==0&&((k=_.EK(U,dyF,8))==null?void 0:_.pE(k,F2I))!==0||V(Error("gk"));w(U);break;case 2:VZO(Y)}}}),_.om(E)}})},J9t=function(Y,b,w){Y.prewarmChannel=_.gm({destination:Y.JSC$17308_win,
iframe:b,origin:gig(Y),channelName:"pwcp",onEstablished:function(){yq(Y,2);w()}})},gig=function(Y){var b=_.Xk(Y.src).toString();
return b&&b.indexOf("://")<0&&b.indexOf("//")!==0?Y.origin:_.z8d(b)},GLg=function(Y,b){b=b===void 0?!1:b;
var w,V=new Map([["origin",Y.origin],["hl",(w=fz7(Y))!=null?w:null]]);b&&V.set("pw","1");b=_.N([["cpr",Y.consentPrimitiveRequest.serialize()]]);for(w=b.next();!w.done;w=b.next()){var H=_.N(w.value);w=H.next().value;H=H.next().value;V.set(w,H)}Y.isDarkTheme()&&V.set("color_scheme","dark");return _.gF(Y.src,V)},bkO=function(Y){Y.isLatencyMeasurementExperiment||Y.loadingBar&&document.body.removeChild(Y.loadingBar)};
C5.prototype.getSrc=function(){var Y=_.Yu(this.origin),b;var w=(b=_.EK(this.consentPrimitiveRequest,PJR,3))==null?void 0:_.HE(b,1);b="consent.google.com";w=w?"/u/"+encodeURIComponent(w.toString()):"";(Y==null?0:Y.endsWith("youtube.com"))?b="consent.youtube.com":(Y=Y==null?void 0:Y.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(b="consent.google."+((Y[1]?"co.":"")+encodeURIComponent(Y[2])));return _.Uu("https://"+b+"/signedin"+w+"/landing")};
var jnt=function(Y,b,w){Y.iframe||(Y.iframe=document.createElement("iframe"),Y.iframe.style.width="100%",Y.iframe.style.height="100%",w!==112496729&&(Y.iframe.style.colorScheme="auto"),Y.isLatencyMeasurementExperiment&&(Y.iframe.style.display="none"),_.Rg(Y.iframe,b),Y.iframe.setAttribute("jsname","C5o1O"),NpN(Y.iframe),document.body.appendChild(Y.iframe))},NpN=function(Y){Y.style.bottom="-200vh";
Y.style.position="fixed";Y.style.right="-200vw";Y.style.border="";Y.style.left="";Y.style.top="";Y.style.zIndex="";Y.style.pointerEvents="none";Y.style.visibility="hidden"},wKN=function(Y){Y.iframe&&(Y.isLatencyMeasurementExperiment||(Y.JSC$17308_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=Y.JSC$17308_previousHtmlOverscroll),Y.JSC$17308_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=Y.JSC$17308_previousBodyOverscroll),Y.JSC$17308_previousBodyOverflow!==
void 0&&(document.body.style.overflow=Y.JSC$17308_previousBodyOverflow),Y.enableDialogA11yFix&&EiI(Y,!1)),NpN(Y.iframe))};
C5.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(EiI(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var EiI=function(Y,b){var w,V,H=(w=Y.iframe)==null?void 0:(V=w.parentElement)==null?void 0:V.children;if(H)for(w=0;w<H.length;w++)V=H[w],V!==Y.iframe&&(b?(V.hasAttribute("aria-hidden")&&_.Az([_.wF(A9d)],V,"data-old-aria-hidden",V.getAttribute("aria-hidden")),_.Az([_.wF(CJO)],V,"aria-hidden","true")):(V.removeAttribute("aria-hidden"),V.hasAttribute("data-old-aria-hidden")&&(_.Az([_.wF(y9g)],V,"aria-hidden",V.getAttribute("data-old-aria-hidden")),V.removeAttribute("data-old-aria-hidden"))))},yq=function(Y,
b,w){var V;
(V=Y.latencyCallback)==null||V.call(Y,{latencyType:b,timestampEpochMillis:w!=null?w:Date.now()})};var cJI=function(Y,b,w){C5.call(this,b,w===void 0?!1:w);this.consentPrimitiveRequest=Y;Y=fz7(this);_.c6I(Y);this.src=this.getSrc();var V;this.initialLoadingStrategy=(V=_.EK(this.consentPrimitiveRequest,gH,4))==null?void 0:_.ay(V,4)},UqO;
_.P(cJI,C5);var rLX=function(Y){var b=_.q("enable_primitive_dialog_aria_hide_siblings");Y={request:Y,enableDialogA11yFix:b===void 0?!1:b};UqO||(UqO=new cJI(Y.request,Y.isLatencyMeasurementExperiment||_.ay(Y.request,1)===2,Y.enableDialogA11yFix));return UqO},fz7=function(Y){var b;
return(b=_.EK(Y.consentPrimitiveRequest,gH,4))==null?void 0:_.Su(b,1)},uBO=function(Y,b){if(!_.BZ(Y.consentPrimitiveRequest,iT,5)){var w=Y.consentPrimitiveRequest,V=new iT;
_.HN(w,5,V)}var H;if((H=_.EK(Y.consentPrimitiveRequest,iT,5))==null||_.DQq(_.ZX(H,8))==null){var f;(f=_.EK(Y.consentPrimitiveRequest,iT,5))!=null&&_.By(f,8,b)}},TvQ=function(Y){var b;
return(b=_.EK(Y.consentPrimitiveRequest,iT,5))==null?void 0:_.HE(b,1)};
cJI.prototype.isDarkTheme=function(){var Y;return((Y=_.EK(this.consentPrimitiveRequest,gH,4))==null?void 0:_.ay(Y,2))===2};
var Hk7=function(Y){var b;return((b=_.EK(Y.consentPrimitiveRequest,gH,4))==null?void 0:_.HE(b,5))||void 0},VZO=function(Y){Y.channel=void 0;
Y.prewarmChannel=void 0;Y.iframe&&(document.body.contains(Y.iframe)&&document.body.removeChild(Y.iframe),Y.iframe=void 0);UqO=void 0},iXd=function(Y){return C5.prototype.showPrimitive.call(Y).then(function(b){return _.EK(b,Oxt,2)})};for(var $m={},XKs=($m[64]="ma",$m[73]="ogb",$m[89]="cr",$m[21]="test",$m[0]="unkn",$m[137]="con",$m[155]="hl",$m[78]="yt",$m[171]="lp",$m[172]="ap",$m[177]="amo",$m[178]="pqe",$m[74]="gg",$m[1]="gm",$m[140]="am",$m[193]="sc",$m),Dq7=_.N(Object.keys(XKs)),mqs=Dq7.next();!mqs.done;mqs=Dq7.next());var oiQ=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(oiQ,_.SQ);var Izt=[0,[2,3,4],_.wm,SQR,C8t,_.Vs6];var kiX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(kiX,_.SQ);var lzt=_.uj(kiX,[0,AAd,_.uL,_.wm,_.uL,_.wm,Izt]);var hsX=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(hsX,_.SQ);hsX.prototype.getCommand=function(){return _.ay(this,1)};
var xqO=function(){var Y=new hsX;return _.iL(Y,1,0)};var qd7=_.YH([0,AAd,_.uL,[0,_.wm,_.uL,-1]]);var sMs=new _.sV("s"),QMX=new _.sV("t"),vit=new _.sV("u"),Pfs=new _.sV("v"),Zkt=function(Y,b,w){_.Q2.call(this,sMs);this.mediaKey=Y;this.photoUrl=b;this.photoSource=w};
_.P(Zkt,_.Q2);var Bpg=function(){_.Q2.call(this,QMX)};
_.P(Bpg,_.Q2);var nig=function(Y){Y=Y===void 0?!1:Y;_.Q2.call(this,vit);this.isError=Y};
_.P(nig,_.Q2);var MZA=function(){_.Q2.call(this,Pfs)};
_.P(MZA,_.Q2);var esN=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,RsQ=function(Y){if(typeof Y=="string"){if(Y.charAt(0)==".")return pKt(Y.substr(1));if(Y.charAt(0)=="["){var b=esN.exec(Y);Y=Y.indexOf("=")==-1?void 0:b[3];return OkX(b[1],Y)}return tZR(Y)}return Y},pKt=function(Y){return function(b){return b.getAttribute&&_.$5(b,Y)}},OkX=function(Y,b){return function(w){return b!==void 0?w.getAttribute&&w.getAttribute(Y)==b:w.hasAttribute&&w.hasAttribute(Y)}},tZR=function(Y){Y=Y.toUpperCase();
return function(b){return(b=b.tagName)&&b.toUpperCase()==Y}},dqg=function(){return!0};var j6=function(Y,b){this.JSC$17336_key_=Y;this.JSC$17336_value_=b},G7=function(Y){throw Error("hk`"+Y.JSC$17336_key_);
},FwX=function(Y,b){return new TypeError("ik`"+b+"`"+Y.JSC$17336_key_+"`"+Y.JSC$17336_value_+"`"+typeof Y.JSC$17336_value_)};
j6.prototype.string=function(Y){if(arguments.length==0)var b=LwI(this);else{var w;b=(w=Sdt(this))!=null?w:Y}return b};
var LwI=function(Y){var b=Sdt(Y);b===null&&G7(Y);return b},Sdt=function(Y){var b=Y.JSC$17336_value_;
if(b==null)return null;if(typeof b==="string")return b;throw FwX(Y,"string");};
j6.prototype.bool=function(Y){if(arguments.length==0){var b=this.optionalBool();b===null&&G7(this)}else{var w;b=(w=this.optionalBool())!=null?w:Y}return b};
j6.prototype.optionalBool=function(){var Y=this.JSC$17336_value_;if(Y==null)return null;if(typeof Y==="boolean")return Y;if(typeof Y==="string"){Y=Y.toLowerCase();if(Y==="true"||Y==="1")return!0;if(Y==="false"||Y==="0")return!1}throw FwX(this,"boolean");};
j6.prototype.number=function(Y){if(arguments.length==0){var b=az7(this);b===null&&G7(this)}else{var w;b=(w=az7(this))!=null?w:Y}return b};
var az7=function(Y){var b=Y.JSC$17336_value_;if(b==null)return null;if(typeof b==="number")return b;if(typeof b==="string"){var w=Number(b);if(!isNaN(w)&&(w!==0||b.trim().length!==0))return w}throw FwX(Y,"number");};
j6.prototype.toString=function(){return LwI(this)};
j6.prototype.array=function(Y){if(arguments.length==0){var b=rJt(this);b===null&&G7(this);return b}b=rJt(this);return b==null?Y:b};
var rJt=function(Y){var b=Y.JSC$17336_value_;if(b==null)return null;Array.isArray(b)||(typeof b!=="string"?b=[b]:(b=b.trim(),b=b==""?[]:b.split(",").map(function(w){return w.trim()})));
return zsA(Y,b)},zsA=function(Y,b){var w=Y.JSC$17336_key_+"[";
return Array.from(b,function(V,H){return new j6(w+H+"]",V)})};
j6.prototype.object=function(Y){var b=this.JSC$17336_value_;if(b==null)return Y===void 0&&G7(this),Y;if(typeof b==="object"&&b.constructor===Object){Y={};var w=this.JSC$17336_key_+".",V;for(V in b)Y[V]=new j6(w+V,b[V]);return Y}throw FwX(this,"object");};var T7=function(Y){this.list_=WwA(Y)},WwA=function(Y){if(Y instanceof T7)Y=Y.list_;
else if(Y[0]instanceof T7){for(var b=new Set,w=0;w<Y.length;w++)for(var V=_.N(Y[w].list_),H=V.next();!H.done;H=V.next())b.add(H.value);Y=b}return[].concat(_.Bt(Y))};
_.g=T7.prototype;_.g.each=function(Y,b,w){((w===void 0?0:w)?sVI:_.$2)(this.list_,Y,b);return this};
_.g.size=function(){return this.list_.length};
_.g.isEmpty=function(){return this.list_.length===0};
_.g.get=function(Y){return this.list_[Y]||null};
_.g.el=function(){return this.list_[0]||null};
_.g.map=function(Y,b){return _.MD(this.list_,Y,b)};
_.g.equals=function(Y){return this===Y||_.NQ(this.list_,Y.list_)};
_.g.first=function(){return this.list_.length==0?null:new JK(this.list_[0])};
_.g.find=function(Y){var b=[];this.each(function(w){w=w.querySelectorAll(String(Y));for(var V=0;V<w.length;V++)b.push(w[V])});
return new T7(b)};
_.g.parent=function(){var Y=[];this.each(function(b){(b=b.parentElement||null)&&!_.Ka(Y,b)&&Y.push(b)});
return new T7(Y)};
_.g.children=function(){var Y=[];this.each(function(b){b=_.Sx(b);for(var w=0;w<b.length;w++)Y.push(b[w])});
return new T7(Y)};
_.g.filter=function(Y){Y=_.oy(this.list_,RsQ(Y));return new T7(Y)};
_.g.closest=function(Y){var b=[],w=RsQ(Y),V=function(H){return _.YP(H)&&w(H)};
this.each(function(H){(H=_.FE(H,V,!0))&&!_.Ka(b,H)&&b.push(H)});
return new T7(b)};
_.g.next=function(Y){return KwX(this,_.HoI,Y)};
_.g.prev=function(Y){return KwX(this,yAA,Y)};
var KwX=function(Y,b,w){var V=[];var H=w?RsQ(w):dqg;Y.each(function(f){(f=b(f))&&H(f)&&V.push(f)});
return new T7(V)};
T7.prototype.setClass=function(Y){return this.each(function(b){_.y2(b,Y)})};
var ikI=function(Y,b){return Y.each(function(w){_.bA(w,b)})},AJO=function(Y,b){return Y.each(function(w){_.u8(w,b)})};
T7.prototype.toggleClass=function(Y,b){return b===!0?ikI(this,Y):b===!1?AJO(this,Y):this.each(function(w){_.$5(w,Y)?_.u8(w,Y):_.bA(w,Y)})};
T7.prototype.setText=function(Y){return this.each(function(b){_.av(b,Y)})};
var CfA=function(Y){Y.each(function(b){b.removeAttribute("aria-hidden")})};
T7.prototype.getStyle=function(Y){if(this.list_.length>0){var b=this.list_[0],w=b.style[_.xL(Y)];return typeof w!=="undefined"?w:b.style[_.l5K(b,Y)]||""}};
T7.prototype.getData=function(Y){if(this.list_.length===0)return new j6(Y,null);var b=nuA(this.list_[0],Y);return new j6(Y,b)};
T7.prototype.focus=function(Y){try{Y?this.el().focus(Y):this.el().focus()}catch(b){}return this};
T7.prototype.click=function(){var Y=_.Oy(this.el());if(Y.createEvent){var b=Y.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,Y.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(b)}else Y=Y.createEventObject(),Y.clientX=0,Y.clientY=0,Y.screenX=0,Y.screenY=0,Y.altKey=!1,Y.ctrlKey=!1,Y.shiftKey=!1,Y.button=0,this.el().fireEvent("onclick",Y)};
var uT=function(Y,b,w,V){function H(U,X,I){var k=X;X&&X.parentNode&&(k=X.cloneNode(!0));U(k,I)}
V=V===void 0?!1:V;if(Y.list_.length==1){var f=Y.list_[0],E=function(U){return b(U,f)};
w instanceof T7?w.each(E,void 0,V):Array.isArray(w)?(V?sVI:_.$2)(w,E):E(w);return Y}return Y.each(function(U){w instanceof T7?w.each(function(X){H(b,X,U)}):Array.isArray(w)?_.$2(w,function(X){H(b,X,U)}):H(b,w,U)})};
_.g=T7.prototype;_.g.append=function(Y){return uT(this,function(b,w){b&&w.appendChild(b)},Y)};
_.g.appendTo=function(Y){(new T7([Y])).append(this);return this};
_.g.remove=function(){return uT(this,function(Y,b){_.qf(b)},null)};
_.g.empty=function(){return uT(this,function(Y,b){_.dm(b)},null)};
_.g.after=function(Y,b){return uT(this,function(w,V){w&&_.Lj(w,V)},Y,!(b===void 0||b))};
_.g.before=function(Y){return uT(this,function(b,w){b&&_.F1(b,w)},Y)};
_.g.replaceWith=function(Y){return uT(this,function(b,w){b&&_.bo$(b,w)},Y)};
_.g.toggle=function(Y){return this.each(function(b){_.T_(b,Y)})};
_.g.show=function(){return this.toggle(!0)};
_.g.hide=function(){return this.toggle(!1)};
_.g.trigger=function(Y,b,w,V){return yJd(this,Y,b,w,V)};
var yJd=function(Y,b,w,V,H){return Y.each(function(f){_.QIG(_.Oy(f)).triggerWizEventInternal(f,b,w,V,H)})},JK=function(Y,b){Y instanceof T7&&(b=Y.list_,Y=null);
this.list_=WwA(Y!=null?[Y]:b)};
_.DX(JK,T7);_.g=JK.prototype;_.g.children=function(){return new T7(Array.prototype.slice.call(_.Sx(this.list_[0])))};
_.g.each=function(Y,b){Y.call(b,this.list_[0],0);return this};
_.g.size=function(){return 1};
_.g.el=function(){return this.list_[0]};
_.g.first=function(){return this};var YY=function(Y,b){b=b===void 0?window:b;this.hostId=Y;this.JSC$17347_win=b;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$17347_previousHtmlOverscroll=this.JSC$17347_previousBodyOverscroll=this.JSC$17347_previousBodyOverflow="";this.eventTarget=new _.n1;this.JSC$17347_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
GiR=function(Y){var b=$qX($qX($qX(new jMb(78),"po"),"hppp"),"hhc");
b.authUser=Number(_.zO("SESSION_INDEX","0"));b.colorScheme=Y;return b};
YY.prototype.getOrigin=function(){return this.origin?this.origin:_.fP(_.gy(_.H2(new _.Jw,this.JSC$17347_win.location.protocol),this.JSC$17347_win.location.hostname),this.JSC$17347_win.location.port).toString()};
YY.prototype.getTargetOrigin=function(){return _.fP(_.gy(_.H2(new _.Jw,this.scheme),this.domain),this.port)};
YY.prototype.preloadIframe=function(Y){var b=this;if(this.iframeLoadPromise===void 0){var w=document.createElement("iframe");this.iframe=w;sdO(w,Y);this.iframeLoadPromise=new Promise(function(V,H){var f=!1,E=function(U){U.stopPropagation();w.removeEventListener("error",E);w.removeEventListener("securitypolicyviolation",E);H(Error("jk",{cause:U}))};
w.addEventListener("error",E);w.addEventListener("securitypolicyviolation",E);setTimeout(function(){f||H(Error("kk"))},3E4);
Tpt(b,w,function(){f=!0;w.removeEventListener("error",E);w.removeEventListener("securitypolicyviolation",E);V()})});
JJA(this);Y=this.getTargetOrigin().toString();w.setAttribute("allow","camera "+Y+"; display-capture "+Y);this.parentElement.appendChild(w)}return this.iframeLoadPromise};
var bEA=function(Y,b){var w,V;return _.c(function(H){if(H.nextAddress==1)return w=mct(getComputedStyle(Y.parentElement).direction==="rtl"),Y.parentElement.appendChild(w),document.activeElement instanceof HTMLElement&&(Y.elementToFocusAfterClose=document.activeElement),_.ct(H,2),_.D(H,Y.preloadIframe(b),4);if(H.nextAddress!=2){Y.parentElement.removeChild(w);Y.JSC$17347_previousBodyOverflow=Y.parentElement.style.overflow;Y.JSC$17347_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
Y.JSC$17347_previousBodyOverscroll=Y.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";Y.parentElement.style.overscrollBehavior="contain";Y.parentElement.style.overflow="hidden";var f=Y.iframe;f.style.bottom="0";f.style.border="none";f.style.height="100%";f.style.left="0";f.style.position=Y.iframePosition;f.style.right="0";f.style.top="0";f.style.width="100%";f.style.zIndex="2202";f.setAttribute("aria-hidden","false");f.setAttribute("aria-modal","true");
Y.opened=!0;u5g(Y);return _.$u(H,0)}V=_.mS(H);Y.parentElement.removeChild(w);hmd(Y.isDarkTheme());Y0X(Y,!1);throw Error("lk",{cause:V});})},Y0X=function(Y,b){b=b===void 0?!0:b;
Y.iframe!==void 0&&(wZ7(Y),document.documentElement.style.overscrollBehavior=Y.JSC$17347_previousHtmlOverscroll,Y.parentElement.style.overscrollBehavior=Y.JSC$17347_previousBodyOverscroll,Y.parentElement.style.overflow=Y.JSC$17347_previousBodyOverflow,Y.elementToFocusAfterClose!==void 0&&(Y.elementToFocusAfterClose.focus(),Y.elementToFocusAfterClose=void 0),b?JJA(Y):(Y.parentElement.removeChild(Y.iframe),Y.iframe=void 0,Y.iframeLoadPromise=void 0,Y.mainChannel=void 0),Y.opened=!1)},wZ7=function(Y){Y.backgroundElementsAriaHiddenIsNull&&
(CfA(Y.backgroundElementsAriaHiddenIsNull),Y.backgroundElementsAriaHiddenIsNull=void 0);
Y.backgroundElementsAriaHiddenIsFalse&&(Y.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","false")}),Y.backgroundElementsAriaHiddenIsFalse=void 0);
Y.backgroundElementsWithoutInert&&(Y.backgroundElementsWithoutInert.each(function(b){b.removeAttribute("inert")}),Y.backgroundElementsWithoutInert=void 0)},u5g=function(Y){Y.backgroundElementsAriaHiddenIsNull=(new JK(Y.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")===null&&b!==Y.iframe});
Y.backgroundElementsAriaHiddenIsNull.each(function(b){b.setAttribute("aria-hidden","true")});
Y.backgroundElementsAriaHiddenIsFalse=(new JK(Y.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")==="false"&&b!==Y.iframe});
Y.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","true")});
Y.backgroundElementsWithoutInert=(new JK(Y.iframe.parentElement)).children().filter(function(b){return!b.hasAttribute("inert")&&b!==Y.iframe});
Y.backgroundElementsWithoutInert.each(function(b){b.setAttribute("inert","true")})},JJA=function(Y){Y=Y.iframe;
Y.style.bottom="-1000px";Y.style.position="fixed";Y.style.right="-1000px";Y.style.border="";Y.style.height="";Y.style.left="";Y.style.top="";Y.style.width="";Y.style.zIndex="";Y.setAttribute("aria-hidden","true");Y.setAttribute("aria-modal","false")};
YY.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var jMb=function(Y,b){YY.call(this,XKs[Y],b);this.options=[];this.style=""};
_.P(jMb,YY);var Vut=function(Y){Y.style="youtube";return Y},HEN=function(Y,b){Y.eventTarget.listen(vit,b);
return Y},gvX=function(Y,b){Y.eventTarget.listen(sMs,b);
return Y},$qX=function(Y,b){Y.options.push(b);
return Y},fXs=function(Y){var b=[Y.getOrigin()];
Y.ancestorOrigins&&b.push.apply(b,_.Bt(Y.ancestorOrigins));var w=new _.Jw(Y.JSC$17347_win.location.href),V=Y.startUrl?Y.startUrl:Y.options.includes("po")?"profile-picture/art":"profile-picture";b=f5(_.Nv(Y.getTargetOrigin(),V),"origin",b);Y.startUrl&&_.G_(b,"startPath",Y.startUrl);Y.authUser>0&&_.G_(b,"authuser",Y.authUser);Y.pageId!==void 0&&_.G_(b,"pageId",Y.pageId);_.G_(b,"hostId",Y.hostId);Y.jsMode!==void 0&&_.G_(b,"jsmode",Y.jsMode);Y.rectangleRatio!==void 0&&_.G_(b,"rectangleRatio",Y.rectangleRatio);
Y.options.length>0&&_.G_(b,"opts",Y.options.join(","));try{for(var H=_.N(["utm_source","utm_medium","utm_campaign","utm_content"]),f=H.next();!f.done;f=H.next()){var E=f.value;_.jh(w,E)&&_.G_(b,E,_.jh(w,E))}var U,X=(U=Y.hl)!=null?U:_.jh(w,"hl");X!==void 0&&_.G_(b,"hl",X)}catch(I){if(!(I instanceof URIError))throw I;}Y.colorScheme&&_.G_(b,"theme",Y.colorScheme);Y.style&&_.G_(b,"style",Y.style);return b},NMX=function(Y,b){Y.mainChannel=_.gm({destination:Y.JSC$17347_win,
iframe:b,origin:Y.getTargetOrigin().toString(),channelName:"ow",onMessage:function(w){w=lzt(w.data);if(b===Y.iframe)switch(_.ay(w,1)){case 1:Y.eventTarget.dispatchEvent(new nig);Y0X(Y);break;case 2:Y.eventTarget.dispatchEvent(new Zkt(_.Su(w,4),_.Su(w,2),_.ay(w,5),_.EK(w,oiQ,6)));break;case 0:var V;Y.eventTarget.dispatchEvent(new Bpg(_.Su(w,2),(V=_.ay(w,3))!=null?V:0));break;case 3:Y.eventTarget.dispatchEvent(new nig(!0));Y0X(Y,!1);break;case 4:Y.eventTarget.dispatchEvent(new MZA)}}})},Tpt=function(Y,
b,w){_.gm({destination:Y.JSC$17347_win,
iframe:b,origin:_.fP(_.gy(_.H2(new _.Jw,Y.scheme),Y.domain),Y.port).toString(),channelName:"owi",onMessage:function(V){b===Y.iframe&&(w!==void 0&&w(),NMX(Y,b),Y.opened&&Y.mainChannel.send(qd7(xqO())),V.reply(),Tpt(Y,b))}})};
jMb.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?YY.prototype.preloadIframe.call(this,fXs(this).toString()):this.iframeLoadPromise};
jMb.prototype.openPicker=function(Y){var b=this;return _.c(function(w){if(w.nextAddress==1)return b.startUrl=Y?Y:b.options.includes("po")?"profile-picture/art":"profile-picture",_.D(w,bEA(b,fXs(b).toString()),2);if(b.mainChannel){var V=b.mainChannel,H=V.send;var f=xqO();f=_.hP(f,2,b.startUrl);H.call(V,qd7(f))}_.om(w)})};var Ev7=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(Ev7,_.SQ);_.g=Ev7.prototype;_.g.getSize=function(){return mM(this,1)};
_.g.setSize=function(Y){return _.KE(this,1,Y)};
_.g.getWidth=function(){return mM(this,12)};
_.g.getHeight=function(){return mM(this,13)};
_.g.setCenterCrop=function(Y){return _.E2(this,20,Y)};
_.g.getHtml=function(){return _.dM(this,4)};
_.g.getToken=function(){return _.hy(this,24)};
_.g.setToken=function(Y){return _.hP(this,24,Y)};
_.g.getBackgroundColor=function(){return mM(this,87)};
_.g.hasBackgroundColor=function(){return _.PI(_.ZX(this,87))!=null};
_.g.getStoryboardLevel=function(){return mM(this,109)};var bs=function(Y){this.JSC$17355_value_=void 0;this.childNodes_={};if(Y){var b=_.rP$(Y);Y=_.VJ(Y);for(var w=0;w<b.length;w++)this.set(b[w],Y[w])}};
bs.prototype.set=function(Y,b){cZd(this,Y,b,!1)};
bs.prototype.add=function(Y,b){cZd(this,Y,b,!0)};
var cZd=function(Y,b,w,V){for(var H=0;H<b.length;H++){var f=b.charAt(H);Y.childNodes_[f]||(Y.childNodes_[f]=new bs);Y=Y.childNodes_[f]}if(V&&Y.JSC$17355_value_!==void 0)throw Error("mk`"+b);Y.JSC$17355_value_=w},UXI=function(Y,b){for(var w=0;w<b.length;w++)if(Y=Y.childNodes_[b.charAt(w)],!Y)return;
return Y};
bs.prototype.get=function(Y){return(Y=UXI(this,Y))?Y.JSC$17355_value_:void 0};
bs.prototype.getValues=function(){var Y=[];XZQ(this,Y);return Y};
var XZQ=function(Y,b){Y.JSC$17355_value_!==void 0&&b.push(Y.JSC$17355_value_);for(var w in Y.childNodes_)XZQ(Y.childNodes_[w],b)};
bs.prototype.getKeys=function(Y){var b=[];if(Y){for(var w=this,V=0;V<Y.length;V++){var H=Y.charAt(V);if(!w.childNodes_[H])return[];w=w.childNodes_[H]}DXs(w,Y,b)}else DXs(this,"",b);return b};
var DXs=function(Y,b,w){Y.JSC$17355_value_!==void 0&&w.push(b);for(var V in Y.childNodes_)DXs(Y.childNodes_[V],b+V,w)};
_.g=bs.prototype;_.g.containsKey=function(Y){return this.get(Y)!==void 0};
_.g.containsValue=function(Y){if(this.JSC$17355_value_===Y)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(Y))return!0;return!1};
_.g.clear=function(){this.childNodes_={};this.JSC$17355_value_=void 0};
_.g.remove=function(Y){for(var b=this,w=[],V=0;V<Y.length;V++){var H=Y.charAt(V);if(!b.childNodes_[H])throw Error("nk`"+Y);w.push([b,H]);b=b.childNodes_[H]}Y=b.JSC$17355_value_;for(delete b.JSC$17355_value_;w.length>0;)if(V=w.pop(),b=V[0],V=V[1],b.childNodes_[V].isEmpty())delete b.childNodes_[V];else break;return Y};
_.g.clone=function(){return new bs(this)};
_.g.getCount=function(){return TIb(this.getValues())};
_.g.isEmpty=function(){return this.JSC$17355_value_===void 0&&_.BL.isEmpty(this.childNodes_)};var BSA=function(){if(!mXt){var Y=mXt=new bs,b;for(b in ovg)Y.add(b,ovg[b])}},mXt,wc=function(Y,b){this.types=Y;
this.setters=b},ovg={a:new wc([3,
0],[function(Y,b){_.E2(Y,21,b)},
function(Y,b){_.KE(Y,56,b)}]),
al:new wc([3],[function(Y,b){_.E2(Y,74,b)}]),
b:new wc([3,0],[function(Y,b){_.E2(Y,23,b)},
function(Y,b){_.KE(Y,38,b)}]),
ba:new wc([0],[function(Y,b){_.KE(Y,85,b)}]),
bc:new wc([0],[function(Y,b){_.KE(Y,87,b)}]),
br:new wc([0],[function(Y,b){_.KE(Y,86,b)}]),
c:new wc([3,0],[function(Y,b){_.E2(Y,2,b)},
function(Y,b){_.KE(Y,39,b)}]),
cc:new wc([3],[function(Y,b){_.E2(Y,51,b)}]),
ci:new wc([3],[function(Y,b){_.E2(Y,32,b)}]),
ckm:new wc([3],[function(Y,b){_.E2(Y,104,b)}]),
cp:new wc([0],[function(Y,b){_.KE(Y,92,b)}]),
cr:new wc([3],[function(Y,b){_.E2(Y,108,b)}]),
cv:new wc([0],[function(Y,b){_.KE(Y,94,b)}]),
d:new wc([3],[function(Y,b){_.E2(Y,3,b)}]),
dc:new wc([5],[function(Y,b){_.hP(Y,99,b)}]),
df:new wc([3],[function(Y,b){_.E2(Y,80,b)}]),
dv:new wc([3],[function(Y,b){_.E2(Y,90,b)}]),
e:new wc([0],[function(Y,b){_.KE(Y,15,b)}]),
em:new wc([0],[function(Y,b){_.KE(Y,107,b)}]),
f:new wc([4],[function(Y,b){_.hP(Y,16,b)}]),
fg:new wc([3],[function(Y,b){_.E2(Y,34,b)}]),
fh:new wc([3],[function(Y,b){_.E2(Y,30,b)}]),
fm:new wc([3],[function(Y,b){_.E2(Y,84,b)}]),
fo:new wc([2],[function(Y,b){_.UK(Y,79,_.UX(b))}]),
ft:new wc([3],[function(Y,b){_.E2(Y,50,b)}]),
fv:new wc([3],[function(Y,b){_.E2(Y,31,b)}]),
g:new wc([3],[function(Y,b){_.E2(Y,14,b)}]),
gce:new wc([4],[function(Y,b){_.hP(Y,112,b)}]),
gd:new wc([3],[function(Y,b){_.E2(Y,83,b)}]),
gm:new wc([3],[function(Y,b){_.E2(Y,105,b)}]),
h:new wc([3,0],[function(Y,b){_.E2(Y,4,b)},
function(Y,b){_.KE(Y,13,b)}]),
i:new wc([3],[function(Y,b){_.E2(Y,22,b)}]),
ic:new wc([0],[function(Y,b){_.KE(Y,71,b)}]),
id:new wc([3],[function(Y,b){_.E2(Y,70,b)}]),
il:new wc([3],[function(Y,b){_.E2(Y,96,b)}]),
ip:new wc([3],[function(Y,b){_.E2(Y,54,b)}]),
iv:new wc([0],[function(Y,b){_.By(Y,75,b)}]),
j:new wc([1],[function(Y,b){b=b==null?b:Pct(b);_.UK(Y,29,b)}]),
k:new wc([3,0],[function(Y,b){_.E2(Y,17,b)},
function(Y,b){_.KE(Y,42,b)}]),
l:new wc([0],[function(Y,b){_.KE(Y,44,b)}]),
lf:new wc([3],[function(Y,b){_.E2(Y,65,b)}]),
lo:new wc([3],[function(Y,b){_.E2(Y,97,b)}]),
m:new wc([0],[function(Y,b){_.KE(Y,63,b)}]),
md:new wc([3],[function(Y,b){_.E2(Y,91,b)}]),
mm:new wc([4],[function(Y,b){_.hP(Y,81,b)}]),
mo:new wc([3],[function(Y,b){_.E2(Y,73,b)}]),
mv:new wc([3],[function(Y,b){_.E2(Y,66,b)}]),
n:new wc([3],[function(Y,b){Y.setCenterCrop(b)}]),
nc:new wc([3],[function(Y,b){_.E2(Y,55,b)}]),
nd:new wc([3],[function(Y,b){_.E2(Y,53,b)}]),
ng:new wc([3],[function(Y,b){_.E2(Y,95,b)}]),
ngm:new wc([3],[function(Y,b){_.E2(Y,106,b)}]),
no:new wc([3],[function(Y,b){_.E2(Y,37,b)}]),
ns:new wc([3],[function(Y,b){_.E2(Y,40,b)}]),
nt0:new wc([4],[function(Y,b){_.hP(Y,36,b)}]),
ntm:new wc([3],[function(Y,b){_.E2(Y,114,b)}]),
nu:new wc([3],[function(Y,b){_.E2(Y,46,b)}]),
nw:new wc([3],[function(Y,b){_.E2(Y,48,b)}]),
o:new wc([1,3],[function(Y,b){b=b==null?b:Pct(b);_.UK(Y,7,b)},
function(Y,b){_.E2(Y,27,b)}]),
p:new wc([3,0],[function(Y,b){_.E2(Y,19,b)},
function(Y,b){_.KE(Y,43,b)}]),
pa:new wc([3],[function(Y,b){_.E2(Y,61,b)}]),
pc:new wc([0],[function(Y,b){_.KE(Y,88,b)}]),
pd:new wc([3],[function(Y,b){_.E2(Y,60,b)}]),
pf:new wc([3],[function(Y,b){_.E2(Y,67,b)}]),
pg:new wc([3],[function(Y,b){_.E2(Y,72,b)}]),
pi:new wc([2],[function(Y,b){_.UK(Y,76,_.UX(b))}]),
pp:new wc([3],[function(Y,b){_.E2(Y,52,b)}]),
pt:new wc([4],[function(Y,b){_.hP(Y,111,b)}]),
q:new wc([4],[function(Y,b){_.hP(Y,28,b)}]),
r:new wc([3,0],[function(Y,b){_.E2(Y,6,b)},
function(Y,b){_.KE(Y,26,b)}]),
ra:new wc([3],[function(Y,b){_.E2(Y,103,b)}]),
rf:new wc([3],[function(Y,b){_.E2(Y,100,b)}]),
rg:new wc([3],[function(Y,b){_.E2(Y,59,b)}]),
rh:new wc([3],[function(Y,b){_.E2(Y,49,b)}]),
rj:new wc([3],[function(Y,b){_.E2(Y,57,b)}]),
ro:new wc([2],[function(Y,b){_.UK(Y,78,_.UX(b))}]),
rp:new wc([3],[function(Y,b){_.E2(Y,58,b)}]),
rw:new wc([3],[function(Y,b){_.E2(Y,35,b)}]),
rwa:new wc([3],[function(Y,b){_.E2(Y,64,b)}]),
rwu:new wc([3],[function(Y,b){_.E2(Y,41,b)}]),
s:new wc([3,0],[function(Y,b){_.E2(Y,33,b)},
function(Y,b){Y.setSize(b)}]),
sb:new wc([0],[function(Y,b){_.KE(Y,110,b)}]),
sc:new wc([0],[function(Y,b){_.KE(Y,89,b)}]),
sg:new wc([3],[function(Y,b){_.E2(Y,82,b)}]),
sl:new wc([0],[function(Y,b){_.KE(Y,109,b)}]),
sm:new wc([3],[function(Y,b){_.E2(Y,93,b)}]),
t:new wc([4],[function(Y,b){Y.setToken(b)}]),
tm:new wc([3],[function(Y,b){_.E2(Y,113,b)}]),
u:new wc([3],[function(Y,b){_.E2(Y,18,b)}]),
ut:new wc([3],[function(Y,b){_.E2(Y,45,b)}]),
v:new wc([0],[function(Y,b){_.KE(Y,62,b)}]),
vb:new wc([0],[function(Y,b){_.By(Y,68,b)}]),
vf:new wc([4],[function(Y,b){_.hP(Y,102,b)}]),
vl:new wc([0],[function(Y,b){_.By(Y,69,b)}]),
vm:new wc([3],[function(Y,b){_.E2(Y,98,b)}]),
w:new wc([0],[function(Y,b){_.KE(Y,12,b)}]),
x:new wc([0],[function(Y,b){_.KE(Y,9,b)}]),
y:new wc([0],[function(Y,b){_.KE(Y,10,b)}]),
ya:new wc([2],[function(Y,b){_.UK(Y,77,_.UX(b))}]),
z:new wc([0],[function(Y,b){_.KE(Y,11,b)}])};
BSA.prototype.parse=function(Y){var b=new Ev7,w=new Ev7;if(Y=="")Y=!0;else{Y=Y.split("-");for(var V=!0,H=0;H<Y.length;H++){var f=Y[H];if(f.length==0)V=!1;else{var E=f,U=!1;var X=E;var I=E.charAt(0);I!=I.toLowerCase()&&(U=!0,X=E.charAt(0).toLowerCase()+E.substring(1));var k=mXt;for(I=1;I<=X.length;++I){var l=k,x=X.substring(0,I);if(x.length==0?l.isEmpty():!UXI(l,x))break}X=I==1?null:(X=k.get(X.substring(0,I-1)))?{option:E.substring(0,I-1),value:E.substring(I-1),signed:U,attributes:X}:null;if(X){E=
[];U=[];I=!1;for(k=0;k<X.attributes.types.length;k++){l=X.attributes.types[k];var Q=X.value;x=H;if(X.signed&&l==1)for(var Z=Q.length;Z<12&&x<Y.length-1;)Q+="-"+Y[x+1],Z=Q.length,++x;else if(l==2)for(;x<Y.length-1&&Y[x+1].match(/^[\d\.]/);)Q+="-"+Y[x+1],++x;Z=X.attributes.setters[k];Q=IXA(this,l)(X.option,Q,b,w,Z);if(Q===null){I=!0;H=x;break}else E.push(l),U.push(Q)}if(!I)for(X=0;X<U.length;X++)k=E[X],Q=U[X],kZN(this,k)(f,Q);V=V&&I}else V=!1}}Y=V}return new lXt(b,w,Y)};
var Vb=function(Y,b,w,V,H,f){H(w,b);Y=Y.charAt(0);f=f(Y==Y.toUpperCase());H(V,f)};
_.g=BSA.prototype;_.g.parseAndSetIntOption_=function(Y,b,w,V,H){if(b=="")return 0;isFinite(b)&&(b=String(b));b=typeof b==="string"?/^\s*-?0x/i.test(b)?parseInt(b,16):parseInt(b,10):NaN;if(isNaN(b))return 1;Vb(Y,b,w,V,H,Number);return null};
_.g.logIntParseError_=function(){};
_.g.parseAndSetFloatOption_=function(Y,b,w,V,H){if(b=="")return 0;var f=Number(b);b=f==0&&_.EM(b)?NaN:f;if(isNaN(b))return 1;Vb(Y,b,w,V,H,Number);return null};
_.g.logFloatParseError_=function(){};
_.g.parseAndSetBoolOption_=function(Y,b,w,V,H){if(b!="")return 2;Vb(Y,!0,w,V,H,Boolean);return null};
_.g.logBoolParseError_=function(){};
_.g.parseAndSetStringOption_=function(Y,b,w,V,H){if(b=="")return 0;Vb(Y,b,w,V,H,function(f){return f?"1":""});
return null};
_.g.logStringParseError_=function(){};
_.g.parseAndSetUint64Base64Option_=function(Y,b,w,V,H){if(b=="")return 0;Vb(Y,b,w,V,H,function(f){return f?1:0});
return null};
var IXA=function(Y,b){switch(b){case 0:return(0,_.nC)(Y.parseAndSetIntOption_,Y);case 2:return(0,_.nC)(Y.parseAndSetFloatOption_,Y);case 3:return(0,_.nC)(Y.parseAndSetBoolOption_,Y);case 4:return(0,_.nC)(Y.parseAndSetStringOption_,Y);case 1:return(0,_.nC)(Y.parseAndSetUint64Base64Option_,Y);default:return function(){}}},kZN=function(Y,b){switch(b){case 0:return(0,_.nC)(Y.logIntParseError_,Y);
case 2:return(0,_.nC)(Y.logFloatParseError_,Y);case 3:return(0,_.nC)(Y.logBoolParseError_,Y);case 4:case 1:return(0,_.nC)(Y.logStringParseError_,Y);default:return function(){}}},lXt=function(Y,b,w){this.valueProto_=Y;
this.signatureFlagProto_=b;this.JSC$17367_valid_=w};
lXt.prototype.isValid=function(){return this.JSC$17367_valid_};var Qdd=function(Y){this.JSC$17368_parser_=null;this.JSC$17368_components_=[];this.JSC$17368_parsedOptions_=null;h0I(this,Y)},xX7=function(Y){Y.JSC$17368_parser_==null&&(Y.JSC$17368_parser_=new BSA);
return Y.JSC$17368_parser_},h0I=function(Y,b){Y.JSC$17368_parsedOptions_=b?typeof b==="string"?xX7(Y).parse(b):b:xX7(Y).parse("")},H_=function(Y,b){return Y==b?!1:!0};
_.g=Qdd.prototype;_.g.JSC$17370_setCrop=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,_.dM(w,2),_.dM(b.signatureFlagProto_,2))&&_.E2(w,2,Y);return this};
_.g.JSC$17370_setCircleCrop=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,DN(w,51),DN(b.signatureFlagProto_,51))&&_.E2(w,51,Y);return this};
_.g.JSC$17370_setImageCrop=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,DN(w,32),DN(b.signatureFlagProto_,32))&&_.E2(w,32,Y);return this};
_.g.JSC$17370_setHeight=function(Y){var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,w.getHeight(),b.signatureFlagProto_.getHeight())&&_.KE(w,13,Y);return this};
_.g.setCenterCrop=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,_.dM(w,20),_.dM(b.signatureFlagProto_,20))&&w.setCenterCrop(Y);return this};
_.g.JSC$17370_setSmartCrop=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,_.dM(w,19),_.dM(b.signatureFlagProto_,19))&&_.E2(w,19,Y);return this};
_.g.JSC$17370_setPad=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,DN(w,60),DN(b.signatureFlagProto_,60))&&_.E2(w,60,Y);return this};
_.g.JSC$17370_setSmartCropUseFace=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,_.dM(w,67),_.dM(b.signatureFlagProto_,67))&&_.E2(w,67,Y);return this};
_.g.JSC$17370_setSmartCropNoClip=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,_.dM(w,52),_.dM(b.signatureFlagProto_,52))&&_.E2(w,52,Y);return this};
_.g.setSize=function(Y){var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,w.getSize(),b.signatureFlagProto_.getSize())&&w.setSize(Y);return this};
_.g.setToken=function(Y){Y=Y||void 0;var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,w.getToken(),b.signatureFlagProto_.getToken())&&w.setToken(Y);return this};
_.g.JSC$17370_setWidth=function(Y){var b=this.JSC$17368_parsedOptions_,w=b.valueProto_;H_(Y,w.getWidth(),b.signatureFlagProto_.getWidth())&&_.KE(w,12,Y);return this};
_.g.clearOptions=function(){h0I(this,"");return this};
_.g.build=function(){this.JSC$17368_components_.length=0;var Y=this.JSC$17368_parsedOptions_,b=Y.valueProto_;Y=Y.signatureFlagProto_;ff(this,"s",b.getSize(),Y.getSize());ff(this,"w",b.getWidth(),Y.getWidth());Ng(this,"c",_.dM(b,2),_.dM(Y,2));Ng(this,"d",_.dM(b,3),_.dM(Y,3));ff(this,"h",b.getHeight(),Y.getHeight());Ng(this,"s",DN(b,33),DN(Y,33));Ng(this,"h",b.getHtml(),Y.getHtml());Ng(this,"p",_.dM(b,19),_.dM(Y,19));Ng(this,"pp",_.dM(b,52),_.dM(Y,52));Ng(this,"pf",_.dM(b,67),_.dM(Y,67));Ng(this,"n",
_.dM(b,20),_.dM(Y,20));ff(this,"r",mM(b,26),mM(Y,26));Ng(this,"r",_.dM(b,6),_.dM(Y,6));Ng(this,"o",DN(b,27),DN(Y,27));var w=_.Ry(b,7,_.PZ);Ep(this,"o",w,_.Ry(Y,7,_.PZ));w=_.Ry(b,29,_.PZ);Ep(this,"j",w,_.Ry(Y,29,_.PZ));ff(this,"x",mM(b,9),mM(Y,9));ff(this,"y",mM(b,10),mM(Y,10));ff(this,"z",mM(b,11),mM(Y,11));Ng(this,"g",_.dM(b,14),_.dM(Y,14));ff(this,"e",mM(b,15),mM(Y,15));Ep(this,"f",_.hy(b,16),_.hy(Y,16));Ng(this,"k",DN(b,17),DN(Y,17));Ng(this,"u",DN(b,18),!0);Ng(this,"ut",DN(b,45),!0);Ng(this,"i",
DN(b,22),!0);Ng(this,"a",DN(b,21),DN(Y,21));Ng(this,"b",_.dM(b,23),_.dM(Y,23));ff(this,"b",mM(b,38),mM(Y,38));ff(this,"c",mM(b,39),mM(Y,39),16,8);Ep(this,"q",_.hy(b,28),_.hy(Y,28));Ng(this,"fh",DN(b,30),DN(Y,30));Ng(this,"fv",DN(b,31),DN(Y,31));Ng(this,"fg",_.dM(b,34),_.dM(Y,34));Ng(this,"ci",DN(b,32),DN(Y,32));Ep(this,"t",b.getToken(),Y.getToken());Ep(this,"nt0",_.hy(b,36),_.hy(Y,36));Ng(this,"rw",_.dM(b,35),_.dM(Y,35));Ng(this,"rwu",_.dM(b,41),_.dM(Y,41));Ng(this,"rwa",_.dM(b,64),_.dM(Y,64));Ng(this,
"nw",_.dM(b,48),_.dM(Y,48));Ng(this,"rh",_.dM(b,49),_.dM(Y,49));Ng(this,"no",_.dM(b,37),_.dM(Y,37));Ng(this,"ns",DN(b,40),DN(Y,40));ff(this,"k",mM(b,42),mM(Y,42));ff(this,"p",mM(b,43),mM(Y,43));ff(this,"l",mM(b,44),mM(Y,44));ff(this,"v",mM(b,62),mM(Y,62));Ng(this,"nu",DN(b,46),DN(Y,46));Ng(this,"ft",DN(b,50),DN(Y,50));Ng(this,"cc",DN(b,51),DN(Y,51));Ng(this,"nd",DN(b,53),DN(Y,53));Ng(this,"ip",DN(b,54),DN(Y,54));Ng(this,"nc",DN(b,55),DN(Y,55));ff(this,"a",mM(b,56),mM(Y,56));Ng(this,"rj",DN(b,57),
DN(Y,57));Ng(this,"rp",DN(b,58),DN(Y,58));Ng(this,"rg",DN(b,59),DN(Y,59));Ng(this,"pd",DN(b,60),DN(Y,60));Ng(this,"pa",DN(b,61),DN(Y,61));ff(this,"m",mM(b,63),mM(Y,63));ff(this,"vb",oF(b,68),oF(Y,68));ff(this,"vl",oF(b,69),oF(Y,69));Ng(this,"lf",DN(b,65),DN(Y,65));Ng(this,"mv",DN(b,66),DN(Y,66));Ng(this,"id",DN(b,70),DN(Y,70));ff(this,"ic",mM(b,71),!0);Ng(this,"pg",_.dM(b,72),_.dM(Y,72));Ng(this,"mo",DN(b,73),DN(Y,73));Ng(this,"al",DN(b,74),DN(Y,74));ff(this,"iv",oF(b,75),oF(Y,75));ff(this,"pi",IF(b,
76),IF(Y,76));ff(this,"ya",IF(b,77),IF(Y,77));ff(this,"ro",IF(b,78),IF(Y,78));ff(this,"fo",IF(b,79),IF(Y,79));Ng(this,"df",DN(b,80),DN(Y,80));Ep(this,"mm",_.hy(b,81),_.hy(Y,81));Ng(this,"sg",DN(b,82),DN(Y,82));Ng(this,"gd",DN(b,83),DN(Y,83));Ng(this,"fm",DN(b,84),DN(Y,84));ff(this,"ba",mM(b,85),mM(Y,85));ff(this,"br",mM(b,86),mM(Y,86));ff(this,"bc",b.getBackgroundColor(),Y.getBackgroundColor(),16,8);ff(this,"pc",mM(b,88),mM(Y,88),16,8);ff(this,"sc",mM(b,89),mM(Y,89),16,8);Ng(this,"dv",DN(b,90),DN(Y,
90));Ng(this,"md",DN(b,91),DN(Y,91));ff(this,"cp",mM(b,92),mM(Y,92));Ng(this,"sm",DN(b,93),DN(Y,93));ff(this,"cv",mM(b,94),mM(Y,94));Ng(this,"ng",DN(b,95),DN(Y,95));Ng(this,"il",DN(b,96),DN(Y,96));Ng(this,"lo",DN(b,97),DN(Y,97));Ng(this,"vm",DN(b,98),DN(Y,98));Ep(this,"dc",_.hy(b,99),_.hy(Y,99));Ng(this,"rf",DN(b,100),DN(Y,100));Ep(this,"vf",_.hy(b,102),_.hy(Y,102));Ng(this,"ra",_.dM(b,103),_.dM(Y,103));Ng(this,"ckm",DN(b,104),DN(Y,104));Ng(this,"gm",DN(b,105),DN(Y,105));Ng(this,"ngm",DN(b,106),DN(Y,
106));ff(this,"em",mM(b,107),mM(Y,107));Ng(this,"cr",DN(b,108),DN(Y,108));ff(this,"sl",b.getStoryboardLevel(),Y.getStoryboardLevel());ff(this,"sb",mM(b,110),mM(Y,110));Ep(this,"pt",_.hy(b,111),_.hy(Y,111));Ep(this,"gce",_.hy(b,112),_.hy(Y,112));Ng(this,"tm",DN(b,113),DN(Y,113));Ng(this,"ntm",DN(b,114),DN(Y,114));return this.JSC$17368_components_.join("-")};
var ff=function(Y,b,w,V,H,f){if(w!=null){var E=H==void 0||H!=10&&H!=16?10:H;w=Number(w).toString(E);H=new K$N;H.append(E==16?"0x":"");E=H.append;f==void 0?f="":(f-=w.length,f=f<=0?"":(0,_.zIr)("0",f));E.call(H,f);H.append(w);q0t(Y,b,H.toString(),!!Number(V))}},Ng=function(Y,b,w,V){w&&q0t(Y,b,"",!!V)},Ep=function(Y,b,w,V){w&&q0t(Y,b,String(w),!!Number(V))},q0t=function(Y,b,w,V){V&&(b=b.charAt(0).toUpperCase()+b.substring(1));
Y.JSC$17368_components_.push(b+w)};_.DX(Ql,Qdd);_.g=Ql.prototype;_.g.JSC$17370_setCrop=function(Y){Y&&c_(this);return Ql.superClass_.JSC$17370_setCrop.call(this,Y)};
_.g.JSC$17370_setHeight=function(Y){Y=Y==null||Y<0?void 0:Y;Y!=null&&this.setSize();return Ql.superClass_.JSC$17370_setHeight.call(this,Y)};
_.g.JSC$17370_setImageCrop=function(Y){Y&&c_(this);return Ql.superClass_.JSC$17370_setImageCrop.call(this,Y)};
_.g.JSC$17370_setCircleCrop=function(Y){Y&&c_(this);return Ql.superClass_.JSC$17370_setCircleCrop.call(this,Y)};
_.g.setSize=function(Y){_.bC(Y)&&(Y=Math.max(Y.width,Y.height));Y=Y==null||Y<0?void 0:Y;Y!=null&&(this.JSC$17370_setWidth(),this.JSC$17370_setHeight());return Ql.superClass_.setSize.call(this,Y)};
_.g.JSC$17370_setSmartCrop=function(Y){Y&&c_(this);return Ql.superClass_.JSC$17370_setSmartCrop.call(this,Y)};
_.g.JSC$17370_setSmartCropNoClip=function(Y){Y&&c_(this);return Ql.superClass_.JSC$17370_setSmartCropNoClip.call(this,Y)};
_.g.JSC$17370_setSmartCropUseFace=function(Y){Y&&c_(this);return Ql.superClass_.JSC$17370_setSmartCropUseFace.call(this,Y)};
_.g.setCenterCrop=function(Y){Y&&c_(this);return Ql.superClass_.setCenterCrop.call(this,Y)};
_.g.JSC$17370_setPad=function(Y){Y&&c_(this);return Ql.superClass_.JSC$17370_setPad.call(this,Y)};
_.g.JSC$17370_setWidth=function(Y){Y=Y==null||Y<0?void 0:Y;Y!=null&&this.setSize();return Ql.superClass_.JSC$17370_setWidth.call(this,Y)};
var syt=function(Y){Y.clearOptions();var b=Y.JSC$17368_parsedOptions_,w=b.valueProto_;H_(!0,_.dM(w,3),_.dM(b.signatureFlagProto_,3))&&_.E2(w,3,!0);return Y},c_=function(Y){Y.setCenterCrop();
Y.JSC$17370_setCircleCrop();Y.JSC$17370_setCrop();Y.JSC$17370_setImageCrop();Y.JSC$17370_setPad();Y.JSC$17370_setSmartCrop();Y.JSC$17370_setSmartCropNoClip();Y.JSC$17370_setSmartCropUseFace()};
Ql.prototype.build=function(){var Y=this.JSC$17368_parsedOptions_.valueProto_;DN(Y,18)||DN(Y,45)?Y.getSize()||this.setSize(0):(Y=this.JSC$17368_parsedOptions_.valueProto_,Y.getSize()||Y.getWidth()||Y.getHeight()||(this.setSize(),this.JSC$17370_setHeight(),this.JSC$17370_setWidth(),c_(this)));return Ql.superClass_.build.call(this)};var QyX=/^[^\/]*\/\//,Up=function(Y,b){b=b===void 0?!1:b;this.original_=Y;this.originalPrefix_="";(Y=this.original_.match(QyX))&&Y[0]?(this.originalPrefix_=Y[0],Y=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):Y="http://"+this.original_;this.uri_=_.$G(Y,!0);this.isFreeformUrl_=b;this.JSC$17374_valid_=!0;this.obfuscated_=!1},vvO=function(Y,b){Y.JSC$17376_pathPrefix_=Y.JSC$17376_pathPrefix_?Y.JSC$17376_pathPrefix_+("/"+b):b},Xw=function(Y){if(Y.JSC$17376_components_==
void 0){var b=Y.uri_.getPath().substring(1);
Y.JSC$17376_pathPrefix_=null;if(Y.isFreeformUrl_){Y.JSC$17376_components_=[];if((b.match(/=/g)||[]).length>1)return Y.JSC$17374_valid_=!1,Y.JSC$17376_components_;var w=b.indexOf("=");w!=-1?(Y.JSC$17376_components_.push(b.substr(0,w)),Y.JSC$17376_components_.push(b.substr(w+1))):Y.JSC$17376_components_.push(b);return Y.JSC$17376_components_}Y.JSC$17376_components_=b.split("/");b=Y.JSC$17376_components_.length;b>2&&Y.JSC$17376_components_[0]=="u"&&(vvO(Y,Y.JSC$17376_components_[0]+"/"+Y.JSC$17376_components_[1]),
Y.JSC$17376_components_.shift(),Y.JSC$17376_components_.shift(),b-=2);if(b==0||b==4||b>7)return Y.JSC$17374_valid_=!1,Y.JSC$17376_components_;if(b==2)vvO(Y,Y.JSC$17376_components_[0]);else if(Y.JSC$17376_components_[0]=="image")vvO(Y,Y.JSC$17376_components_[0]);else if(b==7||b==3)return Y.JSC$17374_valid_=!1,Y.JSC$17376_components_;if(b<=3){Y.obfuscated_=!0;b==3&&(vvO(Y,Y.JSC$17376_components_[1]),Y.JSC$17376_components_.shift(),--b);--b;w=Y.JSC$17376_components_[b];var V=w.indexOf("=");V!=-1&&(Y.JSC$17376_components_[b]=
w.substr(0,V),Y.JSC$17376_components_.push(w.substr(V+1)))}}return Y.JSC$17376_components_};
Up.prototype.isValid=function(){Xw(this);return this.JSC$17374_valid_};
Up.prototype.isObfuscated=function(){Xw(this);return this.obfuscated_};
var opX=function(Y){Xw(Y);return Y.isFreeformUrl_},DO=function(Y){Xw(Y);
Y.JSC$17376_pathPrefix_==void 0&&(Y.JSC$17376_pathPrefix_=null);return Y.JSC$17376_pathPrefix_},I1O=function(Y){switch(Xw(Y).length){case 7:return!0;
case 6:return DO(Y)==null;case 5:return!1;case 3:return!0;case 2:return DO(Y)==null;case 1:return!1;default:return!1}},m8=function(Y,b){if(opX(Y))a:{switch(b){case 7:b=0;
break;case 4:if(!I1O(Y)){Y=null;break a}b=1;break;default:Y=null;break a}Y=Xw(Y)[b]}else if(Y.isObfuscated())a:{var w=DO(Y)!=null?1:0;switch(b){case 6:b=w;break;case 4:if(!I1O(Y)){Y=null;break a}b=1+w;break;default:Y=null;break a}Y=Xw(Y)[b]}else a:{w=DO(Y)!=null?1:0;switch(b){case 0:b=w;break;case 1:b=1+w;break;case 2:b=2+w;break;case 3:b=3+w;break;case 4:if(!I1O(Y)){Y=null;break a}b=4+w;break;case 5:b=I1O(Y)?1:0;b=4+w+b;break;default:Y=null;break a}Y=Xw(Y)[b]}return Y};
Up.prototype.getOptions=function(){this.options_==void 0&&(this.options_=m8(this,4));return this.options_};var ZSt=function(){};
ZSt.prototype.parse=function(Y,b){return new vDA(Y,b===void 0?!1:b)};
var vDA=function(Y,b){Up.call(this,Y,b===void 0?!1:b)};
_.P(vDA,Up);_.DX(vc,Ql);var PpA;vc.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
vc.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var Y=vc.superClass_.build.call(this),b=[];DO(this.parsedImageUrl_)!=null&&b.push(DO(this.parsedImageUrl_));var w=opX(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var V=this.parsedImageUrl_;V.obfuscatedData_==void 0&&(V.obfuscatedData_=m8(V,6));b.push(V.obfuscatedData_+(Y?"="+Y:""))}else if(w){V=b.push;var H=this.parsedImageUrl_;H.freeformUrlPath_===void 0&&(H.freeformUrlPath_=m8(H,
7));V.call(b,H.freeformUrlPath_);Y&&b.push(Y)}else V=b.push,H=this.parsedImageUrl_,H.obfuscatedGaiaId_==void 0&&(H.obfuscatedGaiaId_=m8(H,0)),V.call(b,H.obfuscatedGaiaId_),V=b.push,H=this.parsedImageUrl_,H.photoId_==void 0&&(H.photoId_=m8(H,1)),V.call(b,H.photoId_),V=b.push,H=this.parsedImageUrl_,H.imageVersion_==void 0&&(H.imageVersion_=m8(H,2)),V.call(b,H.imageVersion_),V=b.push,H=this.parsedImageUrl_,H.signature_==void 0&&(H.signature_=m8(H,3)),V.call(b,H.signature_),Y&&b.push(Y),Y=b.push,V=this.parsedImageUrl_,
V.filename_==void 0&&(V.filename_=m8(V,5)),Y.call(b,V.filename_);b=w?b.join("="):b.join("/");b=_.$G(this.protocolPrefix_+this.JSC$17382_domain_+"/"+b+(this.JSC$17382_query_?"?"+this.JSC$17382_query_:"")).toString();b.startsWith("%3a//")&&(b=b.replace("%3a//","://"));return b};var kVb=_.wM(["viewBox"]),l1s=_.wM(["width"]),hks=_.wM(["height"]),xvX=_.wM(["fill"]),qTd=_.wM(["id"]),sBQ=_.wM(["x"]),QBt=_.wM(["y"]);nDN.prototype.getLength=function(){return this.parsedData.length};
nDN.prototype.write=function(Y){for(var b=0,w=this.parsedData.length;b<w;b++)Y.put(this.parsedData[b],8)};
var dcg=function(Y,b){var w=new nDN(b);Y.dataList.push(w);w=Y.errorCorrectLevel;var V=1,H=encodeURI(b).toString().replace(/%[0-9a-fA-F]{2}/g,"a");b=H.length+(H.length!=b?3:0);H=0;for(var f=oe.length;H<=f;H++){var E=0;switch(w){case 1:E=oe[H][0];break;case 0:E=oe[H][1];break;case 3:E=oe[H][2];break;case 2:E=oe[H][3]}if(b<=E)break;else V++}if(V>oe.length)throw Error("wk");Y.typeNumber=V;Y.dataCache=null};
MMt.prototype.isDark=function(Y,b){if(Y<0||this.moduleCount<=Y||b<0||this.moduleCount<=b)throw Error("ok`"+Y+"`"+b);return this.modules[Y][b]};
for(var FHX=function(Y,b,w){Y.moduleCount=Y.typeNumber*4+17;Y.modules=Array(Y.moduleCount);for(var V=0;V<Y.moduleCount;V++){Y.modules[V]=Array(Y.moduleCount);for(var H=0;H<Y.moduleCount;H++)Y.modules[V][H]=null}vpN(Y,0,0);vpN(Y,Y.moduleCount-7,0);vpN(Y,0,Y.moduleCount-7);V=PYX[Y.typeNumber-1];for(H=0;H<V.length;H++)for(var f=0;f<V.length;f++){var E=V[H],U=V[f];if(Y.modules[E][U]==null)for(var X=-2;X<=2;X++)for(var I=-2;I<=2;I++)Y.modules[E+X][U+I]=X==-2||X==2||I==-2||I==2||X==0&&I==0?!0:!1}for(V=
8;V<Y.moduleCount-8;V++)Y.modules[V][6]==null&&(Y.modules[V][6]=V%2==0);for(V=8;V<Y.moduleCount-8;V++)Y.modules[6][V]==null&&(Y.modules[6][V]=V%2==0);V=Y.errorCorrectLevel<<3|w;for(H=V<<10;Ie(H)-Ie(1335)>=0;)H^=1335<<Ie(H)-Ie(1335);V=(V<<10|H)^21522;for(H=0;H<15;H++)f=!b&&(V>>H&1)==1,H<6?Y.modules[H][8]=f:H<8?Y.modules[H+1][8]=f:Y.modules[Y.moduleCount-15+H][8]=f;for(H=0;H<15;H++)f=!b&&(V>>H&1)==1,H<8?Y.modules[8][Y.moduleCount-H-1]=f:H<9?Y.modules[8][15-H-1+1]=f:Y.modules[8][15-H-1]=f;Y.modules[Y.moduleCount-
8][8]=!b;if(Y.typeNumber>=7){V=Y.typeNumber;for(H=V<<12;Ie(H)-Ie(7973)>=0;)H^=7973<<Ie(H)-Ie(7973);V=V<<12|H;for(H=0;H<18;H++)f=!b&&(V>>H&1)==1,Y.modules[Math.floor(H/3)][H%3+Y.moduleCount-8-3]=f;for(H=0;H<18;H++)f=!b&&(V>>H&1)==1,Y.modules[H%3+Y.moduleCount-8-3][Math.floor(H/3)]=f}if(Y.dataCache==null){H=Y.typeNumber;f=Y.dataList;b=Y.errorCorrectLevel;V=ZPN(H,b);if(V==void 0)throw Error("vk`"+H+"`"+b);E=V.length/3;b=[];for(U=0;U<E;U++){X=V[U*3];I=V[U*3+1];for(var k=V[U*3+2],l=0;l<X;l++)b.push(new emd(I,
k))}V=new p6R;for(E=0;E<f.length;E++)U=f[E],V.put(U.mode,4),V.put(U.getLength(),ByO(U.mode,H)),U.write(V);for(E=H=0;E<b.length;E++)H+=b[E].dataCount;if(V.length>H*8)throw Error("pk`"+V.length+"`"+H*8);for(V.length+4<=H*8&&V.put(0,4);V.length%8!=0;)nps(V,!1);for(;!(V.length>=H*8);){V.put(236,8);if(V.length>=H*8)break;V.put(17,8)}f=H=I=0;E=Array(b.length);U=Array(b.length);for(X=0;X<b.length;X++){l=b[X].dataCount;var x=b[X].totalCount-l;H=Math.max(H,l);f=Math.max(f,x);E[X]=Array(l);for(k=0;k<E[X].length;k++)E[X][k]=
255&V.buffer[k+I];I+=l;k=x;l=new Pc([1],0);for(x=0;x<k;x++)l=l.multiply(new Pc([1,MBX(x)],0));k=l;l=(new Pc(E[X],k.getLength()-1)).mod(k);U[X]=Array(k.getLength()-1);for(k=0;k<U[X].length;k++)x=k+l.getLength()-U[X].length,U[X][k]=x>=0?l.get(x):0}for(k=V=0;k<b.length;k++)V+=b[k].totalCount;V=Array(V);for(k=I=0;k<H;k++)for(X=0;X<b.length;X++)k<E[X].length&&(V[I++]=E[X][k]);for(k=0;k<f;k++)for(X=0;X<b.length;X++)k<U[X].length&&(V[I++]=U[X][k]);Y.dataCache=V}b=Y.dataCache;V=-1;H=Y.moduleCount-1;f=7;E=
0;for(U=Y.moduleCount-1;U>0;U-=2)for(U==6&&U--;;){for(X=0;X<2;X++)Y.modules[H][U-X]==null&&(I=!1,E<b.length&&(I=(b[E]>>>f&1)==1),ekg(w,H,U-X)&&(I=!I),Y.modules[H][U-X]=I,f--,f==-1&&(E++,f=7));H+=V;if(H<0||Y.moduleCount<=H){H-=V;V=-V;break}}},vpN=function(Y,b,w){for(var V=-1;V<=7;V++)if(!(b+V<=-1||Y.moduleCount<=b+V))for(var H=-1;H<=7;H++)w+H<=-1||Y.moduleCount<=w+H||(Y.modules[b+V][w+H]=0<=V&&V<=6&&(H==0||H==6)||0<=H&&H<=6&&(V==0||V==6)||2<=V&&V<=4&&2<=H&&H<=4?!0:!1)},LHt=function(Y){for(var b=0,
w=0,V=0;V<8;V++){FHX(Y,!0,V);
var H=Y;for(var f=H.moduleCount,E=0,U=0;U<f;U++)for(var X=0;X<f;X++){for(var I=0,k=H.isDark(U,X),l=-1;l<=1;l++)if(!(U+l<0||f<=U+l))for(var x=-1;x<=1;x++)X+x<0||f<=X+x||(l!=0||x!=0)&&k==H.isDark(U+l,X+x)&&I++;I>5&&(E+=3+I-5)}for(U=0;U<f-1;U++)for(X=0;X<f-1;X++)if(I=0,H.isDark(U,X)&&I++,H.isDark(U+1,X)&&I++,H.isDark(U,X+1)&&I++,H.isDark(U+1,X+1)&&I++,I==0||I==4)E+=3;for(U=0;U<f;U++)for(X=0;X<f-6;X++)H.isDark(U,X)&&!H.isDark(U,X+1)&&H.isDark(U,X+2)&&H.isDark(U,X+3)&&H.isDark(U,X+4)&&!H.isDark(U,X+5)&&
H.isDark(U,X+6)&&(E+=40);for(X=0;X<f;X++)for(U=0;U<f-6;U++)H.isDark(U,X)&&!H.isDark(U+1,X)&&H.isDark(U+2,X)&&H.isDark(U+3,X)&&H.isDark(U+4,X)&&!H.isDark(U+5,X)&&H.isDark(U+6,X)&&(E+=40);for(X=I=0;X<f;X++)for(U=0;U<f;U++)H.isDark(U,X)&&I++;H=E+=Math.abs(100*I/f/f-50)/5*10;if(V==0||b>H)b=H,w=V}return w},PYX=[[],
[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]],Ie=function(Y){for(var b=0;Y!=0;)b++,Y>>>=1;return b},ekg=function(Y,b,w){switch(Y){case 0:return(b+w)%2==0;
case 1:return b%2==0;case 2:return w%3==0;case 3:return(b+w)%3==0;case 4:return(Math.floor(b/2)+Math.floor(w/3))%2==0;case 5:return b*w%2+b*w%3==0;case 6:return(b*w%2+b*w%3)%2==0;case 7:return(b*w%3+(b+w)%2)%2==0;default:throw Error("qk`"+Y);}},ByO=function(Y,b){if(1<=b&&b<10)switch(Y){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("rk`"+Y);}else if(b<27)switch(Y){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("rk`"+Y);}else if(b<41)switch(Y){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("rk`"+Y);}else throw Error("sk`"+b);},kY=function(Y){if(Y<1)throw Error("tk`"+Y);
return p2N[Y]},MBX=function(Y){for(;Y<0;)Y+=255;
for(;Y>=256;)Y-=255;return ls[Y]},ls=Array(256),p2N=Array(256),OPs=0;OPs<8;OPs++)ls[OPs]=1<<OPs;
for(var hG=8;hG<256;hG++)ls[hG]=ls[hG-4]^ls[hG-5]^ls[hG-6]^ls[hG-8];for(var tBt=0;tBt<255;tBt++)p2N[ls[tBt]]=tBt;Pc.prototype.get=function(Y){return this.num[Y]};
Pc.prototype.getLength=function(){return this.num.length};
Pc.prototype.multiply=function(Y){for(var b=Array(this.getLength()+Y.getLength()-1),w=0;w<this.getLength();w++)for(var V=0;V<Y.getLength();V++)b[w+V]^=MBX(kY(this.get(w))+kY(Y.get(V)));return new Pc(b,0)};
Pc.prototype.mod=function(Y){if(this.getLength()-Y.getLength()<0)return this;for(var b=kY(this.get(0))-kY(Y.get(0)),w=Array(this.getLength()),V=0;V<this.getLength();V++)w[V]=this.get(V);for(V=0;V<Y.getLength();V++)w[V]^=MBX(kY(Y.get(V))+b);return(new Pc(w,0)).mod(Y)};
var RkI=[[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]],ZPN=function(Y,b){switch(b){case 1:return RkI[(Y-1)*4];case 0:return RkI[(Y-1)*4+1];case 3:return RkI[(Y-1)*4+2];case 2:return RkI[(Y-1)*4+3]}};
p6R.prototype.get=function(Y){return(this.buffer[Math.floor(Y/8)]>>>7-Y%8&1)==1};
p6R.prototype.put=function(Y,b){for(var w=0;w<b;w++)nps(this,(Y>>>b-w-1&1)==1)};
var nps=function(Y,b){var w=Math.floor(Y.length/8);Y.buffer.length<=w&&Y.buffer.push(0);b&&(Y.buffer[w]|=128>>>Y.length%8);Y.length++},oe=[[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]],RmN=function(){var Y=function(b,w){this.JSC$17402__el=b;this.JSC$17402__htOption=w};
Y.prototype.draw=function(b){function w(k,l){k=document.createElementNS("http://www.w3.org/2000/svg",k);for(var x in l)l.hasOwnProperty(x)&&(x==="href"?_.d6t(k,l[x]):_.Az([_.wF(kVb),_.wF(l1s),_.wF(hks),_.wF(xvX),_.wF(qTd),_.wF(sBQ),_.wF(QBt)],k,x,l[x]));return k}
var V=this.JSC$17402__htOption,H=this.JSC$17402__el,f=b.moduleCount;this.clear();var E=w("svg",{viewBox:"0 0 "+String(f)+" "+String(f),width:"100%",height:"100%",fill:V.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});H.appendChild(E);E.appendChild(w("rect",{fill:V.colorLight,width:"100%",height:"100%"}));E.appendChild(w("rect",{fill:V.colorDark,width:"1",height:"1",id:"template"}));for(var U=0;U<f;U++)for(var X=0;X<f;X++)if(b.isDark(U,X)){var I=w("use",{x:String(U),y:String(X),href:"#template"});
E.appendChild(I)}};
Y.prototype.clear=function(){for(;this.JSC$17402__el.hasChildNodes();)this.JSC$17402__el.removeChild(this.JSC$17402__el.lastChild)};
return Y}(),tMb=document.documentElement.tagName.toLowerCase()==="svg"?RmN:typeof CanvasRenderingContext2D!="undefined"?function(){var Y=function(b,w){this._bIsPainted=!1;
OSX();this.JSC$17402__htOption=w;this._elCanvas=document.createElement("canvas");this._elCanvas.width=w.width;this._elCanvas.height=w.height;b.appendChild(this._elCanvas);this.JSC$17402__el=b;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$17402__el.appendChild(this._elImage);this._bSupportDataURI=null};
Y.prototype._onMakeImage=function(){var b=this._elCanvas.toDataURL("image/png");this._elImage.src=b;this._elImage.style.display="block";this._elCanvas.style.display="none"};
Y.prototype._safeSetDataURI=function(b,w){var V=this;V._fFail=w;V._fSuccess=b;V._bSupportDataURI===null?(b=_.xG("IMG"),w=function(){V._bSupportDataURI=!1;V._fFail&&V._fFail.call(V)},b.onabort=w,b.onerror=w,b.onload=function(){V._bSupportDataURI=!0;
V._fSuccess&&V._fSuccess.call(V)},b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):V._bSupportDataURI===!0&&V._fSuccess?V._fSuccess.call(V):V._bSupportDataURI===!1&&V._fFail&&V._fFail.call(V)};
Y.prototype.draw=function(b){var w=this._oContext,V=this.JSC$17402__htOption,H=b.moduleCount,f=V.width/H,E=V.height/H,U=Math.round(f),X=Math.round(E);this._elImage.style.display="none";this.clear();for(var I=0;I<H;I++)for(var k=0;k<H;k++){var l=b.isDark(I,k),x=k*f,Q=I*E;w.strokeStyle=l?V.colorDark:V.colorLight;w.lineWidth=1;w.fillStyle=l?V.colorDark:V.colorLight;w.fillRect(x,Q,f,E);w.strokeRect(Math.floor(x)+.5,Math.floor(Q)+.5,U,X);w.strokeRect(Math.ceil(x)-.5,Math.ceil(Q)-.5,U,X)}this._bIsPainted=
!0};
Y.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
Y.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
Y.prototype.round=function(b){return b?Math.floor(b*1E3)/1E3:b};
return Y}():function(){var Y=function(b,w){this.JSC$17402__el=b;
this.JSC$17402__htOption=w};
Y.prototype.draw=function(b){for(var w=this.JSC$17402__htOption,V=this.JSC$17402__el,H=b.moduleCount,f=Math.floor(w.width/H),E=Math.floor(w.height/H),U=['<table style="border:0;border-collapse:collapse;">'],X=0;X<H;X++){U.push("<tr>");for(var I=0;I<H;I++)U.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+f+"px;height:"+E+"px;background-color:"+(b.isDark(X,I)?w.colorDark:w.colorLight)+';"></td>');U.push("</tr>")}U.push("</table>");b=U.join("");b=_.pgk(_.tLC,b);_.iH(V,b);
b=V.childNodes[0];H=(w.width-b.offsetWidth)/2;f=(w.height-b.offsetHeight)/2;H>0&&f>0&&(b.style.margin=f+"px "+H+"px")};
Y.prototype.clear=function(){this.JSC$17402__el.textContent=""};
return Y}();
SZX.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17405__android||this.JSC$17405__android>=3)&&this._oDrawing.makeImage()};
SZX.prototype.clear=function(){this._oDrawing.clear()};
_.wB.QRCode=SZX;var dvF={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var xY=function(){};
xY.prototype.stringify=function(Y){return _.wB.JSON.stringify(Y,void 0)};
xY.prototype.parse=function(Y){return _.wB.JSON.parse(Y,void 0)};var FeQ=function(){_.Q2.call(this,"z")};
_.DX(FeQ,_.Q2);var LeX=function(){_.Q2.call(this,"y")};
_.DX(LeX,_.Q2);var STt=null,a1X=function(){return STt=STt||new _.n1},ruF=function(Y){_.Q2.call(this,"serverreachability",Y)};
_.DX(ruF,_.Q2);var qg=function(Y){var b=a1X();b.dispatchEvent(new ruF(b,Y))},zkX=function(Y){_.Q2.call(this,"statevent",Y)};
_.DX(zkX,_.Q2);var sp=function(Y){var b=a1X();b.dispatchEvent(new zkX(b,Y))},WeA=function(Y,b,w,V){_.Q2.call(this,"timingevent",Y);
this.size=b;this.rtt=w;this.retries=V};
_.DX(WeA,_.Q2);var Ke7=function(Y,b,w){var V=a1X();V.dispatchEvent(new WeA(V,Y,b,w))},Qb=function(Y,b){if(typeof Y!=="function")throw Error("xk");
return _.wB.setTimeout(function(){Y()},b)};var v_=function(){this.redactEnabled_=!0};
v_.prototype.disableRedact=function(){this.redactEnabled_=!1};
var iPd=function(Y,b,w,V,H,f){Y.info(function(){if(Y.redactEnabled_)if(f){var E="";for(var U=f.split("&"),X=0;X<U.length;X++){var I=U[X].split("=");if(I.length>1){var k=I[0];I=I[1];var l=k.split("_");E=l.length>=2&&l[1]=="type"?E+(k+"="+I+"&"):E+(k+"=redacted&")}}}else E=null;else E=f;return"XMLHTTP REQ ("+V+") [attempt "+H+"]: "+b+"\n"+w+"\n"+E})},Aud=function(Y,b,w,V,H,f,E){Y.info(function(){return"XMLHTTP RESP ("+V+") [ attempt "+H+"]: "+b+"\n"+w+"\n"+f+" "+E})},P_=function(Y,b,w,V){Y.info(function(){return"XMLHTTP TEXT ("+
b+"): "+CYO(Y,w)+(V?" "+V:"")})},yuO=function(Y,b){Y.info(function(){return"TIMEOUT: "+b})};
v_.prototype.debug=function(){};
v_.prototype.info=function(){};
v_.prototype.warning=function(){};
var CYO=function(Y,b){if(!Y.redactEnabled_)return b;if(!b)return null;try{var w=JSON.parse(b);if(w)for(var V=0;V<w.length;V++)if(Array.isArray(w[V])){var H=w[V];if(!(H.length<2)){var f=H[1];if(Array.isArray(f)&&!(f.length<1)){var E=f[0];if(E!="noop"&&E!="stop"&&E!="close")for(var U=1;U<f.length;U++)f[U]=""}}}return(0,_.dP)(w)}catch(X){return Y.debug("Exception parsing expected JS array - probably was not JS"),b}};var ZO=function(Y,b,w,V,H){this.JSC$17427_channel_=Y;this.JSC$17427_channelDebug_=b;this.sid_=w;this.JSC$17427_rid_=V;this.JSC$17427_retryId_=H||1;this.JSC$17427_eventHandler_=new _.fM(this);this.timeout_=45E3;this.JSC$17427_extraHeaders_=null;this.JSC$17427_successful_=!1;this.JSC$17427_postData_=this.JSC$17427_requestUri_=this.JSC$17427_baseUri_=this.JSC$17427_type_=this.JSC$17427_requestStartTime_=this.JSC$17427_watchDogTimeoutTime_=this.JSC$17427_watchDogTimerId_=null;this.JSC$17427_pendingMessages_=
[];this.JSC$17427_xmlHttp_=null;this.JSC$17427_xmlHttpChunkStart_=0;this.JSC$17427_lastError_=this.JSC$17427_verb_=null;this.JSC$17427_lastStatusCode_=-1;this.JSC$17427_cancelled_=!1;this.JSC$17427_readyStateChangeThrottleMs_=0;this.JSC$17427_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new $vA},$vA=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},jBO=function(Y,b){switch(Y){case 0:return"Non-200 return code ("+b+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},GVF={},TyX={};
ZO.prototype.setTimeout=function(Y){this.timeout_=Y};
var uaX=function(Y,b,w){Y.JSC$17427_type_=1;Y.JSC$17427_baseUri_=_.me(b.clone());Y.JSC$17427_postData_=w;Y.decodeChunks_=!0;JuQ(Y,null)},JuQ=function(Y,b){Y.JSC$17427_requestStartTime_=Date.now();
YgN(Y);Y.JSC$17427_requestUri_=Y.JSC$17427_baseUri_.clone();f5(Y.JSC$17427_requestUri_,"t",Y.JSC$17427_retryId_);Y.JSC$17427_xmlHttpChunkStart_=0;var w=Y.JSC$17427_channel_.JSC$17446_supportsCrossDomainXhrs_;Y.fetchResponseState_=new $vA;Y.JSC$17427_xmlHttp_=b9s(Y.JSC$17427_channel_,w?b:null,!Y.JSC$17427_postData_);Y.JSC$17427_readyStateChangeThrottleMs_>0&&(Y.JSC$17427_readyStateChangeThrottle_=new _.Vm((0,_.nC)(Y.JSC$17431_xmlHttpHandler_,Y,Y.JSC$17427_xmlHttp_),Y.JSC$17427_readyStateChangeThrottleMs_));
Y.JSC$17427_eventHandler_.listen(Y.JSC$17427_xmlHttp_,"readystatechange",Y.JSC$17431_readyStateChangeHandler_);b=Y.JSC$17427_extraHeaders_?_.BL.clone(Y.JSC$17427_extraHeaders_):{};Y.JSC$17427_postData_?(Y.JSC$17427_verb_||(Y.JSC$17427_verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",Y.JSC$17427_xmlHttp_.send(Y.JSC$17427_requestUri_,Y.JSC$17427_verb_,Y.JSC$17427_postData_,b)):(Y.JSC$17427_verb_="GET",Y.JSC$17427_xmlHttp_.send(Y.JSC$17427_requestUri_,Y.JSC$17427_verb_,null,b));qg(1);
iPd(Y.JSC$17427_channelDebug_,Y.JSC$17427_verb_,Y.JSC$17427_requestUri_,Y.JSC$17427_rid_,Y.JSC$17427_retryId_,Y.JSC$17427_postData_)};
ZO.prototype.JSC$17431_readyStateChangeHandler_=function(Y){Y=Y.target;var b=this.JSC$17427_readyStateChangeThrottle_;b&&_.L1(Y)==3?(this.JSC$17427_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$17431_xmlHttpHandler_(Y)};
ZO.prototype.JSC$17431_xmlHttpHandler_=function(Y){try{Y==this.JSC$17427_xmlHttp_?wxI(this):this.JSC$17427_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$17427_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),VfO(this)}finally{}};
var wxI=function(Y){var b=_.L1(Y.JSC$17427_xmlHttp_),w=Y.JSC$17427_xmlHttp_.JSC$7833_lastErrorCode_,V=Y.JSC$17427_xmlHttp_.getStatus();if(!(b<3||b==3&&!VfO(Y))){Y.JSC$17427_cancelled_||b!=4||w==7||(w==8||V<=0?qg(3):qg(2));H97(Y);var H=Y.JSC$17427_xmlHttp_.getStatus();Y.JSC$17427_lastStatusCode_=H;w=gWg(Y);VfO(Y)||Y.JSC$17427_channelDebug_.debug(function(){return"No response text for uri "+Y.JSC$17427_requestUri_+" status "+H});
Y.JSC$17427_successful_=H==200;Aud(Y.JSC$17427_channelDebug_,Y.JSC$17427_verb_,Y.JSC$17427_requestUri_,Y.JSC$17427_rid_,Y.JSC$17427_retryId_,b,H);if(Y.JSC$17427_successful_){if(Y.decodeInitialResponse_&&!Y.initialResponseDecoded_)if(V=f4s(Y))P_(Y.JSC$17427_channelDebug_,Y.JSC$17427_rid_,V,"Initial handshake response via X-HTTP-Initial-Response"),Y.initialResponseDecoded_=!0,NfO(Y,V);else{Y.JSC$17427_successful_=!1;Y.JSC$17427_lastError_=3;sp(12);Y.JSC$17427_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
Y.JSC$17427_rid_+")");B_(Y);nf(Y);return}Y.decodeChunks_?EWI(Y,b,w):(P_(Y.JSC$17427_channelDebug_,Y.JSC$17427_rid_,w,null),NfO(Y,w));b==4&&B_(Y);Y.JSC$17427_successful_&&!Y.JSC$17427_cancelled_&&(b==4?ctI(Y.JSC$17427_channel_,Y):(Y.JSC$17427_successful_=!1,YgN(Y)))}else gZt(Y.JSC$17427_xmlHttp_),H==400&&w.indexOf("Unknown SID")>0?(Y.JSC$17427_lastError_=3,sp(12),Y.JSC$17427_channelDebug_.warning("XMLHTTP Unknown SID ("+Y.JSC$17427_rid_+")")):(Y.JSC$17427_lastError_=0,sp(13),Y.JSC$17427_channelDebug_.warning("XMLHTTP Bad status "+
H+" ("+Y.JSC$17427_rid_+")")),B_(Y),nf(Y)}},f4s=function(Y){return Y.JSC$17427_xmlHttp_&&(Y=ml(Y.JSC$17427_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.EM(Y)?Y:null},gWg=function(Y){if(!Ubd(Y))return Y.JSC$17427_xmlHttp_.getResponseText();
var b=Y.JSC$17427_xmlHttp_.getResponse();if(b==="")return"";var w="",V=b.length,H=_.L1(Y.JSC$17427_xmlHttp_)==4;if(!Y.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return B_(Y),nf(Y),"";Y.fetchResponseState_.textDecoder=new _.wB.TextDecoder}for(var f=0;f<V;f++)Y.fetchResponseState_.responseArrivedForFetch=!0,w+=Y.fetchResponseState_.textDecoder.decode(b[f],{stream:!(H&&f==V-1)});b.length=0;Y.fetchResponseState_.responseBuffer+=w;Y.JSC$17427_xmlHttpChunkStart_=0;return Y.fetchResponseState_.responseBuffer},
VfO=function(Y){return Y.JSC$17427_xmlHttp_?Y.fetchResponseState_.responseArrivedForFetch?!0:!(!Y.JSC$17427_xmlHttp_.getResponseText()&&!Y.JSC$17427_xmlHttp_.getResponse()):!1},Ubd=function(Y){return Y.JSC$17427_xmlHttp_?Y.JSC$17427_verb_=="GET"&&Y.JSC$17427_type_!=2&&Y.JSC$17427_channel_.usesFetchStreams_:!1},EWI=function(Y,b,w){for(var V=!0,H;!Y.JSC$17427_cancelled_&&Y.JSC$17427_xmlHttpChunkStart_<w.length;)if(H=Xxg(Y,w),H==TyX){b==4&&(Y.JSC$17427_lastError_=4,sp(14),V=!1);
P_(Y.JSC$17427_channelDebug_,Y.JSC$17427_rid_,null,"[Incomplete Response]");break}else if(H==GVF){Y.JSC$17427_lastError_=4;sp(15);P_(Y.JSC$17427_channelDebug_,Y.JSC$17427_rid_,w,"[Invalid Chunk]");V=!1;break}else P_(Y.JSC$17427_channelDebug_,Y.JSC$17427_rid_,H,null),NfO(Y,H);Ubd(Y)&&Y.JSC$17427_xmlHttpChunkStart_!=0&&(Y.fetchResponseState_.responseBuffer=Y.fetchResponseState_.responseBuffer.slice(Y.JSC$17427_xmlHttpChunkStart_),Y.JSC$17427_xmlHttpChunkStart_=0);b!=4||w.length!=0||Y.fetchResponseState_.responseArrivedForFetch||
(Y.JSC$17427_lastError_=1,sp(16),V=!1);Y.JSC$17427_successful_=Y.JSC$17427_successful_&&V;V?w.length>0&&!Y.firstByteReceived_&&(Y.firstByteReceived_=!0,b=Y.JSC$17427_channel_,b.JSC$17446_backChannelRequest_==Y&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.JSC$17446_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+w.length),DbN(b),b.bpDetectionDone_=!0,sp(11))):(P_(Y.JSC$17427_channelDebug_,Y.JSC$17427_rid_,w,"[Invalid Chunked Response]"),B_(Y),nf(Y))},Xxg=function(Y,b){var w=
Y.JSC$17427_xmlHttpChunkStart_,V=b.indexOf("\n",w);
if(V==-1)return TyX;w=Number(b.substring(w,V));if(isNaN(w))return GVF;V+=1;if(V+w>b.length)return TyX;b=b.slice(V,V+w);Y.JSC$17427_xmlHttpChunkStart_=V+w;return b};
ZO.prototype.cancel=function(){this.JSC$17427_cancelled_=!0;B_(this)};
var YgN=function(Y){Y.JSC$17427_watchDogTimeoutTime_=Date.now()+Y.timeout_;mbR(Y,Y.timeout_)},mbR=function(Y,b){if(Y.JSC$17427_watchDogTimerId_!=null)throw Error("yk");
Y.JSC$17427_watchDogTimerId_=Qb((0,_.nC)(Y.JSC$17431_onWatchDogTimeout_,Y),b)},H97=function(Y){Y.JSC$17427_watchDogTimerId_&&(_.wB.clearTimeout(Y.JSC$17427_watchDogTimerId_),Y.JSC$17427_watchDogTimerId_=null)};
ZO.prototype.JSC$17431_onWatchDogTimeout_=function(){this.JSC$17427_watchDogTimerId_=null;var Y=Date.now();Y-this.JSC$17427_watchDogTimeoutTime_>=0?(yuO(this.JSC$17427_channelDebug_,this.JSC$17427_requestUri_),this.JSC$17427_type_!=2&&(qg(3),sp(17)),B_(this),this.JSC$17427_lastError_=2,nf(this)):(this.JSC$17427_channelDebug_.warning("WatchDog timer called too early"),mbR(this,this.JSC$17427_watchDogTimeoutTime_-Y))};
var nf=function(Y){Y.JSC$17427_channel_.state_==0||Y.JSC$17427_cancelled_||ctI(Y.JSC$17427_channel_,Y)},B_=function(Y){H97(Y);
_.ua(Y.JSC$17427_readyStateChangeThrottle_);Y.JSC$17427_readyStateChangeThrottle_=null;Y.JSC$17427_eventHandler_.removeAll();if(Y.JSC$17427_xmlHttp_){var b=Y.JSC$17427_xmlHttp_;Y.JSC$17427_xmlHttp_=null;b.abort();b.dispose()}};
ZO.prototype.getLastError=function(){return this.JSC$17427_lastError_};
var NfO=function(Y,b){try{var w=Y.JSC$17427_channel_;if(w.state_!=0&&(w.JSC$17446_backChannelRequest_==Y||oWs(w.forwardChannelRequestPool_,Y)))if(!Y.initialResponseDecoded_&&oWs(w.forwardChannelRequestPool_,Y)&&w.state_==3){try{var V=w.wireCodec_.JSC$17441_parser_.parse(b)}catch(U){V=null}if(Array.isArray(V)&&V.length==3){b=V;if(b[0]==0)a:if(w.JSC$17446_channelDebug_.debug("Server claims our backchannel is missing."),w.JSC$17446_backChannelTimerId_)w.JSC$17446_channelDebug_.debug("But we are currently starting the request.");
else{if(w.JSC$17446_backChannelRequest_)if(w.JSC$17446_backChannelRequest_.JSC$17427_requestStartTime_+3E3<Y.JSC$17427_requestStartTime_)I4d(w),kSN(w);else break a;else w.JSC$17446_channelDebug_.warning("We do not have a BackChannel established");l4N(w);sp(18)}else{w.JSC$17446_lastPostResponseArrayId_=b[1];var H=w.JSC$17446_lastPostResponseArrayId_-w.JSC$17446_lastArrayId_;if(0<H){var f=b[2];w.JSC$17446_channelDebug_.debug(f+" bytes (in "+H+" arrays) are outstanding on the BackChannel");f<37500&&
w.enableStreaming_&&w.JSC$17446_backChannelRetryCount_==0&&!w.JSC$17446_deadBackChannelTimerId_&&(w.JSC$17446_deadBackChannelTimerId_=Qb((0,_.nC)(w.JSC$17448_onBackChannelDead_,w),6E3))}}if(hAF(w.forwardChannelRequestPool_)<=1&&w.forwardChannelFlushedCallback_){try{w.forwardChannelFlushedCallback_()}catch(U){}w.forwardChannelFlushedCallback_=void 0}}else w.JSC$17446_channelDebug_.debug("Bad POST response data returned"),Mg(w,11)}else if((Y.initialResponseDecoded_||w.JSC$17446_backChannelRequest_==
Y)&&I4d(w),!_.EM(b)){var E=w.wireCodec_.JSC$17441_parser_.parse(b);w.onInput_(E,Y)}qg(4)}catch(U){}};var xbN=function(Y,b){this.JSC$17434_mapId=Y;this.map=b;this.context=null};var qgX=function(Y){this.maxPoolSizeConfigured_=Y||10;_.wB.PerformanceNavigationTiming?(Y=_.wB.performance.getEntriesByType("navigation"),Y=Y.length>0&&(Y[0].nextHopProtocol=="hq"||Y[0].nextHopProtocol=="h2")):Y=!!(_.wB.chrome&&_.wB.chrome.loadTimes&&_.wB.chrome.loadTimes()&&_.wB.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17437_maxSize_=Y?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17437_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17437_request_=null;this.JSC$17437_pendingMessages_=
[]},s5X=function(Y){return Y.JSC$17437_request_?!0:Y.requestPool_?Y.requestPool_.size>=Y.JSC$17437_maxSize_:!1},hAF=function(Y){return Y.JSC$17437_request_?1:Y.requestPool_?Y.requestPool_.size:0},oWs=function(Y,b){return Y.JSC$17437_request_?Y.JSC$17437_request_==b:Y.requestPool_?Y.requestPool_.has(b):!1},Q5t=function(Y,b){Y.requestPool_?Y.requestPool_.add(b):Y.JSC$17437_request_=b},vWA=function(Y,b){Y.JSC$17437_request_&&Y.JSC$17437_request_==b?Y.JSC$17437_request_=null:Y.requestPool_&&Y.requestPool_.has(b)&&
Y.requestPool_.delete(b)};
qgX.prototype.cancel=function(){this.JSC$17437_pendingMessages_=Pxd(this);if(this.JSC$17437_request_)this.JSC$17437_request_.cancel(),this.JSC$17437_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var Y=_.N(this.requestPool_.values()),b=Y.next();!b.done;b=Y.next())b.value.cancel();this.requestPool_.clear()}};
var Pxd=function(Y){if(Y.JSC$17437_request_!=null)return Y.JSC$17437_pendingMessages_.concat(Y.JSC$17437_request_.JSC$17427_pendingMessages_);if(Y.requestPool_!=null&&Y.requestPool_.size!==0){var b=Y.JSC$17437_pendingMessages_;Y=_.N(Y.requestPool_.values());for(var w=Y.next();!w.done;w=Y.next())b=b.concat(w.value.JSC$17427_pendingMessages_);return b}return _.jL(Y.JSC$17437_pendingMessages_)},Z9d=function(Y,b){Y.JSC$17437_pendingMessages_=Y.JSC$17437_pendingMessages_.concat(b)};var Bfs=function(Y,b){var w=new v_;w.debug("TestLoadImage: loading "+Y);if(_.wB.Image){var V=new Image;V.onload=_.v0(eU,w,"TestLoadImage: loaded",!0,b,V);V.onerror=_.v0(eU,w,"TestLoadImage: error",!1,b,V);V.onabort=_.v0(eU,w,"TestLoadImage: abort",!1,b,V);V.ontimeout=_.v0(eU,w,"TestLoadImage: timeout",!1,b,V);_.wB.setTimeout(function(){if(V.ontimeout)V.ontimeout()},1E4);
V.src=Y}else b(!1)},nWs=function(Y,b){var w=new v_,V=new AbortController,H=setTimeout(function(){V.abort();
eU(w,"TestPingServer: timeout",!1,b)},1E4);
fetch(Y,{signal:V.signal}).then(function(f){clearTimeout(H);f.ok?eU(w,"TestPingServer: ok",!0,b):eU(w,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(H);
eU(w,"TestPingServer: error",!1,b)})},eU=function(Y,b,w,V,H){try{Y.debug(b),H&&(H.onload=null,H.onerror=null,H.onabort=null,H.ontimeout=null),V(w)}catch(f){}};var MfF=function(){this.JSC$17441_parser_=new xY},eAI=function(Y,b,w){var V=w||"";
try{_.zH_(Y,function(H,f){var E=H;_.bC(H)&&(E=(0,_.dP)(H));b.push(V+f+"="+encodeURIComponent(E))})}catch(H){throw b.push(V+"type="+encodeURIComponent("_badmap")),H;
}};var pf=function(Y,b,w){return w&&w.internalChannelParams?w.internalChannelParams[Y]||b:b},Op=function(Y){this.serverVersion_=0;
this.JSC$17446_outgoingMaps_=[];this.JSC$17446_channelDebug_=new v_;this.JSC$17446_hostPrefix_=this.JSC$17446_backChannelUri_=this.JSC$17446_forwardChannelUri_=this.JSC$17446_path_=this.JSC$17446_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17446_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17446_extraHeaders_=null;this.JSC$17446_nextMapId_=this.JSC$17446_nextRid_=0;this.JSC$17446_failFast_=pf("failFast",!1,Y);this.enableStreaming_=this.JSC$17446_deadBackChannelTimerId_=
this.JSC$17446_backChannelTimerId_=this.JSC$17446_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17446_lastPostResponseArrayId_=this.JSC$17446_lastArrayId_=-1;this.JSC$17446_backChannelAttemptId_=this.JSC$17446_backChannelRetryCount_=this.JSC$17446_forwardChannelRetryCount_=0;this.JSC$17446_baseRetryDelayMs_=pf("baseRetryDelayMs",5E3,Y);this.JSC$17446_retryDelaySeedMs_=pf("retryDelaySeedMs",1E4,Y);this.JSC$17446_forwardChannelMaxRetries_=
pf("forwardChannelMaxRetries",2,Y);this.JSC$17446_forwardChannelRequestTimeoutMs_=pf("forwardChannelRequestTimeoutMs",2E4,Y);this.JSC$17446_xmlHttpFactory_=Y&&Y.xmlHttpFactory||void 0;this.networkTestUrl_=Y&&Y.networkTestUrl||void 0;this.usesFetchStreams_=Y&&Y.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17446_supportsCrossDomainXhrs_=Y&&Y.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new qgX(Y&&Y.concurrentRequestLimit);this.wireCodec_=new MfF;this.fastHandshake_=
Y&&Y.fastHandshake||!1;this.encodeInitMessageHeaders_=Y&&Y.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17446_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=Y&&Y.blockingHandshake||!1;Y&&Y.disableRedact&&this.JSC$17446_channelDebug_.disableRedact();Y&&Y.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
Y&&Y.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;Y&&Y.longPollingTimeout&&Y.longPollingTimeout>0&&(this.longPollingTimeout_=Y.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Op.prototype.JSC$17448_channelVersion_=8;Op.prototype.state_=1;
Op.prototype.connect=function(Y,b,w,V){this.JSC$17446_channelDebug_.debug("connect()");sp(0);this.JSC$17446_path_=Y;this.JSC$17446_extraParams_=b||{};w&&V!==void 0&&(this.JSC$17446_extraParams_.OSID=w,this.JSC$17446_extraParams_.OAID=V);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17446_channelDebug_.debug("connectChannel_()");Y=pxF(this,null,this.JSC$17446_path_);this.JSC$17446_channelDebug_.debug("GetForwardChannelUri: "+Y);this.JSC$17446_forwardChannelUri_=Y;O9N(this)};
Op.prototype.disconnect=function(){this.JSC$17446_channelDebug_.debug("disconnect()");tfF(this);if(this.state_==3){var Y=this.JSC$17446_nextRid_++,b=this.JSC$17446_forwardChannelUri_.clone();_.G_(b,"SID",this.sid_);_.G_(b,"RID",Y);_.G_(b,"TYPE","terminate");tG(this,b);Y=new ZO(this,this.JSC$17446_channelDebug_,this.sid_,Y);Y.JSC$17427_type_=2;Y.JSC$17427_baseUri_=_.me(b.clone());b=!1;if(_.wB.navigator&&_.wB.navigator.sendBeacon)try{b=_.wB.navigator.sendBeacon(Y.JSC$17427_baseUri_.toString(),"")}catch(w){}!b&&
_.wB.Image&&((new Image).src=Y.JSC$17427_baseUri_,b=!0);b||(Y.JSC$17427_xmlHttp_=b9s(Y.JSC$17427_channel_,null),Y.JSC$17427_xmlHttp_.send(Y.JSC$17427_baseUri_));Y.JSC$17427_requestStartTime_=Date.now();YgN(Y)}RAd(this)};
var kSN=function(Y){Y.JSC$17446_backChannelRequest_&&(DbN(Y),Y.JSC$17446_backChannelRequest_.cancel(),Y.JSC$17446_backChannelRequest_=null)},tfF=function(Y){kSN(Y);
Y.JSC$17446_backChannelTimerId_&&(_.wB.clearTimeout(Y.JSC$17446_backChannelTimerId_),Y.JSC$17446_backChannelTimerId_=null);I4d(Y);Y.forwardChannelRequestPool_.cancel();Y.JSC$17446_forwardChannelTimerId_&&(typeof Y.JSC$17446_forwardChannelTimerId_==="number"&&_.wB.clearTimeout(Y.JSC$17446_forwardChannelTimerId_),Y.JSC$17446_forwardChannelTimerId_=null)};
Op.prototype.getState=function(){return this.state_};
var O9N=function(Y){s5X(Y.forwardChannelRequestPool_)||Y.JSC$17446_forwardChannelTimerId_||(Y.JSC$17446_forwardChannelTimerId_=!0,_.eO(Y.JSC$17448_onStartForwardChannelTimer_,Y),Y.JSC$17446_forwardChannelRetryCount_=0)},F0R=function(Y,b){if(hAF(Y.forwardChannelRequestPool_)>=Y.forwardChannelRequestPool_.JSC$17437_maxSize_-(Y.JSC$17446_forwardChannelTimerId_?1:0))return!1;
if(Y.JSC$17446_forwardChannelTimerId_)return Y.JSC$17446_channelDebug_.debug("Use the retry request that is already scheduled."),Y.JSC$17446_outgoingMaps_=b.JSC$17427_pendingMessages_.concat(Y.JSC$17446_outgoingMaps_),!0;if(Y.state_==1||Y.state_==2||Y.JSC$17446_forwardChannelRetryCount_>=(Y.JSC$17446_failFast_?0:Y.JSC$17446_forwardChannelMaxRetries_))return!1;Y.JSC$17446_channelDebug_.debug("Going to retry POST");Y.JSC$17446_forwardChannelTimerId_=Qb((0,_.nC)(Y.JSC$17448_onStartForwardChannelTimer_,
Y,b),dbd(Y,Y.JSC$17446_forwardChannelRetryCount_));Y.JSC$17446_forwardChannelRetryCount_++;return!0};
Op.prototype.JSC$17448_onStartForwardChannelTimer_=function(Y){if(this.JSC$17446_forwardChannelTimerId_)if(this.JSC$17446_forwardChannelTimerId_=null,this.JSC$17446_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!Y){this.JSC$17446_channelDebug_.debug("open_()");this.JSC$17446_nextRid_=Math.floor(Math.random()*1E5);Y=this.JSC$17446_nextRid_++;var b=new ZO(this,this.JSC$17446_channelDebug_,"",Y),w=this.JSC$17446_extraHeaders_;this.initHeaders_&&(w?(w=_.BL.clone(w),_.BL.extend(w,this.initHeaders_)):
w=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(b.JSC$17427_extraHeaders_=w,w=null);var V;if(this.fastHandshake_)a:{for(var H=V=0;H<this.JSC$17446_outgoingMaps_.length;H++){b:{var f=this.JSC$17446_outgoingMaps_[H];if("__data__"in f.map&&(f=f.map.__data__,typeof f==="string")){f=f.length;break b}f=void 0}if(f===void 0)break;V+=f;if(V>4096){V=H;break a}if(V===4096||H===this.JSC$17446_outgoingMaps_.length-1){V=H+1;break a}}V=1E3}else V=1E3;V=L0O(this,b,V);
H=this.JSC$17446_forwardChannelUri_.clone();_.G_(H,"RID",Y);_.G_(H,"CVER",22);this.httpSessionIdParam_&&_.G_(H,"X-HTTP-Session-Id",this.httpSessionIdParam_);tG(this,H);w&&(this.encodeInitMessageHeaders_?V="headers="+_.yW(XvR(w))+"&"+V:this.httpHeadersOverwriteParam_&&Dos(H,this.httpHeadersOverwriteParam_,w));Q5t(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&_.G_(H,"TYPE","init");this.fastHandshake_?(_.G_(H,"$req",V),_.G_(H,"SID","null"),b.decodeInitialResponse_=!0,uaX(b,H,null)):uaX(b,
H,V);this.state_=2}}else this.state_==3&&(Y?Sgs(this,Y):this.JSC$17446_outgoingMaps_.length==0?this.JSC$17446_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):s5X(this.forwardChannelRequestPool_)||(Sgs(this),this.JSC$17446_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Sgs=function(Y,b){var w;b?w=b.JSC$17427_rid_:w=Y.JSC$17446_nextRid_++;var V=Y.JSC$17446_forwardChannelUri_.clone();_.G_(V,"SID",Y.sid_);_.G_(V,"RID",w);_.G_(V,"AID",Y.JSC$17446_lastArrayId_);tG(Y,V);Y.httpHeadersOverwriteParam_&&Y.JSC$17446_extraHeaders_&&Dos(V,Y.httpHeadersOverwriteParam_,Y.JSC$17446_extraHeaders_);w=new ZO(Y,Y.JSC$17446_channelDebug_,Y.sid_,w,Y.JSC$17446_forwardChannelRetryCount_+1);Y.httpHeadersOverwriteParam_===null&&(w.JSC$17427_extraHeaders_=Y.JSC$17446_extraHeaders_);b&&
(Y.JSC$17446_outgoingMaps_=b.JSC$17427_pendingMessages_.concat(Y.JSC$17446_outgoingMaps_));b=L0O(Y,w,1E3);w.setTimeout(Math.round(Y.JSC$17446_forwardChannelRequestTimeoutMs_*.5)+Math.round(Y.JSC$17446_forwardChannelRequestTimeoutMs_*.5*Math.random()));Q5t(Y.forwardChannelRequestPool_,w);uaX(w,V,b)},tG=function(Y,b){Y.JSC$17446_extraParams_&&_.BL.forEach(Y.JSC$17446_extraParams_,function(w,V){_.G_(b,V,w)});
Y.handler_&&_.zH_({},function(w,V){_.G_(b,V,w)})},L0O=function(Y,b,w){w=Math.min(Y.JSC$17446_outgoingMaps_.length,w);
var V=Y.handler_?(0,_.nC)(Y.handler_.JSC$17452_badMapError,Y.handler_,Y):null;a:{for(var H=Y.JSC$17446_outgoingMaps_,f=-1;;){var E=["count="+w];f==-1?w>0?(f=H[0].JSC$17434_mapId,E.push("ofs="+f)):f=0:E.push("ofs="+f);for(var U=!0,X=0;X<w;X++){var I=H[X].JSC$17434_mapId,k=H[X].map;I-=f;if(I<0)f=Math.max(0,H[X].JSC$17434_mapId-100),U=!1;else try{eAI(k,E,"req"+I+"_")}catch(l){V&&V(k)}}if(U){V=E.join("&");break a}}V=void 0}Y=Y.JSC$17446_outgoingMaps_.splice(0,w);b.JSC$17427_pendingMessages_=Y;return V},
a4N=function(Y){Y.JSC$17446_backChannelRequest_||Y.JSC$17446_backChannelTimerId_||(Y.JSC$17446_backChannelAttemptId_=1,_.eO(Y.JSC$17448_onStartBackChannelTimer_,Y),Y.JSC$17446_backChannelRetryCount_=0)},l4N=function(Y){if(Y.JSC$17446_backChannelRequest_||Y.JSC$17446_backChannelTimerId_||Y.JSC$17446_backChannelRetryCount_>=3)return!1;
Y.JSC$17446_channelDebug_.debug("Going to retry GET");Y.JSC$17446_backChannelAttemptId_++;Y.JSC$17446_backChannelTimerId_=Qb((0,_.nC)(Y.JSC$17448_onStartBackChannelTimer_,Y),dbd(Y,Y.JSC$17446_backChannelRetryCount_));Y.JSC$17446_backChannelRetryCount_++;return!0};
Op.prototype.JSC$17448_onStartBackChannelTimer_=function(){this.JSC$17446_backChannelTimerId_=null;rtX(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17446_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17446_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17446_backChannelRequest_+" "+this.handshakeRttMs_);else{var Y=2*this.handshakeRttMs_;this.JSC$17446_channelDebug_.info("BP detection timer enabled: "+Y);this.bpDetectionTimerId_=Qb((0,_.nC)(this.onBpDetectionTimer_,
this),Y)}};
Op.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17446_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17446_backChannelRequest_.JSC$17427_xmlHttp_!=null){var Y=this.JSC$17446_backChannelRequest_.JSC$17427_xmlHttp_.getResponseText();Y&&this.JSC$17446_channelDebug_.warning("Timer should have been cancelled : "+Y)}this.JSC$17446_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;sp(10);kSN(this);rtX(this)}else this.JSC$17446_channelDebug_.warning("Invalid operation.")};
var DbN=function(Y){Y.bpDetectionTimerId_!=null&&(Y.JSC$17446_channelDebug_.debug("Cancel the BP detection timer."),_.wB.clearTimeout(Y.bpDetectionTimerId_),Y.bpDetectionTimerId_=null)},rtX=function(Y){Y.JSC$17446_channelDebug_.debug("Creating new HttpRequest");
Y.JSC$17446_backChannelRequest_=new ZO(Y,Y.JSC$17446_channelDebug_,Y.sid_,"rpc",Y.JSC$17446_backChannelAttemptId_);Y.httpHeadersOverwriteParam_===null&&(Y.JSC$17446_backChannelRequest_.JSC$17427_extraHeaders_=Y.JSC$17446_extraHeaders_);Y.JSC$17446_backChannelRequest_.JSC$17427_readyStateChangeThrottleMs_=0;var b=Y.JSC$17446_backChannelUri_.clone();_.G_(b,"RID","rpc");_.G_(b,"SID",Y.sid_);_.G_(b,"AID",Y.JSC$17446_lastArrayId_);_.G_(b,"CI",Y.enableStreaming_?"0":"1");!Y.enableStreaming_&&Y.longPollingTimeout_&&
_.G_(b,"TO",Y.longPollingTimeout_);_.G_(b,"TYPE","xmlhttp");tG(Y,b);Y.httpHeadersOverwriteParam_&&Y.JSC$17446_extraHeaders_&&Dos(b,Y.httpHeadersOverwriteParam_,Y.JSC$17446_extraHeaders_);Y.backChannelRequestTimeoutMs_&&Y.JSC$17446_backChannelRequest_.setTimeout(Y.backChannelRequestTimeoutMs_);var w=Y.JSC$17446_backChannelRequest_,V=Y.JSC$17446_hostPrefix_;w.JSC$17427_type_=1;w.JSC$17427_baseUri_=_.me(b.clone());w.JSC$17427_postData_=null;w.decodeChunks_=!0;JuQ(w,V);Y.JSC$17446_channelDebug_.debug("New Request created")};
Op.prototype.JSC$17448_onBackChannelDead_=function(){this.JSC$17446_deadBackChannelTimerId_!=null&&(this.JSC$17446_deadBackChannelTimerId_=null,kSN(this),l4N(this),sp(19))};
var I4d=function(Y){Y.JSC$17446_deadBackChannelTimerId_!=null&&(_.wB.clearTimeout(Y.JSC$17446_deadBackChannelTimerId_),Y.JSC$17446_deadBackChannelTimerId_=null)},ctI=function(Y,b){Y.JSC$17446_channelDebug_.debug("Request complete");
var w=null;if(Y.JSC$17446_backChannelRequest_==b){I4d(Y);DbN(Y);Y.JSC$17446_backChannelRequest_=null;var V=2}else if(oWs(Y.forwardChannelRequestPool_,b))w=b.JSC$17427_pendingMessages_,vWA(Y.forwardChannelRequestPool_,b),V=1;else return;if(Y.state_!=0)if(b.JSC$17427_successful_)V==1?(Ke7(b.JSC$17427_postData_?b.JSC$17427_postData_.length:0,Date.now()-b.JSC$17427_requestStartTime_,Y.JSC$17446_forwardChannelRetryCount_),O9N(Y)):a4N(Y);else{var H=b.JSC$17427_lastStatusCode_,f=b.getLastError();if(f==3||
f==0&&H>0)Y.JSC$17446_channelDebug_.debug("Not retrying due to error type"),H>200&&(Y.errorResponseStatusCode_=b.JSC$17427_lastStatusCode_);else{Y.JSC$17446_channelDebug_.debug(function(){return"Maybe retrying, last error: "+jBO(f,Y.errorResponseStatusCode_)});
if(V==1&&F0R(Y,b)||V==2&&l4N(Y))return;Y.JSC$17446_channelDebug_.debug("Exceeded max number of retries")}w&&w.length>0&&Z9d(Y.forwardChannelRequestPool_,w);Y.JSC$17446_channelDebug_.debug("Error: HTTP request failed");switch(f){case 1:Mg(Y,5);break;case 4:Mg(Y,10);break;case 3:Mg(Y,6);break;default:Mg(Y,2)}}},dbd=function(Y,b){var w=Y.JSC$17446_baseRetryDelayMs_+Math.floor(Math.random()*Y.JSC$17446_retryDelaySeedMs_);
Y.isActive()||(Y.JSC$17446_channelDebug_.debug("Inactive channel"),w*=2);return w*b};
Op.prototype.onInput_=function(Y,b){for(var w=0;w<Y.length;w++){var V=Y[w];this.JSC$17446_lastArrayId_=V[0];V=V[1];if(this.state_==2)if(V[0]=="c"){this.sid_=V[1];this.JSC$17446_hostPrefix_=V[2];var H=V[3];H!=null&&(this.JSC$17448_channelVersion_=H,this.JSC$17446_channelDebug_.info("VER="+this.JSC$17448_channelVersion_));H=V[4];H!=null&&(this.serverVersion_=H,this.JSC$17446_channelDebug_.info("SVER="+this.serverVersion_));V=V[5];V!=null&&typeof V==="number"&&V>0&&(this.backChannelRequestTimeoutMs_=
V*=1.5,this.JSC$17446_channelDebug_.info("backChannelRequestTimeoutMs_="+V));if(V=b.JSC$17427_xmlHttp_){var f=ml(V,"X-Client-Wire-Protocol");f&&(H=this.forwardChannelRequestPool_,!H.requestPool_&&(_.UM(f,"spdy")||_.UM(f,"quic")||_.UM(f,"h2"))&&(H.JSC$17437_maxSize_=H.maxPoolSizeConfigured_,H.requestPool_=new Set,H.JSC$17437_request_&&(Q5t(H,H.JSC$17437_request_),H.JSC$17437_request_=null)));this.httpSessionIdParam_&&((V=ml(V,"X-HTTP-Session-Id"))?(this.httpSessionId_=V,_.G_(this.JSC$17446_forwardChannelUri_,
this.httpSessionIdParam_,V)):this.JSC$17446_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17452_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-b.JSC$17427_requestStartTime_,this.JSC$17446_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));V=b;H=pxF(this,this.JSC$17446_supportsCrossDomainXhrs_?this.JSC$17446_hostPrefix_:null,this.JSC$17446_path_);this.JSC$17446_channelDebug_.debug("GetBackChannelUri: "+
H);this.JSC$17446_backChannelUri_=H;V.initialResponseDecoded_?(this.JSC$17446_channelDebug_.debug("Upgrade the handshake request to a backchannel."),vWA(this.forwardChannelRequestPool_,V),H=V,(f=this.backChannelRequestTimeoutMs_)&&H.setTimeout(f),H.JSC$17427_watchDogTimerId_&&(H97(H),YgN(H)),this.JSC$17446_backChannelRequest_=V):a4N(this);this.JSC$17446_outgoingMaps_.length>0&&O9N(this)}else V[0]!="stop"&&V[0]!="close"||Mg(this,7);else this.state_==3&&(V[0]=="stop"||V[0]=="close"?V[0]=="stop"?Mg(this,
7):this.disconnect():V[0]!="noop"&&this.handler_&&this.handler_.JSC$17452_channelHandleArray(V),this.JSC$17446_backChannelRetryCount_=0)}};
var Mg=function(Y,b){Y.JSC$17446_channelDebug_.info("Error code "+b);if(b==2){var w=(0,_.nC)(Y.testNetworkCallback_,Y),V=Y.networkTestUrl_,H=!V;V=new _.Jw(V||"//www.google.com/images/cleardot.gif");_.wB.location&&_.wB.location.protocol=="http"||_.H2(V,"https");_.me(V);H?Bfs(V.toString(),w):nWs(V.toString(),w)}else sp(2);Y.onError_(b)};
Op.prototype.testNetworkCallback_=function(Y){Y?(this.JSC$17446_channelDebug_.info("Successfully pinged google.com"),sp(2)):(this.JSC$17446_channelDebug_.info("Failed to ping google.com"),sp(1))};
Op.prototype.onError_=function(Y){this.JSC$17446_channelDebug_.debug("HttpChannel: error - "+Y);this.state_=0;this.handler_&&this.handler_.JSC$17452_channelError(Y);RAd(this);tfF(this)};
var RAd=function(Y){Y.state_=0;Y.nonAckedMapsAtChannelClose_=[];if(Y.handler_){var b=Pxd(Y.forwardChannelRequestPool_);if(b.length!=0||Y.JSC$17446_outgoingMaps_.length!=0)Y.JSC$17446_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+Y.JSC$17446_outgoingMaps_.length}),_.Je(Y.nonAckedMapsAtChannelClose_,b),_.Je(Y.nonAckedMapsAtChannelClose_,Y.JSC$17446_outgoingMaps_),Y.forwardChannelRequestPool_.JSC$17437_pendingMessages_.length=0,_.jL(Y.JSC$17446_outgoingMaps_),
Y.JSC$17446_outgoingMaps_.length=0;
Y.handler_.JSC$17452_channelClosed()}},zAs=function(Y){if(Y.state_==0)return Y.nonAckedMapsAtChannelClose_;
var b=[];_.Je(b,Pxd(Y.forwardChannelRequestPool_));_.Je(b,Y.JSC$17446_outgoingMaps_);return b},pxF=function(Y,b,w){var V=_.$G(w);
V.JSC$8068_domain_!=""?(b&&_.gy(V,b+"."+V.JSC$8068_domain_),_.fP(V,V.JSC$8068_port_)):(V=_.wB.location,V=udI(V.protocol,b?b+"."+V.hostname:V.hostname,+V.port,w));b=Y.httpSessionIdParam_;w=Y.httpSessionId_;b&&w&&_.G_(V,b,w);_.G_(V,"VER",Y.JSC$17448_channelVersion_);tG(Y,V);return V},b9s=function(Y,b,w){if(b&&!Y.JSC$17446_supportsCrossDomainXhrs_)throw Error("zk");
b=Y.usesFetchStreams_&&!Y.JSC$17446_xmlHttpFactory_?new _.F6(new Oo({streamBinaryChunks:w})):new _.F6(Y.JSC$17446_xmlHttpFactory_);b.JSC$7833_withCredentials_=Y.JSC$17446_supportsCrossDomainXhrs_;return b};
Op.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var W0A=function(){};
_.g=W0A.prototype;_.g.JSC$17452_channelOpened=function(){};
_.g.JSC$17452_channelHandleArray=function(){};
_.g.JSC$17452_channelError=function(){};
_.g.JSC$17452_channelClosed=function(){};
_.g.isActive=function(){return!0};
_.g.JSC$17452_badMapError=function(){};var K0t=function(){},dc=function(Y,b){_.n1.call(this);
this.JSC$17455_channel_=new Op(b);this.JSC$17455_url_=Y;this.messageUrlParams_=b&&b.messageUrlParams||null;Y=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(Y?_.BL.set(Y,"X-Client-Protocol","webchannel"):Y=_.BL.create("X-Client-Protocol","webchannel"));this.JSC$17455_channel_.JSC$17446_extraHeaders_=Y;Y=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(Y?_.BL.set(Y,"X-WebChannel-Content-Type",b.messageContentType):Y=_.BL.create("X-WebChannel-Content-Type",b.messageContentType));
b&&b.clientProfile&&(Y?_.BL.set(Y,"X-WebChannel-Client-Profile",b.clientProfile):Y=_.BL.create("X-WebChannel-Client-Profile",b.clientProfile));this.JSC$17455_channel_.initHeaders_=Y;(Y=b&&b.httpHeadersOverwriteParam)&&!_.EM(Y)&&(this.JSC$17455_channel_.httpHeadersOverwriteParam_=Y);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!_.EM(b)&&(this.JSC$17455_channel_.httpSessionIdParam_=b,_.BL.containsKey(this.messageUrlParams_,
b)&&_.BL.remove(this.messageUrlParams_,b));this.channelHandler_=new Re(this)};
_.DX(dc,_.n1);dc.prototype.open=function(){this.JSC$17455_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17455_channel_.JSC$17446_supportsCrossDomainXhrs_=!0);this.JSC$17455_channel_.connect(this.JSC$17455_url_,this.messageUrlParams_||void 0)};
dc.prototype.close=function(){this.JSC$17455_channel_.disconnect()};
dc.prototype.send=function(Y){var b=this.JSC$17455_channel_;if(typeof Y==="string"){var w={};w.__data__=Y;Y=w}else this.sendRawJson_&&(w={},w.__data__=(0,_.dP)(Y),Y=w);b.JSC$17446_outgoingMaps_.push(new xbN(b.JSC$17446_nextMapId_++,Y));b.state_==3&&O9N(b)};
dc.prototype.disposeInternal=function(){this.JSC$17455_channel_.handler_=null;delete this.channelHandler_;this.JSC$17455_channel_.disconnect();delete this.JSC$17455_channel_;dc.superClass_.disposeInternal.call(this)};
var i9Q=function(Y){FeQ.call(this);Y.__headers__&&(this.headers=Y.__headers__,this.statusCode=Y.__status__,delete Y.__headers__,delete Y.__status__);var b=Y.__sm__;b?this.data=(this.metadataKey=_.BL.getAnyKey(b))?_.BL.get(b,this.metadataKey):b:this.data=Y};
_.DX(i9Q,FeQ);var AtR=function(Y){LeX.call(this);this.status=1;this.errorCode=Y};
_.DX(AtR,LeX);var Re=function(Y){this.JSC$17462_channel_=Y};
_.DX(Re,W0A);Re.prototype.JSC$17452_channelOpened=function(){this.JSC$17462_channel_.dispatchEvent("w")};
Re.prototype.JSC$17452_channelHandleArray=function(Y){this.JSC$17462_channel_.dispatchEvent(new i9Q(Y))};
Re.prototype.JSC$17452_channelError=function(Y){this.JSC$17462_channel_.dispatchEvent(new AtR(Y))};
Re.prototype.JSC$17452_channelClosed=function(){this.JSC$17462_channel_.dispatchEvent("x")};
var CxR=function(Y,b){this.transportChannel_=Y;this.JSC$17465_channel_=b},ytb=function(Y){return zAs(Y.JSC$17465_channel_).map(function(b){var w=Y.transportChannel_;
b=b.map;"__data__"in b?(b=b.__data__,w=w.sendRawJson_?(0,_.kz_)(b):b):w=b;return w})};var Fw=function(Y){$bI.dispatchEvent(new j5F($bI,Y))},$bI=new _.n1,j5F=function(Y){_.Q2.call(this,"statevent",Y)};
_.P(j5F,_.Q2);var Lf=function(Y,b,w,V,H){this.JSC$17470_channel_=Y;this.JSC$17470_channelDebug_=b;this.sid_=w;this.JSC$17470_rid_=V;this.JSC$17470_retryId_=H||1;this.timeout_=45E3;this.JSC$17470_eventHandler_=new _.fM(this);this.pollingTimer_=new _.gO;this.pollingTimer_.setInterval(250)};
_.g=Lf.prototype;_.g.JSC$17472_extraHeaders_=null;_.g.JSC$17472_successful_=!1;_.g.JSC$17472_watchDogTimerId_=null;_.g.JSC$17472_watchDogTimeoutTime_=null;_.g.JSC$17472_requestStartTime_=null;_.g.JSC$17472_type_=null;_.g.JSC$17472_baseUri_=null;_.g.JSC$17472_requestUri_=null;_.g.JSC$17472_postData_=null;_.g.JSC$17472_xmlHttp_=null;_.g.JSC$17472_xmlHttpChunkStart_=0;_.g.trident_=null;_.g.JSC$17472_verb_=null;_.g.JSC$17472_lastError_=null;_.g.JSC$17472_lastStatusCode_=-1;_.g.sendClose_=!0;
_.g.JSC$17472_cancelled_=!1;_.g.JSC$17472_readyStateChangeThrottleMs_=0;_.g.JSC$17472_readyStateChangeThrottle_=null;var GSX=function(Y,b){switch(Y){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Tf7={},JtN={};
Lf.prototype.setTimeout=function(Y){this.timeout_=Y};
var YGs=function(Y,b,w){Y.JSC$17472_type_=1;Y.JSC$17472_baseUri_=_.me(b.clone());Y.JSC$17472_postData_=w;Y.decodeChunks_=!0;u_g(Y,null)},byI=function(Y,b,w,V,H){Y.JSC$17472_type_=1;
Y.JSC$17472_baseUri_=_.me(b.clone());Y.JSC$17472_postData_=null;Y.decodeChunks_=w;H&&(Y.sendClose_=!1);u_g(Y,V)},u_g=function(Y,b){Y.JSC$17472_requestStartTime_=Date.now();
wqQ(Y);Y.JSC$17472_requestUri_=Y.JSC$17472_baseUri_.clone();f5(Y.JSC$17472_requestUri_,"t",Y.JSC$17470_retryId_);Y.JSC$17472_xmlHttpChunkStart_=0;Y.JSC$17472_xmlHttp_=Y.JSC$17470_channel_.JSC$17479_createXhrIo(Y.JSC$17470_channel_.JSC$17479_shouldUseSecondaryDomains()?b:null);Y.JSC$17472_readyStateChangeThrottleMs_>0&&(Y.JSC$17472_readyStateChangeThrottle_=new _.Vm((0,_.nC)(Y.JSC$17472_xmlHttpHandler_,Y,Y.JSC$17472_xmlHttp_),Y.JSC$17472_readyStateChangeThrottleMs_));Y.JSC$17470_eventHandler_.listen(Y.JSC$17472_xmlHttp_,
"readystatechange",Y.JSC$17472_readyStateChangeHandler_);b=Y.JSC$17472_extraHeaders_?_.BL.clone(Y.JSC$17472_extraHeaders_):{};Y.JSC$17472_postData_?(Y.JSC$17472_verb_="POST",b["Content-Type"]="application/x-www-form-urlencoded",Y.JSC$17472_xmlHttp_.send(Y.JSC$17472_requestUri_,Y.JSC$17472_verb_,Y.JSC$17472_postData_,b)):(Y.JSC$17472_verb_="GET",Y.sendClose_&&!_.hZ&&(b.Connection="close"),Y.JSC$17472_xmlHttp_.send(Y.JSC$17472_requestUri_,Y.JSC$17472_verb_,null,b));Y.JSC$17470_channel_.notifyServerReachabilityEvent(1);
b=Y.JSC$17470_channelDebug_;var w=Y.JSC$17472_postData_;if(w){var V="";w=w.split("&");for(var H=0;H<w.length;H++){var f=w[H].split("=");if(f.length>1){var E=f[0];f=f[1];var U=E.split("_");V=U.length>=2&&U[1]=="type"?V+(E+"="+f+"&"):V+(E+"=redacted&")}}}else V=null;b.info("XMLHTTP REQ ("+Y.JSC$17470_rid_+") [attempt "+Y.JSC$17470_retryId_+"]: "+Y.JSC$17472_verb_+"\n"+Y.JSC$17472_requestUri_+"\n"+V)};
Lf.prototype.JSC$17472_readyStateChangeHandler_=function(Y){Y=Y.target;var b=this.JSC$17472_readyStateChangeThrottle_;b&&_.L1(Y)==3?(this.JSC$17470_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$17472_xmlHttpHandler_(Y)};
Lf.prototype.JSC$17472_xmlHttpHandler_=function(Y){try{if(Y==this.JSC$17472_xmlHttp_)a:{var b=_.L1(this.JSC$17472_xmlHttp_),w=this.JSC$17472_xmlHttp_.JSC$7833_lastErrorCode_,V=this.JSC$17472_xmlHttp_.getStatus();if(_.hZ&&!_.xv("420+")){if(b<4)break a}else if(b<3||b==3&&!this.JSC$17472_xmlHttp_.getResponseText())break a;this.JSC$17472_cancelled_||b!=4||w==7||(w==8||V<=0?this.JSC$17470_channel_.notifyServerReachabilityEvent(3):this.JSC$17470_channel_.notifyServerReachabilityEvent(2));VwR(this);var H=
this.JSC$17472_xmlHttp_.getStatus();this.JSC$17472_lastStatusCode_=H;var f=this.JSC$17472_xmlHttp_.getResponseText();f||this.JSC$17470_channelDebug_.debug("No response text for uri "+this.JSC$17472_requestUri_+" status "+H);this.JSC$17472_successful_=H==200;this.JSC$17470_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17470_rid_+") [ attempt "+this.JSC$17470_retryId_+"]: "+this.JSC$17472_verb_+"\n"+this.JSC$17472_requestUri_+"\n"+b+" "+H);if(this.JSC$17472_successful_){b==4&&SU(this);if(this.decodeChunks_){for(Y=
!0;!this.JSC$17472_cancelled_&&this.JSC$17472_xmlHttpChunkStart_<f.length;){var E=HyX(this,f);if(E==JtN){b==4&&(this.JSC$17472_lastError_=4,Fw(15),Y=!1);ae(this.JSC$17470_channelDebug_,this.JSC$17470_rid_,null,"[Incomplete Response]");break}else if(E==Tf7){this.JSC$17472_lastError_=4;Fw(16);ae(this.JSC$17470_channelDebug_,this.JSC$17470_rid_,f,"[Invalid Chunk]");Y=!1;break}else ae(this.JSC$17470_channelDebug_,this.JSC$17470_rid_,E,null),g8X(this,E)}b==4&&f.length==0&&(this.JSC$17472_lastError_=1,
Fw(17),Y=!1);this.JSC$17472_successful_=this.JSC$17472_successful_&&Y;Y||(ae(this.JSC$17470_channelDebug_,this.JSC$17470_rid_,f,"[Invalid Chunked Response]"),SU(this),fWR(this))}else ae(this.JSC$17470_channelDebug_,this.JSC$17470_rid_,f,null),g8X(this,f);this.JSC$17472_successful_&&!this.JSC$17472_cancelled_&&(b==4?this.JSC$17470_channel_.JSC$17479_onRequestComplete(this):(this.JSC$17472_successful_=!1,wqQ(this)))}else H==400&&f.indexOf("Unknown SID")>0?(this.JSC$17472_lastError_=3,Fw(13),this.JSC$17470_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17470_rid_+")")):(this.JSC$17472_lastError_=0,Fw(14),this.JSC$17470_channelDebug_.warning("XMLHTTP Bad status "+H+" ("+this.JSC$17470_rid_+")")),SU(this),fWR(this)}else this.JSC$17470_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(U){this.JSC$17470_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var HyX=function(Y,b){var w=Y.JSC$17472_xmlHttpChunkStart_,V=b.indexOf("\n",w);if(V==-1)return JtN;w=Number(b.substring(w,V));if(isNaN(w))return Tf7;V+=1;if(V+w>b.length)return JtN;b=b.slice(V,V+w);Y.JSC$17472_xmlHttpChunkStart_=V+w;return b};
Lf.prototype.cancel=function(){this.JSC$17472_cancelled_=!0;SU(this)};
var wqQ=function(Y){Y.JSC$17472_watchDogTimeoutTime_=Date.now()+Y.timeout_;NAs(Y,Y.timeout_)},NAs=function(Y,b){if(Y.JSC$17472_watchDogTimerId_!=null)throw Error("yk");
Y.JSC$17472_watchDogTimerId_=ZB((0,_.nC)(Y.JSC$17472_onWatchDogTimeout_,Y),b)},VwR=function(Y){Y.JSC$17472_watchDogTimerId_&&(_.wB.clearTimeout(Y.JSC$17472_watchDogTimerId_),Y.JSC$17472_watchDogTimerId_=null)};
Lf.prototype.JSC$17472_onWatchDogTimeout_=function(){this.JSC$17472_watchDogTimerId_=null;var Y=Date.now();Y-this.JSC$17472_watchDogTimeoutTime_>=0?(this.JSC$17470_channelDebug_.info("TIMEOUT: "+this.JSC$17472_requestUri_),this.JSC$17472_type_!=2&&this.JSC$17470_channel_.notifyServerReachabilityEvent(3),SU(this),this.JSC$17472_lastError_=2,Fw(18),fWR(this)):(this.JSC$17470_channelDebug_.warning("WatchDog timer called too early"),NAs(this,this.JSC$17472_watchDogTimeoutTime_-Y))};
var fWR=function(Y){Y.JSC$17470_channel_.JSC$17479_isClosed()||Y.JSC$17472_cancelled_||Y.JSC$17470_channel_.JSC$17479_onRequestComplete(Y)},SU=function(Y){VwR(Y);
_.ua(Y.JSC$17472_readyStateChangeThrottle_);Y.JSC$17472_readyStateChangeThrottle_=null;Y.pollingTimer_.stop();Y.JSC$17470_eventHandler_.removeAll();if(Y.JSC$17472_xmlHttp_){var b=Y.JSC$17472_xmlHttp_;Y.JSC$17472_xmlHttp_=null;b.abort();b.dispose()}Y.trident_&&(Y.trident_=null)};
Lf.prototype.getLastError=function(){return this.JSC$17472_lastError_};
var g8X=function(Y,b){try{Y.JSC$17470_channel_.JSC$17479_onRequestData(Y,b),Y.JSC$17470_channel_.notifyServerReachabilityEvent(4)}catch(w){}};var ae=function(Y,b,w,V){var H=Y.info;a:if(w&&w!="y2f%"){try{var f=JSON.parse(w);if(f)for(var E=0;E<f.length;E++)if(Array.isArray(f[E])){var U=f[E];if(!(U.length<2)){var X=U[1];if(Array.isArray(X)&&!(X.length<1)){var I=X[0];if(I!="noop"&&I!="stop")for(var k=1;k<X.length;k++)X[k]=""}}}var l=(0,_.dP)(f);break a}catch(x){Y.debug("Exception parsing expected JS array - probably was not JS");l=w;break a}l=void 0}else l=w;H.call(Y,"XMLHTTP TEXT ("+b+"): "+l+(V?" "+V:""))};
Bc.prototype.debug=function(Y){this.info(Y)};
Bc.prototype.info=function(){};
Bc.prototype.warning=function(){};var E8t=function(Y,b){this.JSC$17477_channel_=Y;this.JSC$17477_channelDebug_=b;this.JSC$17477_parser_=new xY};
_.g=E8t.prototype;_.g.JSC$17479_extraHeaders_=null;_.g.JSC$17479_request_=null;_.g.receivedIntermediateResult_=!1;_.g.JSC$17479_path_=null;_.g.state_=null;_.g.JSC$17479_lastStatusCode_=-1;_.g.JSC$17479_hostPrefix_=null;_.g.blockedPrefix_=null;
_.g.connect=function(Y){this.JSC$17479_path_=Y;Y=coI(this.JSC$17477_channel_,this.JSC$17479_path_);Fw(3);Date.now();var b=this.JSC$17477_channel_.firstTestResults_;b!=null?(this.JSC$17479_hostPrefix_=b[0],(this.blockedPrefix_=b[1])?(this.state_=1,Uwt(this)):(this.state_=2,Xqs(this))):(f5(Y,"MODE","init"),this.JSC$17479_request_=new Lf(this,this.JSC$17477_channelDebug_),this.JSC$17479_request_.JSC$17472_extraHeaders_=this.JSC$17479_extraHeaders_,byI(this.JSC$17479_request_,Y,!1,null,!0),this.state_=
0)};
var Uwt=function(Y){var b=DwX(Y.JSC$17477_channel_,Y.blockedPrefix_,"/mail/images/cleardot.gif");_.me(b);zmt(b.toString(),5E3,(0,_.nC)(Y.checkBlockedCallback_,Y),3,2E3);Y.notifyServerReachabilityEvent(1)};
E8t.prototype.checkBlockedCallback_=function(Y){if(Y)this.state_=2,Xqs(this);else{Fw(4);var b=this.JSC$17477_channel_;b.JSC$17480_channelDebug_.debug("Test Connection Blocked");b.JSC$17484_lastStatusCode_=b.connectionTest_.JSC$17479_lastStatusCode_;rc(b,9)}Y&&this.notifyServerReachabilityEvent(2)};
var Xqs=function(Y){Y.JSC$17477_channelDebug_.debug("TestConnection: starting stage 2");var b=Y.JSC$17477_channel_.secondTestResults_;b!=null?(Y.JSC$17477_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),Fw(5),b?(Fw(11),zR(Y.JSC$17477_channel_,Y,!1)):(Fw(12),zR(Y.JSC$17477_channel_,Y,!0))):(Y.JSC$17479_request_=new Lf(Y,Y.JSC$17477_channelDebug_),Y.JSC$17479_request_.JSC$17472_extraHeaders_=Y.JSC$17479_extraHeaders_,b=mwt(Y.JSC$17477_channel_,
Y.JSC$17479_hostPrefix_,Y.JSC$17479_path_),Fw(5),f5(b,"TYPE","xmlhttp"),byI(Y.JSC$17479_request_,b,!1,Y.JSC$17479_hostPrefix_,!1))};
_.g=E8t.prototype;_.g.JSC$17479_createXhrIo=function(Y){return this.JSC$17477_channel_.JSC$17479_createXhrIo(Y)};
_.g.abort=function(){this.JSC$17479_request_&&(this.JSC$17479_request_.cancel(),this.JSC$17479_request_=null);this.JSC$17479_lastStatusCode_=-1};
_.g.JSC$17479_isClosed=function(){return!1};
_.g.JSC$17479_onRequestData=function(Y,b){this.JSC$17479_lastStatusCode_=Y.JSC$17472_lastStatusCode_;if(this.state_==0)if(this.JSC$17477_channelDebug_.debug("TestConnection: Got data for stage 1"),b){try{var w=this.JSC$17477_parser_.parse(b)}catch(V){o8Q(this.JSC$17477_channel_,this);return}this.JSC$17479_hostPrefix_=w[0];this.blockedPrefix_=w[1]}else this.JSC$17477_channelDebug_.debug("TestConnection: Null responseText"),o8Q(this.JSC$17477_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Fw(7),Date.now()):b=="11111"?(Fw(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17479_lastStatusCode_=200,this.JSC$17479_request_.cancel(),this.JSC$17477_channelDebug_.debug("Test connection succeeded; using streaming connection"),Fw(12),zR(this.JSC$17477_channel_,this,!0)):(Fw(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.g.JSC$17479_onRequestComplete=function(){this.JSC$17479_lastStatusCode_=this.JSC$17479_request_.JSC$17472_lastStatusCode_;this.JSC$17479_request_.JSC$17472_successful_?this.state_==0?(this.JSC$17477_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Uwt(this)):(this.state_=2,Xqs(this))):this.state_==2&&(this.JSC$17477_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17477_channelDebug_.debug("Test connection succeeded; using streaming connection"),
Fw(12),zR(this.JSC$17477_channel_,this,!0)):(this.JSC$17477_channelDebug_.debug("Test connection failed; not using streaming"),Fw(11),zR(this.JSC$17477_channel_,this,!1))):(this.JSC$17477_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Fw(9):this.state_==2&&Fw(10),o8Q(this.JSC$17477_channel_,this,this.JSC$17479_request_.getLastError()))};
_.g.JSC$17479_shouldUseSecondaryDomains=function(){return this.JSC$17477_channel_.JSC$17479_shouldUseSecondaryDomains()};
_.g.isActive=function(){return this.JSC$17477_channel_.isActive()};
_.g.notifyServerReachabilityEvent=function(Y){this.JSC$17477_channel_.notifyServerReachabilityEvent(Y)};var W_=function(Y,b,w){this.state_=1;this.JSC$17480_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17480_channelDebug_=new Bc;this.JSC$17480_parser_=new xY;this.firstTestResults_=Y||null;this.secondTestResults_=b!=null?b:null;this.asyncTest_=w||!1},IWA=function(Y,b){this.JSC$17482_mapId=Y;
this.map=b;this.context=null};
_.g=W_.prototype;_.g.JSC$17484_extraHeaders_=null;_.g.JSC$17484_extraParams_=null;_.g.forwardChannelRequest_=null;_.g.JSC$17484_backChannelRequest_=null;_.g.JSC$17484_path_=null;_.g.JSC$17484_forwardChannelUri_=null;_.g.JSC$17484_backChannelUri_=null;_.g.JSC$17484_hostPrefix_=null;_.g.JSC$17484_nextRid_=0;_.g.JSC$17484_nextMapId_=0;_.g.handler_=null;_.g.JSC$17484_forwardChannelTimerId_=null;_.g.JSC$17484_backChannelTimerId_=null;_.g.JSC$17484_deadBackChannelTimerId_=null;_.g.connectionTest_=null;
_.g.useChunked_=null;_.g.JSC$17484_lastArrayId_=-1;_.g.JSC$17484_lastPostResponseArrayId_=-1;_.g.JSC$17484_lastStatusCode_=-1;_.g.JSC$17484_forwardChannelRetryCount_=0;_.g.JSC$17484_backChannelRetryCount_=0;_.g.JSC$17484_channelVersion_=8;var kPt={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},lWg=function(Y,b,w,V){_.Q2.call(this,"timingevent",Y);this.size=b;this.rtt=w;this.retries=V};
_.DX(lWg,_.Q2);var hit=function(Y){_.Q2.call(this,"serverreachability",Y)};
_.DX(hit,_.Q2);W_.prototype.connect=function(Y,b,w,V,H){this.JSC$17480_channelDebug_.debug("connect()");Fw(0);this.JSC$17484_path_=b;this.JSC$17484_extraParams_=w||{};V&&H!==void 0&&(this.JSC$17484_extraParams_.OSID=V,this.JSC$17484_extraParams_.OAID=H);this.asyncTest_?(ZB((0,_.nC)(this.connectTest_,this,Y),100),xws(this)):this.connectTest_(Y)};
W_.prototype.disconnect=function(){this.JSC$17480_channelDebug_.debug("disconnect()");qGX(this);if(this.state_==3){var Y=this.JSC$17484_nextRid_++,b=this.JSC$17484_forwardChannelUri_.clone();_.G_(b,"SID",this.sid_);_.G_(b,"RID",Y);_.G_(b,"TYPE","terminate");Kf(this,b);Y=new Lf(this,this.JSC$17480_channelDebug_,this.sid_,Y);Y.JSC$17472_type_=2;Y.JSC$17472_baseUri_=_.me(b.clone());(new Image).src=Y.JSC$17472_baseUri_.toString();Y.JSC$17472_requestStartTime_=Date.now();wqQ(Y)}sOR(this)};
W_.prototype.connectTest_=function(Y){this.JSC$17480_channelDebug_.debug("connectTest_()");this.connectionTest_=new E8t(this,this.JSC$17480_channelDebug_);this.connectionTest_.JSC$17479_extraHeaders_=this.JSC$17484_extraHeaders_;this.connectionTest_.JSC$17477_parser_=this.JSC$17480_parser_;this.connectionTest_.connect(Y)};
var xws=function(Y){Y.JSC$17480_channelDebug_.debug("connectChannel_()");Y.JSC$17484_ensureInState_(1,0);Y.JSC$17484_forwardChannelUri_=coI(Y,Y.JSC$17484_path_);QOQ(Y)},qGX=function(Y){Y.connectionTest_&&(Y.connectionTest_.abort(),Y.connectionTest_=null);
Y.JSC$17484_backChannelRequest_&&(Y.JSC$17484_backChannelRequest_.cancel(),Y.JSC$17484_backChannelRequest_=null);Y.JSC$17484_backChannelTimerId_&&(_.wB.clearTimeout(Y.JSC$17484_backChannelTimerId_),Y.JSC$17484_backChannelTimerId_=null);v8I(Y);Y.forwardChannelRequest_&&(Y.forwardChannelRequest_.cancel(),Y.forwardChannelRequest_=null);Y.JSC$17484_forwardChannelTimerId_&&(_.wB.clearTimeout(Y.JSC$17484_forwardChannelTimerId_),Y.JSC$17484_forwardChannelTimerId_=null)},P6d=function(Y,b){if(Y.state_==0)throw Error("Bk");
Y.JSC$17480_outgoingMaps_.length==1E3&&Y.JSC$17480_parser_.stringify(b);Y.JSC$17480_outgoingMaps_.push(new IWA(Y.JSC$17484_nextMapId_++,b));Y.state_!=2&&Y.state_!=3||QOQ(Y)};
W_.prototype.JSC$17479_isClosed=function(){return this.state_==0};
W_.prototype.getState=function(){return this.state_};
var QOQ=function(Y){Y.forwardChannelRequest_||Y.JSC$17484_forwardChannelTimerId_||(Y.JSC$17484_forwardChannelTimerId_=ZB((0,_.nC)(Y.JSC$17484_onStartForwardChannelTimer_,Y),0),Y.JSC$17484_forwardChannelRetryCount_=0)};
W_.prototype.JSC$17484_onStartForwardChannelTimer_=function(Y){this.JSC$17484_forwardChannelTimerId_=null;Zyd(this,Y)};
var Zyd=function(Y,b){Y.JSC$17480_channelDebug_.debug("startForwardChannel_");if(Y.state_==1){if(!b){Y.JSC$17480_channelDebug_.debug("open_()");Y.JSC$17484_nextRid_=Math.floor(Math.random()*1E5);b=Y.JSC$17484_nextRid_++;var w=new Lf(Y,Y.JSC$17480_channelDebug_,"",b);w.JSC$17472_extraHeaders_=Y.JSC$17484_extraHeaders_;var V=BAX(Y),H=Y.JSC$17484_forwardChannelUri_.clone();_.G_(H,"RID",b);_.G_(H,"CVER","1");Kf(Y,H);YGs(w,H,V);Y.forwardChannelRequest_=w;Y.state_=2}}else Y.state_==3&&(b?n8s(Y,b):Y.JSC$17480_outgoingMaps_.length==
0?Y.JSC$17480_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Y.forwardChannelRequest_||(n8s(Y),Y.JSC$17480_channelDebug_.debug("startForwardChannel_ finished, sent request")))},n8s=function(Y,b){if(b)if(Y.JSC$17484_channelVersion_>6){Y.JSC$17480_outgoingMaps_=Y.pendingMaps_.concat(Y.JSC$17480_outgoingMaps_);
Y.pendingMaps_.length=0;var w=Y.JSC$17484_nextRid_-1;b=BAX(Y)}else w=b.JSC$17470_rid_,b=b.JSC$17472_postData_;else w=Y.JSC$17484_nextRid_++,b=BAX(Y);var V=Y.JSC$17484_forwardChannelUri_.clone();_.G_(V,"SID",Y.sid_);_.G_(V,"RID",w);_.G_(V,"AID",Y.JSC$17484_lastArrayId_);Kf(Y,V);w=new Lf(Y,Y.JSC$17480_channelDebug_,Y.sid_,w,Y.JSC$17484_forwardChannelRetryCount_+1);w.JSC$17472_extraHeaders_=Y.JSC$17484_extraHeaders_;w.setTimeout(1E4+Math.round(1E4*Math.random()));Y.forwardChannelRequest_=w;YGs(w,V,b)},
Kf=function(Y,b){Y.handler_&&(Y=Y.handler_.JSC$17491_getAdditionalParams())&&_.BL.forEach(Y,function(w,V){_.G_(b,V,w)})},BAX=function(Y){var b=Math.min(Y.JSC$17480_outgoingMaps_.length,1E3),w=["count="+b];
if(Y.JSC$17484_channelVersion_>6&&b>0){var V=Y.JSC$17480_outgoingMaps_[0].JSC$17482_mapId;w.push("ofs="+V)}else V=0;for(var H={},f=0;f<b;H={mapId$jscomp$3:void 0},f++){H.mapId$jscomp$3=Y.JSC$17480_outgoingMaps_[f].JSC$17482_mapId;var E=Y.JSC$17480_outgoingMaps_[f].map;H.mapId$jscomp$3=Y.JSC$17484_channelVersion_<=6?f:H.mapId$jscomp$3-V;try{_.BL.forEach(E,function(U){return function(X,I){w.push("req"+U.mapId$jscomp$3+"_"+I+"="+encodeURIComponent(X))}}(H))}catch(U){w.push("req"+H.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}Y.pendingMaps_=Y.pendingMaps_.concat(Y.JSC$17480_outgoingMaps_.splice(0,b));
return w.join("&")},Mwb=function(Y){Y.JSC$17484_backChannelRequest_||Y.JSC$17484_backChannelTimerId_||(Y.JSC$17484_backChannelAttemptId_=1,Y.JSC$17484_backChannelTimerId_=ZB((0,_.nC)(Y.JSC$17484_onStartBackChannelTimer_,Y),0),Y.JSC$17484_backChannelRetryCount_=0)},pqg=function(Y){if(Y.JSC$17484_backChannelRequest_||Y.JSC$17484_backChannelTimerId_||Y.JSC$17484_backChannelRetryCount_>=3)return!1;
Y.JSC$17480_channelDebug_.debug("Going to retry GET");Y.JSC$17484_backChannelAttemptId_++;Y.JSC$17484_backChannelTimerId_=ZB((0,_.nC)(Y.JSC$17484_onStartBackChannelTimer_,Y),eig(Y,Y.JSC$17484_backChannelRetryCount_));Y.JSC$17484_backChannelRetryCount_++;return!0};
W_.prototype.JSC$17484_onStartBackChannelTimer_=function(){this.JSC$17484_backChannelTimerId_=null;this.JSC$17480_channelDebug_.debug("Creating new HttpRequest");this.JSC$17484_backChannelRequest_=new Lf(this,this.JSC$17480_channelDebug_,this.sid_,"rpc",this.JSC$17484_backChannelAttemptId_);this.JSC$17484_backChannelRequest_.JSC$17472_extraHeaders_=this.JSC$17484_extraHeaders_;this.JSC$17484_backChannelRequest_.JSC$17472_readyStateChangeThrottleMs_=0;var Y=this.JSC$17484_backChannelUri_.clone();_.G_(Y,
"RID","rpc");_.G_(Y,"SID",this.sid_);_.G_(Y,"CI",this.useChunked_?"0":"1");_.G_(Y,"AID",this.JSC$17484_lastArrayId_);Kf(this,Y);_.G_(Y,"TYPE","xmlhttp");byI(this.JSC$17484_backChannelRequest_,Y,!0,this.JSC$17484_hostPrefix_,!1);this.JSC$17480_channelDebug_.debug("New Request created")};
var zR=function(Y,b,w){Y.JSC$17480_channelDebug_.debug("Test Connection Finished");Y.useChunked_=Y.secondTestResults_==null?w:!Y.secondTestResults_;Y.JSC$17484_lastStatusCode_=b.JSC$17479_lastStatusCode_;Y.asyncTest_||xws(Y)},o8Q=function(Y,b){Y.JSC$17480_channelDebug_.debug("Test Connection Failed");
Y.JSC$17484_lastStatusCode_=b.JSC$17479_lastStatusCode_;rc(Y,2)};
W_.prototype.JSC$17479_onRequestData=function(Y,b){if(this.state_!=0&&(this.JSC$17484_backChannelRequest_==Y||this.forwardChannelRequest_==Y))if(this.JSC$17484_lastStatusCode_=Y.JSC$17472_lastStatusCode_,this.forwardChannelRequest_==Y&&this.state_==3)if(this.JSC$17484_channelVersion_>7){try{var w=this.JSC$17480_parser_.parse(b)}catch(V){w=null}if(Array.isArray(w)&&w.length==3)if(b=w,b[0]==0)a:if(this.JSC$17480_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17484_backChannelTimerId_)this.JSC$17480_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17484_backChannelRequest_)if(this.JSC$17484_backChannelRequest_.JSC$17472_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17472_requestStartTime_)v8I(this),this.JSC$17484_backChannelRequest_.cancel(),this.JSC$17484_backChannelRequest_=null;else break a;else this.JSC$17480_channelDebug_.warning("We do not have a BackChannel established");pqg(this);Fw(19)}else this.JSC$17484_lastPostResponseArrayId_=b[1],Y=this.JSC$17484_lastPostResponseArrayId_-this.JSC$17484_lastArrayId_,0<
Y&&(b=b[2],this.JSC$17480_channelDebug_.debug(b+" bytes (in "+Y+" arrays) are outstanding on the BackChannel"),b<37500&&this.useChunked_&&this.JSC$17484_backChannelRetryCount_==0&&!this.JSC$17484_deadBackChannelTimerId_&&(this.JSC$17484_deadBackChannelTimerId_=ZB((0,_.nC)(this.JSC$17484_onBackChannelDead_,this),6E3)));else this.JSC$17480_channelDebug_.debug("Bad POST response data returned"),rc(this,11)}else b!="y2f%"&&(this.JSC$17480_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
rc(this,11));else this.JSC$17484_backChannelRequest_==Y&&v8I(this),_.EM(b)||(Y=this.JSC$17480_parser_.parse(b),this.onInput_(Y))};
W_.prototype.JSC$17484_onBackChannelDead_=function(){this.JSC$17484_deadBackChannelTimerId_!=null&&(this.JSC$17484_deadBackChannelTimerId_=null,this.JSC$17484_backChannelRequest_.cancel(),this.JSC$17484_backChannelRequest_=null,pqg(this),Fw(20))};
var v8I=function(Y){Y.JSC$17484_deadBackChannelTimerId_!=null&&(_.wB.clearTimeout(Y.JSC$17484_deadBackChannelTimerId_),Y.JSC$17484_deadBackChannelTimerId_=null)};
W_.prototype.JSC$17479_onRequestComplete=function(Y){this.JSC$17480_channelDebug_.debug("Request complete");if(this.JSC$17484_backChannelRequest_==Y){v8I(this);this.JSC$17484_backChannelRequest_=null;var b=2}else if(this.forwardChannelRequest_==Y)this.forwardChannelRequest_=null,b=1;else return;this.JSC$17484_lastStatusCode_=Y.JSC$17472_lastStatusCode_;if(this.state_!=0)if(Y.JSC$17472_successful_)if(b==1){b=Y.JSC$17472_postData_?Y.JSC$17472_postData_.length:0;Y=Date.now()-Y.JSC$17472_requestStartTime_;
var w=$bI;w.dispatchEvent(new lWg(w,b,Y,this.JSC$17484_forwardChannelRetryCount_));QOQ(this);this.handler_&&this.handler_.JSC$17491_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Mwb(this);else{w=Y.getLastError();if(w==3||w==7||w==0&&this.JSC$17484_lastStatusCode_>0)this.JSC$17480_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17480_channelDebug_.debug("Maybe retrying, last error: "+GSX(w,this.JSC$17484_lastStatusCode_));var V;if(V=b==1)this.forwardChannelRequest_||
this.JSC$17484_forwardChannelTimerId_||this.state_==1||this.JSC$17484_forwardChannelRetryCount_>=2?V=!1:(this.JSC$17480_channelDebug_.debug("Going to retry POST"),this.JSC$17484_forwardChannelTimerId_=ZB((0,_.nC)(this.JSC$17484_onStartForwardChannelTimer_,this,Y),eig(this,this.JSC$17484_forwardChannelRetryCount_)),this.JSC$17484_forwardChannelRetryCount_++,V=!0);if(V||b==2&&pqg(this))return;this.JSC$17480_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17480_channelDebug_.debug("Error: HTTP request failed");
switch(w){case 1:rc(this,5);break;case 4:rc(this,10);break;case 3:rc(this,6);break;case 7:rc(this,12);break;default:rc(this,2)}}};
var eig=function(Y,b){var w=5E3+Math.floor(Math.random()*1E4);Y.isActive()||(Y.JSC$17480_channelDebug_.debug("Inactive channel"),w*=2);return w*b};
W_.prototype.onInput_=function(Y){for(var b=0;b<Y.length;b++){var w=Y[b];this.JSC$17484_lastArrayId_=w[0];w=w[1];this.state_==2?w[0]=="c"?(this.sid_=w[1],this.JSC$17484_hostPrefix_=w[2],w=w[3],w!=null?this.JSC$17484_channelVersion_=w:this.JSC$17484_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17491_channelOpened(),this.JSC$17484_backChannelUri_=mwt(this,this.JSC$17484_hostPrefix_,this.JSC$17484_path_),Mwb(this)):w[0]=="stop"&&rc(this,7):this.state_==3&&(w[0]=="stop"?rc(this,7):
w[0]!="noop"&&this.handler_&&this.handler_.JSC$17491_channelHandleArray(w),this.JSC$17484_backChannelRetryCount_=0)}};
W_.prototype.JSC$17484_ensureInState_=function(Y){if(!_.Ka(arguments,this.state_))throw Error("Ck`"+this.state_);};
var rc=function(Y,b){Y.JSC$17480_channelDebug_.info("Error code "+b);if(b==2||b==9){var w=null;Y.handler_&&(w=null);var V=(0,_.nC)(Y.testGoogleComCallback_,Y);w||(w=new _.Jw("//www.google.com/images/cleardot.gif"),_.me(w));rQX(w.toString(),1E4,V)}else Fw(2);Y.onError_(b)};
W_.prototype.testGoogleComCallback_=function(Y){Y?(this.JSC$17480_channelDebug_.info("Successfully pinged google.com"),Fw(2)):(this.JSC$17480_channelDebug_.info("Failed to ping google.com"),Fw(1),this.onError_(8))};
W_.prototype.onError_=function(Y){this.JSC$17480_channelDebug_.debug("HttpChannel: error - "+Y);this.state_=0;this.handler_&&this.handler_.JSC$17491_channelError(Y);sOR(this);qGX(this)};
var sOR=function(Y){Y.state_=0;Y.JSC$17484_lastStatusCode_=-1;if(Y.handler_)if(Y.pendingMaps_.length==0&&Y.JSC$17480_outgoingMaps_.length==0)Y.handler_.JSC$17491_channelClosed();else{Y.JSC$17480_channelDebug_.debug("Number of undelivered maps, pending: "+Y.pendingMaps_.length+", outgoing: "+Y.JSC$17480_outgoingMaps_.length);var b=_.jL(Y.pendingMaps_),w=_.jL(Y.JSC$17480_outgoingMaps_);Y.pendingMaps_.length=0;Y.JSC$17480_outgoingMaps_.length=0;Y.handler_.JSC$17491_channelClosed(b,w)}},coI=function(Y,
b){b=DwX(Y,null,b);
Y.JSC$17480_channelDebug_.debug("GetForwardChannelUri: "+b);return b},mwt=function(Y,b,w){b=DwX(Y,Y.JSC$17479_shouldUseSecondaryDomains()?b:null,w);
Y.JSC$17480_channelDebug_.debug("GetBackChannelUri: "+b);return b},DwX=function(Y,b,w){var V=_.$G(w);
if(V.JSC$8068_domain_!="")b&&_.gy(V,b+"."+V.JSC$8068_domain_),_.fP(V,V.JSC$8068_port_);else{var H=window.location;V=udI(H.protocol,b?b+"."+H.hostname:H.hostname,+H.port,w)}Y.JSC$17484_extraParams_&&_.BL.forEach(Y.JSC$17484_extraParams_,function(f,E){_.G_(V,E,f)});
_.G_(V,"VER",Y.JSC$17484_channelVersion_);Kf(Y,V);return V};
W_.prototype.JSC$17479_createXhrIo=function(Y){if(Y)throw Error("zk");Y=new _.F6;Y.JSC$7833_withCredentials_=!1;return Y};
W_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
W_.prototype.notifyServerReachabilityEvent=function(Y){var b=$bI;b.dispatchEvent(new hit(b,Y))};
W_.prototype.JSC$17479_shouldUseSecondaryDomains=function(){return!1};
new g_b;var OyI=function(){};
_.g=OyI.prototype;_.g.JSC$17491_channelOpened=function(){};
_.g.JSC$17491_channelHandleArray=function(){};
_.g.JSC$17491_channelSuccess=function(){};
_.g.JSC$17491_channelError=function(){};
_.g.JSC$17491_channelClosed=function(){};
_.g.JSC$17491_getAdditionalParams=function(){return{}};
_.g.isActive=function(){return!0};var twR=function(Y){Y.front_.length===0&&(Y.front_=Y.back_,Y.front_.reverse(),Y.back_=[])};
_.g=KHd.prototype;_.g.enqueue=function(Y){this.back_.push(Y)};
_.g.peek=function(){twR(this);return _.Fu(this.front_)};
_.g.getCount=function(){return this.front_.length+this.back_.length};
_.g.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.g.clear=function(){this.front_=[];this.back_=[]};
_.g.contains=function(Y){return _.Ka(this.front_,Y)||_.Ka(this.back_,Y)};
_.g.remove=function(Y){var b=this.front_;var w=Array.prototype.lastIndexOf.call(b,Y,b.length-1);w>=0?(_.yv(b,w),b=!0):b=!1;return b||_.$b(this.back_,Y)};
_.g.getValues=function(){for(var Y=[],b=this.front_.length-1;b>=0;--b)Y.push(this.front_[b]);b=this.back_.length;for(var w=0;w<b;++w)Y.push(this.back_[w]);return Y};var is=function(Y){this.JSC$17495_map_=new _.o$;this.size=0;Y&&this.addAll(Y)},RiX=function(Y){var b=typeof Y;
return b=="object"&&Y||b=="function"?"o"+_.wU(Y):b.charAt(0)+Y};
_.g=is.prototype;_.g.getCount=function(){return this.JSC$17495_map_.size};
_.g.add=function(Y){this.JSC$17495_map_.set(RiX(Y),Y);this.size=this.JSC$17495_map_.size};
_.g.addAll=function(Y){Y=_.VJ(Y);for(var b=Y.length,w=0;w<b;w++)this.add(Y[w]);this.size=this.JSC$17495_map_.size};
_.g.removeAll=function(Y){Y=_.VJ(Y);for(var b=Y.length,w=0;w<b;w++)this.remove(Y[w]);this.size=this.JSC$17495_map_.size};
_.g.delete=function(Y){Y=this.JSC$17495_map_.remove(RiX(Y));this.size=this.JSC$17495_map_.size;return Y};
_.g.remove=function(Y){return this.delete(Y)};
_.g.clear=function(){this.JSC$17495_map_.clear();this.size=0};
_.g.isEmpty=function(){return this.JSC$17495_map_.size===0};
_.g.has=function(Y){return this.JSC$17495_map_.containsKey(RiX(Y))};
_.g.contains=function(Y){return this.JSC$17495_map_.containsKey(RiX(Y))};
_.g.getValues=function(){return this.JSC$17495_map_.getValues()};
_.g.values=function(){return this.JSC$17495_map_.values()};
_.g.clone=function(){return new is(this)};
_.g.equals=function(Y){return this.getCount()==TIb(Y)&&dwg(this,Y)};
var dwg=function(Y,b){var w=TIb(b);if(Y.getCount()>w)return!1;!(b instanceof is)&&w>5&&(b=new is(b));return JAX(Y,function(V){var H=b;return H.contains&&typeof H.contains=="function"?H.contains(V):H.containsValue&&typeof H.containsValue=="function"?H.containsValue(V):_.TK(H)||typeof H==="string"?_.Ka(H,V):_.BL.containsValue(H,V)})};
is.prototype.__iterator__=function(){return this.JSC$17495_map_.__iterator__(!1)};
is.prototype[Symbol.iterator]=function(){return this.values()};var FkN={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(Y){return(this._clampValue(Y)-this.min)/(this.max-this.min)},
_clampValue:function(Y){return Math.min(this.max,Math.max(this.min,this._calcStep(Y)))},
_calcStep:function(Y){Y=parseFloat(Y);if(!this.step)return Y;Y=Math.round((Y-this.min)/this.step);return this.step<1?Y/(1/this.step)+this.min:Y*this.step+this.min},
_validateValue:function(){var Y=this._clampValue(this.value);this.value=this.oldValue=isNaN(Y)?this.oldValue:Y;return this.value!==Y},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var Lk7;var SGA;_.pV({_template:function(){if(SGA!==void 0)return SGA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-app-drawer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_app_layout.tp_yt_app_drawer.tp.yt.app.drawer.css.js--\x3e<div id="scrim" on-click="close" class="style-scope tp-yt-app-drawer"></div>\n\n\n<div id="contentContainer" opened$="[[opened]]" persistent$="[[persistent]]" position$="[[position]]" swipe-open$="[[swipeOpen]]" class="style-scope tp-yt-app-drawer">\n  <slot class="style-scope tp-yt-app-drawer"></slot>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Lk7===void 0&&(Lk7=document.createElement("template"));var V=Lk7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return SGA=Y},
is:"tp-yt-app-drawer",properties:{opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},persistent:{type:Boolean,value:!1,reflectToAttribute:!0},transitionDuration:{type:Number,value:200},align:{type:String,value:"left"},position:{type:String,readOnly:!0,reflectToAttribute:!0},swipeOpen:{type:Boolean,value:!1,reflectToAttribute:!0},noFocusTrap:{type:Boolean,value:!1},disableSwipe:{type:Boolean,value:!1}},observers:["resetLayout(position, isAttached)","_resetPosition(align, isAttached)","_styleTransitionDuration(transitionDuration)",
"_openedPersistentChanged(opened, persistent)"],_translateOffset:0,_trackDetails:null,_drawerState:0,_boundEscKeydownHandler:null,_firstTabStop:null,_lastTabStop:null,attached:function(){_.TC(this,function(){this._boundEscKeydownHandler=this._escKeydownHandler.bind(this);this.addEventListener("keydown",this._tabKeydownHandler.bind(this));this.listen(this,"track","_track");this.setScrollDirection("y")});
this.fire("app-reset-layout")},
detached:function(){document.removeEventListener("keydown",this._boundEscKeydownHandler)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
toggle:function(){this.opened=!this.opened},
getWidth:function(){return this._savedWidth||this.$.contentContainer.offsetWidth},
_isRTL:function(){return window.getComputedStyle(this).direction==="rtl"},
_resetPosition:function(){switch(this.align){case "start":this._setPosition(this._isRTL()?"right":"left");return;case "end":this._setPosition(this._isRTL()?"left":"right");return}this._setPosition(this.align)},
_escKeydownHandler:function(Y){Y.keyCode===27&&(Y.preventDefault(),this.close())},
_track:function(Y){if(!this.persistent&&!this.disableSwipe)switch(Y.preventDefault(),Y.detail.state){case "start":this._trackStart(Y);break;case "track":this._trackMove(Y);break;case "end":this._trackEnd(Y)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var Y=this.$.contentContainer.getBoundingClientRect();this._savedWidth=Y.width;this._translateOffset=this.position==="left"?Y.left:Y.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(Y){this._trackDetails&&(this._translateDrawer(Y.detail.dx+this._translateOffset),this._trackDetails.push({dx:Y.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(Y){if(this._trackDetails){var b=Y.detail.dx+this._translateOffset,w=this.getWidth();b=this.position==="left"?b>=0||b<=-w:b<=0||b>=w;if(!b){var V=this._trackDetails;this._trackDetails=null;this._flingDrawer(Y,V);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}w/=2;Y.detail.dx<-w?this.opened=this.position==="right":Y.detail.dx>w&&(this.opened=this.position==="left");b?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(Y,b){for(var w=Date.now(),V=w-100,H,f=0,E=b.length-1;f<=E;){var U=f+E>>1,X=b[U];X.timeStamp>=V?(H=X,E=U-1):f=U+1}return H?(Y.detail.dx-H.dx)/(w-H.timeStamp||1):0},
_flingDrawer:function(Y,b){b=this._calculateVelocity(Y,b);if(!(Math.abs(b)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;Y=Y.detail.dx+this._translateOffset;var w=this.getWidth(),V=this.position==="left",H=b>0;H?(b=Math.max(b,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(b=Math.min(b,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");b=this._FLING_INITIAL_SLOPE*(!H&&V?-(Y+w):H&&!V?w-Y:-Y)/b;this._styleTransitionDuration(b);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,b)}},
_styleTransitionDuration:function(Y){this.style.transitionDuration=Y+"ms";this.$.contentContainer.style.transitionDuration=Y+"ms";this.$.scrim.style.transitionDuration=Y+"ms"},
_styleTransitionTimingFunction:function(Y){this.$.contentContainer.style.transitionTimingFunction=Y;this.$.scrim.style.transitionTimingFunction=Y},
_translateDrawer:function(Y){var b=this.getWidth();this.position==="left"?(Y=Math.max(-b,Math.min(Y,0)),this.$.scrim.style.opacity=1+Y/b):(Y=Math.max(0,Math.min(Y,b)),this.$.scrim.style.opacity=1-Y/b);this.translate3d(Y+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var Y=this._drawerState;Y===this._DRAWER_STATE.FLINGING&&(this._styleTransitionDuration(this.transitionDuration),this._styleTransitionTimingFunction(""),this.style.visibility="");this._savedWidth=null;this._drawerState=this.opened?this.persistent?this._DRAWER_STATE.OPENED_PERSISTENT:this._DRAWER_STATE.OPENED:this._DRAWER_STATE.CLOSED;Y!==this._drawerState&&(this._drawerState===this._DRAWER_STATE.OPENED?(this._setKeyboardFocusTrap(),document.addEventListener("keydown",
this._boundEscKeydownHandler),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",this._boundEscKeydownHandler),document.body.style.overflow=""),Y!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var Y=_.B1(this).querySelectorAll('a[href]:not([tabindex="-1"]),area[href]:not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),iframe:not([tabindex="-1"]),[tabindex]:not([tabindex="-1"]),[contentEditable=true]:not([tabindex="-1"])');Y.length>0?(this._firstTabStop=Y[0],this._lastTabStop=Y[Y.length-1]):
this._lastTabStop=this._firstTabStop=null;(Y=this.getAttribute("tabindex"))&&parseInt(Y,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(Y){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||Y.keyCode!==9||(Y.shiftKey?this._firstTabStop&&_.B1(Y).localTarget===this._firstTabStop&&(Y.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.B1(Y).localTarget===this._lastTabStop&&(Y.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(Y,b){this.toggleClass("visible",Y&&!b,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 aWt;var rot;_.pV({_template:function(){if(rot!==void 0)return rot;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_progress.tp.yt.paper.progress.css.js--\x3e<div id="progressContainer" class="style-scope tp-yt-paper-progress">\n  <div id="secondaryProgress" hidden$="[[_hideSecondaryProgress(secondaryRatio)]]" class="style-scope tp-yt-paper-progress"></div>\n  <div id="primaryProgress" class="style-scope tp-yt-paper-progress"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;aWt===void 0&&(aWt=document.createElement("template"));var V=aWt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return rot=Y},
is:"tp-yt-paper-progress",behaviors:[FkN],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max, indeterminate)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(Y){this.toggleClass("indeterminate",Y,this.$.primaryProgress)},
_transformProgress:function(Y,b){Y.style.transform=Y.style.webkitTransform="scaleX("+b/100+")"},
_mainRatioChanged:function(Y){this._transformProgress(this.$.primaryProgress,Y)},
_progressChanged:function(Y,b,w,V,H){Y=this._clampValue(Y);b=this._clampValue(b);var f=this._calcRatio(Y)*100,E=this._calcRatio(b)*100;this._setSecondaryRatio(f);this._transformProgress(this.$.secondaryProgress,f);this._transformProgress(this.$.primaryProgress,E);this.secondaryProgress=Y;H?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",w);this.setAttribute("aria-valuemax",V)},
_disabledChanged:function(Y){this.setAttribute("aria-disabled",Y?"true":"false")},
_hideSecondaryProgress:function(Y){return Y===0}});var zi7;var Wkg;var KkO=function(){};
_.g=KkO.prototype;_.g.registered=function(){};
_.g.addOwnKeyBinding=function(){};
_.g.removeOwnKeyBindings=function(){};
_.g.keyboardEventMatchesKeys=function(){};
_.g._collectKeyBindings=function(){};
_.g._prepKeyBindings=function(){};
_.g._addKeyBinding=function(){};
_.g._resetKeyEventListeners=function(){};
_.g._listenKeyEventListeners=function(){};
_.g._unlistenKeyEventListeners=function(){};
_.g._onKeyBindingEvent=function(){};
_.g._triggerKeyHandler=function(){};
_.g._tapHandler=function(){};
_.g._focusChanged=function(){};
_.g._detectKeyboardFocus=function(){};
_.g._userActivate=function(){};
_.g._upHandler=function(){};
_.g._spaceKeyDownHandler=function(){};
_.g._spaceKeyUpHandler=function(){};
_.g._asyncClick=function(){};
_.g._pressedChanged=function(){};
_.g._ariaActiveAttributeChanged=function(){};
_.g._activeChanged=function(){};
_.g._controlStateChanged=function(){};
_.g._changedButtonState=function(){};
_.g._focusBlurHandler=function(){};
_.g._disabledChanged=function(){};
_.g._changedControlState=function(){};
_.g._buttonStateChanged=function(){};
_.g._downHandler=function(){};
_.g.ensureRipple=function(){};
_.g.getRipple=function(){};
_.g.hasRipple=function(){};
_.g._noinkChanged=function(){};
_.g._calcRatio=function(){};
_.g._clampValue=function(){};
_.g._calcStep=function(){};
_.g._validateValue=function(){};
_.g._update=function(){};
_.g._setImmediateValue=function(){};
_.g._setExpand=function(){};
_.g._setDragging=function(){};
_.g._setTransiting=function(){};
_.g._setMarkers=function(){};
_.g._setPressed=function(){};
_.g._setPointerDown=function(){};
_.g._setReceivedFocusFromKeyboard=function(){};
_.g._setFocused=function(){};
_.g._setRatio=function(){};
KkO=_.pV({_template:function(){if(Wkg!==void 0)return Wkg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-slider--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_slider.tp.yt.paper.slider.css.js--\x3e<div id="sliderContainer" class$="[[_getClassNames(disabled, pin, snaps, immediateValue, min, expand, dragging, transiting, editable)]] style-scope tp-yt-paper-slider">\n  <div class="bar-container style-scope tp-yt-paper-slider">\n    <tp-yt-paper-progress disabled$="[[disabled]]" id="sliderBar" aria-hidden="true" min="[[min]]" max="[[max]]" step="[[step]]" value="[[immediateValue]]" secondary-progress="[[secondaryProgress]]" on-down="_bardown" on-up="_resetKnob" on-track="_bartrack" on-tap="_barclick" class="style-scope tp-yt-paper-slider">\n    </tp-yt-paper-progress>\n  </div>\n\n  <template is="dom-if" if="[[snaps]]" class="style-scope tp-yt-paper-slider">\n    <div class="slider-markers style-scope tp-yt-paper-slider">\n      <template is="dom-repeat" items="[[markers]]" class="style-scope tp-yt-paper-slider">\n        <div class="slider-marker style-scope tp-yt-paper-slider"></div>\n      </template>\n    </div>\n  </template>\n\n  <div id="sliderKnobContainer" class="slider-knob-container style-scope tp-yt-paper-slider">\n    <div id="sliderKnob" class="slider-knob style-scope tp-yt-paper-slider" on-down="_knobdown" on-up="_resetKnob" on-track="_onTrack" on-transitionend="_knobTransitionEnd">\n      <div class="slider-knob-inner style-scope tp-yt-paper-slider" value$="[[immediateValue]]"></div>\n    </div>\n  </div>\n</div>\n\n<template is="dom-if" if="[[editable]]" class="style-scope tp-yt-paper-slider">\n  <tp-yt-paper-input id="input" type="number" step="[[step]]" min="[[min]]" max="[[max]]" class="slider-input style-scope tp-yt-paper-slider" disabled$="[[disabled]]" value="[[immediateValue]]" on-change="_changeValue" on-keydown="_inputKeyDown" no-label-float="">\n  </tp-yt-paper-input>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;zi7===void 0&&(zi7=document.createElement("template"));var V=zi7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return Wkg=Y},
is:"tp-yt-paper-slider",behaviors:[_.ni,_.O_,_.bso,FkN],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&&_.dS(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(Y,b,w){this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",w);this.setAttribute("aria-valuenow",Y);this._positionKnob(this._calcRatio(Y)*100)},
_valueChanged:function(){this.fire("value-change",{composed:!0})},
_immediateValueChanged:function(){this.dragging?this.fire("immediate-value-change",{composed:!0}):this.value=this.immediateValue},
_secondaryProgressChanged:function(){this.secondaryProgress=this._clampValue(this.secondaryProgress)},
_expandKnob:function(){this._setExpand(!0)},
_resetKnob:function(){this.cancelDebouncer("expandKnob");this._setExpand(!1)},
_positionKnob:function(Y){this._setImmediateValue(this._calcStep(this._calcKnobPosition(Y)));this._setRatio(this._calcRatio(this.immediateValue)*100);this.$.sliderKnob.style.left=this.ratio+"%";this.dragging&&(this._knobstartx=this.ratio*this._w/100,this.translate3d(0,0,0,this.$.sliderKnob))},
_calcKnobPosition:function(Y){return(this.max-this.min)*Y/100+this.min},
_onTrack:function(Y){Y.stopPropagation();switch(Y.detail.state){case "start":this._trackStart(Y);break;case "track":this._trackX(Y);break;case "end":this._trackEnd()}},
_trackStart:function(){this._setTransiting(!1);this._w=this.$.sliderBar.offsetWidth;this._knobstartx=this._startx=this._x=this.ratio*this._w/100;this._minx=-this._startx;this._maxx=this._w-this._startx;this.$.sliderKnob.classList.add("dragging");this._setDragging(!0)},
_trackX:function(Y){this.dragging||this._trackStart(Y);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,Y.detail.dx*(this._isRTL?-1:1)));Y=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(Y);Y=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(Y+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var Y=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;Y.transform=Y.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(Y){this._expandKnob();Y.preventDefault();this.focus()},
_bartrack:function(Y){this._allowBarEvent(Y)&&this._onTrack(Y)},
_barclick:function(Y){this._w=this.$.sliderBar.offsetWidth;var b=this.$.sliderBar.getBoundingClientRect();b=(Y.detail.x-b.left)/this._w*100;this._isRTL&&(b=100-b);var w=this.ratio;this._setTransiting(!0);this._positionKnob(b);w===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
Y.preventDefault();this.focus()},
_bardown:function(Y){this._allowBarEvent(Y)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(Y))},
_knobTransitionEnd:function(Y){Y.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(Y,b,w,V){V||this._setMarkers([]);b=Math.round((w-b)/this.step);b>Y&&(b=Y);if(b<0||!isFinite(b))b=0;this._setMarkers(Array(b))},
_mergeClasses:function(Y){return Object.keys(Y).filter(function(b){return Y[b]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(Y){return!this.ignoreBarTouch||Y.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(Y){this._isRTL?this._incrementKey(Y):this._decrementKey(Y)},
_rightKey:function(Y){this._isRTL?this._decrementKey(Y):this._incrementKey(Y)},
_incrementKey:function(Y){this.disabled||(Y.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),Y.preventDefault())},
_decrementKey:function(Y){this.disabled||(Y.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),Y.preventDefault())},
_changeValue:function(Y){this.value=Y.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(Y){Y.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.YHQ._createRipple.call(this)},
_focusedChanged:function(Y){Y&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=Y?"":"none",this._ripple.holdDown=Y)}});var iyF;var Aog;var AG=null,C6X=function(){};
_.g=C6X.prototype;_.g.fit=function(){};
_.g._discoverInfo=function(){};
_.g.resetFit=function(){};
_.g.refit=function(){};
_.g.position=function(){};
_.g.constrain=function(){};
_.g._sizeDimension=function(){};
_.g.__sizeDimension=function(){};
_.g.center=function(){};
_.g.__getNormalizedRect=function(){};
_.g.__getOffscreenArea=function(){};
_.g.__getPosition=function(){};
_.g.notifyResize=function(){};
_.g.assignParentResizable=function(){};
_.g.stopResizeNotificationsFor=function(){};
_.g._subscribeIronResize=function(){};
_.g._unsubscribeIronResize=function(){};
_.g.resizerShouldNotify=function(){};
_.g._onDescendantIronResize=function(){};
_.g._fireResize=function(){};
_.g._onIronRequestResizeNotifications=function(){};
_.g._parentResizableChanged=function(){};
_.g._notifyDescendant=function(){};
_.g._requestResizeNotifications=function(){};
_.g._findParent=function(){};
_.g.toggle=function(){};
_.g.open=function(){};
_.g.close=function(){};
_.g.cancel=function(){};
_.g.invalidateTabbables=function(){};
_.g._ensureSetup=function(){};
_.g._canceledChanged=function(){};
_.g._withBackdropChanged=function(){};
_.g._prepareRenderOpened=function(){};
_.g._finishRenderOpened=function(){};
_.g._finishRenderClosed=function(){};
_.g._preparePositioning=function(){};
_.g._finishPositioning=function(){};
_.g._applyFocus=function(){};
_.g._onCaptureClick=function(){};
_.g._onCaptureFocus=function(){};
_.g._onCaptureEsc=function(){};
_.g._onCaptureTab=function(){};
_.g._onIronResize=function(){};
_.g._onNodesChange=function(){};
_.g.__ensureFirstLastFocusables=function(){};
_.g.__openedChanged=function(){};
_.g.__deraf=function(){};
_.g.__updateScrollObservers=function(){};
_.g.__addScrollListeners=function(){};
_.g.__removeScrollListeners=function(){};
_.g.__isValidScrollAction=function(){};
_.g.__onCaptureScroll=function(){};
_.g.__saveScrollPosition=function(){};
_.g.__restoreScrollPosition=function(){};
_.g._setCanceled=function(){};
C6X=_.pV({_template:function(){if(Aog!==void 0)return Aog;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-toast--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_toast.tp.yt.paper.toast.css.js--\x3e<span id="label" class="style-scope tp-yt-paper-toast">{{text}}</span>\n<slot class="style-scope tp-yt-paper-toast"></slot>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;iyF===void 0&&(iyF=document.createElement("template"));var V=iyF;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);return Aog=Y},
is:"tp-yt-paper-toast",behaviors:[_.TQ],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(){_.ny._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Ci.requestAvailability()},
show:function(Y){typeof Y=="string"&&(Y={text:Y});for(var b in Y)b.indexOf("_")===0?_.ny._warn('The property "'+b+'" is private and was not set.'):b in this?this[b]=Y[b]:_.ny._warn('The property "'+b+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(Y){Y&&Y.target===this&&Y.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(AG&&AG!==this&&AG.close(),AG=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):AG===this&&(AG=null);_.GQ._openedChanged.apply(this,arguments)},
_onLabelChanged:function(){this.opened&&this.announceLabelUpdates&&this._fireIronAnnounce()},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(Y){this.positionTarget=Y},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var yog=new _.A("disablePersonalizationAction");var LDI=new _.A("showDmaConsentFlowCommand");var SCX=new _.A("showMmgNoticeCommand");var $wN=new _.A("saveConsentAction");var jOO=function(Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.gX(Y)};
_.P(jOO,_.SQ);var GPR=_.bH(jOO);var TAA=new _.A("updateTopbarAvatarAction");var JoA=new _.A("channelHandleValidationResultRenderer");var uRt=new _.A("generateHandleFromNameResultRenderer");var Y_t=new _.A("channelHandleInputRenderer");var biX=new _.A("copyLinkRenderer");var wUR=new _.A("timedCommand");var VcA=new _.A("clearCookieAction");var HiX=new _.A("getMultiPageMenuAction");var g$d=new _.A("addToGuideSectionAction"),fyX=new _.A("removeFromGuideSectionAction");var NLg=new _.A("updateNotificationsUnseenCountAction");var E$R=new _.A("resetChannelUnreadCountCommand");var cxR=new _.A("resetSubscriptionsUnreadDotCommand");var UMX=new _.A("selectLanguageCommand");var JrX=new _.A("sendFeedbackAction");var XUd=new _.A("uploadImageToScottyCommand");var DMt=new _.A("registerPromoCommand");var mMO=new _.A("setPushNotificationsEnabledCommand");var o$X=new _.A("desktopTopbarRenderer");var IyX=new _.A("surveyFollowUpRenderer");var kQX=new _.A("handlesClaimingRadioOptionRenderer");var lys=new _.A("hotkeyDialogRenderer");var hzN=new _.A("modifyReportFormCommand");var xMX=new _.A("accountLinkCommand");var q_s=new _.A("accountUnlinkCommand");var s$s=new _.A("logAccountLinkingEventCommand");var Q$s=new _.A("guideCollapsibleEntryRenderer");var v$b=new _.A("guideDownloadsEntryRenderer");var Cf=new _.A("guideEntryRenderer");var PMN=new _.A("getLocationCommand");var ZiQ=new _.A("locationCollectionCommand");var BLI=new _.A("storiesItemViewModel");var n$R=new _.A("addToRemoteQueueAction");var Mc7=new _.A("insertInRemoteQueueAction");var ezX=new _.A("removeFromRemoteQueueAction");var pUN=new _.A("notificationRenderer");var sAA=new _.A("localWatchHistoryCommand");var OiQ=new _.A("pdgBuyFlowHeaderRenderer");var tcO=new _.A("pdgColorSliderRenderer");var RzX=new _.A("pdgCommentOptionRenderer");var dMg=new _.A("pdgCommentPreviewRenderer");var Fyb=new _.A("superVodSelectableItemButtonRenderer");var LyO=new _.A("switchButtonRenderer");var S_I=new _.A("upsellDialogRenderer");var ayI=new _.A("feedbackQuestionRenderer"),rxs=new _.A("feedbackOptionRenderer");var zzO=new _.A("sponsorshipsTierRenderer"),WyN=new _.A("sponsorshipsPromotionChannelRenderer");var Kyt=new _.A("simpleSurveyMessageRenderer");var JLX=new _.A("invokeInstrumentManagerAction");var iiQ=new _.A("logYpcFlowDismissCommand");var AxX=new _.A("logYpcFlowStartCommand");var CMQ=new _.A("unlimitedCreateFamilyEndpoint");var yxb=new _.A("iconBadgeRenderer");var Q8Q=new _.A("collaborativePlaylistVisibilityValidationRule");var $Mt=function(Y){_.Q2.call(this,"channelMessage");this.message=Y};
_.P($Mt,_.Q2);var j$Q=function(Y){_.Q2.call(this,"channelError");this.error=Y};
_.P(j$Q,_.Q2);var GQt={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw"},TLX={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},Jxt={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},uLs={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},YwF={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var yb=function(Y){this.name=this.id="";this.clientName="UNKNOWN_INTERFACE";this.app="";this.type="REMOTE_CONTROL";this.ownerObfuscatedGaiaId=this.obfuscatedGaiaId=this.avatar=this.username="";this.connected=!1;this.capabilities=new Set;this.compatibleSenderThemes=new Set;this.experiments=new Set;this.theme="u";new _.o$;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;Y&&(this.id=Y.id||Y.name,this.name=Y.name,this.clientName=Y.clientName?Y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=Y.app,this.type=Y.type||"REMOTE_CONTROL",this.username=Y.user||"",this.avatar=Y.userAvatarUri||"",this.obfuscatedGaiaId=Y.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=Y.ownerObfuscatedGaiaId||"",this.castUserId=Y.castUserId||"",this.theme=Y.theme||"u",bLd(this,Y.capabilities||""),wad(this,
Y.compatibleSenderThemes||""),V7d(this,Y.experiments||""),this.remoteControllerUrl=Y.remoteControllerUrl||"",this.localChannelEncryptionKey=Y.localChannelEncryptionKey||"",this.deviceContext=Y.deviceContext,this.brand=Y.brand||"",this.model=Y.model||"",this.year=Y.year||0,this.os=Y.os||"",this.osVersion=Y.osVersion||"",this.chipset=Y.chipset||"",this.mdxDialServerType=Y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=Y.pairingType||"unknown",Y=Y.deviceInfo)&&(Y=JSON.parse(Y),this.brand=
Y.brand||"",this.model=Y.model||"",this.year=Y.year||0,this.os=Y.os||"",this.osVersion=Y.osVersion||"",this.chipset=Y.chipset||"",this.clientName=Y.clientName?Y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=Y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
yb.prototype.copy=function(){var Y={id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,obfuscatedGaiaId:this.obfuscatedGaiaId,ownerObfuscatedGaiaId:this.ownerObfuscatedGaiaId,theme:this.theme,capabilities:Array.from(this.capabilities.values()).join(","),compatibleSenderThemes:Array.from(this.compatibleSenderThemes.values()).join(","),experiments:Array.from(this.experiments.values()).join(","),pairingType:this.pairingType};this.brand&&(Y.brand=this.brand);
this.model&&(Y.model=this.model);this.year&&(Y.year=this.year);this.os&&(Y.os=this.os);this.osVersion&&(Y.osVersion=this.osVersion);this.chipset&&(Y.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(Y.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(Y.mdxDialServerType=this.mdxDialServerType);Y=new yb(Y);Y.connected=this.connected;Y.remoteControllerUrl=this.remoteControllerUrl;Y.localChannelEncryptionKey=this.localChannelEncryptionKey;Y.deviceContext=
this.deviceContext;Y.castUserId=this.castUserId;return Y};
yb.prototype.equals=function(Y){return Y?this.id==Y.id:!1};
var bLd=function(Y,b){Y.capabilities.clear();_.oy(b.split(","),_.v0(_.BL.contains,GQt)).forEach(function(w){Y.capabilities.add(w)})},wad=function(Y,b){Y.compatibleSenderThemes.clear();
_.oy(b.split(","),_.v0(_.BL.contains,TLX)).forEach(function(w){Y.compatibleSenderThemes.add(w)})},V7d=function(Y,b){Y.experiments.clear();
b.split(",").forEach(function(w){Y.experiments.add(w)})};var HLX=function(Y,b){this.action=Y;this.params=b||{}};_.DX(iSO,_.BE);_.g=iSO.prototype;_.g.JSC$17531_onTick_=function(){this.JSC$17529_interval_=Math.min(3E5,this.JSC$17529_interval_*2);this.JSC$17531_listener_();this.nextTickTime_&&this.start()};
_.g.start=function(){var Y=this.JSC$17529_interval_+15E3*Math.random(),b=this.delay_;b.isActive()||b.start(Y);this.nextTickTime_=Date.now()+Y};
_.g.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.g.isActive=function(){return this.delay_.isActive()};
_.g.reset=function(){this.delay_.stop();this.JSC$17529_interval_=5E3};_.DX(nF,OyI);_.g=nF.prototype;_.g.subscribe=function(Y,b,w){return this.pubsub_.subscribe(Y,b,w)};
_.g.unsubscribe=function(Y,b,w){return this.pubsub_.unsubscribe(Y,b,w)};
_.g.unsubscribeByKey=function(Y){return this.pubsub_.unsubscribeByKey(Y)};
_.g.publish=function(Y,b){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.g.dispose=function(){this.JSC$17532_disposed_||(this.JSC$17532_disposed_=!0,_.ua(this.pubsub_),this.disconnect(),_.ua(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17532_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.k7({})})};
_.g.isDisposed=function(){return this.JSC$17532_disposed_};
_.g.connect=function(Y,b,w){var V=this,H,f,E,U;return _.c(function(X){if(X.nextAddress==1)return _.X3(X,2),V.useAsyncBrowserChannelHandler_?_.D(X,V.connectPromise_,2):X.jumpTo(2);_.Ux(X);if(V.JSC$17532_disposed_||V.JSC$17532_channel_&&V.JSC$17532_channel_.getState()==2)return X.return();V.sCookie_="";V.reconnectTimer_.stop();V.connectionParams_=Y||null;V.connectUi_=b||0;H=V.JSC$17532_pathPrefix_+"/test";f=V.JSC$17532_pathPrefix_+"/bind";E=new W_(w?w.firstTestResults:null,w?w.secondTestResults:null,
V.enableAsyncTest_);if(U=V.JSC$17532_channel_)U.handler_=null;E.handler_=V;V.JSC$17532_channel_=E;if(V.useAsyncBrowserChannelHandler_)return V.connectPromise_=gUt(V).then(function(){return fdt(V,H,f,U,w)}),X.return(V.connectPromise_.then(function(){V.connectPromise_=_.k7()}));
fdt(V,H,f,U,w);return _.Dl(X,0)})};
var fdt=function(Y,b,w,V,H){NYs(Y);if(Y.JSC$17532_channel_){var f=_.zO("ID_TOKEN"),E=Y.JSC$17532_channel_.JSC$17484_extraHeaders_||{};f?E["x-youtube-identity-token"]=f:delete E["x-youtube-identity-token"];Y.JSC$17532_channel_.JSC$17484_extraHeaders_=E}EUd(Y);V?(V.getState(),Y.JSC$17532_channel_.connect(b,w,Y.defaultQueryParams_,V.sid_,V.JSC$17484_lastArrayId_)):H?Y.JSC$17532_channel_.connect(b,w,Y.defaultQueryParams_,H.sessionId,H.arrayId):Y.JSC$17532_channel_.connect(b,w,Y.defaultQueryParams_)};
nF.prototype.disconnect=function(Y){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.k7())}finally{this.disconnectUi_=Y||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),NYs(this),this.JSC$17532_channel_&&(this.JSC$17532_channel_.getState()==3&&Zyd(this.JSC$17532_channel_),this.JSC$17532_channel_.disconnect()),this.disconnectUi_=0}};
nF.prototype.sendMessage=function(Y,b){var w=this,V;return _.c(function(H){switch(H.nextAddress){case 1:_.X3(H,2);if(!w.useAsyncBrowserChannelHandler_){H.jumpTo(2);break}return _.D(H,w.connectPromise_,2);case 2:_.Ux(H);if(w.JSC$17532_disposed_)return H.return();V={_sc:Y};b&&_.BL.extend(V,b);if(w.reconnectTimer_.isActive()||(w.JSC$17532_channel_?w.JSC$17532_channel_.getState():0)==2){w.JSC$17532_pendingMessages_.push(V);H.jumpTo(6);break}if(!w.isChannelOpened()){H.jumpTo(6);break}_.X3(H,8);if(!w.useAsyncBrowserChannelHandler_||
cIN(w,Y)){H.jumpTo(8);break}return _.D(H,gUt(w),8);case 8:_.Ux(H,0,0,1);w.isChannelOpened()&&(cIN(w,Y)||EUd(w),NYs(w),P6d(w.JSC$17532_channel_,V));_.Dl(H,6,1);break;case 6:_.Dl(H,0)}})};
var cIN=function(Y,b){return Y.enableMdxAuthForConnectionOnly_?!0:Y.disableMdxAuthForAdMessages_?Object.values(Jxt).includes(b):Y.disableMdxAuthForNonPlaybackMessages_?!Object.values(uLs).includes(b):Y.disableMdxAuthForShortsMessages_?Object.values(YwF).includes(b):!1};
nF.prototype.JSC$17491_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17532_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)UmQ(this);else{var Y=this.JSC$17532_pendingMessages_;this.JSC$17532_pendingMessages_=[];var b=Y.length;EUd(this);Xad(this,Y,b);Dm7(this)}else Dm7(this)};
var UmQ=function(Y){var b,w;_.c(function(V){if(V.nextAddress==1)return _.X3(V,2),_.D(V,gUt(Y),2);_.Ux(V);b=Y.JSC$17532_pendingMessages_;Y.JSC$17532_pendingMessages_=[];w=b.length;Xad(Y,b,w);Dm7(Y);return _.Dl(V,0)})},Xad=function(Y,b,w){for(var V=0;V<w;++V)P6d(Y.JSC$17532_channel_,b[V]);
Dm7(Y)},Dm7=function(Y){Y.publish("handlerOpened");
Y.JSC$17532_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.g=nF.prototype;_.g.JSC$17491_channelError=function(Y){var b=Y==2&&this.JSC$17532_channel_.JSC$17484_lastStatusCode_==401;Y==4||b||this.reconnectTimer_.start();this.publish("handlerError",Y,b);b=Object.keys(kPt).find(function(w){return kPt[w]===Y});
this.JSC$17532_channelErrorCounter.increment("BROWSER_CHANNEL",b!=null?b:"UNKNOWN")};
_.g.JSC$17491_channelClosed=function(Y,b){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(b)for(var w=b.length,V=0;V<w;++V){var H=b[V].map;H&&this.JSC$17532_pendingMessages_.push(H)}this.JSC$17532_channelClosedCounter.increment("BROWSER_CHANNEL");Y&&this.pendingMapsOnClosedCounter.JSC$7969_streamzService.JSC$7824_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",Y.length);b&&this.undeliveredMapsOnClosedCounter.JSC$7972_streamzService.JSC$7824_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
b.length)};
_.g.JSC$17491_channelSuccess=function(Y,b){b!=null&&Y!=null&&this.channelMessageSentCounter.increment()};
_.g.JSC$17491_getAdditionalParams=function(){var Y={v:2};this.sCookie_&&(Y.gsessionid=this.sCookie_);this.connectUi_!=0&&(Y.ui=""+this.connectUi_);this.disconnectUi_!=0&&(Y.ui=""+this.disconnectUi_);this.connectionParams_&&_.BL.extend(Y,this.connectionParams_);return Y};
_.g.JSC$17491_channelHandleArray=function(Y){Y[0]=="S"?this.sCookie_=Y[1]:Y[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17532_channel_.disconnect()):this.publish("handlerMessage",new HLX(Y[0],Y[1]));this.JSC$17532_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.g.isChannelOpened=function(){return!!this.JSC$17532_channel_&&this.JSC$17532_channel_.getState()==3};
var NYs=function(Y){if(Y.JSC$17532_channel_){var b=Y.JSC$17532_getXsrfToken_(),w=Y.JSC$17532_channel_.JSC$17484_extraHeaders_||{};b?w["x-youtube-lounge-xsrf-token"]=b:delete w["x-youtube-lounge-xsrf-token"];Y.JSC$17532_channel_.JSC$17484_extraHeaders_=w}},gUt=function(Y){if(Y.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.k7();
if(!Y.enableCachedUpdateAuthorizationHeader_)return mmX(Y);Y.updateAuthorizationHeaderPromise_===null&&(Y.updateAuthorizationHeaderPromise_=mmX(Y));return Y.updateAuthorizationHeaderPromise_},mmX=function(Y){return _.OV(Y.getAuthorizationHeader_().then(function(b){oUN(Y,b)}).thenCatch(function(){}),function(){Y.updateAuthorizationHeaderPromise_=null})},oUN=function(Y,b){if(Y.JSC$17532_channel_){var w=Y.JSC$17532_channel_.JSC$17484_extraHeaders_||{};
b&&Object.keys(b).length>0?w=Object.assign({},w,b):delete w.Authorization;Y.JSC$17532_channel_.JSC$17484_extraHeaders_=w}},EUd=function(Y){Y.getAuthorizationHeaderSync_&&!Y.useAsyncBrowserChannelHandler_&&oUN(Y,Y.getAuthorizationHeaderSync_())};
_.g=nF.prototype;_.g.setLoungeToken=function(Y){(this.defaultQueryParams_.loungeIdToken=Y)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17532_channel_){var b=this.JSC$17532_channel_.JSC$17484_extraHeaders_||{};Y?b["X-YouTube-LoungeId-Token"]=Y:delete b["X-YouTube-LoungeId-Token"];this.JSC$17532_channel_.JSC$17484_extraHeaders_=b}};
_.g.getDeviceId=function(){return this.defaultQueryParams_.id};
_.g.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.g.reconnect=function(){var Y=this.reconnectTimer_;Y.delay_.fire();Y.start()};
_.g.safeReconnect_=function(){var Y=this.JSC$17532_channel_,b=0;Y.JSC$17484_backChannelRequest_&&b++;Y.forwardChannelRequest_&&b++;b==0&&this.connect(this.connectionParams_,this.connectUi_)};var d3=function(Y,b){var w=Y.basePath;Y.supportCors&&(w=Y.scheme+"://"+Y.domain+Y.port+Y.basePath);return _.Jq(w+b,{})};
MW.prototype.sendRequest=function(Y,b,w,V,H,f,E){Y={format:f?"RAW":"JSON",method:Y,context:this,timeout:5E3,withCredentials:!!E,onSuccess:_.v0(this.JSC$17537_onSuccess_,V,!f),onError:_.v0(this.onError_,H),onTimeout:_.v0(this.JSC$17537_onTimeout_,H)};w&&(Y.postParams=w,Y.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.lc(b,Y)};
MW.prototype.JSC$17537_onSuccess_=function(Y,b,w,V){b?Y(V):Y({text:w.responseText})};
MW.prototype.onError_=function(Y,b){Y(Error("Dk`"+b.status))};
MW.prototype.JSC$17537_onTimeout_=function(Y){Y(Error("Ek"))};var pF=function(Y,b){return!!b&&(Y.id==b||Y.uuid==b)},Ids=function(Y){return{name:Y.name,
screenId:Y.id,loungeToken:Y.token,dialId:Y.uuid,screenIdType:Y.idType}},kkX=function(Y){return new eD(Y)},ldt=function(Y){return Array.isArray(Y)?_.MD(Y,kkX):[]},uAg=function(Y){if(!Y)return"null";
var b=Y.token?".."+Y.token.slice(-6):"-",w=Y.uuid?".."+Y.uuid.slice(-6):"-";return'{name:"'+Y.name+'",id:'+Y.id.substr(0,6)+"..,token:"+(b+",uuid:"+w+",idType:"+Y.idType+"}")},nLO=function(Y){return Array.isArray(Y)?"["+_.MD(Y,uAg).join(",")+"]":"null"};var NOs="",Rr=null;var kGb=function(Y,b){_.n1.call(this);var w=this;this.handler=Y();this.handler.subscribe("handlerOpened",this.JSC$17544_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(V,H){w.onError(H)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=b};
_.P(kGb,_.n1);_.g=kGb.prototype;_.g.connect=function(Y,b,w){this.handler.connect(Y,b,w)};
_.g.disconnect=function(Y){this.handler.disconnect(Y)};
_.g.reconnect=function(){this.handler.reconnect()};
_.g.getDeviceId=function(){return this.handler.getDeviceId()};
_.g.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.g.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.g.JSC$17544_onOpened=function(){this.dispatchEvent("channelOpened");var Y=this.handler,b=this.currentScreenId;_.kc("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!Y.JSC$17532_channel_.useChunked_,sessionId:Y.JSC$17532_channel_.sid_,arrayId:Y.JSC$17532_channel_.JSC$17484_lastArrayId_});_.kc("yt-remote-session-screen-id",b);Y=bMt();b=w1d();_.Ka(Y,b)||Y.push(b);fmQ(Y);gLI()};
_.g.onClosed=function(){this.dispatchEvent("channelClosed")};
_.g.onMessage=function(Y){this.dispatchEvent(new $Mt(Y))};
_.g.onError=function(Y){this.dispatchEvent(new j$Q(Y?1:0))};
_.g.sendMessage=function(Y,b){this.handler.sendMessage(Y,b)};
_.g.setLoungeToken=function(Y){this.handler.setLoungeToken(Y)};
_.g.dispose=function(){this.handler.dispose()};var ImF=function(Y,b,w){var V=this;w=w===void 0?function(){return""}:w;
var H=H===void 0?new K0t:H;var f=f===void 0?new _.xu:f;this.pathPrefix=Y;this.defaultQueryParams=b;this.getXsrfToken=w;this.JSC$17547_pubsub=f;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new iSO(function(){var E;((E=V.channel)==null?void 0:hAF((new CxR(E,E.JSC$17455_channel_)).JSC$17465_channel_.forwardChannelRequestPool_))===0&&V.connect(V.connectionParams,V.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17547_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17547_channelOpenedCounter=new AQO;this.JSC$17547_channelClosedCounter=new CpR;this.JSC$17547_channelMessageReceivedCounter=new $cQ;this.JSC$17547_channelErrorCounter=new jdQ};
ImF.prototype.connect=function(Y,b){Y=Y===void 0?{}:Y;b=b===void 0?0:b;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=Y,this.connectUi=b,hxX(this),(Y=_.zO("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=Y:delete this.webChannelMessageHeaders["x-youtube-identity-token"],this.defaultQueryParams&&(this.webChannelMessageUrlParams.device=this.defaultQueryParams.device,this.webChannelMessageUrlParams.name=this.defaultQueryParams.name,this.webChannelMessageUrlParams.app=
this.defaultQueryParams.app,this.webChannelMessageUrlParams.id=this.defaultQueryParams.id,this.defaultQueryParams.mdxVersion&&(this.webChannelMessageUrlParams.mdxVersion=""+this.defaultQueryParams.mdxVersion),this.defaultQueryParams.theme&&(this.webChannelMessageUrlParams.theme=this.defaultQueryParams.theme),this.defaultQueryParams.capabilities&&(this.webChannelMessageUrlParams.capabilities=this.defaultQueryParams.capabilities),this.defaultQueryParams.cst&&(this.webChannelMessageUrlParams.cst=this.defaultQueryParams.cst),
this.defaultQueryParams.authuser&&(this.webChannelMessageUrlParams.authuser=this.defaultQueryParams.authuser),this.defaultQueryParams.pageId&&(this.webChannelMessageUrlParams.pageId=this.defaultQueryParams.pageId)),this.connectUi!==0?this.webChannelMessageUrlParams.ui=""+this.connectUi:delete this.webChannelMessageUrlParams.ui,Object.assign(this.webChannelMessageUrlParams,this.connectionParams),this.channel=new dc(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,xms(this))};
var xms=function(Y){_.ez(Y.channel,"w",function(){Y.channelState=3;Y.reconnectTimer.reset();Y.connectionParams=null;Y.connectUi=0;for(var b=_.N(Y.nonAckedMessagesOnChannelClosed),w=b.next();!w.done;w=b.next())w=w.value,Y.channel&&Y.channel.send(w);Y.nonAckedMessagesOnChannelClosed=[];Y.publish("webChannelOpened");Y.JSC$17547_channelOpenedCounter.increment("WEB_CHANNEL")});
_.ez(Y.channel,"x",function(){Y.channelState=0;Y.reconnectTimer.isActive()||Y.publish("webChannelClosed");var b,w=(b=Y.channel)==null?void 0:ytb(new CxR(b,b.JSC$17455_channel_));w&&(Y.nonAckedMessagesOnChannelClosed=[].concat(_.Bt(w)));Y.JSC$17547_channelClosedCounter.increment("WEB_CHANNEL")});
_.ez(Y.channel,"z",function(b){var w=b.data;w[0]==="gracefulReconnect"?(Y.reconnectTimer.start(),Y.channel&&Y.channel.close()):Y.publish("webChannelMessage",new HLX(w[0],w[1]));Y.lastStatusCode=b.statusCode;Y.JSC$17547_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.ez(Y.channel,"y",function(){Y.lastStatusCode===401||Y.reconnectTimer.start();Y.publish("webChannelError");Y.JSC$17547_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.g=ImF.prototype;_.g.disconnect=function(Y){this.disconnectUi=Y===void 0?0:Y;this.reconnectTimer.stop();hxX(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.g.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.g.reconnect=function(){var Y=this.reconnectTimer;Y.delay_.fire();Y.start()};
_.g.sendMessage=function(Y,b){this.channel&&(hxX(this),Y=Object.assign({},{_sc:Y},b),this.channel.send(Y))};
_.g.setLoungeToken=function(Y){Y||this.reconnectTimer.stop();Y?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=Y:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var hxX=function(Y){var b=Y.getXsrfToken();b?Y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=b:delete Y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.g=ImF.prototype;_.g.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.g.publish=function(Y){return this.JSC$17547_pubsub.publish.apply(this.JSC$17547_pubsub,[Y].concat(_.Bt(_.BN.apply(1,arguments))))};
_.g.subscribe=function(Y,b,w){return this.JSC$17547_pubsub.subscribe(Y,b,w)};
_.g.unsubscribe=function(Y,b,w){return this.JSC$17547_pubsub.unsubscribe(Y,b,w)};
_.g.unsubscribeByKey=function(Y){return this.JSC$17547_pubsub.unsubscribeByKey(Y)};
_.g.dispose=function(){this.JSC$17547_disposed||(this.JSC$17547_disposed=!0,_.ua(this.JSC$17547_pubsub),this.disconnect(),_.ua(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.g.isDisposed=function(){return this.JSC$17547_disposed};var oL7=function(Y){_.n1.call(this);this.webChannelService=Y();this.webChannelService.subscribe("webChannelOpened",this.JSC$17555_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.P(oL7,_.n1);_.g=oL7.prototype;_.g.connect=function(Y,b){this.webChannelService.connect(Y,b)};
_.g.disconnect=function(Y){this.webChannelService.disconnect(Y)};
_.g.reconnect=function(){this.webChannelService.reconnect()};
_.g.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.g.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.g.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.g.JSC$17555_onOpened=function(){this.dispatchEvent("channelOpened")};
_.g.onClosed=function(){this.dispatchEvent("channelClosed")};
_.g.onMessage=function(Y){this.dispatchEvent(new $Mt(Y))};
_.g.onError=function(){this.dispatchEvent(new j$Q(this.webChannelService.lastStatusCode===401?1:0))};
_.g.sendMessage=function(Y,b){this.webChannelService.sendMessage(Y,b)};
_.g.setLoungeToken=function(Y){this.webChannelService.setLoungeToken(Y)};
_.g.dispose=function(){this.webChannelService.dispose()};var BOt=Date.now(),FU=null,Pob=Array(50),ar=-1,ZMN=!1;_.DX(r3,_.G$);r3.prototype.getScreens=function(){return this.screens};
r3.prototype.contains=function(Y){return!!YDI(this.screens,Y)};
r3.prototype.get=function(Y){return Y?OE(this.screens,Y):null};
var qwg=function(Y,b){var w=Y.get(b.uuid)||Y.get(b.id);if(w)return Y=w.name,w.id=b.id||w.id,w.name=b.name,w.token=b.token,w.uuid=b.uuid||w.uuid,w.name!=Y;Y.screens.push(b);return!0},sUd=function(Y,b){var w=Y.screens.length!=b.length;
Y.screens=_.oy(Y.screens,function(f){return!!YDI(b,f)});
for(var V=b.length,H=0;H<V;H++)w=qwg(Y,b[H])||w;return w},QUI=function(Y,b){var w=Y.screens.length;
Y.screens=_.oy(Y.screens,function(V){return!(V||b?!V!=!b?0:V.id==b.id:1)});
return Y.screens.length<w};
r3.prototype.info=function(Y){LF(this.JSC$17556_logName_,Y)};var vUA=function(Y,b,w,V,H){_.G$.call(this);this.JSC$17559_http_=Y;this.pairingCode_=b;this.deviceId_=w;this.friendlyName_=V;this.enableShortLivedLoungeToken_=H;this.pollIndex_=0;this.JSC$17559_xhr_=null;this.JSC$17559_timer_=NaN};
_.P(vUA,_.G$);_.g=vUA.prototype;_.g.start=function(){!this.JSC$17559_xhr_&&isNaN(this.JSC$17559_timer_)&&this.poll_()};
_.g.stop=function(){this.JSC$17559_xhr_&&(this.JSC$17559_xhr_.abort(),this.JSC$17559_xhr_=null);isNaN(this.JSC$17559_timer_)||(_.IV(this.JSC$17559_timer_),this.JSC$17559_timer_=NaN)};
_.g.disposeInternal=function(){this.stop();_.G$.prototype.disposeInternal.call(this)};
_.g.poll_=function(){this.JSC$17559_timer_=NaN;this.JSC$17559_xhr_=_.lc(d3(this.JSC$17559_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.nC)(this.JSC$17561_onSuccess_,this),onError:(0,_.nC)(this.onError_,this),onTimeout:(0,_.nC)(this.JSC$17561_onTimeout_,this)})};
_.g.JSC$17561_onSuccess_=function(Y,b){this.JSC$17559_xhr_=null;Y=b.screen||{};Y.dialId=this.deviceId_;Y.name=this.friendlyName_;b=-1;this.enableShortLivedLoungeToken_&&Y.shortLivedLoungeToken&&Y.shortLivedLoungeToken.value&&Y.shortLivedLoungeToken.refreshIntervalMs&&(Y.screenIdType="shortLived",Y.loungeToken=Y.shortLivedLoungeToken.value,b=Y.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new eD(Y),b)};
_.g.onError_=function(Y){this.JSC$17559_xhr_=null;Y.status&&Y.status==404?this.pollIndex_>=PGQ.length?this.publish("pairingFailed",Error("Fk")):(Y=PGQ[this.pollIndex_],this.JSC$17559_timer_=_.m$((0,_.nC)(this.poll_,this),Y),this.pollIndex_++):this.publish("pairingFailed",Error("Gk`"+Y.status))};
_.g.JSC$17561_onTimeout_=function(){this.JSC$17559_xhr_=null;this.publish("pairingFailed",Error("Hk"))};
var PGQ=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.DX(Wc,r3);_.g=Wc.prototype;_.g.start=function(){zo(this)&&this.publish("screenChange");!_.l4("yt-remote-lounge-token-expiration")&&ZLt(this);_.IV(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.m$((0,_.nC)(this.start,this),1E4)};
_.g.add=function(Y,b){zo(this);qwg(this,Y);BYF(this,!1);this.publish("screenChange");b(Y);Y.token||ZLt(this)};
_.g.remove=function(Y,b){var w=zo(this);QUI(this,Y)&&(BYF(this,!1),w=!0);b(Y);w&&this.publish("screenChange")};
_.g.updateName=function(Y,b,w,V){var H=zo(this),f=this.get(Y.id);f?(f.name!=b&&(f.name=b,BYF(this,!1),H=!0),w(Y)):V(Error("Ik"));H&&this.publish("screenChange")};
_.g.disposeInternal=function(){_.IV(this.loungeTokenRefreshTimer_);Wc.superClass_.disposeInternal.call(this)};
var ZLt=function(Y){if(Y.screens.length){var b=_.MD(Y.screens,function(V){return V.id}),w=d3(Y.JSC$17563_http_,"/pairing/get_lounge_token_batch");
Y.JSC$17563_http_.sendRequest("POST",w,{screen_ids:b.join(",")},(0,_.nC)(Y.handleLoungeTokens_,Y),(0,_.nC)(Y.handleLoungeTokenError_,Y))}};
Wc.prototype.handleLoungeTokens_=function(Y){zo(this);var b=this.screens.length;Y=Y&&Y.screens||[];for(var w=Y.length,V=0;V<w;++V){var H=Y[V],f=this.get(H.screenId);f&&(f.token=H.loungeToken,--b)}BYF(this,!b);b&&LF(this.JSC$17556_logName_,"Missed "+b+" lounge tokens.")};
Wc.prototype.handleLoungeTokenError_=function(Y){LF(this.JSC$17556_logName_,"Requesting lounge tokens failed: "+Y)};
var zo=function(Y){if(_.q("deprecate_pair_servlet_enabled"))return sUd(Y,[]);var b=ldt(cwI());b=_.oy(b,function(w){return!w.uuid});
return sUd(Y,b)},BYF=function(Y,b){X1F(_.MD(Y.screens,Ids));
b&&U4Q()};var $Y=function(Y,b){_.G$.call(this);this.getScreensToCheck_=b;b=(b=_.l4("yt-remote-online-screen-ids")||"")?b.split(","):[];for(var w={},V=this.getScreensToCheck_(),H=V.length,f=0;f<H;++f){var E=V[f].id;w[E]=_.Ka(b,E)}this.screenIdSet_=w;this.JSC$17566_http_=Y;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;nUX("Initialized with "+(0,_.dP)(this.screenIdSet_))};
_.P($Y,_.G$);$Y.prototype.isOnline=function(Y){return!!this.screenIdSet_[Y]};
$Y.prototype.start=function(){var Y=parseInt(_.l4("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.XT()-144E5<Y?0:Y)?M7g(this):(this.fastCheckEndTime_=_.XT()+3E5,_.kc("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
$Y.prototype.isEmpty=function(){return _.BL.isEmpty(this.screenIdSet_)};
$Y.prototype.update=function(){nUX("Updating availability on schedule.");var Y=this.getScreensToCheck_(),b=_.BL.filter(this.screenIdSet_,function(w,V){return w&&!!OE(Y,V)},this);
exQ(this,b)};
var paR=function(Y,b,w){var V=d3(Y.JSC$17566_http_,"/pairing/get_screen_availability");Y.JSC$17566_http_.sendRequest("POST",V,{lounge_token:b.token},(0,_.nC)(function(H){H=H.screens||[];for(var f=H.length,E=0;E<f;++E)if(H[E].loungeToken==b.token){w(H[E].status=="online");return}w(!1)},Y),(0,_.nC)(function(){w(!1)},Y))};
$Y.prototype.disposeInternal=function(){_.IV(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.G$.prototype.disposeInternal.call(this)};
var exQ=function(Y,b){a:if(_.BL.getCount(b)!=_.BL.getCount(Y.screenIdSet_))var w=!1;else{w=_.BL.getKeys(b);for(var V=w.length,H=0;H<V;++H)if(!Y.screenIdSet_[w[H]]){w=!1;break a}w=!0}w||(nUX("Updated online screens: "+(0,_.dP)(Y.screenIdSet_)),Y.screenIdSet_=b,Y.publish("screenChange"));OLg(Y)},M7g=function(Y){isNaN(Y.refreshTimer_)||_.IV(Y.refreshTimer_);
Y.refreshTimer_=_.m$((0,_.nC)(Y.requestScreenAvailability_,Y),Y.fastCheckEndTime_>0&&Y.fastCheckEndTime_<_.XT()?2E4:1E4)};
$Y.prototype.requestScreenAvailability_=function(){_.IV(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var Y=t7d(this);if(_.BL.getCount(Y)){var b=d3(this.JSC$17566_http_,"/pairing/get_screen_availability"),w={lounge_token:_.BL.getKeys(Y).join(",")};this.currentRequest_=this.JSC$17566_http_.sendRequest("POST",b,w,(0,_.nC)(this.onScreenAvailability_,this,Y),(0,_.nC)(this.onScreenAvailabilityError_,this))}else exQ(this,{}),M7g(this)};
$Y.prototype.onScreenAvailability_=function(Y,b){this.currentRequest_=null;var w=_.BL.getKeys(t7d(this));if(_.NQ(w,_.BL.getKeys(Y))){b=b.screens||[];w={};for(var V=b.length,H=0;H<V;++H)w[Y[b[H].loungeToken]]=b[H].status=="online";exQ(this,w);M7g(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
$Y.prototype.onScreenAvailabilityError_=function(Y){this.warn_("Screen availability failed: "+Y);this.currentRequest_=null;M7g(this)};
var nUX=function(Y){LF("OnlineScreenService",Y)};
$Y.prototype.warn_=function(Y){LF("OnlineScreenService",Y)};
var t7d=function(Y){var b={};_.$2(Y.getScreensToCheck_(),function(w){w.token?b[w.token]=w.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return b},OLg=function(Y){Y=_.BL.getKeys(_.BL.filter(Y.screenIdSet_,function(b){return b}));
Y.sort(_.H9);Y.length?_.kc("yt-remote-online-screen-ids",Y.join(","),60):_.hW("yt-remote-online-screen-ids")};_.DX(KF,r3);_.g=KF.prototype;_.g.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.g.add=function(Y,b,w){this.localScreenService_.add(Y,b,w)};
_.g.remove=function(Y,b,w){this.localScreenService_.remove(Y,b,w);this.onlineScreenService_.update()};
_.g.updateName=function(Y,b,w,V){this.localScreenService_.contains(Y)?this.localScreenService_.updateName(Y,b,w,V):(Y="Updating name of unknown screen: "+Y.name,LF(this.JSC$17556_logName_,Y),V(Error(Y)))};
_.g.getScreens=function(Y){return Y?this.screens:vuR(this.screens,_.oy(this.automaticScreens_,function(b){return!this.contains(b)},this))};
_.g.JSC$17571_getOnlineScreens=function(){return _.oy(this.getScreens(!0),function(Y){return this.onlineScreenService_.isOnline(Y.id)},this)};
var dmb=function(Y,b,w,V,H,f){Y.info("getAutomaticScreenByIds "+w+" / "+b);w||(w=Y.deviceToScreenId_[b]);var E=Y.getScreens(),U=w?OE(E,w):null;w&&(Y.disableAutomaticScreenCache_||U)||(U=OE(E,b));if(U){U.uuid=b;var X=jU(Y,U);paR(Y.onlineScreenService_,X,function(I){H(I?X:null)})}else w?RxN(Y,w,(0,_.nC)(function(I){var k=jU(this,new eD({name:V,
screenId:w,loungeToken:I,dialId:b||""}));paR(this.onlineScreenService_,k,function(l){H(l?k:null)})},Y),f):H(null)};
KF.prototype.JSC$17571_getScreenByPollingPairingCode=function(Y,b,w,V,H,f){var E=this;this.info("getDialScreenByPairingCode "+Y+" / "+b);var U=new vUA(this.JSC$17569_http_,Y,b,w,V);U.subscribe("pairingComplete",function(X,I){_.ua(U);H(jU(E,X),I)});
U.subscribe("pairingFailed",function(X){_.ua(U);f(X)});
U.start();return(0,_.nC)(U.stop,U)};
var Fsb=function(Y,b){for(var w=Y.screens.length,V=0;V<w;++V)if(Y.screens[V].name==b)return Y.screens[V];return null};
KF.prototype.JSC$17571_getScreenByPairingCode=function(Y,b,w,V){_.lc(d3(this.JSC$17569_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:Y},timeout:5E3,onSuccess:(0,_.nC)(function(H,f){H=new eD(f.screen||{});if(!H.name||Fsb(this,H.name)){a:{f=H.name;for(var E=2,U=b(f,E);Fsb(this,U);){E++;if(E>20)break a;U=b(f,E)}f=U}H.name=f}w(jU(this,H))},this),
onError:(0,_.nC)(function(H){V(Error("Jk`"+H.status))},this),
onTimeout:(0,_.nC)(function(){V(Error("Kk"))},this)})};
var Lsb=function(Y,b,w){paR(Y.onlineScreenService_,b,w)};
KF.prototype.disposeInternal=function(){_.ua(this.localScreenService_);_.ua(this.onlineScreenService_);KF.superClass_.disposeInternal.call(this)};
var RxN=function(Y,b,w,V){Y.info("requestLoungeToken_ for "+b);var H={postParams:{screen_ids:b},method:"POST",context:Y,onSuccess:function(f,E){f=E&&E.screens||[];f[0]&&f[0].screenId==b?w(f[0].loungeToken):V(Error("Lk"))},
onError:function(){V(Error("Mk"))}};
_.lc(d3(Y.JSC$17569_http_,"/pairing/get_lounge_token_batch"),H)},Swb=function(Y){Y.screens=Y.localScreenService_.getScreens();
for(var b=_.BL.transpose(Y.deviceToScreenId_),w=Y.screens.length,V=0;V<w;++V){var H=Y.screens[V];H.uuid=b[H.id]||""}Y.info("Updated manual screens: "+nLO(Y.screens))};
KF.prototype.handleScreenChange_=function(){Swb(this);this.publish("screenChange");this.onlineScreenService_.update()};
var MSR=function(Y){adA(Y);Y.localScreenService_=new Wc(Y.JSC$17569_http_);Y.localScreenService_.subscribe("screenChange",(0,_.nC)(Y.handleScreenChange_,Y));Swb(Y);Y.disableAutomaticScreenCache_||(Y.automaticScreens_=ldt(_.l4("yt-remote-automatic-screen-cache")||[]));adA(Y);Y.info("Initializing automatic screens: "+nLO(Y.automaticScreens_));Y.onlineScreenService_=new $Y(Y.JSC$17569_http_,(0,_.nC)(Y.getScreens,Y,!0));Y.onlineScreenService_.subscribe("screenChange",(0,_.nC)(function(){this.publish("onlineScreenChange")},
Y))},jU=function(Y,b){var w=Y.get(b.id);
w?(w.uuid=b.uuid,b=w):((w=OE(Y.automaticScreens_,b.uuid))?(w.id=b.id,w.token=b.token,b=w):Y.automaticScreens_.push(b),Y.disableAutomaticScreenCache_||rIA(Y));adA(Y);Y.deviceToScreenId_[b.uuid]=b.id;_.kc("yt-remote-device-id-map",Y.deviceToScreenId_,31536E3);return b},rIA=function(Y){Y=_.oy(Y.automaticScreens_,function(b){return b.idType!="shortLived"});
_.kc("yt-remote-automatic-screen-cache",_.MD(Y,Ids))},adA=function(Y){Y.deviceToScreenId_=_.l4("yt-remote-device-id-map")||{}};
KF.prototype.dispose=KF.prototype.dispose;_.DX(iU,_.G$);var GR=function(Y,b){Y.screen_=b;Y.publish("sessionScreen",Y.screen_)},zxd=function(Y,b){Y.screen_&&(Y.screen_.token=b,jU(Y.JSC$17573_screenService_,Y.screen_));
Y.publish("sessionScreen",Y.screen_)};
iU.prototype.onSessionStopped=function(Y){this.isDisposed()||(Y&&(TR(this,""+Y),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
iU.prototype.info=function(Y){LF(this.JSC$17573_logName_,Y)};
var TR=function(Y,b){LF(Y.JSC$17573_logName_,b)};
iU.prototype.JSC$17575_getCastSession=function(){return null};
iU.prototype.setDisplayStatus=function(Y){var b=this.receiver_;Y?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(Y,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,(0,_.nC)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+Y)},this),(0,_.nC)(function(){TR(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
iU.prototype.disposeInternal=function(){this.setDisplayStatus("");iU.superClass_.disposeInternal.call(this)};var JG=function(Y,b,w){iU.call(this,Y,b,"CastSession");var V=this;this.config_=w;this.JSC$17578_session_=null;this.JSC$17578_boundSessionUpdate_=(0,_.nC)(this.JSC$17580_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.nC)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.m$(function(){Wsd(V,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17578_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17578_isInitLoungeToken_=!1;this.JSC$17578_lastLoungeTokenRefreshError_="unknown"};
_.P(JG,iU);_.g=JG.prototype;
_.g.setCastSession=function(Y){if(this.JSC$17578_session_){if(this.JSC$17578_session_==Y)return;TR(this,"Overriding cast session with new session object");Kst(this);this.JSC$17578_isInitLoungeToken_=!1;this.JSC$17578_lastLoungeTokenRefreshError_="unknown";this.JSC$17578_session_.removeUpdateListener(this.JSC$17578_boundSessionUpdate_);this.JSC$17578_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17578_session_=Y;this.JSC$17578_session_.addUpdateListener(this.JSC$17578_boundSessionUpdate_);this.JSC$17578_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);iLQ(this,"getMdxSessionStatus")};
_.g.launchWithParams=function(Y){this.info("launchWithParams no-op for Cast: "+(0,_.dP)(Y))};
_.g.stop=function(){if(this.JSC$17578_session_)this.JSC$17578_session_.stop((0,_.nC)(function(){this.onSessionStopped()},this),(0,_.nC)(function(){this.onSessionStopped(Error("Nk"))},this));
else this.onSessionStopped(Error("Ok"))};
_.g.setDisplayStatus=function(){};
_.g.disposeInternal=function(){this.info("disposeInternal");Kst(this);this.JSC$17578_session_&&(this.JSC$17578_session_.removeUpdateListener(this.JSC$17578_boundSessionUpdate_),this.JSC$17578_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17578_session_=null;iU.prototype.disposeInternal.call(this)};
var CGt=function(Y,b){_.IV(Y.getLoungeTokenTimeoutKey_);Y.getLoungeTokenTimeoutKey_=0;b==0?AIR(Y):Y.getLoungeTokenTimeoutKey_=_.m$(function(){AIR(Y)},b)},AIR=function(Y){iLQ(Y,"getLoungeToken");
_.IV(Y.onLoungeTokenTimeoutKey_);Y.onLoungeTokenTimeoutKey_=_.m$(function(){yIt(Y,null)},3E4)},iLQ=function(Y,b){Y.info("sendYoutubeMessage_: "+b+" "+(0,_.dP)(void 0));
var w={};w.type=b;Y.JSC$17578_session_?Y.JSC$17578_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",w,function(){},(0,_.nC)(function(){TR(this,"Failed to send message: "+b+".")},Y)):TR(Y,"Sending yt message without session: "+(0,_.dP)(w))};
JG.prototype.onYoutubeMessage_=function(Y,b){if(!this.isDisposed())if(b)if(b=(0,_.eS)(b),_.bC(b))switch(Y=""+b.type,b=b.data||{},this.info("onYoutubeMessage_: "+Y+" "+(0,_.dP)(b)),Y){case "mdxSessionStatus":Wsd(this,b);break;case "loungeToken":yIt(this,b);break;default:TR(this,"Unknown youtube message: "+Y)}else TR(this,"Unable to parse message.");else TR(this,"No data in message.")};
var $mA=function(Y,b){if(b)Y.info("onConnectedScreenId_: Received screenId: "+b),Y.screen_&&Y.screen_.id==b||Y.getScreen_(b,function(w){GR(Y,w)},function(){return Y.onSessionStopped()},5);
else Y.onSessionStopped(Error("Pk"))},GkF=function(Y,b,w){Y.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(b));
var V=new eD(b);jUX(Y,V,function(H){H?(Y.JSC$17578_isInitLoungeToken_=!0,jU(Y.JSC$17573_screenService_,V),GR(Y,V),Y.JSC$17578_lastLoungeTokenRefreshError_="unknown",CGt(Y,w)):(_.K7(Error("Qk`"+JSON.stringify(b))),Y.onSessionStopped())},5)},Wsd=function(Y,b){_.IV(Y.sessionStatusTimeoutKey_);
Y.sessionStatusTimeoutKey_=0;if(b)Y.config_.enableCastLoungeToken&&b.loungeToken?b.deviceId?Y.screen_&&Y.screen_.uuid==b.deviceId||(b.loungeTokenRefreshIntervalMs?GkF(Y,{name:Y.receiver_.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:b.deviceId,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(_.K7(Error("Sk`"+JSON.stringify(b))),$mA(Y,b.screenId))):(_.K7(Error("Rk`"+JSON.stringify(b))),$mA(Y,b.screenId)):$mA(Y,b.screenId);else Y.onSessionStopped(Error("Pk"))},yIt=function(Y,
b){_.IV(Y.onLoungeTokenTimeoutKey_);
Y.onLoungeTokenTimeoutKey_=0;var w=null;if(b)if(b.loungeToken){var V;((V=Y.screen_)==null?void 0:V.token)==b.loungeToken&&(w="staleLoungeToken")}else w="missingLoungeToken";else w="noLoungeTokenResponse";w?(Y.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(b)+", error: "+w)),Y.JSC$17578_lastLoungeTokenRefreshError_=w,CGt(Y,3E4)):(zxd(Y,b.loungeToken),Y.JSC$17578_isInitLoungeToken_=!1,Y.JSC$17578_lastLoungeTokenRefreshError_="unknown",CGt(Y,b.loungeTokenRefreshIntervalMs))};
JG.prototype.getScreen_=function(Y,b,w,V){_.IV(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;dmb(this.JSC$17573_screenService_,this.receiver_.label,Y,this.receiver_.friendlyName,(0,_.nC)(function(H){H?b(H):V>=0?(TR(this,"Screen "+Y+" appears to be offline. "+V+" retries left."),this.getScreenTimeoutKey_=_.m$((0,_.nC)(this.getScreen_,this,Y,b,w,V-1),300)):w(Error("Tk"))},this),w)};
var jUX=function(Y,b,w,V){_.IV(Y.JSC$17578_checkScreenAvailabilityTimeoutKey_);Y.JSC$17578_checkScreenAvailabilityTimeoutKey_=0;Lsb(Y.JSC$17573_screenService_,b,function(H){H||V<0?w(H):Y.JSC$17578_checkScreenAvailabilityTimeoutKey_=_.m$(function(){jUX(Y,b,w,V-1)},300)})};
JG.prototype.JSC$17575_getCastSession=function(){return this.JSC$17578_session_};
JG.prototype.JSC$17580_onSessionUpdate_=function(Y){this.isDisposed()||Y||(TR(this,"Cast session died."),this.onSessionStopped())};
var Kst=function(Y){_.IV(Y.getScreenTimeoutKey_);Y.getScreenTimeoutKey_=0;_.IV(Y.JSC$17578_checkScreenAvailabilityTimeoutKey_);Y.JSC$17578_checkScreenAvailabilityTimeoutKey_=0;_.IV(Y.sessionStatusTimeoutKey_);Y.sessionStatusTimeoutKey_=0;_.IV(Y.onLoungeTokenTimeoutKey_);Y.onLoungeTokenTimeoutKey_=0;_.IV(Y.getLoungeTokenTimeoutKey_);Y.getLoungeTokenTimeoutKey_=0};var wu=function(Y,b,w,V){iU.call(this,Y,b,"DialSession");this.config_=V;this.JSC$17582_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17582_theme_=w;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17582_deferredLaunchDeadlineTimer_=NaN;this.JSC$17582_boundSessionUpdate_=(0,_.nC)(this.JSC$17584_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17582_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17582_isInitLoungeToken_=!1;this.JSC$17582_lastLoungeTokenRefreshError_="unknown"};
_.P(wu,iU);wu.prototype.setCastSession=function(Y){this.JSC$17582_session_=Y;this.JSC$17582_session_.addUpdateListener(this.JSC$17582_boundSessionUpdate_)};
wu.prototype.launchWithParams=function(Y){this.connectData_=Y;this.deferredLaunch_()};
wu.prototype.stop=function(){TYO(this);if(this.JSC$17582_session_)this.JSC$17582_session_.stop((0,_.nC)(this.onSessionStopped,this,null),(0,_.nC)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
wu.prototype.disposeInternal=function(){TYO(this);this.JSC$17582_session_&&this.JSC$17582_session_.removeUpdateListener(this.JSC$17582_boundSessionUpdate_);this.JSC$17582_session_=null;iU.prototype.disposeInternal.call(this)};
var JIt=function(Y){var b;return!!(Y.config_.enableDialLoungeToken&&((b=Y.JSC$17582_session_)==null?0:b.getDialAppInfo))},uKO=function(Y){Y.cancelPolling_=Y.JSC$17573_screenService_.JSC$17571_getScreenByPollingPairingCode(Y.reversePairingCode_,Y.receiver_.label,Y.receiver_.friendlyName,JIt(Y),function(b,w){Y.cancelPolling_=function(){};
Y.JSC$17582_isInitLoungeToken_=!0;GR(Y,b);b.idType=="shortLived"&&w>0&&VO(Y,w)},function(b){Y.cancelPolling_=function(){};
Y.onSessionStopped(b)})};
wu.prototype.JSC$17584_onSessionUpdate_=function(Y){this.isDisposed()||Y||(TR(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var YLN=function(Y){var b={};b.pairingCode=Y.reversePairingCode_;b.theme=Y.JSC$17582_theme_;m4I()&&(b.env_useStageMdx=1);return _.h6(b)},bpR=function(Y){return new Promise(function(b){Y.reversePairingCode_=JQA();
if(Y.connectData_){var w=new chrome.cast.DialLaunchResponse(!0,YLN(Y));b(w);uKO(Y)}else Y.deferredLaunch_=function(){_.IV(Y.JSC$17582_deferredLaunchDeadlineTimer_);Y.deferredLaunch_=function(){};
Y.JSC$17582_deferredLaunchDeadlineTimer_=NaN;var V=new chrome.cast.DialLaunchResponse(!0,YLN(Y));b(V);uKO(Y)},Y.JSC$17582_deferredLaunchDeadlineTimer_=_.m$(function(){Y.deferredLaunch_()},100)})},VFd=function(Y,b,w){Y.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(b));
var V=new eD(b);return(new Promise(function(H){wBQ(Y,V,function(f){f?(Y.JSC$17582_isInitLoungeToken_=!0,jU(Y.JSC$17573_screenService_,V),GR(Y,V),VO(Y,w)):_.K7(Error("Vk`"+JSON.stringify(b)));H(f)},5)})).then(function(H){return H?new chrome.cast.DialLaunchResponse(!1):bpR(Y)})},HpO=function(Y,b){var w=Y.launchData_.receiver.label,V=Y.receiver_.friendlyName;
return(new Promise(function(H){dmb(Y.JSC$17573_screenService_,w,b,V,function(f){f&&f.token&&GR(Y,f);H(f)},function(f){TR(Y,"Failed to get DIAL screen: "+f);
H(null)})})).then(function(H){return H&&H.token?new chrome.cast.DialLaunchResponse(!1):bpR(Y)})},wBQ=function(Y,b,w,V){_.IV(Y.JSC$17582_checkScreenAvailabilityTimeoutKey_);
Y.JSC$17582_checkScreenAvailabilityTimeoutKey_=0;Lsb(Y.JSC$17573_screenService_,b,function(H){H||V<0?w(H):Y.JSC$17582_checkScreenAvailabilityTimeoutKey_=_.m$(function(){wBQ(Y,b,w,V-1)},300)})},VO=function(Y,b){Y.info("getDialAppInfoWithTimeout_ "+b);
JIt(Y)&&(_.IV(Y.getDialAppInfoTimeoutKey_),Y.getDialAppInfoTimeoutKey_=0,b==0?gVb(Y):Y.getDialAppInfoTimeoutKey_=_.m$(function(){gVb(Y)},b))},gVb=function(Y){JIt(Y)&&Y.JSC$17582_session_.getDialAppInfo(function(b){Y.info("getDialAppInfo dialLaunchData: "+JSON.stringify(b));
b=b.extraData||{};var w=null;if(b.loungeToken){var V;((V=Y.screen_)==null?void 0:V.token)==b.loungeToken&&(w="staleLoungeToken")}else w="missingLoungeToken";w?(Y.JSC$17582_lastLoungeTokenRefreshError_=w,VO(Y,3E4)):(Y.JSC$17582_isInitLoungeToken_=!1,Y.JSC$17582_lastLoungeTokenRefreshError_="unknown",zxd(Y,b.loungeToken),VO(Y,b.loungeTokenRefreshIntervalMs))},function(b){Y.info("getDialAppInfo error: "+b);
Y.JSC$17582_lastLoungeTokenRefreshError_="noLoungeTokenResponse";VO(Y,3E4)})},TYO=function(Y){_.IV(Y.JSC$17582_checkScreenAvailabilityTimeoutKey_);
Y.JSC$17582_checkScreenAvailabilityTimeoutKey_=0;_.IV(Y.getDialAppInfoTimeoutKey_);Y.getDialAppInfoTimeoutKey_=0;Y.cancelPolling_();Y.cancelPolling_=function(){};
_.IV(Y.JSC$17582_deferredLaunchDeadlineTimer_)};var HS=function(Y,b){iU.call(this,Y,b,"ManualSession");this.JSC$17586_deferredLaunchDeadlineTimer_=_.m$((0,_.nC)(this.launchWithParams,this,null),150)};
_.P(HS,iU);HS.prototype.stop=function(){this.onSessionStopped()};
HS.prototype.setCastSession=function(){};
HS.prototype.launchWithParams=function(){_.IV(this.JSC$17586_deferredLaunchDeadlineTimer_);this.JSC$17586_deferredLaunchDeadlineTimer_=NaN;var Y=OE(this.JSC$17573_screenService_.getScreens(),this.receiver_.label);if(Y)GR(this,Y);else this.onSessionStopped(Error("Wk"))};
HS.prototype.disposeInternal=function(){_.IV(this.JSC$17586_deferredLaunchDeadlineTimer_);this.JSC$17586_deferredLaunchDeadlineTimer_=NaN;iU.prototype.disposeInternal.call(this)};var $6=function(Y,b){_.G$.call(this);this.config_=b;this.JSC$17589_screenService_=Y;this.JSC$17589_appId_=b.appId||"233637DE";this.JSC$17589_theme_=b.theme||"cl";this.disableDial_=b.disableCastApi||!1;this.forceMirroring_=b.forceMirroring||!1;this.JSC$17589_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.nC)(this.onReceiverAction_,this)};
_.P($6,_.G$);
$6.prototype.init=function(Y,b){chrome.cast.timeout.requestSession=3E4;var w=new chrome.cast.SessionRequest(this.JSC$17589_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.q("desktop_enable_cast_connect")&&(w.androidReceiverCompatible=!0);this.disableDial_||(w.dialRequest=new chrome.cast.DialRequest("YouTube"));var V=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;Y=Y||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var H=(0,_.nC)(this.onReceiverUpdated_,
this);w=new chrome.cast.ApiConfig(w,(0,_.nC)(this.onSessionEstablished_,this),H,V,Y);w.customDialLaunchCallback=(0,_.nC)(this.onDialLaunchRequested_,this);chrome.cast.initialize(w,(0,_.nC)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),s3g(),this.JSC$17589_screenService_.subscribe("onlineScreenChange",(0,_.nC)(this.JSC$17591_onScreenChange_,this)),this.customReceivers_=fCX(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.nC)(function(f){this.warn_("Failed to set initial custom receivers: "+(0,_.dP)(f))},this)),this.publish("yt-remote-cast2-availability-change",gu(this)),b(!0))},this),(0,_.nC)(function(f){this.warn_("Failed to initialize API: "+(0,_.dP)(f));
b(!1)},this))};
$6.prototype.setConnectedScreenStatus=function(Y,b){fW("Setting connected screen ID: "+Y+" -> "+b);if(this.JSC$17589_session_){var w=this.JSC$17589_session_.screen_;if(!Y||w&&w.id!=Y)fW("Unsetting old screen status: "+this.JSC$17589_session_.receiver_.friendlyName),Ne(this,null)}if(Y&&b){if(!this.JSC$17589_session_){Y=OE(this.JSC$17589_screenService_.getScreens(),Y);if(!Y){fW("setConnectedScreenStatus: Unknown screen.");return}if(Y.idType=="shortLived"){fW("setConnectedScreenStatus: Screen with id type to be short lived.");
return}w=NwN(this,Y);w||(fW("setConnectedScreenStatus: Connected receiver not custom..."),w=new chrome.cast.Receiver(Y.uuid?Y.uuid:Y.id,Y.name),w.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(w),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.nC)(function(V){this.warn_("Failed to set initial custom receivers: "+(0,_.dP)(V))},this)));
fW("setConnectedScreenStatus: new active receiver: "+w.friendlyName);Ne(this,new HS(this.JSC$17589_screenService_,w),!0)}this.JSC$17589_session_.setDisplayStatus(b)}else fW("setConnectedScreenStatus: no screen.")};
var NwN=function(Y,b){return b?_.SL(Y.customReceivers_,function(w){return pF(b,w.label)},Y):null};
$6.prototype.setLaunchParams=function(Y){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17589_session_?this.JSC$17589_session_.launchWithParams(Y):this.warn_("Setting connection data without a session")};
$6.prototype.JSC$17591_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17589_session_?(this.JSC$17589_session_.stop(),Ne(this,null)):fW("Stopping non-existing session")};
$6.prototype.requestSession=function(){chrome.cast.requestSession((0,_.nC)(this.onSessionEstablished_,this),(0,_.nC)(this.onSessionRequestFailed_,this))};
$6.prototype.disposeInternal=function(){this.JSC$17589_screenService_.unsubscribe("onlineScreenChange",(0,_.nC)(this.JSC$17591_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.$b(_.Aq("yt.mdx.remote.debug.handlers_")||[],hgd);_.ua(this.JSC$17589_session_);_.G$.prototype.disposeInternal.call(this)};
var fW=function(Y){LF("Controller",Y)};
$6.prototype.warn_=function(Y){LF("Controller",Y)};
var hgd=function(Y){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(Y)},gu=function(Y){return Y.hasCastReceiver_||!!Y.customReceivers_.length||!!Y.JSC$17589_session_},Ne=function(Y,b,w){b!=Y.JSC$17589_session_&&(_.ua(Y.JSC$17589_session_),(Y.JSC$17589_session_=b)?(w?Y.publish("yt-remote-cast2-receiver-resumed",b.receiver_):Y.publish("yt-remote-cast2-receiver-selected",b.receiver_),b.subscribe("sessionScreen",(0,_.nC)(Y.onSessionScreen_,Y,b)),b.subscribe("sessionFailed",
function(){return EVt(Y,b)}),b.screen_?Y.publish("yt-remote-cast2-session-change",b.screen_):w&&Y.JSC$17589_session_.launchWithParams(null)):Y.publish("yt-remote-cast2-session-change",null))},EVt=function(Y,b){Y.JSC$17589_session_==b&&Y.publish("yt-remote-cast2-session-failed")};
_.g=$6.prototype;_.g.onSessionScreen_=function(Y,b){this.JSC$17589_session_==Y&&(b||Ne(this,null),this.publish("yt-remote-cast2-session-change",b))};
_.g.onReceiverAction_=function(Y,b){if(!this.isDisposed())if(Y)switch(Y.friendlyName=chrome.cast.unescape(Y.friendlyName),fW("onReceiverAction_ "+Y.label+" / "+Y.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17589_session_)if(this.JSC$17589_session_.receiver_.label!=Y.label)fW("onReceiverAction_: Stopping active receiver: "+this.JSC$17589_session_.receiver_.friendlyName),this.JSC$17589_session_.stop();else{fW("onReceiverAction_: Casting to active receiver.");this.JSC$17589_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17589_session_.screen_);break}switch(Y.receiverType){case chrome.cast.ReceiverType.CUSTOM:Ne(this,new HS(this.JSC$17589_screenService_,Y));break;case chrome.cast.ReceiverType.DIAL:Ne(this,new wu(this.JSC$17589_screenService_,Y,this.JSC$17589_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Ne(this,new JG(this.JSC$17589_screenService_,Y,this.config_));break;default:this.warn_("Unknown receiver type: "+Y.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17589_session_&&
this.JSC$17589_session_.receiver_.label==Y.label?this.JSC$17589_session_.stop():this.warn_("Stopping receiver w/o session: "+Y.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.g.onDialLaunchRequested_=function(Y){if(this.isDisposed())return Promise.reject(Error("Xk"));var b=Y.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var w=this.JSC$17589_session_?this.JSC$17589_session_.receiver_:null;if(!w||w.label!=b.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("Yk"));if(w&&w.label==b.label&&w.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17589_session_.screen_)return fW("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17589_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+w.receiverType+'" to "dial" for '+b.friendlyName);Ne(this,new wu(this.JSC$17589_screenService_,b,this.JSC$17589_theme_,this.config_))}b=this.JSC$17589_session_;b.launchData_=Y;b.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(Y=b.launchData_.extraData||{},w=Y.screenId||null,JIt(b)&&Y.loungeToken?Y.loungeTokenRefreshIntervalMs?Y=VFd(b,{name:b.receiver_.friendlyName,screenId:Y.screenId,loungeToken:Y.loungeToken,dialId:b.launchData_.receiver.label,screenIdType:"shortLived"},Y.loungeTokenRefreshIntervalMs):(_.K7(Error("Uk`"+JSON.stringify(Y))),Y=HpO(b,w)):Y=HpO(b,w)):Y=bpR(b);return Y};
_.g.onSessionEstablished_=function(Y){var b=this;if(!this.isDisposed()&&!this.forceMirroring_){fW("New cast session ID: "+Y.sessionId);var w=Y.receiver;if(w.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17589_session_)if(w.receiverType==chrome.cast.ReceiverType.CAST)fW("Got resumed cast session before resumed mdx connection."),w.friendlyName=chrome.cast.unescape(w.friendlyName),Ne(this,new JG(this.JSC$17589_screenService_,w,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var V=this.JSC$17589_session_.receiver_,H=OE(this.JSC$17589_screenService_.getScreens(),V.label);H&&pF(H,w.label)&&V.receiverType!=chrome.cast.ReceiverType.CAST&&w.receiverType==chrome.cast.ReceiverType.CAST&&(fW("onSessionEstablished_: manual to cast session change "+w.friendlyName),_.ua(this.JSC$17589_session_),this.JSC$17589_session_=new JG(this.JSC$17589_screenService_,w,this.config_),this.JSC$17589_session_.subscribe("sessionScreen",(0,_.nC)(this.onSessionScreen_,this,this.JSC$17589_session_)),
this.JSC$17589_session_.subscribe("sessionFailed",function(){return EVt(b,b.JSC$17589_session_)}),this.JSC$17589_session_.launchWithParams(null));
this.JSC$17589_session_.setCastSession(Y)}}};
_.g.JSC$17591_getCastSession=function(){return this.JSC$17589_session_?this.JSC$17589_session_.JSC$17575_getCastSession():null};
_.g.onSessionRequestFailed_=function(Y){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.dP)(Y)),Y.code!=chrome.cast.ErrorCode.CANCEL&&Ne(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.g.onReceiverUpdated_=function(Y){fW("Receiver availability updated: "+Y);if(!this.isDisposed()){var b=gu(this);this.hasCastReceiver_=Y==chrome.cast.ReceiverAvailability.AVAILABLE;gu(this)!=b&&this.publish("yt-remote-cast2-availability-change",gu(this))}};
var fCX=function(Y){var b=Y.JSC$17589_screenService_.JSC$17571_getOnlineScreens(),w=Y.JSC$17589_session_&&Y.JSC$17589_session_.receiver_;Y=_.MD(b,function(V){w&&pF(V,w.label)&&(w=null);var H=V.uuid?V.uuid:V.id,f=NwN(this,V);f?(f.label=H,f.friendlyName=V.name):(f=new chrome.cast.Receiver(H,V.name),f.receiverType=chrome.cast.ReceiverType.CUSTOM);return f},Y);
w&&(w.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(w=new chrome.cast.Receiver(w.label,w.friendlyName),w.receiverType=chrome.cast.ReceiverType.CUSTOM),Y.push(w));return Y};
$6.prototype.JSC$17591_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=fCX(this),fW("Updating custom receivers: "+(0,_.dP)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.nC)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",gu(this)))};
$6.prototype.setLaunchParams=$6.prototype.setLaunchParams;$6.prototype.setConnectedScreenStatus=$6.prototype.setConnectedScreenStatus;$6.prototype.stopSession=$6.prototype.JSC$17591_stopSession;$6.prototype.getCastSession=$6.prototype.JSC$17591_getCastSession;$6.prototype.requestSession=$6.prototype.requestSession;$6.prototype.init=$6.prototype.init;$6.prototype.dispose=$6.prototype.dispose;var CoO=[];var c4X=function(Y){Y.audioTrackId=null;Y.trackData=null;Y.playerState=-1;Y.hasPrevious=!1;Y.hasNext=!1;Y.playerTime_=0;Y.playerTimeAt_=_.XT();Y.seekableStart_=0;Y.seekableEnd_=0;Y.duration_=0;Y.loadedTime=0;Y.liveIngestionTime_=NaN;Y.isLive_=!1};
_.g=jD.prototype;
_.g.reset=function(Y){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;Y&&(this.index=Y.index,this.listId=Y.listId,this.videoId=Y.videoId,this.playerState=Y.playerState,this.volume=Y.volume,this.muted=Y.muted,this.audioTrackId=Y.audioTrackId,this.trackData=Y.trackData,this.hasPrevious=Y.hasPrevious,this.hasNext=Y.hasNext,this.playerTime_=Y.playerTime,this.playerTimeAt_=Y.playerTimeAt,this.seekableStart_=Y.seekableStart,this.seekableEnd_=Y.seekableEnd,this.duration_=Y.duration,this.loadedTime=
Y.loadedTime,this.liveIngestionTime_=Y.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.g.stopPlayer=function(){this.index=-1;this.videoId="";c4X(this)};
_.g.isPlaying=function(){return this.playerState==1};
_.g.isBuffering=function(){return this.playerState==3};
_.g.isAdPlaying=function(){return this.playerState==1081};
var En=function(Y,b){Y.playerTime_=b;Y.playerTimeAt_=_.XT()},UPI=function(Y){switch(Y.playerState){case 1:case 1081:return(_.XT()-Y.playerTimeAt_)/1E3+Y.playerTime_;
case -1E3:return 0}return Y.playerTime_};
jD.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.XT()-this.playerTimeAt_)/1E3:0):this.duration_};
var XBX=function(Y,b,w){var V=Y.videoId;Y.videoId=b;Y.index=w;b!=V&&c4X(Y)},DPA=function(Y){var b={};
b.index=Y.index;b.listId=Y.listId;b.videoId=Y.videoId;b.playerState=Y.playerState;b.volume=Y.volume;b.muted=Y.muted;b.audioTrackId=Y.audioTrackId;b.trackData=_.BL.unsafeClone(Y.trackData);b.hasPrevious=Y.hasPrevious;b.hasNext=Y.hasNext;b.playerTime=Y.playerTime_;b.playerTimeAt=Y.playerTimeAt_;b.seekableStart=Y.seekableStart_;b.seekableEnd=Y.seekableEnd_;b.duration=Y.duration_;b.loadedTime=Y.loadedTime;b.liveIngestionTime=Y.liveIngestionTime_;return b};
jD.prototype.clone=function(){return new jD(DPA(this))};var cS=function(Y,b){_.G$.call(this);var w=this;this.state_=0;this.connection_=Y;this.contextSubscriptions_=[];this.actionQueue_=new KHd;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.nC)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.nC)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.nC)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.nC)(this.onCloudviewAvailabilityChange_,this);var V=0;Y?(V=Y.getProxyState(),
V!=3&&(Y.subscribe("proxyStateChange",this.setState_,this),mPs(this))):V=3;V!=0&&(b?this.setState_(V):_.m$(function(){w.setState_(V)},0));
(Y=GGQ())&&oVs(this,Y);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.P(cS,_.G$);cS.prototype.getState=function(){return this.state_};
cS.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
cS.prototype.reconnect=function(){this.connection_.reconnect()};
var Un=function(Y){return new jD(Y.connection_.getPlayerContextData())};
_.g=cS.prototype;_.g.play=function(){XY(this)?(this.castMedia_?this.castMedia_.play(null,_.vY,ICb(this,"play")):Dn(this,"play"),kFX(this,1,UPI(Un(this))),this.publish("remotePlayerChange")):m9(this,this.play)};
_.g.pause=function(){XY(this)?(this.castMedia_?this.castMedia_.pause(null,_.vY,ICb(this,"pause")):Dn(this,"pause"),kFX(this,2,UPI(Un(this))),this.publish("remotePlayerChange")):m9(this,this.pause)};
_.g.seekTo=function(Y){if(XY(this)){if(this.castMedia_){var b=Un(this),w=new chrome.cast.media.SeekRequest;w.currentTime=Y;b.isPlaying()||b.isBuffering()?w.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:w.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(w,_.vY,ICb(this,"seekTo",{newTime:Y}))}else Dn(this,"seekTo",{newTime:Y});kFX(this,3,Y);this.publish("remotePlayerChange")}else m9(this,_.v0(this.seekTo,Y))};
_.g.stop=function(){if(XY(this)){this.castMedia_?this.castMedia_.stop(null,_.vY,ICb(this,"stopVideo")):Dn(this,"stopVideo");var Y=Un(this);Y.stopPlayer();oS(this,Y);this.publish("remotePlayerChange")}else m9(this,this.stop)};
_.g.setVolume=function(Y,b){if(XY(this)){var w=Un(this);if(this.castSession_){if(w.volume!=Y){var V=Math.round(Y)/100;this.castSession_.setReceiverVolumeLevel(V,(0,_.nC)(function(){SD("set receiver volume: "+V)},this),(0,_.nC)(function(){this.warn_("failed to set receiver volume.")},this))}w.muted!=b&&this.castSession_.setReceiverMuted(b,(0,_.nC)(function(){SD("set receiver muted: "+b)},this),(0,_.nC)(function(){this.warn_("failed to set receiver muted.")},this))}else{var H={volume:Y,
muted:b};w.volume!=-1&&(H.delta=Y-w.volume);Dn(this,"setVolume",H)}w.muted=b;w.volume=Y;oS(this,w)}else m9(this,_.v0(this.setVolume,Y,b))};
_.g.setAudioTrack=function(Y,b){XY(this)?(b=b.getLanguageInfo().getId(),Dn(this,"setAudioTrack",{videoId:Y,audioTrackId:b}),Y=Un(this),Y.audioTrackId=b,oS(this,Y)):m9(this,_.v0(this.setAudioTrack,Y,b))};
_.g.addVideo=function(Y){XY(this)?Dn(this,"addVideo",{videoId:Y}):m9(this,_.v0(this.addVideo,Y))};
_.g.addPlaylist=function(Y){XY(this)?Dn(this,"addVideos",{listId:Y}):m9(this,_.v0(this.addPlaylist,Y))};
_.g.addVideos=function(Y){Y.length==0?this.warn_("Ignore add videos request due to empty list"):XY(this)?Dn(this,"addVideos",{videoIds:Y.join(",")}):m9(this,_.v0(this.addVideos,Y))};
_.g.JSC$17601_removeVideo=function(Y){XY(this)?Dn(this,"removeVideo",{videoId:Y}):m9(this,_.v0(this.JSC$17601_removeVideo,Y))};
_.g.JSC$17601_insertVideo=function(Y){XY(this)?Dn(this,"insertVideo",{videoId:Y}):m9(this,_.v0(this.JSC$17601_insertVideo,Y))};
_.g.playVideo=function(Y,b,w,V,H,f,E){V=V===void 0?null:V;H=H===void 0?null:H;f=f===void 0?null:f;E=E===void 0?null:E;var U=Un(this),X={videoId:Y};w!==void 0&&(X.currentIndex=w);XBX(U,Y,w||0);b!==void 0&&(En(U,b),X.currentTime=b);V&&(X.listId=V);H&&(X.playerParams=H);f&&(X.clickTrackingParams=f);E&&(X.locationInfo=(0,_.dP)(E));Dn(this,"setPlaylist",X);V||oS(this,U)};
_.g.nextVideo=function(Y,b){if(XY(this)){if(Y&&b){var w=Un(this);XBX(w,Y,b);oS(this,w)}Dn(this,"next")}else m9(this,_.v0(this.nextVideo,Y,b))};
_.g.clearPlaylist=function(){if(XY(this)){Dn(this,"clearPlaylist");var Y=Un(this);Y.reset();oS(this,Y);this.publish("remotePlayerChange")}else m9(this,this.clearPlaylist)};
_.g.dispose=function(){if(this.state_!=3){var Y=this.state_;this.state_=3;this.publish("proxyStateChange",Y,this.state_)}_.G$.prototype.dispose.call(this)};
_.g.disposeInternal=function(){lCX(this);this.connection_=null;this.actionQueue_.clear();oVs(this,null);_.G$.prototype.disposeInternal.call(this)};
var mPs=function(Y){_.$2("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(b){this.contextSubscriptions_.push(this.connection_.subscribe(b,_.v0(this.onProxyEvent_,b),this))},Y)},lCX=function(Y){_.$2(Y.contextSubscriptions_,function(b){this.connection_.unsubscribeByKey(b)},Y);
Y.contextSubscriptions_.length=0},XY=function(Y){return Y.getState()==1},m9=function(Y,b){Y.actionQueue_.getCount()<50&&Y.actionQueue_.enqueue(b)},kFX=function(Y,b,w){var V=Un(Y);
En(V,w);V.playerState!=-1E3&&(V.playerState=b);oS(Y,V)},Dn=function(Y,b,w){Y.connection_.sendMessage(b,w)},oS=function(Y,b){lCX(Y);
Y.connection_.setPlayerContextData(DPA(b));mPs(Y)};
cS.prototype.setState_=function(Y){if((Y!=this.state_||Y==2)&&this.state_!=3&&Y!=0){var b=this.state_;this.state_=Y;this.publish("proxyStateChange",b,Y);if(Y==1)for(;!this.actionQueue_.isEmpty();)Y=this.actionQueue_,twR(Y),Y.front_.pop().apply(this);else Y==3&&this.dispose()}};
cS.prototype.onProxyEvent_=function(Y,b){this.publish(Y,b)};
var oVs=function(Y,b){Y.castSession_&&(Y.castSession_.removeUpdateListener(Y.boundCastStatusListener_),Y.castSession_.removeMediaListener(Y.boundCastMediaListener_),Y.onCastMediaChange_(null));Y.castSession_=b;if(Y.castSession_&&(SD("Setting cast session: "+Y.castSession_.sessionId),Y.castSession_.addUpdateListener(Y.boundCastStatusListener_),Y.castSession_.addMediaListener(Y.boundCastMediaListener_),Y.castSession_.media.length))Y.onCastMediaChange_(Y.castSession_.media[0])};
cS.prototype.onCastStatusUpdate_=function(Y){if(!Y)this.onCastMediaChange_(null),oVs(this,null);else if(this.castSession_.receiver.volume){Y=this.castSession_.receiver.volume;var b=Un(this),w=Math.round(100*Y.level||0);if(b.volume!=w||b.muted!=Y.muted)SD("Cast volume update: "+Y.level+(Y.muted?" muted":"")),b.volume=w,b.muted=!!Y.muted,oS(this,b)}};
cS.prototype.onCastMediaChange_=function(Y){SD("Cast media: "+!!Y);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=Y)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),hJg(this),this.publish("remotePlayerChange")};
var hJg=function(Y){var b=Y.castMedia_.media,w=Y.castMedia_.customData;if(b&&w){var V=Un(Y);b.contentId!=V.videoId&&SD("Cast changing video to: "+b.contentId);V.videoId=b.contentId;V.playerState=w.playerState;En(V,Y.castMedia_.getEstimatedTime());oS(Y,V)}else SD("No cast media video. Ignoring state update.")};
cS.prototype.onCastMediaUpdate_=function(Y){if(Y)hJg(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
cS.prototype.onCloudviewAvailabilityChange_=function(){var Y=GGQ();Y&&oVs(this,Y)};
cS.prototype.warn_=function(Y){LF("CP",Y)};
var ICb=function(Y,b,w){return(0,_.nC)(function(V){this.warn_("Failed to "+b+" with cast v2 channel. Error code: "+V.code);V.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+b+" using MDx browser channel."),Dn(this,b,w))},Y)};var ke=function(Y,b,w,V){V=V===void 0?!1:V;_.G$.call(this);var H=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$17608_http_=Y;this.enableConnectWithInitialState_=V;this.listeners_.push(_.Vu(window,"beforeunload",function(){H.JSC$17611_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new jD;this.currentScreenId_=b.id;this.currentScreenIdType_=b.idType;this.channelService=lmX(this.JSC$17608_http_,w,this.JSC$17611_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){xPs(H)});
this.channelService.listen("channelClosed",function(){IS("Channel closed");isNaN(H.connectTimerId_)?tg(!0):tg();H.dispose()});
this.channelService.listen("channelError",function(f){tg();isNaN(H.getReconnectTimeout_())?(f==1&&H.currentScreenIdType_=="shortLived"&&H.publish("browserChannelAuthError",f),IS("Channel error: "+f+" without reconnection"),H.dispose()):(H.reconnecting_=!0,IS("Channel error: "+f+" with reconnection in "+H.getReconnectTimeout_()+" ms"),qLX(H,2))});
this.channelService.listen("channelMessage",function(f){sCb(H,f)});
this.channelService.setLoungeToken(b.token);this.subscribe("remoteQueueChange",function(){var f=H.playerContext_.videoId;VSb()&&_.kc("yt-remote-session-video-id",f)})};
_.P(ke,_.G$);
ke.prototype.connect=function(Y,b){if(b){var w=b.listId,V=b.videoId,H=b.videoIds,f=b.playerParams,E=b.clickTrackingParams,U=b.index,X={videoId:V},I=b.currentTime,k=b.locationInfo;b=b.loopMode;I!==void 0&&(X.currentTime=I<=5?0:I);f&&(X.playerParams=f);k&&(X.locationInfo=k);E&&(X.clickTrackingParams=E);w&&(X.listId=w);H&&H.length>0&&(X.videoIds=H.join(","));U!==void 0&&(X.currentIndex=U);this.enableConnectWithInitialState_&&(X.loopMode=b||"LOOP_MODE_OFF");w&&(this.playerContext_.listId=w);this.playerContext_.videoId=
V;this.playerContext_.index=U||0;this.playerContext_.state=3;En(this.playerContext_,I);this.autoplayMode_="UNSUPPORTED";w=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";IS("Connecting with "+w+" and params: "+(0,_.dP)(X));this.channelService.connect({method:w,params:(0,_.dP)(X)},Y,ELb())}else IS("Connecting without params"),this.channelService.connect({},Y,ELb());QCF(this)};
ke.prototype.setLoungeToken=function(Y){this.channelService.setLoungeToken(Y)};
ke.prototype.dispose=function(){this.isDisposed()||(_.wG("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),qLX(this,3));_.G$.prototype.dispose.call(this)};
ke.prototype.disposeInternal=function(){vVs(this);Py7(this);Zpg(this);_.IV(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.IV(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.iXG(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.G$.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var Bw7=function(Y){return _.SL(Y.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"})},IS=function(Y){LF("conn",Y)},qLX=function(Y,b){Y.publish("proxyStateChange",b)},QCF=function(Y){Y.connectTimerId_=_.m$(function(){IS("Connecting timeout");
Y.JSC$17611_disconnect_(1)},2E4)},vVs=function(Y){_.IV(Y.connectTimerId_);
Y.connectTimerId_=NaN},Zpg=function(Y){_.IV(Y.reconnectedCheckScreenTimeout_);
Y.reconnectedCheckScreenTimeout_=NaN},nVt=function(Y){Py7(Y);
Y.playingSyncTimerId_=_.m$(function(){l0(Y,"getNowPlaying")},2E4)},Py7=function(Y){_.IV(Y.playingSyncTimerId_);
Y.playingSyncTimerId_=NaN},xPs=function(Y){IS("Channel opened");
Y.reconnecting_&&(Y.reconnecting_=!1,Zpg(Y),Y.reconnectedCheckScreenTimeout_=_.m$(function(){IS("Timing out waiting for a screen.");Y.JSC$17611_disconnect_(1)},15E3))},eJb=function(Y,b){var w=null;
if(b){var V=Bw7(Y);V&&(w={clientName:V.clientName,deviceMake:V.brand,deviceModel:V.model,osVersion:V.osVersion})}_.wG("yt.mdx.remote.remoteClient_",w);b&&(vVs(Y),Zpg(Y));w=Y.channelService.isChannelOpened()&&isNaN(Y.connectTimerId_);b==w?b&&(qLX(Y,1),l0(Y,"getSubtitlesTrack")):b?(Y.getOtherConnectedRemoteId_()&&Y.playerContext_.reset(),qLX(Y,1),l0(Y,"getNowPlaying"),MFQ(Y)):Y.JSC$17611_disconnect_(1)},pBQ=function(Y,b){var w=b.params.videoId;
delete b.params.videoId;w==Y.playerContext_.videoId&&(_.BL.isEmpty(b.params)?Y.playerContext_.trackData=null:Y.playerContext_.trackData=b.params,Y.publish("remotePlayerChange"))},OpF=function(Y,b,w){var V=b.params.videoId||b.params.video_id,H=parseInt(b.params.currentIndex,10);
Y.playerContext_.listId=b.params.listId||Y.playerContext_.listId;XBX(Y.playerContext_,V,H);Y.publish("remoteQueueChange",w)},tFQ=function(Y,b){b.params=b.params||{};
OpF(Y,b,"NOW_PLAYING_MAY_CHANGE");Y.onStateChange_(b);Y.publish("autoplayDismissed")};
ke.prototype.onStateChange_=function(Y){var b=parseInt(Y.params.currentTime||Y.params.current_time,10);En(this.playerContext_,isNaN(b)?0:b);b=parseInt(Y.params.state,10);b=isNaN(b)?-1:b;b==-1&&this.playerContext_.playerState==-1E3&&(b=-1E3);this.playerContext_.playerState=b;b=Number(Y.params.loadedTime);this.playerContext_.loadedTime=isNaN(b)?0:b;b=Number(Y.params.duration);this.playerContext_.duration_=isNaN(b)?0:b;b=this.playerContext_;var w=Number(Y.params.liveIngestionTime);b.liveIngestionTime_=
w;b.isLive_=isNaN(w)?!1:!0;b=this.playerContext_;w=Number(Y.params.seekableStartTime);Y=Number(Y.params.seekableEndTime);b.seekableStart_=isNaN(w)?0:w;b.seekableEnd_=isNaN(Y)?0:Y;this.playerContext_.playerState==1?nVt(this):Py7(this);this.publish("remotePlayerChange")};
ke.prototype.onAdStateChange_=function(Y){if(this.playerContext_.playerState!=-1E3){var b=1085;switch(parseInt(Y.params.adState,10)){case 1:b=1081;break;case 2:b=1084;break;case 0:b=1083}this.playerContext_.playerState=b;Y=parseInt(Y.params.currentTime,10);En(this.playerContext_,isNaN(Y)?0:Y);this.publish("remotePlayerChange")}};
var RJ7=function(Y,b){var w=b.params.muted=="true";Y.playerContext_.volume=parseInt(b.params.volume,10);Y.playerContext_.muted=w;Y.publish("remotePlayerChange")},dPQ=function(Y,b){Y.autoplayVideoId_=b.params.videoId;
Y.publish("nowAutoplaying",parseInt(b.params.timeout,10))},FoQ=function(Y,b){Y.autoplayVideoId_=b.params.videoId||null;
Y.publish("autoplayUpNext",Y.autoplayVideoId_)},Lod=function(Y,b){Y.autoplayMode_=b.params.autoplayMode;
Y.publish("autoplayModeChange",Y.autoplayMode_);Y.autoplayMode_=="DISABLED"&&Y.publish("autoplayDismissed")},SLN=function(Y,b){var w=b.params.hasNext=="true";
Y.playerContext_.hasPrevious=b.params.hasPrevious=="true";Y.playerContext_.hasNext=w;Y.publish("previousNextChange")};
ke.prototype.isCapabilitySupportedOnConnectedDevices_=function(Y){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var b=_.N(this.connectedDevices_),w=b.next();!w.done;w=b.next())if(!w.value.capabilities.has(Y))return!1;return!0};
var sCb=function(Y,b){b=b.message;b.params?IS("Received: action="+b.action+", params="+(0,_.dP)(b.params)):IS("Received: action="+b.action+" {}");switch(b.action){case "loungeStatus":b=(0,_.eS)(b.params.devices);Y.connectedDevices_=_.MD(b,function(V){return new yb(V)});
b=!!_.SL(Y.connectedDevices_,function(V){return V.type=="LOUNGE_SCREEN"});
eJb(Y,b);b=Y.isCapabilitySupportedOnConnectedDevices_("mlm");Y.publish("multiStateLoopEnabled",b);break;case "loungeScreenDisconnected":QVb(Y.connectedDevices_,function(V){return V.type=="LOUNGE_SCREEN"});
eJb(Y,!1);break;case "remoteConnected":var w=new yb((0,_.eS)(b.params.device));_.SL(Y.connectedDevices_,function(V){return V.equals(w)})||_.Ca(Y.connectedDevices_,w);
break;case "remoteDisconnected":w=new yb((0,_.eS)(b.params.device));QVb(Y.connectedDevices_,function(V){return V.equals(w)});
break;case "gracefulDisconnect":break;case "playlistModified":OpF(Y,b,"QUEUE_MODIFIED");break;case "nowPlaying":tFQ(Y,b);break;case "onStateChange":Y.onStateChange_(b);break;case "onAdStateChange":Y.onAdStateChange_(b);break;case "onVolumeChanged":RJ7(Y,b);break;case "onSubtitlesTrackChanged":pBQ(Y,b);break;case "nowAutoplaying":dPQ(Y,b);break;case "autoplayDismissed":Y.publish("autoplayDismissed");break;case "autoplayUpNext":FoQ(Y,b);break;case "onAutoplayModeChanged":Lod(Y,b);break;case "onHasPreviousNextChanged":SLN(Y,
b);break;case "requestAssistedSignIn":Y.publish("assistedSignInRequested",b.params.authCode);break;case "onLoopModeChanged":Y.publish("loopModeChange",b.params.loopMode);break;default:IS("Unrecognized action: "+b.action)}};
_.g=ke.prototype;_.g.getProxyState_=function(){var Y=3;this.isDisposed()||(Y=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(Y=1):Y=2);return Y};
_.g.JSC$17611_disconnect_=function(Y){IS("Disconnecting with "+Y);_.wG("yt.mdx.remote.remoteClient_",null);vVs(this);this.publish("beforeDisconnect",Y);Y==1&&tg();this.channelService.disconnect(Y);this.dispose()};
_.g.getPlayerContextData_=function(){var Y=this.playerContext_;this.clientVideoId_&&(Y=this.playerContext_.clone(),XBX(Y,this.clientVideoId_,Y.index));return DPA(Y)};
_.g.setPlayerContextData_=function(Y){var b=this,w=new jD(Y);w.videoId&&w.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=w.videoId,_.IV(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.m$(function(){if(b.clientVideoId_){var H=b.clientVideoId_;b.clientVideoId_=null;b.playerContext_.videoId!=H&&l0(b,"getNowPlaying")}},5E3));
var V=[];this.playerContext_.listId==w.listId&&this.playerContext_.videoId==w.videoId&&this.playerContext_.index==w.index||V.push("remoteQueueChange");this.playerContext_.playerState==w.playerState&&this.playerContext_.volume==w.volume&&this.playerContext_.muted==w.muted&&UPI(this.playerContext_)==UPI(w)&&(0,_.dP)(this.playerContext_.trackData)==(0,_.dP)(w.trackData)||V.push("remotePlayerChange");this.playerContext_.reset(Y);_.$2(V,function(H){this.publish(H)},this)};
_.g.getOtherConnectedRemoteId_=function(){var Y=this.channelService.getDeviceId(),b=_.SL(this.connectedDevices_,function(w){return w.type=="REMOTE_CONTROL"&&w.id!=Y});
return b?b.id:""};
_.g.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.g.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.g.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.g.JSC$17611_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var MFQ=function(Y){_.IV(Y.idleDisconnectTimerId_);Y.idleDisconnectTimerId_=_.m$(function(){Y.JSC$17611_disconnect_(1)},864E5)},l0=function(Y,b,w){w?IS("Sending: action="+b+", params="+(0,_.dP)(w)):IS("Sending: action="+b);
Y.channelService.sendMessage(b,w)};
ke.prototype.sendMessageWithUserAction_=function(Y,b){l0(this,Y,b);MFQ(this)};
ke.prototype.JSC$17611_getXsrfToken_=function(){var Y=_.sJ.get("SAPISID","")||_.sJ.get("__Secure-1PAPISID",void 0)||"",b=_.sJ.get("__Secure-3PAPISID","")||"";if(!Y&&!b)return"";Y=_.YM(_.PE(Y),2);b=_.YM(_.PE(b),2);return _.YM(_.PE(","+Y+","+b),2)};
ke.prototype.subscribe=ke.prototype.subscribe;ke.prototype.unsubscribeByKey=ke.prototype.unsubscribeByKey;ke.prototype.getProxyState=ke.prototype.getProxyState_;ke.prototype.disconnect=ke.prototype.JSC$17611_disconnect_;ke.prototype.getPlayerContextData=ke.prototype.getPlayerContextData_;ke.prototype.setPlayerContextData=ke.prototype.setPlayerContextData_;ke.prototype.getOtherConnectedRemoteId=ke.prototype.getOtherConnectedRemoteId_;ke.prototype.getReconnectTimeout=ke.prototype.getReconnectTimeout_;
ke.prototype.getAutoplayMode=ke.prototype.getAutoplayMode_;ke.prototype.getAutoplayVideoId=ke.prototype.getAutoplayVideoId_;ke.prototype.reconnect=ke.prototype.JSC$17611_reconnect_;ke.prototype.sendMessage=ke.prototype.sendMessageWithUserAction_;ke.prototype.getXsrfToken=ke.prototype.JSC$17611_getXsrfToken_;ke.prototype.isCapabilitySupportedOnConnectedDevices=ke.prototype.isCapabilitySupportedOnConnectedDevices_;var aCN=function(Y){r3.call(this,"ScreenServiceProxy");this.instance_=Y;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.nC)(this.JSC$17614_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.nC)(this.onOnlineScreenChange_,this)))};
_.P(aCN,r3);_.g=aCN.prototype;_.g.getScreens=function(Y){return this.instance_.$_gs(Y)};
_.g.contains=function(Y){return!!this.instance_.$_c(Y)};
_.g.get=function(Y){return this.instance_.$_g(Y)};
_.g.start=function(){this.instance_.$_st()};
_.g.add=function(Y,b,w){this.instance_.$_a(Y,b,w)};
_.g.remove=function(Y,b,w){this.instance_.$_r(Y,b,w)};
_.g.updateName=function(Y,b,w,V){this.instance_.$_un(Y,b,w,V)};
_.g.disposeInternal=function(){for(var Y=this.subscriptionKeys_.length,b=0;b<Y;++b)this.instance_.$_ubk(this.subscriptionKeys_[b]);this.subscriptionKeys_.length=0;this.instance_=null;r3.prototype.disposeInternal.call(this)};
_.g.JSC$17614_onScreenChange_=function(){this.publish("screenChange")};
_.g.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
KF.prototype.$_st=KF.prototype.start;KF.prototype.$_gspc=KF.prototype.JSC$17571_getScreenByPairingCode;KF.prototype.$_gsppc=KF.prototype.JSC$17571_getScreenByPollingPairingCode;KF.prototype.$_c=KF.prototype.contains;KF.prototype.$_g=KF.prototype.get;KF.prototype.$_a=KF.prototype.add;KF.prototype.$_un=KF.prototype.updateName;KF.prototype.$_r=KF.prototype.remove;KF.prototype.$_gs=KF.prototype.getScreens;KF.prototype.$_gos=KF.prototype.JSC$17571_getOnlineScreens;KF.prototype.$_s=KF.prototype.subscribe;
KF.prototype.$_ubk=KF.prototype.unsubscribeByKey;var CyI=function(Y){D4O();if(!Rr||!Rr.get("yt-remote-disable-remote-module-for-dev")){Y=_.zO("MDX_CONFIG")||Y;QLO();gLI();hb||(hb=new MW(Y?Y.loungeApiHost:void 0),m4I()&&(hb.basePath="/api/loungedev"));xe||(xe=_.Aq("yt.mdx.remote.deferredProxies_")||[],_.wG("yt.mdx.remote.deferredProxies_",xe));r4s();var b=qe();if(!b){var w=new KF(hb,Y?Y.disableAutomaticScreenCache||!1:!1);_.wG("yt.mdx.remote.screenService_",w);b=qe();var V={};Y&&(V={appId:Y.appId,disableDial:Y.disableDial,theme:Y.theme,loadCastApiSetupScript:Y.loadCastApiSetupScript,
disableCastApi:Y.disableCastApi,enableDialLoungeToken:Y.enableDialLoungeToken,enableCastLoungeToken:Y.enableCastLoungeToken,forceMirroring:Y.forceMirroring});_.wG("yt.mdx.remote.enableConnectWithInitialState_",Y?Y.enableConnectWithInitialState||!1:!1);iMQ(w,function(f){f?sn()&&JwF(sn(),"YouTube TV"):w.subscribe("onlineScreenChange",function(){w3("yt-remote-receiver-availability-change")})},V)}if(Y&&!_.Aq("yt.mdx.remote.initialized_")){_.wG("yt.mdx.remote.initialized_",!0);
QO("Initializing: "+(0,_.dP)(Y));vS.push(_.UP("yt-remote-cast2-api-ready",function(){w3("yt-remote-api-ready")}));
vS.push(_.UP("yt-remote-cast2-availability-change",function(){w3("yt-remote-receiver-availability-change")}));
vS.push(_.UP("yt-remote-cast2-receiver-selected",function(){zJt();w3("yt-remote-auto-connect","cast-selector-receiver")}));
vS.push(_.UP("yt-remote-cast2-receiver-resumed",function(){w3("yt-remote-receiver-resumed","cast-selector-receiver")}));
vS.push(_.UP("yt-remote-cast2-session-change",Wob));vS.push(_.UP("yt-remote-connection-change",function(f){f?JwF(sn(),"YouTube TV"):KoX()||(JwF(null,null),j3t())}));
vS.push(_.UP("yt-remote-cast2-session-failed",function(){w3("yt-remote-connection-failed")}));
V=ipt();Y.isAuto&&(V.id+="#dial");var H=Y.capabilities||[];H.length>0&&(V.capabilities=H);V.name=Y.device;V.app=Y.app;(Y=Y.theme)&&(V.theme=Y);QO(" -- with channel params: "+(0,_.dP)(V));V?(_.kc("yt-remote-session-app",V.app),_.kc("yt-remote-session-name",V.name)):(_.hW("yt-remote-session-app"),_.hW("yt-remote-session-name"));_.wG("yt.mdx.remote.channelParams_",V);b.start();sn()||A4Q()}}},$Pt=function(){var Y=qe().instance_.$_gos();
var b=y4s();b&&PS()&&(YDI(Y,b)||Y.push(b));return uyF(Y)},jCb=function(){var Y=$Pt(),b=y4s();
b||(b=KoX());return _.SL(Y,function(w){return b&&pF(b,w.key)?!0:!1})},y4s=function(){var Y=sn();
if(!Y)return null;var b=qe().getScreens();return OE(b,Y)},Wob=function(Y){QO("remote.onCastSessionChange_: "+uAg(Y));
if(Y){var b=y4s();b&&b.id==Y.id?(JwF(b.id,"YouTube TV"),Y.idType=="shortLived"&&(Y=Y.token)&&(b=PS())&&b.setLoungeToken(Y)):(b&&GF7(),TwF(Y,1))}else PS()&&GF7()},GF7=function(){TOX()?yl().stopSession():CF("stopSession called before API ready.");
var Y=PS();Y&&(Y.disconnect(1),J4t(null))},u9X=function(){var Y=PS();
return Y&&Y.getProxyState()!=3?new cS(PS(),void 0):null},QO=function(Y){LF("remote",Y)},qe=function(){if(!YqN){var Y=_.Aq("yt.mdx.remote.screenService_");
YqN=Y?new aCN(Y):null}return YqN},sn=function(){return _.Aq("yt.mdx.remote.currentScreenId_")},bZX=function(Y){_.wG("yt.mdx.remote.currentScreenId_",Y)},zJt=function(){_.wG("yt.mdx.remote.connectData_",null)},PS=function(){return _.Aq("yt.mdx.remote.connection_")},J4t=function(Y){var b=PS();
zJt();Y||bZX("");_.wG("yt.mdx.remote.connection_",Y);xe&&(_.$2(xe,function(w){w(Y)}),xe.length=0);
b&&!Y?w3("yt-remote-connection-change",!1):!b&&Y&&w3("yt-remote-connection-change",!0)},KoX=function(){var Y=VSb();
if(!Y)return null;var b=qe();if(!b)return null;b=b.getScreens();return OE(b,Y)},TwF=function(Y,b){bZX(Y.id);
Y=new ke(hb,Y,ipt(),_.Aq("yt.mdx.remote.enableConnectWithInitialState_")||!1);Y.connect(b,_.Aq("yt.mdx.remote.connectData_"));Y.subscribe("beforeDisconnect",function(w){w3("yt-remote-before-disconnect",w)});
Y.subscribe("beforeDispose",function(){PS()&&J4t(null)});
Y.subscribe("browserChannelAuthError",function(){var w=y4s();w&&w.idType=="shortLived"&&(TOX()?yl().handleBrowserChannelAuthError():CF("refreshLoungeToken called before API ready."))});
J4t(Y)},A4Q=function(){var Y=KoX();
Y?(QO("Resume connection to: "+uAg(Y)),TwF(Y,0)):(tg(),j3t(),QO("Skipping connecting because no session screen found."))},hb=null,xe=null,YqN=null,r4s=function(){var Y=ipt();
if(_.BL.isEmpty(Y)){Y=w1d();var b=_.l4("yt-remote-session-name")||"",w=_.l4("yt-remote-session-app")||"";Y={device:"REMOTE_CONTROL",id:Y,name:b,app:w,mdxVersion:3};Y.authuser=String(_.zO("SESSION_INDEX","0"));(b=_.zO("DELEGATED_SESSION_ID"))&&(Y.pageId=String(b));_.wG("yt.mdx.remote.channelParams_",Y)}},ipt=function(){return _.Aq("yt.mdx.remote.channelParams_")||{}},vS=[];var w5d=new _.WO("yt-menu"),VHQ=function(){},gcg=function(Y,b,w){Y=b=="right-click"?w.rightClickMenuPopupHint:w.menuPopupHint;
if(!(HZb(b)>10))return b=b||"default",w5d.set(b+"-impression",HZb(b)+1),Y},HZb=function(Y){return parseInt(w5d.get((Y||"default")+"-impression")||0,10)};
_.U0(VHQ);var fcg=function(){this.contexts_=new WeakMap;this.JSC$17620_networkService_=this.activeContext_=null},NWb=function(Y,b,w){var V=Y.contexts_.get(b);
V||(V=new qv7(Y.JSC$17620_networkService_),Y.contexts_.set(b,V));Y.activeContext_=V;w&&Y.activeContext_.reset();Y.activeContext_.start();return Y.activeContext_};var Zn=function(){};
Zn.prototype.enqueue=function(){var Y=this,b;return _.c(function(w){if(Y.isCounterfactual())return(b=Y.getCounterfactualData())&&Y.shouldLogCounterfactualImpression()&&Y.sendImpressionEndpoints(b),w.return();Y.doEnqueue();_.om(w)})};
Zn.prototype.sendImpressionEndpoints=function(Y){_.CB.getInstance().triggerOptionalAction("yt-service-request",{},Y[0])};var BS=function(Y,b){this.renderer=Y;this.page=b};
_.P(BS,Zn);BS.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
BS.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
BS.prototype.shouldLogCounterfactualImpression=function(){return!0};
BS.prototype.doEnqueue=function(){var Y=_.wK(this.page);Y&&Y.pause();this.renderer.impressionCommand&&_.CB.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.a5(_.CB.getInstance(),[this.renderer.promoCommand],this.page)};var EcR=function(Y,b){this.renderer=Y;this.resolver=_.j9();this.JSC$17632_enforcementCounter=new _.rpo;b?this.JSC$17632_playerManager=_.wK(b):this.JSC$17632_playerManager=null;_.lW(1,!0)};
_.P(EcR,Zn);_.g=EcR.prototype;_.g.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var Y=[];this.renderer.impressionEndpoints.forEach(function(b){(b=_.zT(b))&&Y.push(b)});
return Y}};
_.g.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.g.shouldLogCounterfactualImpression=function(){var Y=_.gT6();Y?(this.JSC$17632_enforcementCounter.increment("POPUP"),_.lW(3)):_.lW(2);return Y};
_.g.cancel=function(){this.resolver.promise.cancel()};
_.g.doEnqueue=function(){var Y=this;_.gT6()?(this.JSC$17632_enforcementCounter.increment("POPUP"),_.lW(3),cWN(this)):this.JSC$17632_playerManager?(this.resolver.promise.then(function(){cWN(Y)}),UxN(this.resolver,this.JSC$17632_playerManager)):_.lW(2)};
var UxN=function(Y,b){var w=_.j9();b.getPlayerPromise().then(function(V){w.resolve(V)});
w.promise.then(function(V){V.addEventListener("onAbnormalityDetected",Y.resolve);_.OV(Y.promise,function(){V.removeEventListener("onAbnormalityDetected",Y.resolve)})});
Y.promise.thenCatch(function(){w.promise.cancel()})},cWN=function(Y){_.lW(3);
var b={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:Y.renderer}};b=_.CB.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});Promise.all(b).then(function(){X5b();Y.JSC$17632_playerManager&&Y.JSC$17632_playerManager.pause()})},X5b=function(){NGX(function(Y,b){_.gu7(Y,b);
Y===0?_.lW(7):_.lW(4)})};var Dxd=function(Y,b){this.renderer=Y;this.page=b;this.resolver=_.j9()};
_.P(Dxd,Zn);_.g=Dxd.prototype;_.g.cancel=function(){this.resolver.promise.cancel()};
_.g.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.g.isCounterfactual=function(){return!this.renderer.isVisible};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var Y=this;this.resolver.promise.then(function(){var w={popup:{mealbarPromoRenderer:Y.renderer},popupType:"MEALBAR"};_.CB.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:w},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var b=_.wK(this.page);b&&mxN(this.resolver,b)}break;default:this.resolver.resolve()}};
var mxN=function(Y,b){var w=_.j9();b.getPlayerPromise().then(function(V){w.resolve(V)});
w.promise.then(function(V){V.addEventListener("onAdEnd",Y.resolve);_.OV(Y.promise,function(){V.removeEventListener("onAdEnd",Y.resolve)})});
Y.promise.thenCatch(function(){w.promise.cancel()})};var ocX=function(Y,b){this.renderer=Y;this.page=b};
_.P(ocX,Zn);_.g=ocX.prototype;_.g.cancel=function(){this.JSC$17640_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17640_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17640_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.g.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.g.isCounterfactual=function(){return!this.renderer.isVisible};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var Y=this,b,w;((b=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(w=b.playbackUpsellDialogTriggerConditionData)==null?void 0:w.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17640_downloadedVideosCountSelectorUnsubscriber=_.vB(_.u3(),wOI,function(V,H){V>H&&(IcO(Y),Y.cancel())}):IcO(this)};
var IcO=function(Y){var b={popup:{upsellDialogRenderer:Y.renderer},popupType:"MODAL"};_.CB.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});(Y=_.wK(Y.page))&&Y.pause()};var nW={},kWA=(nW.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",nW.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",nW.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",nW.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",nW.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",nW.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",nW.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",nW),lct=function(Y,b){this.renderer=Y;this.targetManager=
b};
_.P(lct,Zn);_.g=lct.prototype;_.g.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17647_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17647_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17647_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.g.getCounterfactualData=function(){if(this.isCounterfactual()){var Y;return(Y=this.renderer.promoConfig)==null?void 0:Y.impressionEndpoints}};
_.g.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.g.shouldLogCounterfactualImpression=function(){return!0};
_.g.doEnqueue=function(){var Y=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17647_downloadedVideosCountSelectorUnsubscriber=_.vB(_.u3(),wOI,function(b,w){Y.renderer.targetId&&b>w&&(Crt(Y.targetManager,Y.renderer.targetId,hht(Y)),Y.cancel())});
break;default:Crt(this.targetManager,this.renderer.targetId,hht(this))}};
var hht=function(Y){var b;if((b=Y.renderer.suggestedPosition)==null?0:b.type)var w=kWA[Y.renderer.suggestedPosition.type];w||(w="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:Y.renderer},popupType:"HINT",position:w}}};var xxN=function(){this.previousPage=null},qqI;
xxN.prototype.registerPromoCommand=function(Y,b){sjd(this,void 0,void 0,_.v(Y.roadblock,S_I),void 0,void 0,b)};
var sjd=function(Y,b,w,V,H,f,E){Y.previousPage!==E&&Y.pendingTooltipPromo&&Y.pendingTooltipPromo.cancel();Y.previousPage=E;H?(Y.pendingEnforcementPromo&&Y.pendingEnforcementPromo.cancel(),Y.pendingEnforcementPromo=new EcR(H,E),Y.pendingEnforcementPromo.enqueue()):f?(Y.pendingCommandWrapperPromo=new BS(f,E),Y.pendingCommandWrapperPromo.enqueue()):V?(Y.pendingRoadblockPromo&&Y.pendingRoadblockPromo.cancel(),Y.pendingRoadblockPromo=new ocX(V,E),Y.pendingRoadblockPromo.enqueue()):b?(Y.pendingMealbarPromo&&
Y.pendingMealbarPromo.cancel(),Y.pendingMealbarPromo=new Dxd(b,E),Y.pendingMealbarPromo.enqueue()):w&&(Y.pendingTooltipPromo&&Y.pendingTooltipPromo.cancel(),Y.pendingTooltipPromo=new lct(w,_.eH()),Y.pendingTooltipPromo.enqueue())},QjI=function(){qqI||(qqI=new xxN);
return qqI};var V1X=!1;var TrX=function(Y,b){var w=_.zO("SESSION_INDEX");this.actionToken_=Y;this.commonToken_=b;this.sessionIndex_=w},GgR=function(Y){var b=_.j9(),w=_.Aq("payments.business.integration.bootstrap"),V=_.Aq("payments.business.integration"),H=V.Style.create().withMaterialDesignStyle(),f=V.mashupMode.popup("instrument-manager");
w.asMashupMode(f).usingUserIndex(Y.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(H).inStandaloneContext(V.standaloneContextAuthId.forUserId()).instrumentManager(Y.actionToken_,Y.commonToken_.length>0?Y.commonToken_:void 0,function(E){var U=E.instrumentId;U?b.resolve(U):(U=_.Aq("payments.business.integration.scenario.InstrumentManager"),b.reject(E.errorCode&&E.errorCode===U.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(E){_.K7(E);
b.reject("instrumentManagerLoadError")});
return b.promise};var Ym=function(Y,b,w){this.payloadName="transactionFlowFailed";this.payload={errorType:Y,serializedTransactionFlowLoggingParams:b,isUserDismiss:w===void 0?!1:w}};
_.wG("yt.ypc.shared.YpcTransactionFlowError",Ym);var Me=function(){return _.s6.apply(this,arguments)||this};
_.P(Me,_.s6);Me.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Me.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Me.prototype.onErrorMessageDismiss=Me.prototype.onErrorMessageDismiss;_.z([_.R({readOnly:!0,observer:"errorRendererChanged"}),_.K("design:type",Object)],Me.prototype,"errorRenderer",void 0);_.z([_.kZ("yt-live-chat-error-message-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Me.prototype,"onErrorMessageDismiss",null);_.z([_.QC()],Me);var vcd=[Me.prototype];var P4R;var ZZt;var BWN=new _.WO("yt-live-chat"),ncN=new Map;ncN.set("timestamp_toggle","show-timestamps");ncN.set("reactions_toggle","allow-reactions");var eb=function(){return _.F.apply(this,arguments)||this};
_.P(eb,_.F);_.g=eb.prototype;_.g.menuItemIdentifierChanged=function(){var Y;(Y=this.data)!=null&&Y.menuItemIdentifier&&(Y=ncN.get(this.data.menuItemIdentifier))&&(_.q("enable_lwe_web_mute")?(Y=BWN.get(Y),this.isToggled=!(Y===void 0?!this.data.isToggled:!Y)):this.isToggled=BWN.get(Y))};
_.g.onFocus=function(){this.toggleButton.focus()};
_.g.onTap=function(){var Y=this.data.command;Y&&this.componentBehavior.resolveCommand(Y)};
_.g.computeText=function(Y,b,w){return this.componentBehavior.getSimpleString(Y?w:b)};
_.g.computeIcon=function(Y,b,w){return(Y=Y?w:b)&&Y.iconType?_.IR(Y.iconType):""};
eb.prototype.onTap=eb.prototype.onTap;eb.prototype.onFocus=eb.prototype.onFocus;eb.prototype.menuItemIdentifierChanged=eb.prototype.menuItemIdentifierChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],eb.prototype,"componentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],eb.prototype,"data",void 0);
_.z([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.K("design:type",String)],eb.prototype,"icon",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],eb.prototype,"isToggled",void 0);_.z([_.xZ("tp-yt-paper-toggle-button"),_.K("design:type",Object)],eb.prototype,"toggleButton",void 0);_.z([_.lr("data.menuItemIdentifier"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eb.prototype,"menuItemIdentifierChanged",null);
_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eb.prototype,"onFocus",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],eb.prototype,"onTap",null);_.z([_.FM({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],eb);
_.a(eb,"yt-live-chat-toggle-renderer",function(){if(ZZt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-toggle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_toggle_renderer.yt.live.chat.toggle.renderer.css.js--\x3e<tp-yt-paper-item class="style-scope yt-live-chat-toggle-renderer">\n   <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-toggle-renderer"></yt-icon>\n  <span class="style-scope yt-live-chat-toggle-renderer">[[computeText(data.isToggled, data.defaultText, data.toggledText)]]</span>\n  <tp-yt-paper-toggle-button aria-label="[[computeText(data.isToggled, data.defaultText, data.toggledText)]]" checked="[[isToggled]]" class="style-scope yt-live-chat-toggle-renderer">\n  </tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;P4R===void 0&&(P4R=document.createElement("template"));var V=P4R;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ZZt=Y}Y=ZZt;return Y},{mode:_.q("live_chat_enable_sink_wrapper")?2:0});var MHI=new _.Hx("NAVIGATION_PROGRESS_TOKEN");_.rx("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var ehF={},U8I=(ehF.CSI=function(Y,b){var w={};w[Y]=b;Y=_.i1(_.yue)(w);Object.keys(Y).length>0&&_.Fx(Y)},ehF.ECATCHER=function(Y){return function(b,w){_.zO(Y)[b]=w}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),ehF);var p5X={},OZN={},tHb=(OZN[ZiQ.name]=!0,OZN),pW=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;Y.tabGesturesIsActive=!1;Y.actionRouterIsRoot=!0;Y.appBehaviorActionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-clear-cookie-action":"handleClearCookieAction","yt-store-grafted-ve-action":"onStoreGraftedVeAction","yt-history-load":"onYtHistoryLoad","yt-history-pop":"onYtHistoryPop"};Y.pageTitle="";Y.titleSuffix="YouTube";Y.unseenNotificationCount=
0;Y.hasNavigated=!1;Y.hasSetScrollTopForNavigation=!1;Y.pagePreparer=null;Y.zwiebackInitJobId=0;Y.dataUpdatePromise=null;Y.loadDepsPromise=_.k7();Y.hasPendingNavigation=!1;Y.pendingPlayerOnResponseReceivedActions=[];return Y};
_.P(pW,_.s6);pW.prototype.attached=function(){RhR(this);document.addEventListener("yt-navigate-cache",_.Io(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var Y=On();Y.init();Y.dispatchElement=this.hostElement};
var RhR=function(Y,b){b=b===void 0?0:b;var w=_.fH().resolve(_.HQ(_.Mx));if(w)dxF(Y,w);else{if(b>=5)throw Error("Zk");setTimeout(function(){RhR(Y,b+1)},0)}},dxF=function(Y,b){b.addEventListener("yt-navigate-start",_.Io(Y,Y.onYtNavigateStart));
b.addEventListener("yt-navigate-finish",_.Io(Y,Y.onYtNavigateFinish));b.addEventListener("yt-navigate-error",_.Io(Y,Y.onYtNavigateError));b.addEventListener("yt-page-data-fetched",_.Io(Y,Y.onYtPageDataFetched))};
_.g=pW.prototype;_.g.detached=function(){var Y=_.fH().resolve(_.Mx);Y.removeEventListener("yt-navigate-start",_.Io(this,this.onYtNavigateStart));Y.removeEventListener("yt-navigate-finish",_.Io(this,this.onYtNavigateFinish));Y.removeEventListener("yt-navigate-error",_.Io(this,this.onYtNavigateError));Y.removeEventListener("yt-page-data-fetched",_.Io(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Io(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.g.setPageOffset=function(Y,b){Y?_.Xx(this.hostElement,"yt-set-page-offset",[Y,b]):_.Ft(Error("$k"))};
_.g.setPageOffsetForNavigation=function(Y,b){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(Y,b))};
_.g.onYtNavigateSetPageOffset=function(Y,b){this.setPageOffsetForNavigation(b.page,b.offset)};
_.g.getPageOffset=function(){var Y=_.E6(this.hostElement).querySelector("#page-manager").getCurrentPage(),b=0;Y&&(b=_.Xx(this.hostElement,"yt-get-page-offset",[Y])[0]);return b};
_.g.onYtHistoryPop=function(Y,b){if(_.Wf("DISABLE_WARM_LOADS"))Y.preventDefault(),window.location.reload();else{var w=_.fH().resolve(_.Mx);w.hasPendingNavigation()&&Y.preventDefault();w.cancelPendingNavigation();_.De(this.hostElement,"yt-pending-navigation-cancelled");b.errorMsg&&(Y=b.errorMsg.split(" - "),b=Error(Y[0]),Y.length==2&&Y[1]&&(_.aY(b,Y[1]),_.Sk(b)),window.location.reload())}};
_.g.onYtHistoryLoad=function(Y,b){var w=this;if(_.Wf("DISABLE_WARM_LOADS"))window.location.reload();else{(Y=b.endpoint)&&Object.keys(Y).length||(Y=null);var V=b.historyEntry,H=_.fH().resolve(_.Mx),f=_.fH().resolve(_.bX),E=null;V&&V.rootData&&(E=V.rootData);var U=E&&Fgt(E);!E||U||E.filler?Y?(H.navigate(Y,!0),LgX(this,Y)):(b.legacyBorder||U||(b.JSC$26651_savedComponentState==null&&E==null?_.Sk(new _.BQ("Incomplete history entry",b.forward)):_.LB(new _.BQ("Malformed history entry",b.JSC$26651_savedComponentState,
b.forward,E))),window.location.reload()):(_.Vfe({isHot:!0}),_.Fx({webInfo:{navigationReason:"h"}}),_.X4g(),_.S1("srt"),_.S1("pdc"),this.cancelPendingTasks(),SqR(this,b.forward,E),E.player&&(E.player.loaded=!1),LgX(this,Y),_.KTQ(H,Y||{},E,2,{},!1,b).then(function(){w.setPageOffset(f.getCurrentPage(),V.scrollTop||0)}))}};
_.g.initHistoryManager=function(Y){if(!this.hasNavigated){this.hasNavigated=!0;var b=_.E6(this.hostElement).querySelector("#page-manager").getCurrentData();Y=isNaN(Y)?this.getPageOffset():Y;var w=_.fH().resolve(_.Mx).currentEndpoint;this.replaceState(w,b,Y)}};
_.g.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.g.onYtNavigateStart=function(Y,b){this.cancelPendingTasks();b.noProgressBar||(Y=_.fH().resolve(_.HQ(MHI)))&&Y.start();Y=this.hasPendingNavigation?null:this.data;var w=_.fH().resolve(_.bX),V,H,f;_.q("kevlar_use_vimio_behavior")&&!((V=b.endpoint)==null?0:(H=V.commandMetadata)==null?0:(f=H.webCommandMetadata)==null?0:f.ignoreNavigation)&&(V=w.getCurrentPage())&&V.disconnectVisibilityRoot();w.prepareForNavigation(b.pageType,b.endpoint);_.q("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.NS(1,
"pcl"),_.ES(this.pagePreparer,w.preparePage.bind(w,b.pageType,b.endpoint)));V=this.getPageOffset();this.initHistoryManager(V);b.reload||this.hasPendingNavigation?this.replaceState(b.endpoint,Y,V):(Y==null?void 0:Y.page)==="watch"&&b.pageType==="watch"&&_.q("kevlar_replace_watch_to_watch_history_state")?this.replaceState(b.endpoint,Y,V):(Y==null?void 0:Y.page)!=="shorts"||b.pageType!=="shorts"||b.endpoint.reelWatchEndpoint.sequenceParams||_.q("short_to_short_back_nav_killswitch")?b.type!="navigate-back"&&
b.type!="navigate-forward"&&(b.pageType==="shorts"&&_.Ua(this.hostElement,"yt-shorts-reset"),this.saveAndPush(b.url,b.endpoint,Y,V)):this.replaceState(b.endpoint,Y,0);this.hasPendingNavigation=!0};
var ac7=function(Y){Y.hasPendingNavigation=!1;(Y=_.fH().resolve(_.HQ(MHI)))&&Y.finish()};
pW.prototype.onYtNavigateError=function(Y,b){ac7(this);Y=this.get("endpoint.commandMetadata.webCommandMetadata.url",b);var w=_.GO(window.location.href);Y&&!w.pbjreload&&(b=b.navigationErrorReason||"10",_.q("kevlar_parent_on_pbjreload")&&(w={csn:_.dO()},this.get("data.endpoint.clickTrackingParams")&&(w.itct=this.data.endpoint.clickTrackingParams),_.VX(Y,w)),_.yU(_.TO(Y,{pbjreload:b})))};
pW.prototype.onYtNavigateCache=function(Y,b){var w=this,V=b.url,H=b.endpoint,f=b.data;Y=!!b.miniplayer;b=!!b.skipHistory;if(V&&H&&f){var E=this.getPageOffset(),U=this.data||null;b||this.saveAndPush(V,H,U,E);V=_.KTQ(_.fH().resolve(_.Mx),H,f,Y?4:3,{},Y);Y&&V.then(function(){w.dataUpdatePromise&&w.dataUpdatePromise.then(function(){var X=_.fH().resolve(_.bX);w.setPageOffset(X.getCurrentPage(),0)})})}};
pW.prototype.onYtNavigateFinish=function(Y,b){var w=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){rWd(w,b.fromHistory)})};
var rWd=function(Y,b){ac7(Y);if(Y.pendingPlayerOnResponseReceivedActions){for(var w=_.N(Y.pendingPlayerOnResponseReceivedActions),V=w.next();!V.done;V=w.next())_.hA(V.value,Y.hostElement);Y.pendingPlayerOnResponseReceivedActions=[]}w=_.fH().resolve(_.bX);!b&&Y.hasNavigated&&((b=w.getCurrentPage())?b.is==="ytd-shorts"||Y.tabGesturesIsActive||Y.setPageOffsetForNavigation(b,0):_.Sk(Error("al")));_.KV(function(){_.KV(function(){_.S1("pda")})})};
pW.prototype.onYtNavigate=function(Y){if(!Y.detail.endpoint){var b=new _.BQ("Error: Missing yt-navigate endpoint from target:",Y.target,Y.target.nodeName);_.Ft(b)}if(b=_.q("cold_missing_history"))b=On(),b.init(!1),b=!(b.browserHistory.boundHistoryReplaceState&&b.browserHistory.boundHistoryPushState);if(b){_.rx("DISABLE_WARM_LOADS",!0);b=new _.BQ("Failed to initialize history manager",this.getDebugString());var w=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
w?_.Sk(b):_.Ft(b)}b=Y.detail.endpoint;var V,H;_.q("debug_forward_web_query_parameters")&&((V=b.commandMetadata)==null?0:(H=V.webCommandMetadata)==null?0:H.url)&&(b=JSON.parse(JSON.stringify(b)),b.commandMetadata.webCommandMetadata.url=_.KHG(b.commandMetadata.webCommandMetadata.url,window.location.search));Y={type:0,command:b,form:{params:Y.detail.params,tempData:Y.detail.tempData||{},requestType:Y.detail.type,createScreenConfig:Y.detail.createScreenConfig,reload:Y.detail.reload?Y.detail.reload:!1,
requestForm:Y.detail}};_.q("kevlar_yt_navigate_command_handler")?(V=_.fH().resolve(_.Nn),Y.form.skipDefaultElement=!0,V.resolveCommand(b,{form:Y.form})):this.handleNavigate(Y)};
pW.prototype.handleNavigate=function(Y){this.hasSetScrollTopForNavigation=!1;var b=_.fH().resolve(_.Mx),w=Y.form||{};b.navigate(Y.command,w.reload,w.params,w.tempData,w.requestType,w.createScreenConfig,w.ignoreConfirmation,w.requestForm)&&LgX(this,Y.command,w.tempData)};
pW.prototype.onYtPageDataFetched=function(Y,b){try{_.LCt().reset();this.data=b.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.fH().resolve(_.bX).updatePageData(this.data);var w=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);w&&X0g(w);var V=this.get("response.responseContext.serviceTrackingParams",this.data);V&&X0g(V);var H=
this.get("playerResponse.onResponseReceivedActions",this.data);H&&(H=zhO(this,H));H&&_.IP(this.hostElement,H,this.hostElement);var f=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),E=this.get("response.responseContext.consistencyTokenJar",this.data);if(f||E){var U=_.xSL(),X=(0,_.BL.getValues)(U.tokenJars);f&&U.replace(X,f);E&&U.replace(X,E)}}catch(I){_.Ft(I)}};
var LgX=function(Y,b,w){try{Y.onYtEndpointChangeHandler(b,w)}catch(V){_.Ft(V)}};
_.g=pW.prototype;_.g.onYtEndpointChangeHandler=function(){};
_.g.setPageTitle=function(Y){Y=(this.pageTitle=Y)?Y+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+Y};
_.g.onYtUpdateTitle=function(Y,b){this.setPageTitle(b)};
_.g.setUnseenNotificationCount=function(Y){this.unseenNotificationCount=Y;this.setPageTitle(this.pageTitle)};
_.g.handleUpdateNotificationsUnseenCountAction=function(Y){_.v(Y,NLg)&&((Y=_.v(Y,NLg).unseenCount)?this.setUnseenNotificationCount(Y):this.setUnseenNotificationCount(0))};
_.g.handleClearCookieAction=function(Y){var b;(Y=(b=_.v(Y,VcA))==null?void 0:b.cookieName)&&_.ELu(Y)};
_.g.onYtUpdateUnseenNotificationCount=function(Y,b){this.setUnseenNotificationCount(b)};
_.g.loadData=function(Y){var b=this;this.loadDepsPromise.then(function(){var w=_.fH().resolve(_.HQ(_.Mx));w||_.Ft(Error("bl"));if(Y&&Y.response){if(!Y.endpoint){var V=_.CM(window.document.location.href)||"/",H="";if(V==="/"||V.startsWith("/?"))H="WEB_PAGE_TYPE_BROWSE";Y.endpoint={commandMetadata:{webCommandMetadata:{url:V,webPageType:H,rootVe:3854}}}}_.KTQ(w,Y.endpoint,Y,5,{})}else Y.endpoint?w.navigate(Y.endpoint):w.navigate(_.Qy);_.Lb.cancelJob(b.zwiebackInitJobId);b.zwiebackInitJobId=_.Lb.addLowPriorityJob(HzO)})};
var On=function(){return _.fH().resolve(_.ox)};
pW.prototype.getDebugString=function(){return On().getDebugString()};
pW.prototype.getThirdPartyManipulationSuspected=function(){return On().getThirdPartyManipulationSuspected()};
pW.prototype.replaceState=function(Y,b,w){On().saveAndReplace(Y,b,w)};
pW.prototype.saveAndPush=function(Y,b,w,V){On().saveAndPush(Y,b,w,V)};
var Fgt=function(Y){return _.v(Y.endpoint,_.TG)||_.v(Y.endpoint,_.BH)?!0:!Y||isNaN(Y.expirationTime)?!1:(0,_.gG)()>Y.expirationTime},SqR=function(Y,b,w){var V=Y.get("response.trackingParams",w),H=_.R3(),f=_.dO();
if(V&&H&&f&&(V=Y.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",w),!V&&w.rootVe&&(V=w.rootVe),H=b?"forwardButton":"backButton",b=Y.get("playerResponse.topbar.desktopTopbarRenderer."+H+".buttonRenderer.command.clickTrackingParams",Y.data),Y=Y.get("response.topbar.desktopTopbarRenderer."+H+".buttonRenderer.command.clickTrackingParams",Y.data),b=(Y=b||Y)?_.nA(Y):void 0,Y=_.Qd(),H=[_.k7(w)],_.mo(Y,V,b,{dataPromises:H,csnToClone:w.csn}),w.graftedVes))for(w=
_.N(w.graftedVes),V=w.next();!V.done;V=w.next())_.oC(Y,V.value)};
pW.prototype.onStoreGraftedVeAction=function(Y){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(Y)):_.Sk(Error("cl"))};
var zhO=function(Y,b){return b.filter(function(w){for(var V in w)if(tHb[V])return Y.pendingPlayerOnResponseReceivedActions.push(w),!0;return!1})};
_.up.Object.defineProperties(pW.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
pW.prototype.onStoreGraftedVeAction=pW.prototype.onStoreGraftedVeAction;pW.prototype.loadData=pW.prototype.loadData;pW.prototype.onYtUpdateUnseenNotificationCount=pW.prototype.onYtUpdateUnseenNotificationCount;pW.prototype.handleClearCookieAction=pW.prototype.handleClearCookieAction;pW.prototype.handleUpdateNotificationsUnseenCountAction=pW.prototype.handleUpdateNotificationsUnseenCountAction;pW.prototype.setUnseenNotificationCount=pW.prototype.setUnseenNotificationCount;
pW.prototype.onYtUpdateTitle=pW.prototype.onYtUpdateTitle;pW.prototype.setPageTitle=pW.prototype.setPageTitle;pW.prototype.onYtEndpointChangeHandler=pW.prototype.onYtEndpointChangeHandler;pW.prototype.onYtPageDataFetched=pW.prototype.onYtPageDataFetched;pW.prototype.handleNavigate=pW.prototype.handleNavigate;pW.prototype.onYtNavigate=pW.prototype.onYtNavigate;pW.prototype.onYtNavigateFinish=pW.prototype.onYtNavigateFinish;pW.prototype.onYtNavigateCache=pW.prototype.onYtNavigateCache;
pW.prototype.onYtNavigateError=pW.prototype.onYtNavigateError;pW.prototype.onYtNavigateStart=pW.prototype.onYtNavigateStart;pW.prototype.cancelPendingTasks=pW.prototype.cancelPendingTasks;pW.prototype.initHistoryManager=pW.prototype.initHistoryManager;pW.prototype.onYtHistoryLoad=pW.prototype.onYtHistoryLoad;pW.prototype.onYtHistoryPop=pW.prototype.onYtHistoryPop;pW.prototype.onYtNavigateSetPageOffset=pW.prototype.onYtNavigateSetPageOffset;pW.prototype.setPageOffset=pW.prototype.setPageOffset;
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],pW.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pW.prototype,"data",void 0);_.z([_.kZ("yt-navigate-set-page-offset"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],pW.prototype,"onYtNavigateSetPageOffset",null);
_.z([_.kZ("yt-history-pop"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],pW.prototype,"onYtHistoryPop",null);_.z([_.kZ("yt-history-load"),_.K("design:type",Function),_.K("design:paramtypes",[Event,_.cao]),_.K("design:returntype")],pW.prototype,"onYtHistoryLoad",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],pW.prototype,"onYtNavigate",null);
_.z([_.kZ("yt-update-title"),_.K("design:type",Function),_.K("design:paramtypes",[Event,String]),_.K("design:returntype")],pW.prototype,"onYtUpdateTitle",null);_.z([_.kZ("yt-update-unseen-notification-count"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Number]),_.K("design:returntype")],pW.prototype,"onYtUpdateUnseenNotificationCount",null);_.z([_.QC()],pW);p5X.YtdAppBehavior=[_.US.YtActionHandlerBehavior,pW.prototype];var tb=function(){var Y=_.s6.apply(this,arguments)||this;Y._noAccessors=!0;return Y};
_.P(tb,_.s6);tb.prototype.ready=function(){var Y=this;_.E6(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){Y.onChange_()})};
tb.prototype.dataChanged_=function(){_.E6(this.hostElement).querySelector("#checkbox").checked=!1};
tb.prototype.onChange_=function(){var Y=_.E6(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Ua(this.hostElement,"yt-dismissal-reason-"+Y,this.data.feedbackToken)};
tb.prototype.dataChanged_=tb.prototype.dataChanged_;_.z([_.R(),_.K("design:type",Object)],tb.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],tb.prototype,"dataChanged_",null);_.z([_.QC()],tb);var Wgs=[tb.prototype];var RS=function(){var Y=_.s6.apply(this,arguments)||this;Y.timeoutJobId=0;Y.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return Y};
_.P(RS,_.s6);RS.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
RS.prototype.startTimeout=function(){var Y=this,b=this.data&&this.data.displayDurationSeconds;b&&!this.timeoutJobId&&(this.timeoutJobId=_.MY(_.Lb,function(){_.Xx(Y.hostElement,"yt-close-popup-action",[Y.is]);Y.timeoutJobId=0},b*1E3))};
RS.prototype.cancelTimeout=function(){_.Lb.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
RS.prototype.ytdHatsSurveyBehaviorDataChanged=RS.prototype.ytdHatsSurveyBehaviorDataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],RS.prototype,"ytActionHandlerBehavior",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RS.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.z([_.QC()],RS);var KgQ=[_.US.YtActionHandlerBehavior,RS.prototype];var iZQ=function(Y,b){return Y.SHARED_RENDERERS_.hasOwnProperty(b)?"yt":Y.prefix},du={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}};du.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.q("kevlar_mealbar_above_player"),modern:_.q("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"}};
du.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};du.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};du.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
du.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)"}};
du.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};
du.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};
du.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};
du.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};du.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"}};
du.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};du.TOAST={component:null,properties:{}};var AWb=new function(Y,b,w){this.supportedPopups=Y;this.navigationEndpointPopupMap=b;this.popupTypeMap=w;this.supportedPopups=Y;this.navigationEndpointPopupMap=b;this.popupTypeMap=w}({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:_.q("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"}),C4X=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$17699_popupConfig=du;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 yWR=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.tB.getInstance()},FY=function(Y,b){var w=Y.pageNameToElement.get(b);
if(!w){switch(b){case "watch":var V=_.q("web_watch_force_learning_journey_for_testing")?_.fn("ytd-watch-learning-journey"):_.q("kevlar_watch_fixie")?_.fn("ytd-watch-fixie"):_.q("kevlar_watch_grid")?_.fn("ytd-watch-grid"):_.fn("ytd-watch-flexy");break;case "learning_journey_watch":V=_.fn("ytd-watch-learning-journey");break;case "shorts":V=_.fn("ytd-shorts");break;case "search":V=_.fn("ytd-search");break;case "channel":V=_.fn("ytd-browse");V.pageSubtype="channels";break;case "trending":V=_.fn("ytd-browse");
V.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":V=
_.fn("ytd-browse");V.pageSubtype=b;break;case "browse":V=_.fn("ytd-browse");break;default:_.Sk(new _.BQ("Error getting page element for type",b))}w=V;Y.pageNameToElement.set(b,w)}return w};
yWR.prototype.preparePage=function(Y,b,w){w&&(Y=_.xy(w)||Y);if(Y!=="watch"&&Y!=="learning_journey_watch"){var V=this.elementPoolPopulator,H=Y;H!=V.targetPage_&&V.pendingPages_.indexOf(H)>-1&&(V.targetPage_&&(V.pendingPages_.unshift(V.targetPage_),V.abort()),joO(V,H),_.gRj(V,H))}if((V=FY(this,Y))||!_.v(w,_.Ah)){V.isAttached||V===b||(V.hidden=!0);if(!V.data&&(Y!=="watch"&&Y!=="learning_journey_watch"||!_.q("swatcheroo_page_pool_dont_provide_filler_data"))){var f;if(Y=(f=_.zO("FILLER_DATA",{})[Y])==
null?void 0:f.response)V.data=Y}return V}};var $xb=function(Y){this.JSC$28538_clientRoot=Y;this.playlistHandlerActionMap={"yt-add-to-playlist-command":IeX,"yt-end-playlist-command":kuQ,"yt-recover-playlist-command":hwX,"yt-refresh-playlist-command":sPs,"yt-playlist-remove-videos-action":x8N};_.yu(_.CB.getInstance(),this.playlistHandlerActionMap,this.JSC$28538_clientRoot);gO7()},jjQ;var LW=function(Y,b,w){this.apiKey=Y;this.endpoint=b;this.confidenceThreshold=w===void 0?.5:w;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=b==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
b==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new K0t};
_.g=LW.prototype;
_.g.start=function(Y){if(this.state===0)if(this.isOnline()){Y.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=Y.supportsHttpHeadersOverwriteParam);Y.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=Y.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Lz("voice_assistant");_.aP("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=Y.languageCode||"en-US";this.supportsCrossDomainXhr=Y.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=Y.youtubeAssistantRequest||null;this.listeningHandler=Y.listeningHandler||this.listeningHandler;this.audioDetectedHandler=Y.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=Y.stopHandler||this.stopHandler;this.completeHandler=Y.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=Y.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=Y.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
Y.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=Y.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=Y.accessToken;this.additionalHeaders=Y.additionalHeaders||{};var b;this.prefetchResponseTimeoutMs=(b=Y.prefetchResponseTimeoutMs)!=null?b:this.prefetchResponseTimeoutMs;GWt(this);this.startAudio();TWs(this)}else this.errorHandler("OFFLINE")};
_.g.stop=function(Y){var b=Y===void 0?{}:Y;Y=b.logCancel===void 0?!0:b.logCancel;var w=b.logMicClosed===void 0?!0:b.logMicClosed;var V=b.handleError===void 0?!0:b.handleError;b=b.handleStop===void 0?!0:b.handleStop;this.state!==0&&(Y&&Sb("voz_cx"),aS(this,{logMicClosed:w,handleStop:b}),V&&this.errorHandler("ABORTED"))};
_.g.getState=function(){return this.state};
_.g.isSupported=function(){return!0};
_.g.stopAudio=function(Y){(Y===void 0||Y)&&Sb("voz_mf")};
_.g.startAudio=function(){Sb("voz_vp");return _.k7(null)};
var JWF=function(Y,b){Y.channelOpen&&(Y.state!==2&&(Y.state=2,Sb("voz_ss"),Y.listeningHandler()),b=new Uint8Array(b),b='{ "audioIn": "'+_.YM(b)+'" }',Y.channel.send(b))},aS=function(Y,b){var w=b===void 0?{}:b;
b=w.logMicClosed===void 0?!0:w.logMicClosed;w=w.handleStop===void 0?!0:w.handleStop;Y.vozEndOfDataTimeout>-1&&(clearTimeout(Y.vozEndOfDataTimeout),Y.vozEndOfDataTimeout=-1);uc7(Y);Y.stopAudio(b);Y.channel&&(Y.channelOpen=!1,Y.manuallyClosedChannel=!0,Y.channel.close(),Y.channel=void 0);Y.transcribedSpeechResults=[];Y.state=0;w&&Y.stopHandler()},GWt=function(Y){var b={httpHeadersOverwriteParam:Y.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},Y.additionalHeaders,Y.accessToken&&Y.isUsingVoz?{Authorization:"Bearer "+Y.accessToken}:{"x-goog-api-key":Y.apiKey}),supportsCrossDomainXhr:Y.supportsCrossDomainXhr};Y.channel=new dc(Y.endpoint,b);Y.channel.open();_.ez(Y.channel,"w",function(){var w=Y.channel,V=w.send,H=Y.isUsingVoz?"PLACEHOLDER":"example";H={config:{dialogStateIn:{languageCode:Y.languageCode},deviceConfig:{deviceId:H,deviceModelId:H},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!Y.isUsingVoz)H.config.requestType=4;else if(Y.isUsingVoz&&Y.youtubeAssistantRequest){var f=JSON.stringify(Y.youtubeAssistantRequest);H.config.internalIn={youtubeAssistantS3InputJson:f}}V.call(w,H);Y.channelOpen=!0;Y.manuallyClosedChannel=!1});
_.ez(Y.channel,"x",function(){Y.manuallyClosedChannel||(Y.channelOpen=!1,Y.channel=void 0,aS(Y))});
_.ez(Y.channel,"z",function(w){if(w.data){uc7(Y);for(var V=0;V<w.data.length;V++){var H=Y,f=w.data[V],E=f.speechResults;if(E)a:{var U=[];f=[];var X=!1;E=_.N(E);for(var I=E.next();!I.done;I=E.next()){I=I.value;if(I.noSpeech){aS(H);H.errorHandler("NO_SPEECH");break a}I.transcript!==void 0&&I.stability!==void 0&&(I.stability<H.confidenceThreshold&&(X=!0),X?f.push(I.transcript):U.push(I.transcript))}if(U.length!==0||f.length!==0)U=U.join(" "),f=f.join(" "),H.receivedEndOfUtterance&&!H.isUsingVoz?H.isUsingVoz||
H.completeHandler([U,f]):(X=H,E=U,I=f,Sb("voz_sf"),X.transcriptionUpdateHandler(E,I),X.transcribedSpeechResults=[E,I]),H.receivedEndOfUtterance&&(Sb("voz_eou"),H.transcriptionCompleteHandler([U,f]),H.isUsingVoz&&(H.prefetchResponseTimeoutMs===0?aS(H,{logMicClosed:!1,handleStop:!0}):H.prefetchResponseTimeoutMs>0&&YSt(H)))}else H.isUsingVoz&&(f==null?0:f.internalOut)?(f=JSON.parse(f.internalOut.youtubeAssistantS3OutputJson),f.userHasOptedInToVaa||f.vaaConsent?H.vaaConsentUpdateHandler(!!f.userHasOptedInToVaa,
!!f.vaaConsent):(bns(H),f&&(U=H.transcribedSpeechResults,Sb("voz_rqf"),H.completeHandler(U,f)))):f.eventType==="END_OF_UTTERANCE"?H.receivedEndOfUtterance=!0:(Sb("voz_err"),H.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Sk(Error("dl")))}}});
_.ez(Y.channel,"y",function(w){aS(Y);switch(w.status){case 1:w="WEBCHANNEL_NETWORK_ERROR";break;case 2:w="WEBCHANNEL_SERVER_ERROR";break;default:w="WEBCHANNEL_UNKNOWN_ERROR"}Y.errorHandler(w);Y.logError(Error(w))})};
LW.prototype.logError=function(Y){_.Ft(Y)};
LW.prototype.isOnline=function(){return!0};
var YSt=function(Y){bns(Y);Y.prefetchResponseSetTimeoutId=setTimeout(function(){aS(Y,{logMicClosed:!1,handleStop:!0})},Y.prefetchResponseTimeoutMs)},bns=function(Y){Y.prefetchResponseSetTimeoutId>-1&&(clearTimeout(Y.prefetchResponseSetTimeoutId),Y.prefetchResponseSetTimeoutId=-1)},TWs=function(Y){uc7(Y);
Y.noResponseReceivedTimeout=window.setTimeout(function(){aS(Y);Y.errorHandler("NO_SPEECH")},11E3)},uc7=function(Y){Y.noResponseReceivedTimeout>-1&&(window.clearTimeout(Y.noResponseReceivedTimeout),Y.noResponseReceivedTimeout=-1)},Sb=function(Y){_.S1(Y,void 0,"voice_assistant")};var ru=function(){LW.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.P(ru,LW);ru.prototype.isSupported=function(){return QPd()};
ru.prototype.startAudio=function(){var Y=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.OQ(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(V){wzt(Y,V)};
this.processor.connect(this.audioContext.destination);var b=function(V){Y.stream=V;if(!Y.audioContext)return _.k7(null);V=Y.audioContext.createMediaStreamSource(V);Y.processor&&V.connect(Y.processor);return _.k7(null)},w={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?b(this.stream):(w=navigator.mediaDevices.getUserMedia(w))?w.then(b).catch(function(V){aS(Y);V.name&&V.name==="NotAllowedError"?Y.errorHandler("NO_MICROPHONE_PERMISSION"):(Y.errorHandler("AUDIO_ERROR"),Y.logError(V));return _.OQ(null)}):(aS(this),this.errorHandler("AUDIO_ERROR"),_.Sk(Error("el")));
return LW.prototype.startAudio.call(this)};
ru.prototype.stopAudio=function(Y){Y=Y===void 0?!0:Y;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(b){b.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;LW.prototype.stopAudio.call(this,Y)};
ru.prototype.isOnline=function(){return navigator.onLine};
var wzt=function(Y,b){if(Y.audioContext)if(window.OfflineAudioContext){var w=Y.audioContext.sampleRate,V=b.inputBuffer.getChannelData(0);b=new window.OfflineAudioContext(1,V.length,16E3);for(var H=b.createBuffer(1,V.length,w),f=H.getChannelData(0),E=0,U=0;U<V.length;U++)f[U]=V[U],E+=f[U]*f[U];!Y.audioDetected&&Math.sqrt(E/V.length)>.01&&(Y.audioDetected=!0,Y.audioDetectedHandler());V=b.createBufferSource();V.buffer=H;V.connect(b.destination);V.start(0);b.oncomplete=function(X){X=X.renderedBuffer.getChannelData(0);
for(var I=Math.floor(16384E3/w),k=new Int16Array(I),l=0;l<I;++l)k[l]=Math.max(-1,Math.min(1,X[l]))*32767;JWF(Y,k.buffer)};
b.startRendering()}else Vod(Y,b)},Vod=function(Y,b){var w=Y.audioContext.sampleRate,V=b.inputBuffer.getChannelData(0),H=Math.floor((w+8E3)/16E3);
w=V.length/H;b=new Float32Array(w);for(var f=0;f<w;++f)b[f]=V[f*H];V=new Int16Array(w);for(H=0;H<w;++H)V[H]=Math.max(-1,Math.min(1,b[H]))*32767;JWF(Y,V.buffer)};var Hnt={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var gXX=function(){this.JSC$17764_audioEnabled=!0;this.audioFeedbackHolder={}};
gXX.prototype.isPlaying=function(Y){return Y.currentTime>0&&!Y.paused&&!Y.ended&&Y.readyState>2};
var fiQ=function(Y){for(var b=_.N(Object.values(Hnt)),w=b.next();!w.done;w=b.next())w=w.value,Y.audioFeedbackHolder[w]=new Audio,Y.audioFeedbackHolder[w].src="/s/search/audio/"+w+".mp3",Y.audioFeedbackHolder[w].load()},zq=function(Y,b){if(Y.JSC$17764_audioEnabled!==!1&&b in Y.audioFeedbackHolder){for(var w=_.N(Object.values(Y.audioFeedbackHolder)),V=w.next();!V.done;V=w.next())V=V.value,Y.isPlaying(V)&&V.pause();
Y.audioFeedbackHolder[b].currentTime=0;Y.audioFeedbackHolder[b].play().catch(function(){})}};var N97=function(Y,b){var w=this;this.store=Y;this.service=b;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){w.setState("offline");w.stop()};
this.audioPlayer=new gXX;var V;(V=this.audioPlayer)==null||fiQ(V)};
_.g=N97.prototype;_.g.getService=function(){return this.service};
_.g.isEnabled=function(){return!!this.service};
_.g.isSupported=function(){var Y;return(Y=this.service)==null?void 0:Y.isSupported()};
_.g.start=function(){var Y=this,b,w,V,H,f,E,U,X,I,k,l,x,Q;return _.c(function(Z){switch(Z.nextAddress){case 1:Y.store.dispatch(mRt("",""));if(!navigator.onLine)return Y.setState("offline"),Z.return();window.addEventListener("offline",Y.handleOfflineEvent);Y.stream=null;if(!Y.permissionsSupported){Z.jumpTo(2);break}_.ct(Z,3);return _.D(Z,EXb(Y),5);case 5:b=Z.yieldResult;if(!b)return(w=Y.audioPlayer)==null||zq(w,"failure"),Z.return();Y.service.stream=Y.stream;Y.setState("listening");_.$u(Z,2);break;
case 3:_.mS(Z),Y.permissionsSupported=!1;case 2:V={context:_.IeM(_.Nz())},V.youtubeAssistantParams={searchParams:{inlineSearchResponse:Y.enableInlineSearchResponse}},H=function(e,O){Y.store.dispatch(o_b("transcribing"));Y.store.dispatch(mRt(e,O))},f=function(){var e;
(e=Y.audioPlayer)==null||zq(e,"open");Y.setState("listening")},E=function(){Y.setState("transcribing")},U=function(e){Y.setErrorState(e)},X=function(e,O){var L;
(L=Y.audioPlayer)==null||zq(L,"success");O&&(_.q("kevlar_voice_search_inline_search")&&(Y.responseProcessor=_.fH().resolve(_.hDt),Y.responseProcessor&&(L=O.navigationAction,e=O.prefetchedSearchResponse,L&&e&&(L=(new _.XFo).JSC$11050_getStoreKey(L),_.Gi(Y.responseProcessor,e,L)))),Y.JSC$17782_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",O))},I=function(){window.removeEventListener("offline",Y.handleOfflineEvent)},k=_.Pnt(!1),l=k.Authorization!=null,x=Y.enableFirstPartyAuth||
Y.enableFPAForSignedInUsers&&l?k:{"X-Goog-Visitor-Id":k["X-Goog-Visitor-Id"]},Q={completeHandler:X,
errorHandler:U,listeningHandler:f,audioDetectedHandler:E,stopHandler:I,transcriptionUpdateHandler:H,youtubeAssistantRequest:V,languageCode:c0t(),additionalHeaders:x,supportsCrossDomainXhr:Y.enableFirstPartyAuth||Y.enableFPAForSignedInUsers&&l,supportsHttpHeadersOverwriteParam:!Y.disableHttpHeadersOverwrite},Y.service.start(Q),_.om(Z)}})};
_.g.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.g.reset=function(){this.store.dispatch(_.Uf({type:"RESET_VOICE_SEARCH_STATE"}))};
_.g.setState=function(Y){this.store.dispatch(o_b(Y))};
_.g.setErrorState=function(Y){switch(Y){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var b;(b=this.audioPlayer)==null||zq(b,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)EXb(this);else{var w;(w=this.audioPlayer)==null||zq(w,"failure");this.setState("permission-denied")}break;case "ABORTED":var V;(V=this.audioPlayer)==null||zq(V,"no_input");break;default:var H;(H=this.audioPlayer)==
null||zq(H,"no_input");this.setState("timeout")}};
var EXb=function(Y){var b,w;return _.c(function(V){switch(V.nextAddress){case 1:return _.D(V,navigator.permissions.query({name:"microphone"}),2);case 2:b=V.yieldResult;if(b.state==="granted")return V.return(!0);if(b.state==="denied")return Y.setState("permission-denied"),V.return(!1);Y.setState("permission");w={audio:{sampleSize:16,channelCount:1},video:!1};_.ct(V,3);return _.D(V,navigator.mediaDevices.getUserMedia(w),5);case 5:return Y.stream=V.yieldResult,V.return(!0);case 3:return _.mS(V),Y.setState("permission-denied"),
V.return(!1)}})},c0t=function(){var Y=_.zO("INNERTUBE_CONTEXT_HL"),b=_.zO("INNERTUBE_CONTEXT_GL");
return Y.indexOf("-")>-1?Y:Y+"-"+b};var USb=function(Y,b,w){N97.call(this,b,w);this.JSC$17782_actionRouter=Y;this.enableInlineSearchResponse=_.q("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.q("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.q("kevlar_voice_search_enable_fpa_signedin_users")},Xzb;
_.P(USb,N97);
var DSF=function(){if(!Xzb){var Y="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.q("kevlar_voice_search_auth_enabled")||_.q("kevlar_voice_search_use_yt_endpoint")?Y="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.q("kevlar_voice_search_use_fp_endpoint")&&(Y="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");Xzb=
new USb(_.CB.getInstance(),_.u3(),new ru(_.zO("VOZ_API_KEY"),Y,.5))}return Xzb};var mSF=function(Y){this.JSC$17786_clientRoot=Y;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17786_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)]]));Y=_.N(this.eventListeners);for(var b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;w=w.next().value;w=_.N(w);for(var V=w.next();!V.done;V=w.next()){var H=
_.N(V.value);V=H.next().value;H=H.next().value;b.addEventListener(V,H)}}_.yu(_.CB.getInstance(),this.autonavPauseActionMap,this.JSC$17786_clientRoot)},oXb,Iit=function(Y){return _.q("kevlar_autonav_popup_filtering")?(Y=_.uW(Y))?Y.hasAttribute("prevent-autonav"):!0:!0};
_.g=mSF.prototype;_.g.onIronOverlayOpened=function(Y){Iit(Y)&&(this.autonavPauseReasons.overlayOpen=!0,WS(this))};
_.g.onIronOverlayClosed=function(Y){Iit(Y)&&(this.autonavPauseReasons.overlayOpen=!1,WS(this))};
_.g.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;WS(this)};
_.g.onYtAutonavPauseBlur=function(){var Y=this;_.Lb.addJob(function(){Y.isInBackground()||(Y.autonavPauseReasons.inputBoxFocus=!1,WS(Y))},8,0)};
_.g.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;WS(this)};
_.g.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;WS(this)};
_.g.onYtAutonavPauseScroll=function(){var Y=_.fH().resolve(_.bX);Y.isOnWatch()&&(Y=Y.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=Y.getBoundingClientRect().top<-200,WS(this))};
_.g.onYtAutonavPauseUserEngagement=function(Y){var b=this;if(_.q("user_engagement_enable_autoplay_pause_feature")){var w=Number(Y.lowEngagementThresholdMs);isNaN(w)||w<=0||Y.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.$A("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.fH().resolve(_.dn),_.fB()<w?_.MY(_.Lb,function(){_.$A("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Nat()?(this.userEngagementCsn=_.dO(),_.MY(_.Lb,function(){_.$A("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
b.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,WS(this)):_.$A("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Mze(Error("fl`"+JSON.stringify(Y)))};
_.g.onYtAutonavPausePlayer=function(Y){this.autonavPauseReasons.requestedByPlayer=!!Y.detail;WS(this)};
_.g.onYtAutonavVisibilityChanged=function(){var Y=this,b,w,V;return _.c(function(H){if(H.nextAddress==1)return(b=_.V4())?_.D(H,b.getPlayerPromise(),2):H.return();w=H.yieldResult;V=w.isMuted()||w.getVolume()===0;Y.autonavPauseReasons.backgroundAndMute=Y.isInBackground()&&V;WS(Y);_.om(H)})};
_.g.onYtAutonavPausePlayerEnded=function(){_.fH().resolve(_.dn);var Y=144E5;_.q("user_engagement_enable_autoplay_pause_feature")||_.q("is_part_of_any_user_engagement_experiment")||(Y=45E5);this.autonavPauseReasons.longIdle=_.fB()>Y;kpF(this);WS(this)};
_.g.onYtUserActivity=function(){var Y=this;this.autonavPauseReasons.userEngagement&&(_.MY(_.Lb,function(){_.$A("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",Y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,WS(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.MY(_.Lb,function(){_.$A("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",Y.userEngagementCsn);_.dh()}),this.autonavPauseReasons.youthereLactExperiment=!1,WS(this));
this.autonavPauseReasons.longIdle&&!_.q("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,WS(this))};
_.g.isInBackground=function(){var Y=window.document.visibilityState;return!(!Y||Y==="visible")};
var WS=function(Y){for(var b=!1,w=_.N(Object.values(Y.autonavPauseReasons)),V=w.next();!V.done;V=w.next())V=V.value,b=b||V;b?_.Vy.getInstance().pause(Y.autonavPauseReasons):(Y=_.Vy.getInstance(),Y.autonavState_==3?(Y.setState(2,!1,!1),Y.autonavPauseReason_=void 0):Y.autonavState_==1&&(Y.disabledAutonavPauseReason_=void 0))},kpF=function(Y){var b=!1;
if(_.q("enable_autoplay_pause_by_lact")){_.fH().resolve(_.dn);b=_.cQ("autoplay_pause_by_lact_sec")*1E3;var w=_.cQ("autoplay_pause_by_lact_sampling_fraction");(b=_.fB()>=b&&Math.random()<w)&&!_.Nat()&&(_.MY(_.Lb,function(){_.$A("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),b=!1)}b!==Y.autonavPauseReasons.youthereLactExperiment&&(Y.autonavPauseReasons.youthereLactExperiment=b)&&(Y.userEngagementCsn=_.dO(),_.MY(_.Lb,function(){_.$A("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",Y.userEngagementCsn)}));
Y.autonavPauseReasons.userEngagement&&_.MY(_.Lb,function(){_.$A("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",Y.userEngagementCsn)})};
mSF.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.$A("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.dh(),this.autonavPauseReasons.youthereLactExperiment=!1,WS(this));this.autonavPauseReasons.userEngagement&&(_.$A("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,WS(this))};
mSF.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var KW=function(){var Y=_.F.apply(this,arguments)||this;Y.miniGuideVisible=!1;Y.guideOpened=_.q("disable_initial_guide_state_fix")?!1:Y.canFitPersistentGuide(Y.initialBodyClientWidth);Y.guideUserStateOpened=Y.getInitialGuideUserStateOpened();Y.isFullscreenShorts=!1;Y.miniGuideWidthThreshold=_.cQ("kevlar_mini_guide_width_threshold",791);Y.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");Y.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
Y.persistentGuideBlockedPagePathRegex=new RegExp(Y.persistentGuideBlockedPagesPatterns.join("|"));Y.animationTransitionDuration=0;Y.lateDataResolver=_.j9();Y.initialGuideDataFetchFailed=!1;Y.initialLoad=!0;Y.guideRenderers=new Set;Y.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return Y};
_.P(KW,_.F);_.g=KW.prototype;_.g.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.g.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.g.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.g.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.g.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.g.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.g.ready=function(){_.fH().addProvider({provide:_.z8,useValue:this.hostElement})};
_.g.attached=function(){var Y=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Io(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Io(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Io(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Io(this,this.onYtGuideShow));_.TC(this,function(){Y.animationTransitionDuration=200})};
_.g.detached=function(){document.removeEventListener("yt-navigate-finish",_.Io(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Io(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Io(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Io(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Io(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Io(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Io(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.g.getData=function(){return this.data};
_.g.load=function(){var Y=this,b,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=Y.lateDataResolver.resolve.bind(Y),f.return(Y.lateDataResolver.promise);if(window.ytInitialGuideData)return b=_.j9(),b.resolve(window.ytInitialGuideData),f.return(b.promise);V=!1;_.ct(f,2);return _.D(f,Y.fetchGuideData(),4);case 4:w=f.yieldResult;_.$u(f,3);break;case 2:H=_.mS(f),H.message==="Returned error"&&(V=!0);
case 3:if(w)return f.return(w);Y.onYtGuideClose();V||(Y.initialGuideDataFetchFailed=!0);return f.return(Y.lateDataResolver.promise)}})};
_.g.fetchGuideData=function(){var Y=this,b,w,V,H,f,E,U;return _.c(function(X){if(X.nextAddress==1)return b=_.fH(),Y.guidePromise||(w=b.resolve(_.Sy),Y.guidePromise=_.$_(w,q6Q)),_.D(X,Y.guidePromise,2);if(X.nextAddress!=3)return V=X.yieldResult,H=b.resolve(_.K0),_.D(X,H(),3);(f=X.yieldResult)&&((E=V)==null?void 0:(U=E.responseContext)==null?void 0:U.maxAgeSeconds)!==0&&f.put("service:guide:fallback",new _.Ue({innertubeResponse:V}));return X.return(V)})};
_.g.initializeGuideDataIfEmpty=function(){var Y=this,b,w;return _.c(function(V){if(V.nextAddress==1){if(!Y.initialGuideDataFetchFailed||Y.data)return V.return();_.ct(V,2);return _.D(V,Y.fetchGuideData(),4)}if(V.nextAddress!=2)return(b=V.yieldResult)&&Y.lateDataResolver.resolve(b),_.$u(V,0);w=_.mS(V);_.Sk(w);_.om(V)})};
_.g.initializeGuideData=function(){var Y=this,b;return _.c(function(w){switch(w.nextAddress){case 1:return _.lf(iHO(),{mainAppWeb:_.$y()}),_.ct(w,2),_.D(w,Y.load(),4);case 4:Y.data=w.yieldResult;_.$u(w,3);break;case 2:_.mS(w),_.hJ(iHO(),"FAILURE");case 3:b=Y.data&&Y.data.items&&Y.data.items.length>0?"SUCCESS":"FAILURE",_.hJ(iHO(),b),_.om(w)}})};
_.g.setGuideData=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1)return b.disabled?H.return():b.data?(Y.data=b.data,b.guideRenderers.add(Y),H.return()):_.D(H,b.initializeGuideData(),2);b.graftGuideToPage();w=_.Wf("IS_HOMEPAGE_COLD")?"eop":void 0;_.q("disable_element_pool_populator")?b.setGuideDataAfterInit(Y):(V=new _.NS(1,w),_.ES(V,b.setGuideDataAfterInit.bind(b,Y)));_.om(H)})};
_.g.setGuideDataAfterInit=function(Y){Y.data=this.data;Y.markDirty();this.guideRenderers.add(Y);_.KV(function(){_.S1("gle")});
_.TC(this,function(){_.S1("gpe")})};
_.g.graftGuideToPage=function(){if(this.data){var Y=this.data&&this.data.trackingParams;Y&&(Y=_.nA(Y),_.IC(_.Qd(),Y))}};
_.g.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Io(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.g.onDrawerOpenedChanged=function(Y,b){!b.value&&this.guideOpened&&(this.guideOpened=!1)};
_.g.onYtGuideToggle=function(Y){var b=this.guideOpened;this.guideOpened=!b;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var w=_.P0();_.Ze(0,109,!this.guideUserStateOpened);w.save()}this.updateGuideDrawerElementState();if(this.guideElement){var V;this.guideOpened&&((V=Y.detail)==null?0:V.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Io(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Io(this,
this.onAppDrawerTransitioned))}b||this.initializeGuideDataIfEmpty()};
_.g.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Io(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.uS(this.guideElement)};
_.g.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Io(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Xbb(this.guideOpened))};
_.g.guidePersistentAndVisibleChanged=function(){_.De(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.g.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.g.miniGuideVisibleChanged=function(){_.De(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.g.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Xbb(this.guideOpened)),this.initialLoad=!1);_.De(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.g.activeEndpointChanged=function(){_.De(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.g.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.g.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()};
_.g.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var Y=this.canFitPersistentGuide(this.cachedClientWidth);Y?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=Y}this.updateGuideDrawerElementState()};
_.g.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.g.getGuideOpened=function(){return this.guideOpened};
_.g.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.g.getActiveEndpoint=function(){return this.activeEndpoint};
_.g.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.g.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&&_.Ua(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.g.computeGuidePersistentAndVisible=function(){var Y=this;_.ir(this,"computeGuidePersistentAndVisible",function(){Y.guidePersistentAndVisible=Y.guideOpened&&Y.guidePersistent;Y.guideIsVisibleButNotPersistent=!(!Y.guideOpened||Y.guidePersistent)})};
_.g.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.g.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.g.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.g.startLoadingWatch=function(){this.closeGuide()};
_.g.startLoadingShorts=function(){_.q("web_hide_guide_on_shorts")&&this.closeGuide()};
_.g.onYtNavigateFinish=function(Y,b){if(!_.kv||b){this.activeEndpoint=b.endpoint;this.pageType=b.pageType;this.pageUrl=b.response.url;var w,V;Y=(V=_.v((w=b.endpoint)==null?void 0:w.commandMetadata,_.g5))==null?void 0:V.url;!this.pageUrl&&Y&&(this.pageUrl=Y);_.q("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.g.getVisibleGuideRenderer=function(){for(var Y=_.N(this.guideRenderers),b=Y.next();!b.done;b=Y.next())if(b=b.value,this.miniGuideVisible&&b.is==="ytd-mini-guide-renderer"||this.guideOpened&&b.is==="ytd-guide-renderer")return b;return null};
_.g.markGuideRendererDirty=function(Y){if(Y){typeof Y.markDirty==="function"&&Y.markDirty();Y=_.N([].concat(_.Bt(_.E6(Y).children)));for(var b=Y.next();!b.done;b=Y.next())this.markGuideRendererDirty(b.value)}};
_.g.persistentGuideEnabled=function(Y,b){if(!b||Y==="watch"||Y==="settings"||Y==="shorts"&&this.isFullscreenShorts||_.q("reels_web_disable_persistent_guide_shorts")&&Y==="shorts")return!1;var w=_.ku(b)||"";return _.q("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(V){return w===V}):!this.persistentGuideBlockedPagePathRegex.test(w)};
_.g.canFitPersistentGuide=function(Y){var b=_.cQ("kevlar_persistent_guide_width_threshold",1312);return b===-1||_.q("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:Y>b};
_.g.canFitMiniGuide=function(Y){return this.miniGuideWidthThreshold===-1?!1:Y>this.miniGuideWidthThreshold};
_.g.onResize=function(){var Y=this;_.ir(this,"calculateGuideState",function(){Y.onResizeDebounced()})};
_.g.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.g.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.g.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.g.getInitialGuideUserStateOpened=function(){return!_.P0().getFlag(109)};
_.up.Object.defineProperties(KW.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.zO("initialBodyClientWidth")||window.innerWidth}}});
KW.prototype.onResize=KW.prototype.onResize;KW.prototype.observeForMiniGuideVisible=KW.prototype.observeForMiniGuideVisible;KW.prototype.computeGuidePersistentAndVisible=KW.prototype.computeGuidePersistentAndVisible;KW.prototype.cachedClientWidthChanged=KW.prototype.cachedClientWidthChanged;KW.prototype.resetGuide=KW.prototype.resetGuide;KW.prototype.activeEndpointChanged=KW.prototype.activeEndpointChanged;KW.prototype.guideOpenedChanged=KW.prototype.guideOpenedChanged;
KW.prototype.miniGuideVisibleChanged=KW.prototype.miniGuideVisibleChanged;KW.prototype.guideIsVisibleButNotPersistentChanged=KW.prototype.guideIsVisibleButNotPersistentChanged;KW.prototype.guidePersistentAndVisibleChanged=KW.prototype.guidePersistentAndVisibleChanged;KW.prototype.onGuideElementChanged=KW.prototype.onGuideElementChanged;KW.prototype.onGuidePersistentChanged=KW.prototype.onGuidePersistentChanged;KW.prototype.onRenderGuideChanged=KW.prototype.onRenderGuideChanged;
KW.prototype.onActiveEndpointChanged=KW.prototype.onActiveEndpointChanged;KW.prototype.onMiniGuideVisibleChanged=KW.prototype.onMiniGuideVisibleChanged;KW.prototype.onGuideIsVisibleButNotPersistentChanged=KW.prototype.onGuideIsVisibleButNotPersistentChanged;KW.prototype.onGuidePersistendAndVisibleChanged=KW.prototype.onGuidePersistendAndVisibleChanged;_.z([_.n(_.Li),_.K("design:type",Object)],KW.prototype,"ironResizableBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],KW.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],KW.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],KW.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],KW.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],KW.prototype,"disabled",void 0);
_.z([_.R(),_.K("design:type",Boolean)],KW.prototype,"guidePersistentAndVisible",void 0);_.z([_.lr("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onGuidePersistendAndVisibleChanged",null);_.z([_.R(),_.K("design:type",Boolean)],KW.prototype,"guideIsVisibleButNotPersistent",void 0);
_.z([_.lr("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.z([_.R(),_.K("design:type",Object)],KW.prototype,"miniGuideVisible",void 0);_.z([_.lr("miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onMiniGuideVisibleChanged",null);_.z([_.R(),_.K("design:type",Boolean)],KW.prototype,"forceMiniGuideClose",void 0);
_.z([_.R(),_.K("design:type",Object)],KW.prototype,"activeEndpoint",void 0);_.z([_.lr("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onActiveEndpointChanged",null);_.z([_.R(),_.K("design:type",Boolean)],KW.prototype,"renderGuide",void 0);_.z([_.lr("renderGuide"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onRenderGuideChanged",null);
_.z([_.R(),_.K("design:type",Object)],KW.prototype,"guideOpened",void 0);_.z([_.R(),_.K("design:type",Boolean)],KW.prototype,"guidePersistent",void 0);_.z([_.lr("guidePersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onGuidePersistentChanged",null);_.z([_.R(),_.K("design:type",Object)],KW.prototype,"guideUserStateOpened",void 0);_.z([_.R(),_.K("design:type",String)],KW.prototype,"pageUrl",void 0);
_.z([_.R(),_.K("design:type",String)],KW.prototype,"pageType",void 0);_.z([_.R(),_.K("design:type",Number)],KW.prototype,"cachedClientWidth",void 0);_.z([_.R(),_.K("design:type",Object)],KW.prototype,"guideElement",void 0);_.z([_.R({selector:_.s1}),_.K("design:type",Object)],KW.prototype,"isFullscreenShorts",void 0);_.z([_.lr("guideElement"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onGuideElementChanged",null);
_.z([_.lr("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"guidePersistentAndVisibleChanged",null);_.z([_.vX("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.z([_.lr("miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"miniGuideVisibleChanged",null);_.z([_.vX("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"guideOpenedChanged",null);_.z([_.lr("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"activeEndpointChanged",null);
_.z([_.vX("pageUrl"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"resetGuide",null);_.z([_.vX("cachedClientWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"cachedClientWidthChanged",null);_.z([_.lr("guideOpened","guidePersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"computeGuidePersistentAndVisible",null);
_.z([_.vX("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"observeForMiniGuideVisible",null);_.z([_.kZ("iron-resize"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KW.prototype,"onResize",null);_.z([_.S({disableElementRegistration:!0,is:"yt-guide-manager"})],KW);var liI=_.a(KW,"yt-guide-manager",void 0,{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var i0=function(){var Y=_.F.apply(this,arguments)||this;Y.JSC$17796_keyboardInUse=!1;Y.boundHandleCapturedKeydownEvent=function(b){Y.handleCapturedKeydownEvent(b)};
return Y};
_.P(i0,_.F);_.g=i0.prototype;_.g.attached=function(){this.listenToDocument(document)};
_.g.listenToDocument=function(Y){Y.addEventListener("keydown",_.Io(this,this.onKeyDownEvent));Y.addEventListener("keyup",_.Io(this,this.onKeyUpEvent));Y.addEventListener("mousedown",_.Io(this,this.onMouseDownEvent));_.q("desktop_keyboard_capture_keydown_killswitch")||Y.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);Y.addEventListener("yt-page-data-updated",_.Io(this,this.onPageUpdate))};
_.g.detached=function(){this.unlistenFromDocument(document)};
_.g.unlistenFromDocument=function(Y){Y.removeEventListener("keydown",_.Io(this,this.onKeyDownEvent));Y.removeEventListener("keyup",_.Io(this,this.onKeyUpEvent));Y.removeEventListener("mousedown",_.Io(this,this.onMouseDownEvent));_.q("desktop_keyboard_capture_keydown_killswitch")||Y.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);Y.removeEventListener("yt-page-data-updated",_.Io(this,this.onPageUpdate))};
_.g.ready=function(){_.fH().addProvider({provide:_.mu,useValue:this})};
_.g.isKeyBoardInUse=function(){return this.JSC$17796_keyboardInUse};
_.g.handleCapturedKeydownEvent=function(Y){if(Y.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(Y)};
_.g.onMouseDownEvent=function(){this.JSC$17796_keyboardInUse=!1};
_.g.onPageUpdate=function(){if(_.q("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.q("web_shorts_keyboard_shortcut_usage_log")){_.uK.clear();for(var Y=_.N(_.T$),b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;w=w.next().value;w=_.tj(w);_.uK.set(b,w);_.yX(_.dO(),_.R3(),w)}_.Y6.clear();Y=_.N(_.Jk);for(b=Y.next();!b.done;b=Y.next())w=_.N(b.value),b=w.next().value,w=w.next().value,w=_.tj(w),_.Y6.set(b,w),_.yX(_.dO(),_.R3(),w);_.$7(_.dO(),_.R3(),[].concat(_.Bt(_.Y6.values()),
_.Bt(_.uK.values())));_.Gu(_.dO(),[].concat(_.Bt(_.Y6.values()),_.Bt(_.uK.values())))}};
_.g.onMiniplayerActiveChange=function(){var Y;(Y=_.fH().resolve(_.Ck).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(Y.document):this.unlistenFromDocument(Y.document))};
_.g.ignoreKeyEvent=function(Y){if(Y.ctrlKey||Y.altKey)if(_.q("kevlar_macro_markers_keyboard_shortcut")){if(Y.keyCode!==37&&Y.keyCode!==39)return!0}else return!0;var b=_.JL(Y)||[];return _.XQQ(b)?!0:Y.defaultPrevented?(DB(Y.keyCode,Y.shiftKey,this.isShortsPage),!0):Y.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(Y):!1};
_.g.isSpacebarClick=function(Y){var b=Y||window.event;var w;b.composedPath&&typeof b.composedPath==="function"?w=b.composedPath():w=b.path;w&&w.length?b=w[0]:(b=b||window.event,b=b.target||b.srcElement,b.nodeType==3&&(b=b.parentNode));return b&&Y.keyCode===32&&(Y=b.tagName==="BUTTON"||b.tagName==="A"||b.tagName==="INPUT",b=(b=b.getAttribute("role"))&&(b==="option"||b==="button"||b.indexOf("menuitem")===0),Y||b)?!0:!1};
_.g.onKeyDownEvent=function(Y){if(!this.ignoreKeyEvent(Y)&&(Y.keyCode===191&&(Y.shiftKey||Y.metaKey?Y.repeat!=null&&Y.repeat||(this.openHotkeyDialog(),DB(Y.keyCode,Y.shiftKey,this.isShortsPage)):(this.focusSearchBox(),Y.preventDefault())),!Y.metaKey)){var b=_.fH().resolve(_.Ck);switch(Y.keyCode){case 9:this.JSC$17796_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(Y);break;case 84:b.pipController.getWindow()&&window.focus();this.toggleTheaterMode(Y.keyCode,Y.shiftKey);break;case 73:b.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(Y.keyCode,Y.shiftKey);break;case 70:if(this.isShortsPage&&_.q("web_fullscreen_shorts")){_.mnb();break}this.isMiniplayerActive()?b.pipController.getWindow()&&(b.close(!0),window.focus()):this.passEventToPlayer(Y);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(Y.keyCode,Y.shiftKey):this.closeMiniplayer(Y.keyCode,Y.shiftKey)||this.passEventToPlayer(Y);break;case 13:Y.shiftKey&&_.q("web_ephemeral_actions")&&_.fH().resolve(_.Dh).activate(Y);break;
default:this.passEventToPlayer(Y)}}};
_.g.onKeyUpEvent=function(Y){if(!this.ignoreKeyEvent(Y))if(_.q("web_speedmaster_spacebar_control")&&Y.keyCode===32)this.handlePlayerSpaceKey(Y,!0);else{var b=this.getPlayerManager();b&&(b=b.getPlayer())&&b.handleGlobalKeyUp(Y.keyCode,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code)}};
_.g.getPlayerManager=function(){var Y=_.V4(),b=_.fH().resolve(_.HQ(_.bX));return Y&&b&&b.isOnWatch()?Y:null};
_.g.passEventToPlayer=function(Y,b){var w=this,V,H,f;return _.c(function(E){if(E.nextAddress==1)return!_.q("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&w.isMiniplayerActive()?V=_.fH().resolve(_.Ck).getPlayerElement():w.inlinePreviewIsActive?(H=_.De(w.hostElement,"yt-get-inline-preview-player-action"))&&H[0]&&(V=H[0]):V=_.V4(),V?_.D(E,V.getPlayerPromise(),3):E.jumpTo(0);f=E.yieldResult;b?f.handleGlobalKeyUp(Y.keyCode,Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code,Y.repeat):f.handleGlobalKeyDown(Y.keyCode,
Y.shiftKey,Y.ctrlKey,Y.altKey,Y.metaKey,Y.key,Y.code,Y.repeat);Y.keyCode!==38&&Y.keyCode!==40&&DB(Y.keyCode,Y.shiftKey,w.isShortsPage);_.om(E)})};
_.g.focusSearchBox=function(){_.Ua(this.hostElement,"yt-focus-searchbox")};
_.g.openHotkeyDialog=function(){_.Ua(this.hostElement,"yt-open-hotkey-dialog")};
_.g.isMiniplayerActive=function(){return _.fH().resolve(_.Ck).isMiniplayerActive()};
_.g.closeMiniplayer=function(Y,b){return this.isMiniplayerActive()?(_.fH().resolve(_.Ck).close(),DB(Y,b,this.isShortsPage),!0):!1};
_.g.toggleTheaterMode=function(Y,b){var w=_.zI(_.u3().getState()),V=this.getPlayerManager(),H=_.q("disable_theater_mode_keyboard")||_.Wf("START_IN_FULL_WINDOW_MODE");V&&!H&&(w=!w,_.fz()&&_.q("external_fullscreen")&&(w=!0),_.Xx(this.hostElement,"yt-toggle-theater-mode",[w]),DB(Y,b,this.isShortsPage))};
_.g.toggleMiniplayer=function(Y,b){var w=this.getPlayerManager();if(this.isMiniplayerActive()){var V;((V=_.fH().resolve(_.HQ(_.bX)))==null?0:V.isOnWatch())?_.fH().resolve(_.Ck).close(!0):_.q2(_.fH().resolve(_.Ck));DB(Y,b,this.isShortsPage)}else w&&(_.Xx(this.hostElement,"yt-activate-miniplayer-from-watch-action"),DB(Y,b,this.isShortsPage))};
_.g.handlePlayerSpaceKey=function(Y,b){var w=!!_.V4()||this.isMiniplayerActive();w=_.q("disable_space_scroll_fix")||w;_.q("global_spacebar_pause")&&!this.isKeyBoardInUse()&&w&&(Y.preventDefault(),this.passEventToPlayer(Y,b))};
_.g.isPresentingTheaterMode=function(){return _.q("web_watch_enable_tm_esc_key")?_.zI(_.u3().getState())&&!_.fz():!1};
i0.prototype.onMiniplayerActiveChange=i0.prototype.onMiniplayerActiveChange;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],i0.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],i0.prototype,"ytdReduxBehavior",void 0);_.z([_.R({selector:_.Idb}),_.K("design:type",Boolean)],i0.prototype,"inlinePreviewIsActive",void 0);_.z([_.R({selector:_.Eug}),_.K("design:type",Boolean)],i0.prototype,"isShortsPage",void 0);
_.z([_.R({selector:_.L8}),_.K("design:type",Boolean)],i0.prototype,"miniplayerIsActive",void 0);_.z([_.lr("miniplayerIsActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i0.prototype,"onMiniplayerActiveChange",null);_.z([_.S({disableElementRegistration:!0,is:"yt-hotkey-manager"})],i0);_.a(i0,"yt-hotkey-manager",void 0,{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var Ab=function(){var Y=_.F.apply(this,arguments)||this;Y.loopStateEntityKey_=null;Y.playlistLoopStateEntity_=null;Y.isShuffleNextPlaylist=!1;Y.PLAYER_EVENTS_=new Map;Y.playerListenersSetup_=!1;Y.videoSkipJob_=0;Y.canAutoAdvance_=!1;Y.playerManager_=null;Y.TEST_ONLY={};return Y};
_.P(Ab,_.F);_.g=Ab.prototype;_.g.ready=function(){_.fH().addProvider({provide:_.zF,useValue:this.hostElement})};
_.g.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.g.attached=function(){document.addEventListener("yt-navigate-start",_.Io(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Io(this,this.onYtNavigateFinish_))};
_.g.detached=function(){document.removeEventListener("yt-navigate-start",_.Io(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Io(this,this.onYtNavigateFinish_))};
_.g.updatePlaylistEventListeners=function(Y,b){b&&!this.playerListenersSetup_?(this.playerManager_=Y,this.registerPlaylistEventListeners_(Y)):!b&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(Y))};
_.g.setPlayer=function(Y){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=Y};
_.g.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.g.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.g.registerPlaylistEventListeners_=function(Y){var b=this;Y.getPlayerPromise().then(function(w){b.playerListenersSetup_||(b.ytPlayerListenerBehavior.listenToPlayerEvents(w,b.PLAYER_EVENTS_),b.playerListenersSetup_=!0)})};
_.g.removePlaylistEventListeners_=function(Y){var b=this;Y.getPlayerPromise().then(function(w){b.playerListenersSetup_&&(b.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w,b.PLAYER_EVENTS_),b.playerListenersSetup_=!1)})};
_.g.setPlaylistComponent=function(Y){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Io(this,this.onPlaylistYtNavigate_)),Y&&(Y.data&&this.playlistComponent.data&&Y.data.playlistId==this.playlistComponent.data.playlistId?(Y.loopOn=this.playlistComponent.loopOn,Y.shuffleOn=this.playlistComponent.shuffleOn):(Y.loopOn=!1,Y.shuffleOn=!1),this.isShuffleNextPlaylist&&(Y.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=Y;this.playlistComponent.addEventListener("yt-navigate",
_.Io(this,this.onPlaylistYtNavigate_))};
_.g.setAutoplayRenderer=function(Y){this.autoplayData=Y};
_.g.setPlaylistData=function(Y){this.currentPlaylistData_=Y;_.Ua(this.hostElement,"yt-playlist-data-updated");_.BL.isEmpty(Y)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(Y)};
_.g.setPlayerPlaybackControlData=function(Y){this.playerManager_&&this.playerManager_.updatePlayerComponents(Y.playlistPanelRenderer)};
_.g.getPlaylistData=function(){return this.currentPlaylistData_};
_.g.getTempData_=function(Y,b){if(this.playlistComponent==null)return null;Y={};this.playlistComponent.shuffleOn&&(Y.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(Y.loop_on=this.playlistComponent.loopOn);b&&(Y.autonav="1",_.fH().resolve(_.dn),b=_.fB(),b>0&&(Y.lact=b),this.playerManager_&&(b=this.playerManager_.getPlayer())&&b.shouldSendVisibilityState()&&(b=b.getVisibilityState(),b!=0&&(Y.vis=b)));_.q("enable_unknown_lact_fix_on_html5")&&(_.fH().resolve(_.dn),Y.lact=
_.fB());return Y};
_.g.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.g.setLoopStateEntityKey_=function(Y){var b;this.loopStateEntityKey_=((b=this.getPlaylistLoopData_(Y))==null?void 0:b.playlistLoopStateEntityKey)||null};
_.g.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.g.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.g.skipVideo=function(){var Y=this,b=_.q("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||b)b=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.vv(_.Lb,function(){Y.onPlaylistNext();Y.videoSkipJob_=0},b)};
_.g.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Lb.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.g.isInBackground_=function(){var Y=window.document.visibilityState;return!(!Y||Y=="visible")};
_.g.onPlaylistIndex_=function(Y){this.playlistComponent&&(Y=this.playlistComponent.data.contents[Y].playlistPanelVideoRenderer.navigationEndpoint,_.Ua(this.hostElement,"yt-navigate",{endpoint:Y,tempData:this.getTempData_(Y)}))};
_.g.onPlayerStateChange_=function(Y){if(Y=Y==0&&this.playlistComponent&&this.canAutoAdvance_)Y=_.Vy.getInstance(),Y=!(Y.autonavState_===3?Y.autonavPauseReason_&&Y.autonavPauseReason_.inputBoxFocus===!0:Y.autonavState_===1&&Y.disabledAutonavPauseReason_&&Y.disabledAutonavPauseReason_.inputBoxFocus===!0);Y&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.g.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.g.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.g.navigateToAutoplayWatchEndpoint_=function(Y,b,w){var V=this.playlistComponent.data.currentIndex,H=this.getNumPlayableVideos_();Y=="NORMAL"&&b=="autoplayVideo"&&V+1>=H&&w||!(Y=this.getVideoEndpoint_(Y,b))||(w=this.getTempData_(Y,w),_.Ua(this.hostElement,"yt-navigate",{endpoint:Y,tempData:w}))};
_.g.getNumPlayableVideos_=function(){for(var Y=0,b=_.N(this.playlistComponent.data.contents||[]),w=b.next();!w.done;w=b.next())w.value.playlistPanelVideoRenderer&&(Y+=1);return Y};
_.g.getVideoEndpoint_=function(Y,b){if(this.autoplayData&&this.autoplayData.sets)for(var w=0,V=this.autoplayData.sets.length;w<V;w++){var H=this.autoplayData.sets[w];if(H.mode==Y){if(H[b])return H[b];break}}else Y=new _.BQ("AutoplayData is undefined in playlist manager","Mode: "+Y+" endpoint: "+b),_.Sk(Y)};
_.g.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.g.onPlaylistYtNavigate_=function(Y){if(Y.detail.endpoint){Y.stopPropagation();var b=Y.detail;b.tempData=this.getTempData_(Y.detail.endpoint);_.Ua(this.hostElement,"yt-navigate",b)}};
_.g.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.g.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.g.playlistLoopStateEntityChanged_=function(Y){var b=this,w,V,H;return _.c(function(f){if(f.nextAddress==1){if(!Y)return f.return();w=Y.state==="PLAYLIST_LOOP_STATE_ONE";return b.playerManager_?_.D(f,b.playerManager_.getPlayerPromise(),3):f.jumpTo(2)}f.nextAddress!=2&&(V=f.yieldResult,V.setLoopVideo(w));H=Y.state==="PLAYLIST_LOOP_STATE_ALL";b.playlistComponent&&(b.playlistComponent.loopOn=H);_.om(f)})};
_.g.getPlaylistLoopData_=function(Y){var b,w;if(Y=Y==null?void 0:(b=Y.playlistButtons)==null?void 0:(w=b.menuRenderer)==null?void 0:w.topLevelButtons)for(b=_.N(Y),w=b.next();!w.done;w=b.next())if(w=w.value,w.playlistLoopButtonRenderer)return w.playlistLoopButtonRenderer};
_.g.getLoopStateCommand_=function(Y){var b=this.getPlaylistData(),w;b=((w=this.getPlaylistLoopData_(b))==null?void 0:w.states)||[];var V;Y=(V=_.v(b[Y?1:2],_.cnd))==null?void 0:V.button;var H;return(H=_.v(Y,_.Wa))==null?void 0:H.command};
_.g.onPlayerLoopChange_=function(Y){this.playlistLoopStateEntity_&&(Y?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(Y=this.getLoopStateCommand_(Y))&&this.ytComponentBehavior.resolveCommand(Y)};
_.g.onSleepTimerSettingsChanged_=function(Y){this.canAutoAdvance_=Y!=="End of video"};
Ab.prototype.onPlaylistLoopStateEntityChanged=Ab.prototype.onPlaylistLoopStateEntityChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ab.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],Ab.prototype,"ytPlayerListenerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Ab.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ab.prototype,"loopStateEntityKey_",void 0);
_.z([_.R({selectorArgs:["loopStateEntityKey_"],selector:_.ee6}),_.K("design:type",Object)],Ab.prototype,"playlistLoopStateEntity_",void 0);_.z([_.lr("playlistLoopStateEntity_"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ab.prototype,"onPlaylistLoopStateEntityChanged",null);_.z([_.S({disableElementRegistration:!0,is:"yt-playlist-manager"})],Ab);_.a(Ab,"yt-playlist-manager",void 0,{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var hKt,xSX=function(){if(hKt!==void 0)return hKt;var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-third-party-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return hKt=Y};var CW=function(){var Y=_.F.apply(this,arguments)||this;Y.lastCallback=null;Y.getAccountLinkPromises={};Y.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);Y.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return Y};
_.P(CW,_.F);_.g=CW.prototype;_.g.getLocation=function(){return window.location.href};
_.g.getCompletionUrl=function(){return _.w5(this.getLocation())};
_.g.containsRedirectState=function(Y){return(Y=_.RM(_.Enb(Y)))?(new URLSearchParams(Y)).get("redirect_state")!==null:!1};
_.g.createGalConfig=function(Y,b){var w=new Rod;Y=w=b?this.getPopupOrRedirectSetting(w,_.zO("LINK_API_KEY"),_.zO("LINK_API_KEY_REDIRECT"),Y):dot(w,_.zO("LINK_API_KEY"));Y.authUser=_.zO("SESSION_INDEX")||0;Y.supportedFlows=new Set([4]);return Y.build()};
_.g.getPopupOrRedirectSetting=function(Y,b,w,V){this.isGalInteractionPopupMode(V)?(Y.interactionMode=0,Y=dot(Y,b)):(Y.interactionMode=1,b=this.getCompletionUrl(),Y.completionUrl=b,Y=dot(Y,w));return Y};
_.g.isGalInteractionPopupMode=function(Y){if(this.redirectModeProviderAllowlist.has(Y))switch(Y){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.g.getStatusEntityKeyForProviderId=function(Y){return _.I8(Y+":all","accountLinkStatusEntity")};
_.g.findNestedPropValue=function(Y,b){var w=!1,V=null;JSON.stringify(Y,function(H,f){w||H!==b||(w=!0,V=f);return w?null:f});
return V};
_.g.findAccountLinkButtonViewModel=function(Y,b){var w=null,V=!1;JSON.stringify(Y,function(H,f){V||f.accountLinkStatusEntityKey!==b||f.accountLinkStatusSecondaryEntityKey||(V=!0,w=f);return V?null:f});
return w};
_.g.executeLinkingSuccessOrFailureCommands=function(Y,b,w){var V=null,H;(b==null?0:(H=b.url)==null?0:H.includes("account_sharing"))?V=b==null?void 0:b.response:V=b==null?void 0:b.response;(b=this.findAccountLinkButtonViewModel(V,Y))?(Y=w?this.findNestedPropValue(b,"onSuccessCommand"):this.findNestedPropValue(b,"onFailureCommand"))?_.h1([Y],this.hostElement):_.C7(Error("gl")):_.C7(Error("hl`"+Y))};
_.g.handleInitializeRequest=function(Y,b){var w=this,V=UcO(this.createGalConfig(Y,!0));this.containsRedirectState(this.getLocation())?gDQ(Y,V.config,V.galService).then(function(H){var f=w.getStatusEntityKeyForProviderId(Y);if(H.statusCode===1)b&&w.executeLinkingSuccessOrFailureCommands(f,b,!0),H=w.getLocation().indexOf("#"),H!==-1&&window.history.pushState(null,"",w.getLocation().substring(0,H));else return b&&w.executeLinkingSuccessOrFailureCommands(f,b,!1),Promise.reject(Error(H.statusMessage))}).catch(function(H){_.Sk(H);
_.RY("gamingAccountLinkStatusChanged",{serviceId:Y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(H)}):this.getAccountLinkPromises[Y]=V.startLinkingSession({serviceId:Y})};
_.g.handleAccountLinkCommand=function(Y){_.v(Y,xMX)&&this.handleLinkRequest(_.v(Y,xMX))};
_.g.handleLinkRequest=function(Y){var b=this,w=Y.thirdPartyId;if(w)if(this.isGalInteractionPopupMode(w)){var V=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",Y.onFailureCommand)},H=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",Y.onSuccessCommand)};
this.lastCallback=H;this.getAccountLinkPromises[w].then(function(f){myR(f).then(function(E){E.statusCode===1?H():V()})}).catch(function(){V()})}else this.getAccountLinkPromises[w].then(function(f){myR(f).then(function(E){if(E.statusCode!==1)return Promise.reject(Error(E.statusMessage))})}).catch(function(f){_.Sk(f);
_.RY("gamingAccountLinkStatusChanged",{serviceId:w,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(f)})};
_.g.closeAndFire=function(Y,b){_.Xx(this.hostElement,"yt-close-popup-action",[Y]);b&&_.h1([b],this.hostElement)};
_.g.handleAccountUnlinkCommand=function(Y){_.v(Y,q_s)&&this.handleUnlinkRequest(_.v(Y,q_s))};
_.g.handleUnlinkRequest=function(Y){var b=this,w=Y.thirdPartyId;if(w){var V=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",Y.onFailureCommand)},H=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",Y.onSuccessCommand)};
this.lastCallback=H;var f=UcO(this.createGalConfig(w,!1));this.unlinkUserGal(f,w).then(function(E){E.statusCode===1?H():V()}).catch(function(){V()})}};
_.g.unlinkUserGal=function(Y,b){return Y.deleteLink(b)};
_.g.handleLogAccountLinkingEventCommand=function(Y){_.q("enable_gel_log_commands")&&_.v(Y,s$s)&&(Y=_.v(Y,s$s).event)&&_.RY("gamingAccountLinkStatusChanged",Y)};
_.up.Object.defineProperties(CW,{template:{configurable:!0,enumerable:!0,get:function(){return xSX()}}});
_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],CW.prototype,"ytOpenPopupBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],CW.prototype,"ytActionHandlerBehavior",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-third-party-manager"})],CW);_.a(CW,"ytd-third-party-manager",function(){return xSX()},{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var qSX,sGO=function(){return qSX!==void 0?qSX:qSX=document.createElement("template")};
document.head.appendChild(sGO().content);var QGI,vXN=function(){if(QGI!==void 0)return QGI;var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(sGO().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return QGI=Y};var P$7=_.wM(["\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      "]),yO=function(){var Y=_.F.apply(this,arguments)||this;Y.currentPage=void 0;Y.renderLoadingStateJobId=0;Y.updatePageDataJobId=0;Y.pageDisposeJobsets=new WeakMap;Y.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney",
"yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};Y.applyZoomTransition=_.UJ("web_page_transition_type")==="zoom";Y.applySlideTransition=_.UJ("web_page_transition_type")==="slide"||_.q("enable_plj_landing_page");Y.TEST_ONLY=void 0;return Y};
_.P(yO,_.F);_.g=yO.prototype;_.g.ready=function(){var Y=_.fH();Y.addProvider({provide:_.bX,useValue:this});Y.addProvider({provide:_.RVI,useValue:this})};
_.g.created=function(){this.pagePool=new yWR;this.contextSwitcher=new fcg};
_.g.attached=function(){_.Ua(this.hostElement,"attached");var Y=_.fH().resolve(_.HQ(_.LX));Y&&(this.contextSwitcher.JSC$17620_networkService_=Y);this.viewTransitionCoordinator=_.fH().resolve(_.HQ(_.N2));this.setupPageTransitionAnimation()};
_.g.getPageOffset=function(Y){return Y.getScrollTop()};
_.g.setPageOffset=function(Y,b){try{Y.setScrollTop(b)}catch(w){}};
_.g.setPageOffsetForNavigation=function(Y,b){_.Ua(this.hostElement,"yt-navigate-set-page-offset",{page:Y,offset:b===void 0?0:b})};
_.g.pauseActiveContext=function(){var Y=this.contextSwitcher;Y.activeContext_&&Y.activeContext_.pause()};
_.g.getModuleNameForType=function(Y){return Y==="watch"?_.q("kevlar_watch_fixie")?"watchFixie":_.q("kevlar_watch_grid")?"watchGrid":"watchFlexy":Y==="shorts"||Y==="search"?Y:"browse"};
_.g.attachPage=function(Y){var b,w=!_.q("pc_is_attached_ks")&&(Y==null?void 0:(b=Y.polymerController)==null?void 0:b.isAttached);if(!Y.isAttached&&!w)try{_.E6(this.hostElement).appendChild(Y)}catch(H){var V;_.Sk(new _.BQ("Error attaching page element for component",{origin:(V=this.currentPage)==null?void 0:V.is,component:Y.is}))}};
_.g.setActivePage=function(Y){var b=this,w=!1,V=function(){var H=b.isOnWatch(),f=b.currentPage;if(Y)if(Y!==b.currentPage){f&&(f.hidden=!0,f.active=!1,f.removeAttribute("role"));b.currentPage=Y;var E,U=_.xy((E=b.data)==null?void 0:E.endpoint);f&&_.Ua(b.hostElement,"yt-page-type-changed",{oldPageType:f.is,newPageType:Y.is,newPageSubtype:U});_.jm().dispatch(_.Uf({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:Y.is}));_.jm().dispatch(_.Uf({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:U||""}));Y.hidden=
!1;b.attachPage(Y);Y.active=!0;Y.setAttribute("role","main");f&&b.setPageOffsetForNavigation(Y,0);_.q("kevlar_remove_page_dom_on_switch")&&!H&&f&&_.E6(b.hostElement).removeChild(f)}else w=!0;else H=new _.BQ("Unable to set active page",f?f.is:"unknown origin",(U=b.data)==null?void 0:U.endpoint),_.Ft(H)};
this.viewTransitionCoordinator?MzO(this.viewTransitionCoordinator,V,this.viewTransitionConfigForSetActivePage(this.currentPage,Y)):V();return w};
_.g.viewTransitionConfigForSetActivePage=function(Y,b){return _.q("web_thumbnail_to_watch_transition")&&(Y==null?void 0:Y.is)==="ytd-browse"&&this.isWatchPage(b)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(Y==null?void 0:Y.is)==="ytd-browse"&&(b==null?void 0:b.is)==="ytd-browse"&&Y!==b?this.applySlideTransition?{transitionType:"slide"}:{transitionType:"zoom"}:(Y==null?void 0:Y.is)!=="ytd-browse"||(b==null?void 0:b.is)!=="ytd-watch-learning-journey"&&
(b==null?void 0:b.tagName.toLowerCase())!=="ytd-watch-learning-journey"?{viewTransitionOptions:{shouldWrap:!1}}:{transitionType:"learning-journey"}};
_.g.updatePageData=function(Y){var b=this,w=this.data;this.updatePageDataJobId&&_.Lb.cancelJob(this.updatePageDataJobId);this.data=Y;return new _.hh(function(V){var H=function(){Y.filler?b.performDataUpdate(Y,w):yUt(function(){b.performDataUpdate(Y,w)});
var X=_.Kp();_.iy(X,"cr")||X.processSignal("cr");V()},f=function(){Y&&Y.page==="watch"?b.updatePageDataJobId=_.vv(_.Lb,H):H()};
if(_.q("kevlar_enable_mss_page_modules_client")&&Y){var E=_.fH().resolve(_.$i),U=b.getModuleNameForType(Y.page);(E=tzg(E,[U]))?E.then(f):f()}else f()})};
_.g.isDownloadsPage=function(Y){var b,w;return(Y==null?void 0:(b=Y.endpoint)==null?void 0:(w=b.browseEndpoint)==null?void 0:w.browseId)==="FEdownloads"};
_.g.setPlayerSyncInterval=function(Y){var b;return _.c(function(w){if(w.nextAddress==1)return _.D(w,_.fH().resolve(_.EH),2);b=w.yieldResult;b.setUpPositionSyncInterval(Y);_.om(w)})};
_.g.performDataUpdate=function(Y,b){_.q("kevlar_early_popup_close")||_.Xx(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var w=!Y.filler;w&&(_.S1("lps"),_.q("config_age_report_killswitch")||Zbb());var V=bU(Y),H,f=!1;if(_.q("kevlar_remove_page_dom_on_switch")){var E=b&&bU(b);V===E&&(H=this.getCurrentPage())}H||(H=FY(this.pagePool,V));w&&GdI(this.pagePool.elementPoolPopulator,V);w&&!this.renderLoadingStateJobId&&(f=this.setActivePage(H));if(H){E=V==="watch";var U=
V==="shorts",X=V==="learning_journey_watch";_.q("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(H);if(E||U||X)H.playerData=Y.playerResponse;if(U){Y.reelWatchSequenceResponse?H.reelWatchSequenceResponse=Y.reelWatchSequenceResponse:Y.cachedReelWatchSequenceResponse?H.reelWatchSequenceResponse=Y.cachedReelWatchSequenceResponse:_.q("web_enable_cached_reel_sequence_fix")&&H.cachedReelWatchSequenceResponse&&!H.reelWatchSequenceResponse&&(H.reelWatchSequenceResponse=H.cachedReelWatchSequenceResponse);
H.currentEndpoint=Y.endpoint;var I;H.isPreviousPageShorts=!!(b==null?0:(I=b.endpoint)==null?0:I.reelWatchEndpoint);Y.cachedReelWatchSequenceResponse=Y.reelWatchSequenceResponse||Y.cachedReelWatchSequenceResponse||(b==null?void 0:b.cachedReelWatchSequenceResponse);H.cachedReelWatchSequenceResponse=Y.cachedReelWatchSequenceResponse}I=this.isDownloadsPage(Y);var k=this.isDownloadsPage(b);I&&!k?this.setPlayerSyncInterval(6E5):!I&&k&&this.setPlayerSyncInterval();_.q("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(Y,H,w,E,U,X);RQX(_.fH().resolve(_.Ck),b,Y);_.Y1(_.fH().resolve(_.dn));_.q("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(H);w?(w=typeof H.loadPage,w==="function"?(H.pageContext=NWb(this.contextSwitcher,H,H.data!==Y.response),w=function(){H.loadPage(Y.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionCoordinator&&H.is==="ytd-browse"&&f&&(V==="learning"||this.isDifferentBrowseId(Y==null?void 0:Y.endpoint,
b==null?void 0:b.endpoint))?this.applySlideTransition?MzO(this.viewTransitionCoordinator,w,{transitionType:"slide"}):MzO(this.viewTransitionCoordinator,w,{transitionType:"zoom"}):w()):_.LB(new _.BQ("b/38014653 ",[V,
H.is,H.nodeName,w,H.isAttached,b&&bU(b),this.hostElement.children.length])),_.S1("pdl")):(H.hidden=!0,Y.response.filler=!0,H.data=Y.response,this.attachPage(H));_.Ua(this.hostElement,"yt-page-data-updated",{pageType:V})}_.MY(_.Lb,function(){_.q("logging_avoid_blocking_during_navigation")&&_.YQv().transition("none");var l=QjI(),x=H;if(Y){var Q=bzg(Y),Z=w0t(Y),e;a:{if(Y.playerResponse){var O=Y.playerResponse,L;if((e=O.auxiliaryUi)==null?0:(L=e.messageRenderers)==null?0:L.upsellDialogRenderer){e=O.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(Y.response&&(e=Y.response,(O=e.overlay)==null?0:O.upsellDialogRenderer)){e=e.overlay.upsellDialogRenderer;break a}e=void 0}var r;var C;L=(r=Y.playerResponse)==null?void 0:(C=r.auxiliaryUi)==null?void 0:C.messageRenderers;r=(L==null?void 0:L.enforcementMessageViewModel)||(L==null?void 0:L.bkaEnforcementMessageViewModel);r=(r==null?void 0:r.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?r:void 0;var W;a:{if(Y.response&&(C=Y.response,(W=C.overlay)==null?0:W.commandWrapperPromoRenderer)){W=
C.overlay.commandWrapperPromoRenderer;break a}W=void 0}sjd(l,Q,Z,e,r,W,x)}})};
_.g.preparePrefetchRequest=function(Y,b,w,V,H,f){var E,U,X,I,k,l,x,Q,Z,e,O,L,r,C,W;return _.c(function(y){if(y.nextAddress==1)return!w||!(V||H||f)||_.q("kevlar_disable_background_prefetch")&&_.i1(_.CYe)()===0?y.return():(E=_.wK(b))?_.D(y,E.getPlayerPromise(),2):y.return();U=y.yieldResult;X=_.fH().resolve(_.HQ(_.LX));if(!X)return y.return();if(H)return I=_.Ud(_.nZ),Vzd(I,(k=Y.endpoint)==null?void 0:k.reelWatchEndpoint,b.reelWatchSequenceResponse,U,X),y.return();Q=(l=Y.response)==null?void 0:(x=l.responseContext)==
null?void 0:x.webResponseContextExtensionData;if(!Q)return y.return();r=(Z=Y.response)==null?void 0:(e=Z.contents)==null?void 0:(O=e.twoColumnWatchNextResults)==null?void 0:(L=O.autoplay)==null?void 0:L.autoplay;C=_.fH().resolve(_.zF);W=_.Ud(_.nZ);HAg(W,Q,U,X,C,r);_.om(y)})};
_.g.movePlayerToWatch=function(Y){var b=this,w,V;return _.c(function(H){w=FY(b.pagePool,"watch");V=w.getPlayerContainer();Y.appendTo(V);_.om(H)})};
_.g.movePlayerToShorts=function(Y){var b=this,w,V,H;return _.c(function(f){w=FY(b.pagePool,"shorts");V=w.getPlayerContainer();(H=Y)==null||H.appendTo(V,void 0,!0);_.om(f)})};
_.g.getPlayerFromWatch=function(){var Y=FY(this.pagePool,"watch");return _.wK(Y)};
_.g.getPlayerFromShorts=function(){var Y=FY(this.pagePool,"shorts");return _.wK(Y)};
_.g.startLoadingWatch=function(){var Y=FY(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Lb.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(Y)};
_.g.startLoadingShorts=function(){var Y=FY(this.pagePool,"shorts");this.setActivePage(Y)};
_.g.startLoadingLearningJourney=function(){var Y=FY(this.pagePool,"learning_journey_watch");this.setActivePage(Y)};
_.g.getCurrentPage=function(){return this.currentPage};
_.g.getDestinationPageType=function(){return this.destinationPageType};
_.g.getCurrentData=function(){return this.data};
_.g.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.g.isOnShorts=function(){var Y;return((Y=this.currentPage)==null?void 0:Y.is)==="ytd-shorts"};
_.g.isWatchPage=function(Y){return!!Y&&(Y.is==="ytd-watch-flexy"||Y.is==="ytd-watch-fixie"||Y.is==="ytd-watch-grid")};
_.g.preparePage=function(Y,b){var w=this,V=function(){var E=w.pagePool.preparePage(Y,w.currentPage,b);E&&w.attachPage(E)},H=function(E){_.aY(E,b);
_.Sk(E)};
if(_.q("kevlar_enable_mss_page_modules_client")){var f=this.getModuleNameForType(Y);if(f=tzg(_.fH().resolve(_.$i),[f])){f.then(V.bind(this)).catch(H.bind(this));return}}try{V()}catch(E){H(E)}};
_.g.lazyPrepareCriticalPages=function(Y,b){Y=_.xy(b)||Y;_.q("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(Y).then(this.maybePrepareWatchPage.bind(this,Y)):this.maybePrepareWatchPage(Y)};
_.g.maybePrepareWatchPage=function(Y){Y!=="watch"&&_.MY(_.Lb,this.preparePage.bind(this,"watch"))};
_.g.downloadPageModules=function(Y){Y=this.getModuleNameForType(Y);var b=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);b.delete(Y);var w=_.fH().resolve(_.$i);w.JSC$16378_loadModules(Y);return w.JSC$16378_loadModules.apply(w,_.Bt(b))};
_.g.renderPageLoadingState=function(Y,b){this.preparePage(Y,b);var w=FY(this.pagePool,Y);w.loadingData&&(w.loadingData.endpoint=b);w.loading=!0;this.setActivePage(w);Y!=="watch"&&Y!=="learning_journey_watch"||_.Ua(this.hostElement,"yt-guide-close")};
_.g.prepareForNavigation=function(Y,b){var w=this;if(this.currentPage&&this.data){var V=_.xy(b)||Y;this.destinationPageType=V;bU(this.data)==V&&_.Ua(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((Y==="watch"||Y==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Lb.cancelJob(this.renderLoadingStateJobId);_.fH().resolve(_.Ck).deactivate(b);var H=this.data;this.renderLoadingStateJobId=_.ps(_.Lb,function(){if(w.data!=
H){var f=FY(w.pagePool,Y);w.setActivePage(f)}else w.renderPageLoadingState(Y,b);w.renderLoadingStateJobId=0},150)}};
_.g.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var Y=new _.NS(1);this.currentPage.pageDisposeJobs.forEach(function(b){_.ES(Y,b)});
this.pageDisposeJobsets.set(this.currentPage,Y)}};
_.g.flushPageDisposeJobset=function(Y){var b=this.pageDisposeJobsets.get(Y);b&&(b.flushJobs(),this.pageDisposeJobsets.delete(Y))};
_.g.onYtStopOldPlayer=function(Y,b){b=b===void 0?!1:b;var w,V=_.XO("kevlar_new_stop_old_player_logic_pages");if(_.q("kevlar_check_current_page_on_stop_old_player")&&(V.length===0||this.currentPage&&V.includes(this.currentPage.is)))if(this.data&&(w=bU(this.data)),bU(Y)===w&&this.currentPage&&bU(this.currentPage.data)!==w)var H=_.wK(this.currentPage);else w=bU(this.data),H=FY(this.pagePool,w),H=_.wK(H);else this.data&&(w=bU(this.data),H=FY(this.pagePool,w),H=_.wK(H));if(H)if(Y=bU(Y),V=FY(this.pagePool,
Y),V=_.wK(V),H==V)b&&!_.q("kevlar_disable_preemptive_player_reset")&&H.resetForNewPlayback();else if(b=w==="watch"&&Y!=="watch",!b||Y==="shorts"||_.J0k()&&!xnN(this.data)&&Y!=="yts-products"&&Y!="mini_app"&&Y!="playables")w=_.fH().resolve(_.Ck),b&&w.isMiniplayerActive()&&w.pipController.getWindow()||H.stop()};
_.g.setupPageTransitionAnimation=function(){var Y=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionCoordinator){Go(this.viewTransitionCoordinator,"slide",{beforeTransition:function(){Y.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){Y.hostElement.style.viewTransitionName=""}});
Go(this.viewTransitionCoordinator,"zoom",{beforeTransition:function(){Y.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){Y.hostElement.style.viewTransitionName=""}});
var b=_.cQ("web_page_transition_exit_ms"),w=_.cQ("web_page_transition_wait_ms"),V=_.cQ("web_page_transition_enter_ms");if(!isNaN(b)||!isNaN(w)||!isNaN(V))if(b=BaF(P$7,b,w,V))w=document.createElement("style"),w.textContent=_.vMG(b),document.head.appendChild(w)}};
_.g.isDifferentBrowseId=function(Y,b){Y=_.v(Y,_.QU);b=_.v(b,_.QU);return(Y==null?void 0:Y.browseId)!==(b==null?void 0:b.browseId)};
_.up.Object.defineProperties(yO,{template:{configurable:!0,enumerable:!0,get:function(){return vXN()}}});
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],yO.prototype,"ytActionHandlerBehavior",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-page-manager"})],yO);_.a(yO,"ytd-page-manager",function(){return vXN()},{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var $e=function(Y,b,w){w=w===void 0?!1:w;_.BE.call(this);this.draggableElement=Y;this.callbacks=b;this.allowClicks=w;this.dragOccurred=!1;this.internalDragger=new _.W2(this.draggableElement);this.dragDelay=new _.wO(this.delayedDrag.bind(this));ZnF(this);this.allowClicks&&(_.NxC(this.internalDragger,5),Y.addEventListener("click",_.Io(this,this.validateClick),{capture:!0}))};
_.P($e,_.BE);var ZnF=function(Y){_.ez(Y.internalDragger,"earlycancel",function(){Y.allowClicks&&(Y.dragOccurred=!1)});
_.ez(Y.internalDragger,"start",function(b){var w,V;(V=(w=Y.callbacks).onStartDrag)==null||V.call(w,b);!b.defaultPrevented&&Y.allowClicks&&(Y.dragOccurred=!0)});
_.ez(Y.internalDragger,"beforedrag",function(b){b.preventDefault();Y.lastOffset=new _.eq(b.clientX-Y.internalDragger.startX,b.clientY-Y.internalDragger.startY);Y.dragDelay.start()});
_.ez(Y.internalDragger,"end",function(){Y.dragDelay.stop();var b,w;(w=(b=Y.callbacks).onEndDrag)==null||w.call(b);Y.lastOffset=void 0})};
$e.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
$e.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Io(this,this.validateClick),{capture:!0})};
$e.prototype.validateClick=function(Y){this.dragOccurred&&(this.dragOccurred=!1,Y.stopPropagation(),Y.preventDefault())};var jb=function(Y,b){_.BE.call(this);this.JSC$17821_resizeContainer=Y;this.callbacks=b;this.aspectRatio=16/9;this.JSC$17821_resizers=[];Y=_.N(this.JSC$17821_resizeContainer.children);for(b=Y.next();!b.done;b=Y.next())B9t(this,b.value)};
_.P(jb,_.BE);jb.prototype.disposeInternal=function(){for(var Y=_.N(this.JSC$17821_resizers),b=Y.next();!b.done;b=Y.next())b.value.dispose();Y=_.N(this.JSC$17821_resizeContainer.children);for(b=Y.next();!b.done;b=Y.next())b.value.setAttribute("disabled","");this.JSC$17821_resizers.length=0};
jb.prototype.setSize=function(Y){this.currentMiniplayerSize=Y};
jb.prototype.setAspectRatio=function(Y){this.aspectRatio=Y};
jb.prototype.update=function(Y,b){for(var w=_.N(this.JSC$17821_resizeContainer.children),V=w.next();!V.done;V=w.next()){V=V.value;var H=V.getAttribute("alignment");_.XM(V,"disabled",H===Y||H===b)}};
var B9t=function(Y,b){var w=b.getAttribute("alignment"),V=new $e(b,{onStartDrag:function(H){if(b.hasAttribute("disabled"))H.preventDefault();else{Y.dragStartSize=Y.currentMiniplayerSize;var f,E;(E=(f=Y.callbacks).onStartResize)==null||E.call(f)}},
onDrag:function(H){if(Y.dragStartSize){w!=="north"&&w!=="west"||H.scale(-1);var f=w==="north"||w==="south";H=f?H.y:H.x;f&&Y.aspectRatio>=1?H*=Y.aspectRatio:!f&&Y.aspectRatio<1&&(H/=Y.aspectRatio);Y.callbacks.onResize(Y.dragStartSize+H)}}});
Y.JSC$17821_resizers.push(V)};var nX7,MoR=function(){return nX7!==void 0?nX7:nX7=document.createElement("template")};
document.head.appendChild(MoR().content);var eKR;var pzb=_.b8(function(Y){var b=_.GM("yt-draggable"),w=Y.onDrag,V=Y.onDragStart,H=Y.onDragEnd,f=_.ur(Y,{allowClicks:!1,dragThreshold:5}),E=f.dragThreshold,U=f.allowClicks;Y=f.children;f=f.className;var X=void 0,I=void 0,k=new _.eq(0,0),l=!1;_.dx(function(){X=new _.W2(b.value);I=new _.wO(Q);x(X,I);if(U()){_.NxC(X,E());var e;(e=b.value)==null||e.addEventListener("click",Z,{capture:!0})}_.R2(function(){var O;(O=X)==null||O.dispose();if(U()){var L;(L=b.value)==null||L.removeEventListener("click",Z,{capture:!0})}})});
var x=function(e,O){_.ez(e,"earlycancel",function(){U()&&(l=!1)});
_.ez(e,"start",function(L){V==null||V(L);L.defaultPrevented||U()&&(l=!0)});
_.ez(e,"beforedrag",function(L){X&&I&&(L.preventDefault(),k=new _.eq(L.clientX-X.startX,L.clientY-X.startY),I.start())});
_.ez(e,"end",function(){O.stop();H==null||H();k=new _.eq(0,0)})},Q=function(){k&&w(k)},Z=function(e){l&&(l=!1,e.stopPropagation(),e.preventDefault())};
return _.m("yt-draggable",{el:b,class:_.hj("ytDraggableComponentHost",f)},Y)},"og");var Ong=_.b8(function(Y){var b=_.N(_.kw(0,void 0,"CvAwBd")),w=b.next().value,V=b.next().value;b=function(H){var f={},E={};return _.m(pzb,{className:_.hj("ytdMiniplayerComponentResizer",(f.ytdMiniplayerComponentResizerDisabled=function(){return H===Y.horizontalAlignment()||H===Y.verticalAlignment()},f.ytdMiniplayerComponentResizerNorth=H==="north",f.ytdMiniplayerComponentResizerEast=H==="east",f.ytdMiniplayerComponentResizerSouth=H==="south",f.ytdMiniplayerComponentResizerWest=H==="west",f)),
onDragStart:function(){V(Y.currentMiniplayerSize());if(Y.onResizeStart)Y.onResizeStart()},
onDrag:function(U){H!=="north"&&H!=="west"||U.scale(-1);var X;U=(X=H==="north"||H==="south")?U.y:U.x;var I=Y.currentAspectRatio();X&&I>=1?U*=I:!X&&I<1&&(U/=I);X=U;Y.onResize(w()+X)}},_.m("div",{class:_.hj("ytdMiniplayerComponentResizerCorner",(E.ytdMiniplayerComponentResizerNorthCorner=H==="north",E.ytdMiniplayerComponentResizerEastCorner=H==="east",E.ytdMiniplayerComponentResizerSouthCorner=H==="south",E.ytdMiniplayerComponentResizerWestCorner=H==="west",E))}))};
return _.m("div",{class:"ytdMiniplayerComponentResizers"},b("north"),b("east"),b("south"),b("west"))},"pg");var toI=16/9,RKX=_.b8(function(){var Y=_.GM("ytd-miniplayer"),b=_.N(_.kw(new _.mE(NaN,NaN),void 0,"YeKki")),w=b.next().value,V=b.next().value;b=_.N(_.kw(!1,void 0,"DcXgUd"));var H=b.next().value,f=b.next().value;b=_.N(_.kw(!1,void 0,"aDeXOc"));var E=b.next().value,U=b.next().value;b=_.N(_.kw(!1,void 0,"JpZfjb"));var X=b.next().value,I=b.next().value;b=_.N(_.kw(!1,void 0,"EmCWpc"));var k=b.next().value,l=b.next().value;b=_.N(_.kw(!1,void 0,"ovvtt"));var x=b.next().value,Q=b.next().value;b=_.N(_.kw(!1,
void 0,"wPIoNd"));var Z=b.next().value,e=b.next().value;b=_.N(_.kw(toI,void 0,"AmisJf"));var O=b.next().value,L=b.next().value,r=_.N(_.kw(!1,void 0,"uNKP1c"));b=r.next().value;var C=r.next().value;r=_.N(_.kw(!1,void 0,"n9hvIf"));var W=r.next().value,y=r.next().value;r=_.N(_.kw(void 0,void 0,"Sjx4Dc"));var G=r.next().value,Nr=r.next().value;r=_.N(_.kw(_.zO("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var o6=r.next().value,lI=r.next().value;r=_.N(_.kw("south",void 0,"jyzxy"));var Zt=r.next().value,
eL=r.next().value;r=_.N(_.kw(400,void 0,"JFUs2d"));var OM=r.next().value,iI=r.next().value,rB=_.fH().resolve(_.Ck).miniplayerPropSignalMap[0],Tj=rB.data,J_=rB.externalPlaylistData;r=rB.toastData;var B9=rB.playabilityStatus,ok=rB.isReadyToResume,Ut=rB.isDisabled,wt=rB.watchWhile,X$=rB.playerVe,Dg=rB.expandVe,eQ=rB.closeVe,cg=rB.readyToResumeVe,qQ=rB.readyToResumeCloseVe,t_=rB.repositionVe,$s=rB.resizeVe;rB=_.N(_.Zp(ok));var P9=rB.next().value,$d=rB.next().value,Kh=!1,yr=!1,gU;_.dx(function(){V(_.Z8());
Y.value.addEventListener("animationend",function(W9){W9.target===Y.value&&(Q(!1),e(!1))});
PnA(Y.value)});
_.jk("yt-window-resized",function(W9){W9&&V(W9)});
var rU=function(){gU&&L(gU.getVideoAspectRatio())},xs=function(){if(gU){var W9=gU.getPlayerState()===1;
P9()&&W9&&$d(!1)}},xd=function(){var W9=Dg();
if(W9){var tO=_.dO(3);tO&&_.J1(tO,W9)}},MQ=function(){var W9=eQ(),tO=qQ();
W9&&_.J1(_.dO(3),W9);ok()&&tO&&_.J1(_.dO(3),tO)};
_.jk("yt-activate-miniplayer",function(W9){var tO;return _.c(function(uQ){if(uQ.nextAddress==1)return H()?uQ.return():_.D(uQ,(tO=_.fH().resolve(_.Ck).getPlayerElement())==null?void 0:tO.getPlayerPromise(),2);gU=uQ.yieldResult;if(!gU)return uQ.return();!W()&&_.q("kevlar_watch_while_v2")&&(eL(W9&&!_.q("kevlar_watch_while_bottom_align")?"north":"south"),lI(_.zO("HTML_DIR")==="rtl"?"west":"east"));var Vt=gU;Vt.addEventListener("onVideoDataChange",rU);Vt.addEventListener("onStateChange",xs);Vt.addEventListener("onExpandMiniplayer",
xd);Vt.addEventListener("onCloseMiniplayer",MQ);L(gU.getVideoAspectRatio());f(!0);v7X()||Q(!0);_.om(uQ)})});
_.jk("yt-deactivate-miniplayer",function(W9){return _.c(function(tO){if(!H())return tO.return();f(!1);$d(!1);e(W9);l(!1);U(!1);if(gU){var uQ=gU;uQ.removeEventListener("onVideoDataChange",rU);uQ.removeEventListener("onStateChange",xs);uQ.removeEventListener("onExpandMiniplayer",xd);uQ.removeEventListener("onCloseMiniplayer",MQ)}v7X()||Q(!0);_.om(tO)})});
var DA=function(){return!(wt()&&_.q("kevlar_watch_while_modern"))},Eu=function(){var W9;
return!((W9=J_())==null||!W9.contents)},EX=function(){var W9=OM();
var tO=w();tO=Math.min(Math.min(tO.width,tO.height)-32,720);var uQ=O(),Vt=DA(),dl=Eu()&&E(),Lh=Math.min(W9,tO);W9=new _.mE(192,Vt?116:192);uQ=Vmg(new _.mE(dl?toI:uQ,1),new _.mE(Lh,Vt?Lh-76:Lh));W9.width<=uQ.width&&W9.height<=uQ.height||(wXR(uQ,W9),uQ.width=Math.min(uQ.width,tO),uQ.height=Math.min(uQ.height,tO));return new _.mE(uQ.width,_.rp(192,uQ.height+ewg(Vt,dl),720))},q6=function(){var W9=EX(),tO=DA(),uQ=Eu()&&E();
return new _.mE(W9.width,W9.height-ewg(tO,uQ))},W1=function(){var W9=function(tO){tO.target===Y.value&&k()&&(l(!1),Y.value.removeEventListener("transitionend",W9))};
v7X()||(Y.value.addEventListener("transitionend",W9),l(!0));U(!E())};
_.tl(function(){var W9=X$(),tO=_.dO(3),uQ=_.R3(3);if(tO&&uQ&&W9){_.yX(tO,uQ,W9);uQ=t_();var Vt=$s(),dl=Dg(),Lh=eQ(),ea=qQ();dl&&Lh&&ea&&(_.$7(tO,W9,[dl,Lh,ea]),_.Gu(tO,[dl,Lh]));uQ&&Vt&&_.$7(tO,W9,[uQ,Vt])}},"yiTJkc");
_.tl(function(){var W9=cg();if(W9){var tO=_.dO(0),uQ=_.R3(0);tO&&uQ&&(_.yX(tO,uQ,W9),_.Gu(tO,[W9]))}},"fy89qe");
rB={};return _.m("ytd-miniplayer",{el:Y,class:_.hj("ytdMiniplayerComponentHost",(rB.ytdMiniplayerComponentVisible=function(){return H()||x()},rB.ytdMiniplayerComponentAnimatingSnap=X,rB.ytdMiniplayerComponentAnimatingPlaylistExpand=k,rB.ytdMiniplayerComponentAnimatingFade=x,rB),function(){if(x()){var W9=Zt();
var tO=H(),uQ=Z();W9=tO?W9==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":uQ?W9==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":W9==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else W9="";return W9}),
style:_.Bb({top:function(){return Zt()==="north"?"16px":""},
right:function(){return o6()==="east"?"16px":""},
bottom:function(){return Zt()==="south"?"16px":""},
left:function(){return o6()==="west"?"16px":""},
width:function(){return EX().width+"px"},
height:function(){return EX().height+"px"},
transform:function(){var W9=G();return W9?"translate("+W9.x+"px, "+W9.y+"px)":""}})},_.m("div",{class:"ytdMiniplayerComponentContent"},_.m(pzb,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(W9){var tO=M1t(o6(),Zt(),w(),EX(),G()),uQ=q6();Math.abs(W9.clientY-(tO.y+uQ.height))>15?(C(!0),W9=_.dO(3),tO=t_(),Kh||(Kh=!0,W9&&tO&&_.Gu(W9,[tO])),W9&&tO&&_.J1(W9,tO)):W9.preventDefault()},
onDrag:function(W9){Nr(W9)},
onDragEnd:function(){var W9=ZzF(M1t(o6(),Zt(),w(),EX(),G()),w(),EX()),tO=n7d(o6(),Zt(),w(),EX()),uQ=n7d(W9.horizontalAlignment,W9.verticalAlignment,w(),EX());uQ=new _.eq(uQ.x-tO.x,uQ.y-tO.y);var Vt;tO=tO.y+(((Vt=G())==null?void 0:Vt.y)||0)+EX().height/2;var dl=function(){o6()===W9.horizontalAlignment&&Zt()===W9.verticalAlignment||y(!0);lI(W9.horizontalAlignment);eL(W9.verticalAlignment);Nr(void 0)},Lh=function(ea){ea.target===Y.value&&X()&&(I(!1),dl(),Y.value.removeEventListener("transitionend",Lh))};
C(!1);Zt()==="south"&&tO>w().height?(dl(),_.fH().resolve(_.Ck).close()):(Y.value.addEventListener("transitionend",Lh),I(!0),Nr(uQ))}},_.m(_.h,{cond:H,
then:function(){return _.m(_.dFN,{isDisabled:Ut,playabilityStatus:B9,size:q6})}}),_.m(_.h,{cond:DA,
then:function(){return _.m(_.tXX,{isReadyToResume:P9,data:Tj,expanded:E,onExpandClick:W1,playlistData:J_})}}),_.m(_.h,{cond:b,
then:function(){return _.m("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.m(_.h,{cond:function(){return Eu()&&E()||k()},
then:function(){return _.m(_.VG$,{className:"ytdMiniplayerComponentPlaylistPanel",data:J_,hideHeaderText:!0,withinMiniplayer:!0})}}),_.m("div",{class:"ytdMiniplayerComponentToast"},_.m(_.FdI,{toastData:r}))),_.m(Ong,{onResize:function(W9){iI(_.rp(192,W9,720))},
onResizeStart:function(){var W9=_.dO(3),tO=$s();yr||(yr=!0,W9&&tO&&_.Gu(W9,[tO]));W9&&tO&&_.J1(W9,tO)},
currentAspectRatio:O,currentMiniplayerSize:OM,horizontalAlignment:o6,verticalAlignment:Zt}))},"qg");_.q("ytd_miniplayer_to_wiz")&&_.f_(RKX,"ytd-miniplayer",{});_.f_(_.FdI,"ytd-miniplayer-toast",{props:{toastData:_.YX}});var dSg=16/9,FuR=new _.mE(400,400/dSg),Gq=function(){var Y=_.F.apply(this,arguments)||this;Y.active=!1;Y.hasNoData=!1;Y.enabled=!1;Y.expanded=!1;Y.readyToResume=!1;Y.isDisabled=!1;Y.externalPlaylistData={};Y.premiumBadges=[];Y.watchWhile=!1;Y.playerState=null;Y.verticalAttachment="south";Y.horizontalAttachment=_.zO("HTML_DIR")==="rtl"?"west":"east";Y.isAnimatingFade=!1;Y.isAnimatingSnap=!1;Y.isAnimatingExpand=!1;Y.isDragging=!1;Y.playerHidden=!1;Y.hasPlaylistData=!1;Y.closed=!1;Y.expandedClosed=!1;
Y.isForReadyToResume=!1;Y.watchResponse=null;Y.player=null;Y.playerVe=null;Y.expandVe=null;Y.closeVe=null;Y.readyToResumeCloseVe=null;Y.disabledInitialStateIsPlaying=!1;Y.PLAYER_EVENTS=new Map;Y.aspectRatio=dSg;Y.currentMiniplayerSize=400;Y.userSetSize=!1;Y.userSetPosition=!1;Y.userHasDragged=!1;Y.maxMiniplayerSize=720;Y.transform=new _.eq(0,0);Y.windowDimensions=new _.mE(NaN,NaN);Y.dimensions=FuR;Y.screenLayer=3;Y.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return Y};
_.P(Gq,_.F);_.g=Gq.prototype;_.g.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()};
_.g.ready=function(){this.setUpDragging();this.setUpResizing()};
_.g.attached=function(){this.onWindowResized(_.Z8());this.hostElement.addEventListener("animationend",_.Io(this,this.resetFadingAnimation))};
_.g.detached=function(){this.hostElement.removeEventListener("animationend",_.Io(this,this.resetFadingAnimation))};
_.g.resetFadingAnimation=function(Y){Y.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.g.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.g.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.g.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var Y=_.dO(this.screenLayer);this.readyToResumeCloseVe&&Y&&_.Gu(Y,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.g.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var Y=_.dO(0),b=_.R3(0);Y&&b&&(_.yX(Y,b,this.readyToResumeVe),_.Gu(Y,[this.readyToResumeVe]))}};
_.g.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var Y=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=Y===-1||Y===1||Y===3)&&this.player.pauseVideo()}};
_.g.activate=function(Y,b){b=b===void 0?!1:b;var w=this,V;return _.c(function(H){if(H.nextAddress==1)return w.setInitialActivatePositioning(b),w.enabled=!0,w.active=!0,w.expanded=!1,w.closed=!1,w.expandedClosed=!1,w.watchWhileHidden||(w.isAnimatingFade=!0),_.fH().resolve(_.zF).setPlaylistComponent(w.JSC$17832_playlistPanel),Y.appendTo(w.playerContainer),_.D(H,Y.getPlayerPromise(),2);V=H.yieldResult;V.setSizeStyle(!1,!0);w.ytPlayerListenerBehavior.listenToPlayerEvents(V,w.PLAYER_EVENTS);w.player=V;
w.watchWhile&&_.q("kevlar_watch_while_minimum_size")&&w.setMiniplayerSize(192);w.setAspectRatio(w.player.getVideoAspectRatio());w.onIsDisabledChanged();_.om(H)})};
_.g.setInitialActivatePositioning=function(Y){if(!this.userSetPosition&&_.q("kevlar_watch_while_v2")){this.verticalAttachment=Y&&!_.q("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.zO("HTML_DIR")==="rtl"?"west":"east";var b;(b=this.JSC$17832_resizers)==null||b.update(this.horizontalAttachment,this.verticalAttachment)}};
_.g.deactivate=function(Y,b){var w=this;return _.c(function(V){if(!w.active)return V.return();Y||(w.expanded?w.expandedClosed=!0:w.closed=!0);w.active=!1;w.isForReadyToResume=!1;b&&_.q("kevlar_watch_while_counterfactual")||(w.isAnimatingFade=!0);w.player&&w.ytPlayerListenerBehavior.unlistenFromPlayerEvents(w.player,w.PLAYER_EVENTS);w.player=null;_.om(V)})};
_.g.onMetadataTap=function(Y){this.expandVe&&(Y===void 0||Y)&&(Y=_.dO(this.screenLayer))&&_.J1(Y,this.expandVe);_.q2(_.fH().resolve(_.Ck))};
_.g.onDisabledTap=function(Y){Y.target===_.E6(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.g.onPlaylistExpandTap=function(Y){if(this.hasPlaylistData){Y=_.JL(Y)||[];Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;if(b===this.hostElement)break;if(b.classList&&b.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.g.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Io(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.g.animatedResizePlaylist=function(Y){Y.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Io(this,this.animatedResizePlaylist)))};
_.g.getExpandIcon=function(Y){return Y?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.g.onPlayerVideoDataChange=function(){var Y,b=(Y=this.player)==null?void 0:Y.getVideoAspectRatio();b&&b!==this.aspectRatio&&this.setAspectRatio(b)};
_.g.setAspectRatio=function(Y){if(this.active){this.aspectRatio=Y;this.updateDimensionsAndResize();var b;(b=this.JSC$17832_resizers)==null||b.setAspectRatio(Y)}};
_.g.updateDimensionsAndResize=function(){var Y=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),b=this.expanded?dSg:this.aspectRatio,w=new _.mE(192,this.showInfoBar?116:192);Y=Vmg(new _.mE(b,1),new _.mE(Y,this.showInfoBar?Y-76:Y));w.width<=Y.width&&w.height<=Y.height||(wXR(Y,w),Y.width=Math.min(Y.width,this.maxMiniplayerSize),Y.height=Math.min(Y.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&b<=1?Math.max(Y.width,Y.height)+76:Math.max(Y.width,Y.height)));this.dimensions=
new _.mE(Y.width,this.clamp(Y.height+this.getNonPlayerHeight()));this.resize()};
_.g.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var Y=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=Y.height+"px";var b;(b=this.player)==null||b.setInternalSize(Y.width,Y.height)};
_.g.getPlayerSize=function(Y){var b=Math.max(0,Y.height-this.getNonPlayerHeight());return new _.mE(Y.width,b)};
_.g.getNonPlayerHeight=function(){var Y=0;this.showInfoBar&&(Y+=76);this.expanded&&(Y+=285);return Y};
_.g.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.fH().resolve(_.Ck).close()};
_.g.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.g.logClosingClick=function(){this.closeVe&&_.J1(_.dO(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.J1(_.dO(this.screenLayer),this.readyToResumeCloseVe)};
_.g.onPlayerExpandMiniplayer=function(){if(this.expandVe){var Y=_.dO(this.screenLayer);Y&&_.J1(Y,this.expandVe)}};
_.g.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var Y=this.playerState===1;this.continueWatching&&Y&&(this.continueWatching=!1);this.premiumBadges.length&&Y&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.g.getScreenLayer=function(){return this.screenLayer};
_.g.logMiniplayer=function(){var Y=_.dO(this.screenLayer),b=_.R3(this.screenLayer);Y&&b&&this.playerVe&&(_.yX(Y,b,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.$7(Y,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Gu(Y,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.$7(Y,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.g.computePlaylistData=function(Y,b){return b};
_.g.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.g.computeExpandButtonHidden=function(Y,b,w){return!Y||!b||w};
_.g.computePlaylistIndexHidden=function(Y,b){return!Y||b};
_.g.computePlaylistPanelHidden=function(Y,b){return!b&&!Y};
_.g.computeExpandButtonLabel=function(Y){return Y?_.sa("MINIPLAYER_COLLAPSE_LABEL"):_.sa("MINIPLAYER_EXPAND_LABEL")};
_.g.computeDisabledStateCloseButtonLabel=function(){return _.sa("MINIPLAYER_CLOSE",void 0,"Close")};
_.g.onWindowResized=function(Y){Y&&(Y=this.windowDimensions=Y,this.maxMiniplayerSize=Math.min(Math.min(Y.width,Y.height)-32,720),this.updateDimensionsAndResize())};
_.g.setUpResizing=function(){var Y=this;this.JSC$17832_resizers||(this.JSC$17832_resizers=new jb(this.JSC$17832_resizeContainer,{onStartResize:function(){Y.handleResizeStart()},
onResize:function(b){Y.handleResize(b)}}),this.JSC$17832_resizers.setSize(this.currentMiniplayerSize),this.JSC$17832_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.g.handleResizeStart=function(){var Y=_.dO(this.screenLayer);this.userSetSize||(this.userSetSize=!0,Y&&this.resizeVe&&_.Gu(Y,[this.resizeVe]));Y&&this.resizeVe&&_.J1(Y,this.resizeVe)};
_.g.handleResize=function(Y){this.setMiniplayerSize(Y);this.updateDimensionsAndResize()};
_.g.setUpDragging=function(){var Y=this;this.JSC$17832_dragger||(this.JSC$17832_dragger=new $e(this.draggableContainer,{onStartDrag:function(b){!Y.isSafeToDrag(b)||Y.isAnimatingSnap?b.preventDefault():Y.handleDragStart()},
onDrag:function(b){Y.transform=b;Y.setTransform(Y.transform)},
onEndDrag:function(){Y.handleDragEnd()}},!0))};
_.g.handleDragStart=function(){this.isDragging=!0;var Y=_.dO(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,Y&&this.repositionVe&&_.Gu(Y,[this.repositionVe]));Y&&this.repositionVe&&_.J1(Y,this.repositionVe)};
_.g.handleDragEnd=function(){this.isDragging=!1;var Y=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&Y>this.windowDimensions.height&&_.fH().resolve(_.Ck).close();this.animateSnapToCorner()};
_.g.animateSnapToCorner=function(){var Y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),b=this.getNearestAttachments();b=this.getGlobalPositionFromAttachments(b.horizontalAttachment,b.verticalAttachment);Y=new _.eq(b.x-Y.x,b.y-Y.y);this.isAnimatingSnap=!0;this.setTransform(Y);this.hostElement.addEventListener("transitionend",_.Io(this,this.endSnapAnimation))};
_.g.endSnapAnimation=function(Y){Y.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Io(this,this.endSnapAnimation)),this.endDrag())};
_.g.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.g.setTransform=function(Y){this.hostElement.style.transform=Y?"translate("+Y.x+"px, "+Y.y+"px)":""};
_.g.getGlobalPositionFromAttachments=function(Y,b){return new _.eq(Y==="west"?16:this.windowDimensions.width-this.dimensions.width-16,b==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.g.updateAttachments=function(){var Y=this.getNearestAttachments();if(this.horizontalAttachment!==Y.horizontalAttachment||this.verticalAttachment!==Y.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=Y.horizontalAttachment;this.verticalAttachment=Y.verticalAttachment;var b;(b=this.JSC$17832_resizers)==null||b.update(this.horizontalAttachment,this.verticalAttachment)};
_.g.getNearestAttachments=function(){var Y=this.getCurrentGlobalPosition();return{horizontalAttachment:Y.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:Y.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.g.getCurrentGlobalPosition=function(){var Y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return B5d(Y,this.transform)};
_.g.isSafeToDrag=function(Y){var b=this.playerContainer.getBoundingClientRect();return Math.abs(Y.clientY-(b.y+b.height))>15};
_.g.setMiniplayerSize=function(Y){this.currentMiniplayerSize=this.clamp(Y);var b;(b=this.JSC$17832_resizers)==null||b.setSize(this.currentMiniplayerSize)};
_.g.clamp=function(Y){return _.rp(192,Y,720)};
_.g.registerViewTransitionTasks=function(){var Y=this,b=_.fH().resolve(_.HQ(_.N2));if(b){var w={beforeTransition:function(){Y.hostElement&&(Y.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){Y.hostElement&&(Y.hostElement.style.viewTransitionName="")}};
Go(b,"slide",w);Go(b,"zoom",w)}};
_.up.Object.defineProperties(Gq.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.q("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:_.sa("CONTINUE_WATCHING",void 0,"Continue watching")};var Y;if((Y=this.externalPlaylistData)==null?0:Y.contents)return this.externalPlaylistData.titleText;var b;return(b=this.data)==null?void 0:b.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.externalPlaylistData)==null?0:Y.contents){var b;return(b=_.Yqv(this.externalPlaylistData))==null?void 0:b.title}var w;return(w=this.data)==null?void 0:w.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var Y,b,w,V;return((Y=this.externalPlaylistData)==null?void 0:Y.currentIndex)!==void 0&&((b=this.externalPlaylistData)==null?0:b.totalVideos)&&!((w=this.data)==null?0:(V=w.playlistData)==null?0:V.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.f6u(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.q("kevlar_watch_while_counterfactual")}}});
Gq.prototype.onIsDisabledChanged=Gq.prototype.onIsDisabledChanged;Gq.prototype.readyToResumeVeChanged=Gq.prototype.readyToResumeVeChanged;Gq.prototype.premiumBrandingChanged=Gq.prototype.premiumBrandingChanged;Gq.prototype.onPlayerVeChange=Gq.prototype.onPlayerVeChange;Gq.prototype.hasPlaylistDataChanged=Gq.prototype.hasPlaylistDataChanged;_.z([_.n(_.y3.YtPlayerListenerBehavior),_.K("design:type",_.$I)],Gq.prototype,"ytPlayerListenerBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Gq.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Gq.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Gq.prototype,"ytdReduxBehavior",void 0);_.z([_.xZ("#draggable"),_.K("design:type",HTMLDivElement)],Gq.prototype,"draggableContainer",void 0);
_.z([_.xZ("#resize-container"),_.K("design:type",HTMLDivElement)],Gq.prototype,"JSC$17832_resizeContainer",void 0);_.z([_.xZ("#video-container"),_.K("design:type",HTMLDivElement)],Gq.prototype,"videoContainer",void 0);_.z([_.xZ("#player-container"),_.K("design:type",HTMLDivElement)],Gq.prototype,"playerContainer",void 0);_.z([_.xZ("#playlist"),_.K("design:type",HTMLDivElement)],Gq.prototype,"JSC$17832_playlistPanel",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"active",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"hasNoData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"enabled",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"expanded",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"readyToResume",void 0);
_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"isDisabled",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"externalPlaylistData",void 0);_.z([_.R(),_.K("design:type",Array)],Gq.prototype,"premiumBadges",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"toastData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"watchWhile",void 0);_.z([_.R(),_.K("design:type",Boolean)],Gq.prototype,"premiumBranding",void 0);
_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"playerState",void 0);_.z([_.R(),_.K("design:type",Boolean)],Gq.prototype,"continueWatching",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],Gq.prototype,"verticalAttachment",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],Gq.prototype,"horizontalAttachment",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"isAnimatingFade",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"isAnimatingSnap",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"isAnimatingExpand",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"isDragging",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"playerHidden",void 0);
_.z([_.R({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.K("design:type",Object)],Gq.prototype,"playlistData",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.K("design:type",Object)],Gq.prototype,"hasPlaylistData",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"closed",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Gq.prototype,"expandedClosed",void 0);
_.z([_.R({selector:_.mmL}),_.K("design:type",Boolean)],Gq.prototype,"isSingleOptionSurveyActive",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.Sl}),_.K("design:type",Boolean)],Gq.prototype,"isWatchPage",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("watchWhile"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gq.prototype,"showInfoBar",null);_.z([_.t("premiumBadges","showInfoBar"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gq.prototype,"showOverlayPremiumBadges",null);
_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"watchResponse",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"miniplayerRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"playabilityStatus",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"playerVe",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"expandVe",void 0);_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"closeVe",void 0);
_.z([_.R(),_.K("design:type",Object)],Gq.prototype,"readyToResumeCloseVe",void 0);_.z([_.R(),_.K("design:type",_.tw)],Gq.prototype,"readyToResumeVe",void 0);_.z([_.R(),_.K("design:type",_.tw)],Gq.prototype,"resizeVe",void 0);_.z([_.R(),_.K("design:type",_.tw)],Gq.prototype,"repositionVe",void 0);_.z([_.lr("hasPlaylistData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gq.prototype,"hasPlaylistDataChanged",null);
_.z([_.lr("playerVe"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gq.prototype,"onPlayerVeChange",null);_.z([_.lr("premiumBranding"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gq.prototype,"premiumBrandingChanged",null);_.z([_.lr("readyToResumeVe"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gq.prototype,"readyToResumeVeChanged",null);
_.z([_.lr("isDisabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Gq.prototype,"onIsDisabledChanged",null);_.z([_.t("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gq.prototype,"miniplayerSubtitle",null);_.z([_.t("data.miniplayerTitle","externalPlaylistData"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gq.prototype,"miniplayerTitle",null);
_.z([_.t("externalPlaylistData","continueWatching"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gq.prototype,"playlistIndexMessage",null);_.z([_.R({reflectToAttribute:!0}),_.t("playabilityStatus"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gq.prototype,"showErrorScreen",null);_.z([_.R({reflectToAttribute:!0}),_.t("watchWhile"),_.K("design:type",Object),_.K("design:paramtypes",[])],Gq.prototype,"watchWhileHidden",null);
_.q("ytd_miniplayer_to_wiz")||_.a(Gq,"ytd-miniplayer",function(){if(eKR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
Y.content.insertBefore(MoR().content.cloneNode(!0),Y.content.firstChild);Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);eKR=Y}Y=eKR;return Y},{mode:2});var LuA;var Tq=function(){var Y=_.F.apply(this,arguments)||this;Y.useListItemStyles=_.q("web_list_item_style_for_menu_items");Y.systemIcons=_.q("kevlar_system_icons");return Y};
_.P(Tq,_.F);_.g=Tq.prototype;_.g.ready=function(){this.hostElement.addEventListener("tap",_.Io(this,this.onEndpointTapExtra))};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){var Y;(Y=_.E6(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.g.onEndpointTapExtra=function(Y){_.Ua(this.hostElement,"iron-activate");var b=this.data.navigationEndpoint;b&&_.v(b,_.zcq)&&(Y.stopPropagation(),_.IP(this.hostElement,[b],this.hostElement))};
_.g.computeIcon=function(Y){return Y&&Y.iconType?_.IR(Y.iconType):""};
_.g.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.forceUpdateStylesOnLegacyBrowsers=function(){_.q("kevlar_legacy_browsers")&&_.m_(this.hostElement)};
Tq.prototype.forceUpdateStylesOnLegacyBrowsers=Tq.prototype.forceUpdateStylesOnLegacyBrowsers;Tq.prototype.onFocus=Tq.prototype.onFocus;_.z([_.n(_.J0),_.K("design:type",Object)],Tq.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.fGI.YtConditionalRendererBehavior),_.K("design:type",Object)],Tq.prototype,"ytConditionalRendererBehavior",void 0);_.z([_.n(_.sS.YtEndpointBehavior),_.K("design:type",Object)],Tq.prototype,"ytEndpointBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Tq.prototype,"data",void 0);_.z([_.R({computed:"computeIcon(data.icon)",value:""}),_.K("design:type",String)],Tq.prototype,"icon",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Tq.prototype,"useIcons",void 0);_.z([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Tq.prototype,"hasSeparator",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Tq.prototype,"useListItemStyles",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Tq.prototype,"systemIcons",void 0);_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tq.prototype,"onFocus",null);_.z([_.lr("useIcons","hasSeparator"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tq.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.a(Tq,"ytd-menu-navigation-item-renderer",function(){if(LuA===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-navigation-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!hidden]]" class="style-scope ytd-menu-navigation-item-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-menu-navigation-item-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" tabindex="-1">\n    <tp-yt-paper-item aria-label$="[[data.accessibility.accessibilityData.label]]" disabled="[[data.isDisabled]]" class="style-scope ytd-menu-navigation-item-renderer">\n      <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-icon>\n      <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-navigation-item-renderer"></yt-formatted-string>\n    </tp-yt-paper-item>\n  </a>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);LuA=Y}Y=LuA;return Y},{mode:1});var SSb;var aiR=_.Gx(_.sa("DOWNLOAD",{},"Download")),r0s=_.Gx(_.sa("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),zKt=_.Gx(_.sa("RETRY",{},"Retry")),WuI=_.Gx(_.sa("PAUSE_DOWNLOADING",{},"Pause downloading")),KuN=_.Gx(_.sa("RESUME_DOWNLOAD",{},"Resume download")),Jb=function(){var Y=_.F.apply(this,arguments)||this;Y.primaryText=aiR;Y.primaryIconType="OFFLINE_DOWNLOAD";Y.hasSecondaryContent=!1;Y.hasSeparator=!1;Y.transferState="TRANSFER_STATE_UNKNOWN";Y.isVideoDeletedByUser=!1;Y.isHidden=!1;Y.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return Y};
_.P(Jb,_.F);_.g=Jb.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){this.primaryEntry.focus()};
_.g.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.g.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.g.getRemoveAction=function(){return"ACTION_REMOVE"};
_.g.sendOfflineAction=function(Y){var b=this.data.serviceEndpoint;if(b){var w=_.v(b,_.kh);w&&Y&&(w.action=Y);this.ytComponentBehavior.resolveCommand(b)}};
_.g.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=aiR,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=aiR;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=zKt;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=r0s;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=KuN;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=r0s;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
WuI;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=r0s;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=r0s;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=aiR,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.g.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.g.isSecondaryEntryHidden=function(Y,b){return Y?!0:!b};
_.g.computeHasSeparator=function(){var Y;return!((Y=this.data)==null||!Y.hasSeparator)};
Jb.prototype.showHideButton=Jb.prototype.showHideButton;Jb.prototype.onTransferStateChange=Jb.prototype.onTransferStateChange;Jb.prototype.onFocus=Jb.prototype.onFocus;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Jb.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Jb.prototype,"ytComponentBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Jb.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Jb.prototype,"primaryText",void 0);_.z([_.R(),_.K("design:type",String)],Jb.prototype,"primaryIconType",void 0);_.z([_.R(),_.K("design:type",String)],Jb.prototype,"primaryAction",void 0);_.z([_.R(),_.K("design:type",Object)],Jb.prototype,"secondaryText",void 0);_.z([_.R(),_.K("design:type",String)],Jb.prototype,"secondaryIconType",void 0);
_.z([_.R(),_.K("design:type",String)],Jb.prototype,"secondaryAction",void 0);_.z([_.R(),_.K("design:type",Object)],Jb.prototype,"hasSecondaryContent",void 0);_.z([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Object)],Jb.prototype,"hasSeparator",void 0);_.z([_.R({selector:_.a8,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",String)],Jb.prototype,"transferState",void 0);
_.z([_.R({selector:_.Rxv,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",Object)],Jb.prototype,"isVideoDeletedByUser",void 0);_.z([_.R(),_.K("design:type",Object)],Jb.prototype,"isHidden",void 0);_.z([_.R({selector:_.nUM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.K("design:type",Object)],Jb.prototype,"offlineabilityState",void 0);_.z([_.xZ("#primary-entry"),_.K("design:type",Object)],Jb.prototype,"primaryEntry",void 0);
_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jb.prototype,"onFocus",null);_.z([_.vX("transferState","isVideoDeletedByUser"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jb.prototype,"onTransferStateChange",null);_.z([_.vX("offlineabilityState"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Jb.prototype,"showHideButton",null);
_.a(Jb,"ytd-menu-service-item-download-renderer",function(){if(SSb===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-download-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<tp-yt-paper-item id="primary-entry" hidden="[[isHidden]]" on-tap="onPrimaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[primaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[primaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n<tp-yt-paper-item id="secondary-entry" hidden="[[isSecondaryEntryHidden(isHidden, hasSecondaryContent)]]" on-tap="onSecondaryClicked" class="style-scope ytd-menu-service-item-download-renderer">\n  <yt-icon icon="[[secondaryIconType]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-icon>\n  <yt-formatted-string text="[[secondaryText]]" class="style-scope ytd-menu-service-item-download-renderer"></yt-formatted-string>\n</tp-yt-paper-item>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);SSb=Y}Y=SSb;return Y},{mode:1});var inX;var u0=function(){var Y=_.F.apply(this,arguments)||this;Y.useIcons=!1;Y.systemIcons=_.q("kevlar_system_icons");Y.useListItemStyles=_.q("web_list_item_style_for_menu_items");return Y};
_.P(u0,_.F);_.g=u0.prototype;_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.g.onFocus=function(){var Y;(Y=_.E6(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.g.onTap=function(){_.De(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var Y=this.data.serviceEndpoint,b=this.data.command;if(Y){var w,V=(w=this.data)==null?void 0:w.trackingParams;w=!!_.v(Y,_.Dbr);V&&w&&_.u3().dispatch(_.Uf({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:V}}));this.ytComponentBehavior.resolveCommand(Y)||_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}})}b&&(this.ytComponentBehavior.resolveCommand(b)||_.IP(this.hostElement,
[b],this.hostElement))};
_.g.computeIcon=function(Y){return Y&&Y.iconType?_.IR(Y.iconType):""};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.computeHasSeparator=function(){var Y;return!((Y=this.data)==null||!Y.hasSeparator)};
_.g.forceUpdateStylesOnLegacyBrowsers=function(){_.q("kevlar_legacy_browsers")&&_.m_(this.hostElement)};
_.g.computeIsSelected=function(){var Y;return!((Y=this.data)==null||!Y.isSelected)};
u0.prototype.forceUpdateStylesOnLegacyBrowsers=u0.prototype.forceUpdateStylesOnLegacyBrowsers;u0.prototype.onTap=u0.prototype.onTap;u0.prototype.onFocus=u0.prototype.onFocus;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],u0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],u0.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],u0.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.fGI.YtConditionalRendererBehavior),_.K("design:type",Object)],u0.prototype,"ytConditionalRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],u0.prototype,"data",void 0);_.z([_.R({computed:"computeIcon(data.icon)",value:""}),_.K("design:type",String)],u0.prototype,"icon",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],u0.prototype,"useIcons",void 0);
_.z([_.R({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.K("design:type",Boolean)],u0.prototype,"hasSeparator",void 0);_.z([_.R({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.K("design:type",Boolean)],u0.prototype,"isSelected",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],u0.prototype,"systemIcons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],u0.prototype,"useListItemStyles",void 0);
_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u0.prototype,"onFocus",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],u0.prototype,"onTap",null);_.z([_.lr("useIcons","hasSeparator"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],u0.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.a(u0,"ytd-menu-service-item-renderer",function(){if(inX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item disabled="[[data.isDisabled]]" class="style-scope ytd-menu-service-item-renderer">\n  <yt-icon hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-menu-service-item-renderer"></yt-formatted-string>\n  <ytd-badge-supported-renderer badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-menu-service-item-renderer">\n  </ytd-badge-supported-renderer>\n</tp-yt-paper-item>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);inX=Y}Y=inX;return Y},{mode:2});var A0N;var Yz=function(){return _.F.apply(this,arguments)||this};
_.P(Yz,_.F);_.g=Yz.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onDataChanged=function(){var Y=this;_.TC(this,function(){Y.postbox.openDialog();Y.focus();_.Ua(Y.hostElement,"yt-refit")})};
_.g.focus=function(){this.postbox.focus()};
_.g.closePopup=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
_.g.onYtCommentboxDismiss=function(){this.closePopup()};
Yz.prototype.onYtCommentboxDismiss=Yz.prototype.onYtCommentboxDismiss;Yz.prototype.onDataChanged=Yz.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Yz.prototype,"data",void 0);_.z([_.R({value:function(){return _.sa("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],Yz.prototype,"closeButtonAriaLabel",void 0);_.z([_.xZ("#postbox"),_.K("design:type",Object)],Yz.prototype,"postbox",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yz.prototype,"onDataChanged",null);_.z([_.kZ("yt-commentbox-dismiss"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yz.prototype,"onYtCommentboxDismiss",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Yz);
_.a(Yz,"ytd-backstage-post-dialog-popup-renderer",function(){if(A0N!==void 0)return A0N;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-bar" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div id="title" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    [[getSimpleString(data.dialogRenderer.backstagePostDialogRenderer.title)]]\n  </div>\n  <yt-icon-button id="close-panel-icon" aria-label$="[[closeButtonAriaLabel]]" on-tap="closePopup" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <yt-icon class="remove-option style-scope ytd-backstage-post-dialog-popup-renderer" icon="yt-icons:close"></yt-icon>\n  </yt-icon-button>\n</div>\n<ytd-backstage-post-dialog-renderer id="postbox" data="[[data.dialogRenderer.backstagePostDialogRenderer]]" in-popup-container="" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n  <div slot="repost-preview" hidden="[[!data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    <ytd-post-renderer data="[[data.dialogRenderer.backstagePostDialogRenderer.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-popup-renderer">\n    </ytd-post-renderer>\n  </div>\n</ytd-backstage-post-dialog-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return A0N=Y},{mode:1});var C$X;var b9=function(){return _.F.apply(this,arguments)||this};
_.P(b9,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],b9.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],b9);
_.a(b9,"ytd-sender-id-section-renderer",function(){if(C$X!==void 0)return C$X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return C$X=Y},{mode:1});var y0b;var $S7;var jGI;var we=function(){return _.F.apply(this,arguments)||this};
_.P(we,_.F);we.prototype.closePopup=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],we.prototype,"data",void 0);_.z([_.FM({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],we);
_.a(we,"yt-community-post-section-renderer",function(){if(jGI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-community-post-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_community_post_section_renderer.yt.community.post.section.renderer.css.js--\x3e<div id="title" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.title)]]</div>\n<div class="style-scope yt-community-post-section-renderer">\n  <yt-button-renderer id="post-button" data="[[data.postButton.buttonRenderer]]" on-tap="closePopup" class="style-scope yt-community-post-section-renderer">\n  </yt-button-renderer>\n</div>\n<div id="subtitle" class="style-scope yt-community-post-section-renderer">[[getSimpleString(data.subtitle)]]</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;$S7===void 0&&($S7=document.createElement("template"));var V=$S7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);jGI=Y}Y=jGI;return Y},{mode:2});var Gpt;var T9X;var J07;var uGt;var YUN;var bUX;var V1=function(){return _.F.apply(this,arguments)||this};
_.P(V1,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],V1.prototype,"data",void 0);_.z([_.FM({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],V1);
_.a(V1,"yt-share-start-time-with-context-renderer",function(){if(bUX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-start-time-with-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_start_time_with_context_renderer.yt.share.start.time.with.context.renderer.css.js--\x3e<div id="start-time-title" class="style-scope yt-share-start-time-with-context-renderer"><yt-formatted-string aria-label$="[[getSimpleString(data.title)]]" text="[[data.title]]" class="style-scope yt-share-start-time-with-context-renderer"></yt-formatted-string></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;YUN===void 0&&(YUN=document.createElement("template"));var V=YUN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);bUX=Y}Y=bUX;return Y},{mode:2});var Hs=function(){return _.F.apply(this,arguments)||this};
_.P(Hs,_.F);Hs.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Hs.prototype,"data",void 0);_.z([_.FM({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Hs);
_.a(Hs,"yt-share-panel-title-v15-renderer",function(){if(uGt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-title-v15-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_title_v15_renderer.yt.share.panel.title.v15.renderer.css.js--\x3e<h2 id="title" class="style-scope yt-share-panel-title-v15-renderer">[[getSimpleString(data.title)]]</h2>\n<div id="subtitle" hidden="[[!data.subtitle]]" class="style-scope yt-share-panel-title-v15-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;J07===void 0&&(J07=document.createElement("template"));var V=J07;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);uGt=Y}Y=uGt;return Y},{mode:2});var ge=function(){return _.F.apply(this,arguments)||this};
_.P(ge,_.F);ge.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ge.prototype,"data",void 0);_.z([_.FM({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],ge);
_.a(ge,"yt-share-panel-header-renderer",function(){if(T9X===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-panel-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_panel_header_renderer.yt.share.panel.header.renderer.css.js--\x3e<div id="community-post" class="style-scope yt-share-panel-header-renderer"></div>\n<div id="title-bar" class="style-scope yt-share-panel-header-renderer">\n  <div id="title" class="style-scope yt-share-panel-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Gpt===void 0&&(Gpt=document.createElement("template"));var V=Gpt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);T9X=Y}Y=T9X;return Y},{mode:2});var wwd;var Vit;var fr=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-open-popup-action":"onOpen"};return Y};
_.P(fr,_.F);_.g=fr.prototype;_.g.attached=function(){this.onOpen()};
_.g.updateTimeSecs=function(Y){this.currentTimeSecs=Y};
_.g.computeTimeString=function(Y){Y=Y.toString();var b=Math.floor(Number(Y)/3600),w=Math.floor(Number(Y)%3600%60);return(b>0?b+":":"")+_.EI(Math.floor(Number(Y)%3600/60),b>0?2:1)+":"+_.EI(w,2)};
_.g.computeTimeStringA11y=function(Y){Y=_.Fsu({seconds:Y});var b=Y.hours===void 0?0:Y.hours,w=Y.minutes===void 0?0:Y.minutes,V=Y.seconds===void 0?0:Y.seconds;Y=[];if(b>0){var H=f9O().format({hours:b});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.K8)||b>9999)H=H.replace(b.toString(),_.Lsu(b)),_.K8==="km"&&(H=H.replace(".",","));Y.push(H)}w>0&&Y.push(f9O().format({minutes:w}));V>0&&Y.push(f9O().format({seconds:V}));b="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");w=_.K8==
"am"?"{0}\u1363 ":_.K8=="fa"?"{0}\u060c\u200f ":_.K8=="my"?"{0} - ":_.K8=="ne"?"{0},":_.K8=="th"?"{0} ":_.K8=="ur"?"{0}\u060c ":_.K8=="ar"||_.K8=="ar-XB"?"{0} \u0648":_.K8=="ja"||_.K8=="zh-CN"||_.K8=="zh-HK"||_.K8=="zh-TW"?"{0}\u3001":"{0}, ";V=_.K8=="am"?"\u1363 ":_.K8=="fa"?"\u060c\u200f ":_.K8=="my"?" - ":_.K8=="th"?" ":_.K8=="ur"?"\u060c ":_.K8=="ar"||_.K8=="ar-XB"?" \u0648":_.K8=="ja"||_.K8=="zh-CN"||_.K8=="zh-HK"||_.K8=="zh-TW"?"\u3001":", ";H=_.K8=="am"?" \u12a5\u1293 {0}":_.K8=="as"?" \u0986\u09f0\u09c1 {0}":
_.K8=="az"?" v\u0259 {0}":_.K8=="bn"?" \u098f\u09ac\u0982 {0}":_.K8=="cs"?" a\u00a0{0}":_.K8=="de"?" und {0}":_.K8=="el"?" \u03ba\u03b1\u03b9 {0}":_.K8=="eu"?" eta {0}":_.K8=="fa"?"\u060c \u0648 {0}":_.K8=="fil"?", at {0}":_.K8=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.K8=="hi"?", \u0914\u0930 {0}":_.K8=="hu"?" \u00e9s {0}":_.K8=="hy"?" \u0587 {0}":_.K8=="id"?", dan {0}":_.K8=="iw"?" \u05d5-{0}":_.K8=="ja"?"\u3001{0}":_.K8=="ka"?" \u10d3\u10d0 {0}":_.K8=="km"?" \u1793\u17b7\u1784 {0}":_.K8=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.K8=="ko"?" \ubc0f {0}":_.K8=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.K8=="lt"?" ir {0}":_.K8=="lv"?" un {0}":_.K8=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.K8=="mr"?" \u0906\u0923\u093f {0}":_.K8=="ms"?" dan {0}":_.K8=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.K8=="ne"?" \u0930 {0}":_.K8=="or"?", \u0b13 {0}":_.K8=="pa"?" \u0a05\u0a24\u0a47 {0}":_.K8=="ro"?" \u0219i {0}":_.K8=="si"?", \u0dc3\u0dc4 {0}":_.K8=="sk"?" a {0}":_.K8=="sl"?" in {0}":_.K8=="sq"?" dhe {0}":_.K8=="sv"?" och {0}":
_.K8=="sw"?" na {0}":_.K8=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.K8=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.K8=="th"?" \u0e41\u0e25\u0e30{0}":_.K8=="tr"?" ve {0}":_.K8=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.K8=="uz"?" va {0}":_.K8=="vi"?" v\u00e0 {0}":_.K8=="zh-HK"?"\u53ca{0}":_.K8=="zu"?", ne-{0}":_.K8=="af"||_.K8=="nl"?" en {0}":_.K8=="ar"||_.K8=="ar-XB"?" \u0648{0}":_.K8=="be"||_.K8=="uk"?" \u0456 {0}":_.K8=="en-GB"||_.K8=="en-IN"?" and {0}":_.K8=="en"||_.K8=="en-XA"?
", and {0}":_.K8=="et"||_.K8=="fi"?" ja {0}":_.K8=="fr"||_.K8=="fr-CA"?" et {0}":_.K8=="zh-CN"||_.K8=="zh-TW"?"\u548c{0}":_.K8=="da"||_.K8=="is"||_.K8=="no"?" og {0}":_.K8=="es"||_.K8=="es-419"||_.K8=="es-US"?" y {0}":_.K8=="kk"||_.K8=="lo"||_.K8=="mn"?", {0}":_.K8=="bg"||_.K8=="mk"||_.K8=="ru"||_.K8=="sr"?" \u0438 {0}":_.K8=="gl"||_.K8=="it"||_.K8=="pt-BR"||_.K8=="pt-PT"?" e {0}":" i {0}";var f=_.K8=="am"?"{0} \u12a5\u1293 {1}":_.K8=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.K8=="az"?"{0} v\u0259 {1}":
_.K8=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.K8=="de"?"{0} und {1}":_.K8=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.K8=="eu"?"{0} eta {1}":_.K8=="fa"?"{0} \u0648 {1}":_.K8=="fil"?"{0} at {1}":_.K8=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.K8=="hi"?"{0} \u0914\u0930 {1}":_.K8=="hu"?"{0} \u00e9s {1}":_.K8=="hy"?"{0} \u0587 {1}":_.K8=="iw"?"{0} \u05d5-{1}":_.K8=="ja"?"{0}\u3001{1}":_.K8=="ka"?"{0} \u10d3\u10d0 {1}":_.K8=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.K8=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.K8=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.K8=="ko"?"{0} \ubc0f {1}":_.K8=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.K8=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.K8=="lt"?"{0} ir {1}":_.K8=="lv"?"{0} un {1}":_.K8=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.K8=="mn"?"{0}, {1}":_.K8=="mr"?"{0} \u0906\u0923\u093f {1}":_.K8=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.K8=="ne"?"{0} \u0930 {1}":_.K8=="or"?"{0} \u0b13 {1}":_.K8=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.K8=="ro"?"{0} \u0219i {1}":_.K8==
"si"?"{0} \u0dc3\u0dc4 {1}":_.K8=="sl"?"{0} in {1}":_.K8=="sq"?"{0} dhe {1}":_.K8=="sv"?"{0} och {1}":_.K8=="sw"?"{0} na {1}":_.K8=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.K8=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.K8=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.K8=="tr"?"{0} ve {1}":_.K8=="ur"?"{0} \u0627\u0648\u0631 {1}":_.K8=="uz"?"{0} va {1}":_.K8=="vi"?"{0} v\u00e0 {1}":_.K8=="zh-HK"?"{0}\u53ca{1}":_.K8=="zu"?"{0} ne-{1}":_.K8=="af"||_.K8=="nl"?"{0} en {1}":_.K8=="ar"||_.K8==
"ar-XB"?"{0} \u0648{1}":_.K8=="be"||_.K8=="uk"?"{0} \u0456 {1}":_.K8=="cs"||_.K8=="sk"?"{0} a\u00a0{1}":_.K8=="et"||_.K8=="fi"?"{0} ja {1}":_.K8=="fr"||_.K8=="fr-CA"?"{0} et {1}":_.K8=="id"||_.K8=="ms"?"{0} dan {1}":_.K8=="zh-CN"||_.K8=="zh-TW"?"{0}\u548c{1}":_.K8=="da"||_.K8=="is"||_.K8=="no"?"{0} og {1}":_.K8=="es"||_.K8=="es-419"||_.K8=="es-US"?"{0} y {1}":_.K8=="bg"||_.K8=="mk"||_.K8=="ru"||_.K8=="sr"?"{0} \u0438 {1}":_.K8=="en"||_.K8=="en-GB"||_.K8=="en-IN"||_.K8=="en-XA"?"{0} and {1}":_.K8==
"gl"||_.K8=="it"||_.K8=="pt-BR"||_.K8=="pt-PT"?"{0} e {1}":"{0} i {1}";_.K8==="sq"?(H=H.replace("dhe","e"),f=f.replace("dhe","e")):_.K8==="th"?(V=V.replace("{0}"," {0}"),f=f.replace("{0}","{0} "),f=f.replace("{1}"," {1}")):_.K8==="ne"?V=",":_.K8==="zh-CN"?V="":b.includes(_.K8)&&(V=" ");return Y.length<2?Y.join(""):"am ar bg bs ca cs da es es-419 es-US eu fa fi fr-CA fr gl gu hi hr hu hy is it lt lv mk my no nl pl pt-BR pt-PT ro si sl sq sr-Latn sr sw th uk".split(" ").includes(_.K8)?Y.length===2?
f.replace("{0}",Y[0]).replace("{1}",Y[1]):w.replace("{0}",Y[0])+Y.slice(1,-1).join(V)+H.replace("{0}",Y[Y.length-1]):Y.join(V)};
_.g.getTimeParam=function(){return p0t(this.timeString)};
_.g.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var Y={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},b;_.ly(_.Qd(),(b=this.data)==null?void 0:b.trackingParams,Y,7)};
_.g.onChangeStartAtTimestamp=function(){for(var Y=this.startAtTimestamp.value.split(":"),b=0,w=1,V=Y.length-1;V>=0;V--)b+=Number(Y[V])*w,w*=60;this.updateTimeSecs(b);this.setTimestamp()};
_.g.onOpen=function(){var Y=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var b=_.V4();b?b.getPlayerPromise().then(function(w){w=w.getCurrentTime();Y.updateTimeSecs(w)}):HBX()&&this.updateTimeSecs(HBX())};
_.g.setTimestamp=function(){var Y=Math.floor(this.currentTimeSecs);_.Xx(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!Y,timestamp:Y||""}])};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],fr.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],fr.prototype,"data",void 0);_.z([_.R({value:!1,notify:!0}),_.K("design:type",Boolean)],fr.prototype,"isStartAtChecked",void 0);_.z([_.R(),_.K("design:type",Number)],fr.prototype,"currentTimeSecs",void 0);
_.z([_.R({computed:"computeTimeString(currentTimeSecs)"}),_.K("design:type",String)],fr.prototype,"timeString",void 0);_.z([_.R({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.K("design:type",String)],fr.prototype,"timeStringA11y",void 0);_.z([_.xZ("#start-at-timestamp"),_.K("design:type",Object)],fr.prototype,"startAtTimestamp",void 0);_.z([_.FM({is:"yt-start-at-renderer",disableElementRegistration:!0})],fr);
_.a(fr,"yt-start-at-renderer",function(){if(Vit===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-start-at-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_start_at_renderer.yt.start.at.renderer.css.js--\x3e<div id="start-at-wrapper" class="style-scope yt-start-at-renderer">\n  <tp-yt-paper-checkbox id="start-at-checkbox" checked="{{isStartAtChecked}}" on-change="onChangeStartAtCheckbox" class="style-scope yt-start-at-renderer">\n    <yt-formatted-string text="[[data.startAtOptionLabel]]" class="style-scope yt-start-at-renderer"></yt-formatted-string>\n  </tp-yt-paper-checkbox>\n  <tp-yt-paper-input id="start-at-timestamp" allowed-pattern="[:0-9]" aria-label="[[timeStringA11y]]" disabled="" no-label-float="" use-v2-underline="" value="[[timeString]]" on-blur="onChangeStartAtTimestamp" on-change="onChangeStartAtTimestamp" class="style-scope yt-start-at-renderer">\n  </tp-yt-paper-input>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;wwd===void 0&&(wwd=document.createElement("template"));var V=wwd;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Vit=Y}Y=Vit;return Y},{mode:2});var HUO;var gIs;var fLR=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"]]),N0d=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"]]),EIX=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var cBF={};cBF.YtBindingExpressionsBehavior={identity:_.a6,msg:function(Y,b){b=b===void 0?{}:b;return _.sa(Y,b,Y)},
msgPlural:function(Y,b){return _.QX(Y,b)},
getMusicIconFromType:function(Y){if(_.q("music_web_enable_icon_wil"))Y=_.IR(Y);else if(N0d.has(Y))Y="yt-sys-icons:"+N0d.get(Y);else{var b=fLR.get(Y)||_.IR(Y).split(":")[1];b=_.e$I(b);var w;Y=((w=EIX.get(Y))!=null?w:"yt-sys-icons:")+b}return Y}};var UTX;var XwX;var DTs;var mT7=document.head,oIQ=mT7.appendChild,ILF;if(DTs===void 0){var k8F=document.createElement("template");_.B(k8F,'\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>');DTs=k8F}ILF=DTs;oIQ.call(mT7,ILF.content);var NA=function(){var Y=_.F.apply(this,arguments)||this;Y.screenLayer=7;return Y};
_.P(NA,_.F);NA.prototype.getScreenLayer=function(){return this.screenLayer};
NA.prototype.onTap=function(Y){Y&&Y.detail&&(Y.detail.x||Y.detail.y)&&_.E6(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.oP(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(Y=this.getScreenLayer(),_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:Y}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.up.Object.defineProperties(NA.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()}}});
NA.prototype.onTap=NA.prototype.onTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],NA.prototype,"data",void 0);_.z([_.t("data.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],NA.prototype,"title",null);
_.z([_.t("data.serviceName"),_.K("design:type",String),_.K("design:paramtypes",[])],NA.prototype,"icon",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],NA.prototype,"onTap",null);_.z([_.FM({is:"yt-share-target-renderer",disableElementRegistration:!0})],NA);
_.a(NA,"yt-share-target-renderer",function(){if(XwX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;UTX===void 0&&(UTX=document.createElement("template"));var V=UTX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);XwX=Y}Y=XwX;return Y},{mode:2});var lLb;var h9s;var Em=function(){var Y=_.F.apply(this,arguments)||this;Y.SHARE_TARGET_WIDTH=70;Y.SHARE_TARGET_MARGIN_RIGHT=8;Y.PAGE_SCROLL_SPEED=9;Y.actionMap={"yt-share-panel-reset-action":"onReset_"};return Y};
_.P(Em,_.F);_.g=Em.prototype;_.g.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.g.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.E6(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.E6(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.g.onReset_=function(){if(_.E6(this.hostElement).querySelector("#list")){var Y=_.E6(this.hostElement).querySelector("#list");var b=_.E6(this.hostElement).querySelector("#list");var w=b.offsetLeft,V=b.offsetParent;V||_.xQt(b)!="fixed"||(V=_.Oy(b).documentElement);if(V){if(_.lL&&!_.xv(58)){var H=_.nd8(V);w+=H.left}else Number(_.AXI)>=8&&!(Number(_.AXI)>=9)&&(H=_.nd8(V),w-=H.left);b=_.Zo$(V)?V.clientWidth-(w+b.offsetWidth):w}else b=w;wbd(Y,b);this.updateScrollButtons_()}};
_.g.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.g.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.g.onScrollWheel_=function(Y){Y.stopPropagation();Y.preventDefault();var b=b_7(_.E6(this.hostElement).querySelector("#list"));Y=Math.abs(Y.deltaX)>Math.abs(Y.deltaY)?Y.deltaX:Y.deltaY;wbd(_.E6(this.hostElement).querySelector("#list"),b+Y);this.updateScrollButtons_()};
_.g.smoothScrollByOnePage_=function(Y){var b=_.E6(this.hostElement).querySelector("#list"),w=(Math.floor(b.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,V=b_7(b),H=w*(Y?1:-1),f=this.PAGE_SCROLL_SPEED,E=this.updateScrollButtons_.bind(this),U=0,X;(function k(){U+=f;X=U/w*2;wbd(b,V+H*(X<1?X*X:-X*X+4*X-2));U<w?window.requestAnimationFrame(k):E()})()};
_.g.updateScrollButtons_=function(){var Y=b_7(_.E6(this.hostElement).querySelector("#list")),b=_.E6(this.hostElement).querySelector("#list").scrollWidth-_.E6(this.hostElement).querySelector("#list").clientWidth;_.E6(this.hostElement).querySelector("#scroll-button-back").hidden=Y<=0;_.E6(this.hostElement).querySelector("#scroll-button-forward").hidden=Y>=b};
Em.prototype.onScrollWheel_=Em.prototype.onScrollWheel_;Em.prototype.onDataChanged_=Em.prototype.onDataChanged_;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Em.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(cBF.YtBindingExpressionsBehavior),_.K("design:type",Object)],Em.prototype,"ytBindingExpressionsBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Em.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Em.prototype,"onDataChanged_",null);_.z([_.kZ("wheel"),_.K("design:type",Function),_.K("design:paramtypes",[WheelEvent]),_.K("design:returntype")],Em.prototype,"onScrollWheel_",null);
_.z([_.FM({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Em);
_.a(Em,"yt-third-party-share-target-section-renderer",function(){if(h9s===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-share-target-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_share_target_section_renderer.yt.third.party.share.target.section.renderer.css.js--\x3e<div id="list" class="style-scope yt-third-party-share-target-section-renderer">\n  <div id="contents" role="toolbar" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope yt-third-party-share-target-section-renderer"></div>\n</div>\n<yt-icon-button id="scroll-button-back" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_PREVIOUS_LABEL\')]]" on-tap="onScrollBack_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_left"></yt-icon>\n</yt-icon-button>\n<yt-icon-button id="scroll-button-forward" class="scroll-button style-scope yt-third-party-share-target-section-renderer" label="[[msg(\'HORIZONTAL_LIST_NEXT_LABEL\')]]" on-tap="onScrollForward_">\n  <yt-icon class="scroll-button-icon style-scope yt-third-party-share-target-section-renderer" icon="chevron_right"></yt-icon>\n</yt-icon-button>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;lLb===void 0&&(lLb=document.createElement("template"));var V=lLb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);h9s=Y}Y=h9s;return Y},{mode:2});var cs=function(){return _.F.apply(this,arguments)||this};
_.P(cs,_.F);cs.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"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],cs.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],cs.prototype,"data",void 0);_.z([_.FM({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],cs);
_.a(cs,"yt-third-party-network-section-renderer",function(){if(gIs===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-third-party-network-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_third_party_network_section_renderer.yt.third.party.network.section.renderer.css.js--\x3e<div id="share-targets" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="copy-link" class="style-scope yt-third-party-network-section-renderer"></div>\n<div id="start-at" class="style-scope yt-third-party-network-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;HUO===void 0&&(HUO=document.createElement("template"));var V=HUO;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);gIs=Y}Y=gIs;return Y},{mode:2});_.f_(_.b8(function(Y){return _.m("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.m("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.m(_.OH,{data:function(){return Y.data().firstPartyItems}},{listItemViewModel:_.nY})))},"rg"),"first-party-network-section-view-model",{props:{data:_.YX}});var xTt=_.wM(["data:image/svg+xml;charset=UTF-8;base64,",""]),Um=function(){var Y=_.F.apply(this,arguments)||this;Y.screenLayer=7;Y.qrCodeEnabled=_.q("web_enable_sharing_qr_code");Y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return Y};
_.P(Um,_.F);_.g=Um.prototype;_.g.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"}}}};
_.g.attached=function(){this.JSC$17884_scroller&&(this.JSC$17884_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17884_scroller.attached&&typeof this.JSC$17884_scroller.attached==="function"&&this.JSC$17884_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.g.onDataChanged=function(){var Y=this,b;(b=this.data)!=null&&b.contents&&(this.hostElement.setAttribute("links-only","true"),_.XM(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.TC(this,function(){_.Ua(Y.hostElement,"yt-refit");Y.focusSharePanelHeader()}))};
_.g.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.g.handleSetTimestamp=function(Y){var b=this.shortUrl();Y.isSet&&(b=_.yk(b,"t",Y.timestamp));this.maybeRenderQrCode(b)};
_.g.shortUrl=function(){var Y,b=(Y=this.data)==null?void 0:Y.contents;if(b)for(Y=0;Y<b.length;Y++){var w=void 0,V=void 0;if((w=b[Y])==null?0:(V=w.thirdPartyNetworkSection)==null?0:V.copyLinkContainer){var H=V=w=void 0;return(H=_.v((w=b[Y])==null?void 0:(V=w.thirdPartyNetworkSection)==null?void 0:V.copyLinkContainer,biX))==null?void 0:H.shortUrl}}};
_.g.maybeRenderQrCode=function(Y){var b=this,w,V,H,f,E,U,X,I,k;return _.c(function(l){if(l.nextAddress==1){w=_.E6(b.hostElement).querySelector("#qr-code");if(!b.qrCodeEnabled||!Y)return w&&(w.style.display="none"),l.return();V=_.rvu(_.fH().resolve(_.kO),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});H=document.createElement("div");return typeof V==="function"?(V(H),l.jumpTo(2)):_.D(l,V,3)}l.nextAddress!=2&&(f=l.yieldResult,f(H));X=(E=H)==null?void 0:(U=E.firstChild)==null?void 0:U.firstChild;
I=document.createElement("img");k=_.nu(xTt,btoa(X.outerHTML));I.onload=function(){var x={canvas:w,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:I},Q=new MMt;dcg(Q,Y);FHX(Q,!1,LHt(Q));var Z=Q.modules,e=Object.assign({},dvF,x);Z=structuredClone(Z);x=Z.length;var O,L=(O=e.canvas)!=null?O:document.createElement("canvas");O=e.cellSize;Q=e.logo;var r,C=(r=e.logoSize)!=null?r:Math.floor(x/4);x%2!==C%2&&C++;var W=e.logoPadding,y=e.backgroundColor;r=x*O;var G=
e.width,Nr=0;G&&(Nr=e.padding,Nr=Math.ceil(Nr*r/(G-Nr*2)),L.style.width=G+"px",L.style.height=G+"px");L.width!==r+Nr*2&&(L.width=r+Nr*2);L.height!==r+Nr*2&&(L.height=r+Nr*2);r=L.getContext("2d");e.autoClear&&r.clearRect(0,0,L.width,L.height);r.fillStyle=y;r.beginPath();r.roundRect(0,0,L.width,L.height,e.borderRadius);r.fill();r.save();r.translate(Nr,Nr);if(Q)for(L=Math.floor(x-C)/2-W,W=Math.floor(x+C)/2+W,y=L;y<W;y++)for(G=L;G<W;G++)Z[y][G]=!1;for(L=0;L<x;L++)for(W=0;W<x;W++)(L<7&&W<7||L<7&&W>=x-
7||L>=x-7&&W<7)&&(Z[L][W]=!1);var o6;L=(o6=e.markerColor)!=null?o6:e.color;akt(r,0,0,O,L);akt(r,O*(x-7),0,O,L);akt(r,0,O*(x-7),O,L);switch(e.cellStyle){case 0:o6=Z;Z=o6.length;L=e.cellSize;r.beginPath();for(W=0;W<Z;W++)for(y=0;y<Z;y++)o6[W][y]&&r.rect(W*L,y*L,L,L);r.fillStyle=e.color;r.fill();break;case 1:o6=Z;Z=o6.length;L=e.cellSize;W=L*e.relativeCircleSize;r.fillStyle=e.color;r.beginPath();for(e=0;e<Z;e++)for(y=0;y<Z;y++)o6[e][y]&&(r.beginPath(),r.ellipse((e+.5)*L,(y+.5)*L,W/2,W/2,0,0,2*Math.PI),
r.fill());r.fill();break;case 2:o6=Z;Z=o6.length;L=e.cellSize;r.fillStyle=e.color;e=[[1,1],[-1,1],[-1,-1],[1,-1]];r.beginPath();for(W=0;W<Z;W++)for(y=0;y<Z;y++)if(o6[W][y])r.roundRect(W*L,y*L,L,L,L/2),W+1<Z&&o6[W+1][y]&&r.rect(W*L+L/2,y*L,L,L),y+1<Z&&o6[W][y+1]&&r.rect(W*L,y*L+L/2,L,L);else{G=W*L+L/2;Nr=y*L+L/2;for(var lI=0;lI<4;lI++){var Zt=_.N(e[lI]),eL=Zt.next().value;Zt=Zt.next().value;W+eL>=0&&W+eL<Z&&y+Zt>=0&&y+Zt<Z&&o6[W+eL][y]&&o6[W][y+Zt]&&o6[W+eL][y+Zt]&&(eL=lI*Math.PI/2,Zt=L/2,r.moveTo(G+
Zt*Math.cos(eL),Nr+Zt*Math.sin(eL)),r.arc(G,Nr,L/2,eL,eL+Math.PI/2,!1),r.lineTo(G+Zt*(Math.cos(eL)-Math.sin(eL)),Nr+Zt*(Math.cos(eL)+Math.sin(eL))),r.lineTo(G+Zt*Math.cos(eL),Nr+Zt*Math.sin(eL)))}}r.fill()}Q&&r.drawImage(Q,(x-C)*O/2,(x-C)*O/2,C*O,C*O);r.restore();w.style.removeProperty("display")};
I.src=_.lH(k);_.om(l)})};
_.g.hasCommunityPostRenderer=function(){var Y,b,w,V;return!!((Y=this.data)==null?0:(b=Y.header)==null?0:(w=b.sharePanelHeaderRenderer)==null?0:(V=w.communityPost)==null?0:V.communityPostSectionRenderer)};
_.g.onTapClose=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.g.getScreenLayer=function(){return this.screenLayer};
_.g.logSharePanelPage=function(){if(!_.q("enable_share_panel_navigation_logging_fix_on_web")){var Y;if((Y=this.data)!=null&&Y.trackingParams){Y=this.data.trackingParams;var b=this.parentClickTrackingParams;b=b?_.nA(b):void 0;var w=_.Qd();_.mo(w,21760,b,{layer:7,parentLayer:0});w.graftServerVe(Y,void 0,7);_.u3().dispatch(_.Uf({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
Um.prototype.onDataChanged=Um.prototype.onDataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Um.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Um.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Um.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Um.prototype,"data",void 0);_.z([_.R({value:_.sa("SBOX_INAPPROPRIATE_CANCEL")}),_.K("design:type",String)],Um.prototype,"closeButtonAriaLabel",void 0);_.z([_.xZ("yt-share-panel-header-renderer"),_.K("design:type",HTMLElement)],Um.prototype,"header",void 0);_.z([_.R({selector:function(Y){return Y.share.parentClickTrackingParams}}),
_.K("design:type",String)],Um.prototype,"parentClickTrackingParams",void 0);_.z([_.R(),_.K("design:type",Object)],Um.prototype,"qrCodeEnabled",void 0);_.z([_.xZ("#scroller"),_.K("design:type",Object)],Um.prototype,"JSC$17884_scroller",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Um.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],Um);
_.a(Um,"ytd-unified-share-panel-renderer",function(){if(y0b!==void 0)return y0b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return y0b=Y},{mode:1});var qUQ;var Xo=function(){var Y=_.F.apply(this,arguments)||this;Y.modernModal=_.q("kevlar_sign_in_modal_modernization");return Y};
_.P(Xo,_.F);Xo.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Xo.prototype.computeShouldHideOldButtons=function(){var Y;return!((Y=this.data)==null?0:Y.button)};
_.up.Object.defineProperties(Xo.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(this.modernModal&&((Y=this.data)==null?0:(b=Y.button)==null?0:b.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var w,V;return(w=this.data)==null?void 0:(V=w.button)==null?void 0:V.buttonRenderer}}});
_.z([_.R(),_.K("design:type",Object)],Xo.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],Xo.prototype,"ytEventForwardingBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xo.prototype,"modernModal",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Xo.prototype,"buttonRendererData",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Xo);
_.a(Xo,"ytd-modal-with-title-and-button-renderer",function(){if(qUQ!==void 0)return qUQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-modal-with-title-and-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" hidden="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<yt-formatted-string id="content" split-lines="" text="[[data.content]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n</yt-formatted-string>\n<div class="buttons style-scope ytd-modal-with-title-and-button-renderer" hidden="[[computeShouldHideOldButtons(data.button)]]">\n  <ytd-button-renderer id="button" align-by-text="" data="[[buttonRendererData]]" class="style-scope ytd-modal-with-title-and-button-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return qUQ=Y},{mode:1});var sHb;var DP=function(){return _.F.apply(this,arguments)||this};
_.P(DP,_.F);DP.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("page-changed",this.page))};
DP.prototype.pageChangedForBinding=DP.prototype.pageChangedForBinding;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],DP.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],DP.prototype,"page",void 0);_.z([_.lr("page"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],DP.prototype,"pageChangedForBinding",null);
_.z([_.S({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],DP);
_.a(DP,"ytd-account-item-section-header-renderer",function(){if(sHb!==void 0)return sHb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.title]]" class="style-scope ytd-account-item-section-header-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return sHb=Y},{mode:1});var QHb;var m6=function(){return _.F.apply(this,arguments)||this};
_.P(m6,_.F);m6.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"}}}};
m6.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],m6.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],m6.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!1}),_.K("design:type",Function)],m6.prototype,"onAccountItemTap",void 0);
_.z([_.S({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],m6);
_.a(m6,"ytd-account-item-section-renderer",function(){if(QHb!==void 0)return QHb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-item-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-item-section-renderer"></div>\n<div id="contents" class="style-scope ytd-account-item-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return QHb=Y},{mode:1});var vIt;var PhN;var o9=function(){return _.F.apply(this,arguments)||this};
_.P(o9,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],o9.prototype,"data",void 0);_.z([_.S({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],o9);
_.a(o9,"ytd-accounts-dialog-header-renderer",function(){if(PhN!==void 0)return PhN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-accounts-dialog-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.text]]" class="style-scope ytd-accounts-dialog-header-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return PhN=Y},{mode:1});var ZUt;var I9=function(){return _.F.apply(this,arguments)||this};
_.P(I9,_.F);I9.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],I9.prototype,"data",void 0);_.z([_.S({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],I9);
_.a(I9,"ytd-google-account-header-renderer",function(){if(ZUt!==void 0)return ZUt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-google-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="managedAccountDisclaimer" class="style-scope ytd-google-account-header-renderer"></div>\n<div id="container" class="style-scope ytd-google-account-header-renderer">\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="name" text="[[data.name]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n  <div class="style-scope ytd-google-account-header-renderer">\n    <yt-formatted-string id="email" text="[[data.email]]" class="style-scope ytd-google-account-header-renderer"></yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ZUt=Y},{mode:1});var kz=function(){return _.F.apply(this,arguments)||this};
_.P(kz,_.F);kz.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"}}}};
kz.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("page-changed",this.page))};
kz.prototype.pageChangedForBinding=kz.prototype.pageChangedForBinding;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kz.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],kz.prototype,"page",void 0);
_.z([_.lr("page"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kz.prototype,"pageChangedForBinding",null);_.z([_.S({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],kz);
_.UQ()(kz,"ytd-account-section-list-renderer",function(){if(vIt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-account-section-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-account-section-list-renderer"></div>\n<div id="contents" class="style-scope ytd-account-section-list-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);vIt=Y}Y=vIt;return Y},{allowedProps:["data"],
mode:1});var B0N;var l9=function(){var Y=_.F.apply(this,arguments)||this;Y.enableHandlesAccountMenuSwitcher=_.q("enable_handles_account_menu_switcher");return Y};
_.P(l9,_.F);l9.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
l9.prototype.dataChanged=l9.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],l9.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],l9.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.z([_.xZ("#avatar"),_.K("design:type",Object)],l9.prototype,"avatar",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],l9.prototype,"dataChanged",null);_.z([_.S({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],l9);
_.UQ()(l9,"ytd-active-account-header-renderer",function(){if(B0N===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-active-account-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-img-shadow id="avatar" height="40" thumbnail="[[data.accountPhoto]]" width="40" class="style-scope ytd-active-account-header-renderer">\n</yt-img-shadow>\n<div id="channel-container" class="style-scope ytd-active-account-header-renderer">\n  <yt-formatted-string id="account-name" ellipsis-truncate="" text="[[data.accountName]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="email" ellipsis-truncate="" text="[[data.email]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="channel-handle" ellipsis-truncate="" respect-lang-dir="" text="[[data.channelHandle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="manage-account" ellipsis-truncate="" force-default-style="" text="[[data.manageAccountTitle]]" class="style-scope ytd-active-account-header-renderer">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);B0N=Y}Y=B0N;return Y},{allowedProps:["data"],
mode:1});var nIX;var MiF;var hT=function(){return _.F.apply(this,arguments)||this};
_.P(hT,_.F);hT.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hT.prototype.onBackTap=function(){_.Ua(this.hostElement,"yt-menu-back-tapped")};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],hT.prototype,"data",void 0);_.z([_.S({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],hT);
_.UQ()(hT,"ytd-simple-menu-header-renderer",function(){if(MiF===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-simple-menu-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton.buttonRenderer]]" on-tap="onBackTap" class="style-scope ytd-simple-menu-header-renderer">\n</ytd-button-renderer>\n<h2 class="style-scope ytd-simple-menu-header-renderer">\n  <yt-formatted-string text="[[data.title]]" class="style-scope ytd-simple-menu-header-renderer"></yt-formatted-string>\n</h2>\n<div id="buttons" class="style-scope ytd-simple-menu-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);MiF=Y}Y=MiF;return Y},{allowedProps:["data"],
mode:2});var e9g;var xz=function(){return _.F.apply(this,arguments)||this};
_.P(xz,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xz.prototype,"data",void 0);_.z([_.S({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],xz);
_.a(xz,"ytd-comment-video-thumbnail-header-renderer",function(){if(e9g!==void 0)return e9g;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-video-thumbnail-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="comment-video-thumbnail style-scope ytd-comment-video-thumbnail-header-renderer">\n  <a class="yt-simple-endpoint style-scope ytd-comment-video-thumbnail-header-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <yt-formatted-string class="title style-scope ytd-comment-video-thumbnail-header-renderer" text="[[data.title]]"></yt-formatted-string>\n    <div class="thumbnail-container style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.thumbnail]]">\n      <yt-img-shadow disable-upgrade$="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="86" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n      </yt-img-shadow>\n    </div>\n  </a>\n</div>\n<div class="subtitle-message-banner style-scope ytd-comment-video-thumbnail-header-renderer" hidden="[[!data.subtitleMessage]]">\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.text]]" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.subtitleMessage.messageRenderer.termsText]]" force-default-style="" class="style-scope ytd-comment-video-thumbnail-header-renderer">\n  </yt-attributed-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return e9g=Y},{mode:1});var pw7;var qA=function(){return _.F.apply(this,arguments)||this};
_.P(qA,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qA.prototype,"data",void 0);_.z([_.S({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],qA);
_.a(qA,"ytd-abuse-type-selector-renderer",function(){if(pw7!==void 0)return pw7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-abuse-type-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-abuse-type-selector-renderer">\n  <form class="style-scope ytd-abuse-type-selector-renderer">\n    <yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" class="style-scope ytd-abuse-type-selector-renderer">\n    </yt-options-renderer>\n  </form>\n  <div id="footer" class="style-scope ytd-abuse-type-selector-renderer">[[getSimpleString(data.footer)]]</div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return pw7=Y},{mode:1});var OUb;var sm=function(){return _.F.apply(this,arguments)||this};
_.P(sm,_.F);sm.prototype.attached=function(){var Y=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){Y.additionalContextInput.focusTextInput()})};
sm.prototype.handleAdditionalContextChanged=function(){var Y=this;_.ir(this,"ytd-report-channel-additional-context-update",function(){Y.ytdReduxBehavior.dispatch(_.Uf({type:"ADDITIONAL_CONTEXT_UPDATED",payload:Y.additionalContext}))},300)};
sm.prototype.updateAdditionalContextFromBinding=function(Y){this.additionalContext=Y.detail.value};
sm.prototype.handleAdditionalContextChanged=sm.prototype.handleAdditionalContextChanged;_.z([_.n(_.FX),_.K("design:type",Object)],sm.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",String)],sm.prototype,"additionalContext",void 0);_.z([_.R({selector:function(Y){return Y.reportChannelAbuse.additionalContext}}),
_.K("design:type",String)],sm.prototype,"additionalContextRedux",void 0);_.z([_.R(),_.K("design:type",Object)],sm.prototype,"data",void 0);_.z([_.xZ("yt-text-input-form-field-renderer"),_.K("design:type",Object)],sm.prototype,"additionalContextInput",void 0);_.z([_.lr("additionalContext"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sm.prototype,"handleAdditionalContextChanged",null);
_.z([_.S({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],sm);
_.a(sm,"ytd-report-channel-modal-additional-context-renderer",function(){if(OUb!==void 0)return OUb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-additional-context-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.additionalDetailsTextField.textInputFormFieldRenderer]]" value="[[additionalContext]]" on-value-changed="updateAdditionalContextFromBinding" class="style-scope ytd-report-channel-modal-additional-context-renderer">\n</yt-text-input-form-field-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return OUb=Y},{mode:1});var tid;var Q1=function(){var Y=_.F.apply(this,arguments)||this;Y.nextButtonDisabled=null;Y.submitEndpoint=null;Y.navigationEndpoint=null;Y.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return Y};
_.P(Q1,_.F);_.g=Q1.prototype;_.g.computeNextButtonData=function(Y,b,w){var V={};b&&(V.navigationEndpoint=b);w&&(V.serviceEndpoint=w);Y&&Y.buttonRenderer&&_.BL.extend(V,Y.buttonRenderer);return V};
_.g.handleReportChannelModalDisableNextButtonAction=function(Y){this.setNextButtonIsDisabled(Y)};
_.g.handleReportFormEndpointUpdateAction=function(Y){this.setNextButtonIsDisabled(!!Y.disableSubmitButton);this.resetEndpointData();Y.submitEndpoint?this.submitEndpoint=Y.submitEndpoint:Y.submitNavigationEndpoint&&(this.navigationEndpoint=Y.submitNavigationEndpoint)};
_.g.handleSignalActionSubmitForm=function(){var Y,b=Object.keys(((Y=this.reportChannelAbuseForm)==null?void 0:Y.selectedVideoIds)||{}),w;Y=((w=this.reportChannelAbuseForm)==null?void 0:w.additionalContext)||"";var V;w=((V=this.reportChannelAbuseForm)==null?void 0:V.impersonatedChannelUrl)||"";var H;if((H=this.data)==null?0:H.submitEndpoint){b={impersonated_channel_url:w,text:Y,video_ids:b};var f;_.fH().resolve(_.Nn).resolveCommand((f=this.data)==null?void 0:f.submitEndpoint,{form:Object.assign({},
b,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.g.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.g.onYtServiceRequestError=function(Y){this.setNextButtonIsDisabled(!1);_.fx(this.hostElement,Y.detail.error.message)};
_.g.setNextButtonIsDisabled=function(Y){this.set("data.nextButton.buttonRenderer.isDisabled",Y)};
_.g.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Q1.prototype.onYtServiceRequestError=Q1.prototype.onYtServiceRequestError;Q1.prototype.onYtServiceRequestCompleted=Q1.prototype.onYtServiceRequestCompleted;_.z([_.R(),_.K("design:type",Object)],Q1.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Q1.prototype,"nextButtonDisabled",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Q1.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Q1.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Q1.prototype,"submitEndpoint",void 0);_.z([_.R(),_.K("design:type",Object)],Q1.prototype,"navigationEndpoint",void 0);_.z([_.R({selector:function(Y){return Y.reportChannelAbuse}}),
_.K("design:type",Object)],Q1.prototype,"reportChannelAbuseForm",void 0);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Q1.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Q1.prototype,"onYtServiceRequestError",null);
_.z([_.S({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Q1);
_.a(Q1,"ytd-report-channel-modal-footer-renderer",function(){if(tid!==void 0)return tid;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-button-renderer id="back-button" data="[[data.backButton.buttonRenderer]]" hidden="[[!data.backButton]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n<ytd-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, navigationEndpoint, submitEndpoint)]]" disabled="[[data.nextButton.buttonRenderer.isDisabled]]" class="style-scope ytd-report-channel-modal-footer-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return tid=Y},{mode:1});var R9g;var vs=function(){var Y=_.F.apply(this,arguments)||this;Y.boundOnTapDismissButton=function(){Y.closePopup()};
return Y};
_.P(vs,_.F);vs.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
vs.prototype.handleDataChanged=function(){_.JE(this.hostElement)};
vs.prototype.closePopup=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
vs.prototype.handleDataChanged=vs.prototype.handleDataChanged;_.z([_.R(),_.K("design:type",Object)],vs.prototype,"boundOnTapDismissButton",void 0);_.z([_.R(),_.K("design:type",Object)],vs.prototype,"data",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vs.prototype,"handleDataChanged",null);_.z([_.S({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],vs);
_.a(vs,"ytd-report-channel-modal-header-renderer",function(){if(R9g!==void 0)return R9g;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" class="style-scope ytd-report-channel-modal-header-renderer">\n  <span id="title" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.title)]]</span>\n  <span id="subtitle" class="style-scope ytd-report-channel-modal-header-renderer">[[getSimpleString(data.subtitle)]]</span>\n</div>\n<div id="dismiss-button" class="style-scope ytd-report-channel-modal-header-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return R9g=Y},{mode:1});var dTQ;var Ps=function(){var Y=_.F.apply(this,arguments)||this;Y.autoValidate=!1;Y.invalid=!1;Y.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return Y};
_.P(Ps,_.F);_.g=Ps.prototype;_.g.attached=function(){var Y=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){Y.channelUrlInput.focusTextInput()})};
_.g.disableNextButton=function(Y){_.Xx(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[Y])};
_.g.handleImpersonatedChannelUrlChanged=function(){var Y=this;this.disableNextButton(!0);this.invalid=!1;_.ir(this,"ytd-report-channel-impersonated-channel-update",function(){var b=Y.impersonatedChannelUrl.trim();Y.ytdReduxBehavior.dispatch(_.Uf({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:b}));var w;((w=Y.data)==null?0:w.submitEndpoint)&&b&&_.fH().resolve(_.Nn).resolveCommand(Y.data.submitEndpoint,{form:{impersonated_channel_url:b,element:Y.hostElement}})},500)};
_.g.handleModifyReportFormCommand=function(Y){this.invalid=this.get("modifyReportFormCommand.action",Y)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.g.updateInvalidFromBinding=function(Y){this.invalid=Y.detail.value};
_.g.updateImpersonatedChannelUrlFromBinding=function(Y){this.impersonatedChannelUrl=Y.detail.value};
Ps.prototype.handleImpersonatedChannelUrlChanged=Ps.prototype.handleImpersonatedChannelUrlChanged;_.z([_.n(_.FX),_.K("design:type",Object)],Ps.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Ps.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ps.prototype,"autoValidate",void 0);_.z([_.R(),_.K("design:type",Object)],Ps.prototype,"invalid",void 0);
_.z([_.R(),_.K("design:type",String)],Ps.prototype,"impersonatedChannelUrl",void 0);_.z([_.R({selector:function(Y){return Y.reportChannelAbuse.impersonatedChannelUrl}}),
_.K("design:type",String)],Ps.prototype,"impersonatedChannelUrlRedux",void 0);_.z([_.R(),_.K("design:type",Object)],Ps.prototype,"data",void 0);_.z([_.xZ("#text-input"),_.K("design:type",Object)],Ps.prototype,"channelUrlInput",void 0);_.z([_.lr("impersonatedChannelUrl"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ps.prototype,"handleImpersonatedChannelUrlChanged",null);
_.z([_.S({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Ps);
_.a(Ps,"ytd-report-channel-modal-impersonation-renderer",function(){if(dTQ!==void 0)return dTQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-report-channel-modal-impersonation-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-text-input-form-field-renderer id="text-input" auto-validate="[[autoValidate]]" component-style="TEXT_INPUT_FORM_FIELD_OUTLINED" data="[[data.impersonationTextField.textInputFormFieldRenderer]]" invalid="[[invalid]]" value="[[impersonatedChannelUrl]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="updateImpersonatedChannelUrlFromBinding" class="style-scope ytd-report-channel-modal-impersonation-renderer"></yt-text-input-form-field-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return dTQ=Y},{mode:1});var FAX;var LAI;var ZP=function(){return _.F.apply(this,arguments)||this};
_.P(ZP,_.F);ZP.prototype.onCheckboxToggled=function(Y){var b,w,V=(w=_.v((b=this.data)==null?void 0:b.video,_.iG))==null?void 0:w.videoId;V&&this.ytdReduxBehavior.dispatch(Y.target.checked?_.Uf({type:"VIDEO_SELECTED",payload:V}):_.Uf({type:"VIDEO_UNSELECTED",payload:V}))};
ZP.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.up.Object.defineProperties(ZP.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.data)==null?void 0:Y.video;if(!b)return{};var w;Y=(w=_.v(b,_.iG))==null?void 0:w.navigationEndpoint;if(!Y)return b;_.v(Y==null?void 0:Y.commandMetadata,_.g5)&&(_.v(Y.commandMetadata,_.g5).ignoreNavigation=!0);return b}}});
_.z([_.R({reflectToAttribute:!0,selector:function(Y,b){return b in Y.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.K("design:type",Boolean)],ZP.prototype,"checked",void 0);_.z([_.R(),_.K("design:type",Object)],ZP.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],ZP.prototype,"video",null);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ZP.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],ZP.prototype,"ytdReduxBehavior",void 0);_.z([_.S({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],ZP);
_.a(ZP,"ytd-selectable-video-renderer",function(){if(LAI!==void 0)return LAI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox checked="[[checked]]" on-change="onCheckboxToggled" class="style-scope ytd-selectable-video-renderer">\n  <div id="video" class="style-scope ytd-selectable-video-renderer"></div>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return LAI=Y},{mode:1});var Bs=function(){var Y=_.F.apply(this,arguments)||this;Y.monitorScroll=!0;return Y};
_.P(Bs,_.F);Bs.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Bs.prototype,"data",void 0);_.z([_.S({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Bs);
_.a(Bs,"ytd-selectable-video-list-renderer",function(){if(FAX!==void 0)return FAX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-selectable-video-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="selectable-videos" hidden="[[!data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer"></div>\n<div id="empty-state-message" hidden="[[data.selectableVideos.length]]" class="style-scope ytd-selectable-video-list-renderer">\n  [[getSimpleString(data.emptyStateMessage)]]\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return FAX=Y},{mode:1});var SU7;_.S9("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var nr=function(){return _.F.apply(this,arguments)||this};
_.P(nr,_.F);nr.prototype.onChange=function(Y){if(Y=_.uW(Y).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.q("kevlar_command_handler_migration_killswitch"))_.IP(this.hostElement,Y,this.hostElement);else{Y=_.N(Y);for(var b=Y.next();!b.done;b=Y.next())this.ytComponentBehavior.resolveCommand(b.value)}};
nr.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
nr.prototype.updateDataToggledFromBinding=function(Y){this.set("data.toggled",Y.detail.value)};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],nr.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nr.prototype,"data",void 0);_.z([_.R({computed:"isEnabled(data)"}),_.K("design:type",Boolean)],nr.prototype,"enabled",void 0);_.z([_.S({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],nr);
_.a(nr,"ytd-toggle-item-renderer",function(){if(SU7!==void 0)return SU7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.descriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="description style-scope ytd-toggle-item-renderer">[[getSimpleString(item)]]</div>\n</template>\n<div id="caption-container" class="style-scope ytd-toggle-item-renderer">\n  <div id="caption" class="style-scope ytd-toggle-item-renderer">[[getSimpleString(data.label)]]</div>\n  <tp-yt-paper-toggle-button checked="[[data.toggled]]" disabled="[[!enabled]]" noink="" on-change="onChange" on-checked-changed="updateDataToggledFromBinding" class="style-scope ytd-toggle-item-renderer">\n  </tp-yt-paper-toggle-button>\n</div>\n<template is="dom-repeat" items="[[data.extraDescriptionLines]]" class="style-scope ytd-toggle-item-renderer">\n  <div class="extra-description style-scope ytd-toggle-item-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-toggle-item-renderer"></yt-formatted-string>\n  </div>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return SU7=Y},{mode:1});var aLd;var rBt;var z9b;var MA=function(){var Y=_.F.apply(this,arguments)||this;Y.setVisible=!1;Y.boundOnSubmitButtonClick=function(){Y.onSubmitButtonClick()};
Y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return Y};
_.P(MA,_.F);MA.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}}}}}};
MA.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
MA.prototype.onSubmitButtonClick=function(){var Y;((Y=this.data)==null?0:Y.submitEndpoint)&&!_.q("enable_ytc_refunds_submit_form_signal_action")&&_.oP(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
MA.prototype.handleSignalActionSubmitForm=function(){var Y;((Y=this.data)==null?0:Y.submitEndpoint)&&_.oP(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.up.Object.defineProperties(MA.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.hiddenByDefault)&&!this.setVisible}}});
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],MA.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],MA.prototype,"setVisible",void 0);_.z([_.R(),_.K("design:type",Object)],MA.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],MA.prototype,"surveyFeedbackData",void 0);_.z([_.R(),_.K("design:type",Object)],MA.prototype,"boundOnSubmitButtonClick",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data","setVisible"),_.K("design:type",Object),_.K("design:paramtypes",[])],MA.prototype,"visibilityHidden",null);_.z([_.FM({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],MA);
_.a(MA,"yt-flow-footer-renderer",function(){if(z9b===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_footer_renderer.yt.flow.footer.renderer.css.js--\x3e<div id="secondary-button" hidden$="[[!data.secondaryButton]]" class="style-scope yt-flow-footer-renderer"></div><div id="primary-button" hidden$="[[!data.primaryButton]]" class="style-scope yt-flow-footer-renderer"></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;rBt===void 0&&(rBt=document.createElement("template"));var V=rBt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);z9b=Y}Y=z9b;return Y},{mode:2});var eJ=function(){return _.F.apply(this,arguments)||this};
_.P(eJ,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],eJ.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],eJ.prototype,"data",void 0);_.z([_.R({selector:function(Y){return Y.ypc.surveyFeedbackData}}),
_.K("design:type",Object)],eJ.prototype,"surveyFeedbackData",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],eJ);
_.a(eJ,"ytd-flow-footer-renderer",function(){if(aLd!==void 0)return aLd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-flow-footer-renderer data="[[data]]" survey-feedback-data="[[surveyFeedbackData]]" class="style-scope ytd-flow-footer-renderer">\n</yt-flow-footer-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return aLd=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var WAt;var KAF;var pr=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return Y};
_.P(pr,_.F);_.g=pr.prototype;_.g.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.aL("multiPageMenuSectionItems")}}};
_.g.handleHideEnclosingAction_=function(Y){if(this.data&&this.data.items)for(var b=0;b<this.data.items.length;b++){var w=this.data.items[b].notificationRenderer;if(w&&w.notificationId==Y.hideEnclosingAction.notificationId){this.splice("data.items",b,1);_.Xx(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.g.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.XM(this.hostElement,"hidden",!0)};
_.g.updateMenu_=function(Y){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&Y&&!Y.doNotRefreshInbox){Y=this.data.continuations;for(var b=0;b<Y.length;b++)if(Y[b].invalidationContinuationData){var w=void 0;var V=(w=Y[b].invalidationContinuationData)==null?void 0:w.continuation;break}Y=_.BL.clone(this.data.continuationUpdateEndpoint||null);Y.continuation=V;Y.click_tracking_params=this.data.trackingParams;_.oP(this.hostElement,[Y])}};
_.g.onServiceRequestCompleted_=function(Y,b){if(this.data&&(Y=b.actions)){b=0;for(var w=Y.length;b<w;b++){var V=_.v(Y[b],_.syU);if(!V)break;if((V.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||V.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&V.continuationItems&&this.data.items){var H=this.data.items.length-1;this.data.items[H].continuationItemRenderer&&this.splice.apply(this,["data.items",H,1].concat(V.continuationItems))}}}};
pr.prototype.onServiceRequestCompleted_=pr.prototype.onServiceRequestCompleted_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],pr.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pr.prototype,"data",void 0);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],pr.prototype,"onServiceRequestCompleted_",null);_.z([_.FM({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],pr);
_.UQ()(pr,"yt-multi-page-menu-section-renderer",function(){if(KAF===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-multi-page-menu-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.account.yt_multi_page_menu_section_renderer.yt.multi.page.menu.section.renderer.css.js--\x3e<div id="section-title" hidden="[[!data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer">\n  <h2 class="style-scope yt-multi-page-menu-section-renderer">\n    <yt-formatted-string text="[[data.notificationSectionTitle]]" class="style-scope yt-multi-page-menu-section-renderer"></yt-formatted-string>\n  </h2>\n</div>\n<div id="items" class="style-scope yt-multi-page-menu-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;WAt===void 0&&(WAt=document.createElement("template"));var V=WAt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);KAF=Y}Y=KAF;return Y},{allowedProps:["data"],
mode:2});var iUg;var ABt;var Om=function(){return _.F.apply(this,arguments)||this};
_.P(Om,_.F);Om.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.up.Object.defineProperties(Om.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.progress)==null?0:this.data.progress*100}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Om.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Om.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Om.prototype,"data",void 0);_.z([_.t("data.progress"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Om.prototype,"showProgressBar",null);
_.z([_.t("data.progress"),_.K("design:type",Number),_.K("design:paramtypes",[])],Om.prototype,"progress",null);_.z([_.FM({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Om);
_.a(Om,"yt-flow-header-renderer",function(){if(ABt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_flow_header_renderer.yt.flow.header.renderer.css.js--\x3e<div id="top-bar" class="style-scope yt-flow-header-renderer">\n  <div id="action-button" hidden$="[[!data.actionButton]]" class="style-scope yt-flow-header-renderer"></div>\n  <yt-formatted-string id="title" force-default-style="" split-lines="1" text="[[data.title]]" class="style-scope yt-flow-header-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-paper-progress id="progress-bar" hidden="[[!showProgressBar]]" value="[[progress]]" class="style-scope yt-flow-header-renderer"></tp-yt-paper-progress>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;iUg===void 0&&(iUg=document.createElement("template"));var V=iUg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ABt=Y}Y=ABt;return Y},{mode:2});var ChA;var yBN;var tT=function(){return _.F.apply(this,arguments)||this};
_.P(tT,_.F);tT.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],tT.prototype,"data",void 0);_.z([_.FM({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],tT);
_.a(tT,"yt-post-confirmation-flow-step-renderer",function(){if(yBN===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-post-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_post_confirmation_flow_step_renderer.yt.post.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-post-confirmation-flow-step-renderer"><div id="text" class="style-scope yt-post-confirmation-flow-step-renderer"></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;ChA===void 0&&(ChA=document.createElement("template"));var V=ChA;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);yBN=Y}Y=yBN;return Y},{mode:2});var $Tt;var jHO;var R9=function(){return _.F.apply(this,arguments)||this};
_.P(R9,_.F);
R9.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"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],R9.prototype,"data",void 0);_.z([_.FM({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],R9);
_.a(R9,"yt-refund-confirmation-flow-step-renderer",function(){if(jHO===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-refund-confirmation-flow-step-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.flow.yt_refund_confirmation_flow_step_renderer.yt.refund.confirmation.flow.step.renderer.css.js--\x3e<div id="container" class="style-scope yt-refund-confirmation-flow-step-renderer"><div id="user-info" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-text" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="confirmation-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="product-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div><div id="billing-details" class="style-scope yt-refund-confirmation-flow-step-renderer"></div></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;$Tt===void 0&&($Tt=document.createElement("template"));var V=$Tt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);jHO=Y}Y=jHO;return Y},{mode:2});_.gS(OzO);_.gS(t1X);var RwF=_.ZE({avatarViewModel:_.et});_.gS(d8O);var FxA=_.ZE({commentInteractionViewModel:t1X,sharedSubscriptionViewModel:d8O,buttonViewModel:_.a1});_.gS(LxF);_.gS(SaR);_.gS(aeb);_.gS(r1t);_.gS(zwR);var Wxb=_.ZE({profileIdentityInfoViewModel:_.ApN,profileInfoViewModel:zwR});_.gS(KxX);_.oL(KxX,"yt-profile-card-view-model",{propNames:["data"]});var de=function(){var Y=_.F.apply(this,arguments)||this;Y.enableFocusFix=_.q("music_web_enable_focus_on_setting_menu_fix")&&_.Wf("IS_MOBILE_WEB",!1);Y.covered=!1;Y.hideMenu=!1;Y.isCommentNotificationOnProfileCard=!1;Y.scrolledByTouch=!1;Y.disableBackdropFilter=_.q("web_disable_backdrop_filter");Y.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return Y};
_.P(de,_.F);_.g=de.prototype;
_.g.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"}}}};
_.g.ready=function(){var Y=this;this.JSC$17993_containerElement.addEventListener("scroll",function(){Y.ytRendererBehavior.markDirty()})};
_.g.attributeChanged=function(Y,b){Y==="menu-style"&&_.Xx(this.hostElement,"yt-multi-page-menu-closed-action",[b])};
_.g.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Io(this,this.focusOnStampFinished))};
_.g.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Io(this,this.focusOnStampFinished))};
_.g.reset=function(){this.closeJobId&&(_.Lb.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.g.focusOnStampFinished=function(Y){Y.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Io(this,this.focusOnStampFinished)),this.doFocus())};
_.g.doFocus=function(){var Y=_.dRr(this.sectionsElement);Y.length&&Y[0].focus()};
_.g.computeMenuStyle=function(Y){return Y?Y.toLowerCase().replace(/_/g,"-"):""};
_.g.computeIsCommentNotificationOnProfileCard=function(Y){return _.q("enable_profile_cards_on_comments")&&Y.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.g.computeHideMenu=function(Y,b){return Y||!(!b||!b.showLoadingSpinner)};
_.g.onPopupClosed=function(){this.isPopUpOpen=!1;_.Xx(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.g.onPopupOpened=function(Y,b){this.isPopUpOpen=!0;b.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Ua(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Uf({type:"CHANNEL_REPORT_RESET"})))};
_.g.onYtNavigate=function(Y,b){this.shouldCloseOnNavigateEvent(b.endpoint)&&_.Xx(this.hostElement,"yt-close-all-popups-action")};
_.g.handleEndpoint=function(Y){Y=_.v(Y,_.S7);!this.isCommentNotificationOnProfileCard&&Y&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17993_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.g.handleActions=function(Y){for(var b=0,w=Y.length;b<w;b++){var V=_.v(Y[b],HiX);V&&this.handleGetMultiPageMenuAction(V);(V=_.v(Y[b],_.syU))&&this.handleAppendContinuationItemsAction(V)}};
_.g.onServiceRequestSentOrCompleted=function(Y,b){Y.detail&&Y.detail.endpoint&&this.handleEndpoint(Y.detail.endpoint);b.actions&&this.handleActions(b.actions)};
_.g.handleGetMultiPageMenuAction=function(Y){var b=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.E6(this.submenuElement).appendChild(b);(Y=Y.menu.multiPageMenuRenderer)&&this.logSubmenu(Y);b.data=Y;b.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.g.handleAppendContinuationItemsAction=function(Y){if(this.data&&Y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&Y.continuationItems&&this.data.sections){var b=this.data.sections.length-1;this.data.sections[b].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),b--);if(this.data.sections[b].multiPageMenuNotificationSectionRenderer&&Y.continuationItems){Y=_.N(Y==null?void 0:Y.continuationItems);for(var w=Y.next();!w.done;w=Y.next())if(w=w.value,_.v(w,pUN)){var V=
void 0,H=void 0,f=void 0,E=void 0,U=void 0;((V=this)==null?0:(H=V.data)==null?0:(f=H.sections)==null?0:(E=f[b])==null?0:(U=E.multiPageMenuNotificationSectionRenderer)==null?0:U.items)&&this.push("data.sections."+b+".multiPageMenuNotificationSectionRenderer.items",w)}else if(_.v(w,_.ESr)||_.v(w,_.cK))this.push("data.sections",w),b++}}};
_.g.logSubmenu=function(Y){if(!_.q("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var b=this.ytRendererBehavior.getScreenLayer(),w=_.dO(b),V=_.R3(b);if((Y=Y.trackingParams)&&w&&V){var H=_.nA(Y);_.q("combine_ve_grafts")?_.Qd().graftServerVe(Y,V,b):_.yX(w,V,H)}}};
_.g.emptySubmenuContainer=function(){for(var Y=_.E6(this.submenuElement);Y.firstChild;)Y.removeChild(Y.firstChild)};
_.g.onMenuBackTap=function(Y){_.Ua(this.hostElement,"yt-submenu-closed");Y.stopPropagation()};
_.g.onSubmenuClosed=function(Y){_.uW(Y)!==this.hostElement&&(this.covered=!1,_.Ua(this.hostElement,"yt-refit"),Y.stopPropagation())};
_.g.onRetrieveLocation=function(Y,b){b.hasComments&&(b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),Y.stopPropagation())};
_.g.shouldCloseOnNavigateEvent=function(Y){if(!Y)return!0;if(_.v(Y,_.gWo)||_.v(Y,_.f4d)||_.v(Y,_.H9k)||_.v(Y,_.Ah))return!1;var b;return((b=_.v(Y==null?void 0:Y.commandMetadata,_.g5))==null?0:b.ignoreNavigation)?!1:!0};
_.g.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.g.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.g.refitAfterRender=function(){var Y=this;_.TC(this,function(){_.Ua(Y.hostElement,"yt-refit")})};
de.prototype.refitAfterRender=de.prototype.refitAfterRender;de.prototype.onRetrieveLocation=de.prototype.onRetrieveLocation;de.prototype.onSubmenuClosed=de.prototype.onSubmenuClosed;de.prototype.onMenuBackTap=de.prototype.onMenuBackTap;de.prototype.onServiceRequestSentOrCompleted=de.prototype.onServiceRequestSentOrCompleted;de.prototype.onYtNavigate=de.prototype.onYtNavigate;de.prototype.onPopupOpened=de.prototype.onPopupOpened;de.prototype.onPopupClosed=de.prototype.onPopupClosed;
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],de.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],de.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],de.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],de.prototype,"enableFocusFix",void 0);_.z([_.R(),_.K("design:type",Object)],de.prototype,"covered",void 0);_.z([_.R({computed:"computeHideMenu(covered, data)"}),_.K("design:type",Object)],de.prototype,"hideMenu",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.K("design:type",String)],de.prototype,"menuStyle",void 0);
_.z([_.R({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.K("design:type",Object)],de.prototype,"isCommentNotificationOnProfileCard",void 0);_.z([_.R(),_.K("design:type",Boolean)],de.prototype,"isPopUpOpen",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],de.prototype,"scrolledByTouch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],de.prototype,"disableBackdropFilter",void 0);
_.z([_.xZ("#sections"),_.K("design:type",HTMLElement)],de.prototype,"sectionsElement",void 0);_.z([_.xZ("#spinner"),_.K("design:type",HTMLElement)],de.prototype,"spinnerElement",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],de.prototype,"headerElement",void 0);_.z([_.xZ("#container"),_.K("design:type",HTMLElement)],de.prototype,"JSC$17993_containerElement",void 0);_.z([_.xZ("#submenu"),_.K("design:type",HTMLElement)],de.prototype,"submenuElement",void 0);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],de.prototype,"onPopupClosed",null);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],de.prototype,"onPopupOpened",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],de.prototype,"onYtNavigate",null);
_.z([_.kZ("yt-service-request-completed"),_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],de.prototype,"onServiceRequestSentOrCompleted",null);_.z([_.kZ("yt-menu-back-tapped"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],de.prototype,"onMenuBackTap",null);
_.z([_.kZ("yt-submenu-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],de.prototype,"onSubmenuClosed",null);_.z([_.kZ("yt-retrieve-location"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],de.prototype,"onRetrieveLocation",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],de.prototype,"refitAfterRender",null);
_.z([_.S({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],de);
_.a(de,"ytd-multi-page-menu-renderer",function(){if(nIX!==void 0)return nIX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-page-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-multi-page-menu-renderer"></tp-yt-paper-spinner>\n</div>\n<div id="header" hidden="[[hideMenu]]" class="style-scope ytd-multi-page-menu-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[hideMenu]]" on-touchstart="onContainerTouchStart" on-touchend="onContainerTouchEnd">\n  <div id="sections" class="style-scope ytd-multi-page-menu-renderer"></div>\n  <div id="footer" class="style-scope ytd-multi-page-menu-renderer"></div>\n</div>\n<div id="submenu" class="menu-container style-scope ytd-multi-page-menu-renderer" hidden="[[!covered]]"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return nIX=Y},{mode:1});var G8b;var Fo=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return Y};
_.P(Fo,_.F);_.g=Fo.prototype;_.g.created=function(){this.showTooltips=!0};
_.g.computeAccessibility_=function(Y){return this.get("accessibility.accessibilityData",Y)||null};
_.g.onTap=function(){var Y=_.De(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(Y&&Y.length===1&&Y[0])_.Xx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var b;if((b=this.data)==null?0:b.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var w;((w=this.data)==null?0:w.menuRequest)&&_.oP(this.hostElement,[this.data.menuRequest])}}};
_.g.handleTopbarMenuClosedAction=function(Y){var b,w;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(Y)===((b=this.data)==null?void 0:(w=b.icon)==null?void 0:w.iconType)&&this.toggleIconState(!1)};
_.g.toggleIconState=function(Y){_.q("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=Y)};
_.g.handleUpdateTopbarAvatarAction=function(Y){var b;Y=(b=_.v(Y,TAA))==null?void 0:b.avatarUrl;var w,V;b=(w=this.data)==null?void 0:(V=w.avatar)==null?void 0:V.thumbnails;Y&&b&&(w={thumbnails:[Object.assign({},b[0],{url:Y})]},this.set("data.avatar",w))};
_.up.Object.defineProperties(Fo.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.E6(this.hostElement).querySelector("#button")}}});
Fo.prototype.onTap=Fo.prototype.onTap;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Fo.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],Fo.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.r2C.YtButtonBehavior),_.K("design:type",Object)],Fo.prototype,"ytButtonBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Fo.prototype,"data",void 0);
_.z([_.xZ("yt-icon-button#button"),_.K("design:type",Object)],Fo.prototype,"iconButton",void 0);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fo.prototype,"onTap",null);_.z([_.S({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Fo);
_.a(Fo,"ytd-topbar-menu-button-renderer",function(){if(G8b!==void 0)return G8b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-menu-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.avatar]]" class="style-scope ytd-topbar-menu-button-renderer">\n  <button id="avatar-btn" aria-haspopup="true" aria-label$="[[data.accessibility.accessibilityData.label]]" class="style-scope ytd-topbar-menu-button-renderer">\n    <yt-img-shadow height="32" thumbnail="[[data.avatar]]" width="32" class="style-scope ytd-topbar-menu-button-renderer"></yt-img-shadow>\n  </button>\n</template>\n<div id="button" class="style-scope ytd-topbar-menu-button-renderer">\n  \n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return G8b=Y},{mode:1});var T0X;var Lr=function(){return _.F.apply(this,arguments)||this};
_.P(Lr,_.F);Lr.prototype.getSelected=function(){return this.reasons.selected};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Lr.prototype,"data",void 0);_.z([_.xZ("#reasons"),_.K("design:type",Object)],Lr.prototype,"reasons",void 0);_.z([_.S({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Lr);
_.a(Lr,"ytd-ad-feedback-content",function(){if(T0X!==void 0)return T0X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  <yt-formatted-string id="reasons-title" text="[[data.reasonsTitle]]" class="style-scope ytd-ad-feedback-content">\n  </yt-formatted-string>\n</template>\n<tp-yt-paper-radio-group id="reasons" class="style-scope ytd-ad-feedback-content">\n  <template is="dom-repeat" items="[[data.reasons]]" as="feedbackReason" class="style-scope ytd-ad-feedback-content">\n    <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-ad-feedback-content">\n      <yt-formatted-string text="[[feedbackReason.reason]]" class="style-scope ytd-ad-feedback-content">\n      </yt-formatted-string>\n    </tp-yt-paper-radio-button>\n  </template>\n</tp-yt-paper-radio-group>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return T0X=Y},{mode:1});var JBg;var SJ=function(){return _.F.apply(this,arguments)||this};
_.P(SJ,_.F);_.g=SJ.prototype;_.g.onPopupOpened=function(){_.Xx(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.g.computeConfirmButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.confirmLabel}};
_.g.computeCancelButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.cancelLabel}};
_.g.onConfirmTap=function(){var Y=this.content.getSelected();Y!==void 0&&(Y=this.data.reasons[Y].endpoint)&&(_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}}),_.Xx(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.g.sendFeedbackSubmitToastAction=function(){var Y;(Y=this.data)!=null&&Y.completionMessage&&_.Xx(this.hostElement,"yt-open-popup-action",[_.bW(this.data.completionMessage),this])};
_.g.onCancelTap=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
SJ.prototype.onPopupOpened=SJ.prototype.onPopupOpened;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],SJ.prototype,"data",void 0);_.z([_.xZ("#content"),_.K("design:type",Object)],SJ.prototype,"content",void 0);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],SJ.prototype,"onPopupOpened",null);
_.z([_.S({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],SJ);
_.a(SJ,"ytd-ad-feedback-renderer",function(){if(JBg!==void 0)return JBg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-feedback-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-ad-feedback-renderer"></yt-formatted-string>\n<ytd-ad-feedback-content id="content" data="[[data]]" class="style-scope ytd-ad-feedback-renderer"></ytd-ad-feedback-content>\n<div class="buttons style-scope ytd-ad-feedback-renderer">\n  <ytd-button-renderer data="[[computeCancelButton(data)]]" on-tap="onCancelTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-feedback-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JBg=Y},{mode:1});var uXt;var a9=function(){return _.F.apply(this,arguments)||this};
_.P(a9,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],a9.prototype,"data",void 0);_.z([_.S({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],a9);
_.a(a9,"ytd-ad-info-dialog-content",function(){if(uXt!==void 0)return uXt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.adReasons]]" class="style-scope ytd-ad-info-dialog-content">\n  \n  <ul id="ad-reasons" class="style-scope ytd-ad-info-dialog-content">\n    <template is="dom-repeat" items="[[data.adReasons]]" as="reason" class="style-scope ytd-ad-info-dialog-content">\n      <li class="style-scope ytd-ad-info-dialog-content">\n        <yt-formatted-string text="[[reason]]" class="style-scope ytd-ad-info-dialog-content">\n        </yt-formatted-string>\n      </li>\n    </template>\n  </ul>\n</template>\n<yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope ytd-ad-info-dialog-content">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return uXt=Y},{mode:1});var YeO;var re=function(){return _.F.apply(this,arguments)||this};
_.P(re,_.F);re.prototype.computeConfirmButton=function(Y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:Y.confirmLabel}};
re.prototype.onConfirmTap=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
re.prototype.computeShouldShowTitle=function(){var Y;return!((Y=this.data)==null||!Y.title)};
re.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
re.prototype.onPopupClosed=re.prototype.onPopupClosed;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],re.prototype,"data",void 0);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],re.prototype,"onPopupClosed",null);_.z([_.S({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],re);
_.a(re,"ytd-ad-info-dialog-renderer",function(){if(YeO!==void 0)return YeO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ad-info-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[computeShouldShowTitle(data.title)]]" class="style-scope ytd-ad-info-dialog-renderer">\n  <h2 id="title" class="style-scope ytd-ad-info-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n</template>\n<ytd-ad-info-dialog-content data="[[data]]" class="style-scope ytd-ad-info-dialog-renderer"></ytd-ad-info-dialog-content>\n<div class="buttons style-scope ytd-ad-info-dialog-renderer">\n  <ytd-button-renderer data="[[computeConfirmButton(data)]]" on-tap="onConfirmTap" class="style-scope ytd-ad-info-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return YeO=Y},{mode:1});var b$7;var z0=function(){var Y=_.F.apply(this,arguments)||this;Y.actionButtonClass="action-button";Y.dismissButtonId="dismiss-button";Y.dialogDismiss=!0;return Y};
_.P(z0,_.F);_.g=z0.prototype;_.g.computeInPlayer=function(Y){return(Y==null?void 0:Y.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.g.computedLogo=function(){var Y,b;return this.isDarkTheme()?(Y=this.data)==null?void 0:Y.logoDark:(b=this.data)==null?void 0:b.logo};
_.g.computedHeaderImage=function(){var Y,b;return this.isDarkTheme()?(Y=this.data)==null?void 0:Y.headerImageDark:(b=this.data)==null?void 0:b.headerImage};
_.g.computeLogoIconId=function(){var Y,b,w,V=(Y=this.computedLogo())==null?void 0:(b=Y.sources)==null?void 0:(w=b[0])==null?void 0:w.height;return V&&V%31===0?"logo-icon-with-padding":"logo-icon"};
_.g.computeLogoIconHeight=function(){var Y,b,w,V=(Y=this.computedLogo())==null?void 0:(b=Y.sources)==null?void 0:(w=b[0])==null?void 0:w.height;return V&&V%31===0?"31":"24"};
_.g.onPopupClosed=function(){_.fH().resolve(_.VM).dispose()};
_.g.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.g.onShow=function(){this.inPlayer&&_.lW(6)};
_.g.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var Y=0;Y<this.data.impressionEndpoints.length;Y++){var b=_.v(this.data.impressionEndpoints[Y],_.rI);b&&this.ytComponentBehavior.resolveCommand(b)}};
_.g.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Xx(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.up.Object.defineProperties(z0.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!((Y=this.data)==null||!Y.headerImageDark)&&!((b=this.data)==null||!b.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.secondaryButton)}}});
z0.prototype.onPopupClosed=z0.prototype.onPopupClosed;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],z0.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.GW.YtVisibilityBehavior),_.K("design:type",Object)],z0.prototype,"ytVisibilityBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],z0.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],z0.prototype,"actionButtonClass",void 0);_.z([_.R(),_.K("design:type",Object)],z0.prototype,"dismissButtonId",void 0);_.z([_.R(),_.K("design:type",Object)],z0.prototype,"dialogDismiss",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],z0.prototype,"hasHeaderImage",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],z0.prototype,"hasPremiumButton",null);
_.z([_.R({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.K("design:type",Boolean)],z0.prototype,"inPlayer",void 0);_.z([_.xZ("#dismiss-button"),_.K("design:type",HTMLElement)],z0.prototype,"dismissButton",void 0);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],z0.prototype,"onPopupClosed",null);_.z([_.S({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],z0);
_.a(z0,"ytd-enforcement-message-view-model",function(){if(b$7!==void 0)return b$7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return b$7=Y},{mode:1});var wRR;var VgF;var Ws=function(){var Y=_.F.apply(this,arguments)||this;Y.TEST_ONLY={immediateValidation:function(){Y.immediateValidation()},
onValidationResponse:function(b){Y.onValidationResponse(b)},
onGenerateHandleFromNameResponse:function(b){Y.onGenerateHandleFromNameResponse(b)}};
return Y};
_.P(Ws,_.F);_.g=Ws.prototype;_.g.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.g.validate=function(){this.immediateValidation()};
_.g.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.g.setHandleInputValue=function(Y){this.handleDir=this.getHandleDir(Y);this.handleInput.value=Y;this.validationState={status:"PENDING"};this.immediateValidation()};
_.g.getHandleDir=function(Y){var b=Y===""&&!1;return(b=_.ZHj.test.call(_.ZHj,Y))?"rtl":"ltr"};
_.g.onDataChanged=function(){var Y,b;this.handleDir=this.getHandleDir((b=(Y=this.data)==null?void 0:Y.handle)!=null?b:"");var w;this.validationState=((w=this.data)==null?0:w.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var V;((V=this.data)==null?0:V.validateOnInit)&&this.immediateValidation()};
_.g.stopPropagation=function(Y){Y.stopPropagation()};
_.g.onInput=function(){var Y;this.handleDir=this.getHandleDir((Y=this.handleInput.value)!=null?Y:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.g.onFocusout=function(Y){this.handleInput.contains(Y.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.g.delayedValidation=function(){var Y,b;this.debouncedValidation((b=(Y=this.data)==null?void 0:Y.validationDelayMs)!=null?b:1E3)};
_.g.immediateValidation=function(){this.debouncedValidation(0)};
_.g.debouncedValidation=function(Y){var b=this;_.ir(this,"debouncedValidation",function(){var w,V=b.staticValidation((w=b.handleInput.value)!=null?w:"");if(V!==void 0)b.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:V};else{var H;if((H=b.data)!=null&&H.validateChannelHandleCommand){b.validationState={status:"LOADING"};var f;b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{handle:(f=b.handleInput.value)!=null?f:""},commandController:{onSuccess:function(E,
U){b.onValidationResponse(U)},
onServerError:function(E,U){b.onValidationServerError(U)}}})}else b.handleUnexpectedValidationError(new _.BQ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",b.data))}},Y)};
_.g.staticValidation=function(Y){var b;if(((b=this.data)==null?void 0:b.channelHandleStaticValidationParams)!==void 0){b=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(Y)&&b.validValueRegexpErrorMessage!==void 0)return b.validValueRegexpErrorMessage;if(b.minLength!==void 0&&Y.length<b.minLength&&b.minLengthErrorMessage!==void 0)return b.minLengthErrorMessage;if(b.maxLength!==void 0&&Y.length>b.maxLength&&b.maxLengthErrorMessage!==void 0)return b.maxLengthErrorMessage}};
_.g.onValidationResponse=function(Y){var b=_.v(Y.result,JoA);b===void 0?this.handleUnexpectedValidationError(new _.BQ("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",Y)):this.handleValidationResultRenderer(b)};
_.g.onValidationServerError=function(Y){this.handleUnexpectedValidationError(new _.BQ("ValidateChannelHandle request failed.",Y))};
_.g.handleValidationResultRenderer=function(Y){if(Y.handle===void 0)this.handleUnexpectedValidationError(new _.BQ("ChannelHandleValidationResultRenderer does not contain handle.",Y));else if(Y.handle===this.handleInput.value)switch(Y.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:Y.handle};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNAVAILABLE":case "CHANNEL_HANDLE_VALIDATION_RESULT_CONFORMANCE_ERROR":case "CHANNEL_HANDLE_VALIDATION_RESULT_COMPLIANCE_ERROR":this.validationState=
{status:"INVALID",errorIndicator:"ICON",errorMessage:Y.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.BQ("Unrecognized ChannelHandleValidationResult",Y));break;default:_.cI(Y.result)}};
_.g.handleUnexpectedValidationError=function(Y){var b;this.validationState={status:"UNKNOWN",handle:(b=this.handleInput.value)!=null?b:""};_.Sk(Y)};
_.g.stopEventPropagation=function(Y){Y.stopPropagation()};
_.g.updateHandleOnChannelNameInputChange=function(Y){if(!this.wasEdited){var b,w;this.debouncedGenerateHandleFromName(Y,(w=(b=this.data)==null?void 0:b.validationDelayMs)!=null?w:1E3)}};
_.g.debouncedGenerateHandleFromName=function(Y,b){var w=this;_.ir(this,"debouncedGenerateHandleFromName",function(){var V;(V=w.data)!=null&&V.validateChannelHandleCommand?w.ytComponentBehavior.resolveCommand(w.data.validateChannelHandleCommand,{form:{name:Y},commandController:{onSuccess:function(H,f){w.onGenerateHandleFromNameResponse(f)},
onServerError:function(H,f){_.Sk(new _.BQ("Error calling GenerateHandleFromName",f))}}}):_.Sk(new _.BQ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",w.data))},b)};
_.g.onGenerateHandleFromNameResponse=function(Y){this.wasEdited||((Y=_.v(Y.result,uRt))?this.setHandleInputValue(Y.handle):_.Sk(new _.BQ("Invalid results when generate handle from name")))};
_.up.Object.defineProperties(Ws.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var Y;if(Y=this.validationState)Y=this.validationState,Y=Y.status==="OK"||Y.status==="UNKNOWN";if(Y)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var Y;if(((Y=this.validationState)==null?void 0:Y.status)==="INVALID")return this.validationState.errorIndicator}},
borderErrorIndicator:{configurable:!0,enumerable:!0,get:function(){return this.errorIndicator==="BORDER"}},
handleEdit:{configurable:!0,enumerable:!0,get:function(){var Y,b=(Y=this.channelHandleEntity)==null?void 0:Y.handleEdit;this.handleDir=this.getHandleDir(b!=null?b:"");return b}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var Y,b;if(((Y=this.data)==null?void 0:(b=Y.channelHandleStaticValidationParams)==null?void 0:b.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Ws.prototype.stopEventPropagation=Ws.prototype.stopEventPropagation;Ws.prototype.onDataChanged=Ws.prototype.onDataChanged;Ws.prototype.applyHandleEdit=Ws.prototype.applyHandleEdit;Ws.prototype.onValueChanged=Ws.prototype.onValueChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Ws.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Ws.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Ws.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Ws.prototype,"wasEdited",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],Ws.prototype,"handleDir",void 0);_.z([_.xZ("#handle-input"),_.K("design:type",Object)],Ws.prototype,"handleInput",void 0);_.z([_.R(),_.t("validationState"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ws.prototype,"value",null);
_.z([_.lr("value"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ws.prototype,"onValueChanged",null);_.z([_.t("validationState"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ws.prototype,"errorIndicator",null);_.z([_.R({reflectToAttribute:!0}),_.t("errorIndicator"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Ws.prototype,"borderErrorIndicator",null);
_.z([_.R({selectorArgs:["data.channelHandleEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"channelHandle",b)}}),
_.K("design:type",Object)],Ws.prototype,"channelHandleEntity",void 0);_.z([_.t("channelHandleEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ws.prototype,"handleEdit",null);_.z([_.lr("handleEdit"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ws.prototype,"applyHandleEdit",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Ws.prototype,"onDataChanged",null);
_.z([_.t("data.channelHandleStaticValidationParams.validValueRegexp"),_.K("design:type",Object),_.K("design:paramtypes",[])],Ws.prototype,"validValueRegexp",null);_.z([_.kZ("yt-service-request-sent"),_.kZ("yt-service-request-completed"),_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],Ws.prototype,"stopEventPropagation",null);_.z([_.S({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Ws);
_.a(Ws,"ytd-channel-handle-input-renderer",function(){if(VgF!==void 0)return VgF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-input-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-input id="handle-input" always-float-label="" dir="[[handleDir]]" input-dir="[[handleDir]]" invalid="[[equals(errorIndicator, \'BORDER\')]]" label="[[data.label]]" required="" use-v2-underline="" value="[[data.handle]]" on-focusout="onFocusout" on-input="onInput" on-keydown="stopPropagation" class="style-scope ytd-channel-handle-input-renderer">\n  <span id="prefix" slot="prefix" class="style-scope ytd-channel-handle-input-renderer">@</span>\n  <div id="suffix-container" slot="suffix" class="style-scope ytd-channel-handle-input-renderer">\n    <div id="icon-container" class="style-scope ytd-channel-handle-input-renderer">\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'LOADING\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope ytd-channel-handle-input-renderer">\n        </tp-yt-paper-spinner-lite>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(errorIndicator, \'ICON\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="error-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:error">\n        </tp-yt-iron-icon>\n      </template>\n      <template is="dom-if" restamp="" if="[[equals(validationState.status, \'OK\')]]" class="style-scope ytd-channel-handle-input-renderer">\n        <tp-yt-iron-icon id="valid-icon" class="end-icon style-scope ytd-channel-handle-input-renderer" icon="icons:check-circle">\n        </tp-yt-iron-icon>\n      </template>\n    </div>\n  </div>\n</tp-yt-paper-input>\n<div id="error-container" class="style-scope ytd-channel-handle-input-renderer">\n  <template is="dom-if" restamp="" if="[[equals(validationState.status, \'INVALID\')]]" class="style-scope ytd-channel-handle-input-renderer">\n    <yt-formatted-string id="error-message" text="[[validationState.errorMessage]]" class="style-scope ytd-channel-handle-input-renderer">\n    </yt-formatted-string>\n  </template>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return VgF=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var Kr=function(){var Y=_.F.apply(this,arguments)||this;Y.data=null;Y.errorMessage=null;Y.isLoading=!0;Y.hideContainer=!1;Y.enableNewChannelCreationOnIdForAll=_.q("enable_new_channel_creation_for_id4all");Y.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};Y.testOnly={setErrorMessage:function(b){Y.resetErrorState();
Y.setErrorState(b)}};
return Y};
_.P(Kr,_.F);_.g=Kr.prototype;_.g.created=function(){this.logScreenVe()};
_.g.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")};
_.g.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var Y;((Y=this.zeroStepErrorMessageEntity)==null?0:Y.value)&&this.set("errorMessage",_.Gx(this.zeroStepErrorMessageEntity.value))};
_.g.onCreateTap=function(){var Y=this;if(this.data&&this.data.channelCreationEndpoint){var b,w;if(!((b=this.data.createChannelButton)==null?0:(w=b.buttonRenderer)==null?0:w.isDisabled)){var V;if((V=this.nameInput)!=null&&V.value){this.setLoadingState();var H,f;b=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(H=this.handleInput)==null?void 0:H.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((f=this.handleInput)==null?void 0:f.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:b,commandController:{onSuccess:function(E,U){Y.onChannelCreationEndpointSuccess(U);Y.obakeImageSource&&_.RY("channelCreatedWithObakeImage",{imageSourceType:Y.obakeImageSource})},
onServerError:function(){Y.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.g.endpointRequiresServiceRequestAction=function(Y){return!!_.v(Y,_.SZ)||!!_.v(Y,TAA)};
_.g.isNavigateAction=function(Y){var b;return!!_.v(Y,_.Kq)||!!_.v((b=_.v(Y,wUR))==null?void 0:b.command,_.Kq)};
_.g.isPlaylistAction=function(Y){return!!_.v(Y,_.aU)||!!_.v(Y,_.AI)};
_.g.onChannelCreationEndpointSuccess=function(Y){if(Y.createChannelError){var b;this.setErrorState((b=Y.createChannelError)==null?void 0:b.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.q("enable_secondary_channel_creation_form")&&Y.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(Y.navigationEndpoint);if(Y.actions){b=_.N(Y.actions);for(var w=b.next();!w.done;w=b.next())if(w=w.value,this.endpointRequiresServiceRequestAction(w)&&this.ytComponentBehavior.resolveCommand(w),
this.isNavigateAction(w)){var V=void 0;w=_.v((V=_.v(w,wUR))==null?void 0:V.command,_.Kq);V=void 0;this.isPlaylistAction((V=w)==null?void 0:V.endpoint)&&(_.Xx(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),V=void 0,this.ytComponentBehavior.resolveCommand((V=w)==null?void 0:V.endpoint))}}Y.actions&&Y.actions.some(function(H){var f;return _.v(H,_.Kq)||_.v((f=_.v(H,wUR))==null?void 0:f.command,_.Kq)})||_.Xx(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.g.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.g.onCancelTap=function(){var Y,b,w;if(!((Y=this.data)==null?0:(b=Y.cancelButton)==null?0:(w=b.buttonRenderer)==null?0:w.isDisabled)){var V,H,f;Y=(V=this.data)==null?void 0:(H=V.cancelButton)==null?void 0:(f=H.buttonRenderer)==null?void 0:f.command;if(!Y||!_.v(Y,_.hFv)){var E;this.nameInput&&((E=this.data)==null?0:E.name)&&(this.nameInput.value=this.data.name);var U;this.handleInput&&((U=this.data)==null?0:U.channelHandleInput)&&(this.handleInput.data=_.v(this.data.channelHandleInput,Y_t));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.g.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.g.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.g.onClearProfilePhotoTap=function(){var Y,b,w;((Y=this.data)==null?0:(b=Y.clearProfilePhotoButton)==null?0:(w=b.buttonRenderer)==null?0:w.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.g.onEditAvatarTap=function(){var Y,b,w;((Y=this.data)==null?0:(b=Y.editAvatarButton)==null?0:(w=b.buttonRenderer)==null?0:w.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.g.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)};
_.g.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var Y;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((Y=this.data)==null?0:Y.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.g.setErrorState=function(Y){this.resetErrorState();if(Y)this.set("errorMessage",Y);else{var b;if((b=this.zeroStepErrorMessageEntity)==null?0:b.value)this.set("errorMessage",_.Gx(this.zeroStepErrorMessageEntity.value));else{var w;((w=this.data)==null?0:w.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.g.fetchImageBlobWithAlr=function(Y,b){b=b===void 0?5:b;var w=this,V,H,f,E,U;return _.c(function(X){switch(X.nextAddress){case 1:return _.D(X,fetch(Y,{method:"GET",mode:"cors"}),2);case 2:V=X.yieldResult;if(V.ok){X.jumpTo(3);break}if(b===0)throw Error();H=w.addJitter(Math.pow(2,5-b));return _.D(X,new Promise(function(I){setTimeout(I,H*1E3)}),4);
case 4:return X.return(w.fetchImageBlobWithAlr(Y,b-1));case 3:if(!V.headers.get("content-type").split(";").some(function(I){return I.trim()==="text/plain"})){X.jumpTo(5);
break}f=w;E=f.fetchImageBlobWithAlr;return _.D(X,V.text(),6);case 6:return X.return(E.call(f,X.yieldResult,b-1));case 5:return _.D(X,V.blob(),7);case 7:return U=X.yieldResult,X.return(U)}})};
_.g.addJitter=function(Y){var b=Y*.3*Math.random();Math.random()>.5&&(b*=-1);return Y+b};
_.g.openProfilePicturePicker=function(){var Y=this,b,w,V,H,f;return _.c(function(E){if(E.nextAddress==1){b=Y.data.scottyUploadUrl;if(!b)return E.return();w=document.documentElement.hasAttribute("dark");V=document.body.style.colorScheme;w&&(document.body.style.colorScheme="dark");H=HEN(gvX(Vut(GiR(w?"dark":"light")),function(U){var X,I,k,l,x;return _.c(function(Q){if(Q.nextAddress==1)return X=_.yk(syt(new vc(U.photoUrl,!1)).build(),"alr","yes"),Y.obakeImageSource=Y.pictureChangeSourceToObakeImageSourceType(U.photoSource),
_.ct(Q,2),Y.setLoadingState(),_.D(Q,Y.fetchImageBlobWithAlr(X),4);if(Q.nextAddress!=2)return I=Q.yieldResult,k=new FileReader,k.addEventListener("load",function(){var Z,e,O,L,r,C;return _.c(function(W){if(W.nextAddress==1){if(I.size>15728640)return Y.setErrorState((Z=Y.data)==null?void 0:Z.imageSizeErrorMessage),_.Sk(Error("ll")),W.return();if(!k.result)return Y.setErrorState((e=Y.data)==null?void 0:e.genericImageLoadErrorMessage),_.Sk(Error("ml")),W.return();O=k.result;_.ct(W,2);return _.D(W,izd(I,
b),4)}if(W.nextAddress!=2)return L=W.yieldResult,Y.handleImageUpdatedAction(O,L),Y.resetErrorState(),_.$u(W,0);r=_.mS(W);Y.setErrorState((C=Y.data)==null?void 0:C.uploadErrorMessage);if(r instanceof Error)_.Ft(r);else{var y=new _.BQ(JSON.stringify(r));_.Ft(y)}_.om(W)})}),k.readAsDataURL(I),_.$u(Q,0);
l=_.mS(Q);Y.setErrorState((x=Y.data)==null?void 0:x.genericImageLoadErrorMessage);l instanceof Error?_.Ft(l):_.LB(new _.BQ(JSON.stringify(l)));_.om(Q)})}),function(){Y.hideContainer=!1;
document.body.style.colorScheme=V});
_.ct(E,2);return _.D(E,H.openPicker(),4)}if(E.nextAddress!=2)return _.$u(E,0);_.mS(E);Y.setErrorState((f=Y.data)==null?void 0:f.selectImageErrorMessage);_.om(E)})};
_.g.pictureChangeSourceToObakeImageSourceType=function(Y){switch(Y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.g.logScreenVe=function(){_.mo(_.Qd(),124448)};
_.g.graftServerVe=function(){var Y=_.R3(),b,w,V=(b=this.data)==null?void 0:(w=b.loggingDirectives)==null?void 0:w.trackingParams;V&&Y&&(this.channelCreationFormVe=_.Qd().graftServerVe(V,Y),Y={visualElement:this.channelCreationFormVe},_.qZ().reportShown(Y))};
_.g.isNameChanged=function(Y){var b;return((b=this.data)==null?void 0:b.name)!==Y};
_.g.isHandleChanged=function(Y){var b,w=_.v((b=this.data)==null?void 0:b.channelHandleInput,Y_t);return w&&Y?w.handle!==Y:!1};
_.g.handleImageUpdatedAction=function(Y,b){this.hideContainer=!1;this.previewDataUrl=Y;this.encryptedBlobId=b};
_.g.handleImageSelectionErrorAction=function(Y){this.hideContainer=!1;this.setErrorState(Y)};
_.g.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.g.showContainer=function(){this.hideContainer=!1};
_.g.maybeWipeZeroStepErrorMessage=function(){var Y,b=(Y=this.data)==null?void 0:Y.zeroStepErrorMessageEntityKey,w;b&&((w=this.zeroStepErrorMessageEntity)==null?0:w.value)&&this.ytdReduxBehavior.dispatch(_.qo("stringEntity",b,{key:b,value:""}))};
_.up.Object.defineProperties(Kr.prototype,{photoThumbnail:{configurable:!0,enumerable:!0,get:function(){if(this.previewDataUrl)return{thumbnails:[{url:this.previewDataUrl,width:180,height:180}]};if(this.data)return this.data.isDefaultProfilePhoto?this.data.defaultProfilePhoto:this.data.profilePhoto}},
userSetPhotoThumbnailUrl:{configurable:!0,enumerable:!0,get:function(){if(this.data&&!this.data.isDefaultProfilePhoto){var Y;return((Y=this.photoThumbnail)==null?0:Y.thumbnails)&&this.photoThumbnail.thumbnails.length>0?this.photoThumbnail.thumbnails[0].url:void 0}}},
hideProfilePhotoButtonLayer:{configurable:!0,enumerable:!0,get:function(){return this.data?!(this.data.clearProfilePhotoButton||this.data.editAvatarButton):!0}},
enableIdentityForAllChannelCreationDialog:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.descriptionInfo}}});
Kr.prototype.dataChanged=Kr.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Kr.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Kr.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Kr.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Kr.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Kr.prototype,"errorMessage",void 0);
_.z([_.R(),_.K("design:type",Object)],Kr.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",String)],Kr.prototype,"previewDataUrl",void 0);_.z([_.R(),_.K("design:type",Number)],Kr.prototype,"obakeImageSource",void 0);_.z([_.R(),_.K("design:type",Object)],Kr.prototype,"hideContainer",void 0);_.z([_.xZ("#title-input"),_.K("design:type",Object)],Kr.prototype,"nameInput",void 0);_.z([_.xZ("#handle-input"),_.K("design:type",Object)],Kr.prototype,"handleInput",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Kr.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.z([_.R({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.wjq}),_.K("design:type",Object)],Kr.prototype,"zeroStepErrorMessageEntity",void 0);_.z([_.t("data","data.isDefaultProfilePhoto","previewDataUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],Kr.prototype,"photoThumbnail",null);
_.z([_.t("data","data.isDefaultProfilePhoto","photoThumbnail"),_.K("design:type",Object),_.K("design:paramtypes",[])],Kr.prototype,"userSetPhotoThumbnailUrl",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kr.prototype,"hideProfilePhotoButtonLayer",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],Kr.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.z([_.vX("data","zeroStepErrorMessageEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Kr.prototype,"dataChanged",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.descriptionInfo","zeroStepErrorMessageEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],Kr.prototype,"description",null);_.z([_.S({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Kr);
_.a(Kr,"ytd-channel-creation-dialog-renderer",function(){if(wRR!==void 0)return wRR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return wRR=Y},{mode:1});var H$b;var i9=function(){var Y=_.F.apply(this,arguments)||this;Y.isLoading=!1;Y.isDisabled=!1;return Y};
_.P(i9,_.F);i9.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
i9.prototype.updateDisabled=function(){var Y;this.isDisabled=this.isLoading||((Y=this.handleInput)==null?void 0:Y.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
i9.prototype.onSaveClick=function(){var Y=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var b;((b=this.data)==null?void 0:b.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 w;if((w=Y.data)==null?0:w.nextEndpoint){var V;Y.ytComponentBehavior.resolveCommand((V=Y.data)==null?void 0:V.nextEndpoint)}else Y.isLoading=
!1,Y.closeDialog()},
onServerError:function(){Y.isLoading=!1;Y.handleInput.validate();var w;Y.errorMessage=(w=Y.data)==null?void 0:w.errorMessage}}}))}};
i9.prototype.closeDialog=function(){_.Xx(this.hostElement,"yt-close-popup-action",[this.is])};
i9.prototype.updateDisabled=i9.prototype.updateDisabled;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],i9.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],i9.prototype,"data",void 0);_.z([_.xZ("#handle-input"),_.K("design:type",Object)],i9.prototype,"handleInput",void 0);_.z([_.lr("isLoading"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],i9.prototype,"updateDisabled",null);
_.z([_.S({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],i9);
_.a(i9,"ytd-channel-handle-edit-dialog-renderer",function(){if(H$b!==void 0)return H$b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-handle-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n  <div id="header" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[data.dismissButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="body" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <yt-img-shadow id="profile-picture" height="128" thumbnail="[[data.profilePicture]]" width="128" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    </yt-img-shadow>\n\n    <div id="name" class="style-scope ytd-channel-handle-edit-dialog-renderer">[[data.channelTitle]]</div>\n\n    <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="updateDisabled" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-channel-handle-input-renderer>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.existingHandle]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div id="existing-handle" dir="ltr" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n        [[data.existingHandle]]\n      </div>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="body-text" text="[[data.bodyText]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </yt-formatted-string>\n    </template>\n\n    <template is="dom-if" restamp="" if="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <yt-formatted-string id="error-message" text="[[errorMessage]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></yt-formatted-string>\n    </template>\n\n    <template is="dom-repeat" items="[[data.infoItems]]" as="infoItem" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <div class="info-item style-scope ytd-channel-handle-edit-dialog-renderer">\n        <yt-icon class="info-item-icon style-scope ytd-channel-handle-edit-dialog-renderer" icon="[[infoItem.icon.iconType]]">\n        </yt-icon>\n        <yt-formatted-string class="info-item-text style-scope ytd-channel-handle-edit-dialog-renderer" text="[[infoItem.infoText]]">\n        </yt-formatted-string>\n      </div>\n    </template>\n  </div>\n\n  <div id="footer" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <template is="dom-if" restamp="" if="[[data.cancelButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="closeDialog" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.saveButton]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      <ytd-button-renderer id="save-button" data="[[data.saveButton.buttonRenderer]]" on-click="onSaveClick" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div id="spinner-container" hidden="[[!isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-handle-edit-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return H$b=Y},{mode:1});var g1A;var AT=function(){return _.F.apply(this,arguments)||this};
_.P(AT,_.F);AT.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],AT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],AT.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],AT);
_.a(AT,"ytd-channel-switcher-footer-renderer",function(){if(g1A!==void 0)return g1A;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="button" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n<div id="feedback" class="style-scope ytd-channel-switcher-footer-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return g1A=Y},{mode:1});var faO;var NQO;var Cr=function(){return _.F.apply(this,arguments)||this};
_.P(Cr,_.F);Cr.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Cr.prototype.onIronChange=Cr.prototype.onIronChange;_.z([_.R(),_.K("design:type",Object)],Cr.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!1}),_.K("design:type",Function)],Cr.prototype,"onDontAskAgainChanged",void 0);_.z([_.xZ("#checkbox"),_.K("design:type",Object)],Cr.prototype,"checkbox",void 0);_.z([_.kZ("iron-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cr.prototype,"onIronChange",null);
_.z([_.S({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Cr);
_.a(Cr,"ytd-identity-prompt-footer-renderer",function(){if(NQO!==void 0)return NQO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-identity-prompt-footer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-identity-prompt-footer-renderer">\n  <yt-formatted-string text="[[data.dontShowAgainText]]" class="style-scope ytd-identity-prompt-footer-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return NQO=Y},{mode:1});var y1=function(){var Y=_.F.apply(this,arguments)||this;Y.dontAskAgain=!1;Y.showPopup=!1;Y.boundDontAskAgainChanged=function(b){Y.dontAskAgainChanged(b)};
Y.boundOnAccountItemTap=function(b){Y.onAccountItemTap(b)};
return Y};
_.P(y1,_.F);_.g=y1.prototype;
_.g.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]]"}}}}}};
_.g.ready=function(){var Y=this;_.E6(this.hostElement).querySelector("#container").addEventListener("scroll",function(){Y.ytRendererBehavior.markDirty()})};
_.g.dontAskAgainChanged=function(Y){this.dontAskAgain=Y};
_.g.onAccountItemTap=function(Y){if(Y){var b={};this.dontAskAgain&&(b={dont_ask_again:this.dontAskAgain});_.yU(Y,b)}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.g.redirectOnlyAccount=function(Y){Y.sections&&Y.sections.length>0&&(Y=_.v(Y.sections[0],_.xq_),(Y==null?0:Y.contents)&&(Y==null?void 0:Y.contents.length)<=1?(Y=_.GO(window.location.href),(Y==null?0:Y.next)&&_.QdG(Y.next)?_.yU(Y.next):_.yU("/")):this.showPopup=!0)};
y1.prototype.dataChanged=y1.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],y1.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!1}),_.K("design:type",Object)],y1.prototype,"dontAskAgain",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],y1.prototype,"showPopup",void 0);_.z([_.R({reflectToAttribute:!1}),_.K("design:type",Object)],y1.prototype,"boundDontAskAgainChanged",void 0);_.z([_.R({reflectToAttribute:!1}),_.K("design:type",Object)],y1.prototype,"boundOnAccountItemTap",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],y1.prototype,"dataChanged",null);
_.z([_.S({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],y1);
_.a(y1,"ytd-channel-switcher-renderer",function(){if(faO!==void 0)return faO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-switcher-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-channel-switcher-renderer"></div>\n<div id="container" class="menu-container style-scope ytd-channel-switcher-renderer">\n  <div id="sections" class="style-scope ytd-channel-switcher-renderer"></div>\n</div>\n<div id="footer" class="style-scope ytd-channel-switcher-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return faO=Y},{mode:1});var E1N;var $z=function(){return _.F.apply(this,arguments)||this};
_.P($z,_.F);_.up.Object.defineProperties($z.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.z([_.R(),_.K("design:type",Object)],$z.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],$z.prototype,"steps",null);_.z([_.S({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],$z);
_.a($z,"ytd-channel-transfer-stepper-renderer",function(){if(E1N!==void 0)return E1N;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-transfer-stepper-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="stepper style-scope ytd-channel-transfer-stepper-renderer">\n  <template is="dom-repeat" items="[[steps]]" as="step" class="style-scope ytd-channel-transfer-stepper-renderer">\n    <div class="step-and-separator style-scope ytd-channel-transfer-stepper-renderer">\n      <div class="step style-scope ytd-channel-transfer-stepper-renderer" state$="[[step.state]]">\n        <yt-formatted-string class="step-title style-scope ytd-channel-transfer-stepper-renderer" text="[[step.title]]"></yt-formatted-string>\n        <div class="step-badge style-scope ytd-channel-transfer-stepper-renderer"></div>\n      </div>\n      <div class="separator style-scope ytd-channel-transfer-stepper-renderer"></div>\n    </div>\n  </template>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return E1N=Y},{mode:1});var cmt;var jJ=function(){var Y=_.F.apply(this,arguments)||this;Y.data=null;Y.isError=!1;Y.isLoading=!1;return Y};
_.P(jJ,_.F);_.g=jJ.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.g.computeProfileName=function(Y){return Y?Y.givenNameValue+" "+Y.familyNameValue:""};
_.g.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)};
_.g.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)};
jJ.prototype.onYtServiceRequestError=jJ.prototype.onYtServiceRequestError;jJ.prototype.onYtServiceRequestSent=jJ.prototype.onYtServiceRequestSent;jJ.prototype.dataChanged=jJ.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jJ.prototype,"data",void 0);
_.z([_.R({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.K("design:type",String)],jJ.prototype,"profileName",void 0);_.z([_.R(),_.K("design:type",Object)],jJ.prototype,"isError",void 0);_.z([_.R(),_.K("design:type",Object)],jJ.prototype,"isLoading",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],jJ.prototype,"dataChanged",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],jJ.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],jJ.prototype,"onYtServiceRequestError",null);_.z([_.S({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],jJ);
_.a(jJ,"ytd-channel-warm-welcome-cont-renderer",function(){if(cmt!==void 0)return cmt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-cont-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-cont-renderer">\n  <div class="popup-header style-scope ytd-channel-warm-welcome-cont-renderer">\n    <h2 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="tiles style-scope ytd-channel-warm-welcome-cont-renderer">\n    <div id="personal-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="personal_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="personal_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.personalAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-profile-picture style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow class="profile-photo style-scope ytd-channel-warm-welcome-cont-renderer" height="96" style="border-radius: 50%" thumbnail="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.profilePhoto]]" width="96">\n          </yt-img-shadow>\n        </div>\n        <div class="tile-profile-name style-scope ytd-channel-warm-welcome-cont-renderer">[[profileName]]</div>\n        <div class="tos style-scope ytd-channel-warm-welcome-cont-renderer">\n          <template is="dom-repeat" items="[[data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer.additionalInfos]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string text="[[item]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></yt-formatted-string>\n          </template>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="personal-account-tile-select-button" class="style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <span class="tile-separator style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n    <div id="brand-account-tile" class="tile style-scope ytd-channel-warm-welcome-cont-renderer">\n      <div class="tile-content style-scope ytd-channel-warm-welcome-cont-renderer">\n        <div class="tile-header style-scope ytd-channel-warm-welcome-cont-renderer">\n          <h3 class="style-scope ytd-channel-warm-welcome-cont-renderer">\n            <yt-formatted-string id="brand_account_tile-title" class="tile-header-title style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.title]]">\n            </yt-formatted-string>\n          </h3>\n        </div>\n        <div class="tile-description style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-formatted-string id="brand_account_tile-description" class="tile-description-text style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.brandAccountTile.description]]">\n          </yt-formatted-string>\n        </div>\n        <div class="tile-illustration style-scope ytd-channel-warm-welcome-cont-renderer">\n          <yt-img-shadow height="164" thumbnail="[[data.brandAccountTile.illustration]]" class="style-scope ytd-channel-warm-welcome-cont-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div class="tile-button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n        <span id="brand-account-tile-select-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n      </div>\n    </div>\n    <div class="spinner-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isLoading]]">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-warm-welcome-cont-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n  <div class="error-container style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!isError]]">\n    <yt-formatted-string class="error style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.errorMessage]]"></yt-formatted-string>\n  </div>\n  <div class="disclaimer-layer style-scope ytd-channel-warm-welcome-cont-renderer" hidden="[[!data.disclaimer]]">\n      <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-warm-welcome-cont-renderer" text="[[data.disclaimer]]"></yt-formatted-string>\n  </div>\n  <div class="button-layer style-scope ytd-channel-warm-welcome-cont-renderer">\n    <span id="cancel-button" class="centered-button tile-button style-scope ytd-channel-warm-welcome-cont-renderer"></span>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return cmt=Y},{mode:1});var U7d;var G0=function(){var Y=_.F.apply(this,arguments)||this;Y.data=null;return Y};
_.P(G0,_.F);G0.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
G0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],G0.prototype,"data",void 0);_.z([_.S({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],G0);
_.a(G0,"ytd-channel-warm-welcome-renderer",function(){if(U7d!==void 0)return U7d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-warm-welcome-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-warm-welcome-renderer">\n  <div class="illustration style-scope ytd-channel-warm-welcome-renderer">\n    <yt-img-shadow height="254" thumbnail="[[data.illustration]]" class="style-scope ytd-channel-warm-welcome-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="content style-scope ytd-channel-warm-welcome-renderer">\n    <div class="popup-header style-scope ytd-channel-warm-welcome-renderer">\n      <h2 class="style-scope ytd-channel-warm-welcome-renderer">\n        <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-warm-welcome-renderer" text="[[data.title]]">\n        </yt-formatted-string>\n      </h2>\n    </div>\n    <div class="popup-description style-scope ytd-channel-warm-welcome-renderer">\n      <yt-formatted-string id="description" class="popup-description-text style-scope ytd-channel-warm-welcome-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="button-layer style-scope ytd-channel-warm-welcome-renderer">\n      <div id="next-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n      <div id="cancel-button" class="style-scope ytd-channel-warm-welcome-renderer"></div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return U7d=Y},{mode:1});var XRd;var T0=function(){return _.F.apply(this,arguments)||this};
_.P(T0,_.F);_.up.Object.defineProperties(T0.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.authorThumbnail)||{}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],T0.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],T0.prototype,"thumbnailDetails",null);_.z([_.S({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],T0);
_.a(T0,"ytd-comment-preview-renderer",function(){if(XRd!==void 0)return XRd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="avatar-block style-scope ytd-comment-preview-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-comment-preview-renderer" fit="" thumbnail="[[thumbnailDetails]]">\n  </yt-img-shadow>\n</div>\n<div class="content-block style-scope ytd-comment-preview-renderer">\n  <div class="username style-scope ytd-comment-preview-renderer">[[data.authorName]]</div>\n  <div class="preview-text style-scope ytd-comment-preview-renderer">\n    <yt-formatted-string split-lines="true" text="[[data.commentText]]" class="style-scope ytd-comment-preview-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return XRd=Y},{mode:1});var D7F;var JT=function(){return _.F.apply(this,arguments)||this};
_.P(JT,_.F);JT.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.up.Object.defineProperties(JT.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.submitButton}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],JT.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],JT.prototype,"submitButton",null);_.z([_.S({is:"ytd-notice-renderer",disableElementRegistration:!0})],JT);
_.a(JT,"ytd-notice-renderer",function(){if(D7F!==void 0)return D7F;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notice-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="left style-scope ytd-notice-renderer">\n  <img alt="" class="illustration style-scope ytd-notice-renderer" src$="[[data.illustrationUrl]]">\n</div>\n\n<div class="right style-scope ytd-notice-renderer">\n  <yt-icon class="youtube-logo right-item style-scope ytd-notice-renderer" icon="yt-logos-ext:yt-logo-updated"></yt-icon>\n    <div class="notice-content right-item style-scope ytd-notice-renderer">\n      <yt-formatted-string class="notice-title style-scope ytd-notice-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="notice-description style-scope ytd-notice-renderer" text="[[data.description]]">\n      </yt-formatted-string>\n    </div>\n    <div class="toolbar right-item style-scope ytd-notice-renderer">\n      <div id="submit-button" class="style-scope ytd-notice-renderer"></div>\n    </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return D7F=Y},{mode:1});var m77;var u9=function(){return _.F.apply(this,arguments)||this};
_.P(u9,_.F);u9.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],u9.prototype,"data",void 0);_.z([_.S({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],u9);
_.a(u9,"ytd-preview-comment-dialog-content",function(){if(m77!==void 0)return m77;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="text-area style-scope ytd-preview-comment-dialog-content">\n  <div class="title style-scope ytd-preview-comment-dialog-content">[[data.title]]</div>\n  <div id="comment-preview" class="style-scope ytd-preview-comment-dialog-content"></div>\n  <div class="messages style-scope ytd-preview-comment-dialog-content">\n    <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-preview-comment-dialog-content">\n      <yt-formatted-string class="message style-scope ytd-preview-comment-dialog-content" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return m77=Y},{mode:1});var o1N;var bu=function(){return _.F.apply(this,arguments)||this};
_.P(bu,_.F);bu.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
bu.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],bu.prototype,"data",void 0);_.z([_.S({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],bu);
_.a(bu,"ytd-preview-comment-dialog-renderer",function(){if(o1N!==void 0)return o1N;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-preview-comment-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-preview-comment-dialog-content data="[[data]]" class="style-scope ytd-preview-comment-dialog-renderer">\n</ytd-preview-comment-dialog-content>\n<div class="bottom style-scope ytd-preview-comment-dialog-renderer">\n  <div id="buttons" class="style-scope ytd-preview-comment-dialog-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return o1N=Y},{mode:1});var Ias;var ksF=_.q("web_button_rework")&&_.Wf("BUTTON_REWORK")||_.q("web_button_rework_with_live"),wj=function(){var Y=_.F.apply(this,arguments)||this;Y.closeLabel=_.sa("CLOSE");Y.selectedAmountIndex=1;Y.privacyCheckboxValue=!1;Y.useAmsterdamStyle=ksF;Y.amountPlaceholderIndex=-1;return Y};
_.P(wj,_.F);_.g=wj.prototype;_.g.onAmountClick=function(Y){this.selectedAmountIndex=_.E6(this.hostElement).querySelector("#amounts").indexForElement(Y.currentTarget)};
_.g.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Xx(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.g.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Xx(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Xx(this.hostElement,"yt-close-popup-action",[this.is]);var Y;(Y=_.V4())==null||Y.getPlayerPromise().then(function(b){b.pauseVideo()})}};
_.g.donationCallback=function(Y){Y.success?(this.hostElement.hasAttribute("live-chat")&&Y.response&&Y.response.data&&Y.response.data.actions&&_.Xx(this.hostElement,"yt-live-chat-open-popup",[Y.response.data.actions[0]]),_.Xx(this.hostElement,"yt-close-popup-action",[this.is]),_.Xx(this.hostElement,"yt-live-chat-close-buy-flow")):Y.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(Y.errorMessageRenderer)};
_.g.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.E6(this.hostElement).querySelector("#custom-amount-input").focus()};
_.g.updateConfirmationDialogTextWithAmount=function(Y){var b=this.getConfirmDialogRuns();b&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(b),"text"],this.getFormattedAmount(Y))};
_.g.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.g.getAmountPlaceholderIndex=function(Y){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=Y.findIndex(function(b){return b.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.g.getFormattedAmount=function(Y){var b;return(new _.i3(4,((b=this.data)==null?void 0:b.currencyCode)||"")).format(Y)};
_.g.isAmountValid=function(Y){if(Y==="")return!1;Y=Number(Y)*1E6;var b=this.get("minAmountMicros",this.data),w=this.get("maxAmountMicros",this.data);return b&&Y<b||w&&Y>w?!1:!0};
_.g.setInputError=function(){this.shouldShowValidationError?_.E6(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.E6(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.g.setInitialCheckboxValue=function(){var Y;this.privacyCheckboxValue=!((Y=this.data)==null||!Y.privacyCheckboxInitialState)};
_.g.updateCustomAmountInputFromBinding=function(Y){this.customAmountInput=Y.detail.value};
_.g.updatePrivacyCheckboxValueFromBinding=function(Y){this.privacyCheckboxValue=Y.detail.value};
_.up.Object.defineProperties(wj.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var Y=this,b,w;return((b=this.data)==null?void 0:(w=b.suggestedAmounts)==null?void 0:w.map(function(V,H){return{buttonRenderer:{style:Y.selectedAmountIndex===H?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:V.label}}}))||[]}},
isCustomAmountSelected:{configurable:!0,enumerable:!0,get:function(){return!this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data)}},
showPrivacyCheckbox:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.privacyCheckboxText)}},
amountMicros:{configurable:!0,enumerable:!0,get:function(){return this.customAmount?this.isAmountValid(this.customAmount)?Number(this.customAmount)*1E6:null:Number(this.get("suggestedAmounts."+this.selectedAmountIndex+".amountMicros",this.data))}},
customAmount:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected?this.customAmountInput||"":null}},
shouldShowValidationError:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null||this.customAmount===""?!1:!this.isAmountValid(this.customAmount)}},
isDonateButtonEnabled:{configurable:!0,enumerable:!0,get:function(){return this.customAmount===null?!0:this.isAmountValid(this.customAmount)}},
donateCommand:{configurable:!0,enumerable:!0,get:function(){var Y=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(Y&&this.amountMicros!==null)return Object.assign({},Y,{ypcGetCartEndpoint:Object.assign({},Y.ypcGetCartEndpoint,{donationAmountMicros:this.amountMicros,productData:{donationData:{isAnonymousDonation:!this.privacyCheckboxValue}}})})}},
donateCommandWithConfirmation:{configurable:!0,enumerable:!0,get:function(){return this.isCustomAmountSelected&&this.confirmLargeAmountCommand&&this.amountMicros&&this.amountMicros>=this.largeDonationThreshold?this.confirmLargeAmountCommand:this.donateCommand}},
largeDonationThreshold:{configurable:!0,enumerable:!0,get:function(){return 100*this.get("minAmountMicros",this.data)}},
confirmLargeAmountCommand:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("confirmLargeAmount",this.data);if(Y&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),Y}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("donateButton.buttonRenderer",this.data);if(Y)return Object.assign({},Y,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
wj.prototype.setInitialCheckboxValue=wj.prototype.setInitialCheckboxValue;wj.prototype.setInputError=wj.prototype.setInputError;wj.prototype.setFocusOnCustomAmountInput=wj.prototype.setFocusOnCustomAmountInput;_.z([_.n(vcd),_.K("design:type",Object)],wj.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],wj.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],wj.prototype,"closeLabel",void 0);_.z([_.R(),_.K("design:type",Object)],wj.prototype,"selectedAmountIndex",void 0);_.z([_.R(),_.K("design:type",String)],wj.prototype,"customAmountInput",void 0);_.z([_.R(),_.K("design:type",Object)],wj.prototype,"privacyCheckboxValue",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],wj.prototype,"useAmsterdamStyle",void 0);_.z([_.lr("customAmount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wj.prototype,"setFocusOnCustomAmountInput",null);_.z([_.t("data","selectedAmountIndex"),_.K("design:type",Array),_.K("design:paramtypes",[])],wj.prototype,"suggestedAmountButtons",null);
_.z([_.t("data","selectedAmountIndex"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wj.prototype,"isCustomAmountSelected",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wj.prototype,"showPrivacyCheckbox",null);_.z([_.t("data","selectedAmountIndex","customAmount"),_.K("design:type",Object),_.K("design:paramtypes",[])],wj.prototype,"amountMicros",null);
_.z([_.t("isCustomAmountSelected","customAmountInput"),_.K("design:type",Object),_.K("design:paramtypes",[])],wj.prototype,"customAmount",null);_.z([_.t("customAmount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wj.prototype,"shouldShowValidationError",null);_.z([_.t("customAmount"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],wj.prototype,"isDonateButtonEnabled",null);
_.z([_.t("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.K("design:type",Object),_.K("design:paramtypes",[])],wj.prototype,"donateCommand",null);_.z([_.t("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.K("design:type",Object),_.K("design:paramtypes",[])],wj.prototype,"donateCommandWithConfirmation",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],wj.prototype,"largeDonationThreshold",null);
_.z([_.t("customAmount","donateCommand","amountMicros"),_.K("design:type",Object),_.K("design:paramtypes",[])],wj.prototype,"confirmLargeAmountCommand",null);_.z([_.t("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.K("design:type",Object),_.K("design:paramtypes",[])],wj.prototype,"donateButtonRenderer",null);_.z([_.lr("shouldShowValidationError"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wj.prototype,"setInputError",null);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],wj.prototype,"setInitialCheckboxValue",null);_.z([_.S({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],wj);
_.a(wj,"ytd-donation-amount-picker-renderer",function(){if(Ias!==void 0)return Ias;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Ias=Y},{mode:1});var lad;var VE=function(){return _.F.apply(this,arguments)||this};
_.P(VE,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],VE.prototype,"ytComponentBehavior",void 0);_.z([_.R({}),_.K("design:type",Object)],VE.prototype,"data",void 0);_.z([_.S({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],VE);
_.a(VE,"ytd-donation-post-transaction-content",function(){if(lad!==void 0)return lad;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon-row" class="style-scope ytd-donation-post-transaction-content">\n  <yt-img-shadow thumbnail="[[data.donationIcon]]" width="52" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n</div>\n<div id="messages" class="style-scope ytd-donation-post-transaction-content">\n  <div id="message" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.thankYouMessage)]]\n  </div>\n  <div id="additional-info" class="style-scope ytd-donation-post-transaction-content">\n    [[getSimpleString(data.additionalInfo)]]\n  </div>\n</div>\n<div id="thankyou-messages" class="style-scope ytd-donation-post-transaction-content">\n  <div class="thankyou-message style-scope ytd-donation-post-transaction-content">\n    <div class="avatar style-scope ytd-donation-post-transaction-content">\n      <yt-img-shadow thumbnail="[[data.creatorMessage.thumbnail]]" width="32" class="style-scope ytd-donation-post-transaction-content"></yt-img-shadow>\n    </div>\n    <div class="content style-scope ytd-donation-post-transaction-content">\n      <div class="body style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.description)]]\n      </div>\n      <div class="user style-scope ytd-donation-post-transaction-content">\n        [[getSimpleString(data.creatorMessage.title)]]\n      </div>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return lad=Y},{mode:1});var h1Q;var HC=function(){return _.F.apply(this,arguments)||this};
_.P(HC,_.F);HC.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.z([_.R({}),_.K("design:type",Object)],HC.prototype,"data",void 0);_.z([_.S({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],HC);
_.a(HC,"ytd-donation-post-transaction-renderer",function(){if(h1Q!==void 0)return h1Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-post-transaction-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-post-transaction-renderer">\n  <div id="title" class="style-scope ytd-donation-post-transaction-renderer">\n    <yt-icon-button dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer">\n      <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-post-transaction-renderer"></yt-icon>\n    </yt-icon-button>\n  </div>\n  <ytd-donation-post-transaction-content data="[[data]]" class="style-scope ytd-donation-post-transaction-renderer">\n  </ytd-donation-post-transaction-content>\n  <div id="button-row" class="style-scope ytd-donation-post-transaction-renderer">\n    <div id="done-button" dialog-dismiss="" class="style-scope ytd-donation-post-transaction-renderer"></div>\n    <ytd-button-renderer data="[[data.shareButton.buttonRenderer]]" class="style-scope ytd-donation-post-transaction-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return h1Q=Y},{mode:1});var x7g;var qeF;var gj=function(){return _.F.apply(this,arguments)||this};
_.P(gj,_.F);gj.prototype.computeIsStreamingProvider=function(Y){return!!Y.isStreamingShelf};
gj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],gj.prototype,"data",void 0);_.z([_.R({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],gj.prototype,"isStreamingProvider",void 0);
_.z([_.S({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],gj);
_.a(gj,"ytd-media-provider-renderer",function(){if(qeF!==void 0)return qeF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-provider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="provider style-scope ytd-media-provider-renderer">\n  <yt-img-shadow class="thumbnail style-scope ytd-media-provider-renderer" fit="" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]">\n  </yt-img-shadow>\n  <div class="provider-details style-scope ytd-media-provider-renderer">\n    <div id="action-button" class="style-scope ytd-media-provider-renderer"></div>\n    <p id="media-price" hidden="[[!data.mediaPrice]]" class="style-scope ytd-media-provider-renderer">\n      [[getSimpleString(data.mediaPrice)]]\n    </p>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return qeF=Y},{mode:1});var sxt;var fI=function(){return _.F.apply(this,arguments)||this};
_.P(fI,_.F);fI.prototype.observeLightsourcePalette=function(){var Y,b=(Y=this.data)==null?void 0:Y.vibrantsourceColorPaletteData;b&&_.Fl(this.hostElement,b)};
fI.prototype.observeLightsourcePalette=fI.prototype.observeLightsourcePalette;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],fI.prototype,"data",void 0);
_.z([_.lr("data.vibrantsourceColorPaletteData"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fI.prototype,"observeLightsourcePalette",null);_.z([_.S({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],fI);
_.a(fI,"ytd-streaming-pop-up-dialog",function(){if(sxt!==void 0)return sxt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-streaming-pop-up-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-streaming-pop-up-dialog">\n  <div class="image-wrapper style-scope ytd-streaming-pop-up-dialog">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-streaming-pop-up-dialog" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-streaming-pop-up-dialog" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-streaming-pop-up-dialog"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-streaming-pop-up-dialog">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="providers style-scope ytd-streaming-pop-up-dialog">\n    <template is="dom-repeat" items="[[data.mediaProviders]]" as="mediaProviders" class="style-scope ytd-streaming-pop-up-dialog">\n      <ytd-media-provider-renderer data="[[mediaProviders.mediaProviderRenderer]]" class="style-scope ytd-streaming-pop-up-dialog">\n      </ytd-media-provider-renderer>\n    </template>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return sxt=Y},{mode:1});var Nt=function(){return _.F.apply(this,arguments)||this};
_.P(Nt,_.F);Nt.prototype.onPopupOpened_=function(){var Y;((Y=this.data)==null?0:Y.serviceEndpoint)&&_.fH().resolve(_.Nn).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Nt.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Nt.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"}}}}};
Nt.prototype.onPopupOpened_=Nt.prototype.onPopupOpened_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.Af),_.K("design:type",Object)],Nt.prototype,"ytContinuationHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Nt.prototype,"data",void 0);
_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Nt.prototype,"onPopupOpened_",null);_.z([_.S({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Nt);
_.a(Nt,"ytd-brandconnect-popup-renderer",function(){if(x7g!==void 0)return x7g;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brandconnect-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-brandconnect-popup-renderer">\n  <yt-formatted-string id="title" text="[[data.popUpTitle]]" class="style-scope ytd-brandconnect-popup-renderer"></yt-formatted-string>\n  <div id="dismiss-button" class="style-scope ytd-brandconnect-popup-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-brandconnect-popup-renderer">\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return x7g=Y},{mode:1});var QxR;var E$=function(){return _.F.apply(this,arguments)||this};
_.P(E$,_.F);_.g=E$.prototype;_.g.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){for(var Y=0;Y<this.getOptionRenderers().length;Y++)this.notifyPath("data.options."+Y+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+Y+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.g.updateSubmitButton=function(Y){this.set("data.submitButton.buttonRenderer.isDisabled",!Y)};
_.g.computeAlt=function(Y){return _.Tx(Y)};
_.g.onDismissTap=function(){_.Xx(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.getOptionRenderers=function(Y){return(Y=Y||this.data)&&Y.options?Y.options.reduce(function(b,w){w.checkboxSurveyOptionRenderer&&b.push(w.checkboxSurveyOptionRenderer);return b},[]):[]};
_.g.onOptionChange=function(Y){var b=this,w=!1;if(Y.detail.checked)for(var V=this.getOptionRenderers().find(function(U){return U.value===Y.detail.value}),H=this.getOptionRenderers(),f=0;f<H.length;f++){var E=H[f];
this.notifyPath("data.options."+f+".checkboxSurveyOptionRenderer.checked");E.checked&&((V==null?0:V.isExclusiveOption)?!E.isExclusiveOption:E.isExclusiveOption)?this.set("data.options."+f+".checkboxSurveyOptionRenderer.checked",!1):E.checked&&(w=!0)}else w=this.getOptionRenderers().some(function(U,X){b.notifyPath("data.options."+X+".checkboxSurveyOptionRenderer.checked");return U.checked});
this.updateSubmitButton(w)};
_.g.onSubmitTap=function(){var Y=this.getOptionRenderers().filter(function(f){return f.checked});
if(Y.length!==0){var b=Y.map(function(f){return f.responseEndpoint});
Y=[];for(var w=1;w<b.length;w++){var V=void 0,H=(V=_.v(b[w],_.aM))==null?void 0:V.feedbackToken;H&&Y.push(H)}b=[b[0]];Y.length&&b.push({extra_feedback_tokens:Y});_.oP(this.hostElement,b);_.Xx(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);Y=this.data&&this.data.submitActions||[];if(_.q("kevlar_command_handler_migration_killswitch"))_.IP(this.hostElement,Y,this.hostElement);else for(Y=_.N(Y),b=Y.next();!b.done;b=Y.next())this.ytComponentBehavior.resolveCommand(b.value)}};
E$.prototype.onOptionChange=E$.prototype.onOptionChange;E$.prototype.dataChanged=E$.prototype.dataChanged;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],E$.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],E$.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.z([_.n(KgQ),_.K("design:type",Object)],E$.prototype,"ytdHatsSurveyBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],E$.prototype,"data",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],E$.prototype,"dataChanged",null);
_.z([_.kZ("ytd-checkbox-survey-option-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],E$.prototype,"onOptionChange",null);_.z([_.S({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],E$);
_.a(E$,"ytd-checkbox-survey-renderer",function(){if(QxR!==void 0)return QxR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-checkbox-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-checkbox-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-checkbox-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-checkbox-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-checkbox-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-checkbox-survey-renderer"></div>\n<div id="footer" class="style-scope ytd-checkbox-survey-renderer">\n  <ytd-button-renderer data="[[data.submitButton.buttonRenderer]]" on-click="onSubmitTap" class="style-scope ytd-checkbox-survey-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return QxR=Y},{mode:1});var v1d;var P5Q;var cC=function(){return _.F.apply(this,arguments)||this};
_.P(cC,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.z([_.n(Wgs),_.K("design:type",Object)],cC.prototype,"ytdDismissalReasonBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],cC.prototype,"data",void 0);_.z([_.S({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],cC);
_.a(cC,"ytd-dismissal-reason-text-renderer",function(){if(P5Q!==void 0)return P5Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-text-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-text-renderer">\n  <yt-formatted-string text="[[data.text]]" class="style-scope ytd-dismissal-reason-text-renderer"></yt-formatted-string>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return P5Q=Y},{mode:1});var Z$O;var U$=function(){return _.F.apply(this,arguments)||this};
_.P(U$,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);_.z([_.n(Wgs),_.K("design:type",Object)],U$.prototype,"ytdDismissalReasonBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],U$.prototype,"data",void 0);_.z([_.S({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],U$);
_.a(U$,"ytd-dismissal-reason-video-renderer",function(){if(Z$O!==void 0)return Z$O;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-reason-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-formatted-string id="label" text="[[data.text]]" class="style-scope ytd-dismissal-reason-video-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-checkbox>\n<div id="video" class="style-scope ytd-dismissal-reason-video-renderer">\n  <yt-img-shadow thumbnail="[[data.videoThumb]]" width="120" class="style-scope ytd-dismissal-reason-video-renderer"></yt-img-shadow>\n  <div id="video-metadata" class="style-scope ytd-dismissal-reason-video-renderer">\n    <yt-formatted-string id="video-title" ellipsis-truncate="" text="[[data.videoTitle]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="video-creator" ellipsis-truncate="" text="[[data.creatorLine]]" class="style-scope ytd-dismissal-reason-video-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Z$O=Y},{mode:1});var Xp=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(Xp,_.F);_.g=Xp.prototype;_.g.created=function(){this.selectedFeedbackTokens=new is};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.g.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.g.onDismissalReasonSelected=function(Y,b){_.Ua(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(b);this.hasReasonsSelected=!0};
_.g.onDismissalReasonDeselected=function(Y,b){_.Ua(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(b);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.g.onCancelTap=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
_.g.onSubmitTap=function(){var Y=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(Y={feedback_tokens:Y},_.fH().resolve(_.Nn).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}));_.Xx(this.hostElement,"yt-close-popup-action")};
Xp.prototype.onDismissalReasonDeselected=Xp.prototype.onDismissalReasonDeselected;Xp.prototype.onDismissalReasonSelected=Xp.prototype.onDismissalReasonSelected;Xp.prototype.dataChanged=Xp.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Xp.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Boolean)],Xp.prototype,"hasReasonsSelected",void 0);_.z([_.R(),_.K("design:type",is)],Xp.prototype,"selectedFeedbackTokens",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Xp.prototype,"darkerDarkTheme",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Xp.prototype,"dataChanged",null);
_.z([_.kZ("yt-dismissal-reason-selected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],Xp.prototype,"onDismissalReasonSelected",null);_.z([_.kZ("yt-dismissal-reason-deselected"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,String]),_.K("design:returntype")],Xp.prototype,"onDismissalReasonDeselected",null);_.z([_.S({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Xp);
_.a(Xp,"ytd-dismissal-follow-up-renderer",function(){if(v1d!==void 0)return v1d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-dismissal-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-dismissal-follow-up-renderer">\n  <yt-formatted-string id="title" text="[[data.dismissalReasonsPrompt]]" class="style-scope ytd-dismissal-follow-up-renderer">\n  </yt-formatted-string>\n  <div id="reasons" class="style-scope ytd-dismissal-follow-up-renderer"></div>\n</div>\n<div id="buttons" class="style-scope ytd-dismissal-follow-up-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancelTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="submit" data="[[data.submitButton.buttonRenderer]]" disabled="[[!hasReasonsSelected]]" on-tap="onSubmitTap" class="style-scope ytd-dismissal-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return v1d=Y},{mode:1});var BQX;var D0=function(){return _.F.apply(this,arguments)||this};
_.P(D0,_.F);_.g=D0.prototype;_.g.onCheckedChange=function(){this.multiselect||_.Ua(this.hostElement,"yt-feedback-single-select-changed");_.E6(this.hostElement).querySelector("#freeform").focus();_.Ua(this.hostElement,"yt-refit")};
_.g.showTextBox=function(Y,b){return Y&&b};
_.g.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))};
_.g.updateDataCheckedFromBinding=function(Y){this.set("data.checked",Y.detail.value)};
_.g.updateDataResultTextFromBinding=function(Y){this.set("data.resultText",Y.detail.value)};
D0.prototype.dataChanged=D0.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],D0.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],D0.prototype,"multiselect",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],D0.prototype,"dataChanged",null);
_.z([_.S({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],D0);
_.a(D0,"ytd-feedback-option-renderer",function(){if(BQX!==void 0)return BQX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-radio-button class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-radio-button>\n<tp-yt-paper-checkbox class="choice style-scope ytd-feedback-option-renderer" checked="[[data.checked]]" hidden="[[!multiselect]]" on-change="onCheckedChange" on-checked-changed="updateDataCheckedFromBinding">\n  [[getSimpleString(data.description)]]\n</tp-yt-paper-checkbox>\n<tp-yt-paper-textarea id="freeform" hidden="[[!showTextBox(data.checked, data.allowFreeTextInput)]]" label="[[getSimpleString(data.freeTextHint)]]" maxlength="1000" use-v2-underline="" value="[[data.resultText]]" on-value-changed="updateDataResultTextFromBinding" class="style-scope ytd-feedback-option-renderer">\n</tp-yt-paper-textarea>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return BQX=Y},{mode:1});var n1I;var mP=function(){return _.F.apply(this,arguments)||this};
_.P(mP,_.F);mP.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
mP.prototype.onSingleSelectCheckedChanged=function(Y){Y=_.uW(Y);for(var b=0;b<this.data.options.length;b++)if(Y.data!==_.v(this.data.options[b],rxs)){var w="data.options."+b+".feedbackOptionRenderer.checked";this.notifyPath(w);this.set(w,!1)}};
mP.prototype.onSingleSelectCheckedChanged=mP.prototype.onSingleSelectCheckedChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],mP.prototype,"data",void 0);
_.z([_.kZ("yt-feedback-single-select-changed"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],mP.prototype,"onSingleSelectCheckedChanged",null);_.z([_.S({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],mP);
_.a(mP,"ytd-feedback-question-renderer",function(){if(n1I!==void 0)return n1I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="question-text style-scope ytd-feedback-question-renderer">\n  [[getSimpleString(data.question)]]\n</div>\n<div id="options" class="style-scope ytd-feedback-question-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return n1I=Y},{mode:1});var MgR;var oN=function(){return _.F.apply(this,arguments)||this};
_.P(oN,_.F);oN.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
oN.prototype.getSelectedFeedbackResults=function(){for(var Y={},b=0;b<this.data.questions.length;b++)for(var w=_.v(this.data.questions[b],ayI),V=0;V<w.options.length;V++){var H=_.v(w.options[V],rxs);H&&H.checked&&(Y[H.optionKey]=H.resultText)}return Y};
oN.prototype.onKeyUp=function(){var Y=this;_.Xl(_.Lb,function(){_.Ua(Y.hostElement,"yt-refit")});
_.Lb.start()};
oN.prototype.submitSurvey=function(){var Y=this.getSelectedFeedbackResults();Object.keys(Y).length>0&&this.data.submitFeedbackEndpoint&&(Y={survey_results:Y,is_feedback_token_unencrypted:!0},_.fH().resolve(_.Nn).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],oN.prototype,"data",void 0);_.z([_.S({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],oN);
_.a(oN,"ytd-feedback-survey-renderer",function(){if(MgR!==void 0)return MgR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feedback-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="questions" on-keyup="onKeyUp" class="style-scope ytd-feedback-survey-renderer"></div>\n<yt-formatted-string id="disclaimer" text="[[data.disclaimer]]" class="style-scope ytd-feedback-survey-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return MgR=Y},{mode:1});var e17;var pRg;var IN=function(){return _.F.apply(this,arguments)||this};
_.P(IN,_.F);IN.prototype.computeAlt=function(Y){return _.Tx(Y)};
IN.prototype.submitResponse=function(){var Y,b;(Y=this.data)!=null&&Y.feedbackToken&&((b=this.data)==null?void 0:b.nextStageIndex)!==void 0&&(_.De(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.De(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
IN.prototype.onClick=function(){this.submitResponse()};
IN.prototype.onClick=IN.prototype.onClick;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],IN.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],IN.prototype,"vertical",void 0);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],IN.prototype,"onClick",null);
_.z([_.S({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],IN);
_.a(IN,"ytd-single-select-answer-option-renderer",function(){if(pRg!==void 0)return pRg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-answer-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.answerText)]]" hidden="[[!data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer">\n  <yt-icon icon="[[data.answerIcon.iconType]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.answerText]]" class="style-scope ytd-single-select-answer-option-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return pRg=Y},{mode:1});var O$F;var kT=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return Y};
_.P(kT,_.F);kT.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
kT.prototype.dataChanged=function(){var Y,b;this.vertical=((b=(Y=this.data)==null?void 0:Y.answerOrientation)!=null?b:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
kT.prototype.submitFeedback=function(Y){var b;((b=this.data)==null?0:b.responseEndpoint)&&Y&&_.oP(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[Y]}])};
kT.prototype.dataChanged=kT.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],kT.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],kT.prototype,"eventForwardingBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],kT.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],kT.prototype,"vertical",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],kT.prototype,"darkerDarkTheme",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],kT.prototype,"dataChanged",null);_.z([_.S({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],kT);
_.a(kT,"ytd-single-select-question-renderer",function(){if(O$F!==void 0)return O$F;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-select-question-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="question" class="style-scope ytd-single-select-question-renderer">\n  <yt-formatted-string text="[[data.questionText]]" class="style-scope ytd-single-select-question-renderer"></yt-formatted-string>\n</div>\n<div id="options" class="style-scope ytd-single-select-question-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return O$F=Y},{mode:1});var lu=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return Y};
_.P(lu,_.F);_.g=lu.prototype;_.g.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"}}}};
_.g.dataChanged=function(){this.jumpToStage(0)};
_.g.jumpToStage=function(Y){var b,w;if((b=this.data)==null?0:(w=b.stages)==null?0:w[Y])this.currentStage=this.data.stages[Y],this.refitAfterRender()};
_.g.computeAlt=function(Y){return _.Tx(Y)};
_.g.computeSimpleMessage=function(Y){var b;return(b=_.v(Y,Kyt))==null?void 0:b.messageText};
_.g.computeHideDismiss=function(Y){var b;return(b=_.v(Y,IyX))==null?void 0:b.hideParentDismissButton};
_.g.onDismissTap=function(){_.Xx(this.hostElement,"yt-close-popup-action");_.v(this.currentStage,Kyt)||this.data.dismissalEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.g.refitAfterRender=function(){var Y=this;_.TC(this,function(){_.Ua(Y.hostElement,"yt-refit")})};
lu.prototype.dataChanged=lu.prototype.dataChanged;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],lu.prototype,"eventForwardingBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],lu.prototype,"ytActionHandlerBehavior",void 0);
_.z([_.n(KgQ),_.K("design:type",Object)],lu.prototype,"ytdHatsSurveyBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lu.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],lu.prototype,"currentStage",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lu.prototype,"dataChanged",null);_.z([_.S({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],lu);
_.a(lu,"ytd-multi-stage-survey-renderer",function(){if(e17!==void 0)return e17;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-multi-stage-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[computeHideDismiss(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-click="onDismissTap" class="style-scope ytd-multi-stage-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-multi-stage-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="current-stage" class="style-scope ytd-multi-stage-survey-renderer"></div>\n<yt-formatted-string id="simple-message" text="[[computeSimpleMessage(currentStage)]]" class="style-scope ytd-multi-stage-survey-renderer">\n</yt-formatted-string>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return e17=Y},{mode:1});var tgb;var h5=function(){return _.F.apply(this,arguments)||this};
_.P(h5,_.F);h5.prototype.computeAlt=function(Y){return _.Tx(Y)};
h5.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.fH().resolve(_.Nn).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Xx(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.RyO(!1)))};
h5.prototype.onTap=function(){this.vertical&&this.submitResponse()};
h5.prototype.onTap=h5.prototype.onTap;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],h5.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],h5.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],h5.prototype,"vertical",void 0);
_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],h5.prototype,"onTap",null);_.z([_.S({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],h5);
_.a(h5,"ytd-single-option-survey-option-renderer",function(){if(tgb!==void 0)return tgb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button alt="[[computeAlt(data.option)]]" hidden="[[!data.icon.iconType]]" on-tap="submitResponse" class="style-scope ytd-single-option-survey-option-renderer">\n  <yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-icon>\n</yt-icon-button>\n<yt-formatted-string text="[[data.option]]" class="style-scope ytd-single-option-survey-option-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return tgb=Y},{mode:1});var R1I;var xT=function(){return _.F.apply(this,arguments)||this};
_.P(xT,_.F);_.g=xT.prototype;_.g.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){var Y,b;this.vertical=(((Y=this.data)==null?void 0:(b=Y.surveyOrientation)==null?void 0:b.type)||"HORIZONTAL")==="VERTICAL"};
_.g.computeAlt=function(Y){return _.Tx(Y)};
_.g.onDismissTap=function(){_.Xx(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.fH().resolve(_.Nn).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.RyO(!1))};
xT.prototype.dataChanged=xT.prototype.dataChanged;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],xT.prototype,"eventForwardingBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(KgQ),_.K("design:type",Object)],xT.prototype,"ytdHatsSurveyBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],xT.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xT.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],xT.prototype,"vertical",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xT.prototype,"dataChanged",null);_.z([_.S({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],xT);
_.a(xT,"ytd-single-option-survey-renderer",function(){if(R1I!==void 0)return R1I;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-single-option-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-single-option-survey-renderer">\n  <yt-formatted-string text="[[data.question]]" class="style-scope ytd-single-option-survey-renderer"></yt-formatted-string>\n  <yt-icon-button label="[[computeAlt(data.dismissalText)]]" on-tap="onDismissTap" class="style-scope ytd-single-option-survey-renderer">\n    <yt-icon icon="yt-icons:close" class="style-scope ytd-single-option-survey-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-single-option-survey-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return R1I=Y},{mode:1});var d7Q;var qt=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(qt,_.F);qt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qt.prototype.onDismissTap=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
qt.prototype.onNavigate=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
qt.prototype.onNavigate=qt.prototype.onNavigate;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],qt.prototype,"ytEventForwardingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qt.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],qt.prototype,"darkerDarkTheme",void 0);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],qt.prototype,"onNavigate",null);_.z([_.S({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],qt);
_.a(qt,"ytd-survey-follow-up-renderer",function(){if(d7Q!==void 0)return d7Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-survey-follow-up-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-survey-follow-up-renderer">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-survey-follow-up-renderer"></yt-formatted-string>\n  <ytd-button-renderer data="[[data.dismissButton.buttonRenderer]]" on-tap="onDismissTap" class="style-scope ytd-survey-follow-up-renderer">\n  </ytd-button-renderer>\n</div>\n<ytd-button-renderer align-by-text="" data="[[data.followUpButton.buttonRenderer]]" hidden="[[!data.followUpButton.buttonRenderer]]" class="style-scope ytd-survey-follow-up-renderer">\n</ytd-button-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return d7Q=Y},{mode:1});var FnI;var LnF;var SeA;var s$=function(){var Y=_.F.apply(this,arguments)||this;Y.polymer2="Element"in Polymer;return Y};
_.P(s$,_.F);_.g=s$.prototype;_.g.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.g.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.g.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.g.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("minutes-changed",this.minutes))};
_.g.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("seconds-changed",this.seconds))};
_.g.updateMinutesFromBinding=function(Y){this.minutes=Y.detail.value};
_.g.updateSecondsFromBinding=function(Y){this.seconds=Y.detail.value};
s$.prototype.secondsChangedForBinding=s$.prototype.secondsChangedForBinding;s$.prototype.minutesChangedForBinding=s$.prototype.minutesChangedForBinding;s$.prototype.secondsChanged=s$.prototype.secondsChanged;_.z([_.R(),_.K("design:type",String)],s$.prototype,"minutes",void 0);_.z([_.R(),_.K("design:type",String)],s$.prototype,"seconds",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],s$.prototype,"polymer2",void 0);
_.z([_.xZ("#seconds"),_.K("design:type",Object)],s$.prototype,"secondsEl",void 0);_.z([_.lr("seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s$.prototype,"secondsChanged",null);_.z([_.lr("minutes"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s$.prototype,"minutesChangedForBinding",null);
_.z([_.lr("seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],s$.prototype,"secondsChangedForBinding",null);_.z([_.FM({is:"yt-timestamp-input",disableElementRegistration:!0})],s$);
_.a(s$,"yt-timestamp-input",function(){if(SeA===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-timestamp-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_timestamp_input.yt.timestamp.input.css.js--\x3e<tp-yt-paper-input id="minutes" allowed-pattern="[0-9]" maxlength="3" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[minutes]]" on-value-changed="updateMinutesFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n<span id="separator" class="style-scope yt-timestamp-input"> : </span>\n<tp-yt-paper-input id="seconds" allowed-pattern="[0-9]" maxlength="2" no-label-float="" prevent-invalid-input="" use-v2-underline="" value="[[seconds]]" on-value-changed="updateSecondsFromBinding" class="style-scope yt-timestamp-input">\n</tp-yt-paper-input>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;LnF===void 0&&(LnF=document.createElement("template"));var V=LnF;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);SeA=Y}Y=SeA;return Y},{mode:2});var QE=function(){return _.F.apply(this,arguments)||this};
_.P(QE,_.F);_.g=QE.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18165_scroller.dialogElement=this.hostElement.parentNode};
_.g.dataChanged=function(){var Y=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Hv().getPlayerPromise().then(function(b){b=b.getCurrentTime();Y.minutes=Math.floor(b/60).toString();Y.seconds=(Math.floor(b)%60).toString()})};
_.g.onTapSubmit=function(Y){Y.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(Y={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(Y.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(Y.minutes=this.minutes,Y.seconds=this.seconds),_.fH().resolve(_.Nn).resolveCommand(this.serviceEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}))};
_.g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.g.onYtServiceRequestCompleted=function(Y,b){b=b.actions;if(Array.isArray(b))for(var w=0,V=b.length;w<V;w++)_.v(b[w],_.tI)&&(Y.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(b[w]))};
_.g.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.g.toggleSubmitButton=function(Y){this.set("submitButton.isDisabled",!Y)};
_.g.handleInput=function(){var Y=this.issueType,b=this.affiliation,w=this.minutes,V=this.seconds;w=!this.showTimestamp||!!w&&!!V;this.toggleSubmitButton(!!this.descriptionText&&!!Y&&!!b&&w)};
_.g.computeServiceEndpoint=function(Y){return this.get("submitButton.buttonRenderer.serviceEndpoint",Y)};
_.g.computeSubmitButton=function(Y){(Y=this.get("submitButton.buttonRenderer",Y))&&(Y=Object.assign({},Y,{serviceEndpoint:void 0}));return Y};
_.g.computeShowTimestamp=function(Y){return!!Y};
_.g.onValueChangedForIssueType=function(Y){this.issueType=Y.detail.value};
_.g.onValueChangedForAffiliation=function(Y){this.affiliation=Y.detail.value};
_.g.updateDescriptionTextFromBinding=function(Y){this.descriptionText=Y.detail.value};
_.g.updateFullNameTextFromBinding=function(Y){this.fullNameText=Y.detail.value};
_.g.updateMinutesFromBinding=function(Y){this.minutes=Y.detail.value};
_.g.updateSecondsFromBinding=function(Y){this.seconds=Y.detail.value};
QE.prototype.handleInput=QE.prototype.handleInput;QE.prototype.onYtServiceRequestError=QE.prototype.onYtServiceRequestError;QE.prototype.onYtServiceRequestCompleted=QE.prototype.onYtServiceRequestCompleted;QE.prototype.onYtServiceRequestSent=QE.prototype.onYtServiceRequestSent;QE.prototype.dataChanged=QE.prototype.dataChanged;_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],QE.prototype,"ytOpenPopupBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.z([_.xZ("#scroller"),_.K("design:type",Object)],QE.prototype,"JSC$18165_scroller",void 0);_.z([_.xZ("#description"),_.K("design:type",HTMLInputElement)],QE.prototype,"description",void 0);_.z([_.xZ("#full-name"),_.K("design:type",Object)],QE.prototype,"fullName",void 0);_.z([_.R(),_.K("design:type",Object)],QE.prototype,"data",void 0);
_.z([_.R({computed:"computeShowTimestamp(data.timestampLabel)"}),_.K("design:type",Boolean)],QE.prototype,"showTimestamp",void 0);_.z([_.R({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.K("design:type",Object)],QE.prototype,"serviceEndpoint",void 0);_.z([_.R({computed:"computeSubmitButton(data)"}),_.K("design:type",Object)],QE.prototype,"submitButton",void 0);_.z([_.R(),_.K("design:type",String)],QE.prototype,"descriptionText",void 0);
_.z([_.R(),_.K("design:type",Number)],QE.prototype,"issueType",void 0);_.z([_.R(),_.K("design:type",Number)],QE.prototype,"affiliation",void 0);_.z([_.R(),_.K("design:type",String)],QE.prototype,"fullNameText",void 0);_.z([_.R(),_.K("design:type",String)],QE.prototype,"minutes",void 0);_.z([_.R(),_.K("design:type",String)],QE.prototype,"seconds",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QE.prototype,"dataChanged",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],QE.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],QE.prototype,"onYtServiceRequestCompleted",null);
_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],QE.prototype,"onYtServiceRequestError",null);_.z([_.lr("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QE.prototype,"handleInput",null);_.z([_.S({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],QE);
_.a(QE,"ytd-legal-report-details-form-renderer",function(){if(FnI!==void 0)return FnI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-legal-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h2 id="title" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-legal-report-details-form-renderer">\n  <template is="dom-if" if="[[showTimestamp]]" class="style-scope ytd-legal-report-details-form-renderer">\n    <label id="timestamp" class="style-scope ytd-legal-report-details-form-renderer">\n      [[getSimpleString(data.timestampLabel)]]\n      <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n      </yt-timestamp-input>\n    </label>\n  </template>\n  <div id="description-box" class="style-scope ytd-legal-report-details-form-renderer">\n    <tp-yt-paper-input-container no-label-float="true" use-v2-underline="" class="style-scope ytd-legal-report-details-form-renderer">\n      <tp-yt-iron-autogrow-textarea id="description" class="paper-input-input style-scope ytd-legal-report-details-form-renderer" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[data.maxDescriptionChars]]" placeholder="[[getSimpleString(data.descriptionHint)]]" required="true" rows="4" value="[[descriptionText]]" on-value-changed="updateDescriptionTextFromBinding">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-legal-report-details-form-renderer"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n  <ytd-dropdown-renderer id="issue-type" data="[[data.issueTypeDropdown.dropdownRenderer]]" value="[[issueType]]" on-value-changed="onValueChangedForIssueType" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-dropdown-renderer id="affiliation" data="[[data.affiliationDropdown.dropdownRenderer]]" value="[[affiliation]]" on-value-changed="onValueChangedForAffiliation" class="style-scope ytd-legal-report-details-form-renderer">\n  </ytd-dropdown-renderer>\n  <tp-yt-paper-input id="full-name" maxlength="[[data.maxNameChars]]" placeholder="[[getSimpleString(data.nameHint)]]" use-v2-underline="" value="[[fullNameText]]" on-value-changed="updateFullNameTextFromBinding" class="style-scope ytd-legal-report-details-form-renderer">\n  </tp-yt-paper-input>\n  <div id="name-subtext" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.nameSubtext)]]</div>\n  <div id="footer-text" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.footerText)]]</div>\n</tp-yt-paper-dialog-scrollable>\n<div class="footer style-scope ytd-legal-report-details-form-renderer">\n  <div id="required-label" class="style-scope ytd-legal-report-details-form-renderer">[[getSimpleString(data.requiredLabel)]]</div>\n  <div class="buttons style-scope ytd-legal-report-details-form-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="submit-button" data="[[submitButton]]" dialog-confirm="" on-click="onTapSubmit" class="style-scope ytd-legal-report-details-form-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return FnI=Y},{mode:1});var aaQ;var vC=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return Y};
_.P(vC,_.F);vC.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
vC.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var Y=this.formRenderer.getForm();Y&&this.data.submitEndpoint&&(_.fH().resolve(_.Nn).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},Y,{element:this.hostElement})}),_.Xx(this.hostElement,"yt-close-popup-action"))}};
vC.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Xx(this.hostElement,"yt-close-popup-action"))};
vC.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
vC.prototype.onPopupClosed=vC.prototype.onPopupClosed;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],vC.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],vC.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);
_.z([_.xZ("yt-form-renderer"),_.K("design:type",Object)],vC.prototype,"formRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],vC.prototype,"data",void 0);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vC.prototype,"onPopupClosed",null);_.z([_.S({is:"ytd-form-popup-content",disableElementRegistration:!0})],vC);
_.a(vC,"ytd-form-popup-content",function(){if(aaQ!==void 0)return aaQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="form" class="style-scope ytd-form-popup-content"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return aaQ=Y},{mode:1});var rmR;var PC=function(){return _.F.apply(this,arguments)||this};
_.P(PC,_.F);PC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
PC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
PC.prototype.onPopupOpened=function(){_.Ua(this.hostElement,"yt-invalidate-popup-tabbables")};
PC.prototype.onYtServiceRequestCompleted=function(Y,b){b.data&&b.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Ua(this.hostElement,"yt-invalidate-popup-tabbables"))};
PC.prototype.onYtServiceRequestCompleted=PC.prototype.onYtServiceRequestCompleted;PC.prototype.onPopupOpened=PC.prototype.onPopupOpened;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],PC.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],PC.prototype,"data",void 0);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],PC.prototype,"onPopupOpened",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],PC.prototype,"onYtServiceRequestCompleted",null);_.z([_.S({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],PC);
_.a(PC,"ytd-form-popup-renderer",function(){if(rmR!==void 0)return rmR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-form-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-form-popup-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-form-popup-content data="[[data]]" class="style-scope ytd-form-popup-renderer"></ytd-form-popup-content>\n<div id="buttons" class="style-scope ytd-form-popup-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return rmR=Y},{mode:1});var z1g;var Z0=function(){var Y=_.F.apply(this,arguments)||this;Y.isLoading=!1;return Y};
_.P(Z0,_.F);_.g=Z0.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");uOs(this.hostElement)};
_.g.onYtServiceRequestSent=function(){this.isLoading=!0};
_.g.onYtServiceRequestCompleted=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.g.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.IP(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.g.closePopupHandler=function(){this.fireOnCloseActions()};
_.g.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var Y=this.get("data.headerImage.thumbnails");Y&&(Y=_.NR(Y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+Y+")")}};
_.g.onYtNavigate=function(Y){(Y=_.uW(Y))&&Y.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Z0.prototype.onYtNavigate=Z0.prototype.onYtNavigate;Z0.prototype.onHeaderImageChanged=Z0.prototype.onHeaderImageChanged;Z0.prototype.closePopupHandler=Z0.prototype.closePopupHandler;Z0.prototype.onYtServiceRequestCompleted=Z0.prototype.onYtServiceRequestCompleted;Z0.prototype.onYtServiceRequestSent=Z0.prototype.onYtServiceRequestSent;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Z0.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],Z0.prototype,"ytEventForwardingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Z0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Z0.prototype,"isLoading",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLDivElement)],Z0.prototype,"header",void 0);_.z([_.xZ("#confirm-button"),_.K("design:type",_.Bz)],Z0.prototype,"confirmButton",void 0);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Z0.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Z0.prototype,"onYtServiceRequestCompleted",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Z0.prototype,"closePopupHandler",null);_.z([_.lr("data.headerImage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z0.prototype,"onHeaderImageChanged",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Z0.prototype,"onYtNavigate",null);
_.z([_.S({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Z0);
_.a(Z0,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(z1g!==void 0)return z1g;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-confirm-dialog-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar left style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-confirm-dialog-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar right style-scope ytd-gaming-account-link-confirm-dialog-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" dialog-dismiss="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></div>\n</div>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" role="heading" text="[[data.title]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></yt-formatted-string>\n  <div id="dialog-messages" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope ytd-gaming-account-link-confirm-dialog-renderer" text="[[item]]"></yt-formatted-string>\n    </template>\n  </div>\n  <div class="buttons style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[isLoading]]">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" hidden$="[[!data.cancelButton]]" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner style-scope ytd-gaming-account-link-confirm-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner active="" class="style-scope ytd-gaming-account-link-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return z1g=Y},{mode:1});var WnX;var BC=function(){var Y=_.F.apply(this,arguments)||this;Y.isLoading=!1;return Y};
_.P(BC,_.F);_.g=BC.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);uOs(this.hostElement)};
_.g.onYtServiceRequestCompleted=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.g.onYtServiceRequestError=function(Y){_.fx(this.hostElement,Y.detail.error.message)};
_.g.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.g.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Xx(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.g.onDataChanged=function(){this.isLoading=!1;var Y=this.get("data.headerImage.thumbnails");Y&&(Y=_.NR(Y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+Y+")");Y=_.dO();var b=_.R3(),w=this.get("data.trackingParams");w&&b&&Y&&_.yX(Y,b,_.nA(w))};
_.up.Object.defineProperties(BC.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
BC.prototype.onDataChanged=BC.prototype.onDataChanged;BC.prototype.onDomChange=BC.prototype.onDomChange;BC.prototype.onYtServiceRequestError=BC.prototype.onYtServiceRequestError;BC.prototype.onYtServiceRequestCompleted=BC.prototype.onYtServiceRequestCompleted;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],BC.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],BC.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],BC.prototype,"isLoading",void 0);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],BC.prototype,"hasDescription",null);_.z([_.xZ("tp-yt-paper-dialog-scrollable"),_.K("design:type",Object)],BC.prototype,"scrollable",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],BC.prototype,"header",void 0);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],BC.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],BC.prototype,"onYtServiceRequestError",null);
_.z([_.kZ("dom-change"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],BC.prototype,"onDomChange",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],BC.prototype,"onDataChanged",null);_.z([_.S({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],BC);
_.a(BC,"ytd-gaming-account-link-setting-renderer",function(){if(WnX!==void 0)return WnX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-gaming-account-link-setting-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <div class="avatar-support style-scope ytd-gaming-account-link-setting-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.userAvatar]]">\n    </yt-img-shadow>\n    <yt-icon class="third-party-icon style-scope ytd-gaming-account-link-setting-renderer" icon="[[data.icon.iconType]]"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-gaming-account-link-setting-renderer" thumbnail="[[data.thirdPartyAvatar]]">\n    </yt-img-shadow>\n  </div>\n  <div id="dismiss-button" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n<div id="content" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <yt-formatted-string id="title" role="heading" text="[[data.header]]" class="style-scope ytd-gaming-account-link-setting-renderer"></yt-formatted-string>\n  <div id="description-container" hidden="[[!hasDescription]]" class="style-scope ytd-gaming-account-link-setting-renderer">\n    <template is="dom-repeat" items="[[data.descriptions]]" as="description" class="style-scope ytd-gaming-account-link-setting-renderer">\n      <yt-formatted-string class="description style-scope ytd-gaming-account-link-setting-renderer" split-lines="" text="[[description]]"></yt-formatted-string>\n    </template>\n  </div>\n</div>\n<div id="link-button-container" class="style-scope ytd-gaming-account-link-setting-renderer">\n  <tp-yt-paper-spinner class="spinner style-scope ytd-gaming-account-link-setting-renderer" active="" hidden="[[!isLoading]]"></tp-yt-paper-spinner>\n  <div id="link-button" hidden="[[isLoading]]" on-click="onButtonClick" class="style-scope ytd-gaming-account-link-setting-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return WnX=Y},{mode:1});var Kng;var i$d;var nI=function(){var Y=_.F.apply(this,arguments)||this;Y.isHeader=!1;Y.getEndpointForm=function(){return GuI(Y.data)};
return Y};
_.P(nI,_.F);_.g=nI.prototype;_.g.triggerHintActions=function(){var Y=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var b=_.De(Y.hostElement,"yt-get-opened-popups-action");!(b&&b.length===1?b[0]:[]).some(function(w){w=w.openPopupAction.popupType;return w==="SURVEY"||w==="MEALBAR"||w==="HINT"})&&Y.data.hintActions&&Y.guideOpened&&(_.IP(Y.hostElement,Y.data.hintActions,Y.hostElement),Y.data.hintActions=void 0)})};
_.g.getBadgeIconType=function(Y){return Y&&Y.liveBroadcasting?"live":null};
_.g.onDown=function(){this.interaction.triggerDown()};
_.g.onUp=function(){this.interaction.triggerUp()};
_.g.onTap=function(Y){if(this.data.serviceEndpoint){var b;_.q("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.v(this.data.serviceEndpoint,_.BH))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):jP7(this.data.serviceEndpoint,this);Y.preventDefault()}else this.data.navigationEndpoint&&!_.uA(_.JL(Y),this.hostElement,["A".toString()])&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.g.computeActive=function(Y,b){if(!Y)return!1;var w=Y.navigationEndpoint;Y=Y.serviceEndpoint;if(!w&&!Y||!b)return!1;if(w){Y=(Y=_.xy(b))&&["subscriptions","filteredsubscriptions"].includes(Y);if(_.v(w,_.QU)&&_.v(b,_.QU)&&!Y){var V=_.v(w,_.QU).browseId;b=_.v(b,_.QU).browseId;return V!==void 0&&b!==void 0&&(V===b||V==="VLWL"&&b==="FEwatch_later"||V==="FEwatch_later"&&b==="VLWL")}var H;w=(H=_.v(w.commandMetadata,_.g5))==null?void 0:H.url;b=(V=_.v(b.commandMetadata,_.g5))==null?void 0:V.url;return!(!w||
!b||w!==b&&w!==_.ku(b))}return this.isActiveShortsTab(Y,b)};
_.g.isActiveShortsTab=function(Y,b){b=!!_.v(b,_.BH)||!!_.v(b,_.rY);return(!!_.v(Y,_.BH)||!!_.v(Y,_.rY))&&b};
_.g.computeIsPrimary=function(Y){return!!Y};
_.up.Object.defineProperties(nI.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.computeActive(this.data,this.activeEndpoint)}},
isPrimary:{configurable:!0,enumerable:!0,get:function(){return this.computeIsPrimary(this.data.isPrimary)}},
lineEndStyle:{configurable:!0,enumerable:!0,get:function(){return this.data?this.data.badges&&this.getBadgeIconType(this.data.badges)?"badge":this.data.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?"dot":this.data.count?"count":"none":"none"}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&Y)return Y}}});
nI.prototype.onTap=nI.prototype.onTap;nI.prototype.onUp=nI.prototype.onUp;nI.prototype.onDown=nI.prototype.onDown;nI.prototype.triggerHintActions=nI.prototype.triggerHintActions;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],nI.prototype,"componentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nI.prototype,"rendererBehavior",void 0);_.z([_.n(_.g9.YtTaskEmitterBehavior),_.K("design:type",Object)],nI.prototype,"taskEmitterBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],nI.prototype,"activeEndpoint",void 0);_.z([_.R(),_.K("design:type",Object)],nI.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],nI.prototype,"guideOpened",void 0);_.z([_.R(),_.K("design:type",String)],nI.prototype,"type",void 0);_.z([_.xZ("yt-interaction"),_.K("design:type",Object)],nI.prototype,"interaction",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],nI.prototype,"isHeader",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data","activeEndpoint"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],nI.prototype,"active",null);_.z([_.R({reflectToAttribute:!0}),_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],nI.prototype,"isPrimary",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.count","data.presentationStyle","data.badges.*"),_.K("design:type",String),_.K("design:paramtypes",[])],nI.prototype,"lineEndStyle",null);
_.z([_.t("lineEndStyle"),_.K("design:type",Object),_.K("design:paramtypes",[])],nI.prototype,"ariaLabel",null);_.z([_.lr("data.hintActions","guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nI.prototype,"triggerHintActions",null);_.z([_.kZ("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nI.prototype,"onDown",null);
_.z([_.kZ("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nI.prototype,"onUp",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],nI.prototype,"onTap",null);_.z([_.S({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],nI);
_.a(nI,"ytd-guide-entry-renderer",function(){if(i$d!==void 0)return i$d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1" title="[[getSimpleString(data.formattedTitle)]]" aria-label$="[[ariaLabel]]" role="link" get-form="[[getEndpointForm]]">\n  <tp-yt-paper-item role="link" class="style-scope ytd-guide-entry-renderer">\n    <yt-icon class="guide-icon style-scope ytd-guide-entry-renderer" active="[[active]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[computeIcon_(data.icon)]]">\n    </yt-icon>\n    <yt-img-shadow height="24" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="24" class="style-scope ytd-guide-entry-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-guide-entry-renderer" text="[[data.formattedTitle]]"></yt-formatted-string>\n    <yt-icon class="arrow-icon style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!isHeader]]" hidden="[[!isHeader]]" icon="chevron_right" size="16">\n    </yt-icon>\n    <span class="guide-entry-count style-scope ytd-guide-entry-renderer"> [[data.count]] </span>\n    <yt-icon class="guide-entry-badge style-scope ytd-guide-entry-renderer" disable-upgrade$="[[!getBadgeIconType(data.badges)]]" icon="[[getBadgeIconType(data.badges)]]" size="16">\n    </yt-icon>\n    <div id="newness-dot" class="style-scope ytd-guide-entry-renderer"></div>\n  </tp-yt-paper-item>\n</a>\n<yt-interaction class="style-scope ytd-guide-entry-renderer"></yt-interaction>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return i$d=Y},{mode:1});var Mt=function(){var Y=_.F.apply(this,arguments)||this;Y.userToggled=!1;return Y};
_.P(Mt,_.F);_.g=Mt.prototype;_.g.getItemsPath=function(){return"data.expandableItems"};
_.g.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.g.onExpanderItemTapped=function(Y){var b=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.q("kevlar_guide_expandable_items_killswitch")&&_.TC(this,function(){_.uS(b.expandableItems)});
Y.preventDefault()};
_.g.onCollapserItemTapped=function(Y){var b=this;this._setExpanded(!1);this.userToggled=!0;Y.preventDefault();this.expandableItems&&!_.q("kevlar_guide_collapsible_items_killswitch")&&_.TC(this,function(){_.JE(b.hostElement)})};
_.g.observeActiveEndpoint=function(){for(var Y=this.activeEndpoint,b=this.data,w=this.expandableItems.children,V=0,H=w.length;V<H;V++)w[V].activeEndpoint=Y;b&&b.autoExpandCommand&&Y&&!this.userToggled&&(w=this.data.autoExpandCommand,b=!(!_.v(w,_.QU)||!_.v(Y,_.QU)||_.v(w,_.QU).browseId!==_.v(Y,_.QU).browseId),Y=this.get("commandMetadata.webCommandMetadata.url",Y),w=this.get("commandMetadata.webCommandMetadata.url",w),b=b||!!(Y&&w&&Y.includes(w)),this._setExpanded(b),b&&this.ytLazyListBehavior.fillRemainingListItems())};
Mt.prototype.observeActiveEndpoint=Mt.prototype.observeActiveEndpoint;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],Mt.prototype,"ytLazyListBehavior",void 0);_.z([_.xZ("#expandable-items"),_.K("design:type",HTMLElement)],Mt.prototype,"expandableItems",void 0);
_.z([_.R(),_.K("design:type",Object)],Mt.prototype,"data",void 0);_.z([_.R({readOnly:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],Mt.prototype,"expanded",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],Mt.prototype,"initialCount",void 0);_.z([_.R(),_.K("design:type",Object)],Mt.prototype,"activeEndpoint",void 0);_.z([_.lr("data","activeEndpoint","canShowMore"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Mt.prototype,"observeActiveEndpoint",null);
_.z([_.S({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Mt);
_.a(Mt,"ytd-guide-collapsible-entry-renderer",function(){if(Kng!==void 0)return Kng;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Kng=Y},{mode:_.Xd("kevlar_poly_si_batch_j079")?1:2});var Amg;var C5t;var e8=function(){var Y=_.F.apply(this,arguments)||this;Y.allVideosCount=0;Y.renderGuideEntry=!1;return Y};
_.P(e8,_.F);e8.prototype.observeRenderEntry=function(){var Y;this.renderGuideEntry=!((Y=this.data)==null||!Y.alwaysShow)||!!this.allVideosCount};
e8.prototype.observeRenderEntry=e8.prototype.observeRenderEntry;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],e8.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],e8.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],e8.prototype,"activeEndpoint",void 0);_.z([_.R({selector:_.QUg}),_.K("design:type",Object)],e8.prototype,"allVideosCount",void 0);
_.z([_.R(),_.K("design:type",Object)],e8.prototype,"renderGuideEntry",void 0);_.z([_.vX("allVideosCount","data.alwaysShow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],e8.prototype,"observeRenderEntry",null);_.z([_.S({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],e8);
_.a(e8,"ytd-guide-downloads-entry-renderer",function(){if(C5t===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-downloads-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e  <ytd-guide-entry-renderer id="downloads-entry" active-endpoint="[[activeEndpoint]]" data="[[data.entryRenderer.guideEntryRenderer]]" hidden="[[!renderGuideEntry]]" class="style-scope ytd-guide-downloads-entry-renderer">\n  </ytd-guide-entry-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);C5t=Y}Y=C5t;return Y},{mode:1});var pI=function(){var Y=_.F.apply(this,arguments)||this;Y.youtab=_.q("web_enable_youtab");Y.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return Y};
_.P(pI,_.F);_.g=pI.prototype;_.g.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]]"}}}}}};
_.g.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var Y=this.sectionItems.children,b=0,w=Y.length;b<w;b++)Y[b].activeEndpoint=this.activeEndpoint}};
_.g.handleAddToGuideSectionAction=function(Y){var b=_.v(Y,g$d);if(b&&this.data&&(Y=b.items,b=b.handlerData,Y&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1)){b=0;for(var w=Y.length;b<w;b++)Y[b].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,Y[b])}};
_.g.handleRemoveFromGuideSectionAction=function(Y){var b=_.v(Y,fyX);b&&this.data&&(Y=b.guideEntryId,b=b.handlerData,Y&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(Y,this.data.sectionItems),this.removeFromCollapsedSection(Y,this.data.sectionItems)))};
_.g.removeFromExpandedSection=function(Y,b){Y=this.getEntryIndexMatchingId(Y,b);Y!==-1&&this.splice("data.sectionItems",Y,1)};
_.g.removeFromCollapsedSection=function(Y,b){var w=b.findIndex(function(V){return!!_.v(V,Q$s)});
w&&w!==-1&&b[w]&&_.v(b[w],Q$s)&&(b=_.v(b[w],Q$s).expandableItems)&&(Y=this.getEntryIndexMatchingId(Y,b),Y!==-1&&this.splice("data.sectionItems."+w+".guideCollapsibleEntryRenderer.expandableItems",Y,1))};
_.g.getEntryIndexMatchingId=function(Y,b){var w=this;return b.findIndex(function(V){return w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",V)===Y})};
pI.prototype.activeEndpointChanged=pI.prototype.activeEndpointChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],pI.prototype,"actionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("#section-items"),_.K("design:type",HTMLDivElement)],pI.prototype,"sectionItems",void 0);
_.z([_.xZ("#header-entry"),_.K("design:type",Object)],pI.prototype,"headerEntry",void 0);_.z([_.R(),_.K("design:type",Object)],pI.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],pI.prototype,"activeEndpoint",void 0);_.z([_.R(),_.K("design:type",Object)],pI.prototype,"youtab",void 0);_.z([_.lr("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pI.prototype,"activeEndpointChanged",null);
_.z([_.S({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],pI);
_.a(pI,"ytd-guide-collapsible-section-entry-renderer",function(){if(Amg===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);Amg=Y}Y=Amg;return Y},{mode:1});var ymF;var $7F;var O$=function(){var Y=_.F.apply(this,arguments)||this;Y.modernTypography=_.q("web_modern_typography");Y.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction","yt-reset-channel-unread-count-command":"handleResetChannelUnreadCountCommand","yt-reset-subscriptions-unread-dot-command":"handleResetSubscriptionsUnreadDotCommand"};return Y};
_.P(O$,_.F);_.g=O$.prototype;
_.g.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}}}}};
_.g.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var Y=_.De(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);Y&&Y.length===1&&Y[0]&&_.De(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.g.handleResetChannelUnreadCountCommand=function(Y){var b;(Y=(b=_.v(Y,E$R))==null?void 0:b.channelId)&&this.data&&this.data.items&&(b=this.getPathToEntryMatchingId(Y))&&(this.set(b+".guideEntryRenderer.count",0),this.set(b+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.g.handleResetSubscriptionsUnreadDotCommand=function(Y){var b,w=(b=_.v(Y,cxR))==null?void 0:b.targetId,V;w&&(V=this.data)!=null&&V.items&&(Y=this.data.items.findIndex(function(H){var f;return((f=H.guideEntryRenderer)==null?void 0:f.targetId)===w}),Y<0||this.set("data.items."+Y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.g.getPathToEntryMatchingId=function(Y){if(this.data&&this.data.items){var b=this.getEntryIndexMatchingId(Y,this.data.items);if(b>-1)return"data.items."+b;for(var w=0;w<this.data.items.length;w++)if(b=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[w]))if(b=this.getEntryIndexMatchingId(Y,b),b>-1)return"data.items."+w+".guideCollapsibleEntryRenderer.expandableItems."+b}};
_.g.handleAddToGuideSectionAction=function(Y){var b=this;if(_.v(Y,g$d)){var w=_.v(Y,g$d).items;Y=_.v(Y,g$d).handlerData;var V,H;w&&Y&&((V=this.data)==null?void 0:(H=V.handlerDatas)==null?void 0:H.indexOf(Y))>-1&&(w=w.filter(function(f){return(f=b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f))&&!b.isGuideItemPresent(f)}),this.unshift.apply(this,["data.items"].concat(_.Bt(w))))}};
_.g.isGuideItemPresent=function(Y){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(Y,this.data.items)!==-1)return!0;var b=this.data.items.find(function(w){return!!w.guideCollapsibleEntryRenderer});
if((b==null?0:b.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(Y,b.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.g.getEntryIndexMatchingId=function(Y,b){var w=this;return b.findIndex(function(V){return w.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",V)===Y})};
_.g.handleRemoveFromGuideSectionAction=function(Y){if(_.v(Y,fyX)){var b=_.v(Y,fyX).guideEntryId;Y=_.v(Y,fyX).handlerData;var w,V;b&&Y&&((w=this.data)==null?void 0:(V=w.handlerDatas)==null?void 0:V.indexOf(Y))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(b,this.data.items),this.removeFromCollapsedSection(b,this.data.items))}};
_.g.removeFromExpandedSection=function(Y,b){Y=this.getEntryIndexMatchingId(Y,b);Y!==-1&&this.splice("data.items",Y,1)};
_.g.removeFromCollapsedSection=function(Y,b){var w=b.findIndex(function(V){return!!V.guideCollapsibleEntryRenderer});
w!==-1&&(b=b[w].guideCollapsibleEntryRenderer.expandableItems)&&(Y=this.getEntryIndexMatchingId(Y,b),Y!==-1&&this.splice("data.items."+w+".guideCollapsibleEntryRenderer.expandableItems",Y,1))};
_.g.activeEndpointChanged=function(){for(var Y=_.E6(this.hostElement).querySelector("#items").children,b=0,w=Y.length;b<w;b++)Y[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.g.guideOpenedChanged=function(){for(var Y=_.E6(this.hostElement).querySelector("#items").children,b=0,w=Y.length;b<w;b++)Y[b].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
O$.prototype.guideOpenedChanged=O$.prototype.guideOpenedChanged;O$.prototype.activeEndpointChanged=O$.prototype.activeEndpointChanged;O$.prototype.persistentGuideChanged=O$.prototype.persistentGuideChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],O$.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],O$.prototype,"ytLazyListBehavior",void 0);_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],O$.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],O$.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],O$.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],O$.prototype,"modernTypography",void 0);_.z([_.R(),_.K("design:type",String)],O$.prototype,"type",void 0);_.z([_.R({value:20}),_.K("design:type",Number)],O$.prototype,"initialCount",void 0);_.z([_.R({value:10}),_.K("design:type",Number)],O$.prototype,"targetFramerate",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],O$.prototype,"autoFill",void 0);_.z([_.R({value:50}),_.K("design:type",Number)],O$.prototype,"renderDelay",void 0);
_.z([_.lr("guidePersistentAndVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O$.prototype,"persistentGuideChanged",null);_.z([_.vX("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O$.prototype,"activeEndpointChanged",null);_.z([_.vX("guideOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],O$.prototype,"guideOpenedChanged",null);
_.z([_.S({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],O$);
_.a(O$,"ytd-guide-section-renderer",function(){if($7F!==void 0)return $7F;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<h3 hidden="[[!data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  <yt-formatted-string id="guide-section-title" link-inherit-color="" text="[[data.formattedTitle]]" class="style-scope ytd-guide-section-renderer">\n  </yt-formatted-string>\n</h3>\n<div id="items" class="style-scope ytd-guide-section-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return $7F=Y},{mode:_.Xd("kevlar_poly_si_batch_j073")?1:2});var jxd;var t5=function(){return _.F.apply(this,arguments)||this};
_.P(t5,_.F);_.up.Object.defineProperties(t5.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],t5.prototype,"rendererBehaviors",void 0);_.z([_.R(),_.K("design:type",Object)],t5.prototype,"data",void 0);_.z([_.R(),_.t("data.signInButton.buttonRenderer.style"),_.K("design:type",Object),_.K("design:paramtypes",[])],t5.prototype,"alignByText",null);_.z([_.S({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],t5);
_.a(t5,"ytd-guide-signin-promo-renderer",function(){if(jxd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-signin-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.descriptiveText]]" class="style-scope ytd-guide-signin-promo-renderer"></yt-formatted-string>\n<ytd-button-renderer id="sign-in-button" align-by-text="[[alignByText]]" data="[[data.signInButton.buttonRenderer]]" on-tap="onSignInTap" class="style-scope ytd-guide-signin-promo-renderer">\n</ytd-button-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);jxd=Y}Y=jxd;return Y},{mode:1});var RN=function(){var Y=_.F.apply(this,arguments)||this;Y.showFooter=!1;return Y};
_.P(RN,_.F);RN.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}}}}};
RN.prototype.attached=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1){b=_.fH().resolve(_.HQ(_.z8));if(!b)return w.jumpTo(0);b.setGuideData(Y.hostElement);return _.D(w,0,3)}Y.ytLazyListBehavior.initialCount=2;return w.return()})};
RN.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
RN.prototype.dataChanged=RN.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],RN.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.V5.YtLazyListBehavior),_.K("design:type",Object)],RN.prototype,"ytLazyListBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],RN.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],RN.prototype,"showFooter",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],RN.prototype,"autoFill",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],RN.prototype,"dataChanged",null);_.z([_.S({is:"ytd-guide-renderer",disableElementRegistration:!0})],RN);
_.a(RN,"ytd-guide-renderer",function(){if(ymF!==void 0)return ymF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sections" class="style-scope ytd-guide-renderer"></div>\n<div id="footer" hidden="[[!showFooter]]" class="style-scope ytd-guide-renderer">\n  <div id="guide-links-primary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-primary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <div id="guide-links-secondary" class="style-scope ytd-guide-renderer">\n    <slot name="guide-links-secondary" class="style-scope ytd-guide-renderer"></slot>\n  </div>\n  <slot name="vat-notice" class="style-scope ytd-guide-renderer"></slot>\n  <slot name="copyright" class="style-scope ytd-guide-renderer"></slot>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ymF=Y},{mode:_.Xd("kevlar_poly_si_batch_j073")?1:2});var GsX;var dj=function(){var Y=_.F.apply(this,arguments)||this;Y.systemIcons=_.q("kevlar_system_icons");Y.frostedGlass=_.q("web_frosted_glass");Y.getEndpointForm=function(){return GuI(Y.data)};
return Y};
_.P(dj,_.F);_.g=dj.prototype;_.g.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.g.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Tx(this.data.formattedTitle))};
_.g.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.g.onDown=function(){this.interaction.triggerDown()};
_.g.onUp=function(){this.interaction.triggerUp()};
_.g.onTap=function(Y){if(this.data.serviceEndpoint){var b;_.q("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.v(this.data.serviceEndpoint,_.BH))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):jP7(this.data.serviceEndpoint,this);Y.preventDefault()}else{var w;((w=this.data)==null?0:w.navigationEndpoint)&&!_.uA(_.JL(Y),this.hostElement,["A".toString()])&&_.Ua(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.g.computeActive=function(Y,b){if(!Y)return!1;var w=Y.navigationEndpoint;Y=Y.serviceEndpoint;if(!w&&!Y||!b)return!1;if(w){Y=_.v(w,_.QU);var V=_.v(b,_.QU);if(Y&&V)return Y.browseId===V.browseId&&Y.params===V.params;var H;w=(H=_.v(w.commandMetadata,_.g5))==null?void 0:H.url;var f;b=(f=_.v(b.commandMetadata,_.g5))==null?void 0:f.url;return!(!w||!b||w!==b&&w!==_.ku(b))}return this.isActiveShortsTab(Y,b)};
_.g.isActiveShortsTab=function(Y,b){b=!!_.v(b,_.BH)||!!_.v(b,_.rY);return(!!_.v(Y,_.BH)||!!_.v(Y,_.rY))&&b};
_.g.computeTitle=function(Y,b){return b?"":_.Tx(Y)};
_.up.Object.defineProperties(dj.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
dj.prototype.onTap=dj.prototype.onTap;dj.prototype.onUp=dj.prototype.onUp;dj.prototype.onDown=dj.prototype.onDown;dj.prototype.onActiveStateChange=dj.prototype.onActiveStateChange;dj.prototype.dataChanged=dj.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],dj.prototype,"ytComponentBehavior",void 0);
_.z([_.n(_.a$),_.K("design:type",Object)],dj.prototype,"ironButtonState",void 0);_.z([_.R(),_.K("design:type",Object)],dj.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],dj.prototype,"activeEndpoint",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],dj.prototype,"noLabels",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.K("design:type",Boolean)],dj.prototype,"isActive",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dj.prototype,"systemIcons",void 0);_.z([_.xZ("yt-interaction"),_.K("design:type",Object)],dj.prototype,"interaction",void 0);_.z([_.t("isActive"),_.K("design:type",Object),_.K("design:paramtypes",[])],dj.prototype,"ariaSelected",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],dj.prototype,"frostedGlass",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dj.prototype,"dataChanged",null);_.z([_.lr("isActive"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dj.prototype,"onActiveStateChange",null);_.z([_.kZ("down"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dj.prototype,"onDown",null);
_.z([_.kZ("up"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],dj.prototype,"onUp",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],dj.prototype,"onTap",null);_.z([_.S({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],dj);
_.a(dj,"ytd-mini-guide-entry-renderer",function(){if(GsX!==void 0)return GsX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return GsX=Y},{mode:_.Xd("kevlar_poly_si_batch_j063")?1:2});var TQR;var Fp=function(){var Y=_.F.apply(this,arguments)||this;Y.allVideosCount=0;Y.noLabels=_.q("kevlar_mini_guide_no_labels");Y.frostedGlass=_.q("web_frosted_glass");return Y};
_.P(Fp,_.F);_.g=Fp.prototype;_.g.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.g.visibleChanged=function(){if(this.visible&&!this.data){var Y=_.fH().resolve(_.HQ(_.z8));Y&&Y.setGuideData(this.hostElement)}};
_.g.dataChanged=function(){var Y=[],b;if((b=this.data)!=null&&b.items){b=_.N(this.data.items);for(var w=b.next();!w.done;w=b.next()){w=w.value;var V=void 0;if((V=w.guideSectionRenderer)==null?0:V.items)for(V=void 0,w=_.N((V=w.guideSectionRenderer)==null?void 0:V.items),V=w.next();!V.done;V=w.next())if(V=V.value,V.guideEntryRenderer)V=V.guideEntryRenderer,V.isPrimary&&Y.push({guideEntryRenderer:V});else if(V.guideCollapsibleSectionEntryRenderer){var H=void 0;((H=_.v(V.guideCollapsibleSectionEntryRenderer.headerEntry,
Cf))==null?0:H.isPrimary)&&Y.push({guideEntryRenderer:_.v(V.guideCollapsibleSectionEntryRenderer.headerEntry,Cf)});if(V=V.guideCollapsibleSectionEntryRenderer.sectionItems)for(V=_.N(V),H=V.next();!H.done;H=V.next()){var f=H.value;H=_.v(f,v$b);var E=void 0;((E=_.v(f,Cf))==null?0:E.isPrimary)?Y.push({guideEntryRenderer:_.v(f,Cf)}):H&&(f=void 0,_.v((f=H)==null?void 0:f.entryRenderer,Cf)&&(H.alwaysShow||this.allVideosCount)&&Y.push({guideEntryRenderer:_.v(H.entryRenderer,Cf)}))}}}}this.miniGuideItems=
Y};
_.g.activeEndpointChanged=function(){for(var Y=this.items.children,b=0;b<Y.length;b++)Y[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
Fp.prototype.activeEndpointChanged=Fp.prototype.activeEndpointChanged;Fp.prototype.dataChanged=Fp.prototype.dataChanged;Fp.prototype.visibleChanged=Fp.prototype.visibleChanged;_.z([_.n(_.FX),_.K("design:type",Object)],Fp.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Fp.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],Fp.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Fp.prototype,"ytComponentBehavior",void 0);_.z([_.xZ("#items"),_.K("design:type",Object)],Fp.prototype,"items",void 0);_.z([_.R(),_.K("design:type",Object)],Fp.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],Fp.prototype,"visible",void 0);
_.z([_.R(),_.K("design:type",Object)],Fp.prototype,"miniGuideItems",void 0);_.z([_.R({selector:_.QUg}),_.K("design:type",Object)],Fp.prototype,"allVideosCount",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Fp.prototype,"noLabels",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Fp.prototype,"frostedGlass",void 0);_.z([_.vX("visible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fp.prototype,"visibleChanged",null);
_.z([_.vX("data","allVideosCount"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fp.prototype,"dataChanged",null);_.z([_.vX("activeEndpoint"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fp.prototype,"activeEndpointChanged",null);_.z([_.S({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Fp);
_.a(Fp,"ytd-mini-guide-renderer",function(){if(TQR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="items" class="style-scope ytd-mini-guide-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);TQR=Y}Y=TQR;return Y},{mode:1});var JmQ;var usd=/^[\x00-\x7F]+$/,LI=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(LI,_.F);_.up.Object.defineProperties(LI.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var Y,b=_.Tx((Y=this.data)==null?void 0:Y.handle);if(b)return _.Gx("@"+b)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var Y=_.Tx(this.displayHandle),b,w=_.Tx((b=this.data)==null?void 0:b.handleUrl);if(Y&&w)return _.Gx(w+Y)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var Y=_.Tx(this.displayHandle);if(Y&&!usd.test(Y)){var b;return(b=this.data)==null?void 0:b.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var Y=_.Tx(this.displayHandleUrl),b,w=_.Tx((b=this.data)==null?void 0:b.urlInfoText);if(Y&&w)return _.Gx(w+" "+Y)}}});
_.z([_.R(),_.K("design:type",Object)],LI.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],LI.prototype,"displayHandle",null);_.z([_.t("displayHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],LI.prototype,"displayHandleUrl",null);_.z([_.t("displayHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],LI.prototype,"warningText",null);
_.z([_.t("displayHandleUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],LI.prototype,"urlInfoTextWithUrl",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],LI.prototype,"darkerDarkTheme",void 0);_.z([_.S({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],LI);
_.a(LI,"ytd-handles-claiming-confirm-dialog-content",function(){if(JmQ!==void 0)return JmQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-confirm-dialog-content"></yt-formatted-string>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n    <yt-formatted-string id="first-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[data.firstInfoText]]"></yt-formatted-string>\n    <yt-formatted-string id="url-info-text" class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[urlInfoTextWithUrl]]"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n      <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-confirm-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-confirm-dialog-content" split-lines="" text="[[warningText]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JmQ=Y},{mode:1});var YBF;var S8=function(){var Y=_.F.apply(this,arguments)||this;Y.okButtonOverride={style:"mono",type:"outline",size:"M"};return Y};
_.P(S8,_.F);S8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
S8.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],S8.prototype,"okButtonOverride",void 0);_.z([_.R(),_.K("design:type",Object)],S8.prototype,"data",void 0);_.z([_.S({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],S8);
_.a(S8,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(YBF!==void 0)return YBF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-confirm-dialog-content data="[[data]]" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n</ytd-handles-claiming-confirm-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-confirm-dialog-renderer">\n  <div id="ok-button" class="style-scope ytd-handles-claiming-confirm-dialog-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return YBF=Y},{mode:1});var bet;var w7t=/^[\x00-\x7F]+$/,aN=function(){var Y=_.F.apply(this,arguments)||this;Y.isLoading=!1;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(aN,_.F);aN.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var Y;this.selectedHandle=(Y=this.handleInput)==null?void 0:Y.value;this.onSelectedHandleChanged(this.selectedHandle);_.De(this.hostElement,"yt-refit-popups-action")}};
_.up.Object.defineProperties(aN.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var Y;return(Y=this.data)==null?void 0:Y.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Gx("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Gx(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!w7t.test(this.selectedHandle)){var Y;return(Y=this.data)==null?void 0:Y.warningText}}}});
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],aN.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],aN.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],aN.prototype,"selectedHandle",void 0);_.z([_.R(),_.K("design:type",Object)],aN.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Function)],aN.prototype,"onSelectedHandleChanged",void 0);_.z([_.xZ("#channel-handle-input"),_.K("design:type",Object)],aN.prototype,"handleInput",void 0);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],aN.prototype,"handleUrlPrefix",null);_.z([_.t("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],aN.prototype,"displayHandle",null);_.z([_.t("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],aN.prototype,"displayHandleUrl",null);_.z([_.t("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],aN.prototype,"warningText",null);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],aN.prototype,"darkerDarkTheme",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.z([_.S({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],aN);
_.a(aN,"ytd-handles-claiming-edit-dialog-content",function(){if(bet!==void 0)return bet;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-edit-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="input-container" class="style-scope ytd-handles-claiming-edit-dialog-content">\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-edit-dialog-content">\n      </ytd-channel-handle-input-renderer>\n    </template>\n  </div>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-edit-dialog-content"></tp-yt-paper-spinner>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return bet=Y},{mode:1});var VtF;var rj=function(){var Y=_.F.apply(this,arguments)||this;Y.actionButtonOverride={style:"mono",type:"filled",size:"M"};Y.cancelButtonOverride={style:"mono",type:"text",size:"M"};Y.selectButtonDisabled=!1;Y.isLoading=!1;Y.hasSelectedHandleEventListener=!1;Y.selectedHandleChanged=function(b){Y.selectedHandle=b};
return Y};
_.P(rj,_.F);_.g=rj.prototype;_.g.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.g.onDataChanged=function(){var Y,b;this.selectedHandle=(b=_.v((Y=this.data)==null?void 0:Y.inputField,Y_t))==null?void 0:b.handle};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onCancel=function(){this.selectedHandle="";_.Xx(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onSelectHandle=function(){var Y=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(w,V){if(V.newHandleUpdateStatus!==void 0&&V.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&V.newHandleUpdateStatus.errorMessage)_.fx(Y.hostElement,_.Tx(V.newHandleUpdateStatus.errorMessage)),
Y.isLoading=!1;else{var H;if((H=Y.data)==null?0:H.onChannelUpdateSuccess){w=Y.data.onChannelUpdateSuccess;var f,E;if(V=(f=_.v(w,_.tI))==null?void 0:(E=f.popup)==null?void 0:E.handlesClaimingConfirmDialogRenderer)V.handle=_.Gx(Y.selectedHandle);Y.ytComponentBehavior.resolveCommand(w);_.Xx(Y.hostElement,"yt-close-popup-action",[Y.is])}else Y.isLoading=!1}},
onServerError:function(){var w;Y.content&&((w=Y.content)==null?0:w.handleInput)&&Y.content.handleInput.validate();Y.isLoading=!1;_.fx(Y.hostElement,_.sa("TRY_AGAIN_LATER"))}}}))}};
_.g.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
rj.prototype.onDataChanged=rj.prototype.onDataChanged;rj.prototype.onSelectedHandleChanged=rj.prototype.onSelectedHandleChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],rj.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rj.prototype,"actionButtonOverride",void 0);_.z([_.R(),_.K("design:type",Object)],rj.prototype,"cancelButtonOverride",void 0);_.z([_.R(),_.K("design:type",Object)],rj.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",String)],rj.prototype,"selectedHandle",void 0);_.z([_.R(),_.K("design:type",Object)],rj.prototype,"selectButtonDisabled",void 0);_.z([_.R(),_.K("design:type",Object)],rj.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Object)],rj.prototype,"hasSelectedHandleEventListener",void 0);_.z([_.R(),_.K("design:type",Object)],rj.prototype,"handleInput",void 0);
_.z([_.lr("selectedHandle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rj.prototype,"onSelectedHandleChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],rj.prototype,"onDataChanged",null);_.z([_.xZ("ytd-handles-claiming-edit-dialog-content"),_.K("design:type",Object)],rj.prototype,"content",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);_.z([_.S({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],rj);
_.a(rj,"ytd-handles-claiming-edit-dialog-renderer",function(){if(VtF!==void 0)return VtF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-edit-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-edit-dialog-content data="[[data]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" on-selected-handle-changed="[[selectedHandleChanged]]" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n</ytd-handles-claiming-edit-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-edit-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return VtF=Y},{mode:1});var HeX;var zb=function(){return _.F.apply(this,arguments)||this};
_.P(zb,_.F);_.up.Object.defineProperties(zb.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null?0:Y.handle){var b;return _.Gx("@"+_.Tx((b=this.data)==null?void 0:b.handle))}}}});
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],zb.prototype,"formattedHandle",null);_.z([_.R(),_.K("design:type",Object)],zb.prototype,"data",void 0);_.z([_.S({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],zb);
_.a(zb,"ytd-handles-claiming-radio-option-renderer",function(){if(HeX!==void 0)return HeX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-radio-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="handle" respect-lang-dir="" text="[[formattedHandle]]" class="style-scope ytd-handles-claiming-radio-option-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return HeX=Y},{mode:1});var ggA;var fus=/^[\x00-\x7F]+$/,WC=function(){var Y=_.F.apply(this,arguments)||this;Y.initialRadioIndex="-1";Y.isLoading=!1;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.maybeSubmitFeedback=function(){Y.feedbackSurveyRenderer.submitSurvey()};
return Y};
_.P(WC,_.F);WC.prototype.updateSelectedHandleIndexFromBinding=function(Y){this.selectedRadioIndex=+Y.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(Y)};
WC.prototype.selectedHandleChanged=function(Y){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var b;this.selectedHandle=(b=this.handleInput)==null?void 0:b.value;this.onSelectedHandleChanged(Y)}};
_.up.Object.defineProperties(WC.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var Y;return this.ytRendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Gx("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Gx(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!fus.test(this.selectedHandle)){var Y;return(Y=this.data)==null?void 0:Y.warningText}}}});
_.z([_.R(),_.K("design:type",Object)],WC.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],WC.prototype,"initialRadioIndex",void 0);_.z([_.R(),_.K("design:type",Number)],WC.prototype,"selectedRadioIndex",void 0);_.z([_.R(),_.K("design:type",String)],WC.prototype,"selectedHandle",void 0);_.z([_.R(),_.K("design:type",Object)],WC.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Function)],WC.prototype,"onSelectedHandleChanged",void 0);
_.z([_.R(),_.K("design:type",Function)],WC.prototype,"onSelectedRadioIndexChanged",void 0);_.z([_.xZ("#channel-handle-input"),_.K("design:type",Object)],WC.prototype,"handleInput",void 0);_.z([_.xZ("ytd-feedback-survey-renderer"),_.K("design:type",Object)],WC.prototype,"feedbackSurveyRenderer",void 0);_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],WC.prototype,"radioButtonLength",null);
_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],WC.prototype,"handleUrlPrefix",null);_.z([_.t("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],WC.prototype,"displayHandle",null);_.z([_.t("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],WC.prototype,"displayHandleUrl",null);_.z([_.t("selectedHandle"),_.K("design:type",Object),_.K("design:paramtypes",[])],WC.prototype,"warningText",null);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],WC.prototype,"darkerDarkTheme",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.z([_.S({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],WC);
_.a(WC,"ytd-handles-claiming-select-dialog-content",function(){if(ggA!==void 0)return ggA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <div id="handle-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <yt-img-shadow id="profile-picture" height="100" thumbnail="[[data.profilePicture]]" width="100" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-img-shadow>\n    <yt-formatted-string id="display-name" text="[[data.displayName]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <yt-formatted-string id="display-handle" respect-lang-dir="" text="[[displayHandle]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n    </yt-formatted-string>\n    <yt-formatted-string id="display-handle-url" text="[[displayHandleUrl]]" class="style-scope ytd-handles-claiming-select-dialog-content"></yt-formatted-string>\n    <template is="dom-if" restamp="" if="[[warningText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <yt-formatted-string id="warning-text" class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[warningText]]">\n      </yt-formatted-string>\n    </template>\n  </div>\n  <div id="info-container" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <div id="messages" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <template is="dom-repeat" items="[[data.infoText]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <yt-formatted-string class="line-text style-scope ytd-handles-claiming-select-dialog-content" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <tp-yt-paper-radio-group id="radio-container" selected="[[initialRadioIndex]]" on-selected-changed="updateSelectedHandleIndexFromBinding" class="style-scope ytd-handles-claiming-select-dialog-content">\n    <template is="dom-repeat" items="[[data.radioButton]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[index]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-handles-claiming-radio-option-renderer data="[[item.handlesClaimingRadioOptionRenderer]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-handles-claiming-radio-option-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n    <template is="dom-if" restamp="" if="[[data.inputField]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n      <tp-yt-paper-radio-button id="radio-item" name$="[[radioButtonLength]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n        <ytd-channel-handle-input-renderer id="channel-handle-input" data="[[data.inputField.channelHandleInputRenderer]]" on-value-changed="selectedHandleChanged" class="style-scope ytd-handles-claiming-select-dialog-content">\n        </ytd-channel-handle-input-renderer>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div id="spinner" hidden="[[!isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content">\n  <tp-yt-paper-spinner active="[[isLoading]]" class="style-scope ytd-handles-claiming-select-dialog-content"></tp-yt-paper-spinner>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ggA=Y},{mode:1});var Nid;var KI=function(){var Y=_.F.apply(this,arguments)||this;Y.actionButtonOverride={style:"mono",type:"filled",size:"M"};Y.cancelButtonOverride={style:"mono",type:"text",size:"M"};Y.initialRadioIndex="-1";Y.selectButtonDisabled=!1;Y.isLoading=!1;Y.selectedRadioIndexChanged=function(b){Y.selectedRadioIndex=Number(b.detail.value)};
Y.selectedHandleChanged=function(b){Y.selectedHandle=b.detail.value};
Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(KI,_.F);_.g=KI.prototype;_.g.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.g.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.g.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.De(this.hostElement,"yt-refit-popups-action")};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Xx(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onSelectHandle=function(){var Y=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(w,V){if(V.newHandleUpdateStatus!==void 0&&V.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&V.newHandleUpdateStatus.errorMessage)_.fx(Y.hostElement,_.Tx(V.newHandleUpdateStatus.errorMessage)),
Y.isLoading=!1;else{var H;if((H=Y.data)==null?0:H.onChannelUpdateSuccess){w=Y.data.onChannelUpdateSuccess;V=_.v(w,_.tI);var f;if(V==null?0:(f=V.popup)==null?0:f.handlesClaimingConfirmDialogRenderer)V.popup.handlesClaimingConfirmDialogRenderer.handle=_.Gx(Y.selectedHandle);Y.ytComponentBehavior.resolveCommand(w);_.Xx(Y.hostElement,"yt-close-popup-action",[Y.is])}else Y.isLoading=!1}},
onServerError:function(){if(Y.selectedRadioIndex===Y.radioButtonLength){var w;Y.content&&((w=Y.content)==null?0:w.handleInput)&&Y.content.handleInput.validate()}Y.isLoading=!1;_.fx(Y.hostElement,_.sa("TRY_AGAIN_LATER"))}}}))}};
_.g.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var Y,b;this.selectedHandle=(Y=this.content)==null?void 0:(b=Y.handleInput)==null?void 0:b.value}else this.selectedRadioIndex>=0&&((Y=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(Y==null?void 0:Y.handle):this.selectedHandle=void 0)};
_.g.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.g.getRadioItem=function(Y){if(this.radioButtonLength>Y&&Y>=0)return _.v(this.data.radioButton[Y],kQX)};
_.up.Object.defineProperties(KI.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var Y;return(((Y=this.data)==null?void 0:Y.radioButton)||[]).length}}});
KI.prototype.onSelectedHandleChanged=KI.prototype.onSelectedHandleChanged;KI.prototype.onSelectedHandleIndexChanged=KI.prototype.onSelectedHandleIndexChanged;KI.prototype.onDataChanged=KI.prototype.onDataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],KI.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],KI.prototype,"actionButtonOverride",void 0);_.z([_.R(),_.K("design:type",Object)],KI.prototype,"cancelButtonOverride",void 0);
_.z([_.R(),_.K("design:type",Object)],KI.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],KI.prototype,"initialRadioIndex",void 0);_.z([_.R(),_.K("design:type",Number)],KI.prototype,"selectedRadioIndex",void 0);_.z([_.R(),_.K("design:type",String)],KI.prototype,"selectedHandle",void 0);_.z([_.R(),_.K("design:type",Object)],KI.prototype,"selectButtonDisabled",void 0);_.z([_.R(),_.K("design:type",Object)],KI.prototype,"isLoading",void 0);
_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],KI.prototype,"radioButtonLength",null);_.z([_.xZ("ytd-handles-claiming-select-dialog-content"),_.K("design:type",Object)],KI.prototype,"content",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KI.prototype,"onDataChanged",null);
_.z([_.lr("selectedRadioIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KI.prototype,"onSelectedHandleIndexChanged",null);_.z([_.lr("selectedHandle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],KI.prototype,"onSelectedHandleChanged",null);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],KI.prototype,"darkerDarkTheme",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.z([_.S({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],KI);
_.a(KI,"ytd-handles-claiming-select-dialog-renderer",function(){if(Nid!==void 0)return Nid;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-handles-claiming-select-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-handles-claiming-select-dialog-renderer"></yt-formatted-string>\n</div>\n<ytd-handles-claiming-select-dialog-content data="[[data]]" initial-radio-index="[[initialRadioIndex]]" is-loading="[[isLoading]]" selected-handle="[[selectedHandle]]" selected-radio-index="[[selectedRadioIndex]]" on-selected-handle-changed="[[selectedHandleChanged]]" on-selected-radio-index-changed="[[selectedRadioIndexChanged]]" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n</ytd-handles-claiming-select-dialog-content>\n<div id="footer" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" overrides="[[cancelButtonOverride]]" on-click="onCancel" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n  <ytd-button-renderer id="select-button" data="[[data.selectButton.buttonRenderer]]" disabled="[[selectButtonDisabled]]" overrides="[[actionButtonOverride]]" on-click="onSelectHandle" class="style-scope ytd-handles-claiming-select-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Nid=Y},{mode:1});var Egt;var cHN;var iu=function(){return _.F.apply(this,arguments)||this};
_.P(iu,_.F);iu.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],iu.prototype,"data",void 0);_.z([_.S({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],iu);
_.a(iu,"ytd-hotkey-dialog-section-option-renderer",function(){if(cHN!==void 0)return cHN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="label-container" class="label-container style-scope ytd-hotkey-dialog-section-option-renderer">\n  <div id="label" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[getSimpleString(data.label)]]</div>\n  <div id="standalone-badge" class="standalone-badge style-scope ytd-hotkey-dialog-section-option-renderer"></div>\n</div>\n<div id="hotkey" aria-label$="[[data.hotkeyAccessibilityLabel.accessibilityData.label]]" class="style-scope ytd-hotkey-dialog-section-option-renderer">[[data.hotkey]]</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return cHN=Y},{mode:1});var Usd;var A5=function(){return _.F.apply(this,arguments)||this};
_.P(A5,_.F);A5.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],A5.prototype,"data",void 0);_.z([_.S({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],A5);
_.a(A5,"ytd-hotkey-dialog-section-renderer",function(){if(Usd!==void 0)return Usd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="sub-title" class="style-scope ytd-hotkey-dialog-section-renderer">[[getSimpleString(data.title)]]</div>\n<div id="options" class="style-scope ytd-hotkey-dialog-section-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Usd=Y},{mode:1});var CI=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(CI,_.F);CI.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],CI.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],CI.prototype,"darkerDarkTheme",void 0);_.z([_.S({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],CI);
_.a(CI,"ytd-hotkey-dialog-content",function(){if(Egt!==void 0)return Egt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-hotkey-dialog-content">\n  <div id="sections" class="style-scope ytd-hotkey-dialog-content"></div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Egt=Y},{mode:1});var X7d;var yE=function(){return _.F.apply(this,arguments)||this};
_.P(yE,_.F);yE.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var Y=document.querySelector("ytd-hotkey-dialog-content #scrollable");Y&&(Y.dialogElement=this.hostElement.parentElement)};
yE.prototype.onCloseTap=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yE.prototype,"data",void 0);_.z([_.S({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],yE);
_.a(yE,"ytd-hotkey-dialog-renderer",function(){if(X7d!==void 0)return X7d;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hotkey-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-hotkey-dialog-renderer">[[getSimpleString(data.title)]]</div>\n<ytd-hotkey-dialog-content data="[[data]]" class="style-scope ytd-hotkey-dialog-renderer"></ytd-hotkey-dialog-content>\n<div id="action-buttons" class="style-scope ytd-hotkey-dialog-renderer">\n  <ytd-button-renderer id="cancel" data="[[data.dismissButton.buttonRenderer]]" on-tap="onCloseTap" class="style-scope ytd-hotkey-dialog-renderer">\n  </ytd-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return X7d=Y},{mode:1});var DsN;var $T=function(){return _.F.apply(this,arguments)||this};
_.P($T,_.F);$T.prototype.onYtServiceRequestError=function(){if(this.blocked){var Y;var b=(Y=this.data)==null?void 0:Y.defaultServiceEndpoint}else{var w;b=(w=this.data)==null?void 0:w.toggledServiceEndpoint}var V;(b=(V=_.v(b,_.XV5))==null?void 0:V.onFailureAction)&&this.ytComponentBehavior.resolveCommand(b);this.updateBlockState(!this.blocked)};
$T.prototype.onYtToggleButton=function(Y){this.updateBlockState(Y.detail.toggled)};
$T.prototype.updateBlockState=function(Y){if(Y!==this.blocked){var b=this.blockedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.qo("blockStateEntity",b,{key:b,blocked:Y}));this.set("data.isToggled",Y)}};
_.up.Object.defineProperties($T.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)}}});
$T.prototype.onYtToggleButton=$T.prototype.onYtToggleButton;$T.prototype.onYtServiceRequestError=$T.prototype.onYtServiceRequestError;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],$T.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],$T.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],$T.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],$T.prototype,"blockedEntityKey",void 0);
_.z([_.R({selectorArgs:["blockedEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"blockStateEntity",b)}}),
_.K("design:type",Object)],$T.prototype,"blockStateEntity",void 0);_.z([_.t("data","blockStateEntity"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],$T.prototype,"blocked",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$T.prototype,"onYtServiceRequestError",null);
_.z([_.kZ("yt-toggle-button"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],$T.prototype,"onYtToggleButton",null);_.z([_.S({is:"ytd-block-button",disableElementRegistration:!0})],$T);
_.a($T,"ytd-block-button",function(){if(DsN!==void 0)return DsN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-block-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer data="[[data]]" class="style-scope ytd-block-button">\n</ytd-toggle-button-renderer>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return DsN=Y},
{mode:1});var msI;var ogs;var j8=function(){return _.F.apply(this,arguments)||this};
_.P(j8,_.F);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],j8.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],j8.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],j8.prototype,"data",void 0);_.z([_.S({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],j8);
_.a(j8,"ytd-kids-blocklist-picker-item-renderer",function(){if(ogs!==void 0)return ogs;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="account-info style-scope ytd-kids-blocklist-picker-item-renderer">\n  <div class="account-avatar style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-img-shadow id="account-icon" thumbnail="[[data.avatar]]" width="44" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n    </yt-img-shadow>\n  </div>\n  <div class="account-text-info style-scope ytd-kids-blocklist-picker-item-renderer">\n    <yt-formatted-string class="account-name style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childDisplayName]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="account-description style-scope ytd-kids-blocklist-picker-item-renderer" text="[[data.childAccountDescription]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<div class="action-button style-scope ytd-kids-blocklist-picker-item-renderer">\n  <ytd-block-button blocked-entity-key="[[data.blockedEntityKey]]" data="[[data.blockButton.toggleButtonRenderer]]" class="style-scope ytd-kids-blocklist-picker-item-renderer">\n  </ytd-block-button>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ogs=Y},{mode:1});var Gb=function(){return _.F.apply(this,arguments)||this};
_.P(Gb,_.F);Gb.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Gb.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Gb.prototype,"data",void 0);_.z([_.S({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Gb);
_.a(Gb,"ytd-kids-blocklist-picker-content",function(){if(msI!==void 0)return msI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="child-rows" class="style-scope ytd-kids-blocklist-picker-content"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return msI=
Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var Iu7;var Tb=function(){var Y=_.F.apply(this,arguments)||this;Y.hasAnyRequestSucceeded=!1;Y.hasAnyRequestFailed=!1;Y.numPendingRequests=0;return Y};
_.P(Tb,_.F);_.g=Tb.prototype;_.g.attached=function(){this.hostElement.setAttribute("dialog","")};
_.g.onDoneButtonTap=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.g.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.g.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.g.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.g.onPopupClosed=function(Y){var b,w;if(((b=Y.detail)==null?void 0:(w=b.popup)==null?void 0:w.is)==="tp-yt-paper-dialog"){var V;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((V=this.data)==null?0:V.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.bW(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Tb.prototype.onPopupClosed=Tb.prototype.onPopupClosed;Tb.prototype.onYtServiceRequestError=Tb.prototype.onYtServiceRequestError;Tb.prototype.onYtServiceRequestCompleted=Tb.prototype.onYtServiceRequestCompleted;Tb.prototype.onYtServiceRequestSent=Tb.prototype.onYtServiceRequestSent;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Tb.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Tb.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Tb.prototype,"data",void 0);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tb.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tb.prototype,"onYtServiceRequestCompleted",null);
_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Tb.prototype,"onYtServiceRequestError",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Tb.prototype,"onPopupClosed",null);_.z([_.S({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Tb);
_.a(Tb,"ytd-kids-blocklist-picker-renderer",function(){if(Iu7!==void 0)return Iu7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-kids-blocklist-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="title" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <yt-formatted-string text="[[data.title]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </yt-formatted-string>\n  </div>\n  <ytd-kids-blocklist-picker-content data="[[data]]" class="style-scope ytd-kids-blocklist-picker-renderer"> </ytd-kids-blocklist-picker-content>\n</div>\n<div id="footer" class="style-scope ytd-kids-blocklist-picker-renderer">\n  <div id="action-buttons" class="style-scope ytd-kids-blocklist-picker-renderer">\n    <ytd-button-renderer id="done-button" data="[[data.doneButton.buttonRenderer]]" on-click="onDoneButtonTap" class="style-scope ytd-kids-blocklist-picker-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Iu7=Y},{mode:1});var k6X;var luA;var J5=function(){return _.F.apply(this,arguments)||this};
_.P(J5,_.F);J5.prototype.setTip=function(Y){var b=this;this.data&&(this.tip=gcg(VHQ.getInstance(),Y,this.data),_.TC(this,function(){_.Ua(b.hostElement,"yt-refit")}))};
J5.prototype.clearTip=function(){this.tip=void 0};
J5.prototype.computeHidden=function(Y){return!Y};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],J5.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.K("design:type",Boolean)],J5.prototype,"hidden",void 0);_.z([_.R(),_.K("design:type",Object)],J5.prototype,"tip",void 0);_.z([_.S({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],J5);
_.a(J5,"ytd-menu-popup-tip-renderer",function(){if(luA!==void 0)return luA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-tip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[tip]]" class="style-scope ytd-menu-popup-tip-renderer"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);
return luA=Y},{mode:1});var h6Q;var uu=function(){var Y=_.F.apply(this,arguments)||this;Y.useIcons=!1;Y.systemIcons=_.q("kevlar_system_icons");Y.useListItemStyles=_.q("web_list_item_style_for_menu_items");return Y};
_.P(uu,_.F);_.g=uu.prototype;_.g.onFocus=function(){var Y;(Y=_.E6(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.g.onTap=function(){var Y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(Y&&_.v(Y,_.ln))this.componentBehavior.resolveCommand(Y),this.updateToggledStateInEntity();else if(Y){this.componentBehavior.resolveCommand(Y)||_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}});var b;((b=_.v(Y,_.x7))==null?void 0:b.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.g.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.g.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.g.updateToggledStateInEntity=function(){var Y=this.data.toggleMenuServiceItemEntityKey,b=!this.data.isToggled;Y&&this.ytdReduxBehavior.dispatch(_.qo("toggleMenuServiceItemEntity",Y,{key:Y,isToggled:b}))};
_.g.computeIcon=function(Y,b,w){return(Y=Y?w:b)&&Y.iconType?_.IR(Y.iconType):""};
_.g.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.g.isIconActive=function(Y){return!_.q("toggle_menu_active_icon_killswitch")&&Y};
_.up.Object.defineProperties(uu.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?0:Y.isToggled)?(b=this.data)==null?void 0:b.toggledText:(w=this.data)==null?void 0:w.defaultText}}});
uu.prototype.toggledStateEntityChanged=uu.prototype.toggledStateEntityChanged;uu.prototype.onYtServiceRequestCompleted=uu.prototype.onYtServiceRequestCompleted;uu.prototype.onTap=uu.prototype.onTap;uu.prototype.onFocus=uu.prototype.onFocus;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],uu.prototype,"componentBehavior",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],uu.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],uu.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],uu.prototype,"useIcons",void 0);_.z([_.R({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.K("design:type",String)],uu.prototype,"icon",void 0);
_.z([_.R({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"toggleMenuServiceItemEntity",b)}}),
_.K("design:type",Object)],uu.prototype,"toggleMenuServiceItemEntity",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],uu.prototype,"systemIcons",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],uu.prototype,"useListItemStyles",void 0);_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uu.prototype,"onFocus",null);
_.z([_.t("data.isToggled"),_.K("design:type",Object),_.K("design:paramtypes",[])],uu.prototype,"toggleButtonText",null);_.z([_.kZ("tap"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uu.prototype,"onTap",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uu.prototype,"onYtServiceRequestCompleted",null);
_.z([_.lr("toggleMenuServiceItemEntity.isToggled","data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],uu.prototype,"toggledStateEntityChanged",null);_.z([_.S({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],uu);
_.a(uu,"ytd-toggle-menu-service-item-renderer",function(){if(h6Q!==void 0)return h6Q;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-toggle-menu-service-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-item class="style-scope ytd-toggle-menu-service-item-renderer">\n  <yt-icon active="[[isIconActive(data.isToggled)]]" hidden="[[computeIconHidden(icon, useIcons)]]" icon="[[icon]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-icon>\n  <yt-formatted-string text="[[toggleButtonText]]" class="style-scope ytd-toggle-menu-service-item-renderer"></yt-formatted-string>\n  <tp-yt-paper-toggle-button checked="[[data.isToggled]]" hidden="[[!data.hasToggleSwitch]]" class="style-scope ytd-toggle-menu-service-item-renderer"></tp-yt-paper-toggle-button>\n</tp-yt-paper-item>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return h6Q=Y},{mode:1});var xsb;var Yq=function(){return _.F.apply(this,arguments)||this};
_.P(Yq,_.F);Yq.prototype.onFocus=function(){var Y;(Y=_.E6(this.hostElement).querySelector("tp-yt-paper-item"))==null||Y.focus()};
_.up.Object.defineProperties(Yq.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.PN(this.data.iconUrl)}}});
Yq.prototype.onFocus=Yq.prototype.onFocus;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Yq.prototype,"rendererBehavior",void 0);_.z([_.n(_.sS.YtEndpointBehavior),_.K("design:type",Object)],Yq.prototype,"ytEndpointBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Yq.prototype,"data",void 0);_.z([_.kZ("focus"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yq.prototype,"onFocus",null);
_.z([_.t("data.iconUrl"),_.K("design:type",Object),_.K("design:paramtypes",[])],Yq.prototype,"imageSource",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Yq);
_.a(Yq,"ytd-menu-custom-icon-item-renderer",function(){if(xsb!==void 0)return xsb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-custom-icon-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-menu-custom-icon-item-renderer" data="[[data.command]]" href$="[[computeHref_(data.command)]]" tabindex="-1">\n  <tp-yt-paper-item class="style-scope ytd-menu-custom-icon-item-renderer">\n    <img class="custom-icon style-scope ytd-menu-custom-icon-item-renderer" hidden$="[[!data.iconUrl]]" alt="icon" src$="[[imageSource]]">\n    <div class="action-text style-scope ytd-menu-custom-icon-item-renderer">\n      [[getSimpleString(data.actionText)]]\n      <yt-icon class="launch-icon style-scope ytd-menu-custom-icon-item-renderer" icon="yt-icons:launch"></yt-icon>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return xsb=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});_.f_(_.nY,"yt-list-item-view-model",{props:{data:_.YX,isMenuItem:_.YX,isCompact:_.YX,onTap:_.gn,trailingAccessory:_.gn,hideSelectionTextChevron:_.YX,disabled:_.YX,inPopup:_.YX,disableHorizontalPadding:_.YX,isOverlay:_.YX,isToggled:_.YX}});var bq=function(){var Y=_.F.apply(this,arguments)||this;Y.disableBackdropFilter=_.q("web_disable_backdrop_filter");return Y};
_.P(bq,_.F);_.g=bq.prototype;
_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.g.computeAriaLabel=function(Y){return Y};
_.g.onPopupOpened=function(){this.items.selected=0;for(var Y=_.N(_.E6(this.items).children),b=Y.next();!b.done;b=Y.next())b.value.popupPositionTarget=this.positionTarget;if(Y=this.popupTip||void 0)Y.setTip(this.source||""),this.source=void 0;this.veData&&(Y=_.dO())&&_.Gu(Y,[this.veData])};
_.g.onPopupClosed=function(){var Y=this.popupTip||void 0;Y&&Y.clearTip()};
_.g.onIronActivate=function(Y){this.shouldPersist(Y)||_.Xx(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(Y=_.dO())&&_.J1(Y,this.veData)};
_.g.shouldPersist=function(Y){var b,w;if(((b=Y.detail)==null?void 0:b.selected)===void 0||(w=this.data)==null||!w.items)return!1;var V,H;return!((H=(V=this.data.items[Y.detail.selected])==null?void 0:V.toggleMenuServiceItemRenderer)==null||!H.persistentOnMenuPopup)};
_.g.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(Y){return Y.menuNavigationItemRenderer?!!Y.menuNavigationItemRenderer.icon:Y.menuServiceItemRenderer?!!Y.menuServiceItemRenderer.icon:Y.menuConditionalServiceItemRenderer?!!Y.menuConditionalServiceItemRenderer.icon:Y.menuConditionalNavigationItemRenderer?!!Y.menuConditionalNavigationItemRenderer.icon:Y.toggleMenuServiceItemRenderer?!!Y.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
bq.prototype.onPopupClosed=bq.prototype.onPopupClosed;bq.prototype.onPopupOpened=bq.prototype.onPopupOpened;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],bq.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],bq.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],bq.prototype,"veData",void 0);_.z([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.K("design:type",String)],bq.prototype,"ariaLabel",void 0);_.z([_.R({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],bq.prototype,"useIcons",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],bq.prototype,"disableBackdropFilter",void 0);_.z([_.xZ("#items"),_.K("design:type",Object)],bq.prototype,"items",void 0);_.z([_.xZ("ytd-menu-popup-tip-renderer"),_.K("design:type",Object)],bq.prototype,"popupTip",void 0);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bq.prototype,"onPopupOpened",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bq.prototype,"onPopupClosed",null);_.z([_.S({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],bq);
_.a(bq,"ytd-menu-popup-renderer",function(){if(k6X!==void 0)return k6X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-popup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-listbox id="items" on-iron-activate="onIronActivate" class="style-scope ytd-menu-popup-renderer"></tp-yt-paper-listbox>\n<div id="footer" class="style-scope ytd-menu-popup-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return k6X=Y},{mode:1});var qBO;var sfs=_.b8(function(Y){Y=_.ur(Y,{icon:void 0});var b=Y.data;Y=Y.icon;var w=function(){return b().iconBadgeText},V={},H=_.hj("yt-spec-icon-badge-shape",function(){a:switch(b().iconBadgeType){case "notification":var f="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":f="yt-spec-icon-badge-shape--type-cart";break a;default:f=""}return f},function(){a:switch(b().iconBadgeStyle){case "overlay":var f="yt-spec-icon-badge-shape--style-overlay";
break a;default:f=""}return f},(V["yt-spec-icon-badge-shape--text-size-small"]=function(){var f=w();
return!!((f==null?0:f.length)&&f.length>2)},V));
return _.m("yt-icon-badge-shape",null,_.m(_.h,{cond:Y,then:function(f){return _.m("div",{class:H},_.m("div",{class:"yt-spec-icon-badge-shape__icon"},_.m(_.n_,{icon:f})),_.m(_.h,{cond:w,then:function(E){return _.m("div",{class:"yt-spec-icon-badge-shape__badge"},E)}}))}}))},"sg");
sfs.idomCompat=!0;_.f_(sfs,"yt-icon-badge-shape",{props:{data:_.YX,icon:_.YX}});var I0=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};Y.unseenCount=0;Y.isOverlay=!1;return Y};
_.P(I0,_.F);_.g=I0.prototype;_.g.attached=function(){var Y=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(b){Y.onServiceWorkerMessage(b)})};
_.g.onDataChanged=function(){this.isAttached&&!this.JSC$18296_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18296_lastData=this.data};
_.g.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.g.computeIcon=function(){var Y,b;return(Y=this.data)==null?void 0:(b=Y.icon)==null?void 0:b.iconType};
_.g.onServiceWorkerMessage=function(Y){Y.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.g.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.v(this.data.updateUnseenCountEndpoint,_.x7)&&_.v(this.data.updateUnseenCountEndpoint,_.x7).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.g.handleUpdateNotificationsUnseenCountAction=function(Y){var b=this;Y=_.v(Y,NLg);Y!=null&&Y.unseenCount&&Y.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(Y.unseenCount),_.Lb.addLowPriorityJob(function(){b.data.updateUnseenCountEndpoint&&b.ytComponentBehavior.resolveCommand(b.data.updateUnseenCountEndpoint)},Y.timeoutMs))};
_.g.onClick=function(){_.Ua(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var Y=_.De(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),b=this.data.menuRequest;Y&&Y.length===1&&Y[0]?_.Xx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):b&&this.ytComponentBehavior.resolveCommand(b)};
_.g.handleTopbarMenuClosedAction=function(Y){Y==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.g.toggleIconState=function(Y){this.iconButton&&(this.iconButton.pressed=Y)};
_.g.sendUnseenCountRequest=function(Y){var b=this;_.MY(_.Lb,function(){b.ytComponentBehavior.resolveCommand(Y)})};
_.g.updateCountUI=function(Y){this.set("unseenCount",Y<9?Y:"9+")};
_.up.Object.defineProperties(I0.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
I0.prototype.handleUpdateNotificationsUnseenCountAction=I0.prototype.handleUpdateNotificationsUnseenCountAction;I0.prototype.onDataChanged=I0.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],I0.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.J0),_.K("design:type",Object)],I0.prototype,"ytdOpenPopupBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],I0.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],I0.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],I0.prototype,"unseenCount",void 0);_.z([_.R(),_.K("design:type",Object)],I0.prototype,"isOverlay",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],I0.prototype,"showTooltips",void 0);_.z([_.xZ("yt-icon-button"),_.K("design:type",Object)],I0.prototype,"iconButton",void 0);
_.z([_.t("unseenCount"),_.K("design:type",Object),_.K("design:paramtypes",[])],I0.prototype,"showNotificationCount",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],I0.prototype,"onDataChanged",null);_.z([_.kZ("yt-update-notifications-unseen-count-action"),_.K("design:type",Function),_.K("design:paramtypes",[Object]),_.K("design:returntype")],I0.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.z([_.S({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],I0);
_.a(I0,"ytd-notification-topbar-button-renderer",function(){if(qBO!==void 0)return qBO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-notification-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibility.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-notification-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(unseenCount, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-notification-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-notification-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return qBO=Y},{mode:_.Xd("kevlar_poly_si_batch_j025")?1:2});var QfA;var kq=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return Y};
_.P(kq,_.F);kq.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}}}}}};
kq.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
kq.prototype.onDarkModeToggled=function(Y){this.dark=Y};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],kq.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],kq.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],kq.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],kq.prototype,"data",void 0);_.z([_.R({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],kq.prototype,"dark",void 0);
_.z([_.S({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],kq);
_.a(kq,"yt-pdg-buy-flow-header-renderer",function(){if(QfA!==void 0)return QfA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-pdg-buy-flow-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <yt-formatted-string id="title" text="[[data.text]]" class="style-scope yt-pdg-buy-flow-header-renderer"></yt-formatted-string>\n</div>\n<div id="button-container" class="style-scope yt-pdg-buy-flow-header-renderer">\n  <div id="help-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n  <div id="dismiss-button" class="style-scope yt-pdg-buy-flow-header-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return QfA=Y},{mode:1});var vgX;var PZb;var lq=function(){var Y=_.F.apply(this,arguments)||this;Y.immediateValue=0;Y.isDarkTheme=!1;Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(lq,_.F);_.g=lq.prototype;_.g.created=function(){_.Ci.requestAvailability()};
_.g.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.g.dataChanged=function(){var Y=_.E6(this.hostElement).querySelector("#color-slider");Y.immediateValue&&this.updateSliderKnobAndGradientStyles(Y.immediateValue);this.data.notches[0].knobColorArgb&&_.m_(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.KX(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.zO("HTML_DIR")==="rtl"&&_.E6(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.g.onSliderImmediateChange=function(){var Y=_.E6(this.hostElement).querySelector("#color-slider");Y.dragging&&(Y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(Y.immediateValue),this.updateSliderKnobAndGradientStyles(Y.immediateValue)),this.updateSliderAria())};
_.g.onSliderChange=function(){var Y=_.E6(this.hostElement).querySelector("#color-slider");Y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(Y.immediateValue),this.updateSliderKnobAndGradientStyles(Y.immediateValue));this.updateSliderAria()};
_.g.updateSliderAria=function(){var Y=_.E6(this.hostElement).querySelector("#color-slider"),b=_.E6(this.hostElement).querySelector("#color-slider");b=_.Tx(this.data.notches[b.immediateValue].tierValue);_.te()&&_.Ua(this.hostElement,"iron-announce",{text:b});Y.setAttribute("aria-valuetext",b)};
_.g.updateSuperThanksSelectedTierEntity=function(Y){if(Y!==this.immediateValue){var b,w,V=this==null?void 0:(b=this.data)==null?void 0:(w=b.superThanksSelectedTierEntity)==null?void 0:w.key;V&&V.length>0&&this.ytdReduxBehavior.dispatch(_.qo("superThanksSelectedTierEntity",V,{key:V,index:Y}))}};
_.g.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.updateSliderKnobAndGradientStyles=function(Y){this.immediateValue=Y;Y=this.data.notches[Y];if(Y==null?0:Y.knobColorArgb)var b={"--ytd-pdg-color-slider-knob-color":_.KX(Y.knobColorArgb)};(Y==null?0:Y.linearGradientCssStyle)&&b!==null&&(b=Object.assign({},b,{"--ytd-pdg-color-slider-active-color":Y==null?void 0:Y.linearGradientCssStyle}));b!==null&&_.m_(this.hostElement,b)};
lq.prototype.onSliderChange=lq.prototype.onSliderChange;lq.prototype.onSliderImmediateChange=lq.prototype.onSliderImmediateChange;lq.prototype.dataChanged=lq.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],lq.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],lq.prototype,"immediateValue",void 0);_.z([_.R(),_.K("design:type",Number)],lq.prototype,"maxMarkers",void 0);
_.z([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:NhA}),_.K("design:type",Object)],lq.prototype,"superThanksSelectedTierEntity",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],lq.prototype,"isDarkTheme",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],lq.prototype,"ytdReduxBehavior",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lq.prototype,"dataChanged",null);
_.z([_.kZ("immediate-value-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lq.prototype,"onSliderImmediateChange",null);_.z([_.kZ("change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],lq.prototype,"onSliderChange",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],lq);
_.a(lq,"ytd-pdg-color-slider-renderer",function(){if(PZb!==void 0)return PZb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-color-slider-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-slider id="color-slider" max="[[maxMarkers]]" max-markers="[[maxMarkers]]" min="0" snaps="" step="1" value="[[immediateValue]]" class="style-scope ytd-pdg-color-slider-renderer"></tp-yt-paper-slider>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return PZb=Y},{mode:1});var ZeX;var Bit;var hs=null;
_.pV({is:"ytd-comment-input",_template:function(){if(Bit!==void 0)return Bit;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-input--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-comment-input">\n  <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-comment-input">\n    <div slot="after-input" class="paper-input-input style-scope ytd-comment-input">\n      <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-comment-input">\n        <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-comment-input">\n          <div id="content" slot="input" on-click="onContentClick" class="style-scope ytd-comment-input">\n            <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="input" data="[[commentChip]]" hidden="[[!hasCommentChip]]" class="style-scope ytd-comment-input">\n            </yt-pdg-comment-chip-renderer>\n            <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[computePlaceholderText_(placeholderText)]]" plaintext-only="true" required="true" split-lines="1" text="[[editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-comment-input"></yt-formatted-string>\n          </div>\n        </yt-user-mention-autosuggest-input>\n      </ytd-emoji-input>\n    </div>\n  </tp-yt-paper-input-container>\n  <span id="char-count" hidden="[[!charLimit]]" class="style-scope ytd-comment-input">[[charCount]]/[[charLimit]]</span>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Bit=Y},
behaviors:[_.HeL.YtHostElementBehavior,_.ni,_.yZ.YtComponentBehavior,_.cz.YtRendererstamperBehavior,_.kB$.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 _.Wz}},
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",_.Io(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;_.l6();this.focus()},
detached:function(){document.removeEventListener("tap",_.Io(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(Y){Y=Y.detail;Y=Y.isCustomEmoji?Y.shortcuts[0]:Y.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,Y);this.maybeUpdateTextDirection_();_.Ua(this.hostElement,"input")},
getInputRange_:function(){var Y=_.BT();if(Y){Y=Y.getBrowserRangeObject();for(var b=Y.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return Y;b=b.parentNode}}Y=this.getEditableTextArea_();Y=_.Wq(Y,Y.childNodes.length);Y.select();return Y.getBrowserRangeObject()},
insertTextWithEmojis_:function(Y,b,w){(b=this.emojiManager.createDocumentFragment(b,!0,!1,w===void 0?!0:w))&&b.childNodes.length!==0&&(Y.collapsed||Y.deleteContents(),w=b.lastChild,Y.insertNode(b),_.Fx5(w).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var Y=_.BT();if(Y){var b=Y.JSC$9293_getStartNode(),w=Y.JSC$9293_getEndNode();if(T5N(b)&&T5N(w)){var V=Y.JSC$9293_getStartOffset(),H;if(_.qX&&b.nodeType===Node.ELEMENT_NODE&&(H=_.ye_(b)))_.Wq(H,0).select();else{H=To(b)?b:_.FE(b,To);var f=To(w)?w:_.FE(w,To);if(H||f)if(Y.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){Y=!0;V===b.length&&(Y=!1);if(hs==="end"||hs==="right")Y=!1;b=b.parentNode;Y=[].concat(_.Bt(b.parentNode.childNodes)).indexOf(b)+(Y?0:1);_.Wq(b.parentNode,Y).select()}}else H?
H.previousSibling&&H.previousSibling.length>0?_.Ky(w,Y.JSC$9293_getEndOffset(),H.previousSibling,H.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),H.parentNode.insertBefore(b,H),_.Ky(w,Y.JSC$9293_getEndOffset(),b,0).select()):f&&(f.nextSibling&&f.nextSibling.length>0?_.Ky(b,Y.JSC$9293_getStartOffset(),f.nextSibling,1).select():(w=document.createTextNode("\u200b"),f.parentNode.insertBefore(w,f.nextSibling),_.Ky(b,Y.JSC$9293_getStartOffset(),w,w.length).select()));hs=null}}else hs=
null}else hs=null},
leftKeyPressed_:function(){hs="left"},
rightKeyPressed_:function(){hs="right"},
endKeyPressed_:function(){hs="end"},
maybeDeleteChip_:function(){var Y=VlX(!0);if(Y){var b=_.BT(),w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();_.Ly(w,b,Y,Y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var Y=VlX(!1);if(Y){var b=_.BT(),w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();_.Ly(w,b,Y,0).select()}},
maybeBackspaceChipWordMode_:function(Y){var b=_.BT();if(b.isCollapsed()){var w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();var V=H8t(w,b,!0);V&&(_.Ly(w,b,V,0).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(Y){var b=_.BT();if(b.isCollapsed()){var w=b.JSC$9293_getStartNode();b=b.JSC$9293_getStartOffset();var V=H8t(w,b,!1);V&&(_.Ly(w,b,V,V.childNodes.length).select(),document.execCommand("delete"),Y.preventDefault(),Y.stopImmediatePropagation())}},
onContentClick:function(Y){Y.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(Y){Y.defaultPrevented||Y.currentTarget.tagName==="YTD-COMMENT-INPUT"&&To(Y.target)&&Y.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.E6(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E6(this.hostElement).querySelector("#contenteditable-textarea")},
getTextAreaValue:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!0)},
getTextLength:function(){return this.convertHrefToAtMentionAndImgToEmoji_(this.getEditableTextArea_(),!1).trim().length},
convertHrefToAtMentionAndImgToEmoji_:function(Y,b){Y=ux7(Y,this.emojiManager,b).cloneNode(!0);for(b=Y.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var w=_.tn();_.bo$(w,b);b=w.nextSibling;break;case "DIV":(w=b.lastChild)&&b.nextSibling&&_.Lj(_.tn(),w);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.F1(_.tn(),b);w&&w.nodeName==="BR"&&_.qf(w);w=b;b.hasChildNodes()?(b=b.firstChild,
_.w9r(w)):(b=b.nextSibling,_.qf(w));break;default:b=b.nextSibling}return gtN(Y)},
setTextAreaValue:function(Y){Y||(Y="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof Y==="string"&&(Y={runs:[{text:Y}]});b.text=Y},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();hs=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var Y=this.getEditableTextArea_();Y&&(_.Wq(Y,Y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.zO("HTML_DIR")==="rtl"){var Y=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";Y.setAttribute("dir",b)}},
handleInputEvent_:function(){var Y=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(Y=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(Y,!0);this.updateCharCount_();Y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=Y.scrollHeight>Y.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var Y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:Y})},
onInput_:function(){this.inputEventSupported_=!0;this.handleInputEvent_()},
onKeyUp_:function(){this.inputEventSupported_||this.handleInputEvent_()},
updateCharCount_:function(){this.charCount=this.getTextLength();this.aboveCharLimit_=!!this.charLimit&&this.charCount>this.charLimit},
onPaste_:function(Y){this.isEmojiButtonDisplayed&&(Y.preventDefault(),Y.stopImmediatePropagation(),Y=Y.clipboardData.getData("text/plain"),this.insertText_(Y,!1,!1),_.Ua(this.hostElement,"input"))},
insertText_:function(Y,b,w){b=b===void 0?!1:b;w=w===void 0?!0:w;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&Y){var V=this.getInputRange_().cloneRange();this.emojiManager&&V&&(b&&this.emojiInput.offsetStartOfRangeBy(V,Y.length),this.insertTextWithEmojis_(V,Y,w),J1I(this.getEditableTextArea_().lastChild)||(V=this.getInputRange_().cloneRange()),V&&(this.emojiInput.updateSuggestions(V,Y),this.updateSuggestionOffset_(V)))}},
getSimpleString:_.Tx,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(Y){return Y?"focused":"not-focused"},
computePlaceholderText_:function(Y){return this.getSimpleString(Y)},
computeEditableText_:function(Y){return this.getSimpleString(Y)},
onPrefilledContentDismissed_:function(Y){Y.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(Y,b){Y?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(Y){var b=this.getEditableTextArea_();[].concat(_.Bt(Y.dataTransfer.items)).forEach(function(w){w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(V){b.appendChild(document.createTextNode(V))})});
Y.preventDefault()},
preventDefault_:function(Y){Y.preventDefault()},
onSuggestionInsert_:function(Y){this.insertTextWithEmojis_(Y.detail.range,Y.detail.text)},
onEmojiSuggestionClick_:function(Y){this.emojiInput.insertSuggestion(Y.detail)},
updateSuggestionOffset_:function(Y){if(this.emojiInput&&_.E6(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,w=Y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-w)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;Y=Y.getBoundingClientRect().left-b;_.E6(this.emojiInput).querySelector("#dropdown").style.marginLeft=Y+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.WO("yt-post"));return this.localStorage}});var xq=function(){var Y=_.F.apply(this,arguments)||this;Y.currentCommentOptionIndex=0;Y.isEmojiPickerDisplayed=!1;Y.emojiManager=_.Wz;Y.isUgcEmpty=!1;Y.userGeneratedCommentChangedHandler=function(){_.Ua(Y.hostElement,"ytd-pdg-user-generated-comment-changed");Y.isEmojiYtdCommentInputEnabled&&(Y.isUgcEmpty=!Y.ytdCommentInputEl.getTextAreaValue())};
Y.pasteHandler=function(b){b.preventDefault();b.stopImmediatePropagation();var w;if(b=(w=b.clipboardData)==null?void 0:w.getData("text/plain"))w=document.getSelection().getRangeAt(0),w.collapsed||w.deleteContents(),b=document.createTextNode(b),w.insertNode(b),w.selectNodeContents(b),w.collapse(!1),b=window.getSelection(),b.removeAllRanges(),b.addRange(w)};
Y.onDocumentClick=function(b){if(Y.isEmojiPickerDisplayed){var w,V,H;!(b.target instanceof Node)||(w=b.composedPath())!=null&&w.includes(Y.editableTextEl)||(V=b.composedPath())!=null&&V.includes(Y.emojiButtonEl)||(H=b.composedPath())!=null&&H.includes(Y.emojiPickerEl)||(Y.isEmojiPickerDisplayed=!1)}};
return Y};
_.P(xq,_.F);_.g=xq.prototype;_.g.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.g.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.g.detached=function(){var Y;(Y=this.contentEl)==null||Y.removeEventListener("input",this.userGeneratedCommentChangedHandler);var b;(b=this.contentEl)==null||b.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.g.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.g.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var Y;this.contentEl.textContent=this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.g.reloadEmojis=function(){this.emojiPickerEl&&_.v(this.emojiPicker,_.Q_5)&&this.emojiPickerEl.updateEmojiCategories()};
_.g.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.m_(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.g.handleBackgroundColorStyling=function(){var Y;if((Y=this.currentCommentOption)==null?0:Y.commentBackgroundColorArgb){var b;_.m_(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.KX((b=this.currentCommentOption)==null?void 0:b.commentBackgroundColorArgb)})}else _.m_(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.g.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var Y;(Y=this.contentEl)==null||Y.focus()}};
_.g.onEditButtonClick=function(Y){var b=document.getSelection();b&&this.contentEl&&(Y.stopPropagation(),Y.preventDefault(),b.selectAllChildren(this.contentEl),b.collapseToEnd())};
_.g.onContentDrop=function(Y){var b=this;if(Y.dataTransfer){Y=_.N(Y.dataTransfer.items);for(var w=Y.next();!w.done;w=Y.next())w=w.value,w.kind==="string"&&w.type.match("^text/plain")&&w.getAsString(function(V){var H;(H=b.contentEl)==null||H.appendChild(document.createTextNode(V))})}};
_.g.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.g.getUserGeneratedCommentText=function(){var Y,b=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(Y=this.contentEl)==null?void 0:Y.textContent;return b?b.trim():""};
_.g.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.g.onEmojiSelect=function(Y){this.ytdCommentInputEl.onEmojiSelect(Y)};
_.up.Object.defineProperties(xq.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.commentDialog)}},
title:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.title)}},
channelName:{configurable:!0,enumerable:!0,get:function(){return this.rendererBehavior.getSimpleString(this.data.authorText)}},
shouldShowPaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.currentCommentOption)==null||!Y.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if(_.v((Y=this.currentCommentOption)==null?void 0:Y.chipRenderer,_.dbI)){var b;return _.v((b=this.currentCommentOption)==null?void 0:b.chipRenderer,_.dbI)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var Y,b;return((Y=this.data)==null?0:Y.commentOptionRenderers)?_.v((b=this.data)==null?void 0:b.commentOptionRenderers[this.superThanksSelectedTierEntity.index],RzX):void 0}var w,V;return((w=this.data)==null?0:w.commentOptionRenderers)?_.v((V=this.data)==null?void 0:V.commentOptionRenderers[this.currentCommentOptionIndex],RzX):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var Y;return this.rendererBehavior.getSimpleString((Y=this.data)==null?void 0:Y.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.commentDialog,_.IX5))==null?void 0:b.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.commentDialog,_.IX5))==null?void 0:b.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=_.v((Y=this.data)==null?void 0:Y.commentDialog,_.IX5))==null?void 0:b.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(b=_.v((Y=this.data)==null?void 0:Y.commentDialog,_.IX5))==null?void 0:b.emojiPicker;if(!_.v(w,_.Q_5)||!_.v(w,_.Q_5).categories)return!1;Y=function(f){return f.emojiPickerCategoryRenderer?f.emojiPickerCategoryRenderer.emojiIds&&f.emojiPickerCategoryRenderer.emojiIds.length>0:f.emojiPickerUpsellCategoryRenderer?f.emojiPickerUpsellCategoryRenderer.emojis&&f.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var V,H;return((V=_.v(w,_.Q_5))==null?0:(H=V.categories)==null?0:H.find(Y))?!0:!1}}});
xq.prototype.onEmojiSelect=xq.prototype.onEmojiSelect;xq.prototype.dataChanged=xq.prototype.dataChanged;xq.prototype.currentCommentOptionChanged=xq.prototype.currentCommentOptionChanged;_.z([_.n(_.FX),_.K("design:type",Object)],xq.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xq.prototype,"rendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],xq.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.xZ("#content-dom-if"),_.K("design:type",_.tU)],xq.prototype,"contentDomIfEl",void 0);_.z([_.xZ("#content-no-emojis"),_.K("design:type",HTMLElement)],xq.prototype,"contentEl",void 0);_.z([_.xZ("#container"),_.K("design:type",HTMLElement)],xq.prototype,"containerEl",void 0);_.z([_.xZ("#comment-chip-container"),_.K("design:type",HTMLElement)],xq.prototype,"paidCommentChipContainerEl",void 0);_.z([_.xZ("#text-input"),_.K("design:type",HTMLElement)],xq.prototype,"editableTextEl",void 0);
_.z([_.xZ("#emoji-button"),_.K("design:type",HTMLElement)],xq.prototype,"emojiButtonEl",void 0);_.z([_.xZ("#emoji-picker > yt-emoji-picker-renderer"),_.K("design:type",Object)],xq.prototype,"emojiPickerEl",void 0);_.z([_.xZ("#text-input > ytd-comment-input"),_.K("design:type",Object)],xq.prototype,"ytdCommentInputEl",void 0);_.z([_.R(),_.K("design:type",Object)],xq.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],xq.prototype,"currentCommentOptionIndex",void 0);
_.z([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:NhA}),_.K("design:type",Object)],xq.prototype,"superThanksSelectedTierEntity",void 0);_.z([_.R(),_.K("design:type",Object)],xq.prototype,"isEmojiPickerDisplayed",void 0);_.z([_.R(),_.K("design:type",Object)],xq.prototype,"emojiManager",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],xq.prototype,"isUgcEmpty",void 0);
_.z([_.lr("currentCommentOption"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xq.prototype,"currentCommentOptionChanged",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],xq.prototype,"dataChanged",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xq.prototype,"isEmojiYtdCommentInputEnabled",null);
_.z([_.t("data.title"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"title",null);_.z([_.t("data.authorText"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"channelName",null);_.z([_.t("data.commentOptionRenderers","currentCommentOption"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xq.prototype,"shouldShowPaidCommentChipRenderer",null);
_.z([_.t("data.commentOptionRenderers","currentCommentOption"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"paidCommentChipRenderer",null);_.z([_.t("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"currentCommentOption",null);
_.z([_.t("data.defaultCommentText","superThanksSelectedTierEntity"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"commentText",null);_.z([_.t("data.placeholderText"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"placeholderText",null);_.z([_.t("data.commentDialog.commentDialogRenderer.editableText"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"editableText",null);
_.z([_.t("data.commentDialog.commentDialogRenderer.emojiButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"emojiButton",null);_.z([_.t("data.commentDialog.commentDialogRenderer.emojiPicker"),_.K("design:type",Object),_.K("design:paramtypes",[])],xq.prototype,"emojiPicker",null);
_.z([_.t("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],xq.prototype,"isEmojiButtonDisplayed",null);_.z([_.kZ("yt-emoji-select"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],xq.prototype,"onEmojiSelect",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],xq);
_.a(xq,"ytd-pdg-comment-preview-renderer",function(){if(ZeX!==void 0)return ZeX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-comment-preview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-click="onContainerClick" class="style-scope ytd-pdg-comment-preview-renderer">\n  <div id="comment-container" class="style-scope ytd-pdg-comment-preview-renderer">\n    <div id="title-background" class="style-scope ytd-pdg-comment-preview-renderer">\n      <h2 id="comment-title" class="style-scope ytd-pdg-comment-preview-renderer">[[title]]</h2>\n    </div>\n    <div id="comment" class="style-scope ytd-pdg-comment-preview-renderer">\n      <yt-img-shadow id="author-thumbnail" fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-pdg-comment-preview-renderer">\n      </yt-img-shadow>\n      <div id="text" class="style-scope ytd-pdg-comment-preview-renderer">\n        <div id="header" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="channel-name" dir="auto" class="style-scope ytd-pdg-comment-preview-renderer">[[channelName]]</span>\n        </div>\n        <template id="content-dom-if" is="dom-if" if="[[!isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <span id="comment-chip-container" class="style-scope ytd-pdg-comment-preview-renderer">\n            <template is="dom-if" if="[[shouldShowPaidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              <yt-pdg-comment-chip-renderer id="paid-comment-chip-renderer" data="[[paidCommentChipRenderer]]" class="style-scope ytd-pdg-comment-preview-renderer">\n              </yt-pdg-comment-chip-renderer>\n            </template>\n          </span>\n          <span id="content-no-emojis" on-drop="onContentDrop" contenteditable="true" placeholder$="[[placeholderText]]" class="style-scope ytd-pdg-comment-preview-renderer">[[commentText]]</span>\n        </template>\n        <template is="dom-if" if="[[isEmojiYtdCommentInputEnabled]]" restamp="" class="style-scope ytd-pdg-comment-preview-renderer">\n          <div id="content-emojis" class="style-scope ytd-pdg-comment-preview-renderer">\n            <div id="text-input" class="style-scope ytd-pdg-comment-preview-renderer">\n              <ytd-comment-input comment-chip="[[paidCommentChipRenderer]]" editable-text="[[editableText]]" hide-underline="" is-emoji-button-displayed="[[isEmojiButtonDisplayed]]" is-emoji-picker-displayed="[[isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-comment-input>\n            </div>\n          </div>\n        </template>\n      </div>\n      <div id="emoji-input" class="style-scope ytd-pdg-comment-preview-renderer">\n        <template is="dom-if" if="[[isEmojiButtonDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n          <ytd-button-renderer id="emoji-button" data="[[emojiButton.buttonRenderer]]" on-click="onEmojiButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n        </template>\n      </div>\n    </div>\n  </div>\n  <ytd-button-renderer data="[[data.editButton.buttonRenderer]]" hidden$="[[!data.editButton.buttonRenderer]]" on-click="onEditButtonClick" class="style-scope ytd-pdg-comment-preview-renderer"></ytd-button-renderer>\n</div>\n<div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-pdg-comment-preview-renderer">\n  <span id="emoji-picker" class="style-scope ytd-pdg-comment-preview-renderer">\n  </span>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ZeX=Y},{mode:2});var ngb;var q3=function(){var Y=_.F.apply(this,arguments)||this;Y.selected=!1;return Y};
_.P(q3,_.F);_.g=q3.prototype;_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.g.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.g.dataChanged=function(){this.data&&(_.cX(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.m_(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.KX(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.KX(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.g.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.g.onClick=function(){this.logClick()};
_.g.onKeyboardSelect=function(){_.Ua(this.hostElement,"tap");this.onClick()};
_.g.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
q3.prototype.onClick=q3.prototype.onClick;q3.prototype.selectedChanged=q3.prototype.selectedChanged;q3.prototype.dataChanged=q3.prototype.dataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],q3.prototype,"componentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.ni),_.K("design:type",Object)],q3.prototype,"ironA11yKeysBehavior",void 0);
_.z([_.n(_.CV),_.K("design:type",Object)],q3.prototype,"ironSelectableBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],q3.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],q3.prototype,"shownThumbnail",void 0);_.z([_.R(),_.K("design:type",Object)],q3.prototype,"basePriceText",void 0);_.z([_.R(),_.K("design:type",Object)],q3.prototype,"purchaseCommand",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],q3.prototype,"selected",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q3.prototype,"dataChanged",null);_.z([_.lr("selected"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q3.prototype,"selectedChanged",null);_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],q3.prototype,"onClick",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],q3);
_.a(q3,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(ngb!==void 0)return ngb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-super-vod-selectable-item-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<span id="price" class="style-scope ytd-pdg-super-vod-selectable-item-button-renderer">[[getSimpleString(data.basePriceText)]]</span>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ngb=Y},{mode:1});var sh=function(){var Y=_.F.apply(this,arguments)||this;Y.selectedItemIndex=0;Y.buyButtonDisabled=!1;return Y};
_.P(sh,_.F);_.g=sh.prototype;
_.g.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]]"}}}}}};
_.g.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var Y;var b=(Y=_.v(this.data.colorSlider,tcO))==null?void 0:Y.notches[this.selectedItemIndex].purchaseCommand}else{var w;b=(w=_.v(this.data.selectableItemButtons[this.selectedItemIndex],Fyb))==null?void 0:w.purchaseCommand}if(b){Y=_.v(b,_.mPd);Y.productData||(Y.productData={});var V;Y.productData={pdgData:{commentMessageText:(V=this.commentPreviewRenderer)==null?void 0:V.getUserGeneratedCommentText()}};
_.Ua(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(b)}}};
_.g.dataChanged=function(){if(this.data){_.Wz.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.CwK(_.Wz,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Wz.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var Y;this.buyButtonDisabled=!((Y=_.v(this.data.commentPreview,dMg))==null||!Y.placeholderText);this.updatePriceSelectorStatus();var b;if((b=this.data)==null?0:b.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;Y=[];this.data.preloadImages&&(Y=this.data.preloadImages);
Y=Y.map(function(w){return _.NR(w.thumbnails,1920)});
Y=_.N(Y);for(b=Y.next();!b.done;b=Y.next())(b=b.value)&&_.eFL(b).thenCatch(function(){_.Sk(Error("nl"))})}};
_.g.superThanksSelectedTierEntityChanged=function(){var Y;(this==null?void 0:(Y=this.superThanksSelectedTierEntity)==null?void 0:Y.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.g.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.g.updatePriceSelectorStatus=function(){this.isColorSlider?(_.E6(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.E6(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.E6(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.E6(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.g.closeBuyFlow=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.g.onUserGeneratedContentChanged=function(){var Y;this.buyButtonDisabled=!((Y=this.commentPreviewRenderer)==null?0:Y.getUserGeneratedCommentText())};
_.g.updateSelectedItemIndexFromBinding=function(Y){this.selectedItemIndex=Y.detail.value};
_.up.Object.defineProperties(sh.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var Y;return!((Y=this.data)==null||!Y.disclaimerText)}}});
sh.prototype.onUserGeneratedContentChanged=sh.prototype.onUserGeneratedContentChanged;sh.prototype.closeBuyFlow=sh.prototype.closeBuyFlow;sh.prototype.selectedItemIndexChanged=sh.prototype.selectedItemIndexChanged;sh.prototype.superThanksSelectedTierEntityChanged=sh.prototype.superThanksSelectedTierEntityChanged;sh.prototype.dataChanged=sh.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],sh.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],sh.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],sh.prototype,"selectedItemIndex",void 0);_.z([_.R(),_.K("design:type",Boolean)],sh.prototype,"isColorSlider",void 0);
_.z([_.R(),_.K("design:type",Object)],sh.prototype,"buyButtonDisabled",void 0);_.z([_.R({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:NhA}),_.K("design:type",Object)],sh.prototype,"superThanksSelectedTierEntity",void 0);_.z([_.xZ("ytd-pdg-comment-preview-renderer"),_.K("design:type",Object)],sh.prototype,"commentPreviewRenderer",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],sh.prototype,"ytdReduxBehavior",void 0);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"dataChanged",null);_.z([_.lr("superThanksSelectedTierEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"superThanksSelectedTierEntityChanged",null);_.z([_.lr("selectedItemIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"selectedItemIndexChanged",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"closeBuyFlow",null);_.z([_.kZ("ytd-pdg-user-generated-comment-changed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sh.prototype,"onUserGeneratedContentChanged",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],sh.prototype,"isDisclaimerTextShown",null);
_.z([_.S({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],sh);
_.a(sh,"yt-super-vod-buy-flow-content-renderer",function(){if(vgX!==void 0)return vgX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-super-vod-buy-flow-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string text="[[data.description]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><div id="comment-preview" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><div id="slider" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><iron-selector id="selectable-items" role="radiogroup" selected="[[selectedItemIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedItemIndexFromBinding" class="style-scope yt-super-vod-buy-flow-content-renderer"></iron-selector><div id="footer" class="style-scope yt-super-vod-buy-flow-content-renderer"><div id="cancel-button" class="style-scope yt-super-vod-buy-flow-content-renderer"></div><yt-formatted-string id="disclaimer-text" hidden="[[!isDisclaimerTextShown]]" text="[[data.disclaimerText]]" class="style-scope yt-super-vod-buy-flow-content-renderer"></yt-formatted-string><ytd-button-renderer id="buy-button" data="[[data.buyButton.buttonRenderer]]" disabled="[[buyButtonDisabled]]" on-click="onBuyButtonClick" class="style-scope yt-super-vod-buy-flow-content-renderer"></ytd-button-renderer></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return vgX=Y},{mode:1});var MtA;var QT=function(){var Y=_.F.apply(this,arguments)||this;Y.lottieAnimationRef={};return Y};
_.P(QT,_.F);_.g=QT.prototype;_.g.created=function(){_.Ci.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Io(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.g.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Ua(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.g.detached=function(){this.autoCloseJobId&&_.Lb.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Io(this,this.onPopupIronOverlayOpened))};
_.g.dataChanged=function(){var Y=this;this.data&&this.data.autoCloseDelay&&(_.Xx(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Xl(_.Lb,function(){Y.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.m_(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.g.onDOMLoadedLottie=function(){var Y=this,b,w,V=Number((b=this.data)==null?void 0:(w=b.autoCloseDelay)==null?void 0:w.seconds)||0;this.fadeOutJobId=_.Xl(_.Lb,function(){Y.lottiePlayerEl.classList.add("fadeout")},(V-.25)*1E3);
this.autoCloseJobId=_.Xl(_.Lb,function(){Y.closePopup()},V*1E3)};
_.g.openPopup=function(){this.ironOverlayBehavior.open()};
_.g.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Xx(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.IP(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.fH().resolve(_.Nn).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Lb.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Lb.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.g.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var Y,b;(Y=this.lottieAnimationRef)==null||(b=Y.lottieEl)==null||b.destroy();Y=this.data.lottie;var w,V;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:Y.url+"_"+Math.random(),path:Y.url,autoplay:!0,loop:(V=(w=Y.settings)==null?void 0:w.loop)!=null?V:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.up.Object.defineProperties(QT.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var Y,b;return!!((Y=this.data)==null?0:(b=Y.lottie)==null?0:b.url)}}});
QT.prototype.maybeInitializeLottie=QT.prototype.maybeInitializeLottie;QT.prototype.dataChanged=QT.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],QT.prototype,"rendererBehavior",void 0);_.z([_.n(_.TQ),_.K("design:type",Object)],QT.prototype,"ironOverlayBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],QT.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],QT.prototype,"lottiePlayerProps",void 0);
_.z([_.R(),_.K("design:type",Object)],QT.prototype,"lottieAnimationRef",void 0);_.z([_.xZ("ytd-lottie-player"),_.K("design:type",HTMLElement)],QT.prototype,"lottiePlayerEl",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QT.prototype,"dataChanged",null);_.z([_.t("data"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],QT.prototype,"hasLottieAnimation",null);
_.z([_.lr("data.lottie.url"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QT.prototype,"maybeInitializeLottie",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],QT);
_.a(QT,"ytd-desktop-image-overlay-renderer",function(){if(MtA!==void 0)return MtA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return MtA=Y},{mode:1});var e6F;var vk=function(){return _.F.apply(this,arguments)||this};
_.P(vk,_.F);_.g=vk.prototype;_.g.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"}}}}};
_.g.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",_.Io(this,this.closePopup))};
_.g.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Io(this,this.closePopup))};
_.g.dataChanged=function(){_.De(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.v(this.data.header,OiQ)&&(this.hasBackgroundBanner=!!_.v(this.data.header,OiQ).backgroundBanner)};
_.g.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Io(this,this.closePopup))};
_.g.closePopup=function(){this.data&&this.data.onCloseCommand&&_.oP(this.hostElement,[this.data.onCloseCommand])};
vk.prototype.handleBuyflowSelectionSubmitted=vk.prototype.handleBuyflowSelectionSubmitted;vk.prototype.dataChanged=vk.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vk.prototype,"data",void 0);
_.z([_.R({value:!0,reflectToAttribute:!0}),_.K("design:type",Boolean)],vk.prototype,"hasBackgroundBanner",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vk.prototype,"dataChanged",null);_.z([_.kZ("yt-pdg-buy-flow-selection-submitted"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vk.prototype,"handleBuyflowSelectionSubmitted",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],vk);
_.a(vk,"ytd-pdg-buy-flow-renderer",function(){if(e6F!==void 0)return e6F;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-pdg-buy-flow-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-pdg-buy-flow-renderer"></div>\n<div id="content" class="style-scope ytd-pdg-buy-flow-renderer"></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return e6F=Y},{mode:1});var p7s;var Pk=function(){var Y=_.F.apply(this,arguments)||this;Y.isOpen=!1;Y.isPlaylistCreated=!1;return Y};
_.P(Pk,_.F);_.g=Pk.prototype;_.g.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.g.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Ua(this.hostElement,"yt-refit")};
_.g.onCreateTap=function(){var Y=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.oP(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(b,w){if(!_.q("killswitch_ep_in_create_playlist_response")&&(w==null?0:w.actions))for(b=_.N(w.actions),w=b.next();!w.done;w=b.next())w=w.value,_.v(w,_.SZ)&&Y.ytComponentBehavior.resolveCommand(w)}}]),this.isPlaylistCreated=!0)};
_.g.onKeydown=function(Y){if(Y.keyCode===13)this.onCreateTap()};
_.g.onServiceRequestCompleted=function(Y){Y.stopPropagation();_.Xx(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.g.computePrivacyBadge=function(Y){return Y?[{metadataBadgeRenderer:Y}]:[]};
Pk.prototype.onServiceRequestCompleted=Pk.prototype.onServiceRequestCompleted;Pk.prototype.onKeydown=Pk.prototype.onKeydown;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Pk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Pk.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Pk.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Pk.prototype,"isOpen",void 0);
_.z([_.R(),_.K("design:type",Object)],Pk.prototype,"isPlaylistCreated",void 0);_.z([_.R({value:{REQUIRED_LABEL:_.sa("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.sa("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.K("design:type",Object)],Pk.prototype,"addToStrings",void 0);_.z([_.R({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.K("design:type",Array)],Pk.prototype,"privacyBadge",void 0);
_.z([_.xZ("#privacy-input"),_.K("design:type",Object)],Pk.prototype,"privacyInput",void 0);_.z([_.xZ("#name-input"),_.K("design:type",Object)],Pk.prototype,"nameInput",void 0);_.z([_.kZ("keydown"),_.K("design:type",Function),_.K("design:paramtypes",[KeyboardEvent]),_.K("design:returntype")],Pk.prototype,"onKeydown",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Pk.prototype,"onServiceRequestCompleted",null);
_.z([_.S({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Pk);
_.a(Pk,"ytd-add-to-playlist-create-renderer",function(){if(p7s!==void 0)return p7s;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-create-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-compact-link-renderer data="[[data.openCreateLink.compactLinkRenderer]]" hidden="[[isOpen]]" on-tap="onOpenTap" class="style-scope ytd-add-to-playlist-create-renderer">\n</ytd-compact-link-renderer>\n<div id="create-playlist-form" hidden="[[!isOpen]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  <yt-text-input-form-field-renderer id="name-input" data="[[data.nameInput.textInputFormFieldRenderer]]" required-error-message="[[addToStrings.REQUIRED_LABEL]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </yt-text-input-form-field-renderer>\n  <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!data.privacyInput.metadataBadgeRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-badge-supported-renderer>\n  <ytd-dropdown-renderer id="privacy-input" data="[[data.privacyInput.dropdownRenderer]]" hidden="[[!data.privacyInput.dropdownRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-dropdown-renderer>\n  <ytd-button-renderer id="privacy-button" data="[[data.privacyInput.buttonRenderer]]" hidden="[[!data.privacyInput.buttonRenderer]]" class="style-scope ytd-add-to-playlist-create-renderer">\n  </ytd-button-renderer>\n  <div id="actions" class="style-scope ytd-add-to-playlist-create-renderer">\n    <ytd-button-renderer data="[[data.createAction.buttonRenderer]]" on-tap="onCreateTap" class="style-scope ytd-add-to-playlist-create-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return p7s=Y},{mode:1});var OeF;var ttX;var Z_=function(){var Y=_.F.apply(this,arguments)||this;Y.transferState="TRANSFER_STATE_UNKNOWN";return Y};
_.P(Z_,_.F);Z_.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Z_.prototype.onCheckboxChange=function(Y){var b=this;this.data&&_.ir(this,"yt-playlist-checkbox-changed",function(){var w=_.uW(Y).checked?b.data.addToPlaylistServiceEndpoint:b.data.removeFromPlaylistServiceEndpoint;w&&_.fH().resolve(_.Nn).resolveCommand(w,{form:{element:b.hostElement}});_.q("dl_playlist_killswitch")||b.transferState!=="TRANSFER_STATE_UNKNOWN"&&b.transferState!=="TRANSFER_STATE_FAILED"&&b.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:b.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Z_.prototype.computeIconType=function(Y){return Y?"yt-icons:"+Y.toLowerCase():null};
Z_.prototype.dataChanged=Z_.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Z_.prototype,"data",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Z_.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Z_.prototype,"ytComponentBehavior",void 0);_.z([_.xZ("#checkbox"),_.K("design:type",HTMLInputElement)],Z_.prototype,"checkbox",void 0);
_.z([_.R({selector:_.rb,selectorArgs:["data.playlistId"]}),_.K("design:type",String)],Z_.prototype,"transferState",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z_.prototype,"dataChanged",null);_.z([_.S({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Z_);
_.a(Z_,"ytd-playlist-add-to-option-renderer",function(){if(ttX!==void 0)return ttX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-add-to-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[checked_]]" on-change="onCheckboxChange" class="style-scope ytd-playlist-add-to-option-renderer">\n  <div id="checkbox-container" class="style-scope ytd-playlist-add-to-option-renderer">\n    <div id="checkbox-label" class="style-scope ytd-playlist-add-to-option-renderer">\n      <yt-formatted-string id="label" class="checkbox-height style-scope ytd-playlist-add-to-option-renderer" ellipsis-truncate="" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string id="byline" ellipsis-truncate="" link-inherit-color="" text="[[data.shortBylineText]]" class="style-scope ytd-playlist-add-to-option-renderer">\n      </yt-formatted-string>\n    </div>\n    <yt-icon icon="[[computeIconType(data.privacyIcon.iconType)]]" size="18" class="style-scope ytd-playlist-add-to-option-renderer"></yt-icon>\n  </div>\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return ttX=Y},{mode:1});_.gS(f7Q);_.oL(f7Q,"ytd-menu-title-renderer",{propNames:["data"]});var Bk=function(){var Y=_.F.apply(this,arguments)||this;Y.addToStrings={ADD_TO_DROPDOWN_LABEL:_.sa("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};Y.closeButtonAriaLabel=_.sa("SBOX_INAPPROPRIATE_CANCEL");Y.dialog=_.q("desktop_add_to_playlist_renderer_dialog_popup");return Y};
_.P(Bk,_.F);_.g=Bk.prototype;_.g.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"}}}};
_.g.onPopupOpened=function(){_.U6(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.g.onPopupClosed=function(){_.U6(this.playlists,"scrollable",!1)};
_.g.computeAriaLabel=function(){var Y;if(this==null?0:(Y=this.data)==null?0:Y.actions){Y=_.N(this.data.actions);for(var b=Y.next();!b.done;b=Y.next())if(b=b.value,b.menuTitleRenderer)return _.Tx(b.menuTitleRenderer.title)}};
_.g.onTapClose=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.up.Object.defineProperties(Bk.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var Y;if(this==null?0:(Y=this.data)==null?0:Y.actions){Y=_.N(this.data.actions);for(var b=Y.next();!b.done;b=Y.next())if(b=b.value,b.menuTitleRenderer)return b.menuTitleRenderer}return!1}}});
Bk.prototype.onPopupClosed=Bk.prototype.onPopupClosed;Bk.prototype.onPopupOpened=Bk.prototype.onPopupOpened;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],Bk.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Bk.prototype,"ytRendererStamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Bk.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Bk.prototype,"addToStrings",void 0);_.z([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.K("design:type",String)],Bk.prototype,"ariaLabel",void 0);_.z([_.R(),_.K("design:type",String)],Bk.prototype,"closeButtonAriaLabel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Bk.prototype,"dialog",void 0);
_.z([_.xZ("#playlists"),_.K("design:type",HTMLElement)],Bk.prototype,"playlists",void 0);_.z([_.xZ("ytd-add-to-playlist-create-renderer"),_.K("design:type",Object)],Bk.prototype,"createRenderer",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Bk.prototype,"menuTitleRenderer",null);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bk.prototype,"onPopupOpened",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Bk.prototype,"onPopupClosed",null);_.z([_.S({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Bk);
_.a(Bk,"ytd-add-to-playlist-renderer",function(){if(OeF!==void 0)return OeF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-add-to-playlist-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-add-to-playlist-renderer">\n  <template is="dom-if" if="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer">\n    <ytd-menu-title-renderer data="[[menuTitleRenderer]]" class="style-scope ytd-add-to-playlist-renderer"></ytd-menu-title-renderer>\n  </template>\n  <div hidden="[[menuTitleRenderer]]" id="title" class="style-scope ytd-add-to-playlist-renderer">\n    [[addToStrings.ADD_TO_DROPDOWN_LABEL]]\n  </div>\n  <yt-icon-button id="close-button" hidden="[[!dialog]]" label="[[closeButtonAriaLabel]]" on-tap="onTapClose" class="style-scope ytd-add-to-playlist-renderer">\n    <yt-icon icon="close" class="style-scope ytd-add-to-playlist-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="playlists" class="style-scope ytd-add-to-playlist-renderer"></div>\n<div id="actions" class="style-scope ytd-add-to-playlist-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return OeF=Y},{mode:1});var R6Q;var nm=function(){var Y=_.F.apply(this,arguments)||this;Y.isPlaylistEditComplete=!1;Y.isCollabEngagementDisabled=!1;Y.closeButtonAriaLabel=_.sa("SBOX_INAPPROPRIATE_CANCEL");Y.saveButton={title:_.sa("SAVE_PLAYLIST",void 0,"Save"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",state:"BUTTON_VIEW_MODEL_STATE_DISABLED"};Y.onValueChanged=function(){Y.updateSaveButtonState();Y.computeCollabEngagementDisabled()};
return Y};
_.P(nm,_.F);_.g=nm.prototype;_.g.attached=function(){this.JSC$18352_scroller&&(this.JSC$18352_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18352_scroller.attached&&typeof this.JSC$18352_scroller.attached==="function"&&this.JSC$18352_scroller.attached())};
_.g.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.g.onPopupClosed=function(){this.reset()};
_.g.close=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.g.onClickSave=function(){var Y=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var b=[];this.nameInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var w=Number(this.privacyInput.value);isNaN(w)||b.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:w})}this.votingInput.value!==null&&(w=this.votingInput.value)&&b.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:w});if(b.length>0){var V;_.v((V=this.data)==null?void 0:V.updateSettingsEndpoint,_.aU).actions=b;var H;if((H=this.data)==null?0:H.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){Y.close()}}}),this.isPlaylistEditComplete=!0}}};
_.g.computePrivacyBadge=function(Y){return Y?[{metadataBadgeRenderer:Y}]:[]};
_.g.computeEditorData=function(Y){var b,w;return Y==null?void 0:(b=Y.sections)==null?void 0:(w=b[0])==null?void 0:w.playlistSettingsEditorCasualSectionRenderer};
_.g.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.g.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}}}}}};
_.g.computeAriaLabel=function(){var Y,b,w,V=(Y=this.data)==null?void 0:(b=Y.sections)==null?void 0:(w=b[0])==null?void 0:w.playlistSettingsEditorCasualSectionRenderer;return _.Tx(V==null?void 0:V.title)};
_.g.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"}))};
_.g.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.g.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.g.isNameChanged=function(){var Y,b,w;return(((Y=this.editorData)==null?void 0:(b=Y.name)==null?void 0:(w=b.textInputFormFieldRenderer)==null?void 0:w.value)||"")!==(this.nameInput.value||"")};
_.g.isDescriptionChanged=function(){var Y,b,w;return(((Y=this.editorData)==null?void 0:(b=Y.description)==null?void 0:(w=b.textInputFormFieldRenderer)==null?void 0:w.value)||"")!==(this.descriptionInput.value||"")};
_.g.isPrivacyChanged=function(){var Y,b,w,V,H,f,E,U;return((E=(Y=this.editorData)==null?void 0:(b=Y.privacy)==null?void 0:(w=b.dropdownFormFieldRenderer)==null?void 0:(V=w.dropdown)==null?void 0:(H=V.dropdownRenderer)==null?void 0:(f=H.entries)==null?void 0:f.find(function(X){var I;return X==null?void 0:(I=X.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(U=E.privacyDropdownItemRenderer)==null?void 0:U.int32Value)!==this.privacyInput.value};
_.g.isVotingChanged=function(){var Y,b,w,V,H,f,E,U;return((E=(Y=this.editorData)==null?void 0:(b=Y.voting)==null?void 0:(w=b.dropdownFormFieldRenderer)==null?void 0:(V=w.dropdown)==null?void 0:(H=V.dropdownRenderer)==null?void 0:(f=H.entries)==null?void 0:f.find(function(X){var I;return X==null?void 0:(I=X.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(U=E.privacyDropdownItemRenderer)==null?void 0:U.int32Value)!==this.votingInput.value};
nm.prototype.onPopupClosed=nm.prototype.onPopupClosed;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],nm.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],nm.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nm.prototype,"ytRendererStamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],nm.prototype,"data",void 0);_.z([_.R({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.K("design:type",Array)],nm.prototype,"privacyBadge",void 0);_.z([_.R({computed:"computeEditorData(data)"}),_.K("design:type",Object)],nm.prototype,"editorData",void 0);_.z([_.R(),_.K("design:type",Object)],nm.prototype,"isPlaylistEditComplete",void 0);_.z([_.R(),_.K("design:type",Object)],nm.prototype,"isCollabEngagementDisabled",void 0);
_.z([_.R({value:{REQUIRED_LABEL:_.sa("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.sa("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.K("design:type",Object)],nm.prototype,"addToStrings",void 0);_.z([_.R({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.K("design:type",String)],nm.prototype,"ariaLabel",void 0);_.z([_.R(),_.K("design:type",String)],nm.prototype,"closeButtonAriaLabel",void 0);
_.z([_.R(),_.K("design:type",Object)],nm.prototype,"saveButton",void 0);_.z([_.xZ("#name-input"),_.K("design:type",Object)],nm.prototype,"nameInput",void 0);_.z([_.xZ("#description-input"),_.K("design:type",Object)],nm.prototype,"descriptionInput",void 0);_.z([_.xZ("#privacy-input"),_.K("design:type",Object)],nm.prototype,"privacyInput",void 0);_.z([_.xZ("#voting-input"),_.K("design:type",Object)],nm.prototype,"votingInput",void 0);
_.z([_.xZ("#scroller"),_.K("design:type",Object)],nm.prototype,"JSC$18352_scroller",void 0);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nm.prototype,"onPopupClosed",null);_.z([_.R(),_.K("design:type",Object)],nm.prototype,"onValueChanged",void 0);_.z([_.S({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],nm);
_.a(nm,"ytd-playlist-settings-editor-renderer",function(){if(R6Q===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);R6Q=Y}Y=R6Q;return Y},{mode:1});var dsN;_.S9("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var M3=function(){return _.F.apply(this,arguments)||this};
_.P(M3,_.F);_.g=M3.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var Y=this.get("data.nextButton.buttonRenderer.navigationEndpoint");Y&&(this.nextNavigationEndpoint=Y,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.g.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var Y={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",Y)}}};
_.g.onPopupOpened=function(Y){Y.detail!==this&&Y.detail!==this.hostElement||!_.q("enable_premium_voluntary_pause")||_.Xx(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.g.onNextButtonTap=function(){var Y=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);Y&&this.ytdOpenPopupBehavior.openPopup(Y)};
_.g.updateSelectedResponseIndexFromBinding=function(Y){this.selectedResponseIndex=Y.detail.value};
M3.prototype.onPopupOpened=M3.prototype.onPopupOpened;M3.prototype.onSelectedResponseIndexChange=M3.prototype.onSelectedResponseIndexChange;M3.prototype.dataChanged=M3.prototype.dataChanged;_.z([_.n(_.J0),_.K("design:type",Object)],M3.prototype,"ytdOpenPopupBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],M3.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],M3.prototype,"selectedResponseIndex",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],M3.prototype,"dataChanged",null);_.z([_.lr("selectedResponseIndex"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],M3.prototype,"onSelectedResponseIndexChange",null);
_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],M3.prototype,"onPopupOpened",null);_.z([_.S({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],M3);
_.a(M3,"ytd-red-cancel-survey-renderer",function(){if(dsN!==void 0)return dsN;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-red-cancel-survey-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-red-cancel-survey-renderer">\n  <div id="question" class="style-scope ytd-red-cancel-survey-renderer">[[getSimpleString(data.question)]]</div>\n  <tp-yt-paper-radio-group id="responses" selected="[[selectedResponseIndex]]" on-selected-changed="updateSelectedResponseIndexFromBinding" class="style-scope ytd-red-cancel-survey-renderer">\n    <template is="dom-repeat" items="[[data.singleOptions.styles]]" class="style-scope ytd-red-cancel-survey-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" class="style-scope ytd-red-cancel-survey-renderer">\n        [[getSimpleString(item.radioButtonSurveyOptionRenderer.option)]]\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n</div>\n<div class="buttons style-scope ytd-red-cancel-survey-renderer">\n  <div id="dismiss-button" class="style-scope ytd-red-cancel-survey-renderer"></div>\n  <div id="next-button" on-click="onNextButtonTap" class="style-scope ytd-red-cancel-survey-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return dsN=Y},{mode:1});var FLX;var eY=function(){var Y=_.F.apply(this,arguments)||this;Y.closeButtonAriaLabel=_.sa("SBOX_INAPPROPRIATE_CANCEL");return Y};
_.P(eY,_.F);eY.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
eY.prototype.onClickClose=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],eY.prototype,"rendererStamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],eY.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],eY.prototype,"closeButtonAriaLabel",void 0);_.z([_.S({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],eY);
_.a(eY,"ytd-search-filter-options-dialog-renderer",function(){if(FLX!==void 0)return FLX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-filter-options-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-search-filter-options-dialog-renderer">\n  <div id="title" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onClickClose" class="style-scope ytd-search-filter-options-dialog-renderer">\n    <yt-icon icon="close" class="style-scope ytd-search-filter-options-dialog-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="options" class="style-scope ytd-search-filter-options-dialog-renderer"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return FLX=Y},{mode:1});var LLs;var crb=function(){return function(Y){Y=Y.availabilityType;return Y===void 0||Y==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||Y==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var pm=function(){var Y=_.F.apply(this,arguments)||this;Y.qualityOptions=[];Y.upsellOptions=[];Y.showUpsellSection=!1;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.rememberSettingsChecked=!1;return Y};
_.P(pm,_.F);_.g=pm.prototype;_.g.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}}}}};
_.g.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.g.updateQualityOptions=function(){if(this.formats===void 0)_.Xx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var Y=[],b=[];this.showUpsellSection=!1;for(var w=_.N(this.formats),V=w.next();!V.done;V=w.next())(V=V.value)&&(V.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?b.push(V):Y.push(V));Y.length&&(this.qualityOptions=EtN(Y));b.length&&(this.showUpsellSection=!0,this.upsellOptions=EtN(b))}};
_.g.updateRememberString=function(){if(this.downloadQualityPickerEntity)var Y=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var b;Y=(b=this.data)==null?void 0:b.premiumRememberSettingString}else{var w;Y=(w=this.data)==null?void 0:w.rememberSettingString}Y=Y===void 0?_.sa("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):Y;this.rememberSettingsCheckboxRenderer={title:_.NV(Y),disabled:!1}};
_.g.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.up.Object.defineProperties(pm.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var Y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(Y=this.data)==null?void 0:Y.qualityFormats}}});
pm.prototype.updateRememberString=pm.prototype.updateRememberString;pm.prototype.updateQualityOptions=pm.prototype.updateQualityOptions;pm.prototype.dataChanged=pm.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],pm.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pm.prototype,"data",void 0);
_.z([_.n(_.FX),_.K("design:type",Object)],pm.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Boolean)],pm.prototype,"selectedUpsellQuality",void 0);_.z([_.R({computed:"computeIcon_(data.premiumIcon)",value:""}),_.K("design:type",String)],pm.prototype,"premiumIcon",void 0);_.z([_.R({selector:VIN,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.K("design:type",Object)],pm.prototype,"downloadQualityPickerEntity",void 0);
_.z([_.R(),_.K("design:type",Array)],pm.prototype,"qualityOptions",void 0);_.z([_.R(),_.K("design:type",Array)],pm.prototype,"upsellOptions",void 0);_.z([_.R(),_.K("design:type",Object)],pm.prototype,"showUpsellSection",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],pm.prototype,"darkerDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],pm.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.z([_.xZ("#remember-settings"),_.K("design:type",HTMLInputElement)],pm.prototype,"rememberSettingsCheckbox",void 0);_.z([_.R(),_.K("design:type",Object)],pm.prototype,"rememberSettingsChecked",void 0);_.z([_.R(),_.K("design:type",Function)],pm.prototype,"onRememberSettingsCheckedChanged",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pm.prototype,"dataChanged",null);
_.z([_.lr("downloadQualityPickerEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pm.prototype,"updateQualityOptions",null);_.z([_.lr("selectedUpsellQuality"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],pm.prototype,"updateRememberString",null);_.z([_.S({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],pm);
_.a(pm,"ytd-download-quality-selector-content",function(){if(LLs!==void 0)return LLs;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="quality-options" class="style-scope ytd-download-quality-selector-content"></div>\n<div id="upsell-section" hidden="[[!showUpsellSection]]" class="style-scope ytd-download-quality-selector-content">\n    <yt-icon id="premium-icon" icon="[[premiumIcon]]" class="style-scope ytd-download-quality-selector-content"></yt-icon>\n    <yt-formatted-string id="premium-description" text="[[data.premiumDescription]]" class="style-scope ytd-download-quality-selector-content"></yt-formatted-string>\n    <div id="upsell-options" class="style-scope ytd-download-quality-selector-content"></div>\n</div>\n<ytd-settings-checkbox-renderer id="remember-settings" data="[[rememberSettingsCheckboxRenderer]]" on-click="rememberSettingsCheckedChanged" class="style-scope ytd-download-quality-selector-content">\n</ytd-settings-checkbox-renderer>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return LLs=Y},{mode:1});var SBs;var Oh=function(){var Y=_.F.apply(this,arguments)||this;Y.selectedUpsellQuality=!1;Y.qualityOptions=[];Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.useUpsellDismissAlternate=_.q("use_not_now_dl_upsell_dismiss_cta");Y.shouldShowAlternateUpsellDimiss=!1;Y.rememberSettings=!1;Y.rememberSettingsChecked=!1;Y.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};Y.rememberSettingsCheckedChanged=function(b){Y.rememberSettingsChecked=b};
return Y};
_.P(Oh,_.F);_.g=Oh.prototype;
_.g.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NV(_.sa("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.NV(_.sa("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.NV(_.sa("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.NV(_.sa("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.g.updateQualityOptions=function(){this.formats===void 0?_.Xx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=EtN(this.formats)};
_.g.onQualityOptionsSelect=function(Y){if(this.qualityOptions&&Y){Y!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var b=_.N(this.qualityOptions.entries()),w=b.next();!w.done;w=
b.next()){w=_.N(w.value);var V=w.next().value;w=w.next().value;var H=void 0,f=void 0;if(((H=w)==null?void 0:(f=H.settingsRadioOptionRenderer)==null?void 0:f.id)===Y){this.selectedQualityIndex=V;Y=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((Y=this.formats[V])==null?void 0:Y.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.g.onClickSubmit=function(){var Y;if((Y=this.downloadButtonRenderer)==null||!Y.isDisabled){var b,w;Y=(w=(b=this.data)==null?void 0:b.onSubmitEndpoint)!=null?w:{};var V,H;if(this.formats&&(((V=_.v(Y,_.kh))==null?0:V.videoId)||((H=_.v(Y,_.lX))==null?0:H.playlistId))){var f,E,U,X,I,k;b={formatType:(X=(f=this.formats)==null?void 0:(E=f[(U=this.selectedQualityIndex)!=null?U:0])==null?void 0:E.format)!=null?X:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(I=this.getOfflineEndpoint(Y))==null?void 0:(k=I.actionParams)==null?void 0:k.settingsAction)};this.getOfflineEndpoint(Y).actionParams=b;this.ytComponentBehavior.resolveCommand(Y)}_.Xx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.g.onClickUpsell=function(){var Y;if((Y=this.upsellButtonRenderer)==null||!Y.isDisabled){var b,w;Y=(w=(b=this.data)==null?void 0:b.upsellEndpoint)!=null?w:{};this.ytComponentBehavior.resolveCommand(Y);_.Xx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);b="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var V,H,f,E;b=(E=(V=this.formats)==null?void 0:(H=V[(f=this.selectedQualityIndex)!=null?f:0])==null?void 0:H.format)!=null?E:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:b}})}};
_.g.onClickClose=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.g.getOfflineSettingsAction=function(Y,b){return Y?b===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":b:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.g.getOfflineEndpoint=function(Y){return _.v(Y,_.kh)?_.v(Y,_.kh):_.v(Y,_.lX)};
_.up.Object.defineProperties(Oh.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.NV(_.sa("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var Y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(Y=this.data)==null?void 0:Y.qualityFormats}}});
Oh.prototype.updateQualityOptions=Oh.prototype.updateQualityOptions;Oh.prototype.dataChanged=Oh.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Oh.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Number)],Oh.prototype,"selectedQualityIndex",void 0);_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"selectedUpsellQuality",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Oh.prototype,"ytdReduxBehavior",void 0);
_.z([_.R({selector:VIN,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.K("design:type",Object)],Oh.prototype,"downloadQualityPickerEntity",void 0);_.z([_.R(),_.K("design:type",Array)],Oh.prototype,"qualityOptions",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Oh.prototype,"darkerDarkTheme",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Oh.prototype,"useUpsellDismissAlternate",void 0);
_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"downloadButtonRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"upsellButtonRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"cancelButtonRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"upsellCancelButtonRenderer",void 0);_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"rememberSettings",void 0);
_.z([_.R(),_.K("design:type",Object)],Oh.prototype,"rememberSettingsChecked",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Oh.prototype,"dataChanged",null);_.z([_.lr("downloadQualityPickerEntity"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Oh.prototype,"updateQualityOptions",null);_.z([_.S({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Oh);
_.a(Oh,"ytd-download-quality-selector-renderer",function(){if(SBs!==void 0)return SBs;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-download-quality-selector-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="title" text="[[titleText]]" class="style-scope ytd-download-quality-selector-renderer"></yt-formatted-string>\n<ytd-download-quality-selector-content data="[[data]]" remember-settings-checked="[[rememberSettingsChecked]]" selected-upsell-quality="[[selectedUpsellQuality]]" on-remember-settings-checked-changed="[[rememberSettingsCheckedChanged]]" class="style-scope ytd-download-quality-selector-renderer">\n</ytd-download-quality-selector-content>\n<div class="buttons style-scope ytd-download-quality-selector-renderer">\n  <yt-button-renderer id="cancel-button" data="[[cancelButtonRenderer]]" dialog-dismiss="" hidden="[[shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-cancel-button" data="[[upsellCancelButtonRenderer]]" dialog-dismiss="" hidden="[[!shouldShowAlternateUpsellDimiss]]" on-click="onClickClose" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="download-button" data="[[downloadButtonRenderer]]" hidden="[[selectedUpsellQuality]]" on-click="onClickSubmit" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="upsell-button" data="[[upsellButtonRenderer]]" hidden="[[!selectedUpsellQuality]]" on-click="onClickUpsell" class="style-scope ytd-download-quality-selector-renderer">\n  </yt-button-renderer>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return SBs=Y},{mode:1});var auX;var ts=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(ts,_.F);ts.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ts.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"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ts.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ts.prototype,"darkerDarkTheme",void 0);_.z([_.R({computed:"computeIcon_(data.infoIcon)"}),_.K("design:type",Object)],ts.prototype,"infoIcon",void 0);
_.z([_.R({computed:"computeIcon_(data.warningIcon)"}),_.K("design:type",Object)],ts.prototype,"warningIcon",void 0);_.z([_.S({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],ts);
_.a(ts,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(auX!==void 0)return auX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="source" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="source-title" text="[[data.sourceTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-subtitle" text="[[data.sourceSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="source-account-name" text="[[data.sourceAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="source-account-email" text="[[data.sourceAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n    <div id="target" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <yt-formatted-string id="target-title" text="[[data.targetTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      <yt-formatted-string id="target-subtitle" text="[[data.targetSubtitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="target-account" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-img-shadow hidden="[[!data.sourceAccountThumbnail]]" thumbnail="[[data.sourceAccountThumbnail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-img-shadow>\n        <div id="target-account-info" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="target-account-name" text="[[data.targetAccountName]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="target-account-email" text="[[data.targetAccountEmail]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="sournce-channel-details" text="[[data.sourceChannelDetails]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="info-warning" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      <div id="info-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!infoIcon]]" hidden="[[!infoIcon]]" icon="[[infoIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="info-title-text" text="[[data.infoTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="info-text" split-lines="" text="[[data.infoText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <div id="warning-title" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        <yt-icon disable-upgrade$="[[!warningIcon]]" hidden="[[!warningIcon]]" icon="[[warningIcon]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-icon>\n        <yt-formatted-string id="warning-title-text" text="[[data.warningTitle]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <yt-formatted-string id="warning-text" split-lines="" text="[[data.warningText]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="next-button" class="style-scope ytd-cross-account-transfer-channel-confirm-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return auX=Y},{mode:1});var rHO;var R0=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(R0,_.F);R0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
R0.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"}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],R0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],R0.prototype,"darkerDarkTheme",void 0);_.z([_.S({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],R0);
_.a(R0,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(rHO!==void 0)return rHO;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-overview-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="stepper" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></yt-formatted-string>\n    <div id="messages" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-cross-account-transfer-channel-overview-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-overview-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n    <div id="signin-button" class="style-scope ytd-cross-account-transfer-channel-overview-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return rHO=Y},{mode:1});var z6X;var ds=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(ds,_.F);ds.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ds.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"}}}}};
ds.prototype.onServiceRequestSentOrCompleted=function(Y,b){b&&b.actions&&b.actions.length>0&&_.Xx(this.hostElement,"yt-close-popup-action",[this.is])};
ds.prototype.onServiceRequestSentOrCompleted=ds.prototype.onServiceRequestSentOrCompleted;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],ds.prototype,"darkerDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],ds.prototype,"data",void 0);
_.z([_.kZ("yt-service-request-completed"),_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],ds.prototype,"onServiceRequestSentOrCompleted",null);_.z([_.S({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],ds);
_.a(ds,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(z6X!==void 0)return z6X;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-cross-account-transfer-channel-tnc-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n  <div id="header" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <yt-formatted-string id="agree-title" text="[[data.agreeTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="agree-text" split-lines="" text="[[data.agreeText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-title" text="[[data.understandTitle]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n    <yt-formatted-string id="understand-text" split-lines="" text="[[data.understandText]]" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="buttons" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer">\n    <div id="cancel-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n    <div id="confirm-button" class="style-scope ytd-cross-account-transfer-channel-tnc-dialog-renderer"></div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return z6X=Y},{mode:1});var WLt;var Fr=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.submitButtonDisabled=!0;return Y};
_.P(Fr,_.F);_.g=Fr.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.g.onDataChanged=function(){var Y,b,w;if(((Y=this.data)==null?void 0:(b=Y.confirmButton)==null?void 0:(w=b.buttonRenderer)==null?void 0:w.isDisabled)!==void 0){var V,H,f;this.submitButtonDisabled=(V=this.data)==null?void 0:(H=V.confirmButton)==null?void 0:(f=H.buttonRenderer)==null?void 0:f.isDisabled}};
_.g.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.g.updateSubmitButtonDisabledFromBinding=function(Y){this.submitButtonDisabled=Y.detail.value};
_.g.updateSubmitButtonDisabledFromConfirmCheckbox=function(Y){this.submitButtonDisabled=!Y.detail.value};
Fr.prototype.onDataChanged=Fr.prototype.onDataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Fr.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Fr.prototype,"darkerDarkTheme",void 0);
_.z([_.R(),_.K("design:type",Object)],Fr.prototype,"submitButtonDisabled",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Fr.prototype,"onDataChanged",null);_.z([_.S({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Fr);
_.a(Fr,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(WLt!==void 0)return WLt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-transfer-channel-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n  <div id="header" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n  <div id="content" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <div id="sections" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></div>\n    <div id="messages" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <yt-formatted-string class="line-text style-scope ytd-transfer-channel-confirm-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string>\n      </template>\n    </div>\n    <div id="confirm" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n      <template is="dom-if" if="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n        <tp-yt-paper-checkbox id="confirm-checkbox" checked="[[!submitButtonDisabled]]" on-checked-changed="updateSubmitButtonDisabledFromConfirmCheckbox" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n          <yt-formatted-string id="confirm-text" text="[[data.confirmText]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer"></yt-formatted-string>\n        </tp-yt-paper-checkbox>\n      </template>\n    </div>\n  </div>\n  <div id="buttons" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" on-disabled-changed="updateSubmitButtonDisabledFromBinding" class="style-scope ytd-transfer-channel-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return WLt=Y},{mode:1});var KLI;var Lm=function(){return _.F.apply(this,arguments)||this};
_.P(Lm,_.F);_.up.Object.defineProperties(Lm.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;return((Y=this.data)==null?void 0:Y.title)+" "+((b=this.data)==null?void 0:b.metadataPrimary)+" "+((w=this.data)==null?void 0:w.metadataSecondary)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Lm.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Lm.prototype,"data",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],Lm.prototype,"ariaLabel",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Lm);
_.a(Lm,"ytd-compact-product-list-item-renderer",function(){if(KLI!==void 0)return KLI;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-compact-product-list-item-renderer" href$="[[computeHref_(data.onClickCommand)]]" data="[[data.onClickCommand]]" aria-label$="[[ariaLabel]]">\n  <div class="compact-product-list-item style-scope ytd-compact-product-list-item-renderer">\n    <yt-img-shadow class="item-image style-scope ytd-compact-product-list-item-renderer" height="40" object-fit="CONTAIN" thumbnail="[[data.thumbnail]]" width="40"></yt-img-shadow>\n    <div class="column style-scope ytd-compact-product-list-item-renderer">\n      <template is="dom-if" if="[[data.title]]" class="style-scope ytd-compact-product-list-item-renderer">\n        <div class="row title style-scope ytd-compact-product-list-item-renderer">[[data.title]]</div>\n      </template>\n      <div class="row metadata style-scope ytd-compact-product-list-item-renderer">\n        <template is="dom-if" if="[[data.metadataPrimary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataPrimary]]</span>\n        </template>\n        <template is="dom-if" if="[[data.metadataSecondary]]" class="style-scope ytd-compact-product-list-item-renderer">\n          <span class="style-scope ytd-compact-product-list-item-renderer">[[data.metadataSecondary]]</span>\n          <yt-icon class="open-in-new style-scope ytd-compact-product-list-item-renderer" icon="yt-icons:open_in_new"></yt-icon>\n        </template>\n      </div>\n    </div>\n  </div>\n</a>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return KLI=Y},{mode:1});var ieF;var SY=function(){return _.F.apply(this,arguments)||this};
_.P(SY,_.F);SY.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]]"}}}}}};
_.up.Object.defineProperties(SY.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],SY.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],SY.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],SY);
_.a(SY,"ytd-compact-product-list-renderer",function(){if(ieF!==void 0)return ieF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-product-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-compact-product-list-renderer">\n  <div id="title" class="style-scope ytd-compact-product-list-renderer">[[data.title]]</div>\n  <div id="items" class="style-scope ytd-compact-product-list-renderer"></div>\n  <div id="action-button" class="style-scope ytd-compact-product-list-renderer"></div>\n</div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ieF=Y},{mode:1});var AHd;var a0=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(a0,_.F);_.g=a0.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.g.getBackgroundUrl=function(){var Y=this.get("data.headerImage.thumbnails");return Y?"url("+_.NR(Y,this.hostElement.clientWidth)+")":""};
_.g.onDataChanged=function(){var Y=this.getBackgroundUrl();Y&&(this.header.style.backgroundImage=Y);Y=_.dO();var b=_.R3(),w=this.get("data.trackingParams");w&&b&&Y&&_.yX(Y,b,_.nA(w));Y=_.N(this.hostElement.querySelectorAll("yt-img-shadow"));for(b=Y.next();!b.done;b=Y.next())b.value.onShow()};
_.g.onPopupClosed=function(Y){_.uW(Y).localName==="ytd-membership-post-cancel-renderer"&&_.Xx(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
a0.prototype.onPopupClosed=a0.prototype.onPopupClosed;a0.prototype.onDataChanged=a0.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],a0.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],a0.prototype,"darkerDarkTheme",void 0);
_.z([_.xZ("#header"),_.K("design:type",HTMLDivElement)],a0.prototype,"header",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],a0.prototype,"onDataChanged",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],a0.prototype,"onPopupClosed",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],a0);
_.a(a0,"ytd-membership-post-cancel-renderer",function(){if(AHd!==void 0)return AHd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-membership-post-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-membership-post-cancel-renderer">\n  <div class="avatar-support style-scope ytd-membership-post-cancel-renderer" aria-hidden="true">\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.viewerThumbnail]]"></yt-img-shadow>\n    <yt-icon class="membership-icon style-scope ytd-membership-post-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    <yt-img-shadow class="avatar style-scope ytd-membership-post-cancel-renderer" thumbnail="[[data.channelThumbnail]]"></yt-img-shadow>\n  </div>\n</div>\n\n<yt-formatted-string class="header-title style-scope ytd-membership-post-cancel-renderer" text="[[data.header]]"></yt-formatted-string>\n\n<div class="messages style-scope ytd-membership-post-cancel-renderer">\n  <template is="dom-repeat" items="[[data.messages]]" class="style-scope ytd-membership-post-cancel-renderer">\n    <yt-formatted-string text="[[item]]" class="style-scope ytd-membership-post-cancel-renderer"></yt-formatted-string>\n  </template>\n</div>\n\n<div class="footer style-scope ytd-membership-post-cancel-renderer">\n  <div id="okay-button" class="style-scope ytd-membership-post-cancel-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return AHd=Y},{mode:1});var CZb;var rs=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(rs,_.F);rs.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
rs.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],rs.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],rs.prototype,"darkerDarkTheme",void 0);_.z([_.xZ("ytd-feedback-survey-renderer"),_.K("design:type",Object)],rs.prototype,"feedbackSurveyRenderer",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],rs);
_.a(rs,"ytd-sponsorship-confirm-cancel-content",function(){if(CZb!==void 0)return CZb;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="description" class="style-scope ytd-sponsorship-confirm-cancel-content">\n  <yt-formatted-string text="[[data.description]]" class="style-scope ytd-sponsorship-confirm-cancel-content"></yt-formatted-string>\n</div>\n<div id="feedback-survey" class="style-scope ytd-sponsorship-confirm-cancel-content"></div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return CZb=Y},{mode:1});var yHt;var z3=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.maybeSubmitFeedback=function(){Y.content&&Y.content.maybeSubmitFeedback()};
return Y};
_.P(z3,_.F);_.g=z3.prototype;_.g.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.g.onYtPopupOpened=function(Y,b){b===this&&this.data&&this.data.onOpenCommands&&_.IP(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Xx(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.g.onYtPopupClosed=function(Y,b){(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.IP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestCompleted=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.g.onYtServiceRequestError=function(Y){_.fx(this.hostElement,Y.detail.error.message)};
_.g.onDataChanged=function(){if(this.isAttached){var Y=this.backgroundUrl;Y&&(_.E6(this.hostElement).querySelector("#header").style.backgroundImage=Y)}};
_.up.Object.defineProperties(z3.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return Y?"url("+_.NR(Y,this.hostElement.clientWidth)+")":""}}});
z3.prototype.onDataChanged=z3.prototype.onDataChanged;z3.prototype.onYtServiceRequestError=z3.prototype.onYtServiceRequestError;z3.prototype.onYtServiceRequestCompleted=z3.prototype.onYtServiceRequestCompleted;z3.prototype.onYtPopupClosed=z3.prototype.onYtPopupClosed;z3.prototype.onYtPopupOpened=z3.prototype.onYtPopupOpened;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],z3.prototype,"data",void 0);_.z([_.R({value:function(){return _.sa("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],z3.prototype,"closeButtonAriaLabel",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],z3.prototype,"darkerDarkTheme",void 0);_.z([_.xZ("#scrollable"),_.K("design:type",Object)],z3.prototype,"scrollable",void 0);_.z([_.xZ("ytd-sponsorship-confirm-cancel-content"),_.K("design:type",Object)],z3.prototype,"content",void 0);
_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],z3.prototype,"onYtPopupOpened",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],z3.prototype,"onYtPopupClosed",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],z3.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],z3.prototype,"onYtServiceRequestError",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],z3.prototype,"onDataChanged",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],z3);
_.a(z3,"ytd-sponsorship-confirm-cancel-renderer",function(){if(yHt!==void 0)return yHt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorship-confirm-cancel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <tp-yt-paper-icon-button aria-label$="[[closeButtonAriaLabel]]" dialog-dismiss="" icon="yt-icons:dismissal" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></tp-yt-paper-icon-button>\n  </div>\n  <div class="avatar-support style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <template is="dom-if" restamp="" if="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.viewerThumbnail]]">\n      </yt-img-shadow>\n      <yt-icon class="membership-icon style-scope ytd-sponsorship-confirm-cancel-renderer" default-to-filled="true" icon="sponsorship_star"></yt-icon>\n    </template>\n    <yt-img-shadow class="avatar style-scope ytd-sponsorship-confirm-cancel-renderer" thumbnail="[[data.header.sponsorshipDialogHeaderRenderer.channelThumbnail]]">\n    </yt-img-shadow>\n  </div>\n</div>\n<div id="content" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    <div id="title" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></yt-formatted-string>\n    </div>\n    <ytd-sponsorship-confirm-cancel-content data="[[data]]" class="style-scope ytd-sponsorship-confirm-cancel-renderer">\n    </ytd-sponsorship-confirm-cancel-content>\n  </tp-yt-paper-dialog-scrollable>\n</div>\n<div class="footer style-scope ytd-sponsorship-confirm-cancel-renderer">\n  <div id="confirm-button" class="style-scope ytd-sponsorship-confirm-cancel-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return yHt=Y},{mode:_.Xd("kevlar_poly_si_batch_j081")?1:2});var $s7;var Wk=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(Wk,_.F);Wk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Wk.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],Wk.prototype,"darkerDarkTheme",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Wk);
_.a(Wk,"ytd-sponsorships-celebration-content",function(){if($s7!==void 0)return $s7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="content" class="style-scope ytd-sponsorships-celebration-content"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return $s7=
Y},{mode:1});var jfX;var G6s=_.wM(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),Km=function(){var Y=_.F.apply(this,arguments)||this;Y.scriptsAppended=!1;Y.buttonOverrides={type:"tonal",style:"overlay-dark"};return Y};
_.P(Km,_.F);_.g=Km.prototype;
_.g.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:_.q("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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.onDataChanged=function(){var Y;(Y=this.header)==null||Y.style.setProperty("background-color",this.backgroundColor);if(Y=this.headerImageUrl){var b;(b=this.header)==null||b.style.setProperty("background-image",Y)}b=_.dO(4);Y=_.R3(4);var w=this.get("data.trackingParams");if(w&&Y&&b){var V=_.nA(w);_.yX(b,Y,V);_.q("combine_ve_grafts")?_.Qd().graftServerVe(w,Y,4):_.yX(b,Y,V)}b=_.N(this.hostElement.querySelectorAll("yt-img-shadow"));for(Y=b.next();!Y.done;Y=b.next())Y.value.onShow();if(b=this.get("data.gtmId"))_.Rj(b,
_.zO("GL","")),this.setupConversionTracking()};
_.g.setupConversionTracking=function(){if(!this.scriptsAppended){var Y=document.createElement("script");var b=_.rE(G6s.join(""));_.WN(Y,b);document.head.appendChild(Y);Y=document.createElement("noscript");Y.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TGBSZFB" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(Y);this.scriptsAppended=!0}};
_.g.onPopupClosed=function(Y){if(_.uW(Y).localName==="ytd-sponsorships-celebration-renderer"){_.Xx(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var b;this.data&&((b=this.data)==null?0:b.dismissCommand)&&_.l8.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.up.Object.defineProperties(Km.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.KX(Y)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return Y?"url("+_.NR(Y,this.hostElement.getBoundingClientRect().width)+")":""}}});
Km.prototype.onPopupClosed=Km.prototype.onPopupClosed;Km.prototype.onDataChanged=Km.prototype.onDataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Km.prototype,"data",void 0);_.z([_.xZ("#header"),_.K("design:type",HTMLElement)],Km.prototype,"header",void 0);
_.z([_.R(),_.K("design:type",Object)],Km.prototype,"scriptsAppended",void 0);_.z([_.R(),_.K("design:type",Object)],Km.prototype,"buttonOverrides",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Km.prototype,"onDataChanged",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Km.prototype,"onPopupClosed",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Km);
_.a(Km,"ytd-sponsorships-celebration-renderer",function(){if(jfX!==void 0)return jfX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return jfX=Y},{mode:1});var Tis;var iq=function(){var Y=_.F.apply(this,arguments)||this;Y.isToggleChecked=!1;return Y};
_.P(iq,_.F);iq.prototype.onDataChanged=function(){var Y;this.isToggleChecked=((Y=this.data)==null?void 0:Y.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
iq.prototype.close=function(){var Y;((Y=this.data)==null?0:Y.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
iq.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var Y,b=_.v((Y=this.data)==null?void 0:Y.switchButton,LyO);b&&(this.isToggleChecked&&b.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOnInnertubeCommand),!this.isToggleChecked&&b.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOffInnertubeCommand))};
iq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iq.prototype.onDataChanged=iq.prototype.onDataChanged;_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],iq.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],iq.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],iq.prototype,"isToggleChecked",void 0);_.z([_.R({value:_.sa("CLOSE")}),_.K("design:type",String)],iq.prototype,"closeButtonAriaLabel",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iq.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],iq);
_.a(iq,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Tis!==void 0)return Tis;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-gifting-opt-in-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-icon icon="close" class="style-scope ytd-sponsorships-gifting-opt-in-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div id="content" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n  <div id="header" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <yt-img-shadow class="thumbnail style-scope ytd-sponsorships-gifting-opt-in-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n  </div>\n  <div id="optin" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n    <div id="title" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <yt-formatted-string class="title style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n      <yt-formatted-string class="subtitle style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.subtitle]]">\n      </yt-formatted-string>\n    </div>\n    <div id="toggle" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n      <ytcp-ve track-click="true" ve-type="[[ve.client.SPONSORSHIPS_GIFTING_OPT_IN_DIALOG_TOGGLE_BUTTON]]" class="style-scope ytd-sponsorships-gifting-opt-in-renderer">\n        <tp-yt-paper-toggle-button class="toggle style-scope ytd-sponsorships-gifting-opt-in-renderer" checked="[[isToggleChecked]]" on-click="handleOptInToggle">\n        </tp-yt-paper-toggle-button>\n      </ytcp-ve>\n    </div>\n  </div>\n  <div class="separator style-scope ytd-sponsorships-gifting-opt-in-renderer"></div>\n  <yt-formatted-string class="disclaimer style-scope ytd-sponsorships-gifting-opt-in-renderer" text="[[data.disclaimer]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Tis=Y},{mode:1});var JHt;var As=function(){return _.F.apply(this,arguments)||this};
_.P(As,_.F);_.g=As.prototype;_.g.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"}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.detached=function(){this.playerElement.stop()};
_.g.onYtServiceRequestCompleted=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.g.onYtServiceRequestError=function(Y){_.fx(this.hostElement,Y.detail.error.message)};
_.g.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.g.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.g.getTier=function(Y,b){return!Y||!Y.tiers||b<0?null:_.v(Y.tiers[b],zzO)};
_.g.moreThanOne=function(Y){return!!(Y&&Y.length>1)};
_.g.tierOverviewTap=function(Y){var b=this;this.selectedTier=Y.model.index;_.TC(this,function(){_.Ua(b.hostElement,"yt-refit")})};
_.g.computeSelectedClass=function(Y,b){return this.isSelected(Y,b)?"selected":""};
_.g.computeButtonAriaPressed=function(Y,b){return this.isSelected(Y,b)?"true":"false"};
_.g.isSelected=function(Y,b){return Y===b};
_.g.onDataChanged=function(){_.E6(this.hostElement).querySelector("#header-overlay").style.visibility="";_.E6(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition");this.offerVideo=this.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.externalVideoId");this.setHeaderBackground();this.initializeVe(this.offerVideo);this.offerVideo&&this.setupVideoPlayer(this.offerVideo);for(var Y=_.N(this.hostElement.querySelectorAll("yt-img-shadow")),
b=Y.next();!b.done;b=Y.next())b.value.onShow();var w;this.set("selectedTier",(w=this.get("data.targetTierIndex"))!=null?w:0);var V;(Y=(V=this.data)==null?void 0:V.onVisible)&&this.ytComponentBehavior.resolveCommand(Y)};
_.g.initializeVe=function(Y){var b=_.dO(),w=_.R3(),V=this.get("data.trackingParams");w&&b&&(this.screenLayer=4,b=_.i1(_.kSv)(void 0,69877,{clientScreenNonce:b,visualElement:w},void 0,void 0,void 0),_.LM(b,69877,4),w=_.R3(4),V&&w&&(V=_.nA(V),_.yX(b,w,V),Y&&(this.offerVideoVe=_.tj(74659),_.yX(b,V,this.offerVideoVe))))};
_.g.setHeaderBackground=function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.E6(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.KX(Y);if(Y=this.getHeaderImage())Y=_.NR(Y,screen.width),_.E6(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+Y+")"};
_.g.getHeaderImage=function(){var Y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&Y?Y:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.g.setupVideoPlayer=function(Y){var b=this,w,V,H,f;return _.c(function(E){if(E.nextAddress==1)return w=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),V=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.q("kevlar_player_update_killswitch")?b.playerElement.update({args:{autoplay:w,video_id:Y,player_params:V}}):b.playerElement.loadVideoWithPlayerVars({autoplay:w,video_id:Y,player_params:V}),
_.D(E,b.playerElement.getPlayerPromise(),2);H=E.yieldResult;H.addEventListener("onStateChange",function(U){b.onPlayerStateChange(U)});
H.setScreenLayer(b.screenLayer);(f=_.dO(4))&&b.offerVideoVe&&_.j1(f,b.offerVideoVe);w&&(b.pauseOtherPlayers(),b.playerElement.focusOnPlayer(),b.playerElement.getPlayer().hideControls(),_.MY(_.Lb,function(){b.fadeOutHeaderOverlay()},4E3));
_.om(E)})};
_.g.onPlayerStateChange=function(Y){Y===1?this.backgroundPlayerElement&&(Y=this.backgroundPlayerElement.player_.getPlayerState(),Y!==1&&Y!==3||this.backgroundPlayerElement.pause()):Y===0&&(_.E6(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.E6(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.g.fadeOutHeaderOverlay=function(){_.E6(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.g.onHeaderTap=function(){if(this.offerVideo){_.E6(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var Y;((Y=this.playerElement.player_)==null?void 0:Y.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(Y=_.dO(4))&&this.offerVideoVe&&_.J1(Y,this.offerVideoVe)}};
_.g.getBackgroundImageLayerClass=function(Y){return Y?"background-image-layer-with-video":""};
_.g.getHeaderClass=function(Y){return Y?"header-with-video":""};
_.g.getHeaderOverlayClass=function(Y){return Y?"header-overlay-with-video":""};
_.g.getTitleContainerClass=function(Y,b){return Y?"title-container-with-video":b?"title-container-without-video-flexible":"title-container-without-video"};
_.g.tierTitleDisplayStatus=function(Y){return this.moreThanOne(Y)?"hide":"show"};
_.g.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.fH().resolve(_.Ck).getPlayerElement():this.backgroundPlayerElement=_.V4();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var Y=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=Y===1||Y===3;this.backgroundPlayerElement.pause()}};
_.g.isMiniplayerActive=function(){return _.fH().resolve(_.Ck).isMiniplayerActive()};
_.g.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("selected-tier-changed",this.selectedTier))};
As.prototype.selectedTierChangedForBinding=As.prototype.selectedTierChangedForBinding;As.prototype.onDataChanged=As.prototype.onDataChanged;As.prototype.onYtPopupClosed=As.prototype.onYtPopupClosed;As.prototype.onYtPopupOpened=As.prototype.onYtPopupOpened;As.prototype.onYtServiceRequestError=As.prototype.onYtServiceRequestError;As.prototype.onYtServiceRequestCompleted=As.prototype.onYtServiceRequestCompleted;
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],As.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],As.prototype,"data",void 0);_.z([_.R({value:0}),_.K("design:type",Number)],As.prototype,"selectedTier",void 0);
_.z([_.R({value:""}),_.K("design:type",String)],As.prototype,"offerVideo",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],As.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.z([_.R({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.wU(this)}}),
_.K("design:type",String)],As.prototype,"playerId",void 0);_.z([_.xZ("tp-yt-paper-dialog-scrollable"),_.K("design:type",Object)],As.prototype,"scrollable",void 0);_.z([_.xZ("ytd-sponsorships-tier-renderer"),_.K("design:type",Object)],As.prototype,"tierRenderer",void 0);_.z([_.xZ("#player"),_.K("design:type",Object)],As.prototype,"playerElement",void 0);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],As.prototype,"onYtServiceRequestCompleted",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],As.prototype,"onYtServiceRequestError",null);
_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],As.prototype,"onYtPopupOpened",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],As.prototype,"onYtPopupClosed",null);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],As.prototype,"onDataChanged",null);
_.z([_.lr("selectedTier"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],As.prototype,"selectedTierChangedForBinding",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],As);
_.a(As,"ytd-sponsorships-offer-renderer",function(){if(JHt!==void 0)return JHt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="titlebar-text" class="style-scope ytd-sponsorships-offer-renderer">\n    <yt-formatted-string text="[[data.header.sponsorshipsHeaderRenderer.titlebarText]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="action-menu" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-offer-renderer"></div>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-offer-renderer">\n  <div id="header" class$="[[getHeaderClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n    <div id="header-overlay" on-click="onHeaderTap" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="header-title-overlay" class$="[[getHeaderOverlayClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer">\n        <div id="avatar-container" class="style-scope ytd-sponsorships-offer-renderer">\n          <yt-img-shadow class="avatar style-scope ytd-sponsorships-offer-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n          </yt-img-shadow>\n        </div>\n        <div class$="title-container [[getTitleContainerClass(offerVideo,\n            data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode)]] style-scope ytd-sponsorships-offer-renderer">\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.superTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="background-image-layer" class$="[[getBackgroundImageLayerClass(offerVideo)]] style-scope ytd-sponsorships-offer-renderer"></div>\n    </div>\n    <div id="video-container" hidden$="[[!offerVideo]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <ytd-player id="player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SPONSORSHIPS_OFFER" player-id="[[playerId]]" class="style-scope ytd-sponsorships-offer-renderer">\n      </ytd-player>\n    </div>\n  </div>\n  <div id="alert-renderer" hidden="[[!data.alert]]" class="style-scope ytd-sponsorships-offer-renderer"></div>\n  <div id="content" class="style-scope ytd-sponsorships-offer-renderer">\n    <template is="dom-if" if="[[moreThanOne(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n      <div id="tier-overview" class="style-scope ytd-sponsorships-offer-renderer">\n        <template is="dom-repeat" items="[[data.tiers]]" as="tier" class="style-scope ytd-sponsorships-offer-renderer">\n          <button class$="offer-overview-item [[computeSelectedClass(index, selectedTier)]] style-scope ytd-sponsorships-offer-renderer" aria-pressed="[[computeButtonAriaPressed(index, selectedTier)]]" on-click="tierOverviewTap">\n            <yt-formatted-string class="title style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.title]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="subtitle style-scope ytd-sponsorships-offer-renderer" text="[[tier.sponsorshipsTierRenderer.subtitle]]">\n            </yt-formatted-string>\n          </button>\n        </template>\n      </div>\n    </template>\n    <ytd-sponsorships-tier-renderer id="tier" data="[[getTier(data, selectedTier)]]" titledisplaystatus="[[tierTitleDisplayStatus(data.tiers)]]" class="style-scope ytd-sponsorships-offer-renderer">\n    </ytd-sponsorships-tier-renderer>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return JHt=Y},{mode:_.Xd("kevlar_poly_si_batch_j077")?1:2});var uHR;var Cm=function(){var Y=_.F.apply(this,arguments)||this;Y.buttonOverrides={type:"filled",style:"mono"};return Y};
_.P(Cm,_.F);Cm.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}}}}}};
Cm.prototype.backgroundColorChanged=function(){var Y,b,w,V=(b=_.v((Y=this.data)==null?void 0:Y.content,WyN))==null?void 0:(w=b.backgroundColor)==null?void 0:w.backgroundColor;V&&(Y=_.WH(V),_.E6(this.hostElement).querySelector("#banner").style.backgroundColor=Y,_.E6(this.hostElement).querySelector("#abstract-art").style.backgroundColor=Y)};
Cm.prototype.attached=function(){this.JSC$18438_scroller&&(this.JSC$18438_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18438_scroller.attached&&typeof this.JSC$18438_scroller.attached==="function"&&this.JSC$18438_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Cm.prototype.backgroundColorChanged=Cm.prototype.backgroundColorChanged;_.z([_.R(),_.K("design:type",Object)],Cm.prototype,"data",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("#scroller"),_.K("design:type",Object)],Cm.prototype,"JSC$18438_scroller",void 0);_.z([_.R(),_.K("design:type",Object)],Cm.prototype,"buttonOverrides",void 0);
_.z([_.lr("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Cm.prototype,"backgroundColorChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Cm);
_.a(Cm,"ytd-sponsorships-promotion-celebration-renderer",function(){if(uHR!==void 0)return uHR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-promotion-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n   <div id="dismiss-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n   <div id="header" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <yt-img-shadow class="premium-icon style-scope ytd-sponsorships-promotion-celebration-renderer" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.icon]]">\n    </yt-img-shadow>\n    <yt-img-shadow class="illustration style-scope ytd-sponsorships-promotion-celebration-renderer" hidden="[[!data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]" thumbnail="[[data.header.sponsorshipsPromotionHeaderRenderer.illustrationThumbnail]]">\n    </yt-img-shadow>\n    <yt-formatted-string class="title style-scope ytd-sponsorships-promotion-celebration-renderer" text="[[data.header.sponsorshipsPromotionHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-promotion-celebration-renderer" split-lines="" text="[[data.header.sponsorshipsPromotionHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n  <div id="banner" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n    <div id="content" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="content-background" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow id="abstract-art" fit-height="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.backgroundImage]]" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        </yt-img-shadow>\n      </div>\n      <div id="subcontent" class="style-scope ytd-sponsorships-promotion-celebration-renderer">\n        <yt-img-shadow class="channel-image style-scope ytd-sponsorships-promotion-celebration-renderer" fit="" thumbnail="[[data.content.sponsorshipsPromotionChannelRenderer.channelImage]]">\n        </yt-img-shadow>\n        <div class="channel-info style-scope ytd-sponsorships-promotion-celebration-renderer">\n          <yt-formatted-string class="channel-info-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.title]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="channel-title style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" text="[[data.content.sponsorshipsPromotionChannelRenderer.channelTitle]]">\n          </yt-formatted-string>\n          <yt-formatted-string class="membership-detail style-scope ytd-sponsorships-promotion-celebration-renderer" ellipsis-truncate="" hidden="[[!data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]" text="[[data.content.sponsorshipsPromotionChannelRenderer.membershipDetail]]">\n          </yt-formatted-string>\n        </div>\n      </div>\n    </div>\n    <div id="button-bar" class="banner-shade style-scope ytd-sponsorships-promotion-celebration-renderer">\n      <div id="primary-button" class="style-scope ytd-sponsorships-promotion-celebration-renderer"></div>\n    </div>\n  </div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return uHR=Y},{mode:_.Xd("kevlar_poly_si_batch_j077")?1:2});var Y7F;var bcd;var yT=function(){return _.F.apply(this,arguments)||this};
_.P(yT,_.F);yT.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
yT.prototype.computeIsInitiallyChecked=function(Y){return Y===1};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],yT.prototype,"data",void 0);_.z([_.xZ("#checkbox"),_.K("design:type",Object)],yT.prototype,"checkbox",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],yT);
_.a(yT,"ytd-subscription-toggle-option-renderer",function(){if(bcd!==void 0)return bcd;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-toggle-option-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" checked="[[computeIsInitiallyChecked(data.initialValue)]]" class="style-scope ytd-subscription-toggle-option-renderer">\n  [[getSimpleString(data.label)]]\n</tp-yt-paper-checkbox>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return bcd=Y},{mode:1});var $q=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return Y};
_.P($q,_.F);$q.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"}}}};
$q.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$q.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var Y=_.E6(this.hostElement).querySelector("#options").selected;Y=this.data.options[Y].subscriptionRadioOptionRenderer.serviceEndpoint;var b=_.E6(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");b&&Y&&Y.modifyChannelNotificationPreferenceEndpoint&&(b=b.getValue())&&(Y.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[b]);_.fH().resolve(_.Nn).resolveCommand(Y,{form:{element:this.hostElement}});
_.Xx(this.hostElement,"yt-close-popup-action")};
_.up.Object.defineProperties($q.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var Y=this.data.options,b=0;b<Y.length;b++){var w=Y[b].subscriptionRadioOptionRenderer;if(w&&w.selected)return b}return null}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],$q.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],$q.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],$q.prototype,"eventForwardingBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],$q.prototype,"ytRendererBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],$q.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],$q.prototype,"darkerDarkTheme",void 0);_.z([_.t("data.options"),_.K("design:type",Object),_.K("design:paramtypes",[])],$q.prototype,"initialIndex",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],$q);
_.a($q,"ytd-subscription-notification-options-renderer",function(){if(Y7F!==void 0)return Y7F;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-subscription-notification-options-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" class="style-scope ytd-subscription-notification-options-renderer">[[getSimpleString(data.title)]]</div>\n<div id="body" class="style-scope ytd-subscription-notification-options-renderer">\n  <tp-yt-paper-radio-group id="options" selected="[[initialIndex]]" class="style-scope ytd-subscription-notification-options-renderer">\n    <template is="dom-repeat" items="[[data.options]]" class="style-scope ytd-subscription-notification-options-renderer">\n      <tp-yt-paper-radio-button name="[[index]]" value="[[item.subscriptionRadioOptionRenderer.serviceEndpoint]]" class="style-scope ytd-subscription-notification-options-renderer">\n        <div class="content style-scope ytd-subscription-notification-options-renderer">\n          <div class="label style-scope ytd-subscription-notification-options-renderer">\n            [[getSimpleString(item.subscriptionRadioOptionRenderer.text)]]\n          </div>\n          <yt-icon icon="[[item.subscriptionRadioOptionRenderer.choiceIcon.iconType]]" class="style-scope ytd-subscription-notification-options-renderer">\n          </yt-icon>\n        </div>\n      </tp-yt-paper-radio-button>\n    </template>\n  </tp-yt-paper-radio-group>\n  <div id="secondary-options" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n<div class="buttons style-scope ytd-subscription-notification-options-renderer">\n  <div id="cancel-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n  <div id="confirm-button" class="style-scope ytd-subscription-notification-options-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return Y7F=Y},{mode:1});var wlR;var jY=function(){return _.F.apply(this,arguments)||this};
_.P(jY,_.F);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],jY.prototype,"data",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],jY);
_.a(jY,"ytd-tvfilm-offer-groups-renderer",function(){if(wlR!==void 0)return wlR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tvfilm-offer-groups-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" items="[[data.offerGroups]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n  <div class="offer-group style-scope ytd-tvfilm-offer-groups-renderer">\n    <div class="offer-header style-scope ytd-tvfilm-offer-groups-renderer">\n      <h2 class="offer-title style-scope ytd-tvfilm-offer-groups-renderer">[[getSimpleString(item.offerGroupRenderer.title)]]</h2>\n      <h3 class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <yt-formatted-string class="offer-subtitle standard-text style-scope ytd-tvfilm-offer-groups-renderer" split-lines="" text="[[item.offerGroupRenderer.subtitle]]">\n        </yt-formatted-string>\n      </h3>\n    </div>\n    <div class="offer-list style-scope ytd-tvfilm-offer-groups-renderer">\n      <template is="dom-repeat" items="[[item.offerGroupRenderer.offers]]" class="style-scope ytd-tvfilm-offer-groups-renderer">\n        <ytd-button-renderer class="offer-button style-scope ytd-tvfilm-offer-groups-renderer" data="[[item.buttonRenderer]]" dialog-dismiss="true" ellipsis-truncate="">\n        </ytd-button-renderer>\n      </template>\n    </div>\n  </div>\n</template>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return wlR=Y},{mode:1});var V5b;var G3=function(){var Y=_.F.apply(this,arguments)||this;Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(G3,_.F);_.g=G3.prototype;_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.g.computeThumbnailClass=function(Y){return Y.thumbnailOverlays?Y.isShow?"thumbnail-show":"thumbnail-movie":Y.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.g.computeCommerceSectionClass=function(Y){return Y.offers&&Y.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.g.computeTitleClass=function(Y){return Y.offers&&Y.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.g.onDataChanged=function(){[].concat(_.Bt(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(Y){Y.onShow()})};
G3.prototype.onDataChanged=G3.prototype.onDataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],G3.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],G3.prototype,"darkerDarkTheme",void 0);
_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],G3.prototype,"onDataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],G3);
_.a(G3,"ytd-ypc-offers-overlay-renderer",function(){if(V5b!==void 0)return V5b;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-ypc-offers-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n  <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-ypc-offers-overlay-renderer"></tp-yt-paper-spinner>\n</div>\n<div class="content style-scope ytd-ypc-offers-overlay-renderer" hidden="[[data.showLoadingSpinner]]">\n  <div class="header style-scope ytd-ypc-offers-overlay-renderer" hidden="[[!data.title]]">\n    <div class="metadata style-scope ytd-ypc-offers-overlay-renderer">\n      <div class$="title-badge [[computeTitleClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        [[getSimpleString(data.title)]]\n      </div>\n    </div>\n    <template is="dom-if" if="[[data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n\n  <div class="content-dismiss-section style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="thumbnail-commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <div id="thumbnail" class$="[[computeThumbnailClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <yt-img-shadow id="thumbnail-image" fit="" thumbnail="[[data.thumbnail]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n        </yt-img-shadow>\n        <div id="overlays" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n      </div>\n      <div id="commerce-metadata-section" class$="[[computeCommerceSectionClass(data)]] style-scope ytd-ypc-offers-overlay-renderer">\n        <div id="commerce-section" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <div id="offers" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n        </div>\n        <div id="badges-metadata-section" hidden="[[!data.badges]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n          <hr class="metadata-separator-line style-scope ytd-ypc-offers-overlay-renderer">\n          <ytd-badge-supported-renderer class="left-aligned-badges style-scope ytd-ypc-offers-overlay-renderer" badges="[[data.badges]]">\n          </ytd-badge-supported-renderer>\n          <div class="subtitle standard-text style-scope ytd-ypc-offers-overlay-renderer">[[getSimpleString(data.metadata)]]</div>\n        </div>\n      </div>\n    </div>\n    <template is="dom-if" if="[[!data.title]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n      <ytd-button-renderer class="dismiss-button style-scope ytd-ypc-offers-overlay-renderer" data="[[data.dismissButton.buttonRenderer]]" dialog-dismiss="true">\n      </ytd-button-renderer>\n    </template>\n  </div>\n  <yt-formatted-string class="info-section standard-text style-scope ytd-ypc-offers-overlay-renderer" text="[[data.additionalInfo]]">\n  </yt-formatted-string>\n\n  <div class="footer style-scope ytd-ypc-offers-overlay-renderer">\n    <div id="coupon" class="style-scope ytd-ypc-offers-overlay-renderer"></div>\n    <ytd-button-renderer id="help-button" data="[[data.helpButton.buttonRenderer]]" class="style-scope ytd-ypc-offers-overlay-renderer">\n    </ytd-button-renderer>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return V5b=Y},{mode:_.Xd("kevlar_poly_si_batch_j028")?1:2});var Hcg;var gkR=function(){this.usedMethods=new Set};
gkR.prototype.add=function(Y){this.usedMethods.add(Y)};
gkR.prototype.reset=function(){this.usedMethods.clear()};var Ekg=function(Y,b){this.query=Y;this.previousSearchQuery=b;this.id=fSA++;if(!Nzt){b=_.zO("SBOX_SETTINGS");Y="https://"+((b==null?void 0:b.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var w=b==null?void 0:b.REQUEST_LANGUAGE;w&&(Y+="&hl="+w);(w=b==null?void 0:b.REQUEST_DOMAIN)&&(Y+="&gl="+w);Y+="&client=youtube&gs_ri=youtube";(w=b==null?void 0:b.SUGG_EXP_ID)&&(Y+="&sugexp="+encodeURIComponent(w));(w=b==null?void 0:b.PSUGGEST_TOKEN)&&(Y+="&tok="+w);(b=
b==null?void 0:b.SESSION_INDEX)&&(Y+="&authuser="+b);_.q("desktop_enable_visual_suggest")&&(Y+="&h=180&w=320&ytvs=1");Nzt=Y}},cf7=function(Y){var b="q="+encodeURIComponent(Y.query);
Y.previousSearchQuery&&(b+="&pq="+encodeURIComponent(Y.previousSearchQuery));return b},UHR=function(){var Y=_.zO("SBOX_SETTINGS"),b={};
if(Y==null?0:Y.SEND_VISITOR_DATA)b["X-Goog-Visitor-Id"]=Y==null?void 0:Y.VISITOR_DATA;return b},XlX=function(Y){var b=Nzt;
b+="&gs_id="+Y.id.toString(36);b+="&q="+encodeURIComponent(Y.query);b+="&cp="+Y.query.length;Y.previousSearchQuery&&(b+="&pq="+encodeURIComponent(Y.previousSearchQuery));(Y=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(b+="&video_id="+Y);return b},fSA=0,Nzt="";var DHg=_.iK.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,mHA=_.iK.SEARCH_ENTITY_SUGGESTION_MOVIE,oks=_.iK.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ISs=_.iK.SEARCH_ENTITY_SUGGESTION_TV_SHOW,kAt=function(Y,b){this.text=Y;this.bold=b},lSO=function(Y,b,w){this.input=b;
this.index=w;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=Y[0];this.type=Y[1];this.subtypes=Y[2];var V;this.displayText=uU((V=Y[3])==null?void 0:V.b);var H;this.ignoredPrefix=uU((H=Y[3])==null?void 0:H.a);var f,E;this.hasNewVideo=((f=Y[3])==null?void 0:(E=f.zam)==null?void 0:E.toString())==="true"?!0:!1;var U;this.visualSuggestUrl=(U=Y[3])==null?void 0:U.zai;var X;this.entityType=uU((X=Y[3])==null?void 0:X.zap);var I;this.entityName=uU((I=Y[3])==null?void 0:I.zao);var k;b=uU((k=
Y[3])==null?void 0:k.zaf);var l;this.entityMid=(l=Y[3])==null?void 0:l.zae;k=X$s(this.subtypes,this.entityMid);if(b&&k){if(b){l="";switch(k){case "YOUTUBE_ENTITY_TYPE_SONG":l=oks;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":l=DHg;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":l=ISs;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":l=mHA}k=k==="YOUTUBE_ENTITY_TYPE_SONG"||k==="YOUTUBE_ENTITY_TYPE_ALBUM"?l+" \u2022  \u2022 "+b:b}else k="";this.entitySubtitle=k}var x;this.externalChannelId=(x=Y[3])==null?void 0:x.zav;var Q;
this.entityThumbnailAttributionUrl=(Q=Y[3])==null?void 0:Q.zaq},xHR=function(Y,b){var w=[],V,H=(V=Y.displayText)!=null?V:Y.text;
(b==null?0:b.useEntityName)&&hWt(Y)&&Y.entityName&&(H=Y.entityName);if(Y.type===33)return w.push(new kAt(H,!1)),w;if(H.length>=Y.input.length&&H.substring(0,Y.input.length)===Y.input)w.push(new kAt(Y.input,!1)),w.push(new kAt(H.substring(Y.input.length),!0));else{var f=new Set(Y.input.split(/\s/)),E=H.split(/\s/);w=E.map(function(U,X){return new kAt(U.trim()+(X===E.length-1?"":" "),!f.has(U))})}return w},hWt=function(Y){var b=!!X$s(Y.subtypes);
Y=!!Y.entityMid;return b||Y};var q7t=function(Y){this.rawResponse=["",[],{}];this.suggestions=[];try{var b=JSON.parse(DVF(Y));if(typeof b==="object"&&b!==null)this.rawResponse=b;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(V){console.log("Suggest: Failed to parse SuggestResponse!");return}var w=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(V,H){return new lSO(V,w,H)})};var sXX=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new gkR;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18475_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},QXd,vkX=function(){QXd||(QXd=new sXX);
return QXd};
sXX.prototype.updateSuggestions=function(Y){var b=this;this.availableSuggestions.forEach(function(w){b.previousSuggestions[w]=!0});
this.availableSuggestions=Y.map(function(w){var V=w.type.toString();w.subtypes.length>0&&(V+="i"+w.subtypes.join("i"),V+="k"+w.suggestionSources.COMPLETE_SERVER.toString());return V})};
var PPA=function(Y,b){var w=Date.now();Y.firstEditTime<0&&(Y.firstEditTime=w);b&&(Y.lastQueryBuildTime=w);Y.lastEditTime=w};
sXX.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18475_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var Zct=function(Y){var b="";Y.availableSuggestions.forEach(function(H){delete Y.previousSuggestions[H]});
for(var w=_.N(Object.keys(Y.previousSuggestions)),V=w.next();!V.done;V=w.next())V=V.value,Y.previousSuggestions[V]&&(b+=(b?"j":"")+V);return b},BzO=function(Y,b){var w=[];
b&&(w[1]=b.toString());w[0]="youtube";w[7]=Date.now()-Y.startTime;w[6]=Y.sessionNumber;Y.zeroPrefixSuggestionCount>=0&&(w[33]=Y.zeroPrefixSuggestionCount);w[13]=Y.outOfSyncResponseCount;if(Y.availableSuggestions.length>0){for(var V=b="",H=0,f=_.N(Y.availableSuggestions),E=f.next();!E.done;E=f.next())E=E.value,E!==V&&(H>1&&(b+="l"+H),b+=(V?"j":"")+E,H=0,V=E),H+=1;H>1&&(b+="l"+H);w[3]=b}w[35]=Zct(Y);Y.selectedSuggestionIndex>=0&&(w[2]=Y.selectedSuggestionIndex);var U;if(b=(U=_.zO("SBOX_SETTINGS"))==
null?void 0:U.SUGG_EXP_ID)w[19]=Y.normalize(b),U=0,Y.experimentTriggeredBeforeFinal&&(U|=1),Y.experimentTriggeredFinal&&(U|=2),w[20]=U;w[26]=Array.from(Y.inputMethodsTracker.usedMethods).join("j");if(Y.JSC$18475_totalRoundTripTime>0){w[15]=Y.JSC$18475_totalRoundTripTime;w[14]=Y.maxRoundTripTime;U=[];for(H=b=0;H<10;H++)V=Y.roundTripTimeHistogram[H],V===0?b++:(b>1?U.push(H+"-"+V):b===1?U.push("0j"+V):U.push(V.toString()),b=0);U=U.join("j");w[16]=U}Y.zeroPrefixRoundTripTime>0&&(w[36]=Y.zeroPrefixRoundTripTime);
Y.lastQueryBuildTime>0&&(w[18]=Y.lastQueryBuildTime-Y.startTime);Y.firstEditTime>0&&(w[4]=Y.firstEditTime-Y.startTime);Y.lastEditTime>0&&(w[5]=Y.lastEditTime-Y.startTime);return w.join(".")};
sXX.prototype.normalize=function(Y){return Y.replaceAll(".","-")};
var nkt=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var T3=function(){var Y=_.F.apply(this,arguments)||this;Y.microphoneSpinnerActive=!1;Y.noAnimations=!1;Y.boundExitClick=function(){Y.onExitButtonClick()};
Y.speechOverlayClassName="";Y.isLevelAnimating=!1;Y.playCloseDialogAudioFeedback=!0;Y.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return Y};
_.P(T3,_.F);_.g=T3.prototype;_.g.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.g.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=DSF()};
_.g.dataChanged=function(){this.logDialog()};
_.g.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var Y;(Y=this.manager.audioPlayer)!=null&&(Y.JSC$17764_audioEnabled=!1)}this.manager.stop();(Y=this.manager.audioPlayer)!=null&&(Y.JSC$17764_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.g.handleSpeechQueryCompleteAction=function(Y){var b=Y.navigationAction;b&&(Y.trackingParams&&_.Qd().graftServerVe(Y.trackingParams,this.dialogVe,5),_.Ua(this.hostElement,"yt-navigate",{endpoint:b,tempData:this.getNavigationParams(b),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.g.onExitButtonClick=function(){this.closeDialog()};
_.g.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var Y;if((Y=this.manager)!=null){var b;(b=Y.audioPlayer)==null||zq(b,"failure");Y.setState("microphone-off");Y.stop()}}else(Y=this.manager)==null||Y.start()};
_.g.transcriptionChanged=function(){var Y,b;(((Y=this.transcription)==null?0:Y.low)||((b=this.transcription)==null?0:b.high))&&this.setState("transcribing",this.transcription)};
_.g.stateChanged=function(){this.setState(this.state,this.transcription)};
_.g.logDialog=function(){var Y;(Y=this.data)!=null&&Y.trackingParams&&(Y=_.Qd(),_.mo(Y,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=Y.graftServerVe(this.data.trackingParams,void 0,5))};
_.g.getNavigationParams=function(Y){var b={};if(_.q("web_yt_searchbox")){var w=vkX();w.inputMethodsTracker.add(6);w=BzO(w,15);b.gs_l=w;var V;b.oq=((V=_.v(Y,_.vH))==null?void 0:V.query)||""}else if(Y=window.ytvoicesearchloggingparams){if(Y=Y())b.oq=Y.oq,b.gs_l=Y.gs_l}else _.C7(Error("ol"));return b};
_.g.closeDialog=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.g.setState=function(Y,b){if(this.data){var w=this.data,V={};switch(Y){case "listening":V={headerText:w.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:w.microphoneButtonAriaLabel};break;case "timeout":V={headerText:w.promptHeader,microphoneState:"try-again",microphoneLabel:w.promptMicrophoneLabel,microphoneAriaLabel:w.promptMicrophoneLabel};break;case "microphone-off":V={headerText:w.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:w.promptMicrophoneLabel,
microphoneAriaLabel:w.promptMicrophoneLabel};break;case "transcribing":(b==null?0:b.low)||(b==null?0:b.high)?V={transcriptionLow:b==null?void 0:b.low,transcriptionHigh:b==null?void 0:b.high,microphoneState:"speaking",microphoneAriaLabel:w.microphoneButtonAriaLabel}:V={headerText:w.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:w.microphoneButtonAriaLabel};break;case "processing":V={headerText:w.loadingHeader,microphoneState:"processing",microphoneAriaLabel:w.microphoneButtonAriaLabel};
break;case "offline":V={headerText:w.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:w.connectionErrorMicrophoneLabel,microphoneAriaLabel:w.connectionErrorMicrophoneLabel};break;case "permission":V={headerText:w.permissionsHeader,bodyLine1:w.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:w.permissionsSubtext};break;case "permission-denied":V={headerText:w.disabledHeader,bodyLine1:w.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:w.disabledSubtext}}V.className=
Y;this.speechOverlayState=V;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.g.setMicrophoneState=function(Y){var b=this.isLevelAnimating;this.isLevelAnimating=Y==="speaking";!b&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=Y==="processing"&&!this.noAnimations};
_.g.setClass=function(Y){this.speechOverlayClassName&&_.U6(this.hostElement,this.speechOverlayClassName,!1);Y&&(this.speechOverlayClassName=Y,_.U6(this.hostElement,Y,!0))};
_.g.runLevelAnimation=function(){var Y=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var b=1+Math.random()*.75,w=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+w/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+b+")");_.Lb.addJob(function(){Y.runLevelAnimation()},3,w)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
T3.prototype.stateChanged=T3.prototype.stateChanged;T3.prototype.transcriptionChanged=T3.prototype.transcriptionChanged;T3.prototype.onPopupClosed=T3.prototype.onPopupClosed;T3.prototype.dataChanged=T3.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],T3.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],T3.prototype,"rendererStamperBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],T3.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],T3.prototype,"eventForwardingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],T3.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],T3.prototype,"speechOverlayState",void 0);
_.z([_.R(),_.K("design:type",Object)],T3.prototype,"microphoneSpinnerActive",void 0);_.z([_.R({type:_.q("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.K("design:type",Object)],T3.prototype,"noAnimations",void 0);_.z([_.R({selector:function(Y){var b;return(b=Y.voiceSearch)==null?void 0:b.transcription}}),
_.K("design:type",Object)],T3.prototype,"transcription",void 0);_.z([_.R({selector:function(Y){var b;return(b=Y.voiceSearch)==null?void 0:b.overlay}}),
_.K("design:type",String)],T3.prototype,"state",void 0);_.z([_.R(),_.K("design:type",Object)],T3.prototype,"boundExitClick",void 0);_.z([_.xZ("#microphone-levels"),_.K("design:type",HTMLElement)],T3.prototype,"level",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T3.prototype,"dataChanged",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T3.prototype,"onPopupClosed",null);
_.z([_.vX("transcription"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T3.prototype,"transcriptionChanged",null);_.z([_.vX("state"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],T3.prototype,"stateChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],T3);
_.a(T3,"ytd-voice-search-dialog-renderer",function(){if(Hcg!==void 0)return Hcg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-voice-search-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-voice-search-dialog-renderer">\n  <div id="header-text" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="prompt" hidden="[[!speechOverlayState.headerText]]" class="style-scope ytd-voice-search-dialog-renderer">\n      [[getSimpleString(speechOverlayState.headerText)]]\n    </div>\n    <div id="transcription-high" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionHigh]]</div>\n    <div id="transcription-low" class="style-scope ytd-voice-search-dialog-renderer">[[speechOverlayState.transcriptionLow]]</div>\n  </div>\n  <div id="exit-button" class="style-scope ytd-voice-search-dialog-renderer"></div>\n</div>\n<div id="body" class="style-scope ytd-voice-search-dialog-renderer">\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine1)]]</div>\n  <div class="body-line style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.bodyLine2)]]</div>\n</div>\n<div id="microphone" state$="[[speechOverlayState.microphoneState]]" class="style-scope ytd-voice-search-dialog-renderer">\n  <tp-yt-paper-spinner-lite active="[[microphoneSpinnerActive]]" class="style-scope ytd-voice-search-dialog-renderer">\n  </tp-yt-paper-spinner-lite>\n  <div id="microphone-container" class="style-scope ytd-voice-search-dialog-renderer">\n    <div id="microphone-pulse" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-levels" class="style-scope ytd-voice-search-dialog-renderer"></div>\n    <div id="microphone-circle" aria-label$="[[getSimpleString(speechOverlayState.microphoneAriaLabel)]]" role="button" tabindex="0" on-tap="onMicrophoneTap" class="style-scope ytd-voice-search-dialog-renderer">\n      <tp-yt-paper-ripple class="style-scope ytd-voice-search-dialog-renderer"></tp-yt-paper-ripple>\n      <yt-icon icon="yt-icons:microphone_on" class="style-scope ytd-voice-search-dialog-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="microphone-label" class="style-scope ytd-voice-search-dialog-renderer">[[getSimpleString(speechOverlayState.microphoneLabel)]]</div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Hcg=Y},{mode:1});var M5F;var Js=function(){var Y=_.F.apply(this,arguments)||this;Y.isOverlay=!1;Y.hidden=!1;return Y};
_.P(Js,_.F);_.g=Js.prototype;_.g.onPopupClosed=function(){this.toggleIconState(!1)};
_.g.computeIcon=function(){var Y,b,w;return(b=_.v((Y=this.data)==null?void 0:Y.icon,yxb))==null?void 0:(w=b.icon)==null?void 0:w.iconType};
_.g.computeIconBadgeShape=function(){var Y;return{iconBadgeType:"cart",iconBadgeText:(Y=this.iconBadgeEntity)==null?void 0:Y.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.g.onClick=function(){var Y;(Y=this.data)!=null&&Y.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.g.computeHidden=function(Y){return!Y};
_.g.toggleIconState=function(Y){this.iconButton&&(this.iconButton.pressed=Y)};
Js.prototype.onPopupClosed=Js.prototype.onPopupClosed;_.z([_.n(_.FX),_.K("design:type",Object)],Js.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Js.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Js.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Js.prototype,"isOverlay",void 0);
_.z([_.R({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.K("design:type",Object)],Js.prototype,"hidden",void 0);_.z([_.R({selectorArgs:["data.iconBadgeEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"iconBadgeEntity",b)}}),
_.K("design:type",Object)],Js.prototype,"iconBadgeEntity",void 0);_.z([_.xZ("yt-icon-button"),_.K("design:type",HTMLButtonElement)],Js.prototype,"iconButton",void 0);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Js.prototype,"onPopupClosed",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Js);
_.a(Js,"ytd-icon-badge-topbar-button-renderer",function(){if(M5F!==void 0)return M5F;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-icon-badge-topbar-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon" label="[[data.accessibilityData.accessibilityData.label]]" on-click="onClick" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  <yt-icon-badge-shape data="[[computeIconBadgeShape(iconBadgeEntity, isOverlay)]]" icon="[[computeIcon(data)]]" class="style-scope ytd-icon-badge-topbar-button-renderer">\n  </yt-icon-badge-shape>\n</yt-icon-button>\n<tp-yt-paper-tooltip class="style-scope ytd-icon-badge-topbar-button-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return M5F=Y},{mode:1});var eWX;var uq=function(){var Y=_.F.apply(this,arguments)||this;Y.premiumOptions=[];Y.darkerDarkTheme=_.q("web_darker_dark_theme");return Y};
_.P(uq,_.F);uq.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.up.Object.defineProperties(uq.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],uq.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Array)],uq.prototype,"premiumOptions",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],uq.prototype,"darkerDarkTheme",void 0);_.z([_.t("premiumOptions"),_.K("design:type",Object),_.K("design:paramtypes",[])],uq.prototype,"hasPremiumOptions",null);
_.z([_.S({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],uq);
_.a(uq,"ytd-offline-promo-content",function(){if(eWX!==void 0)return eWX;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return eWX=Y},{mode:1});var plF;var Yo=function(){var Y=_.F.apply(this,arguments)||this;Y.premiumOptions=[];return Y};
_.P(Yo,_.F);Yo.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var Y;this.premiumOptions=UV7((Y=this.data)==null?void 0:Y.formats)};
Yo.prototype.onClickSubmit=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var Y;(Y=_.V4())==null||Y.pause()};
Yo.prototype.attached=function(){this.JSC$18495_scroller&&(this.JSC$18495_scroller.dialogElement=this.hostElement.parentNode)};
_.up.Object.defineProperties(Yo.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Yo.prototype.dataChanged=Yo.prototype.dataChanged;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],Yo.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Yo.prototype,"data",void 0);
_.z([_.R({computed:"computeIcon_(data.headersIcon)",value:""}),_.K("design:type",String)],Yo.prototype,"headersIcon",void 0);_.z([_.R(),_.K("design:type",Array)],Yo.prototype,"premiumOptions",void 0);_.z([_.xZ("#scroller"),_.K("design:type",Object)],Yo.prototype,"JSC$18495_scroller",void 0);_.z([_.t("headersIcon"),_.K("design:type",Object),_.K("design:paramtypes",[])],Yo.prototype,"showIcon",null);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Yo.prototype,"dataChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Yo);
_.a(Yo,"ytd-offline-promo-renderer",function(){if(plF!==void 0)return plF;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-offline-promo-renderer">\n<div id="container" class="style-scope ytd-offline-promo-renderer">\n<yt-icon id="headers-icon" hidden="[[!showIcon]]" icon="[[headersIcon]]" class="style-scope ytd-offline-promo-renderer"></yt-icon>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-offline-promo-renderer"></yt-formatted-string>\n<ytd-offline-promo-content data="[[data]]" premium-options="[[premiumOptions]]" class="style-scope ytd-offline-promo-renderer">\n</ytd-offline-promo-content>\n<div class="buttons style-scope ytd-offline-promo-renderer">\n  <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onClickSubmit" class="style-scope ytd-offline-promo-renderer">\n  </yt-button-renderer>\n</div>\n</div>\n</tp-yt-paper-dialog-scrollable>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return plF=Y},{mode:1});var Oct;var bD=function(){var Y=_.F.apply(this,arguments)||this;Y.playbackPauseInterval=NaN;Y.isLoading=!1;Y.hasError=!1;Y.dialogClass="";Y.youtubeLabel=_.sa("LOGO_ALT_LABEL",{},"YouTube Home");Y.logoName="yt-logos-ext:yt-logo-updated";Y.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return Y};
_.P(bD,_.F);_.g=bD.prototype;_.g.onDataChange=function(){var Y;if(this.showEOMV1Text=!((Y=this.data)==null||!Y.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.g.attached=function(){this.pausePlayer()};
_.g.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.g.handleLangSelect=function(Y){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[Y.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.g.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.g.handleSaveConsent=function(Y){var b=this;this.showLoadingSpinner();this.showLoadingSpinner();Ccb(_.v(Y,$wN)).catch(function(w){_.Sk(new _.BQ("Something went wrong when save consent "+(w.message?w.message:w)+"."));b.hideLoadingSpinner();b.showErrorMessage()})};
_.g.handleDisablePersonalization=function(Y){var b=this;this.showLoadingSpinner();y6I(_.v(Y,yog)).then(function(){b.dialog.close();b.resumePlayer()}).catch(function(w){_.Sk(new _.BQ("Something went wrong when disable personalization "+(w.message?w.message:w)+"."));
b.hideLoadingSpinner();b.showErrorMessage()})};
_.g.showLoadingSpinner=function(){var Y=this;this.showSpinnerJobId=_.Lb.addLowPriorityJob(function(){Y.isLoading=!0},500)};
_.g.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Lb.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.g.showErrorMessage=function(){var Y=this;this.hasError=!0;_.Lb.addLowPriorityJob(function(){Y.hasError=!1},2E3)};
_.g.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.oV(function(){try{var Y=_.V4();Y&&Y.pause()}catch(b){}},100))};
_.g.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var Y=_.V4();Y&&Y.play()}catch(b){}};
_.up.Object.defineProperties(bD.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.eomV1Text)return[];Y=[];for(var b=["SHIELD","WARNING","BAR_CHART"],w=this.data.eomV1Text.essentialCookieMsg.items,V=0;V<b.length&&V<w.length;V++)Y.push({icon:b[V],text:w[V]});return Y}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var Y;if((Y=this.data)==null||!Y.eomV1Text)return[];Y=[];for(var b=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],w=this.data.eomV1Text.nonEssentialCookieMsg.items,V=0;V<b.length&&V<w.length;V++)Y.push({icon:b[V],text:w[V]});return Y}}});
bD.prototype.onDataChange=bD.prototype.onDataChange;_.z([_.R(),_.K("design:type",Object)],bD.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],bD.prototype,"showEOMV1Text",void 0);_.z([_.R(),_.K("design:type",Object)],bD.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Object)],bD.prototype,"hasError",void 0);_.z([_.R(),_.K("design:type",Number)],bD.prototype,"showSpinnerJobId",void 0);_.z([_.R(),_.K("design:type",Object)],bD.prototype,"dialogClass",void 0);
_.z([_.xZ("#dialog"),_.K("design:type",Object)],bD.prototype,"dialog",void 0);_.z([_.xZ("#cb-header"),_.K("design:type",HTMLElement)],bD.prototype,"header",void 0);_.z([_.xZ("#lang-select"),_.K("design:type",HTMLElement)],bD.prototype,"langSelect",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],bD.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],bD.prototype,"ytComponentBehavior",void 0);
_.z([_.R(),_.K("design:type",String)],bD.prototype,"youtubeLabel",void 0);_.z([_.R(),_.K("design:type",Object)],bD.prototype,"logoName",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],bD.prototype,"onDataChange",null);_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],bD.prototype,"eomEssentialCookieMsgItems",null);
_.z([_.t("data"),_.K("design:type",Array),_.K("design:paramtypes",[])],bD.prototype,"eomNonEssentialCookieMsgItems",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],bD);
_.a(bD,"ytd-consent-bump-v2-lightbox",function(){if(Oct!==void 0)return Oct;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-lightbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog id="dialog" class$="[[dialogClass]] style-scope ytd-consent-bump-v2-lightbox" aria-labelledby="cb-header" modal="">\n  <div class="loading-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!isLoading]]">\n    <div class="style-scope ytd-consent-bump-v2-lightbox">\n      <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-consent-bump-v2-lightbox"></tp-yt-paper-spinner-lite>\n    </div>\n    <yt-formatted-string class="loading-message style-scope ytd-consent-bump-v2-lightbox" text="[[data.loadingMessage]]">\n    </yt-formatted-string>\n  </div>\n  <div class="error-overlay style-scope ytd-consent-bump-v2-lightbox" hidden="[[!hasError]]">\n    <div class="error-message style-scope ytd-consent-bump-v2-lightbox">\n      <yt-formatted-string text="[[data.errorMessage]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n    </div>\n  </div>\n  <div id="topbar" class="style-scope ytd-consent-bump-v2-lightbox">\n    <div id="logoandaside" class="style-scope ytd-consent-bump-v2-lightbox">\n      <div id="icon-container" class="style-scope ytd-consent-bump-v2-lightbox">\n        <yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-consent-bump-v2-lightbox">\n        </yt-icon>\n      </div>\n      <yt-formatted-string class="logo-aside style-scope ytd-consent-bump-v2-lightbox" text="[[data.interstitialLogoAside]]"></yt-formatted-string>\n    </div>\n    <div class="top-buttons style-scope ytd-consent-bump-v2-lightbox">\n      <div class="lang-picker-container style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <ytd-button-renderer data="[[data.languagePickerButton.buttonRenderer]]" on-click="showLangPicker" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n        </div>\n        <div id="lang-select" class="style-scope ytd-consent-bump-v2-lightbox">\n          <select size="20" on-change="handleLangSelect" class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[data.languageList.dropdownRenderer.entries]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <template is="dom-if" if="[[item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option selected="" class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n              <template is="dom-if" if="[[!item.dropdownItemRenderer.isSelected]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                <option class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.dropdownItemRenderer.label]]" class="style-scope ytd-consent-bump-v2-lightbox">\n                  </yt-formatted-string>\n                </option>\n              </template>\n            </template>\n          </select>\n        </div>\n      </div>\n\n      <div class="style-scope ytd-consent-bump-v2-lightbox">\n        <ytd-button-renderer class="signin style-scope ytd-consent-bump-v2-lightbox" data="[[data.signInButton.buttonRenderer]]"></ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n  <div id="content" class="style-scope ytd-consent-bump-v2-lightbox">\n    <template is="dom-if" if="[[showEOMV1Text]]" restamp="" class="style-scope ytd-consent-bump-v2-lightbox">\n      <h2 tabindex="-1" id="cb-header" class="eom-title style-scope ytd-consent-bump-v2-lightbox">\n        <yt-formatted-string text="[[data.interstitialTitle]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n      </h2>\n      <div class="ica-claimer style-scope ytd-consent-bump-v2-lightbox" hidden="[[!data.icaClaimer]]">\n        <yt-formatted-string text="[[data.icaClaimer]]" class="style-scope ytd-consent-bump-v2-lightbox"> </yt-formatted-string>\n      </div>\n      <div class="body style-scope ytd-consent-bump-v2-lightbox">\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.essentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox">\n            </yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="style-scope ytd-consent-bump-v2-lightbox">\n          <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n            <yt-formatted-string text="[[data.eomV1Text.nonEssentialCookieMsg.begin]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n          </div>\n          <ul class="style-scope ytd-consent-bump-v2-lightbox">\n            <template is="dom-repeat" items="[[eomNonEssentialCookieMsgItems]]" class="style-scope ytd-consent-bump-v2-lightbox">\n              <li class="icon-li style-scope ytd-consent-bump-v2-lightbox">\n                <yt-icon class="item-icon style-scope ytd-consent-bump-v2-lightbox" icon="[[item.icon]]"></yt-icon>\n                <div class="style-scope ytd-consent-bump-v2-lightbox">\n                  <yt-formatted-string text="[[item.text]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n                </div>\n              </li>\n            </template>\n          </ul>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.ifReject]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.personalization]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="legal-text style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string text="[[data.eomV1Text.moreOptions]]" class="style-scope ytd-consent-bump-v2-lightbox"></yt-formatted-string>\n        </div>\n        <div class="eom-buttons style-scope ytd-consent-bump-v2-lightbox">\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.disableP13nButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n            <ytd-button-renderer data="[[data.agreeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n          <div class="eom-button-row style-scope ytd-consent-bump-v2-lightbox">\n            <ytd-button-renderer data="[[data.customizeButton.buttonRenderer]]" class="style-scope ytd-consent-bump-v2-lightbox"></ytd-button-renderer>\n          </div>\n        </div>\n        <div class="termlinks style-scope ytd-consent-bump-v2-lightbox">\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" sec="" text="[[data.privacyLink]]"></yt-formatted-string>\n          \n          \n          <span class="term_separator style-scope ytd-consent-bump-v2-lightbox" aria-hidden="true">\u2022</span>\n          <yt-formatted-string class="link style-scope ytd-consent-bump-v2-lightbox" link-inherit-color="" text="[[data.termsLink]]"></yt-formatted-string>\n        </div>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return Oct=Y},{mode:1});var t5F;var w8=function(){return _.F.apply(this,arguments)||this};
_.P(w8,_.F);w8.prototype.ready=function(){if(!_.vQ()||cjQ)var Y=!0;else cjQ=!0,Y=!1;Y||(Y=document.querySelector("ytd-app"),Y||(Y=document.body),this.internalLightBox=_.E6(Y).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.z([_.R(),_.K("design:type",Object)],w8.prototype,"data",void 0);_.z([_.xZ("#lightbox"),_.K("design:type",Object)],w8.prototype,"lightBox",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],w8);
_.a(w8,"ytd-consent-bump-v2-renderer",function(){if(t5F!==void 0)return t5F;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-consent-bump-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-consent-bump-v2-lightbox id="lightbox" data="[[data]]" class="style-scope ytd-consent-bump-v2-renderer"></ytd-consent-bump-v2-lightbox>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return t5F=Y},{mode:1});var RWt;var dHN;var FNQ;var VR=function(){var Y=_.F.apply(this,arguments)||this;Y.ephemeralActionsEnabled=_.q("web_ephemeral_actions");return Y};
_.P(VR,_.F);_.g=VR.prototype;_.g.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&QRR(this.toastManager,this.toastType)};
_.g.open=function(Y){this.toast&&(this.ephemeralAction&&_.fH().resolve(_.Dh).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=Y!=null?Y:0,this.toastManager.enqueue(this.toast,Y)):this.toast.open())};
_.g.close=function(Y){var b;(b=this.toast)==null||b.close();this.toastManager&&Y===1&&QRR(this.toastManager,Y)};
_.g.refit=function(){var Y;(Y=this.toast)==null||Y.refit()};
_.g.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var Y;(Y=this.toast)==null||Y.close()}};
_.g.setVerticalOffset=function(Y){this.toast&&(this.toast.verticalOffset=Y,this.toast.fit())};
_.g.computeButtonClass_=function(Y){return Y?"toast-button":""};
_.g.computeText_=function(Y){return _.Tx(Y)};
_.g.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Cn("toast-opened-changed",this.toastOpened))};
_.g.updateToastOpenedFromBinding=function(Y){this.toastOpened=Y.detail.value};
_.up.Object.defineProperties(VR.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var Y,b,w=(Y=this.data)==null?void 0:(b=Y.actionButton)==null?void 0:b.buttonRenderer;return(w==null?void 0:w.command)||(w==null?void 0:w.serviceEndpoint)||(w==null?void 0:w.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var Y=[],b;((b=this.data)==null?0:b.responseText)&&Y.push(_.Tx(this.data.responseText));var w;((w=this.data)==null?0:w.subText)&&Y.push(_.Tx(this.data.subText));var V,H;if((V=this.data)==null?0:(H=V.actionButton)==null?0:H.buttonRenderer){var f,E;Y.push(((f=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(E=f.accessibilityData)==null?void 0:E.label)||_.Tx(this.data.actionButton.buttonRenderer.text))}return Y.filter(function(U){return U}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var Y,b;return(b=(Y=this.toast)==null?void 0:Y.opened)!=null?b:!1}}});
VR.prototype.toastOpenedChangedForBinding=VR.prototype.toastOpenedChangedForBinding;VR.prototype.toastOpenedChanged=VR.prototype.toastOpenedChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],VR.prototype,"ytEventForwardingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],VR.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],VR.prototype,"duration",void 0);
_.z([_.R(),_.K("design:type",Number)],VR.prototype,"toastType",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],VR.prototype,"useCloseButton",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],VR.prototype,"closeToastOnActionButtonClick",void 0);_.z([_.R({value:function(){return _.sa("SBOX_INAPPROPRIATE_CANCEL")}}),
_.K("design:type",String)],VR.prototype,"closeButtonAriaLabel",void 0);_.z([_.R(),_.K("design:type",Boolean)],VR.prototype,"toastOpened",void 0);_.z([_.R(),_.K("design:type",Boolean)],VR.prototype,"hasOpened",void 0);_.z([_.R(),_.K("design:type",Object)],VR.prototype,"ephemeralActionsEnabled",void 0);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],VR.prototype,"command",null);
_.z([_.t("ephemeralActionsEnabled","labelText","command","duration"),_.K("design:type",Object),_.K("design:paramtypes",[])],VR.prototype,"ephemeralAction",null);_.z([_.t("ephemeralAction"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],VR.prototype,"hasEphemeralAction",null);_.z([_.xZ("#toast"),_.K("design:type",Object)],VR.prototype,"toast",void 0);_.z([_.R({value:function(){return{style:"call-to-action-inverse"}}}),
_.K("design:type",Object)],VR.prototype,"buttonOverrides",void 0);_.z([_.R({value:{style:"mono-inverse"}}),_.K("design:type",Object)],VR.prototype,"closeButtonOverrides",void 0);_.z([_.R({value:function(){return _.fH().resolve(_.HQ(_.fq))}}),
_.K("design:type",Object)],VR.prototype,"toastManager",void 0);_.z([_.t("data.responseText","data.subText","data.actionButton"),_.K("design:type",Object),_.K("design:paramtypes",[])],VR.prototype,"labelText",null);_.z([_.lr("toastOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],VR.prototype,"toastOpenedChanged",null);
_.z([_.lr("toastOpened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],VR.prototype,"toastOpenedChangedForBinding",null);_.z([_.FM({is:"yt-notification-action-renderer",disableElementRegistration:!0})],VR);
_.a(VR,"yt-notification-action-renderer",function(){if(FNQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-notification-action-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_notification_action_renderer.yt.notification.action.renderer.css.js--\x3e\n<tp-yt-paper-toast id="toast" class$="[[computeButtonClass_(data.actionButton.buttonRenderer)]] style-scope yt-notification-action-renderer" allow-click-through="" announce-label-updates="" aria-label="toast" duration="[[duration]]" label="[[labelText]]" no-iron-announce="[[hasEphemeralAction]]" opened="[[toastOpened]]" role="region" on-opened-changed="updateToastOpenedFromBinding">\n  <div id="text-container" class="style-scope yt-notification-action-renderer">\n    <yt-formatted-string id="text" respect-html-dir="" split-lines="" text="[[data.responseText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="sub-text" hidden="[[!data.subText]]" respect-html-dir="" split-lines="" text="[[data.subText]]" class="style-scope yt-notification-action-renderer">\n    </yt-formatted-string>\n  </div>\n  <template is="dom-if" if="[[data.actionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" overrides="[[buttonOverrides]]" on-tap="tapClose" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-button-renderer id="close-action-button" data="[[data.closeActionButton.buttonRenderer]]" overrides="[[closeButtonOverrides]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n    </yt-button-renderer>\n  </template>\n  <template is="dom-if" if="[[!data.closeActionButton]]" class="style-scope yt-notification-action-renderer">\n    <yt-icon-button id="close-button" hidden="[[!useCloseButton]]" label="[[closeButtonAriaLabel]]" on-tap="close" class="style-scope yt-notification-action-renderer">\n      <yt-icon icon="yt-icons:close" class="style-scope yt-notification-action-renderer"></yt-icon>\n    </yt-icon-button>\n  </template>\n  <slot class="style-scope yt-notification-action-renderer"></slot>\n</tp-yt-paper-toast>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;dHN===void 0&&(dHN=document.createElement("template"));var V=dHN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);FNQ=Y}Y=FNQ;return Y},{mode:2});var Hn=function(){var Y=_.F.apply(this,arguments)||this;Y.duration=4E3;Y.downloadingCount=0;Y.downloadedCount=0;Y.downloadingOnlySmartDownloads=!1;Y.sessionTotalDownloads=0;Y.sessionDownloaded=0;Y.previousSessionsDownloaded=0;Y.totalDownloadPercentage=0;Y.currentDownloadProgress=0;Y.currentDownloadPercentage=0;Y.isLeaderTab=!0;Y.isFullScreen=!1;Y.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};Y.boundBeforeUnload=function(b){Y.isLeaderTab&&Y.downloadingCount>0&&(b.preventDefault(),
b.returnValue=!0)};
return Y};
_.P(Hn,_.F);_.g=Hn.prototype;
_.g.open=function(){this.updateDownloadState();if(this.data){var Y=this.sessionDownloaded+1,b=this.sessionTotalDownloads>1?_.sa("VIDEOS_DOWNLOADING_RATIO",{downloaded:Y.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+Y+"/"+this.sessionTotalDownloads):_.sa("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(b=this.sessionTotalDownloads>1?_.sa("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:Y.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
Y+"/"+this.sessionTotalDownloads):_.sa("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));Y=this.isLeaderTab?_.sa("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Tx(this.data.responseText)!==b||_.Tx(this.data.subText)!==Y)this.set("data.responseText",_.Gx(b)),this.set("data.subText",_.Gx(Y)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.g.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.g.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.g.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.g.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var Y=this.downloadedCount-this.previousSessionsDownloaded;Y<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-Y);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.g.handleFullscreenChange=function(Y){(this.isFullScreen=Y)||this.updatePopup()};
Hn.prototype.updateCurrentDownloadProgress=Hn.prototype.updateCurrentDownloadProgress;Hn.prototype.updatePopup=Hn.prototype.updatePopup;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],Hn.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],Hn.prototype,"ytEventForwardingBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Hn.prototype,"actionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Hn.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Hn.prototype,"duration",void 0);_.z([_.R({selector:function(Y){return _.Q$b(Y.entities).length}}),
_.K("design:type",Object)],Hn.prototype,"downloadingCount",void 0);_.z([_.R({selector:wOI}),_.K("design:type",Object)],Hn.prototype,"downloadedCount",void 0);_.z([_.R({selector:function(Y){var b=_.Q$b(Y.entities);return bbI(Y.entities,b)}}),
_.K("design:type",Object)],Hn.prototype,"downloadingOnlySmartDownloads",void 0);_.z([_.R(),_.K("design:type",Object)],Hn.prototype,"sessionTotalDownloads",void 0);_.z([_.R(),_.K("design:type",Object)],Hn.prototype,"sessionDownloaded",void 0);_.z([_.R(),_.K("design:type",Object)],Hn.prototype,"previousSessionsDownloaded",void 0);_.z([_.R(),_.K("design:type",Object)],Hn.prototype,"totalDownloadPercentage",void 0);
_.z([_.R({selector:function(Y){var b;Y=(b=_.Q$b(Y.entities))!=null?b:[];return Y.length>0?_.dwa(Y.slice(-1)):0}}),
_.K("design:type",Object)],Hn.prototype,"currentDownloadProgress",void 0);_.z([_.R(),_.K("design:type",Object)],Hn.prototype,"currentDownloadPercentage",void 0);_.z([_.R({selector:_.BYr}),_.K("design:type",Object)],Hn.prototype,"isLeaderTab",void 0);_.z([_.xZ("yt-notification-action-renderer"),_.K("design:type",Object)],Hn.prototype,"notificationActionRenderer",void 0);
_.z([_.vX("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hn.prototype,"updatePopup",null);_.z([_.vX("currentDownloadProgress"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Hn.prototype,"updateCurrentDownloadProgress",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Hn);
_.a(Hn,"ytd-video-download-toast-renderer",function(){if(RWt!==void 0)return RWt;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-download-toast-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-notification-action-renderer id="notification" class="is-download style-scope ytd-video-download-toast-renderer" data="[[data]]" duration="[[duration]]" use-close-button=""><tp-yt-paper-progress class="transiting style-scope ytd-video-download-toast-renderer" value="[[currentDownloadPercentage]]"></tp-yt-paper-progress></yt-notification-action-renderer>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return RWt=Y},{mode:1});var LN7;var S7N;var g8=function(){return _.F.apply(this,arguments)||this};
_.P(g8,_.F);g8.prototype.computeIsRedLogo=function(Y,b){!Y&&b&&(Y=b);return Y==="YOUTUBE_RED_LOGO"||Y==="YOUTUBE_PREMIUM_LOGO"};
g8.prototype.computeLogoName=function(Y){Y=this.componentBehavior.computeIcon_(Y);return Y===""?"yt-logos-ext:yt-logo-updated":Y};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],g8.prototype,"componentBehavior",void 0);_.z([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.K("design:type",Boolean)],g8.prototype,"isRedLogo",void 0);_.z([_.R({computed:"computeLogoName(data)"}),_.K("design:type",String)],g8.prototype,"logoName",void 0);_.z([_.R({value:{}}),_.K("design:type",Object)],g8.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],g8.prototype,"logoType",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-logo"})],g8);
_.a(g8,"ytd-logo",function(){if(S7N!==void 0)return S7N;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-logo--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon id="logo-icon" icon="[[logoName]]" class="style-scope ytd-logo">\n</yt-icon>');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return S7N=Y},{mode:_.Xd("kevlar_poly_si_batch_j074")?1:2});var fO=function(){var Y=_.F.apply(this,arguments)||this;Y.animationRef={};return Y};
_.P(fO,_.F);_.g=fO.prototype;_.g.attached=function(){document.addEventListener("yt-navigate-finish",_.Io(this,this.logYoodle))};
_.g.detached=function(){document.removeEventListener("yt-navigate-finish",_.Io(this,this.logYoodle))};
_.g.logYoodle=function(){var Y,b;if((Y=this.data)==null?0:(b=Y.loggingDirectives)==null?0:b.trackingParams)this.ytRendererBehavior.markDirty(),_.Qd().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.g.computeHideImg=function(Y,b){return!!Y||!!b};
_.g.computeHideYtdLogo=function(Y,b){return!Y||!!b};
_.g.computeHideLottie=function(Y){return!Y};
_.g.computeIsRedLogo=function(Y){return Y==="YOUTUBE_RED_LOGO"||Y==="YOUTUBE_PREMIUM_LOGO"};
_.g.renderLogoEntity=function(){var Y=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),w=this.getLogoTitleText(this.data),V=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==Y&&(this.url=Y);this.animatedUrl!==b&&(this.animatedUrl=b);this.logoTitleText!==w&&(this.logoTitleText=w);this.lottieUrl!==V&&(this.lottieUrl=V,this.lottiePlayerProps=this.computeLottiePlayerProps(V))};
_.g.getSanitizedThumbnail=function(Y){return Y&&Y.thumbnails?_.GNu(Y.thumbnails,122)||"":""};
_.g.getThumbnailUrl=function(Y,b){if(!b)return"";var w,V;Y=Y?(w=b.darkThemeLogo)==null?void 0:w.thumbnail:(V=b.lightThemeLogo)==null?void 0:V.thumbnail;return this.getSanitizedThumbnail(Y)};
_.g.getAnimatedThumbnailUrl=function(Y,b){return b?this.getSanitizedThumbnail(Y?b.darkThemeAnimatedLogo:b.lightThemeAnimatedLogo):""};
_.g.getLogoTitleText=function(Y){if(Y)return _.Tx(Y.tooltipText)};
_.g.computeLogoIcon=function(Y,b){if(b){var w,V;return Y?(w=b.darkThemeLogo)==null?void 0:w.icon:(V=b.lightThemeLogo)==null?void 0:V.icon}};
_.g.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.g.getLottieUrl=function(Y,b){var w,V,H,f;return Y?b==null?void 0:(w=b.darkThemeLogo)==null?void 0:(V=w.lottieAnimation)==null?void 0:V.url:b==null?void 0:(H=b.lightThemeLogo)==null?void 0:(f=H.lottieAnimation)==null?void 0:f.url};
_.g.computeLottiePlayerProps=function(Y){if(Y){var b;if((b=this.animationRef)==null?0:b.lottieEl){var w;(w=this.animationRef)==null||w.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:Y,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.g.onLottieError=function(){this.data&&this.lottieUrl&&_.Ua(this.hostElement,"yoodle-error")};
_.g.onImgError=function(){this.data&&!this.lottieUrl&&_.Ua(this.hostElement,"yoodle-error")};
fO.prototype.playAnimation=fO.prototype.playAnimation;fO.prototype.renderLogoEntity=fO.prototype.renderLogoEntity;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],fO.prototype,"data",void 0);_.z([_.R({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.K("design:type",Boolean)],fO.prototype,"hideImg",void 0);
_.z([_.R({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.K("design:type",Boolean)],fO.prototype,"hideYtdLogo",void 0);_.z([_.R({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.K("design:type",Boolean)],fO.prototype,"hideLottie",void 0);_.z([_.R({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.K("design:type",Boolean)],fO.prototype,"isRedLogo",void 0);
_.z([_.R(),_.K("design:type",Boolean)],fO.prototype,"useDarkThemeYoodle",void 0);_.z([_.R(),_.K("design:type",String)],fO.prototype,"url",void 0);_.z([_.R(),_.K("design:type",String)],fO.prototype,"animatedUrl",void 0);_.z([_.R(),_.K("design:type",String)],fO.prototype,"logoTitleText",void 0);_.z([_.R({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.K("design:type",Object)],fO.prototype,"logoIcon",void 0);_.z([_.R(),_.K("design:type",Object)],fO.prototype,"logoType",void 0);
_.z([_.R(),_.K("design:type",String)],fO.prototype,"lottieUrl",void 0);_.z([_.R(),_.K("design:type",Object)],fO.prototype,"lottiePlayerProps",void 0);_.z([_.R(),_.K("design:type",Object)],fO.prototype,"animationRef",void 0);_.z([_.lr("data"),_.lr("useDarkThemeYoodle"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],fO.prototype,"renderLogoEntity",null);
_.z([_.kZ("click"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],fO.prototype,"playAnimation",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],fO);
_.a(fO,"ytd-yoodle-renderer",function(){if(LN7!==void 0)return LN7;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return LN7=Y},{mode:_.Xd("kevlar_poly_si_batch_j074")?1:2});var aSR;var rfQ;var NO=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return Y};
_.P(NO,_.F);_.g=NO.prototype;_.g.onYoodleError=function(){_.q("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.g.computeLogoName=function(Y){Y=this.componentBehavior.computeIcon_(Y);return Y===""?"yt-logos-ext:yt-logo-updated":Y};
_.g.computeTitle=function(Y,b,w){return w&&(b==null?0:b.tooltipText)?_.Tx(b.tooltipText):_.Tx(Y)};
_.g.computeAriaLabel=function(Y,b,w){return w&&(b==null?0:b.tooltipText)?_.Tx(Y):""};
_.g.computeShowYoodle=function(Y,b,w){return!Y||!b&&!!w&&!_.BL.isEmpty(w)};
_.g.onNavigateHomeAction=function(){if(_.q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var Y;(Y=_.E6(this.hostElement).querySelector(".yt-simple-endpoint"))==null||Y.click()}};
_.g.computeLogoHref=function(Y,b,w){var V;(w==null?0:w.onTapCommand)?V=this.componentBehavior.computeHref_(w.onTapCommand):Y&&(V=this.componentBehavior.computeHref_(Y));return V?V:b};
_.g.computeCommand=function(Y,b){return(b==null?void 0:b.onTapCommand)||Y};
_.g.getEndpointForm=function(){if(_.q("kevlar_topbar_disable_cache_only_home")){var Y=_.fH().resolve(_.i4),b=EP7(Y.getState())||"";Y=_.$Be(Y.getState())||"";return{disableCache:b==="ytd-browse"&&Y==="home"}}return{disableCache:!0}};
NO.prototype.onYoodleError=NO.prototype.onYoodleError;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],NO.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],NO.prototype,"componentBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],NO.prototype,"ytdReduxBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],NO.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],NO.prototype,"countryCode",void 0);_.z([_.R({selectorArgs:["data.overrideEntityKey"],selector:function(Y,b){return _.kt(Y.entities,"logoEntity",b)}}),
_.K("design:type",Object)],NO.prototype,"logoEntity",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.K("design:type",Boolean)],NO.prototype,"showYoodle",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],NO.prototype,"yoodleError",void 0);_.z([_.R({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.K("design:type",String)],NO.prototype,"titleText",void 0);
_.z([_.R({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.K("design:type",String)],NO.prototype,"ariaLabelText",void 0);_.z([_.R({value:"/"}),_.K("design:type",String)],NO.prototype,"defaultEndpointUrl",void 0);_.z([_.R({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.K("design:type",String)],NO.prototype,"endpointUrl",void 0);
_.z([_.R({computed:"computeCommand(data.endpoint, logoEntity)"}),_.K("design:type",String)],NO.prototype,"command",void 0);_.z([_.R(),_.K("design:type",Object)],NO.prototype,"logoType",void 0);_.z([_.R({}),_.K("design:type",Boolean)],NO.prototype,"useDarkThemeYoodle",void 0);_.z([_.kZ("yoodle-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],NO.prototype,"onYoodleError",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],NO);
_.a(NO,"ytd-topbar-logo-renderer",function(){if(rfQ!==void 0)return rfQ;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topbar-logo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a aria-label="[[ariaLabelText]]" class="yt-simple-endpoint style-scope ytd-topbar-logo-renderer" href$="[[endpointUrl]]" id="logo" data="[[command]]" title="[[titleText]]" get-form="[[getEndpointForm]]">\n  <div hidden="[[showYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n    <ytd-logo data="[[data.iconImage]]" logo-type="[[logoType]]" class="style-scope ytd-topbar-logo-renderer">\n    </ytd-logo>\n  </div>\n  <ytd-yoodle-renderer data="[[logoEntity]]" hidden="[[!showYoodle]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[useDarkThemeYoodle]]" class="style-scope ytd-topbar-logo-renderer">\n  </ytd-yoodle-renderer>\n</a>\n<span hidden="[[showYoodle]]" id="country-code" class="style-scope ytd-topbar-logo-renderer">\n  [[countryCode]]\n</span>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return rfQ=Y},{mode:_.Xd("kevlar_poly_si_batch_j027")?1:2});var zWA=0;var WNX=_.iK.SEARCH_APPEND_LABEL,KNg=_.iK.SUGGESTION_NEW_VIDEOS_TEXT,ict=_.iK.SUGGESTION_THUMBNAIL_LABEL,Afd=_.iK.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,CPX=_.b8(function(Y){function b(MQ){var DA,Eu;return _.c(function(EX){if(EX.nextAddress==1)return DA=new Request(MQ),_.ct(EX,2),_.D(EX,fetch(DA,{credentials:"include"}),4);if(EX.nextAddress!=2)return Dg(!0),_.$u(EX,0);Eu=_.mS(EX);_.Sk(Eu);_.om(EX)})}
var w=Y.isHighlighted;var V=Y.suggestion;var H=Y.onClickCallback;var f=Y.onHoverUpdateCallback;var E=Y.labels;var U=Y.queryBuilderFunction;var X=Y.onRemoveCallback;var I=Y.suggestionIndex;var k=Y.generateUniqueId;var l=Y.highlightedId;var x=Y.useScrollMargin;var Q=Y.isKeyboardMode;var Z=null,e=null,O=_.GM("div"),L=_.GM("span");Y=_.N(_.kw(!1,void 0,"CgAMgc"));var r=Y.next().value,C=Y.next().value,W=_.TM("a",function(MQ){MQ&&_.zi(237477,MQ,e,function(DA){e=DA})}),y=_.TM("button",function(MQ){MQ&&_.zi(237477,
MQ,e,function(DA){e=DA})}),G=_.Q_(function(MQ){if((MQ==null?void 0:MQ.button)===2)return MQ.preventDefault(),!1;
var DA=_.dO();DA&&Z&&_.un(DA,Z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Eu;H(MQ,V().text,V().index,V().entityMid,MQ==null?void 0:(Eu=MQ.detail)==null?void 0:Eu.wasSelectedByKeyboard);return!1}),Nr=function(){return V().type===35},o6=function(){return _.q("desktop_enable_single_suggestion_highlight")},lI=function(){return _.cQ("desktop_suggestions_panel_row_height")||0},Zt=function(){var MQ;
return _.q("desktop_enable_new_video_metadata")&&((MQ=V())==null?void 0:MQ.hasNewVideo)===!0},eL=function(){return _.q("desktop_enable_visual_suggest")},OM=function(){return _.q("desktop_enable_entity_suggest")&&hWt(V())},iI=function(){return V().entitySubtitle},rB=function(){return o6()?(w==null?void 0:w())||qQ()&&!(Q==null?0:Q()):(w==null?void 0:w())||qQ()},Tj=function(){var MQ=_.zO("SBOX_SETTINGS");
return Nr()&&!(MQ==null?0:MQ.HIDE_REMOVE_LINK)},J_=function(){return xHR(V(),{useEntityName:OM()})},B9,ok=!((B9=_.fH().resolve(_.HQ(_.GT)))==null||!B9()),Ut=function(){return Nr()?_.q("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},wt=function(){return E==null?void 0:E().SUGGESTION_DISMISS_LABEL},X$=function(){return E==null?void 0:E().SUGGESTION_DISMISSED_LABEL};
Y=_.N(_.kw(!1,void 0,"RcUcKd"));B9=Y.next().value;var Dg=Y.next().value;Y=_.N(_.kw(!1,void 0,"yGR7je"));var eQ=Y.next().value,cg=Y.next().value,qQ=eQ,t_=_.Q_(function(){U(L.value.innerText);return!1}),$s=_.Q_(function(MQ){MQ.preventDefault();
return!1}),P9=_.Q_(function(MQ){var DA=V().text,Eu=_.zO("SBOX_SETTINGS"),EX="https://"+(Eu.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
EX+="&delq="+encodeURIComponent(DA);(DA=Eu==null?void 0:Eu.PSUGGEST_TOKEN)&&(EX+="&tok="+DA);(Eu=Eu==null?void 0:Eu.SESSION_INDEX)&&(EX+="&authuser="+Eu);b(EX);MQ.preventDefault();(MQ=_.dO())&&e&&_.un(MQ,e,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");X(I==null?void 0:I());return!1}),$d=_.Q_(function(){if(o6()&&(Q==null?0:Q()))return!1;
cg(!0);f(!0);return!1}),Kh=_.Q_(function(){cg(!1);
f(!1);return!1}),yr=_.Q_(function(){C(!0);
return!1}),gU=_.Q_(function(){C(!1);
return!1}),rU=_.Q_(function(MQ){MQ.preventDefault();
var DA;(MQ=(DA=V().entityThumbnailAttributionUrl)!=null?DA:"")&&_.lLu(MQ);return!1});
Y=_.N(_.kw("",void 0,"k9uVge"));var xs=Y.next().value,xd=Y.next().value;_.tq(function(){Tj()&&xd(k==null?void 0:k(I==null?void 0:I()));O.value&&_.zi(12453,O.value,Z,function(MQ){Z=MQ})});
return _.m(_.h,{cond:B9,then:function(){var MQ={};return _.m("div",{class:_.hj("ytSuggestionComponentRemovedText",(MQ.ytSuggestionComponentLargerRemovedText=function(){return eL()},MQ)),
style:function(){return lI()>0?"height: "+lI()+"px;":""},
role:"button"},X$)},
else:function(){var MQ={},DA={};return _.m("div",{class:_.hj("ytSuggestionComponentSuggestion",(MQ.ytSuggestionComponentSuggestionHover=function(){return!o6()},MQ.ytSuggestionComponentHighlighted=rB,MQ.ytSuggestionComponentPersonalizedSuggestion=Nr,MQ.ytSuggestionComponentMweb=!1,MQ.ytSuggestionComponentLargerSuggestion=function(){return Zt()||eL()},MQ.ytSuggestionComponentThumbnailSuggestion=function(){return eL()},MQ.ytSuggestionComponentRoundedSuggestion=function(){return _.q("desktop_enable_scrollable_suggestions_panel")&&
_.q("desktop_enable_suggestions_panel_padding")},MQ.ytSuggestionComponentThumbnailPadding=function(){return eL()&&!Nr()},MQ)),
style:function(){return lI()>0?"height: "+lI()+"px;":""},
role:"presentation","on:mousedown":G,"on:mouseover":$d,"on:mouseout":Kh,el:O},_.m("div",{class:_.hj("ytSuggestionComponentText",(DA.ytSuggestionComponentScrollMargin=x,DA)),"aria-label":function(){return Zt()?V().text+" "+KNg:V().text},
id:function(){return k==null?void 0:k(I==null?void 0:I())},
"on:mousedown":G,role:"option"},_.m(_.h,{cond:function(){return V().type!==33},
then:function(){return _.m(_.n_,{icon:Ut,className:"ytSuggestionComponentIcon"})}}),_.m("div",{class:"ytSuggestionComponentLeftContainer"},_.m("span",{el:L,
role:"button",tabindex:0},_.m(_.Bf,{each:J_},function(Eu){return Eu.bold?_.m("span",{class:"ytSuggestionComponentBold"},Eu.text):_.m("span",null,Eu.text)})),_.m(_.h,{cond:function(){return OM()&&!!V().entitySubtitle||Zt()},
then:function(){return _.m("div",{class:"ytSuggestionComponentMetadataContainer"},_.m(_.h,{cond:function(){return OM()&&!!V().entitySubtitle},
then:function(){return _.m("div",{class:"ytSuggestionComponentEntitySubtitle"},iI)}}),_.m(_.h,{cond:function(){return Zt()},
then:function(){return _.m("div",{class:"ytSuggestionComponentNewVideoContainer"},_.m("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.m("div",{class:"ytSuggestionComponentNewVideoText"},KNg))}}))}}))),_.m("div",{class:"ytSuggestionComponentRightContainer"},_.m(_.h,{cond:function(){return eL()&&V().visualSuggestUrl!==void 0},
then:function(){var Eu={};return _.m("div",{class:"ytSuggestionComponentThumbnailContainer"},_.m("img",{"aria-label":ict,class:_.hj("ytSuggestionComponentVisualSuggestThumbnail",(Eu.ytSuggestionComponentCircularFrame=function(){return OM()&&V().subtypes.includes(790)},Eu.ytSuggestionComponentEntitySuggestThumbnail=function(){return OM()},Eu)),
src:function(){return V().visualSuggestUrl}}),_.m(_.h,{cond:function(){return OM()&&!!V().entityThumbnailAttributionUrl},
then:function(){var EX={};return _.m("span",{title:Afd,role:"tooltip"},_.m("div",{"on:mouseover":yr,"on:mouseout":gU,"on:mousedown":rU,class:_.hj("ytSuggestionComponentThumbnailOverlay",(EX.ytSuggestionComponentThumbnailOverlayHidden=function(){return!r()},EX))},_.m(_.n_,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.m(_.e4,null,_.m(_.n7,{when:function(){return eL()&&Tj()}},function(){var Eu={};
return _.m("button",{class:_.hj("ytSuggestionComponentRemoveLinkClearButton",(Eu.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return xs()&&xs()===(l==null?void 0:l())},Eu.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!rB()},Eu)),
el:y,"on:mousedown":P9,"aria-label":wt,id:function(){return xs()}},_.m(_.n_,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.m(_.n7,{when:function(){return!(eL()&&V().visualSuggestUrl!==void 0)&&Tj()}},function(){var Eu={};
return _.m("a",{class:_.hj("ytSuggestionComponentRemoveLink",(Eu.ytSuggestionComponentRemoveLinkDark=ok,Eu.ytSuggestionComponentRemoveLinkSelected=function(){return xs()&&xs()===(l==null?void 0:l())},Eu)),
el:W,"on:mousedown":P9,"aria-label":wt,tabindex:0,role:"button",id:function(){return xs()}},wt)}),_.m(_.n7,{when:function(){return!1}},function(){return _.m("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":t_,"on:mousedown":$s,role:"button","aria-label":WNX},_.m(_.n_,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"tg");var yfg=_.b8(function(){return _.m("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.m("button",{class:"ytdTextInputAssistantButton","on:click":_.Q_(function(){vkX().inputMethodsTracker.add(3);var Y,b=(Y=_.zO("SBOX_SETTINGS"))==null?void 0:Y.REQUEST_LANGUAGE;if(b)return _.io("//www.google.com/textinputassistant/14/"+b+"_tia.js"),!1})},_.m("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"ug");var $Hg=function(){this.cache=new Map},jX7=function(Y){for(var b=_.N(Y.cache.entries()),w=b.next();!w.done;w=b.next()){var V=_.N(w.value);
w=V.next().value;V=V.next().value;V.suggestions.some(function(H){return H.type===35})&&Y.cache.delete(w)}};var GAd=_.iK.SEARCH,Tzt=_.iK.SEARCH_CLEAR_LABEL,Jft=new _.Hx("FAKE_SUGGEST_RESPONSE");_.f_(_.b8(function(Y){function b(){yr||(yr=setTimeout(function(){rU()},1E3))}
function w(h_,kd,qF){if(h_.trim()){Kh=h_;_.rx("REFINEMENTS_TUPLE",void 0);P9=!0;var mv;kd=BzO(eQ,kd);var fo=(mv=Y.searchEndpoint)==null?void 0:mv.call(Y);mv=Ut.value.value;fo||(fo=xlR);var xH;(xH=_.v(fo.commandMetadata,_.g5))!=null&&xH.url||(xH=Error("pl`"+JSON.stringify(fo)),_.Ft(xH),fo=xlR);xH=_.BL.unsafeClone(fo);fo=_.zM(_.v(xH.commandMetadata,_.g5).url,"search_query",h_);_.CC(location.href,"sv")==="1"&&(_.v(xH,_.vH).params="EgOAAgE%3D",fo=_.zM(fo,"sv","1"));_.v(xH,_.vH)&&(_.v(xH,_.vH).query=h_);
fo=fo.replace(/%20/g,"+");_.v(xH.commandMetadata,_.g5).url=fo;qF=_.q("desktop_enable_entity_suggest")?{entityMid:qF}:{};_.fH().resolve(_.Nn).resolveCommand(xH,{form:{tempData:Object.assign({},{gs_l:kd,oq:mv!=null?mv:h_},qF)}});rU();Ut.value.value=h_;Ut.value.blur();eQ.reset()}}
function V(h_){return _.c(function(kd){return kd.return(new Promise(function(qF){var mv=new XMLHttpRequest;mv.open("GET",XlX(h_),!0);mv.withCredentials=!0;var fo=_.zO("SBOX_SETTINGS");(fo==null?0:fo.SEND_VISITOR_DATA)&&mv.setRequestHeader("X-Goog-Visitor-Id",fo==null?void 0:fo.VISITOR_DATA);mv.onload=function(){qF(mv.responseText)};
mv.onerror=function(){_.Sk(Error("ql"));qF(null)};
setTimeout(function(){mv.abort()},1E4);
mv.send(null)}))})}
function H(h_){var kd,qF,mv,fo;return _.c(function(xH){switch(xH.nextAddress){case 1:return kd={credentials:"include",headers:UHR()},window.AbortController&&(qF=new AbortController,setTimeout(function(){qF.abort("ytsbox-suggest-timeout")},1E4),kd.signal=qF.signal),_.ct(xH,2),_.D(xH,fetch(XlX(h_),kd),4);
case 4:mv=xH.yieldResult.text();_.$u(xH,3);break;case 2:return fo=_.mS(xH),fo!=="ytsbox-abort-last"&&fo!=="ytsbox-suggest-timeout"&&_.Sk(fo),xH.return(null);case 3:return xH.return(mv)}})}
function f(h_){var kd,qF,mv;return _.c(function(fo){switch(fo.nextAddress){case 1:if(kd=_.fH().resolve(_.HQ(Jft)))return fo.return(kd);qF=Date.now();b();return _.q("yt_searchbox_xhr")?_.D(fo,V(h_),5):_.D(fo,H(h_),4);case 4:mv=fo.yieldResult;fo.jumpTo(3);break;case 5:mv=fo.yieldResult;case 3:if(mv){yr&&(clearTimeout(yr),yr=null);var xH=eQ,Y2=qF,FD=h_.query.length===0;Y2=Date.now()-Y2;FD?xH.zeroPrefixRoundTripTime=Y2:(xH.JSC$18475_totalRoundTripTime+=Y2,xH.maxRoundTripTime=Math.max(xH.maxRoundTripTime,
Y2),FD=Math.floor(Y2/100),FD>=nkt.length?++xH.roundTripTimeHistogram[9]:++xH.roundTripTimeHistogram[nkt[FD]])}return fo.return(mv)}})}
function E(h_){var kd,qF,mv;return _.c(function(fo){if(fo.nextAddress==1)return(kd=Dg.cache.get(cf7(h_)))?fo.return(kd):_.D(fo,f(h_),2);qF=fo.yieldResult;if(qF===null)return fo.return(null);mv=new q7t(qF);h_.query.length===0&&mv.suggestions.length===0||Dg.cache.set(cf7(h_),mv);return fo.return(mv)})}
function U(h_){var kd,qF;return _.c(function(mv){if(mv.nextAddress==1){$d=!1;var fo=Kh;fo=_.k7B()==="search"?(_.CC(location.href,"search_query")||_.CC(location.href,"q"))===fo:!1;kd=new Ekg(h_,fo?Kh:null);return _.D(mv,E(kd),2)}qF=mv.yieldResult;if(qF===null)return mv.return();kd.query.length===0&&(eQ.zeroPrefixSuggestionCount=qF.suggestions.length);if(kd.id<=gU)return eQ.outOfSyncResponseCount++,mv.return();if(document.activeElement!==Ut.value)return mv.return();gU=kd.id;var xH=eQ,Y2=qF.rawResponse[2]||
{};xH.experimentTriggeredBeforeFinal||(xH.experimentTriggeredBeforeFinal=xH.experimentTriggeredFinal);xH.experimentTriggeredFinal=!!Y2.e;eQ.updateSuggestions(qF.suggestions);O(-1);Tj([]);qF.suggestions!==Q()&&uN(qF.suggestions.length);Z(qF.suggestions);o6(qF.suggestions.length>0&&qF.suggestions[0].type===33);X$&&(X$.hidden=qF.suggestions.length===0,Nr()?(X$.style.minWidth="",xH=X$.style,Y2=(fo=Q()[0])==null?void 0:fo.ignoredPrefix,xH.marginLeft=(Y2?Math.min(Y2.length*6,wt.value.offsetWidth):0).toString()+
"px"):(X$.style.minWidth=wt.value.offsetWidth+"px",X$.style.marginLeft="0"),hz());_.om(mv)})}
function X(){if(!P9)return!1;var h_=_.zO("REFINEMENTS_TUPLE");return h_?(h_=h_[1].map(function(kd,qF){return new lSO([kd,0,[71]],Ut.value.value,qF)}),Q()!==h_&&uN(h_.length),Tj([]),Z(h_),eQ.updateSuggestions(h_),P9=!1,X$.hidden=h_.length===0,$d=h_.length>0,!0):!1}
function I(){var h_=Ut.value.value;(typeof h_==="string"||h_ instanceof String)&&h_!==""?W(!0):W(!1)}
function k(){if(_.k7B()==="search"){var h_=window.location.href;try{var kd=_.CC(h_,"search_query")||_.CC(h_,"q")||""}catch(qF){kd=""}kd&&(Ut.value.value=kd,W(!0))}}
var l=_.N(_.kw([],void 0,"kGFAjf")),x=l.next().value;l=l.next().value;var Q=x,Z=l;x=_.N(_.kw(-1,void 0,"mLGL9e"));var e=x.next().value,O=x.next().value;x=_.N(_.kw(-1,void 0,"u2rYdc"));var L=x.next().value,r=x.next().value;x=_.N(_.kw(!1,void 0,"W9DFC"));var C=x.next().value,W=x.next().value;x=_.N(_.kw(!1,void 0,"Ip4dNc"));var y=x.next().value,G=x.next().value;l=_.N(_.kw(!1,void 0,"ZNKSQb"));x=l.next().value;l=l.next().value;var Nr=x,o6=l;l=_.N(_.kw(!1,void 0,"JBrGLd"));x=l.next().value;var lI=l.next().value;
l=_.N(_.kw(!1,void 0,"P2pD6e"));var Zt=l.next().value,eL=l.next().value;l=_.N(_.kw(1,void 0,"SjP20c"));var OM=l.next().value,iI=l.next().value;l=_.N(_.kw([],void 0,"h4dRaf"));var rB=l.next().value,Tj=l.next().value;l=_.N(_.kw(!1,void 0,"TUTzaf"));var J_=l.next().value,B9=l.next().value;l=_.q("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var ok=_.GM("yt-searchbox"),Ut=_.GM("input"),wt=_.GM("div"),X$,Dg=
new $Hg,eQ=vkX(),cg=_.fH().resolve(_.HQ(_.GT)),qQ=function(){var h_;return((h_=Y.forceDarkMode)==null?void 0:h_.call(Y))||!(cg==null||!cg())},t_=function(){return _.q("desktop_enable_scrollable_suggestions_panel")},$s="i"+zWA++,P9=!1,$d=!1,Kh="",yr=null,gU=-1,rU=function(){Tj([]);
Z([]);o6(!1);X$&&(X$.hidden=!0);yr&&(clearTimeout(yr),yr=null);O(-1)},xs=function(h_,kd){h_.preventDefault();
B9(!0);X$&&(X$.hidden=!1);var qF=e();h_=Q();var mv=rB();kd=mVd(kd);qF+=kd;for(qF>=h_.length?qF=-1:qF<-1&&(qF=h_.length-1);qF!==-1&&(mv.includes(qF)||qF>=h_.length||qF<0);)qF+=kd,qF>=h_.length&&(qF=-1);O(qF);e()>=0&&(Ut.value.value=Q()[e()].text,r(0),I(),h_=e(),mv=L(),(mv=document.getElementById(Lh[h_][mv]))&&t_()&&(h_===Q().length-1?X$.scrollTop=X$.scrollHeight:mv.scrollIntoView({block:"nearest",inline:"start"})))},xd=_.Q_(function(h_){if(!(h_.relatedTarget instanceof Element&&h_.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){G(!0);
var kd;(kd=Y.focusCallback)==null||kd.call(Y,!0);X()||($d?X$.hidden=!1:(_.Ua(ok.value,"yt-autonav-pause-focus",{}),U(h_.target.value)))}}),MQ=_.Q_(function(h_){if(!(h_.relatedTarget instanceof Element&&h_.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){G(!1);
var kd;(kd=Y.focusCallback)==null||kd.call(Y,!1);X$.scrollTop=0;X$.hidden=!0;_.Ua(ok.value,"yt-autonav-pause-blur",{})}}),DA=function(h_){h_=mVd(h_);
var kd;((kd=Lh[e()])==null?0:kd[L()+h_])&&r(L()+h_)},Eu=_.Q_(function(h_){var kd=h_.target;
switch(h_.keyCode){case 13:h_.preventDefault();var qF;if((qF=Lh[e()])==null?0:qF[L()]){var mv;(mv=document.getElementById(Lh[e()][L()]))==null||mv.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}h_=h_.shiftKey?4:3;qF=eQ;mv=e();qF.selectedSuggestionIndex=mv;w(kd.value,h_);break;case 27:X$&&(X$.hidden=!0);break;case 40:xs(h_,40);break;case 38:xs(h_,38);break;case 39:DA(39);break;case 37:DA(37);break;case 229:eQ.inputMethodsTracker.add(4);break;default:eQ.inputMethodsTracker.add(1),
PPA(eQ)}return!1}),EX=_.Q_(function(h_){U(h_.target.value);
I();t_()&&X$&&(X$.scrollTop=0);return!1}),q6=_.Q_(function(){eQ.inputMethodsTracker.add(2);
PPA(eQ);return!1});
_.tq(function(){if(X$){eQ.reset();if(window.ResizeObserver){var h_=new ResizeObserver(function(){Nr()||(X$.style.minWidth=wt.value.offsetWidth+"px")});
h_.observe(wt.value);(new ResizeObserver(function(){hz()})).observe(X$);
_.R2(function(){h_.disconnect()})}k();
window.addEventListener("yt-navigate-finish",k);window.addEventListener("yt-focus-searchbox",function(){Ut.value.focus()});
var kd;lI((kd=_.zO("SBOX_SETTINGS"))==null?void 0:kd.HAS_ON_SCREEN_KEYBOARD)}else _.Ft(new _.BQ("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var W1=_.Q_(function(h_){h_.preventDefault();w(Ut.value.value,12);return!1}),W9=_.Q_(function(h_){h_.preventDefault();
var kd,qF;(kd=Ut)==null||(qF=kd.value)==null||qF.focus();var mv,fo;((mv=Ut)==null?void 0:(fo=mv.value)==null?void 0:fo.value)!==""&&(Ut.value.value="",Ut.value.dispatchEvent(new Event("input")));return!1}),tO=_.Q_(function(){var h_=chO(Ut.value.value,Q().filter(function(kd){return kd.type!==35}).map(function(kd){return{label:kd.text}}));
_.Xx(ok.value,"yt-open-popup-action",[{openPopupAction:h_},document.body]);return!1}),uQ=_.Q_(function(){Ut.value.focus();
return!1}),Vt=function(h_,kd,qF,mv,fo){eQ.selectedSuggestionIndex=qF;
w(kd,fo?3:1,mv)},dl=function(h_){Ut.value.value=h_;
Ut.value.dispatchEvent(new Event("input"));eQ.inputMethodsTracker.add(5);PPA(eQ,!0)},Lh=[[]],ea=function(h_){var kd="searchbox-suggestion"+_.SB(_.P3);
Lh[h_].push(kd);return kd},uN=function(h_){if(Q()){Lh=[[]];
for(var kd=0;kd<h_;kd++)Lh.push([])}},hz=function(){if(t_()){var h_=X$,kd=h_.scrollTop;
h_=h_.scrollHeight-h_.clientHeight;eL(kd>=h_);kd=Math.abs(h_-kd);kd<=40?iI(1-(40-kd)/40):iI(1)}},KM=function(){return"opacity: "+OM()*100+"%"},Qv=_.Q_(function(){hz();
return!1}),La=_.Q_(function(){B9(!1);
return!1}),Wg,D5={},NF={},p3={},md={};
return _.m("yt-searchbox",{class:_.hj("ytSearchboxComponentHost",(D5.ytSearchboxComponentMweb=!1,D5.ytSearchboxComponentDesktop=!0,D5["yt-searchbox-filled-query"]=function(){return C()},D5["ytd-masthead"]=function(){return!y()},D5.ytSearchboxComponentHostDark=qQ,D5)),
role:"search",el:ok,"client-ve-type":10349},_.m("div",{el:wt,"on:click":uQ,class:_.hj("ytSearchboxComponentInputBox",(NF.ytSearchboxComponentInputBoxDark=qQ,NF.ytSearchboxComponentInputBoxHasFocus=y,NF))},_.m("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":W1},_.m(_.h,{cond:y,then:function(){return _.m("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.m(_.n_,{icon:"SEARCH"}))}}),_.m("input",{el:Ut,
class:_.hj("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":$s,"aria-expanded":!((Wg=X$)==null?0:Wg.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":MQ,"on:focus":xd,"on:input":EX,"on:keydown":Eu,"on:paste":q6,placeholder:Y.placeholderText,"aria-activedescendant":function(){var h_;return(h_=Lh[e()])==null?void 0:h_[L()]},
"aria-autocomplete":"list",role:"combobox"})),_.m(_.h,{cond:x,then:function(){return _.m("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.m(yfg,null))}}),_.m(_.h,{cond:C,
then:function(){return _.m("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.m("button",{class:"ytSearchboxComponentClearButton","on:click":W9,"aria-label":Y.clearButtonAriaLabel||Tzt},_.m(_.n_,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.m(_.p_,{model:{}})))}})),_.m("button",{class:_.hj("ytSearchboxComponentSearchButton",(p3.ytSearchboxComponentSearchButtonDark=qQ,p3)),
"on:click":W1,"aria-label":GAd,title:Y.placeholderText},_.m(_.n_,{icon:"SEARCH"})),_.m(_.h,{cond:function(){if(QPd()&&_.q("mweb_voice_search")&&Y.voiceSearchButton)return Y.voiceSearchButton()},
then:function(h_){var kd={};return _.m("div",{class:_.hj("ytSearchboxComponentVoiceSearchWrapper",(kd.ytSearchboxComponentHideVoiceSearchButton=function(){return C()},kd))},_.m(_.OH,{data:h_},{buttonRenderer:function(qF){return _.m(_.Ce,{data:qF.data,
onButtonClickCallback:function(){}})}}))}}),_.m("div",{el:_.wn(function(h_){return void(X$=h_)}),
id:$s,class:_.hj("ytSearchboxComponentSuggestionsContainer",(md.ytSearchboxComponentSuggestionsContainerDark=qQ,md["yt-searchbox-suggestions-container"]=!1,md.ytSearchboxComponentSuggestionsContainerScrollable=t_(),md.ytSearchboxComponentSuggestionsContainerAnimated=l,md)),"on:scroll":Qv,"on:mousemove":La,role:"listbox",hidden:!0},_.m(_.Bf,{each:Q},function(h_,kd){return _.m(CPX,{suggestion:h_,isHighlighted:function(){return kd()===e()},
onClickCallback:Vt,onHoverUpdateCallback:function(qF){if(_.q("desktop_enable_single_suggestion_highlight")){var mv=kd();qF&&(r(0),O(mv))}},
onRemoveCallback:function(qF){jX7(Dg);qF===void 0||qF<0||rB().includes(qF)||Tj([].concat(_.Bt(rB()),[qF]))},
labels:Y.labels,queryBuilderFunction:dl,suggestionIndex:kd,generateUniqueId:ea,highlightedId:function(){var qF;return(qF=Lh[e()])==null?void 0:qF[L()]},
useScrollMargin:t_(),isKeyboardMode:J_})}),_.m(_.h,{cond:function(){return!Nr()&&Q().find(function(h_){return h_.type!==35})&&_.q("searchbox_reporting")},
then:function(){return _.m("button",{class:"ytSearchboxComponentReportButton","on:mousedown":tO},_.sa("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.m(_.h,{cond:function(){return!Zt()&&t_()},
then:function(){return _.m("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.m("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:KM}))}})))},"vg"),"yt-searchbox",{props:{searchEndpoint:_.YX,
placeholderText:_.YX,labels:_.YX,voiceSearchButton:_.YX,focusCallback:_.gn,clearButtonAriaLabel:_.YX,forceDarkMode:_.YX}});var EY=function(){var Y=_.F.apply(this,arguments)||this;Y.menuButtonTargetId="topbar-guide-menu";Y.narrow=!1;Y.menuStrings={BACK_ALT_LABEL:_.sa("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.sa("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.sa("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.sa("SBOX_PLACEHOLDER",void 0,"Search")};Y.pageDarkTheme=document.documentElement.hasAttribute("dark");Y.watchPageScrollTop=0;Y.theater=!1;Y.fullscreen=!1;Y.desktopUnifiedSearchPanelMode=_.q("desktop_enable_unified_search_panel");
Y.cinematicTheaterMode=_.q("web_cinematic_theater_mode");Y.ytSearchboxFocused=!1;Y.searchboxLabels=_.zO("SBOX_LABELS");Y.topbarIsAboveChipbar=!1;Y.isDarkThemeForced=!1;Y.areGhostCardsHidden=!1;Y.guideKeyboardToggle=!1;Y.voiceSearchManager=DSF();Y.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};Y.setYtSearchboxFocused=function(b){Y.ytSearchboxFocused=b};
return Y};
_.P(EY,_.F);_.g=EY.prototype;_.g.computeSimpleText=function(Y){return _.Tx(Y)};
_.g.onDarkChanged=function(){for(var Y=_.N(this.buttons||[]),b=Y.next();!b.done;b=Y.next())b.value.isOverlay=!!this.dark;Y=_.N(this.buttonRenderers||[]);for(b=Y.next();!b.done;b=Y.next())b.value.overrides=this.computeButtonOverride()};
_.g.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.g.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"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var Y=_.iy(_.Kp(),"aa");_.U6(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||Y||(this.isDarkThemeForced=this.dark=!0);this.logoType?(Y=this.hostElement.querySelector("#masthead-logo"))&&(_.q("polymer_on_demand_shady_dom")?Y.setAttribute("slot","masthead-logo-old"):_.qf(Y)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Io(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Io(this,this.onSetTheaterModeEnabled))};
_.g.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Io(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Io(this,this.onSetTheaterModeEnabled))};
_.g.dataChanged=function(){var Y=this.data;Y&&(this.voiceEnabled=Y.voiceSearchButton?DSF().isSupported():!1,_.JHU(_.eH(),this.menuButtonTargetId,this.guideButton),Y.onReceivedActions&&Y.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.IP(this.hostElement,Y.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&Y&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.U6(this.hostElement,"dark",!1),_.U6(this.hostElement,"theater",!1),
(Y=this.hostElement.querySelector("#masthead-logo"))&&(_.q("polymer_on_demand_shady_dom")?Y.setAttribute("slot","masthead-logo-old"):_.qf(Y))))};
_.g.computeCenterHidden=function(){var Y;return this.data&&!((Y=this.data.searchbox)==null?0:Y.fusionSearchboxRenderer)};
_.g.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.U6(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.g.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.g.onWatchScroll=function(Y){this.watchPageScrollTop=Y.detail||0;this.updateMastheadBackgroundOpacity()};
_.g.onFullscreenChangeAction=function(Y){Y||(this.watchPageScrollTop=0);this.fullscreen=Y;this.updateMastheadBackgroundOpacity()};
_.g.onSetTheaterModeEnabled=function(Y){this.theater=Y.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.g.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.g.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.g.setBackgroundOpacity=function(Y){Y=this.calculateBackgroundOpacity(Y);this.background.style.opacity=""+Y};
_.g.calculateBackgroundOpacity=function(Y){var b=this.theater&&this.cinematicTheaterMode?.6:0,w=this.hostElement.clientHeight/2;return Math.min(Math.max(Y,0),w)/w*(1-b)+b};
_.g.shouldShowCinematicMastHead=function(){var Y=_.q("kevlar_watch_grid")&&!_.q("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(Y||this.pageDarkTheme)};
_.g.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.g.focusGuide=function(){this.guideButton.focus()};
_.g.onGuideToggleTap=function(){_.Ua(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.g.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.g.onGuideToggleHover=function(){_.Ua(this.hostElement,"yt-guide-hover")};
_.g.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.g.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.g.closeOnOutsideClickCondition=function(Y){for(Y=_.JL(Y);Y[0];){var b=Y.shift();if(b instanceof Element&&b.id==="kbd")return!1}return!0};
_.g.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.g.pausePlayer=function(){var Y;(Y=_.V4())==null||Y.pause();this.pauseMiniplayer()};
_.g.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var Y;(Y=_.fH().resolve(_.Ck).getPlayerElement())==null||Y.pause()}};
_.g.isMiniplayerActive=function(){return _.fH().resolve(_.Ck).isMiniplayerActive()};
_.g.updateNarrowFromBinding=function(Y){this.narrow=Y.detail.value};
_.g.onYtSendFeedbackAction=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.up.Object.defineProperties(EY.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.q("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var Y;return(Y=this.data)==null?void 0:Y.voiceSearchButton}}}});
EY.prototype.narrowChanged=EY.prototype.narrowChanged;EY.prototype.onWatchPageChange=EY.prototype.onWatchPageChange;EY.prototype.onRendererStamperFinished=EY.prototype.onRendererStamperFinished;EY.prototype.dataChanged=EY.prototype.dataChanged;EY.prototype.onDarkChanged=EY.prototype.onDarkChanged;_.z([_.n(_.Li),_.K("design:type",Object)],EY.prototype,"ironResizableBehavior",void 0);_.z([_.n(_.x6X),_.K("design:type",Object)],EY.prototype,"ytdExpandableInputBehavior",void 0);
_.z([_.n(_.Ww.YtdGuideStateAwareBehavior),_.K("design:type",Object)],EY.prototype,"ytdGuideStateAwareBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],EY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],EY.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],EY.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.FX),_.K("design:type",Object)],EY.prototype,"ytdReduxBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],EY.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],EY.prototype,"narrow",void 0);_.z([_.R(),_.K("design:type",Object)],EY.prototype,"logoType",void 0);_.z([_.R(),_.K("design:type",Boolean)],EY.prototype,"voiceEnabled",void 0);
_.z([_.R(),_.K("design:type",Object)],EY.prototype,"menuStrings",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],EY.prototype,"dark",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],EY.prototype,"pageDarkTheme",void 0);_.z([_.R(),_.K("design:type",Object)],EY.prototype,"watchPageScrollTop",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.Sl}),_.K("design:type",Boolean)],EY.prototype,"isWatchPage",void 0);
_.z([_.R({reflectToAttribute:!0,selector:_.oUv}),_.K("design:type",Boolean)],EY.prototype,"isShortsPage",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],EY.prototype,"theater",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],EY.prototype,"fullscreen",void 0);_.z([_.R({reflectToAttribute:!0,selector:_.xmb}),_.K("design:type",String)],EY.prototype,"frostedGlassMode",void 0);_.z([_.R(),_.K("design:type",Object)],EY.prototype,"ytSearchboxFocused",void 0);
_.z([_.ql("#buttons > *"),_.K("design:type",Array)],EY.prototype,"buttons",void 0);_.z([_.ql("ytd-button-renderer"),_.K("design:type",Array)],EY.prototype,"buttonRenderers",void 0);_.z([_.xZ("#background"),_.K("design:type",HTMLDivElement)],EY.prototype,"background",void 0);_.z([_.xZ("#guide-button"),_.K("design:type",Object)],EY.prototype,"guideButton",void 0);_.z([_.xZ("#logo"),_.K("design:type",Object)],EY.prototype,"logo",void 0);
_.z([_.R({computed:"computeButtonOverride(dark)"}),_.K("design:type",Object)],EY.prototype,"buttonOverrides",void 0);_.z([_.vX("dark"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EY.prototype,"onDarkChanged",null);_.z([_.R({value:function(){return this.onVoiceTap.bind(this)}}),
_.K("design:type",Function)],EY.prototype,"boundOnTapVoiceButton",void 0);_.z([_.R(),_.K("design:type",Object)],EY.prototype,"topbarIsAboveChipbar",void 0);_.z([_.R(),_.K("design:type",String),_.K("design:paramtypes",[])],EY.prototype,"guideIcon",null);_.z([_.t("voiceEnabled"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],EY.prototype,"shouldShowVoiceSearchButton",null);_.z([_.t("data"),_.K("design:type",Object),_.K("design:paramtypes",[])],EY.prototype,"voiceSearchButton",null);
_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EY.prototype,"dataChanged",null);_.z([_.kZ("yt-rendererstamper-finished"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EY.prototype,"onRendererStamperFinished",null);_.z([_.vX("isWatchPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EY.prototype,"onWatchPageChange",null);
_.z([_.vX("narrow"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],EY.prototype,"narrowChanged",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-masthead"})],EY);
_.a(EY,"ytd-masthead",function(){if(aSR!==void 0)return aSR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return aSR=Y},{mode:_.Xd("kevlar_poly_si_batch_j036")?1:2});var ugR;var Ybs={},b4g={},wdA={},VRN={},H4g=(VRN.OFFLINE=(Ybs["publicytnetworkstatus-online"]="BACK_ONLINE",Ybs),VRN.ONLINE=(b4g["publicytnetworkstatus-offline"]="OFFLINE",b4g),VRN.BACK_ONLINE=(wdA["publicytnetworkstatus-offline"]="OFFLINE",wdA.TIMER_TRIGGER="ONLINE",wdA),VRN),cn=function(){var Y=_.F.apply(this,arguments)||this;Y.currentState="ONLINE";Y.scheduledJobId=0;Y.bannerString="";Y.bannerVe=null;Y.networkStatusManagerInstance=new _.jI;return Y};
_.P(cn,_.F);_.g=cn.prototype;_.g.attached=function(){var Y=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){Y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){Y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.g.detached=function(){var Y=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){Y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){Y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.g.enterState=function(Y){var b=this;this.scheduledJobId&&_.Lb.cancelJob(this.scheduledJobId);Y==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):Y==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.sa("NO_INTERNET_CONNECTION",void 0,"No internet connection")):Y==="BACK_ONLINE"&&(this.bannerString=_.sa("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.MY(_.Lb,function(){b.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=Y};
_.g.stateChangeHandler=function(Y){(Y=H4g[this.currentState][Y])&&this.enterState(Y)};
_.g.logVisibility=function(Y){var b=_.dO();this.createBannerVe(Y);b&&this.bannerVe&&(Y?_.Gu(b,[this.bannerVe]):_.Tu(b,[this.bannerVe]))};
_.g.createBannerVe=function(Y){!this.bannerVe&&Y&&(this.bannerVe=_.tj(37929),_.IC(_.Qd(),this.bannerVe))};
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",String)],cn.prototype,"currentState",void 0);_.z([_.R(),_.K("design:type",Object)],cn.prototype,"scheduledJobId",void 0);_.z([_.R(),_.K("design:type",Object)],cn.prototype,"bannerString",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-network-status-banner"})],cn);
_.a(cn,"ytd-network-status-banner",function(){if(ugR!==void 0)return ugR;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-network-status-banner--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="status-banner style-scope ytd-network-status-banner">\n       [[bannerString]]\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return ugR=
Y},{mode:1});var gJA;var UY=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};Y.hidden=!0;Y.frostedGlass=_.q("web_frosted_glass");return Y};
_.P(UY,_.F);UY.prototype.computeHidden=function(Y){return Y&&Y.status?!1:!0};
UY.prototype.handleUpdatePermissionRoleCommand=function(Y){if(Y=_.v(Y,_.L0_))if(Y=_.v(Y.renderer,_.F08))this.data=Y};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],UY.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],UY.prototype,"componentBehavior",void 0);_.z([_.R({value:!0,computed:"computeHidden(data)"}),_.K("design:type",Object)],UY.prototype,"hidden",void 0);_.z([_.R(),_.K("design:type",Object)],UY.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],UY.prototype,"frostedGlass",void 0);
_.z([_.S({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],UY);
_.a(UY,"ytd-permission-role-bottom-bar-renderer",function(){if(gJA!==void 0)return gJA;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-permission-role-bottom-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="pom-role-text style-scope ytd-permission-role-bottom-bar-renderer" hidden="[[hidden]]">\n  <yt-formatted-string text="[[data.status]]" class="style-scope ytd-permission-role-bottom-bar-renderer"></yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return gJA=Y},{mode:1});var f2N;var NTg;var otg={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var XC=function(){return _.F.apply(this,arguments)||this};
_.P(XC,_.F);_.g=XC.prototype;_.g.attached=function(){this.JSC$18578_scroller&&(this.JSC$18578_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18578_scroller.attached&&typeof this.JSC$18578_scroller.attached==="function"&&this.JSC$18578_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(w){w.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var Y=_.E6(this.hostElement);Y.querySelector("tp-yt-paper-radio-group").selected="";var b=Y.querySelector("#reason-text");b&&(b.value="");Y.querySelector("#description-text").value=""}};
_.g.canSubmit=function(Y,b){_.Ua(this.hostElement,"yt-invalidate-popup-tabbables");return!(Y&&b)};
_.g.onCancel=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.g.onSubmit=function(){var Y=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(f){return f.active}).map(function(f){return f.innerText.trim()}),b=this.hostElement.querySelector("tp-yt-paper-radio-group"),w=b.selectedItem,V=w.name;
w=w.innerText.trim();var H=b.querySelector("#reason-text");b=void 0;H&&(b=H.value);(H=this.descriptionText.value)&&(H=H.trim());I7s(this.data.searchQuery,Y,V,w,H,b);_.Xx(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.g.sendFormSubmitToast=function(){var Y=_.wr(_.sa("SBOX_INAPPROPRIATE_TOAST"));_.Xx(this.hostElement,"yt-open-popup-action",[Y,this])};
_.g.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(Y){return Y.active})};
_.g.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
XC.prototype.onIronSelect=XC.prototype.onIronSelect;XC.prototype.onIronChange=XC.prototype.onIronChange;XC.prototype.dataChanged=XC.prototype.dataChanged;_.z([_.R(),_.K("design:type",Object)],XC.prototype,"data",void 0);_.z([_.R({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.K("design:type",Boolean)],XC.prototype,"submitDisabled",void 0);_.z([_.R(),_.K("design:type",Boolean)],XC.prototype,"suggestionSelected",void 0);
_.z([_.R(),_.K("design:type",Boolean)],XC.prototype,"catagorySelected",void 0);_.z([_.xZ("#scroller"),_.K("design:type",Object)],XC.prototype,"JSC$18578_scroller",void 0);_.z([_.xZ("#description-text"),_.K("design:type",Object)],XC.prototype,"descriptionText",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XC.prototype,"dataChanged",null);
_.z([_.kZ("iron-change"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XC.prototype,"onIronChange",null);_.z([_.kZ("iron-select"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],XC.prototype,"onIronSelect",null);_.z([_.S({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],XC);
_.a(XC,"ytd-search-suggestion-report-dialog",function(){if(NTg!==void 0)return NTg;var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-suggestion-report-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-search-suggestion-report-dialog">\n  <div id="content" class="style-scope ytd-search-suggestion-report-dialog">\n    <h2 id="title" class="style-scope ytd-search-suggestion-report-dialog">[[data.title]]</h2>\n    <div id="suggestions" class="style-scope ytd-search-suggestion-report-dialog">\n      <template is="dom-repeat" items="[[data.suggestions]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-checkbox class="style-scope ytd-search-suggestion-report-dialog">[[item.label]]</tp-yt-paper-checkbox>\n      </template>\n    </div>\n    <tp-yt-paper-radio-group id="categories" class="style-scope ytd-search-suggestion-report-dialog">\n      <h2 id="category-title" class="style-scope ytd-search-suggestion-report-dialog">[[data.categoryLabel]]</h2>\n      <yt-formatted-string id="category-title" text="[[data.categoryLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n      </yt-formatted-string>\n      <template is="dom-repeat" items="[[data.categories]]" class="style-scope ytd-search-suggestion-report-dialog">\n        <tp-yt-paper-radio-button name="[[item.id]]" class="style-scope ytd-search-suggestion-report-dialog">\n          [[item.label]]\n          <template is="dom-if" if="[[item.reasonLabel]]" class="style-scope ytd-search-suggestion-report-dialog">\n            <tp-yt-paper-input-container id="reason" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n              <tp-yt-iron-autogrow-textarea id="reason-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[item.reasonLabel]]" rows="1">\n              </tp-yt-iron-autogrow-textarea>\n            </tp-yt-paper-input-container>\n          </template>\n        </tp-yt-paper-radio-button>\n      </template>\n    </tp-yt-paper-radio-group>\n    <tp-yt-paper-input-container id="details" no-label-float="" use-v2-underline="" class="style-scope ytd-search-suggestion-report-dialog">\n      <tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope ytd-search-suggestion-report-dialog" slot="input" maxlength="500" placeholder="[[data.detailsPlaceholderLabel]]" rows="2">\n      </tp-yt-iron-autogrow-textarea>\n      <tp-yt-paper-input-char-counter slot="add-on" class="style-scope ytd-search-suggestion-report-dialog"></tp-yt-paper-input-char-counter>\n    </tp-yt-paper-input-container>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope ytd-search-suggestion-report-dialog">\n  <tp-yt-paper-button id="cancel" on-tap="onCancel" class="style-scope ytd-search-suggestion-report-dialog">[[data.cancelButtonLabel]]</tp-yt-paper-button>\n  <tp-yt-paper-button id="submit" disabled="[[submitDisabled]]" on-tap="onSubmit" class="style-scope ytd-search-suggestion-report-dialog">\n    [[data.submitButtonLabel]]\n  </tp-yt-paper-button>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);return NTg=Y},{mode:1});var D6=function(Y){var b=Y.openPopupAction;var w=Y.target;var V=Y.container;var H=Y.popupContainerConfig;var f=Y.getElement;Y=Y.removeWhenClosed===void 0?!1:Y.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=b;this.target=w;this.container=V;this.popupContainerConfig=H;this.getElement=f;this.JSC$18584_popupConfig=this.popupContainerConfig.JSC$17699_popupConfig[this.openPopupAction.popupType];this.rendererName=(b=this.getName())?_.dZt(b,iZQ(this.popupContainerConfig,
b)):"";_.q("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=Y);this.createPopup()};
D6.prototype.updatePopup=function(Y){this.openPopupAction=Y;this.JSC$18584_popupConfig=this.popupContainerConfig.JSC$17699_popupConfig[this.openPopupAction.popupType];EJR(this);_.q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
D6.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Xds=function(Y,b,w){(b=b&&Y.JSC$18584_popupConfig.narrowProperties?Y.JSC$18584_popupConfig.narrowProperties:Y.JSC$18584_popupConfig.properties)&&w!==void 0&&(b.isAriaModal=w);c8d(Y,b);Y.isRtl()&&c8d(Y,Y.JSC$18584_popupConfig.rtlProperties);UEX(Y)};
D6.prototype.createPopup=function(){var Y=this.JSC$18584_popupConfig.component;if(this.popupContent=DEQ(this,this.rendererName)){if(Y){this.popup=DEQ(this,Y);var b=this.popupContent;_.q("web_enable_wrapper_for_cow_component_in_popup")&&(b=document.createElement("div"),b.appendChild(this.popupContent));_.q("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18584_popupConfig.slotName&&b.setAttribute("slot",this.JSC$18584_popupConfig.slotName);Y=this.popup;var w=this.container.tagName.toLowerCase(),
V=_.YZ(b);_.g1t(_.w_(Y),_.g_(b,w,V));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.q("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.E6(this.container).appendChild(this.popup)}};
var EJR=function(Y){var b,w,V=(b=Y.openPopupAction.accessibilityData)==null?void 0:(w=b.accessibilityData)==null?void 0:w.label;V&&(Y.popup.ariaLabel=V);var H;((H=Y.popupContent.polymerController)!=null?H:Y.popupContent).data=(0,_.BL.unsafeClone)(Y.openPopupAction.popup[Y.getName()]);Y.popupContent.duration=mEX(Y);Y.popupContent.positionType=Y.openPopupAction.position;var f=Y.openPopupAction.properties;f&&Object.keys(f).forEach(function(E){Y.popupContent[E]=f[E]})},c8d=function(Y,b){if(b)for(var w=
_.N(Object.keys(b)),V=w.next();!V.done;V=w.next())V=V.value,Y.popup[V]=b[V]},UEX=function(Y){if(Y.openPopupAction.position){var b=Y.JSC$18584_popupConfig.positionalProperties&&Y.JSC$18584_popupConfig.positionalProperties[Y.openPopupAction.position],w=Y.JSC$18584_popupConfig.rtlPositionalProperties&&Y.JSC$18584_popupConfig.rtlPositionalProperties[Y.openPopupAction.position];
b=Y.isRtl()&&w?w:b;b.shiftedHorizontalOffset&&(w=Y.popup.style.display,Y.popup.style.display="block",Y.popupContent&&Y.popup.positionTarget&&Y.popupContent.clientWidth>Y.popup.positionTarget.clientWidth&&(b.horizontalOffset=Y.popup.positionTarget.clientWidth/2-b.shiftedHorizontalOffset),Y.popup.style.display=w);c8d(Y,b)}},oJX=function(Y,b){if(b)for(var w=_.N(Object.keys(b)),V=w.next();!V.done;V=w.next())V=V.value,Y.popup.style[V]=b[V]};
D6.prototype.getName=function(){return _.S4(this.openPopupAction.popup,"renderer")||_.S4(this.openPopupAction.popup,"dialog")||_.S4(this.openPopupAction.popup,"model")||void 0};
var mEX=function(Y){Y=Y.openPopupAction.durationHintMs;return Y===0?Y:Math.max(4E3,Y||4E3)};
D6.prototype.isRtl=function(){return _.zO("HTML_DIR")==="rtl"};
var DEQ=function(Y,b){Y=Y.getElement(b,Y.target);Y==null&&_.Sk(new _.BQ("popup getElement returned null",b));return Y};var I2I={};
I2I.YtPopupContainerBehavior=[_.yZ.YtComponentBehavior,_.US.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Ea(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.c0(this.hostElement)},
closePopup:function(Y){var b=this.createCacheKey(void 0,Y);this.popups_[b]&&this.handleClosePopupAction_(void 0,Y)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Lb.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Lb.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(Y){Y.opened&&Y.keepBelowPlayer&&this.ensurePopupBelowPlayer(Y)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var Y in this.popups_){var b=this.popups_[Y];if(b.popup.scrollAction==="refit"){var w=b.popup.positionTarget.getBoundingClientRect(),V=b.popup;w=w.top;var H=b;if(!H.naturalHeight){H.popup.hidden=!1;H.popup.style.position="fixed";H.popup.style.top="0px";H.popup.style.left="0px";var f=H.popup.getBoundingClientRect();H.naturalHeight=f.bottom-f.top;H.popup.refit()}V.hidden=!(w>=H.naturalHeight+60);b.popupContent.clientHeight===0&&b.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(Y){this.popupContainerConfig=Y},
handleOpenPopupAction:function(Y,b){var w=Y.openPopupAction,V=_.fH().resolve(_.HQ(_.fq))&&w.popupType==="TOAST";V&&!w.uniqueId&&(w.uniqueId=_.M2());if(!_.q("popup_container_parent_target_killswitch")){var H;b=(H=this.getParentTarget(b))!=null?H:b}var f=this.ensurePopup_(w,b);return new _.hh(function(E){f.then(function(U){if(!U)return E();this.maybeCreateNarrowMediaQuery_();var X=this.createCacheKey(U.rendererName,U.openPopupAction.uniqueId);if(w.showOncePerUniqueId){if(this.shownPopupKeys_.has(X))return E();
this.shownPopupKeys_.add(X)}X=this.popups_[X];var I=!(!X||!X.openPopupAction.beReused);I=!!w.reusePopup||I;if(U.popup.opened&&!I){V&&!U.openPopupAction.replacePopup||this.handleClosePopupAction_(U.rendererName,U.openPopupAction.uniqueId);I=w.popupType==="DIALOG"&&!_.q("popup_container_dialog_reopen_killswitch");if(!V&&!I&&X&&X.target==b&&!U.openPopupAction.replacePopup)return E();_.TC(U.popup,function(){this.completeOpenPopupAction_(w,b,U);E()}.bind(this))}else U.popup.opened?U.updatePopup(w):this.completeOpenPopupAction_(w,
b,U),E()}.bind(this))}.bind(this))},
getParentTarget:function(Y){if(Y&&Y instanceof HTMLElement)for(var b=_.N(Object.entries(this.popups_)),w=b.next();!w.done;w=b.next())if(w=_.N(w.value),w.next(),w=w.next().value,w.popup.tagName==="TP-YT-IRON-DROPDOWN"&&Y.closest(w.rendererName))return w.target},
completeOpenPopupAction_:function(Y,b,w){w.updatePopup(Y);Y=this.narrowMediaQuery_.queryMatches;var V=this.isAriaModal;w.target=b;var H;b=((H=w.target.polymerController)!=null?H:w.target).popupPositionTarget||w.target;w.JSC$18584_popupConfig.targetContainer&&(b=w.container);w.popup.positionTarget=b;w.popupContent.positionTarget=b;UEX(w);w.JSC$18584_popupConfig.forceFocus&&(w.popupContent.style.outline="none");w.popupContent.tabIndex=-1;w.JSC$18584_popupConfig.narrowProperties&&(w.popup.style.position=
"static");w.JSC$18584_popupConfig.preventAutonav&&w.popup.setAttribute("prevent-autonav",!0);w.JSC$18584_popupConfig.forceCloseOnOutsideClick&&w.popup.setAttribute("force-close-on-outside-click",!0);Xds(w,Y,V);oJX(w,w.JSC$18584_popupConfig.styles);w.isRtl()&&oJX(w,w.JSC$18584_popupConfig.rtlStyles);if(!w.openPopupAction.shouldStopParentSignal){var f;H=(f=w.target.polymerController)!=null?f:w.target;(w.popupContent.startForwardingEvents||w.popupContainerConfig.forwardingEnabledPopups.has(w.rendererName))&&
H.parentComponent!==w.popupContent&&w.popupContent!==w.target&&w.target!==document.body&&(w.popupContent.startForwardingEvents?w.popupContent.startForwardingEvents(w.popupContainerConfig.forwardedEvents,w.target):(w.JSC$18584_eventForwarder||(w.JSC$18584_eventForwarder=new _.ki(w.popupContent)),w.JSC$18584_eventForwarder.start(w.popupContainerConfig.forwardedEvents,w.target)))}w=w.popup;w.addEventListener("iron-overlay-opened",_.Io(this,this.onPopupIronOverlayOpened_));w.addEventListener("iron-overlay-closed",
_.Io(this,this.onPopupIronOverlayClosed_));w.addEventListener("iron-overlay-canceled",_.Io(this,this.onPopupIronOverlayCanceled_));w.addEventListener("yt-refit",_.Io(this,this.refitPopup_));w.addEventListener("yt-invalidate-popup-tabbables",_.Io(this,this.handleInvalidatePopupTabbables_));w.open()},
getPopupDurationMs_:function(Y){return Y.durationHintMs===0?Y.durationHintMs:Math.max(4E3,Y.durationHintMs||4E3)},
handleClosePopupAction_:function(Y,b){var w=_.q("web_popup_cache_key_killswitch")||!!b;if(Y||w){var V=this.createCacheKey(Y,b);Y=(Y=this.popups_[V])&&Y.popup}else Y=_.Sv9(_.jc);if(Y&&Y.close){if(b=_.fH().resolve(_.HQ(_.mu)))Y.restoreFocusOnClose=b.isKeyBoardInUse();Y.close();this.removePopup_(Y,V)}},
handleClosePopupCommand_:function(Y){Y.closePopupCommand&&Y.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,Y.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(Y){var b={},w;for(w in this.popups_)if(b={key$jscomp$1150:b.key$jscomp$1150},b.key$jscomp$1150=w,!Y||!Y.some(function(f){return function(E){return E==f.key$jscomp$1150}}(b))){var V=this.popups_[b.key$jscomp$1150],H=V.popup;
_.fH().resolve(_.HQ(_.fq))&&V.openPopupAction.popupType==="TOAST"||(H&&H.close&&H.close(),this.removePopup_(H,b.key$jscomp$1150))}},
handleClosePopupsAction_:function(Y){Y.forEach(function(b){var w=this.popups_[b];w&&((w=w.popup)&&w.close&&w.close(),this.removePopup_(w,b))}.bind(this))},
handleGetPopupOpenedAction_:function(Y,b){return(b=this.createCacheKey(Y,b))&&this.popups_[b]?this.popups_[Y].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var Y=[],b;for(b in this.popups_){var w=this.popups_[b];w.popup.opened&&Y.push(w)}return Y},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(Y,b){_.q("ytpopup_disable_default_html_caching")&&Y&&Y.removeWhenClosed&&(_.E6(this.hostElement).removeChild(Y),b&&this.popups_[b]&&delete this.popups_[b])},
shouldReusePopup_:function(Y){return!(!Y||!Y.reusePopup)||!(!Y||!Y.beReused)},
ensurePopup_:function(Y,b){this.maybeCreateNarrowMediaQuery_();var w=_.S4(Y.popup,"renderer")||_.S4(Y.popup,"dialog")||_.S4(Y.popup,"model");if(!w)return _.k7();w=_.dZt(w,iZQ(this.popupContainerConfig,w));return _.k7(this.getAndMaybeCreatePopup_(Y,w,b))},
getAndMaybeCreatePopup_:function(Y,b,w){var V=this.createCacheKey(b,Y.uniqueId);if(this.popups_[V])return this.popups_[V];Y=new D6({openPopupAction:Y,target:w,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(b)});return this.popups_[V]=Y},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(Y){return _.q("ytpopup_disable_default_html_caching")?Y&&Y.includes("view-model"):!1},
maybeCreateNarrowMediaQuery_:function(){this.narrowMediaQuery_||(this.narrowMediaQuery_=document.createElement("iron-media-query"),this.narrowMediaQuery_.query="(max-width: 656px)",this.narrowMediaQuery_.addEventListener("query-matches-changed",_.Io(this,this.openPopupQueryMatchesChanged_)),_.E6(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(Y){Y=Y.detail.value;for(var b in this.popups_)Xds(this.popups_[b],Y)},
onPopupIronOverlayClosed_:function(Y){var b=Y.currentTarget,w=_.Z$e(b);w=w.length>0?w[0]:b;if(w.is!=="ytd-reel-watch-while-dialog-renderer"||Y.target.is!=="tp-yt-iron-dropdown"){Y.detail.popup=b;Y.detail.popupRenderer=w;var V,H={context:{openingElement:((V=this.popups_[(w==null?void 0:w.is)||""])==null?void 0:V.target)||void 0}};Object.assign(H,Y.detail);var f;_.Ua((f=w.hostElement)!=null?f:w,"yt-popup-closed",H);b.removeEventListener("yt-refit",_.Io(this,this.refitPopup_));b.removeEventListener("yt-invalidate-popup-tabbables",
_.Io(this,this.handleInvalidatePopupTabbables_));b.removeEventListener("iron-overlay-canceled",_.Io(this,this.onPopupIronOverlayCanceled_));b.removeEventListener("iron-overlay-closed",_.Io(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(b)}},
onPopupIronOverlayCanceled_:function(Y,b){var w=Y.currentTarget,V=_.Z$e(w);V=V.length>0?V[0]:w;if(V.is!=="ytd-reel-watch-while-dialog-renderer"||Y.target.is!=="tp-yt-iron-dropdown"){var H;_.Ua((H=V.hostElement)!=null?H:V,"yt-popup-canceled",Y.detail);H=b?_.JL(b):null;(!b||["click","tap"].includes(b.type))&&!w.hasAttribute("force-close-on-outside-click")&&w.positionTarget&&H&&H.includes(w.positionTarget)&&Y.preventDefault();w.restoreFocusOnClose=_.ni.keyboardEventMatchesKeys(b,"esc")}},
onPopupIronOverlayOpened_:function(Y){Y=Y.currentTarget;var b=_.Z$e(Y);b=b.length>0?b[0]:Y;var w,V;_.Ua((w=b.hostElement)!=null?w:b,"yt-popup-opened",(V=b.hostElement)!=null?V:b);Y.keepBelowPlayer&&(this.ensurePopupBelowPlayer(Y,!0),this.dynamicallyPositionedElements_.add(Y));w=_.fH().resolve(_.HQ(_.mu));V=!!b.querySelector("#toast");w&&w.isKeyBoardInUse()&&!V&&(typeof b.focusFirstItem==="function"?b.focusFirstItem():(b=_.dRr(Y),b.length&&b[0].focus()));Y.removeEventListener("iron-overlay-opened",
_.Io(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(Y){Y=Y.currentTarget;Y.refit&&Y.refit()},
refitPopups_:function(){for(var Y in this.popups_)this.popups_[Y].refit()},
handleInvalidatePopupTabbables_:function(Y){Y=Y.currentTarget;Y.invalidateTabbables&&Y.invalidateTabbables()},
createCacheKey:function(Y,b){return _.q("web_popup_cache_key_killswitch")?b?Y+"#"+b:Y:b?"#"+b:Y},
openSheet:function(Y,b){var w=Y==null?void 0:Y.openPopupActionCommand;!w&&(Y==null?0:Y.viewModel)&&(w={openPopupAction:{popup:{sheetViewModel:Y.viewModel},popupType:"CONTEXTUAL_SHEET"}});w&&this.handleOpenPopupAction(w,b)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var Y=this;return _.c(function(b){return b.return(Y.handleGetOpenedPopupsAction_().filter(function(w){var V;return((V=w.openPopupAction)==null?void 0:V.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(Y,b,w){if(_.q("web_dialog_utils_killswitch")){var V=Y==null?void 0:Y.openPopupActionCommand,H=(w==null?0:w.ariaLabel)?{accessibilityData:{accessibilityData:{label:w.ariaLabel}}}:void 0;!V&&(Y==null?0:Y.viewModel)&&(V={openPopupAction:Object.assign({},{popup:{dialogViewModel:Y.viewModel},popupType:(w==null?0:w.isModal)?"MODAL":"DIALOG"},H&&H)});V&&this.handleOpenPopupAction(V,b)}else{if(H=Y==null?void 0:Y.viewModel){var f=w=w===void 0?{}:w;w=f.ariaLabel;H={popup:{dialogViewModel:H},
popupType:f.isModal?"MODAL":"DIALOG"};f={accessibilityData:{label:w}};w&&(H.accessibilityData=f);H={openPopupAction:H}}else H=void 0;if(H=(V=H)!=null?V:Y==null?void 0:Y.openPopupActionCommand)this.isAriaModal=_.q("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(H,b)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var Y=this;return _.c(function(b){return b.return(Y.handleGetOpenedPopupsAction_().filter(function(w){var V;return((V=w.openPopupAction)==null?void 0:V.popupType)==="DIALOG"}).length>0)})}}];var kmN;var l2N;var hlO=_.wM(["about:blank"]),ma=function(){var Y=_.F.apply(this,arguments)||this;Y.isMuted=!1;Y.pageLoadTimeoutId=void 0;return Y};
_.P(ma,_.F);_.g=ma.prototype;_.g.dataChanged=function(){var Y=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var b=this.data.url,w=_.SI(b);_.q("enable_yt_ata_iframe_authuser")?(w=_.SI(b),_.Rg(this.iframe,kxb(w))):_.Rg(this.iframe,w);this.pageLoadTimeoutId=_.MY(_.dp(),function(){return void Y.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.gm({destination:window,iframe:this.iframe,origin:_.z8d(w.toString()),channelName:"ataiframe",onMessage:_.C2t(jOO,function(V){GPR(V.data)?(V=_.s3(V.data,1,_.QN,_.V9()),V.length!==1?_.Sk(Error("rl")):(V=V[0],V===3?(Y.isMuted=!0,Y.logStateChanged({adMuteRequested:!0})):V===1&&Y.close())):_.Sk(Error("sl"))}),
onEstablished:function(){Y.cancelPageLoadTimeout();Y.logStateChanged({pageLoadSucceeded:!0})}})}};
_.g.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.dp().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.g.logStateChanged=function(Y){var b;if((b=this.data)==null?0:b.trackingParams)Y={adsClientData:{aboutThisAdData:Y}},_.Qd().stateChanged(this.data.trackingParams,Y)};
_.g.close=function(){_.Xx(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.handlesPopupClosed=function(Y,b){var w=this,V,H;return _.c(function(f){if(f.nextAddress==1)return _.zO("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Xx(w.hostElement,"on-about-this-ad-popup-closed",[w.isMuted,b]),f.jumpTo(0)):Y&&l7t(Y)?_.D(f,hMF(Y),4):(w.isMuted&&_.Xx(w.hostElement,"yt-mute-ad-action",[w.is,w]),f.jumpTo(0));if(V=f.yieldResult){var E=H=new _.nc(V),U=w.isMuted;E.getOptions().includes("onAboutThisAdPopupClosed")?_.PU_(E,"onAboutThisAdPopupClosed",{isMuted:U,layoutId:b}):_.gv("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.om(f)})};
_.g.onPopupClosed=function(Y){var b=this,w,V;return _.c(function(H){w=_.HL(hlO);_.Rg(b.iframe,w);b.cancelPageLoadTimeout();if(!b.data)return H.jumpTo(0);b.ytRendererBehavior.markDirty();V=Y.detail.context.openingElement;return _.D(H,b.handlesPopupClosed(V,b.data.layoutId),0)})};
_.g.detached=function(){this.cancelPageLoadTimeout()};
_.g.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ma.prototype.onPopupClosed=ma.prototype.onPopupClosed;ma.prototype.dataChanged=ma.prototype.dataChanged;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.z([_.xZ("#iframe"),_.K("design:type",HTMLIFrameElement)],ma.prototype,"iframe",void 0);_.z([_.R(),_.K("design:type",Object)],ma.prototype,"data",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ma.prototype,"dataChanged",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype",Promise)],ma.prototype,"onPopupClosed",null);_.z([_.FM({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],ma);
_.a(ma,"yt-about-this-ad-renderer",function(){if(l2N===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-about-this-ad-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ads.yt_about_this_ad_renderer.yt.about.this.ad.renderer.css.js--\x3e<iframe id="iframe" class="style-scope yt-about-this-ad-renderer"></iframe>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;kmN===void 0&&(kmN=document.createElement("template"));var V=kmN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);l2N=Y}Y=l2N;return Y},{mode:2});var xEX;var qb7;var ol=function(Y){var b=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.maxFileSizeMB=Y;Object.setPrototypeOf(this,ol.prototype)};
_.P(ol,Error);var sit=function(Y,b){var w=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=w.message;"stack"in w&&(this.stack=w.stack);this.minWidth=Y;this.minHeight=b;Object.setPrototypeOf(this,sit.prototype)};
_.P(sit,Error);var Qis=function(Y){this.requirements=Y;this.JSC$18612_maxFileSize=Y.maxFileSizeMB*1024*1024},vJ7=function(Y,b){if(b.size>Y.JSC$18612_maxFileSize)throw new ol(Y.requirements.maxFileSizeMB);
};var PgQ=function(Y,b){this.canvas=Y;this.imageEditorBuilder=b};
PgQ.prototype.addEventListeners=function(Y){var b=function(H){Z4Q(Y,H)};
this.JSC$18618_mouseDownEvent=b;var w=function(H){BTg(Y,H)};
this.JSC$18618_mouseMoveEvent=w;var V=function(){nJO(Y)};
this.JSC$18618_mouseUpEvent=V;this.canvas.addEventListener("mousedown",b);this.canvas.addEventListener("mousemove",w);document.addEventListener("mouseup",V)};
PgQ.prototype.removeEventListeners=function(){this.JSC$18618_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18618_mouseDownEvent);this.JSC$18618_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18618_mouseMoveEvent);this.JSC$18618_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18618_mouseUpEvent)};
var MRg=function(Y,b){Y.removeEventListeners();return new Promise(function(w){var V=new Image;V.crossOrigin="anonymous";V.onload=function(){var H=Y.imageEditorBuilder(Y.canvas,V);Y.addEventListeners(H);w(H)};
V.src=b})},Il=function(Y,b,w,V,H,f,E,U){this.canvas=Y;
this.image=b;this.requiredRatio=w;this.minImageCropDimension=V;this.minOutputImageResolution=H;this.component=f;this.styleFocusedCorner=U===void 0?!0:U;this.action=2;this.focusedCorner=this.resizeCorner=0;Y=this.canvas.getContext("2d");if(!Y)throw Error("tl");this.ctx=Y;this.canvasMargin=E!=null?E:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;E=this.image;Y=this.canvasInnerWidth/E.width;E.height*Y>912&&(Y=E.width/E.height*912/E.width);E=Y;this.scaledImageWidth=this.canvas.width%2?
qfd(this.image.width*E):xVO(this.image.width*E);this.scaledImageHeight=Math.round(this.image.height*E);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18621_overlayMarginBottom=this.JSC$18621_overlayMarginTop=this.canvasMargin;this.JSC$18621_overlayMarginRight=this.JSC$18621_overlayMarginLeft=this.horizontalMargin;this.JSC$18621_overlayWidth=this.scaledImageWidth;this.JSC$18621_overlayHeight=this.scaledImageHeight;
Y=this.image.width/this.image.height;Y>this.requiredRatio?(this.JSC$18621_overlayWidth=this.canvas.width%2?qfd(this.scaledImageHeight*this.requiredRatio):xVO(this.scaledImageHeight*this.requiredRatio),this.JSC$18621_overlayMarginRight=this.JSC$18621_overlayMarginLeft=(this.canvas.width-this.JSC$18621_overlayWidth)/2):Y<this.requiredRatio&&(this.JSC$18621_overlayHeight=this.canvas.height%2?qfd(this.scaledImageWidth/this.requiredRatio):xVO(this.scaledImageWidth/this.requiredRatio),this.JSC$18621_overlayMarginBottom=
this.JSC$18621_overlayMarginTop=(this.canvas.height-this.JSC$18621_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*E,this.scaledImageWidth);elN(this)};
Il.prototype.getContext=function(){return this.ctx};
var Z4Q=function(Y,b){b={x:Math.round(b.pageX-Y.canvas.getBoundingClientRect().left),y:Math.round(b.pageY-Y.canvas.getBoundingClientRect().top)};Y.dragStart=b;pdX(Y,b)!==0?(Y.action=1,O47(Y,b),Y.resizeCorner=pdX(Y,b)):b.x>Y.JSC$18621_overlayMarginLeft&&b.x<Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth&&b.y>Y.JSC$18621_overlayMarginTop&&b.y<Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight&&(Y.action=0)},tRt=function(Y,b){switch(b){case 1:return{x:Y.JSC$18621_overlayMarginLeft,
y:Y.JSC$18621_overlayMarginTop};case 2:return{x:Y.JSC$18621_overlayMarginLeft,y:Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight};case 3:return{x:Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth,y:Y.JSC$18621_overlayMarginTop};case 4:return{x:Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth,y:Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight};default:throw Error("ul");}},dEs=function(Y,b){if(Y.focusedCorner!==0){Y.dragStart=tRt(Y,Y.focusedCorner);
Y.action=1;Y.resizeCorner=Y.focusedCorner;var w=Y.dragStart.x,V=Y.dragStart.y;switch(b){case 0:Y.focusedCorner===1||Y.focusedCorner===4?(w-=10,V-=10):(w-=10,V+=10);break;case 1:Y.focusedCorner===1||Y.focusedCorner===4?(w+=10,V+=10):(w+=10,V-=10);break;case 2:w=Y.focusedCorner===1||Y.focusedCorner===4?w-10:w+10;V-=10;break;case 3:w=Y.focusedCorner===1||Y.focusedCorner===4?w+10:w-10;V+=10;break;default:throw Error("vl");}RlO(Y,{x:w,y:V});elN(Y);Y.action=2;Y.dragStart=void 0}},BTg=function(Y,b){b={x:Math.round(b.pageX-
Y.canvas.getBoundingClientRect().left),
y:Math.round(b.pageY-Y.canvas.getBoundingClientRect().top)};O47(Y,b);switch(Y.action){case 1:RlO(Y,b);break;case 0:Y.dragStart&&(Y.JSC$18621_overlayMarginLeft=Math.max(Y.horizontalMargin,Math.min(Y.JSC$18621_overlayMarginLeft-(Y.dragStart.x-b.x),Y.horizontalMargin+Y.scaledImageWidth-Y.JSC$18621_overlayWidth)),Y.JSC$18621_overlayMarginRight=Y.canvas.width-Y.JSC$18621_overlayMarginLeft-Y.JSC$18621_overlayWidth,Y.JSC$18621_overlayMarginTop=Math.max(Y.canvasMargin,Math.min(Y.JSC$18621_overlayMarginTop-
(Y.dragStart.y-b.y),Y.scaledImageHeight-Y.JSC$18621_overlayHeight+Y.canvasMargin)),Y.JSC$18621_overlayMarginBottom=Y.canvas.height-(Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight));break;default:return}elN(Y);Y.dragStart=b},nJO=function(Y){Y.action=2;
Y.dragStart=void 0;document.body.style.cursor="auto"},O47=function(Y,b){switch(pdX(Y,b)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:Y.action!==1&&(document.body.style.cursor="auto")}},pdX=function(Y,b){var w=Y.JSC$18621_overlayMarginLeft-5,V=Y.JSC$18621_overlayMarginTop-5,H=Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth-5;
Y=Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight-5;return FJX(b,{x:w,y:V})?1:FJX(b,{x:H,y:V})?3:FJX(b,{x:w,y:Y})?2:FJX(b,{x:H,y:Y})?4:0},FJX=function(Y,b){return Y.x>=b.x&&Y.x<=b.x+10&&Y.y>=b.y&&Y.y<=b.y+10},RlO=function(Y,b){if(Y.dragStart)switch(Y.resizeCorner){case 2:Math.abs((Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth-b.x)/(b.y-Y.JSC$18621_overlayMarginTop))>=Y.requiredRatio?LJR(Y,b.x):SbA(Y,b.y);
break;case 1:Math.abs((Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth-b.x)/(Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight-b.y))>=Y.requiredRatio?a2s(Y,b.x):SbA(Y,b.y);break;case 4:Math.abs((b.x-Y.JSC$18621_overlayMarginLeft)/(b.y-Y.JSC$18621_overlayMarginTop))>=Y.requiredRatio?LJR(Y,b.x):r8g(Y,b.y);break;case 3:Math.abs((b.x-Y.JSC$18621_overlayMarginLeft)/(Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight-b.y))>=Y.requiredRatio?a2s(Y,b.x):r8g(Y,b.y);break;default:throw Error("wl");
}},LJR=function(Y,b){var w=Y.JSC$18621_overlayMarginTop;
Y.JSC$18621_overlayMarginBottom=zlt(Y,b);Y.JSC$18621_overlayHeight=Y.canvas.height-Y.JSC$18621_overlayMarginBottom-w;Y.JSC$18621_overlayWidth=Math.round(Y.JSC$18621_overlayHeight*Y.requiredRatio);WJd(Y)},a2s=function(Y,b){var w=Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight;
Y.JSC$18621_overlayMarginTop=zlt(Y,b);Y.JSC$18621_overlayHeight=w-Y.JSC$18621_overlayMarginTop;Y.JSC$18621_overlayWidth=Math.round(Y.JSC$18621_overlayHeight*Y.requiredRatio);WJd(Y)},WJd=function(Y){switch(Y.resizeCorner){case 2:case 1:Y.JSC$18621_overlayMarginLeft=Y.canvas.width-Y.JSC$18621_overlayMarginRight-Y.JSC$18621_overlayWidth;
break;case 4:case 3:Y.JSC$18621_overlayMarginRight=Y.canvas.width-Y.JSC$18621_overlayMarginLeft-Y.JSC$18621_overlayWidth;break;default:throw Error("wl");}},SbA=function(Y,b){var w=Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth;
Y.JSC$18621_overlayMarginLeft=KJQ(Y,b);Y.JSC$18621_overlayWidth=w-Y.JSC$18621_overlayMarginLeft;Y.JSC$18621_overlayHeight=Math.round(Y.JSC$18621_overlayWidth/Y.requiredRatio);i4X(Y)},r8g=function(Y,b){var w=Y.JSC$18621_overlayMarginLeft;
Y.JSC$18621_overlayMarginRight=KJQ(Y,b);Y.JSC$18621_overlayWidth=Y.canvas.width-Y.JSC$18621_overlayMarginRight-w;Y.JSC$18621_overlayHeight=Math.round(Y.JSC$18621_overlayWidth/Y.requiredRatio);i4X(Y)},i4X=function(Y){switch(Y.resizeCorner){case 2:case 4:Y.JSC$18621_overlayMarginBottom=Y.canvas.height-Y.JSC$18621_overlayMarginTop-Y.JSC$18621_overlayHeight;
break;case 1:case 3:Y.JSC$18621_overlayMarginTop=Y.canvas.height-Y.JSC$18621_overlayMarginBottom-Y.JSC$18621_overlayHeight;break;default:throw Error("wl");}},zlt=function(Y,b){switch(Y.resizeCorner){case 2:b=Y.canvas.height-(Y.JSC$18621_overlayMarginTop+A8X(Y,b));
break;case 4:b=Y.canvas.height-(Y.JSC$18621_overlayMarginTop+Cgg(Y,b));break;case 1:b=Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight-A8X(Y,b);break;case 3:b=Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight-Cgg(Y,b);break;default:throw Error("wl");}return Math.max(b,Y.canvasMargin)},A8X=function(Y,b){b=Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth-Math.max(b,Y.horizontalMargin);
b=b<0?Y.JSC$18621_overlayWidth:Math.max(b,Y.minOverlayWidth);return Math.round(b/Y.requiredRatio)},Cgg=function(Y,b){b=Y.canvas.width-Math.max(Y.canvas.width-b,Y.horizontalMargin)-Y.JSC$18621_overlayMarginLeft;
b=b<0?Y.JSC$18621_overlayWidth:Math.max(b,Y.minOverlayWidth);return Math.round(b/Y.requiredRatio)},KJQ=function(Y,b){switch(Y.resizeCorner){case 2:b=Y.canvas.width-Y.JSC$18621_overlayMarginRight-y8X(Y,b);
break;case 4:b=Y.canvas.width-Y.JSC$18621_overlayMarginLeft-y8X(Y,b);break;case 1:b=Y.canvas.width-Y.JSC$18621_overlayMarginRight-$Eg(Y,b);break;case 3:b=Y.canvas.width-Y.JSC$18621_overlayMarginLeft-$Eg(Y,b);break;default:throw Error("wl");}return Math.max(b,Y.horizontalMargin)},y8X=function(Y,b){b=Y.canvas.height-Math.max(Y.canvas.height-b,Y.canvasMargin)-Y.JSC$18621_overlayMarginTop;
return b<0?Y.JSC$18621_overlayWidth:Math.max(Math.round(b*Y.requiredRatio),Y.minOverlayWidth)},$Eg=function(Y,b){b=Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight-Math.max(b,Y.canvasMargin);
return b<0?Y.JSC$18621_overlayWidth:Math.max(Math.round(b*Y.requiredRatio),Y.minOverlayWidth)},elN=function(Y){Y.ctx.clearRect(0,0,Y.canvas.width,Y.canvas.height);
Y.ctx.drawImage(Y.image,0,0,Y.image.width,Y.image.height,Y.horizontalMargin,Y.canvasMargin,Y.canvas.width-2*Y.horizontalMargin,Y.scaledImageHeight);Y.ctx.fillStyle="rgba(0, 0, 0, 0.7)";Y.ctx.fillRect(Y.horizontalMargin,Y.JSC$18621_overlayMarginTop,Y.JSC$18621_overlayMarginLeft-Y.horizontalMargin,Y.JSC$18621_overlayHeight);Y.ctx.fillRect(Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth,Y.JSC$18621_overlayMarginTop,Y.JSC$18621_overlayMarginRight-Y.horizontalMargin,Y.JSC$18621_overlayHeight);Y.ctx.fillRect(Y.horizontalMargin,
Y.canvasMargin,Y.scaledImageWidth,Y.JSC$18621_overlayMarginTop-Y.canvasMargin);Y.ctx.fillRect(Y.horizontalMargin,Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight,Y.scaledImageWidth,Y.JSC$18621_overlayMarginBottom-Y.canvasMargin);Y.drawOverlay();Y.component&&_.Ua(Y.component,"image-updated")};
Il.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18621_overlayMarginLeft,this.JSC$18621_overlayMarginTop,this.JSC$18621_overlayWidth,this.JSC$18621_overlayHeight);jiX(this)};
var jiX=function(Y){var b=Y.JSC$18621_overlayMarginLeft-5,w=Y.JSC$18621_overlayMarginTop-5,V=Y.JSC$18621_overlayMarginLeft+Y.JSC$18621_overlayWidth-5,H=Y.JSC$18621_overlayMarginTop+Y.JSC$18621_overlayHeight-5;Y.ctx.fillStyle="#FFF";Y.ctx.fillRect(b,w,10,10);Y.ctx.strokeRect(b,w,10,10);Y.ctx.fillRect(V,w,10,10);Y.ctx.strokeRect(V,w,10,10);Y.ctx.fillRect(b,H,10,10);Y.ctx.strokeRect(b,H,10,10);Y.ctx.fillRect(V,H,10,10);Y.ctx.strokeRect(V,H,10,10);if(Y.focusedCorner!==0&&Y.styleFocusedCorner){Y.ctx.lineWidth=
4;Y.ctx.strokeStyle="#3EA6FF";switch(Y.focusedCorner){case 1:--b;--w;break;case 2:--b;w=H-1;break;case 3:b=V-1;--w;break;case 4:b=V-1;w=H-1;break;default:return}Y.ctx.strokeRect(b,w,12,12)}};
Il.prototype.crop=function(Y,b){b=b===void 0?!0:b;var w=this.image.width/this.scaledImageWidth,V=document.createElement("canvas"),H=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],f=this.JSC$18621_overlayWidth*w,E=this.JSC$18621_overlayHeight*w;V.width=Math.max(f,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);V.height=Math.max(E,H);Y&&(V.width=Math.min(V.width,V.height),V.height=Math.min(V.width,V.height));
Y=V.getContext("2d");if(!Y)throw Error("kl");H=(this.JSC$18621_overlayMarginLeft-this.horizontalMargin)*w;w*=this.JSC$18621_overlayMarginTop-this.canvasMargin;b||(Y.fillStyle="white",Y.fillRect(0,0,V.width,V.height));Y.drawImage(this.image,H,w,f,E,0,0,V.width,V.height);return V};var GmN=function(Y,b,w,V,H){Il.call(this,Y,b,w,V,void 0,H,8,!1)};
_.P(GmN,Il);GmN.prototype.drawOverlay=function(){var Y=this.getContext(),b=this.JSC$18621_overlayWidth,w=this.JSC$18621_overlayHeight,V=this.JSC$18621_overlayMarginTop,H=this.JSC$18621_overlayMarginLeft;Y.lineWidth=2;Y.strokeStyle="#3EA6FF";Y.beginPath();Y.arc(H+b/2,V+w/2,b/2,0,2*Math.PI);Y.stroke();Y.strokeRect(H,V,b,w);jiX(this)};
var TTt={maxFileSizeMB:15,minWidth:98,minHeight:98},J8N=["image/png","image/jpeg","image/gif"],ko=function(){var Y=_.F.apply(this,arguments)||this;Y.fileSelectorFocusListener=null;Y.errorMessage=null;Y.isLoading=!0;Y.hideContainer=!0;Y.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return Y};
_.P(ko,_.F);_.g=ko.prototype;_.g.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.g.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.g.computePlaylistThumbnail=function(Y){return Y==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.g.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Xx(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.g.setErrorState=function(Y){this.resetErrorState();Y&&(this.errorMessage=Y)};
_.g.showPopup=function(){var Y=this;this.hideContainer=!1;_.MY(_.Lb,function(){_.Ua(Y.hostElement,"yt-refit")});
this.isLoading=!1};
_.g.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.g.closePopup=function(){this.resetFileSelector();_.Xx(this.hostElement,"yt-close-popup-action",[this.is])};
_.g.onCancelTap=function(){this.isPlaylistThumbnail||_.Xx(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.g.openFileSelector=function(){var Y=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.MY(_.Lb,function(){setTimeout(function(){if(!Y.fileSelector.files||Y.fileSelector.files.length===0)Y.onCancelTap();Y.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(b){b instanceof Error?_.Ft(b):_.LB(new _.BQ(JSON.stringify(b)))}};
_.g.handleFileSelection=function(){var Y=this,b,w,V,H,f,E;return _.c(function(U){switch(U.nextAddress){case 1:_.ct(U,2);if(!Y.fileSelector.files||!Y.imageEditorCanvas)return Y.onCancelTap(),U.return();b=Y.fileSelector.files[0];vJ7(Y.imageChecker,b);_.ct(U,4);return _.D(U,CnF(b),6);case 6:Y.mimeType=U.yieldResult;_.$u(U,5,2);break;case 4:_.mS(U,2),_.Xx(Y.hostElement,"yt-image-selection-error-action",[(w=Y.data)==null?void 0:w.genericImageLoadErrorMessage]),Y.onCancelTap();case 5:V=new FileReader;V.addEventListener("load",
function(){var X,I;return _.c(function(k){if(k.nextAddress==1){if(!V.result)return _.Sk(Error("ml")),k.return();X=V.result;I=new Image;I.src=X;I.onload=function(){try{var l=Y.imageChecker;if(I.width<l.requirements.minWidth||I.height<l.requirements.minHeight)throw new sit(l.requirements.minWidth,l.requirements.minHeight);}catch(Q){if(Q instanceof sit){var x;_.Xx(Y.hostElement,"yt-image-selection-error-action",[(x=Y.data)==null?void 0:x.imageDimensionErrorMessage]);Y.logImageDimensionErrorVe()}else Q instanceof
Error?_.Ft(Q):(l=new _.BQ(JSON.stringify(Q)),_.Ft(l));Y.onCancelTap()}Y.showPopup()};
I.onerror=function(){var l;_.Xx(Y.hostElement,"yt-image-selection-error-action",[(l=Y.data)==null?void 0:l.genericImageLoadErrorMessage]);Y.onCancelTap()};
return _.D(k,MRg(Y.imageEditorCanvas,X),2)}Y.imageEditor=k.yieldResult;Y.updatePositionOfAllCorners();Y.addEventListeners(Y.imageEditor);_.om(k)})},!1);
V.readAsDataURL(b);_.$u(U,0);break;case 2:H=_.mS(U),H instanceof ol?_.Xx(Y.hostElement,"yt-image-selection-error-action",[(f=Y.data)==null?void 0:f.imageSizeErrorMessage]):(H instanceof Error?_.Ft(H):_.LB(new _.BQ(JSON.stringify(H))),_.Xx(Y.hostElement,"yt-image-selection-error-action",[(E=Y.data)==null?void 0:E.genericImageLoadErrorMessage])),Y.onCancelTap(),_.om(U)}})};
_.g.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var Y=_.sQ(_.Qd(),{veType:232707,visualElement:_.tj(232707)});Y&&(Y={visualElement:Y},_.qZ().reportShown(Y))}};
_.g.handleImageSelectionErrorAction=function(Y){this.isPlaylistThumbnail&&_.cKq(this.hostElement,Y)};
_.g.convertToImageFormatBundle=function(Y){var b=this,w,V,H;return _.c(function(f){switch(f.nextAddress){case 1:return w=Y.toDataURL(b.outputMimeType,1),_.D(f,y1b(w),2);case 2:V=f.yieldResult;_.ct(f,3);vJ7(b.imageChecker,V);_.$u(f,4);break;case 3:H=_.mS(f);if(!(H instanceof ol))throw H;_.Sk(new _.BQ("Output size is bigger than input size for image",b.mimeType,b.outputMimeType,V.size));w=Y.toDataURL("image/jpeg",.95);return _.D(f,y1b(w),6);case 6:V=f.yieldResult;case 4:return f.return({dataUrl:w,imageFile:V})}})};
_.g.handleUploadImageToScottyCommand=function(Y){var b=this,w,V,H,f,E,U,X,I,k,l;return _.c(function(x){switch(x.nextAddress){case 1:if(!b.imageEditor||!_.v(Y,XUd))return x.return();w=_.v(Y,XUd).scottyUploadUrl;if(!w){var Q=new _.BQ("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Ft(Q);return x.return()}_.ct(x,2);b.setLoadingState();V=b.imageEditor.crop(!1,!1);return _.D(x,b.convertToImageFormatBundle(V),4);case 4:return H=x.yieldResult,_.D(x,izd(H.imageFile,w),5);case 5:f=
x.yieldResult;((E=b.data)==null?0:E.onUploadEndpoint)?(U=b.buildUploadServiceEndpoint(f),b.ytComponentBehavior.resolveCommand(U),X=_.v(U,_.aU),((I=X)==null?0:I.params)?b.closePopup():b.resetFileSelector()):(_.Xx(b.hostElement,"yt-image-updated-action",[H.dataUrl,f]),b.closePopup());_.$u(x,0);break;case 2:k=_.mS(x),b.setErrorState((l=b.data)==null?void 0:l.uploadErrorMessage),k instanceof Error?_.Ft(k):(Q=new _.BQ(JSON.stringify(k)),_.Ft(Q)),_.om(x)}})};
_.g.buildUploadServiceEndpoint=function(Y){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",Y),this.data.onUploadEndpoint):null};
_.g.dataChanged=function(){var Y=this,b;return _.c(function(w){if(w.nextAddress==1){if(!Y.data||!Y.canvasElement)return w.return();Y.data.imageRatio&&Y.data.minImageCropWidth||_.LB(new _.BQ("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));b=function(V,H){return Y.data.imageType==="IMAGE_TYPE_AVATAR"?new GmN(V,H,Y.data.imageRatio,[Y.data.minImageCropWidth,Y.data.minImageCropWidth/Y.data.imageRatio],Y.hostElement):new Il(V,H,Y.data.imageRatio,[Y.data.minImageCropWidth,
Y.data.minImageCropWidth/Y.data.imageRatio],void 0,Y.hostElement,8,!1)};
Y.imageEditorCanvas=new PgQ(Y.canvasElement,b);return Y.data.url?_.D(w,MRg(Y.imageEditorCanvas,Y.data.url),3):(Y.hideContainer=!0,Y.openFileSelector(),w.jumpTo(0))}Y.imageEditor=w.yieldResult;Y.showPopup();Y.addEventListeners(Y.imageEditor);_.om(w)})};
_.g.addEventListeners=function(Y){this.removeEventListeners();var b=function(H){Z4Q(Y,H)};
this.JSC$18629_mouseDownEvent=b;var w=function(H){BTg(Y,H)};
this.JSC$18629_mouseMoveEvent=w;var V=function(){nJO(Y)};
this.JSC$18629_mouseUpEvent=V;this.topLeftCorner.addEventListener("mousedown",b);this.topLeftCorner.addEventListener("mousemove",w);this.topLeftCorner.addEventListener("mouseup",V);this.topRightCorner.addEventListener("mousedown",b);this.topRightCorner.addEventListener("mousemove",w);this.topRightCorner.addEventListener("mouseup",V);this.bottomLeftCorner.addEventListener("mousedown",b);this.bottomLeftCorner.addEventListener("mousemove",w);this.bottomLeftCorner.addEventListener("mouseup",V);this.bottomRightCorner.addEventListener("mousedown",
b);this.bottomRightCorner.addEventListener("mousemove",w);this.bottomRightCorner.addEventListener("mouseup",V)};
_.g.removeEventListeners=function(){this.JSC$18629_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18629_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18629_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18629_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18629_mouseDownEvent));this.JSC$18629_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18629_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18629_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18629_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18629_mouseMoveEvent));this.JSC$18629_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18629_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18629_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18629_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18629_mouseUpEvent))};
_.g.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var Y=document.activeElement;Y&&Y.shadowRoot&&Y.shadowRoot.activeElement;)Y=Y.shadowRoot.activeElement;switch(Y){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.g.updatePositionOfCorner=function(Y,b){var w=Y.y-b.offsetHeight/2+4;b.style.left=Y.x-b.offsetWidth/2+16+"px";b.style.top=w+"px"};
_.g.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var Y=_.N([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),b=Y.next();!b.done;b=Y.next()){b=b.value;var w=tRt(this.imageEditor,b.corner);this.updatePositionOfCorner(w,b.div)}};
_.g.onLeft=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(dEs(this.imageEditor,0),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.g.onRight=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(dEs(this.imageEditor,1),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.g.onUp=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(dEs(this.imageEditor,2),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.g.onDown=function(Y){this.imageEditor&&this.setFocusInImageEditor()&&(dEs(this.imageEditor,3),this.updatePositionOfAllCorners(),Y.preventDefault())};
_.g.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.up.Object.defineProperties(ko.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&J8N.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var Y,b,w;((b=this.data)==null?0:b.imageRatio)&&((w=this.data)==null?0:w.minImageCropWidth)?Y={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:Y=TTt;return new Qis(Y)}}});
ko.prototype.updatePositionOfAllCorners=ko.prototype.updatePositionOfAllCorners;ko.prototype.dataChanged=ko.prototype.dataChanged;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],ko.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],ko.prototype,"ytComponentBehavior",void 0);_.z([_.n(_.ni),_.K("design:type",Object)],ko.prototype,"ironA11yKeysBehavior",void 0);
_.z([_.xZ("#canvas"),_.K("design:type",HTMLCanvasElement)],ko.prototype,"canvasElement",void 0);_.z([_.xZ("#file-selector"),_.K("design:type",HTMLInputElement)],ko.prototype,"fileSelector",void 0);_.z([_.xZ("#top-left-corner"),_.K("design:type",HTMLDivElement)],ko.prototype,"topLeftCorner",void 0);_.z([_.xZ("#top-right-corner"),_.K("design:type",HTMLDivElement)],ko.prototype,"topRightCorner",void 0);
_.z([_.xZ("#bottom-left-corner"),_.K("design:type",HTMLDivElement)],ko.prototype,"bottomLeftCorner",void 0);_.z([_.xZ("#bottom-right-corner"),_.K("design:type",HTMLDivElement)],ko.prototype,"bottomRightCorner",void 0);_.z([_.R(),_.K("design:type",Object)],ko.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],ko.prototype,"errorMessage",void 0);_.z([_.R(),_.K("design:type",Object)],ko.prototype,"isLoading",void 0);_.z([_.R(),_.K("design:type",Object)],ko.prototype,"hideContainer",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.K("design:type",Boolean)],ko.prototype,"isPlaylistThumbnail",void 0);_.z([_.vX("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],ko.prototype,"dataChanged",null);_.z([_.kZ("image-updated"),_.kZ("yt-refit"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],ko.prototype,"updatePositionOfAllCorners",null);
_.z([_.FM({is:"yt-image-editor-renderer",disableElementRegistration:!0})],ko);
_.a(ko,"yt-image-editor-renderer",function(){if(qb7===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-image-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.channels.yt_image_editor_renderer.yt.image.editor.renderer.css.js--\x3e<div class="container style-scope yt-image-editor-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope yt-image-editor-renderer">\n    <h2 class="style-scope yt-image-editor-renderer">\n      <yt-formatted-string id="title" class="popup-header-title style-scope yt-image-editor-renderer" text="[[data.title]]">\n      </yt-formatted-string>\n    </h2>\n  </div>\n  <div class="content style-scope yt-image-editor-renderer" slot="content" no-padding="" id="canvas-container">\n    <div class="error style-scope yt-image-editor-renderer" hidden="[[!errorMessage]]">\n      <yt-icon id="info-icon" icon="yt-icons:info" class="style-scope yt-image-editor-renderer"></yt-icon>\n      <yt-formatted-string id="error" class="error-message style-scope yt-image-editor-renderer" text="[[errorMessage]]">\n    </yt-formatted-string>\n    </div>\n    <canvas id="canvas" width="600" height="600" class="style-scope yt-image-editor-renderer">\n    </canvas>\n    <div class="drag top-left style-scope yt-image-editor-renderer" id="top-left-corner" aria-label="[[data.topLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag top-right style-scope yt-image-editor-renderer" id="top-right-corner" aria-label="[[data.topRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-left style-scope yt-image-editor-renderer" id="bottom-left-corner" aria-label="[[data.bottomLeftCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n    <div class="drag bottom-right style-scope yt-image-editor-renderer" id="bottom-right-corner" aria-label="[[data.bottomRightCornerImageCropAriaLabel]]" role="button" tabindex="0">\n    </div>\n  </div>\n  <div class="button-layer style-scope yt-image-editor-renderer">\n    <input id="file-selector" accept="image/*" hidden="" type="file" on-change="handleFileSelection" class="style-scope yt-image-editor-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="update-button" data="[[data.updateButton.buttonRenderer]]" class="style-scope yt-image-editor-renderer">\n    </yt-button-renderer>\n  </div>\n  <div class="spinner-container style-scope yt-image-editor-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope yt-image-editor-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;xEX===void 0&&(xEX=document.createElement("template"));var V=xEX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);qb7=Y}Y=qb7;return Y},{mode:2});var uJt;var Y5I;var lD=function(){return _.F.apply(this,arguments)||this};
_.P(lD,_.F);lD.prototype.updateMinutesFromBinding=function(Y){this.handleMinutesChanged&&this.handleMinutesChanged(Y)};
lD.prototype.updateSecondsFromBinding=function(Y){this.handleSecondsChanged&&this.handleSecondsChanged(Y)};
lD.prototype.updateDescriptionFromBinding=function(Y){this.handleDescriptionChanged&&this.handleDescriptionChanged(Y)};
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],lD.prototype,"data",void 0);_.z([_.R(),_.K("design:type",String)],lD.prototype,"minutes",void 0);_.z([_.R(),_.K("design:type",String)],lD.prototype,"seconds",void 0);_.z([_.R(),_.K("design:type",String)],lD.prototype,"description",void 0);_.z([_.R(),_.K("design:type",Function)],lD.prototype,"handleMinutesChanged",void 0);
_.z([_.R(),_.K("design:type",Function)],lD.prototype,"handleSecondsChanged",void 0);_.z([_.R(),_.K("design:type",Function)],lD.prototype,"handleDescriptionChanged",void 0);_.z([_.R(),_.K("design:type",Number)],lD.prototype,"characterLimit",void 0);_.z([_.R(),_.K("design:type",Number)],lD.prototype,"textNumRows",void 0);_.z([_.FM({is:"yt-report-details-form-content",disableElementRegistration:!0})],lD);
_.a(lD,"yt-report-details-form-content",function(){if(Y5I===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_content.yt.report.details.form.content.css.js--\x3e<div id="content" class="style-scope yt-report-details-form-content"><label id="timestamp" class="style-scope yt-report-details-form-content">\n    [[getSimpleString(data.timestampLabel)]]\n    <yt-timestamp-input minutes="[[minutes]]" seconds="[[seconds]]" on-minutes-changed="updateMinutesFromBinding" on-seconds-changed="updateSecondsFromBinding" class="style-scope yt-report-details-form-content"></yt-timestamp-input></label><div id="description" class="style-scope yt-report-details-form-content"><tp-yt-paper-input-container no-label-float="" use-v2-underline="" class="style-scope yt-report-details-form-content"><tp-yt-iron-autogrow-textarea id="description-text" class="paper-input-input style-scope yt-report-details-form-content" slot="input" aria-label$="[[getSimpleString(data.descriptionHint)]]" maxlength$="[[characterLimit]]" placeholder="[[getSimpleString(data.descriptionHint)]]" rows$="[[textNumRows]]" value="[[description]]" on-value-changed="updateDescriptionFromBinding"></tp-yt-iron-autogrow-textarea><tp-yt-paper-input-char-counter slot="add-on" class="style-scope yt-report-details-form-content"></tp-yt-paper-input-char-counter></tp-yt-paper-input-container></div><yt-formatted-string id="footer" text="[[data.footer]]" class="style-scope yt-report-details-form-content"></yt-formatted-string></div>');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;uJt===void 0&&(uJt=document.createElement("template"));var V=uJt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);Y5I=Y}Y=Y5I;return Y},{mode:2});var bD7;var wmt;var hV=function(){var Y=_.F.apply(this,arguments)||this;Y.updateMinutesFromBinding=function(b){Y.minutes=b.detail.value};
Y.updateSecondsFromBinding=function(b){Y.seconds=b.detail.value};
Y.updateDescriptionFromBinding=function(b){Y.description=b.detail.value};
return Y};
_.P(hV,_.F);_.g=hV.prototype;_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.g.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"}}}};
_.g.ready=function(){_.E6(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.g.onSubmitYtAction=function(Y){var b=Y.detail;b.actionName==="yt-service-request"&&(b=b.args[1],b.flagEndpoint&&(Y.stopPropagation(),this.refireAction(b)))};
_.g.refireAction=function(Y){var b={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(b.vss_id=this.vssId);_.oP(this.hostElement,[Y,b]);this.submitDisabled=!0};
_.g.dataChanged=function(){var Y=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var b=_.V4();b&&b.getPlayerPromise().then(function(w){var V=w.getOption("cc","track")||w.getOption("captions","track");V&&(Y.vssId=V.vss_id);w=w.getCurrentTime();Y.minutes=Math.floor(w/60).toString();Y.seconds=(Math.floor(w)%60).toString()})};
_.g.updateSubmitButtonState=function(){var Y;((Y=this.data)==null?0:Y.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.g.onYtServiceRequestCompleted=function(){_.Xx(this.hostElement,"yt-close-popup-action")};
_.g.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.up.Object.defineProperties(hV.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var Y;return((Y=this.data)==null?void 0:Y.textNumRows)||4}}});
hV.prototype.onYtServiceRequestError=hV.prototype.onYtServiceRequestError;hV.prototype.onYtServiceRequestCompleted=hV.prototype.onYtServiceRequestCompleted;hV.prototype.updateSubmitButtonState=hV.prototype.updateSubmitButtonState;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);
_.z([_.R({observer:"dataChanged"}),_.K("design:type",Object)],hV.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Boolean)],hV.prototype,"submitDisabled",void 0);_.z([_.R(),_.K("design:type",String)],hV.prototype,"minutes",void 0);_.z([_.R(),_.K("design:type",String)],hV.prototype,"seconds",void 0);_.z([_.R(),_.K("design:type",String)],hV.prototype,"description",void 0);_.z([_.R(),_.K("design:type",String)],hV.prototype,"vssId",void 0);
_.z([_.R({value:_.zO("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.K("design:type",Boolean)],hV.prototype,"isMusic",void 0);_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],hV.prototype,"characterLimit",null);_.z([_.t("data"),_.K("design:type",Number),_.K("design:paramtypes",[])],hV.prototype,"textNumRows",null);
_.z([_.vX("minutes","seconds","description","submitDisabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hV.prototype,"updateSubmitButtonState",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hV.prototype,"onYtServiceRequestCompleted",null);
_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],hV.prototype,"onYtServiceRequestError",null);_.z([_.FM({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],hV);
_.a(hV,"yt-report-details-form-renderer",function(){if(wmt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-details-form-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_details_form_renderer.yt.report.details.form.renderer.css.js--\x3e<div id="header" class="style-scope yt-report-details-form-renderer">\n  <div id="back-button" class="style-scope yt-report-details-form-renderer"></div>\n  <h2 id="title" class="style-scope yt-report-details-form-renderer">[[getSimpleString(data.title)]]</h2>\n</div>\n  <yt-report-details-form-content character-limit="[[characterLimit]]" data="[[data]]" description="[[description]]" handle-description-changed="[[updateDescriptionFromBinding]]" handle-minutes-changed="[[updateMinutesFromBinding]]" handle-seconds-changed="[[updateSecondsFromBinding]]" minutes="[[minutes]]" seconds="[[seconds]]" text-num-rows="[[textNumRows]]" class="style-scope yt-report-details-form-renderer">\n  </yt-report-details-form-content>\n<div id="buttons" class="style-scope yt-report-details-form-renderer">\n  <div id="cancel-button" class="style-scope yt-report-details-form-renderer"></div>\n  <div id="submit-button" class="style-scope yt-report-details-form-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;bD7===void 0&&(bD7=document.createElement("template"));var V=bD7;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);wmt=Y}Y=wmt;return Y});var Vdg;var HDb;var gxg;var fbX;var xo=function(){return _.F.apply(this,arguments)||this};
_.P(xo,_.F);
xo.prototype.onCheckedChanged_=function(){if(this.data){var Y=_.E6(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Xx(this.hostElement,"yt-additional-detail-checkbox-update",[Y]):this.data.identifier==="yt-hide-user-checkbox"?_.Xx(this.hostElement,"yt-hide-user-checkbox-update",[Y]):Y&&this.data.enableCommand?_.Xx(this.hostElement,"yt-modify-report-form-command",[_.v(this.data.enableCommand,hzN)]):!Y&&this.data.disableCommand&&_.Xx(this.hostElement,
"yt-modify-report-form-command",[_.v(this.data.enableCommand,hzN)])}};
xo.prototype.onLabelTap_=function(Y){Y.target.tagName!="A"&&(_.E6(this.hostElement).querySelector("#checkbox").checked=!_.E6(this.hostElement).querySelector("#checkbox").checked)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],xo.prototype,"data",void 0);_.z([_.FM({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],xo);
_.a(xo,"yt-boolean-form-field-v2-renderer",function(){if(fbX===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-boolean-form-field-v2-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_boolean_form_field_v2_renderer.yt.boolean.form.field.v2.renderer.css.js--\x3e<tp-yt-paper-checkbox id="checkbox" aria-labelledby="yt-boolean-form-field-v2-renderer-label" checked="[[data.value]]" on-checked-changed="onCheckedChanged_" class="style-scope yt-boolean-form-field-v2-renderer">\n</tp-yt-paper-checkbox>\n<div id="content" class="style-scope yt-boolean-form-field-v2-renderer">\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-label" class="label style-scope yt-boolean-form-field-v2-renderer" text="[[data.label]]" on-tap="onLabelTap_">\n  </yt-formatted-string>\n  <yt-formatted-string id="yt-boolean-form-field-v2-renderer-tooltip" class="tooltip style-scope yt-boolean-form-field-v2-renderer" text="[[data.tooltip]]">\n  </yt-formatted-string>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;gxg===void 0&&(gxg=document.createElement("template"));var V=gxg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);fbX=Y}Y=fbX;return Y});var qO=function(){var Y=_.F.apply(this,arguments)||this;Y.canShowAdditionalDetailCheckbox=!1;Y.canShowCheckbox=!1;Y.keepDropdownFocusedAfterSelection=!0;return Y};
_.P(qO,_.F);qO.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}}}}};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],qO.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],qO.prototype,"canShowAdditionalDetailCheckbox",void 0);_.z([_.R(),_.K("design:type",Object)],qO.prototype,"canShowCheckbox",void 0);_.z([_.R(),_.K("design:type",Object)],qO.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.z([_.FM({is:"yt-report-form-modal-content",disableElementRegistration:!0})],qO);
_.a(qO,"yt-report-form-modal-content",function(){if(HDb===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_content.yt.report.form.modal.content.css.js--\x3e<div id="container" hidden="[[!data]]" class="style-scope yt-report-form-modal-content"><yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string><yt-options-renderer data="[[data.optionsSupportedRenderers.optionsRenderer]]" restore-focus-on-close="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-content"></yt-options-renderer><div id="additional-detail-checkbox-container" hidden="[[!canShowAdditionalDetailCheckbox]]" class="style-scope yt-report-form-modal-content"></div><div id="checkbox-container" hidden="[[!canShowCheckbox]]" class="style-scope yt-report-form-modal-content"></div><yt-formatted-string id="footer" hidden="[[!data.footer]]" split-lines="" text="[[data.footer]]" class="style-scope yt-report-form-modal-content"></yt-formatted-string></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;Vdg===void 0&&(Vdg=document.createElement("template"));var V=Vdg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);HDb=Y}Y=HDb;return Y},{mode:2});var N1t;var ExO;var sY=function(){var Y=_.F.apply(this,arguments)||this;Y.submitting=!1;Y.submitButtonDisabled=!0;Y.command=null;Y.canShowCheckbox=!1;Y.canShowAdditionalDetailCheckbox=!1;Y.canShowNextButton=!1;Y.additionalDetailCheckboxChecked=!1;Y.refitJob=0;Y.keepDropdownFocusedAfterSelection=!0;Y.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-report-form-endpoint-update":"handleReportFormEndpointUpdateAction","yt-confirm-dialog-close-action":"handleConfirmDialogCloseAction","yt-modify-report-form-command":"handleModifyReportFormCommand",
"yt-additional-detail-checkbox-update":"handleAdditionalDetailCheckboxUpdateAction"};return Y};
_.P(sY,_.F);_.g=sY.prototype;_.g.created=function(){this.refitJob=0};
_.g.attached=function(){this.JSC$18652_scroller&&(this.JSC$18652_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18652_scroller.attached&&typeof this.JSC$18652_scroller.attached==="function"&&this.JSC$18652_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.dataChanged=function(Y){Y&&(this.toggleSubmitButton(!!this.get("data.submitButton.buttonRenderer.isDisabled")),this.set("data.submitButton.buttonRenderer.isDisabled",void 0),this.set("data.nextButton.buttonRenderer.isDisabled",void 0),this.command=null,this.additionalDetailCheckboxChecked=this.canShowNextButton=this.canShowAdditionalDetailCheckbox=this.canShowCheckbox=this.hideReportForm=this.submitting=!1,Y.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),Y.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.g.onYtPopupOpened=function(){var Y=_.V4();Y&&Y.getPlayerPromise().then(function(b){b.pauseVideo()})};
_.g.onYtNavigate=function(Y){_.v(Y.detail.endpoint,_.Tpj)&&(Y.stopPropagation(),this.hideReportForm=!0)};
_.g.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.g.onYtServiceRequestCompleted=function(Y,b){var w=b.actions;if(w){if(w.length===1&&_.v(w[0],_.ln)){var V;w=((V=_.v(w[0],_.ln))==null?void 0:V.commands)||[]}V=0;for(var H=w.length;V<H;V++)_.v(w[V],_.tI)&&(Y.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(w[V]))}if(b.data&&(Y=this.get("feedbackResponses",b.data)))for(b=0;b<Y.length;b++)if(Y[b].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.g.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.g._onDescendantIronResize=function(Y){Y.stopPropagation();return!1};
_.g.handleReportFormEndpointUpdateAction=function(Y){if(Y.submitEndpoint){var b=this.command=Y.submitEndpoint;b=_.v(b,_.SI9);if(b==null?0:b.additionalDetailCheckboxChecked)b.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else Y.submitNavigationEndpoint?(this.command=Y.submitNavigationEndpoint,this.toggleSubmitButton(!1)):Y.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:Y.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;Y.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",Y));this.refit()};
_.g.handleConfirmDialogCloseAction=function(Y){Y.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.g.submitButtonDisabledChanged=function(){var Y=this.hostElement.parentElement;Y&&Y.invalidateTabbables&&Y.invalidateTabbables()};
_.g.handleModifyReportFormCommand=function(Y){Y=this.get("action",Y);Y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:Y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:Y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:Y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:Y==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:Y==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.g.updateDialogStyling=function(){var Y,b,w,V,H,f=((H=(Y=this.data)==null?void 0:(b=Y.optionsSupportedRenderers)==null?void 0:(w=b.optionsRenderer)==null?void 0:(V=w.items)==null?void 0:V.length)!=null?H:0)<=2?0:240;_.m_(this.hostElement,{"--yt-report-form-modal-renderer-min-width":f+"px"})};
_.g.toggleSubmitButton=function(Y){this.submitButtonDisabled=!Y;this.submitButtonDisabled=Y};
_.g.computeSubmitButtonData=function(Y,b){var w={};_.v(b,_.Tpj)?w.navigationEndpoint=b:w.command=b||void 0;Y&&Y.buttonRenderer&&_.BL.extend(w,Y.buttonRenderer);return w};
_.g.computeNextButtonData=function(Y,b){var w={};if(!Y||!Y.buttonRenderer)return w;_.BL.extend(w,Y.buttonRenderer);if(!b)return w;if(_.v(b,_.Tpj))w.navigationEndpoint=FQt(b);else if(w.command=FQt(b),Y=_.v(w.command,_.SI9))Y.legalCheckboxChecked=!0;return w};
_.g.computeShowNextButton=function(Y,b,w){return!!Y&&b&&w};
_.g.refit=function(){var Y=this;this.refitJob||(this.refitJob=_.Lb.addLowPriorityJob(function(){_.Ua(Y.hostElement,"yt-refit");Y.refitJob=0}))};
_.g.handleAdditionalDetailCheckboxUpdateAction=function(Y){this.additionalDetailCheckboxChecked=Y;_.v(this.command,_.SI9).additionalDetailCheckboxChecked=Y};
_.up.Object.defineProperties(sY,{template:{configurable:!0,enumerable:!0,get:function(){if(ExO===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-report-form-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.flag.yt_report_form_modal_renderer.yt.report.form.modal.renderer.css.js--\x3e<template is="dom-if" if="[[submitting]]" restamp="" class="style-scope yt-report-form-modal-renderer">\n  <div id="container" class="style-scope yt-report-form-modal-renderer">\n    <div id="loading-indicator" class="style-scope yt-report-form-modal-renderer">\n      <tp-yt-paper-spinner-lite active="" class="style-scope yt-report-form-modal-renderer"></tp-yt-paper-spinner-lite>\n    </div>\n  </div>\n</template>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-report-form-modal-renderer"></yt-formatted-string>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-report-form-modal-renderer">\n  <yt-report-form-modal-content can-show-additional-detail-checkbox="[[canShowAdditionalDetailCheckbox]]" can-show-checkbox="[[canShowCheckbox]]" data="[[data]]" keep-dropdown-focused-after-selection="[[keepDropdownFocusedAfterSelection]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-report-form-modal-content>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-report-form-modal-renderer">\n  <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="submit-button" data="[[computeSubmitButtonData(data.submitButton, command)]]" dialog-confirm="" disabled="[[submitButtonDisabled]]" hidden="[[computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n  <yt-button-renderer id="next-button" data="[[computeNextButtonData(data.nextButton, command)]]" dialog-confirm="" hidden="[[!computeShowNextButton(data.nextButton, canShowNextButton,\n              canShowCheckbox)]]" class="style-scope yt-report-form-modal-renderer">\n  </yt-button-renderer>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;N1t===void 0&&(N1t=document.createElement("template"));var V=N1t;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ExO=Y}Y=ExO;return Y}}});
sY.prototype.onYtServiceRequestError=sY.prototype.onYtServiceRequestError;sY.prototype.onYtServiceRequestCompleted=sY.prototype.onYtServiceRequestCompleted;sY.prototype.onYtServiceRequestSent=sY.prototype.onYtServiceRequestSent;sY.prototype.onYtNavigate=sY.prototype.onYtNavigate;sY.prototype.onYtPopupOpened=sY.prototype.onYtPopupOpened;_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],sY.prototype,"openPopupBehavior",void 0);
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],sY.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],sY.prototype,"eventForwardingBehavior",void 0);_.z([_.n(_.Li),_.K("design:type",Object)],sY.prototype,"ironResizableBehavior",void 0);_.z([_.R({observer:"dataChanged"}),_.K("design:type",Object)],sY.prototype,"data",void 0);
_.z([_.R(),_.K("design:type",Object)],sY.prototype,"submitting",void 0);_.z([_.R({observer:"submitButtonDisabledChanged"}),_.K("design:type",Object)],sY.prototype,"submitButtonDisabled",void 0);_.z([_.R(),_.K("design:type",Object)],sY.prototype,"command",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],sY.prototype,"hideReportForm",void 0);_.z([_.R(),_.K("design:type",Object)],sY.prototype,"canShowCheckbox",void 0);
_.z([_.R(),_.K("design:type",Object)],sY.prototype,"canShowAdditionalDetailCheckbox",void 0);_.z([_.R(),_.K("design:type",Object)],sY.prototype,"canShowNextButton",void 0);_.z([_.R(),_.K("design:type",Object)],sY.prototype,"additionalDetailCheckboxChecked",void 0);_.z([_.R(),_.K("design:type",Object)],sY.prototype,"refitJob",void 0);_.z([_.R(),_.K("design:type",Object)],sY.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.z([_.xZ("#scroller"),_.K("design:type",Object)],sY.prototype,"JSC$18652_scroller",void 0);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],sY.prototype,"onYtPopupOpened",null);_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],sY.prototype,"onYtNavigate",null);
_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],sY.prototype,"onYtServiceRequestSent",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],sY.prototype,"onYtServiceRequestCompleted",null);
_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],sY.prototype,"onYtServiceRequestError",null);_.z([_.FM({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],sY);var cRt;var UNb;var QR=function(){return _.F.apply(this,arguments)||this};
_.P(QR,_.F);_.g=QR.prototype;_.g.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.g.onVisible=function(){var Y,b;(b=_.fH().resolve(_.HQ(_.Dh)))==null||b.enqueue({label:_.Tx((Y=this.data)==null?void 0:Y.messageTitle),elementToFocus:this.hostElement})};
_.g.onThumbnailLoaded=function(){_.Ua(this.hostElement,"yt-refit")};
_.g.onDismissTap=function(){_.Xx(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.g.computeAlternateIcon=function(Y){return Y?Y==="BACKSTAGE_ARTWORK"?"backstage:artwork":Y:null};
_.g.computeFontFamily=function(Y){return Y==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.g.computeBackgroundStyle=function(Y,b){if(Y=this.computeBackgroundImage(Y,b))if(Y=_.Ev(Y.thumbnails))return'background-image: url("'+Y+'");'};
_.g.computeHasFullHeightImage=function(Y){return!(!(Y&&Y.thumbnails&&Y.thumbnails.length>0)||this.modern)};
_.g.isModernStyle=function(Y){return Y.style==="STYLE_MODERN"};
_.g.computeIcon=function(Y,b){if(Y&&Y.icon)return b?Y.iconDark:Y.icon};
_.g.computeBackgroundImage=function(Y,b){if(Y&&Y.backgroundImage)return b?Y.backgroundImageDark:Y.backgroundImage};
_.g.computeLogo=function(Y,b){if(Y&&Y.logo)return b?Y.logoDark:Y.logo};
_.g.computeShouldShowModernIcon=function(Y,b){return Y&&!!b};
_.g.getLogoContainerClassName=function(Y){return this.logoWithPadding(Y)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.g.getLogoImageId=function(Y){return this.logoWithPadding(Y)?"mealbar-logo-with-padding":"mealbar-logo"};
_.g.logoWithPadding=function(Y){var b,w,V;return(Y=(b=this.computeLogo(Y,this.isDarkTheme))==null?void 0:(w=b.thumbnails)==null?void 0:(V=w[0])==null?void 0:V.height)&&Y%31===0?!0:!1};
QR.prototype.onThumbnailLoaded=QR.prototype.onThumbnailLoaded;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.z([_.R({}),_.K("design:type",Object)],QR.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.K("design:type",Boolean)],QR.prototype,"modern",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],QR.prototype,"isDarkTheme",void 0);
_.z([_.R({computed:"computeIcon(data, isDarkTheme)"}),_.K("design:type",Object)],QR.prototype,"icon",void 0);_.z([_.R({computed:"computeLogo(data, isDarkTheme)"}),_.K("design:type",Object)],QR.prototype,"logo",void 0);_.z([_.R({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.K("design:type",Object)],QR.prototype,"backgroundStyle",void 0);_.z([_.R({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.K("design:type",Object)],QR.prototype,"alternateIcon",void 0);
_.z([_.R({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.K("design:type",Boolean)],QR.prototype,"hasFullHeightImage",void 0);_.z([_.R({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.K("design:type",Boolean)],QR.prototype,"useYoutubeSans",void 0);_.z([_.R({computed:"computeShouldShowModernIcon(modern, icon)"}),_.K("design:type",Boolean)],QR.prototype,"shouldShowModernIcon",void 0);
_.z([_.kZ("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],QR.prototype,"onThumbnailLoaded",null);_.z([_.FM({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],QR);
_.a(QR,"yt-mealbar-promo-renderer",function(){if(UNb===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-mealbar-promo-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_mealbar_promo_renderer.yt.mealbar.promo.renderer.css.js--\x3e<template is="dom-if" if="[[!modern]]" class="style-scope yt-mealbar-promo-renderer">\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" notify-on-loaded="" thumbnail="[[data.icon]]" class="style-scope yt-mealbar-promo-renderer">\n  </yt-img-shadow>\n  <yt-icon id="alternate-icon" hidden="[[!alternateIcon]]" icon="[[alternateIcon]]" class="style-scope yt-mealbar-promo-renderer"></yt-icon>\n</template>\n<div id="main" style$="[[backgroundStyle]]" class="style-scope yt-mealbar-promo-renderer">\n  <div class="yt-mealbar-promo-renderer-content style-scope yt-mealbar-promo-renderer">\n    <div class="style-scope yt-mealbar-promo-renderer">\n      <template is="dom-if" if="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n        <div class$="[[getLogoContainerClassName(data)]] style-scope yt-mealbar-promo-renderer">\n          <yt-img-shadow dimension="HEIGHT" height="20" hidden="[[!logo]]" id$="[[getLogoImageId(data)]]" notify-on-loaded="" object-fit="CONTAIN" thumbnail="[[logo]]" class="style-scope yt-mealbar-promo-renderer">\n          </yt-img-shadow>\n        </div>\n      </template>\n      <h2 class="yt-mealbar-promo-renderer-message-title style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string text="[[data.messageTitle]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n      </h2>\n      <template is="dom-repeat" items="[[data.messageTexts]]" class="style-scope yt-mealbar-promo-renderer">\n        <div id="message-text" class="yt-mealbar-promo-renderer-message-text style-scope yt-mealbar-promo-renderer">\n          <yt-formatted-string text="[[item]]" class="style-scope yt-mealbar-promo-renderer"></yt-formatted-string>\n        </div>\n      </template>\n      <template is="dom-if" if="[[data.supplementalText]]" class="style-scope yt-mealbar-promo-renderer">\n        <yt-formatted-string class="yt-mealbar-promo-renderer-supplemental-text style-scope yt-mealbar-promo-renderer" text="[[data.supplementalText]]"></yt-formatted-string>\n      </template>\n    </div>\n    <template is="dom-if" if="[[shouldShowModernIcon]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-img-shadow class="yt-mealbar-promo-renderer-modern-icon style-scope yt-mealbar-promo-renderer" hidden="[[!icon]]" notify-on-loaded="" thumbnail="[[icon]]">\n      </yt-img-shadow>\n    </template>\n  </div>\n  <div class="button-container style-scope yt-mealbar-promo-renderer">\n    <template is="dom-if" if="[[data.dismissButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n    <template is="dom-if" if="[[data.actionButton.buttonRenderer]]" class="style-scope yt-mealbar-promo-renderer">\n      <yt-button-renderer id="action-button" data="[[data.actionButton.buttonRenderer]]" on-click="onDismissTap" class="style-scope yt-mealbar-promo-renderer">\n      </yt-button-renderer>\n    </template>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;cRt===void 0&&(cRt=document.createElement("template"));var V=cRt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);UNb=Y}Y=UNb;return Y},{mode:2});var Xmg;var DNA;var vn=function(){return _.F.apply(this,arguments)||this};
_.P(vn,_.F);_.g=vn.prototype;_.g.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]]"}}}}}};
_.g.computeHasButtons_=function(Y){return!(!Y.dismissButton&&!Y.acceptButton)};
_.g.computeStyle_=function(Y){return Y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.g.observeImpressionEndpoints_=function(){var Y=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;_.oP(Y.hostElement,[b])})};
_.g.onTap_=function(){_.Xx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
vn.prototype.observeImpressionEndpoints_=vn.prototype.observeImpressionEndpoints_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],vn.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],vn.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],vn.prototype,"positionType",void 0);_.z([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.K("design:type",Boolean)],vn.prototype,"hasButtons_",void 0);_.z([_.R({value:function(){return this.onTap_.bind(this)}}),
_.K("design:type",Function)],vn.prototype,"boundOnTap_",void 0);_.z([_.R({value:{style:"mono-inverse"}}),_.K("design:type",Object)],vn.prototype,"buttonOverride",void 0);_.z([_.lr("data.promoConfig.impressionEndpoints"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],vn.prototype,"observeImpressionEndpoints_",null);_.z([_.FM({is:"yt-tooltip-renderer",disableElementRegistration:!0})],vn);
_.a(vn,"yt-tooltip-renderer",function(){if(DNA===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-tooltip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.promos.yt_tooltip_renderer.yt.tooltip.renderer.css.js--\x3e<div id="content" class="style-scope yt-tooltip-renderer">\n  <yt-formatted-string id="text" hidden$="[[!data.text]]" text="[[data.text]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n  <yt-formatted-string id="details-text" hidden$="[[!data.detailsText]]" text="[[data.detailsText]]" class="style-scope yt-tooltip-renderer">\n  </yt-formatted-string>\n</div>\n<div class="buttons style-scope yt-tooltip-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-tooltip-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.acceptButton]]" class="style-scope yt-tooltip-renderer"></div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;Xmg===void 0&&(Xmg=document.createElement("template"));var V=Xmg;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);DNA=Y}Y=DNA;return Y},{mode:2});var mNt;var oxb;var Ibg={},kHt=(Ibg.WEB_REMIX="music.youtube.com",Ibg),Pn=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return Y};
_.P(Pn,_.F);_.g=Pn.prototype;_.g.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.created=function(){this.embedHost_=kHt[_.zO("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.g.ready=function(){_.E6(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.g.computeEmbedCode_=function(Y,b,w,V,H){if(!Y)return"";var f=Y.videoId,E=Y.fullListId,U=[];Y.attributionId&&U.push("si="+Y.attributionId);V||U.push("controls=0");w&&Number(b)>0&&U.push("start="+b);E&&(f="videoseries",U.push("list="+E));w="https://"+(H?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+f;Y.clipId&&(U.push("clip="+Y.clipId),U.push("clipt="+Y.clipTiming));b=U.length>0?w+"?"+U.join("&amp;"):w;Y.encryptedEmbedConfig&&U.push("embed_config="+JSON.stringify({enc:Y.encryptedEmbedConfig}));
U=U.length>0?w+"?"+U.join("&amp;"):w;_.q("web_sharing_embed_preview_killswitch")?_.E6(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(U,Y.previewWidth||854,Y.previewHeight||480):(_.dm(this.videoPreviewContainer),_.E6(this.videoPreviewContainer).appendChild(this.buildIframeElement(U)));return this.getEmbedCode_(b,Y.width||560,Y.height||315)};
_.g.buildIframeElement=function(Y){var b=document.createElement("iframe"),w,V;b.width=""+((V=(w=this.data)==null?void 0:w.previewWidth)!=null?V:854);var H,f;b.height=""+((f=(H=this.data)==null?void 0:H.previewHeight)!=null?f:480);_.hYg(b,2,Y);b.title="YouTube video player";b.frameBorder="0";b.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";b.referrerPolicy="strict-origin-when-cross-origin";b.allowFullscreen=!0;return b};
_.g.computeIsSquareAspectRatio_=function(Y){return Y.previewHeight&&Y.previewWidth?Y.previewHeight==Y.previewWidth:!1};
_.g.computeShowEmbedOptions_=function(Y){return!!Y.enablePrivacyModeOptionLabel||!!Y.showPlayerControlsOptionLabel};
_.g.getEmbedCode_=function(Y,b,w){return'<iframe width="'+b+'" height="'+w+'" src="'+Y+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.g.handleSignalActionCopyShareEmbedUrl_=function(){_.E6(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.g.handleSetTimestamp_=function(Y){this.startAtTimeStamp_=(this.startAtChecked_=Y.isSet)?Y.timestamp:0};
_.g.closePanel_=function(){_.Xx(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.g.onEmbedCode_=function(){_.E6(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.g.onYtPopupClosed_=function(){_.dm(_.E6(this.hostElement).querySelector("#video-preview"))};
_.g.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.v(this.data.actionButtons[0],_.Wa)&&this.ytRendererBehavior.logExplicitClick(_.v(this.data.actionButtons[0],_.Wa))};
Pn.prototype.onYtPopupClosed_=Pn.prototype.onYtPopupClosed_;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Pn.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Pn.prototype,"data",void 0);
_.z([_.R({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.K("design:type",String)],Pn.prototype,"embedCode_",void 0);_.z([_.R({value:!0}),_.K("design:type",Boolean)],Pn.prototype,"isPlayerControlsOptionChecked_",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Pn.prototype,"isPrivacyModeOptionChecked_",void 0);_.z([_.R({value:!1,notify:!0}),_.K("design:type",Boolean)],Pn.prototype,"startAtChecked_",void 0);
_.z([_.R({value:0}),_.K("design:type",Number)],Pn.prototype,"startAtTimeStamp_",void 0);_.z([_.R({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],Pn.prototype,"isSquareAspectRatio_",void 0);_.z([_.xZ("#video-preview"),_.K("design:type",HTMLElement)],Pn.prototype,"videoPreviewContainer",void 0);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Pn.prototype,"onYtPopupClosed_",null);
_.z([_.FM({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Pn);
_.a(Pn,"yt-sharing-embed-renderer",function(){if(oxb===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sharing-embed-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_sharing_embed_renderer.yt.sharing.embed.renderer.css.js--\x3e<div id="video-preview" class="style-scope yt-sharing-embed-renderer"></div>\n<div id="embed-panel" class="style-scope yt-sharing-embed-renderer">\n  <div id="title-bar" class="style-scope yt-sharing-embed-renderer">\n    <div id="embed-label" class="style-scope yt-sharing-embed-renderer">\n      <yt-formatted-string text="[[data.title]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n    <yt-icon id="close-panel-icon" icon="yt-icons:close" on-tap="closePanel_" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n  </div>\n  <tp-yt-paper-dialog-scrollable id="content" class="style-scope yt-sharing-embed-renderer">\n    <div id="basic" class="style-scope yt-sharing-embed-renderer">\n      <tp-yt-paper-textarea id="embed-code" no-label-float="" use-v2-underline="" value="{{embedCode_}}" class="style-scope yt-sharing-embed-renderer"></tp-yt-paper-textarea>\n      <div id="start-at" class="style-scope yt-sharing-embed-renderer"></div>\n    </div>\n    <template is="dom-if" if="[[computeShowEmbedOptions_(data)]]" class="style-scope yt-sharing-embed-renderer">\n      <div id="embed-options" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string id="embed-options-label" text="[[data.embedOptionsLabel]]" class="style-scope yt-sharing-embed-renderer">\n        </yt-formatted-string>\n        <div id="layout-size" class="style-scope yt-sharing-embed-renderer">\n          \n        </div>\n        <tp-yt-paper-checkbox id="player-controls-option" checked="{{isPlayerControlsOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n          <yt-formatted-string text="[[data.showPlayerControlsOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n          </yt-formatted-string>\n        </tp-yt-paper-checkbox>\n        <span id="privacy-mode-wrapper" class="style-scope yt-sharing-embed-renderer">\n          <tp-yt-paper-checkbox id="privacy-mode-option" checked="{{isPrivacyModeOptionChecked_}}" class="style-scope yt-sharing-embed-renderer">\n            <yt-formatted-string text="[[data.enablePrivacyModeOptionLabel]]" class="style-scope yt-sharing-embed-renderer">\n            </yt-formatted-string>\n          </tp-yt-paper-checkbox>\n          <yt-icon id="privacy-mode-info" icon="yt-icons:info-outline" class="style-scope yt-sharing-embed-renderer"></yt-icon>\n          <tp-yt-paper-tooltip id="privacy-tooltip" for="privacy-mode-info" position="top" class="style-scope yt-sharing-embed-renderer">\n            [[data.enablePrivacyModeOptionLabel.accessibility.accessibilityData.label]]\n          </tp-yt-paper-tooltip>\n        </span>\n      </div>\n    </template>\n    <div id="additional-info" class="style-scope yt-sharing-embed-renderer">\n      <div id="additional-links" class="style-scope yt-sharing-embed-renderer">\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.apiReferenceLinkLabel]]">\n        </yt-formatted-string>\n        <yt-formatted-string class="link style-scope yt-sharing-embed-renderer" link-inherit-color="" text="[[data.developerSampleLinkLabel]]"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="legal-info" text="[[data.legalInfo]]" class="style-scope yt-sharing-embed-renderer"></yt-formatted-string>\n    </div>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="action-buttons" class="style-scope yt-sharing-embed-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;mNt===void 0&&(mNt=document.createElement("template"));var V=mNt;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);oxb=Y}Y=oxb;return Y},{mode:2});var lbd={};
lbd.YtUnlimitedFamilyInterstitialBehavior=[_.qS.YtOpenPopupBehavior,_.US.YtActionHandlerBehavior,{actionMap:{"yt-signal-action-show-previous-family-dialog":"handleSignalActionShowPreviousFamilyDialog_","yt-open-popup-action":"handleOpenPopupAction_","yt-unlimited-create-family-endpoint":"handleUnlimitedCreateFamilyEndpoint_"},listeners:{"yt-popup-closed":"onPopupClosed_"},created:function(){window.familyDialogHistory||(window.familyDialogHistory=[]);this.dialogHistory_=window.familyDialogHistory;this.showingPreviousDialog_=
!1},
maybeCloseDialogOnFooterButtonTap:function(Y){Y=_.kj8(_.uW(Y),"yt-button-renderer");return Y?Y.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(Y){this.dialogHistory_.push(Y)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var Y=this.popFromHistory();if(Y){var b={openPopupAction:{popupType:"DIALOG",popup:{}}};b.openPopupAction.popup[Y.renderer]=Y.data;this.showingPreviousDialog_=!0;this.openPopup(b)}},
handleOpenPopupAction_:function(Y){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var b=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(V){return!!Y.openPopupAction.popup[V]}),w=this.getElementName_();
b&&this.data&&(this.pushToHistory({renderer:w,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(Y){if(Y=_.v(Y,CMQ))this.loading=!0,_.Xx(this.hostElement,"yt-open-create-family-dialog",[Y,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var Y=this.hostElement.nodeName.split("-").slice(1).map(function(b){return""+b[0].toUpperCase()+b.slice(1).toLowerCase()}).join("");
return Y[0].toLowerCase()+Y.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var h$d;var xNg;var Z6=function(){return _.F.apply(this,arguments)||this};
_.P(Z6,_.F);_.g=Z6.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Xx(this.hostElement,"yt-register-create-family-dialog");_.E6(this.hostElement).querySelector("#thumbnail").onShow()};
_.g.fireOnCloseCommand_=function(){var Y;((Y=this.data)==null?0:Y.onCloseCommand)&&_.IP(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.g.onYtServiceRequestSent_=function(Y,b){b&&b.endpoint&&_.v(b.endpoint,_.x7)||(this.loading=!0)};
_.g.onYtServiceRequestCompleted_=function(){var Y=this.hostElement.parentElement;Y.close&&Y.close();this.loading=!1};
_.g.openPopupHandler_=function(Y){if(Y.detail==this){var b;((b=this.data)==null?0:b.onOpenCommands)&&_.IP(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.g.closePopupHandler_=function(Y,b){this.fireOnCloseCommand_();if(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1){var w;((w=this.data)==null?0:w.onDismissCommands)&&_.IP(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.g.dataChanged_=function(){this.loading=!1};
Z6.prototype.dataChanged_=Z6.prototype.dataChanged_;Z6.prototype.closePopupHandler_=Z6.prototype.closePopupHandler_;Z6.prototype.openPopupHandler_=Z6.prototype.openPopupHandler_;Z6.prototype.onYtServiceRequestCompleted_=Z6.prototype.onYtServiceRequestCompleted_;Z6.prototype.onYtServiceRequestSent_=Z6.prototype.onYtServiceRequestSent_;_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],Z6.prototype,"ytEventForwardingBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(lbd.YtUnlimitedFamilyInterstitialBehavior),_.K("design:type",Object)],Z6.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Z6.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],Z6.prototype,"loading",void 0);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],Z6.prototype,"onYtServiceRequestSent_",null);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],Z6.prototype,"onYtServiceRequestCompleted_",null);
_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Z6.prototype,"openPopupHandler_",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Z6.prototype,"closePopupHandler_",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Z6.prototype,"dataChanged_",null);
_.z([_.FM({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Z6);
_.a(Z6,"yt-unlimited-family-message-interstitial-renderer",function(){if(xNg===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-message-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_message_interstitial_renderer.yt.unlimited.family.message.interstitial.renderer.css.js--\x3e<tp-yt-paper-spinner active="[[loading]]" class="style-scope yt-unlimited-family-message-interstitial-renderer"></tp-yt-paper-spinner>\n<div class="content-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <div class="main-content style-scope yt-unlimited-family-message-interstitial-renderer">\n    <h2 class="style-scope yt-unlimited-family-message-interstitial-renderer">[[getSimpleString(data.title)]]</h2>\n    <yt-formatted-string class="content style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.content]]"></yt-formatted-string>\n  </div>\n  <yt-img-shadow id="thumbnail" thumbnail="[[data.thumbnail]]" width="252" class="style-scope yt-unlimited-family-message-interstitial-renderer"></yt-img-shadow>\n</div>\n<div class="footer-container style-scope yt-unlimited-family-message-interstitial-renderer" hidden="[[loading]]">\n  <yt-formatted-string class="footer style-scope yt-unlimited-family-message-interstitial-renderer" text="[[data.footer]]"></yt-formatted-string>\n  <div class="buttons style-scope yt-unlimited-family-message-interstitial-renderer">\n    <div id="dismiss-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n    <div id="action-button" class="footer-button style-scope yt-unlimited-family-message-interstitial-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;h$d===void 0&&(h$d=document.createElement("template"));var V=h$d;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);xNg=Y}Y=xNg;return Y},{mode:2});var q5A;var sWt;var Bn=function(){return _.F.apply(this,arguments)||this};
_.P(Bn,_.F);Bn.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"}}}};
Bn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E6(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(Y){Y.onShow()});
_.E6(this.hostElement).querySelector("#main-thumbnail").onShow()};
Bn.prototype.onButtonTap_=function(Y){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(Y)};
Bn.prototype.computeMainThumbnailWidth_=function(Y){return Y&&Y.length!==0?72:96};
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.z([_.n(lbd.YtUnlimitedFamilyInterstitialBehavior),_.K("design:type",Object)],Bn.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Bn.prototype,"data",void 0);
_.z([_.R({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.K("design:type",Number)],Bn.prototype,"mainThumbnailWidth_",void 0);_.z([_.R({value:function(){return this.onButtonTap_.bind(this)}}),
_.K("design:type",Function)],Bn.prototype,"boundButtonTap_",void 0);_.z([_.FM({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Bn);
_.a(Bn,"yt-unlimited-family-profile-interstitial-renderer",function(){if(sWt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unlimited-family-profile-interstitial-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unlimited_family_profile_interstitial_renderer.yt.unlimited.family.profile.interstitial.renderer.css.js--\x3e<div class="content-container style-scope yt-unlimited-family-profile-interstitial-renderer"><div class="left-side style-scope yt-unlimited-family-profile-interstitial-renderer"><h2 class="style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.additionalInfoHeader)]]</h2><yt-formatted-string class="additional-info style-scope yt-unlimited-family-profile-interstitial-renderer" text="[[data.additionalInfo]]"></yt-formatted-string></div><div class="right-side style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow id="main-thumbnail" thumbnail="[[data.mainThumbnail]]" width="[[mainThumbnailWidth_]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></yt-img-shadow><div class="secondary-thumbnails style-scope yt-unlimited-family-profile-interstitial-renderer"><template is="dom-repeat" items="[[data.secondaryThumbnails]]" class="style-scope yt-unlimited-family-profile-interstitial-renderer"><yt-img-shadow class="secondary-thumbnail style-scope yt-unlimited-family-profile-interstitial-renderer" thumbnail="[[item]]" width="36"></yt-img-shadow></template></div><span class="member-info style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberInfo)]]</span><span class="member-title style-scope yt-unlimited-family-profile-interstitial-renderer">[[getSimpleString(data.memberTitle)]]</span><div id="manage-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div></div><div class="buttons style-scope yt-unlimited-family-profile-interstitial-renderer"><div id="dismiss-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div><div id="action-button" class="style-scope yt-unlimited-family-profile-interstitial-renderer"></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;q5A===void 0&&(q5A=document.createElement("template"));var V=q5A;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);sWt=Y}Y=sWt;return Y},{mode:2});var QWR;var vxQ;var nO=function(){var Y=_.F.apply(this,arguments)||this;Y.sliderAriaValueText_=null;Y.selectedIndex_=0;Y.messages={PAUSE_SLIDER:_.sa("PAUSE_SLIDER",void 0,"Pause Duration")};return Y};
_.P(nO,_.F);_.g=nO.prototype;_.g.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_]]"}}}}}};
_.g.onPopupOpened_=function(Y){Y.detail==this&&_.q("enable_premium_voluntary_pause")&&(_.Xx(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.g.setDialogData=function(Y){this.data=Y;this.resetSlider_()};
_.g.dataChanged_=function(){this.data&&this.resetSlider_()};
_.g.onSubmitTap_=function(){if(this.data.confirmCommand){var Y=this.data.confirmCommand;_.v(Y,_.JIj)&&_.oP(this.hostElement,[Y,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.g.onExitButtonTap_=function(){_.Xx(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.g.closePopupHandler_=function(Y,b){(b&&b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.handleOnDismissCommands_()};
_.g.onSliderChange_=function(){this.selectedIndex_=_.E6(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.g.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.g.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.g.resetSlider_=function(){if(this.data){var Y=this.data.defaultEndOptionIndex||0,b=_.E6(this.hostElement).querySelector("#id-pause-slider");if(b.immediateValue<Y)for(;b.immediateValue!=Y;)b.increment();else if(Y<b.immediateValue)for(;b.immediateValue!=Y;)b.decrement();this.selectedIndex_=Y;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.g.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.IP(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.g.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.IP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestSent=function(){this.loading=!0};
_.g.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
nO.prototype.onYtServiceRequestCompleted=nO.prototype.onYtServiceRequestCompleted;nO.prototype.onYtServiceRequestSent=nO.prototype.onYtServiceRequestSent;nO.prototype.closePopupHandler_=nO.prototype.closePopupHandler_;nO.prototype.dataChanged_=nO.prototype.dataChanged_;nO.prototype.onPopupOpened_=nO.prototype.onPopupOpened_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],nO.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],nO.prototype,"loading",void 0);_.z([_.R(),_.K("design:type",Number)],nO.prototype,"selectIndexMax_",void 0);_.z([_.R(),_.K("design:type",Object)],nO.prototype,"selectedData_",void 0);
_.z([_.R(),_.K("design:type",Object)],nO.prototype,"sliderAriaValueText_",void 0);_.z([_.R({value:function(){return this.onSubmitTap_.bind(this)}}),
_.K("design:type",Function)],nO.prototype,"onButtonTap_",void 0);_.z([_.R({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.K("design:type",Function)],nO.prototype,"onSecondaryTap_",void 0);_.z([_.R(),_.K("design:type",Object)],nO.prototype,"messages",void 0);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],nO.prototype,"onPopupOpened_",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],nO.prototype,"dataChanged_",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],nO.prototype,"closePopupHandler_",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],nO.prototype,"onYtServiceRequestSent",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],nO.prototype,"onYtServiceRequestCompleted",null);_.z([_.FM({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],nO);
_.a(nO,"yt-unplugged-pause-membership-dialog-renderer",function(){if(vxQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;QWR===void 0&&(QWR=document.createElement("template"));var V=QWR;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);vxQ=Y}Y=vxQ;return Y},{mode:2});var PvR;var ZDR;var MO=function(){return _.F.apply(this,arguments)||this};
_.P(MO,_.F);MO.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.aL("vcBalanceRenderer")}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],MO.prototype,"data",void 0);_.z([_.FM({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],MO);
_.a(MO,"yt-vc-offer-layout-header-renderer",function(){if(ZDR===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_header_renderer.yt.vc.offer.layout.header.renderer.css.js--\x3e<div id="vc-balance" class="style-scope yt-vc-offer-layout-header-renderer"></div>\n<yt-formatted-string id="description" text="[[data.description]]" class="style-scope yt-vc-offer-layout-header-renderer">\n</yt-formatted-string>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;PvR===void 0&&(PvR=document.createElement("template"));var V=PvR;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ZDR=Y}Y=ZDR;return Y},{mode:2});var B1s;var nxF;var MdN;var e$Q;var ev=function(){return _.F.apply(this,arguments)||this};
_.P(ev,_.F);ev.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.up.Object.defineProperties(ev.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)}}});
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.fJK.YtTappableItemBehavior),_.K("design:type",Object)],ev.prototype,"ytTappableItemBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],ev.prototype,"data",void 0);
_.z([_.R({reflectToAttribute:!0}),_.t("data.accessibilityText"),_.K("design:type",String),_.K("design:paramtypes",[])],ev.prototype,"ariaLabel",null);_.z([_.R({reflectToAttribute:!0}),_.t("data.style"),_.K("design:type",String),_.K("design:paramtypes",[])],ev.prototype,"vcOfferStyle",null);_.z([_.t("data.style","data.titleText"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],ev.prototype,"showTitleText",null);_.z([_.FM({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],ev);
_.a(ev,"yt-vc-offer-renderer",function(){if(e$Q===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_renderer.yt.vc.offer.renderer.css.js--\x3e<yt-formatted-string id="title-text" hidden="[[!showTitleText]]" text="[[data.titleText]]" class="style-scope yt-vc-offer-renderer">\n</yt-formatted-string>\n<div id="standard-offer-container" class="style-scope yt-vc-offer-renderer">\n  <div id="standard-offer-content" class="style-scope yt-vc-offer-renderer">\n    <yt-formatted-string id="offer-info" text="[[data.offerInfo]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionText]]" text="[[data.descriptionText]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n    <div id="vc-icon" class="style-scope yt-vc-offer-renderer"></div>\n    <yt-formatted-string id="price" text="[[data.price]]" class="style-scope yt-vc-offer-renderer">\n    </yt-formatted-string>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;MdN===void 0&&(MdN=document.createElement("template"));var V=MdN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);e$Q=Y}Y=e$Q;return Y},{mode:2});var pO=function(){return _.F.apply(this,arguments)||this};
_.P(pO,_.F);pO.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}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],pO.prototype,"data",void 0);_.z([_.FM({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],pO);
_.a(pO,"yt-vc-offer-layout-renderer",function(){if(nxF===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-vc-offer-layout-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_vc_offer_layout_renderer.yt.vc.offer.layout.renderer.css.js--\x3e<div id="vc-offer-layout-container" class="style-scope yt-vc-offer-layout-renderer">\n  <div id="header" class="style-scope yt-vc-offer-layout-renderer"></div>\n  <div id="offers-container" class="style-scope yt-vc-offer-layout-renderer">\n    <div id="offers" class="style-scope yt-vc-offer-layout-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;B1s===void 0&&(B1s=document.createElement("template"));var V=B1s;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);nxF=Y}Y=nxF;return Y},{mode:2});var pmb;var ODQ;var tdN;var R$7;var OY=function(){return _.F.apply(this,arguments)||this};
_.P(OY,_.F);OY.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}}}}}};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],OY.prototype,"data",void 0);_.z([_.FM({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],OY);
_.a(OY,"yt-ypc-offers-modal-top-bar-renderer",function(){if(R$7===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-top-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_top_bar_renderer.yt.ypc.offers.modal.top.bar.renderer.css.js--\x3e<div id="dismiss" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n<yt-formatted-string id="title" text="[[data.title]]" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></yt-formatted-string>\n<div id="help-link" class="style-scope yt-ypc-offers-modal-top-bar-renderer"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;tdN===void 0&&(tdN=document.createElement("template"));var V=tdN;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);R$7=Y}Y=R$7;return Y},{mode:2});var tV=function(){return _.F.apply(this,arguments)||this};
_.P(tV,_.F);tV.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"}}}}};
tV.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
tV.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var Y=this.scrollable;Y.attached&&typeof Y.attached==="function"&&Y.attached()};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.z([_.xZ("#scrollable"),_.K("design:type",Object)],tV.prototype,"scrollable",void 0);_.z([_.R(),_.K("design:type",Object)],tV.prototype,"data",void 0);_.z([_.FM({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],tV);
_.a(tV,"yt-ypc-offers-modal-renderer",function(){if(ODQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-offers-modal-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_offers_modal_renderer.yt.ypc.offers.modal.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-offers-modal-renderer">\n  <div id="top-bar" class="style-scope yt-ypc-offers-modal-renderer"></div>\n  <div id="content" class="style-scope yt-ypc-offers-modal-renderer"></div>\n</tp-yt-paper-dialog-scrollable>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;pmb===void 0&&(pmb=document.createElement("template"));var V=pmb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);ODQ=Y}Y=ODQ;return Y},{mode:2});var dNb;var FCF;var Rl=function(){return _.F.apply(this,arguments)||this};
_.P(Rl,_.F);_.g=Rl.prototype;_.g.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}}}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E6(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.g.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Xx(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.g.onYtPopupOpened_=function(Y,b){(b==null?void 0:b.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.IP(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.g.onYtPopupClosed_=function(Y,b){this.continueButtonTapped||b&&(b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.data.onDismissCommands&&_.IP(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.g.onYtServiceRequestError_=function(Y){this.set("showSpinner",!1);_.fx(this.hostElement,Y.detail.error.message)};
_.g.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.q("enable_ypc_spinners")?_.Xx(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
Rl.prototype.onYtServiceRequestError_=Rl.prototype.onYtServiceRequestError_;Rl.prototype.onYtPopupClosed_=Rl.prototype.onYtPopupClosed_;Rl.prototype.onYtPopupOpened_=Rl.prototype.onYtPopupOpened_;Rl.prototype.onYtServiceRequestCompleted_=Rl.prototype.onYtServiceRequestCompleted_;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);
_.z([_.R(),_.K("design:type",Object)],Rl.prototype,"data",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Rl.prototype,"showSpinner",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],Rl.prototype,"continueButtonTapped",void 0);_.z([_.R({value:function(){return this.onContinueTapped_.bind(this)}}),
_.K("design:type",Function)],Rl.prototype,"bindOnContinueTapped_",void 0);_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Rl.prototype,"onYtServiceRequestCompleted_",null);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Rl.prototype,"onYtPopupOpened_",null);
_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],Rl.prototype,"onYtPopupClosed_",null);_.z([_.kZ("yt-service-request-error"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],Rl.prototype,"onYtServiceRequestError_",null);_.z([_.FM({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],Rl);
_.a(Rl,"yt-ypc-upgrade-dialog-renderer",function(){if(FCF===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-ypc-upgrade-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_ypc_upgrade_dialog_renderer.yt.ypc.upgrade.dialog.renderer.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scrollable" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="content" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <div id="header" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="title" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string id="dialog-title" text="[[data.header.dialogTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n        <yt-formatted-string id="offer-title" text="[[data.header.offerDisplayTitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n      <yt-formatted-string id="access-message" text="[[data.header.accessMessage]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n    </div>\n\n    <div id="billing-details-container" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <template is="dom-repeat" items="[[data.billingDetails]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <div class="billing-item style-scope yt-ypc-upgrade-dialog-renderer">\n          <div class="item-header style-scope yt-ypc-upgrade-dialog-renderer">\n            <yt-formatted-string text="[[item.title]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n            <yt-formatted-string text="[[item.subtitle]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n          </div>\n          <yt-formatted-string class="item-description style-scope yt-ypc-upgrade-dialog-renderer" text="[[item.description]]"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <template is="dom-if" if="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n      <div id="legal-text" class="style-scope yt-ypc-upgrade-dialog-renderer">\n        <yt-formatted-string text="[[data.legalText]]" class="style-scope yt-ypc-upgrade-dialog-renderer"></yt-formatted-string>\n      </div>\n    </template>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="footer" class="style-scope yt-ypc-upgrade-dialog-renderer">\n  <div id="continue-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n  <div id="cancel-button" class="style-scope yt-ypc-upgrade-dialog-renderer"></div>\n</div>\n<div id="spinner-overlay" hidden$="[[!showSpinner]]" class="style-scope yt-ypc-upgrade-dialog-renderer">\n    <tp-yt-paper-spinner-lite id="spinner" active="" class="style-scope yt-ypc-upgrade-dialog-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;dNb===void 0&&(dNb=document.createElement("template"));var V=dNb;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);FCF=Y}Y=FCF;return Y},{mode:2});var LCX;var S5s;var d8=function(){return _.F.apply(this,arguments)||this};
_.P(d8,_.F);d8.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
d8.prototype.computeHasButtons_=function(Y){return!(!Y.dismissButton&&!Y.confirmButton)};
d8.prototype.computeStyle_=function(Y){return Y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],d8.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],d8.prototype,"data",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],d8.prototype,"positionType",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.K("design:type",Boolean)],d8.prototype,"hasButtons_",void 0);_.z([_.R({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.K("design:type",Boolean)],d8.prototype,"style_",void 0);_.z([_.FM({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],d8);
_.a(d8,"yt-bubble-hint-renderer",function(){if(S5s===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-bubble-hint-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_bubble_hint_renderer.yt.bubble.hint.renderer.css.js--\x3e<div id="content" class="style-scope yt-bubble-hint-renderer">\n  <div id="text" hidden$="[[!data.text]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.text]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n  <div id="details-text" hidden$="[[!data.detailsText]]" class="style-scope yt-bubble-hint-renderer">\n    <yt-formatted-string text="[[data.detailsText]]" class="style-scope yt-bubble-hint-renderer"></yt-formatted-string>\n  </div>\n</div>\n<div class="buttons style-scope yt-bubble-hint-renderer" hidden="[[!hasButtons_]]">\n  <div id="dismiss-button" hidden$="[[!data.dismissButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n  <div id="accept-button" hidden$="[[!data.confirmButton]]" class="style-scope yt-bubble-hint-renderer"></div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;LCX===void 0&&(LCX=document.createElement("template"));var V=LCX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);S5s=Y}Y=S5s;return Y},{mode:2});var abd;var rRO;var FC=function(){var Y=_.YL.apply(this,arguments)||this;Y.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return Y};
_.P(FC,_.YL);_.g=FC.prototype;_.g.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.g.attached=function(){var Y=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){Y.$.thumbnail.onShow();Y.$["header-image"].onShow()})};
_.g.handleCheckBoxUpdateAction_=function(Y){this.canShowCheckboxEnabledConfirmButton=Y};
_.g.computeUseOverlayForSpinner_=function(Y,b){return!!Y&&b};
_.g.computeShowSpinner_=function(Y,b){return Y||!!b};
_.g.fireOnCloseActions_=function(){var Y,b=_.N(((Y=this.data)==null?void 0:Y.onClosedActions)||[]);for(Y=b.next();!Y.done;Y=b.next())this.ytRendererBehavior.resolveCommand(Y.value)};
_.g.fireOnOpenCommands_=function(Y){var b,w=(b=this.data)==null?void 0:b.onOpenCommands;if(w)for(Y.stopImmediatePropagation(),Y=_.N(w),b=Y.next();!b.done;b=Y.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.g.fireOnDismissCommands_=function(Y){var b,w=(b=this.data)==null?void 0:b.onDismissCommands;if(w)for(Y.stopImmediatePropagation(),Y=_.N(w),b=Y.next();!b.done;b=Y.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.g.openPopupHandler_=function(Y){Y.detail==this&&this.fireOnOpenCommands_(Y)};
_.g.closePopupHandler_=function(Y,b){_.De(this,"yt-confirm-dialog-close-action",[b]);this.fireOnCloseActions_();(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.fireOnDismissCommands_(Y)};
_.g.onHeaderImageChanged_=function(){var Y;((Y=this.data)==null?0:Y.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.g.computeHasHeaderImageWidth_=function(Y){return Y!=void 0};
_.g.computeHasLoadingMessage=function(Y){return!!Y};
_.g.onHeaderImageWidthChanged_=function(){var Y,b=(Y=this.data)==null?void 0:Y.headerImageWidth;if(b){if(Y=1.25*b*2+b,this.$.main.style.width=Y+"px",b=this.$.scroller.firstElementChild)b.style.minWidth=Y+"px"}else this.$.main.style.width="100%"};
_.g.onThumbnailChanged_=function(){var Y;((Y=this.data)==null?0:Y.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.g.onYtNavigate_=function(Y){Y=_.uW(Y);Y instanceof Node&&_.cX(this.$["confirm-button"]).contains(Y)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.g.computePrimaryIsCancel_=function(Y){return Y};
_.g.computeIsCancelButtonHidden_=function(Y){return Y.skipCancelButton||!Y.cancelButton};
_.g.computeIsCheckboxHidden_=function(Y){return!Y.checkbox};
_.g.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.g.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.g.onYtServiceRequestCompleted_=function(){var Y;((Y=this.data)==null?0:Y.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.up.Object.defineProperties(FC,{template:{configurable:!0,enumerable:!0,get:function(){if(rRO===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;abd===void 0&&(abd=document.createElement("template"));var V=abd;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);rRO=Y}Y=rRO;return Y}}});
FC.prototype.onYtServiceRequestCompleted_=FC.prototype.onYtServiceRequestCompleted_;FC.prototype.onYtServiceRequestSent_=FC.prototype.onYtServiceRequestSent_;FC.prototype.onThumbnailLoaded_=FC.prototype.onThumbnailLoaded_;FC.prototype.onYtNavigate_=FC.prototype.onYtNavigate_;FC.prototype.onThumbnailChanged_=FC.prototype.onThumbnailChanged_;FC.prototype.onHeaderImageWidthChanged_=FC.prototype.onHeaderImageWidthChanged_;FC.prototype.onHeaderImageChanged_=FC.prototype.onHeaderImageChanged_;
FC.prototype.closePopupHandler_=FC.prototype.closePopupHandler_;FC.prototype.openPopupHandler_=FC.prototype.openPopupHandler_;_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],FC.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);
_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],FC.prototype,"ytEventForwardingBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],FC.prototype,"data",void 0);_.z([_.R({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.K("design:type",Boolean)],FC.prototype,"primaryIsCancel",void 0);_.z([_.R({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.K("design:type",Boolean)],FC.prototype,"isCancelButtonHidden",void 0);
_.z([_.R({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.K("design:type",Boolean)],FC.prototype,"isCheckboxHidden",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],FC.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.z([_.R({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.K("design:type",Boolean)],FC.prototype,"useOverlayForSpinner_",void 0);
_.z([_.R({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.K("design:type",Boolean)],FC.prototype,"showSpinner_",void 0);_.z([_.R({value:!1}),_.K("design:type",Boolean)],FC.prototype,"isActionInProgress_",void 0);_.z([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.K("design:type",Boolean)],FC.prototype,"hasHeaderImageWidth_",void 0);
_.z([_.R({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.K("design:type",Boolean)],FC.prototype,"hasLoadingMessage",void 0);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],FC.prototype,"openPopupHandler_",null);_.z([_.kZ("yt-popup-closed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],FC.prototype,"closePopupHandler_",null);
_.z([_.lr("data.headerImage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FC.prototype,"onHeaderImageChanged_",null);_.z([_.lr("data.headerImageWidth"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FC.prototype,"onHeaderImageWidthChanged_",null);_.z([_.lr("data.thumbnail"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FC.prototype,"onThumbnailChanged_",null);
_.z([_.kZ("yt-navigate"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],FC.prototype,"onYtNavigate_",null);_.z([_.kZ("yt-img-shadow-loaded"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],FC.prototype,"onThumbnailLoaded_",null);_.z([_.kZ("yt-service-request-sent"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.iA]),_.K("design:returntype")],FC.prototype,"onYtServiceRequestSent_",null);
_.z([_.kZ("yt-service-request-completed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,_.Jj]),_.K("design:returntype")],FC.prototype,"onYtServiceRequestCompleted_",null);_.z([_.FM({is:"yt-confirm-dialog-renderer",noInjection:!0})],FC);var z$d;var WCA;var LO=function(){return _.F.apply(this,arguments)||this};
_.P(LO,_.F);LO.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E6(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
LO.prototype.computeConfirmButton_=function(Y){var b={text:Y.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};Y.confirmNavigationEndpoint?b.navigationEndpoint=Y.confirmNavigationEndpoint:Y.confirmServiceEndpoint&&(b.serviceEndpoint=Y.confirmServiceEndpoint);return b};
LO.prototype.computeShowTitle_=function(Y){return!(Y==null||!Y.title)};
_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],LO.prototype,"data",void 0);_.z([_.R({computed:"computeShowTitle_(data)"}),_.K("design:type",Boolean)],LO.prototype,"showTitle",void 0);_.z([_.FM({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],LO);
_.a(LO,"yt-fancy-dismissible-dialog-renderer",function(){if(WCA===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-fancy-dismissible-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_fancy_dismissible_dialog_renderer.yt.fancy.dismissible.dialog.renderer.css.js--\x3e<h2 hidden="[[!showTitle]]" id="title" class="style-scope yt-fancy-dismissible-dialog-renderer">[[getSimpleString(data.title)]]</h2>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-formatted-string id="message" split-lines="" text="[[data.dialogMessage]]" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-formatted-string>\n</tp-yt-paper-dialog-scrollable>\n<div class="buttons style-scope yt-fancy-dismissible-dialog-renderer">\n  <yt-button-renderer id="confirm-button" data="[[computeConfirmButton_(data)]]" dialog-confirm="" class="style-scope yt-fancy-dismissible-dialog-renderer">\n  </yt-button-renderer>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;z$d===void 0&&(z$d=document.createElement("template"));var V=z$d;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);WCA=Y}Y=WCA;return Y});var KCA;var iDd;var Sv=function(){var Y=_.F.apply(this,arguments)||this;Y.spinnerActive=!1;return Y};
_.P(Sv,_.F);Sv.prototype.created=function(){Ul7(2201)};
Sv.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Sv.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Sv.prototype.onIronOverlayClosed=Sv.prototype.onIronOverlayClosed;Sv.prototype.onIronOverlayOpened=Sv.prototype.onIronOverlayOpened;_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.TQ),_.K("design:type",Object)],Sv.prototype,"tpYtIronOverlayBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],Sv.prototype,"data",void 0);_.z([_.R(),_.K("design:type",Object)],Sv.prototype,"spinnerActive",void 0);
_.z([_.kZ("iron-overlay-opened"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sv.prototype,"onIronOverlayOpened",null);_.z([_.kZ("iron-overlay-closed"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],Sv.prototype,"onIronOverlayClosed",null);_.z([_.FM({is:"yt-loading-renderer",disableElementRegistration:!0})],Sv);
_.a(Sv,"yt-loading-renderer",function(){if(iDd===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-loading-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_loading_renderer.yt.loading.renderer.css.js--\x3e<tp-yt-paper-spinner id="spinner" active="[[spinnerActive]]" alt="[[data.accessibility.accessibility_data.label]]" class="style-scope yt-loading-renderer">\n</tp-yt-paper-spinner>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;KCA===void 0&&(KCA=document.createElement("template"));var V=KCA;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);iDd=Y}Y=iDd;return Y},{mode:2});var ARR;var CvQ;var al=function(){var Y=_.F.apply(this,arguments)||this;Y.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);Y.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);Y.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";Y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return Y};
_.P(al,_.F);_.g=al.prototype;_.g.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.g.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.g.onDarkModeToggledAction=function(Y){this.isDarkTheme=Y};
_.g.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.g.openPopupHandler_=function(Y){Y.detail===this.hostElement&&this.hostElement.hidden&&_.Xx(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.g.onDismissButtonTap_=function(){var Y;this.closeOnDismissButton_.has(((Y=this.data)==null?void 0:Y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Xx(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.g.onAcceptButtonTap_=function(){var Y;this.closeOnAcceptButton_.has(((Y=this.data)==null?void 0:Y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Xx(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.g.computeHasHeader_=function(Y){return!!Y.headerBackgroundImage};
_.g.computeLayoutStyle_=function(Y){return Y};
_.g.computePopupSize_=function(Y){return Y};
_.g.computeIconType_=function(Y){return Y.dialogIcon&&Y.dialogIcon.iconType?Y.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":Y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":Y.dialogIcon.iconType:""};
_.g.computeIsLogo_=function(Y){return!!Y.dialogIcon&&!!Y.dialogIcon.iconType&&(Y.dialogIcon.iconType==="YOUTUBE_LOGO"||Y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||Y.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.g.computeHasCustomLogo=function(Y){return!(Y==null||!Y.headerForegroundImage)};
_.g.computeCustomLogo=function(Y,b){if(Y!=null&&Y.headerForegroundImage)return Y.headerForegroundImageDark?b?Y.headerForegroundImageDark:Y.headerForegroundImage:Y.headerForegroundImage};
_.g.computeHeaderBackgroundImage=function(Y,b){if(Y!=null&&Y.headerBackgroundImage)return b&&(Y==null?0:Y.headerBackgroundImageDark)?Y.headerBackgroundImageDark:Y.headerBackgroundImage};
_.g.shouldShowIconContainer=function(Y,b){return Y&&!b};
_.g.shouldShowNonYouTubeIcon=function(Y,b){return!Y&&!b};
_.g.getLogoImageId=function(Y){var b,w,V;return(Y=(b=this.computeCustomLogo(Y,this.isDarkTheme))==null?void 0:(w=b.thumbnails)==null?void 0:(V=w[0])==null?void 0:V.height)&&Y%31===0?"custom-logo-with-padding":"custom-logo"};
al.prototype.openPopupHandler_=al.prototype.openPopupHandler_;al.prototype.dataChanged_=al.prototype.dataChanged_;_.z([_.n(_.cz.YtRendererstamperBehavior),_.K("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.z([_.R(),_.K("design:type",Boolean)],al.prototype,"isDarkTheme",void 0);
_.z([_.R({computed:"computeCustomLogo(data, isDarkTheme)"}),_.K("design:type",Object)],al.prototype,"customLogo",void 0);_.z([_.R({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.K("design:type",Object)],al.prototype,"headerBackgroundImage",void 0);_.z([_.R(),_.K("design:type",Object)],al.prototype,"data",void 0);_.z([_.R({computed:"computeHasHeader_(data)"}),_.K("design:type",Boolean)],al.prototype,"hasHeader",void 0);
_.z([_.R({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.K("design:type",Object)],al.prototype,"layoutStyle",void 0);_.z([_.R({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.K("design:type",Object)],al.prototype,"popupSize",void 0);_.z([_.R({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],al.prototype,"hasLogo",void 0);
_.z([_.R({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.K("design:type",Boolean)],al.prototype,"hasCustomLogo",void 0);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],al.prototype,"dataChanged_",null);_.z([_.kZ("yt-popup-opened"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],al.prototype,"openPopupHandler_",null);
_.z([_.FM({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],al);
_.a(al,"yt-upsell-dialog-renderer",function(){if(CvQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-upsell-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_upsell_dialog_renderer.yt.upsell.dialog.renderer.css.js--\x3e<yt-img-shadow id="header-image" hidden="[[!hasHeader]]" object-fit="COVER" thumbnail="[[headerBackgroundImage]]" class="style-scope yt-upsell-dialog-renderer">\n</yt-img-shadow>\n<div id="dialog" class="style-scope yt-upsell-dialog-renderer">\n  <div id="icon-container" hidden="[[!shouldShowIconContainer(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer"></div>\n  <yt-icon id="logo-icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" target-container="icon-container" class="style-scope yt-upsell-dialog-renderer">\n  </yt-icon>\n  <template is="dom-if" if="[[shouldShowNonYouTubeIcon(hasLogo, hasCustomLogo)]]" class="style-scope yt-upsell-dialog-renderer">\n    <yt-icon id="icon" hidden="[[!data.dialogIcon]]" icon="[[computeIconType_(data)]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-icon>\n  </template>\n  <yt-img-shadow hidden="[[!hasCustomLogo]]" id$="[[getLogoImageId(data)]]" object-fit="CONTAIN" thumbnail="[[customLogo]]" class="style-scope yt-upsell-dialog-renderer">\n  </yt-img-shadow>\n  <div id="content" class="style-scope yt-upsell-dialog-renderer">\n    <yt-formatted-string id="upsell-dialog-title" role="heading" split-lines="" text="[[data.dialogMessageTitle]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="upsell-dialog-text" split-lines="" text="[[data.dialogMessageText]]" class="style-scope yt-upsell-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="button-container" class="style-scope yt-upsell-dialog-renderer">\n    <div id="dismiss-button" on-click="onDismissButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n    <div id="action-button" on-click="onAcceptButtonTap_" class="style-scope yt-upsell-dialog-renderer"></div>\n  </div>\n</div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;ARR===void 0&&(ARR=document.createElement("template"));var V=ARR;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);CvQ=Y}Y=CvQ;return Y},{mode:2});var yRA=_.b8(function(Y){return _.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.m(_.h,{cond:Y.title,then:function(b){return _.m("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},b)}}))},"wg"),$NN=_.b8(function(Y){return _.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.m(_.OH,{data:Y.closeButton},{buttonViewModel:function(b){return _.m("div",null,_.m(_.a1,{data:b.data}))}}))},"xg"),jWd=_.b8(function(Y){var b=
Y.data;
return _.m(_.Uz,null,_.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.m(_.h,{cond:function(){return!!b().image&&!!b().title},
then:function(){return _.m(_.Y_,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.m(_.h,{cond:function(){return b().title},
then:function(w){return _.m("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},w)}}),_.m(_.h,{cond:function(){return b().primaryGenre},
then:function(w){return _.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},w)}}))),_.m(_.h,{cond:function(){var w=b().description;
return w&&w.length<=150},
then:function(){return _.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return b().description}))}}))},"yg"),GHg=_.b8(function(Y){Y=Y.infoRows;
var b=_.fH().resolve(_.RT),w=_.q("enable_displaying_ppn");return _.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.m(_.Bf,{each:Y},function(V){return _.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.m(_.h,{cond:function(){return V.label},
then:function(H){return _.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},H)}}),_.m(_.h,{cond:function(){return V.attributedLabel},
then:function(H){return _.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.m(_.wv,{text:H,noPreWrap:!0}))}}),_.m(_.h,{cond:function(){return V.value},
then:function(H){return _.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},H)}}),_.m(_.h,{cond:function(){return V.attributedValue},
then:function(H){return _.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.m(_.wv,{text:H,noPreWrap:!0}))}}))}),_.m(_.h,{cond:function(){return w&&b.clientData.has("post_play_nonce")},
then:function(){return _.m("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.m("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},b.getData("post_play_nonce")))}}))},"zg"),T1I=_.b8(function(Y){var b=Y.data;
return _.m("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.m(yRA,{title:function(){return b().dialogTitle}}),_.m(jWd,{data:b}),_.m(_.h,{cond:function(){return b().infoRow},
then:function(w){return _.m(GHg,{infoRows:w})}}),_.m($NN,{closeButton:function(){return b().closeButton}}))},"Ag");
T1I.idomCompat=!0;_.f_(T1I,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;return _.m("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.m(_.Y_,{data:function(){return b().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.m("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.m("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.m(_.h,{cond:function(){var w=b().ytLogo;return w?w.iconType:null},
then:function(w){return _.m(_.n_,{icon:w,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.m("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.m("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.m(_.wv,{text:function(){return b().title}})),_.m("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.m(_.wv,{text:function(){return b().body}})),_.m("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.m(_.wv,{text:function(){return b().verifyStateText}}))),
_.m("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.m("div",null,_.m(_.OH,{data:function(){return b().dismissButton}},{buttonViewModel:_.a1})),_.m("div",null,_.m(_.OH,{data:function(){return b().linkParentButton}},{buttonViewModel:_.a1})))))},"Bg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.YX}});var JRA=_.b8(function(Y){var b=Y.data;Y=_.JU(function(){return b().agreements},[]);
return _.m("installment-agreements-view-model",{class:_.hj("ytInstallmentAgreementsViewModelHost")},_.m(_.Bf,{each:Y},function(w){return _.m("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.m("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.m(_.wv,{text:w.label})),_.m("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.m(_.OH,{data:function(){return w.openButton}},{buttonViewModel:_.a1})))}))},"Cg");
JRA.idomCompat=!0;var uqg=_.b8(function(Y){return _.m("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.m(_.wv,{text:function(){return Y.data().inviteMessage}})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.m(_.wv,{text:function(){return Y.data().attributedAccountSectionHeaderText}})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.m(_.OH,{data:function(){return Y.data().accountAvatar}},{avatarViewModel:_.et}),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.m(_.wv,{text:function(){return Y.data().accountName}}),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.m(_.wv,{text:function(){return Y.data().handle}}))),_.m(_.OH,{data:function(){return Y.data().trailingButton}},{buttonViewModel:_.a1})),_.m("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.m(_.wv,{text:function(){return Y.data().termsOfService}})))},"Dg");var YjI=_.b8(function(Y){var b=_.N(_.Zp(function(){var G,Nr;return((G=Y.data().createPlaylistDialogFormSchema)==null?0:(Nr=G.initialValues)==null?0:Nr.title)?Y.data().createPlaylistDialogFormSchema.initialValues.title:""})),w=b.next().value,V=b.next().value;
b=_.N(_.Zp(function(){Y.data();return!1}));
var H=b.next().value,f=b.next().value;b=_.N(_.Zp(function(){Y.data();return!1}));
var E=b.next().value,U=b.next().value;b=_.N(_.Zp(function(){var G,Nr;return(G=Y.data().createPlaylistDialogFormSchema)==null?void 0:(Nr=G.initialValues)==null?void 0:Nr.visibility}));
var X=b.next().value,I=b.next().value;b=_.N(_.Zp(function(){Y.data();return!1}));
var k=b.next().value,l=b.next().value;b=_.N(_.Zp(function(){var G,Nr;return(G=Y.data().createPlaylistDialogFormSchema)==null?void 0:(Nr=G.initialValues)==null?void 0:Nr.isCollaborative}));
var x=b.next().value,Q=b.next().value,Z=_.GM("div");_.tl(function(){var G=Z.value.querySelector("textarea");G&&(G.value=w())},"OCauEe");
_.dx(function(){var G;_.qyN((G=Y.data().createPlaylistDialogFormSchema)==null?void 0:G.id,{onSubmit:function(){var Nr=w();var o6=X(),lI=x(),Zt=Y.data();Nr={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Nr,privacyStatus:o6,videoIds:Zt.videoIds,sourcePlaylistId:Zt.sourcePlaylistId,params:lI?Zt.createPlaylistParamsCollaborationEnabled:Zt.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.fH().resolve(_.Nn).resolveCommand(Nr)},
isValid:function(){return H()&&!E()&&!k()}})});
var e=function(G){if(G!==void 0&&(V(G),!H()&&G.length>0&&f(!0),H())){var Nr=s8t(Y.data());if(Nr){var o6=Nr.minLength;Nr=Nr.maxLength;o6&&G.length<o6?U(!0):Nr&&G.length>Nr?U(!0):U(!1)}}},O=function(){var G=!(!x()||X()!=="PRIVATE");
l(G)},L=function(G){G!==void 0&&(I(G),O())},r=function(){if(k())return vt7(Y.data())},C=function(){Q(!x());
O()},W=function(){return{validate:function(G){if(H()){var Nr=s8t(Y.data());
if(Nr){var o6=Nr.minLength;Nr=Nr.translations;if(o6&&G.length<o6)return Nr==null?void 0:Nr.minLengthErrorMessage}}}}},y=function(){var G=s8t(Y.data()),Nr=G==null?void 0:G.maxLength,o6;
G=G==null?void 0:(o6=G.translations)==null?void 0:o6.maxLengthErrorMessage;if(Nr&&G)return{maxChars:Nr,errorMessage:G}};
return _.m("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.m("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:Z},_.m(_.OH,{data:function(){return Y.data().playlistTitle}},{textFormFieldViewModel:function(G){return _.m(_.NxQ,{data:G.data,
text:w,onInput:e,validation:W,characterLimit:y})},
textFieldViewModel:function(G){return _.m(_.fZt,{data:G.data,text:w,onInput:e,validation:W,characterLimit:y})}})),_.m("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.m(_.OH,{data:function(){return Y.data().playlistVisibility}},{dropdownViewModel:function(G){return _.m(_.x$I,{data:G.data,
onSelected:L,error:r})}})),_.m(_.h,{cond:function(){return!!Y.data().playlistCollaborate},
then:function(){return _.m("div",null,_.m(_.OH,{data:function(){return Y.data().playlistCollaborate}},{switchListItemViewModel:function(G){return _.m(_.ooC,{data:G.data,
onTap:C})}}))}}))},"Eg");var bRX=_.b8(function(Y){var b=_.JU(Y.noPadding,!1),w=function(){var H,f;return(f=(H=Y.data().logo.accessibilityData)==null?void 0:H.label)!=null?f:""},V={};
return _.m("upsell-view-model",{class:_.hj("ytUpsellViewModelHost",(V.ytUpsellViewModelHostNoPadding=function(){return b()},V))},_.m("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.m(_.h,{cond:function(){return _.bJ(Y.data().logo)},
then:function(H){return _.m(_.Y_,{data:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:w})}})),_.m("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.m(_.wv,{text:function(){return Y.data().title}})),_.m("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.m(_.Bf,{each:function(){var H;
return(H=Y.data().subtitles)!=null?H:[]},
keyBy:"INDEX"},function(H){return _.m("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.m(_.wv,{text:H}))})),_.m("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.m(_.Bf,{each:function(){var H;
return(H=Y.data().benefitInfos)!=null?H:[]},
keyBy:"INDEX"},function(H){return _.m(_.h,{cond:function(){return H().info},
then:function(f){return _.m("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.m(_.n_,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.m(_.wv,{text:f}))}})})),_.m("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.m(_.Bf,{each:function(){var H;
return(H=Y.data().legalInfos)!=null?H:[]},
keyBy:"INDEX"},function(H){return _.m("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.m(_.wv,{text:H}))})))},"Fg");var wpA=_.b8(function(Y){var b=Y.data;Y={};Y=(Y.ytMiniAppScoreChallengeViewModelScoreRadial=!0,Y.ytMiniAppScoreChallengeViewModelDarkScoreRadial=P3A(),Y);return _.m("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.m("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return b().title}),_.m("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return b().subtitle}),_.m("div",{class:_.qR(Y)},_.m("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return b().score})),_.m("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return b().prompt}))},"Gg");var V0X=function(){this.store=_.jm();this.formId=""};var HRt=_.b8(function(Y){function b(U){if(U&&(U=_.v(U,_.Q4)))return Object.assign({},U,{isSelected:f()})}
var w=_.N(_.Zp(function(){var U,X;return(X=(U=_.v(Y.data().option,_.Q4))==null?void 0:U.isSelected)!=null?X:!1})),V=w.next().value,H=w.next().value,f=V;
_.dx(function(){var U;_.qyN((U=Y.data().formSchema)==null?void 0:U.id,{onSubmit:function(){var X=_.fH().resolve(_.Nn),I=!!Y.data().selectedCommand,k=!!Y.data().unselectedCommand;if(f()){if(I)var l=Y.data().selectedCommand}else k&&(l=Y.data().unselectedCommand);l=_.zT(l);b(Y.data().option)&&!l?(X="",!I&&k?X="selected ":I&&!k&&(X="unselected "),I=new _.BQ("No "+X+"command found for SelectionListItemFormViewModel"),_.Ft(I)):l&&X.resolveCommand(l)},
isValid:function(){return!0}})});
var E=function(){H(!f())};
_.R2(function(){var U,X,I=(U=Y.data())==null?void 0:(X=U.formSchema)==null?void 0:X.id;I&&_.hHd()().delete(I)});
return _.m("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.m("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.m(_.wv,{text:function(){return Y.data().paragraph}})),_.m(_.h,{cond:function(){return b(Y.data().option)},
then:function(U){return _.m(_.nY,{data:U,isCompact:!0,hideSelectionTextChevron:!0,onTap:E,disableHorizontalPadding:!0})}}))},"Hg");var gas=_.b8(function(Y){var b=Y.data;var w=Y.disablePadding;var V=Y.className;var H=_.GM("yt-dialog-header-view-model"),f=function(){var U=b().imageBanner;a:switch(b().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var X="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:X="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:U,style:X,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},E=function(){return b().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.dx(function(){var U=function(){_.Xx(H.value,"yt-refit-popups-action")},X;
(X=H.value)==null||X.addEventListener("image-loaded",U);_.R2(function(){var I;(I=H.value)==null||I.removeEventListener("image-loaded",U)})});
Y={};return _.m("yt-dialog-header-view-model",{el:H,class:_.hj(V,(Y.ytDialogHeaderViewModelHost=!0,Y.ytDialogHeaderViewModelHostDisablePadding=w,Y))},_.m(_.h,{cond:function(){return b().imageBanner},
then:function(){var U={};return _.m("div",{class:_.hj(V,(U.ytDialogHeaderViewModelBanner=!0,U.ytDialogHeaderViewModelBannerFullBleed=E,U)),style:_.Bb({"max-height":function(){return b().assetContainerMaxHeight!==void 0?b().assetContainerMaxHeight+"px":void 0}})},_.m(_.V8,{data:f,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.m(_.h,{cond:function(){return b().headerBlock},
then:function(){return _.m("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.m(_.OH,{data:function(){return b().headerBlock}},{contentPreviewImageViewModel:function(U){return _.m(_.V8,{data:U.data,
notifyOnLoaded:!0})}}))}}),_.m(_.h,{cond:function(){return b().customAssetContainer},
then:function(U){return _.m("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.m(_.OH,{data:U},{avatarStackViewModel:_.OB}))}}),_.m(_.h,{cond:function(){return b().customBanner},
then:function(U){return _.m("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.m(_.OH,{data:U},{avatarStackViewModel:_.OB}))}}),_.m(_.h,{cond:function(){return b().headline},
then:function(U){return _.m("h2",null,_.m(_.wv,{text:U,className:"ytDialogHeaderViewModelText"}))}}))},"Ig");
gas.idomCompat=!0;var fvO=_.b8(function(Y){var b=_.szd(function(){return Y.data().formId}),w=b.onSubmit,V=b.isValid;
return _.m("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.m(_.OH,{data:function(){return Y.data().panelFooter}},{panelFooterViewModel:function(H){return _.m(_.r$,{data:H.data,
disablePadding:!0,disablePrimaryButton:function(){return!V()},
onClickPrimaryButton:function(){w()}})}}))},"Jg");var NVA=_.b8(function(Y){var b=function(){var w,V;return(V=(w=_.v(Y.data().rendererContext,_.Ba))==null?void 0:w.label)!=null?V:""};
return _.m("yt-dialog-image-content-view-model",{class:_.hj("ytDialogImageContentViewModelHost",Y.className)},_.m(_.h,{cond:function(){return _.bJ(Y.data().image)},
then:function(w){return _.m(_.Y_,{data:w,alt:b,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.m(_.wv,{text:function(){return Y.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Kg");var Uub=_.b8(function(Y){var b=_.ur(Y,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),w=b.elRefCallback;Y=b.iconWiz;var V=b.assetWiz,H=b.assetType,f=b.titleWiz,E=b.leadingActionHeaderWiz,U=b.trailingActionHeaderWiz,X=b.headerPosition,I=b.contentWiz,k=b.buttonLayout,l=b.buttonStyle,x=b.primaryButtonWiz,Q=b.secondaryButtonWiz,Z=b.contentAlignment,e=b.isFullscreen,O=b.width,L=b.maxHeight,r=b.isHeaderWizDefined,
C=b.headerWiz,W=b.isFooterWizDefined,y=b.footerWiz;b=_.GM("dialog-layout",function(rB){w==null||w(rB)});
var G=V?function(){return V({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,Nr=x?function(){var rB={};
return x({buttonOverrides:function(){return{style:(l==null?void 0:l())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.hj((rB["yt-spec-dialog-layout__dialog-layout-button"]=!0,rB["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},rB))})}:void 0,o6=Q?function(){var rB={};
return Q({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.hj((rB["yt-spec-dialog-layout__dialog-layout-button"]=!0,rB["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(k==null?void 0:k())===0||(k==null?void 0:k())===2},rB))})}:void 0,lI=function(){return(!!f||!!E||!!U)&&X()===0},Zt={},eL={},OM={},iI={};
return _.m("dialog-layout",{el:b,class:_.hj((Zt["yt-spec-dialog-layout"]=!0,Zt["yt-spec-dialog-layout--dialog-layout-fullscreen"]=e,Zt["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!e()},Zt["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return L()===1},Zt["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(H==null?void 0:H())===1},Zt)),
style:function(){return(O==null?void 0:O())!==void 0?"width: "+O+"px;":""}},Y?_.m("div",{class:_.hj((eL["yt-spec-dialog-layout__dialog-layout-icon"]=!0,eL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!V&&X()===1},eL["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return Z()===1},eL))},_.m(Y,null)):null,_.m(_.h,{cond:r,
then:function(){return C?_.m("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.m(C,null)):null},
else:function(){return _.m(_.Uz,null,_.m(_.h,{cond:lI,then:function(){return _.m(Eag,{contentAlignment:Z,LeadingActionHeader:E,TrailingActionHeader:U,Title:f,isAboveAsset:!!G})}}),G?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.m(G,null)):null)}}),_.m("div",{class:_.hj((OM["yt-spec-dialog-layout__dialog-layout-container"]=!0,OM["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Z==null?void 0:Z())===1},OM["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!f&&!C||!!G&&(X==null?void 0:X())===0},OM))},_.m(_.h,{cond:function(){return f&&!C&&(X==null?void 0:X())===1},
then:function(){return _.m(Eag,{contentAlignment:Z,LeadingActionHeader:E,TrailingActionHeader:U,Title:f,isAboveAsset:!1})}}),I?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.m(I,null))):null,_.m(_.h,{cond:W,
then:function(){return y?_.m("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.m(y,null)):null}}),Nr||o6?_.m(c2X,{footerClasses:_.hj((iI["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,iI["yt-spec-dialog-layout__dialog-layout-footer"]=!0,iI["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(k==null?void 0:k())===2},iI["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(k==null?void 0:k())===1},iI)),
PrimaryButton:Nr,SecondaryButton:o6}):null))},"Lg"),Eag=_.b8(function(Y){var b=_.ur(Y,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),w=b.contentAlignment,V=b.LeadingActionHeader;Y=b.Title;var H=b.TrailingActionHeader,f=b.isAboveAsset,E=b.enableLeadingActionHeader;b={};return _.m("div",{class:_.hj((b["yt-spec-dialog-layout__dialog-header-container"]=!0,b["yt-spec-dialog-layout__dialog-header"]=!0,b["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=f,b["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(w==null?void 0:w())===1&&E()},b))},_.m(_.h,{cond:function(){return E()},
then:function(){return V?_.m("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.m(V,null)):null}}),Y?_.m("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.m(Y,null)):null,H?_.m("div",null,_.m(H,null)):null)},"Mg"),c2X=_.b8(function(Y){var b=Y.footerClasses;
var w=Y.PrimaryButton;Y=Y.SecondaryButton;return _.m("div",{class:b},Y?_.m(Y,null):null,w?_.m(w,null):null)},"Ng");var Xpb=_.b8(function(Y){var b=Y.data;return _.m("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.m("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.m(_.OH,{data:function(){return b().avatar}},{avatarViewModel:_.et})),_.m("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.m(_.wv,{text:function(){return b().title}})),_.m(_.wv,{text:function(){return b().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Og");var Dub=_.b8(function(Y){var b=Y.data;return _.m("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.m("div",{class:"ytAccessConfirmationViewModelContent"},_.m(_.OH,{data:function(){return b().dualAvatar}},{dualAvatarViewModel:function(w){return _.m(_.AXC,{data:w.data,
className:"ytAccessConfirmationViewModelAvatar"})}}),_.m("h2",{class:"ytAccessConfirmationViewModelTitle"},_.m(_.wv,{text:function(){return b().title}})),_.m(_.wv,{text:function(){return b().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Pg");var mu7=_.b8(function(Y){var b=Y.data;var w=void 0;Y=_.N(_.Zp(function(){var I;return((I=_.v(b().content,_.dfs))==null?void 0:I.defaultSelectedKey)||""}));
var V=Y.next().value,H=Y.next().value,f,E=function(){H("");var I;(I=w)!=null&&I.store.dispatch(_.Uf({type:"RESET_COMMAND_MAP"}))};
_.dx(function(){w=new V0X;window.addEventListener("yt-popup-closed",E)});
_.tl(function(){if(w&&f!==b().formId){var I=w,k=b();k.formId&&(I.formId=k.formId,I.store.dispatch(_.Uf({type:"SET_CURRENT_FORM_ID",payload:{formId:I.formId}})));(f=b().formId)&&V()&&(I=w,k={key:V()},k.command&&I.store.dispatch(URI(f,k.command)))}},"k6b6Qe");
_.R2(function(){window.removeEventListener("yt-popup-closed",E)});
var U=function(I,k,l){k.key&&l&&k.key!==V()&&(H(k.key),w&&k.command&&w.store.dispatch(URI(l,k.command)))},X=function(){if(_.v(b().content,_.dfs))return!(V==null?0:V())};
return _.m("yt-dialog-view-model",{class:_.hj("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.m(Uub,{headerWiz:function(){return _.m("span",{skip:!0},_.m(_.OH,{data:function(){return b().header}},{dialogHeaderViewModel:function(I){return _.m(gas,{data:I.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!b().header},
contentWiz:function(){return _.m("span",{skip:!0},_.m(_.OH,{data:function(){return b().customContent?b().customContent:b().content}},{basicContentViewModel:_.MLt,
createPlaylistDialogFormViewModel:YjI,collaborativePlaylistInviteMessageViewModel:uqg,miniAppScoreChallengeViewModel:wpA,radioButtonGroupViewModel:function(I){var k=I.data;return _.m(_.kOF,{data:k,selectedKey:V,onSelected:U,groupName:function(){return k().formId}})},
selectionListItemFormViewModel:HRt,upsellViewModel:function(I){return _.m(bRX,{data:I.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:Xpb,installmentAgreementsViewModel:JRA,accessConfirmationViewModel:Dub,listViewModel:function(I){return _.m(_.Qlt,{data:I.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:NVA}))},
footerWiz:function(){return _.m("span",{skip:!0},_.m(_.OH,{data:function(){return b().footer}},{panelFooterViewModel:function(I){return _.m(_.r$,{data:I.data,
disablePadding:!0,disablePrimaryButton:X})},
formPanelFooterViewModel:fvO,formFooterViewModel:function(I){return _.m(_.V4F,{data:I.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!b().footer}}))},"Qg");
mu7.idomCompat=!0;_.f_(mu7,"yt-dialog-view-model",{props:{data:_.YX},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var oag=_.b8(function(Y){var b=Y.data;Y={};return _.m("yt-panel-header-view-model",{class:_.hj("yt-panel-header-view-model-wiz",(Y["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!b().shouldHideDivider},Y["yt-panel-header-view-model-wiz--compact"]=function(){return!!b().subtitle},Y))},_.m("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.m(_.h,{cond:function(){return b().title},
then:function(w){return _.m(_.wv,{text:w,className:"yt-panel-header-view-model-wiz__title"})}}),_.m(_.h,{cond:function(){return b().subtitle},
then:function(w){return _.m(_.wv,{text:w,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.m("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.m(_.OH,{data:function(){return b().trailingButtons}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Rg");
oag.idomCompat=!0;var Ivb=_.b8(function(Y){var b=_.Q_(function(f){var E;if((E=Y.skipContentClick)==null?0:E.call(Y))return!1;Y.onContentWrapperClick(f);return!0}),w,V,H;
return _.m("div",{class:_.hj("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return Y.isAnimating()?"transform: translateY("+Y.currentY()+"px);transition: 0.2s":""}},(w=Y.header)==null?void 0:w.call(Y),_.m("div",{id:Y.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Bb({"max-height":(0,_.ZY)(Y.maxHeightForContentWrapper)}),"on:scroll":Mlb(Y.onScroll),"on:touchmove":Mlb(function(f){return void f.stopPropagation()})},_.m("div",{el:{onRender:Y.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":b},(V=Y.body)==null?void 0:V.call(Y))),(H=Y.footer)==null?void 0:H.call(Y))},"Sg");
Ivb.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var kfX=_.b8(function(Y){var b=_.JU(Y.leadingLabel),w=_.JU(Y.trailingLabel),V=_.JU(Y.footerButtonType),H=function(){return b()||w()||Y.hasPrimaryButton()||Y.hasSecondaryButton()},f={},E=_.hj("yt-spec-bottom-sheet-layout__primary-button",(f["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return V()===0&&Y.hasPrimaryButton()},f["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return V()===1&&Y.hasPrimaryButton()},f["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return V()===2&&Y.hasPrimaryButton()},f["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return V()===3&&Y.hasPrimaryButton()},f));
f={};var U=_.hj("yt-spec-bottom-sheet-layout__secondary-button",(f["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return V()===1&&Y.hasSecondaryButton()},f["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return V()===2&&Y.hasSecondaryButton()},f["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return V()===3&&Y.hasPrimaryButton()},f));
return _.m(_.h,{cond:Y.hasFooterOverride,then:function(){var X;return _.m(_.Uz,null,(X=Y.footerOverride)==null?void 0:X.call(Y))},
else:function(){return _.m(_.h,{cond:H,then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.m(_.h,{cond:function(){return b()||w()},
then:function(){var X={};return _.m("div",{class:_.hj("yt-spec-bottom-sheet-layout__footer-label-wrapper",(X["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!Y.hasPrimaryButton()},X))},_.m(_.h,{cond:b,
then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},b)}}),_.m(_.h,{cond:w,
then:function(){return _.m("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},w)}}))}}),_.m(_.h,{cond:function(){return Y.hasPrimaryButton()||Y.hasSecondaryButton()},
then:function(){var X={};return _.m("div",{class:_.hj("yt-spec-bottom-sheet-layout__footer-button-wrapper",(X["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.vxC,X))},_.m(_.h,{cond:function(){return Y.hasSecondaryButton()&&V()!==0},
then:function(){var I;return _.m("div",{class:U},(I=Y.secondaryButton)==null?void 0:I.call(Y))}}),_.m(_.h,{cond:Y.hasPrimaryButton,
then:function(){var I;return _.m("div",{class:E},(I=Y.primaryButton)==null?void 0:I.call(Y))}}))}}))}})}})},"Tg");
kfX.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var lvX=_.b8(function(Y){var b=_.JU(Y.title),w=_.JU(Y.subtitle);return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:Y.headerId,"on:touchstart":_.Q_(function(V){var H;(H=Y.touchstart)==null||H.call(Y,V);return!1}),
"on:touchmove":_.Q_(function(V){var H;(H=Y.touchmove)==null||H.call(Y,V);return!1}),
"on:touchend":_.Q_(function(V){var H;(H=Y.touchend)==null||H.call(Y,V);return!1})},_.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.m(_.h,{cond:Y.hasHeaderOverride,
then:function(){var V;return _.m(_.Uz,null,(V=Y.headerOverride)==null?void 0:V.call(Y))},
else:function(){var V={};return _.m("div",{class:_.hj((V["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,V["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=b,V))},_.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.m(_.h,{cond:b,then:function(){return _.m(_.Uz,null,_.m("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},b),_.m(_.h,{cond:w,then:function(){return _.m("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
w)}}))}})),_.m(_.h,{cond:function(){return b()&&Y.hasActionHeader()},
then:function(){var H;return _.m("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(H=Y.actionHeader)==null?void 0:H.call(Y))}}))}}))},"Ug");
lvX.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.b8(function(Y){function b(G){if(!L&&typeof MutationObserver!=="undefined"){var Nr={childList:!0};"MutationObserver"in window&&(L=new MutationObserver(w.bind(void 0,G)),L.observe(G,Nr))}}
function w(G){typeof L!=="undefined"&&(r["content-wrapper"]===void 0&&(r["content-wrapper"]=G.children[0].clientHeight),Q(r["content-wrapper"]),x()>Z()||e(x()))}
function V(){l(window.innerHeight);x()>Z()||e(x());C.isFullScreen[0]()&&x()>Z()?W().dispatch("Snap To Full Screen",{maxHeight:O()}):W().dispatch("Snap To Neutral Position",{maxHeight:Z()})}
function H(G){document.body.style.overscrollBehavior="none";G.preventDefault();W().dispatch("Touch Start",{event:G})}
function f(G){G.preventDefault();W().dispatch("Touch Move",{event:G,contentScrollable:x()>Z(),fullContentWrapperHeight:O(),contentWrapperHeight:Z(),contentHeightMap:r,contentWrapperId:"content-wrapper",header:p$X(Y),footer:p$X(Y)})}
function E(){document.body.style.overscrollBehavior="";C.isFullScreen[0]()?C.currentY[0]()>=60?W().dispatch("Snap To Neutral Position",{maxHeight:Z()}):W().dispatch("Snap To Full Screen",{maxHeight:O()}):C.currentY[0]()>=60?U():C.currentY[0]()<=-60&&x()>Z()?W().dispatch("Snap To Full Screen",{maxHeight:O()}):W().dispatch("Snap To Neutral Position",{maxHeight:Z()})}
function U(){W().dispatch("Close Sheet",{clientHeight:k(),maxHeight:0});setTimeout(function(){eMt()},250)}
var X=_.N(_.kw(window.innerHeight,void 0,"NWeFS")),I=X.next().value;X=X.next().value;var k=I,l=X;X=_.N(_.kw(0,void 0,"oxfm4"));I=X.next().value;X=X.next().value;var x=I,Q=X;X=_.N(_.Zp(function(){var G=p$X(Y);return.6*k()-Z8A(G)-Bbb(G)}));
I=X.next().value;X=X.next().value;var Z=I,e=X,O=function(){var G=p$X(Y);return k()-Z8A(G)-Bbb(G)-24-24},L=null,r={},C={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:_.Zp(Z)},W=function(){var G=null;return function(){if(!G){var Nr={initialY:C.initialY[0](),currentY:C.currentY[0](),isAnimating:C.isAnimating[0](),isFullScreen:C.isFullScreen[0](),maxHeightForContentWrapper:C.maxHeightForContentWrapper[0]()};G=nts(Nr)}return G}}();
_.dx(function(){window.addEventListener("resize",V);W().subscribe(function(G){C.initialY[1](G.initialY);C.currentY[1](G.currentY);C.isAnimating[1](G.isAnimating);C.isFullScreen[1](G.isFullScreen);C.maxHeightForContentWrapper[1](G.maxHeightForContentWrapper)})});
_.R2(function(){window.removeEventListener("resize",V);L&&(L.disconnect(),L=null)});
var y=_.hj({"bottom-sheet-content-without-icon":function(){var G;return!((G=Y.shouldShowIcons)==null?0:G.call(Y))}});
return _.m("bottom-sheet-layout",null,_.m(Ivb,{contentWrapperId:"content-wrapper",isAnimating:function(){return C.isAnimating[0]()},
currentY:function(){return C.currentY[0]()},
maxHeightForContentWrapper:function(){return C.maxHeightForContentWrapper[0]()},
shouldShowIcons:Y.shouldShowIcons,skipContentClick:Y.skipContentClick,onScroll:function(){var G=document.getElementById("header-wrapper"),Nr=document.getElementById("content-wrapper");if(G&&Nr){var o6={};o6=(o6["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,o6["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,o6);G.className=Nr.scrollTop>1?_.qR(o6):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:eMt,contentWrapperEl:function(G){b(G);requestAnimationFrame(function(){w(G)})},
header:function(){return _.m(lvX,{touchstart:H,touchmove:f,touchend:E,title:Y.headerTitle,subtitle:Y.headerSubtitle,headerId:"header-wrapper",headerOverride:Y.headerFn,hasHeaderOverride:Y.hasHeaderFn,actionHeader:Y.headerActionHeader,hasActionHeader:Y.hasHeaderActionHeader})},
footer:function(){return _.m(kfX,{footerButtonType:Y.footerButtonType,leadingLabel:Y.footerLeadingLabel,trailingLabel:Y.footerTrailingLabel,primaryButton:Y.footerPrimaryButton,hasPrimaryButton:Y.hasFooterPrimaryButton,secondaryButton:Y.footerSecondaryButton,hasSecondaryButton:Y.hasFooterSecondaryButton,footerOverride:Y.footerFn,hasFooterOverride:Y.hasFooterFn})},
body:function(){return _.m(_.h,{cond:Y.hasContentFn,then:function(){var G;return _.m("div",{class:y},(G=Y.contentFn)==null?void 0:G.call(Y))}})}}))},"Vg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var hCQ=_.b8(function(Y){var b=_.fH().resolve(_.BR);return _.m("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.Q_(function(){return void b.closeSheet()})},_.m(_.h,{cond:function(){return!!Y.header},
then:function(){return _.m("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},Y.header())}}),_.m(_.h,{cond:function(){return!!Y.content},
then:function(){return _.m("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},Y.content())}}),_.m(_.h,{cond:function(){return!!Y.footer},
then:function(){return _.m("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},Y.footer())}}))},"Wg");
hCQ.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var xuF=_.b8(function(Y){Y=Y.data;var b=_.GM("yt-sheet-view-model",function(V){if(_.q("web_focus_first_element_sheet"))return V.addEventListener("focus",function(){QYR(V)}),function(){V.removeEventListener("focus",function(){QYR(V)})}}),w={};
return _.m("yt-sheet-view-model",{class:_.hj("yt-sheet-view-model-wiz",(w["yt-sheet-view-model-wiz--contextual"]=!0,w["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.q("web_disable_backdrop_filter"),w)),el:b,tabindex:-1},_.m(_.h,{cond:Y,then:function(V){return _.m(hCQ,{header:function(){return _.m(_.OH,{data:function(){return V().header}},{panelHeaderViewModel:oag})},
content:function(){return _.m(_.OH,{data:function(){return V().content}},{listViewModel:function(H){return _.m(_.Qlt,{data:H.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:bRX,miniAppScoreChallengeViewModel:wpA})},
footer:function(){return _.m(_.OH,{data:function(){return V().footer}},{panelFooterViewModel:_.r$})}})}}))},"Xg");
xuF.idomCompat=!0;_.f_(xuF,"yt-sheet-view-model",{props:{data:_.YX}});var saO=_.b8(function(Y){var b=function(){var w;return(w=Y.data().enableDebuggingFeatures)!=null?w:!1};
return _.m("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.m(_.Bf,{each:function(){var w;return(w=Y.data().stickers)!=null?w:[]}},function(w){return _.m(qjb,{data:function(){return w},
debugMode:b})}))},"Yg"),qjb=_.b8(function(Y){var b=_.ur(Y,{debugMode:!1}).debugMode,w=_.JU(function(){var X;
return(X=Y.data().region)==null?void 0:X.w},0),V=_.JU(function(){var X;
return(X=Y.data().region)==null?void 0:X.h},0),H=_.JU(function(){var X;
return(X=Y.data().region)==null?void 0:X.x},0),f=_.JU(function(){var X;
return(X=Y.data().region)==null?void 0:X.y},0),E=_.Q_(function(){var X=Y.data().onTap;
X&&_.AA(X)}),U={};
return _.m("div",{class:_.hj("ytStoriesStickerLayerViewModelSticker",(U.ytStoriesStickerLayerViewModelDebugMode=b,U)),style:_.Bb({width:function(){return 100*w()+"%"},
height:function(){return 100*V()+"%"},
left:function(){return 100*H()+"%"},
top:function(){return 100*f()+"%"},
"flex-direction":function(){return O8R(Y.data().flexDirection)},
"justify-content":function(){return tlA(Y.data().justifyContent)},
"align-items":function(){return RMt(Y.data().alignItems)}}),
"on:click":E},_.m(_.OH,{data:function(){return Y.data().button||Y.data().toggleButton}},{buttonViewModel:function(X){return _.m(_.a1,{data:X.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(X){return _.m(_.td,{data:X.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Zg");var vas=_.b8(function(Y){var b=function(){return Y.data()},w={},V=_.JU(function(){return b().backgroundColor},0),H=_.JU(function(){return b().actionButtons},[]),f=_.JU(function(){return b().stickerLayer},{}),E=function(){var X,I;
return{animationRef:w,animationConfig:{autoplay:!1,loop:!1,path:(I=(X=b().foregroundAnimation)==null?void 0:X.url)!=null?I:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){Y.navigateToNextItemOnLottieComplete()}}}},U=function(){var X,I,k,l,x,Q,Z,e;
return{animationConfig:{autoplay:(Q=(X=b().backgroundAnimation)==null?void 0:(I=X.settings)==null?void 0:I.autoplay)!=null?Q:!1,loop:(Z=(k=b().backgroundAnimation)==null?void 0:(l=k.settings)==null?void 0:l.loop)!=null?Z:!1,path:(e=(x=b().backgroundAnimation)==null?void 0:x.url)!=null?e:"",name:"stories_item_background_animation"}}};
_.tl(function(){if(Y.isVisible()){var X;(X=w.lottieEl)==null||X.play();Y.animationRef()&&(Y.animationRef().lottieEl=w.lottieEl)}else{var I;(I=w.lottieEl)==null||I.stop()}},"Cbnkwd");
return _.m("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Bb({"background-color":function(){return _.KX(V())+";"}})},_.m("div",{class:"ytStoriesItemViewModelAssetContent"},_.m(_.h,{cond:function(){return!!b().backgroundAnimation},
then:function(){return _.m(_.x_,{data:U,animationName:function(){return U().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.m(_.h,{cond:function(){return!!b().backgroundImage},
then:function(){return _.m(_.Y_,{data:function(){return b().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.m(_.h,{cond:function(){return!!b().foregroundAnimation},
then:function(){return _.m(_.x_,{data:E,animationName:function(){return E().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.m(_.h,{cond:function(){return!!b().foregroundImage},
then:function(){return _.m(_.Y_,{data:function(){return b().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.m("div",{class:"ytStoriesItemViewModelTopShadow"}),_.m(_.OH,{data:function(){return f()}},{storiesStickerLayerViewModel:saO})),_.m("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Bb({"background-color":function(){return _.KX(V())}})},_.m("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.Q_(Y.pauseAutoNavigation)},_.m(_.Bf,{each:H},function(X){return _.m(QaQ,{data:function(){return X}})}))))},"$g"),PbX={style:"overlay",
type:"outline"},QaQ=_.b8(function(Y){var b={};return _.m("div",{class:_.hj("ytStoriesItemViewModelActionButton",(b.ytStoriesItemViewModelStretchedActionButton=function(){return Y.data().size==="STORIES_BUTTON_SIZE_STRETCH"},b))},_.m(_.OH,{data:function(){return Y.data().button}},{buttonViewModel:function(w){return _.m(_.a1,{data:w.data,
className:"ytStoriesItemViewModelButton",buttonOverrides:PbX})}}))},"ah");_.f_(_.b8(function(Y){var b=function(){var Nr;return(Nr=Y.data().startIndex)!=null?Nr:0},w=_.N(_.Zp(b)),V=w.next().value,H=w.next().value;
w=_.N(_.kw(!1,void 0,"O8yPf"));var f=w.next().value,E=w.next().value,U=function(){var Nr;return(Nr=Y.data().storyItems)!=null?Nr:[]},X={},I=function(){return Y.data().dismissButton},k=function(){var Nr;
return _.v((Nr=_.v(I(),_.Bv))==null?void 0:Nr.onTap,_.rI)},l=_.GM("div"),x,Q,Z=!1,e=function(){var Nr;
(Nr=x)==null||Nr.cancel();x=O(V()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});x.onfinish=function(){O(V()).style.width="100%";var o6=_.v(U()[V()],BLI),lI,Zt;o6!=null&&o6.foregroundAnimation&&((o6==null?0:(lI=o6.foregroundAnimation)==null?0:lI.url)||(o6==null?0:(Zt=o6.foregroundAnimation)==null?0:Zt.payload))||(V()!==U().length-1?(H(V()+1),e()):k()&&_.WP(k()))}},O=function(Nr){return l.value.children[Nr].children[0]},L=function(){for(var Nr=0;Nr<V();Nr++)O(Nr).style.width=
"100%"};
w=_.Q_(function(){Z||(f()?E(!1):(V()===U().length-1&&k()&&_.WP(k()),O(V()).style.width="100%",V()!==U().length-1&&(H(V()+1),e())))});
var r=_.Q_(function(){Z||(f()?E(!1):(O(V()).style.width="0%",V()!==0?H(V()-1):H(V()),e()))}),C=function(){E(!0)},W=function(){O(V()).style.width="100%";
V()!==U().length-1?(H(V()+1),e()):k()&&_.WP(k())},y=_.Q_(function(){Z=!1;
Q=setTimeout(function(){E(!0);Z=!0},300)}),G=_.Q_(function(){clearTimeout(Q);
Z&&f()&&E(!1)});
_.tl(function(){if(f()){var Nr;(Nr=x)==null||Nr.pause();var o6;(o6=X.lottieEl)==null||o6.pause()}else{var lI;(lI=x)==null||lI.play();var Zt;(Zt=X.lottieEl)==null||Zt.play()}},"DIHTEd");
_.tl(function(){L();V()===b()&&e()},"ze5F8b");
_.dx(function(){L();e()});
_.R2(function(){clearTimeout(Q)});
return _.m("yt-stories-viewer-view-model",{class:_.hj("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.m("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.m("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":r,"on:mousedown":y,"on:mouseup":G,"on:mouseleave":G}),_.m("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":w,"on:mousedown":y,"on:mouseup":G,"on:mouseleave":G})),_.m(_.OH,{data:U},{storiesItemViewModel:function(Nr,
o6){var lI=Nr.data;return _.m(_.h,{cond:function(){return Math.abs(o6()-V())<=1},
then:function(){var Zt={};return _.m("div",{class:_.hj("ytStoriesViewerViewModelStoryItem",(Zt.ytStoriesViewerViewModelHiddenStoryItem=function(){return o6()!==V()},Zt))},_.m(vas,{data:lI,
pauseAutoNavigation:C,navigateToNextItemOnLottieComplete:W,isVisible:function(){return o6()===V()},
animationRef:X}))}})}}),_.m("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:l},_.m(_.Bf,{each:U},function(){return _.m("div",{class:"ytStoriesViewerViewModelProgressBar"},_.m("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.m("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.m(_.OH,{data:I},{buttonViewModel:_.a1})))},"bh"),"yt-stories-viewer-view-model",{props:{data:_.YX}});_.f_(_.b8(function(Y){var b=Y.data;var w=_.GM("yt-gen-ai-feedback-form-view-model"),V=[];return _.m("yt-gen-ai-feedback-form-view-model",{el:w,class:"ytGenAiFeedbackFormViewModelHost"},_.m(_.wv,{text:function(){return b().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.m("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.m(_.OH,{data:function(){return b().feedbackChips}},{toggleButtonViewModel:function(H){var f=H.data;
return _.m(_.td,{data:f,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(E){var U=f();U=_.v(U,_.ns);U=_.v(U==null?void 0:U.defaultButtonViewModel,_.Bv).trackingParams;E?V.push(U):(E=V.indexOf(U),E>-1&&V.splice(E,1))}})}})),_.m(_.wv,{text:function(){return b().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.m("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.m(_.OH,{data:function(){return b().submitButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){dVd(w.value,V,b().uniqueId)}})}}),_.m(_.OH,{data:function(){return b().moreFeedbackButton}},{buttonViewModel:function(H){return _.m(_.a1,{data:H.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ch"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.YX},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var r8=function(){return _.F.apply(this,arguments)||this};
_.P(r8,_.F);r8.prototype.created=function(){Ul7(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(C4X);var Y=_.fH().resolve(_.Ebs);Y&&(Y.container=this.ytPopupContainerBehavior);if(Y=_.fH().resolve(_.BR))Y.container=this.ytPopupContainerBehavior;if(Y=_.fH().resolve(_.n$)){var b=this.ytPopupContainerBehavior;Y.containerWasInjected?_.Sk(Error("ej")):Y.container=b}};
r8.prototype.ensurePopupBelowPlayer=function(Y,b){var w=_.fH().resolve(_.HQ(_.bX));if(!w||!w.isOnWatch()||!_.V4())return!1;w=w.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Z8().height>w+this.getPopupHeight(Y,b)?(Y.style.top="auto",Y.style.bottom="0px"):(Y.style.top=w+"px",Y.style.bottom="auto");return!0};
r8.prototype.getPopupHeight=function(Y,b){b&&(Y.cachedPopupHeight=0);if(!Y.cachedPopupHeight){b=0;var w=Y.clientHeight,V=window.getComputedStyle(Y);b+=parseInt(V.marginTop,10);b+=parseInt(V.marginBottom,10);Y.cachedPopupHeight=w+b}return Y.cachedPopupHeight};
r8.prototype.getElement=function(Y){return document.createElement(Y)};
_.z([_.n(I2I.YtPopupContainerBehavior),_.K("design:type",Object)],r8.prototype,"ytPopupContainerBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);_.z([_.S({disableElementRegistration:!0,is:"ytd-popup-container"})],r8);
_.a(r8,"ytd-popup-container",function(){if(f2N!==void 0)return f2N;var Y=document.createElement("template");_.B(Y,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-popup-container--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);return f2N=Y},{mode:1});var ZRQ;var BVX={};BVX.YtLogYpcFlowCommandsBehavior=[_.US.YtActionHandlerBehavior,{created:function(){this.logFlowCommandsMap_={"yt-log-ypc-flow-start-command":"handleLogYpcFlowStart_","yt-log-ypc-flow-dismiss-command":"handleLogYpcFlowDismiss_"}},
attached:function(){this.registerActionMap(this.logFlowCommandsMap_)},
detached:function(){this.unregisterActionMap(this.logFlowCommandsMap_)},
handleLogYpcFlowStart_:function(Y){_.v(Y,AxX)&&(Y=_.v(Y,AxX))&&(Y.serializedTransactionFlowLoggingParams?_.ZUB(Y.serializedTransactionFlowLoggingParams):Y.serializedYpcCancelFlowLoggingParams?(Y=Y.serializedYpcCancelFlowLoggingParams)&&_.Ol("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",Y):Y.serializedYpcResumeFlowLoggingParams?(Y=Y.serializedYpcResumeFlowLoggingParams)&&_.Ol("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",Y):Y.serializedYpcPauseFlowLoggingParams?(Y=Y.serializedYpcPauseFlowLoggingParams)&&
_.Ol("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",Y):Y.serializedYpcRefundFlowLoggingParams?(Y=Y.serializedYpcRefundFlowLoggingParams)&&u4t("YPC_EVENT_TYPE_START",Y):Y.serializedYpcDeactivateFlowLoggingParams?(Y=Y.serializedYpcDeactivateFlowLoggingParams)&&_.Ol("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",Y):Y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(Y=Y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.Ol("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",Y))},
handleLogYpcFlowDismiss_:function(Y){_.v(Y,iiQ)&&(Y=_.v(Y,iiQ),Y.serializedTransactionFlowLoggingParams?_.B0v(Y.serializedTransactionFlowLoggingParams):Y.serializedYpcCancelFlowLoggingParams?(Y=Y.serializedYpcCancelFlowLoggingParams)&&_.Ol("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",Y):Y.serializedYpcResumeFlowLoggingParams?(Y=Y.serializedYpcResumeFlowLoggingParams)&&_.Ol("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",Y):Y.serializedYpcPauseFlowLoggingParams?(Y=
Y.serializedYpcPauseFlowLoggingParams)&&_.Ol("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",Y):Y.serializedYpcRefundFlowLoggingParams&&(Y=Y.serializedYpcRefundFlowLoggingParams)&&u4t("YPC_EVENT_TYPE_CANCEL",Y))}}];var naN={};naN.YtCancelRecurrenceBehavior=[_.yZ.YtComponentBehavior,_.mi5,{attached:function(){var Y=this;$lN(this,function(b,w){return Y.ypcCancelRecurrenceHandler(b,w)})},
ypcCancelRecurrenceHandler:function(Y,b){var w=this;if(!b||!b.ypcCancelRecurrenceEndpoint)return!1;if(!b.ypcCancelRecurrenceEndpoint.params)return _.K7(Error("xl")),!0;_.TL(this.hostElement);var V=_.C_.instance,H=_.fH().resolve(_.HQ(_.LX));V&&_.y_(V,b)?_.$_(V,b).then(function(f){w.ypcCancelRecurrenceSuccess_(Y,b,{data:f})},function(f){w.ypcCancelRecurrenceFailure_(Y,b,f)}).thenCatch(function(){_.K7(Error("yl"))}):H?H.requestDataForServiceEndpoint(b).then(function(f){w.ypcCancelRecurrenceSuccess_(Y,
b,f)},function(f){w.ypcCancelRecurrenceFailure_(Y,b,f)}).thenCatch(function(){_.K7(Error("yl"))}):_.K7(Error("zl"));
return!0},
ypcCancelRecurrenceSuccess_:function(Y,b,w){_.J9(this.hostElement);w.data||(w={data:w});w.data&&w.data.actions&&_.IP(this.hostElement,w.data.actions,this.hostElement);w.data.messageRenderer?bBQ(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(b=b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.Ol("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",b);_.Ua(Y,"yt-service-request-completed",w)},
ypcCancelRecurrenceFailure_:function(Y,b,w){_.J9(this.hostElement);bBQ(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Ua(Y,"yt-service-request-error",{error:w,params:[Y,b]})}}];var M0A=function(Y,b){_.Yb.call(this,b)};
_.P(M0A,v_A);var eCX={};eCX.YtCompleteTransactionBehavior=[_.yZ.YtComponentBehavior,_.mi5,{attached:function(){var Y=this;$lN(this,function(b,w){return Y.ypcCompleteTransactionHandler(b,w)})},
completeTransaction:function(Y,b){var w=this;b={payments_payload:window.btoa(b.integratorData),buybucket_params:Y.data.buybucketParams,offer_params:Y.data.offerParams};var V=_.fH().resolve(_.LX),H=Y.data.completeTransactionEndpoint,f=this.get("ypcCompleteTransactionEndpoint.actions",H);f&&_.IP(this.hostElement,f,this.hostElement);return(f=_.C_.instance)&&_.y_(f,H)?_.$_(f,H,b).then(function(E){return!E||(E==null?0:E.error)?(E=w.get("data.serializedTransactionFlowLoggingParams",Y),_.OQ(new Ym("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
E))):{data:E}}).then(function(E){return w.handleCompleteTransactionSuccess_(E,Y)},function(){return w.handleCompleteTransactionFailure_(Y)}):V.requestDataForServiceEndpoint(H,b).then(function(E){return w.handleCompleteTransactionSuccess_(E,Y)},function(){return w.handleCompleteTransactionFailure_(Y)})},
handleCompleteTransactionSuccess_:function(Y,b){Y.data||(Y={data:Y});if(Y.data.messageRenderer)return _.OQ(new M0A(Y.data.messageRenderer));if(Y.data.trackingParams){var w=_.dO(),V=_.R3();w&&V&&_.yX(w,V,_.nA(Y.data.trackingParams))}b=this.get("data.serializedTransactionFlowLoggingParams",b);YPR(b);return _.k7(Y)},
handleCompleteTransactionFailure_:function(Y){Y=this.get("data.serializedTransactionFlowLoggingParams",Y);_.Gg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Y);return _.OQ(new Ym("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",Y))},
ypcCompleteTransactionHandler:function(Y,b){var w=this;if(!b.ypcCompleteTransactionEndpoint)return!1;if(!b.ypcCompleteTransactionEndpoint.transactionParams)return _.K7(Error("Al")),!0;b.ypcCompleteTransactionEndpoint&&b.ypcCompleteTransactionEndpoint.gtmData&&_.dW(b.ypcCompleteTransactionEndpoint.gtmData);var V=_.fH().resolve(_.HQ(_.LX));if(V){_.TL(this.hostElement);var H=_.C_.instance;H&&_.y_(H,b)?_.$_(H,b).then(function(f){return!f||(f==null?0:f.error)?(f=w.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
b),_.OQ(new Ym("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",f))):{data:f}}).then(function(f){_.Ua(Y,"yt-service-request-completed");
w.ypcCompleteTransactionSuccess_(b,f)},function(){return w.ypcCompleteTransactionFailure_(b)}):V.requestDataForServiceEndpoint(b).then(function(f){_.Ua(Y,"yt-service-request-completed");
w.ypcCompleteTransactionSuccess_(b,f)},function(){return w.ypcCompleteTransactionFailure_(b)})}return!0},
ypcCompleteTransactionSuccess_:function(Y,b){_.J9(this.hostElement);b.data||(b={data:b});_.Xx(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);b.data.messageRenderer||b.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(Y):(_.dW('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",Y));b.data.actions&&(Y=E77(b.data.actions),b=c17(b.data.actions),Y.length&&_.oP(this.hostElement,
Y),b.length&&_.IP(this.hostElement,b,this.hostElement))},
ypcCompleteTransactionFailure_:function(Y){_.J9(this.hostElement);_.Xx(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",Y,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(Y,b,w){if(b=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",b))b={serializedTransactionFlowLoggingParams:b},w&&(b.errorType=w),_.RY(Y,b),_.dh()}}];var ppd={};ppd.YtEndpointHandlerWithYpcBehavior=[_.mi5,_.US.YtActionHandlerBehavior,[{openWalletDialog:function(Y,b,w,V,H,f,E){var U=this,X=_.j9();b=b.replace(/-/g,"+").replace(/_/g,"/");var I=_.P0().get("hl");_.csB(_.Ud(_.Tg),b,X.resolve,H,function(k){f&&f();X.reject(k)},I,function(k){return U.onServerBackendAnalyticEvent_(Y,w,k)},this.onDialogClose_.bind(this),V,E);
return X.promise},
openFixFlowDialog:function(Y,b,w,V){Y=Y.replace(/-/g,"+").replace(/_/g,"/");_.Ud(_.Tg).openFixFlowDialog(Y,b,w,V)},
onDialogClose_:function(){_.Xx(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(Y,b,w){_.Ua(Y,"yt-commerce-action-init-done");b&&_.oP(this.hostElement,[b,{backend_analytics:w}])}}],
_.qS.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(Y,b){Y=this.get("data.nativeFlowEndpoint",b);b=this.get("data.fallbackEndpoint",b);Y?_.oP(this.hostElement,[Y]):b&&_.Ua(this.hostElement,"yt-navigate",{endpoint:b})}}],
naN.YtCancelRecurrenceBehavior,eCX.YtCompleteTransactionBehavior,{listeners:{"yt-service-request-sent":"onServiceRequestSent_","yt-service-request-completed":"onGetCartServiceRequestCompleted_","yt-service-request-error":"onServiceRequestError_"},created:function(){this.buyFlowActionMap_={};this.ypcRegisterActionMapJobId_=0},
attached:function(){var Y=this;$lN(this,function(b,w,V){return Y.handleYPCEndpoint(b,w,V)});
this.ypcRegisterActionMapJobId_=_.MY(_.Lb,function(){Y.registerActionMap(Y.buyFlowActionMap_)})},
detached:function(){var Y=this;_.Lb.cancelJob(this.ypcRegisterActionMapJobId_);_.MY(_.Lb,function(){Y.unregisterActionMap(Y.buyFlowActionMap_)})},
handleYPCEndpoint:function(Y,b,w){var V=b.ypcGetCartEndpoint;if(V){_.Lz("commerce_transaction");var H=V.gtmId;H&&_.Rj(H);(V=V.gtmData)&&_.dW(V)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",b)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(Y,b),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",b)!=null?(this.handleYPCFixInstrumentEndpoint_(Y,b),!0):b.ypcPauseSubscriptionCommand?(i8X(this.hostElement,Y,b,w),
!0):b.ypcResumeSubscriptionCommand?(yrb(this.hostElement,Y,b),!0):b.getPaymentInstrumentsParamsCommand?(zMs(this.hostElement,Y,b),!0):b.ypcHandleTransactionEndpoint?(a7g(this.hostElement,Y,b,w),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(Y,b){var w=this;_.S1("ttcr",void 0,"commerce_transaction");b=b.ypcGetCartEndpoint;var V=b.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,H=V.encryptedPurchaseParams,f=V.serializedTransactionFlowLoggingParams,E=V.serializedPaymentsClientParams,U=this.createGetCartResponseFromParams_(V,b.offerParams,f);this.changeButtonState(Y,!0);_.OV(this.openWalletDialog(Y,H,V.ypcLogWalletAnalyticDataEndpoint,f,function(){w.changeButtonState(Y,!1)},function(){w.changeButtonState(Y,
!1)},E).then(function(X){return w.handleBuyFlowCompleteCallback_(Y,U,X)},function(){return w.handleOnLoadError(U)}).then(function(X){return void w.handlePostPurchaseSuccess_(Y,U,X)},function(X){return void w.handlePostPurchaseError_(X)}),function(){w.changeButtonState(Y,!1);
Y instanceof Element&&_.Ua(Y,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(Y,b,w){var V=Y.completeTransactionEndpoint,H=Y.handleTransactionEndpoint;b={data:{offerParams:window.btoa(b),serializedTransactionFlowLoggingParams:w}};H?b.data.handleTransactionEndpoint=H:b.data.completeTransactionEndpoint=V;Y.onCartDismissCommand&&(b.data.onCartDismissCommand=Y.onCartDismissCommand);return b},
onGetCartServiceRequestCompleted_:function(Y,b){var w=this,V=Y.target;if(b&&b.data&&b.data.messageRenderer)_.J9(this.hostElement),this.handleMessageRenderer_(b.data.messageRenderer),this.changeButtonState(V,!1);else{var H=this.get("data.encryptedPurchaseParams",b),f=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",b),E=this.get("data.ypcLogWalletAnalyticDataEndpoint",b),U=this.get("data.serializedPaymentsClientParams",b),X=this.getLoggingParams_(b);if(X||H||f)Y.stopPropagation(),_.S1("ttcr",
void 0,"commerce_transaction"),H||_.J9(this.hostElement),this.changeButtonState(V,!1),f?_.Xx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.zO("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:f}}},this]):H&&(this.changeButtonState(V,!0),Y=null,Y=this.openWalletDialog(V,H,E,X,function(){_.J9(w.hostElement);w.changeButtonState(V,!1)},function(){_.J9(w.hostElement);
w.changeButtonState(V,!1)},U),_.OV(Y.then(function(I){return w.handleBuyFlowCompleteCallback_(V,b,I)},function(){return w.handleOnLoadError(b)}).then(function(I){return w.handlePostPurchaseSuccess_(V,b,I)},function(I){return w.handlePostPurchaseError_(I)}),function(){w.changeButtonState(V,!1);
_.Ua(V,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(Y,b){b&&b.endpoint&&b.endpoint.ypcGetCartEndpoint&&!b.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)&&_.IP(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)],Y.target),_.TL(this.hostElement),this.changeButtonState(Y.target,!0))},
onServiceRequestError_:function(Y,b){if(b&&b.params&&b.params.length){b=_.N(b.params);for(var w=b.next();!w.done;w=b.next())if((w=w.value)&&w.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",w.ypcGetCartEndpoint)&&_.IP(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",w.ypcGetCartEndpoint)],Y.target);_.J9(this.hostElement);this.changeButtonState(Y.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(Y,b,w){var V=w.integratorData;return V==null||V===""||w.error!=null?(V=this.getLoggingParams_(b),String(w.error)==="-1"?(b.data.onCartDismissCommand&&_.IP(this.hostElement,[b.data.onCartDismissCommand],Y),_.OQ(new Ym("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",V,!0))):_.OQ(new Ym("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",V))):b.data.handleTransactionEndpoint?rrI(this.hostElement,b.data.handleTransactionEndpoint,{payments_payload:V,funds_guarantee_callback_client_data:w.integratorClientCallbackData}):
this.completeTransaction(b,w)},
handlePostPurchaseSuccess_:function(Y,b,w){b=w.data;var V=!1,H,f;if(b&&((H=b.command)==null?0:(f=H.commandExecutorCommand)==null?0:f.commands)){var E,U;H=(E=b.command)==null?void 0:(U=E.commandExecutorCommand)==null?void 0:U.commands;for(E=0;E<H.length;E++)if(_.v(H[E],_.GkQ)){V=!0;break}}V||(b&&b.gtmDatas&&b.gtmDatas.length?_.dW(b.gtmDatas[0]):_.dW('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));w.data&&w.data.actions&&(b=E77(w.data.actions),w=c17(w.data.actions),b.length&&
_.oP(this.hostElement,b),w.length&&_.IP(this.hostElement,w,Y))},
handlePostPurchaseError_:function(Y){Y&&Y.payload&&Y.payload.isUserDismiss||_.Ft(Error("Cl"))},
handleOnLoadError:function(Y){Y=this.getLoggingParams_(Y);return _.OQ(new Ym("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Y))},
getLoggingParams_:function(Y){return this.get("data.serializedTransactionFlowLoggingParams",Y)},
handleMessageRenderer_:function(Y){var b=_.S4(Y,"renderer"),w=_.zO("openPopupConfig");b==="confirmDialogRenderer"&&w&&_.Xx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:w.popupTypeMap[b],popup:Y}},this])},
handleYPCFixInstrumentEndpoint_:function(Y,b){var w=this,V=b.ypcFixInstrumentEndpoint;b=V.encryptedFixInstrumentParameters;this.logFixFopEvent_(V,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(Y,!0);this.openFixFlowDialog(b,function(H,f){w.onFixFlowCompleteCallback_(V,H,f)},function(){return w.changeButtonState(Y,!1)},function(){w.changeButtonState(Y,!1);
w.logFixFopEvent_(V,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(Y,b,w){var V=_.Aq("payments.business.integration.scenario.FixInstrument");if(b==V.IntegratorCallbackType.ON_COMPLETE){b="FIX_FOP_EVENT_TYPE_CANCEL";var H=null;w.error!=null?w.error!=V.OnCompleteCallbackError.USER_CANCELLED&&(_.IP(this.hostElement,[Y.errorAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_FAILURE",H="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.IP(this.hostElement,[Y.successAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_SUCCESS");_.IP(this.hostElement,[Y.onFinishAction],
this.hostElement);this.logFixFopEvent_(Y,b,H)}},
logFixFopEvent_:function(Y,b,w){(Y=Y.serializedFixFopLoggingParams)?(b={eventType:b,serializedFixFopLoggingParams:Y},w!=null&&(b.errorType=w),_.RY("fixFopFlow",b),_.dh()):_.Ft(Error("Dl"))},
changeButtonState:function(Y,b){_.q("enable_ypc_spinners")&&Y&&(Y.is==="yt-button-renderer"||Y.is==="ytd-button-renderer")&&(Y.disabled=b)}}];var ORX=function(Y){this.JSC$28839_clientRoot=Y;this.feedbackCollectorActionMap={"yt-help-dialog-requested":j8s,"yt-feedback-dialog-requested":$VR,"yt-signal-action-help":Gxg,"yt-signal-action-send-feedback":TbF,"yt-send-feedback-action":uZt,"yt-user-feedback-endpoint":YCX};_.yu(_.CB.getInstance(),this.feedbackCollectorActionMap,this.JSC$28839_clientRoot)},t0d;var RCX=function(Y){this.JSC$28844_clientRoot=Y;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":bXg.bind(null,this.JSC$28844_clientRoot),"yt-signal-action-delete-all-downloads":VyX,"yt-signal-action-delete-download":HXs,"yt-signal-action-delete-playlist-download":f87,"yt-signal-action-install-pwa":DCb,"yt-signal-action-refresh-downloads":UCg,"yt-offline-video-endpoint":oyb,"yt-offline-playlist-endpoint":kgt,"yt-update-local-app-setting-command":h3N,"yt-offline-orchestration-action-command":qCt,
"yt-signal-action-undo-delete-download":Eys,"yt-local-watch-history-command":vyR};_.yu(_.CB.getInstance(),this.downloadManagerActionMap,this.JSC$28844_clientRoot);_.RA.instance=new _.RA},duQ;var zy=function(){var Y=_.F.apply(this,arguments)||this;Y.actionMap={"yt-get-mdx-status":"handleGetMdxStatus_","yt-add-to-remote-queue-action":"handleAddToQueueAction_","yt-clear-remote-queue-action":"handleClearQueueAction_","yt-insert-in-remote-queue-action":"handleInsertInQueueAction_","yt-remove-from-remote-queue-action":"handleRemoveFromQueueAction_"};Y.remoteApi_=null;return Y};
_.P(zy,_.F);_.g=zy.prototype;
_.g.ready=function(){_.q("polymer_enable_mdx")&&(CyI({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.q("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.q("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.q("enable_cast_short_lived_lounge_token")}),_.UP("yt-remote-connection-change",this.handleConnectionChange_,this),_.UP("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=u9X())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.g.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.g.handleConnectionChange_=function(Y){(this.mdxConnected=Y)?(Y=jCb(),!Y&&ywd()&&$4F()&&(Y={key:"cast-selector-receiver",name:$4F()}),Y=Y.name):Y=null;this.receiverName=Y;_.ua(this.remoteApi_);(this.remoteApi_=u9X())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.g.handleReceiverAvailabilityChange_=function(){var Y=$Pt();ywd()&&_.l4("yt-remote-cast-available")&&Y.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=Y.length>0};
_.g.handleRemoteQueueChange_=function(){var Y=this.currentVideoId_,b=this.currentListId_,w=Un(this.remoteApi_);this.currentVideoId_=w.videoId;this.currentListId_=w.listId;this.currentVideoId_&&_.Xx(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.q("polymer_enable_mdx_queue")?this.currentListId_:null,Y,b])};
_.g.handleAddToQueueAction_=function(Y){Y=_.v(Y,n$R);this.remoteApi_&&(Y.videoId?this.remoteApi_.addVideo(Y.videoId):Y.playlistId&&this.remoteApi_.addPlaylist(Y.playlistId))};
_.g.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.g.handleInsertInQueueAction_=function(Y){Y=_.v(Y,Mc7);this.remoteApi_&&Y.videoId&&this.remoteApi_.JSC$17601_insertVideo(Y.videoId)};
_.g.handleRemoveFromQueueAction_=function(Y){Y=_.v(Y,ezX);this.remoteApi_&&Y.videoId&&this.remoteApi_.JSC$17601_removeVideo(Y.videoId)};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R(),_.K("design:type",Object)],zy.prototype,"appId",void 0);_.z([_.R(),_.K("design:type",Boolean)],zy.prototype,"mdxConnected",void 0);_.z([_.R(),_.K("design:type",Boolean)],zy.prototype,"receiverAvailable",void 0);_.z([_.R(),_.K("design:type",Object)],zy.prototype,"receiverName",void 0);_.z([_.R(),_.K("design:type",Object)],zy.prototype,"currentVideoId_",void 0);
_.z([_.R(),_.K("design:type",Object)],zy.prototype,"currentListId_",void 0);_.z([_.FM({is:"yt-mdx-manager",disableElementRegistration:!0})],zy);_.a(zy,"yt-mdx-manager",void 0,{mode:2});var FXs;var LXt;var Wn=function(){var Y=_.F.apply(this,arguments)||this;Y.APP_IDS={ytr:3,ytm:5};Y.JSC$18842_timeoutId_=0;Y.actionMap={"yt-open-create-family-dialog":"open"};return Y};
_.P(Wn,_.F);_.g=Wn.prototype;_.g.created=function(){Ul7(2200)};
_.g.detached=function(){this.observer_&&this.observer_.disconnect()};
_.g.open=function(Y,b){var w=this,V=Y.serializedYpcFamilyCreateLoggingParams;this.JSC$18842_timeoutId_=setTimeout(this.abort_.bind(this,Y.postFlowErrorEndpoint,V),3E4);b&&(this.onReadyCallback_=b);var H=_.E6(this.hostElement).querySelector("#unicorn-iframe");V&&V&&JEt("ypcFamilyCreateFlowStarted",V);_.I1e("family_creation",function(){var f=_.Aq("gapi.family_creation.render");_.Aq("gapi.config.update")("iframes/family_creation/url",w.getFamilyCreationUrlWithUnicornParams_());var E=3;Y.appId&&Y.appId in
w.APP_IDS&&(E=w.APP_IDS[Y.appId]);E={authUser:_.zO("SESSION_INDEX")||0,clientId:E,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.zO("HL"),initialflow:[4,5,6,7],m:w.isMobile?1:0,onFlowComplete:w.onUnicornFlowComplete_.bind(w,Y.postFlowSuccessEndpoint,V),onError:w.onUnicornFlowError_.bind(w,Y.postFlowErrorEndpoint,V),onReady:w.onUnicornFlowReady_.bind(w,Y.referencePcidParams)};f(H,E)})};
_.g.close=function(){_.E6(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.g.onUnicornFlowComplete_=function(Y,b){this.close();b&&b&&JEt("ypcFamilyCreateFlowSucceeded",b);_.Ua(this.hostElement,"yt-navigate",{endpoint:Y})};
_.g.onUnicornFlowError_=function(Y,b){this.close();b&&JEt("ypcFamilyCreateFlowCancelled",b);_.Ua(this.hostElement,"yt-navigate",{endpoint:Y})};
_.g.onUnicornFlowReady_=function(Y){var b=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();Y&&_.Aq("gapi.family_creation.setConfig")(0,Y);this.observer_=new MutationObserver(function(){_.E6(b.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.E6(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.E6(this.hostElement).querySelector("#dialog").open()};
_.g.getFamilyCreationUrlWithUnicornParams_=function(){return _.zO("YTR_FAMILY_CREATION_URL")};
_.g.getCurrentUrl_=function(){return document.location.href};
_.g.abort_=function(Y,b){this.clearTimeout_();this.onUnicornFlowError_(Y,b)};
_.g.clearTimeout_=function(){clearTimeout(this.JSC$18842_timeoutId_)};
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],Wn.prototype,"ytActionHandlerBehavior",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],Wn.prototype,"isMobile",void 0);_.z([_.R(),_.K("design:type",Object)],Wn.prototype,"onReadyCallback_",void 0);_.z([_.R(),_.K("design:type",Object)],Wn.prototype,"observer_",void 0);_.z([_.FM({is:"yt-create-family-dialog",disableElementRegistration:!0})],Wn);
_.a(Wn,"yt-create-family-dialog",function(){if(LXt===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-create-family-dialog--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.ypc.yt_create_family_dialog.yt.create.family.dialog.css.js--\x3e<tp-yt-paper-dialog id="dialog" with-backdrop="" class="style-scope yt-create-family-dialog">\n  <div id="unicorn-iframe" class="style-scope yt-create-family-dialog"></div>\n</tp-yt-paper-dialog>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);var b=Y.content,w=b.insertBefore;FXs===void 0&&(FXs=document.createElement("template"));var V=FXs;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);LXt=Y}Y=LXt;return Y},{mode:2});var SjX;var avI;var KO=function(){var Y=_.F.apply(this,arguments)||this;Y.STEP=1;Y.BLOCK_ON=80;Y.MIN_PROGESS=0;Y.MAX_PROGESS=100;return Y};
_.P(KO,_.F);_.g=KO.prototype;_.g.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.g.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));_.fH().addProvider({provide:MHI,useValue:this})};
_.g.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.g.finish=function(){var Y=this;this.progress=this.MAX_PROGESS;PWA(function(){Y.progress==Y.MAX_PROGESS&&(Y.hostElement.hidden=!0)})};
_.g.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.up.Object.defineProperties(KO.prototype,{progress:{configurable:!0,enumerable:!0,set:function(Y){this.progress_=Y;var b="scaleX("+Y/this.MAX_PROGESS+")",w=_.E6(this.hostElement).querySelector("#progress").style;w.transform=b;w.webkitTransform=b;this.hostElement.setAttribute("aria-valuenow",String(Y))},
get:function(){return this.progress_}}});
_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],KO.prototype,"ytComponentBehavior",void 0);_.z([_.FM({is:"yt-page-navigation-progress",disableElementRegistration:!0})],KO);
_.a(KO,"yt-page-navigation-progress",function(){if(avI===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-page-navigation-progress--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_page_navigation_progress.yt.page.navigation.progress.css.js--\x3e<div id="progress" class="style-scope yt-page-navigation-progress"></div>\n');Y.content.insertBefore(_.J().content.cloneNode(!0),
Y.content.firstChild);var b=Y.content,w=b.insertBefore;SjX===void 0&&(SjX=document.createElement("template"));var V=SjX;w.call(b,V.content.cloneNode(!0),Y.content.firstChild);avI=Y}Y=avI;return Y},{mode:2});var r2Q={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"},zCX={"font-size":"12px","font-style":"italic"},WXb={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.MyQ=function(){return _.c(function(Y){_.om(Y)})};var KXI=_.b8(function(Y){var b=function(){return Y.data().subtext},w={};
return _.m("snackbar-view-model",{class:_.hj("snackbarViewModelHost",Y.className)},_.m("div",{class:_.hj("snackbarViewModelEngagementBarWrapper",Y.className)},_.m(_.h,{cond:function(){return Y.data().image},
then:function(V){return _.m(_.Y_,{data:V,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.m(_.h,{cond:function(){return Y.data().imageContent},
then:function(){return _.m("div",{class:"snackbarViewModelAvatarContainer"},_.m(_.OH,{data:function(){return Y.data().imageContent}},{decoratedAvatarViewModel:_.pe}))}}),_.m("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.m("div",{class:_.hj((w.snackbarViewModelTitle=!0,w.snackbarViewModelTitleWithSubtext=b,w))},_.m(_.wv,{text:function(){return Y.data().text}})),_.m(_.h,{cond:b,
then:function(){return _.m("div",{class:"snackbarViewModelSubtext"},_.m(_.wv,{text:function(){return b()}}))}})),_.m(_.h,{cond:function(){return Y.data().buttons},
then:function(){return _.m("div",{class:"snackbarViewModelButtonClassWrapper"},_.m(_.OH,{data:function(){return Y.data().buttons}},{buttonViewModel:function(V){return _.m(_.a1,{data:V.data,
buttonOverrides:function(){return{style:"mono-inverse"}}})}}))}})))},"dh");_.f_(_.b8(function(){function Y(Z,e){Q(Z);l("in");I(!0);f=setTimeout(function(){b()},e)}
function b(Z){l("out");Z&&clearTimeout(f)}
function w(){b(!0)}
function V(Z){if(Z){var e=Z.snackbarViewModel,O=Z.durationMs;O||(O=3E3);e&&(Z=_.fH().resolve(_.HQ(_.fq)))&&Z.enqueue({isOpened:X,open:function(){Y(e,O)},
close:b},0)}}
var H=_.GM("snackbar-container"),f=void 0,E=_.N(_.kw(!1,void 0,"mDc5N")),U=E.next().value;E=E.next().value;var X=U,I=E;U=_.N(_.kw("out",void 0,"FpOs5e"));var k=U.next().value,l=U.next().value;U=_.N(_.kw(void 0,void 0,"jIDRob"));var x=U.next().value,Q=U.next().value;U=_.Q_(function(){if(k()==="out"){I(!1);Q(void 0);var Z=_.fH().resolve(_.HQ(_.fq));Z&&QRR(Z,0)}});
_.dx(function(){var Z=_.fH().resolve(_.HQ(_.FOo));Z&&(Z.showSnackbarFn=V,Z.closeSnackbarFn=w)});
E={};return _.m("snackbar-container",{class:_.hj("ytSnackbarContainerHost",(E.ytSnackbarContainerOpened=function(){return X()&&k()==="in"},E.ytSnackbarContainerClosed=function(){return X()&&k()==="out"},E)),
el:H,"on:animationend":U},_.m(_.h,{cond:function(){return X()&&!!x()},
then:function(){return _.m(KXI,{data:function(){return x()}})}}))},"eh"),"snackbar-container");_.f_(_.b8(function(){var Y=_.rn(_.tYe);return _.m("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var b;return(b=Y())==null?void 0:b.announcement})},"fh"),"yt-ephemeral-actions");var yLA=new Map;var OHX=function(Y,b){var w=this;this.handleError=Y;this.logEventInternal=b;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){w.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
OHX.prototype.logError=function(Y){this.handleError(Y)};
OHX.prototype.logEvent=function(Y,b){switch(Y){case "IDB_DATA_CORRUPTED":_.q("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":_.q("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":iRI(this,b);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Y=Object.assign({},b,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",Y)}};
var iRI=function(Y,b){_.o4.getInstance().estimate().then(function(w){w=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:jAd(w==null?void 0:w.usage),deviceStorageQuotaMbytes:jAd(w==null?void 0:w.quota)});Y.logEventInternal("idbQuotaExceeded",w)})};var iD=function(){var Y=_.F.apply(this,arguments)||this;Y.tabGesturesIsActive=!1;Y.deprecateFullerscreenUi=_.q("web_watch_fullerscreen_deprecation_ui");Y.hasDelegation=!1;Y.darkerDarkTheme=_.q("web_darker_dark_theme");Y.isFrostedGlassInitialized=!1;Y.frostedGlassExp=_.q("web_frosted_glass");Y.mastheadHiddenFocusWithinKillswitch=_.q("web_masthead_hidden_focus_within_killswitch");Y.ephemeralActionsEnabled=_.q("web_ephemeral_actions");Y.scrollAtTop=!0;Y.guideScrollTop=0;Y.isTheaterModeSession=_.Wf("START_IN_THEATER_MODE");
Y.iMaxTheaterMode=_.q("web_watch_imax_theater_mode");Y.isFullWindowSession=_.Wf("START_IN_FULL_WINDOW_MODE");Y.hasCreateFamilyDialog=!1;Y.mastheadHeight=56;Y.networkStatusManager=new _.jI;Y.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction",
"yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints","yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand","yt-log-flow-logging-event-command":"logFlowLoggingEventCommand",
"yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};Y.dynamicActionMap={"yt-run-attestation-command":function(b){var w=_.za_.instance,V=_.v(b,_.Izj);return V?_.q("use_rta_manager_for_async")&&
krI()?YQN(w,V,b.clickTrackingParams):uMI(w,V,b.clickTrackingParams):_.OQ(Error("ni"))}};
Y.isFrostedGlassDisabled=!1;Y.isChannelOrPlaylistPage=!1;return Y};
_.P(iD,_.F);_.g=iD.prototype;_.g.created=function(){var Y=_.fH();_.q("kevlar_clear_duplicate_pref_cookie")&&_.MY(_.Lb,function(){var b=_.sJ.get("PREF");b&&!/f\d=/.test(b)&&(b=_.UJ("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=b?"PREF=null;domain="+b+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.q("gzip_gel_with_worker")&&_.p$L();_.q("jspb_serialize_with_worker")&&W$N();_.q("web_worker_availability_check")&&$CO();_.q("nwl_init_killswitch")||r6X().then(function(){_.Lb.addLowPriorityJob(YaX)});
this.pageManagerAttachedPromise=_.j9();this.ytdAppBehavior.loadDepsPromise=_.p1([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.Vm(this.onThrottledScroll,200,this);_.q("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);t37();sLt=!!_.Aq("ytappsettings.initialized");cc=_.Aq("ytappsettings.previousValue");I9s=_.Aq("ytappsettings.previousSnapshotTime");sLt||(sLt=!0,kDF());fet();N57();_.rx("DEFERRED_DETACH",
_.q("kevlar_tuner_should_defer_detach"));_.rx("REUSE_COMPONENTS",!0);_.rx("STAMPER_STABLE_LIST",!0);_.rx("SCHEDULED_LAZY_LIST",!0);_.rx("openPopupConfig",AWb);_.rx("useClickHandler",!0);_.q("kevlar_shell_cleanup")&&_.Lb.addLowPriorityJob(vrd.bind(this,_.wB.caches));_.Wf("IS_SHELL_LOAD")&&_.Fx({shellStartupDurationMs:Math.round((0,_.gG)()-_.pz())});tys(this.networkStatusManager);_.q("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",ZXb(r2Q)),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!",
ZXb(zCX)),console.log("%cVisit http://go/join-youtube-web to apply today.",ZXb(WXb)));_.POg(Y.resolve(_.Ul),1E3)};
_.g.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var Y=J6t();Y&&!_.q("external_fullscreen_killswitch")&&document.addEventListener(Y,this.setFullscreen.bind(this));(Y=window.matchMedia("(prefers-color-scheme: dark)"))&&Y.addEventListener&&Y.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.g.attached=function(){var Y=this;_.Kp().processSignal("ci");_.q("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.rFa?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.hJ(_.FVL(),"SUCCESS");this.updateIconSet();_.Ea(this.guideInnerContent,!1);_.eH().initVisibilityObserver();this.guideService.guideElement=this.guide;var b=document.createElement("ytd-miniplayer"),w=_.E6(this.hostElement).querySelector("#content");
_.E6(this.hostElement).insertBefore(b,w);_.Kp().processSignal("ma");_.fH().resolve(_.Ck).init(b);_.Wf("IS_SHELL_LOAD")&&(w=document.createElement("ytd-network-status-banner"),_.E6(this.hostElement).insertBefore(w,b));_.q("kevlar_right_click_on_lockups")&&_.jc._onCaptureClick&&document.addEventListener("contextmenu",_.jc._onCaptureClick.bind(_.jc),!0);var V=function(){var H=_.fn("yt-page-navigation-progress");_.E6(Y.hostElement).appendChild(H)};
setTimeout(function(){_.Kp().parkOrScheduleJob(V,0,"eocs",16)},0);
_.q("service_worker_push_enabled")&&_.MY(_.Lb,TGb);_.yu(_.CB.getInstance(),this.dynamicActionMap,this.hostElement);_.Ua(this.hostElement,"ytd-app-attached");_.Kp().processSignal("aa");ort(this.hostElement);_.wG("gapi.load",_.I1e);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.MY(_.Lb,
function(){var H=document.createElement("ytd-video-preview");_.E6(_.E6(Y.hostElement).querySelector("#video-preview")).appendChild(H)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.MY(_.Lb,function(){e3t();Y.registerViewTransitionTasks()});
if(_.tL()&&this.isAppDarkTheme()!==_.pX())this.onDarkModeToggledAction();else b=_.OC()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==b&&(_.q("enable_dark_theme_only_on_shorts")?_.yU(_.q("enable_dark_theme_only_on_shorts_control")?window.location.href:_.TO(window.location.href,{theme:"dark"})):_.Sk(new _.BQ("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(jjQ=new $xb(this.hostElement)),duQ=new RCX(this.hostElement),t0d=new ORX(this.hostElement),oXb=new mSF(this.hostElement)};
_.g.getThemeSettingsToLog=function(){var Y=_.OC()==="USER_INTERFACE_THEME_DARK";Y=_.tL()?_.pX()?"os-dark":"os-light":Y?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:Y,cookiesEnabled:_.vQ()}};
_.g.detached=function(){_.c0(this.guideInnerContent);_.Lb.cancelJob(fF);fF=0;_.Lb.cancelJob(EE);EE=0;_.iXG(mzt);mzt.length=0;UzQ=_.gXL=null;_.eH().dispose();_.q("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.$P(_.CB.getInstance(),jjQ.playlistHandlerActionMap,jjQ.JSC$28538_clientRoot);_.$P(_.CB.getInstance(),duQ.downloadManagerActionMap,duQ.JSC$28844_clientRoot);_.$P(_.CB.getInstance(),t0d.feedbackCollectorActionMap,t0d.JSC$28839_clientRoot);
for(var Y=_.N(oXb.eventListeners),b=Y.next();!b.done;b=Y.next()){var w=_.N(b.value);b=w.next().value;w=w.next().value;w=_.N(w);for(var V=w.next();!V.done;V=w.next()){var H=_.N(V.value);V=H.next().value;H=H.next().value;b.removeEventListener(V,H)}}_.$P(_.CB.getInstance(),oXb.autonavPauseActionMap,oXb.JSC$17786_clientRoot)};
_.g.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.P0().getFlag(186)};
_.g.computeIsInlinePreviewEnabled=function(Y,b,w){return!w&&_.q27({miniplayerIsActive:Y,miniplayerPlaybackState:b})};
_.g.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_FROSTED_GLASS_MODE",payload:!_.q("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"}))};
_.g.computeIsFrostedGlassDisabled=function(Y,b,w,V){return Y||b||w||V&&_.q("web_frosted_glass_disable_watch")};
_.g.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.q("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.g.computeIsHomePage=function(Y,b){if(!Y||b==null||!b.endpoint)return!1;var w;return((w=_.v(b.endpoint,_.QU))==null?void 0:w.browseId)==="FEwhat_to_watch"};
_.g.updateIsChannelOrPlaylistPage=function(){if(_.q("web_frosted_glass")){var Y,b,w=(b=(Y=_.fH().resolve(_.HQ(_.bX)))==null?void 0:Y.getCurrentPage())==null?void 0:b.pageSubtype;this.isChannelOrPlaylistPage=w?["channel","channels","playlist"].includes(w):!1}};
_.g.scheduleFrostedGlassInitialization=function(){var Y=this;_.q("web_frosted_glass")&&_.Kp().parkOrScheduleJob(function(){Y.isFrostedGlassInitialized=!0},0,_.tN(["eocs",
"cr"]),300)};
_.g.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.yBr(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Uf({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.g.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(DRI(!0))};
_.g.onYtSignalActionRequestPersistentStorage=function(){if(!_.q("request_persistent_storage_killswitch")){var Y=_.fH().resolve(_.Q6d);Y.cachedPersistStatePromise||(Y.cachedPersistStatePromise=OAN())}};
_.g.handleYtChannelCreationFormEndpoints=function(Y){Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.g.handleShowEngagementPanelEndpoint=function(Y){Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.g.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(DRI(!1))};
_.g.initIconDefs=function(Y,b){var w=document.createElement("iron-iconset-svg");w.name=Y;Y=document.createElementNS("http://www.w3.org/2000/svg","svg");w.appendChild(Y);Y.appendChild(b);document.body.appendChild(w);return w};
_.g.onWindowResized=function(){_.Xx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var Y=_.HeK.getInstance();Y.documentWidth_=document.body.clientWidth;B_7(Y)};
_.g.onWindowScrolled=function(){var Y=_.fH().resolve(_.bX).getCurrentPage();if(Y!=null&&Y.getScrollTop){var b=this.ytdReduxBehavior,w=b.dispatch;Y=Y.getScrollTop()<=0;w.call(b,_.Uf({type:"SET_SCROLL_AT_TOP",payload:Y}))}};
_.g.guideIsVisibleButNotPersistentSelectorChanged=function(){var Y=_.fH().resolve(_.bX).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=Y.getScrollTop(),document.body.classList.add("lock-scrollbar"),document.body.style.top="-"+this.guideScrollTop+"px"):document.body.classList.contains("lock-scrollbar")&&(document.body.style.overflowY="",document.body.style.top="",document.body.classList.remove("lock-scrollbar"),
Y.setScrollTop(this.guideScrollTop));_.De(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.g.getCurrentPageScrollableElementType=function(){var Y=_.fH().resolve(_.bX).getCurrentPage();if(Y&&Y.getPageScrollingElement())return Y.getPageScrollingElement().nodeName};
_.g.observeGuideVisibility=function(){var Y=_.HeK.getInstance(),b=this.miniGuideVisible;Y.guidePersistentAndVisible_=this.guidePersistentAndVisible;Y.miniGuideVisible_=b;B_7(Y)};
_.g.handleEduDismissAction=function(Y){Y&&Y.eduDismissAction&&(_.Xx(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.usI.getInstance(),_.wW.set(Y.eduDismissAction.key+"-dismissed",!0))};
_.g.handleEduImpressionAction=function(Y){if(Y&&Y.eduImpressionAction){var b=_.usI.getInstance();Y=Y.eduImpressionAction.key;b.JSC$10951_eduDisplayedThisLoad_[_.JmC[Y].setKey||Y]=!0;_.wW.set(Y+"-impression",parseInt(_.wW.get(Y+"-impression")||0,10)+1)}};
_.g.onYtSignalActionConfirmMentionsEdu=function(){_.Xx(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.gW.getInstance();_.H5.set("edu-dismissed",!0)};
_.g.onYtSignalActionRecordMentionsEduImpression=function(){_.gW.getInstance();var Y=_.H5.set,b=parseInt(_.H5.get("edu-impressions"),10);Y.call(_.H5,"edu-impressions",(isFinite(b)?b:0)+1)};
_.g.onYtPageManagerAttached=function(Y){var b;((b=_.uW(Y))==null?void 0:b.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.g.onInvokeInstrumentManagerAction=function(Y,b){u2I(b,Y)};
_.g.updateIconSet=function(){var Y=this.hostElement.querySelector("#masthead");if(Y){var b=_.cX(Y),w=b.querySelector("g#yt-logo-updated");w&&(Y=document.createElementNS("http://www.w3.org/2000/svg","defs"),Y.appendChild(w.cloneNode(!0)),(b=b.querySelector("g#yt-logo-red-updated"))&&Y.appendChild(b.cloneNode(!0)),this.initIconDefs("yt-logos-ext",Y))}};
_.g.updateMastheadData=function(){var Y=this,b,w,V,H,f;return _.c(function(E){if(E.nextAddress==1){b=Y.data;w=Y.hostElement.querySelector("#masthead");if(!w)return E.return();_.TC(Y,function(){w.data=Y.topbarData});
if(!Y.get("response.topbar",b)||Y.get("response.topbar.responseContext.maxAgeSeconds",b)===0)return E.jumpTo(0);if(V=_.fH().resolve(_.K0))return _.D(E,V(),6);H=_.fH().resolve(_.cR);return _.D(E,H.put("service:topbar:fallback",new _.Ue({innertubeResponse:Y.get("response.topbar",b)})),0)}return(f=E.yieldResult)?_.D(E,f.put("service:topbar:fallback",new _.Ue({innertubeResponse:Y.get("response.topbar",b)})),0):E.jumpTo(0)})};
_.g.computeTopbarData=function(Y){if(!Y)return null;var b;return this.isShortsPage&&this.topbarData&&!_.v((b=Y.response)==null?void 0:b.topbar,o$X)?this.topbarData:Y.response&&"topbar"in Y.response?_.v(Y.response.topbar,o$X)||null:null};
_.g.onSetTheaterModeEnabled=function(Y,b){this.isTheaterModeSession=b.enabled;this.setTheaterModeStyles(b.enabled)};
_.g.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.g.onDarkModeToggledAction=function(){var Y=_.ku(window.location.href);if(!_.kpr(Y)){(Y=!!_.GO(window.location.href).themeRefresh)&&_.Sk(new _.BQ("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!Y){kDF();Y={themeRefresh:1};var b=_.fH().resolve(_.bX);if(b.isOnWatch()){var w,V;b=((w=b.getPlayerFromWatch())==null?void 0:(V=w.getPlayer())==null?void 0:V.getCurrentTime())||0;b>=1&&(Y.time_continue=Math.floor(b))}_.vQ()||_.OC()!=="USER_INTERFACE_THEME_DARK"||(Y.theme="dark");_.yU(_.TO(window.location.href,
Y))}_.q("web_appshell_refresh_trigger")&&_.wB.caches&&this.refreshAppShellResponse();w=_.CM(window.location.href);_.mn(_.fH().resolve(_.ox),_.H0(w,"theme"))}};
_.g.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.g.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.g.onPlayerFullscreen=function(Y){_.fz();this.playerFullscreen=Y};
_.g.setRestrictedMode=function(Y){var b=_.P0();_.Ze(0,58,Y);b.save();_.fH().resolve(_.Mx).reload()};
_.g.onPageChanged=function(Y){Y.detail.newPageType==="ytd-watch-flexy"||Y.detail.newPageType==="ytd-watch-fixie"||Y.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.F5("WEB_PAGE_TYPE_WATCH")):Y.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.F5("WEB_PAGE_TYPE_SHORTS")):Y.detail.newPageType==="ytd-browse"&&Y.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.F5("WEB_PAGE_TYPE_MINI_APP")):_.q("web_frosted_glass")&&Y.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.F5("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.F5("WEB_PAGE_TYPE_UNKNOWN"));Y.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.g.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.g.onGuideToggleTap=function(){_.Ua(this.hostElement,"yt-guide-toggle")};
_.g.onGuideToggleHover=function(){_.Ua(this.hostElement,"yt-guide-hover")};
_.g.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.g.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.g.setMastheadTheme=function(){var Y=_.cX(this.hostElement).querySelector("#masthead");Y&&(Y.dark=Y.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),Y.isDarkThemeForced=!1)};
_.g.onRequestPanelModeChange=function(Y,b){this.hideHeaderShadow=b.mode!=="seamed"};
_.g.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.g.onDrawerIronSelect=function(Y){_.uW(Y).id==="guide"&&this.processDrawerIronSelect()};
_.g.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var Y="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(Y="opened"));_.Ua(this.hostElement,"yt-autonav-pause-guide-"+Y)};
_.g.onAddElementToApp=function(Y){_.E6(this.hostElement).appendChild(Y.detail)};
_.g.onThrottledScroll=function(){var Y=_.fH().resolve(_.bX).getCurrentPage();Y&&(this.scrollAtTop=Y.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.g.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.g.setFullscreen=function(){if(_.q("external_fullscreen")||!this.isWatchPage){var Y=_.q("kevlar_fullerscreen_root_only_killswitch")?!!_.fz():!!_.fz()&&_.fz()===document.documentElement;Y=(this.isWatchPage||_.q("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(Y||this.isFullWindowSession);this.fullscreen!==Y&&((this.fullscreen=Y)&&_.De(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.u3().dispatch(_.DnR(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Xx(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.g.setFullscreenLoggingForShorts=function(Y){var b,w,V;return _.c(function(H){if(H.nextAddress==1)return _.D(H,(b=_.V4())==null?void 0:b.getPlayerPromise(),2);w=H.yieldResult;(V=w)==null||V.setAppFullscreen(Y);_.om(H)})};
_.g.updateMastheadCssHeight=function(){var Y=this.mastheadHeight;this.fullscreen&&(Y=0);_.m_(this.hostElement,{"--ytd-masthead-height":Y+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.g.updateNetworkStatusBannerDisplayStatus=function(){var Y="unset";this.fullscreen&&(Y="none");_.m_(this.hostElement,{"--ytd-network-status-banner-display":Y})};
_.g.updateNetworkStatusBannerCssHeight=function(){var Y="unset";this.fullscreen&&(Y="0px");_.m_(this.hostElement,{"--ytd-network-status-banner-max-height":Y})};
_.g.updateScrollAndMasthead=function(Y,b,w,V){this.iMaxTheaterMode||(V=!1);var H=_.fH().resolve(_.bX).getCurrentPage();Y||b||V?(document.body.classList.add("no-scroll"),H.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Io(this,this.onScroll)),H.setScrollTop(0),_.m_(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.e$()+"px"})):w?_.Ua(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Ua(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
H.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Io(this,this.onScroll)));this.mastheadHidden=Y||b||w;this.updateMastheadCssHeight();_.q("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.g.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.g.onYtNavigateAction=function(Y){Y=this.get("navigateAction.endpoint",Y);_.Ua(this.hostElement,"yt-navigate",{endpoint:Y})};
_.g.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var Y=document.createElement("yt-create-family-dialog");_.E6(this.hostElement).appendChild(Y);this.hasCreateFamilyDialog=!0}};
_.g.onSetPushNotificationsEnabledCommand=function(Y){var b=this,w=_.v(Y,mMO);w&&typeof w.enabled==="boolean"&&(Notification.permission!=="granted"?CSN().then(function(){Notification.permission==="granted"?(pOF(!w.enabled).then(RnO),w.successAction&&_.oP(b.hostElement,[w.successAction])):w.failureAction&&_.oP(b.hostElement,[w.failureAction])}):(pOF(!w.enabled).then(RnO),w.successAction&&_.oP(this.hostElement,[w.successAction])))};
_.g.onYtSignalActionEnableChromeNotifications=function(){yEs(!0)};
_.g.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.v(this.topbarData.hotkeyDialog,lys)}}})};
_.g.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Xx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.g.onYtEndpointChangeHandler=function(Y,b){var w=_.Ud(_.nZ);w.pendingPrefetchJob_&&(b=!(!b||b.autonav!="1"),w.pendingPrefetchJob_.resolve(Y&&_.fiI(Y)?_.N96(Y,b):""),w.pendingPrefetchJob_=null);_.Xx(this.hostElement,"yt-pause-active-page-context");_.Xx(this.hostElement,"ytd-log-youthere-nav");_.Xx(this.hostElement,"yt-prepare-page-dispose")};
_.g.handleCommandWithCommandHandler=function(Y,b){_.l8.instance.resolveCommand(Y,{form:{element:b}})};
_.g.onYtTimedCommand=function(Y){var b=this;Y=_.v(Y,wUR);var w=Y.command;w&&_.ps(_.Lb,function(){var V=_.v(w,_.xwd);V?(_.l8.instance.resolveCommand(w),b.maybeLogGetAnswerRequestTick(V)):_.IP(b.hostElement,[w],b.hostElement)},Y.timeoutMs||0)};
_.g.maybeLogGetAnswerRequestTick=function(Y){Y&&Y.isFirstRequest&&(_.Lz("search_overview_answer"),_.S1("so_rq",void 0,"search_overview_answer"))};
_.g.onYtSignalActionSkipNavigation=function(){var Y=_.fH().resolve(_.bX).getCurrentPage();_.uS(Y)};
_.g.onYtSignalActionCopyDebugData=function(){fFF()};
_.g.handleEntityUpdateCommand=function(Y){_.sf(_.v(Y,_.vSo).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.g.logFlowLoggingEventCommand=function(Y){if(Y=_.v(Y,_.$Nv))if(Y.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var b=Y.flowEventNamespace,w=Y.flowEventType,V=Y.flowType;V&&b&&w&&_.uc6(_.oA(b,w,Y.flowEventMetadata),V)}else{b=_.ky();w=Y.flowEventNamespace;V=Y.flowEventType;var H=Y.flowType;H&&w&&V&&_.IA(b,_.oA(w,V,Y.flowEventMetadata),H,Y.flowNonce)}};
_.g.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.g.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.g.onTouchStart=function(){var Y=_.pZ();_.dO()&&_.Aj(Y.JSC$11178_screenManager,{visualElement:Y.ve})};
_.g.handleSelectLanguageCommand=function(Y){if(Y=_.v(Y,UMX).hl){var b=_.P0();b.set("hl",Y);b.save();_.fH().resolve(_.Mx).reload()}};
_.g.handleConfirmDialogEndpoint=function(Y){(Y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&this.ytOpenPopupBehavior.openPopup(Y)};
_.g.handleOpenPopupNavigationEndpoints=function(Y,b){_.q("web_button_rework")&&(Y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(Y))&&this.ytOpenPopupBehavior.openPopup(Y,b)};
_.g.handleSaveCommandToSessionStorage=function(Y){if(Y=_.v(Y,_.sMd)){var b=Y.key;b&&Y.command&&window.sessionStorage.setItem(b,JSON.stringify(Y.command))}};
_.g.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(Y){Y&&Y.active&&Y.active.postMessage({type:"refresh_shell"})}).catch(function(Y){Y.name!=="SecurityError"&&_.Ft(Y)})};
_.g.onDeviceThemeChanged=function(){var Y=_.pX();_.Ze(_.P0(),185,Y);_.P0().save()};
_.g.handleYtRegisterPromoCommand=function(Y){if(_.v(Y,DMt)){var b=_.fH().resolve(_.bX).getCurrentPage()||this.hostElement;QjI().registerPromoCommand(_.v(Y,DMt),b)}};
_.g.onYtNavigateHomeAction=function(){if(!_.q("kevlar_miniplayer_navigate_home_from_app_killswitch")){var Y,b,w,V,H=(V=(Y=this.topbarData)==null?void 0:(b=Y.logo)==null?void 0:(w=b.topbarLogoRenderer)==null?void 0:w.endpoint)!=null?V:_.Qy;this.ytComponentBehavior.resolveCommand(H)}};
_.g.onYtLocationCollectionCommand=function(Y){nyX(_.v(Y,ZiQ))};
_.g.onYtGetLocationCommand=function(Y){m8g(_.v(Y,PMN),this)};
_.g.updateRenderGuideFromBinding=function(Y){this.renderGuide=Y.detail.value};
_.g.updateGuidePersistentAndVisibleFromBinding=function(Y){this.guidePersistentAndVisible=Y.detail.value};
_.g.updateMiniGuideVisibleFromBinding=function(Y){this.miniGuideVisible=Y.detail.value};
_.g.onThemeSelected=function(Y,b){var w=_.P0(),V=Y||b?Y:_.pX(),H=(V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!V&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.kpr(_.ku(window.location.href));_.Ze(0,165,Y);_.Ze(0,174,b);w.save();H&&_.Xx(this.hostElement,"yt-dark-mode-toggled-action",[V]);_.Xx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.g.getCurrentTheme=function(){return _.tL()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.OC()};
_.g.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.g.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.g.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.g.handleShowConsentPrimitive=function(Y){var b=this,w,V;return _.c(function(H){if(H.nextAddress==1){try{w=(V=_.V4())==null?void 0:V.getPlayerPromise()}catch(f){}return _.D(H,CWO(Y,w),2)}_.Xx(b.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.om(H)})};
_.g.handleSelectActiveIdentityEndpointInternal=function(Y){_.AL();Y=_.v(Y,_.ay9);if(Y!=null&&Y.supportedTokens){Y=_.N(Y.supportedTokens);for(var b=Y.next();!b.done;b=Y.next())b=b.value,b.accountSigninToken&&_.yU(b.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.g.handleUpdatePermissionRoleCommand=function(Y){if(Y=_.v(Y,_.L0_)){var b;this.hasDelegation=!((b=_.v(Y.renderer,_.F08))==null||!b.status)}};
_.g.registerViewTransitionTasks=function(){var Y=this,b=_.fH().resolve(_.HQ(_.N2));if(b){var w,V=(w=this.guide)==null?void 0:w.querySelector("#scrim"),H,f=(H=this.guide)==null?void 0:H.querySelector("#contentContainer");V&&f&&(w={beforeTransition:function(){var E;(E=Y.guide)!=null&&E.persistent||(V.style.viewTransitionName="app-drawer-scrim",f.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var E;(E=Y.guide)!=null&&E.persistent||(V.style.viewTransitionName="",f.style.viewTransitionName="")}},Go(b,"slide",w),Go(b,"zoom",w))}};
_.up.Object.defineProperties(iD.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.q("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.up.Object.defineProperties(iD,{template:{configurable:!0,enumerable:!0,get:function(){if(ZRQ===void 0){var Y=document.createElement("template");_.B(Y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
Y.content.insertBefore(_.J().content.cloneNode(!0),Y.content.firstChild);ZRQ=Y}Y=ZRQ;return Y}}});
iD.prototype.onOpenHotkeyDialog=iD.prototype.onOpenHotkeyDialog;iD.prototype.setFullscreen=iD.prototype.setFullscreen;iD.prototype.onAddElementToApp=iD.prototype.onAddElementToApp;iD.prototype.onDrawerIronSelect=iD.prototype.onDrawerIronSelect;iD.prototype.onGuideOpenButtonHover=iD.prototype.onGuideOpenButtonHover;iD.prototype.onRequestPanelModeChange=iD.prototype.onRequestPanelModeChange;iD.prototype.onPageDataUpdated=iD.prototype.onPageDataUpdated;iD.prototype.onPageChanged=iD.prototype.onPageChanged;
iD.prototype.onSetTheaterModeEnabled=iD.prototype.onSetTheaterModeEnabled;iD.prototype.updateMastheadData=iD.prototype.updateMastheadData;iD.prototype.onYtPageManagerAttached=iD.prototype.onYtPageManagerAttached;iD.prototype.observeGuideVisibility=iD.prototype.observeGuideVisibility;iD.prototype.guideIsVisibleButNotPersistentSelectorChanged=iD.prototype.guideIsVisibleButNotPersistentSelectorChanged;iD.prototype.isInlinePreviewEnabledChanged=iD.prototype.isInlinePreviewEnabledChanged;
iD.prototype.isWatchPageChanged=iD.prototype.isWatchPageChanged;iD.prototype.dispatchFrostedGlassMode=iD.prototype.dispatchFrostedGlassMode;_.z([_.n(_.FX),_.K("design:type",Object)],iD.prototype,"ytdReduxBehavior",void 0);_.z([_.n(_.qs.YtEventForwardingBehavior),_.K("design:type",Object)],iD.prototype,"ytEventForwardingBehavior",void 0);_.z([_.n(_.qS.YtOpenPopupBehavior),_.K("design:type",Object)],iD.prototype,"ytOpenPopupBehavior",void 0);
_.z([_.n(_.US.YtActionHandlerBehavior),_.K("design:type",Object)],iD.prototype,"ytActionHandlerBehavior",void 0);_.z([_.n({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.CB.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.q("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var Y;((Y=this.actionRouterNode.hostElement)!=null?Y:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var Y;((Y=this.actionRouterNode.hostElement)!=null?Y:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(Y){this.actionRouter_.handleAction(Y.detail)}}),
_.K("design:type",Object)],iD.prototype,"ytActionRouterBehavior",void 0);_.z([_.n(p5X.YtdAppBehavior),_.K("design:type",Object)],iD.prototype,"ytdAppBehavior",void 0);_.z([_.n(_.sS.YtEndpointBehavior),_.K("design:type",Object)],iD.prototype,"ytEndpointBehavior",void 0);_.z([_.n(ppd.YtEndpointHandlerWithYpcBehavior),_.K("design:type",Object)],iD.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.z([_.n(BVX.YtLogYpcFlowCommandsBehavior),_.K("design:type",Object)],iD.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.z([_.n(_.u.YtRendererBehavior),_.K("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.z([_.n(_.yZ.YtComponentBehavior),_.K("design:type",Object)],iD.prototype,"ytComponentBehavior",void 0);_.z([_.R({selector:_.flN}),_.K("design:type",Object)],iD.prototype,"tabGesturesIsActive",void 0);_.z([_.R(),_.K("design:type",Boolean)],iD.prototype,"renderGuide",void 0);
_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"guidePersistentAndVisible",void 0);_.z([_.R({selector:_.gFA}),_.K("design:type",Boolean)],iD.prototype,"guideIsVisibleButNotPersistent",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"standalone",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"miniGuideVisible",void 0);
_.z([_.R({selector:_.ldK}),_.K("design:type",Number)],iD.prototype,"miniplayerPlaybackState",void 0);_.z([_.R({selector:_.L8,reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"miniplayerIsActive",void 0);_.z([_.R({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.K("design:type",Boolean)],iD.prototype,"isInlinePreviewEnabled",void 0);_.z([_.R(),_.K("design:type",Boolean)],iD.prototype,"isInlinePreviewDisabled",void 0);
_.z([_.R({reflectToAttribute:!0,value:function(){return _.Wf("START_IN_FULL_WINDOW_MODE")}}),
_.K("design:type",Boolean)],iD.prototype,"mastheadHidden",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"playerFullscreen",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iD.prototype,"deprecateFullerscreenUi",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"fullscreen",void 0);_.z([_.R({value:!1,reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"hideHeaderShadow",void 0);
_.z([_.R({value:{GUIDE_ALT_LABEL:_.sa("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.K("design:type",Object)],iD.prototype,"menuStrings",void 0);_.z([_.R({computed:"computeTopbarData(data)"}),_.K("design:type",Object)],iD.prototype,"topbarData",void 0);_.z([_.R({selector:_.Sl}),_.K("design:type",Boolean)],iD.prototype,"isWatchPage",void 0);_.z([_.R({selector:_.oUv,reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"isShortsPage",void 0);
_.z([_.R({selector:function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.K("design:type",Boolean)],iD.prototype,"isMiniAppPage",void 0);_.z([_.R({selector:function(Y){return Y.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.K("design:type",Boolean)],iD.prototype,"isBrowsePage",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Boolean)],iD.prototype,"scrolling",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iD.prototype,"hasDelegation",void 0);_.z([_.R({reflectToAttribute:!0,value:!1}),_.K("design:type",Boolean)],iD.prototype,"guideScrolledByTouch",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iD.prototype,"darkerDarkTheme",void 0);
_.z([_.R(),_.K("design:type",Object)],iD.prototype,"isFrostedGlassInitialized",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iD.prototype,"frostedGlassExp",void 0);_.z([_.R({selector:function(Y){return Y.ui.chipBarIsSticky}}),
_.K("design:type",Boolean)],iD.prototype,"chipBarIsSticky",void 0);_.z([_.R({computed:"computeIsHomePage(isBrowsePage, data)"}),_.K("design:type",Boolean)],iD.prototype,"isHomePage",void 0);_.z([_.R({reflectToAttribute:!0}),_.K("design:type",Object)],iD.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.z([_.R(),_.K("design:type",Object)],iD.prototype,"ephemeralActionsEnabled",void 0);_.z([_.j_("guide"),_.K("design:type",Object)],iD.prototype,"guide",void 0);
_.z([_.j_("guide-service"),_.K("design:type",liI)],iD.prototype,"guideService",void 0);_.z([_.j_("guide-inner-content"),_.K("design:type",HTMLDivElement)],iD.prototype,"guideInnerContent",void 0);_.z([_.R({selector:_.xmb}),_.K("design:type",String)],iD.prototype,"frostedGlassMode",void 0);
_.z([_.lr("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"dispatchFrostedGlassMode",null);_.z([_.R({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.K("design:type",Object)],iD.prototype,"isFrostedGlassDisabled",void 0);
_.z([_.lr("isWatchPage"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"isWatchPageChanged",null);_.z([_.t("isHomePage","chipBarIsSticky"),_.K("design:type",Boolean),_.K("design:paramtypes",[])],iD.prototype,"applyFrostedGlassToChipBar",null);_.z([_.R(),_.K("design:type",Object)],iD.prototype,"isChannelOrPlaylistPage",void 0);
_.z([_.vX("isInlinePreviewEnabled"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"isInlinePreviewEnabledChanged",null);_.z([_.lr("guideIsVisibleButNotPersistent"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.z([_.lr("guidePersistentAndVisible","miniGuideVisible"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"observeGuideVisibility",null);_.z([_.kZ("attached"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],iD.prototype,"onYtPageManagerAttached",null);_.z([_.lr("data"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype",Promise)],iD.prototype,"updateMastheadData",null);
_.z([_.kZ("yt-set-theater-mode-enabled"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent,Object]),_.K("design:returntype")],iD.prototype,"onSetTheaterModeEnabled",null);_.z([_.kZ("yt-page-type-changed"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],iD.prototype,"onPageChanged",null);_.z([_.kZ("yt-page-data-updated"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"onPageDataUpdated",null);
_.z([_.kZ("yt-request-panel-mode-change"),_.K("design:type",Function),_.K("design:paramtypes",[Event,Object]),_.K("design:returntype")],iD.prototype,"onRequestPanelModeChange",null);_.z([_.kZ("yt-guide-hover"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"onGuideOpenButtonHover",null);_.z([_.kZ("app-drawer-transitioned"),_.K("design:type",Function),_.K("design:paramtypes",[Event]),_.K("design:returntype")],iD.prototype,"onDrawerIronSelect",null);
_.z([_.kZ("yt-add-element-to-app"),_.K("design:type",Function),_.K("design:paramtypes",[CustomEvent]),_.K("design:returntype")],iD.prototype,"onAddElementToApp",null);_.z([_.kZ("yt-set-fullerscreen-styles"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"setFullscreen",null);_.z([_.kZ("yt-open-hotkey-dialog"),_.K("design:type",Function),_.K("design:paramtypes",[]),_.K("design:returntype")],iD.prototype,"onOpenHotkeyDialog",null);
_.z([_.S({is:"ytd-app"})],iD);_.Kp().processSignal("eor");
_.LC();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
